hexsha
string | size
int64 | ext
string | lang
string | max_stars_repo_path
string | max_stars_repo_name
string | max_stars_repo_head_hexsha
string | max_stars_repo_licenses
list | max_stars_count
int64 | max_stars_repo_stars_event_min_datetime
string | max_stars_repo_stars_event_max_datetime
string | max_issues_repo_path
string | max_issues_repo_name
string | max_issues_repo_head_hexsha
string | max_issues_repo_licenses
list | max_issues_count
int64 | max_issues_repo_issues_event_min_datetime
string | max_issues_repo_issues_event_max_datetime
string | max_forks_repo_path
string | max_forks_repo_name
string | max_forks_repo_head_hexsha
string | max_forks_repo_licenses
list | max_forks_count
int64 | max_forks_repo_forks_event_min_datetime
string | max_forks_repo_forks_event_max_datetime
string | content
string | avg_line_length
float64 | max_line_length
int64 | alphanum_fraction
float64 | qsc_code_num_words_quality_signal
int64 | qsc_code_num_chars_quality_signal
float64 | qsc_code_mean_word_length_quality_signal
float64 | qsc_code_frac_words_unique_quality_signal
float64 | qsc_code_frac_chars_top_2grams_quality_signal
float64 | qsc_code_frac_chars_top_3grams_quality_signal
float64 | qsc_code_frac_chars_top_4grams_quality_signal
float64 | qsc_code_frac_chars_dupe_5grams_quality_signal
float64 | qsc_code_frac_chars_dupe_6grams_quality_signal
float64 | qsc_code_frac_chars_dupe_7grams_quality_signal
float64 | qsc_code_frac_chars_dupe_8grams_quality_signal
float64 | qsc_code_frac_chars_dupe_9grams_quality_signal
float64 | qsc_code_frac_chars_dupe_10grams_quality_signal
float64 | qsc_code_frac_chars_replacement_symbols_quality_signal
float64 | qsc_code_frac_chars_digital_quality_signal
float64 | qsc_code_frac_chars_whitespace_quality_signal
float64 | qsc_code_size_file_byte_quality_signal
float64 | qsc_code_num_lines_quality_signal
float64 | qsc_code_num_chars_line_max_quality_signal
float64 | qsc_code_num_chars_line_mean_quality_signal
float64 | qsc_code_frac_chars_alphabet_quality_signal
float64 | qsc_code_frac_chars_comments_quality_signal
float64 | qsc_code_cate_xml_start_quality_signal
float64 | qsc_code_frac_lines_dupe_lines_quality_signal
float64 | qsc_code_cate_autogen_quality_signal
float64 | qsc_code_frac_lines_long_string_quality_signal
float64 | qsc_code_frac_chars_string_length_quality_signal
float64 | qsc_code_frac_chars_long_word_length_quality_signal
float64 | qsc_code_frac_lines_string_concat_quality_signal
float64 | qsc_code_cate_encoded_data_quality_signal
float64 | qsc_code_frac_chars_hex_words_quality_signal
float64 | qsc_code_frac_lines_prompt_comments_quality_signal
float64 | qsc_code_frac_lines_assert_quality_signal
float64 | qsc_codepython_cate_ast_quality_signal
float64 | qsc_codepython_frac_lines_func_ratio_quality_signal
float64 | qsc_codepython_cate_var_zero_quality_signal
bool | qsc_codepython_frac_lines_pass_quality_signal
float64 | qsc_codepython_frac_lines_import_quality_signal
float64 | qsc_codepython_frac_lines_simplefunc_quality_signal
float64 | qsc_codepython_score_lines_no_logic_quality_signal
float64 | qsc_codepython_frac_lines_print_quality_signal
float64 | qsc_code_num_words
int64 | qsc_code_num_chars
int64 | qsc_code_mean_word_length
int64 | qsc_code_frac_words_unique
null | qsc_code_frac_chars_top_2grams
int64 | qsc_code_frac_chars_top_3grams
int64 | qsc_code_frac_chars_top_4grams
int64 | qsc_code_frac_chars_dupe_5grams
int64 | qsc_code_frac_chars_dupe_6grams
int64 | qsc_code_frac_chars_dupe_7grams
int64 | qsc_code_frac_chars_dupe_8grams
int64 | qsc_code_frac_chars_dupe_9grams
int64 | qsc_code_frac_chars_dupe_10grams
int64 | qsc_code_frac_chars_replacement_symbols
int64 | qsc_code_frac_chars_digital
int64 | qsc_code_frac_chars_whitespace
int64 | qsc_code_size_file_byte
int64 | qsc_code_num_lines
int64 | qsc_code_num_chars_line_max
int64 | qsc_code_num_chars_line_mean
int64 | qsc_code_frac_chars_alphabet
int64 | qsc_code_frac_chars_comments
int64 | qsc_code_cate_xml_start
int64 | qsc_code_frac_lines_dupe_lines
int64 | qsc_code_cate_autogen
int64 | qsc_code_frac_lines_long_string
int64 | qsc_code_frac_chars_string_length
int64 | qsc_code_frac_chars_long_word_length
int64 | qsc_code_frac_lines_string_concat
null | qsc_code_cate_encoded_data
int64 | qsc_code_frac_chars_hex_words
int64 | qsc_code_frac_lines_prompt_comments
int64 | qsc_code_frac_lines_assert
int64 | qsc_codepython_cate_ast
int64 | qsc_codepython_frac_lines_func_ratio
int64 | qsc_codepython_cate_var_zero
int64 | qsc_codepython_frac_lines_pass
int64 | qsc_codepython_frac_lines_import
int64 | qsc_codepython_frac_lines_simplefunc
int64 | qsc_codepython_score_lines_no_logic
int64 | qsc_codepython_frac_lines_print
int64 | effective
string | hits
int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d8b04d154727794172d6912105ad8cf9cdd1f8ac
| 4,040
|
py
|
Python
|
src/backend/marsha/core/tests/test_utils_url_utils.py
|
marin-leonard/marsha
|
b5d6bf98fda27acd3a08577b82dd98bcd39bfd8d
|
[
"MIT"
] | 64
|
2018-04-26T23:46:14.000Z
|
2022-03-26T21:32:23.000Z
|
src/backend/marsha/core/tests/test_utils_url_utils.py
|
marin-leonard/marsha
|
b5d6bf98fda27acd3a08577b82dd98bcd39bfd8d
|
[
"MIT"
] | 533
|
2018-04-17T10:17:24.000Z
|
2022-03-31T13:07:49.000Z
|
src/backend/marsha/core/tests/test_utils_url_utils.py
|
marin-leonard/marsha
|
b5d6bf98fda27acd3a08577b82dd98bcd39bfd8d
|
[
"MIT"
] | 16
|
2018-09-21T12:52:34.000Z
|
2021-11-29T16:44:51.000Z
|
"""Test the url utils of the Marsha core app."""
from django.test import RequestFactory, TestCase
from ..utils.url_utils import build_absolute_uri_behind_proxy, uri_scheme_behind_proxy
class URLUtilsTestCase(TestCase):
"""Test our time utils."""
def test_uri_scheme_behind_proxy(self):
"""Test fix uris behind proxy."""
factory = RequestFactory()
request_url = "/request/url/"
request = factory.get(
request_url,
)
http_proxy_request = factory.get(
request_url,
HTTP_X_FORWARDED_PROTO="http",
)
https_proxy_request = factory.get(
request_url,
HTTP_X_FORWARDED_PROTO="https",
)
def _test_without_proxy(expected_url, url):
self.assertEqual(expected_url, uri_scheme_behind_proxy(request, url))
def _test_with_http_proxy(expected_url, url):
self.assertEqual(
expected_url, uri_scheme_behind_proxy(http_proxy_request, url)
)
def _test_with_https_proxy(expected_url, url):
self.assertEqual(
expected_url, uri_scheme_behind_proxy(https_proxy_request, url)
)
_test_without_proxy(
"http://testserver/some/url/", "http://testserver/some/url/"
)
_test_without_proxy(
"https://testserver/some/url/", "https://testserver/some/url/"
)
_test_with_http_proxy(
"http://testserver/some/url/", "http://testserver/some/url/"
)
_test_with_http_proxy(
"https://testserver/some/url/", "https://testserver/some/url/"
)
_test_with_https_proxy(
"https://testserver/some/url/", "http://testserver/some/url/"
)
_test_with_https_proxy(
"https://testserver/some/url/", "https://testserver/some/url/"
)
def test_build_absolute_uri_behind_proxy(self):
"""Test absolute uris behind proxy."""
factory = RequestFactory()
request_url = "/request/url/"
request = factory.get(
request_url,
)
http_proxy_request = factory.get(
request_url,
HTTP_X_FORWARDED_PROTO="http",
)
https_proxy_request = factory.get(
request_url,
HTTP_X_FORWARDED_PROTO="https",
)
def _test_without_proxy(expected_url, url):
self.assertEqual(
expected_url, build_absolute_uri_behind_proxy(request, url)
)
def _test_with_http_proxy(expected_url, url):
self.assertEqual(
expected_url, build_absolute_uri_behind_proxy(http_proxy_request, url)
)
def _test_with_https_proxy(expected_url, url):
self.assertEqual(
expected_url, build_absolute_uri_behind_proxy(https_proxy_request, url)
)
_test_without_proxy(
"http://testserver/some/url/", "http://testserver/some/url/"
)
_test_without_proxy(
"https://testserver/some/url/", "https://testserver/some/url/"
)
_test_without_proxy("http://testserver/request/url/", None)
_test_without_proxy("http://testserver/request/url/", "")
_test_with_http_proxy(
"http://testserver/some/url/", "http://testserver/some/url/"
)
_test_with_http_proxy(
"https://testserver/some/url/", "https://testserver/some/url/"
)
_test_with_http_proxy("http://testserver/request/url/", None)
_test_with_http_proxy("http://testserver/request/url/", "")
_test_with_https_proxy(
"https://testserver/some/url/", "http://testserver/some/url/"
)
_test_with_https_proxy(
"https://testserver/some/url/", "https://testserver/some/url/"
)
_test_with_https_proxy("https://testserver/request/url/", None)
_test_with_https_proxy("https://testserver/request/url/", "")
| 34.529915
| 87
| 0.603713
| 437
| 4,040
| 5.183066
| 0.09611
| 0.148344
| 0.180132
| 0.135982
| 0.901104
| 0.877263
| 0.875497
| 0.839735
| 0.795143
| 0.795143
| 0
| 0
| 0.279208
| 4,040
| 116
| 88
| 34.827586
| 0.777816
| 0.030693
| 0
| 0.578947
| 0
| 0
| 0.227985
| 0
| 0
| 0
| 0
| 0
| 0.063158
| 1
| 0.084211
| false
| 0
| 0.021053
| 0
| 0.115789
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
d8b428384ebe07f6c73866b33a9a38d6d1b61578
| 11,113
|
py
|
Python
|
src/lms.py
|
sahilbansal17/Library-Management-System
|
b7a48ef22e731de37d11579c87cbb60270a0ab25
|
[
"MIT"
] | null | null | null |
src/lms.py
|
sahilbansal17/Library-Management-System
|
b7a48ef22e731de37d11579c87cbb60270a0ab25
|
[
"MIT"
] | null | null | null |
src/lms.py
|
sahilbansal17/Library-Management-System
|
b7a48ef22e731de37d11579c87cbb60270a0ab25
|
[
"MIT"
] | null | null | null |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# GUI module generated by PAGE version 4.21
# in conjunction with Tcl version 8.6
# Mar 05, 2019 12:51:28 AM IST platform: Linux
import sys
try:
import Tkinter as tk
except ImportError:
import tkinter as tk
try:
import ttk
py3 = False
except ImportError:
import tkinter.ttk as ttk
py3 = True
import lms_support
def vp_start_gui():
'''Starting point when module is the main routine.'''
global val, w, root
root = tk.Tk()
top = Toplevel1 (root)
lms_support.init(root, top)
root.mainloop()
w = None
def create_Toplevel1(root, *args, **kwargs):
'''Starting point when module is imported by another program.'''
global w, w_win, rt
rt = root
w = tk.Toplevel (root)
top = Toplevel1 (w)
lms_support.init(w, top, *args, **kwargs)
return (w, top)
def destroy_Toplevel1():
global w
w.destroy()
w = None
class Toplevel1:
def __init__(self, top=None):
'''This class configures and populates the toplevel window.
top is the toplevel containing window.'''
_bgcolor = '#d9d9d9' # X11 color: 'gray85'
_fgcolor = '#000000' # X11 color: 'black'
_compcolor = '#d9d9d9' # X11 color: 'gray85'
_ana1color = '#d9d9d9' # X11 color: 'gray85'
_ana2color = '#ececec' # Closest X11 color: 'gray92'
top.geometry("1000x700+250+74")
top.title("Library Management System - IIT Jammu")
top.configure(highlightcolor="black")
top.configure(padx="10")
top.configure(pady="10")
self.menubar = tk.Menu(top,font="TkMenuFont",bg=_bgcolor,fg=_fgcolor)
top.configure(menu = self.menubar)
self.sub_menu = tk.Menu(top,tearoff=0)
self.menubar.add_cascade(menu=self.sub_menu,
activebackground="#ececec",
activeforeground="#000000",
background="#d9d9d9",
font="TkMenuFont",
foreground="#000000",
label="Books")
self.sub_menu.add_command(
activebackground="#ececec",
activeforeground="#000000",
background="#d9d9d9",
font="TkMenuFont",
foreground="#000000",
label="List Books", command=lms_support.show_books)
self.sub_menu.add_command(
activebackground="#ececec",
activeforeground="#000000",
background="#d9d9d9",
font="TkMenuFont",
foreground="#000000",
label="Add Book", command=lms_support.add_book_command)
self.sub_menu.add_command(
activebackground="#ececec",
activeforeground="#000000",
background="#d9d9d9",
font="TkMenuFont",
foreground="#000000",
label="Delete Book")
self.sub_menu.add_command(
activebackground="#ececec",
activeforeground="#000000",
background="#d9d9d9",
font="TkMenuFont",
foreground="#000000",
label="Edit Book")
self.sub_menu1 = tk.Menu(top,tearoff=0)
self.menubar.add_cascade(menu=self.sub_menu1,
activebackground="#ececec",
activeforeground="#000000",
background="#d9d9d9",
font="TkMenuFont",
foreground="#000000",
label="Periodicals")
self.sub_menu1.add_command(
activebackground="#ececec",
activeforeground="#000000",
background="#d9d9d9",
font="TkMenuFont",
foreground="#000000",
label="List Periodicals", command=lms_support.show_periodicals)
self.sub_menu1.add_command(
activebackground="#ececec",
activeforeground="#000000",
background="#d9d9d9",
font="TkMenuFont",
foreground="#000000",
label="Add Periodical")
self.sub_menu1.add_command(
activebackground="#ececec",
activeforeground="#000000",
background="#d9d9d9",
font="TkMenuFont",
foreground="#000000",
label="Delete Periodical")
self.sub_menu1.add_command(
activebackground="#ececec",
activeforeground="#000000",
background="#d9d9d9",
font="TkMenuFont",
foreground="#000000",
label="Edit Periodical")
self.sub_menu12 = tk.Menu(top,tearoff=0)
self.menubar.add_cascade(menu=self.sub_menu12,
activebackground="#ececec",
activeforeground="#000000",
background="#d9d9d9",
font="TkMenuFont",
foreground="#000000",
label="Users")
self.sub_menu12.add_command(
activebackground="#ececec",
activeforeground="#000000",
background="#d9d9d9",
font="TkMenuFont",
foreground="#000000",
label="List Users", command=lms_support.show_users)
self.sub_menu12.add_command(
activebackground="#ececec",
activeforeground="#000000",
background="#d9d9d9",
font="TkMenuFont",
foreground="#000000",
label="Add User")
self.sub_menu12.add_command(
activebackground="#ececec",
activeforeground="#000000",
background="#d9d9d9",
font="TkMenuFont",
foreground="#000000",
label="Delete User")
self.sub_menu12.add_command(
activebackground="#ececec",
activeforeground="#000000",
background="#d9d9d9",
font="TkMenuFont",
foreground="#000000",
label="Edit Users")
self.sub_menu123 = tk.Menu(top,tearoff=0)
self.menubar.add_cascade(menu=self.sub_menu123,
activebackground="#ececec",
activeforeground="#000000",
background="#d9d9d9",
compound="left",
font="TkMenuFont",
foreground="#000000",
label="Issued Books")
self.sub_menu1234 = tk.Menu(top,tearoff=0)
self.menubar.add_cascade(menu=self.sub_menu1234,
activebackground="#ececec",
activeforeground="#000000",
background="#d9d9d9",
compound="left",
font="TkMenuFont",
foreground="#000000",
label="Issued Periodicals")
self.sub_menu12345 = tk.Menu(top,tearoff=0)
self.menubar.add_cascade(menu=self.sub_menu12345,
activebackground="#ececec",
activeforeground="#000000",
background="#d9d9d9",
compound="left",
font="TkMenuFont",
foreground="#000000",
label="Authors")
self.sub_menu12345.add_command(
activebackground="#ececec",
activeforeground="#000000",
background="#d9d9d9",
compound="left",
font="TkMenuFont",
foreground="#000000",
label="Book Authors")
self.sub_menu12345.add_command(
activebackground="#ececec",
activeforeground="#000000",
background="#d9d9d9",
compound="left",
font="TkMenuFont",
foreground="#000000",
label="Paper Authors")
self.sub_menu123456 = tk.Menu(top,tearoff=0)
self.menubar.add_cascade(menu=self.sub_menu123456,
activebackground="#ececec",
activeforeground="#000000",
background="#d9d9d9",
compound="left",
font="TkMenuFont",
foreground="#000000",
label="Papers")
self.sub_menu1234567 = tk.Menu(top,tearoff=0)
self.menubar.add_cascade(menu=self.sub_menu1234567,
activebackground="#ececec",
activeforeground="#000000",
background="#d9d9d9",
compound="left",
font="TkMenuFont",
foreground="#000000",
label="Publishers")
self.sub_menu1234567.add_command(
activebackground="#ececec",
activeforeground="#000000",
background="#d9d9d9",
compound="left",
font="TkMenuFont",
foreground="#000000",
label="Book Publishers")
self.sub_menu1234567.add_command(
activebackground="#ececec",
activeforeground="#000000",
background="#d9d9d9",
compound="left",
font="TkMenuFont",
foreground="#000000",
label="Periodical Publishers")
self.sub_menu12345678 = tk.Menu(top,tearoff=0)
self.menubar.add_cascade(menu=self.sub_menu12345678,
activebackground="#ececec",
activeforeground="#000000",
background="#d9d9d9",
compound="left",
font="TkMenuFont",
foreground="#000000",
label="Tags")
self.sub_menu12345678.add_command(
activebackground="#ececec",
activeforeground="#000000",
background="#d9d9d9",
compound="left",
font="TkMenuFont",
foreground="#000000",
label="Book Tags")
self.sub_menu12345678.add_command(
activebackground="#ececec",
activeforeground="#000000",
background="#d9d9d9",
compound="left",
font="TkMenuFont",
foreground="#000000",
label="Publisher Tags")
self.sub_menu123456789 = tk.Menu(top,tearoff=0)
self.menubar.add_cascade(menu=self.sub_menu123456789,
activebackground="#ececec",
activeforeground="#000000",
background="#d9d9d9",
compound="left",
font="TkMenuFont",
foreground="#000000",
label="Disciplines")
self.sub_menu12345678910 = tk.Menu(top,tearoff=0)
self.menubar.add_cascade(menu=self.sub_menu12345678910,
activebackground="#ececec",
activeforeground="#000000",
background="#d9d9d9",
compound="left",
font="TkMenuFont",
foreground="#000000",
label="Messages")
if __name__ == '__main__':
vp_start_gui()
| 36.798013
| 79
| 0.519842
| 917
| 11,113
| 6.183206
| 0.175573
| 0.049383
| 0.194356
| 0.225044
| 0.728219
| 0.7194
| 0.7194
| 0.7194
| 0.7194
| 0.7194
| 0
| 0.097085
| 0.364168
| 11,113
| 301
| 80
| 36.920266
| 0.70535
| 0.043373
| 0
| 0.667883
| 1
| 0
| 0.150345
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.014599
| false
| 0
| 0.029197
| 0
| 0.051095
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
2b025e896b4baf5908a73bb26a25c2e67b3b91aa
| 19,795
|
py
|
Python
|
tests/test_plot.py
|
amangoel185/hist
|
040872b978ecfd98e9836ad0a7e5c27d8dd44d09
|
[
"BSD-3-Clause"
] | 84
|
2020-02-12T02:02:58.000Z
|
2022-03-23T10:50:03.000Z
|
tests/test_plot.py
|
amangoel185/hist
|
040872b978ecfd98e9836ad0a7e5c27d8dd44d09
|
[
"BSD-3-Clause"
] | 213
|
2020-03-09T02:38:25.000Z
|
2022-03-16T19:22:31.000Z
|
tests/test_plot.py
|
amangoel185/hist
|
040872b978ecfd98e9836ad0a7e5c27d8dd44d09
|
[
"BSD-3-Clause"
] | 15
|
2020-03-14T12:05:18.000Z
|
2021-11-12T14:25:07.000Z
|
from __future__ import annotations
import numpy as np
import pytest
from hist import Hist, NamedHist, axis
plt = pytest.importorskip("matplotlib.pyplot")
pytest.importorskip("scipy")
def test_general_plot1d():
"""
Test general plot1d -- whether 1d-Hist can be plotted properly.
"""
h = Hist(
axis.Regular(
50, -5, 5, name="A", label="a [units]", underflow=False, overflow=False
),
).fill(np.random.normal(size=10))
assert h.plot1d(color="green", ls="--", lw=3)
plt.close("all")
# dimension error
h = Hist(
axis.Regular(
50, -5, 5, name="A", label="a [units]", underflow=False, overflow=False
),
axis.Regular(
50, -4, 4, name="B", label="b [units]", underflow=False, overflow=False
),
).fill(np.random.normal(size=10), np.random.normal(size=10))
with pytest.raises(Exception):
h.plot1d()
# wrong kwargs names
with pytest.raises(Exception):
h.project("A").plot1d(abc="red")
# wrong kwargs type
with pytest.raises(Exception):
h.project("B").plot1d(ls="red")
plt.close("all")
def test_general_plot2d():
"""
Test general plot2d -- whether 2d-Hist can be plotted properly.
"""
h = Hist(
axis.Regular(
50, -5, 5, name="A", label="a [units]", underflow=False, overflow=False
),
axis.Regular(
50, -4, 4, name="B", label="b [units]", underflow=False, overflow=False
),
).fill(np.random.normal(size=10), np.random.normal(size=10))
assert h.plot2d(cmap="cividis")
# dimension error
h = Hist(
axis.Regular(
50, -5, 5, name="A", label="a [units]", underflow=False, overflow=False
),
axis.Regular(
50, -4, 4, name="B", label="b [units]", underflow=False, overflow=False
),
).fill(np.random.normal(size=10), np.random.normal(size=10))
with pytest.raises(Exception):
h.project("A").plot2d()
# wrong kwargs names
with pytest.raises(Exception):
h.plot2d(abc="red")
# wrong kwargs type
with pytest.raises(Exception):
h.plot2d(cmap=0.1)
plt.close("all")
def test_general_plot2d_full():
"""
Test general plot2d_full -- whether 2d-Hist can be fully plotted properly.
"""
h = Hist(
axis.Regular(
50, -5, 5, name="A", label="a [units]", underflow=False, overflow=False
),
axis.Regular(
50, -4, 4, name="B", label="b [units]", underflow=False, overflow=False
),
).fill(np.random.normal(size=10), np.random.normal(size=10))
assert h.plot2d_full(
main_cmap="cividis",
top_ls="--",
top_color="orange",
top_lw=2,
side_ls="-.",
side_lw=1,
side_color="steelblue",
)
assert h.plot2d_full(
main_cmap="cividis",
top_kw={
"ls": "--",
"color": "orange",
"lw": 2,
},
side_kw={
"ls": "-.",
"lw": 1,
"color": "steelblue",
},
)
# dimension error
h = Hist(
axis.Regular(
50, -5, 5, name="A", label="a [units]", underflow=False, overflow=False
),
axis.Regular(
50, -4, 4, name="B", label="b [units]", underflow=False, overflow=False
),
).fill(np.random.normal(size=10), np.random.normal(size=10))
with pytest.raises(Exception):
h.project("A").plot2d_full()
# wrong kwargs names
with pytest.raises(Exception):
h.plot2d_full(abc="red")
with pytest.raises(Exception):
h.plot2d_full(color="red")
# wrong kwargs type
with pytest.raises(Exception):
h.plot2d_full(main_cmap=0.1, side_lw="autumn")
plt.close("all")
def test_general_plot():
"""
Test general plot -- whether Hist can be plotted properly.
"""
h = Hist(
axis.Regular(
50, -5, 5, name="A", label="a [units]", underflow=False, overflow=False
),
).fill(np.random.normal(size=10))
assert h.plot(color="green", ls="--", lw=3)
h = Hist(
axis.Regular(
50, -5, 5, name="A", label="a [units]", underflow=False, overflow=False
),
axis.Regular(
50, -4, 4, name="B", label="b [units]", underflow=False, overflow=False
),
).fill(np.random.normal(size=10), np.random.normal(size=10))
assert h.plot(cmap="cividis")
# dimension error
h = Hist(
axis.Regular(
50, -5, 5, name="A", label="a [units]", underflow=False, overflow=False
),
axis.Regular(
50, -4, 4, name="B", label="b [units]", underflow=False, overflow=False
),
axis.Regular(
50, -4, 4, name="C", label="c [units]", underflow=False, overflow=False
),
).fill(
np.random.normal(size=10), np.random.normal(size=10), np.random.normal(size=10)
)
with pytest.raises(Exception):
h.plot()
# wrong kwargs names
with pytest.raises(Exception):
h.project("A").plot(abc="red")
with pytest.raises(Exception):
h.project("A", "C").plot(abc="red")
# wrong kwargs type
with pytest.raises(Exception):
h.project("B").plot(ls="red")
with pytest.raises(Exception):
h.project("A", "C").plot(cmap=0.1)
plt.close("all")
def test_general_plot_pull():
"""
Test general plot_pull -- whether 1d-Hist can be plotted pull properly.
"""
np.random.seed(42)
h = Hist(
axis.Regular(
50, -4, 4, name="S", label="s [units]", underflow=False, overflow=False
)
).fill(np.random.normal(size=10))
def pdf(x, a=1 / np.sqrt(2 * np.pi), x0=0, sigma=1, offset=0):
return a * np.exp(-((x - x0) ** 2) / (2 * sigma ** 2)) + offset
assert h.plot_pull(
pdf,
eb_ecolor="crimson",
eb_mfc="crimson",
eb_mec="crimson",
eb_fmt="o",
eb_ms=6,
eb_capsize=1,
eb_capthick=2,
eb_alpha=0.8,
fp_c="chocolate",
fp_ls="-",
fp_lw=3,
fp_alpha=1.0,
bar_fc="orange",
pp_num=6,
pp_fc="orange",
pp_alpha=0.618,
pp_ec=None,
)
pdf_str = "a * np.exp(-((x - x0) ** 2) / (2 * sigma ** 2)) + offset"
assert h.plot_pull(pdf_str)
assert h.plot_pull("gauss")
assert h.plot_pull("gauss", likelihood=True)
# dimension error
hh = Hist(
axis.Regular(
50, -4, 4, name="X", label="s [units]", underflow=False, overflow=False
),
axis.Regular(
50, -4, 4, name="Y", label="s [units]", underflow=False, overflow=False
),
).fill(np.random.normal(size=10), np.random.normal(size=10))
with pytest.raises(Exception):
hh.plot_pull(pdf)
# no eval-able variable
with pytest.raises(Exception):
h.plot_pull("1")
with pytest.raises(Exception):
h.plot_pull(1)
with pytest.raises(Exception):
h.plot_pull(0.1)
with pytest.raises(Exception):
h.plot_pull((1, 2))
with pytest.raises(Exception):
h.plot_pull([1, 2])
with pytest.raises(Exception):
h.plot_pull({"a": 1})
# wrong kwargs names
with pytest.raises(Exception):
h.plot_pull(pdf, abc="crimson", xyz="crimson")
with pytest.raises(Exception):
h.plot_pull(pdf, ecolor="crimson", mfc="crimson")
# not disabled params
h.plot_pull(pdf, eb_label="value")
h.plot_pull(pdf, fp_label="value")
h.plot_pull(pdf, ub_label="value")
h.plot_pull(pdf, bar_label="value")
h.plot_pull(pdf, pp_label="value")
# disabled params
with pytest.raises(Exception):
h.plot_pull(pdf, bar_width="value")
# wrong kwargs types
with pytest.raises(Exception):
h.plot_pull(pdf, eb_ecolor=1.0, eb_mfc=1.0) # kwargs should be str
plt.close("all")
def test_named_plot1d():
"""
Test named plot1d -- whether 1d-NamedHist can be plotted properly.
"""
h = NamedHist(
axis.Regular(
50, -5, 5, name="A", label="a [units]", underflow=False, overflow=False
),
).fill(A=np.random.normal(size=10))
assert h.plot1d(color="green", ls="--", lw=3)
plt.close("all")
# dimension error
h = NamedHist(
axis.Regular(
50, -5, 5, name="A", label="a [units]", underflow=False, overflow=False
),
axis.Regular(
50, -4, 4, name="B", label="b [units]", underflow=False, overflow=False
),
).fill(B=np.random.normal(size=10), A=np.random.normal(size=10))
with pytest.raises(Exception):
h.plot1d()
# wrong kwargs names
with pytest.raises(Exception):
h.project("A").plot1d(abc="red")
# wrong kwargs type
with pytest.raises(Exception):
h.project("B").plot1d(ls="red")
plt.close("all")
def test_named_plot2d():
"""
Test named plot2d -- whether 2d-NamedHist can be plotted properly.
"""
h = NamedHist(
axis.Regular(
50, -5, 5, name="A", label="a [units]", underflow=False, overflow=False
),
axis.Regular(
50, -4, 4, name="B", label="b [units]", underflow=False, overflow=False
),
).fill(B=np.random.normal(size=10), A=np.random.normal(size=10))
assert h.plot2d(cmap="cividis")
plt.close("all")
# dimension error
h = NamedHist(
axis.Regular(
50, -5, 5, name="A", label="a [units]", underflow=False, overflow=False
),
axis.Regular(
50, -4, 4, name="B", label="b [units]", underflow=False, overflow=False
),
).fill(B=np.random.normal(size=10), A=np.random.normal(size=10))
with pytest.raises(Exception):
h.project("A").plot2d()
# wrong kwargs names
with pytest.raises(Exception):
h.plot2d(abc="red")
# wrong kwargs type
with pytest.raises(Exception):
h.plot2d(cmap=0.1)
plt.close("all")
def test_named_plot2d_full():
"""
Test named plot2d_full -- whether 2d-NamedHist can be fully plotted properly.
"""
h = NamedHist(
axis.Regular(
50, -5, 5, name="A", label="a [units]", underflow=False, overflow=False
),
axis.Regular(
50, -4, 4, name="B", label="b [units]", underflow=False, overflow=False
),
).fill(B=np.random.normal(size=10), A=np.random.normal(size=10))
assert h.plot2d_full(
main_cmap="cividis",
top_ls="--",
top_color="orange",
top_lw=2,
side_ls="-.",
side_lw=1,
side_color="steelblue",
)
plt.close("all")
# dimension error
h = NamedHist(
axis.Regular(
50, -5, 5, name="A", label="a [units]", underflow=False, overflow=False
),
axis.Regular(
50, -4, 4, name="B", label="b [units]", underflow=False, overflow=False
),
).fill(B=np.random.normal(size=10), A=np.random.normal(size=10))
with pytest.raises(Exception):
h.project("A").plot2d_full()
# wrong kwargs names
with pytest.raises(Exception):
h.plot2d_full(abc="red")
with pytest.raises(Exception):
h.plot2d_full(color="red")
# wrong kwargs type
with pytest.raises(Exception):
h.plot2d_full(main_cmap=0.1, side_lw="autumn")
plt.close("all")
def test_named_plot():
"""
Test named plot -- whether NamedHist can be plotted properly.
"""
h = NamedHist(
axis.Regular(
50, -5, 5, name="A", label="a [units]", underflow=False, overflow=False
),
).fill(A=np.random.normal(size=10))
assert h.plot(color="green", ls="--", lw=3)
h = NamedHist(
axis.Regular(
50, -5, 5, name="A", label="a [units]", underflow=False, overflow=False
),
axis.Regular(
50, -4, 4, name="B", label="b [units]", underflow=False, overflow=False
),
).fill(B=np.random.normal(size=10), A=np.random.normal(size=10))
assert h.plot(cmap="cividis")
plt.close("all")
# dimension error
h = NamedHist(
axis.Regular(
50, -5, 5, name="A", label="a [units]", underflow=False, overflow=False
),
axis.Regular(
50, -4, 4, name="B", label="b [units]", underflow=False, overflow=False
),
axis.Regular(
50, -4, 4, name="C", label="c [units]", underflow=False, overflow=False
),
).fill(
A=np.random.normal(size=10),
B=np.random.normal(size=10),
C=np.random.normal(size=10),
)
with pytest.raises(Exception):
h.plot()
# wrong kwargs names
with pytest.raises(Exception):
h.project("A").plot(abc="red")
with pytest.raises(Exception):
h.project("A", "C").plot(abc="red")
# wrong kwargs type
with pytest.raises(Exception):
h.project("B").plot(ls="red")
with pytest.raises(Exception):
h.project("A", "C").plot(cmap=0.1)
plt.close("all")
def test_named_plot_pull():
"""
Test named plot_pull -- whether 1d-NamedHist can be plotted pull properly.
"""
np.random.seed(42)
h = NamedHist(
axis.Regular(
50, -4, 4, name="S", label="s [units]", underflow=False, overflow=False
)
).fill(S=np.random.normal(size=10))
def pdf(x, a=1 / np.sqrt(2 * np.pi), x0=0, sigma=1, offset=0):
return a * np.exp(-((x - x0) ** 2) / (2 * sigma ** 2)) + offset
assert h.plot_pull(
pdf,
eb_ecolor="crimson",
eb_mfc="crimson",
eb_mec="crimson",
eb_fmt="o",
eb_ms=6,
eb_capsize=1,
eb_capthick=2,
eb_alpha=0.8,
fp_c="chocolate",
fp_ls="-",
fp_lw=3,
fp_alpha=1.0,
bar_fc="orange",
pp_num=6,
pp_fc="orange",
pp_alpha=0.618,
pp_ec=None,
)
pdf_str = "a * np.exp(-((x - x0) ** 2) / (2 * sigma ** 2)) + offset"
assert h.plot_pull(pdf_str)
# dimension error
hh = NamedHist(
axis.Regular(
50, -4, 4, name="X", label="s [units]", underflow=False, overflow=False
),
axis.Regular(
50, -4, 4, name="Y", label="s [units]", underflow=False, overflow=False
),
).fill(X=np.random.normal(size=10), Y=np.random.normal(size=10))
with pytest.raises(Exception):
hh.plot_pull(pdf)
# no eval-able variable
with pytest.raises(Exception):
h.plot_pull("1")
with pytest.raises(Exception):
h.plot_pull(1)
with pytest.raises(Exception):
h.plot_pull(0.1)
with pytest.raises(Exception):
h.plot_pull((1, 2))
with pytest.raises(Exception):
h.plot_pull([1, 2])
with pytest.raises(Exception):
h.plot_pull({"a": 1})
plt.close("all")
# wrong kwargs names
with pytest.raises(Exception):
h.plot_pull(pdf, abc="crimson", xyz="crimson")
with pytest.raises(Exception):
h.plot_pull(pdf, ecolor="crimson", mfc="crimson")
# not disabled params
h.plot_pull(pdf, eb_label="value")
h.plot_pull(pdf, fp_label="value")
h.plot_pull(pdf, ub_label="value")
h.plot_pull(pdf, bar_label="value")
h.plot_pull(pdf, pp_label="value")
# disabled params
with pytest.raises(Exception):
h.plot_pull(pdf, bar_width="value")
# wrong kwargs types
with pytest.raises(Exception):
h.plot_pull(pdf, eb_ecolor=1.0, eb_mfc=1.0) # kwargs should be str
plt.close("all")
@pytest.mark.parametrize("str_alias", ["normal", "gauss", "gaus"])
@pytest.mark.parametrize("use_likelihood", [True, False])
def test_ratiolike_str_alias(str_alias, use_likelihood):
"""
Test str alias for callable in plot_ratio and plot_pull
"""
np.random.seed(42)
h = NamedHist(
axis.Regular(
50, -4, 4, name="S", label="s [units]", underflow=False, overflow=False
)
).fill(S=np.random.normal(size=10))
assert h.plot_ratio(str_alias, likelihood=use_likelihood)
assert h.plot_pull(str_alias, likelihood=use_likelihood)
@pytest.mark.mpl_image_compare(baseline_dir="baseline", savefig_kwargs={"dpi": 50})
def test_image_plot_pull():
"""
Test plot_pull by comparing against a reference image generated via
`pytest --mpl-generate-path=tests/baseline`
"""
np.random.seed(42)
h = Hist(
axis.Regular(
50, -4, 4, name="S", label="s [units]", underflow=False, overflow=False
)
).fill(np.random.normal(size=100))
def pdf(x, a=1 / np.sqrt(2 * np.pi), x0=0, sigma=1, offset=0):
return a * np.exp(-((x - x0) ** 2) / (2 * sigma ** 2)) + offset
fig = plt.figure()
assert h.plot_pull(
pdf,
eb_color="black",
fp_color="blue",
ub_color="lightblue",
fit_fmt=r"{name} = {value:.3g} $\pm$ {error:.3g}",
)
return fig
@pytest.mark.mpl_image_compare(baseline_dir="baseline", savefig_kwargs={"dpi": 50})
def test_image_plot_ratio_hist():
"""
Test plot_pull by comparing against a reference image generated via
`pytest --mpl-generate-path=tests/baseline`
"""
np.random.seed(42)
hist_1 = Hist(
axis.Regular(
50, -5, 5, name="X", label="x [units]", underflow=False, overflow=False
)
).fill(np.random.normal(size=1000))
hist_2 = Hist(
axis.Regular(
50, -5, 5, name="X", label="x [units]", underflow=False, overflow=False
)
).fill(np.random.normal(size=1700))
fig = plt.figure()
assert hist_1.plot_ratio(
hist_2, rp_num_label="numerator", rp_denom_label="denominator"
)
return fig
@pytest.mark.mpl_image_compare(baseline_dir="baseline", savefig_kwargs={"dpi": 50})
def test_image_plot_ratio_callable():
"""
Test plot_pull by comparing against a reference image generated via
`pytest --mpl-generate-path=tests/baseline`
"""
np.random.seed(42)
hist_1 = Hist(
axis.Regular(
50, -5, 5, name="X", label="x [units]", underflow=False, overflow=False
)
).fill(np.random.normal(size=1000))
def model(x, a=1 / np.sqrt(2 * np.pi), x0=0, sigma=1, offset=0):
return a * np.exp(-((x - x0) ** 2) / (2 * sigma ** 2)) + offset
fig = plt.figure()
assert hist_1.plot_ratio(
model, eb_color="black", fp_color="blue", ub_color="lightblue"
)
return fig
@pytest.mark.mpl_image_compare(baseline_dir="baseline", savefig_kwargs={"dpi": 50})
def test_plot1d_auto_handling():
"""
Test plot() by comparing against a reference image generated via
`pytest --mpl-generate-path=tests/baseline`
"""
np.random.seed(42)
h = Hist(
axis.Regular(10, 0, 10, name="variable", label="variable"),
axis.StrCategory("", name="dataset", growth=True),
)
h_nameless = Hist(
axis.Regular(10, 0, 10),
axis.StrCategory("", growth=True),
)
h.fill(dataset="A", variable=np.random.normal(3, 2, 100))
h.fill(dataset="B", variable=np.random.normal(5, 2, 100))
h.fill(dataset="C", variable=np.random.normal(7, 2, 100))
h_nameless.fill(np.random.normal(3, 2, 1000), "A")
h_nameless.fill(np.random.normal(5, 2, 1000), "B")
h_nameless.fill(np.random.normal(7, 2, 1000), "C")
fig, (ax1, ax2) = plt.subplots(2, 2, figsize=(14, 10))
assert h.plot(ax=ax1[0])
assert h_nameless.plot(ax=ax2[0])
# Discrete axis plotting not yet implemented
# assert h.plot(ax=ax1[1], overlay='variable')
# assert h.plot(ax=ax2[1], overlay=1)
return fig
| 26.080369
| 87
| 0.570194
| 2,678
| 19,795
| 4.129201
| 0.074309
| 0.041961
| 0.07524
| 0.117562
| 0.899801
| 0.873847
| 0.853952
| 0.846989
| 0.838669
| 0.829445
| 0
| 0.0369
| 0.264814
| 19,795
| 758
| 88
| 26.114776
| 0.722944
| 0.100935
| 0
| 0.822811
| 0
| 0.004073
| 0.07348
| 0
| 0
| 0
| 0
| 0
| 0.04888
| 1
| 0.038697
| false
| 0
| 0.01222
| 0.008147
| 0.06721
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
2b2bf238d356ba3bec046f119f4f429fb164b04b
| 501
|
py
|
Python
|
tests/test_pdb.py
|
yaelmi3/backslash
|
edf39caf97af2c926da01c340a83648f4874e97e
|
[
"BSD-3-Clause"
] | 17
|
2015-11-25T13:02:38.000Z
|
2021-12-14T20:18:36.000Z
|
tests/test_pdb.py
|
yaelmi3/backslash
|
edf39caf97af2c926da01c340a83648f4874e97e
|
[
"BSD-3-Clause"
] | 533
|
2015-11-24T12:47:13.000Z
|
2022-02-12T07:59:08.000Z
|
tests/test_pdb.py
|
parallelsystems/backslash
|
577cdd18d5f665a8b493c4b2e2a605b7e0f6e11b
|
[
"BSD-3-Clause"
] | 15
|
2015-11-22T13:25:54.000Z
|
2022-02-16T19:23:11.000Z
|
def test_report_in_pdb(started_session):
assert not started_session.in_pdb
started_session.report_in_pdb()
assert started_session.refresh().in_pdb
started_session.report_not_in_pdb()
assert not started_session.refresh().in_pdb
def test_report_in_pdb_end_session(started_session):
assert not started_session.in_pdb
started_session.report_in_pdb()
assert started_session.refresh().in_pdb
started_session.report_end()
assert not started_session.refresh().in_pdb
| 33.4
| 52
| 0.796407
| 74
| 501
| 4.932432
| 0.148649
| 0.460274
| 0.164384
| 0.260274
| 0.942466
| 0.843836
| 0.843836
| 0.652055
| 0.652055
| 0.652055
| 0
| 0
| 0.131737
| 501
| 14
| 53
| 35.785714
| 0.83908
| 0
| 0
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.5
| 1
| 0.166667
| false
| 0
| 0
| 0
| 0.166667
| 0
| 0
| 0
| 0
| null | 1
| 0
| 1
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
2b382c30335af70a2f422199d10517ee9cb5930f
| 533
|
py
|
Python
|
readme/config.py
|
VoIlAlex/readme-cli
|
b780edde2a1610681e6c87cbf2b08f03aec6dad6
|
[
"MIT"
] | 1
|
2020-12-13T20:25:26.000Z
|
2020-12-13T20:25:26.000Z
|
readme/config.py
|
VoIlAlex/readme-cli
|
b780edde2a1610681e6c87cbf2b08f03aec6dad6
|
[
"MIT"
] | null | null | null |
readme/config.py
|
VoIlAlex/readme-cli
|
b780edde2a1610681e6c87cbf2b08f03aec6dad6
|
[
"MIT"
] | null | null | null |
README_TEMPLATE_MEDIUM_URL = 'https://gist.githubusercontent.com/VoIlAlex/5ceb4cb4eff13faa29071610c21153ca/raw/14047fc9f9808e52a3f47aadf8e9b51c2d2e1791/README-template-medium.md'
README_TEMPLATE_SMALL_URL = 'https://gist.githubusercontent.com/VoIlAlex/db0d4f60be9b5c5a7ef444f63effc11d/raw/be7c596a0ba3f0a037824de09629f8cf95b1bbf4/README-template-small.md'
README_TEMPLATE_LARGE_URL = 'https://gist.githubusercontent.com/VoIlAlex/c5656213f978b570b7c571f5f1ef09f5/raw/b8ebb86188eda14a0407bf63931cc3dadb620710/README-template-large.md'
| 133.25
| 178
| 0.893058
| 48
| 533
| 9.729167
| 0.395833
| 0.179872
| 0.077088
| 0.186296
| 0.256959
| 0.256959
| 0
| 0
| 0
| 0
| 0
| 0.242366
| 0.016886
| 533
| 3
| 179
| 177.666667
| 0.648855
| 0
| 0
| 0
| 0
| 1
| 0.82364
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
991a7c4d1a411c82adcacf23182d27d387fd3715
| 59,666
|
py
|
Python
|
python/dgl_graphloader/csv_feature_loader.py
|
classicsong/dgl-graphloader
|
0bc9f8710bfb71f613c3fcb70573ed4c62dfb735
|
[
"Apache-2.0"
] | 2
|
2020-09-11T03:28:44.000Z
|
2020-09-13T13:38:02.000Z
|
python/dgl_graphloader/csv_feature_loader.py
|
classicsong/dgl-graphloader
|
0bc9f8710bfb71f613c3fcb70573ed4c62dfb735
|
[
"Apache-2.0"
] | 2
|
2020-09-11T03:29:53.000Z
|
2020-09-17T08:40:51.000Z
|
python/dgl_graphloader/csv_feature_loader.py
|
classicsong/dgl-graphloader
|
0bc9f8710bfb71f613c3fcb70573ed4c62dfb735
|
[
"Apache-2.0"
] | null | null | null |
"""Classes for loading raw features"""
import os
import csv
import numpy as np
from .utils import parse_category_single_feat, parse_category_multi_feat
from .utils import parse_numerical_feat
from .utils import parse_numerical_multihot_feat
from .utils import parse_word2vec_feature
from .utils import field2idx, get_id
class NodeFeatureLoader(object):
r"""Node feature loader class.
Load node features from data src.
The node ids are also inferred when loading the features.
Parameters
----------
input: str
Data source, for the csv file input,
it should be a string of file path
separator: str, optional
Delimiter(separator) used in csv file.
Default: `\t`
has_header: bool, optional
Whether the input data has col name.
Default: True
int_id: bool, optional
Whether the raw node id is an int,
this can help speed things up.
Default: False
eager_mode: bool, optional
Whether to use eager parse mode.
See **Note** for more details.
Default: False
encoding: str, optional
Input file encoding
Default: `utf-8`
verbose: bool, optional
Whether print debug info during parsing.
Default: False
Notes
-----
Currently, we only support raw csv file input.
Here we assume features created from different columns
are in the same order, thus we can concatenate them directly.
If eager_mode is True, the loader will processing
the features immediately after addXXXFeature
is called. This will case extra performance overhead
when merging multiple FeatureLoaders together to
build the DGLGraph. Currently eager_mode is not
supported.
If eager_mode if False, the features are not
processed until building the DGLGraph.
Examples
--------
** Creat a FeatureLoader to load user features from u.csv. **
>>> user_loader = dgl.data.FeatureLoader(input='u.csv',
separator="|")
>>> user_loader.addCategoryFeature(cols=["id", "gender"], node_type='user')
>>> user_loader.addWord2VecFeature(cols=["id", "occupation"], node_type='user')
** Creat a FeatureLoader to load movie features from m.csv. **
>>> movie_loader = dgl.data.FeatureLoader(input='u.item',
separator="|")
>>> movie_loader.addMultiHotFeature(cols=["id", "Action", "Adventure",
"Animation", "Children", "Comedy", "Crime",
"Documentary", "Drama", "Fantasy", "Film-Noir",
"Horror", "Musical", "Mystery", "Romance",
"Sci-Fi", "Thriller", "War", "Western"],
norm=True,
node_type='movie')
>>> movie_loader.addWord2VecFeature(cols=["id", "title"],
language=['en_lang', 'fr_lang'],
node_type='movie')
** Append features into graph loader **
>>> graphloader = dgl.data.GraphLoader()
>>> graphloader.appendFeature(user_loader)
>>> graphloader.appendFeature(movie_loader)
"""
def __init__(self, input, separator='\t', has_head=True, int_id=False, eager_mode=False,
encoding='utf-8', verbose=False):
if not os.path.exists(input):
raise RuntimeError("File not exist {}".format(input))
assert eager_mode is False, "Currently we do not support eager_mode"
self._input = input
self._separator = separator
self._has_head = has_head
self._int_id = int_id
self._eager_mode = eager_mode
self._encoding = encoding
self._verbose = verbose
self._raw_features = []
def process(self, node_dicts):
""" Preparing nodes and features for creating dgl graph.
Nodes are converted into consecutive integer ID spaces and
its corresponding features are concatenated together.
Parameters
----------
node_dicts: dict of dict
{node_type: {node_str : node_id}}
Return
------
dict
{node_type: (node_ids, node_feats)}
"""
results = {}
for raw_feat in self._raw_features:
feat_name, node_type, nodes, feats = raw_feat
if node_type in node_dicts:
nid_map = node_dicts[node_type]
else:
nid_map = {}
node_dicts[node_type] = nid_map
nids = []
for node in nodes:
nid = get_id(nid_map, node)
nids.append(nid)
nids = np.asarray(nids, dtype='long')
# chech if same node_type already exists
# if so concatenate the features.
if node_type in results:
if feat_name in results[node_type]:
last_nids, last_feats = results[node_type][feat_name]
assert last_nids.shape[0] == nids.shape[0], \
"Input features from different columns should have the same shape." \
"but got {} vs. {}".format(last_nids.shape[0], nids.shape[0])
results[node_type][feat_name] = (last_nids,
np.concatenate((last_feats, feats), axis=1))
else:
results[node_type][feat_name] = (nids, feats)
else:
results[node_type] = {}
results[node_type][feat_name] = (nids, feats)
return results
def addCategoryFeature(self, cols, feat_name='nf', rows=None, norm=None, node_type=None):
r"""Add categorical features for nodes
Two or more columns of the **input** are chosen, one for
node name and the others for category data.
If there is only one column storing the category data,
it will be encoded using one-hot encoding.
If there are multiple columns storing the category data,
they will be encoded using multi-hot encoding.
Parameters
----------
cols: list of str or int
Which columns to use. Supported data formats are:
(1) [str, str, ...] column names for node and category.
The first column is treated as node name and
the second and the rest columns are treated as category data.
(2) [int, int, ...] column numbers for node and category.
The first column is treated as node name and
the second and the rest columns are treated as category data.
feat_name: str
Feature name.
Default: nf
rows: numpy.array or list of int
Which row(s) to load. None to load all.
Default: None
norm: str
Which kind of normalization is applied to the features.
Supported normalization ops are:
(1) None, do nothing.
(2) `col`, column-based normalization. Normalize the data for each column:
.. math::
x_{ij} = \frac{x_{ij}}{\sum_{i=0}^N{x_{ij}}}
(3) `row`, sane as None.
Default:None
node_type: str
Node type. If None, default node type is chosen.
Default: None
Notes
-----
* Empty string is allowed when there are multiple columns
storing the category info.
Examples
--------
** Load category features for single category column **
Example data of u.csv is as follows:
====== ======
name gender
====== ======
John M
Tim M
Maggie F
====== ======
>>> user_loader = dgl.data.FeatureLoader(input='u.csv',
separator="|",
has_head=True)
>>> user_loader.addCategoryFeature(cols=["name", "gender"])
** Load category features for multiple categories **
Example data of u.csv is as follows:
====== ======== ========
name role1 role2
====== ======== ========
John Actor Director
Tim Director Writer
Maggie Actor
====== ======== ========
>>> user_loader = dgl.data.FeatureLoader(input='u.csv',
separator="|",
has_head=True)
>>> user_loader.addCategoryFeature(cols=["name", "role1", "role2"],
norm='col')
"""
if not isinstance(cols, list):
raise RuntimeError("The cols should be a list of string or int")
if len(cols) < 2:
raise RuntimeError("addCategoryFeature requires at least 2 columns, " \
"one for nodes, others for category data")
if self._verbose:
print('NodeFeatureLoader.addCategoryFeature " \
"from {} with {}'.format(self._input, cols))
nodes = []
features = []
with open(self._input, newline='', encoding=self._encoding) as csvfile:
if isinstance(cols[0], str):
assert self._has_head, \
"The column name is provided to identify the target column." \
"The input csv should have the head field"
reader = csv.reader(csvfile, delimiter=self._separator)
heads = next(reader)
# find index of each target field name
idx_cols = field2idx(cols, heads)
assert len(idx_cols) == len(cols), \
"one or more field names are not found in {}".format(self._input)
cols = idx_cols
else:
reader = csv.reader(csvfile, delimiter=self._separator)
if self._has_head:
# skip field name
next(reader)
# fast path, all rows are used
if rows is None:
for line in reader:
nodes.append(line[cols[0]])
if len(cols) == 2:
features.append(line[cols[1]])
else:
row_f = []
for i in range(1, len(cols)):
# not empty string
if line[cols[i]] != "":
row_f.append(line[cols[i]])
features.append(row_f)
else:
row_idx = 0
for idx, line in enumerate(reader):
if len(rows) == row_idx:
break
if rows[row_idx] == idx:
nodes.append(line[cols[0]])
if len(cols) == 2:
features.append(line[cols[1]])
else:
row_f = []
for i in range(1, len(cols)):
# not empty string
if line[cols[i]] != "":
row_f.append(line[cols[i]])
features.append(row_f)
row_idx += 1
# else skip this line
# single category
if len(cols) == 2:
feat, _ = parse_category_single_feat(features, norm=norm)
else:
feat, _ = parse_category_multi_feat(features, norm=norm)
assert len(nodes) == feat.shape[0]
self._raw_features.append((feat_name, node_type, nodes, feat))
def addMultiCategoryFeature(self, cols, separator, feat_name='nf', rows=None, norm=None, node_type=None):
r"""Add multiple categorical features for nodes
Two columns of the **input** are chosen, one for
node name and another for category. The category
column stores multiple category data in a string,
e.g., 'Actor,Director'. A separator is required
to split the category data. The category data
will be encoded using multi-hot encoding.
Parameters
----------
cols: list of str or int
Which columns to use. Supported data formats are
(1) [str, str] column names for node and category.
The first column is treated as node name and
the second column is treated as category data.
(2) [int, int] column numbers for node and category.
The first column is treated as node name and
the second is treated as category data.
feat_name: str
Feature name.
Default: nf
separator: str
Delimiter(separator) used to split category data.
rows: numpy.array or list of int
Which row(s) to load. None to load all.
Default: None
norm: str
Which kind of normalization is applied to the features.
Supported normalization ops are
(1) None, do nothing.
(2) `col`, column-based normalization. Normalize the data for each column:
.. math::
x_{ij} = \frac{x_{ij}}{\sum_{i=0}^N{x_{ij}}}
(3) `row`, row-based normalization. Normalize the data for each row:
.. math::
x_{ij} = \frac{x_{ij}}{\sum_{j=0}^N{x_{ij}}}
Default: None
node_type: str
Node type. If None, default node type is chosen.
Default: None
Notes
-----
Values in ``rows`` should be in accending order.
Examples
--------
** Load category features **
Example data of u.csv is as follows:
====== ======
name role
====== ======
John Actor,Director
Tim Director,Writer
Maggie Actor
====== ======
>>> user_loader = dgl.data.FeatureLoader(input='u.csv',
separator="|",
has_head=True)
>>> user_loader.addMultiCategoryFeature(cols=["name", "role"],
separator=',')
"""
if not isinstance(cols, list):
raise RuntimeError("The cols should be a list of string or int")
if len(cols) != 2:
raise RuntimeError("addMultiCategoryFeature only accept two columns, " \
"one for nodes, another for category data")
if self._verbose:
print('NodeFeatureLoader.addCategoryFeature " \
"from {} with {}'.format(self._input, cols))
nodes = []
features = []
with open(self._input, newline='', encoding=self._encoding) as csvfile:
if isinstance(cols[0], str):
assert self._has_head, \
"The column name is provided to identify the target column." \
"The input csv should have the head field"
reader = csv.reader(csvfile, delimiter=self._separator)
heads = next(reader)
# find index of each target field name
idx_cols = field2idx(cols, heads)
assert len(idx_cols) == len(cols), \
"one or more field names are not found in {}".format(self._input)
cols = idx_cols
else:
reader = csv.reader(csvfile, delimiter=self._separator)
if self._has_head:
# skip field name
next(reader)
# fast path, all rows are used
if rows is None:
for line in reader:
nodes.append(line[cols[0]])
features.append(line[cols[1]].split(separator))
else:
row_idx = 0
for idx, line in enumerate(reader):
if len(rows) == row_idx:
break
if rows[row_idx] == idx:
nodes.append(line[cols[0]])
features.append(line[cols[1]].split(separator))
row_idx += 1
# else skip this line
feat, _ = parse_category_multi_feat(features, norm=norm)
assert len(nodes) == feat.shape[0]
self._raw_features.append((feat_name, node_type, nodes, feat))
def addNumericalFeature(self, cols, feat_name='nf', rows=None, norm=None, node_type=None):
r"""Add numerical features for nodes
Two or more columns of the **input** are chosen, one for
node name and the others for numbers. The numbers are
treated as floats.
Parameters
----------
cols: list of str or int
Which columns to use. Supported data formats are
(1) [str, str, ...] column names for node and numerical data.
The first column is treated as node name and
the second and the rest columns are treated as numerical data.
(2) [int, int, ...] column numbers for node and numerical data.
The first column is treated as node name and
the second and the rest columns are treated as numerical data.
feat_name: str
Feature name.
Default: nf
rows: numpy.array or list of int
Which row(s) to load. None to load all.
Default: None
norm: str
Which kind of normalization is applied to the features of each column.
Supported normalization ops are
(1) None, do nothing.
(2) `standard`:
.. math::
norm_{ij} = \frac{x_{ij}}{\sum_{j=0}^N{|x_{ij}|}}
(3) `min-max`:
.. math::
norm_{ij} = \frac{x_{ij} - min(x_i[:])}{max(x_i[:])-min(x_i[:])}
Default: None
node_type: str
Node type. If None, default node type is chosen.
Default: None
Examples
--------
** Load numerical features **
Example data of u.csv is as follows:
====== ======
name weight
====== ======
John 120.3
Tim 100.2
Maggie 110.5
====== ======
>>> user_loader = dgl.data.FeatureLoader(input='u.csv',
separator="|",
has_head=True)
>>> user_loader.addNumericalFeature(cols=["name", "weight"])
"""
if not isinstance(cols, list):
raise RuntimeError("The cols should be a list of string or int")
if len(cols) < 2:
raise RuntimeError("addNumericalFeature requires at least 2 columns, " \
"one for nodes, others for numerical data")
if self._verbose:
print('NodeFeatureLoader.addCategoryFeature " \
"from {} with {}'.format(self._input, cols))
nodes = []
features = []
with open(self._input, newline='', encoding=self._encoding) as csvfile:
if isinstance(cols[0], str):
assert self._has_head, \
"The column name is provided to identify the target column." \
"The input csv should have the head field"
reader = csv.reader(csvfile, delimiter=self._separator)
heads = next(reader)
# find index of each target field name
idx_cols = field2idx(cols, heads)
assert len(idx_cols) == len(cols), \
"one or more field names are not found in {}".format(self._input)
cols = idx_cols
else:
reader = csv.reader(csvfile, delimiter=self._separator)
if self._has_head:
# skip field name
next(reader)
# fast path, all rows are used
if rows is None:
for line in reader:
nodes.append(line[cols[0]])
row_f = []
for i in range(1, len(cols)):
row_f.append(float(line[cols[i]]))
features.append(row_f)
else:
row_idx = 0
for idx, line in enumerate(reader):
if len(rows) == row_idx:
break
if rows[row_idx] == idx:
nodes.append(line[cols[0]])
row_f = []
for i in range(1, len(cols)):
row_f.append(float(line[cols[i]]))
features.append(row_f)
row_idx += 1
# else skip this line
feat = parse_numerical_feat(features, norm=norm)
assert len(nodes) == feat.shape[0]
self._raw_features.append((feat_name, node_type, nodes, feat))
def addMultiNumericalFeature(self, cols, separator, feat_name='nf', rows=None, norm=None, node_type=None):
r"""Add numerical features for nodes
Two columns of the **input** are chosen, one for
node name and another for numbers. The numbers are
treated as floats.
Parameters
----------
cols: list of str or int
Which columns to use. Supported data formats are
(1) [str, str] column names for node and category.
The first column is treated as node name and
the second column is treated as category data.
(2) [int, int] column numbers for node and category.
The first column is treated as node name and
the second is treated as category data.
separator: str
Delimiter(separator) used to split category data.
feat_name: str
Feature name.
Default: nf
rows: numpy.array or list of int
Which row(s) to load. None to load all.
Default: None
norm: str
Which kind of normalization is applied to the features of each column.
Supported normalization ops are
(1) None, do nothing.
(2) `standard`:
.. math::
norm_{ij} = \frac{x_{ij}}{\sum_{j=0}^N{|x_{ij}|}}
(3) `min-max`:
.. math::
norm_{ij} = \frac{x_{ij} - min(x_i[:])}{max(x_i[:])-min(x_i[:])}
Default: None
node_type: str
Node type. If None, default node type is chosen.
Default: None
Examples
--------
** Load numerical features **
Example data of u.csv is as follows:
====== ======
name feature
====== ======
John 1.,2.
Tim 1.,-1.
Maggie 2.,3.
====== ======
>>> user_loader = dgl.data.FeatureLoader(input='u.csv',
separator="|",
has_head=True)
>>> user_loader.addNumericalFeature(cols=["name", "feature"])
"""
if not isinstance(cols, list):
raise RuntimeError("The cols should be a list of string or int")
if len(cols) != 2:
raise RuntimeError("addMultiNumericalFeature only accept two columns, " \
"one for nodes, another for numerical data")
if self._verbose:
print('NodeFeatureLoader.addCategoryFeature " \
"from {} with {}'.format(self._input, cols))
nodes = []
features = []
with open(self._input, newline='', encoding=self._encoding) as csvfile:
if isinstance(cols[0], str):
assert self._has_head, \
"The column name is provided to identify the target column." \
"The input csv should have the head field"
reader = csv.reader(csvfile, delimiter=self._separator)
heads = next(reader)
# find index of each target field name
idx_cols = field2idx(cols, heads)
assert len(idx_cols) == len(cols), \
"one or more field names are not found in {}".format(self._input)
cols = idx_cols
else:
reader = csv.reader(csvfile, delimiter=self._separator)
if self._has_head:
# skip field name
next(reader)
# fast path, all rows are used
if rows is None:
for line in reader:
nodes.append(line[cols[0]])
features.append([float(val) for val in line[cols[1]].split(separator)])
else:
row_idx = 0
for idx, line in enumerate(reader):
if len(rows) == row_idx:
break
if rows[row_idx] == idx:
nodes.append(line[cols[0]])
features.append([float(val) for val in line[cols[1]].split(separator)])
row_idx += 1
# else skip this line
feat = parse_numerical_feat(features, norm=norm)
assert len(nodes) == feat.shape[0]
self._raw_features.append((feat_name, node_type, nodes, feat))
def addNumericalBucketFeature(self, cols, range, bucket_cnt, feat_name='nf', slide_window_size=0,
rows=None, norm=None, node_type=None):
r""" Add numerical data features for nodes by matching them into
different buckets.
Two columns of the **input** are chosen, one for
node name and another for numbers. A bucket range based
algorithm is used to convert numerical value into multi-hop
encoding features.
Parameters
----------
cols: list of str or int
Which columns to use. Supported data formats are
(1) [str, str] column names for node and numerical data.
The first column is treated as node name and
the second column is treated as numerical data.
(2) [int, int] column numbers for node and numerical data.
The first column is treated as node name and
the second is treated as numerical data.
feat_name: str
Feature name.
Default: nf
range: list of float or tuple of float
[low, high]: the range of the numerical value.
All v_i < low will be set to v_i = low and
all v_j > high will be set to v_j = high.
bucket_cnt: int
Number of bucket to use.
slide_window_size: int
The sliding window used to convert numerical value into bucket number.
rows: numpy.array or list of int
Which row(s) to load. None to load all.
Default: None
norm: str
Which kind of normalization is applied to the features.
Supported normalization ops are
(1) None, do nothing.
(2) `col`, column-based normalization. Normalize the data for each column.
(3) `raw`, row-based normalization. Normalize the data for each row.
Default: None
node_type: str
Node type. If None, default node type is chosen.
Default: None
Notes
-----
* The encoding algorithm is as:
>>> bucket_size = (upper_bound - lower_bound) / bucket_cnt
>>> low = value - slide_window_size/2
>>> high = value + slide_window_size/2
>>> bucket = [i for i in range(math.ceil(low/bucket_size), math.floor(high/bucket_size))]
Examples
--------
** Load numerical data into bucket features **
Example data of u.csv is as follows:
====== ===
name age
====== ===
John 21
Tim 31
Maggie 55
====== ===
>>> user_loader = dgl.data.FeatureLoader(input='u.csv',
separator="|",
has_head=True)
>>> user_loader.addNumericalBucketFeature(cols=["name", "age"],
range=[0,100],
bucket_cnt=10,
slide_window_size=5.0)
** multi-hop feature of John, Tim and Maggie **
John: [0, 1, 1, 0, 0, 0, 0, 0, 0, 0]
Tim: [0, 0, 1, 1, 0, 0, 0, 0, 0, 0]
Maggie:[0, 0, 0, 0, 0, 1, 1, 0, 0, 0]
"""
if not isinstance(cols, list):
raise RuntimeError("The cols should be a list of string or int")
if len(cols) != 2:
raise RuntimeError("addNumericalBucketFeature only accept two columns, " \
"one for nodes, another for numerical data")
if not isinstance(cols, list) or \
len(range) != 2 or \
range[0] >= range[1]:
raise RuntimeError("Range is in format of [low, high]. "\
"low should be smaller than high")
if bucket_cnt <= 1:
raise RuntimeError("Number of bucket should be larger than 1")
if self._verbose:
print('NodeFeatureLoader.addCategoryFeature " \
"from {} with {}'.format(self._input, cols))
nodes = []
features = []
with open(self._input, newline='', encoding=self._encoding) as csvfile:
if isinstance(cols[0], str):
assert self._has_head, \
"The column name is provided to identify the target column." \
"The input csv should have the head field"
reader = csv.reader(csvfile, delimiter=self._separator)
heads = next(reader)
# find index of each target field name
idx_cols = field2idx(cols, heads)
assert len(idx_cols) == len(cols), \
"one or more field names are not found in {}".format(self._input)
cols = idx_cols
else:
reader = csv.reader(csvfile, delimiter=self._separator)
if self._has_head:
# skip field name
next(reader)
# fast path, all rows are used
if rows is None:
for line in reader:
nodes.append(line[cols[0]])
features.append(float(line[cols[1]]))
else:
row_idx = 0
for idx, line in enumerate(reader):
if len(rows) == row_idx:
break
if rows[row_idx] == idx:
nodes.append(line[cols[0]])
features.append(float(line[cols[1]]))
row_idx += 1
# else skip this line
feat = parse_numerical_multihot_feat(features,
low=range[0],
high=range[1],
bucket_cnt=bucket_cnt,
window_size=slide_window_size,
norm=norm)
assert len(nodes) == feat.shape[0]
self._raw_features.append((feat_name, node_type, nodes, feat))
def addWord2VecFeature(self, cols, languages, feat_name='nf', rows=None, node_type=None):
r""" Add word2vec features for nodes
Two columns of the **input** are chosen, one for
node name and another for a string.
By default spacy is used to encode the string.
Parameters
----------
cols: list of str or int
Which columns to use. Supported data formats are
(1) [str, str] column names for node and numerical data.
The first column is treated as node name and
the second column is treated as string.
(2) [int, int] column numbers for node and numerical data.
The first column is treated as node name and
the second column is treated as string.
languages: list of string
List of languages used to encode the feature string.
e.g., 'en_core_web_lg', 'fr_core_news_lg'. For more details,
please see **Notes**. Multiple languages can
be listed and one embedding vectors are generated for
each language and are concatenated together.
feat_name: str
Feature name.
Default: nf
rows: numpy.array or list of int
Which row(s) to load. None to load all.
Default: None
node_type: str
Node type. If None, default node type is chosen.
Default: None
Notes
------
The language model support is backed by scapy
Examples
--------
** Load words to vector features **
Example data of u.csv is as follows:
====== ================================================================================
name title
====== ================================================================================
Paper1 'Modeling Relational Data with Graph Convolutional Networks'
Paper2 'Convolutional neural networks on graphs with fast localized spectral filtering'
Paper3 'Translating embeddings for modeling multi-relational data'
====== ================================================================================
>>> user_loader = dgl.data.FeatureLoader(input='paper.csv',
separator="|",
has_head=True)
>>> user_loader.addWord2VecFeature(cols=["name", "title"],
language=['en_core_web_lg'],
"""
if not isinstance(cols, list):
raise RuntimeError("The cols should be a list of string or int")
if len(cols) != 2:
raise RuntimeError("addWord2VecFeature only accept two columns, " \
"one for nodes, another for string data")
if self._verbose:
print('NodeFeatureLoader.addCategoryFeature " \
"from {} with {}'.format(self._input, cols))
nodes = []
features = []
with open(self._input, newline='', encoding=self._encoding) as csvfile:
if isinstance(cols[0], str):
assert self._has_head, \
"The column name is provided to identify the target column." \
"The input csv should have the head field"
reader = csv.reader(csvfile, delimiter=self._separator)
heads = next(reader)
# find index of each target field name
idx_cols = field2idx(cols, heads)
assert len(idx_cols) == len(cols), \
"one or more field names are not found in {}".format(self._input)
cols = idx_cols
else:
reader = csv.reader(csvfile, delimiter=self._separator)
if self._has_head:
# skip field name
next(reader)
# fast path, all rows are used
if rows is None:
for line in reader:
nodes.append(line[cols[0]])
features.append(line[cols[1]])
else:
row_idx = 0
for idx, line in enumerate(reader):
if len(rows) == row_idx:
break
if rows[row_idx] == idx:
nodes.append(line[cols[0]])
features.append(line[cols[1]])
row_idx += 1
# else skip this line
feat = parse_word2vec_feature(features, languages, self._verbose)
assert len(nodes) == feat.shape[0]
self._raw_features.append((feat_name, node_type, nodes, feat))
@property
def node_feat(self):
""" This is node feature loader
"""
return True
class EdgeFeatureLoader(object):
r"""Edge feature loader
Load edge features from data src.
The source and destination node ids are also inferred when loading the features.
Parameters
----------
input: str
Data source, for the csv file input,
it should be a string of file path
separator: str
Delimiter(separator) used in csv file.
Default: '\t'
has_header: bool
Whether the input data has col name.
Default: False
int_id: bool
Whether the raw node id is an int,
this can help speed things up.
Default: False
eager_mode: bool
Whether to use eager parse mode.
See **Note** for more details.
Default: False
encoding: str, optional
Input file encoding
Default: 'utf-8'
verbose: bool, optional
Whether print debug info during parsing
Default: False
Notes
-----
Currently, we only support raw csv file input.
If eager_mode is True, the loader will processing
the features immediately after addXXXFeature
is called. This will case extra performance overhead
when merging multiple FeatureLoaders together to
build the DGLGraph.
If eager_mode if False, the features are not
processed until building the DGLGraph.
Examples
--------
** Creat a EdgeFeatureLoader to load edge features from data.csv. **
>>> edge_loader = dgl.data.EdgeFeatureLoader(input='data.csv',
separator="|")
>>> edge_loader.addNumericalFeature(cols=["src", "dst", rate"])
** Append features into graph loader **
>>> graphloader = dgl.data.GraphLoader()
>>> graphloader.appendFeature(edge_loader)
"""
def __init__(self, input, separator='\t', has_head=True, int_id=False, eager_mode=False,
encoding='utf-8', verbose=False):
if not os.path.exists(input):
raise RuntimeError("File not exist {}".format(input))
assert eager_mode is False, "Currently we do not support eager_mode"
self._input = input
self._separator = separator
self._has_head = has_head
self._int_id = int_id
self._eager_mode = eager_mode
self._encoding = encoding
self._verbose = verbose
self._raw_features = []
def process(self, node_dicts):
""" Preparing edges and features for creating dgl graph.
Src and dst nodes are converted into consecutive integer ID spaces and
the edge features are concatenated together.
Parameters
----------
node_dicts: dict of dict
{node_type: {node_str : node_id}}
Return
------
dict
{edge_type: (snids, dnids, edge_feats)}
"""
results = {}
for raw_feat in self._raw_features:
feat_name, edge_type, src_nodes, dst_nodes, feats = raw_feat
if edge_type is None:
src_type = None
dst_type = None
else:
src_type, rel_type, dst_type = edge_type
if src_type in node_dicts:
snid_map = node_dicts[src_type]
else:
snid_map = {}
node_dicts[src_type] = snid_map
if dst_type in node_dicts:
dnid_map = node_dicts[dst_type]
else:
dnid_map = {}
node_dicts[dst_type] = dnid_map
snids = []
dnids = []
for node in src_nodes:
nid = get_id(snid_map, node)
snids.append(nid)
for node in dst_nodes:
nid = get_id(dnid_map, node)
dnids.append(nid)
snids = np.asarray(snids, dtype='long')
dnids = np.asarray(dnids, dtype='long')
# chech if same edge_type already exists
# if so concatenate the features.
if edge_type in results:
if feat_name in results[edge_type]:
last_snids, last_dnids, last_feats = results[edge_type][feat_name]
assert last_snids.shape[0] == snids.shape[0], \
"Input features from different columns should have the same shape." \
"but got {} vs. {}".format(last_snids.shape[0], snids.shape[0])
results[edge_type][feat_name] = (last_snids, last_dnids,
np.concatenate((last_feats, feats), axis=1))
else:
results[edge_type][feat_name] = (snids, dnids, feats)
else:
results[edge_type] = {}
results[edge_type][feat_name] = (snids, dnids, feats)
return results
def addNumericalFeature(self, cols, feat_name='ef', rows=None, norm=None, edge_type=None):
r"""Add numerical features for nodes
Three columns of the **input** are chosen, one for
source node name, one for destination node name
and the last for numbers. The numbers are
treated as floats.
Parameters
----------
cols: list of str or int
Which columns to use. Supported data formats are
(1) [str, str, str] column names for node and numerical data.
The first column is treated as source node name,
the second column is treated as destination node name and
the third column is treated as numerical data.
(2) [int, int, int] column numbers for node and numerical data.
The first column is treated as source node name,
the second column is treated as destination node name and
the third column is treated as numerical data.
feat_name: str
Feature name.
Default: ef
rows: numpy.array or list of int
Which row(s) to load. None to load all.
Default: None
norm: str
Which kind of normalization is applied to the features.
Supported normalization ops are
(1) None, do nothing.
(2) `standard`:
.. math::
norm_i = \frac{x_i}{\sum_{i=0}^N{x_i}}
(3) `min-max`:
.. math::
norm_i = \frac{x_i - min(x[:])}{max(x[:])-min(x[:])}
Default: None
edge_type: triple of str
Canonical edge type, should be in format of (src_type, rel_type, dst_type).
If None, default canonical edge type is chosen.
Default: None
Examples
--------
** Load numerical features **
Example data of data.csv is as follows:
====== ======== ====
name movie rate
====== ======== ====
John StarWar1 5.0
Tim X-Man 3.5
Maggie StarWar1 4.5
====== ======== ====
>>> user_loader = dgl.data.FeatureLoader(input='data.csv',
separator="|",
has_head=True)
>>> user_loader.addNumericalFeature(cols=["name", "movie", "rate"])
"""
if not isinstance(cols, list):
raise RuntimeError("The cols should be a list of string or int")
if len(cols) != 3:
raise RuntimeError("addNumericalFeature only accept three columns, " \
"first two for source and destination nodes, " \
"the last for numerical data")
if self._verbose:
print('EdgeFeatureLoader.addNumericalFeature " \
"from {} with {}'.format(self._input, cols))
src_nodes = []
dst_nodes = []
features = []
with open(self._input, newline='', encoding=self._encoding) as csvfile:
if isinstance(cols[0], str):
assert self._has_head, \
"The column name is provided to identify the target column." \
"The input csv should have the head field"
reader = csv.reader(csvfile, delimiter=self._separator)
heads = next(reader)
# find index of each target field name
idx_cols = field2idx(cols, heads)
assert len(idx_cols) == len(cols), \
"one or more field names are not found in {}".format(self._input)
cols = idx_cols
else:
reader = csv.reader(csvfile, delimiter=self._separator)
if self._has_head:
# skip field name
next(reader)
# fast path, all rows are used
if rows is None:
for line in reader:
src_nodes.append(line[cols[0]])
dst_nodes.append(line[cols[1]])
row_f = []
for i in range(2, len(cols)):
row_f.append(float(line[cols[i]]))
features.append(row_f)
else:
row_idx = 0
for idx, line in enumerate(reader):
if len(rows) == row_idx:
break
if rows[row_idx] == idx:
src_nodes.append(line[cols[0]])
dst_nodes.append(line[cols[1]])
row_f = []
for i in range(2, len(cols)):
row_f.append(float(line[cols[i]]))
features.append(row_f)
row_idx += 1
# else skip this line
feat = parse_numerical_feat(features, norm=norm)
assert len(src_nodes) == feat.shape[0]
self._raw_features.append((feat_name, edge_type, src_nodes, dst_nodes, feat))
@property
def node_feat(self):
""" This is edge feature loader
"""
return False
class EdgeLoader(object):
r"""EdgeLoader allows users to define graph edges.
Parameters
----------
input: str
Data source, for the csv file input,
it should be a string of file path
separator: str
Delimiter(separator) used in csv file.
Default: '\t'
has_header: bool
Whether the input data has col name.
Default: False
int_id: bool
Whether the raw node id is an int,
this can help speed things up.
Default: False
eager_mode: bool
Whether to use eager parse mode.
See **Note** for more details.
Default: False
verbose: bool, optional
Whether print debug info during parsing
Default: False
Notes
-----
Currently, we only support raw csv file input.
If eager_mode is True, the loader will processing
the edges immediately after addXXXEdges
is called. This will case extra performance overhead
when merging multiple edge loaders together to
build the DGLGraph.
If eager_mode if False, the edges are not
processed until building the DGLGraph.
Examples
--------
** Creat a FeatureLoader to load user features from u.csv.**
>>> user_loader = dgl.data.FeatureLoader(input='u.csv',
separator="|")
>>> user_loader.addCategoryFeature(cols=["id", "gender"], node_type='user')
** create node label loader to load labels **
>>> label_loader = dgl.data.NodeLabelLoader(input='label.csv',
separator="|")
>>> label_loader.addTrainSet([0, 1], rows=np.arange(start=0,
stop=100))
** create edge loader to load edges **
>>> edge_loader = dgl.data.EdgeLoader(input='edge.csv',
separator="|")
>>> edge_loader.addEdges([0, 1])
** Append features into graph loader **
>>> graphloader = dgl.data.GraphLoader()
>>> graphloader.appendEdge(edge_loader)
>>> graphloader.appendFeature(user_loader)
>>> graphloader.appendLabel(label_loader)
"""
def __init__(self, input, separator='\t', has_head=True, int_id=False,
eager_mode=False, encoding='utf-8', verbose=False):
if not os.path.exists(input):
raise RuntimeError("File not exist {}".format(input))
assert eager_mode is False, "Currently we do not support eager_mode"
self._input = input
self._separator = separator
self._has_head = has_head
self._int_id = int_id
self._eager_mode = eager_mode
self._encoding = encoding
self._verbose = verbose
self._edges = []
def process(self, node_dicts):
""" preparing edges for creating dgl graph.
Src and dst nodes are converted into consecutive integer ID spaces
Parameters
----------
node_dicts: dict of dict
{node_type: {node_str : node_id}}
Return
------
dict
{edge_type: (snids, dnids)}
"""
results = {}
for edges in self._edges:
edge_type, src_nodes, dst_nodes = edges
if edge_type is None:
src_type = None
dst_type = None
else:
src_type, rel_type, dst_type = edge_type
# convert src node and dst node
if src_type in node_dicts:
snid_map = node_dicts[src_type]
else:
snid_map = {}
node_dicts[src_type] = snid_map
if dst_type in node_dicts:
dnid_map = node_dicts[dst_type]
else:
dnid_map = {}
node_dicts[dst_type] = dnid_map
snids = []
dnids = []
for node in src_nodes:
nid = get_id(snid_map, node)
snids.append(nid)
for node in dst_nodes:
nid = get_id(dnid_map, node)
dnids.append(nid)
snids = np.asarray(snids, dtype='long')
dnids = np.asarray(dnids, dtype='long')
# chech if same node_type already exists
# if so concatenate the edges.
if edge_type in results:
last_snids, last_dnids = results[edge_type]
results[edge_type] = (np.concatenate((last_snids, snids)),
np.concatenate((last_dnids, dnids)))
else:
results[edge_type] = (snids, dnids)
return results
def addEdges(self, cols, rows=None, edge_type=None):
r""" Add edges into the graph
Two columns of **input** are chosen, one for
source node name and another for destination node name.
Each row represetns an edge.
Parameters
----------
cols: list of str or int
Which columns to use. Supported data formats are
(1) [str, str] column names for nodes
The first column is treated as source node name,
the second column is treated as destination node name.
(2) [int, int, int] column numbers nodes.
The first column is treated as source node name,
the second column is treated as destination node name.
rows: numpy.array or list of int
Which row(s) to load. None to load all.
Default: None
edge_type: str
Edge type. If None, default edge type is choose. Otherwise a tuple of
(src_type, relation_type, dst_type) should be provided.
Default: None
Examples
--------
** Load Edges **
Example data of data.csv is as follows:
=== ===
src dst
=== ===
1 0
0 2
3 4
=== ===
>>> edgeloader = dgl.data.EdgeLoader()
>>> edgeloader.addEdges(cols=["src", "dst"], edge_type=('user', 'like', 'movie'))
"""
if not isinstance(cols, list):
raise RuntimeError("The cols should be a list of string or int")
if len(cols) != 2:
raise RuntimeError("addEdges only accepts two columns "\
"for source node and destination node.")
if edge_type != None and len(edge_type) != 3:
raise RuntimeError("edge_type should be None or a tuple of " \
"(src_type, relation_type, dst_type)")
src_nodes = []
dst_nodes = []
labels = []
with open(self._input, newline='', encoding=self._encoding) as csvfile:
if isinstance(cols[0], str):
assert self._has_head, \
"The column name is provided to identify the target column." \
"The input csv should have the head field"
reader = csv.reader(csvfile, delimiter=self._separator)
heads = next(reader)
# find index of each target field name
idx_cols = field2idx(cols, heads)
assert len(idx_cols) == len(cols), \
"one or more field names are not found in {}".format(self._input)
cols = idx_cols
else:
reader = csv.reader(csvfile, delimiter=self._separator)
if self._has_head:
# skip field name
next(reader)
# fast path, all rows are used
if rows is None:
for line in reader:
src_nodes.append(line[cols[0]])
dst_nodes.append(line[cols[1]])
else:
row_idx = 0
for idx, line in enumerate(reader):
if len(rows) == row_idx:
break
if rows[row_idx] == idx:
src_nodes.append(line[cols[0]])
dst_nodes.append(line[cols[1]])
row_idx += 1
# else skip this line
self._edges.append((edge_type, src_nodes, dst_nodes))
def addCategoryRelationEdge(self, cols, src_type, dst_type, rows=None):
r"""Convert categorical features as edge relations
Three columns of the **input** are chosen, one for
source node name, one for destination node name
and the last for category type. The triple
(src_name, category_type, dst_name) is treated as
canonical edge type.
Each row represetns an edge.
Parameters
----------
cols: list of str or int
Which columns to use. Supported data formats are
(1) [str, str, str] column names for node and categorical data.
The first column is treated as source node name,
the second column is treated as destination node name and
the third column is treated as edge category.
(2) [int, int, int] column numbers for node and categorical data.
The first column is treated as source node name,
the second column is treated as destination node name and
the third column is treated as edge category.
src_type: str
Source node type.
dst_type: str
Destination node type.
rows: numpy.array or list of int
Which row(s) to load. None to load all.
Default: None
Examples
--------
** Load Category Relation **
Example data of data.csv is as follows:
====== ==== ========
name rate movie
====== ==== ========
John 5 StarWar1
Tim 3.5 X-Man
Maggie 4.5 StarWar1
====== ==== ========
>>> edgeloader = dgl.data.EdgeLoader()
>>> edgeloader.addCategoryRelationEdge(cols=["name", "rate", "movie"], src_type='user', dst_type='movie')
"""
if not isinstance(cols, list):
raise RuntimeError("The cols should be a list of string or int")
if len(cols) != 3:
raise RuntimeError("addCategoryRelationEdge only accepts three columns " \
"the first column for source node, " \
"the second for destination node, " \
"and third for edge category")
edges = {}
labels = []
with open(self._input, newline='', encoding=self._encoding) as csvfile:
if isinstance(cols[0], str):
assert self._has_head, \
"The column name is provided to identify the target column." \
"The input csv should have the head field"
reader = csv.reader(csvfile, delimiter=self._separator)
heads = next(reader)
# find index of each target field name
idx_cols = field2idx(cols, heads)
assert len(idx_cols) == len(cols), \
"one or more field names are not found in {}".format(self._input)
cols = idx_cols
else:
reader = csv.reader(csvfile, delimiter=self._separator)
if self._has_head:
# skip field name
next(reader)
# fast path, all rows are used
if rows is None:
for line in reader:
rel_type = line[cols[2]]
if rel_type in edges:
edges[rel_type][0].append(line[cols[0]])
edges[rel_type][1].append(line[cols[1]])
else:
edges[rel_type] = ([line[cols[0]]], [line[cols[1]]])
else:
row_idx = 0
for idx, line in enumerate(reader):
if len(rows) == row_idx:
break
if rows[row_idx] == idx:
rel_type = line[cols[2]]
if rel_type in edges:
edges[rel_type][0].append(line[cols[0]])
edges[rel_type][1].append(line[cols[1]])
else:
edges[rel_type] = ([line[cols[0]]], [line[cols[1]]])
row_idx += 1
# else skip this line
for key, val in edges.items():
self._edges.append(((src_type, key, dst_type), val[0], val[1]))
| 36.073761
| 113
| 0.51324
| 6,668
| 59,666
| 4.487403
| 0.067636
| 0.014438
| 0.013602
| 0.018749
| 0.817292
| 0.796036
| 0.776853
| 0.76422
| 0.753726
| 0.72826
| 0
| 0.007833
| 0.3923
| 59,666
| 1,653
| 114
| 36.095584
| 0.817397
| 0.428619
| 0
| 0.81457
| 0
| 0
| 0.105125
| 0.003248
| 0
| 0
| 0
| 0
| 0.049669
| 1
| 0.028146
| false
| 0
| 0.013245
| 0
| 0.054636
| 0.011589
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
9929ad6780b1d201fea5a85793f7f341b1091efb
| 3,731
|
py
|
Python
|
parsers/tests/test_fastamsaparser.py
|
rigdenlab/conkit-web
|
bf50d28a73f43b9eb0e0c397ec1d0fd32547fdf1
|
[
"BSD-3-Clause"
] | 1
|
2020-04-16T16:52:53.000Z
|
2020-04-16T16:52:53.000Z
|
parsers/tests/test_fastamsaparser.py
|
rigdenlab/conplot
|
9b3129d9e1b7ed93da63c6fd31f9b50e63f2d4d9
|
[
"BSD-3-Clause"
] | 47
|
2020-05-11T13:59:11.000Z
|
2022-01-21T09:37:18.000Z
|
parsers/tests/test_fastamsaparser.py
|
rigdenlab/conkit-web
|
bf50d28a73f43b9eb0e0c397ec1d0fd32547fdf1
|
[
"BSD-3-Clause"
] | 5
|
2020-04-24T11:19:21.000Z
|
2020-05-06T08:01:36.000Z
|
import unittest
from parsers import FastaMsaParser
from utils.exceptions import InvalidFormat
class FastaMsaParserTestCase(unittest.TestCase):
def test_1(self):
dummy_msa = """ >example
ETESMKTVRIREKIKKFLGDRPRNTAEILEHINSTMRHGTTSQQLGNVLSKDKDIVKVGYIKRSGILSGGYDICEWATRNWVAEHCPEWTE
>1
----MRTTRLRQKIKKFLNERGANTTEILEHVNSTMRHGTTPQQLGNVLSKDKDILKVATTKRGGALSGRYEICVWTLRP-----------
>2
----MDSQNLRDLIRNYLSERPRNTIEISAWLASQMDPNSCPEDVTNILEADESIVRIGTVRKSGMRLTDLPISEWASSSWVRRHE-----
>3
----MNSQNLRELIRNYLSERPRNTIEISTWLSSQIDPTNSPVDITSILEADDQIVRIGTVRKSGMRRSESPVSEWASNTWVKHHE-----
>4
--RDMDTEKVREIVRNYISERPRNTAEIAAWLNRH-DDGTGGSDVAAILESDGSFVRIGTVRTSGMTGNSPPLSEWATEKWIQHHER----
>5
-----RTRRLREAVLVFLEEKGANTVEVFDYLNERFRWGATMNQVGNILAKDTRFAKVGHQ-RGQFRGSVYTVCVWALS------------
>6
-----RTKRLREAVRVYLAENGSHTVDIFDHLNDRFSWGATMNQVGNILAKDNRFEKVGHVRD-FFRGARYTVCVWDLAS-----------
"""
expected_output = [0, 0, 2, 2, 7, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10,
10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 8, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10,
10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 8, 10, 8, 10, 10, 10, 10, 10, 10, 10,
10, 10, 10, 10, 10, 10, 10, 10, 8, 5, 5, 5, 5, 5, 5, 2, 0, 0, 0, 0]
output = FastaMsaParser(dummy_msa)
self.assertListEqual(output, expected_output)
def test_2(self):
dummy_msa = """###
D U M M Y
100 8 5.382865
"""
with self.assertRaises(InvalidFormat):
output = FastaMsaParser(dummy_msa)
self.assertListEqual(output, [])
def test_3(self):
dummy_msa = """ >example
ETESMKTVRIREKIKKFLGDRPRNTAEILEHINSTMRHGTTSQQLGNVLSKDKDIVKVGYIKRSGILSGGYDICEWATRNWVAEHCPEWTE
>1
----MRTTRLRQKIKKFLNERGANTTEILEHVNSTMRHGTTPQQLGNVLSKDKDILKVATTKRGGALSGRYEICVWTLRP-----------
>2
----MDSQNLRDLIRNYLSERPRNTIEISAWLASQMDPNSCPEDVTNILEADESIVRIGTVRKSGMRLTDLPISEWASSSWVRRHE-----
>3
----MNSQNLRELIRNYLSERPRNTIEISTWLSSQIDPTNSPVDITSILEADDQIVRIGTVRKSGMRRSESPVSEWASNTWVKHHE-----
>4
--RDMDTEKVREIVRNYISERPRNTAEIAAWLNRH-DDG8TGGSDVAAILESDGSFVRIGTVRTSGMTGNSPPLSEWATEKWIQHHER----
>5
-----RTRRLREAVLVFLEEKGANTVEVFDYLNERFRWGATMNQVGNILAKDTRFAKVGHQ-RGQFRGSVYTVCVWALS------------
>6
-----RTKRLREAVRVYLAENGSHTVDIFDHLNDRFSWGATMNQVGNILAKDNRFEKVGHVRD-FFRGARYTVCVWDLAS-----------
"""
with self.assertRaises(InvalidFormat):
output = FastaMsaParser(dummy_msa)
def test_4(self):
dummy_msa = """ >example
ETESMKTVRIREKIKKFLGDRPRNTAEILEHINSTMRHGTTSQQLGNVLSKDKDIVKVGYIKRSGILSGGYDICEWATRNWVAEHCPEWTE
>1
----MRTTRLRQKIKKFLNERGANTTEILEHVNSTMRHGTTPQQLGNVLSKDKDILKVATTKRGGALSGRYEICVWTLRP-----.-----
>2
----MDSQNLRDLIRNYLSERPRNTIEISAwlaSQMDPNSCPEDVTNILEADESIVRIGTVRKSGMRLTDLPISEWASSSWVRRHE-----
>3
----MNSQNLRELIRNYLSERPRNTIEISTWLSSQIDPTNSPVDITSILEADDQIVRIGTVRKSGMRRSESPVSEWASNTWVKHHE-----
>4
--RDMDTEKVREIVRNYISERPRNTAEIAAWLNRH-DDGTGGSDVAAILESDGSFVRIGTVRTSGMTGNSPPLSEWATEKWIQHHER----
>5
-----RTRRLREAVLVFLEEKGANTVEVFDYLNERFRWGATMNQVGNILAKDTRFAKVGHQ.RGQFRGSVYTVcvwALS------------
>6
-----RTKRLREAVRVYLAENGSHTVDIFDHLNDRFSWGATMNQVGNILAKDNRFEKVGHVRD.FFRGARYTVCVWDLAS-----------
"""
expected_output = [0, 0, 2, 2, 7, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10,
10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 8, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10,
10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 8, 10, 8, 10, 10, 10, 10, 10, 10, 10,
10, 10, 10, 10, 10, 10, 10, 10, 8, 5, 5, 5, 5, 5, 5, 2, 0, 0, 0, 0]
output = FastaMsaParser(dummy_msa)
self.assertListEqual(output, expected_output)
| 41.455556
| 120
| 0.69606
| 322
| 3,731
| 8.015528
| 0.152174
| 0.207671
| 0.297559
| 0.378148
| 0.907788
| 0.907788
| 0.850058
| 0.840372
| 0.793103
| 0.793103
| 0
| 0.115039
| 0.165907
| 3,731
| 89
| 121
| 41.921348
| 0.714332
| 0
| 0
| 0.77027
| 0
| 0
| 0.549183
| 0.512463
| 0
| 0
| 0
| 0
| 0.067568
| 1
| 0.054054
| false
| 0
| 0.040541
| 0
| 0.108108
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 11
|
99713b3d044b7a028cfe2cd4456c6a9472fda0fb
| 48
|
py
|
Python
|
propsettings/decorator.py
|
mnicolas94/propsettings
|
2ec905bd045bf45a45e644846b098b64fb283130
|
[
"MIT"
] | null | null | null |
propsettings/decorator.py
|
mnicolas94/propsettings
|
2ec905bd045bf45a45e644846b098b64fb283130
|
[
"MIT"
] | null | null | null |
propsettings/decorator.py
|
mnicolas94/propsettings
|
2ec905bd045bf45a45e644846b098b64fb283130
|
[
"MIT"
] | null | null | null |
import abc
class Decorator(abc.ABC):
pass
| 8
| 25
| 0.6875
| 7
| 48
| 4.714286
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.229167
| 48
| 5
| 26
| 9.6
| 0.891892
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.333333
| 0.333333
| 0
| 0.666667
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 7
|
998c8ad2d7c918bd3bed8ce327f18604926d0b2b
| 3,457
|
py
|
Python
|
tests/test_provider_splunk_terraform_signalfx.py
|
mjuenema/python-terrascript
|
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
|
[
"BSD-2-Clause"
] | 507
|
2017-07-26T02:58:38.000Z
|
2022-01-21T12:35:13.000Z
|
tests/test_provider_splunk_terraform_signalfx.py
|
mjuenema/python-terrascript
|
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
|
[
"BSD-2-Clause"
] | 135
|
2017-07-20T12:01:59.000Z
|
2021-10-04T22:25:40.000Z
|
tests/test_provider_splunk_terraform_signalfx.py
|
mjuenema/python-terrascript
|
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
|
[
"BSD-2-Clause"
] | 81
|
2018-02-20T17:55:28.000Z
|
2022-01-31T07:08:40.000Z
|
# tests/test_provider_splunk-terraform_signalfx.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:27:12 UTC)
def test_provider_import():
import terrascript.provider.splunk_terraform.signalfx
def test_resource_import():
from terrascript.resource.splunk_terraform.signalfx import (
signalfx_alert_muting_rule,
)
from terrascript.resource.splunk_terraform.signalfx import (
signalfx_aws_external_integration,
)
from terrascript.resource.splunk_terraform.signalfx import signalfx_aws_integration
from terrascript.resource.splunk_terraform.signalfx import (
signalfx_aws_token_integration,
)
from terrascript.resource.splunk_terraform.signalfx import (
signalfx_azure_integration,
)
from terrascript.resource.splunk_terraform.signalfx import signalfx_dashboard
from terrascript.resource.splunk_terraform.signalfx import signalfx_dashboard_group
from terrascript.resource.splunk_terraform.signalfx import signalfx_data_link
from terrascript.resource.splunk_terraform.signalfx import signalfx_detector
from terrascript.resource.splunk_terraform.signalfx import signalfx_event_feed_chart
from terrascript.resource.splunk_terraform.signalfx import signalfx_gcp_integration
from terrascript.resource.splunk_terraform.signalfx import signalfx_heatmap_chart
from terrascript.resource.splunk_terraform.signalfx import signalfx_jira_integration
from terrascript.resource.splunk_terraform.signalfx import signalfx_list_chart
from terrascript.resource.splunk_terraform.signalfx import (
signalfx_opsgenie_integration,
)
from terrascript.resource.splunk_terraform.signalfx import signalfx_org_token
from terrascript.resource.splunk_terraform.signalfx import (
signalfx_pagerduty_integration,
)
from terrascript.resource.splunk_terraform.signalfx import (
signalfx_single_value_chart,
)
from terrascript.resource.splunk_terraform.signalfx import (
signalfx_slack_integration,
)
from terrascript.resource.splunk_terraform.signalfx import signalfx_team
from terrascript.resource.splunk_terraform.signalfx import signalfx_text_chart
from terrascript.resource.splunk_terraform.signalfx import signalfx_time_chart
from terrascript.resource.splunk_terraform.signalfx import (
signalfx_victor_ops_integration,
)
from terrascript.resource.splunk_terraform.signalfx import (
signalfx_webhook_integration,
)
def test_datasource_import():
from terrascript.data.splunk_terraform.signalfx import signalfx_aws_services
from terrascript.data.splunk_terraform.signalfx import signalfx_azure_services
from terrascript.data.splunk_terraform.signalfx import signalfx_dimension_values
from terrascript.data.splunk_terraform.signalfx import signalfx_gcp_services
from terrascript.data.splunk_terraform.signalfx import (
signalfx_pagerduty_integration,
)
# TODO: Shortcut imports without namespace for official and supported providers.
# TODO: This has to be moved into a required_providers block.
# def test_version_source():
#
# import terrascript.provider.splunk_terraform.signalfx
#
# t = terrascript.provider.splunk_terraform.signalfx.signalfx()
# s = str(t)
#
# assert 'https://github.com/splunk-terraform/terraform-provider-signalfx' in s
# assert '6.7.7' in s
| 32.92381
| 88
| 0.794909
| 389
| 3,457
| 6.794344
| 0.233933
| 0.192963
| 0.287174
| 0.318199
| 0.793417
| 0.777526
| 0.734014
| 0.723042
| 0.544457
| 0.055997
| 0
| 0.005104
| 0.149841
| 3,457
| 104
| 89
| 33.240385
| 0.894182
| 0.155048
| 0
| 0.218182
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0.009615
| 0
| 1
| 0.054545
| true
| 0
| 0.6
| 0
| 0.654545
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 9
|
99a68b57413d42c72a5491c22610a28f648b70e8
| 1,044
|
py
|
Python
|
src/python/marbles/ie/nlp/spacynlp/pos.py
|
marbles-ai/ie
|
b3fef462d3418580c827c94bc206bd2991500c1f
|
[
"MIT"
] | null | null | null |
src/python/marbles/ie/nlp/spacynlp/pos.py
|
marbles-ai/ie
|
b3fef462d3418580c827c94bc206bd2991500c1f
|
[
"MIT"
] | null | null | null |
src/python/marbles/ie/nlp/spacynlp/pos.py
|
marbles-ai/ie
|
b3fef462d3418580c827c94bc206bd2991500c1f
|
[
"MIT"
] | null | null | null |
from spacy.parts_of_speech import NO_TAG as UNKNOWN
from spacy.parts_of_speech import ADJ
from spacy.parts_of_speech import CONJ
from spacy.parts_of_speech import DET
from spacy.parts_of_speech import NUM
from spacy.parts_of_speech import PRON
from spacy.parts_of_speech import ADP
from spacy.parts_of_speech import NOUN
from spacy.parts_of_speech import VERB
from spacy.parts_of_speech import X
from spacy.parts_of_speech import ADV
from spacy.parts_of_speech import PUNCT
from spacy.parts_of_speech import PART as PRT
# No Google equivalent
from spacy.parts_of_speech import AUX
from spacy.parts_of_speech import INTJ
from spacy.parts_of_speech import SCONJ
from spacy.parts_of_speech import SYM
from spacy.parts_of_speech import EOL
from spacy.parts_of_speech import SPACE
POS_UPPER_BOUND = max([UNKNOWN, ADJ, CONJ, DET, NUM, PRON, ADP, NOUN, VERB, X, ADV, PUNCT, PRT, AUX, INTJ, SCONJ, SYM, EOL, SPACE])
POS_LOWER_BOUND = min([UNKNOWN, ADJ, CONJ, DET, NUM, PRON, ADP, NOUN, VERB, X, ADV, PUNCT, PRT, AUX, INTJ, SCONJ, SYM, EOL, SPACE])
| 38.666667
| 131
| 0.812261
| 187
| 1,044
| 4.304813
| 0.197861
| 0.212422
| 0.330435
| 0.37764
| 0.834783
| 0.834783
| 0.173913
| 0.173913
| 0.173913
| 0.173913
| 0
| 0
| 0.124521
| 1,044
| 26
| 132
| 40.153846
| 0.880744
| 0.019157
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.904762
| 0
| 0.904762
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
510465eb5b3bdae19cc0da1ebea9c3c85e4f735a
| 111
|
py
|
Python
|
tests/test_nodeEndpoints/__init__.py
|
alekLukanen/pyDist
|
ffb2c3feb20afba078fec7381c8785eb1e2b0543
|
[
"MIT"
] | 5
|
2017-12-24T08:11:16.000Z
|
2019-02-07T22:13:26.000Z
|
tests/test_nodeEndpoints/__init__.py
|
alekLukanen/pyDist
|
ffb2c3feb20afba078fec7381c8785eb1e2b0543
|
[
"MIT"
] | 1
|
2021-06-01T23:17:31.000Z
|
2021-06-01T23:17:31.000Z
|
tests/test_nodeEndpoints/__init__.py
|
alekLukanen/pyDist
|
ffb2c3feb20afba078fec7381c8785eb1e2b0543
|
[
"MIT"
] | null | null | null |
from tests.test_nodeEndpoints.connect_users import *
from tests.test_nodeEndpoints.add_work_items import *
| 27.75
| 54
| 0.837838
| 15
| 111
| 5.866667
| 0.666667
| 0.204545
| 0.295455
| 0.590909
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.108108
| 111
| 3
| 55
| 37
| 0.888889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 7
|
51134e580d6b583e67087ff891bfbdbf1dc0dd30
| 29,323
|
py
|
Python
|
miso/data/dataset_readers/decomp_parsing/tests.py
|
esteng/miso_uds
|
66cc382e0dd11247c445e1ccbdb057a3a9b3dcc2
|
[
"MIT"
] | 5
|
2021-05-04T06:41:32.000Z
|
2022-02-14T13:56:25.000Z
|
miso/data/dataset_readers/decomp_parsing/tests.py
|
esteng/miso_uds
|
66cc382e0dd11247c445e1ccbdb057a3a9b3dcc2
|
[
"MIT"
] | null | null | null |
miso/data/dataset_readers/decomp_parsing/tests.py
|
esteng/miso_uds
|
66cc382e0dd11247c445e1ccbdb057a3a9b3dcc2
|
[
"MIT"
] | null | null | null |
# instaces: Dict[str-> Dict[str]]
nodrop_instances = {"ewt-dev-1":
{'tgt_tokens': ['@start@', '@@ROOT@@', 'comes', 'AP', 'the', 'story', 'this', 'From', '@end@'],
'src_tokens': ['From', 'the', 'AP', 'comes', 'this', 'story', ':'],
#'tgt_attributes': [{}, {}, {'factuality-factual': {'value': 0.9672, 'confidence': 1.0}, 'genericity-pred-dynamic': {'value': -0.0479, 'confidence': 0.6258}, 'genericity-pred-hypothetical': {'value': -0.0427, 'confidence': 0.5096}, 'genericity-pred-particular': {'value': 1.1753, 'confidence': 1.0}}, {'genericity-arg-abstract': {'value': -1.1641, 'confidence': 1.0}, 'genericity-arg-kind': {'value': -1.1641, 'confidence': 1.0}, 'genericity-arg-particular': {'value': 1.2258, 'confidence': 1.0}}, {}, {'genericity-arg-abstract': {'value': -1.1685, 'confidence': 1.0}, 'genericity-arg-kind': {'value': -0.0351, 'confidence': 0.7138}, 'genericity-arg-particular': {'value': 1.2258, 'confidence': 1.0}, 'wordsense-supersense-noun.Tops': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.act': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.animal': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.artifact': {'value': -1.3993, 'confidence': 1.0}, 'wordsense-supersense-noun.attribute': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.body': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.cognition': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.communication': {'value': 0.2018, 'confidence': 1.0}, 'wordsense-supersense-noun.event': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.feeling': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.food': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.group': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.location': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.motive': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.object': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.person': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.phenomenon': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.plant': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.possession': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.process': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.quantity': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.relation': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.shape': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.state': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.substance': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.time': {'value': -3.0, 'confidence': 1.0}}, {}, {}, {}],
'head_tags': ['arg', 'arg', 'arg', 'EMPTY', 'arg', 'EMPTY', 'EMPTY'],
'head_indices': [0, 0, 1, 2, 1, 4, 1],
#'edge_attributes': [{}, {}, {}, {'protoroles-location': {'value': 1.437, 'confidence': 1.0}, 'protoroles-manner': {'value': -1.3991, 'confidence': 1.0}, 'protoroles-purpose': {'value': -1.3991, 'confidence': 1.0}, 'protoroles-time': {'value': -1.3966, 'confidence': 1.0}}, {}, {'protoroles-awareness': {'value': -0.0, 'confidence': 0.7744}, 'protoroles-change_of_location': {'value': -0.0557, 'confidence': 0.7744}, 'protoroles-change_of_possession': {'value': -0.0557, 'confidence': 0.7744}, 'protoroles-change_of_state': {'value': -0.1333, 'confidence': 0.7744}, 'protoroles-change_of_state_continuous': {'value': -0.0, 'confidence': 1.0}, 'protoroles-existed_after': {'value': 0.2342, 'confidence': 0.4438}, 'protoroles-existed_before': {'value': 0.1087, 'confidence': 0.122}, 'protoroles-existed_during': {'value': 0.2342, 'confidence': 0.4438}, 'protoroles-instigation': {'value': 0.0454, 'confidence': 0.122}, 'protoroles-partitive': {'value': -0.2638, 'confidence': 0.5637}, 'protoroles-sentient': {'value': -0.3531, 'confidence': 0.4522}, 'protoroles-volition': {'value': -0.0, 'confidence': 0.319}, 'protoroles-was_for_benefit': {'value': -0.1333, 'confidence': 0.7744}, 'protoroles-was_used': {'value': -0.0202, 'confidence': 0.014}}, {}, {}, {}],
},
"ewt-dev-44":
{'tgt_tokens': ['@start@', '@@ROOT@@', 'wonder', 'people', 'survive', 'Google', 'if', 'can', 'even', 'Now', ',', '@end@'],
'src_tokens': ['Now', ',', 'people', 'wonder', 'if', 'Google', 'can', 'even', 'survive', '.'],
#'tgt_attributes': [{}, {}, {'factuality-factual': 0.855560302734375, 'genericity-pred-dynamic': 0.3491, 'genericity-pred-hypothetical': 0.3466, 'genericity-pred-particular': -0.0821}, {'wordsense-supersense-noun.Tops': -2.101, 'wordsense-supersense-noun.act': -2.101, 'wordsense-supersense-noun.animal': -2.101, 'wordsense-supersense-noun.artifact': -2.101, 'wordsense-supersense-noun.attribute': -2.101, 'wordsense-supersense-noun.body': -2.101, 'wordsense-supersense-noun.cognition': -2.101, 'wordsense-supersense-noun.communication': -2.101, 'wordsense-supersense-noun.event': -2.101, 'wordsense-supersense-noun.feeling': -2.101, 'wordsense-supersense-noun.food': -2.101, 'wordsense-supersense-noun.group': 1.5049, 'wordsense-supersense-noun.location': -2.101, 'wordsense-supersense-noun.motive': -2.101, 'wordsense-supersense-noun.object': -2.101, 'wordsense-supersense-noun.person': -2.101, 'wordsense-supersense-noun.phenomenon': -2.101, 'wordsense-supersense-noun.plant': -2.101, 'wordsense-supersense-noun.possession': -2.101, 'wordsense-supersense-noun.process': -2.101, 'wordsense-supersense-noun.quantity': -2.101, 'wordsense-supersense-noun.relation': -2.101, 'wordsense-supersense-noun.shape': -2.101, 'wordsense-supersense-noun.state': -2.101, 'wordsense-supersense-noun.substance': -2.101, 'wordsense-supersense-noun.time': -2.101, 'genericity-arg-abstract': -1.3012, 'genericity-arg-kind': 2.2088, 'genericity-arg-particular': -1.3012}, {'factuality-factual': -0.23988200724124908, 'genericity-pred-dynamic': 1.5741, 'genericity-pred-hypothetical': 0.3491, 'genericity-pred-particular': -1.1888}, {'genericity-arg-abstract': -1.4675, 'genericity-arg-kind': -1.4675, 'genericity-arg-particular': 2.7315}, {}, {}, {}, {}, {}, {}],
'head_tags': ['arg', 'arg', 'arg', 'arg', 'arg', 'EMPTY', 'EMPTY', 'EMPTY', 'EMPTY', 'EMPTY'],
'head_indices': [0, 0, 1, 1, 3, 3, 3, 3, 1, 1],
#'edge_attributes': [{}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}],
},
"ewt-dev-7":
{'tgt_tokens': ['@start@', '@@ROOT@@', 'have', 'reasons', 'all', 'the', 'israelians', 'the', 'founded', 'he', 'since', 'and', 'leader', 'he', 'Hamas', 'since', 'and', 'is', 'the', 'spiritual', 'of', 'did', 'they', "n't", 'killed', 'He', 'years', 'could', 'but', 'be', 'ago', 'and', '@end@'],
'src_tokens': ['He', 'could', 'be', 'killed', 'years', 'ago', 'and', 'the', 'israelians', 'have', 'all', 'the', 'reasons', ',', 'since', 'he', 'founded', 'and', 'he', 'is', 'the', 'spiritual', 'leader', 'of', 'Hamas', ',', 'but', 'they', 'did', "n't", '.'],
#'tgt_attributes': [{}, {}, {'factuality-factual': {'value': 1.2324, 'confidence': 1.0}, 'genericity-pred-dynamic': {'value': -0.0788, 'confidence': 0.6742}, 'genericity-pred-hypothetical': {'value': -1.1736, 'confidence': 1.0}, 'genericity-pred-particular': {'value': 1.2097, 'confidence': 1.0}}, {'genericity-arg-abstract': {'value': -0.0492, 'confidence': 0.3295}, 'genericity-arg-kind': {'value': 0.0318, 'confidence': 0.2618}, 'genericity-arg-particular': {'value': -1.2447, 'confidence': 1.0}, 'wordsense-supersense-noun.Tops': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.act': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.animal': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.artifact': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.attribute': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.body': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.cognition': {'value': 0.2085, 'confidence': 0.8616}, 'wordsense-supersense-noun.communication': {'value': 0.2085, 'confidence': 0.8616}, 'wordsense-supersense-noun.event': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.feeling': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.food': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.group': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.location': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.motive': {'value': 1.5213, 'confidence': 1.0}, 'wordsense-supersense-noun.object': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.person': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.phenomenon': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.plant': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.possession': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.process': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.quantity': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.relation': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.shape': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.state': {'value': -1.4821, 'confidence': 1.0}, 'wordsense-supersense-noun.substance': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.time': {'value': -3.0, 'confidence': 1.0}}, {}, {}, {'genericity-arg-abstract': {'value': -0.0741, 'confidence': 0.8244}, 'genericity-arg-kind': {'value': -0.0453, 'confidence': 0.2873}, 'genericity-arg-particular': {'value': -0.01, 'confidence': 0.7061}}, {}, {'factuality-factual': {'value': 1.2089, 'confidence': 1.0}, 'genericity-pred-dynamic': {'value': 0.0343, 'confidence': 0.7583}, 'genericity-pred-hypothetical': {'value': -1.1736, 'confidence': 1.0}, 'genericity-pred-particular': {'value': 1.2097, 'confidence': 1.0}}, {}, {}, {}, {'genericity-pred-dynamic': {'value': 0.0778, 'confidence': 0.7614}, 'genericity-pred-hypothetical': {'value': -0.0617, 'confidence': 0.6091}, 'genericity-pred-particular': {'value': 1.2097, 'confidence': 1.0}}, {}, {'genericity-arg-abstract': {'value': -0.2646, 'confidence': 0.7969}, 'genericity-arg-kind': {'value': -1.2447, 'confidence': 1.0}, 'genericity-arg-particular': {'value': 1.1911, 'confidence': 1.0}}, {}, {}, {}, {}, {}, {}, {'factuality-factual': {'value': -1.1617, 'confidence': 1.0}, 'genericity-pred-dynamic': {'value': 0.0778, 'confidence': 0.7614}, 'genericity-pred-hypothetical': {'value': -1.1736, 'confidence': 1.0}, 'genericity-pred-particular': {'value': 0.0741, 'confidence': 0.4486}}, {'genericity-arg-abstract': {'value': -1.1694, 'confidence': 1.0}, 'genericity-arg-kind': {'value': 0.0397, 'confidence': 0.6031}, 'genericity-arg-particular': {'value': 1.2004, 'confidence': 1.0}}, {}, {'factuality-factual': {'value': 0.0227, 'confidence': 0.8229}, 'genericity-pred-dynamic': {'value': 1.1734, 'confidence': 1.0}, 'genericity-pred-hypothetical': {'value': 0.0721, 'confidence': 0.6361}, 'genericity-pred-particular': {'value': 0.0917, 'confidence': 0.4946}}, {}, {'genericity-arg-abstract': {'value': -0.3927, 'confidence': 0.9025}, 'genericity-arg-kind': {'value': -0.0415, 'confidence': 0.2452}, 'genericity-arg-particular': {'value': -1.2306, 'confidence': 1.0}}, {}, {}, {}, {}, {}, {}],
'head_indices': [0, 0, 1, 2, 2, 1, 5, 0, 7, 7, 7, 0, 11, 11, 11, 11, 11, 11, 11, 11, 0, 20, 20, 0, 23, 23, 23, 23, 23, 23, 23],
'head_tags': ['arg', 'arg', 'arg', 'EMPTY', 'EMPTY', 'arg', 'EMPTY', 'arg', 'arg', 'EMPTY', 'EMPTY', 'arg', 'arg', 'arg', 'EMPTY', 'EMPTY', 'EMPTY', 'EMPTY', 'EMPTY', 'EMPTY', 'arg', 'arg', 'EMPTY', 'arg', 'arg', 'arg', 'EMPTY', 'EMPTY', 'EMPTY', 'EMPTY', 'EMPTY'],
#'edge_attributes': [{}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}],
} ,
"ewt-dev-1377":
{'tgt_tokens': ['@start@', '@@ROOT@@', 'STAR', 'she', 'family', 'the', 'And', 'is', 'the', 'of', '@end@'],
'src_tokens': ['And', 'she', 'is', 'the', 'STAR', 'of', 'the', 'family', '.'],
#'tgt_attributes': [{}, {}, {'genericity-pred-dynamic': -0.2138, 'genericity-pred-hypothetical': -0.2138, 'genericity-pred-particular': 1.0277}, {}, {'wordsense-supersense-noun.Tops': -2.101, 'wordsense-supersense-noun.act': -2.101, 'wordsense-supersense-noun.animal': -2.101, 'wordsense-supersense-noun.artifact': -2.101, 'wordsense-supersense-noun.attribute': -2.101, 'wordsense-supersense-noun.body': -2.101, 'wordsense-supersense-noun.cognition': -2.101, 'wordsense-supersense-noun.communication': -2.101, 'wordsense-supersense-noun.event': -2.101, 'wordsense-supersense-noun.feeling': -2.101, 'wordsense-supersense-noun.food': -2.101, 'wordsense-supersense-noun.group': 1.5516, 'wordsense-supersense-noun.location': -2.101, 'wordsense-supersense-noun.motive': -2.101, 'wordsense-supersense-noun.object': -2.101, 'wordsense-supersense-noun.person': 0.2556, 'wordsense-supersense-noun.phenomenon': -2.101, 'wordsense-supersense-noun.plant': -2.101, 'wordsense-supersense-noun.possession': -2.101, 'wordsense-supersense-noun.process': -2.101, 'wordsense-supersense-noun.quantity': -2.101, 'wordsense-supersense-noun.relation': -2.101, 'wordsense-supersense-noun.shape': -2.101, 'wordsense-supersense-noun.state': -2.101, 'wordsense-supersense-noun.substance': -2.101, 'wordsense-supersense-noun.time': -2.101, 'genericity-arg-abstract': -1.8067, 'genericity-arg-kind': -0.5112, 'genericity-arg-particular': 1.9171}, {}, {}, {}, {}, {}, {}],
'head_indices': [0, 0, 1, 1, 3, 1, 1, 1, 1],
'head_tags': ['arg', 'arg', 'arg', 'arg', 'EMPTY', 'EMPTY', 'EMPTY', 'EMPTY', 'EMPTY'],
#'edge_attributes': [{}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}],
} ,
}
##################################################################################################################################################################################################################
drop_instances = {"ewt-dev-1":
{'tgt_tokens': ['@start@', '@@ROOT@@', 'comes', 'AP', 'the', 'story', 'this', 'From', '@end@'],
'src_tokens': ['From', 'the', 'AP', 'comes', 'this', 'story', ':'],
#'tgt_attributes': [{}, {}, {'factuality-factual': {'value': 0.9672, 'confidence': 1.0}, 'genericity-pred-dynamic': {'value': -0.0479, 'confidence': 0.6258}, 'genericity-pred-hypothetical': {'value': -0.0427, 'confidence': 0.5096}, 'genericity-pred-particular': {'value': 1.1753, 'confidence': 1.0}}, {'genericity-arg-abstract': {'value': -1.1641, 'confidence': 1.0}, 'genericity-arg-kind': {'value': -1.1641, 'confidence': 1.0}, 'genericity-arg-particular': {'value': 1.2258, 'confidence': 1.0}}, {}, {'genericity-arg-abstract': {'value': -1.1685, 'confidence': 1.0}, 'genericity-arg-kind': {'value': -0.0351, 'confidence': 0.7138}, 'genericity-arg-particular': {'value': 1.2258, 'confidence': 1.0}, 'wordsense-supersense-noun.Tops': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.act': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.animal': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.artifact': {'value': -1.3993, 'confidence': 1.0}, 'wordsense-supersense-noun.attribute': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.body': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.cognition': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.communication': {'value': 0.2018, 'confidence': 1.0}, 'wordsense-supersense-noun.event': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.feeling': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.food': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.group': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.location': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.motive': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.object': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.person': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.phenomenon': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.plant': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.possession': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.process': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.quantity': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.relation': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.shape': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.state': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.substance': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.time': {'value': -3.0, 'confidence': 1.0}}, {}, {}, {}],
'head_tags': ['arg', 'arg', 'arg', 'EMPTY', 'arg', 'EMPTY', 'EMPTY'],
'head_indices': [0, 0, 1, 2, 1, 4, 1],
#'edge_attributes': [{}, {}, {}, {'protoroles-location': {'value': 1.437, 'confidence': 1.0}, 'protoroles-manner': {'value': -1.3991, 'confidence': 1.0}, 'protoroles-purpose': {'value': -1.3991, 'confidence': 1.0}, 'protoroles-time': {'value': -1.3966, 'confidence': 1.0}}, {}, {'protoroles-awareness': {'value': -0.0, 'confidence': 0.7744}, 'protoroles-change_of_location': {'value': -0.0557, 'confidence': 0.7744}, 'protoroles-change_of_possession': {'value': -0.0557, 'confidence': 0.7744}, 'protoroles-change_of_state': {'value': -0.1333, 'confidence': 0.7744}, 'protoroles-change_of_state_continuous': {'value': -0.0, 'confidence': 1.0}, 'protoroles-existed_after': {'value': 0.2342, 'confidence': 0.4438}, 'protoroles-existed_before': {'value': 0.1087, 'confidence': 0.122}, 'protoroles-existed_during': {'value': 0.2342, 'confidence': 0.4438}, 'protoroles-instigation': {'value': 0.0454, 'confidence': 0.122}, 'protoroles-partitive': {'value': -0.2638, 'confidence': 0.5637}, 'protoroles-sentient': {'value': -0.3531, 'confidence': 0.4522}, 'protoroles-volition': {'value': -0.0, 'confidence': 0.319}, 'protoroles-was_for_benefit': {'value': -0.1333, 'confidence': 0.7744}, 'protoroles-was_used': {'value': -0.0202, 'confidence': 0.014}}, {}, {}, {}],
},
"ewt-dev-44":
{'tgt_tokens': ['@start@', '@@ROOT@@', 'wonder', 'people', 'survive', 'Google', 'if', 'can', 'even', 'Now', ',', '@end@'],
'src_tokens': ['Now', ',', 'people', 'wonder', 'if', 'Google', 'can', 'even', 'survive', '.'],
#'tgt_attributes': [{}, {}, {'factuality-factual': 0.855560302734375, 'genericity-pred-dynamic': 0.3491, 'genericity-pred-hypothetical': 0.3466, 'genericity-pred-particular': -0.0821}, {'wordsense-supersense-noun.Tops': -2.101, 'wordsense-supersense-noun.act': -2.101, 'wordsense-supersense-noun.animal': -2.101, 'wordsense-supersense-noun.artifact': -2.101, 'wordsense-supersense-noun.attribute': -2.101, 'wordsense-supersense-noun.body': -2.101, 'wordsense-supersense-noun.cognition': -2.101, 'wordsense-supersense-noun.communication': -2.101, 'wordsense-supersense-noun.event': -2.101, 'wordsense-supersense-noun.feeling': -2.101, 'wordsense-supersense-noun.food': -2.101, 'wordsense-supersense-noun.group': 1.5049, 'wordsense-supersense-noun.location': -2.101, 'wordsense-supersense-noun.motive': -2.101, 'wordsense-supersense-noun.object': -2.101, 'wordsense-supersense-noun.person': -2.101, 'wordsense-supersense-noun.phenomenon': -2.101, 'wordsense-supersense-noun.plant': -2.101, 'wordsense-supersense-noun.possession': -2.101, 'wordsense-supersense-noun.process': -2.101, 'wordsense-supersense-noun.quantity': -2.101, 'wordsense-supersense-noun.relation': -2.101, 'wordsense-supersense-noun.shape': -2.101, 'wordsense-supersense-noun.state': -2.101, 'wordsense-supersense-noun.substance': -2.101, 'wordsense-supersense-noun.time': -2.101, 'genericity-arg-abstract': -1.3012, 'genericity-arg-kind': 2.2088, 'genericity-arg-particular': -1.3012}, {'factuality-factual': -0.23988200724124908, 'genericity-pred-dynamic': 1.5741, 'genericity-pred-hypothetical': 0.3491, 'genericity-pred-particular': -1.1888}, {'genericity-arg-abstract': -1.4675, 'genericity-arg-kind': -1.4675, 'genericity-arg-particular': 2.7315}, {}, {}, {}, {}, {}, {}],
'head_tags': ['arg', 'arg', 'arg', 'arg', 'arg', 'EMPTY', 'EMPTY', 'EMPTY', 'EMPTY', 'EMPTY'],
'head_indices': [0, 0, 1, 1, 3, 3, 3, 3, 1, 1],
#'edge_attributes': [{}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}],
},
"ewt-dev-7":
{'tgt_tokens': ['@start@', '@@ROOT@@', 'have', 'reasons', 'all', 'the', 'israelians', 'the', 'founded', 'he', 'since', 'and', 'leader', 'he', 'Hamas', 'since', 'and', 'is', 'the', 'spiritual', 'of', 'did', 'they', "n't", 'killed', 'He', 'years', 'could', 'but', 'be', 'ago', 'and', '@end@'],
'src_tokens': ['He', 'could', 'be', 'killed', 'years', 'ago', 'and', 'the', 'israelians', 'have', 'all', 'the', 'reasons', ',', 'since', 'he', 'founded', 'and', 'he', 'is', 'the', 'spiritual', 'leader', 'of', 'Hamas', ',', 'but', 'they', 'did', "n't", '.'],
#'tgt_attributes': [{}, {}, {'factuality-factual': {'value': 1.2324, 'confidence': 1.0}, 'genericity-pred-dynamic': {'value': -0.0788, 'confidence': 0.6742}, 'genericity-pred-hypothetical': {'value': -1.1736, 'confidence': 1.0}, 'genericity-pred-particular': {'value': 1.2097, 'confidence': 1.0}}, {'genericity-arg-abstract': {'value': -0.0492, 'confidence': 0.3295}, 'genericity-arg-kind': {'value': 0.0318, 'confidence': 0.2618}, 'genericity-arg-particular': {'value': -1.2447, 'confidence': 1.0}, 'wordsense-supersense-noun.Tops': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.act': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.animal': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.artifact': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.attribute': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.body': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.cognition': {'value': 0.2085, 'confidence': 0.8616}, 'wordsense-supersense-noun.communication': {'value': 0.2085, 'confidence': 0.8616}, 'wordsense-supersense-noun.event': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.feeling': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.food': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.group': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.location': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.motive': {'value': 1.5213, 'confidence': 1.0}, 'wordsense-supersense-noun.object': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.person': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.phenomenon': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.plant': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.possession': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.process': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.quantity': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.relation': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.shape': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.state': {'value': -1.4821, 'confidence': 1.0}, 'wordsense-supersense-noun.substance': {'value': -3.0, 'confidence': 1.0}, 'wordsense-supersense-noun.time': {'value': -3.0, 'confidence': 1.0}}, {}, {}, {'genericity-arg-abstract': {'value': -0.0741, 'confidence': 0.8244}, 'genericity-arg-kind': {'value': -0.0453, 'confidence': 0.2873}, 'genericity-arg-particular': {'value': -0.01, 'confidence': 0.7061}}, {}, {'factuality-factual': {'value': 1.2089, 'confidence': 1.0}, 'genericity-pred-dynamic': {'value': 0.0343, 'confidence': 0.7583}, 'genericity-pred-hypothetical': {'value': -1.1736, 'confidence': 1.0}, 'genericity-pred-particular': {'value': 1.2097, 'confidence': 1.0}}, {}, {}, {}, {'genericity-pred-dynamic': {'value': 0.0778, 'confidence': 0.7614}, 'genericity-pred-hypothetical': {'value': -0.0617, 'confidence': 0.6091}, 'genericity-pred-particular': {'value': 1.2097, 'confidence': 1.0}}, {}, {'genericity-arg-abstract': {'value': -0.2646, 'confidence': 0.7969}, 'genericity-arg-kind': {'value': -1.2447, 'confidence': 1.0}, 'genericity-arg-particular': {'value': 1.1911, 'confidence': 1.0}}, {}, {}, {}, {}, {}, {}, {'factuality-factual': {'value': -1.1617, 'confidence': 1.0}, 'genericity-pred-dynamic': {'value': 0.0778, 'confidence': 0.7614}, 'genericity-pred-hypothetical': {'value': -1.1736, 'confidence': 1.0}, 'genericity-pred-particular': {'value': 0.0741, 'confidence': 0.4486}}, {'genericity-arg-abstract': {'value': -1.1694, 'confidence': 1.0}, 'genericity-arg-kind': {'value': 0.0397, 'confidence': 0.6031}, 'genericity-arg-particular': {'value': 1.2004, 'confidence': 1.0}}, {}, {'factuality-factual': {'value': 0.0227, 'confidence': 0.8229}, 'genericity-pred-dynamic': {'value': 1.1734, 'confidence': 1.0}, 'genericity-pred-hypothetical': {'value': 0.0721, 'confidence': 0.6361}, 'genericity-pred-particular': {'value': 0.0917, 'confidence': 0.4946}}, {}, {'genericity-arg-abstract': {'value': -0.3927, 'confidence': 0.9025}, 'genericity-arg-kind': {'value': -0.0415, 'confidence': 0.2452}, 'genericity-arg-particular': {'value': -1.2306, 'confidence': 1.0}}, {}, {}, {}, {}, {}, {}],
'head_indices': [0, 0, 1, 2, 2, 1, 5, 0, 7, 7, 7, 0, 11, 11, 11, 11, 11, 11, 11, 11, 0, 20, 20, 0, 23, 23, 23, 23, 23, 23, 23],
'head_tags': ['arg', 'arg', 'arg', 'EMPTY', 'EMPTY', 'arg', 'EMPTY', 'arg', 'arg', 'EMPTY', 'EMPTY', 'arg', 'arg', 'arg', 'EMPTY', 'EMPTY', 'EMPTY', 'EMPTY', 'EMPTY', 'EMPTY', 'arg', 'arg', 'EMPTY', 'arg', 'arg', 'arg', 'EMPTY', 'EMPTY', 'EMPTY', 'EMPTY', 'EMPTY'],
#'edge_attributes': [{}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}],
} ,
"ewt-dev-1377":
{'tgt_tokens': ['@start@', '@@ROOT@@', 'STAR', 'she', 'family', 'the', 'And', 'is', 'the', 'of', '@end@'],
'src_tokens': ['And', 'she', 'is', 'the', 'STAR', 'of', 'the', 'family', '.'],
#'tgt_attributes': [{}, {}, {'genericity-pred-dynamic': -0.2138, 'genericity-pred-hypothetical': -0.2138, 'genericity-pred-particular': 1.0277}, {}, {'wordsense-supersense-noun.Tops': -2.101, 'wordsense-supersense-noun.act': -2.101, 'wordsense-supersense-noun.animal': -2.101, 'wordsense-supersense-noun.artifact': -2.101, 'wordsense-supersense-noun.attribute': -2.101, 'wordsense-supersense-noun.body': -2.101, 'wordsense-supersense-noun.cognition': -2.101, 'wordsense-supersense-noun.communication': -2.101, 'wordsense-supersense-noun.event': -2.101, 'wordsense-supersense-noun.feeling': -2.101, 'wordsense-supersense-noun.food': -2.101, 'wordsense-supersense-noun.group': 1.5516, 'wordsense-supersense-noun.location': -2.101, 'wordsense-supersense-noun.motive': -2.101, 'wordsense-supersense-noun.object': -2.101, 'wordsense-supersense-noun.person': 0.2556, 'wordsense-supersense-noun.phenomenon': -2.101, 'wordsense-supersense-noun.plant': -2.101, 'wordsense-supersense-noun.possession': -2.101, 'wordsense-supersense-noun.process': -2.101, 'wordsense-supersense-noun.quantity': -2.101, 'wordsense-supersense-noun.relation': -2.101, 'wordsense-supersense-noun.shape': -2.101, 'wordsense-supersense-noun.state': -2.101, 'wordsense-supersense-noun.substance': -2.101, 'wordsense-supersense-noun.time': -2.101, 'genericity-arg-abstract': -1.8067, 'genericity-arg-kind': -0.5112, 'genericity-arg-particular': 1.9171}, {}, {}, {}, {}, {}, {}],
'head_indices': [0, 0, 1, 1, 3, 1, 1, 1, 1],
'head_tags': ['arg', 'arg', 'arg', 'arg', 'EMPTY', 'EMPTY', 'EMPTY', 'EMPTY', 'EMPTY'],
#'edge_attributes': [{}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}],
} ,
}
NODROP_TEST_CASES = nodrop_instances.keys()
DROP_TEST_CASES = drop_instances.keys()
def test_reader(name, list_data, drop_syntax):
if drop_syntax:
instances = drop_instances
else:
instances = nodrop_instances
for field in instances[name].keys():
try:
assert(list_data[field] == instances[name][field])
except AssertionError:
raise AssertionError(f"Error on test case {name} for field {field}; expected \n\t{instances[name][field]} \n and got \n\t{list_data[field]}")
| 293.23
| 4,347
| 0.608874
| 3,620
| 29,323
| 4.906077
| 0.06989
| 0.222523
| 0.269369
| 0.118243
| 0.978491
| 0.978491
| 0.978491
| 0.978491
| 0.978491
| 0.978491
| 0
| 0.090631
| 0.120247
| 29,323
| 99
| 4,348
| 296.191919
| 0.597821
| 0.796576
| 0
| 0.612903
| 0
| 0.016129
| 0.345959
| 0.008728
| 0
| 0
| 0
| 0
| 0.048387
| 1
| 0.016129
| false
| 0
| 0
| 0
| 0.016129
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
5ad4da9f9da49e8dc8b89153832102c96a2ddddd
| 16,097
|
py
|
Python
|
tests/snapshots/snap_test_holidata/test_holidata_produces_holidays_for_locale_and_year[es_ES-2022] 1.py
|
xeals/holidata
|
c99a56b63b1cb9dc5f4f79f3de83ba3865215250
|
[
"MIT"
] | null | null | null |
tests/snapshots/snap_test_holidata/test_holidata_produces_holidays_for_locale_and_year[es_ES-2022] 1.py
|
xeals/holidata
|
c99a56b63b1cb9dc5f4f79f3de83ba3865215250
|
[
"MIT"
] | null | null | null |
tests/snapshots/snap_test_holidata/test_holidata_produces_holidays_for_locale_and_year[es_ES-2022] 1.py
|
xeals/holidata
|
c99a56b63b1cb9dc5f4f79f3de83ba3865215250
|
[
"MIT"
] | null | null | null |
[
{
'date': '2022-01-01',
'description': 'Año Nuevo',
'locale': 'es-ES',
'notes': '',
'region': '',
'type': 'NF'
},
{
'date': '2022-01-06',
'description': 'Epifanía del Señor',
'locale': 'es-ES',
'notes': '',
'region': '',
'type': 'NRF'
},
{
'date': '2022-02-28',
'description': 'Día de Andalucía',
'locale': 'es-ES',
'notes': '',
'region': 'AN',
'type': 'F'
},
{
'date': '2022-03-01',
'description': 'Día de las Illes Balears',
'locale': 'es-ES',
'notes': '',
'region': 'IB',
'type': 'F'
},
{
'date': '2022-03-19',
'description': 'San José',
'locale': 'es-ES',
'notes': '',
'region': 'VC',
'type': 'RF'
},
{
'date': '2022-04-14',
'description': 'Jueves Santo',
'locale': 'es-ES',
'notes': '',
'region': 'AN',
'type': 'RV'
},
{
'date': '2022-04-14',
'description': 'Jueves Santo',
'locale': 'es-ES',
'notes': '',
'region': 'AR',
'type': 'RV'
},
{
'date': '2022-04-14',
'description': 'Jueves Santo',
'locale': 'es-ES',
'notes': '',
'region': 'AS',
'type': 'RV'
},
{
'date': '2022-04-14',
'description': 'Jueves Santo',
'locale': 'es-ES',
'notes': '',
'region': 'CB',
'type': 'RV'
},
{
'date': '2022-04-14',
'description': 'Jueves Santo',
'locale': 'es-ES',
'notes': '',
'region': 'CE',
'type': 'RV'
},
{
'date': '2022-04-14',
'description': 'Jueves Santo',
'locale': 'es-ES',
'notes': '',
'region': 'CL',
'type': 'RV'
},
{
'date': '2022-04-14',
'description': 'Jueves Santo',
'locale': 'es-ES',
'notes': '',
'region': 'CM',
'type': 'RV'
},
{
'date': '2022-04-14',
'description': 'Jueves Santo',
'locale': 'es-ES',
'notes': '',
'region': 'CN',
'type': 'RV'
},
{
'date': '2022-04-14',
'description': 'Jueves Santo',
'locale': 'es-ES',
'notes': '',
'region': 'EX',
'type': 'RV'
},
{
'date': '2022-04-14',
'description': 'Jueves Santo',
'locale': 'es-ES',
'notes': '',
'region': 'GA',
'type': 'RV'
},
{
'date': '2022-04-14',
'description': 'Jueves Santo',
'locale': 'es-ES',
'notes': '',
'region': 'IB',
'type': 'RV'
},
{
'date': '2022-04-14',
'description': 'Jueves Santo',
'locale': 'es-ES',
'notes': '',
'region': 'MC',
'type': 'RV'
},
{
'date': '2022-04-14',
'description': 'Jueves Santo',
'locale': 'es-ES',
'notes': '',
'region': 'MD',
'type': 'RV'
},
{
'date': '2022-04-14',
'description': 'Jueves Santo',
'locale': 'es-ES',
'notes': '',
'region': 'ML',
'type': 'RV'
},
{
'date': '2022-04-14',
'description': 'Jueves Santo',
'locale': 'es-ES',
'notes': '',
'region': 'NC',
'type': 'RV'
},
{
'date': '2022-04-14',
'description': 'Jueves Santo',
'locale': 'es-ES',
'notes': '',
'region': 'PV',
'type': 'RV'
},
{
'date': '2022-04-14',
'description': 'Jueves Santo',
'locale': 'es-ES',
'notes': '',
'region': 'RI',
'type': 'RV'
},
{
'date': '2022-04-14',
'description': 'Jueves Santo',
'locale': 'es-ES',
'notes': '',
'region': 'VC',
'type': 'RV'
},
{
'date': '2022-04-15',
'description': 'Viernes Santo',
'locale': 'es-ES',
'notes': '',
'region': '',
'type': 'NRV'
},
{
'date': '2022-04-17',
'description': 'Pascua',
'locale': 'es-ES',
'notes': '',
'region': '',
'type': 'NRV'
},
{
'date': '2022-04-18',
'description': 'Lunes de Pascua',
'locale': 'es-ES',
'notes': '',
'region': 'CN',
'type': 'RV'
},
{
'date': '2022-04-18',
'description': 'Lunes de Pascua',
'locale': 'es-ES',
'notes': '',
'region': 'CT',
'type': 'RV'
},
{
'date': '2022-04-18',
'description': 'Lunes de Pascua',
'locale': 'es-ES',
'notes': '',
'region': 'IB',
'type': 'RV'
},
{
'date': '2022-04-18',
'description': 'Lunes de Pascua',
'locale': 'es-ES',
'notes': '',
'region': 'NC',
'type': 'RV'
},
{
'date': '2022-04-18',
'description': 'Lunes de Pascua',
'locale': 'es-ES',
'notes': '',
'region': 'PV',
'type': 'RV'
},
{
'date': '2022-04-18',
'description': 'Lunes de Pascua',
'locale': 'es-ES',
'notes': '',
'region': 'RI',
'type': 'RV'
},
{
'date': '2022-04-18',
'description': 'Lunes de Pascua',
'locale': 'es-ES',
'notes': '',
'region': 'VC',
'type': 'RV'
},
{
'date': '2022-04-23',
'description': 'Fiesta de Castilla y León',
'locale': 'es-ES',
'notes': '',
'region': 'CL',
'type': 'F'
},
{
'date': '2022-04-23',
'description': 'San Jorge / Día de Aragón',
'locale': 'es-ES',
'notes': '',
'region': 'AR',
'type': 'RF'
},
{
'date': '2022-05-01',
'description': 'Fiesta del Trabajo',
'locale': 'es-ES',
'notes': '',
'region': '',
'type': 'NF'
},
{
'date': '2022-05-02',
'description': 'Fiesta de la Comunidad de Madrid',
'locale': 'es-ES',
'notes': '',
'region': 'MD',
'type': 'F'
},
{
'date': '2022-05-02',
'description': 'Lunes siguiente a la Fiesta del Trabajo',
'locale': 'es-ES',
'notes': '',
'region': 'AN',
'type': 'F'
},
{
'date': '2022-05-02',
'description': 'Lunes siguiente a la Fiesta del Trabajo',
'locale': 'es-ES',
'notes': '',
'region': 'AR',
'type': 'F'
},
{
'date': '2022-05-02',
'description': 'Lunes siguiente a la Fiesta del Trabajo',
'locale': 'es-ES',
'notes': '',
'region': 'AS',
'type': 'F'
},
{
'date': '2022-05-02',
'description': 'Lunes siguiente a la Fiesta del Trabajo',
'locale': 'es-ES',
'notes': '',
'region': 'CL',
'type': 'F'
},
{
'date': '2022-05-02',
'description': 'Lunes siguiente a la Fiesta del Trabajo',
'locale': 'es-ES',
'notes': '',
'region': 'EX',
'type': 'F'
},
{
'date': '2022-05-02',
'description': 'Lunes siguiente a la Fiesta del Trabajo',
'locale': 'es-ES',
'notes': '',
'region': 'MC',
'type': 'F'
},
{
'date': '2022-05-03',
'description': 'Fiesta del Eid Fitr',
'locale': 'es-ES',
'notes': '',
'region': 'ML',
'type': 'RV'
},
{
'date': '2022-05-17',
'description': 'Día de las Letras Gallegas',
'locale': 'es-ES',
'notes': '',
'region': 'GA',
'type': 'F'
},
{
'date': '2022-05-30',
'description': 'Día de Canarias',
'locale': 'es-ES',
'notes': '',
'region': 'CN',
'type': 'F'
},
{
'date': '2022-05-31',
'description': 'Día de Castilla-La Mancha',
'locale': 'es-ES',
'notes': '',
'region': 'CM',
'type': 'F'
},
{
'date': '2022-06-06',
'description': 'Lunes de Pascua Granada',
'locale': 'es-ES',
'notes': '',
'region': 'CT',
'type': 'F'
},
{
'date': '2022-06-09',
'description': 'Día de la Región de Murcia',
'locale': 'es-ES',
'notes': '',
'region': 'MC',
'type': 'F'
},
{
'date': '2022-06-09',
'description': 'Día de La Rioja',
'locale': 'es-ES',
'notes': '',
'region': 'RI',
'type': 'F'
},
{
'date': '2022-06-16',
'description': 'Corpus Christi',
'locale': 'es-ES',
'notes': '',
'region': 'CM',
'type': 'RV'
},
{
'date': '2022-06-24',
'description': 'San Juan',
'locale': 'es-ES',
'notes': '',
'region': 'CT',
'type': 'RF'
},
{
'date': '2022-06-24',
'description': 'San Juan',
'locale': 'es-ES',
'notes': '',
'region': 'GA',
'type': 'RF'
},
{
'date': '2022-06-24',
'description': 'San Juan',
'locale': 'es-ES',
'notes': '',
'region': 'VC',
'type': 'RF'
},
{
'date': '2022-07-09',
'description': 'Fiesta del Sacrificio (Eidul Adha)',
'locale': 'es-ES',
'notes': '',
'region': 'CE',
'type': 'RV'
},
{
'date': '2022-07-11',
'description': 'Fiesta del Sacrificio (Aid Al Adha)',
'locale': 'es-ES',
'notes': '',
'region': 'ML',
'type': 'RV'
},
{
'date': '2022-07-25',
'description': 'Santiago Apóstol',
'locale': 'es-ES',
'notes': '',
'region': 'MD',
'type': 'RF'
},
{
'date': '2022-07-25',
'description': 'Santiago Apóstol',
'locale': 'es-ES',
'notes': '',
'region': 'NC',
'type': 'RF'
},
{
'date': '2022-07-25',
'description': 'Santiago Apóstol',
'locale': 'es-ES',
'notes': '',
'region': 'PV',
'type': 'RF'
},
{
'date': '2022-07-25',
'description': 'Santiago Apóstol / Día Nacional de Galicia',
'locale': 'es-ES',
'notes': '',
'region': 'GA',
'type': 'RF'
},
{
'date': '2022-07-28',
'description': 'Día de las Instituciones de Cantabria',
'locale': 'es-ES',
'notes': '',
'region': 'CB',
'type': 'F'
},
{
'date': '2022-08-05',
'description': 'Nuestra Señora de África',
'locale': 'es-ES',
'notes': '',
'region': 'CE',
'type': 'RF'
},
{
'date': '2022-08-15',
'description': 'Asunción de la Virgen',
'locale': 'es-ES',
'notes': '',
'region': '',
'type': 'NRF'
},
{
'date': '2022-09-02',
'description': 'Día de Ceuta',
'locale': 'es-ES',
'notes': '',
'region': 'CE',
'type': 'F'
},
{
'date': '2022-09-06',
'description': 'V Centenario Vuelta al Mundo',
'locale': 'es-ES',
'notes': '',
'region': 'PV',
'type': 'F'
},
{
'date': '2022-09-08',
'description': 'Día de Asturias',
'locale': 'es-ES',
'notes': '',
'region': 'AS',
'type': 'F'
},
{
'date': '2022-09-08',
'description': 'Día de Extremadura',
'locale': 'es-ES',
'notes': '',
'region': 'EX',
'type': 'F'
},
{
'date': '2022-09-15',
'description': 'La Bien Aparecida',
'locale': 'es-ES',
'notes': '',
'region': 'CB',
'type': 'RF'
},
{
'date': '2022-10-12',
'description': 'Fiesta Nacional de España',
'locale': 'es-ES',
'notes': '',
'region': '',
'type': 'NF'
},
{
'date': '2022-11-01',
'description': 'Todos los Santos',
'locale': 'es-ES',
'notes': '',
'region': '',
'type': 'NRF'
},
{
'date': '2022-12-06',
'description': 'Día de la Constitución Española',
'locale': 'es-ES',
'notes': '',
'region': '',
'type': 'NF'
},
{
'date': '2022-12-08',
'description': 'Inmaculada Concepción',
'locale': 'es-ES',
'notes': '',
'region': '',
'type': 'NRF'
},
{
'date': '2022-12-25',
'description': 'Natividad del Señor',
'locale': 'es-ES',
'notes': '',
'region': '',
'type': 'NRF'
},
{
'date': '2022-12-26',
'description': 'Lunes siguiente a la Natividad del Señor',
'locale': 'es-ES',
'notes': '',
'region': 'AN',
'type': 'RF'
},
{
'date': '2022-12-26',
'description': 'Lunes siguiente a la Natividad del Señor',
'locale': 'es-ES',
'notes': '',
'region': 'AR',
'type': 'RF'
},
{
'date': '2022-12-26',
'description': 'Lunes siguiente a la Natividad del Señor',
'locale': 'es-ES',
'notes': '',
'region': 'AS',
'type': 'RF'
},
{
'date': '2022-12-26',
'description': 'Lunes siguiente a la Natividad del Señor',
'locale': 'es-ES',
'notes': '',
'region': 'CB',
'type': 'RF'
},
{
'date': '2022-12-26',
'description': 'Lunes siguiente a la Natividad del Señor',
'locale': 'es-ES',
'notes': '',
'region': 'CL',
'type': 'RF'
},
{
'date': '2022-12-26',
'description': 'Lunes siguiente a la Natividad del Señor',
'locale': 'es-ES',
'notes': '',
'region': 'CM',
'type': 'RF'
},
{
'date': '2022-12-26',
'description': 'Lunes siguiente a la Natividad del Señor',
'locale': 'es-ES',
'notes': '',
'region': 'CN',
'type': 'RF'
},
{
'date': '2022-12-26',
'description': 'Lunes siguiente a la Natividad del Señor',
'locale': 'es-ES',
'notes': '',
'region': 'EX',
'type': 'RF'
},
{
'date': '2022-12-26',
'description': 'Lunes siguiente a la Natividad del Señor',
'locale': 'es-ES',
'notes': '',
'region': 'IB',
'type': 'RF'
},
{
'date': '2022-12-26',
'description': 'Lunes siguiente a la Natividad del Señor',
'locale': 'es-ES',
'notes': '',
'region': 'MC',
'type': 'RF'
},
{
'date': '2022-12-26',
'description': 'Lunes siguiente a la Natividad del Señor',
'locale': 'es-ES',
'notes': '',
'region': 'MD',
'type': 'RF'
},
{
'date': '2022-12-26',
'description': 'Lunes siguiente a la Natividad del Señor',
'locale': 'es-ES',
'notes': '',
'region': 'ML',
'type': 'RF'
},
{
'date': '2022-12-26',
'description': 'Lunes siguiente a la Natividad del Señor',
'locale': 'es-ES',
'notes': '',
'region': 'NC',
'type': 'RF'
},
{
'date': '2022-12-26',
'description': 'Lunes siguiente a la Natividad del Señor',
'locale': 'es-ES',
'notes': '',
'region': 'RI',
'type': 'RF'
},
{
'date': '2022-12-26',
'description': 'San Esteban',
'locale': 'es-ES',
'notes': '',
'region': 'CT',
'type': 'RF'
}
]
| 23.061605
| 68
| 0.383363
| 1,466
| 16,097
| 4.209413
| 0.092769
| 0.112786
| 0.140982
| 0.211473
| 0.845244
| 0.825636
| 0.822557
| 0.764544
| 0.755469
| 0.71123
| 0
| 0.071414
| 0.394546
| 16,097
| 698
| 69
| 23.061605
| 0.561769
| 0
| 0
| 0.657593
| 0
| 0
| 0.416139
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
5adcc73abc375aba38b3cf6660fa525465d83c91
| 3,548
|
py
|
Python
|
test_autoskewer.py
|
MG-RAST/autoskewer
|
042e3325f01301d095d403e6e483d48bf2ca789a
|
[
"BSD-2-Clause"
] | 1
|
2017-01-23T12:05:02.000Z
|
2017-01-23T12:05:02.000Z
|
test_autoskewer.py
|
MG-RAST/autoskewer
|
042e3325f01301d095d403e6e483d48bf2ca789a
|
[
"BSD-2-Clause"
] | 2
|
2019-01-15T15:36:36.000Z
|
2019-08-23T17:08:37.000Z
|
test_autoskewer.py
|
MG-RAST/autoskewer
|
042e3325f01301d095d403e6e483d48bf2ca789a
|
[
"BSD-2-Clause"
] | 3
|
2017-01-18T21:27:17.000Z
|
2018-08-28T17:03:52.000Z
|
import os
from subprocess import call
from os.path import exists
def test_cmdline1Q():
call("autoskewer.py -i example/sample.fastq".split())
assert os.path.exists("example/sample.scrubbed.fastq")
assert os.path.exists("example/sample.scrubbed.log")
os.remove("example/sample.scrubbed.fastq")
os.remove("example/sample.scrubbed.log")
def test_cmdline1A():
call("autoskewer.py -i example/sample.fasta".split())
assert os.path.exists("example/sample.scrubbed.fasta")
assert os.path.exists("example/sample.scrubbed.log")
os.remove("example/sample.scrubbed.fasta")
os.remove("example/sample.scrubbed.log")
def test_cmdline2A():
call("autoskewer.py -i example/sample.fa".split())
assert os.path.exists("example/sample.fa.scrubbed.fasta")
assert os.path.exists("example/sample.fa.scrubbed.log")
os.remove("example/sample.fa.scrubbed.fasta")
os.remove("example/sample.fa.scrubbed.log")
def test_cmdline2Q():
call("autoskewer.py -i example/sample.fq".split())
assert os.path.exists("example/sample.fq.scrubbed.fastq")
assert os.path.exists("example/sample.fq.scrubbed.log")
os.remove("example/sample.fq.scrubbed.fastq")
os.remove("example/sample.fq.scrubbed.log")
def test_cmdline3Q():
call("autoskewer.py example/sample.fastq".split())
assert os.path.exists("example/sample.scrubbed.fastq")
assert os.path.exists("example/sample.scrubbed.log")
os.remove("example/sample.scrubbed.fastq")
os.remove("example/sample.scrubbed.log")
def test_cmdline3A():
call("autoskewer.py example/sample.fasta".split())
assert os.path.exists("example/sample.scrubbed.fasta")
assert os.path.exists("example/sample.scrubbed.log")
os.remove("example/sample.scrubbed.fasta")
os.remove("example/sample.scrubbed.log")
def test_cmdline4A():
call("autoskewer.py example/sample.fa".split())
assert os.path.exists("example/sample.fa.scrubbed.fasta")
assert os.path.exists("example/sample.fa.scrubbed.log")
os.remove("example/sample.fa.scrubbed.fasta")
os.remove("example/sample.fa.scrubbed.log")
def test_cmdline4Q():
call("autoskewer.py example/sample.fq".split())
assert os.path.exists("example/sample.fq.scrubbed.fastq")
assert os.path.exists("example/sample.fq.scrubbed.log")
os.remove("example/sample.fq.scrubbed.fastq")
os.remove("example/sample.fq.scrubbed.log")
def test_cmdline_explicit1Q():
call("autoskewer.py -i example/sample.fastq -o example/sample-processed.fastq".split())
assert os.path.exists("example/sample-processed.fastq")
assert os.path.exists("example/sample-processed.log")
os.remove("example/sample-processed.fastq")
os.remove("example/sample-processed.log")
def test_cmdline_explicit1A():
call("autoskewer.py -i example/sample.fasta -o example/sample-processed.fasta".split())
assert os.path.exists("example/sample-processed.log")
os.remove("example/sample-processed.fasta")
os.remove("example/sample-processed.log")
def test_cmdline_explicit2A():
call("autoskewer.py -i example/sample.fa -o example/sample-processed.fasta".split())
assert os.path.exists("example/sample-processed.log")
os.remove("example/sample-processed.fasta")
os.remove("example/sample-processed.log")
def test_cmdline_explicit2Q():
call("autoskewer.py -i example/sample.fq -o example/sample-processed.fastq".split())
assert os.path.exists("example/sample-processed.log")
os.remove("example/sample-processed.fastq")
os.remove("example/sample-processed.log")
| 47.945946
| 91
| 0.733089
| 491
| 3,548
| 5.264766
| 0.077393
| 0.30677
| 0.139265
| 0.194971
| 0.930368
| 0.905609
| 0.905609
| 0.825532
| 0.825532
| 0.820116
| 0
| 0.003775
| 0.104002
| 3,548
| 73
| 92
| 48.60274
| 0.809374
| 0
| 0
| 0.611111
| 0
| 0
| 0.526494
| 0.405299
| 0
| 0
| 0
| 0
| 0.291667
| 1
| 0.166667
| true
| 0
| 0.041667
| 0
| 0.208333
| 0
| 0
| 0
| 0
| null | 1
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
51b82849561838fe94e3ccfc1a22c8ada7f69dad
| 7,763
|
py
|
Python
|
source/lambda/shared/elb_load_monitor/tests/test_elb_listener_rule.py
|
aws-samples/aws-alb-target-group-load-shedding
|
f7a27214259ff069b76c8ff6246327d6319fd1da
|
[
"MIT-0"
] | 1
|
2021-10-24T01:45:48.000Z
|
2021-10-24T01:45:48.000Z
|
source/lambda/shared/elb_load_monitor/tests/test_elb_listener_rule.py
|
aws-samples/aws-alb-target-group-load-shedding
|
f7a27214259ff069b76c8ff6246327d6319fd1da
|
[
"MIT-0"
] | null | null | null |
source/lambda/shared/elb_load_monitor/tests/test_elb_listener_rule.py
|
aws-samples/aws-alb-target-group-load-shedding
|
f7a27214259ff069b76c8ff6246327d6319fd1da
|
[
"MIT-0"
] | 1
|
2021-10-24T01:45:42.000Z
|
2021-10-24T01:45:42.000Z
|
import unittest
from elb_load_monitor.elb_listener_rule import ELBListenerRule
class TestELBListenerRule(unittest.TestCase):
def test_is_restorable(self) -> None:
single_forward_rule = ELBListenerRule(
"elb_rule_arn", "elb_listener_rule", False)
single_forward_rule.add_forward_config("primary", 90)
single_forward_rule.add_forward_config("secondary", 10)
self.assertTrue(single_forward_rule.is_restorable('primary'))
single_forward_rule = ELBListenerRule(
"elb_rule_arn", "elb_listener_rule", False)
single_forward_rule.add_forward_config("primary", 100)
single_forward_rule.add_forward_config("secondary", 0)
self.assertFalse(single_forward_rule.is_restorable('primary'))
two_forward_rule = ELBListenerRule(
"elb_rule_arn", "elb_listener_rule", False)
two_forward_rule.add_forward_config("primary", 95)
two_forward_rule.add_forward_config("secondary", 5)
two_forward_rule.add_forward_config("tertiary", 0)
self.assertTrue(two_forward_rule.is_restorable('primary'))
two_forward_rule = ELBListenerRule(
"elb_rule_arn", "elb_listener_rule", False)
two_forward_rule.add_forward_config("primary", 90)
two_forward_rule.add_forward_config("secondary", 0)
two_forward_rule.add_forward_config("tertiary", 10)
self.assertTrue(two_forward_rule.is_restorable('primary'))
two_forward_rule = ELBListenerRule(
"elb_rule_arn", "elb_listener_rule", False)
two_forward_rule.add_forward_config("primary", 100)
two_forward_rule.add_forward_config("secondary", 0)
two_forward_rule.add_forward_config("tertiary", 0)
self.assertFalse(two_forward_rule.is_restorable('primary'))
def test_is_sheddable(self) -> None:
single_forward_rule = ELBListenerRule(
"elb_rule_arn", "elb_listener_rule", False)
single_forward_rule.add_forward_config("primary", 90)
single_forward_rule.add_forward_config("secondary", 10)
self.assertTrue(single_forward_rule.is_sheddable('primary', 100))
single_forward_rule = ELBListenerRule(
"elb_rule_arn", "elb_listener_rule", False)
single_forward_rule.add_forward_config("primary", 70)
single_forward_rule.add_forward_config("secondary", 30)
self.assertFalse(single_forward_rule.is_sheddable('primary', 30))
single_forward_rule = ELBListenerRule(
"elb_rule_arn", "elb_listener_rule", False)
single_forward_rule.add_forward_config("primary", 75)
single_forward_rule.add_forward_config("secondary", 30)
self.assertTrue(single_forward_rule.is_sheddable('primary', 30))
single_forward_rule = ELBListenerRule(
"elb_rule_arn", "elb_listener_rule", False)
single_forward_rule.add_forward_config("primary", 100)
single_forward_rule.add_forward_config("secondary", 0)
self.assertTrue(single_forward_rule.is_sheddable('primary', 10))
def test_restore(self) -> None:
single_forward_rule = ELBListenerRule(
"elb_rule_arn", "elb_listener_rule", False)
single_forward_rule.add_forward_config("primary", 90)
single_forward_rule.add_forward_config("secondary", 10)
single_forward_rule.restore("primary", 10)
self.assertEqual(
single_forward_rule.forward_configs.get("primary"), 100)
self.assertEqual(
single_forward_rule.forward_configs.get("secondary"), 0)
two_forward_rule = ELBListenerRule(
"elb_rule_arn", "elb_listener_rule", False)
two_forward_rule.add_forward_config("primary", 90)
two_forward_rule.add_forward_config("secondary", 5)
two_forward_rule.add_forward_config("tertiary", 5)
two_forward_rule.restore("primary", 10)
self.assertEqual(
two_forward_rule.forward_configs.get("primary"), 100)
self.assertEqual(
two_forward_rule.forward_configs.get("secondary"), 0)
self.assertEqual(
two_forward_rule.forward_configs.get("tertiary"), 0)
two_forward_rule = ELBListenerRule(
"elb_rule_arn", "elb_listener_rule", False)
two_forward_rule.add_forward_config("primary", 80)
two_forward_rule.add_forward_config("secondary", 5)
two_forward_rule.add_forward_config("tertiary", 15)
two_forward_rule.restore("primary", 10)
self.assertEqual(
two_forward_rule.forward_configs.get("primary"), 90)
self.assertEqual(
two_forward_rule.forward_configs.get("secondary"), 0)
self.assertEqual(
two_forward_rule.forward_configs.get("tertiary"), 10)
two_forward_rule.restore("primary", 10)
self.assertEqual(
two_forward_rule.forward_configs.get("primary"), 100)
self.assertEqual(
two_forward_rule.forward_configs.get("secondary"), 0)
self.assertEqual(
two_forward_rule.forward_configs.get("tertiary"), 0)
def test_shed(self) -> None:
single_forward_rule = ELBListenerRule(
"elb_rule_arn", "elb_listener_rule", False)
single_forward_rule.add_forward_config("primary", 100)
single_forward_rule.add_forward_config("secondary", 0)
single_forward_rule.shed("primary", 10, 100)
self.assertEqual(
single_forward_rule.forward_configs.get("primary"), 90)
self.assertEqual(
single_forward_rule.forward_configs.get("secondary"), 10)
single_forward_rule.shed("primary", 10, 90)
self.assertEqual(
single_forward_rule.forward_configs.get("primary"), 80)
self.assertEqual(
single_forward_rule.forward_configs.get("secondary"), 20)
single_forward_rule.shed("primary", 10, 90)
self.assertEqual(
single_forward_rule.forward_configs.get("primary"), 70)
self.assertEqual(
single_forward_rule.forward_configs.get("secondary"), 30)
single_forward_rule.shed("primary", 10, 30)
self.assertEqual(
single_forward_rule.forward_configs.get("primary"), 70)
self.assertEqual(
single_forward_rule.forward_configs.get("secondary"), 30)
single_forward_rule = ELBListenerRule(
"elb_rule_arn", "elb_listener_rule", False)
single_forward_rule.add_forward_config("primary", 100)
single_forward_rule.add_forward_config("secondary", 0)
single_forward_rule.shed("primary", 20, 10)
self.assertEqual(
single_forward_rule.forward_configs.get("primary"), 90)
self.assertEqual(
single_forward_rule.forward_configs.get("secondary"), 10)
two_forward_rule = ELBListenerRule(
"elb_rule_arn", "elb_listener_rule", False)
two_forward_rule.add_forward_config("primary", 100)
two_forward_rule.add_forward_config("secondary", 0)
two_forward_rule.add_forward_config("tertiary", 0)
two_forward_rule.shed("primary", 10, 100)
self.assertEqual(
two_forward_rule.forward_configs.get("primary"), 90)
self.assertEqual(
two_forward_rule.forward_configs.get("secondary"), 5)
self.assertEqual(
two_forward_rule.forward_configs.get("tertiary"), 5)
two_forward_rule.shed("primary", 9, 100)
self.assertEqual(
two_forward_rule.forward_configs.get("primary"), 81)
self.assertEqual(
two_forward_rule.forward_configs.get("secondary"), 9)
self.assertEqual(
two_forward_rule.forward_configs.get("tertiary"), 10)
| 39.810256
| 73
| 0.683756
| 909
| 7,763
| 5.427943
| 0.055006
| 0.218484
| 0.17572
| 0.153223
| 0.957844
| 0.949939
| 0.931496
| 0.926429
| 0.906769
| 0.839481
| 0
| 0.026053
| 0.213835
| 7,763
| 194
| 74
| 40.015464
| 0.782402
| 0
| 0
| 0.761905
| 0
| 0
| 0.138993
| 0
| 0
| 0
| 0
| 0
| 0.244898
| 1
| 0.027211
| false
| 0
| 0.013605
| 0
| 0.047619
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
51d5e3b263fc694349d05864d9e42aef589a0153
| 26,450
|
py
|
Python
|
tests/test_dayuTimeRange.py
|
goodbyekansas/dayu_timecode
|
1c58a17cb90e436a274d41f4a44948d240a8f9b3
|
[
"MIT"
] | 18
|
2018-10-11T07:42:19.000Z
|
2021-12-28T10:41:07.000Z
|
tests/test_dayuTimeRange.py
|
ShiRenzhi/dayu_timecode
|
1c58a17cb90e436a274d41f4a44948d240a8f9b3
|
[
"MIT"
] | 1
|
2020-06-14T19:14:36.000Z
|
2020-06-15T11:36:22.000Z
|
tests/test_dayuTimeRange.py
|
goodbyekansas/dayu_timecode
|
1c58a17cb90e436a274d41f4a44948d240a8f9b3
|
[
"MIT"
] | 11
|
2019-02-15T14:24:25.000Z
|
2022-02-16T13:42:28.000Z
|
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
__author__ = 'andyguo'
from unittest import TestCase
from dayu_timecode.base import DayuTimeRange, DayuTimeCode
from dayu_timecode.error import *
class TestDayuTimeRange(TestCase):
def test___new__(self):
a = DayuTimeCode(100)
b = DayuTimeCode(140)
c = DayuTimeCode(140, fps=25)
self.assertRaises(DayuTimeRangeValueError, DayuTimeRange, 1, 2)
self.assertRaises(DayuTimeRangeValueError, DayuTimeRange, '00:00:00:00', 2)
self.assertRaises(DayuTimeRangeValueError, DayuTimeRange, '00:00:00:00', '00:00:01:22')
self.assertRaises(DayuTimeRangeFpsNotIdenticalError, DayuTimeRange, a, c)
self.assertRaises(DayuTimeRangeOutOfRange, DayuTimeRange, DayuTimeCode(10), DayuTimeCode(10))
tr = DayuTimeRange(a, b)
self.assertEqual(tr.start, a)
self.assertEqual(tr.end, b)
self.assertIsNot(tr.start, a)
self.assertIsNot(tr.end, b)
tr = DayuTimeRange(b, a)
self.assertEqual(tr.start, a)
self.assertEqual(tr.end, b)
d = a
self.assertIs(a, d)
d = DayuTimeCode(a.time, a.fps)
self.assertIsNot(a, d)
self.assertIsNot(a.time, d.time)
def test_duration(self):
self.assertEqual(DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100)).duration, 100)
self.assertEqual(DayuTimeRange(DayuTimeCode(-100), DayuTimeCode(-50)).duration, 50)
self.assertEqual(DayuTimeRange(DayuTimeCode(-100), DayuTimeCode(50)).duration, 150)
def test_cut(self):
tr = DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100))
result = tr.cut(DayuTimeCode(50))
self.assertEqual(len(result), 2)
self.assertEqual(result[0].start, 0)
self.assertEqual(result[0].end, 50)
self.assertEqual(result[1].start, 50)
self.assertEqual(result[1].end, 100)
result = tr.cut(DayuTimeCode(-100))
self.assertEqual(len(result), 1)
self.assertEqual(result[0].start, 0)
self.assertEqual(result[0].end, 100)
result = tr.cut(DayuTimeCode(0))
self.assertEqual(len(result), 1)
self.assertEqual(result[0].start, 0)
self.assertEqual(result[0].end, 100)
result = tr.cut(DayuTimeCode(0))
self.assertEqual(len(result), 1)
self.assertEqual(result[0].start, 0)
self.assertEqual(result[0].end, 100)
result = tr.cut(DayuTimeCode(200))
self.assertEqual(len(result), 1)
self.assertEqual(result[0].start, 0)
self.assertEqual(result[0].end, 100)
def test_handle(self):
tr = DayuTimeRange(DayuTimeCode(0), DayuTimeCode(140))
tr.handle(10)
self.assertAlmostEqual(tr.start, -10)
self.assertAlmostEqual(tr.end, 150)
tr.handle(-20)
self.assertAlmostEqual(tr.start, 10)
self.assertAlmostEqual(tr.end, 130)
tr.handle(8, 3)
self.assertAlmostEqual(tr.start, 2)
self.assertAlmostEqual(tr.end, 133)
self.assertRaises(DayuTimeRangeOutOfRange, tr.handle, -300)
def test___iter__(self):
a = DayuTimeCode(-2880)
b = DayuTimeCode('1200s')
current = DayuTimeCode(a.time, a.fps)
x = None
tr = DayuTimeRange(a, b)
for x in tr:
self.assertAlmostEqual(x, current)
current += 1
else:
self.assertAlmostEqual(x, b - 1)
self.assertEqual(tr.start, a)
self.assertEqual(tr.end, b)
def test___len__(self):
self.assertAlmostEqual(len(DayuTimeRange(DayuTimeCode(0), DayuTimeCode(140))), 140)
self.assertAlmostEqual(len(DayuTimeRange(DayuTimeCode(-100), DayuTimeCode(140))), 240)
self.assertAlmostEqual(len(DayuTimeRange(DayuTimeCode(0), DayuTimeCode(-1))), 1)
def test___nonzero__(self):
self.assertTrue(DayuTimeRange(DayuTimeCode(0), DayuTimeCode(140)))
self.assertTrue(DayuTimeRange(DayuTimeCode(-100), DayuTimeCode(140)))
def test___contains__(self):
tr = DayuTimeRange(DayuTimeCode(0), DayuTimeCode(2880))
for tc in DayuTimeRange(DayuTimeCode(-100), DayuTimeCode(14400)):
if tr.start <= tc <= tr.end:
self.assertTrue(tc in tr)
else:
self.assertFalse(tc in tr)
self.assertFalse(DayuTimeRange(DayuTimeCode(-200), DayuTimeCode(-150)) in tr)
self.assertFalse(DayuTimeRange(DayuTimeCode(-200), DayuTimeCode(-100)) in tr)
self.assertFalse(DayuTimeRange(DayuTimeCode(-200), DayuTimeCode(50)) in tr)
self.assertFalse(DayuTimeRange(DayuTimeCode(-200), DayuTimeCode(2880)) in tr)
self.assertFalse(DayuTimeRange(DayuTimeCode(-200), DayuTimeCode(30000)) in tr)
self.assertTrue(DayuTimeRange(DayuTimeCode(0), DayuTimeCode(50)) in tr)
self.assertTrue(DayuTimeRange(DayuTimeCode(0), DayuTimeCode(2880)) in tr)
self.assertFalse(DayuTimeRange(DayuTimeCode(0), DayuTimeCode(30000)) in tr)
self.assertTrue(DayuTimeRange(DayuTimeCode(50), DayuTimeCode(100)) in tr)
self.assertTrue(DayuTimeRange(DayuTimeCode(50), DayuTimeCode(2880)) in tr)
self.assertFalse(DayuTimeRange(DayuTimeCode(50), DayuTimeCode(3000)) in tr)
self.assertFalse(DayuTimeRange(DayuTimeCode(2880), DayuTimeCode(2881)) in tr)
self.assertFalse(DayuTimeRange(DayuTimeCode(2880), DayuTimeCode(30000)) in tr)
def test___and__(self):
a = DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100))
b = DayuTimeRange(DayuTimeCode(-200), DayuTimeCode(-100))
c = DayuTimeRange(DayuTimeCode(-200), DayuTimeCode(20))
d = DayuTimeRange(DayuTimeCode(-200), DayuTimeCode(100))
e = DayuTimeRange(DayuTimeCode(-200), DayuTimeCode(400))
self.assertIsNone(a & b)
self.assertEqual(a & c, DayuTimeRange(DayuTimeCode(0), DayuTimeCode(20)))
self.assertEqual(a & d, DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100)))
self.assertEqual(a & e, DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100)))
b = DayuTimeRange(DayuTimeCode(-1), DayuTimeCode(0))
c = DayuTimeRange(DayuTimeCode(0), DayuTimeCode(20))
d = DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100))
e = DayuTimeRange(DayuTimeCode(0), DayuTimeCode(400))
self.assertIsNone(a & b)
self.assertEqual(a & c, DayuTimeRange(DayuTimeCode(0), DayuTimeCode(20)))
self.assertEqual(a & d, DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100)))
self.assertEqual(a & e, DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100)))
b = DayuTimeRange(DayuTimeCode(19), DayuTimeCode(20))
c = DayuTimeRange(DayuTimeCode(20), DayuTimeCode(50))
d = DayuTimeRange(DayuTimeCode(20), DayuTimeCode(100))
e = DayuTimeRange(DayuTimeCode(20), DayuTimeCode(400))
self.assertEqual(a & b, DayuTimeRange(DayuTimeCode(19), DayuTimeCode(20)))
self.assertEqual(a & c, DayuTimeRange(DayuTimeCode(20), DayuTimeCode(50)))
self.assertEqual(a & d, DayuTimeRange(DayuTimeCode(20), DayuTimeCode(100)))
self.assertEqual(a & e, DayuTimeRange(DayuTimeCode(20), DayuTimeCode(100)))
b = DayuTimeRange(DayuTimeCode(100), DayuTimeCode(101))
c = DayuTimeRange(DayuTimeCode(100), DayuTimeCode(400))
self.assertIsNone(a & b)
self.assertIsNone(a & c)
b = DayuTimeRange(DayuTimeCode(200), DayuTimeCode(400))
c = DayuTimeRange(DayuTimeCode(400), DayuTimeCode(401))
self.assertIsNone(a & b)
self.assertIsNone(a & c)
def test___or__(self):
a = DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100))
b = DayuTimeRange(DayuTimeCode(-200), DayuTimeCode(-100))
c = DayuTimeRange(DayuTimeCode(-200), DayuTimeCode(20))
d = DayuTimeRange(DayuTimeCode(-200), DayuTimeCode(100))
e = DayuTimeRange(DayuTimeCode(-200), DayuTimeCode(400))
self.assertEqual(a | b, DayuTimeRange(DayuTimeCode(-200), DayuTimeCode(100)))
self.assertEqual(a | c, DayuTimeRange(DayuTimeCode(-200), DayuTimeCode(100)))
self.assertEqual(a | d, DayuTimeRange(DayuTimeCode(-200), DayuTimeCode(100)))
self.assertEqual(a | e, DayuTimeRange(DayuTimeCode(-200), DayuTimeCode(400)))
b = DayuTimeRange(DayuTimeCode(-1), DayuTimeCode(0))
c = DayuTimeRange(DayuTimeCode(0), DayuTimeCode(20))
d = DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100))
e = DayuTimeRange(DayuTimeCode(0), DayuTimeCode(400))
self.assertEqual(a | b, DayuTimeRange(DayuTimeCode(-1), DayuTimeCode(100)))
self.assertEqual(a | c, DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100)))
self.assertEqual(a | d, DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100)))
self.assertEqual(a | e, DayuTimeRange(DayuTimeCode(0), DayuTimeCode(400)))
b = DayuTimeRange(DayuTimeCode(19), DayuTimeCode(20))
c = DayuTimeRange(DayuTimeCode(20), DayuTimeCode(50))
d = DayuTimeRange(DayuTimeCode(20), DayuTimeCode(100))
e = DayuTimeRange(DayuTimeCode(20), DayuTimeCode(400))
self.assertEqual(a | b, DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100)))
self.assertEqual(a | c, DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100)))
self.assertEqual(a | d, DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100)))
self.assertEqual(a | e, DayuTimeRange(DayuTimeCode(0), DayuTimeCode(400)))
b = DayuTimeRange(DayuTimeCode(100), DayuTimeCode(101))
c = DayuTimeRange(DayuTimeCode(100), DayuTimeCode(400))
self.assertEqual(a | b, DayuTimeRange(DayuTimeCode(0), DayuTimeCode(101)))
self.assertEqual(a | c, DayuTimeRange(DayuTimeCode(0), DayuTimeCode(400)))
b = DayuTimeRange(DayuTimeCode(200), DayuTimeCode(400))
c = DayuTimeRange(DayuTimeCode(400), DayuTimeCode(401))
self.assertEqual(a | b, DayuTimeRange(DayuTimeCode(0), DayuTimeCode(400)))
self.assertEqual(a | c, DayuTimeRange(DayuTimeCode(0), DayuTimeCode(401)))
def test___xor__(self):
a = DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100))
b = DayuTimeRange(DayuTimeCode(-200), DayuTimeCode(-100))
c = DayuTimeRange(DayuTimeCode(-200), DayuTimeCode(20))
d = DayuTimeRange(DayuTimeCode(-200), DayuTimeCode(100))
e = DayuTimeRange(DayuTimeCode(-200), DayuTimeCode(400))
self.assertEqual(a ^ b,
(DayuTimeRange(DayuTimeCode(-200), DayuTimeCode(-100)),
DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100))))
self.assertEqual(a ^ c,
(DayuTimeRange(DayuTimeCode(-200), DayuTimeCode(0)),
DayuTimeRange(DayuTimeCode(20), DayuTimeCode(100))))
self.assertEqual(a ^ d,
(DayuTimeRange(DayuTimeCode(-200), DayuTimeCode(0)),
None))
self.assertEqual(a ^ e,
(DayuTimeRange(DayuTimeCode(-200), DayuTimeCode(0)),
DayuTimeRange(DayuTimeCode(100), DayuTimeCode(400))))
b = DayuTimeRange(DayuTimeCode(-1), DayuTimeCode(0))
c = DayuTimeRange(DayuTimeCode(0), DayuTimeCode(20))
d = DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100))
e = DayuTimeRange(DayuTimeCode(0), DayuTimeCode(400))
self.assertEqual(a ^ b,
(DayuTimeRange(DayuTimeCode(-1), DayuTimeCode(-0)),
DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100))))
self.assertEqual(a ^ c,
(None,
DayuTimeRange(DayuTimeCode(20), DayuTimeCode(100))))
self.assertEqual(a ^ d,
(None,
None))
self.assertEqual(a ^ e,
(None,
DayuTimeRange(DayuTimeCode(100), DayuTimeCode(400))))
b = DayuTimeRange(DayuTimeCode(19), DayuTimeCode(20))
c = DayuTimeRange(DayuTimeCode(20), DayuTimeCode(50))
d = DayuTimeRange(DayuTimeCode(20), DayuTimeCode(100))
e = DayuTimeRange(DayuTimeCode(20), DayuTimeCode(400))
self.assertEqual(a ^ b,
(DayuTimeRange(DayuTimeCode(-0), DayuTimeCode(19)),
DayuTimeRange(DayuTimeCode(20), DayuTimeCode(100))))
self.assertEqual(a ^ c,
(DayuTimeRange(DayuTimeCode(0), DayuTimeCode(20)),
DayuTimeRange(DayuTimeCode(50), DayuTimeCode(100))))
self.assertEqual(a ^ d,
(DayuTimeRange(DayuTimeCode(0), DayuTimeCode(20)),
None))
self.assertEqual(a ^ e,
(DayuTimeRange(DayuTimeCode(0), DayuTimeCode(20)),
DayuTimeRange(DayuTimeCode(100), DayuTimeCode(400))))
b = DayuTimeRange(DayuTimeCode(100), DayuTimeCode(101))
c = DayuTimeRange(DayuTimeCode(100), DayuTimeCode(400))
self.assertEqual(a ^ b,
(DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100)),
DayuTimeRange(DayuTimeCode(100), DayuTimeCode(101))))
self.assertEqual(a ^ c,
(DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100)),
DayuTimeRange(DayuTimeCode(100), DayuTimeCode(400))))
b = DayuTimeRange(DayuTimeCode(200), DayuTimeCode(400))
c = DayuTimeRange(DayuTimeCode(400), DayuTimeCode(401))
self.assertEqual(a ^ b,
(DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100)),
DayuTimeRange(DayuTimeCode(200), DayuTimeCode(400))))
self.assertEqual(a ^ c,
(DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100)),
DayuTimeRange(DayuTimeCode(400), DayuTimeCode(401))))
def test___iadd__(self):
a = DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100))
a += DayuTimeCode(100)
self.assertEqual(a, DayuTimeRange(DayuTimeCode(100), DayuTimeCode(200)))
a += 1
self.assertEqual(a, DayuTimeRange(DayuTimeCode(101), DayuTimeCode(201)))
a += 10.0
self.assertAlmostEqual(a, DayuTimeRange(DayuTimeCode(111), DayuTimeCode(211)))
a += (-20)
self.assertAlmostEqual(a, DayuTimeRange(DayuTimeCode(91), DayuTimeCode(191)))
self.assertRaises((DayuTimeRangeOutOfRange, DayuTimeRangeOperationError, TypeError, ValueError),
lambda: a + None)
self.assertRaises((DayuTimeRangeOutOfRange, DayuTimeRangeOperationError, TypeError, ValueError), lambda: a + '')
self.assertRaises((DayuTimeRangeOutOfRange, DayuTimeRangeOperationError, TypeError, ValueError), lambda: a + a)
self.assertRaises((DayuTimeRangeOutOfRange, DayuTimeRangeOperationError, TypeError, ValueError), lambda: a + [])
self.assertRaises((DayuTimeRangeOutOfRange, DayuTimeRangeOperationError, TypeError, ValueError),
lambda: a + tuple)
def test___add__(self):
a = DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100))
self.assertEqual(a + DayuTimeCode(100), DayuTimeRange(DayuTimeCode(100), DayuTimeCode(200)))
self.assertEqual(a + 0, DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100)))
self.assertEqual(a + 100, DayuTimeRange(DayuTimeCode(100), DayuTimeCode(200)))
self.assertEqual(a + (-100), DayuTimeRange(DayuTimeCode(-100), DayuTimeCode(0)))
self.assertRaises(DayuTimeRangeOperationError, lambda: a + None)
self.assertRaises(DayuTimeRangeOperationError, lambda: a + '')
self.assertRaises(DayuTimeRangeOperationError, lambda: a + a)
self.assertRaises(DayuTimeRangeOperationError, lambda: a + [])
self.assertRaises(DayuTimeRangeOperationError, lambda: a + tuple)
def test___sub__(self):
a = DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100))
self.assertEqual(a - DayuTimeCode(100), DayuTimeRange(DayuTimeCode(-100), DayuTimeCode(0)))
self.assertEqual(a - 0, DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100)))
self.assertEqual(a - 100, DayuTimeRange(DayuTimeCode(-100), DayuTimeCode(0)))
self.assertEqual(a - (-100), DayuTimeRange(DayuTimeCode(100), DayuTimeCode(200)))
self.assertRaises((DayuTimeRangeOutOfRange, DayuTimeRangeOperationError, TypeError, ValueError),
lambda: a - None)
self.assertRaises((DayuTimeRangeOutOfRange, DayuTimeRangeOperationError, TypeError, ValueError), lambda: a - '')
self.assertRaises((DayuTimeRangeOutOfRange, DayuTimeRangeOperationError, TypeError, ValueError), lambda: a - a)
self.assertRaises((DayuTimeRangeOutOfRange, DayuTimeRangeOperationError, TypeError, ValueError), lambda: a - [])
self.assertRaises((DayuTimeRangeOutOfRange, DayuTimeRangeOperationError, TypeError, ValueError),
lambda: a - tuple)
def test___isub__(self):
a = DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100))
a -= DayuTimeCode(100)
self.assertEqual(a, DayuTimeRange(DayuTimeCode(-100), DayuTimeCode(0)))
a -= 1
self.assertEqual(a, DayuTimeRange(DayuTimeCode(-101), DayuTimeCode(-1)))
a -= 10.0
self.assertAlmostEqual(a, DayuTimeRange(DayuTimeCode(-111), DayuTimeCode(-11)))
a -= (-20)
self.assertAlmostEqual(a, DayuTimeRange(DayuTimeCode(-91), DayuTimeCode(9)))
self.assertRaises((DayuTimeRangeOutOfRange, DayuTimeRangeOperationError, TypeError, ValueError),
lambda: a - None)
self.assertRaises((DayuTimeRangeOutOfRange, DayuTimeRangeOperationError, TypeError, ValueError), lambda: a - '')
self.assertRaises((DayuTimeRangeOutOfRange, DayuTimeRangeOperationError, TypeError, ValueError), lambda: a - a)
self.assertRaises((DayuTimeRangeOutOfRange, DayuTimeRangeOperationError, TypeError, ValueError), lambda: a + [])
self.assertRaises((DayuTimeRangeOutOfRange, DayuTimeRangeOperationError, TypeError, ValueError),
lambda: a + tuple)
def test___mul__(self):
a = DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100))
self.assertEqual(a * DayuTimeCode(3), DayuTimeRange(DayuTimeCode(0), DayuTimeCode(300)))
self.assertEqual(a * 0.5, DayuTimeRange(DayuTimeCode(0), DayuTimeCode(50)))
self.assertRaises((DayuTimeRangeOutOfRange, DayuTimeRangeOperationError), lambda: a * 0)
self.assertEqual(a * 3, DayuTimeRange(DayuTimeCode(0), DayuTimeCode(300)))
self.assertEqual(a * 3.5, DayuTimeRange(DayuTimeCode(0), DayuTimeCode(350)))
self.assertEqual(a * -1, DayuTimeRange(DayuTimeCode(-100), DayuTimeCode(0)))
a = DayuTimeRange(DayuTimeCode(100), DayuTimeCode(200))
self.assertEqual(a * DayuTimeCode(3), DayuTimeRange(DayuTimeCode(100), DayuTimeCode(400)))
self.assertEqual(a * 3, DayuTimeRange(DayuTimeCode(100), DayuTimeCode(400)))
self.assertEqual(a * 3.5, DayuTimeRange(DayuTimeCode(100), DayuTimeCode(450)))
self.assertEqual(a * -1, DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100)))
self.assertEqual(a * -1.5, DayuTimeRange(DayuTimeCode(-50), DayuTimeCode(100)))
self.assertRaises((DayuTimeRangeOutOfRange, DayuTimeRangeOperationError, TypeError, ValueError),
lambda: a * None)
self.assertRaises((DayuTimeRangeOutOfRange, DayuTimeRangeOperationError, TypeError, ValueError), lambda: a * '')
self.assertRaises((DayuTimeRangeOutOfRange, DayuTimeRangeOperationError, TypeError, ValueError), lambda: a * a)
self.assertRaises((DayuTimeRangeOutOfRange, DayuTimeRangeOperationError, TypeError, ValueError), lambda: a * [])
self.assertRaises((DayuTimeRangeOutOfRange, DayuTimeRangeOperationError, TypeError, ValueError),
lambda: a * tuple)
def test___imul__(self):
a = DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100))
a *= DayuTimeCode(3)
self.assertEqual(a, DayuTimeRange(DayuTimeCode(0), DayuTimeCode(300)))
a *= 0.5
self.assertEqual(a, DayuTimeRange(DayuTimeCode(0), DayuTimeCode(150)))
self.assertEqual(a * -1, DayuTimeRange(DayuTimeCode(-150), DayuTimeCode(0)))
a = DayuTimeRange(DayuTimeCode(100), DayuTimeCode(200))
a *= 3
self.assertEqual(a, DayuTimeRange(DayuTimeCode(100), DayuTimeCode(400)))
a *= 0.5
self.assertEqual(a, DayuTimeRange(DayuTimeCode(100), DayuTimeCode(250)))
a *= (-1)
print a.start, a.end
self.assertEqual(a, DayuTimeRange(DayuTimeCode(-50), DayuTimeCode(100)))
def test___div__(self):
a = DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100))
self.assertEqual(a / DayuTimeCode(2), DayuTimeRange(DayuTimeCode(0), DayuTimeCode(50)))
self.assertRaises(ZeroDivisionError, lambda: a / 0)
self.assertEqual(a / 0.2, DayuTimeRange(DayuTimeCode(0), DayuTimeCode(500)))
self.assertEqual(a / 20, DayuTimeRange(DayuTimeCode(0), DayuTimeCode(5)))
self.assertEqual(a / -1, DayuTimeRange(DayuTimeCode(-100), DayuTimeCode(0)))
a = DayuTimeRange(DayuTimeCode(100), DayuTimeCode(200))
self.assertEqual(a / DayuTimeCode(2), DayuTimeRange(DayuTimeCode(100), DayuTimeCode(150)))
self.assertEqual(a / 0.5, DayuTimeRange(DayuTimeCode(100), DayuTimeCode(300)))
self.assertEqual(a / 20, DayuTimeRange(DayuTimeCode(100), DayuTimeCode(105)))
self.assertEqual(a / -1, DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100)))
self.assertEqual(a / -2, DayuTimeRange(DayuTimeCode(50), DayuTimeCode(100)))
self.assertRaises((DayuTimeRangeOutOfRange, DayuTimeRangeOperationError, TypeError, ValueError),
lambda: a / None)
self.assertRaises((DayuTimeRangeOutOfRange, DayuTimeRangeOperationError, TypeError, ValueError), lambda: a / '')
self.assertRaises((DayuTimeRangeOutOfRange, DayuTimeRangeOperationError, TypeError, ValueError), lambda: a / a)
self.assertRaises((DayuTimeRangeOutOfRange, DayuTimeRangeOperationError, TypeError, ValueError), lambda: a / [])
self.assertRaises((DayuTimeRangeOutOfRange, DayuTimeRangeOperationError, TypeError, ValueError),
lambda: a / tuple)
def test___idiv__(self):
a = DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100))
a /= 2
self.assertEqual(a, DayuTimeRange(DayuTimeCode(0), DayuTimeCode(50)))
self.assertRaises(ZeroDivisionError, lambda: a / 0)
a /= 0.2
self.assertEqual(a, DayuTimeRange(DayuTimeCode(0), DayuTimeCode(250)))
a /= 10
self.assertEqual(a, DayuTimeRange(DayuTimeCode(0), DayuTimeCode(25)))
a /= -1
self.assertEqual(a, DayuTimeRange(DayuTimeCode(-25), DayuTimeCode(0)))
a = DayuTimeRange(DayuTimeCode(100), DayuTimeCode(200))
a /= 2
self.assertEqual(a, DayuTimeRange(DayuTimeCode(100), DayuTimeCode(150)))
a /= 0.5
self.assertEqual(a, DayuTimeRange(DayuTimeCode(100), DayuTimeCode(200)))
a /= 20
self.assertEqual(a, DayuTimeRange(DayuTimeCode(100), DayuTimeCode(105)))
a /= -0.5
self.assertEqual(a, DayuTimeRange(DayuTimeCode(90), DayuTimeCode(100)))
a /= -0.01
self.assertEqual(a, DayuTimeRange(DayuTimeCode(-910), DayuTimeCode(90)))
def test___lshift__(self):
a = DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100))
self.assertEqual(a << 0, DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100)))
self.assertEqual(a << 10, DayuTimeRange(DayuTimeCode(-10), DayuTimeCode(100)))
self.assertEqual(a << 100, DayuTimeRange(DayuTimeCode(-100), DayuTimeCode(100)))
self.assertEqual(a << -10, DayuTimeRange(DayuTimeCode(10), DayuTimeCode(100)))
self.assertRaises((DayuTimeRangeOperationError, DayuTimeRangeOutOfRange), lambda: a << -100)
self.assertRaises((DayuTimeRangeOperationError, DayuTimeRangeOutOfRange), lambda: a << -200)
self.assertRaises((DayuTimeRangeOperationError, DayuTimeRangeOutOfRange), lambda: a << None)
self.assertRaises((DayuTimeRangeOperationError, DayuTimeRangeOutOfRange), lambda: a << '')
self.assertRaises((DayuTimeRangeOperationError, DayuTimeRangeOutOfRange), lambda: a << [])
self.assertRaises((DayuTimeRangeOperationError, DayuTimeRangeOutOfRange), lambda: a << tuple())
def test___Rshift__(self):
a = DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100))
self.assertEqual(a >> 0, DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100)))
self.assertEqual(a >> 10, DayuTimeRange(DayuTimeCode(0), DayuTimeCode(110)))
self.assertEqual(a >> 100, DayuTimeRange(DayuTimeCode(0), DayuTimeCode(200)))
self.assertEqual(a >> -10, DayuTimeRange(DayuTimeCode(0), DayuTimeCode(90)))
self.assertRaises((DayuTimeRangeOperationError, DayuTimeRangeOutOfRange), lambda: a >> -100)
self.assertRaises((DayuTimeRangeOperationError, DayuTimeRangeOutOfRange), lambda: a >> -200)
self.assertRaises((DayuTimeRangeOperationError, DayuTimeRangeOutOfRange), lambda: a >> None)
self.assertRaises((DayuTimeRangeOperationError, DayuTimeRangeOutOfRange), lambda: a >> '')
self.assertRaises((DayuTimeRangeOperationError, DayuTimeRangeOutOfRange), lambda: a >> [])
self.assertRaises((DayuTimeRangeOperationError, DayuTimeRangeOutOfRange), lambda: a >> tuple())
def test___eq__(self):
self.assertTrue(DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100)),
DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100)))
self.assertTrue(DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100)),
DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100)) * 3 / 3.0)
self.assertTrue(DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100)),
DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100.0000001)))
self.assertTrue(DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100)),
DayuTimeRange(DayuTimeCode(0.0000001), DayuTimeCode(100)))
self.assertTrue(DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100)),
DayuTimeRange(DayuTimeCode(-0.0000001), DayuTimeCode(100)))
self.assertTrue(DayuTimeRange(DayuTimeCode(0), DayuTimeCode(100)),
DayuTimeRange(DayuTimeCode(0), DayuTimeCode(99.9999999)))
| 59.17226
| 120
| 0.662344
| 2,509
| 26,450
| 6.941012
| 0.052212
| 0.307206
| 0.0882
| 0.196382
| 0.914327
| 0.876658
| 0.849038
| 0.806833
| 0.715475
| 0.661901
| 0
| 0.061616
| 0.211531
| 26,450
| 446
| 121
| 59.304933
| 0.773436
| 0.001664
| 0
| 0.442029
| 0
| 0
| 0.001704
| 0
| 0
| 0
| 0
| 0
| 0.536232
| 0
| null | null | 0
| 0.007246
| null | null | 0.002415
| 0
| 0
| 0
| null | 1
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
51e43111a882e78b81215890ebe6d83616bd3540
| 1,322
|
py
|
Python
|
Grab.py
|
XfaiLTeN/GrabSpam
|
5bbc62db22b4665d9404a3778b22fe722a21933d
|
[
"Apache-2.0"
] | null | null | null |
Grab.py
|
XfaiLTeN/GrabSpam
|
5bbc62db22b4665d9404a3778b22fe722a21933d
|
[
"Apache-2.0"
] | null | null | null |
Grab.py
|
XfaiLTeN/GrabSpam
|
5bbc62db22b4665d9404a3778b22fe722a21933d
|
[
"Apache-2.0"
] | null | null | null |
import marshal,zlib,base64
exec(zlib.decompress(base64.b64decode("eJydVW1v2zYQ/mz9ips9QNLmSn5JnNWFiwbpsgats2HxlgFJ4dHySeYsiRxJpXbm/vcdJcsv6Bp0pWG+PLyHOh6PD1vfhDOeh3JtFiLvObESGWRFarhUIkKteZ4EUogUeCaFMjBZKGTzXwhxjFoPncYWV/h3gdroHSC0g6sIpYGxmBcpXgtzKYp8/qNSQhFPKp4br3nf6ffvnp9m34LkEniuDUvT3WpN32ngihvPd1ofmMqZE6VMayj7QweoSBiBW6/iltBsD51soWQP9bbQeg/1t5DaQ12CWpFi0XK7T6EDvdYGM8+NUmTK9bd7AK8Jzc8NmrsNwtcUZ9+d2vIZs+mulP0aOqCHFgh3FtPtcuW4nJvaGu5Dst1UEPh7+n01t6v/rOpqbPtU2z+EG6KXk7BxDtwr5w7r/a8cT9tQejCFTQ3V9LDyLrA1+dGehvXXyvG0HG/Kumwq88PQldb/s9DJHZ7pF9MOSHUGNhr17HlBt0zBEP6IGX83weunzcfrCbKMzN8sje38HMc84ix9mnVl71BCrFeKPy7XKRfFY/fsaQ5dTqRmSGRZGLjlZgGD3g+r1SGtYQt8dVgiulzcLl870LN3YsJUggaui2yGCl6+hPr6WcpsZDXiU9KYhIklCBNBagHdZ93OMdOvped3lhZ4pDi77ferG3n3/Xu45CQ5VzlcCKUwMum6/StpHEkdwmvUkeLScJHD+Uw84IEibRXMbu5IzLrVyi0ip/wB1RpuDDOFbh5RWtXCzhxjYB7zycFKaBp/FfnIcyXpMVZhsVLTIEmkANbCSJqsjecujJF6GIYySBSbGbbiQSSykEkeStJJzBNU4UMvJDGPeYo6VJhwEjHltoHWnDPDRv8cfWoYtcGNSKjJmQsxR3cI7tVrMndzlpUjaimqFsGM8dRCZad4ldjGOmAn5/jAI5yIJebW5Dv3Y/nJBUUWlaav/qZRPTtPMDd2fiwe6RRYeBp0wLvl+Vx80HA9gW4n6LyghMwHJy9gNTjx4VzKFG9x9pab8LR/FvQH4L19Mxm/a0PKlwg/YbQUPlws6CnDcDAIOkG/f/o86HbP4IbFTPEtzf1o48pj0EZ5FHSf0rPsU5ADgytjz6Rx/FDZ9LspInoZ4yJN6WQxp0QR2zS2ydHAVOOnRJtulxQenP8Hp8rWIdgzcxxN53z33olJKbh1STE6Rm/mV++dDpiUtILHKZ1G++fY69I4yJj0WFt/QXJe8pzrBc6Ps9L5F077JJ4=")))
| 661
| 1,295
| 0.95764
| 49
| 1,322
| 25.836735
| 0.959184
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.145455
| 0.001513
| 1,322
| 2
| 1,295
| 661
| 0.813636
| 0
| 0
| 0
| 0
| 0.5
| 0.946334
| 0.946334
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 10
|
cfc88f6ec2739fe245c3cc2acedd3a4c2210d580
| 191
|
py
|
Python
|
src/txENet/__init__.py
|
DanSeraf/spyd
|
af893b7f9c67785613b25754eb2cf150523a9fe4
|
[
"Zlib"
] | 4
|
2015-05-05T16:44:42.000Z
|
2020-10-27T09:45:23.000Z
|
src/txENet/__init__.py
|
DanSeraf/spyd
|
af893b7f9c67785613b25754eb2cf150523a9fe4
|
[
"Zlib"
] | 1
|
2022-02-05T16:59:53.000Z
|
2022-02-08T17:30:55.000Z
|
src/txENet/__init__.py
|
DanSeraf/spyd
|
af893b7f9c67785613b25754eb2cf150523a9fe4
|
[
"Zlib"
] | 2
|
2016-12-13T22:21:08.000Z
|
2020-03-14T16:44:20.000Z
|
from txENet.enet_client_protocol import ENetClientProtocol
from txENet.enet_client_protocol_factory import ENetClientProtocolFactory
from txENet.enet_server_endpoint import ENetServerEndpoint
| 63.666667
| 73
| 0.926702
| 22
| 191
| 7.727273
| 0.545455
| 0.176471
| 0.247059
| 0.235294
| 0.329412
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.057592
| 191
| 3
| 74
| 63.666667
| 0.944444
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
cfde3d914846f70d409da5cff2cbceed4d06bb6b
| 72
|
py
|
Python
|
py_btc_price/__init__.py
|
eduardogpg/py_btc_price
|
268f6185aab9d5727998c2a2fac96bad012b61c4
|
[
"MIT"
] | null | null | null |
py_btc_price/__init__.py
|
eduardogpg/py_btc_price
|
268f6185aab9d5727998c2a2fac96bad012b61c4
|
[
"MIT"
] | null | null | null |
py_btc_price/__init__.py
|
eduardogpg/py_btc_price
|
268f6185aab9d5727998c2a2fac96bad012b61c4
|
[
"MIT"
] | null | null | null |
from .btc_price import usd_convert
from .btc_price import get_btc_price
| 36
| 36
| 0.861111
| 13
| 72
| 4.384615
| 0.538462
| 0.421053
| 0.421053
| 0.631579
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.111111
| 72
| 2
| 36
| 36
| 0.890625
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 7
|
cfeee8d29303cfc91bfd6fa659310e22d8350995
| 9,389
|
py
|
Python
|
python files/Stokes_appendix.py
|
Van314159/Stokeslet-between-two-parallel-plate
|
3a1a58876e92fdc7a1e2e8cb789547ffd92d91d2
|
[
"MIT"
] | null | null | null |
python files/Stokes_appendix.py
|
Van314159/Stokeslet-between-two-parallel-plate
|
3a1a58876e92fdc7a1e2e8cb789547ffd92d91d2
|
[
"MIT"
] | null | null | null |
python files/Stokes_appendix.py
|
Van314159/Stokeslet-between-two-parallel-plate
|
3a1a58876e92fdc7a1e2e8cb789547ffd92d91d2
|
[
"MIT"
] | null | null | null |
# Velocity funcitons
# Every funciton has the claim r = np.sqrt(x**2 + y**2). It must need simplify such as decorator.
def v11_larger_h(x, y, z, h, H, imax=4.0):
r = np.sqrt(x**2 + y**2)
return np.array(integrate.quad(j0sh, 0, imax,args=(r, z, h, H))) + \
x**2 / r * h0 * np.array(integrate.quad(j1xsh, 0, imax,args=(r, z, h, H)))
def v11_smaller_h(x, y, z, h, H, imax=4.0):
r = np.sqrt(x**2 + y**2)
return np.array(integrate.quad(j0sh, 0, imax,args=(r, H-z, H-h, H))) + \
x**2 / r * h0 * np.array(integrate.quad(j1xsh, 0, imax,args=(r, H-z, H-h, H)))
def v11(x, y, z, h, H, imax=4.0):
(z, h) = (z, h) if z > h else (H - z, H - h)
r = np.sqrt(x**2 + y**2)
return np.array(integrate.quad(j0sh, 0, imax,args=(r, z, h, H))) + \
x**2 / r * h0 * np.array(integrate.quad(j1xsh, 0, imax,args=(r, z, h, H)))
def w11(x, y, z, h, H, imax=4.0):
r = np.sqrt(x**2 + y**2)
return (x**2 - y**2) / (r**3 * np.sqrt(h0)) * np.array(integrate.quad(j1xa1, 0, imax, args=(r, z, h, H))) - \
x**2 / r**2 * np.array(integrate.quad(j0x2a1, 0, imax, args=(r, z, h, H)))
# ===================================================
def v12_larger_h(x, y, z, h, H, imax=4.0):
r = np.sqrt(x**2 + y**2)
return x * y / r * h0 * np.array(integrate.quad(j1xsh, 0, imax,args=(r, z, h, H)))
def v12_smaller_h(x, y, z, h, H, imax=4.0):
r = np.sqrt(x**2 + y**2)
return x * y / r * h0 * np.array(integrate.quad(j0sh, 0, imax,args=(r, H-z, H-h, H)))
def v12(x, y, z, h, H, imax=4.0):
(z, h) = (z, h) if z > h else (H - z, H - h)
r = np.sqrt(x**2 + y**2)
return x * y / r * h0 * np.array(integrate.quad(j1xsh, 0, imax,args=(r, z, h, H)))
def w12(x, y, z, h, H, imax=4.0):
r = np.sqrt(x**2 + y**2)
return (2*x*y) / (r**3 * np.sqrt(h0)) * np.array(integrate.quad(j1xa1, 0, imax, args=(r, z, h, H))) - \
x * y / r**2 * np.array(integrate.quad(j0x2a1, 0, imax, args=(r, z, h, H)))
# =====================================================
def v13_larger_h(x, y, z, h, H, imax=4.0):
r = np.sqrt(x**2 + y**2)
return (z - h) * x / r * h0 * np.array(integrate.quad(j1xsh, 0, imax,args=(r, z, h, H)))
def v13_smaller_h(x, y, z, h, H, imax=4.0):
r = np.sqrt(x**2 + y**2)
return (z - h) * x / r * h0 * np.array(integrate.quad(j1xsh, 0, imax,args=(r, H-z, H-h, H)))
def v13(x, y, z, h, H, imax=4.0):
(z1, h1) = (z, h) if z > h else (H - z, H - h)
r = np.sqrt(x**2 + y**2)
return (z - h) * x / r * h0 * np.array(integrate.quad(j1xsh, 0, imax,args=(r, z1, h1, H)))
def w13(x, y, z, h, H, imax=4.0):
r = np.sqrt(x**2 + y**2)
return x / r * np.array(integrate.quad(j1xa4_13, 0, imax, args=(r, z, h, H)))
# =====================================================
def v31_larger_h(x, y, z, h, H, imax=4.0):
r = np.sqrt(x**2 + y**2)
return (z - h) * x / r * h0 * np.array(integrate.quad(j1xsh, 0, imax,args=(r, z, h, H)))
def v31_smaller_h(x, y, z, h, H, imax=4.0):
r = np.sqrt(x**2 + y**2)
return (z - h) * x / r * h0 * np.array(integrate.quad(j1xsh, 0, imax,args=(r, H-z, H-h, H)))
def v31(x, y, z, h, H, imax=4.0):
(z1, h1) = (z, h) if z > h else (H - z, H - h)
r = np.sqrt(x**2 + y**2)
return (z - h) * x / r * h0 * np.array(integrate.quad(j1xsh, 0, imax,args=(r, z1, h1, H)))
def w31(x, y, z, h, H, imax=4.0):
r = np.sqrt(x**2 + y**2)
return x / r * np.array(integrate.quad(j1xa4_31, 0, imax, args=(r, z, h, H)))
# =====================================================
def v33_larger_h(x, y, z, h, H, imax=4.0):
r = np.sqrt(x**2 + y**2)
return np.array(integrate.quad(j0sh, 0, imax,args=(r, z, h, H))) + \
x**2 / r * h0 * np.array(integrate.quad(j0xdsh, 0, imax,args=(r, z, h, H)))
def v33_smaller_h(x, y, z, h, H, imax=4.0):
r = np.sqrt(x**2 + y**2)
return np.array(integrate.quad(j0sh, 0, imax,args=(r, H-z, H-h, H))) - \
np.array(integrate.quad(j0xdsh, 0, imax,args=(r, H-z, H-h, H)))
def v33(x, y, z, h, H, imax=4.0):
(z, h) = (z, h) if z > h else (H - z, H - h)
r = np.sqrt(x**2 + y**2)
return np.array(integrate.quad(j0sh, 0, imax,args=(r, z, h, H))) + \
x**2 / r * h0 * np.array(integrate.quad(j0xdsh, 0, imax,args=(r, z, h, H)))
def w33(x, y, z, h, H, imax=4.0):
r = np.sqrt(x**2 + y**2)
return np.array(integrate.quad(j0a2, 0, imax, args=(r, z, h, H)))
# u11 =========================================
def v11(x, y, z, h, H, imax=4.0):
(z, h) = (z, h) if z > h else (H - z, H - h)
r = np.sqrt(x**2 + y**2)
if z > h + 1/ mp.e:
return (far_integral(j0sh, r, z, h, H, imax, method='gauss-legendre') +
x**2 / r * h0 * far_integral(j1xsh, r, z, h, H, imax, method='gauss-legendre'))
else:
return (near_integral(j0sh, r, z, h, H, m=0) +
x**2 / r * h0 * near_integral(j1xsh, r, z, h, H, m=1))
def w11(x, y, z, h, H, imax=4.0):
r = np.sqrt(x**2 + y**2)
return ((x**2 - y**2) / (r**3 * np.sqrt(h0)) * far_integral(j1xa1, r, z, h, H, imax, method='gauss-legendre') -
x**2 / r**2 * far_integral(j0x2a1, r, z, h, H, imax, method='gauss-legendre'))
# u12 =========================================
def v12(x, y, z, h, H, imax=4.0):
(z, h) = (z, h) if z > h else (H - z, H - h)
r = np.sqrt(x**2 + y**2)
if z > h + 1/ mp.e:
return x * y / r * h0 * far_integral(j1xsh, r, z, h, H, imax, method='gauss-legendre')
else:
return x * y / r * h0 * near_integral(j1xsh, r, z, h, H, m=1)
def w12(x, y, z, h, H, imax=4.0):
r = np.sqrt(x**2 + y**2)
return ((2*x*y) / (r**3 * np.sqrt(h0)) * far_integral(j1xa1, r, z, h, H, imax, method='gauss-legendre') -
x * y / r**2 * far_integral(j0x2a1, r, z, h, H, imax, method='gauss-legendre'))
# u13 =========================================
# =====================================================
# The piecewise function of v13 needs further consideration.
# z = h may never hold for the float presicion.
def v13(x, y, z, h, H, imax=4.0):
(z, h) = (z, h) if z > h else (H - z, H - h)
r = np.sqrt(x**2 + y**2)
if z > h:
return (z - h) * x / r * h0 * far_integral(j1xsh, r, z, h, H, imax, method='gauss-legendre')
else:
return 0
def w13(x, y, z, h, H, imax=4.0):
r = np.sqrt(x**2 + y**2)
return x / r * far_integral(j1xa4_13, r, z, h, H, imax, method='gauss-legendre')
# u31 =========================================
def v31(x, y, z, h, H, imax=4.0):
return v13(x, y, z, h, H, imax=4.0)
def w31(x, y, z, h, H, imax=4.0):
r = np.sqrt(x**2 + y**2)
return x / r * far_integral(j1xa4_31, r, z, h, H, imax, method='gauss-legendre')
# u33 =========================================
def v33(x, y, z, h, H, imax=4.0):
(z, h) = (z, h) if z > h else (H - z, H - h)
r = np.sqrt(x**2 + y**2)
if z > h + 1/ mp.e:
return (far_integral(j0sh, r, z, h, H, imax, method='gauss-legendre') +
x**2 / r * h0 * far_integral(j0xdsh, r, z, h, H, imax, method='gauss-legendre')
else:
return (near_integral(j0sh, r, z, h, H, imax, method='gauss-legendre') +
x**2 / r * h0 * far_integral(j0xdsh, r, z, h, H, imax, method='gauss-legendre')
def w33(x, y, z, h, H, imax=4.0):
r = np.sqrt(x**2 + y**2)
return far_integral(j0a2, r, z, h, H, imax, method='gauss-legendre')
# 将速度函数包装为矢量函数。
# U11 =========================================
def U11_z(x, y, z_list, h, H, imax=4.0):
if (type(x) or type(y)) is not float:
raise TypeError("x and y should be float!")
elif type(z_list) is not np.ndarray:
raise TypeError("z should be array!")
global r
r = np.sqrt(x**2 + y**2)
return np.array([w11(x, y, zz, h, H, imax) + v11(x, y, zz, h, H, imax)
for zz in z_list])
# U12 =========================================
def U12_z(x, y, z_list, h, H, imax=4.0):
if (type(x) or type(y)) is not float:
raise TypeError("x and y should be float!")
elif type(z_list) is not np.ndarray:
raise TypeError("z should be array!")
global r
r = np.sqrt(x**2 + y**2)
return np.array([w12(x, y, zz, h, H, imax) + v12(x, y, zz, h, H, imax)
for zz in z_list])
# U13 =========================================
def U13_z(x, y, z_list, h, H, imax=4.0):
if (type(x) or type(y)) is not float:
raise TypeError("x and y should be float!")
elif type(z_list) is not np.ndarray:
raise TypeError("z should be array!")
global r
r = np.sqrt(x**2 + y**2)
return np.array([w13(x, y, zz, h, H, imax) + v13(x, y, zz, h, H, imax)
for zz in z_list])
# U31 =========================================
def U31_z(x, y, z_list, h, H, imax=4.0):
if (type(x) or type(y)) is not float:
raise TypeError("x and y should be float!")
elif type(z_list) is not np.ndarray:
raise TypeError("z should be array!")
global r
r = np.sqrt(x**2 + y**2)
return np.array([w31(x, y, zz, h, H, imax) + v31(x, y, zz, h, H, imax)
for zz in z_list])
| 41.728889
| 117
| 0.466503
| 1,739
| 9,389
| 2.485336
| 0.058079
| 0.055993
| 0.058306
| 0.074503
| 0.932207
| 0.93105
| 0.919713
| 0.91416
| 0.895419
| 0.873207
| 0
| 0.059534
| 0.268293
| 9,389
| 225
| 118
| 41.728889
| 0.569578
| 0
| 0
| 0.70625
| 0
| 0
| 0.045946
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
5c646e9df0f1eea44223cd1db6f70cb60c3b6141
| 48
|
py
|
Python
|
heppy/modules/fee06.py
|
hiqdev/epypy
|
364fdcc0bef96e079e10b8bae7173e14da28da37
|
[
"BSD-3-Clause"
] | 20
|
2016-06-02T20:29:29.000Z
|
2022-01-31T07:47:02.000Z
|
heppy/modules/fee06.py
|
hiqdev/epypy
|
364fdcc0bef96e079e10b8bae7173e14da28da37
|
[
"BSD-3-Clause"
] | 1
|
2018-10-09T16:09:24.000Z
|
2018-10-10T08:17:42.000Z
|
heppy/modules/fee06.py
|
hiqdev/epypy
|
364fdcc0bef96e079e10b8bae7173e14da28da37
|
[
"BSD-3-Clause"
] | 7
|
2018-04-11T16:05:06.000Z
|
2020-01-28T16:30:40.000Z
|
from fee import fee
class fee06(fee):
pass
| 9.6
| 19
| 0.6875
| 8
| 48
| 4.125
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.055556
| 0.25
| 48
| 4
| 20
| 12
| 0.861111
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.333333
| 0.333333
| 0
| 0.666667
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 7
|
5c68d160457444739bcc51b811e3141a74486c93
| 112
|
py
|
Python
|
app/api/__init__.py
|
Abdulrahmannaser/QRC_generator
|
dd1d50ac4ba0bbe3ce12475ad49a3c7f459f136d
|
[
"MIT"
] | null | null | null |
app/api/__init__.py
|
Abdulrahmannaser/QRC_generator
|
dd1d50ac4ba0bbe3ce12475ad49a3c7f459f136d
|
[
"MIT"
] | null | null | null |
app/api/__init__.py
|
Abdulrahmannaser/QRC_generator
|
dd1d50ac4ba0bbe3ce12475ad49a3c7f459f136d
|
[
"MIT"
] | null | null | null |
from flask import Blueprint
from app.api import errors
bp = Blueprint('api', __name__)
from app.api import qr
| 16
| 31
| 0.767857
| 18
| 112
| 4.555556
| 0.555556
| 0.170732
| 0.243902
| 0.390244
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.160714
| 112
| 6
| 32
| 18.666667
| 0.87234
| 0
| 0
| 0
| 0
| 0
| 0.026786
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.75
| 0
| 0.75
| 0.5
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 1
|
0
| 7
|
7a29bd19e725247a4a2086b0b11ba1e0737e2341
| 166
|
py
|
Python
|
scrapy_autoproxy/exceptions.py
|
dchrostowski/scrapy_autoproxy_middleware
|
f43ac659bcb134009fa054e16abe22d77ecc8be6
|
[
"MIT"
] | null | null | null |
scrapy_autoproxy/exceptions.py
|
dchrostowski/scrapy_autoproxy_middleware
|
f43ac659bcb134009fa054e16abe22d77ecc8be6
|
[
"MIT"
] | null | null | null |
scrapy_autoproxy/exceptions.py
|
dchrostowski/scrapy_autoproxy_middleware
|
f43ac659bcb134009fa054e16abe22d77ecc8be6
|
[
"MIT"
] | null | null | null |
class ReservedQueueMismatchException(Exception):
pass
class RedisDetailQueueEmptyException(Exception):
pass
class DetailExistsException(Exception):
pass
| 20.75
| 48
| 0.813253
| 12
| 166
| 11.25
| 0.5
| 0.288889
| 0.266667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.13253
| 166
| 8
| 49
| 20.75
| 0.9375
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0
| 0
| 0.5
| 0
| 1
| 0
| 1
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 7
|
7a3ae8ebc13ef96f12c3590c0772348831c79e58
| 3,094
|
py
|
Python
|
extension/tpcds/tpcds_config.py
|
AldoMyrtaj/duckdb
|
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
|
[
"MIT"
] | 2,816
|
2018-06-26T18:52:52.000Z
|
2021-04-06T10:39:15.000Z
|
extension/tpcds/tpcds_config.py
|
AldoMyrtaj/duckdb
|
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
|
[
"MIT"
] | 1,310
|
2021-04-06T16:04:52.000Z
|
2022-03-31T13:52:53.000Z
|
extension/tpcds/tpcds_config.py
|
AldoMyrtaj/duckdb
|
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
|
[
"MIT"
] | 270
|
2021-04-09T06:18:28.000Z
|
2022-03-31T11:55:37.000Z
|
import os
# list all include directories
include_directories = [os.path.sep.join(x.split('/')) for x in ['extension/tpcds/include', 'extension/tpcds/dsdgen/include', 'extension/tpcds/dsdgen/include/dsdgen-c']]
# source files
source_files = [os.path.sep.join(x.split('/')) for x in ['extension/tpcds/tpcds-extension.cpp']]
source_files += [os.path.sep.join(x.split('/')) for x in ['extension/tpcds/dsdgen/dsdgen.cpp', 'extension/tpcds/dsdgen/append_info-c.cpp', 'extension/tpcds/dsdgen/dsdgen_helpers.cpp']]
source_files += [os.path.sep.join(x.split('/')) for x in ['extension/tpcds/dsdgen/dsdgen-c/skip_days.cpp', 'extension/tpcds/dsdgen/dsdgen-c/address.cpp', 'extension/tpcds/dsdgen/dsdgen-c/build_support.cpp', 'extension/tpcds/dsdgen/dsdgen-c/date.cpp', 'extension/tpcds/dsdgen/dsdgen-c/dbgen_version.cpp', 'extension/tpcds/dsdgen/dsdgen-c/decimal.cpp', 'extension/tpcds/dsdgen/dsdgen-c/dist.cpp', 'extension/tpcds/dsdgen/dsdgen-c/error_msg.cpp', 'extension/tpcds/dsdgen/dsdgen-c/genrand.cpp', 'extension/tpcds/dsdgen/dsdgen-c/join.cpp', 'extension/tpcds/dsdgen/dsdgen-c/list.cpp', 'extension/tpcds/dsdgen/dsdgen-c/load.cpp', 'extension/tpcds/dsdgen/dsdgen-c/misc.cpp', 'extension/tpcds/dsdgen/dsdgen-c/nulls.cpp', 'extension/tpcds/dsdgen/dsdgen-c/parallel.cpp', 'extension/tpcds/dsdgen/dsdgen-c/permute.cpp', 'extension/tpcds/dsdgen/dsdgen-c/pricing.cpp', 'extension/tpcds/dsdgen/dsdgen-c/r_params.cpp', 'extension/tpcds/dsdgen/dsdgen-c/release.cpp', 'extension/tpcds/dsdgen/dsdgen-c/scaling.cpp', 'extension/tpcds/dsdgen/dsdgen-c/scd.cpp', 'extension/tpcds/dsdgen/dsdgen-c/sparse.cpp', 'extension/tpcds/dsdgen/dsdgen-c/StringBuffer.cpp', 'extension/tpcds/dsdgen/dsdgen-c/tdef_functions.cpp', 'extension/tpcds/dsdgen/dsdgen-c/tdefs.cpp', 'extension/tpcds/dsdgen/dsdgen-c/text.cpp', 'extension/tpcds/dsdgen/dsdgen-c/w_call_center.cpp', 'extension/tpcds/dsdgen/dsdgen-c/w_catalog_page.cpp', 'extension/tpcds/dsdgen/dsdgen-c/w_catalog_returns.cpp', 'extension/tpcds/dsdgen/dsdgen-c/w_catalog_sales.cpp', 'extension/tpcds/dsdgen/dsdgen-c/w_customer.cpp', 'extension/tpcds/dsdgen/dsdgen-c/w_customer_address.cpp', 'extension/tpcds/dsdgen/dsdgen-c/w_customer_demographics.cpp', 'extension/tpcds/dsdgen/dsdgen-c/w_datetbl.cpp', 'extension/tpcds/dsdgen/dsdgen-c/w_household_demographics.cpp', 'extension/tpcds/dsdgen/dsdgen-c/w_income_band.cpp', 'extension/tpcds/dsdgen/dsdgen-c/w_inventory.cpp', 'extension/tpcds/dsdgen/dsdgen-c/w_item.cpp', 'extension/tpcds/dsdgen/dsdgen-c/w_promotion.cpp', 'extension/tpcds/dsdgen/dsdgen-c/w_reason.cpp', 'extension/tpcds/dsdgen/dsdgen-c/w_ship_mode.cpp', 'extension/tpcds/dsdgen/dsdgen-c/w_store.cpp', 'extension/tpcds/dsdgen/dsdgen-c/w_store_returns.cpp', 'extension/tpcds/dsdgen/dsdgen-c/w_store_sales.cpp', 'extension/tpcds/dsdgen/dsdgen-c/w_timetbl.cpp', 'extension/tpcds/dsdgen/dsdgen-c/w_warehouse.cpp', 'extension/tpcds/dsdgen/dsdgen-c/w_web_page.cpp', 'extension/tpcds/dsdgen/dsdgen-c/w_web_returns.cpp', 'extension/tpcds/dsdgen/dsdgen-c/w_web_sales.cpp', 'extension/tpcds/dsdgen/dsdgen-c/w_web_site.cpp', 'extension/tpcds/dsdgen/dsdgen-c/init.cpp']]
| 386.75
| 2,586
| 0.785714
| 490
| 3,094
| 4.857143
| 0.159184
| 0.341176
| 0.470588
| 0.578992
| 0.835294
| 0.797059
| 0.481933
| 0.359244
| 0.092017
| 0.092017
| 0
| 0
| 0.029735
| 3,094
| 7
| 2,587
| 442
| 0.792805
| 0.013251
| 0
| 0
| 0
| 0
| 0.842295
| 0.840984
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.2
| 0
| 0.2
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
8ff3bd4a69630abb56c6c1148af540309c699d77
| 88
|
py
|
Python
|
securetea/lib/antivirus/update/__init__.py
|
neerajv18/SecureTea-Project
|
e999cbe7c8e497c69b76b4c886de0d063169ea03
|
[
"MIT"
] | 257
|
2018-03-28T12:43:20.000Z
|
2022-03-29T07:07:23.000Z
|
securetea/lib/antivirus/update/__init__.py
|
neerajv18/SecureTea-Project
|
e999cbe7c8e497c69b76b4c886de0d063169ea03
|
[
"MIT"
] | 155
|
2018-03-31T14:57:46.000Z
|
2022-03-17T18:12:41.000Z
|
securetea/lib/antivirus/update/__init__.py
|
neerajv18/SecureTea-Project
|
e999cbe7c8e497c69b76b4c886de0d063169ea03
|
[
"MIT"
] | 132
|
2018-03-27T06:25:20.000Z
|
2022-03-28T11:32:45.000Z
|
"""Summary."""
from . import helper
from . import update_hash
from . import update_yara
| 17.6
| 25
| 0.738636
| 12
| 88
| 5.25
| 0.583333
| 0.47619
| 0.507937
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.147727
| 88
| 4
| 26
| 22
| 0.84
| 0.090909
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
64f3fbb9d33073dc40be67f6bb5efae48cf98224
| 159
|
py
|
Python
|
fuzz_checker/exceptions/execution_exeptions.py
|
Luc-Veldhuis/MasterThesisCS2020
|
d444aefa61c72a40f28f5a96eb0768c72e9c66f1
|
[
"MIT"
] | null | null | null |
fuzz_checker/exceptions/execution_exeptions.py
|
Luc-Veldhuis/MasterThesisCS2020
|
d444aefa61c72a40f28f5a96eb0768c72e9c66f1
|
[
"MIT"
] | null | null | null |
fuzz_checker/exceptions/execution_exeptions.py
|
Luc-Veldhuis/MasterThesisCS2020
|
d444aefa61c72a40f28f5a96eb0768c72e9c66f1
|
[
"MIT"
] | null | null | null |
class MaximumRunsException(Exception):
pass
class MaximumExecutionTimeException(Exception):
pass
class ConditionFlippedException(Exception):
pass
| 19.875
| 47
| 0.805031
| 12
| 159
| 10.666667
| 0.5
| 0.304688
| 0.28125
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.138365
| 159
| 8
| 48
| 19.875
| 0.934307
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0
| 0
| 0.5
| 0
| 1
| 0
| 1
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 7
|
8f113d455aa0f049fad490d21951fc642e07f828
| 6,959
|
py
|
Python
|
loldib/getratings/models/NA/na_lissandra/na_lissandra_bot.py
|
koliupy/loldib
|
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
|
[
"Apache-2.0"
] | null | null | null |
loldib/getratings/models/NA/na_lissandra/na_lissandra_bot.py
|
koliupy/loldib
|
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
|
[
"Apache-2.0"
] | null | null | null |
loldib/getratings/models/NA/na_lissandra/na_lissandra_bot.py
|
koliupy/loldib
|
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
|
[
"Apache-2.0"
] | null | null | null |
from getratings.models.ratings import Ratings
class NA_Lissandra_Bot_Aatrox(Ratings):
pass
class NA_Lissandra_Bot_Ahri(Ratings):
pass
class NA_Lissandra_Bot_Akali(Ratings):
pass
class NA_Lissandra_Bot_Alistar(Ratings):
pass
class NA_Lissandra_Bot_Amumu(Ratings):
pass
class NA_Lissandra_Bot_Anivia(Ratings):
pass
class NA_Lissandra_Bot_Annie(Ratings):
pass
class NA_Lissandra_Bot_Ashe(Ratings):
pass
class NA_Lissandra_Bot_AurelionSol(Ratings):
pass
class NA_Lissandra_Bot_Azir(Ratings):
pass
class NA_Lissandra_Bot_Bard(Ratings):
pass
class NA_Lissandra_Bot_Blitzcrank(Ratings):
pass
class NA_Lissandra_Bot_Brand(Ratings):
pass
class NA_Lissandra_Bot_Braum(Ratings):
pass
class NA_Lissandra_Bot_Caitlyn(Ratings):
pass
class NA_Lissandra_Bot_Camille(Ratings):
pass
class NA_Lissandra_Bot_Cassiopeia(Ratings):
pass
class NA_Lissandra_Bot_Chogath(Ratings):
pass
class NA_Lissandra_Bot_Corki(Ratings):
pass
class NA_Lissandra_Bot_Darius(Ratings):
pass
class NA_Lissandra_Bot_Diana(Ratings):
pass
class NA_Lissandra_Bot_Draven(Ratings):
pass
class NA_Lissandra_Bot_DrMundo(Ratings):
pass
class NA_Lissandra_Bot_Ekko(Ratings):
pass
class NA_Lissandra_Bot_Elise(Ratings):
pass
class NA_Lissandra_Bot_Evelynn(Ratings):
pass
class NA_Lissandra_Bot_Ezreal(Ratings):
pass
class NA_Lissandra_Bot_Fiddlesticks(Ratings):
pass
class NA_Lissandra_Bot_Fiora(Ratings):
pass
class NA_Lissandra_Bot_Fizz(Ratings):
pass
class NA_Lissandra_Bot_Galio(Ratings):
pass
class NA_Lissandra_Bot_Gangplank(Ratings):
pass
class NA_Lissandra_Bot_Garen(Ratings):
pass
class NA_Lissandra_Bot_Gnar(Ratings):
pass
class NA_Lissandra_Bot_Gragas(Ratings):
pass
class NA_Lissandra_Bot_Graves(Ratings):
pass
class NA_Lissandra_Bot_Hecarim(Ratings):
pass
class NA_Lissandra_Bot_Heimerdinger(Ratings):
pass
class NA_Lissandra_Bot_Illaoi(Ratings):
pass
class NA_Lissandra_Bot_Irelia(Ratings):
pass
class NA_Lissandra_Bot_Ivern(Ratings):
pass
class NA_Lissandra_Bot_Janna(Ratings):
pass
class NA_Lissandra_Bot_JarvanIV(Ratings):
pass
class NA_Lissandra_Bot_Jax(Ratings):
pass
class NA_Lissandra_Bot_Jayce(Ratings):
pass
class NA_Lissandra_Bot_Jhin(Ratings):
pass
class NA_Lissandra_Bot_Jinx(Ratings):
pass
class NA_Lissandra_Bot_Kalista(Ratings):
pass
class NA_Lissandra_Bot_Karma(Ratings):
pass
class NA_Lissandra_Bot_Karthus(Ratings):
pass
class NA_Lissandra_Bot_Kassadin(Ratings):
pass
class NA_Lissandra_Bot_Katarina(Ratings):
pass
class NA_Lissandra_Bot_Kayle(Ratings):
pass
class NA_Lissandra_Bot_Kayn(Ratings):
pass
class NA_Lissandra_Bot_Kennen(Ratings):
pass
class NA_Lissandra_Bot_Khazix(Ratings):
pass
class NA_Lissandra_Bot_Kindred(Ratings):
pass
class NA_Lissandra_Bot_Kled(Ratings):
pass
class NA_Lissandra_Bot_KogMaw(Ratings):
pass
class NA_Lissandra_Bot_Leblanc(Ratings):
pass
class NA_Lissandra_Bot_LeeSin(Ratings):
pass
class NA_Lissandra_Bot_Leona(Ratings):
pass
class NA_Lissandra_Bot_Lissandra(Ratings):
pass
class NA_Lissandra_Bot_Lucian(Ratings):
pass
class NA_Lissandra_Bot_Lulu(Ratings):
pass
class NA_Lissandra_Bot_Lux(Ratings):
pass
class NA_Lissandra_Bot_Malphite(Ratings):
pass
class NA_Lissandra_Bot_Malzahar(Ratings):
pass
class NA_Lissandra_Bot_Maokai(Ratings):
pass
class NA_Lissandra_Bot_MasterYi(Ratings):
pass
class NA_Lissandra_Bot_MissFortune(Ratings):
pass
class NA_Lissandra_Bot_MonkeyKing(Ratings):
pass
class NA_Lissandra_Bot_Mordekaiser(Ratings):
pass
class NA_Lissandra_Bot_Morgana(Ratings):
pass
class NA_Lissandra_Bot_Nami(Ratings):
pass
class NA_Lissandra_Bot_Nasus(Ratings):
pass
class NA_Lissandra_Bot_Nautilus(Ratings):
pass
class NA_Lissandra_Bot_Nidalee(Ratings):
pass
class NA_Lissandra_Bot_Nocturne(Ratings):
pass
class NA_Lissandra_Bot_Nunu(Ratings):
pass
class NA_Lissandra_Bot_Olaf(Ratings):
pass
class NA_Lissandra_Bot_Orianna(Ratings):
pass
class NA_Lissandra_Bot_Ornn(Ratings):
pass
class NA_Lissandra_Bot_Pantheon(Ratings):
pass
class NA_Lissandra_Bot_Poppy(Ratings):
pass
class NA_Lissandra_Bot_Quinn(Ratings):
pass
class NA_Lissandra_Bot_Rakan(Ratings):
pass
class NA_Lissandra_Bot_Rammus(Ratings):
pass
class NA_Lissandra_Bot_RekSai(Ratings):
pass
class NA_Lissandra_Bot_Renekton(Ratings):
pass
class NA_Lissandra_Bot_Rengar(Ratings):
pass
class NA_Lissandra_Bot_Riven(Ratings):
pass
class NA_Lissandra_Bot_Rumble(Ratings):
pass
class NA_Lissandra_Bot_Ryze(Ratings):
pass
class NA_Lissandra_Bot_Sejuani(Ratings):
pass
class NA_Lissandra_Bot_Shaco(Ratings):
pass
class NA_Lissandra_Bot_Shen(Ratings):
pass
class NA_Lissandra_Bot_Shyvana(Ratings):
pass
class NA_Lissandra_Bot_Singed(Ratings):
pass
class NA_Lissandra_Bot_Sion(Ratings):
pass
class NA_Lissandra_Bot_Sivir(Ratings):
pass
class NA_Lissandra_Bot_Skarner(Ratings):
pass
class NA_Lissandra_Bot_Sona(Ratings):
pass
class NA_Lissandra_Bot_Soraka(Ratings):
pass
class NA_Lissandra_Bot_Swain(Ratings):
pass
class NA_Lissandra_Bot_Syndra(Ratings):
pass
class NA_Lissandra_Bot_TahmKench(Ratings):
pass
class NA_Lissandra_Bot_Taliyah(Ratings):
pass
class NA_Lissandra_Bot_Talon(Ratings):
pass
class NA_Lissandra_Bot_Taric(Ratings):
pass
class NA_Lissandra_Bot_Teemo(Ratings):
pass
class NA_Lissandra_Bot_Thresh(Ratings):
pass
class NA_Lissandra_Bot_Tristana(Ratings):
pass
class NA_Lissandra_Bot_Trundle(Ratings):
pass
class NA_Lissandra_Bot_Tryndamere(Ratings):
pass
class NA_Lissandra_Bot_TwistedFate(Ratings):
pass
class NA_Lissandra_Bot_Twitch(Ratings):
pass
class NA_Lissandra_Bot_Udyr(Ratings):
pass
class NA_Lissandra_Bot_Urgot(Ratings):
pass
class NA_Lissandra_Bot_Varus(Ratings):
pass
class NA_Lissandra_Bot_Vayne(Ratings):
pass
class NA_Lissandra_Bot_Veigar(Ratings):
pass
class NA_Lissandra_Bot_Velkoz(Ratings):
pass
class NA_Lissandra_Bot_Vi(Ratings):
pass
class NA_Lissandra_Bot_Viktor(Ratings):
pass
class NA_Lissandra_Bot_Vladimir(Ratings):
pass
class NA_Lissandra_Bot_Volibear(Ratings):
pass
class NA_Lissandra_Bot_Warwick(Ratings):
pass
class NA_Lissandra_Bot_Xayah(Ratings):
pass
class NA_Lissandra_Bot_Xerath(Ratings):
pass
class NA_Lissandra_Bot_XinZhao(Ratings):
pass
class NA_Lissandra_Bot_Yasuo(Ratings):
pass
class NA_Lissandra_Bot_Yorick(Ratings):
pass
class NA_Lissandra_Bot_Zac(Ratings):
pass
class NA_Lissandra_Bot_Zed(Ratings):
pass
class NA_Lissandra_Bot_Ziggs(Ratings):
pass
class NA_Lissandra_Bot_Zilean(Ratings):
pass
class NA_Lissandra_Bot_Zyra(Ratings):
pass
| 16.688249
| 46
| 0.780572
| 972
| 6,959
| 5.162551
| 0.151235
| 0.192507
| 0.440016
| 0.522519
| 0.819051
| 0.819051
| 0
| 0
| 0
| 0
| 0
| 0
| 0.159649
| 6,959
| 416
| 47
| 16.728365
| 0.858071
| 0
| 0
| 0.498195
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.498195
| 0.00361
| 0
| 0.501805
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 0
|
0
| 7
|
8f801cf1b8bf331d4e75e94c8748234d007c9f29
| 22,007
|
py
|
Python
|
utensor_cgen/backend/utensor/code_generator/rearch/_operators/_impls.py
|
uTensor/utensor_cgen
|
eccd6859028d0b6a350dced25ea72ff02faaf9ad
|
[
"Apache-2.0"
] | 49
|
2018-01-06T12:57:56.000Z
|
2021-09-03T09:48:32.000Z
|
utensor_cgen/backend/utensor/code_generator/rearch/_operators/_impls.py
|
uTensor/utensor_cgen
|
eccd6859028d0b6a350dced25ea72ff02faaf9ad
|
[
"Apache-2.0"
] | 101
|
2018-01-16T19:24:21.000Z
|
2021-11-10T19:39:33.000Z
|
utensor_cgen/backend/utensor/code_generator/rearch/_operators/_impls.py
|
uTensor/utensor_cgen
|
eccd6859028d0b6a350dced25ea72ff02faaf9ad
|
[
"Apache-2.0"
] | 32
|
2018-02-15T19:39:50.000Z
|
2020-11-26T22:32:05.000Z
|
import re
from typing import Hashable
from jinja2 import Template
from utensor_cgen.backend.utensor.snippets._types import NP_TYPES_MAP
from utensor_cgen.backend.utensor.snippets.rearch import *
from utensor_cgen.utils import must_return_type
from ._base import OperatorFactory, _Operator
def _c_arr_str(iterable):
return "{{ {} }}".format(
", ".join(map(str, iterable))
)
@OperatorFactory.register
class _AddOperator(_Operator):
namespaces = ('ReferenceOperators',)
op_type = 'AddOperator'
def get_declare_snippet(self, op_var_name, with_const_params=True):
return DeclareOpSnippet(
op=self,
templ_dtypes=[self.in_dtypes[0]],
op_var_name=op_var_name,
nested_namespaces=type(self).namespaces,
with_const_params=with_const_params,
)
def get_eval_snippet(self, op_var_name, op_info, tensor_var_map):
return AddOpEvalSnippet(
op_info=op_info,
templ_dtypes=[self.in_dtypes[0]],
op_name=op_var_name,
tensor_var_map=tensor_var_map,
nested_namespaces=type(self).namespaces,
)
def get_construct_snippet(self, op_var_name):
return OpConstructSnippet(
op=self,
templ_dtypes=[self.in_dtypes[0]],
op_var_name=op_var_name,
nested_namespaces=type(self).namespaces,
)
@OperatorFactory.register
class _ReshapeOperator(_Operator):
namespaces = ('ReferenceOperators',)
op_type = "ReshapeOperator"
@classmethod
@must_return_type(Hashable)
def get_constructor_parameters(cls, op_info):
new_shape = op_info.op_attr['new_shape']
return (_c_arr_str(new_shape),)
def get_declare_snippet(self, op_var_name, with_const_params=True):
return DeclareOpSnippet(
op=self,
templ_dtypes=[self.in_dtypes[0]],
op_var_name=op_var_name,
nested_namespaces=type(self).namespaces,
with_const_params=with_const_params,
)
def get_eval_snippet(self, op_var_name, op_info, tensor_var_map):
return ReshahpeEvalSnippet(
op_info=op_info,
templ_dtypes=[self.in_dtypes[0]],
op_name=op_var_name,
tensor_var_map=tensor_var_map,
nested_namespaces=type(self).namespaces,
)
def get_construct_snippet(self, op_var_name):
return OpConstructSnippet(
op=self,
templ_dtypes=[self.in_dtypes[0]],
op_var_name=op_var_name,
nested_namespaces=type(self).namespaces,
)
@OperatorFactory.register
class _MatmulOperator(_Operator):
namespaces = ('ReferenceOperators',)
op_type = 'MatrixMultOperator'
def get_eval_snippet(self, op_var_name, op_info, tensor_var_map):
return MatrixMultEvalSnippet(
op_info=op_info,
templ_dtypes=[self.in_dtypes[0]],
op_name=op_var_name,
tensor_var_map=tensor_var_map,
nested_namespaces=type(self).namespaces,
)
def get_declare_snippet(self, op_var_name, with_const_params=True):
return DeclareOpSnippet(
op=self,
templ_dtypes=[self.in_dtypes[0]],
op_var_name=op_var_name,
nested_namespaces=type(self).namespaces,
with_const_params=with_const_params,
)
def get_construct_snippet(self, op_var_name):
return OpConstructSnippet(
op=self,
templ_dtypes=[self.in_dtypes[0]],
op_var_name=op_var_name,
nested_namespaces=type(self).namespaces,
)
@OperatorFactory.register
class _ArgMinOperator(_Operator):
namespaces = ('ReferenceOperators',)
op_type = "ArgMinOperator"
def get_declare_snippet(self, op_var_name, with_const_params=True):
return DeclareOpSnippet(
op=self,
templ_dtypes=[self.in_dtypes[0]],
op_var_name=op_var_name,
nested_namespaces=type(self).namespaces,
with_const_params=with_const_params,
)
def get_eval_snippet(self, op_var_name, op_info, tensor_var_map):
return ArgMinEvalSnippet(
op_info=op_info,
templ_dtypes=[self.in_dtypes[0]],
op_name=op_var_name,
tensor_var_map=tensor_var_map,
nested_namespaces=type(self).namespaces,
)
def get_construct_snippet(self, op_var_name):
return OpConstructSnippet(
op=self,
templ_dtypes=[self.in_dtypes[0]],
op_var_name=op_var_name,
nested_namespaces=type(self).namespaces,
)
@OperatorFactory.register
class _ArgMaxOperator(_Operator):
namespaces = ('ReferenceOperators',)
op_type = "ArgMaxOperator"
def get_declare_snippet(self, op_var_name, with_const_params=True):
return DeclareOpSnippet(
op=self,
templ_dtypes=[self.in_dtypes[0]],
op_var_name=op_var_name,
nested_namespaces=type(self).namespaces,
with_const_params=with_const_params,
)
def get_eval_snippet(self, op_var_name, op_info, tensor_var_map):
return ArgMaxEvalSnippet(
op_info=op_info,
templ_dtypes=[self.in_dtypes[0]],
op_name=op_var_name,
tensor_var_map=tensor_var_map,
nested_namespaces=type(self).namespaces,
)
def get_construct_snippet(self, op_var_name):
return OpConstructSnippet(
op=self,
templ_dtypes=[self.in_dtypes[0]],
op_var_name=op_var_name,
nested_namespaces=type(self).namespaces,
)
@OperatorFactory.register
class _QuantizeOperator(_Operator):
namespaces = ('TflmSymQuantOps',)
op_type = "QuantizeOperator"
def get_declare_snippet(self, op_var_name, with_const_params=True):
return DeclareOpSnippet(
op=self,
templ_dtypes=[self.out_dtypes[0], self.in_dtypes[0]],
op_var_name=op_var_name,
nested_namespaces=type(self).namespaces,
with_const_params=with_const_params,
)
def get_eval_snippet(self, op_var_name, op_info, tensor_var_map):
return QuantizeEvalSnippet(
op_info=op_info,
templ_dtypes=[self.out_dtypes[0], self.in_dtypes[0]],
op_name=op_var_name,
tensor_var_map=tensor_var_map,
nested_namespaces=type(self).namespaces,
)
def get_construct_snippet(self, op_var_name):
return OpConstructSnippet(
op=self,
templ_dtypes=[self.out_dtypes[0], self.in_dtypes[0]],
op_var_name=op_var_name,
nested_namespaces=type(self).namespaces,
)
@OperatorFactory.register
class _DequantizeOperator(_Operator):
namespaces = ('TflmSymQuantOps',)
op_type = "DequantizeOperator"
def get_declare_snippet(self, op_var_name, with_const_params=True):
return DeclareOpSnippet(
op=self,
templ_dtypes=[self.out_dtypes[0], self.in_dtypes[0]],
op_var_name=op_var_name,
nested_namespaces=type(self).namespaces,
with_const_params=with_const_params,
)
def get_eval_snippet(self, op_var_name, op_info, tensor_var_map):
return DequantizeEvalSnippet(
op_info=op_info,
templ_dtypes=[self.out_dtypes[0], self.in_dtypes[0]],
op_name=op_var_name,
tensor_var_map=tensor_var_map,
nested_namespaces=type(self).namespaces,
)
def get_construct_snippet(self, op_var_name):
return OpConstructSnippet(
op=self,
templ_dtypes=[self.out_dtypes[0], self.in_dtypes[0]],
op_var_name=op_var_name,
nested_namespaces=type(self).namespaces,
)
@OperatorFactory.register
class _ReLUOperator(_Operator):
namespaces = ('ReferenceOperators',)
op_type = "ReLUOperator"
def get_declare_snippet(self, op_var_name, with_const_params=True):
return DeclareOpSnippet(
op=self,
templ_dtypes=[self.in_dtypes[0]],
op_var_name=op_var_name,
nested_namespaces=type(self).namespaces,
with_const_params=with_const_params,
)
def get_eval_snippet(self, op_var_name, op_info, tensor_var_map):
return ReLUEvalSnippet(
op_info=op_info,
templ_dtypes=[self.in_dtypes[0]],
op_name=op_var_name,
tensor_var_map=tensor_var_map,
nested_namespaces=type(self).namespaces,
)
def get_construct_snippet(self, op_var_name):
return OpConstructSnippet(
op=self,
templ_dtypes=[self.in_dtypes[0]],
op_var_name=op_var_name,
nested_namespaces=type(self).namespaces,
)
@OperatorFactory.register
class _ReLU6Operator(_Operator):
namespaces = ('ReferenceOperators',)
op_type = "ReLU6Operator"
def get_declare_snippet(self, op_var_name, with_const_params=True):
return DeclareOpSnippet(
op=self,
templ_dtypes=[self.in_dtypes[0]],
op_var_name=op_var_name,
nested_namespaces=type(self).namespaces,
with_const_params=with_const_params,
)
def get_eval_snippet(self, op_var_name, op_info, tensor_var_map):
return ReLU6EvalSnippet(
op_info=op_info,
templ_dtypes=[self.in_dtypes[0]],
op_name=op_var_name,
tensor_var_map=tensor_var_map,
nested_namespaces=type(self).namespaces,
)
def get_construct_snippet(self, op_var_name):
return OpConstructSnippet(
op=self,
templ_dtypes=[self.in_dtypes[0]],
op_var_name=op_var_name,
nested_namespaces=type(self).namespaces,
)
@OperatorFactory.register
class _MinOperator(_Operator):
namespaces = ('ReferenceOperators',)
op_type = 'MinOperator'
def get_declare_snippet(self, op_var_name, with_const_params=True):
return DeclareOpSnippet(
op=self,
templ_dtypes=[self.in_dtypes[0]],
op_var_name=op_var_name,
nested_namespaces=type(self).namespaces,
with_const_params=with_const_params,
)
def get_eval_snippet(self, op_var_name, op_info, tensor_var_map):
return MinEvalSnippet(
op_info=op_info,
templ_dtypes=[self.in_dtypes[0]],
op_name=op_var_name,
tensor_var_map=tensor_var_map,
nested_namespaces=type(self).namespaces,
)
def get_construct_snippet(self, op_var_name):
return OpConstructSnippet(
op=self,
templ_dtypes=[self.in_dtypes[0]],
op_var_name=op_var_name,
nested_namespaces=type(self).namespaces,
)
@OperatorFactory.register
class _MaxOperator(_Operator):
namespaces = ('ReferenceOperators',)
op_type = 'MaxOperator'
def get_declare_snippet(self, op_var_name, with_const_params=True):
return DeclareOpSnippet(
op=self,
templ_dtypes=[self.in_dtypes[0]],
op_var_name=op_var_name,
nested_namespaces=type(self).namespaces,
with_const_params=with_const_params,
)
def get_eval_snippet(self, op_var_name, op_info, tensor_var_map):
return MaxEvalSnippet(
op_info=op_info,
templ_dtypes=[self.in_dtypes[0]],
op_name=op_var_name,
tensor_var_map=tensor_var_map,
nested_namespaces=type(self).namespaces,
)
def get_construct_snippet(self, op_var_name):
return OpConstructSnippet(
op=self,
templ_dtypes=[self.in_dtypes[0]],
op_var_name=op_var_name,
nested_namespaces=type(self).namespaces,
)
class _PoolingOperatorMixin(object):
@classmethod
@must_return_type(Hashable)
def get_constructor_parameters(cls, op_info):
if op_info.ugraph.lib_name == "tensorflow":
strides = op_info.op_attr['strides'].value.ints_value
ksize = op_info.op_attr['ksize'].value.ints_value[1:3]
padding = op_info.op_attr['padding'].value.decode('utf8')
elif op_info.ugraph.lib_name == 'tflite':
strides = [
1,
op_info.op_attr['StrideW'],
op_info.op_attr['StrideH'],
1,
]
ksize = [
op_info.op_attr['FilterWidth'],
op_info.op_attr['FilterHeight'],
]
padding = op_info.op_attr['Padding'] == 1 and "VALID" or "SAME"
else:
raise RuntimeError("dont know to to get constructor signature")
stride_str = _c_arr_str(strides)
ksize_str = _c_arr_str(ksize)
return (ksize_str, stride_str, padding)
@OperatorFactory.register
class _MaxPoolOperator(_PoolingOperatorMixin, _Operator):
namespaces = ('ReferenceOperators',)
op_type = 'MaxPoolOperator'
def get_declare_snippet(self, op_var_name, with_const_params=True):
return DeclareOpSnippet(
op=self,
templ_dtypes=[self.in_dtypes[0]],
op_var_name=op_var_name,
nested_namespaces=type(self).namespaces,
with_const_params=with_const_params,
)
def get_eval_snippet(self, op_var_name, op_info, tensor_var_map):
return MaxPoolEvalSnippet(
op_info=op_info,
templ_dtypes=[self.in_dtypes[0]],
op_name=op_var_name,
tensor_var_map=tensor_var_map,
nested_namespaces=type(self).namespaces,
)
def get_construct_snippet(self, op_var_name):
return OpConstructSnippet(
op=self,
templ_dtypes=[self.in_dtypes[0]],
op_var_name=op_var_name,
nested_namespaces=type(self).namespaces,
)
@OperatorFactory.register
class _MinPoolOperator(_PoolingOperatorMixin, _Operator):
namespaces = ('ReferenceOperators',)
op_type = 'MinPoolOperator'
def get_declare_snippet(self, op_var_name, with_const_params=True):
return DeclareOpSnippet(
op=self,
templ_dtypes=[self.in_dtypes[0]],
op_var_name=op_var_name,
nested_namespaces=type(self).namespaces,
with_const_params=with_const_params,
)
def get_eval_snippet(self, op_var_name, op_info, tensor_var_map):
return MinPoolEvalSnippet(
op_info=op_info,
templ_dtypes=[self.in_dtypes[0]],
op_name=op_var_name,
tensor_var_map=tensor_var_map,
nested_namespaces=type(self).namespaces,
)
def get_construct_snippet(self, op_var_name):
return OpConstructSnippet(
op=self,
templ_dtypes=[self.in_dtypes[0]],
op_var_name=op_var_name,
nested_namespaces=type(self).namespaces,
)
class _CommonParams(_Operator):
_PADDING_MAP = {
0: "SAME", # "UNKNOWN",
1: "VALID",
2: "SAME"
}
_ACTIVATION_STR_PATTERN = re.compile(r'^(\d+) \(\w+\)$')
_TFLM_ACTIVATION_MAP = {
"0": "TFLM::TfLiteFusedActivation::kTfLiteActNone",
"1": "TFLM::TfLiteFusedActivation::kTfLiteActRelu",
"2": "TFLM::TfLiteFusedActivation::kTfLiteActRelu1",
"3": "TFLM::TfLiteFusedActivation::kTfLiteActRelu6",
"4": "TFLM::TfLiteFusedActivation::kTfLiteActTanh",
"5": "TFLM::TfLiteFusedActivation::kTfLiteActSignBit",
"6": "TFLM::TfLiteFusedActivation::kTfLiteActSigmoid",
}
# activations for ops under ReferenceOperators namespace
_REFOP_ACTIVATION_MAP = {
"0": Template("Fuseable::NoActivation<{{ dtype_str }}>"),
"1": Template("Fuseable::ReLU<{{ dtype_str }}>"),
"2": Template("Fuseable::ReLU1<{{ dtype_str }}>"), # missing in runtime
"3": Template("Fuseable::ReLU6<{{ dtype_str }}>"),
"4": Template("Fuseable::Tanh<{{ dtype_str }}>"), # missing in runtime
"5": Template("Fuseable::SignBit<{{ dtype_str }}>"), # missing in runtime
"6": Template("Fuseable::Sigmoid<{{ dtype_str }}>"),
}
@OperatorFactory.register
class _Conv2dOperator(_CommonParams):
namespaces = ('ReferenceOperators',)
op_type = 'Conv2dOperator'
@classmethod
@must_return_type(Hashable)
def get_constructor_parameters(cls, op_info):
padding = cls._PADDING_MAP[op_info.op_attr['Padding']]
stride_width = op_info.op_attr['StrideW']
stride_hight = op_info.op_attr['StrideH']
return (
_c_arr_str([1, stride_hight, stride_width, 1]),
padding,
)
def get_declare_snippet(self, op_var_name, with_const_params=True):
return DeclareOpSnippet(
op=self,
templ_dtypes=[self.out_dtypes[0]],
op_var_name=op_var_name,
nested_namespaces=type(self).namespaces,
with_const_params=with_const_params,
)
def get_eval_snippet(self, op_var_name, op_info, tensor_var_map):
return Conv2dOpEvalSnippet(
op_info=op_info,
templ_dtypes=[self.out_dtypes[0]],
op_name=op_var_name,
tensor_var_map=tensor_var_map,
nested_namespaces=type(self).namespaces,
)
def get_construct_snippet(self, op_var_name):
return OpConstructSnippet(
op=self,
templ_dtypes=[self.out_dtypes[0]],
op_var_name=op_var_name,
nested_namespaces=type(self).namespaces,
)
@OperatorFactory.register
class _QuantDWSConvOperator(_CommonParams):
namespaces = ('TflmSymQuantOps',)
op_type = "DepthwiseSeparableConvOperator"
@classmethod
@must_return_type(Hashable)
def get_constructor_parameters(cls, op_info):
padding = cls._PADDING_MAP[op_info.op_attr['Padding']]
stride_width = op_info.op_attr['StrideW']
stride_hight = op_info.op_attr['StrideH']
depth_multiplier = op_info.op_attr['DepthMultiplier']
activation_idx = cls._ACTIVATION_STR_PATTERN.match(
op_info.op_attr['FusedActivationFunction']
).group(1)
activation = cls._TFLM_ACTIVATION_MAP[activation_idx]
dilation_width_factor = op_info.op_attr['DilationWFactor']
dilation_height_factor = op_info.op_attr['DilationHFactor']
return (
_c_arr_str([stride_width, stride_hight]),
padding,
depth_multiplier,
_c_arr_str([dilation_width_factor, dilation_height_factor]),
activation,
)
def get_declare_snippet(self, op_var_name, with_const_params=True):
return DeclareOpSnippet(
op=self,
templ_dtypes=[self.out_dtypes[0]],
op_var_name=op_var_name,
nested_namespaces=type(self).namespaces,
with_const_params=with_const_params,
)
def get_eval_snippet(self, op_var_name, op_info, tensor_var_map):
return QuantDepthwiseSeperateConvOpEvalSnippet(
op_info=op_info,
templ_dtypes=[self.out_dtypes[0]],
op_name=op_var_name,
tensor_var_map=tensor_var_map,
nested_namespaces=type(self).namespaces,
)
def get_construct_snippet(self, op_var_name):
return OpConstructSnippet(
op=self,
templ_dtypes=[self.out_dtypes[0]],
op_var_name=op_var_name,
nested_namespaces=type(self).namespaces,
)
@OperatorFactory.register
class _DWSConvOperator(_CommonParams):
namespaces = ('ReferenceOperators',)
op_type = "DepthwiseSeparableConvOperator"
@classmethod
@must_return_type(Hashable)
def get_constructor_parameters(cls, op_info):
strides = [
1,
op_info.op_attr['StrideW'],
op_info.op_attr['StrideH'],
1,
]
padding = cls._PADDING_MAP[op_info.op_attr['Padding']]
strides_str = ','.join(map(str, strides))
return ("{{ {} }}".format(strides_str), padding)
def get_declare_snippet(self, op_var_name, with_const_params=True):
return DeclareOpSnippet(
op=self,
templ_dtypes=[self.out_dtypes[0]],
op_var_name=op_var_name,
nested_namespaces=type(self).namespaces,
with_const_params=with_const_params,
)
def get_eval_snippet(self, op_var_name, op_info, tensor_var_map):
return DepthwiseSeperateConvOpEvalSnippet(
op_info=op_info,
templ_dtypes=[self.out_dtypes[0]],
op_name=op_var_name,
tensor_var_map=tensor_var_map,
nested_namespaces=type(self).namespaces,
)
def get_construct_snippet(self, op_var_name):
return OpConstructSnippet(
op=self,
templ_dtypes=[self.out_dtypes[0]],
op_var_name=op_var_name,
nested_namespaces=type(self).namespaces,
)
@OperatorFactory.register
class _QuantizedFullyConnectedOperator(_CommonParams):
namespaces = ('TflmSymQuantOps',)
op_type = "FullyConnectedOperator"
@classmethod
@must_return_type(Hashable)
def get_constructor_parameters(cls, op_info):
activation_idx = cls._ACTIVATION_STR_PATTERN.match(
op_info.op_attr['FusedActivationFunction']
).group(1)
activation = cls._TFLM_ACTIVATION_MAP[activation_idx]
return (activation,)
def get_declare_snippet(self, op_var_name, with_const_params=True):
return DeclareOpSnippet(
op=self,
templ_dtypes=[self.out_dtypes[0]],
op_var_name=op_var_name,
nested_namespaces=type(self).namespaces,
with_const_params=with_const_params,
)
def get_eval_snippet(self, op_var_name, op_info, tensor_var_map):
return QuantizedFullyConnectedSnippet(
op_info=op_info,
templ_dtypes=[self.out_dtypes[0]],
op_name=op_var_name,
tensor_var_map=tensor_var_map,
nested_namespaces=type(self).namespaces,
)
def get_construct_snippet(self, op_var_name):
return OpConstructSnippet(
op=self,
templ_dtypes=[self.out_dtypes[0]],
op_var_name=op_var_name,
nested_namespaces=type(self).namespaces,
)
@OperatorFactory.register
class _FullyConnectedOperator(_CommonParams):
namespaces = ("ReferenceOperators",)
op_type = "FullyConnectedOperator"
@classmethod
@must_return_type(Hashable)
def get_constructor_parameters(cls, op_info):
activation_idx = cls._ACTIVATION_STR_PATTERN.match(
op_info.op_attr['FusedActivationFunction']
).group(1)
activation_tmpl = cls._REFOP_ACTIVATION_MAP[activation_idx]
in_dtype = op_info.output_tensors[0].dtype
activation = activation_tmpl.render(dtype_str=NP_TYPES_MAP[in_dtype].tensor_type_str)
return (activation,)
def get_declare_snippet(self, op_var_name, with_const_params=True):
return DeclareOpSnippet(
op=self,
templ_dtypes=[self.out_dtypes[0]],
op_var_name=op_var_name,
nested_namespaces=type(self).namespaces,
with_const_params=with_const_params,
)
def get_eval_snippet(self, op_var_name, op_info, tensor_var_map):
return FullyConnectedSnippet(
op_info=op_info,
templ_dtypes=[self.out_dtypes[0]],
op_name=op_var_name,
tensor_var_map=tensor_var_map,
nested_namespaces=type(self).namespaces,
)
def get_construct_snippet(self, op_var_name):
return OpConstructSnippet(
op=self,
templ_dtypes=[self.out_dtypes[0]],
op_var_name=op_var_name,
nested_namespaces=type(self).namespaces,
)
class _MissingOperator(_Operator):
op_type = "_MissingOperator"
def get_declare_snippet(self, op_var_name, with_const_params=True):
return None
def get_eval_snippet(self, op_var_name, op_info, tensor_var_map):
return MissingOpEvalSnippet(op_info, tensor_var_map)
def get_construct_snippet(self, op_var_name):
return None
OperatorFactory._operators[_MissingOperator.op_type] = _MissingOperator
| 29.900815
| 89
| 0.718044
| 2,819
| 22,007
| 5.199361
| 0.069173
| 0.050147
| 0.090264
| 0.062223
| 0.815378
| 0.757113
| 0.740056
| 0.740056
| 0.740056
| 0.734598
| 0
| 0.005638
| 0.177989
| 22,007
| 735
| 90
| 29.941497
| 0.804588
| 0.005544
| 0
| 0.710145
| 0
| 0
| 0.07089
| 0.023173
| 0
| 0
| 0
| 0
| 0
| 1
| 0.10467
| false
| 0
| 0.011272
| 0.093398
| 0.320451
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
56d82f7ce436eec353fe71bfb98dc6443cec6f1f
| 4,801
|
py
|
Python
|
tests/unit/WebGUI/test_migrations_view.py
|
PascalKleindienst/experimentum
|
5d547e0e8135d4d7ffe42b0c8a57e70a7ac2af4b
|
[
"Apache-2.0"
] | null | null | null |
tests/unit/WebGUI/test_migrations_view.py
|
PascalKleindienst/experimentum
|
5d547e0e8135d4d7ffe42b0c8a57e70a7ac2af4b
|
[
"Apache-2.0"
] | 3
|
2019-04-17T08:07:12.000Z
|
2019-04-28T15:24:18.000Z
|
tests/unit/WebGUI/test_migrations_view.py
|
PascalKleindienst/experimentum
|
5d547e0e8135d4d7ffe42b0c8a57e70a7ac2af4b
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
from flask import json
import sys
class TestMigrationsView(object):
def test_upgrade_success(self, client, app, mocker):
mock = mocker.patch('experimentum.Storage.Migrations.Migrator')
mock.up.side_effect = lambda: sys.stdout.write('Some Message')
app.config['container'].make = mocker.MagicMock(return_value=mock)
response = client.get('/migrations/upgrade')
data = json.loads(response.get_data(as_text=True))
mock.up.assert_called_once_with()
assert response.status_code == 200
assert data['status'] == 'success'
assert data['message'] == 'Some Message'
def test_upgrade_error(self, client, app, mocker):
mock = mocker.patch('experimentum.Storage.Migrations.Migrator')
mock.up.side_effect = SystemExit('error')
app.config['container'].make = mocker.MagicMock(return_value=mock)
response = client.get('/migrations/upgrade')
data = json.loads(response.get_data(as_text=True))
mock.up.assert_called_once_with()
assert response.status_code == 200
assert data['status'] == 'error'
assert data['message'] == ''
def test_downgrade_success(self, client, app, mocker):
mock = mocker.patch('experimentum.Storage.Migrations.Migrator')
mock.down.side_effect = lambda: sys.stdout.write('Some Message')
app.config['container'].make = mocker.MagicMock(return_value=mock)
response = client.get('/migrations/downgrade')
data = json.loads(response.get_data(as_text=True))
mock.down.assert_called_once_with()
assert response.status_code == 200
assert data['status'] == 'success'
assert data['message'] == 'Some Message'
def test_downgrade_error(self, client, app, mocker):
mock = mocker.patch('experimentum.Storage.Migrations.Migrator')
mock.down.side_effect = SystemExit('error')
app.config['container'].make = mocker.MagicMock(return_value=mock)
response = client.get('/migrations/downgrade')
data = json.loads(response.get_data(as_text=True))
mock.down.assert_called_once_with()
assert response.status_code == 200
assert data['status'] == 'error'
assert data['message'] == ''
def test_downgrade_error_response(self, client, app, mocker):
mock = mocker.patch('experimentum.Storage.Migrations.Migrator')
mock.down.side_effect = lambda: sys.stdout.write('× Some Error Message')
app.config['container'].make = mocker.MagicMock(return_value=mock)
response = client.get('/migrations/downgrade')
data = json.loads(response.get_data(as_text=True))
mock.down.assert_called_once_with()
assert response.status_code == 200
assert data['status'] == 'error'
assert data['message'] == u'× Some Error Message'
def test_refresh(self, client, app, mocker):
mock = mocker.patch('experimentum.Storage.Migrations.Migrator')
app.config['container'].make = mocker.MagicMock(return_value=mock)
response = client.get('/migrations/refresh')
data = json.loads(response.get_data(as_text=True))
mock.refresh.assert_called_once_with()
assert response.status_code == 200
assert data['status'] == 'success'
assert data['message'] == u'› Refreshed all migrations'
def test_make(self, client, app, mocker):
mock = mocker.patch('experimentum.Storage.Migrations.Migrator')
mock.make.side_effect = lambda _: sys.stdout.write('Some Message')
app.config['container'].make = mocker.MagicMock(return_value=mock)
response = client.post('/migrations/make', data={'name': 'foo'})
data = json.loads(response.get_data(as_text=True))
mock.make.assert_called_once_with('foo')
assert response.status_code == 200
assert data['status'] == 'success'
assert data['message'] == 'Some Message'
def test_make_error(self, client, app, mocker):
mock = mocker.patch('experimentum.Storage.Migrations.Migrator')
mock.make.side_effect = SystemExit('Some Error')
app.config['container'].make = mocker.MagicMock(return_value=mock)
response = client.post('/migrations/make', data={'name': 'foo'})
data = json.loads(response.get_data(as_text=True))
mock.make.assert_called_once_with('foo')
assert response.status_code == 200
assert data['status'] == 'error'
assert data['message'] == ''
def test_status(self, client, app, mocker):
response = client.get('/migrations/status')
assert response.status_code == 200
assert '20190101000000_create_experiments' in response.data.decode('utf-8', errors='ignore')
| 42.114035
| 100
| 0.662987
| 573
| 4,801
| 5.415358
| 0.1274
| 0.051563
| 0.037705
| 0.055108
| 0.893651
| 0.88914
| 0.878505
| 0.878505
| 0.878505
| 0.878505
| 0
| 0.011224
| 0.202041
| 4,801
| 113
| 101
| 42.486726
| 0.797964
| 0.004374
| 0
| 0.709302
| 0
| 0
| 0.195898
| 0.087066
| 0
| 0
| 0
| 0
| 0.395349
| 1
| 0.104651
| false
| 0
| 0.023256
| 0
| 0.139535
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
56df3ae99a435ba93842405e258dfb4eefdb685a
| 114
|
py
|
Python
|
zecollo/app/zecollo-blueprint/__init__.py
|
zecollokaris/Flask-CLI
|
33fa69cf388ee779e179dd0ed4dbee9e38425b79
|
[
"MIT"
] | 2
|
2018-10-03T19:42:50.000Z
|
2019-06-08T09:52:43.000Z
|
zecollo/app/zecollo-blueprint/__init__.py
|
zecollokaris/Flask-CLI
|
33fa69cf388ee779e179dd0ed4dbee9e38425b79
|
[
"MIT"
] | 24
|
2020-06-05T18:53:25.000Z
|
2022-03-11T23:31:04.000Z
|
zecollo/app/zecollo-blueprint/__init__.py
|
zecollokaris/Flask-CLI
|
33fa69cf388ee779e179dd0ed4dbee9e38425b79
|
[
"MIT"
] | null | null | null |
from flask import Blueprint
zecollo-blueprint = Blueprint('zecollo-blueprint',__name__)
from . import views,error
| 28.5
| 59
| 0.815789
| 14
| 114
| 6.357143
| 0.571429
| 0.359551
| 0.561798
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.096491
| 114
| 4
| 60
| 28.5
| 0.864078
| 0
| 0
| 0
| 0
| 0
| 0.147826
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.666667
| null | null | 0.666667
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 1
|
0
| 7
|
56ff268c6371e302e91dc3da6c758ab059c7d30b
| 9,828
|
py
|
Python
|
tests_oval_graph/test_oval_tree/get_tree.py
|
OpenSCAP/oval-graph
|
76d40e018d0f73e3cef443d34b649426f189c877
|
[
"Apache-2.0"
] | 12
|
2020-12-17T14:19:16.000Z
|
2022-03-23T19:30:56.000Z
|
tests_oval_graph/test_oval_tree/get_tree.py
|
OpenSCAP/oval-graph
|
76d40e018d0f73e3cef443d34b649426f189c877
|
[
"Apache-2.0"
] | 60
|
2020-10-06T19:45:56.000Z
|
2021-12-13T08:38:28.000Z
|
tests_oval_graph/test_oval_tree/get_tree.py
|
OpenSCAP/oval-graph
|
76d40e018d0f73e3cef443d34b649426f189c877
|
[
"Apache-2.0"
] | 7
|
2020-12-17T14:19:25.000Z
|
2021-10-11T12:47:55.000Z
|
import json
from pathlib import Path
from oval_graph.oval_tree.oval_node import OvalNode
class GetTree():
@staticmethod
def simple_tree():
return OvalNode(
node_id=1,
node_type='operator',
value='and',
children=[
OvalNode(
node_id=2,
node_type='value',
value='true',
),
OvalNode(
node_id=3,
node_type='value',
value='false',
),
OvalNode(
node_id=4,
node_type='operator',
value='or',
children=[
OvalNode(
node_id=5,
node_type='value',
value='false',
),
OvalNode(
node_id=6,
node_type='value',
value="true",
),
]
)
]
)
@staticmethod
def tree_true():
return OvalNode(
node_id=1,
node_type='operator',
value='and',
children=[
OvalNode(
node_id=2,
node_type='value',
value='true',
)
]
)
@staticmethod
def tree_false():
return OvalNode(
node_id=1,
node_type='operator',
value='and',
children=[
OvalNode(
node_id=2,
node_type='value',
value="false",
),
]
)
@staticmethod
def tree_noteval():
return OvalNode(
node_id=1,
node_type='operator',
value='and',
children=[
OvalNode(
node_id=2,
node_type='value',
value='noteval',
)
]
)
@staticmethod
def tree_false_one_node():
return OvalNode(
node_id=1,
node_type='value',
value='false',
)
@staticmethod
def tree_true_one_node():
return OvalNode(
node_id=1,
node_type='value',
value='true',
)
@staticmethod
def tree_error_one_node():
return OvalNode(
node_id=1,
node_type='value',
value='error',
)
@staticmethod
def negated_operator_node_false():
return OvalNode(
node_id=1,
node_type='operator',
value='and',
negation=True,
children=[
OvalNode(
node_id=2,
node_type='value',
value='false',
)
]
)
@staticmethod
def negated_operator_node_true():
return OvalNode(
node_id=1,
node_type='operator',
value='and',
negation=True,
children=[
OvalNode(
node_id=2,
node_type='value',
value='true',
)
]
)
@staticmethod
def negate_value_node_false():
return OvalNode(
node_id=1,
node_type='operator',
value='and',
children=[
OvalNode(
node_id=2,
node_type='value',
value="false",
negation=True,
),
]
)
@staticmethod
def negate_value_node_true():
return OvalNode(
node_id=1,
node_type='operator',
value='and',
children=[
OvalNode(
node_id=2,
node_type='value',
value="true",
negation=True,
),
]
)
@staticmethod
def negated_value_node_true():
return OvalNode(
node_id=2,
node_type='value',
value='true',
negation=True,
)
@staticmethod
def negated_value_node_false():
return OvalNode(
node_id=2,
node_type='value',
value='false',
negation=True,
)
@staticmethod
def uppercase_tree():
return OvalNode(
node_id=1,
node_type="OPERATOR",
value="AND",
children=[
OvalNode(
node_id=2,
node_type="VALUE",
value="TRUE",
),
OvalNode(
node_id=3,
node_type="VALUE",
value="NOTAPPL",
),
]
)
@staticmethod
def big_oval_tree():
return OvalNode(
node_id=1,
node_type='operator',
value='and',
children=[
OvalNode(
node_id=2,
node_type='value',
value="false",
),
OvalNode(
node_id=3,
node_type='operator',
value="xor",
children=[
OvalNode(
node_id=4,
node_type='value',
value='true',
),
OvalNode(
node_id=5,
node_type='operator',
value='one',
children=[
OvalNode(
node_id=6,
node_type='value',
value='noteval',
),
OvalNode(
node_id=7,
node_type='value',
value='true',
),
OvalNode(
node_id=8,
node_type='value',
value='notappl',
),
]
),
OvalNode(
node_id=9,
node_type='value',
value='error',
),
]
),
OvalNode(
node_id=10,
node_type='operator',
value='or',
children=[
OvalNode(
node_id=11,
node_type='value',
value="unknown",
),
OvalNode(
node_id=12,
node_type='value',
value="true",
),
]
),
]
)
# Degenered trees
@staticmethod
def bad_tree():
"""
t
|
and
|
t
"""
return OvalNode(
node_id=1,
node_type="value",
value="true",
children=[
OvalNode(
node_id=2,
node_type="operator",
value="and",
children=[
OvalNode(
node_id=3,
node_type="value",
value="true",
),
]
),
]
)
@staticmethod
def tree_only_or():
"""
or
"""
return OvalNode(
node_id=1,
node_type="operator",
value='or',
)
@staticmethod
def tree_only_and():
"""
and
"""
return OvalNode(
node_id=1,
node_type="operator",
value='and',
)
@staticmethod
def tree_with_bad_value_of_operator():
return OvalNode(
node_id=1,
node_type="operator",
value='nad',
)
@staticmethod
def tree_with_bad_value_of_value():
return OvalNode(
node_id=1,
node_type="value",
value='and',
)
@staticmethod
def tree_with_bad_type():
return OvalNode(
node_id=1,
node_type="car",
value='and',
)
@staticmethod
def tree_with_bad_value_of_negation():
return OvalNode(
node_id=1,
node_type="operator",
value="true",
children=[
OvalNode(
node_id=2,
node_type="value",
value='true',
negation="random_string",
)
]
)
@staticmethod
def json_of_tree(src):
path = Path(__file__).parent / src
with open(path, 'r') as file_:
return json.load(file_)
| 25.527273
| 54
| 0.337709
| 672
| 9,828
| 4.6875
| 0.098214
| 0.190476
| 0.222222
| 0.171429
| 0.833968
| 0.788571
| 0.773651
| 0.73873
| 0.640317
| 0.510159
| 0
| 0.012802
| 0.578755
| 9,828
| 384
| 55
| 25.59375
| 0.748068
| 0.003561
| 0
| 0.729651
| 0
| 0
| 0.053917
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.06686
| false
| 0
| 0.008721
| 0.055233
| 0.145349
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
7122708d79f8b99f71711e5307cad6d5578f1acc
| 16,708
|
py
|
Python
|
Cove-BCN/sentence_encoders.py
|
menajosep/AleatoricSent
|
9a23f663e334ad02affb1dc75802b5ebafa84402
|
[
"Apache-2.0",
"BSD-3-Clause"
] | 3
|
2019-01-26T15:32:55.000Z
|
2019-05-29T05:51:58.000Z
|
Cove-BCN/sentence_encoders.py
|
menajosep/AleatoricSent
|
9a23f663e334ad02affb1dc75802b5ebafa84402
|
[
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null |
Cove-BCN/sentence_encoders.py
|
menajosep/AleatoricSent
|
9a23f663e334ad02affb1dc75802b5ebafa84402
|
[
"Apache-2.0",
"BSD-3-Clause"
] | 1
|
2021-08-07T02:18:12.000Z
|
2021-08-07T02:18:12.000Z
|
# This file makes use of the InferSent, SentEval and CoVe libraries, and may contain adapted code from the repositories
# containing these libraries. Their licenses can be found in <this-repository>/Licenses.
#
# InferSent and SentEval:
# Copyright (c) 2017-present, Facebook, Inc. All rights reserved.
# InferSent repository: https://github.com/facebookresearch/InferSent
# SentEval repository: https://github.com/facebookresearch/SentEval
# Reference: Conneau, Alexis, Kiela, Douwe, Schwenk, Holger, Barrault, Loic, and Bordes, Antoine. Supervised learning
# of universal sentence representations from natural language inference data. In Proceedings of the 2017
# Conference on Empirical Methods in Natural Language Processing, pp. 670-680. Association for
# Computational Linguistics, 2017.
#
# CoVe:
# Copyright (c) 2017, Salesforce.com, Inc. All rights reserved.
# Repository: https://github.com/salesforce/cove
# Reference: McCann, Bryan, Bradbury, James, Xiong, Caiming, and Socher, Richard. Learned in translation:
# Contextualized word vectors. In Advances in Neural Information Processing Systems 30, pp, 6297-6308.
# Curran Associates, Inc., 2017.
#
# This code also makes use of GloVe: Pennington, Jeffrey, Socher, Richard, and Manning, Christopher D. Glove: Global
# vectors for word representation. In Empirical Methods in Natural Language Processing (EMNLP), pp. 1532-1543, 2014.
#
# This code also makes use of Keras: Keras: Chollet, Francois et al. Keras. https://github.com/keras-team/keras, 2015
#
# This code also makes use of PyTorch: Pytorch. [online]. Available at: https://github.com/pytorch/pytorch
#
import sys
import numpy as np
class GloVeEncoder:
def __init__(self, glove_path, ignore_glove_header=False):
self.glove_path = glove_path
self.ignore_glove_header = ignore_glove_header
self.glove_dim = -1
self.glove_embeddings_dict = dict()
self.max_sent_len = 0
# load() must be called before sentence embeddings can be generated - see below
def load(self, samples):
print("\nLoading GloVe embeddings...")
f = open(self.glove_path)
first_line = True
for line in f:
if first_line and self.ignore_glove_header:
first_line = False
continue
values = line.split()
word = values[0]
embedding = np.asarray(values[1:], dtype='float32')
if self.glove_dim == -1:
self.glove_dim = len(embedding)
assert self.glove_dim == len(embedding)
if word in samples:
self.glove_embeddings_dict[word] = embedding
f.close()
if len(self.glove_embeddings_dict) == 0 or self.glove_dim == -1:
print("ERROR: Failed to load GloVe embeddings.")
sys.exit(1)
print("Successfully loaded GloVe embeddings (vocab size: " + str(
len(self.glove_embeddings_dict)) + ", dimensions: " + str(self.glove_dim) + ").")
# Input sequence (tokenized sentence) w is converted to sequence of vectors: w' = [GloVe(w); CoVe(w)]
def encode_sentence(self, tokenized_sentence):
if self.glove_dim == -1:
print("ERROR: load() has not been called on encoder.")
sys.exit(1)
glove_embeddings = []
for word in tokenized_sentence:
try:
glove_embedding = np.array(self.glove_embeddings_dict[word])
except KeyError:
# 1e-10 for unknown words, as recommended on https://github.com/rgsachin/CoVe
glove_embedding = np.full(self.glove_dim, 1e-10)
assert glove_embedding.shape == (self.glove_dim,)
glove_embeddings.append(glove_embedding)
glove = np.array([glove_embeddings])
glove = glove[0]
assert glove.shape == (len(tokenized_sentence), self.glove_dim)
if glove.shape[0] > self.max_sent_len:
self.max_sent_len = glove.shape[0]
return glove
def get_max_sent_len(self):
return self.max_sent_len
def get_embed_dim(self):
return self.glove_dim
class CoVeEncoder:
def __init__(self, glove_path, cove_path, ignore_glove_header=False, cove_dim=900):
self.glove_path = glove_path
self.cove_path = cove_path
self.ignore_glove_header = ignore_glove_header
self.cove_dim = cove_dim
self.glove_dim = -1
self.glove_cove_dim = -1
self.glove_embeddings_dict = dict()
self.cove_model = None
self.max_sent_len = 0
# load() must be called before sentence embeddings can be generated - see below
def load(self, samples):
print("\nLoading GloVe embeddings...")
f = open(self.glove_path)
first_line = True
for line in f:
if first_line and self.ignore_glove_header:
first_line = False
continue
values = line.split()
word = values[0]
embedding = np.asarray(values[1:], dtype='float32')
if self.glove_dim == -1:
self.glove_dim = len(embedding)
assert self.glove_dim == len(embedding)
if word in samples:
self.glove_embeddings_dict[word] = embedding
f.close()
if len(self.glove_embeddings_dict) == 0 or self.glove_dim == -1:
print("ERROR: Failed to load GloVe embeddings.")
sys.exit(1)
print("Successfully loaded GloVe embeddings (vocab size: " + str(
len(self.glove_embeddings_dict)) + ", dimensions: " + str(self.glove_dim) + ").")
# Load CoVe model. Ported version from https://github.com/rgsachin/CoVe
# - Input: GloVe vectors of dimension - (<batch_size>, <sentence_len>, <self.glove_dim>)
# - Output: CoVe vectors of dimension - (<batch_size>, <sentence_len>, <self.cove_dim>)
# - Example: self.cove_model.predict(np.random.rand(1, 10, self.glove_dime))
# - For unknown words, use a dummy value different to the one used for padding - small non-zero value e.g. 1e-10
print("\nLoading CoVe model...")
from keras.models import load_model
self.glove_cove_dim = self.glove_dim + self.cove_dim
self.cove_model = load_model(self.cove_path)
test = self.cove_model.predict(np.random.rand(1, 10, 300))
assert test.shape == (1, 10, self.cove_dim)
print("Successfully loaded CoVe model.")
# Input sequence (tokenized sentence) w is converted to sequence of vectors: w' = [GloVe(w); CoVe(w)]
def encode_sentence(self, tokenized_sentence):
if self.glove_dim == -1 or self.glove_cove_dim == -1:
print("ERROR: load() has not been called on encoder.")
sys.exit(1)
glove_embeddings = []
for word in tokenized_sentence:
try:
glove_embedding = np.array(self.glove_embeddings_dict[word])
except KeyError:
# 1e-10 for unknown words, as recommended on https://github.com/rgsachin/CoVe
glove_embedding = np.full(self.glove_dim, 1e-10)
assert glove_embedding.shape == (self.glove_dim,)
glove_embeddings.append(glove_embedding)
glove = np.array([glove_embeddings])
assert glove.shape == (1, len(tokenized_sentence), self.glove_dim)
cove = self.cove_model.predict(glove)
cove = cove[0]
assert cove.shape == (len(tokenized_sentence), self.cove_dim)
if cove.shape[0] > self.max_sent_len:
self.max_sent_len = cove.shape[0]
return cove
def get_max_sent_len(self):
return self.max_sent_len
def get_embed_dim(self):
return self.cove_dim
class GloVeCoVeEncoder:
def __init__(self, glove_path, cove_path, ignore_glove_header=False, cove_dim=900):
self.glove_path = glove_path
self.cove_path = cove_path
self.ignore_glove_header = ignore_glove_header
self.cove_dim = cove_dim
self.glove_dim = -1
self.glove_cove_dim = -1
self.glove_embeddings_dict = dict()
self.cove_model = None
self.max_sent_len = 0
# load() must be called before sentence embeddings can be generated - see below
def load(self, samples):
print("\nLoading GloVe embeddings...")
f = open(self.glove_path)
first_line = True
for line in f:
if first_line and self.ignore_glove_header:
first_line = False
continue
values = line.split(sep=' ')
word = values[0]
embedding = np.asarray(values[1:], dtype='float32')
if self.glove_dim == -1:
self.glove_dim = len(embedding)
assert self.glove_dim == len(embedding)
if word in samples:
self.glove_embeddings_dict[word] = embedding
f.close()
if len(self.glove_embeddings_dict) == 0 or self.glove_dim == -1:
print("ERROR: Failed to load GloVe embeddings.")
sys.exit(1)
print("Successfully loaded GloVe embeddings (vocab size: " + str(
len(self.glove_embeddings_dict)) + ", dimensions: " + str(self.glove_dim) + ").")
# Load CoVe model. Ported version from https://github.com/rgsachin/CoVe
# - Input: GloVe vectors of dimension - (<batch_size>, <sentence_len>, <self.glove_dim>)
# - Output: CoVe vectors of dimension - (<batch_size>, <sentence_len>, <self.cove_dim>)
# - Example: self.cove_model.predict(np.random.rand(1, 10, self.glove_dime))
# - For unknown words, use a dummy value different to the one used for padding - small non-zero value e.g. 1e-10
print("\nLoading CoVe model...")
from keras.models import load_model
self.glove_cove_dim = self.glove_dim + self.cove_dim
self.cove_model = load_model(self.cove_path)
test = self.cove_model.predict(np.random.rand(1, 10, 300))
assert test.shape == (1, 10, self.cove_dim)
print("Successfully loaded CoVe model.")
# Input sequence (tokenized sentence) w is converted to sequence of vectors: w' = [GloVe(w); CoVe(w)]
def encode_sentence(self, tokenized_sentence):
if self.glove_dim == -1 or self.glove_cove_dim == -1:
print("ERROR: load() has not been called on encoder.")
sys.exit(1)
glove_embeddings = []
for word in tokenized_sentence:
try:
glove_embedding = np.array(self.glove_embeddings_dict[word])
except KeyError:
# 1e-10 for unknown words, as recommended on https://github.com/rgsachin/CoVe
glove_embedding = np.full(self.glove_dim, 1e-10)
assert glove_embedding.shape == (self.glove_dim,)
glove_embeddings.append(glove_embedding)
glove = np.array([glove_embeddings])
assert glove.shape == (1, len(tokenized_sentence), self.glove_dim)
cove = self.cove_model.predict(glove)
assert cove.shape == (1, len(tokenized_sentence), self.cove_dim)
glove_cove = np.concatenate([glove[0], cove[0]], axis=1)
assert glove_cove.shape == (len(tokenized_sentence), self.glove_dim + self.cove_dim)
if glove_cove.shape[0] > self.max_sent_len:
self.max_sent_len = glove_cove.shape[0]
return glove_cove
def get_max_sent_len(self):
return self.max_sent_len
def get_embed_dim(self):
return self.glove_cove_dim
class GloVeInferSentEncoder:
def __init__(self, glove_path, infersent_path, infersent_dim=900, ignore_glove_header=False):
self.glove_path = glove_path
self.infersent_path = infersent_path
self.infersent_dim = infersent_dim
self.infersent_model = None
self.glove_dim = -1
self.max_sent_len = 0
self.glove_embeddings_dict = dict()
self.ignore_glove_header = ignore_glove_header
# load() must be called before sentence embeddings can be generated - see below
def load(self, samples):
print("\nLoading GloVe embeddings...")
f = open(self.glove_path)
first_line = True
for line in f:
if first_line and self.ignore_glove_header:
first_line = False
continue
values = line.split()
word = values[0]
embedding = np.asarray(values[1:], dtype='float32')
if self.glove_dim == -1:
self.glove_dim = len(embedding)
assert self.glove_dim == len(embedding)
if word in samples:
self.glove_embeddings_dict[word] = embedding
f.close()
if len(self.glove_embeddings_dict) == 0 or self.glove_dim == -1:
print("ERROR: Failed to load GloVe embeddings.")
sys.exit(1)
print("Successfully loaded GloVe embeddings (vocab size: " + str(
len(self.glove_embeddings_dict)) + ", dimensions: " + str(self.glove_dim) + ").")
self.glove_infersent_dim = self.glove_dim + self.infersent_dim
print("\nLoading InferSent model...")
import torch
self.infersent_model = torch.load(self.infersent_path)
self.infersent_model.set_glove_path(self.glove_path)
self.infersent_model.build_vocab(samples, tokenize=False)
print("Successfully loaded InferSent model.")
def encode_sentence(self, tokenized_sentence):
if self.infersent_model is None or self.glove_infersent_dim == -1:
print("ERROR: load() has not been called on encoder.")
sys.exit(1)
infersent_emb = self.infersent_model.encode([' '.join(tokenized_sentence)], bsize=1, tokenize=False)[0]
assert infersent_emb.shape[0] <= len(tokenized_sentence) + 2
assert infersent_emb.shape[1] == self.infersent_dim
assert len(infersent_emb.shape) == 2
if infersent_emb.shape[0] > self.max_sent_len:
self.max_sent_len = infersent_emb.shape[0]
glove_embeddings = []
glove_embeddings.append(np.full(self.glove_dim, 0)) # For <w> tag
for word in tokenized_sentence:
try:
glove_embedding = np.array(self.glove_embeddings_dict[word])
assert glove_embedding.shape == (self.glove_dim,)
glove_embeddings.append(glove_embedding)
except KeyError:
pass # InferSent ignores unknown words
glove_embeddings.append(np.full(self.glove_dim, 0)) # For </w> tag
glove_emb = np.array([glove_embeddings])
glove_emb = glove_emb[0]
#print(infersent_emb.shape)
#print(glove_emb.shape)
assert glove_emb.shape[0] == infersent_emb.shape[0]
assert glove_emb.shape[1] == self.glove_dim
glove_infersent = np.concatenate([glove_emb, infersent_emb], axis=1)
assert glove_infersent.shape == (infersent_emb.shape[0], self.glove_dim + self.infersent_dim)
return glove_infersent
def get_max_sent_len(self):
return self.max_sent_len
def get_embed_dim(self):
return self.glove_infersent_dim
class InferSentEncoder:
def __init__(self, glove_path, infersent_path, infersent_dim=900):
self.glove_path = glove_path
self.infersent_path = infersent_path
self.infersent_dim = infersent_dim
self.infersent_model = None
self.max_sent_len = 0
# load() must be called before sentence embeddings can be generated - see below
def load(self, samples):
print("\nLoading InferSent model...")
import torch
self.infersent_model = torch.load(self.infersent_path)
self.infersent_model.set_glove_path(self.glove_path)
self.infersent_model.build_vocab(samples, tokenize=False)
print("Successfully loaded InferSent model.")
def encode_sentence(self, tokenized_sentence):
if self.infersent_model is None:
print("ERROR: load() has not been called on encoder.")
sys.exit(1)
embeddings = self.infersent_model.encode([' '.join(tokenized_sentence)], bsize=1, tokenize=False)[0]
assert embeddings.shape[0] <= len(tokenized_sentence) + 2
assert embeddings.shape[1] == self.infersent_dim
assert len(embeddings.shape) == 2
if embeddings.shape[0] > self.max_sent_len:
self.max_sent_len = embeddings.shape[0]
return embeddings
def get_max_sent_len(self):
return self.max_sent_len
def get_embed_dim(self):
return self.infersent_dim
| 45.775342
| 120
| 0.640352
| 2,146
| 16,708
| 4.789376
| 0.116496
| 0.084063
| 0.056042
| 0.044756
| 0.820004
| 0.801615
| 0.769313
| 0.745962
| 0.742946
| 0.739249
| 0
| 0.016536
| 0.261611
| 16,708
| 364
| 121
| 45.901099
| 0.816568
| 0.211456
| 0
| 0.800712
| 0
| 0
| 0.078342
| 0
| 0
| 0
| 0
| 0
| 0.088968
| 1
| 0.088968
| false
| 0.003559
| 0.021352
| 0.035587
| 0.181495
| 0.088968
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
85483e8df4f6f46ba3111ceabf9aa77efd781fad
| 5,255
|
py
|
Python
|
rl/model_a2c.py
|
ds4dm/GraphRL
|
b5b1519f6dd92b401625d51add9ae5829004a30b
|
[
"MIT"
] | 2
|
2021-02-26T18:51:01.000Z
|
2021-07-12T05:20:18.000Z
|
rl/model_a2c.py
|
pandat8/GraphRL
|
b5b1519f6dd92b401625d51add9ae5829004a30b
|
[
"MIT"
] | 3
|
2019-05-09T20:59:10.000Z
|
2020-05-13T14:03:50.000Z
|
rl/model_a2c.py
|
pandat8/GraphRL
|
b5b1519f6dd92b401625d51add9ae5829004a30b
|
[
"MIT"
] | 3
|
2018-08-13T20:43:29.000Z
|
2020-05-13T14:00:57.000Z
|
import torch
import torch.nn as nn
import numpy as np
from utils import utils
from torch.distributions import Categorical
class Model_A2C(nn.Module):
def __init__(self,
actor,
use_critic = True,
use_cuda = False,
critic = None):
super(Model_A2C, self).__init__()
self.actor = actor
self.use_critic = use_critic
self.use_cuda = use_cuda
self.actions = []
self.rewards = []
self.saved_actions = []
if self.use_critic:
self.critic = critic
if self.use_cuda:
self.actor = self.actor.cuda()
if self.use_critic:
self.critic = self.critic.cuda()
def step_solver(self, sample_action):
"""Get reward and new state from the solver given action
Args:
sample_action: action of (batch) sample
Returns: reward
"""
batch_size = sample_action[0].size(0)
def forward(self, inputs):
"""
Args:
inputs: graph object
Returns:
"""
features = np.ones([inputs.n, 1], dtype=np.float32) # initialize the feature matrix
features = torch.FloatTensor(features)
adj_M = torch.FloatTensor(inputs.M) # adj matrix of input graph
if self.use_cuda:
adj_M = adj_M.cuda()
features = features.cuda()
probs = self.actor(features, adj_M) # call actor to get a selection distribution
probs = probs.view(-1)
m = Categorical(probs)
node_selected = m.sample()
# node_selected = probs.multinomial() # choose the node given by GCN (add .squeeze(1) for batch training)
log_prob = m.log_prob(node_selected)
if self.use_critic: # call critic to compute the value for current state
critic_current = self.critic(features, adj_M).sum()
r = inputs.eliminate_node(node_selected, reduce=True) # reduce the graph and return the nb of edges added
features = np.ones([inputs.n, 1], dtype=np.float32) # initialize the feature matrix
features = torch.FloatTensor(features)
adj_M = torch.FloatTensor(inputs.M) # adj matrix of reduced graph
if self.use_cuda:
adj_M = adj_M.cuda()
features = features.cuda()
if self.use_critic: # call critic to compute the value for current state
critic_next = self.critic(features, adj_M).sum()
return node_selected, log_prob, r, critic_current, critic_next, inputs
class Model_A2C_Sparse(nn.Module):
def __init__(self,
actor,
use_critic=True,
use_cuda=False,
critic=None):
super(Model_A2C_Sparse, self).__init__()
self.actor = actor
self.use_critic = use_critic
self.use_cuda = use_cuda
self.actions = []
self.rewards = []
self.saved_actions = []
if self.use_critic:
self.critic = critic
if self.use_cuda:
self.actor = self.actor.cuda()
if self.use_critic:
self.critic = self.critic.cuda()
def step_solver(self, sample_action):
"""Get reward and new state from the solver given action
Args:
sample_action: action of (batch) sample
Returns: reward
"""
batch_size = sample_action[0].size(0)
def forward(self, inputs):
"""
Args:
inputs: graph object
Returns:
"""
features = np.ones([inputs.n, 1], dtype=np.float32) # initialize the feature matrix
features = torch.FloatTensor(features)
adj_M = torch.FloatTensor(inputs.M) # adj matrix of input graph
x = torch.nonzero(adj_M)
adj_M = utils.to_sparse(adj_M) # convert to coo sparse tensor
if self.use_cuda:
adj_M = adj_M.cuda()
features = features.cuda()
probs = self.actor(features, adj_M) # call actor to get a selection distribution
probs = probs.view(-1)
m = Categorical(probs)
node_selected = m.sample()
# node_selected = probs.multinomial() # choose the node given by GCN (add .squeeze(1) for batch training)
log_prob = m.log_prob(node_selected)
if self.use_critic: # call critic to compute the value for current state
critic_current = self.critic(features, adj_M).sum()
r = inputs.eliminate_node(node_selected, reduce=True) # reduce the graph and return the nb of edges added
features = np.ones([inputs.n, 1], dtype=np.float32) # initialize the feature matrix
features = torch.FloatTensor(features)
adj_M = torch.FloatTensor(inputs.M) # adj matrix of reduced graph
adj_M = utils.to_sparse(adj_M) # convert to coo sparse tensor
if self.use_cuda:
adj_M = adj_M.cuda()
features = features.cuda()
if self.use_critic: # call critic to compute the value for current state
critic_next = self.critic(features, adj_M).sum()
return node_selected, log_prob, r, critic_current, critic_next, inputs
| 28.101604
| 114
| 0.597526
| 663
| 5,255
| 4.568627
| 0.152338
| 0.030373
| 0.041598
| 0.039617
| 0.948168
| 0.948168
| 0.948168
| 0.948168
| 0.948168
| 0.948168
| 0
| 0.006663
| 0.314558
| 5,255
| 186
| 115
| 28.252688
| 0.834259
| 0.230257
| 0
| 0.897959
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.061224
| false
| 0
| 0.05102
| 0
| 0.153061
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
85a7bb64cc4096f03035b0fe8a27fc10c48acd3b
| 206
|
py
|
Python
|
tests/python/test_arma.py
|
LaudateCorpus1/excentury
|
8d0f20bb3e543382170e042fac51a56377c4024b
|
[
"BSD-2-Clause"
] | null | null | null |
tests/python/test_arma.py
|
LaudateCorpus1/excentury
|
8d0f20bb3e543382170e042fac51a56377c4024b
|
[
"BSD-2-Clause"
] | null | null | null |
tests/python/test_arma.py
|
LaudateCorpus1/excentury
|
8d0f20bb3e543382170e042fac51a56377c4024b
|
[
"BSD-2-Clause"
] | 1
|
2021-12-31T13:24:16.000Z
|
2021-12-31T13:24:16.000Z
|
import excentury as xc
import arma
print arma.inverse_det(xc.array([[1.0, 2], [3, 4]]))
print arma.qr(xc.array([[1.0, 2], [3, 4]]))
print arma.solve(xc.array([[1.0, 2], [3, 4]]), xc.array([[1.0], [2.0]]))
| 29.428571
| 72
| 0.587379
| 43
| 206
| 2.790698
| 0.372093
| 0.233333
| 0.266667
| 0.3
| 0.533333
| 0.45
| 0.45
| 0.35
| 0.35
| 0
| 0
| 0.104396
| 0.116505
| 206
| 6
| 73
| 34.333333
| 0.554945
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.4
| null | null | 0.6
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 1
|
0
| 7
|
a44fd7a4d5bfa5a2082c874d1273dde8edb55c5f
| 119,411
|
py
|
Python
|
conda_kapsel/test/test_project_ops.py
|
LaudateCorpus1/kapsel
|
736b95d4ef81121bfeb965b989f7c159cf470386
|
[
"BSD-3-Clause"
] | 43
|
2016-07-13T19:05:06.000Z
|
2021-02-18T08:17:52.000Z
|
conda_kapsel/test/test_project_ops.py
|
conda-archive/kapsel
|
736b95d4ef81121bfeb965b989f7c159cf470386
|
[
"BSD-3-Clause"
] | 13
|
2016-08-04T18:42:27.000Z
|
2017-02-21T01:07:03.000Z
|
conda_kapsel/test/test_project_ops.py
|
conda-archive/kapsel
|
736b95d4ef81121bfeb965b989f7c159cf470386
|
[
"BSD-3-Clause"
] | 10
|
2016-07-27T00:40:52.000Z
|
2021-08-23T05:42:23.000Z
|
# -*- coding: utf-8 -*-
# ----------------------------------------------------------------------------
# Copyright © 2016, Continuum Analytics, Inc. All rights reserved.
#
# The full license is in the file LICENSE.txt, distributed with this software.
# ----------------------------------------------------------------------------
from __future__ import absolute_import, print_function
import codecs
import os
from tornado import gen
import platform
import pytest
import tarfile
import zipfile
from conda_kapsel import project_ops
from conda_kapsel.conda_manager import (CondaManager, CondaEnvironmentDeviations, CondaManagerError,
push_conda_manager_class, pop_conda_manager_class)
from conda_kapsel.project import Project
import conda_kapsel.prepare as prepare
from conda_kapsel.internal.test.tmpfile_utils import (with_directory_contents, with_temporary_script_commandline,
with_directory_contents_completing_project_file,
complete_project_file_content)
from conda_kapsel.local_state_file import LocalStateFile
from conda_kapsel.project_file import DEFAULT_PROJECT_FILENAME, ProjectFile
from conda_kapsel.test.project_utils import project_no_dedicated_env
from conda_kapsel.internal.test.test_conda_api import monkeypatch_conda_not_to_use_links
from conda_kapsel.test.fake_server import fake_server
import conda_kapsel.internal.keyring as keyring
def test_create(monkeypatch):
def check_create(dirname):
subdir = os.path.join(dirname, 'foo')
# dir doesn't exist
project = project_ops.create(subdir, make_directory=False)
assert [("Project directory '%s' does not exist." % subdir)] == project.problems
# failing to create the dir
def mock_failed_makedirs(path):
raise IOError("nope")
monkeypatch.setattr('os.makedirs', mock_failed_makedirs)
project = project_ops.create(subdir, make_directory=True)
assert [("Project directory '%s' does not exist." % subdir)] == project.problems
monkeypatch.undo()
# failing to create the .kapselignore, but still create dir and kapsel.yml
from codecs import open as real_open
def mock_codecs_open(*args, **kwargs):
if args[0].endswith(".kapselignore") and args[1] == 'w':
raise IOError("nope")
else:
return real_open(*args, **kwargs)
monkeypatch.setattr('codecs.open', mock_codecs_open)
project = project_ops.create(subdir, make_directory=True)
monkeypatch.undo()
assert [] == project.problems
assert os.path.isfile(os.path.join(subdir, DEFAULT_PROJECT_FILENAME))
assert not os.path.isfile(os.path.join(subdir, ".kapselignore"))
# add .kapselignore if we create again and it isn't there
project = project_ops.create(subdir, make_directory=True)
assert [] == project.problems
assert os.path.isfile(os.path.join(subdir, DEFAULT_PROJECT_FILENAME))
assert os.path.isfile(os.path.join(subdir, ".kapselignore"))
assert sorted(list(project.env_specs.keys())) == sorted(['default'])
spec = project.env_specs['default']
assert spec.conda_packages == ('anaconda', )
assert spec.pip_packages == ()
assert spec.channels == ()
with_directory_contents(dict(), check_create)
def test_create_with_properties():
def check_create(dirname):
project = project_ops.create(dirname,
make_directory=False,
name='hello',
icon='something.png',
description="Hello World")
assert [] == project.problems
assert os.path.isfile(os.path.join(dirname, DEFAULT_PROJECT_FILENAME))
assert project.name == 'hello'
assert project.icon == os.path.join(dirname, 'something.png')
assert project.description == "Hello World"
with_directory_contents({'something.png': 'not a real png'}, check_create)
def test_create_imports_environment_yml():
def check_create(dirname):
project = project_ops.create(dirname,
make_directory=False,
name='hello',
icon='something.png',
description="Hello World")
assert [] == project.problems
assert os.path.isfile(os.path.join(dirname, DEFAULT_PROJECT_FILENAME))
assert sorted(list(project.env_specs.keys())) == sorted(['stuff'])
spec = project.env_specs['stuff']
assert spec.conda_packages == ('a', 'b')
assert spec.pip_packages == ('foo', )
assert spec.channels == ('bar', )
with_directory_contents(
{'something.png': 'not a real png',
"environment.yml": """
name: stuff
dependencies:
- a
- b
- pip:
- foo
channels:
- bar
"""}, check_create)
def test_create_imports_environment_yml_when_kapsel_yml_exists_and_fix_problems():
def check_create(dirname):
project = project_ops.create(dirname,
make_directory=False,
name='hello',
icon='something.png',
description="Hello World",
fix_problems=True)
assert [] == project.problems
assert os.path.isfile(os.path.join(dirname, DEFAULT_PROJECT_FILENAME))
assert sorted(list(project.env_specs.keys())) == sorted(['stuff'])
spec = project.env_specs['stuff']
assert spec.conda_packages == ('a', 'b')
assert spec.pip_packages == ('foo', )
assert spec.channels == ('bar', )
with_directory_contents(
{'something.png': 'not a real png',
"kapsel.yml": """
name: foo
""",
"environment.yml": """
name: stuff
dependencies:
- a
- b
- pip:
- foo
channels:
- bar
"""}, check_create)
def test_create_no_import_environment_yml_when_not_fix_problems():
def check_create(dirname):
project = project_ops.create(dirname,
make_directory=False,
name='hello',
icon='something.png',
description="Hello World",
fix_problems=False)
assert ["Environment spec 'stuff' from environment.yml is not in kapsel.yml."] == project.problems
with_directory_contents(
{'something.png': 'not a real png',
"kapsel.yml": """
name: foo
""",
"environment.yml": """
name: stuff
dependencies:
- a
- b
- pip:
- foo
channels:
- bar
"""}, check_create)
def test_create_with_invalid_environment_yml():
def check_create(dirname):
project = project_ops.create(dirname, make_directory=False)
project_filename = os.path.join(dirname, DEFAULT_PROJECT_FILENAME)
assert ["%s: invalid package specification: b $ 1.0" % project_filename] == project.problems
# we should NOT create the kapsel.yml if it would be broken
assert not os.path.isfile(project_filename)
with_directory_contents(
{'something.png': 'not a real png',
"environment.yml": """
name: stuff
dependencies:
- b $ 1.0
"""}, check_create)
def test_create_imports_notebook():
def check_create(dirname):
project = project_ops.create(dirname, make_directory=False, name='hello', description="Hello World")
assert [] == project.problems
assert [] == project.suggestions
assert os.path.isfile(os.path.join(dirname, DEFAULT_PROJECT_FILENAME))
assert sorted(list(project.env_specs.keys())) == sorted(['default'])
spec = project.env_specs['default']
# we default to anaconda in the env
assert spec.conda_packages == ('anaconda', )
assert spec.channels == ()
assert ['foo.ipynb'] == list(project.commands.keys())
with_directory_contents({'foo.ipynb': 'not a real notebook'}, check_create)
def test_set_properties():
def check(dirname):
project = project_ops.create(dirname, make_directory=False)
assert [] == project.problems
assert os.path.isfile(os.path.join(dirname, DEFAULT_PROJECT_FILENAME))
assert project.name == os.path.basename(dirname)
assert project.icon is None
result = project_ops.set_properties(project, name='hello', icon='something.png', description="HELLOOOO")
assert result
assert project.name == 'hello'
assert project.icon == os.path.join(dirname, 'something.png')
assert project.description == "HELLOOOO"
# set to Unicode
result = project_ops.set_properties(project, name=u'hello', icon=u'something.png', description=u'HELLOOOO')
assert result
assert project.name == u'hello'
assert project.icon == os.path.join(dirname, 'something.png')
assert project.description == u"HELLOOOO"
with_directory_contents({'something.png': 'not a real png'}, check)
def test_set_properties_with_project_file_problems():
def check(dirname):
project = Project(dirname)
status = project_ops.set_properties(project, name='foo')
assert not status
assert ["variables section contains wrong value type 42, should be dict or list of requirements"
] == status.errors
with_directory_contents_completing_project_file({DEFAULT_PROJECT_FILENAME: "variables:\n 42"}, check)
def test_set_invalid_name():
def check(dirname):
project = project_ops.create(dirname, make_directory=False)
assert [] == project.problems
assert os.path.isfile(os.path.join(dirname, DEFAULT_PROJECT_FILENAME))
assert project.name == os.path.basename(dirname)
assert project.icon is None
result = project_ops.set_properties(project, name=' ')
print(repr(result))
assert not result
assert 'Failed to set project properties.' == result.status_description
assert ["%s: name: field is an empty or all-whitespace string." %
(os.path.join(dirname, DEFAULT_PROJECT_FILENAME))] == result.errors
assert [] == project.problems
assert project.name == os.path.basename(dirname)
assert project.icon is None
with_directory_contents(dict(), check)
def test_set_invalid_icon():
def check(dirname):
project = project_ops.create(dirname, make_directory=False)
assert [] == project.problems
assert os.path.isfile(os.path.join(dirname, DEFAULT_PROJECT_FILENAME))
assert project.name == os.path.basename(dirname)
assert project.icon is None
result = project_ops.set_properties(project, icon='foobar')
assert not result
assert 'Failed to set project properties.' == result.status_description
assert ["Icon file %s does not exist." % os.path.join(dirname, 'foobar')] == result.errors
assert [] == project.problems
assert project.name == os.path.basename(dirname)
assert project.icon is None
with_directory_contents(dict(), check)
def test_add_variables():
def check_add_var(dirname):
project = project_no_dedicated_env(dirname)
status = project_ops.add_variables(project, ['foo', 'baz'], dict(foo='bar'))
assert status
req = project.find_requirements(env_var='foo')[0]
assert req.options['default'] == 'bar'
req = project.find_requirements(env_var='baz')[0]
assert req.options.get('default') is None
with_directory_contents_completing_project_file({DEFAULT_PROJECT_FILENAME: ""}, check_add_var)
def test_add_variables_existing_download():
def check_set_var(dirname):
project = project_no_dedicated_env(dirname)
project_ops.add_variables(project, ['foo', 'baz'])
re_loaded = ProjectFile.load_for_directory(project.directory_path)
assert dict(foo=None, baz=None, preset=None) == re_loaded.get_value(['variables'])
assert re_loaded.get_value(['downloads', 'datafile']) == 'http://localhost:8000/data.tgz'
local_state = LocalStateFile.load_for_directory(dirname)
assert local_state.get_value(['variables', 'foo']) is None
assert local_state.get_value(['variables', 'baz']) is None
assert local_state.get_value(['variables', 'datafile']) is None
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: ('variables:\n'
' preset: null\n'
'downloads:\n'
' datafile: http://localhost:8000/data.tgz')}, check_set_var)
def test_add_variables_existing_options():
def check_set_var(dirname):
project = project_no_dedicated_env(dirname)
status = project_ops.add_variables(project,
['foo', 'baz', 'blah', 'woot', 'woot2'],
dict(foo='bar',
baz='qux',
woot2='updated'))
assert status
re_loaded = ProjectFile.load_for_directory(project.directory_path)
foo = re_loaded.get_value(['variables', 'foo'])
assert isinstance(foo, dict)
assert 'something' in foo
assert foo['something'] == 42
baz = re_loaded.get_value(['variables', 'baz'])
assert isinstance(baz, dict)
assert 'default' in baz
assert baz['default'] == 'qux'
blah = re_loaded.get_value(['variables', 'blah'])
assert isinstance(blah, dict)
assert 'default' in blah
assert blah['default'] == 'unchanged'
woot = re_loaded.get_value(['variables', 'woot'])
assert woot == 'world'
woot2 = re_loaded.get_value(['variables', 'woot2'])
assert woot2 == 'updated'
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: ('variables:\n'
' foo: { something: 42 }\n'
' baz: { default: "hello" }\n'
' blah: { default: "unchanged" }\n'
' woot: "world"\n'
' woot2: "changed"\n'
'downloads:\n'
' datafile: http://localhost:8000/data.tgz')}, check_set_var)
def test_remove_variables():
def check_remove_var(dirname):
project = project_no_dedicated_env(dirname)
project_ops.remove_variables(project, ['foo', 'bar'])
re_loaded = project.project_file.load_for_directory(project.directory_path)
assert dict() == re_loaded.get_value(['variables'])
assert re_loaded.get_value(['variables', 'foo']) is None
assert re_loaded.get_value(['variables', 'bar']) is None
local_state = LocalStateFile.load_for_directory(dirname)
assert local_state.get_value(['variables', 'foo']) is None
assert local_state.get_value(['variables', 'bar']) is None
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: ('variables:\n'
' foo: baz\n bar: qux')}, check_remove_var)
def test_set_variables():
def check_set_var(dirname):
project = project_no_dedicated_env(dirname)
status = project_ops.add_variables(project, ['foo', 'baz'], dict(foo='no', baz='nope'))
assert status
local_state = LocalStateFile.load_for_directory(dirname)
assert local_state.get_value(['variables', 'foo']) is None
assert local_state.get_value(['variables', 'baz']) is None
status = project_ops.set_variables(project, [('foo', 'bar'), ('baz', 'qux')])
assert status
local_state = LocalStateFile.load_for_directory(dirname)
assert local_state.get_value(['variables', 'foo']) == 'bar'
assert local_state.get_value(['variables', 'baz']) == 'qux'
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: ('variables:\n'
' preset: null')}, check_set_var)
def test_set_variables_nonexistent():
def check_set_var(dirname):
project = project_no_dedicated_env(dirname)
status = project_ops.set_variables(project, [('foo', 'bar'), ('baz', 'qux')])
assert not status
assert status.status_description == "Could not set variables."
assert status.errors == ["Variable foo does not exist in the project.",
"Variable baz does not exist in the project."]
with_directory_contents_completing_project_file({DEFAULT_PROJECT_FILENAME: ''}, check_set_var)
def test_set_variables_cannot_create_environment(monkeypatch):
def mock_create(prefix, pkgs, channels):
from conda_kapsel.internal import conda_api
raise conda_api.CondaError("error_from_conda_create")
monkeypatch.setattr('conda_kapsel.internal.conda_api.create', mock_create)
def check_set_var(dirname):
project = Project(dirname)
status = project_ops.set_variables(project, [('foo', 'bar'), ('baz', 'qux')])
assert not status
expected_env_path = os.path.join(dirname, 'envs', 'default')
assert status.status_description == ("'%s' doesn't look like it contains a Conda environment yet." %
expected_env_path)
assert status.errors == ["Failed to create environment at %s: error_from_conda_create" % expected_env_path]
with_directory_contents_completing_project_file({DEFAULT_PROJECT_FILENAME: ''}, check_set_var)
def test_unset_variables():
def check_unset_var(dirname):
project = project_no_dedicated_env(dirname)
status = project_ops.add_variables(project, ['foo', 'baz'])
assert status
status = project_ops.set_variables(project, [('foo', 'no'), ('baz', 'nope')])
assert status
local_state = LocalStateFile.load_for_directory(dirname)
assert local_state.get_value(['variables', 'foo']) == 'no'
assert local_state.get_value(['variables', 'baz']) == 'nope'
status = project_ops.unset_variables(project, ['foo', 'baz'])
assert status
local_state = LocalStateFile.load_for_directory(dirname)
assert local_state.get_value(['variables', 'foo']) is None
assert local_state.get_value(['variables', 'baz']) is None
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: ('variables:\n'
' preset: null')}, check_unset_var)
def test_set_and_unset_variables_encrypted():
keyring.reset_keyring_module()
def check_set_var(dirname):
project = project_no_dedicated_env(dirname)
status = project_ops.add_variables(project,
['foo_PASSWORD', 'baz_SECRET'],
dict(foo_PASSWORD='no',
baz_SECRET='nope'))
assert status
local_state = LocalStateFile.load_for_directory(dirname)
assert local_state.get_value(['variables', 'foo_PASSWORD']) is None
assert local_state.get_value(['variables', 'baz_SECRET']) is None
assert set(keyring.fallback_data().values()) == set()
status = project_ops.set_variables(project, [('foo_PASSWORD', 'bar'), ('baz_SECRET', 'qux')])
assert status
local_state = LocalStateFile.load_for_directory(dirname)
# the encrypted variables are NOT in local state
assert local_state.get_value(['variables', 'foo_PASSWORD']) is None
assert local_state.get_value(['variables', 'baz_SECRET']) is None
assert set(keyring.fallback_data().values()) == set(['bar', 'qux'])
status = project_ops.unset_variables(project, ['foo_PASSWORD', 'baz_SECRET'])
assert status
assert set(keyring.fallback_data().values()) == set()
try:
keyring.enable_fallback_keyring()
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: ('variables:\n'
' preset: null')}, check_set_var)
finally:
keyring.disable_fallback_keyring()
def test_set_and_unset_variables_some_encrypted():
keyring.reset_keyring_module()
def check_set_var(dirname):
project = project_no_dedicated_env(dirname)
status = project_ops.add_variables(project,
['foo_PASSWORD', 'baz_SECRET', 'woo'],
dict(foo_PASSWORD='no',
baz_SECRET='nope',
woo='something'))
assert status
local_state = LocalStateFile.load_for_directory(dirname)
assert local_state.get_value(['variables', 'foo_PASSWORD']) is None
assert local_state.get_value(['variables', 'baz_SECRET']) is None
assert local_state.get_value(['variables', 'woo']) is None
assert set(keyring.fallback_data().values()) == set()
status = project_ops.set_variables(project, [('foo_PASSWORD', 'bar'), ('baz_SECRET', 'qux'), ('woo', 'w00t')])
assert status
local_state = LocalStateFile.load_for_directory(dirname)
# the encrypted variables are NOT in local state
assert local_state.get_value(['variables', 'foo_PASSWORD']) is None
assert local_state.get_value(['variables', 'baz_SECRET']) is None
assert local_state.get_value(['variables', 'woo']) == 'w00t'
assert set(keyring.fallback_data().values()) == set(['bar', 'qux'])
status = project_ops.unset_variables(project, ['foo_PASSWORD', 'baz_SECRET', 'woo'])
assert status
local_state = LocalStateFile.load_for_directory(dirname)
assert set(keyring.fallback_data().values()) == set()
assert local_state.get_value(['variables', 'woo']) is None
try:
keyring.enable_fallback_keyring()
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: ('variables:\n'
' preset: null')}, check_set_var)
finally:
keyring.disable_fallback_keyring()
def _test_add_command_line(command_type):
def check_add_command(dirname):
project = project_no_dedicated_env(dirname)
result = project_ops.add_command(project, 'default', command_type, 'echo "test"')
assert result
re_loaded = project.project_file.load_for_directory(project.directory_path)
command = re_loaded.get_value(['commands', 'default'])
assert command[command_type] == 'echo "test"'
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: ('commands:\n'
' default:\n'
' %s: echo "pass"\n') % command_type}, check_add_command)
def test_add_command_shell():
_test_add_command_line("unix")
def test_add_command_windows():
_test_add_command_line("windows")
def _test_add_command_windows_to_shell(command_type):
def check_add_command(dirname):
project = project_no_dedicated_env(dirname)
result = project_ops.add_command(project, 'default', 'windows', 'echo "test"')
assert result
re_loaded = ProjectFile.load_for_directory(project.directory_path)
command = re_loaded.get_value(['commands', 'default'])
assert command['windows'] == 'echo "test"'
assert command['unix'] == 'echo "pass"'
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: ('commands:\n'
' default:\n'
' unix: echo "pass"\n') % command_type}, check_add_command)
def test_add_command_bokeh():
def check_add_command(dirname):
project = project_no_dedicated_env(dirname)
result = project_ops.add_command(project, 'bokeh_test', 'bokeh_app', 'file.py')
assert result
re_loaded = ProjectFile.load_for_directory(project.directory_path)
command = re_loaded.get_value(['commands', 'bokeh_test'])
assert len(command.keys()) == 2
assert command['bokeh_app'] == 'file.py'
assert command['env_spec'] == 'default'
with_directory_contents_completing_project_file({DEFAULT_PROJECT_FILENAME: ""}, check_add_command)
def test_add_command_bokeh_overwrites():
def check_add_command(dirname):
project = project_no_dedicated_env(dirname)
result = project_ops.add_command(project, 'bokeh_test', 'bokeh_app', 'file.py')
assert result
re_loaded = ProjectFile.load_for_directory(project.directory_path)
command = re_loaded.get_value(['commands', 'bokeh_test'])
assert len(command.keys()) == 2
assert command['bokeh_app'] == 'file.py'
assert command['env_spec'] == 'default'
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: ('commands:\n'
' bokeh_test:\n'
' bokeh_app: replaced.py\n'
'packages:\n'
' - bokeh\n')}, check_add_command)
def test_add_command_sets_env_spec():
def check_add_command(dirname):
project = project_no_dedicated_env(dirname)
result = project_ops.add_command(project, 'bokeh_test', 'bokeh_app', 'file.py', env_spec_name='foo')
assert result
re_loaded = ProjectFile.load_for_directory(project.directory_path)
command = re_loaded.get_value(['commands', 'bokeh_test'])
assert command['bokeh_app'] == 'file.py'
assert command['env_spec'] == 'foo'
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: ('env_specs:\n'
' foo: { "packages" : ["bokeh"] }\n'
'commands:\n'
' bokeh_test:\n'
' bokeh_app: replaced.py\n')}, check_add_command)
def test_add_command_leaves_env_spec():
def check_add_command(dirname):
project = project_no_dedicated_env(dirname)
result = project_ops.add_command(project, 'bokeh_test', 'bokeh_app', 'file.py', env_spec_name=None)
assert result
re_loaded = ProjectFile.load_for_directory(project.directory_path)
command = re_loaded.get_value(['commands', 'bokeh_test'])
assert command['bokeh_app'] == 'file.py'
assert command['env_spec'] == 'foo'
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: ('env_specs:\n'
' foo: { "packages" : ["bokeh"] }\n'
'commands:\n'
' bokeh_test:\n'
' env_spec: "foo"\n'
' bokeh_app: replaced.py\n')}, check_add_command)
def test_add_command_generates_env_spec_suggestion():
def check_add_command(dirname):
project = project_no_dedicated_env(dirname)
assert project.problems == []
assert project.suggestions == []
# the 'bar' env spec does not have bokeh in it
assert len(project.env_specs['bar'].conda_package_names_set) == 0
# We are changing the env spec from 'foo' to 'bar'
result = project_ops.add_command(project, 'bokeh_test', 'bokeh_app', 'file.py', env_spec_name='bar')
if not result:
assert result.errors == [] # prints the errors
assert result
re_loaded = ProjectFile.load_for_directory(project.directory_path)
command = re_loaded.get_value(['commands', 'bokeh_test'])
assert command['bokeh_app'] == 'file.py'
assert command['env_spec'] == 'bar'
assert re_loaded.get_value(['env_specs', 'bar', 'packages']) is None
assert project.problems == []
assert project.suggestions == [('%s: Command ' % project.project_file.filename) +
'bokeh_test uses env spec bar which does not have the packages: bokeh']
project.fix_problems_and_suggestions()
project.project_file.save()
re_loaded = ProjectFile.load_for_directory(project.directory_path)
assert re_loaded.get_value(['env_specs', 'bar', 'packages']) == ['bokeh']
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: ('env_specs:\n'
' foo: { "packages" : ["bokeh"] }\n'
' bar: {}\n'
'commands:\n'
' bokeh_test:\n'
' env_spec: "foo"\n'
' bokeh_app: replaced.py\n')}, check_add_command)
def test_add_command_leaves_supports_http_options():
def check_add_command(dirname):
project = project_no_dedicated_env(dirname)
result = project_ops.add_command(project,
'bokeh_test',
'bokeh_app',
'file.py',
env_spec_name=None,
supports_http_options=None)
assert result
re_loaded = ProjectFile.load_for_directory(project.directory_path)
command = re_loaded.get_value(['commands', 'bokeh_test'])
assert command['bokeh_app'] == 'file.py'
assert command['env_spec'] == 'foo'
assert command['supports_http_options'] is False
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: ('env_specs:\n'
' foo: { "packages" : ["bokeh"] }\n'
'commands:\n'
' bokeh_test:\n'
' supports_http_options: false\n'
' bokeh_app: replaced.py\n')}, check_add_command)
def test_add_command_leaves_supports_http_options_unset():
def check_add_command(dirname):
project = project_no_dedicated_env(dirname)
result = project_ops.add_command(project,
'bokeh_test',
'bokeh_app',
'file.py',
env_spec_name=None,
supports_http_options=None)
assert result
re_loaded = ProjectFile.load_for_directory(project.directory_path)
command = re_loaded.get_value(['commands', 'bokeh_test'])
assert command['bokeh_app'] == 'file.py'
assert command['env_spec'] == 'foo'
assert 'supports_http_options' not in command
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: ('env_specs:\n'
' foo: { "packages" : ["bokeh"] }\n'
'commands:\n'
' bokeh_test:\n'
' bokeh_app: replaced.py\n')}, check_add_command)
def test_add_command_modifies_supports_http_options():
def check_add_command(dirname):
project = project_no_dedicated_env(dirname)
result = project_ops.add_command(project,
'bokeh_test',
'bokeh_app',
'file.py',
env_spec_name=None,
supports_http_options=True)
assert result
re_loaded = ProjectFile.load_for_directory(project.directory_path)
command = re_loaded.get_value(['commands', 'bokeh_test'])
assert command['bokeh_app'] == 'file.py'
assert command['env_spec'] == 'foo'
assert command['supports_http_options'] is True
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: ('env_specs:\n'
' foo: { "packages" : ["bokeh"] }\n'
'commands:\n'
' bokeh_test:\n'
' supports_http_options: false\n'
' bokeh_app: replaced.py\n')}, check_add_command)
def test_add_command_invalid_type():
def check_add_command(dirname):
project = project_no_dedicated_env(dirname)
with pytest.raises(ValueError) as excinfo:
project_ops.add_command(project, 'default', 'foo', 'echo "test"')
assert 'Invalid command type foo' in str(excinfo.value)
with_directory_contents_completing_project_file(dict(), check_add_command)
def test_add_command_conflicting_type():
def check_add_command(dirname):
project = project_no_dedicated_env(dirname)
result = project_ops.add_command(project, 'default', 'bokeh_app', 'myapp.py')
assert [("%s: command 'default' has multiple commands in it, 'bokeh_app' can't go with 'unix'" %
project.project_file.filename)] == result.errors
re_loaded = ProjectFile.load_for_directory(project.directory_path)
command = re_loaded.get_value(['commands', 'default'])
assert command['unix'] == 'echo "pass"'
assert 'bokeh_app' not in command
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: ('commands:\n'
' default:\n'
' unix: echo "pass"\n')}, check_add_command)
def test_update_command_with_project_file_problems():
def check(dirname):
project = Project(dirname)
status = project_ops.update_command(project, 'foo', 'unix', 'echo hello')
assert not status
assert ["variables section contains wrong value type 42, should be dict or list of requirements"
] == status.errors
with_directory_contents_completing_project_file({DEFAULT_PROJECT_FILENAME: "variables:\n 42"}, check)
def test_update_command_invalid_type():
def check(dirname):
project = project_no_dedicated_env(dirname)
with pytest.raises(ValueError) as excinfo:
project_ops.update_command(project, 'default', 'foo', 'echo "test"')
assert 'Invalid command type foo' in str(excinfo.value)
with_directory_contents_completing_project_file(dict(), check)
def test_update_command_rename():
file_content = complete_project_file_content('commands:\n # this is a comment\n' +
' foo:\n # another comment\n unix: echo "pass"\n')
def check(dirname):
project = project_no_dedicated_env(dirname)
status = project_ops.update_command(project, 'foo', new_name='bar')
print(status.status_description)
print(status.errors)
assert status
project.project_file.load()
with open(os.path.join(dirname, DEFAULT_PROJECT_FILENAME)) as proj_file:
contents = proj_file.read()
assert file_content.replace('foo:', 'bar:') == contents
assert '# this is a comment' in contents
assert '# another comment' in contents
assert project.commands['bar']
assert 'foo' not in project.commands
with_directory_contents_completing_project_file({DEFAULT_PROJECT_FILENAME: file_content}, check)
def test_update_command_no_command():
def check(dirname):
project = project_no_dedicated_env(dirname)
with pytest.raises(ValueError) as excinfo:
project_ops.update_command(project, 'default', 'bokeh_app')
assert 'must also specify the command' in str(excinfo.value)
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: ('commands:\n'
' default:\n'
' unix: echo "pass"\n')}, check)
def test_update_command_does_not_exist():
def check(dirname):
project = project_no_dedicated_env(dirname)
assert [] == project.problems
result = project_ops.update_command(project, 'myapp', 'bokeh_app', 'myapp.py')
assert not result
assert ["No command 'myapp' found."] == result.errors
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: ('commands:\n'
' default:\n'
' unix: echo "pass"\n')}, check)
def test_update_command_conflicting_type():
def check(dirname):
project = project_no_dedicated_env(dirname)
assert [] == project.problems
assert 'default' in project.commands
command = project.commands['default']
assert command.bokeh_app is None
assert command.unix_shell_commandline == 'echo "pass"'
result = project_ops.update_command(project, 'default', 'bokeh_app', 'myapp.py')
assert result
assert 'default' in project.commands
command = project.commands['default']
assert command.bokeh_app == 'myapp.py'
re_loaded = ProjectFile.load_for_directory(project.directory_path)
command = re_loaded.get_value(['commands', 'default'])
assert command['bokeh_app'] == 'myapp.py'
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: ('commands:\n'
' default:\n'
' unix: echo "pass"\n')}, check)
def test_update_command_same_type():
def check(dirname):
project = project_no_dedicated_env(dirname)
assert [] == project.problems
assert 'default' in project.commands
command = project.commands['default']
assert command.unix_shell_commandline == 'echo "pass"'
result = project_ops.update_command(project, 'default', 'unix', 'echo "blah"')
assert result
assert 'default' in project.commands
command = project.commands['default']
assert command.unix_shell_commandline == 'echo "blah"'
re_loaded = ProjectFile.load_for_directory(project.directory_path)
command = re_loaded.get_value(['commands', 'default'])
assert command['unix'] == 'echo "blah"'
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: ('commands:\n'
' default:\n'
' unix: echo "pass"\n')}, check)
def test_update_command_add_windows_alongside_shell():
def check(dirname):
project = project_no_dedicated_env(dirname)
assert [] == project.problems
assert 'default' in project.commands
command = project.commands['default']
assert command.unix_shell_commandline == 'echo "pass"'
result = project_ops.update_command(project, 'default', 'windows', 'echo "blah"')
assert result
assert 'default' in project.commands
command = project.commands['default']
assert command.unix_shell_commandline == 'echo "pass"'
assert command.windows_cmd_commandline == 'echo "blah"'
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: ('commands:\n'
' default:\n'
' unix: echo "pass"\n')}, check)
def test_update_command_add_shell_alongside_windows():
def check(dirname):
project = project_no_dedicated_env(dirname)
assert [] == project.problems
assert 'default' in project.commands
command = project.commands['default']
assert command.windows_cmd_commandline == 'echo "blah"'
result = project_ops.update_command(project, 'default', 'unix', 'echo "pass"')
assert result
assert 'default' in project.commands
command = project.commands['default']
assert command.unix_shell_commandline == 'echo "pass"'
assert command.windows_cmd_commandline == 'echo "blah"'
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: ('commands:\n'
' default:\n'
' windows: echo "blah"\n')}, check)
def test_update_command_empty_update():
def check(dirname):
project = project_no_dedicated_env(dirname)
assert [] == project.problems
assert 'default' in project.commands
command = project.commands['default']
assert command.unix_shell_commandline == 'echo "pass"'
result = project_ops.update_command(project, 'default')
assert result
assert 'default' in project.commands
command = project.commands['default']
assert command.unix_shell_commandline == 'echo "pass"'
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: ('commands:\n'
' default:\n'
' unix: echo "pass"\n')}, check)
def test_update_command_to_non_string_value():
def check(dirname):
project = project_no_dedicated_env(dirname)
assert [] == project.problems
assert 'default' in project.commands
command = project.commands['default']
assert command.bokeh_app is None
assert command.unix_shell_commandline == 'echo "pass"'
result = project_ops.update_command(project, 'default', 'notebook', 42)
assert not result
assert [("%s: command 'default' attribute 'notebook' should be a string not '42'" %
project.project_file.filename)] == result.errors
assert 'default' in project.commands
command = project.commands['default']
assert command.unix_shell_commandline == 'echo "pass"'
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: ('commands:\n'
' default:\n'
' unix: echo "pass"\n')}, check)
def _monkeypatch_download_file(monkeypatch, dirname, filename='MYDATA', checksum=None):
@gen.coroutine
def mock_downloader_run(self, loop):
class Res:
pass
res = Res()
res.code = 200
with open(os.path.join(dirname, filename), 'w') as out:
out.write('data')
if checksum:
self._hash = checksum
raise gen.Return(res)
monkeypatch.setattr("conda_kapsel.internal.http_client.FileDownloader.run", mock_downloader_run)
def _monkeypatch_download_file_fails(monkeypatch, dirname):
@gen.coroutine
def mock_downloader_run(self, loop):
class Res:
pass
res = Res()
res.code = 404
raise gen.Return(res)
monkeypatch.setattr("conda_kapsel.internal.http_client.FileDownloader.run", mock_downloader_run)
def _monkeypatch_download_file_fails_to_get_http_response(monkeypatch, dirname):
@gen.coroutine
def mock_downloader_run(self, loop):
self._errors.append("Nope nope nope")
raise gen.Return(None)
monkeypatch.setattr("conda_kapsel.internal.http_client.FileDownloader.run", mock_downloader_run)
def test_add_download(monkeypatch):
def check(dirname):
_monkeypatch_download_file(monkeypatch, dirname)
project = project_no_dedicated_env(dirname)
status = project_ops.add_download(project, 'MYDATA', 'http://localhost:123456')
assert os.path.isfile(os.path.join(dirname, "MYDATA"))
assert status
assert isinstance(status.logs, list)
assert [] == status.errors
# be sure download was added to the file and saved
project2 = project_no_dedicated_env(dirname)
assert {"url": 'http://localhost:123456'} == project2.project_file.get_value(['downloads', 'MYDATA'])
with_directory_contents_completing_project_file(dict(), check)
def test_add_download_with_filename(monkeypatch):
def check(dirname):
FILENAME = 'TEST_FILENAME'
_monkeypatch_download_file(monkeypatch, dirname, FILENAME)
project = project_no_dedicated_env(dirname)
status = project_ops.add_download(project, 'MYDATA', 'http://localhost:123456', FILENAME)
assert os.path.isfile(os.path.join(dirname, FILENAME))
assert status
assert isinstance(status.logs, list)
assert [] == status.errors
# be sure download was added to the file and saved
project2 = project_no_dedicated_env(dirname)
requirement = project2.project_file.get_value(['downloads', 'MYDATA'])
assert requirement['url'] == 'http://localhost:123456'
assert requirement['filename'] == FILENAME
with_directory_contents_completing_project_file(dict(), check)
def test_add_download_with_checksum(monkeypatch):
def check(dirname):
FILENAME = 'MYDATA'
_monkeypatch_download_file(monkeypatch, dirname, checksum='DIGEST')
project = project_no_dedicated_env(dirname)
status = project_ops.add_download(project,
'MYDATA',
'http://localhost:123456',
hash_algorithm='md5',
hash_value='DIGEST')
assert os.path.isfile(os.path.join(dirname, FILENAME))
assert status
assert isinstance(status.logs, list)
assert [] == status.errors
# be sure download was added to the file and saved
project2 = project_no_dedicated_env(dirname)
requirement = project2.project_file.get_value(['downloads', 'MYDATA'])
assert requirement['url'] == 'http://localhost:123456'
assert requirement['md5'] == 'DIGEST'
with_directory_contents_completing_project_file(dict(), check)
def test_add_download_which_already_exists(monkeypatch):
def check(dirname):
_monkeypatch_download_file(monkeypatch, dirname, filename='foobar')
project = project_no_dedicated_env(dirname)
assert [] == project.problems
assert dict(url='http://localhost:56789',
filename='foobar') == dict(project.project_file.get_value(['downloads', 'MYDATA']))
status = project_ops.add_download(project, 'MYDATA', 'http://localhost:123456')
assert os.path.isfile(os.path.join(dirname, "foobar"))
assert status
assert isinstance(status.logs, list)
assert [] == status.errors
# be sure download was added to the file and saved, and
# the filename attribute was kept
project2 = project_no_dedicated_env(dirname)
assert dict(url='http://localhost:123456',
filename='foobar') == dict(project2.project_file.get_value(['downloads', 'MYDATA']))
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: 'downloads:\n MYDATA: { url: "http://localhost:56789", filename: foobar }'},
check)
def test_add_download_which_already_exists_with_fname(monkeypatch):
def check(dirname):
_monkeypatch_download_file(monkeypatch, dirname, filename='bazqux')
project = project_no_dedicated_env(dirname)
assert [] == project.problems
assert dict(url='http://localhost:56789',
filename='foobar') == dict(project.project_file.get_value(['downloads', 'MYDATA']))
status = project_ops.add_download(project, 'MYDATA', 'http://localhost:123456', filename="bazqux")
assert os.path.isfile(os.path.join(dirname, "bazqux"))
assert status
assert isinstance(status.logs, list)
assert [] == status.errors
# be sure download was added to the file and saved, and
# the filename attribute was kept
project2 = project_no_dedicated_env(dirname)
assert dict(url='http://localhost:123456',
filename='bazqux') == dict(project2.project_file.get_value(['downloads', 'MYDATA']))
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: 'downloads:\n MYDATA: { url: "http://localhost:56789", filename: foobar }'},
check)
def test_add_download_fails(monkeypatch):
def check(dirname):
_monkeypatch_download_file_fails(monkeypatch, dirname)
project = project_no_dedicated_env(dirname)
status = project_ops.add_download(project, 'MYDATA', 'http://localhost:123456')
assert not os.path.isfile(os.path.join(dirname, "MYDATA"))
assert not status
assert isinstance(status.logs, list)
assert ['Error downloading http://localhost:123456: response code 404'] == status.errors
# be sure download was NOT added to the file
project2 = project_no_dedicated_env(dirname)
assert project2.project_file.get_value(['downloads', 'MYDATA']) is None
# should have been dropped from the original project object also
assert project.project_file.get_value(['downloads', 'MYDATA']) is None
with_directory_contents_completing_project_file(dict(), check)
def test_add_download_fails_to_get_http_response(monkeypatch):
def check(dirname):
_monkeypatch_download_file_fails_to_get_http_response(monkeypatch, dirname)
project = project_no_dedicated_env(dirname)
status = project_ops.add_download(project, 'MYDATA', 'http://localhost:123456')
assert not os.path.isfile(os.path.join(dirname, "MYDATA"))
assert not status
assert ['Nope nope nope'] == status.errors
# be sure download was NOT added to the file
project2 = project_no_dedicated_env(dirname)
assert project2.project_file.get_value(['downloads', 'MYDATA']) is None
# should have been dropped from the original project object also
assert project.project_file.get_value(['downloads', 'MYDATA']) is None
with_directory_contents_completing_project_file(dict(), check)
def test_add_download_with_project_file_problems():
def check(dirname):
project = project_no_dedicated_env(dirname)
status = project_ops.add_download(project, 'MYDATA', 'http://localhost:123456')
assert not os.path.isfile(os.path.join(dirname, "MYDATA"))
assert not status
assert ["variables section contains wrong value type 42, should be dict or list of requirements"
] == status.errors
# be sure download was NOT added to the file
project2 = project_no_dedicated_env(dirname)
assert project2.project_file.get_value(['downloads', 'MYDATA']) is None
# should have been dropped from the original project object also
assert project.project_file.get_value(['downloads', 'MYDATA']) is None
with_directory_contents_completing_project_file({DEFAULT_PROJECT_FILENAME: "variables:\n 42"}, check)
# the other add_env_spec tests use a mock CondaManager, but we want to have
# one test that does the real thing to be sure it works.
def test_add_env_spec_with_real_conda_manager(monkeypatch):
monkeypatch_conda_not_to_use_links(monkeypatch)
def check(dirname):
project = Project(dirname)
status = project_ops.add_env_spec(project, name='foo', packages=['numpy'], channels=[])
if not status:
print(status.status_description)
print(repr(status.errors))
assert status
# be sure it was really done
project2 = Project(dirname)
env_commented_map = project2.project_file.get_value(['env_specs', 'foo'])
assert dict(packages=['numpy'], channels=[]) == dict(env_commented_map)
assert os.path.isdir(os.path.join(dirname, 'envs', 'foo', 'conda-meta'))
with_directory_contents_completing_project_file(dict(), check)
def _push_conda_test(fix_works, missing_packages, wrong_version_packages, remove_error):
class TestCondaManager(CondaManager):
def __init__(self):
self.fix_works = fix_works
self.fixed = False
self.deviations = CondaEnvironmentDeviations(summary="test",
missing_packages=missing_packages,
wrong_version_packages=wrong_version_packages,
missing_pip_packages=(),
wrong_version_pip_packages=())
def find_environment_deviations(self, prefix, spec):
if self.fixed:
return CondaEnvironmentDeviations(summary="fixed",
missing_packages=(),
wrong_version_packages=(),
missing_pip_packages=(),
wrong_version_pip_packages=())
else:
return self.deviations
def fix_environment_deviations(self, prefix, spec, deviations=None, create=True):
if self.fix_works:
self.fixed = True
def remove_packages(self, prefix, packages):
if remove_error is not None:
raise CondaManagerError(remove_error)
push_conda_manager_class(TestCondaManager)
def _pop_conda_test():
pop_conda_manager_class()
def _with_conda_test(f, fix_works=True, missing_packages=(), wrong_version_packages=(), remove_error=None):
try:
_push_conda_test(fix_works, missing_packages, wrong_version_packages, remove_error)
f()
finally:
_pop_conda_test()
def test_add_env_spec():
def check(dirname):
def attempt():
project = Project(dirname)
status = project_ops.add_env_spec(project, name='foo', packages=[], channels=[])
assert status
# with "None" for the args
status = project_ops.add_env_spec(project, name='bar', packages=None, channels=None)
assert status
_with_conda_test(attempt)
# be sure we really made the config changes
project2 = Project(dirname)
assert dict(packages=[], channels=[]) == dict(project2.project_file.get_value(['env_specs', 'foo']))
assert dict(packages=[], channels=[]) == dict(project2.project_file.get_value(['env_specs', 'bar']))
with_directory_contents_completing_project_file(dict(), check)
def test_add_env_spec_with_packages_and_channels():
def check(dirname):
def attempt():
project = Project(dirname)
status = project_ops.add_env_spec(project,
name='foo',
packages=['a', 'b', 'c'],
channels=['c1', 'c2', 'c3'])
assert status
_with_conda_test(attempt)
# be sure download was added to the file and saved
project2 = Project(dirname)
assert dict(packages=['a', 'b', 'c'],
channels=['c1', 'c2', 'c3']) == dict(project2.project_file.get_value(['env_specs', 'foo']))
with_directory_contents_completing_project_file(dict(), check)
def test_add_env_spec_extending_existing_lists():
def check(dirname):
def attempt():
project = Project(dirname)
status = project_ops.add_env_spec(project,
name='foo',
packages=['a', 'b', 'c'],
channels=['c1', 'c2', 'c3'])
assert status
_with_conda_test(attempt)
# be sure download was added to the file and saved
project2 = Project(dirname)
assert dict(packages=['b', 'a', 'c'],
channels=['c3', 'c1', 'c2']) == dict(project2.project_file.get_value(['env_specs', 'foo']))
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: """
env_specs:
foo:
packages: [ 'b' ]
channels: [ 'c3']
"""}, check)
def test_add_env_spec_extending_existing_lists_with_versions():
def check(dirname):
def attempt():
project = Project(dirname)
status = project_ops.add_env_spec(project,
name='foo',
packages=['a', 'b=2.0', 'c'],
channels=['c1', 'c2', 'c3'])
assert status
_with_conda_test(attempt)
# be sure download was added to the file and saved
project2 = Project(dirname)
assert dict(packages=['b=2.0', 'a', 'c'],
channels=['c3', 'c1', 'c2']) == dict(project2.project_file.get_value(['env_specs', 'foo']))
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: """
env_specs:
foo:
packages: [ 'b=1.0' ]
channels: [ 'c3']
"""}, check)
def test_add_packages_to_all_environments():
def check(dirname):
def attempt():
project = Project(dirname)
status = project_ops.add_packages(project,
env_spec_name=None,
packages=['foo', 'bar'],
channels=['hello', 'world'])
assert status
assert [] == status.errors
_with_conda_test(attempt)
# be sure we really made the config changes
project2 = Project(dirname)
assert ['foo', 'bar'] == list(project2.project_file.get_value('packages'))
assert ['hello', 'world'] == list(project2.project_file.get_value('channels'))
with_directory_contents_completing_project_file(dict(), check)
def test_add_packages_nonexistent_environment():
def check(dirname):
def attempt():
project = Project(dirname)
status = project_ops.add_packages(project,
env_spec_name="not_an_env",
packages=['foo', 'bar'],
channels=['hello', 'world'])
assert not status
assert [] == status.errors
_with_conda_test(attempt)
with_directory_contents_completing_project_file(dict(), check)
def test_add_packages_invalid_spec():
def check(dirname):
def attempt():
project = Project(dirname)
status = project_ops.add_packages(project, env_spec_name=None, packages=['='], channels=[])
assert not status
assert 'Could not add packages.' == status.status_description
assert ['Bad package specifications: =.'] == status.errors
_with_conda_test(attempt)
with_directory_contents_completing_project_file(dict(), check)
def test_remove_packages_from_all_environments():
def check(dirname):
def attempt():
os.makedirs(os.path.join(dirname, 'envs', 'hello')) # forces us to really run remove_packages
project = Project(dirname)
assert ['foo', 'bar', 'baz'] == list(project.project_file.get_value('packages'))
assert ['foo', 'woot'] == list(project.project_file.get_value(['env_specs', 'hello', 'packages'], []))
status = project_ops.remove_packages(project, env_spec_name=None, packages=['foo', 'bar'])
assert status
assert [] == status.errors
_with_conda_test(attempt, remove_error="Removal fail")
# be sure we really made the config changes
project2 = Project(dirname)
assert ['baz'] == list(project2.project_file.get_value('packages'))
assert ['woot'] == list(project2.project_file.get_value(['env_specs', 'hello', 'packages']))
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: """
packages:
- foo
- bar
- baz
env_specs:
hello:
packages:
- foo
- woot
"""}, check)
def test_remove_packages_from_one_environment():
def check(dirname):
def attempt():
project = Project(dirname)
assert ['qbert', 'foo', 'bar'] == list(project.project_file.get_value('packages'))
assert ['foo'] == list(project.project_file.get_value(['env_specs', 'hello', 'packages'], []))
status = project_ops.remove_packages(project, env_spec_name='hello', packages=['foo', 'bar'])
assert status
assert [] == status.errors
_with_conda_test(attempt)
# be sure we really made the config changes
project2 = Project(dirname)
# note that hello will still inherit the deps from the global packages,
# and that's fine
assert ['qbert'] == list(project2.project_file.get_value('packages'))
assert [] == list(project2.project_file.get_value(['env_specs', 'hello', 'packages'], []))
# be sure we didn't delete comments from global packages section
content = codecs.open(project2.project_file.filename, 'r', 'utf-8').read()
assert '# this is a pre comment' in content
assert '# this is a post comment' in content
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: """
packages:
# this is a pre comment
- qbert # this is a post comment
- foo
- bar
env_specs:
hello:
packages:
- foo
"""}, check)
def test_remove_packages_from_one_environment_leaving_others_unaffected():
def check(dirname):
def attempt():
project = Project(dirname)
assert ['qbert', 'foo', 'bar'] == list(project.project_file.get_value('packages'))
assert ['foo'] == list(project.project_file.get_value(['env_specs', 'hello', 'packages'], []))
status = project_ops.remove_packages(project, env_spec_name='hello', packages=['foo', 'bar'])
assert status
assert [] == status.errors
_with_conda_test(attempt)
# be sure we really made the config changes
project2 = Project(dirname)
assert ['qbert'] == list(project2.project_file.get_value('packages'))
assert [] == list(project2.project_file.get_value(['env_specs', 'hello', 'packages'], []))
assert set(['baz', 'foo', 'bar']) == set(project2.project_file.get_value(
['env_specs', 'another', 'packages'], []))
assert project2.env_specs['another'].conda_package_names_set == set(['qbert', 'foo', 'bar', 'baz'])
assert project2.env_specs['hello'].conda_package_names_set == set(['qbert'])
# be sure we didn't delete comments from the env
content = codecs.open(project2.project_file.filename, 'r', 'utf-8').read()
assert '# this is a pre comment' in content
assert '# this is a post comment' in content
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: """
packages:
- qbert
- foo
- bar
env_specs:
hello:
packages:
- foo
another:
packages:
# this is a pre comment
- baz # this is a post comment
"""}, check)
def test_remove_packages_from_nonexistent_environment():
def check(dirname):
def attempt():
project = Project(dirname)
assert ['foo', 'bar'] == list(project.project_file.get_value('packages'))
status = project_ops.remove_packages(project, env_spec_name='not_an_environment', packages=['foo', 'bar'])
assert not status
assert [] == status.errors
assert "Environment spec not_an_environment doesn't exist." == status.status_description
_with_conda_test(attempt)
# be sure we didn't make the config changes
project2 = Project(dirname)
assert ['foo', 'bar'] == list(project2.project_file.get_value('packages'))
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: """
packages:
- foo
- bar
"""}, check)
def test_remove_packages_with_project_file_problems():
def check(dirname):
project = Project(dirname)
status = project_ops.remove_packages(project, env_spec_name=None, packages=['foo'])
assert not status
assert ["variables section contains wrong value type 42, should be dict or list of requirements"
] == status.errors
with_directory_contents_completing_project_file({DEFAULT_PROJECT_FILENAME: "variables:\n 42"}, check)
def test_export_env_spec():
def check(dirname):
project = project_no_dedicated_env(dirname)
exported = os.path.join(dirname, "exported.yml")
status = project_ops.export_env_spec(project, name='default', filename=exported)
assert status
assert status.status_description == ('Exported environment spec default to %s.' % exported)
with_directory_contents_completing_project_file(
{
"kapsel.yml": """
env_specs:
default:
packages:
- blah
channels:
- boo
"""
}, check)
def test_export_nonexistent_env_spec():
def check(dirname):
project = project_no_dedicated_env(dirname)
exported = os.path.join(dirname, "exported.yml")
status = project_ops.export_env_spec(project, name='bar', filename=exported)
assert not status
assert not os.path.exists(exported)
assert status.status_description == "Environment spec bar doesn't exist."
with_directory_contents_completing_project_file(
{
"kapsel.yml": """
env_specs:
default:
packages:
- blah
channels:
- boo
"""
}, check)
def test_export_env_spec_io_error(monkeypatch):
def check(dirname):
project = project_no_dedicated_env(dirname)
exported = os.path.join(dirname, "exported.yml")
def mock_atomic_replace(*args, **kwargs):
raise IOError("NOOO")
monkeypatch.setattr('conda_kapsel.yaml_file._atomic_replace', mock_atomic_replace)
status = project_ops.export_env_spec(project, name='default', filename=exported)
assert not status
assert not os.path.exists(exported)
assert status.status_description == ("Failed to save %s: NOOO." % exported)
with_directory_contents_completing_project_file(
{
"kapsel.yml": """
env_specs:
default:
packages:
- blah
channels:
- boo
"""
}, check)
def test_export_env_spec_broken_project(monkeypatch):
def check(dirname):
project = project_no_dedicated_env(dirname)
status = project_ops.export_env_spec(project, name='default', filename='foo')
assert not status
assert status.status_description == 'Unable to load the project.'
with_directory_contents({DEFAULT_PROJECT_FILENAME: """
name: broken
"""}, check)
def _monkeypatch_can_connect_to_socket_on_standard_redis_port(monkeypatch):
from conda_kapsel.plugins.network_util import can_connect_to_socket as real_can_connect_to_socket
can_connect_args_list = []
def mock_can_connect_to_socket(host, port, timeout_seconds=0.5):
can_connect_args = dict()
can_connect_args['host'] = host
can_connect_args['port'] = port
can_connect_args['timeout_seconds'] = timeout_seconds
can_connect_args_list.append(can_connect_args)
if port == 6379:
return True
else:
return real_can_connect_to_socket(host, port, timeout_seconds)
monkeypatch.setattr("conda_kapsel.plugins.network_util.can_connect_to_socket", mock_can_connect_to_socket)
return can_connect_args_list
def test_add_service(monkeypatch):
def check(dirname):
_monkeypatch_can_connect_to_socket_on_standard_redis_port(monkeypatch)
project = project_no_dedicated_env(dirname)
status = project_ops.add_service(project, service_type='redis')
assert status
assert isinstance(status.logs, list)
assert [] == status.errors
# be sure service was added to the file and saved
project2 = project_no_dedicated_env(dirname)
assert 'redis' == project2.project_file.get_value(['services', 'REDIS_URL'])
with_directory_contents_completing_project_file(dict(), check)
def test_add_service_nondefault_variable_name(monkeypatch):
def check(dirname):
_monkeypatch_can_connect_to_socket_on_standard_redis_port(monkeypatch)
project = project_no_dedicated_env(dirname)
status = project_ops.add_service(project, service_type='redis', variable_name='MY_SPECIAL_REDIS')
assert status
assert isinstance(status.logs, list)
assert [] == status.errors
# be sure service was added to the file and saved
project2 = project_no_dedicated_env(dirname)
assert 'redis' == project2.project_file.get_value(['services', 'MY_SPECIAL_REDIS'])
with_directory_contents_completing_project_file(dict(), check)
def test_add_service_with_project_file_problems():
def check(dirname):
project = Project(dirname)
status = project_ops.add_service(project, service_type='redis')
assert not status
assert ["variables section contains wrong value type 42, should be dict or list of requirements"
] == status.errors
# be sure service was NOT added to the file
project2 = Project(dirname)
assert project2.project_file.get_value(['services', 'REDIS_URL']) is None
# should have been dropped from the original project object also
assert project.project_file.get_value(['services', 'REDIS_URL']) is None
with_directory_contents_completing_project_file({DEFAULT_PROJECT_FILENAME: "variables:\n 42"}, check)
def test_add_service_already_exists(monkeypatch):
def check(dirname):
_monkeypatch_can_connect_to_socket_on_standard_redis_port(monkeypatch)
project = project_no_dedicated_env(dirname)
status = project_ops.add_service(project, service_type='redis')
assert status
assert isinstance(status.logs, list)
assert [] == status.errors
# be sure service was added to the file and saved
project2 = Project(dirname)
assert 'redis' == project2.project_file.get_value(['services', 'REDIS_URL'])
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: """
services:
REDIS_URL: redis
"""}, check)
def test_add_service_already_exists_with_different_type(monkeypatch):
def check(dirname):
_monkeypatch_can_connect_to_socket_on_standard_redis_port(monkeypatch)
project = Project(dirname)
status = project_ops.add_service(project, service_type='redis')
assert not status
# Once we have >1 known service types, we should change this test
# to use the one other than redis and then this error will change.
assert ["Service REDIS_URL has an unknown type 'foo'."] == status.errors
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: """
services:
REDIS_URL: foo
"""}, check)
def test_add_service_already_exists_as_non_service(monkeypatch):
def check(dirname):
_monkeypatch_can_connect_to_socket_on_standard_redis_port(monkeypatch)
project = Project(dirname)
status = project_ops.add_service(project, service_type='redis')
assert not status
assert ['Variable REDIS_URL is already in use.'] == status.errors
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: """
variables:
REDIS_URL: something
"""}, check)
def test_add_service_bad_service_type(monkeypatch):
def check(dirname):
_monkeypatch_can_connect_to_socket_on_standard_redis_port(monkeypatch)
project = Project(dirname)
status = project_ops.add_service(project, service_type='not_a_service')
assert not status
assert ["Unknown service type 'not_a_service', we know about: redis"] == status.errors
with_directory_contents_completing_project_file(dict(), check)
def test_clean(monkeypatch):
def mock_create(prefix, pkgs, channels):
os.makedirs(os.path.join(prefix, "conda-meta"))
monkeypatch.setattr('conda_kapsel.internal.conda_api.create', mock_create)
def check(dirname):
project = Project(dirname)
result = prepare.prepare_without_interaction(project, env_spec_name='foo')
assert result
envs_dir = os.path.join(dirname, "envs")
assert os.path.isdir(os.path.join(envs_dir, "foo"))
# prepare again with 'bar' this time
result = prepare.prepare_without_interaction(project, env_spec_name='bar')
assert result
bar_dir = os.path.join(dirname, "envs", "bar")
assert os.path.isdir(bar_dir)
# we don't really have a service in the test project file because
# redis-server doesn't work on Windows and it's good to run this
# test on Windows. So create some fake junk in services dir.
services_dir = os.path.join(dirname, "services")
os.makedirs(os.path.join(services_dir, "leftover-debris"))
status = project_ops.clean(project, result)
assert status
assert status.status_description == "Cleaned."
assert status.logs == [("Deleted environment files in %s." % bar_dir), ("Removing %s." % services_dir),
("Removing %s." % envs_dir)]
assert status.errors == []
assert not os.path.isdir(os.path.join(dirname, "envs"))
assert not os.path.isdir(os.path.join(dirname, "services"))
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: """
env_specs:
foo: {}
bar: {}
"""}, check)
def test_clean_failed_delete(monkeypatch):
def mock_create(prefix, pkgs, channels):
os.makedirs(os.path.join(prefix, "conda-meta"))
monkeypatch.setattr('conda_kapsel.internal.conda_api.create', mock_create)
def check(dirname):
project = Project(dirname)
result = prepare.prepare_without_interaction(project, env_spec_name='foo')
assert result
envs_dir = os.path.join(dirname, "envs")
assert os.path.isdir(os.path.join(envs_dir, "foo"))
# prepare again with 'bar' this time
result = prepare.prepare_without_interaction(project, env_spec_name='bar')
assert result
bar_dir = os.path.join(dirname, "envs", "bar")
assert os.path.isdir(bar_dir)
# we don't really have a service in the test project file because
# redis-server doesn't work on Windows and it's good to run this
# test on Windows. So create some fake junk in services dir.
services_dir = os.path.join(dirname, "services")
os.makedirs(os.path.join(services_dir, "leftover-debris"))
def mock_rmtree(path):
raise IOError("No rmtree here")
monkeypatch.setattr('shutil.rmtree', mock_rmtree)
status = project_ops.clean(project, result)
assert not status
assert status.status_description == "Failed to clean everything up."
assert status.logs == [("Removing %s." % services_dir), ("Removing %s." % envs_dir)]
assert status.errors == [("Failed to remove environment files in %s: No rmtree here." % bar_dir),
("Error removing %s: No rmtree here." % services_dir),
("Error removing %s: No rmtree here." % envs_dir)]
assert os.path.isdir(os.path.join(dirname, "envs"))
assert os.path.isdir(os.path.join(dirname, "services"))
# so with_directory_contents_completing_project_file can remove our tmp dir
monkeypatch.undo()
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: """
env_specs:
foo: {}
bar: {}
"""}, check)
def _strip_prefixes(names):
return list([name[len("archivedproj/"):] for name in names])
def _assert_zip_contains(zip_path, filenames):
with zipfile.ZipFile(zip_path, mode='r') as zf:
assert sorted(_strip_prefixes(zf.namelist())) == sorted(filenames)
def _assert_tar_contains(tar_path, filenames):
with tarfile.open(tar_path, mode='r') as tf:
assert sorted(_strip_prefixes(tf.getnames())) == sorted(filenames)
def _relative_to(root, path):
prefix = root + os.sep
assert path.startswith(prefix)
return path[len(prefix):]
def _recursive_list(dir_path):
for root, directories, filenames in os.walk(dir_path):
for dir in directories:
if not os.listdir(os.path.join(root, dir)):
yield _relative_to(dir_path, os.path.join(root, dir))
for filename in filenames:
yield _relative_to(dir_path, os.path.join(root, filename))
def _assert_dir_contains(dir_path, filenames):
assert sorted([filename.replace("\\", "/") for filename in _recursive_list(dir_path)]) == sorted(filenames)
def test_archive_zip():
def archivetest(archive_dest_dir):
archivefile = os.path.join(archive_dest_dir, "foo.zip")
def check(dirname):
# be sure we ignore these
os.makedirs(os.path.join(dirname, "services"))
os.makedirs(os.path.join(dirname, "envs"))
project = project_no_dedicated_env(dirname)
status = project_ops.archive(project, archivefile)
assert status
assert os.path.exists(archivefile)
_assert_zip_contains(archivefile, ['a/b/c/d.py', 'a/b/c/e.py', 'emptydir/', 'foo.py', 'kapsel.yml',
'kapsel-local.yml'])
# overwriting should work
status = project_ops.archive(project, archivefile)
assert status
assert os.path.exists(archivefile)
_assert_zip_contains(archivefile, ['a/b/c/d.py', 'a/b/c/e.py', 'emptydir/', 'foo.py', 'kapsel.yml',
'kapsel-local.yml'])
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: """
name: archivedproj
services:
REDIS_URL: redis
""",
"foo.py": "print('hello')\n",
"emptydir": None,
"a/b/c/d.py": "",
"a/b/c/e.py": ""}, check)
with_directory_contents_completing_project_file(dict(), archivetest)
def test_archive_tar():
def archivetest(archive_dest_dir):
archivefile = os.path.join(archive_dest_dir, "foo.tar")
def check(dirname):
# be sure we ignore these
os.makedirs(os.path.join(dirname, "services"))
os.makedirs(os.path.join(dirname, "envs"))
project = project_no_dedicated_env(dirname)
status = project_ops.archive(project, archivefile)
assert status
assert os.path.exists(archivefile)
_assert_tar_contains(archivefile, ['a/b/c/d.py', 'a/b/c/e.py', 'emptydir', 'foo.py', 'kapsel.yml',
'kapsel-local.yml'])
# overwriting should work
status = project_ops.archive(project, archivefile)
assert status
assert os.path.exists(archivefile)
_assert_tar_contains(archivefile, ['a/b/c/d.py', 'a/b/c/e.py', 'emptydir', 'foo.py', 'kapsel.yml',
'kapsel-local.yml'])
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: """
name: archivedproj
services:
REDIS_URL: redis
""",
"foo.py": "print('hello')\n",
"emptydir": None,
"a/b/c/d.py": "",
"a/b/c/e.py": ""}, check)
with_directory_contents_completing_project_file(dict(), archivetest)
def test_archive_tar_gz():
def archivetest(archive_dest_dir):
archivefile = os.path.join(archive_dest_dir, "foo.tar.gz")
def check(dirname):
# be sure we ignore these
os.makedirs(os.path.join(dirname, "services"))
os.makedirs(os.path.join(dirname, "envs"))
project = project_no_dedicated_env(dirname)
status = project_ops.archive(project, archivefile)
assert status
assert os.path.exists(archivefile)
_assert_tar_contains(archivefile, ['a/b/c/d.py', 'a/b/c/e.py', 'emptydir', 'foo.py', 'kapsel.yml',
'kapsel-local.yml'])
# overwriting should work
status = project_ops.archive(project, archivefile)
assert status
assert os.path.exists(archivefile)
_assert_tar_contains(archivefile, ['a/b/c/d.py', 'a/b/c/e.py', 'emptydir', 'foo.py', 'kapsel.yml',
'kapsel-local.yml'])
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: """
name: archivedproj
services:
REDIS_URL: redis
""",
"foo.py": "print('hello')\n",
"emptydir": None,
"a/b/c/d.py": "",
"a/b/c/e.py": ""}, check)
with_directory_contents_completing_project_file(dict(), archivetest)
def test_archive_tar_bz2():
def archivetest(archive_dest_dir):
archivefile = os.path.join(archive_dest_dir, "foo.tar.bz2")
def check(dirname):
# be sure we ignore these
os.makedirs(os.path.join(dirname, "services"))
os.makedirs(os.path.join(dirname, "envs"))
project = project_no_dedicated_env(dirname)
status = project_ops.archive(project, archivefile)
assert status
assert os.path.exists(archivefile)
_assert_tar_contains(archivefile, ['a/b/c/d.py', 'a/b/c/e.py', 'emptydir', 'foo.py', 'kapsel.yml',
'kapsel-local.yml'])
# overwriting should work
status = project_ops.archive(project, archivefile)
assert status
assert os.path.exists(archivefile)
_assert_tar_contains(archivefile, ['a/b/c/d.py', 'a/b/c/e.py', 'emptydir', 'foo.py', 'kapsel.yml',
'kapsel-local.yml'])
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: """
name: archivedproj
services:
REDIS_URL: redis
""",
"foo.py": "print('hello')\n",
"emptydir": None,
"a/b/c/d.py": "",
"a/b/c/e.py": ""}, check)
with_directory_contents_completing_project_file(dict(), archivetest)
def test_archive_cannot_write_destination_path(monkeypatch):
def archivetest(archive_dest_dir):
archivefile = os.path.join(archive_dest_dir, "foo.zip")
def mock_ZipFile(*args, **kwargs):
raise IOError("NOPE")
monkeypatch.setattr('zipfile.ZipFile', mock_ZipFile)
def check(dirname):
# be sure we ignore this
os.makedirs(os.path.join(dirname, "envs"))
project = project_no_dedicated_env(dirname)
status = project_ops.archive(project, archivefile)
assert not status
assert status.status_description == ('Failed to write project archive %s.' % archivefile)
assert ['NOPE'] == status.errors
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: """
name: archivedproj
""",
"foo.py": "print('hello')\n"}, check)
with_directory_contents_completing_project_file(dict(), archivetest)
def _add_empty_git(contents):
contents.update({
# I'm not sure these are all really needed for git to
# recognize the directory as a git repo, but this is what
# "git init" creates.
'.git/branches': None,
'.git/hooks': None,
'.git/info': None,
'.git/objects/info': None,
'.git/objects/pack': None,
'.git/refs/heads': None,
'.git/refs/tags': None,
'.git/config': """
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
""",
'.git/description': "TestingGitRepository\n",
'.git/HEAD': 'ref: refs/heads/master\n'
})
return contents
def test_archive_zip_with_gitignore():
def archivetest(archive_dest_dir):
archivefile = os.path.join(archive_dest_dir, "foo.zip")
def check(dirname):
# be sure we ignore this
os.makedirs(os.path.join(dirname, "envs"))
project = project_no_dedicated_env(dirname)
status = project_ops.archive(project, archivefile)
assert status
assert os.path.exists(archivefile)
_assert_zip_contains(archivefile, ['foo.py', '.gitignore', 'kapsel.yml', 'kapsel-local.yml'])
with_directory_contents_completing_project_file(
_add_empty_git({DEFAULT_PROJECT_FILENAME: """
name: archivedproj
""",
"foo.py": "print('hello')\n",
'.gitignore': "/ignored.py\n/subdir\n/subwithslash/\n",
'ignored.py': 'print("ignore me!")',
'subdir/foo.py': 'foo',
'subdir/subsub/bar.py': 'bar',
'subwithslash/something.py': 'something'}), check)
with_directory_contents_completing_project_file(dict(), archivetest)
def test_archive_zip_with_failing_git_command(monkeypatch):
def archivetest(archive_dest_dir):
archivefile = os.path.join(archive_dest_dir, "foo.zip")
def check(dirname):
# be sure we ignore this
os.makedirs(os.path.join(dirname, "envs"))
project = project_no_dedicated_env(dirname)
from subprocess import check_output as real_check_output
def mock_check_output(args, cwd):
def run(commandline):
return real_check_output(commandline)
return with_temporary_script_commandline("import sys\nsys.exit(1)\n", run)
monkeypatch.setattr('subprocess.check_output', mock_check_output)
status = project_ops.archive(project, archivefile)
assert not status
assert not os.path.exists(archivefile)
# before the "." is the command output, but "false" has no output.
assert status.errors == ["'git ls-files' failed to list ignored files: ."]
with_directory_contents_completing_project_file(
_add_empty_git({DEFAULT_PROJECT_FILENAME: """
""",
"foo.py": "print('hello')\n"}), check)
with_directory_contents_completing_project_file(dict(), archivetest)
def test_archive_zip_with_exception_executing_git_command(monkeypatch):
def archivetest(archive_dest_dir):
archivefile = os.path.join(archive_dest_dir, "foo.zip")
def check(dirname):
# be sure we ignore these
os.makedirs(os.path.join(dirname, "services"))
os.makedirs(os.path.join(dirname, "envs"))
project = project_no_dedicated_env(dirname)
from subprocess import check_output as real_check_output
def mock_check_output(args, cwd):
return real_check_output(args=['this-is-not-a-real-command'], cwd=cwd)
monkeypatch.setattr('subprocess.check_output', mock_check_output)
status = project_ops.archive(project, archivefile)
assert not status
assert not os.path.exists(archivefile)
assert len(status.errors) == 1
# full error message is platform-dependent
assert status.errors[0].startswith("Failed to run 'git ls-files'")
with_directory_contents_completing_project_file(
_add_empty_git({DEFAULT_PROJECT_FILENAME: """
""",
"foo.py": "print('hello')\n"}), check)
with_directory_contents_completing_project_file(dict(), archivetest)
def test_archive_zip_with_inability_to_walk_directory(monkeypatch):
def archivetest(archive_dest_dir):
archivefile = os.path.join(archive_dest_dir, "foo.zip")
def check(dirname):
# be sure we ignore these
os.makedirs(os.path.join(dirname, "services"))
os.makedirs(os.path.join(dirname, "envs"))
project = project_no_dedicated_env(dirname)
assert project.problems == []
def mock_os_walk(dirname):
raise OSError("NOPE")
monkeypatch.setattr('os.walk', mock_os_walk)
status = project_ops.archive(project, archivefile)
assert not status
assert not os.path.exists(archivefile)
assert status.status_description == "Failed to list files in the project."
assert len(status.errors) > 0
assert status.errors[0].startswith("Could not list files in")
with_directory_contents_completing_project_file(
_add_empty_git({DEFAULT_PROJECT_FILENAME: """
name: archivedproj
""",
"foo.py": "print('hello')\n"}), check)
with_directory_contents_completing_project_file(dict(), archivetest)
def test_archive_zip_with_unreadable_projectignore(monkeypatch):
def archivetest(archive_dest_dir):
archivefile = os.path.join(archive_dest_dir, "foo.zip")
def check(dirname):
# be sure we ignore these
os.makedirs(os.path.join(dirname, "services"))
os.makedirs(os.path.join(dirname, "envs"))
project = project_no_dedicated_env(dirname)
ignorefile = os.path.join(dirname, ".kapselignore")
with codecs.open(ignorefile, 'w', 'utf-8') as f:
f.write("\n")
from codecs import open as real_open
def mock_codecs_open(*args, **kwargs):
if args[0].endswith(".kapselignore"):
raise IOError("NOPE")
else:
return real_open(*args, **kwargs)
monkeypatch.setattr('codecs.open', mock_codecs_open)
status = project_ops.archive(project, archivefile)
assert not status
assert not os.path.exists(archivefile)
assert ["Failed to read %s: NOPE" % ignorefile] == status.errors
with_directory_contents_completing_project_file(
_add_empty_git({DEFAULT_PROJECT_FILENAME: """
name: archivedproj
""",
"foo.py": "print('hello')\n"}), check)
with_directory_contents_completing_project_file(dict(), archivetest)
def test_archive_with_bogus_filename(monkeypatch):
def archivetest(archive_dest_dir):
archivefile = os.path.join(archive_dest_dir, "foo.bar")
def check(dirname):
project = project_no_dedicated_env(dirname)
status = project_ops.archive(project, archivefile)
assert not status
assert not os.path.exists(archivefile)
assert status.status_description == "Project archive filename must be a .zip, .tar.gz, or .tar.bz2."
assert status.errors == ["Unsupported archive filename %s." % archivefile]
with_directory_contents_completing_project_file(
_add_empty_git({DEFAULT_PROJECT_FILENAME: """
name: archivedproj
""",
"foo.py": "print('hello')\n"}), check)
with_directory_contents_completing_project_file(dict(), archivetest)
def test_archive_zip_with_downloaded_file():
def archivetest(archive_dest_dir):
archivefile = os.path.join(archive_dest_dir, "foo.zip")
def check(dirname):
project = project_no_dedicated_env(dirname)
status = project_ops.archive(project, archivefile)
assert status
assert os.path.exists(archivefile)
_assert_zip_contains(archivefile, ['foo.py', 'kapsel.yml', 'kapsel-local.yml'])
with_directory_contents_completing_project_file(
_add_empty_git({DEFAULT_PROJECT_FILENAME: """
name: archivedproj
downloads:
MYDOWNLOAD: "http://example.com/downloaded.py"
""",
"foo.py": "print('hello')\n",
'downloaded.py': 'print("ignore me!")',
'downloaded.py.part': ''}), check)
with_directory_contents_completing_project_file(dict(), archivetest)
def test_archive_zip_overwrites_but_does_not_include_the_dest_zip():
def check(dirname):
project = project_no_dedicated_env(dirname)
archivefile = os.path.join(dirname, "foo.zip")
assert os.path.isfile(archivefile)
status = project_ops.archive(project, archivefile)
assert status
assert os.path.exists(archivefile)
_assert_zip_contains(archivefile, ['foo.py', 'kapsel.yml', 'kapsel-local.yml'])
# re-archive to the same file
status = project_ops.archive(project, archivefile)
assert status
assert os.path.exists(archivefile)
_assert_zip_contains(archivefile, ['foo.py', 'kapsel.yml', 'kapsel-local.yml'])
with_directory_contents_completing_project_file(
_add_empty_git({DEFAULT_PROJECT_FILENAME: """
name: archivedproj
""",
"foo.py": "print('hello')\n",
'foo.zip': ""}), check)
def test_archive_zip_with_projectignore():
def archivetest(archive_dest_dir):
archivefile = os.path.join(archive_dest_dir, "foo.zip")
def check(dirname):
# be sure we ignore this
os.makedirs(os.path.join(dirname, "envs"))
project = project_ops.create(dirname)
assert [] == project.problems
status = project_ops.archive(project, archivefile)
assert status
assert os.path.exists(archivefile)
_assert_zip_contains(archivefile, ['foo.py', 'kapsel.yml', '.kapselignore', 'bar/'])
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: """
name: archivedproj
""",
"foo.py": "print('hello')\n",
"foo.pyc": "",
".ipynb_checkpoints": "",
"bar/blah.pyc": ""}, check)
with_directory_contents_completing_project_file(dict(), archivetest)
_CONTENTS_DIR = 1
_CONTENTS_FILE = 2
_CONTENTS_SYMLINK = 3
def _make_zip(archive_dest_dir, contents):
archivefile = os.path.join(archive_dest_dir, "foo.zip")
with zipfile.ZipFile(archivefile, 'w') as zf:
for (key, what) in contents.items():
if what is _CONTENTS_DIR:
# create a directory
if not key.endswith(os.sep):
key = key + os.sep
zf.writestr(key, "")
elif what is _CONTENTS_FILE:
zf.writestr(key, "hello")
else:
raise AssertionError("can't put this in a zip")
return archivefile
def _make_tar(archive_dest_dir, contents, compression=None):
mode = 'w'
extension = '.tar'
if compression == 'gz':
mode = mode + ':gz'
extension = extension + '.gz'
elif compression == 'bz2':
mode = mode + ':bz2'
extension = extension + '.bz2'
# the tarfile API only lets us put in files, so we need
# files to put in
a_directory = os.path.join(archive_dest_dir, "a_directory")
os.mkdir(a_directory)
a_file = os.path.join(archive_dest_dir, "a_file")
with open(a_file, 'w') as f:
f.write("hello")
a_symlink = os.path.join(archive_dest_dir, "a_link")
if _CONTENTS_SYMLINK in contents.values():
os.symlink("/somewhere", a_symlink)
archivefile = os.path.join(archive_dest_dir, "foo" + extension)
with tarfile.open(archivefile, mode) as tf:
for (key, what) in contents.items():
t = tarfile.TarInfo(key)
if what is _CONTENTS_DIR:
t.type = tarfile.DIRTYPE
elif what is _CONTENTS_FILE:
pass
elif what is _CONTENTS_SYMLINK:
t.type = tarfile.SYMTYPE
tf.addfile(t)
os.remove(a_file)
os.rmdir(a_directory)
if os.path.exists(a_symlink):
os.remove(a_symlink)
return archivefile
def _test_unarchive_tar(compression):
def archivetest(archive_dest_dir):
archivefile = _make_tar(archive_dest_dir,
{'a/a.txt': _CONTENTS_FILE,
'a/q/b.txt': _CONTENTS_FILE,
'a/c': _CONTENTS_DIR,
'a': _CONTENTS_DIR},
compression=compression)
# with tarfile.open(archivefile, 'r') as tf:
# tf.list()
if compression is not None:
assert archivefile.endswith(compression)
def check(dirname):
unpacked = os.path.join(dirname, "foo")
status = project_ops.unarchive(archivefile, unpacked)
assert status.errors == []
assert status
assert os.path.isdir(unpacked)
_assert_dir_contains(unpacked, ['a.txt', 'c', 'q/b.txt'])
with_directory_contents(dict(), check)
with_directory_contents(dict(), archivetest)
def test_unarchive_tar():
_test_unarchive_tar(compression=None)
def test_unarchive_tar_gz():
_test_unarchive_tar(compression='gz')
def test_unarchive_tar_bz2():
_test_unarchive_tar(compression='bz2')
def test_unarchive_zip():
def archivetest(archive_dest_dir):
archivefile = _make_zip(archive_dest_dir, {'a/a.txt': _CONTENTS_FILE,
'a/q/b.txt': _CONTENTS_FILE,
'a/c': _CONTENTS_DIR,
'a': _CONTENTS_DIR})
# with zipfile.ZipFile(archivefile, 'r') as zf:
# print(repr(zf.namelist()))
def check(dirname):
unpacked = os.path.join(dirname, "foo")
status = project_ops.unarchive(archivefile, unpacked)
assert status.errors == []
assert status
assert os.path.isdir(unpacked)
_assert_dir_contains(unpacked, ['a.txt', 'c', 'q/b.txt'])
assert status.project_dir == unpacked
with_directory_contents(dict(), check)
with_directory_contents(dict(), archivetest)
def test_unarchive_zip_to_current_directory():
def archivetest(archive_dest_dir):
archivefile = _make_zip(archive_dest_dir, {'a/a.txt': _CONTENTS_FILE,
'a/q/b.txt': _CONTENTS_FILE,
'a/c': _CONTENTS_DIR,
'a': _CONTENTS_DIR})
# with zipfile.ZipFile(archivefile, 'r') as zf:
# print(repr(zf.namelist()))
def check(dirname):
old = os.getcwd()
try:
os.chdir(dirname)
status = project_ops.unarchive(archivefile, project_dir=None)
finally:
os.chdir(old)
unpacked = os.path.join(dirname, "a")
assert status.errors == []
assert status
assert os.path.isdir(unpacked)
_assert_dir_contains(unpacked, ['a.txt', 'c', 'q/b.txt'])
assert status.project_dir == unpacked
with_directory_contents(dict(), check)
with_directory_contents(dict(), archivetest)
def test_unarchive_zip_to_parent_dir_with_auto_project_dir():
def archivetest(archive_dest_dir):
archivefile = _make_zip(archive_dest_dir, {'a/a.txt': _CONTENTS_FILE,
'a/q/b.txt': _CONTENTS_FILE,
'a/c': _CONTENTS_DIR})
# with zipfile.ZipFile(archivefile, 'r') as zf:
# print(repr(zf.namelist()))
def check(dirname):
unpacked = os.path.join(dirname, "a")
status = project_ops.unarchive(archivefile, project_dir=None, parent_dir=dirname)
assert status.errors == []
assert status
assert os.path.isdir(unpacked)
_assert_dir_contains(unpacked, ['a.txt', 'c', 'q/b.txt'])
assert status.project_dir == unpacked
with_directory_contents(dict(), check)
with_directory_contents(dict(), archivetest)
def test_unarchive_tar_to_parent_dir_with_auto_project_dir():
def archivetest(archive_dest_dir):
archivefile = _make_tar(archive_dest_dir, {'a/a.txt': _CONTENTS_FILE,
'a/q/b.txt': _CONTENTS_FILE,
'a/c': _CONTENTS_DIR})
def check(dirname):
unpacked = os.path.join(dirname, "a")
status = project_ops.unarchive(archivefile, project_dir=None, parent_dir=dirname)
assert status.errors == []
assert status
assert os.path.isdir(unpacked)
_assert_dir_contains(unpacked, ['a.txt', 'c', 'q/b.txt'])
assert status.project_dir == unpacked
with_directory_contents(dict(), check)
with_directory_contents(dict(), archivetest)
def test_unarchive_error_on_dest_dir_exists():
def archivetest(archive_dest_dir):
archivefile = _make_tar(archive_dest_dir, {'a/a.txt': _CONTENTS_FILE})
def check(dirname):
unpacked = os.path.join(dirname, "foo")
os.mkdir(unpacked)
status = project_ops.unarchive(archivefile, unpacked)
message = "Directory '%s' already exists." % unpacked
assert status.errors == [message]
assert not status
with_directory_contents(dict(), check)
with_directory_contents(dict(), archivetest)
def test_unarchive_ignore_rmtree_fail_when_unzipping(monkeypatch):
def archivetest(archive_dest_dir):
archivefile = _make_zip(archive_dest_dir, {'a/a.txt': _CONTENTS_FILE})
def check(dirname):
unpacked = os.path.join(dirname, "foo")
def mock_rmtree(*args, **kwargs):
raise IOError("FAILURE")
monkeypatch.setattr('shutil.rmtree', mock_rmtree)
status = project_ops.unarchive(archivefile, unpacked)
monkeypatch.undo()
assert status
assert os.path.isdir(unpacked)
assert os.path.isfile(os.path.join(unpacked, "a.txt"))
with_directory_contents(dict(), check)
with_directory_contents(dict(), archivetest)
def test_unarchive_error_on_bad_extension():
def archivetest(archive_dest_dir):
archivefile = os.path.join(archive_dest_dir, "foo.bar")
with open(archivefile, 'w') as f:
f.write("hello")
def check(dirname):
unpacked = os.path.join(dirname, "foo")
status = project_ops.unarchive(archivefile, unpacked)
message = "Unsupported archive filename %s, must be a .zip, .tar.gz, or .tar.bz2" % archivefile
assert status.errors == [message]
assert not status
assert not os.path.isdir(unpacked)
with_directory_contents(dict(), check)
with_directory_contents(dict(), archivetest)
def test_unarchive_error_on_corrupt_zip():
def archivetest(archive_dest_dir):
archivefile = os.path.join(archive_dest_dir, "foo.zip")
with open(archivefile, 'w') as f:
f.write("hello")
def check(dirname):
unpacked = os.path.join(dirname, "foo")
status = project_ops.unarchive(archivefile, unpacked)
message = "File is not a zip file"
assert status.errors == [message]
assert not status
assert not os.path.isdir(unpacked)
with_directory_contents(dict(), check)
with_directory_contents(dict(), archivetest)
def test_unarchive_error_on_corrupt_tar():
def archivetest(archive_dest_dir):
archivefile = os.path.join(archive_dest_dir, "foo.tar")
with open(archivefile, 'w') as f:
f.write("hello")
def check(dirname):
unpacked = os.path.join(dirname, "foo")
status = project_ops.unarchive(archivefile, unpacked)
message = "file could not be opened successfully"
assert status.errors == [message]
assert not status
assert not os.path.isdir(unpacked)
with_directory_contents(dict(), check)
with_directory_contents(dict(), archivetest)
def test_unarchive_error_on_nonexistent_tar():
def archivetest(archive_dest_dir):
archivefile = os.path.join(archive_dest_dir, "foo.tar")
def check(dirname):
unpacked = os.path.join(dirname, "foo")
status = project_ops.unarchive(archivefile, unpacked)
# the exact message here varies by OS so not checking
assert len(status.errors) == 1
assert not status
assert not os.path.isdir(unpacked)
with_directory_contents(dict(), check)
with_directory_contents(dict(), archivetest)
def test_unarchive_error_on_nonexistent_zip():
def archivetest(archive_dest_dir):
archivefile = os.path.join(archive_dest_dir, "foo.zip")
def check(dirname):
unpacked = os.path.join(dirname, "foo")
status = project_ops.unarchive(archivefile, unpacked)
# the exact message here varies by OS so not checking
assert len(status.errors) == 1
assert not status
assert not os.path.isdir(unpacked)
with_directory_contents(dict(), check)
with_directory_contents(dict(), archivetest)
def test_unarchive_tar_ignores_symlink():
if platform.system() == 'Windows':
print("Can't test tars with symlinks on Windows because there's no way to create one")
return
def archivetest(archive_dest_dir):
archivefile = _make_tar(archive_dest_dir, {'a/a.txt': _CONTENTS_FILE,
'a/q/b.txt': _CONTENTS_FILE,
'a/c': _CONTENTS_DIR,
'a/link': _CONTENTS_SYMLINK})
with tarfile.open(archivefile, 'r') as tf:
member = tf.getmember('a/link')
assert member is not None
assert member.issym()
def check(dirname):
unpacked = os.path.join(dirname, "foo")
status = project_ops.unarchive(archivefile, unpacked)
assert status.errors == []
assert status
assert os.path.isdir(unpacked)
_assert_dir_contains(unpacked, ['a.txt', 'c', 'q/b.txt'])
with_directory_contents(dict(), check)
with_directory_contents(dict(), archivetest)
def test_unarchive_tar_error_on_relative_path():
def archivetest(archive_dest_dir):
archivefile = _make_tar(archive_dest_dir, {'a/../a.txt': _CONTENTS_FILE})
def check(dirname):
unpacked = os.path.join(dirname, "foo")
status = project_ops.unarchive(archivefile, unpacked)
assert not os.path.exists(unpacked)
message = "Archive entry 'a/../a.txt' would end up at '%s' which is outside '%s'." % (os.path.join(
dirname, "a.txt"), os.path.join(unpacked))
assert status.errors == [message]
assert not status
with_directory_contents(dict(), check)
with_directory_contents(dict(), archivetest)
def test_unarchive_tar_error_on_root_relative_path():
def archivetest(archive_dest_dir):
archivefile = _make_tar(archive_dest_dir, {'../a.txt': _CONTENTS_FILE})
def check(dirname):
# root relative path fails when project_dir=None
status = project_ops.unarchive(archivefile, project_dir=None, parent_dir=dirname)
message = "Archive contains relative path '../a.txt' which is not allowed."
assert status.errors == [message]
assert not status
# and also when it is specified
unpacked = os.path.join(dirname, "foo")
status = project_ops.unarchive(archivefile, project_dir=unpacked)
message = "Archive contains relative path '../a.txt' which is not allowed."
assert status.errors == [message]
assert not status
assert not os.path.isdir(unpacked)
with_directory_contents(dict(), check)
with_directory_contents(dict(), archivetest)
def test_unarchive_zip_error_on_relative_path():
def archivetest(archive_dest_dir):
archivefile = _make_zip(archive_dest_dir, {'a/../a.txt': _CONTENTS_FILE})
def check(dirname):
unpacked = os.path.join(dirname, "foo")
status = project_ops.unarchive(archivefile, unpacked)
message = "Archive entry 'a/../a.txt' would end up at '%s' which is outside '%s'." % (os.path.join(
dirname, "a.txt"), os.path.join(unpacked))
assert status.errors == [message]
assert not status
assert not os.path.exists(unpacked)
with_directory_contents(dict(), check)
with_directory_contents(dict(), archivetest)
def test_unarchive_zip_error_on_root_relative_path():
def archivetest(archive_dest_dir):
archivefile = _make_zip(archive_dest_dir, {'../a.txt': _CONTENTS_FILE})
def check(dirname):
# root relative path fails when project_dir=None
status = project_ops.unarchive(archivefile, project_dir=None, parent_dir=dirname)
message = "Archive contains relative path '../a.txt' which is not allowed."
assert status.errors == [message]
assert not status
# and also when it is specified
unpacked = os.path.join(dirname, "foo")
status = project_ops.unarchive(archivefile, project_dir=unpacked)
message = "Archive contains relative path '../a.txt' which is not allowed."
assert status.errors == [message]
assert not status
assert not os.path.isdir(unpacked)
with_directory_contents(dict(), check)
with_directory_contents(dict(), archivetest)
def test_unarchive_tar_error_on_no_directory():
def archivetest(archive_dest_dir):
archivefile = _make_tar(archive_dest_dir, {'a.txt': _CONTENTS_FILE})
def check(dirname):
unpacked = os.path.join(dirname, "foo")
status = project_ops.unarchive(archivefile, unpacked)
assert not os.path.exists(unpacked)
message = "Archive does not contain a project directory or is empty."
assert status.errors == [message]
assert not status
with_directory_contents(dict(), check)
with_directory_contents(dict(), archivetest)
def test_unarchive_tar_error_on_only_directory():
def archivetest(archive_dest_dir):
archivefile = _make_tar(archive_dest_dir, {'a': _CONTENTS_DIR})
def check(dirname):
unpacked = os.path.join(dirname, "foo")
status = project_ops.unarchive(archivefile, unpacked)
assert not os.path.exists(unpacked)
message = "Archive does not contain a project directory or is empty."
assert status.errors == [message]
assert not status
with_directory_contents(dict(), check)
with_directory_contents(dict(), archivetest)
def test_unarchive_tar_error_on_multiple_directories():
def archivetest(archive_dest_dir):
archivefile = _make_tar(archive_dest_dir, {'a/b.txt': _CONTENTS_FILE, 'c/d.txt': _CONTENTS_FILE})
def check(dirname):
unpacked = os.path.join(dirname, "foo")
status = project_ops.unarchive(archivefile, unpacked)
assert not os.path.exists(unpacked)
message = "A valid project archive contains only one project directory " + \
"with all files inside that directory. 'c/d.txt' is outside 'a'."
assert status.errors == [message]
assert not status
with_directory_contents(dict(), check)
with_directory_contents(dict(), archivetest)
def test_unarchive_tar_error_on_empty():
def archivetest(archive_dest_dir):
archivefile = _make_tar(archive_dest_dir, {})
def check(dirname):
unpacked = os.path.join(dirname, "foo")
status = project_ops.unarchive(archivefile, unpacked)
assert not os.path.exists(unpacked)
message = "A valid project archive must contain at least one file."
assert status.errors == [message]
assert not status
with_directory_contents(dict(), check)
with_directory_contents(dict(), archivetest)
def test_unarchive_zip_error_on_empty():
def archivetest(archive_dest_dir):
archivefile = _make_zip(archive_dest_dir, {})
def check(dirname):
unpacked = os.path.join(dirname, "foo")
status = project_ops.unarchive(archivefile, unpacked)
assert not os.path.exists(unpacked)
message = "A valid project archive must contain at least one file."
assert status.errors == [message]
assert not status
with_directory_contents(dict(), check)
with_directory_contents(dict(), archivetest)
def test_unarchive_abs_project_dir_with_parent_dir():
with pytest.raises(ValueError) as excinfo:
project_ops.unarchive("foo.tar.gz", "/absolute", "/bar")
assert "If supplying parent_dir to unarchive, project_dir must be relative or None" == str(excinfo.value)
def test_unarchive_tar_error_on_writing_removes_dir(monkeypatch):
def archivetest(archive_dest_dir):
archivefile = _make_tar(archive_dest_dir, {'a/b.txt': _CONTENTS_FILE, 'a/c.txt': _CONTENTS_FILE})
def check(dirname):
unpacked = os.path.join(dirname, "foo")
# this test is trying to prove that we clean up the dest
# directory if we get IO errors partway through creating
# it.
state = dict(count=0)
def mock_copyfileobj(*args, **kwargs):
# assert that 'unpacked' exists at some point
assert os.path.exists(unpacked)
state['count'] = state['count'] + 1
if state['count'] == 2:
raise IOError("Not copying second file")
monkeypatch.setattr('tarfile.copyfileobj', mock_copyfileobj)
status = project_ops.unarchive(archivefile, unpacked)
assert state['count'] == 2
assert not os.path.exists(unpacked)
message = "Not copying second file"
assert status.errors == [message]
assert not status
with_directory_contents(dict(), check)
with_directory_contents(dict(), archivetest)
def test_unarchive_tar_error_on_writing_then_error_removing_dir(monkeypatch):
def archivetest(archive_dest_dir):
archivefile = _make_tar(archive_dest_dir, {'a/b.txt': _CONTENTS_FILE, 'a/c.txt': _CONTENTS_FILE})
def check(dirname):
unpacked = os.path.join(dirname, "foo")
state = dict(count=0, rmtree_count=0)
def mock_copyfileobj(*args, **kwargs):
# assert that 'unpacked' exists at some point
assert os.path.exists(unpacked)
state['count'] = state['count'] + 1
if state['count'] == 2:
raise IOError("Not copying second file")
monkeypatch.setattr('tarfile.copyfileobj', mock_copyfileobj)
# this test is trying to prove that we ignore an exception
# from rmtree when cleaning up "unpacked"
def mock_rmtree(path):
assert os.path.exists(unpacked)
state['rmtree_count'] = state['rmtree_count'] + 1
raise IOError("rmtree failed")
monkeypatch.setattr('shutil.rmtree', mock_rmtree)
status = project_ops.unarchive(archivefile, unpacked)
monkeypatch.undo()
assert state['count'] == 2
assert state['rmtree_count'] == 1
assert os.path.exists(unpacked) # since the rmtree failed
message = "Not copying second file"
assert status.errors == [message]
assert not status
with_directory_contents(dict(), check)
with_directory_contents(dict(), archivetest)
def test_upload(monkeypatch):
def check(dirname):
with fake_server(monkeypatch, expected_basename='foo.tar.bz2'):
project = project_no_dedicated_env(dirname)
assert [] == project.problems
status = project_ops.upload(project, site='unit_test')
assert status
assert status.url == 'http://example.com/whatevs'
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: "name: foo\n",
"foo.py": "print('hello')\n"}, check)
def test_upload_with_project_file_problems():
def check(dirname):
project = Project(dirname)
status = project_ops.upload(project)
assert not status
assert ["variables section contains wrong value type 42, should be dict or list of requirements"
] == status.errors
with_directory_contents_completing_project_file({DEFAULT_PROJECT_FILENAME: "variables:\n 42"}, check)
def test_upload_cannot_walk_directory(monkeypatch):
def check(dirname):
project = project_no_dedicated_env(dirname)
assert [] == project.problems
def mock_os_walk(dirname):
raise OSError("NOPE")
monkeypatch.setattr('os.walk', mock_os_walk)
status = project_ops.upload(project, site='unit_test')
assert not status
assert status.errors[0].startswith("Could not list files in")
with_directory_contents_completing_project_file(
{DEFAULT_PROJECT_FILENAME: "name: foo\n",
"foo.py": "print('hello')\n"}, check)
| 37.932338
| 118
| 0.618888
| 13,428
| 119,411
| 5.244415
| 0.047215
| 0.017722
| 0.047414
| 0.04358
| 0.839794
| 0.81652
| 0.793644
| 0.768609
| 0.749894
| 0.732683
| 0
| 0.003564
| 0.27397
| 119,411
| 3,147
| 119
| 37.944391
| 0.808711
| 0.039552
| 0
| 0.710409
| 0
| 0.001779
| 0.137647
| 0.006075
| 0
| 0
| 0
| 0
| 0.253559
| 1
| 0.148577
| false
| 0.016904
| 0.013345
| 0.001335
| 0.170374
| 0.011121
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
a48499b6500a983bfe19e98758861e2125432581
| 136
|
py
|
Python
|
allennlp/common/__init__.py
|
pmulcaire/allennlp
|
def4145424439aceb6cbef30041b37187f4e4d13
|
[
"Apache-2.0"
] | 1
|
2021-08-02T11:08:05.000Z
|
2021-08-02T11:08:05.000Z
|
allennlp/common/__init__.py
|
eunsol/allennlp
|
d03e87b7b7297821d384a0b129268e6ca4d8e679
|
[
"Apache-2.0"
] | null | null | null |
allennlp/common/__init__.py
|
eunsol/allennlp
|
d03e87b7b7297821d384a0b129268e6ca4d8e679
|
[
"Apache-2.0"
] | 1
|
2018-11-28T10:14:16.000Z
|
2018-11-28T10:14:16.000Z
|
from allennlp.common.params import Params
from allennlp.common.registrable import Registrable
from allennlp.common.util import JsonDict
| 34
| 51
| 0.867647
| 18
| 136
| 6.555556
| 0.444444
| 0.305085
| 0.457627
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.088235
| 136
| 3
| 52
| 45.333333
| 0.951613
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
f1228ec923a69cf3e1cdecd9d900733f8a84b0e2
| 2,297
|
py
|
Python
|
game/main.py
|
kkwoo/battleship
|
429e02c4a06d787c74dbd9fe22490544c9e71464
|
[
"BSD-2-Clause"
] | null | null | null |
game/main.py
|
kkwoo/battleship
|
429e02c4a06d787c74dbd9fe22490544c9e71464
|
[
"BSD-2-Clause"
] | null | null | null |
game/main.py
|
kkwoo/battleship
|
429e02c4a06d787c74dbd9fe22490544c9e71464
|
[
"BSD-2-Clause"
] | null | null | null |
import battleship.game.board
import battleship.game.ships
import battleship.game.coordinate
class BattleShipGame(object):
def __init__(self):
self.player1board = battleship.game.board.Board()
self.player2board = battleship.game.board.Board()
def player1_attacks_coordinate(self, coordinate):
self.player2board.receive_attack(coordinate)
def player2_attacks_coordinate(self, coordinate):
self.player1board.receive_attack(coordinate)
def demo01(self):
self.player1board.deploy_ship(battleship.game.ships.Carrier(battleship.game.coordinate.Coordinate(2,2)))
self.player1board.deploy_ship(battleship.game.ships.Battleship(battleship.game.coordinate.Coordinate(4,4)))
self.player1board.deploy_ship(battleship.game.ships.Submarine(battleship.game.coordinate.Coordinate(6,6)))
self.player1board.deploy_ship(battleship.game.ships.Cruiser(battleship.game.coordinate.Coordinate(7,7)))
self.player1board.deploy_ship(battleship.game.ships.Patrol(battleship.game.coordinate.Coordinate(8,8)))
self.player2board.deploy_ship(battleship.game.ships.Carrier(battleship.game.coordinate.Coordinate(1,3)))
self.player2board.deploy_ship(battleship.game.ships.Battleship(battleship.game.coordinate.Coordinate(3,3)))
self.player2board.deploy_ship(battleship.game.ships.Submarine(battleship.game.coordinate.Coordinate(5,3)))
self.player2board.deploy_ship(battleship.game.ships.Cruiser(battleship.game.coordinate.Coordinate(7,3)))
self.player2board.deploy_ship(battleship.game.ships.Patrol(battleship.game.coordinate.Coordinate(9,3)))
def demo02(self):
self.player2board.armada_summary()
self.player1_attacks_coordinate(battleship.game.coordinate.Coordinate(3,3))
print("Player 1's latest attack was: ", self.player2board.latest_received_attack_successful())
self.player2board.armada_summary()
self.player2_attacks_coordinate(battleship.game.coordinate.Coordinate(9,3))
print("Player 2's latest attack was: ", self.player1board.latest_received_attack_successful())
self.player2board.armada_summary()
self.player1_attacks_coordinate(battleship.game.coordinate.Coordinate(9,3))
print("Player 1's latest attack was: ", self.player2board.latest_received_attack_successful())
self.player2board.armada_summary()
| 54.690476
| 111
| 0.800609
| 283
| 2,297
| 6.360424
| 0.159011
| 0.217778
| 0.186667
| 0.245556
| 0.809444
| 0.759444
| 0.757222
| 0.703889
| 0.666111
| 0.647222
| 0
| 0.027922
| 0.080104
| 2,297
| 41
| 112
| 56.02439
| 0.823947
| 0
| 0
| 0.181818
| 0
| 0
| 0.039182
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.151515
| false
| 0
| 0.090909
| 0
| 0.272727
| 0.090909
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
f154e3901a878c482935f02e3b25a1ee37ea39fe
| 94,826
|
py
|
Python
|
pyboto3/budgets.py
|
gehad-shaat/pyboto3
|
4a0c2851a8bc04fb1c71c36086f7bb257e48181d
|
[
"MIT"
] | 91
|
2016-12-31T11:38:37.000Z
|
2021-09-16T19:33:23.000Z
|
pyboto3/budgets.py
|
gehad-shaat/pyboto3
|
4a0c2851a8bc04fb1c71c36086f7bb257e48181d
|
[
"MIT"
] | 7
|
2017-01-02T18:54:23.000Z
|
2020-08-11T13:54:02.000Z
|
pyboto3/budgets.py
|
gehad-shaat/pyboto3
|
4a0c2851a8bc04fb1c71c36086f7bb257e48181d
|
[
"MIT"
] | 26
|
2016-12-31T13:11:00.000Z
|
2022-03-03T21:01:12.000Z
|
'''
The MIT License (MIT)
Copyright (c) 2016 WavyCloud
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.
'''
def can_paginate(operation_name=None):
"""
Check if an operation can be paginated.
:type operation_name: string
:param operation_name: The operation name. This is the same name\nas the method name on the client. For example, if the\nmethod name is create_foo, and you\'d normally invoke the\noperation as client.create_foo(**kwargs), if the\ncreate_foo operation can be paginated, you can use the\ncall client.get_paginator('create_foo').
"""
pass
def create_budget(AccountId=None, Budget=None, NotificationsWithSubscribers=None):
"""
Creates a budget and, if included, notifications and subscribers.
See also: AWS API Documentation
Exceptions
:example: response = client.create_budget(
AccountId='string',
Budget={
'BudgetName': 'string',
'BudgetLimit': {
'Amount': 'string',
'Unit': 'string'
},
'PlannedBudgetLimits': {
'string': {
'Amount': 'string',
'Unit': 'string'
}
},
'CostFilters': {
'string': [
'string',
]
},
'CostTypes': {
'IncludeTax': True|False,
'IncludeSubscription': True|False,
'UseBlended': True|False,
'IncludeRefund': True|False,
'IncludeCredit': True|False,
'IncludeUpfront': True|False,
'IncludeRecurring': True|False,
'IncludeOtherSubscription': True|False,
'IncludeSupport': True|False,
'IncludeDiscount': True|False,
'UseAmortized': True|False
},
'TimeUnit': 'DAILY'|'MONTHLY'|'QUARTERLY'|'ANNUALLY',
'TimePeriod': {
'Start': datetime(2015, 1, 1),
'End': datetime(2015, 1, 1)
},
'CalculatedSpend': {
'ActualSpend': {
'Amount': 'string',
'Unit': 'string'
},
'ForecastedSpend': {
'Amount': 'string',
'Unit': 'string'
}
},
'BudgetType': 'USAGE'|'COST'|'RI_UTILIZATION'|'RI_COVERAGE'|'SAVINGS_PLANS_UTILIZATION'|'SAVINGS_PLANS_COVERAGE',
'LastUpdatedTime': datetime(2015, 1, 1)
},
NotificationsWithSubscribers=[
{
'Notification': {
'NotificationType': 'ACTUAL'|'FORECASTED',
'ComparisonOperator': 'GREATER_THAN'|'LESS_THAN'|'EQUAL_TO',
'Threshold': 123.0,
'ThresholdType': 'PERCENTAGE'|'ABSOLUTE_VALUE',
'NotificationState': 'OK'|'ALARM'
},
'Subscribers': [
{
'SubscriptionType': 'SNS'|'EMAIL',
'Address': 'string'
},
]
},
]
)
:type AccountId: string
:param AccountId: [REQUIRED]\nThe accountId that is associated with the budget.\n
:type Budget: dict
:param Budget: [REQUIRED]\nThe budget object that you want to create.\n\nBudgetName (string) -- [REQUIRED]The name of a budget. The name must be unique within an account. The : and \\ characters aren\'t allowed in BudgetName .\n\nBudgetLimit (dict) --The total amount of cost, usage, RI utilization, RI coverage, Savings Plans utilization, or Savings Plans coverage that you want to track with your budget.\n\nBudgetLimit is required for cost or usage budgets, but optional for RI or Savings Plans utilization or coverage budgets. RI and Savings Plans utilization or coverage budgets default to 100 , which is the only valid value for RI or Savings Plans utilization or coverage budgets. You can\'t use BudgetLimit with PlannedBudgetLimits for CreateBudget and UpdateBudget actions.\n\nAmount (string) -- [REQUIRED]The cost or usage amount that is associated with a budget forecast, actual spend, or budget threshold.\n\nUnit (string) -- [REQUIRED]The unit of measurement that is used for the budget forecast, actual spend, or budget threshold, such as dollars or GB.\n\n\n\nPlannedBudgetLimits (dict) --A map containing multiple BudgetLimit , including current or future limits.\n\nPlannedBudgetLimits is available for cost or usage budget and supports monthly and quarterly TimeUnit .\nFor monthly budgets, provide 12 months of PlannedBudgetLimits values. This must start from the current month and include the next 11 months. The key is the start of the month, UTC in epoch seconds.\nFor quarterly budgets, provide 4 quarters of PlannedBudgetLimits value entries in standard calendar quarter increments. This must start from the current quarter and include the next 3 quarters. The key is the start of the quarter, UTC in epoch seconds.\nIf the planned budget expires before 12 months for monthly or 4 quarters for quarterly, provide the PlannedBudgetLimits values only for the remaining periods.\nIf the budget begins at a date in the future, provide PlannedBudgetLimits values from the start date of the budget.\nAfter all of the BudgetLimit values in PlannedBudgetLimits are used, the budget continues to use the last limit as the BudgetLimit . At that point, the planned budget provides the same experience as a fixed budget.\n\nDescribeBudget and DescribeBudgets response along with PlannedBudgetLimits will also contain BudgetLimit representing the current month or quarter limit present in PlannedBudgetLimits . This only applies to budgets created with PlannedBudgetLimits . Budgets created without PlannedBudgetLimits will only contain BudgetLimit , and no PlannedBudgetLimits .\n\n(string) --A generic string.\n\n(dict) --The amount of cost or usage that is measured for a budget.\nFor example, a Spend for 3 GB of S3 usage would have the following parameters:\n\nAn Amount of 3\nA unit of GB\n\n\nAmount (string) -- [REQUIRED]The cost or usage amount that is associated with a budget forecast, actual spend, or budget threshold.\n\nUnit (string) -- [REQUIRED]The unit of measurement that is used for the budget forecast, actual spend, or budget threshold, such as dollars or GB.\n\n\n\n\n\n\n\nCostFilters (dict) --The cost filters, such as service or tag, that are applied to a budget.\nAWS Budgets supports the following services as a filter for RI budgets:\n\nAmazon Elastic Compute Cloud - Compute\nAmazon Redshift\nAmazon Relational Database Service\nAmazon ElastiCache\nAmazon Elasticsearch Service\n\n\n(string) --A generic string.\n\n(list) --\n(string) --A generic string.\n\n\n\n\n\n\n\nCostTypes (dict) --The types of costs that are included in this COST budget.\n\nUSAGE , RI_UTILIZATION , RI_COVERAGE , Savings_Plans_Utilization , and Savings_Plans_Coverage budgets do not have CostTypes .\n\nIncludeTax (boolean) --Specifies whether a budget includes taxes.\nThe default value is true .\n\nIncludeSubscription (boolean) --Specifies whether a budget includes subscriptions.\nThe default value is true .\n\nUseBlended (boolean) --Specifies whether a budget uses a blended rate.\nThe default value is false .\n\nIncludeRefund (boolean) --Specifies whether a budget includes refunds.\nThe default value is true .\n\nIncludeCredit (boolean) --Specifies whether a budget includes credits.\nThe default value is true .\n\nIncludeUpfront (boolean) --Specifies whether a budget includes upfront RI costs.\nThe default value is true .\n\nIncludeRecurring (boolean) --Specifies whether a budget includes recurring fees such as monthly RI fees.\nThe default value is true .\n\nIncludeOtherSubscription (boolean) --Specifies whether a budget includes non-RI subscription costs.\nThe default value is true .\n\nIncludeSupport (boolean) --Specifies whether a budget includes support subscription fees.\nThe default value is true .\n\nIncludeDiscount (boolean) --Specifies whether a budget includes discounts.\nThe default value is true .\n\nUseAmortized (boolean) --Specifies whether a budget uses the amortized rate.\nThe default value is false .\n\n\n\nTimeUnit (string) -- [REQUIRED]The length of time until a budget resets the actual and forecasted spend. DAILY is available only for RI_UTILIZATION , RI_COVERAGE , Savings_Plans_Utilization , and Savings_Plans_Coverage budgets.\n\nTimePeriod (dict) --The period of time that is covered by a budget. The period has a start date and an end date. The start date must come before the end date. The end date must come before 06/15/87 00:00 UTC .\nIf you create your budget and don\'t specify a start date, AWS defaults to the start of your chosen time period (DAILY, MONTHLY, QUARTERLY, or ANNUALLY). For example, if you created your budget on January 24, 2018, chose DAILY , and didn\'t set a start date, AWS set your start date to 01/24/18 00:00 UTC . If you chose MONTHLY , AWS set your start date to 01/01/18 00:00 UTC . If you didn\'t specify an end date, AWS set your end date to 06/15/87 00:00 UTC . The defaults are the same for the AWS Billing and Cost Management console and the API.\nYou can change either date with the UpdateBudget operation.\nAfter the end date, AWS deletes the budget and all associated notifications and subscribers.\n\nStart (datetime) --The start date for a budget. If you created your budget and didn\'t specify a start date, AWS defaults to the start of your chosen time period (DAILY, MONTHLY, QUARTERLY, or ANNUALLY). For example, if you created your budget on January 24, 2018, chose DAILY , and didn\'t set a start date, AWS set your start date to 01/24/18 00:00 UTC . If you chose MONTHLY , AWS set your start date to 01/01/18 00:00 UTC . The defaults are the same for the AWS Billing and Cost Management console and the API.\nYou can change your start date with the UpdateBudget operation.\n\nEnd (datetime) --The end date for a budget. If you didn\'t specify an end date, AWS set your end date to 06/15/87 00:00 UTC . The defaults are the same for the AWS Billing and Cost Management console and the API.\nAfter the end date, AWS deletes the budget and all associated notifications and subscribers. You can change your end date with the UpdateBudget operation.\n\n\n\nCalculatedSpend (dict) --The actual and forecasted cost or usage that the budget tracks.\n\nActualSpend (dict) -- [REQUIRED]The amount of cost, usage, or RI units that you have used.\n\nAmount (string) -- [REQUIRED]The cost or usage amount that is associated with a budget forecast, actual spend, or budget threshold.\n\nUnit (string) -- [REQUIRED]The unit of measurement that is used for the budget forecast, actual spend, or budget threshold, such as dollars or GB.\n\n\n\nForecastedSpend (dict) --The amount of cost, usage, or RI units that you are forecasted to use.\n\nAmount (string) -- [REQUIRED]The cost or usage amount that is associated with a budget forecast, actual spend, or budget threshold.\n\nUnit (string) -- [REQUIRED]The unit of measurement that is used for the budget forecast, actual spend, or budget threshold, such as dollars or GB.\n\n\n\n\n\nBudgetType (string) -- [REQUIRED]Whether this budget tracks costs, usage, RI utilization, RI coverage, Savings Plans utilization, or Savings Plans coverage.\n\nLastUpdatedTime (datetime) --The last time that you updated this budget.\n\n\n
:type NotificationsWithSubscribers: list
:param NotificationsWithSubscribers: A notification that you want to associate with a budget. A budget can have up to five notifications, and each notification can have one SNS subscriber and up to 10 email subscribers. If you include notifications and subscribers in your CreateBudget call, AWS creates the notifications and subscribers for you.\n\n(dict) --A notification with subscribers. A notification can have one SNS subscriber and up to 10 email subscribers, for a total of 11 subscribers.\n\nNotification (dict) -- [REQUIRED]The notification that is associated with a budget.\n\nNotificationType (string) -- [REQUIRED]Whether the notification is for how much you have spent (ACTUAL ) or for how much you\'re forecasted to spend (FORECASTED ).\n\nComparisonOperator (string) -- [REQUIRED]The comparison that is used for this notification.\n\nThreshold (float) -- [REQUIRED]The threshold that is associated with a notification. Thresholds are always a percentage.\n\nThresholdType (string) --The type of threshold for a notification. For ABSOLUTE_VALUE thresholds, AWS notifies you when you go over or are forecasted to go over your total cost threshold. For PERCENTAGE thresholds, AWS notifies you when you go over or are forecasted to go over a certain percentage of your forecasted spend. For example, if you have a budget for 200 dollars and you have a PERCENTAGE threshold of 80%, AWS notifies you when you go over 160 dollars.\n\nNotificationState (string) --Whether this notification is in alarm. If a budget notification is in the ALARM state, you have passed the set threshold for the budget.\n\n\n\nSubscribers (list) -- [REQUIRED]A list of subscribers who are subscribed to this notification.\n\n(dict) --The subscriber to a budget notification. The subscriber consists of a subscription type and either an Amazon SNS topic or an email address.\nFor example, an email subscriber would have the following parameters:\n\nA subscriptionType of EMAIL\nAn address of example@example.com\n\n\nSubscriptionType (string) -- [REQUIRED]The type of notification that AWS sends to a subscriber.\n\nAddress (string) -- [REQUIRED]The address that AWS sends budget notifications to, either an SNS topic or an email.\nWhen you create a subscriber, the value of Address can\'t contain line breaks.\n\n\n\n\n\n\n\n\n
:rtype: dict
ReturnsResponse Syntax
{}
Response Structure
(dict) --
Response of CreateBudget
Exceptions
Budgets.Client.exceptions.InvalidParameterException
Budgets.Client.exceptions.InternalErrorException
Budgets.Client.exceptions.CreationLimitExceededException
Budgets.Client.exceptions.DuplicateRecordException
Budgets.Client.exceptions.AccessDeniedException
:return: {}
:returns:
Budgets.Client.exceptions.InvalidParameterException
Budgets.Client.exceptions.InternalErrorException
Budgets.Client.exceptions.CreationLimitExceededException
Budgets.Client.exceptions.DuplicateRecordException
Budgets.Client.exceptions.AccessDeniedException
"""
pass
def create_notification(AccountId=None, BudgetName=None, Notification=None, Subscribers=None):
"""
Creates a notification. You must create the budget before you create the associated notification.
See also: AWS API Documentation
Exceptions
:example: response = client.create_notification(
AccountId='string',
BudgetName='string',
Notification={
'NotificationType': 'ACTUAL'|'FORECASTED',
'ComparisonOperator': 'GREATER_THAN'|'LESS_THAN'|'EQUAL_TO',
'Threshold': 123.0,
'ThresholdType': 'PERCENTAGE'|'ABSOLUTE_VALUE',
'NotificationState': 'OK'|'ALARM'
},
Subscribers=[
{
'SubscriptionType': 'SNS'|'EMAIL',
'Address': 'string'
},
]
)
:type AccountId: string
:param AccountId: [REQUIRED]\nThe accountId that is associated with the budget that you want to create a notification for.\n
:type BudgetName: string
:param BudgetName: [REQUIRED]\nThe name of the budget that you want AWS to notify you about. Budget names must be unique within an account.\n
:type Notification: dict
:param Notification: [REQUIRED]\nThe notification that you want to create.\n\nNotificationType (string) -- [REQUIRED]Whether the notification is for how much you have spent (ACTUAL ) or for how much you\'re forecasted to spend (FORECASTED ).\n\nComparisonOperator (string) -- [REQUIRED]The comparison that is used for this notification.\n\nThreshold (float) -- [REQUIRED]The threshold that is associated with a notification. Thresholds are always a percentage.\n\nThresholdType (string) --The type of threshold for a notification. For ABSOLUTE_VALUE thresholds, AWS notifies you when you go over or are forecasted to go over your total cost threshold. For PERCENTAGE thresholds, AWS notifies you when you go over or are forecasted to go over a certain percentage of your forecasted spend. For example, if you have a budget for 200 dollars and you have a PERCENTAGE threshold of 80%, AWS notifies you when you go over 160 dollars.\n\nNotificationState (string) --Whether this notification is in alarm. If a budget notification is in the ALARM state, you have passed the set threshold for the budget.\n\n\n
:type Subscribers: list
:param Subscribers: [REQUIRED]\nA list of subscribers that you want to associate with the notification. Each notification can have one SNS subscriber and up to 10 email subscribers.\n\n(dict) --The subscriber to a budget notification. The subscriber consists of a subscription type and either an Amazon SNS topic or an email address.\nFor example, an email subscriber would have the following parameters:\n\nA subscriptionType of EMAIL\nAn address of example@example.com\n\n\nSubscriptionType (string) -- [REQUIRED]The type of notification that AWS sends to a subscriber.\n\nAddress (string) -- [REQUIRED]The address that AWS sends budget notifications to, either an SNS topic or an email.\nWhen you create a subscriber, the value of Address can\'t contain line breaks.\n\n\n\n\n
:rtype: dict
ReturnsResponse Syntax
{}
Response Structure
(dict) --
Response of CreateNotification
Exceptions
Budgets.Client.exceptions.InternalErrorException
Budgets.Client.exceptions.InvalidParameterException
Budgets.Client.exceptions.NotFoundException
Budgets.Client.exceptions.CreationLimitExceededException
Budgets.Client.exceptions.DuplicateRecordException
Budgets.Client.exceptions.AccessDeniedException
:return: {}
:returns:
Budgets.Client.exceptions.InternalErrorException
Budgets.Client.exceptions.InvalidParameterException
Budgets.Client.exceptions.NotFoundException
Budgets.Client.exceptions.CreationLimitExceededException
Budgets.Client.exceptions.DuplicateRecordException
Budgets.Client.exceptions.AccessDeniedException
"""
pass
def create_subscriber(AccountId=None, BudgetName=None, Notification=None, Subscriber=None):
"""
Creates a subscriber. You must create the associated budget and notification before you create the subscriber.
See also: AWS API Documentation
Exceptions
:example: response = client.create_subscriber(
AccountId='string',
BudgetName='string',
Notification={
'NotificationType': 'ACTUAL'|'FORECASTED',
'ComparisonOperator': 'GREATER_THAN'|'LESS_THAN'|'EQUAL_TO',
'Threshold': 123.0,
'ThresholdType': 'PERCENTAGE'|'ABSOLUTE_VALUE',
'NotificationState': 'OK'|'ALARM'
},
Subscriber={
'SubscriptionType': 'SNS'|'EMAIL',
'Address': 'string'
}
)
:type AccountId: string
:param AccountId: [REQUIRED]\nThe accountId that is associated with the budget that you want to create a subscriber for.\n
:type BudgetName: string
:param BudgetName: [REQUIRED]\nThe name of the budget that you want to subscribe to. Budget names must be unique within an account.\n
:type Notification: dict
:param Notification: [REQUIRED]\nThe notification that you want to create a subscriber for.\n\nNotificationType (string) -- [REQUIRED]Whether the notification is for how much you have spent (ACTUAL ) or for how much you\'re forecasted to spend (FORECASTED ).\n\nComparisonOperator (string) -- [REQUIRED]The comparison that is used for this notification.\n\nThreshold (float) -- [REQUIRED]The threshold that is associated with a notification. Thresholds are always a percentage.\n\nThresholdType (string) --The type of threshold for a notification. For ABSOLUTE_VALUE thresholds, AWS notifies you when you go over or are forecasted to go over your total cost threshold. For PERCENTAGE thresholds, AWS notifies you when you go over or are forecasted to go over a certain percentage of your forecasted spend. For example, if you have a budget for 200 dollars and you have a PERCENTAGE threshold of 80%, AWS notifies you when you go over 160 dollars.\n\nNotificationState (string) --Whether this notification is in alarm. If a budget notification is in the ALARM state, you have passed the set threshold for the budget.\n\n\n
:type Subscriber: dict
:param Subscriber: [REQUIRED]\nThe subscriber that you want to associate with a budget notification.\n\nSubscriptionType (string) -- [REQUIRED]The type of notification that AWS sends to a subscriber.\n\nAddress (string) -- [REQUIRED]The address that AWS sends budget notifications to, either an SNS topic or an email.\nWhen you create a subscriber, the value of Address can\'t contain line breaks.\n\n\n
:rtype: dict
ReturnsResponse Syntax
{}
Response Structure
(dict) --
Response of CreateSubscriber
Exceptions
Budgets.Client.exceptions.InternalErrorException
Budgets.Client.exceptions.InvalidParameterException
Budgets.Client.exceptions.CreationLimitExceededException
Budgets.Client.exceptions.DuplicateRecordException
Budgets.Client.exceptions.NotFoundException
Budgets.Client.exceptions.AccessDeniedException
:return: {}
:returns:
Budgets.Client.exceptions.InternalErrorException
Budgets.Client.exceptions.InvalidParameterException
Budgets.Client.exceptions.CreationLimitExceededException
Budgets.Client.exceptions.DuplicateRecordException
Budgets.Client.exceptions.NotFoundException
Budgets.Client.exceptions.AccessDeniedException
"""
pass
def delete_budget(AccountId=None, BudgetName=None):
"""
Deletes a budget. You can delete your budget at any time.
See also: AWS API Documentation
Exceptions
:example: response = client.delete_budget(
AccountId='string',
BudgetName='string'
)
:type AccountId: string
:param AccountId: [REQUIRED]\nThe accountId that is associated with the budget that you want to delete.\n
:type BudgetName: string
:param BudgetName: [REQUIRED]\nThe name of the budget that you want to delete.\n
:rtype: dict
ReturnsResponse Syntax
{}
Response Structure
(dict) --
Response of DeleteBudget
Exceptions
Budgets.Client.exceptions.InternalErrorException
Budgets.Client.exceptions.InvalidParameterException
Budgets.Client.exceptions.NotFoundException
Budgets.Client.exceptions.AccessDeniedException
:return: {}
:returns:
Budgets.Client.exceptions.InternalErrorException
Budgets.Client.exceptions.InvalidParameterException
Budgets.Client.exceptions.NotFoundException
Budgets.Client.exceptions.AccessDeniedException
"""
pass
def delete_notification(AccountId=None, BudgetName=None, Notification=None):
"""
Deletes a notification.
See also: AWS API Documentation
Exceptions
:example: response = client.delete_notification(
AccountId='string',
BudgetName='string',
Notification={
'NotificationType': 'ACTUAL'|'FORECASTED',
'ComparisonOperator': 'GREATER_THAN'|'LESS_THAN'|'EQUAL_TO',
'Threshold': 123.0,
'ThresholdType': 'PERCENTAGE'|'ABSOLUTE_VALUE',
'NotificationState': 'OK'|'ALARM'
}
)
:type AccountId: string
:param AccountId: [REQUIRED]\nThe accountId that is associated with the budget whose notification you want to delete.\n
:type BudgetName: string
:param BudgetName: [REQUIRED]\nThe name of the budget whose notification you want to delete.\n
:type Notification: dict
:param Notification: [REQUIRED]\nThe notification that you want to delete.\n\nNotificationType (string) -- [REQUIRED]Whether the notification is for how much you have spent (ACTUAL ) or for how much you\'re forecasted to spend (FORECASTED ).\n\nComparisonOperator (string) -- [REQUIRED]The comparison that is used for this notification.\n\nThreshold (float) -- [REQUIRED]The threshold that is associated with a notification. Thresholds are always a percentage.\n\nThresholdType (string) --The type of threshold for a notification. For ABSOLUTE_VALUE thresholds, AWS notifies you when you go over or are forecasted to go over your total cost threshold. For PERCENTAGE thresholds, AWS notifies you when you go over or are forecasted to go over a certain percentage of your forecasted spend. For example, if you have a budget for 200 dollars and you have a PERCENTAGE threshold of 80%, AWS notifies you when you go over 160 dollars.\n\nNotificationState (string) --Whether this notification is in alarm. If a budget notification is in the ALARM state, you have passed the set threshold for the budget.\n\n\n
:rtype: dict
ReturnsResponse Syntax
{}
Response Structure
(dict) --
Response of DeleteNotification
Exceptions
Budgets.Client.exceptions.InvalidParameterException
Budgets.Client.exceptions.InternalErrorException
Budgets.Client.exceptions.NotFoundException
Budgets.Client.exceptions.AccessDeniedException
:return: {}
:returns:
Budgets.Client.exceptions.InvalidParameterException
Budgets.Client.exceptions.InternalErrorException
Budgets.Client.exceptions.NotFoundException
Budgets.Client.exceptions.AccessDeniedException
"""
pass
def delete_subscriber(AccountId=None, BudgetName=None, Notification=None, Subscriber=None):
"""
Deletes a subscriber.
See also: AWS API Documentation
Exceptions
:example: response = client.delete_subscriber(
AccountId='string',
BudgetName='string',
Notification={
'NotificationType': 'ACTUAL'|'FORECASTED',
'ComparisonOperator': 'GREATER_THAN'|'LESS_THAN'|'EQUAL_TO',
'Threshold': 123.0,
'ThresholdType': 'PERCENTAGE'|'ABSOLUTE_VALUE',
'NotificationState': 'OK'|'ALARM'
},
Subscriber={
'SubscriptionType': 'SNS'|'EMAIL',
'Address': 'string'
}
)
:type AccountId: string
:param AccountId: [REQUIRED]\nThe accountId that is associated with the budget whose subscriber you want to delete.\n
:type BudgetName: string
:param BudgetName: [REQUIRED]\nThe name of the budget whose subscriber you want to delete.\n
:type Notification: dict
:param Notification: [REQUIRED]\nThe notification whose subscriber you want to delete.\n\nNotificationType (string) -- [REQUIRED]Whether the notification is for how much you have spent (ACTUAL ) or for how much you\'re forecasted to spend (FORECASTED ).\n\nComparisonOperator (string) -- [REQUIRED]The comparison that is used for this notification.\n\nThreshold (float) -- [REQUIRED]The threshold that is associated with a notification. Thresholds are always a percentage.\n\nThresholdType (string) --The type of threshold for a notification. For ABSOLUTE_VALUE thresholds, AWS notifies you when you go over or are forecasted to go over your total cost threshold. For PERCENTAGE thresholds, AWS notifies you when you go over or are forecasted to go over a certain percentage of your forecasted spend. For example, if you have a budget for 200 dollars and you have a PERCENTAGE threshold of 80%, AWS notifies you when you go over 160 dollars.\n\nNotificationState (string) --Whether this notification is in alarm. If a budget notification is in the ALARM state, you have passed the set threshold for the budget.\n\n\n
:type Subscriber: dict
:param Subscriber: [REQUIRED]\nThe subscriber that you want to delete.\n\nSubscriptionType (string) -- [REQUIRED]The type of notification that AWS sends to a subscriber.\n\nAddress (string) -- [REQUIRED]The address that AWS sends budget notifications to, either an SNS topic or an email.\nWhen you create a subscriber, the value of Address can\'t contain line breaks.\n\n\n
:rtype: dict
ReturnsResponse Syntax
{}
Response Structure
(dict) --
Response of DeleteSubscriber
Exceptions
Budgets.Client.exceptions.InternalErrorException
Budgets.Client.exceptions.InvalidParameterException
Budgets.Client.exceptions.NotFoundException
Budgets.Client.exceptions.AccessDeniedException
:return: {}
:returns:
Budgets.Client.exceptions.InternalErrorException
Budgets.Client.exceptions.InvalidParameterException
Budgets.Client.exceptions.NotFoundException
Budgets.Client.exceptions.AccessDeniedException
"""
pass
def describe_budget(AccountId=None, BudgetName=None):
"""
Describes a budget.
See also: AWS API Documentation
Exceptions
:example: response = client.describe_budget(
AccountId='string',
BudgetName='string'
)
:type AccountId: string
:param AccountId: [REQUIRED]\nThe accountId that is associated with the budget that you want a description of.\n
:type BudgetName: string
:param BudgetName: [REQUIRED]\nThe name of the budget that you want a description of.\n
:rtype: dict
ReturnsResponse Syntax
{
'Budget': {
'BudgetName': 'string',
'BudgetLimit': {
'Amount': 'string',
'Unit': 'string'
},
'PlannedBudgetLimits': {
'string': {
'Amount': 'string',
'Unit': 'string'
}
},
'CostFilters': {
'string': [
'string',
]
},
'CostTypes': {
'IncludeTax': True|False,
'IncludeSubscription': True|False,
'UseBlended': True|False,
'IncludeRefund': True|False,
'IncludeCredit': True|False,
'IncludeUpfront': True|False,
'IncludeRecurring': True|False,
'IncludeOtherSubscription': True|False,
'IncludeSupport': True|False,
'IncludeDiscount': True|False,
'UseAmortized': True|False
},
'TimeUnit': 'DAILY'|'MONTHLY'|'QUARTERLY'|'ANNUALLY',
'TimePeriod': {
'Start': datetime(2015, 1, 1),
'End': datetime(2015, 1, 1)
},
'CalculatedSpend': {
'ActualSpend': {
'Amount': 'string',
'Unit': 'string'
},
'ForecastedSpend': {
'Amount': 'string',
'Unit': 'string'
}
},
'BudgetType': 'USAGE'|'COST'|'RI_UTILIZATION'|'RI_COVERAGE'|'SAVINGS_PLANS_UTILIZATION'|'SAVINGS_PLANS_COVERAGE',
'LastUpdatedTime': datetime(2015, 1, 1)
}
}
Response Structure
(dict) --
Response of DescribeBudget
Budget (dict) --
The description of the budget.
BudgetName (string) --
The name of a budget. The name must be unique within an account. The : and \\ characters aren\'t allowed in BudgetName .
BudgetLimit (dict) --
The total amount of cost, usage, RI utilization, RI coverage, Savings Plans utilization, or Savings Plans coverage that you want to track with your budget.
BudgetLimit is required for cost or usage budgets, but optional for RI or Savings Plans utilization or coverage budgets. RI and Savings Plans utilization or coverage budgets default to 100 , which is the only valid value for RI or Savings Plans utilization or coverage budgets. You can\'t use BudgetLimit with PlannedBudgetLimits for CreateBudget and UpdateBudget actions.
Amount (string) --
The cost or usage amount that is associated with a budget forecast, actual spend, or budget threshold.
Unit (string) --
The unit of measurement that is used for the budget forecast, actual spend, or budget threshold, such as dollars or GB.
PlannedBudgetLimits (dict) --
A map containing multiple BudgetLimit , including current or future limits.
PlannedBudgetLimits is available for cost or usage budget and supports monthly and quarterly TimeUnit .
For monthly budgets, provide 12 months of PlannedBudgetLimits values. This must start from the current month and include the next 11 months. The key is the start of the month, UTC in epoch seconds.
For quarterly budgets, provide 4 quarters of PlannedBudgetLimits value entries in standard calendar quarter increments. This must start from the current quarter and include the next 3 quarters. The key is the start of the quarter, UTC in epoch seconds.
If the planned budget expires before 12 months for monthly or 4 quarters for quarterly, provide the PlannedBudgetLimits values only for the remaining periods.
If the budget begins at a date in the future, provide PlannedBudgetLimits values from the start date of the budget.
After all of the BudgetLimit values in PlannedBudgetLimits are used, the budget continues to use the last limit as the BudgetLimit . At that point, the planned budget provides the same experience as a fixed budget.
DescribeBudget and DescribeBudgets response along with PlannedBudgetLimits will also contain BudgetLimit representing the current month or quarter limit present in PlannedBudgetLimits . This only applies to budgets created with PlannedBudgetLimits . Budgets created without PlannedBudgetLimits will only contain BudgetLimit , and no PlannedBudgetLimits .
(string) --
A generic string.
(dict) --
The amount of cost or usage that is measured for a budget.
For example, a Spend for 3 GB of S3 usage would have the following parameters:
An Amount of 3
A unit of GB
Amount (string) --
The cost or usage amount that is associated with a budget forecast, actual spend, or budget threshold.
Unit (string) --
The unit of measurement that is used for the budget forecast, actual spend, or budget threshold, such as dollars or GB.
CostFilters (dict) --
The cost filters, such as service or tag, that are applied to a budget.
AWS Budgets supports the following services as a filter for RI budgets:
Amazon Elastic Compute Cloud - Compute
Amazon Redshift
Amazon Relational Database Service
Amazon ElastiCache
Amazon Elasticsearch Service
(string) --
A generic string.
(list) --
(string) --
A generic string.
CostTypes (dict) --
The types of costs that are included in this COST budget.
USAGE , RI_UTILIZATION , RI_COVERAGE , Savings_Plans_Utilization , and Savings_Plans_Coverage budgets do not have CostTypes .
IncludeTax (boolean) --
Specifies whether a budget includes taxes.
The default value is true .
IncludeSubscription (boolean) --
Specifies whether a budget includes subscriptions.
The default value is true .
UseBlended (boolean) --
Specifies whether a budget uses a blended rate.
The default value is false .
IncludeRefund (boolean) --
Specifies whether a budget includes refunds.
The default value is true .
IncludeCredit (boolean) --
Specifies whether a budget includes credits.
The default value is true .
IncludeUpfront (boolean) --
Specifies whether a budget includes upfront RI costs.
The default value is true .
IncludeRecurring (boolean) --
Specifies whether a budget includes recurring fees such as monthly RI fees.
The default value is true .
IncludeOtherSubscription (boolean) --
Specifies whether a budget includes non-RI subscription costs.
The default value is true .
IncludeSupport (boolean) --
Specifies whether a budget includes support subscription fees.
The default value is true .
IncludeDiscount (boolean) --
Specifies whether a budget includes discounts.
The default value is true .
UseAmortized (boolean) --
Specifies whether a budget uses the amortized rate.
The default value is false .
TimeUnit (string) --
The length of time until a budget resets the actual and forecasted spend. DAILY is available only for RI_UTILIZATION , RI_COVERAGE , Savings_Plans_Utilization , and Savings_Plans_Coverage budgets.
TimePeriod (dict) --
The period of time that is covered by a budget. The period has a start date and an end date. The start date must come before the end date. The end date must come before 06/15/87 00:00 UTC .
If you create your budget and don\'t specify a start date, AWS defaults to the start of your chosen time period (DAILY, MONTHLY, QUARTERLY, or ANNUALLY). For example, if you created your budget on January 24, 2018, chose DAILY , and didn\'t set a start date, AWS set your start date to 01/24/18 00:00 UTC . If you chose MONTHLY , AWS set your start date to 01/01/18 00:00 UTC . If you didn\'t specify an end date, AWS set your end date to 06/15/87 00:00 UTC . The defaults are the same for the AWS Billing and Cost Management console and the API.
You can change either date with the UpdateBudget operation.
After the end date, AWS deletes the budget and all associated notifications and subscribers.
Start (datetime) --
The start date for a budget. If you created your budget and didn\'t specify a start date, AWS defaults to the start of your chosen time period (DAILY, MONTHLY, QUARTERLY, or ANNUALLY). For example, if you created your budget on January 24, 2018, chose DAILY , and didn\'t set a start date, AWS set your start date to 01/24/18 00:00 UTC . If you chose MONTHLY , AWS set your start date to 01/01/18 00:00 UTC . The defaults are the same for the AWS Billing and Cost Management console and the API.
You can change your start date with the UpdateBudget operation.
End (datetime) --
The end date for a budget. If you didn\'t specify an end date, AWS set your end date to 06/15/87 00:00 UTC . The defaults are the same for the AWS Billing and Cost Management console and the API.
After the end date, AWS deletes the budget and all associated notifications and subscribers. You can change your end date with the UpdateBudget operation.
CalculatedSpend (dict) --
The actual and forecasted cost or usage that the budget tracks.
ActualSpend (dict) --
The amount of cost, usage, or RI units that you have used.
Amount (string) --
The cost or usage amount that is associated with a budget forecast, actual spend, or budget threshold.
Unit (string) --
The unit of measurement that is used for the budget forecast, actual spend, or budget threshold, such as dollars or GB.
ForecastedSpend (dict) --
The amount of cost, usage, or RI units that you are forecasted to use.
Amount (string) --
The cost or usage amount that is associated with a budget forecast, actual spend, or budget threshold.
Unit (string) --
The unit of measurement that is used for the budget forecast, actual spend, or budget threshold, such as dollars or GB.
BudgetType (string) --
Whether this budget tracks costs, usage, RI utilization, RI coverage, Savings Plans utilization, or Savings Plans coverage.
LastUpdatedTime (datetime) --
The last time that you updated this budget.
Exceptions
Budgets.Client.exceptions.InternalErrorException
Budgets.Client.exceptions.InvalidParameterException
Budgets.Client.exceptions.NotFoundException
Budgets.Client.exceptions.AccessDeniedException
:return: {
'Budget': {
'BudgetName': 'string',
'BudgetLimit': {
'Amount': 'string',
'Unit': 'string'
},
'PlannedBudgetLimits': {
'string': {
'Amount': 'string',
'Unit': 'string'
}
},
'CostFilters': {
'string': [
'string',
]
},
'CostTypes': {
'IncludeTax': True|False,
'IncludeSubscription': True|False,
'UseBlended': True|False,
'IncludeRefund': True|False,
'IncludeCredit': True|False,
'IncludeUpfront': True|False,
'IncludeRecurring': True|False,
'IncludeOtherSubscription': True|False,
'IncludeSupport': True|False,
'IncludeDiscount': True|False,
'UseAmortized': True|False
},
'TimeUnit': 'DAILY'|'MONTHLY'|'QUARTERLY'|'ANNUALLY',
'TimePeriod': {
'Start': datetime(2015, 1, 1),
'End': datetime(2015, 1, 1)
},
'CalculatedSpend': {
'ActualSpend': {
'Amount': 'string',
'Unit': 'string'
},
'ForecastedSpend': {
'Amount': 'string',
'Unit': 'string'
}
},
'BudgetType': 'USAGE'|'COST'|'RI_UTILIZATION'|'RI_COVERAGE'|'SAVINGS_PLANS_UTILIZATION'|'SAVINGS_PLANS_COVERAGE',
'LastUpdatedTime': datetime(2015, 1, 1)
}
}
:returns:
An Amount of 3
A unit of GB
"""
pass
def describe_budget_performance_history(AccountId=None, BudgetName=None, TimePeriod=None, MaxResults=None, NextToken=None):
"""
Describes the history for DAILY , MONTHLY , and QUARTERLY budgets. Budget history isn\'t available for ANNUAL budgets.
See also: AWS API Documentation
Exceptions
:example: response = client.describe_budget_performance_history(
AccountId='string',
BudgetName='string',
TimePeriod={
'Start': datetime(2015, 1, 1),
'End': datetime(2015, 1, 1)
},
MaxResults=123,
NextToken='string'
)
:type AccountId: string
:param AccountId: [REQUIRED]\nThe account ID of the user. It should be a 12-digit number.\n
:type BudgetName: string
:param BudgetName: [REQUIRED]\nA string that represents the budget name. The ':' and '' characters aren\'t allowed.\n
:type TimePeriod: dict
:param TimePeriod: Retrieves how often the budget went into an ALARM state for the specified time period.\n\nStart (datetime) --The start date for a budget. If you created your budget and didn\'t specify a start date, AWS defaults to the start of your chosen time period (DAILY, MONTHLY, QUARTERLY, or ANNUALLY). For example, if you created your budget on January 24, 2018, chose DAILY , and didn\'t set a start date, AWS set your start date to 01/24/18 00:00 UTC . If you chose MONTHLY , AWS set your start date to 01/01/18 00:00 UTC . The defaults are the same for the AWS Billing and Cost Management console and the API.\nYou can change your start date with the UpdateBudget operation.\n\nEnd (datetime) --The end date for a budget. If you didn\'t specify an end date, AWS set your end date to 06/15/87 00:00 UTC . The defaults are the same for the AWS Billing and Cost Management console and the API.\nAfter the end date, AWS deletes the budget and all associated notifications and subscribers. You can change your end date with the UpdateBudget operation.\n\n\n
:type MaxResults: integer
:param MaxResults: An integer that represents how many entries a paginated response contains. The maximum is 100.
:type NextToken: string
:param NextToken: A generic string.
:rtype: dict
ReturnsResponse Syntax
{
'BudgetPerformanceHistory': {
'BudgetName': 'string',
'BudgetType': 'USAGE'|'COST'|'RI_UTILIZATION'|'RI_COVERAGE'|'SAVINGS_PLANS_UTILIZATION'|'SAVINGS_PLANS_COVERAGE',
'CostFilters': {
'string': [
'string',
]
},
'CostTypes': {
'IncludeTax': True|False,
'IncludeSubscription': True|False,
'UseBlended': True|False,
'IncludeRefund': True|False,
'IncludeCredit': True|False,
'IncludeUpfront': True|False,
'IncludeRecurring': True|False,
'IncludeOtherSubscription': True|False,
'IncludeSupport': True|False,
'IncludeDiscount': True|False,
'UseAmortized': True|False
},
'TimeUnit': 'DAILY'|'MONTHLY'|'QUARTERLY'|'ANNUALLY',
'BudgetedAndActualAmountsList': [
{
'BudgetedAmount': {
'Amount': 'string',
'Unit': 'string'
},
'ActualAmount': {
'Amount': 'string',
'Unit': 'string'
},
'TimePeriod': {
'Start': datetime(2015, 1, 1),
'End': datetime(2015, 1, 1)
}
},
]
},
'NextToken': 'string'
}
Response Structure
(dict) --
BudgetPerformanceHistory (dict) --
The history of how often the budget has gone into an ALARM state.
For DAILY budgets, the history saves the state of the budget for the last 60 days. For MONTHLY budgets, the history saves the state of the budget for the current month plus the last 12 months. For QUARTERLY budgets, the history saves the state of the budget for the last four quarters.
BudgetName (string) --
A string that represents the budget name. The ":" and "" characters aren\'t allowed.
BudgetType (string) --
The type of a budget. It must be one of the following types:
COST , USAGE , RI_UTILIZATION , or RI_COVERAGE .
CostFilters (dict) --
The history of the cost filters for a budget during the specified time period.
(string) --
A generic string.
(list) --
(string) --
A generic string.
CostTypes (dict) --
The history of the cost types for a budget during the specified time period.
IncludeTax (boolean) --
Specifies whether a budget includes taxes.
The default value is true .
IncludeSubscription (boolean) --
Specifies whether a budget includes subscriptions.
The default value is true .
UseBlended (boolean) --
Specifies whether a budget uses a blended rate.
The default value is false .
IncludeRefund (boolean) --
Specifies whether a budget includes refunds.
The default value is true .
IncludeCredit (boolean) --
Specifies whether a budget includes credits.
The default value is true .
IncludeUpfront (boolean) --
Specifies whether a budget includes upfront RI costs.
The default value is true .
IncludeRecurring (boolean) --
Specifies whether a budget includes recurring fees such as monthly RI fees.
The default value is true .
IncludeOtherSubscription (boolean) --
Specifies whether a budget includes non-RI subscription costs.
The default value is true .
IncludeSupport (boolean) --
Specifies whether a budget includes support subscription fees.
The default value is true .
IncludeDiscount (boolean) --
Specifies whether a budget includes discounts.
The default value is true .
UseAmortized (boolean) --
Specifies whether a budget uses the amortized rate.
The default value is false .
TimeUnit (string) --
The time unit of the budget, such as MONTHLY or QUARTERLY.
BudgetedAndActualAmountsList (list) --
A list of amounts of cost or usage that you created budgets for, compared to your actual costs or usage.
(dict) --
The amount of cost or usage that you created the budget for, compared to your actual costs or usage.
BudgetedAmount (dict) --
The amount of cost or usage that you created the budget for.
Amount (string) --
The cost or usage amount that is associated with a budget forecast, actual spend, or budget threshold.
Unit (string) --
The unit of measurement that is used for the budget forecast, actual spend, or budget threshold, such as dollars or GB.
ActualAmount (dict) --
Your actual costs or usage for a budget period.
Amount (string) --
The cost or usage amount that is associated with a budget forecast, actual spend, or budget threshold.
Unit (string) --
The unit of measurement that is used for the budget forecast, actual spend, or budget threshold, such as dollars or GB.
TimePeriod (dict) --
The time period covered by this budget comparison.
Start (datetime) --
The start date for a budget. If you created your budget and didn\'t specify a start date, AWS defaults to the start of your chosen time period (DAILY, MONTHLY, QUARTERLY, or ANNUALLY). For example, if you created your budget on January 24, 2018, chose DAILY , and didn\'t set a start date, AWS set your start date to 01/24/18 00:00 UTC . If you chose MONTHLY , AWS set your start date to 01/01/18 00:00 UTC . The defaults are the same for the AWS Billing and Cost Management console and the API.
You can change your start date with the UpdateBudget operation.
End (datetime) --
The end date for a budget. If you didn\'t specify an end date, AWS set your end date to 06/15/87 00:00 UTC . The defaults are the same for the AWS Billing and Cost Management console and the API.
After the end date, AWS deletes the budget and all associated notifications and subscribers. You can change your end date with the UpdateBudget operation.
NextToken (string) --
A generic string.
Exceptions
Budgets.Client.exceptions.InternalErrorException
Budgets.Client.exceptions.InvalidParameterException
Budgets.Client.exceptions.NotFoundException
Budgets.Client.exceptions.InvalidNextTokenException
Budgets.Client.exceptions.ExpiredNextTokenException
Budgets.Client.exceptions.AccessDeniedException
:return: {
'BudgetPerformanceHistory': {
'BudgetName': 'string',
'BudgetType': 'USAGE'|'COST'|'RI_UTILIZATION'|'RI_COVERAGE'|'SAVINGS_PLANS_UTILIZATION'|'SAVINGS_PLANS_COVERAGE',
'CostFilters': {
'string': [
'string',
]
},
'CostTypes': {
'IncludeTax': True|False,
'IncludeSubscription': True|False,
'UseBlended': True|False,
'IncludeRefund': True|False,
'IncludeCredit': True|False,
'IncludeUpfront': True|False,
'IncludeRecurring': True|False,
'IncludeOtherSubscription': True|False,
'IncludeSupport': True|False,
'IncludeDiscount': True|False,
'UseAmortized': True|False
},
'TimeUnit': 'DAILY'|'MONTHLY'|'QUARTERLY'|'ANNUALLY',
'BudgetedAndActualAmountsList': [
{
'BudgetedAmount': {
'Amount': 'string',
'Unit': 'string'
},
'ActualAmount': {
'Amount': 'string',
'Unit': 'string'
},
'TimePeriod': {
'Start': datetime(2015, 1, 1),
'End': datetime(2015, 1, 1)
}
},
]
},
'NextToken': 'string'
}
:returns:
Budgets.Client.exceptions.InternalErrorException
Budgets.Client.exceptions.InvalidParameterException
Budgets.Client.exceptions.NotFoundException
Budgets.Client.exceptions.InvalidNextTokenException
Budgets.Client.exceptions.ExpiredNextTokenException
Budgets.Client.exceptions.AccessDeniedException
"""
pass
def describe_budgets(AccountId=None, MaxResults=None, NextToken=None):
"""
Lists the budgets that are associated with an account.
See also: AWS API Documentation
Exceptions
:example: response = client.describe_budgets(
AccountId='string',
MaxResults=123,
NextToken='string'
)
:type AccountId: string
:param AccountId: [REQUIRED]\nThe accountId that is associated with the budgets that you want descriptions of.\n
:type MaxResults: integer
:param MaxResults: An optional integer that represents how many entries a paginated response contains. The maximum is 100.
:type NextToken: string
:param NextToken: The pagination token that you include in your request to indicate the next set of results that you want to retrieve.
:rtype: dict
ReturnsResponse Syntax
{
'Budgets': [
{
'BudgetName': 'string',
'BudgetLimit': {
'Amount': 'string',
'Unit': 'string'
},
'PlannedBudgetLimits': {
'string': {
'Amount': 'string',
'Unit': 'string'
}
},
'CostFilters': {
'string': [
'string',
]
},
'CostTypes': {
'IncludeTax': True|False,
'IncludeSubscription': True|False,
'UseBlended': True|False,
'IncludeRefund': True|False,
'IncludeCredit': True|False,
'IncludeUpfront': True|False,
'IncludeRecurring': True|False,
'IncludeOtherSubscription': True|False,
'IncludeSupport': True|False,
'IncludeDiscount': True|False,
'UseAmortized': True|False
},
'TimeUnit': 'DAILY'|'MONTHLY'|'QUARTERLY'|'ANNUALLY',
'TimePeriod': {
'Start': datetime(2015, 1, 1),
'End': datetime(2015, 1, 1)
},
'CalculatedSpend': {
'ActualSpend': {
'Amount': 'string',
'Unit': 'string'
},
'ForecastedSpend': {
'Amount': 'string',
'Unit': 'string'
}
},
'BudgetType': 'USAGE'|'COST'|'RI_UTILIZATION'|'RI_COVERAGE'|'SAVINGS_PLANS_UTILIZATION'|'SAVINGS_PLANS_COVERAGE',
'LastUpdatedTime': datetime(2015, 1, 1)
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
Response of DescribeBudgets
Budgets (list) --
A list of budgets.
(dict) --
Represents the output of the CreateBudget operation. The content consists of the detailed metadata and data file information, and the current status of the budget object.
This is the ARN pattern for a budget:
arn:aws:budgetservice::AccountId:budget/budgetName
BudgetName (string) --
The name of a budget. The name must be unique within an account. The : and \\ characters aren\'t allowed in BudgetName .
BudgetLimit (dict) --
The total amount of cost, usage, RI utilization, RI coverage, Savings Plans utilization, or Savings Plans coverage that you want to track with your budget.
BudgetLimit is required for cost or usage budgets, but optional for RI or Savings Plans utilization or coverage budgets. RI and Savings Plans utilization or coverage budgets default to 100 , which is the only valid value for RI or Savings Plans utilization or coverage budgets. You can\'t use BudgetLimit with PlannedBudgetLimits for CreateBudget and UpdateBudget actions.
Amount (string) --
The cost or usage amount that is associated with a budget forecast, actual spend, or budget threshold.
Unit (string) --
The unit of measurement that is used for the budget forecast, actual spend, or budget threshold, such as dollars or GB.
PlannedBudgetLimits (dict) --
A map containing multiple BudgetLimit , including current or future limits.
PlannedBudgetLimits is available for cost or usage budget and supports monthly and quarterly TimeUnit .
For monthly budgets, provide 12 months of PlannedBudgetLimits values. This must start from the current month and include the next 11 months. The key is the start of the month, UTC in epoch seconds.
For quarterly budgets, provide 4 quarters of PlannedBudgetLimits value entries in standard calendar quarter increments. This must start from the current quarter and include the next 3 quarters. The key is the start of the quarter, UTC in epoch seconds.
If the planned budget expires before 12 months for monthly or 4 quarters for quarterly, provide the PlannedBudgetLimits values only for the remaining periods.
If the budget begins at a date in the future, provide PlannedBudgetLimits values from the start date of the budget.
After all of the BudgetLimit values in PlannedBudgetLimits are used, the budget continues to use the last limit as the BudgetLimit . At that point, the planned budget provides the same experience as a fixed budget.
DescribeBudget and DescribeBudgets response along with PlannedBudgetLimits will also contain BudgetLimit representing the current month or quarter limit present in PlannedBudgetLimits . This only applies to budgets created with PlannedBudgetLimits . Budgets created without PlannedBudgetLimits will only contain BudgetLimit , and no PlannedBudgetLimits .
(string) --
A generic string.
(dict) --
The amount of cost or usage that is measured for a budget.
For example, a Spend for 3 GB of S3 usage would have the following parameters:
An Amount of 3
A unit of GB
Amount (string) --
The cost or usage amount that is associated with a budget forecast, actual spend, or budget threshold.
Unit (string) --
The unit of measurement that is used for the budget forecast, actual spend, or budget threshold, such as dollars or GB.
CostFilters (dict) --
The cost filters, such as service or tag, that are applied to a budget.
AWS Budgets supports the following services as a filter for RI budgets:
Amazon Elastic Compute Cloud - Compute
Amazon Redshift
Amazon Relational Database Service
Amazon ElastiCache
Amazon Elasticsearch Service
(string) --
A generic string.
(list) --
(string) --
A generic string.
CostTypes (dict) --
The types of costs that are included in this COST budget.
USAGE , RI_UTILIZATION , RI_COVERAGE , Savings_Plans_Utilization , and Savings_Plans_Coverage budgets do not have CostTypes .
IncludeTax (boolean) --
Specifies whether a budget includes taxes.
The default value is true .
IncludeSubscription (boolean) --
Specifies whether a budget includes subscriptions.
The default value is true .
UseBlended (boolean) --
Specifies whether a budget uses a blended rate.
The default value is false .
IncludeRefund (boolean) --
Specifies whether a budget includes refunds.
The default value is true .
IncludeCredit (boolean) --
Specifies whether a budget includes credits.
The default value is true .
IncludeUpfront (boolean) --
Specifies whether a budget includes upfront RI costs.
The default value is true .
IncludeRecurring (boolean) --
Specifies whether a budget includes recurring fees such as monthly RI fees.
The default value is true .
IncludeOtherSubscription (boolean) --
Specifies whether a budget includes non-RI subscription costs.
The default value is true .
IncludeSupport (boolean) --
Specifies whether a budget includes support subscription fees.
The default value is true .
IncludeDiscount (boolean) --
Specifies whether a budget includes discounts.
The default value is true .
UseAmortized (boolean) --
Specifies whether a budget uses the amortized rate.
The default value is false .
TimeUnit (string) --
The length of time until a budget resets the actual and forecasted spend. DAILY is available only for RI_UTILIZATION , RI_COVERAGE , Savings_Plans_Utilization , and Savings_Plans_Coverage budgets.
TimePeriod (dict) --
The period of time that is covered by a budget. The period has a start date and an end date. The start date must come before the end date. The end date must come before 06/15/87 00:00 UTC .
If you create your budget and don\'t specify a start date, AWS defaults to the start of your chosen time period (DAILY, MONTHLY, QUARTERLY, or ANNUALLY). For example, if you created your budget on January 24, 2018, chose DAILY , and didn\'t set a start date, AWS set your start date to 01/24/18 00:00 UTC . If you chose MONTHLY , AWS set your start date to 01/01/18 00:00 UTC . If you didn\'t specify an end date, AWS set your end date to 06/15/87 00:00 UTC . The defaults are the same for the AWS Billing and Cost Management console and the API.
You can change either date with the UpdateBudget operation.
After the end date, AWS deletes the budget and all associated notifications and subscribers.
Start (datetime) --
The start date for a budget. If you created your budget and didn\'t specify a start date, AWS defaults to the start of your chosen time period (DAILY, MONTHLY, QUARTERLY, or ANNUALLY). For example, if you created your budget on January 24, 2018, chose DAILY , and didn\'t set a start date, AWS set your start date to 01/24/18 00:00 UTC . If you chose MONTHLY , AWS set your start date to 01/01/18 00:00 UTC . The defaults are the same for the AWS Billing and Cost Management console and the API.
You can change your start date with the UpdateBudget operation.
End (datetime) --
The end date for a budget. If you didn\'t specify an end date, AWS set your end date to 06/15/87 00:00 UTC . The defaults are the same for the AWS Billing and Cost Management console and the API.
After the end date, AWS deletes the budget and all associated notifications and subscribers. You can change your end date with the UpdateBudget operation.
CalculatedSpend (dict) --
The actual and forecasted cost or usage that the budget tracks.
ActualSpend (dict) --
The amount of cost, usage, or RI units that you have used.
Amount (string) --
The cost or usage amount that is associated with a budget forecast, actual spend, or budget threshold.
Unit (string) --
The unit of measurement that is used for the budget forecast, actual spend, or budget threshold, such as dollars or GB.
ForecastedSpend (dict) --
The amount of cost, usage, or RI units that you are forecasted to use.
Amount (string) --
The cost or usage amount that is associated with a budget forecast, actual spend, or budget threshold.
Unit (string) --
The unit of measurement that is used for the budget forecast, actual spend, or budget threshold, such as dollars or GB.
BudgetType (string) --
Whether this budget tracks costs, usage, RI utilization, RI coverage, Savings Plans utilization, or Savings Plans coverage.
LastUpdatedTime (datetime) --
The last time that you updated this budget.
NextToken (string) --
The pagination token in the service response that indicates the next set of results that you can retrieve.
Exceptions
Budgets.Client.exceptions.InternalErrorException
Budgets.Client.exceptions.InvalidParameterException
Budgets.Client.exceptions.NotFoundException
Budgets.Client.exceptions.InvalidNextTokenException
Budgets.Client.exceptions.ExpiredNextTokenException
Budgets.Client.exceptions.AccessDeniedException
:return: {
'Budgets': [
{
'BudgetName': 'string',
'BudgetLimit': {
'Amount': 'string',
'Unit': 'string'
},
'PlannedBudgetLimits': {
'string': {
'Amount': 'string',
'Unit': 'string'
}
},
'CostFilters': {
'string': [
'string',
]
},
'CostTypes': {
'IncludeTax': True|False,
'IncludeSubscription': True|False,
'UseBlended': True|False,
'IncludeRefund': True|False,
'IncludeCredit': True|False,
'IncludeUpfront': True|False,
'IncludeRecurring': True|False,
'IncludeOtherSubscription': True|False,
'IncludeSupport': True|False,
'IncludeDiscount': True|False,
'UseAmortized': True|False
},
'TimeUnit': 'DAILY'|'MONTHLY'|'QUARTERLY'|'ANNUALLY',
'TimePeriod': {
'Start': datetime(2015, 1, 1),
'End': datetime(2015, 1, 1)
},
'CalculatedSpend': {
'ActualSpend': {
'Amount': 'string',
'Unit': 'string'
},
'ForecastedSpend': {
'Amount': 'string',
'Unit': 'string'
}
},
'BudgetType': 'USAGE'|'COST'|'RI_UTILIZATION'|'RI_COVERAGE'|'SAVINGS_PLANS_UTILIZATION'|'SAVINGS_PLANS_COVERAGE',
'LastUpdatedTime': datetime(2015, 1, 1)
},
],
'NextToken': 'string'
}
:returns:
An Amount of 3
A unit of GB
"""
pass
def describe_notifications_for_budget(AccountId=None, BudgetName=None, MaxResults=None, NextToken=None):
"""
Lists the notifications that are associated with a budget.
See also: AWS API Documentation
Exceptions
:example: response = client.describe_notifications_for_budget(
AccountId='string',
BudgetName='string',
MaxResults=123,
NextToken='string'
)
:type AccountId: string
:param AccountId: [REQUIRED]\nThe accountId that is associated with the budget whose notifications you want descriptions of.\n
:type BudgetName: string
:param BudgetName: [REQUIRED]\nThe name of the budget whose notifications you want descriptions of.\n
:type MaxResults: integer
:param MaxResults: An optional integer that represents how many entries a paginated response contains. The maximum is 100.
:type NextToken: string
:param NextToken: The pagination token that you include in your request to indicate the next set of results that you want to retrieve.
:rtype: dict
ReturnsResponse Syntax
{
'Notifications': [
{
'NotificationType': 'ACTUAL'|'FORECASTED',
'ComparisonOperator': 'GREATER_THAN'|'LESS_THAN'|'EQUAL_TO',
'Threshold': 123.0,
'ThresholdType': 'PERCENTAGE'|'ABSOLUTE_VALUE',
'NotificationState': 'OK'|'ALARM'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
Response of GetNotificationsForBudget
Notifications (list) --
A list of notifications that are associated with a budget.
(dict) --
A notification that is associated with a budget. A budget can have up to five notifications.
Each notification must have at least one subscriber. A notification can have one SNS subscriber and up to 10 email subscribers, for a total of 11 subscribers.
For example, if you have a budget for 200 dollars and you want to be notified when you go over 160 dollars, create a notification with the following parameters:
A notificationType of ACTUAL
A thresholdType of PERCENTAGE
A comparisonOperator of GREATER_THAN
A notification threshold of 80
NotificationType (string) --
Whether the notification is for how much you have spent (ACTUAL ) or for how much you\'re forecasted to spend (FORECASTED ).
ComparisonOperator (string) --
The comparison that is used for this notification.
Threshold (float) --
The threshold that is associated with a notification. Thresholds are always a percentage.
ThresholdType (string) --
The type of threshold for a notification. For ABSOLUTE_VALUE thresholds, AWS notifies you when you go over or are forecasted to go over your total cost threshold. For PERCENTAGE thresholds, AWS notifies you when you go over or are forecasted to go over a certain percentage of your forecasted spend. For example, if you have a budget for 200 dollars and you have a PERCENTAGE threshold of 80%, AWS notifies you when you go over 160 dollars.
NotificationState (string) --
Whether this notification is in alarm. If a budget notification is in the ALARM state, you have passed the set threshold for the budget.
NextToken (string) --
The pagination token in the service response that indicates the next set of results that you can retrieve.
Exceptions
Budgets.Client.exceptions.InternalErrorException
Budgets.Client.exceptions.InvalidParameterException
Budgets.Client.exceptions.NotFoundException
Budgets.Client.exceptions.InvalidNextTokenException
Budgets.Client.exceptions.ExpiredNextTokenException
Budgets.Client.exceptions.AccessDeniedException
:return: {
'Notifications': [
{
'NotificationType': 'ACTUAL'|'FORECASTED',
'ComparisonOperator': 'GREATER_THAN'|'LESS_THAN'|'EQUAL_TO',
'Threshold': 123.0,
'ThresholdType': 'PERCENTAGE'|'ABSOLUTE_VALUE',
'NotificationState': 'OK'|'ALARM'
},
],
'NextToken': 'string'
}
:returns:
A notificationType of ACTUAL
A thresholdType of PERCENTAGE
A comparisonOperator of GREATER_THAN
A notification threshold of 80
"""
pass
def describe_subscribers_for_notification(AccountId=None, BudgetName=None, Notification=None, MaxResults=None, NextToken=None):
"""
Lists the subscribers that are associated with a notification.
See also: AWS API Documentation
Exceptions
:example: response = client.describe_subscribers_for_notification(
AccountId='string',
BudgetName='string',
Notification={
'NotificationType': 'ACTUAL'|'FORECASTED',
'ComparisonOperator': 'GREATER_THAN'|'LESS_THAN'|'EQUAL_TO',
'Threshold': 123.0,
'ThresholdType': 'PERCENTAGE'|'ABSOLUTE_VALUE',
'NotificationState': 'OK'|'ALARM'
},
MaxResults=123,
NextToken='string'
)
:type AccountId: string
:param AccountId: [REQUIRED]\nThe accountId that is associated with the budget whose subscribers you want descriptions of.\n
:type BudgetName: string
:param BudgetName: [REQUIRED]\nThe name of the budget whose subscribers you want descriptions of.\n
:type Notification: dict
:param Notification: [REQUIRED]\nThe notification whose subscribers you want to list.\n\nNotificationType (string) -- [REQUIRED]Whether the notification is for how much you have spent (ACTUAL ) or for how much you\'re forecasted to spend (FORECASTED ).\n\nComparisonOperator (string) -- [REQUIRED]The comparison that is used for this notification.\n\nThreshold (float) -- [REQUIRED]The threshold that is associated with a notification. Thresholds are always a percentage.\n\nThresholdType (string) --The type of threshold for a notification. For ABSOLUTE_VALUE thresholds, AWS notifies you when you go over or are forecasted to go over your total cost threshold. For PERCENTAGE thresholds, AWS notifies you when you go over or are forecasted to go over a certain percentage of your forecasted spend. For example, if you have a budget for 200 dollars and you have a PERCENTAGE threshold of 80%, AWS notifies you when you go over 160 dollars.\n\nNotificationState (string) --Whether this notification is in alarm. If a budget notification is in the ALARM state, you have passed the set threshold for the budget.\n\n\n
:type MaxResults: integer
:param MaxResults: An optional integer that represents how many entries a paginated response contains. The maximum is 100.
:type NextToken: string
:param NextToken: The pagination token that you include in your request to indicate the next set of results that you want to retrieve.
:rtype: dict
ReturnsResponse Syntax
{
'Subscribers': [
{
'SubscriptionType': 'SNS'|'EMAIL',
'Address': 'string'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
Response of DescribeSubscribersForNotification
Subscribers (list) --
A list of subscribers that are associated with a notification.
(dict) --
The subscriber to a budget notification. The subscriber consists of a subscription type and either an Amazon SNS topic or an email address.
For example, an email subscriber would have the following parameters:
A subscriptionType of EMAIL
An address of example@example.com
SubscriptionType (string) --
The type of notification that AWS sends to a subscriber.
Address (string) --
The address that AWS sends budget notifications to, either an SNS topic or an email.
When you create a subscriber, the value of Address can\'t contain line breaks.
NextToken (string) --
The pagination token in the service response that indicates the next set of results that you can retrieve.
Exceptions
Budgets.Client.exceptions.InternalErrorException
Budgets.Client.exceptions.NotFoundException
Budgets.Client.exceptions.InvalidParameterException
Budgets.Client.exceptions.InvalidNextTokenException
Budgets.Client.exceptions.ExpiredNextTokenException
Budgets.Client.exceptions.AccessDeniedException
:return: {
'Subscribers': [
{
'SubscriptionType': 'SNS'|'EMAIL',
'Address': 'string'
},
],
'NextToken': 'string'
}
:returns:
A subscriptionType of EMAIL
An address of example@example.com
"""
pass
def generate_presigned_url(ClientMethod=None, Params=None, ExpiresIn=None, HttpMethod=None):
"""
Generate a presigned url given a client, its method, and arguments
:type ClientMethod: string
:param ClientMethod: The client method to presign for
:type Params: dict
:param Params: The parameters normally passed to\nClientMethod.
:type ExpiresIn: int
:param ExpiresIn: The number of seconds the presigned url is valid\nfor. By default it expires in an hour (3600 seconds)
:type HttpMethod: string
:param HttpMethod: The http method to use on the generated url. By\ndefault, the http method is whatever is used in the method\'s model.
"""
pass
def get_paginator(operation_name=None):
"""
Create a paginator for an operation.
:type operation_name: string
:param operation_name: The operation name. This is the same name\nas the method name on the client. For example, if the\nmethod name is create_foo, and you\'d normally invoke the\noperation as client.create_foo(**kwargs), if the\ncreate_foo operation can be paginated, you can use the\ncall client.get_paginator('create_foo').
:rtype: L{botocore.paginate.Paginator}
ReturnsA paginator object.
"""
pass
def get_waiter(waiter_name=None):
"""
Returns an object that can wait for some condition.
:type waiter_name: str
:param waiter_name: The name of the waiter to get. See the waiters\nsection of the service docs for a list of available waiters.
:rtype: botocore.waiter.Waiter
"""
pass
def update_budget(AccountId=None, NewBudget=None):
"""
Updates a budget. You can change every part of a budget except for the budgetName and the calculatedSpend . When you modify a budget, the calculatedSpend drops to zero until AWS has new usage data to use for forecasting.
See also: AWS API Documentation
Exceptions
:example: response = client.update_budget(
AccountId='string',
NewBudget={
'BudgetName': 'string',
'BudgetLimit': {
'Amount': 'string',
'Unit': 'string'
},
'PlannedBudgetLimits': {
'string': {
'Amount': 'string',
'Unit': 'string'
}
},
'CostFilters': {
'string': [
'string',
]
},
'CostTypes': {
'IncludeTax': True|False,
'IncludeSubscription': True|False,
'UseBlended': True|False,
'IncludeRefund': True|False,
'IncludeCredit': True|False,
'IncludeUpfront': True|False,
'IncludeRecurring': True|False,
'IncludeOtherSubscription': True|False,
'IncludeSupport': True|False,
'IncludeDiscount': True|False,
'UseAmortized': True|False
},
'TimeUnit': 'DAILY'|'MONTHLY'|'QUARTERLY'|'ANNUALLY',
'TimePeriod': {
'Start': datetime(2015, 1, 1),
'End': datetime(2015, 1, 1)
},
'CalculatedSpend': {
'ActualSpend': {
'Amount': 'string',
'Unit': 'string'
},
'ForecastedSpend': {
'Amount': 'string',
'Unit': 'string'
}
},
'BudgetType': 'USAGE'|'COST'|'RI_UTILIZATION'|'RI_COVERAGE'|'SAVINGS_PLANS_UTILIZATION'|'SAVINGS_PLANS_COVERAGE',
'LastUpdatedTime': datetime(2015, 1, 1)
}
)
:type AccountId: string
:param AccountId: [REQUIRED]\nThe accountId that is associated with the budget that you want to update.\n
:type NewBudget: dict
:param NewBudget: [REQUIRED]\nThe budget that you want to update your budget to.\n\nBudgetName (string) -- [REQUIRED]The name of a budget. The name must be unique within an account. The : and \\ characters aren\'t allowed in BudgetName .\n\nBudgetLimit (dict) --The total amount of cost, usage, RI utilization, RI coverage, Savings Plans utilization, or Savings Plans coverage that you want to track with your budget.\n\nBudgetLimit is required for cost or usage budgets, but optional for RI or Savings Plans utilization or coverage budgets. RI and Savings Plans utilization or coverage budgets default to 100 , which is the only valid value for RI or Savings Plans utilization or coverage budgets. You can\'t use BudgetLimit with PlannedBudgetLimits for CreateBudget and UpdateBudget actions.\n\nAmount (string) -- [REQUIRED]The cost or usage amount that is associated with a budget forecast, actual spend, or budget threshold.\n\nUnit (string) -- [REQUIRED]The unit of measurement that is used for the budget forecast, actual spend, or budget threshold, such as dollars or GB.\n\n\n\nPlannedBudgetLimits (dict) --A map containing multiple BudgetLimit , including current or future limits.\n\nPlannedBudgetLimits is available for cost or usage budget and supports monthly and quarterly TimeUnit .\nFor monthly budgets, provide 12 months of PlannedBudgetLimits values. This must start from the current month and include the next 11 months. The key is the start of the month, UTC in epoch seconds.\nFor quarterly budgets, provide 4 quarters of PlannedBudgetLimits value entries in standard calendar quarter increments. This must start from the current quarter and include the next 3 quarters. The key is the start of the quarter, UTC in epoch seconds.\nIf the planned budget expires before 12 months for monthly or 4 quarters for quarterly, provide the PlannedBudgetLimits values only for the remaining periods.\nIf the budget begins at a date in the future, provide PlannedBudgetLimits values from the start date of the budget.\nAfter all of the BudgetLimit values in PlannedBudgetLimits are used, the budget continues to use the last limit as the BudgetLimit . At that point, the planned budget provides the same experience as a fixed budget.\n\nDescribeBudget and DescribeBudgets response along with PlannedBudgetLimits will also contain BudgetLimit representing the current month or quarter limit present in PlannedBudgetLimits . This only applies to budgets created with PlannedBudgetLimits . Budgets created without PlannedBudgetLimits will only contain BudgetLimit , and no PlannedBudgetLimits .\n\n(string) --A generic string.\n\n(dict) --The amount of cost or usage that is measured for a budget.\nFor example, a Spend for 3 GB of S3 usage would have the following parameters:\n\nAn Amount of 3\nA unit of GB\n\n\nAmount (string) -- [REQUIRED]The cost or usage amount that is associated with a budget forecast, actual spend, or budget threshold.\n\nUnit (string) -- [REQUIRED]The unit of measurement that is used for the budget forecast, actual spend, or budget threshold, such as dollars or GB.\n\n\n\n\n\n\n\nCostFilters (dict) --The cost filters, such as service or tag, that are applied to a budget.\nAWS Budgets supports the following services as a filter for RI budgets:\n\nAmazon Elastic Compute Cloud - Compute\nAmazon Redshift\nAmazon Relational Database Service\nAmazon ElastiCache\nAmazon Elasticsearch Service\n\n\n(string) --A generic string.\n\n(list) --\n(string) --A generic string.\n\n\n\n\n\n\n\nCostTypes (dict) --The types of costs that are included in this COST budget.\n\nUSAGE , RI_UTILIZATION , RI_COVERAGE , Savings_Plans_Utilization , and Savings_Plans_Coverage budgets do not have CostTypes .\n\nIncludeTax (boolean) --Specifies whether a budget includes taxes.\nThe default value is true .\n\nIncludeSubscription (boolean) --Specifies whether a budget includes subscriptions.\nThe default value is true .\n\nUseBlended (boolean) --Specifies whether a budget uses a blended rate.\nThe default value is false .\n\nIncludeRefund (boolean) --Specifies whether a budget includes refunds.\nThe default value is true .\n\nIncludeCredit (boolean) --Specifies whether a budget includes credits.\nThe default value is true .\n\nIncludeUpfront (boolean) --Specifies whether a budget includes upfront RI costs.\nThe default value is true .\n\nIncludeRecurring (boolean) --Specifies whether a budget includes recurring fees such as monthly RI fees.\nThe default value is true .\n\nIncludeOtherSubscription (boolean) --Specifies whether a budget includes non-RI subscription costs.\nThe default value is true .\n\nIncludeSupport (boolean) --Specifies whether a budget includes support subscription fees.\nThe default value is true .\n\nIncludeDiscount (boolean) --Specifies whether a budget includes discounts.\nThe default value is true .\n\nUseAmortized (boolean) --Specifies whether a budget uses the amortized rate.\nThe default value is false .\n\n\n\nTimeUnit (string) -- [REQUIRED]The length of time until a budget resets the actual and forecasted spend. DAILY is available only for RI_UTILIZATION , RI_COVERAGE , Savings_Plans_Utilization , and Savings_Plans_Coverage budgets.\n\nTimePeriod (dict) --The period of time that is covered by a budget. The period has a start date and an end date. The start date must come before the end date. The end date must come before 06/15/87 00:00 UTC .\nIf you create your budget and don\'t specify a start date, AWS defaults to the start of your chosen time period (DAILY, MONTHLY, QUARTERLY, or ANNUALLY). For example, if you created your budget on January 24, 2018, chose DAILY , and didn\'t set a start date, AWS set your start date to 01/24/18 00:00 UTC . If you chose MONTHLY , AWS set your start date to 01/01/18 00:00 UTC . If you didn\'t specify an end date, AWS set your end date to 06/15/87 00:00 UTC . The defaults are the same for the AWS Billing and Cost Management console and the API.\nYou can change either date with the UpdateBudget operation.\nAfter the end date, AWS deletes the budget and all associated notifications and subscribers.\n\nStart (datetime) --The start date for a budget. If you created your budget and didn\'t specify a start date, AWS defaults to the start of your chosen time period (DAILY, MONTHLY, QUARTERLY, or ANNUALLY). For example, if you created your budget on January 24, 2018, chose DAILY , and didn\'t set a start date, AWS set your start date to 01/24/18 00:00 UTC . If you chose MONTHLY , AWS set your start date to 01/01/18 00:00 UTC . The defaults are the same for the AWS Billing and Cost Management console and the API.\nYou can change your start date with the UpdateBudget operation.\n\nEnd (datetime) --The end date for a budget. If you didn\'t specify an end date, AWS set your end date to 06/15/87 00:00 UTC . The defaults are the same for the AWS Billing and Cost Management console and the API.\nAfter the end date, AWS deletes the budget and all associated notifications and subscribers. You can change your end date with the UpdateBudget operation.\n\n\n\nCalculatedSpend (dict) --The actual and forecasted cost or usage that the budget tracks.\n\nActualSpend (dict) -- [REQUIRED]The amount of cost, usage, or RI units that you have used.\n\nAmount (string) -- [REQUIRED]The cost or usage amount that is associated with a budget forecast, actual spend, or budget threshold.\n\nUnit (string) -- [REQUIRED]The unit of measurement that is used for the budget forecast, actual spend, or budget threshold, such as dollars or GB.\n\n\n\nForecastedSpend (dict) --The amount of cost, usage, or RI units that you are forecasted to use.\n\nAmount (string) -- [REQUIRED]The cost or usage amount that is associated with a budget forecast, actual spend, or budget threshold.\n\nUnit (string) -- [REQUIRED]The unit of measurement that is used for the budget forecast, actual spend, or budget threshold, such as dollars or GB.\n\n\n\n\n\nBudgetType (string) -- [REQUIRED]Whether this budget tracks costs, usage, RI utilization, RI coverage, Savings Plans utilization, or Savings Plans coverage.\n\nLastUpdatedTime (datetime) --The last time that you updated this budget.\n\n\n
:rtype: dict
ReturnsResponse Syntax
{}
Response Structure
(dict) --
Response of UpdateBudget
Exceptions
Budgets.Client.exceptions.InternalErrorException
Budgets.Client.exceptions.InvalidParameterException
Budgets.Client.exceptions.NotFoundException
Budgets.Client.exceptions.AccessDeniedException
:return: {}
:returns:
Budgets.Client.exceptions.InternalErrorException
Budgets.Client.exceptions.InvalidParameterException
Budgets.Client.exceptions.NotFoundException
Budgets.Client.exceptions.AccessDeniedException
"""
pass
def update_notification(AccountId=None, BudgetName=None, OldNotification=None, NewNotification=None):
"""
Updates a notification.
See also: AWS API Documentation
Exceptions
:example: response = client.update_notification(
AccountId='string',
BudgetName='string',
OldNotification={
'NotificationType': 'ACTUAL'|'FORECASTED',
'ComparisonOperator': 'GREATER_THAN'|'LESS_THAN'|'EQUAL_TO',
'Threshold': 123.0,
'ThresholdType': 'PERCENTAGE'|'ABSOLUTE_VALUE',
'NotificationState': 'OK'|'ALARM'
},
NewNotification={
'NotificationType': 'ACTUAL'|'FORECASTED',
'ComparisonOperator': 'GREATER_THAN'|'LESS_THAN'|'EQUAL_TO',
'Threshold': 123.0,
'ThresholdType': 'PERCENTAGE'|'ABSOLUTE_VALUE',
'NotificationState': 'OK'|'ALARM'
}
)
:type AccountId: string
:param AccountId: [REQUIRED]\nThe accountId that is associated with the budget whose notification you want to update.\n
:type BudgetName: string
:param BudgetName: [REQUIRED]\nThe name of the budget whose notification you want to update.\n
:type OldNotification: dict
:param OldNotification: [REQUIRED]\nThe previous notification that is associated with a budget.\n\nNotificationType (string) -- [REQUIRED]Whether the notification is for how much you have spent (ACTUAL ) or for how much you\'re forecasted to spend (FORECASTED ).\n\nComparisonOperator (string) -- [REQUIRED]The comparison that is used for this notification.\n\nThreshold (float) -- [REQUIRED]The threshold that is associated with a notification. Thresholds are always a percentage.\n\nThresholdType (string) --The type of threshold for a notification. For ABSOLUTE_VALUE thresholds, AWS notifies you when you go over or are forecasted to go over your total cost threshold. For PERCENTAGE thresholds, AWS notifies you when you go over or are forecasted to go over a certain percentage of your forecasted spend. For example, if you have a budget for 200 dollars and you have a PERCENTAGE threshold of 80%, AWS notifies you when you go over 160 dollars.\n\nNotificationState (string) --Whether this notification is in alarm. If a budget notification is in the ALARM state, you have passed the set threshold for the budget.\n\n\n
:type NewNotification: dict
:param NewNotification: [REQUIRED]\nThe updated notification to be associated with a budget.\n\nNotificationType (string) -- [REQUIRED]Whether the notification is for how much you have spent (ACTUAL ) or for how much you\'re forecasted to spend (FORECASTED ).\n\nComparisonOperator (string) -- [REQUIRED]The comparison that is used for this notification.\n\nThreshold (float) -- [REQUIRED]The threshold that is associated with a notification. Thresholds are always a percentage.\n\nThresholdType (string) --The type of threshold for a notification. For ABSOLUTE_VALUE thresholds, AWS notifies you when you go over or are forecasted to go over your total cost threshold. For PERCENTAGE thresholds, AWS notifies you when you go over or are forecasted to go over a certain percentage of your forecasted spend. For example, if you have a budget for 200 dollars and you have a PERCENTAGE threshold of 80%, AWS notifies you when you go over 160 dollars.\n\nNotificationState (string) --Whether this notification is in alarm. If a budget notification is in the ALARM state, you have passed the set threshold for the budget.\n\n\n
:rtype: dict
ReturnsResponse Syntax
{}
Response Structure
(dict) --
Response of UpdateNotification
Exceptions
Budgets.Client.exceptions.InternalErrorException
Budgets.Client.exceptions.InvalidParameterException
Budgets.Client.exceptions.NotFoundException
Budgets.Client.exceptions.DuplicateRecordException
Budgets.Client.exceptions.AccessDeniedException
:return: {}
:returns:
Budgets.Client.exceptions.InternalErrorException
Budgets.Client.exceptions.InvalidParameterException
Budgets.Client.exceptions.NotFoundException
Budgets.Client.exceptions.DuplicateRecordException
Budgets.Client.exceptions.AccessDeniedException
"""
pass
def update_subscriber(AccountId=None, BudgetName=None, Notification=None, OldSubscriber=None, NewSubscriber=None):
"""
Updates a subscriber.
See also: AWS API Documentation
Exceptions
:example: response = client.update_subscriber(
AccountId='string',
BudgetName='string',
Notification={
'NotificationType': 'ACTUAL'|'FORECASTED',
'ComparisonOperator': 'GREATER_THAN'|'LESS_THAN'|'EQUAL_TO',
'Threshold': 123.0,
'ThresholdType': 'PERCENTAGE'|'ABSOLUTE_VALUE',
'NotificationState': 'OK'|'ALARM'
},
OldSubscriber={
'SubscriptionType': 'SNS'|'EMAIL',
'Address': 'string'
},
NewSubscriber={
'SubscriptionType': 'SNS'|'EMAIL',
'Address': 'string'
}
)
:type AccountId: string
:param AccountId: [REQUIRED]\nThe accountId that is associated with the budget whose subscriber you want to update.\n
:type BudgetName: string
:param BudgetName: [REQUIRED]\nThe name of the budget whose subscriber you want to update.\n
:type Notification: dict
:param Notification: [REQUIRED]\nThe notification whose subscriber you want to update.\n\nNotificationType (string) -- [REQUIRED]Whether the notification is for how much you have spent (ACTUAL ) or for how much you\'re forecasted to spend (FORECASTED ).\n\nComparisonOperator (string) -- [REQUIRED]The comparison that is used for this notification.\n\nThreshold (float) -- [REQUIRED]The threshold that is associated with a notification. Thresholds are always a percentage.\n\nThresholdType (string) --The type of threshold for a notification. For ABSOLUTE_VALUE thresholds, AWS notifies you when you go over or are forecasted to go over your total cost threshold. For PERCENTAGE thresholds, AWS notifies you when you go over or are forecasted to go over a certain percentage of your forecasted spend. For example, if you have a budget for 200 dollars and you have a PERCENTAGE threshold of 80%, AWS notifies you when you go over 160 dollars.\n\nNotificationState (string) --Whether this notification is in alarm. If a budget notification is in the ALARM state, you have passed the set threshold for the budget.\n\n\n
:type OldSubscriber: dict
:param OldSubscriber: [REQUIRED]\nThe previous subscriber that is associated with a budget notification.\n\nSubscriptionType (string) -- [REQUIRED]The type of notification that AWS sends to a subscriber.\n\nAddress (string) -- [REQUIRED]The address that AWS sends budget notifications to, either an SNS topic or an email.\nWhen you create a subscriber, the value of Address can\'t contain line breaks.\n\n\n
:type NewSubscriber: dict
:param NewSubscriber: [REQUIRED]\nThe updated subscriber that is associated with a budget notification.\n\nSubscriptionType (string) -- [REQUIRED]The type of notification that AWS sends to a subscriber.\n\nAddress (string) -- [REQUIRED]The address that AWS sends budget notifications to, either an SNS topic or an email.\nWhen you create a subscriber, the value of Address can\'t contain line breaks.\n\n\n
:rtype: dict
ReturnsResponse Syntax
{}
Response Structure
(dict) --
Response of UpdateSubscriber
Exceptions
Budgets.Client.exceptions.InternalErrorException
Budgets.Client.exceptions.InvalidParameterException
Budgets.Client.exceptions.NotFoundException
Budgets.Client.exceptions.DuplicateRecordException
Budgets.Client.exceptions.AccessDeniedException
:return: {}
:returns:
Budgets.Client.exceptions.InternalErrorException
Budgets.Client.exceptions.InvalidParameterException
Budgets.Client.exceptions.NotFoundException
Budgets.Client.exceptions.DuplicateRecordException
Budgets.Client.exceptions.AccessDeniedException
"""
pass
| 46.597543
| 8,194
| 0.706009
| 12,112
| 94,826
| 5.509412
| 0.048547
| 0.015945
| 0.041361
| 0.019781
| 0.923782
| 0.915675
| 0.913442
| 0.902652
| 0.897437
| 0.892642
| 0
| 0.010666
| 0.218885
| 94,826
| 2,034
| 8,195
| 46.620452
| 0.890239
| 0.97391
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0.5
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 10
|
74ad8f5b5a671e1f4bd36236a71a8531b02ec93b
| 2,018
|
py
|
Python
|
send2ue/ui/importer.py
|
snadax/CS-MoveIt
|
cda75d8026f7a23615585020ac622b3edcbd389d
|
[
"MIT"
] | null | null | null |
send2ue/ui/importer.py
|
snadax/CS-MoveIt
|
cda75d8026f7a23615585020ac622b3edcbd389d
|
[
"MIT"
] | null | null | null |
send2ue/ui/importer.py
|
snadax/CS-MoveIt
|
cda75d8026f7a23615585020ac622b3edcbd389d
|
[
"MIT"
] | null | null | null |
# Copyright Epic Games, Inc. All Rights Reserved.
import bpy
from bpy_extras.io_utils import ImportHelper
class ImportAsset(ImportHelper):
"""
This class subclasses the export helper to define a custom file browser
"""
bl_idname = "send2ue.import_asset"
bl_label = "Import Asset"
filter_glob: bpy.props.StringProperty(
default="*.fbx",
options={"HIDDEN"},
subtype="FILE_PATH",
)
def draw(self, context):
"""
This function overrides the draw method in the ImportHelper class. The draw method is the function that
defines the user interface layout and gets updated routinely.
:param object context: The window context.
"""
module_name = bpy.context.window_manager.send2ue.module_name
properties = bpy.context.preferences.addons[module_name].preferences
layout = self.layout
row = layout.row()
row.label(text="Source Application:")
row = layout.row()
row.prop(properties, "source_application", text='')
class ImportJson(ImportHelper):
"""
This class subclasses the export helper to define a custom file browser
"""
bl_idname = "send2ue.import_asset"
bl_label = "Import Asset"
filter_glob: bpy.props.StringProperty(
default="*.json",
options={"HIDDEN"},
subtype="FILE_PATH",
)
def draw(self, context):
"""
This function overrides the draw method in the ImportHelper class. The draw method is the function that
defines the user interface layout and gets updated routinely.
:param object context: The window context.
"""
module_name = bpy.context.window_manager.send2ue.module_name
properties = bpy.context.preferences.addons[module_name].preferences
layout = self.layout
row = layout.row()
row.label(text="Source Application:")
row = layout.row()
row.prop(properties, "source_application", text='')
| 31.53125
| 111
| 0.654609
| 234
| 2,018
| 5.551282
| 0.324786
| 0.046189
| 0.040031
| 0.046189
| 0.905312
| 0.905312
| 0.905312
| 0.905312
| 0.905312
| 0.905312
| 0
| 0.002653
| 0.252725
| 2,018
| 64
| 112
| 31.53125
| 0.858753
| 0.303271
| 0
| 0.764706
| 0
| 0
| 0.137904
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.058824
| false
| 0
| 0.235294
| 0
| 0.529412
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 8
|
2d2fd46fd480321ecfe9a9a61efb173446097a14
| 31,248
|
py
|
Python
|
src/Converter/Tests/IdmefMessageString.py
|
CSIRT-MU/IDEA-IDMEF-Converter
|
0dbdc70527a815f8bd071fd10ce14251add1aa52
|
[
"BSD-3-Clause"
] | null | null | null |
src/Converter/Tests/IdmefMessageString.py
|
CSIRT-MU/IDEA-IDMEF-Converter
|
0dbdc70527a815f8bd071fd10ce14251add1aa52
|
[
"BSD-3-Clause"
] | null | null | null |
src/Converter/Tests/IdmefMessageString.py
|
CSIRT-MU/IDEA-IDMEF-Converter
|
0dbdc70527a815f8bd071fd10ce14251add1aa52
|
[
"BSD-3-Clause"
] | 2
|
2017-08-24T20:33:55.000Z
|
2021-04-15T08:50:12.000Z
|
def get_idmef_string():
return """<?xml version="1.0" encoding="UTF-8"?>
<idmef:IDMEF-Message version="1.0"
xmlns:idmef="http://iana.org/idmef">
<idmef:Alert messageid="123d45">
<idmef:Analyzer analyzerid="5468" name="DetectorExample" manufacturer="Great s.r.o" model="detector great"
version="2.0" class="highest" ostype="Linux" osversion="4.4.0-31-generic">
<idmef:Node ident="6" category="hosts">
<idmef:location>
Location of the equipment
</idmef:location>
<idmef:name>
Name of the equipment
</idmef:name>
<idmef:Address ident="11" category="ipv4-addr" vlan-name="Virtual LAN example name" vlan-num="3">
<idmef:address>
93.184.216.119
</idmef:address>
<idmef:netmask>
255.0.0.0
</idmef:netmask>
</idmef:Address>
<idmef:Address ident="12" category="ipv4-addr" vlan-name="Virtual LAN example name" vlan-num="4">
<idmef:address>
100.184.216.119
</idmef:address>
<idmef:netmask>
255.255.0.0
</idmef:netmask>
</idmef:Address>
</idmef:Node>
<idmef:Process ident="29">
<idmef:name>
Program
</idmef:name>
<idmef:pid>
1482
</idmef:pid>
<idmef:path>
/path/to/program
</idmef:path>
<idmef:arg>
cmdarg1
</idmef:arg>
<idmef:arg>
cmdarg2
</idmef:arg>
<idmef:env>
VAR1=first
</idmef:env>
<idmef:env>
VAR2=second
</idmef:env>
</idmef:Process>
</idmef:Analyzer>
<idmef:CreateTime ntpstamp="0xbc723b45.0xef449129">
2000-03-09T10:01:25.93464-05:00
</idmef:CreateTime>
<idmef:Classification ident="1" text="Phishing">
<idmef:Reference origin="vendor-specific" meaning="meaning of reference">
<idmef:name>
Name of alert
</idmef:name>
<idmef:url>
ref.example.com
</idmef:url>
</idmef:Reference>
</idmef:Classification>
<idmef:DetectTime ntpstamp="2017-03-04T15:10:52.86445Z">
2017-03-04T15:10:52.86445Z
</idmef:DetectTime>
<idmef:AnalyzerTime ntpstamp="2017-03-03T19:10:52.86445Z">
2017-03-03T19:10:52.86445Z
</idmef:AnalyzerTime>
<idmef:Source ident="2" spoofed="yes" interface="interfaceExample">
<idmef:Node ident="7" category="coda">
<idmef:location>
Second location of the equipment
</idmef:location>
<idmef:name>
Second name of the equipment
</idmef:name>
<idmef:Address ident="13" category="ipv6-addr" vlan-name="Virtual LAN example name" vlan-num="3">
<idmef:address>
2001:db8:a::123/64
</idmef:address>
<idmef:netmask>
255.0.0.0
</idmef:netmask>
</idmef:Address>
<idmef:Address ident="14" category="ipv4-addr" vlan-name="Virtual LAN example name" vlan-num="4">
<idmef:address>
100.184.216.130
</idmef:address>
<idmef:netmask>
255.255.0.0
</idmef:netmask>
</idmef:Address>
</idmef:Node>
<idmef:User ident="21" category="application">
<idmef:UserId ident="22" type="current-user" tty="/dev/pts/0">
<idmef:name>
UserName
</idmef:name>
<idmef:number>
51
</idmef:number>
</idmef:UserId>
</idmef:User>
<idmef:Process ident="30">
<idmef:name>
SourceProgram
</idmef:name>
<idmef:pid>
1152
</idmef:pid>
<idmef:path>
/path/to/sourceprogram
</idmef:path>
<idmef:arg>
cmdarg1
</idmef:arg>
<idmef:arg>
cmdarg2
</idmef:arg>
<idmef:env>
VARSRC1=first
</idmef:env>
<idmef:env>
VARSRC2=second
</idmef:env>
</idmef:Process>
<idmef:Service ident="34" ip_version="4" iana_protocol_number="100" iana_protocol_name="protocolexample">
<idmef:name>
ServiceName
</idmef:name>
<idmef:port>
154
</idmef:port>
<idmef:protocol>
Additional info of protocol
</idmef:protocol>
<idmef:SNMPService>
<idmef:oid>
objectident1
</idmef:oid>
<idmef:messageProcessingModel>
2
</idmef:messageProcessingModel>
<idmef:securityModel>
1
</idmef:securityModel>
<idmef:securityName>
SecuritynameExample
</idmef:securityName>
<idmef:securityLevel>
1
</idmef:securityLevel>
<idmef:contextName>
ContextnameExample
</idmef:contextName>
<idmef:contextEngineID>
ContextEngineID1
</idmef:contextEngineID>
<idmef:command>
GET
</idmef:command>
</idmef:SNMPService>
<idmef:WebService>
<idmef:url>
service.example.com
</idmef:url>
<idmef:cgi>
CGI script example
</idmef:cgi>
<idmef:http-method>
GET
</idmef:http-method>
<idmef:arg>
Argument1ToScript
</idmef:arg>
<idmef:arg>
Argument2ToScript
</idmef:arg>
</idmef:WebService>
</idmef:Service>
</idmef:Source>
<idmef:Source ident="3" spoofed="unknown" interface="interfaceExample2">
<idmef:Node ident="8" category="dns">
<idmef:location>
Third location of the equipment
</idmef:location>
<idmef:name>
Third name of the equipment
</idmef:name>
<idmef:Address ident="15" category="ipv4-addr" vlan-name="Virtual LAN example name" vlan-num="10">
<idmef:address>
78.184.216.119
</idmef:address>
<idmef:netmask>
255.255.154.0
</idmef:netmask>
</idmef:Address>
<idmef:Address ident="16" category="e-mail" vlan-name="Virtual LAN example name" vlan-num="4">
<idmef:address>
example@example.com
</idmef:address>
<idmef:netmask>
255.255.252.0
</idmef:netmask>
</idmef:Address>
</idmef:Node>
<idmef:User ident="23" category="os-device">
<idmef:UserId ident="24" type="current-group" tty="/dev/pts/0">
<idmef:name>
GroupName
</idmef:name>
<idmef:number>
14
</idmef:number>
</idmef:UserId>
</idmef:User>
<idmef:Process ident="31">
<idmef:name>
SourceProgram2
</idmef:name>
<idmef:pid>
1482
</idmef:pid>
<idmef:path>
/path/to/sourceprogram2
</idmef:path>
<idmef:arg>
cmdarg1
</idmef:arg>
<idmef:arg>
cmdarg2
</idmef:arg>
<idmef:env>
VARSRC1=first
</idmef:env>
<idmef:env>
VARSRC2=second
</idmef:env>
</idmef:Process>
<idmef:Service ident="35" ip_version="4" iana_protocol_number="150" iana_protocol_name="protocolexample2">
<idmef:name>
ServiceName2
</idmef:name>
<idmef:port>
158
</idmef:port>
<idmef:protocol>
Additional info of protocol
</idmef:protocol>
<idmef:SNMPService>
<idmef:oid>
objectident2
</idmef:oid>
<idmef:messageProcessingModel>
3
</idmef:messageProcessingModel>
<idmef:securityModel>
2
</idmef:securityModel>
<idmef:securityName>
SecuritynameExample
</idmef:securityName>
<idmef:securityLevel>
1
</idmef:securityLevel>
<idmef:contextName>
ContextnameExample1
</idmef:contextName>
<idmef:contextEngineID>
ContextEngineID2
</idmef:contextEngineID>
<idmef:command>
GET
</idmef:command>
</idmef:SNMPService>
<idmef:WebService>
<idmef:url>
service.example.com
</idmef:url>
<idmef:cgi>
CGI script example
</idmef:cgi>
<idmef:http-method>
GET
</idmef:http-method>
<idmef:arg>
Argument1ToScript
</idmef:arg>
<idmef:arg>
Argument2ToScript
</idmef:arg>
</idmef:WebService>
</idmef:Service>
</idmef:Source>
<idmef:Target ident="4" decoy="no" interface="interfaceExample3">
<idmef:Node ident="9" category="kerberos">
<idmef:location>
Fourth location of the equipment
</idmef:location>
<idmef:name>
Fourth name of the equipment
</idmef:name>
<idmef:Address ident="17" category="ipv4-addr" vlan-name="Virtual LAN example name" vlan-num="1">
<idmef:address>
98.184.216.119
</idmef:address>
<idmef:netmask>
255.255.0.0
</idmef:netmask>
</idmef:Address>
<idmef:Address ident="18" category="ipv4-addr" vlan-name="Virtual LAN example name" vlan-num="4">
<idmef:address>
100.89.114.119
</idmef:address>
<idmef:netmask>
255.0.0.0
</idmef:netmask>
</idmef:Address>
</idmef:Node>
<idmef:User ident="25" category="os-device">
<idmef:UserId ident="26" type="original-user" tty="/dev/pts/0">
<idmef:name>
NextUserName
</idmef:name>
<idmef:number>
26
</idmef:number>
</idmef:UserId>
</idmef:User>
<idmef:Process ident="32">
<idmef:name>
TargetProgram
</idmef:name>
<idmef:pid>
1692
</idmef:pid>
<idmef:path>
/path/to/targetprogram
</idmef:path>
<idmef:arg>
cmdarg1
</idmef:arg>
<idmef:arg>
cmdarg2
</idmef:arg>
<idmef:env>
VARTRG1=first
</idmef:env>
<idmef:env>
VARTRG2=second
</idmef:env>
</idmef:Process>
<idmef:Service ident="36" ip_version="4" iana_protocol_number="152" iana_protocol_name="protocolexample3">
<idmef:name>
ServiceName3
</idmef:name>
<idmef:port>
80
</idmef:port>
<idmef:protocol>
Additional info of protocol
</idmef:protocol>
<idmef:SNMPService>
<idmef:oid>
objectident3
</idmef:oid>
<idmef:messageProcessingModel>
3
</idmef:messageProcessingModel>
<idmef:securityModel>
2
</idmef:securityModel>
<idmef:securityName>
SecuritynameExample3
</idmef:securityName>
<idmef:securityLevel>
1
</idmef:securityLevel>
<idmef:contextName>
ContextnameExample3
</idmef:contextName>
<idmef:contextEngineID>
ContextEngineID3
</idmef:contextEngineID>
<idmef:command>
GET
</idmef:command>
</idmef:SNMPService>
<idmef:WebService>
<idmef:url>
service.example.com
</idmef:url>
<idmef:cgi>
CGI script example
</idmef:cgi>
<idmef:http-method>
GET
</idmef:http-method>
<idmef:arg>
Argument1ToScript
</idmef:arg>
<idmef:arg>
Argument2ToScript
</idmef:arg>
</idmef:WebService>
</idmef:Service>
<idmef:File ident="62" category="current" fstype="ufs" file-type="Filetype">
<idmef:name>
FileName
</idmef:name>
<idmef:path>
fileserver:/path/to/FileName
</idmef:path>
<idmef:create-time>
2017-10-25T11:00:51
</idmef:create-time>
<idmef:modify-time>
2017-10-25T11:00:52
</idmef:modify-time>
<idmef:access-time>
2017-10-25T11:00:53
</idmef:access-time>
<idmef:data-size>
542
</idmef:data-size>
<idmef:disk-size>
546
</idmef:disk-size>
<idmef:FileAccess>
<idmef:UserId ident="60" type="user-privs" tty="/dev/pts/0">
<idmef:name>
LastUserName
</idmef:name>
<idmef:number>
30
</idmef:number>
</idmef:UserId>
<idmef:Permission perms="read">
</idmef:Permission>
<idmef:Permission perms="write">
</idmef:Permission>
</idmef:FileAccess>
<idmef:Linkage category="hard-link">
<idmef:name>
FsObject
</idmef:name>
<idmef:path>
/path/to/FsObject
</idmef:path>
</idmef:Linkage>
<idmef:Inode>
<idmef:change-time>
2017-10-25T11:00:58
</idmef:change-time>
<idmef:number>
5268
</idmef:number>
<idmef:c-major-device>
2173
</idmef:c-major-device>
</idmef:Inode>
<idmef:Checksum algorithm="SHA1">
<idmef:value>
794467071687f7c59d033f4de5ece6b46415b601
</idmef:value>
<idmef:key>
chckey
</idmef:key>
</idmef:Checksum>
</idmef:File>
<idmef:File ident="63" category="current" fstype="ufs" file-type="Filetype">
<idmef:name>
FileName
</idmef:name>
<idmef:path>
fileserver:/path/to/FileName
</idmef:path>
<idmef:create-time>
2017-10-25T11:00:51
</idmef:create-time>
<idmef:modify-time>
2017-10-25T11:00:52
</idmef:modify-time>
<idmef:access-time>
2017-10-25T11:00:53
</idmef:access-time>
<idmef:data-size>
542
</idmef:data-size>
<idmef:disk-size>
546
</idmef:disk-size>
<idmef:FileAccess>
<idmef:UserId ident="51" type="user-privs" tty="/dev/pts/0">
<idmef:name>
LastUserName
</idmef:name>
<idmef:number>
30
</idmef:number>
</idmef:UserId>
<idmef:Permission perms="read">
</idmef:Permission>
<idmef:Permission perms="write">
</idmef:Permission>
</idmef:FileAccess>
<idmef:Linkage category="hard-link">
<idmef:name>
FsObject
</idmef:name>
<idmef:path>
/path/to/FsObject
</idmef:path>
</idmef:Linkage>
<idmef:Inode>
<idmef:change-time>
2017-10-25T11:00:58
</idmef:change-time>
<idmef:number>
5268
</idmef:number>
<idmef:c-major-device>
2173
</idmef:c-major-device>
</idmef:Inode>
<idmef:Checksum algorithm="SHA1">
<idmef:value>
794467071687f7c59d033f4de5ece6b46415b601
</idmef:value>
<idmef:key>
chckey
</idmef:key>
</idmef:Checksum>
</idmef:File>
</idmef:Target>
<idmef:Target ident="5" decoy="yes" interface="interfaceExample4">
<idmef:Node ident="10" category="hosts">
<idmef:location>
Fifth location of the equipment
</idmef:location>
<idmef:name>
Fifth name of the equipment
</idmef:name>
<idmef:Address ident="19" category="ipv4-addr" vlan-name="Virtual LAN example name" vlan-num="4">
<idmef:address>
100.184.216.119
</idmef:address>
<idmef:netmask>
255.255.0.0
</idmef:netmask>
</idmef:Address>
<idmef:Address ident="20" category="e-mail" vlan-name="Virtual LAN example name" vlan-num="1">
<idmef:address>
example2@example.com
</idmef:address>
<idmef:netmask>
255.255.255.10
</idmef:netmask>
</idmef:Address>
</idmef:Node>
<idmef:User ident="27" category="os-device">
<idmef:UserId ident="28" type="target-user" tty="/dev/pts/0">
<idmef:name>
LastUserName
</idmef:name>
<idmef:number>
30
</idmef:number>
</idmef:UserId>
</idmef:User>
<idmef:Process ident="33">
<idmef:name>
TargetProgram2
</idmef:name>
<idmef:pid>
2103
</idmef:pid>
<idmef:path>
/path/to/targetprogram2
</idmef:path>
<idmef:arg>
cmdarg1
</idmef:arg>
<idmef:arg>
cmdarg2
</idmef:arg>
<idmef:env>
VARTRG1=first
</idmef:env>
<idmef:env>
VARTRG2=second
</idmef:env>
</idmef:Process>
<idmef:Service ident="37" ip_version="4" iana_protocol_number="90" iana_protocol_name="protocolexample4">
<idmef:name>
ServiceName3
</idmef:name>
<idmef:port>
90
</idmef:port>
<idmef:protocol>
Additional info of protocol
</idmef:protocol>
<idmef:SNMPService>
<idmef:oid>
objectident4
</idmef:oid>
<idmef:messageProcessingModel>
3
</idmef:messageProcessingModel>
<idmef:securityModel>
2
</idmef:securityModel>
<idmef:securityName>
SecuritynameExample4
</idmef:securityName>
<idmef:securityLevel>
1
</idmef:securityLevel>
<idmef:contextName>
ContextnameExample4
</idmef:contextName>
<idmef:contextEngineID>
ContextEngineID4
</idmef:contextEngineID>
<idmef:command>
GET
</idmef:command>
</idmef:SNMPService>
<idmef:WebService>
<idmef:url>
service.example.com
</idmef:url>
<idmef:cgi>
CGI script example
</idmef:cgi>
<idmef:http-method>
GET
</idmef:http-method>
<idmef:arg>
Argument1ToScript
</idmef:arg>
<idmef:arg>
Argument2ToScript
</idmef:arg>
</idmef:WebService>
</idmef:Service>
<idmef:File ident="38" category="current" fstype="ufs" file-type="Filetype">
<idmef:name>
FileName
</idmef:name>
<idmef:path>
fileserver:/path/to/FileName
</idmef:path>
<idmef:create-time>
2017-10-25T11:00:51
</idmef:create-time>
<idmef:modify-time>
2017-10-25T11:00:52
</idmef:modify-time>
<idmef:access-time>
2017-10-25T11:00:53
</idmef:access-time>
<idmef:data-size>
542
</idmef:data-size>
<idmef:disk-size>
546
</idmef:disk-size>
<idmef:FileAccess>
<idmef:UserId ident="54" type="user-privs" tty="/dev/pts/0">
<idmef:name>
LastUserName
</idmef:name>
<idmef:number>
30
</idmef:number>
</idmef:UserId>
<idmef:Permission perms="read">
</idmef:Permission>
<idmef:Permission perms="write">
</idmef:Permission>
</idmef:FileAccess>
<idmef:Linkage category="hard-link">
<idmef:name>
FsObject
</idmef:name>
<idmef:path>
/path/to/FsObject
</idmef:path>
</idmef:Linkage>
<idmef:Inode>
<idmef:change-time>
2017-10-25T11:00:58
</idmef:change-time>
<idmef:number>
5268
</idmef:number>
<idmef:c-major-device>
2173
</idmef:c-major-device>
</idmef:Inode>
<idmef:Checksum algorithm="SHA1">
<idmef:value>
794467071687f7c59d033f4de5ece6b46415b601
</idmef:value>
<idmef:key>
chckey
</idmef:key>
</idmef:Checksum>
</idmef:File>
<idmef:File ident="50" category="current" fstype="ufs" file-type="Filetype">
<idmef:name>
FileName
</idmef:name>
<idmef:path>
fileserver:/path/to/FileName
</idmef:path>
<idmef:create-time>
2017-10-25T11:00:51
</idmef:create-time>
<idmef:modify-time>
2017-10-25T11:00:52
</idmef:modify-time>
<idmef:access-time>
2017-10-25T11:00:53
</idmef:access-time>
<idmef:data-size>
542
</idmef:data-size>
<idmef:disk-size>
546
</idmef:disk-size>
<idmef:FileAccess>
<idmef:UserId ident="51" type="user-privs" tty="/dev/pts/0">
<idmef:name>
LastUserName
</idmef:name>
<idmef:number>
30
</idmef:number>
</idmef:UserId>
<idmef:Permission perms="read">
</idmef:Permission>
<idmef:Permission perms="write">
</idmef:Permission>
</idmef:FileAccess>
<idmef:Linkage category="hard-link">
<idmef:name>
FsObject
</idmef:name>
<idmef:path>
/path/to/FsObject
</idmef:path>
</idmef:Linkage>
<idmef:Inode>
<idmef:change-time>
2017-10-25T11:00:58
</idmef:change-time>
<idmef:number>
5268
</idmef:number>
<idmef:c-major-device>
2173
</idmef:c-major-device>
</idmef:Inode>
<idmef:Checksum algorithm="SHA1">
<idmef:value>
794467071687f7c59d033f4de5ece6b46415b601
</idmef:value>
<idmef:key>
chckey
</idmef:key>
</idmef:Checksum>
</idmef:File>
</idmef:Target>
<idmef:Assessment>
<idmef:Impact severity="medium" completion="succeeded" type="admin">
Optional description of impact, which is allowed here
</idmef:Impact>
<idmef:Action category="taken-offline">
Optional description of action, which is allowed here
</idmef:Action>
<idmef:Action category="notification-sent">
Optional description of action, which is allowed here
</idmef:Action>
<idmef:Confidence rating="numeric">
0.54
</idmef:Confidence>
</idmef:Assessment>
<idmef:CorrelationAlert>
<idmef:name>
CorrelationExampleName
</idmef:name>
<idmef:alertident analyzerid="12">
28421
</idmef:alertident>
<idmef:alertident analyzerid="654">
87955
</idmef:alertident>
</idmef:CorrelationAlert>
<idmef:AdditionalData meaning="Test additional data">
First additional data test example
</idmef:AdditionalData>
<idmef:AdditionalData meaning="Test additional data too">
Second additional data test example
</idmef:AdditionalData>
</idmef:Alert>
</idmef:IDMEF-Message>
"""
| 38.247246
| 118
| 0.390905
| 2,273
| 31,248
| 5.364276
| 0.143863
| 0.04724
| 0.036742
| 0.019683
| 0.777085
| 0.77159
| 0.731075
| 0.71254
| 0.683999
| 0.633888
| 0
| 0.062902
| 0.512609
| 31,248
| 817
| 119
| 38.247246
| 0.737689
| 0
| 1
| 0.800245
| 0
| 0.029412
| 0.998656
| 0.083781
| 0
| 0
| 0.00064
| 0
| 0
| 1
| 0.001225
| true
| 0
| 0
| 0.001225
| 0.002451
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
2d414ad68c3f772160740a54f0c5b1760f4ff0ba
| 253
|
py
|
Python
|
pixelflow/transforms/functional/_utils.py
|
didriknielsen/pixelcnn_flow
|
9030f6a66d5ff83d7d299541ed55b20b20bb9a15
|
[
"MIT"
] | 25
|
2020-02-12T00:35:48.000Z
|
2021-09-18T14:30:43.000Z
|
pixelflow/transforms/functional/_utils.py
|
didriknielsen/pixelcnn_flow
|
9030f6a66d5ff83d7d299541ed55b20b20bb9a15
|
[
"MIT"
] | 1
|
2021-08-05T10:00:04.000Z
|
2021-08-10T11:11:16.000Z
|
pixelflow/transforms/functional/_utils.py
|
didriknielsen/pixelcnn_flow
|
9030f6a66d5ff83d7d299541ed55b20b20bb9a15
|
[
"MIT"
] | null | null | null |
import torch
def gather_elementwise(tensor, idx_tensor):
'''
For `tensor.shape = tensor_shape + (K,)`
and `idx_tensor.shape = tensor_shape` with elements in {0,1,...,K-1}
'''
return tensor.gather(-1, idx_tensor[..., None])[..., 0]
| 25.3
| 72
| 0.620553
| 35
| 253
| 4.314286
| 0.514286
| 0.291391
| 0.225166
| 0.291391
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.02439
| 0.189723
| 253
| 9
| 73
| 28.111111
| 0.712195
| 0.43083
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.333333
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
743f47f3450506a0366a978792d19ec694932a1a
| 4,752
|
py
|
Python
|
tools/r2plugin/ack/test.py
|
xbabka01/retdec-regression-tests
|
1ac40cca5165740364e6f7fb72b20820eac9bc7c
|
[
"MIT"
] | 8
|
2017-12-14T14:25:17.000Z
|
2019-03-09T03:29:12.000Z
|
tools/r2plugin/ack/test.py
|
xbabka01/retdec-regression-tests
|
1ac40cca5165740364e6f7fb72b20820eac9bc7c
|
[
"MIT"
] | 10
|
2019-06-14T09:12:55.000Z
|
2021-10-01T12:15:43.000Z
|
tools/r2plugin/ack/test.py
|
xbabka01/retdec-regression-tests
|
1ac40cca5165740364e6f7fb72b20820eac9bc7c
|
[
"MIT"
] | 8
|
2019-05-10T14:59:48.000Z
|
2022-03-07T16:34:23.000Z
|
from regression_tests import *
class TestX86ClangMacho_ack(Test):
settings = TestSettings(
tool='r2plugin',
input='ack.x86.clang.macho',
args='--select 0x01e90'
)
def test_for_ack(self):
assert self.out_c.has_just_funcs('_ack')
class TestX86ClangMacho_main(Test):
settings = TestSettings(
tool='r2plugin',
input='ack.x86.clang.macho',
args='--select 0x1ee0'
)
def test_for_main(self):
assert self.out_c.has_just_funcs('main')
class TestRenameFunction(Test):
settings = TestSettings(
tool='r2plugin',
input='ack.x86.clang.macho',
commands=(
's 0x01e90', # Seek address
'afn ack_renamed' # Rename function
),
args='--select 0x01e90'
)
def test_ack_is_renamed(self):
assert self.out_c.has_just_funcs('ack_renamed')
class TestArgs(Test):
settings = TestSettings(
tool='r2plugin',
input='ack.x86.clang.macho',
commands=(
's 0x01e90', # Seek address
'afvb-arg_8h', # Remove local var "arg_8h"
'afvb-arg_ch', # Remove local var "arg_ch"
'afn ack', # Rename function
'afvb 8 m int32_t', # Provide stack var m
'afvb 12 n int32_t', # Provide stack var n
),
args='--select 0x01e90'
)
def test_parameters_are_set(self):
assert self.out_c.has_just_funcs('ack')
assert self.out_c.funcs['ack'].param_count == 2
assert self.out_c.funcs['ack'].params[0].type.is_int(32)
assert self.out_c.funcs['ack'].params[1].type.is_int(32)
assert self.out_c.funcs['ack'].params[0].name == "m"
assert self.out_c.funcs['ack'].params[1].name == "n"
assert self.out_c.funcs['ack'].calls('ack')
assert self.out_c.funcs['ack'].has_any_if_stmts()
class TestArgsCustom(Test):
settings = TestSettings(
tool='r2plugin',
input='ack.x86.clang.macho',
commands=(
's 0x01e90', # Seek address
'afvb-arg_8h', # Remove local var "arg_8h"
'afvb-arg_ch', # Remove local var "arg_ch"
'afn ack', # Rename function
'afvb 8 xxx int64_t', # Provide stack var m
'afvb 12 yyy char', # Provide stack var n
),
args='--select 0x01e90'
)
def test_parameters_are_set(self):
assert self.out_c.has_just_funcs('ack')
assert self.out_c.funcs['ack'].param_count == 2
assert self.out_c.funcs['ack'].params[0].type.is_int(64)
assert self.out_c.funcs['ack'].params[1].type.is_char()
assert self.out_c.funcs['ack'].params[0].name == "xxx"
assert self.out_c.funcs['ack'].params[1].name == "yyy"
assert self.out_c.funcs['ack'].calls('ack')
assert self.out_c.funcs['ack'].has_any_if_stmts()
class TestChangeSignature(Test):
settings = TestSettings(
tool='r2plugin',
input='ack.x86.clang.macho',
commands=(
's 0x01e90', # Seek address
'afs int16_t _ack (char a, int64_t b)' # Change signature
# !! quotes required
),
args='--select 0x01e90'
)
def test_parameters_are_set(self):
assert self.out_c.has_just_funcs('_ack')
assert self.out_c.funcs['_ack'].return_type.is_int(16)
assert self.out_c.funcs['_ack'].param_count == 2
assert self.out_c.funcs['_ack'].params[0].type.is_char()
assert self.out_c.funcs['_ack'].params[1].type.is_int(64)
assert self.out_c.funcs['_ack'].params[0].name == "a"
assert self.out_c.funcs['_ack'].params[1].name == "b"
class TestChangeSignatureFP(Test):
settings = TestSettings(
tool='r2plugin',
input='ack.x86.clang.macho',
commands=(
's 0x01e90', # Seek address
'afs float _ack (double a, float b)' # Change signature
# !! quotes required
),
args='--select 0x01e90'
)
def test_parameters_are_set(self):
assert self.out_c.has_just_funcs('_ack')
assert self.out_c.funcs['_ack'].return_type.is_float()
assert self.out_c.funcs['_ack'].param_count == 2
assert self.out_c.funcs['_ack'].params[0].type.is_double()
assert self.out_c.funcs['_ack'].params[1].type.is_float()
assert self.out_c.funcs['_ack'].params[0].name == "a"
assert self.out_c.funcs['_ack'].params[1].name == "b"
| 35.462687
| 76
| 0.561658
| 602
| 4,752
| 4.229236
| 0.154485
| 0.129615
| 0.1685
| 0.181461
| 0.873134
| 0.853888
| 0.853888
| 0.835821
| 0.824038
| 0.764336
| 0
| 0.040157
| 0.30303
| 4,752
| 133
| 77
| 35.729323
| 0.728563
| 0.077441
| 0
| 0.621622
| 0
| 0
| 0.159523
| 0
| 0
| 0
| 0.019024
| 0
| 0.297297
| 1
| 0.063063
| false
| 0
| 0.009009
| 0
| 0.198198
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
74941a604d31e7f7086b844b77ce4b4d6b0b5d04
| 21,153
|
py
|
Python
|
tests/st/ops/gpu/test_repeat_elements_op.py
|
dongkcs/mindspore
|
cd7df6dbf463ff3128e9181e9d0c779cecb81320
|
[
"Apache-2.0"
] | 2
|
2020-11-23T13:46:37.000Z
|
2020-12-20T02:02:38.000Z
|
tests/st/ops/gpu/test_repeat_elements_op.py
|
dongkcs/mindspore
|
cd7df6dbf463ff3128e9181e9d0c779cecb81320
|
[
"Apache-2.0"
] | null | null | null |
tests/st/ops/gpu/test_repeat_elements_op.py
|
dongkcs/mindspore
|
cd7df6dbf463ff3128e9181e9d0c779cecb81320
|
[
"Apache-2.0"
] | 1
|
2021-01-01T08:35:01.000Z
|
2021-01-01T08:35:01.000Z
|
# Copyright 2020 Huawei Technologies Co., Ltd
#
# 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.
# ============================================================================
import numpy as np
import pytest
from mindspore import Tensor
from mindspore.ops import operations as P
import mindspore.nn as nn
import mindspore.context as context
class RepeatElementsNet(nn.Cell):
def __init__(self, rep, axis):
super(RepeatElementsNet, self).__init__()
self.repeat_elements = P.RepeatElements(rep, axis)
def construct(self, x):
return self.repeat_elements(x)
def repeat_elements(x, rep, axis):
repeat_elements_net = RepeatElementsNet(rep, axis)
return repeat_elements_net(Tensor(x.astype(np.int32))).asnumpy()
@pytest.mark.level0
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_repeat_elements_1d_one_element_rep_1():
context.set_context(mode=context.GRAPH_MODE, device_target="GPU")
a = np.arange(1)
ms_out = repeat_elements(a, 1, 0)
np_out = a.repeat(1, 0)
np.testing.assert_array_equal(np_out, ms_out)
@pytest.mark.level0
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_repeat_elements_1d_one_element_rep_many():
context.set_context(mode=context.GRAPH_MODE, device_target="GPU")
a = np.arange(1)
ms_out = repeat_elements(a, 5, 0)
np_out = a.repeat(5, 0)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 513, 0)
np_out = a.repeat(513, 0)
np.testing.assert_array_equal(np_out, ms_out)
@pytest.mark.level0
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_repeat_elements_1d_rep_1():
context.set_context(mode=context.GRAPH_MODE, device_target="GPU")
a = np.arange(24)
ms_out = repeat_elements(a, 1, 0)
np_out = a.repeat(1, 0)
np.testing.assert_array_equal(np_out, ms_out)
@pytest.mark.level0
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_repeat_elements_1d_rep_many():
context.set_context(mode=context.GRAPH_MODE, device_target="GPU")
a = np.arange(24)
ms_out = repeat_elements(a, 231, 0)
np_out = a.repeat(231, 0)
np.testing.assert_array_equal(np_out, ms_out)
@pytest.mark.level0
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_repeat_elements_2d_one_element_rep_1():
context.set_context(mode=context.GRAPH_MODE, device_target="GPU")
a = np.arange(1).reshape(1, 1)
ms_out = repeat_elements(a, 1, 0)
np_out = a.repeat(1, 0)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 1, 1)
np_out = a.repeat(1, 1)
np.testing.assert_array_equal(np_out, ms_out)
@pytest.mark.level0
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_repeat_elements_2d_one_element_rep_many():
context.set_context(mode=context.GRAPH_MODE, device_target="GPU")
a = np.arange(1).reshape(1, 1)
ms_out = repeat_elements(a, 13, 0)
np_out = a.repeat(13, 0)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 13, 1)
np_out = a.repeat(13, 1)
np.testing.assert_array_equal(np_out, ms_out)
@pytest.mark.level0
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_repeat_elements_2d_rep_1():
context.set_context(mode=context.GRAPH_MODE, device_target="GPU")
a = np.arange(24).reshape(12, 2)
ms_out = repeat_elements(a, 1, 0)
np_out = a.repeat(1, 0)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 1, 1)
np_out = a.repeat(1, 1)
np.testing.assert_array_equal(np_out, ms_out)
@pytest.mark.level0
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_repeat_elements_2d_rep_many():
context.set_context(mode=context.GRAPH_MODE, device_target="GPU")
a = np.arange(24).reshape(8, 3)
ms_out = repeat_elements(a, 23, 0)
np_out = a.repeat(23, 0)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 23, 1)
np_out = a.repeat(23, 1)
np.testing.assert_array_equal(np_out, ms_out)
@pytest.mark.level0
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_repeat_elements_3d_one_element_rep_1():
context.set_context(mode=context.GRAPH_MODE, device_target="GPU")
a = np.arange(1).reshape(1, 1, 1)
ms_out = repeat_elements(a, 1, 0)
np_out = a.repeat(1, 0)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 1, 1)
np_out = a.repeat(1, 1)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 1, 2)
np_out = a.repeat(1, 2)
np.testing.assert_array_equal(np_out, ms_out)
@pytest.mark.level0
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_repeat_elements_3d_one_element_rep_many():
context.set_context(mode=context.GRAPH_MODE, device_target="GPU")
a = np.arange(1).reshape(1, 1, 1)
ms_out = repeat_elements(a, 43, 0)
np_out = a.repeat(43, 0)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 43, 1)
np_out = a.repeat(43, 1)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 43, 2)
np_out = a.repeat(43, 2)
np.testing.assert_array_equal(np_out, ms_out)
@pytest.mark.level0
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_repeat_elements_3d_rep_1():
context.set_context(mode=context.GRAPH_MODE, device_target="GPU")
a = np.arange(60).reshape(6, 2, 5)
ms_out = repeat_elements(a, 1, 0)
np_out = a.repeat(1, 0)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 1, 1)
np_out = a.repeat(1, 1)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 1, 2)
np_out = a.repeat(1, 2)
np.testing.assert_array_equal(np_out, ms_out)
@pytest.mark.level0
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_repeat_elements_3d_rep_many():
context.set_context(mode=context.GRAPH_MODE, device_target="GPU")
a = np.arange(60).reshape(3, 4, 5)
ms_out = repeat_elements(a, 14, 0)
np_out = a.repeat(14, 0)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 14, 1)
np_out = a.repeat(14, 1)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 14, 2)
np_out = a.repeat(14, 2)
np.testing.assert_array_equal(np_out, ms_out)
@pytest.mark.level0
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_repeat_elements_4d_one_element_rep_1():
context.set_context(mode=context.GRAPH_MODE, device_target="GPU")
a = np.arange(1).reshape(1, 1, 1, 1)
ms_out = repeat_elements(a, 1, 0)
np_out = a.repeat(1, 0)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 1, 1)
np_out = a.repeat(1, 1)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 1, 2)
np_out = a.repeat(1, 2)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 1, 3)
np_out = a.repeat(1, 3)
np.testing.assert_array_equal(np_out, ms_out)
@pytest.mark.level0
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_repeat_elements_4d_one_element_rep_many():
context.set_context(mode=context.GRAPH_MODE, device_target="GPU")
a = np.arange(1).reshape(1, 1, 1, 1)
ms_out = repeat_elements(a, 17, 0)
np_out = a.repeat(17, 0)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 17, 1)
np_out = a.repeat(17, 1)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 17, 2)
np_out = a.repeat(17, 2)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 17, 3)
np_out = a.repeat(17, 3)
np.testing.assert_array_equal(np_out, ms_out)
@pytest.mark.level0
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_repeat_elements_4d_rep_1():
context.set_context(mode=context.GRAPH_MODE, device_target="GPU")
a = np.arange(24).reshape(4, 3, 2, 1)
ms_out = repeat_elements(a, 1, 0)
np_out = a.repeat(1, 0)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 1, 1)
np_out = a.repeat(1, 1)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 1, 2)
np_out = a.repeat(1, 2)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 1, 3)
np_out = a.repeat(1, 3)
np.testing.assert_array_equal(np_out, ms_out)
@pytest.mark.level0
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_repeat_elements_4d_rep_many():
context.set_context(mode=context.GRAPH_MODE, device_target="GPU")
a = np.arange(24).reshape(2, 2, 2, 3)
ms_out = repeat_elements(a, 23, 0)
np_out = a.repeat(23, 0)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 23, 1)
np_out = a.repeat(23, 1)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 23, 2)
np_out = a.repeat(23, 2)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 23, 3)
np_out = a.repeat(23, 3)
np.testing.assert_array_equal(np_out, ms_out)
@pytest.mark.level0
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_repeat_elements_5d_one_element_rep_1():
context.set_context(mode=context.GRAPH_MODE, device_target="GPU")
a = np.arange(1).reshape(1, 1, 1, 1, 1)
ms_out = repeat_elements(a, 1, 0)
np_out = a.repeat(1, 0)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 1, 1)
np_out = a.repeat(1, 1)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 1, 2)
np_out = a.repeat(1, 2)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 1, 3)
np_out = a.repeat(1, 3)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 1, 4)
np_out = a.repeat(1, 4)
np.testing.assert_array_equal(np_out, ms_out)
@pytest.mark.level0
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_repeat_elements_5d_one_element_rep_many():
context.set_context(mode=context.GRAPH_MODE, device_target="GPU")
a = np.arange(1).reshape(1, 1, 1, 1, 1)
ms_out = repeat_elements(a, 19, 0)
np_out = a.repeat(19, 0)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 19, 1)
np_out = a.repeat(19, 1)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 19, 2)
np_out = a.repeat(19, 2)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 19, 3)
np_out = a.repeat(19, 3)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 19, 4)
np_out = a.repeat(19, 4)
np.testing.assert_array_equal(np_out, ms_out)
@pytest.mark.level0
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_repeat_elements_5d_rep_1():
context.set_context(mode=context.GRAPH_MODE, device_target="GPU")
a = np.arange(224).reshape(8, 2, 1, 7, 2)
ms_out = repeat_elements(a, 1, 0)
np_out = a.repeat(1, 0)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 1, 1)
np_out = a.repeat(1, 1)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 1, 2)
np_out = a.repeat(1, 2)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 1, 3)
np_out = a.repeat(1, 3)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 1, 4)
np_out = a.repeat(1, 4)
np.testing.assert_array_equal(np_out, ms_out)
@pytest.mark.level0
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_repeat_elements_5d_rep_many():
context.set_context(mode=context.GRAPH_MODE, device_target="GPU")
a = np.arange(224).reshape(1, 7, 4, 4, 2)
ms_out = repeat_elements(a, 7, 0)
np_out = a.repeat(7, 0)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 7, 1)
np_out = a.repeat(7, 1)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 7, 2)
np_out = a.repeat(7, 2)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 7, 3)
np_out = a.repeat(7, 3)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 7, 4)
np_out = a.repeat(7, 4)
np.testing.assert_array_equal(np_out, ms_out)
@pytest.mark.level0
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_repeat_elements_large_one_element_rep_1():
context.set_context(mode=context.GRAPH_MODE, device_target="GPU")
a = np.arange(1).reshape(1, 1, 1, 1, 1, 1, 1, 1)
ms_out = repeat_elements(a, 1, 0)
np_out = a.repeat(1, 0)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 1, 1)
np_out = a.repeat(1, 1)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 1, 2)
np_out = a.repeat(1, 2)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 1, 3)
np_out = a.repeat(1, 3)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 1, 4)
np_out = a.repeat(1, 4)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 1, 5)
np_out = a.repeat(1, 5)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 1, 6)
np_out = a.repeat(1, 6)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 1, 7)
np_out = a.repeat(1, 7)
np.testing.assert_array_equal(np_out, ms_out)
@pytest.mark.level0
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_repeat_elements_large_one_element_rep_many():
context.set_context(mode=context.GRAPH_MODE, device_target="GPU")
a = np.arange(1).reshape(1, 1, 1, 1, 1, 1, 1, 1)
ms_out = repeat_elements(a, 42, 0)
np_out = a.repeat(42, 0)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 42, 1)
np_out = a.repeat(42, 1)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 42, 2)
np_out = a.repeat(42, 2)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 42, 3)
np_out = a.repeat(42, 3)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 42, 4)
np_out = a.repeat(42, 4)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 42, 5)
np_out = a.repeat(42, 5)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 42, 6)
np_out = a.repeat(42, 6)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 42, 7)
np_out = a.repeat(42, 7)
np.testing.assert_array_equal(np_out, ms_out)
@pytest.mark.level0
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_repeat_elements_large_rep_1():
context.set_context(mode=context.GRAPH_MODE, device_target="GPU")
a = np.arange(1152).reshape(2, 3, 4, 8, 1, 1, 2, 3)
ms_out = repeat_elements(a, 1, 0)
np_out = a.repeat(1, 0)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 1, 1)
np_out = a.repeat(1, 1)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 1, 2)
np_out = a.repeat(1, 2)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 1, 3)
np_out = a.repeat(1, 3)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 1, 4)
np_out = a.repeat(1, 4)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 1, 5)
np_out = a.repeat(1, 5)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 1, 6)
np_out = a.repeat(1, 6)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 1, 7)
np_out = a.repeat(1, 7)
np.testing.assert_array_equal(np_out, ms_out)
@pytest.mark.level0
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_repeat_elements_large_rep_many():
context.set_context(mode=context.GRAPH_MODE, device_target="GPU")
a = np.arange(1152).reshape(4, 3, 4, 2, 1, 1, 4, 3)
ms_out = repeat_elements(a, 4, 0)
np_out = a.repeat(4, 0)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 4, 1)
np_out = a.repeat(4, 1)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 4, 2)
np_out = a.repeat(4, 2)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 4, 3)
np_out = a.repeat(4, 3)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 4, 4)
np_out = a.repeat(4, 4)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 4, 5)
np_out = a.repeat(4, 5)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 4, 6)
np_out = a.repeat(4, 6)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 4, 7)
np_out = a.repeat(4, 7)
np.testing.assert_array_equal(np_out, ms_out)
@pytest.mark.level0
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_repeat_elements_half():
context.set_context(mode=context.GRAPH_MODE, device_target="GPU")
a = np.arange(1152).astype(np.float16).reshape(4, 3, 4, 2, 1, 1, 4, 3)
ms_out = repeat_elements(a, 4, 0)
np_out = a.repeat(4, 0)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 4, 1)
np_out = a.repeat(4, 1)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 4, 2)
np_out = a.repeat(4, 2)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 4, 3)
np_out = a.repeat(4, 3)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 4, 4)
np_out = a.repeat(4, 4)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 4, 5)
np_out = a.repeat(4, 5)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 4, 6)
np_out = a.repeat(4, 6)
np.testing.assert_array_equal(np_out, ms_out)
ms_out = repeat_elements(a, 4, 7)
np_out = a.repeat(4, 7)
np.testing.assert_array_equal(np_out, ms_out)
@pytest.mark.level0
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_repeat_elements_net_multi_use():
context.set_context(mode=context.GRAPH_MODE, device_target="GPU")
rep = 3
axis = 4
repeat_elements_net = RepeatElementsNet(rep, axis)
a = np.arange(64).reshape(2, 2, 2, 2, 2, 2)
ms_out = repeat_elements_net(Tensor(a.astype(np.int32))).asnumpy()
np_out = a.repeat(rep, axis)
np.testing.assert_array_equal(np_out, ms_out)
a = np.arange(128).reshape(2, 2, 4, 2, 2, 2)
ms_out = repeat_elements_net(Tensor(a.astype(np.int32))).asnumpy()
np_out = a.repeat(rep, axis)
np.testing.assert_array_equal(np_out, ms_out)
a = np.arange(18).reshape(1, 1, 3, 2, 3, 1)
ms_out = repeat_elements_net(Tensor(a.astype(np.int32))).asnumpy()
np_out = a.repeat(rep, axis)
np.testing.assert_array_equal(np_out, ms_out)
@pytest.mark.level0
@pytest.mark.platform_x86_gpu_training
@pytest.mark.env_onecard
def test_repeat_elements_invalid_input():
context.set_context(mode=context.GRAPH_MODE, device_target="GPU")
a = np.arange(64).reshape(2, 2, 2, 2, 2, 2)
with pytest.raises(ValueError):
_ = repeat_elements(a, 0, 0)
with pytest.raises(ValueError):
_ = repeat_elements(a, 1, 6)
with pytest.raises(ValueError):
_ = repeat_elements(a, 1, -7)
| 32.196347
| 79
| 0.683875
| 3,602
| 21,153
| 3.710994
| 0.043865
| 0.077804
| 0.107728
| 0.147827
| 0.929378
| 0.890701
| 0.880227
| 0.876936
| 0.870652
| 0.870652
| 0
| 0.046127
| 0.191368
| 21,153
| 656
| 80
| 32.245427
| 0.735341
| 0.030161
| 0
| 0.742
| 0
| 0
| 0.004082
| 0
| 0
| 0
| 0
| 0
| 0.208
| 1
| 0.06
| false
| 0
| 0.012
| 0.002
| 0.078
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
749aba558523505a935e3069c51d8e6282008219
| 283
|
py
|
Python
|
output/models/ms_data/element/elem_z009_xsd/__init__.py
|
tefra/xsdata-w3c-tests
|
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
|
[
"MIT"
] | 1
|
2021-08-14T17:59:21.000Z
|
2021-08-14T17:59:21.000Z
|
output/models/ms_data/element/elem_z009_xsd/__init__.py
|
tefra/xsdata-w3c-tests
|
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
|
[
"MIT"
] | 4
|
2020-02-12T21:30:44.000Z
|
2020-04-15T20:06:46.000Z
|
output/models/ms_data/element/elem_z009_xsd/__init__.py
|
tefra/xsdata-w3c-tests
|
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
|
[
"MIT"
] | null | null | null |
from output.models.ms_data.element.elem_z009_xsd.elem_z009 import (
Ct,
Root,
)
from output.models.ms_data.element.elem_z009_xsd.elem_z009_a import A
from output.models.ms_data.element.elem_z009_xsd.elem_z009_b import B
__all__ = [
"Ct",
"Root",
"A",
"B",
]
| 20.214286
| 69
| 0.710247
| 47
| 283
| 3.893617
| 0.319149
| 0.262295
| 0.262295
| 0.295082
| 0.786885
| 0.786885
| 0.786885
| 0.786885
| 0.786885
| 0.786885
| 0
| 0.076596
| 0.169611
| 283
| 13
| 70
| 21.769231
| 0.702128
| 0
| 0
| 0
| 0
| 0
| 0.028269
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.25
| 0
| 0.25
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
7767b9873a3c8013d9e6f04cbdbc496a6183464c
| 21,277
|
py
|
Python
|
tests/models/test_study.py
|
NCI-GDC/gdc-ng-models
|
4c3a964b0626ced2cbbccebcc7483490f9251aea
|
[
"Apache-2.0"
] | 2
|
2020-04-01T19:31:56.000Z
|
2020-10-21T23:16:07.000Z
|
tests/models/test_study.py
|
NCI-GDC/gdc-ng-models
|
4c3a964b0626ced2cbbccebcc7483490f9251aea
|
[
"Apache-2.0"
] | 9
|
2019-09-20T19:40:25.000Z
|
2021-09-23T19:06:01.000Z
|
tests/models/test_study.py
|
NCI-GDC/gdc-ng-models
|
4c3a964b0626ced2cbbccebcc7483490f9251aea
|
[
"Apache-2.0"
] | 1
|
2020-08-14T08:55:27.000Z
|
2020-08-14T08:55:27.000Z
|
import datetime
import json
import pytest
import pytz
from sqlalchemy import exc
from gdc_ng_models.models import studyrule
def test_study_rule__defaults_unique_ids(create_study_rule_db, db_session):
db_session.add(studyrule.StudyRule(name="first"))
db_session.add(studyrule.StudyRule(name="second"))
db_session.commit()
first = db_session.query(studyrule.StudyRule).filter(studyrule.StudyRule.name == "first").one()
second = db_session.query(studyrule.StudyRule).filter(studyrule.StudyRule.name == "second").one()
assert first.id is not None
assert second.id is not None
assert first.id != second.id
def test_study_rule__unique_id(create_study_rule_db, db_session):
db_session.add(studyrule.StudyRule(id=1618, name="first"))
db_session.commit()
with pytest.raises(exc.IntegrityError, match=r"study_rule_pk"):
db_session.add(studyrule.StudyRule(id=1618, name="second"))
db_session.commit()
def test_study_rule__name_must_be_defined(create_study_rule_db, db_session):
with pytest.raises(exc.IntegrityError, match=r"violates not-null constraint"):
db_session.add(studyrule.StudyRule(id=1618))
db_session.commit()
def test_study_rule__unique_name(create_study_rule_db, db_session):
db_session.add(studyrule.StudyRule(name="dupe"))
db_session.commit()
with pytest.raises(exc.IntegrityError, match=r"study_rule_name_idx"):
db_session.add(studyrule.StudyRule(name="dupe"))
db_session.commit()
def test_study_rule__defaults_created_datetime(create_study_rule_db, db_session):
db_session.add(studyrule.StudyRule(name="asdf"))
db_session.commit()
s = db_session.query(studyrule.StudyRule).filter(studyrule.StudyRule.name == "asdf").one()
assert s.created_datetime is not None
def test_study_rule__defaults_updated_datetime(create_study_rule_db, db_session):
db_session.add(studyrule.StudyRule(name="asdf"))
db_session.commit()
s = db_session.query(studyrule.StudyRule).filter(studyrule.StudyRule.name == "asdf").one()
assert s.updated_datetime is not None
def test_study_rule__updates_updated_datetime(create_study_rule_db, db_session):
db_session.add(studyrule.StudyRule(id=1618, name="asdf"))
db_session.commit()
db_session.query(studyrule.StudyRule).filter(studyrule.StudyRule.id == 1618).update({"name": "updated"})
db_session.commit()
updated = db_session.query(studyrule.StudyRule).filter(studyrule.StudyRule.id == 1618).one()
assert updated.updated_datetime > updated.created_datetime
def test_study_rule__whole_programs(create_study_rule_db, db_session):
"""Test that study.whole_programs populate correctly.
Each study should contain it's corresponding records from
StudyRuleProgram.
"""
db_session.add(studyrule.StudyRule(id=1618, name="first"))
db_session.add(studyrule.StudyRule(id=3141, name="second"))
db_session.commit()
db_session.add(studyrule.StudyRuleProgram(study_rule_id=1618, program_name="alpha"))
db_session.add(studyrule.StudyRuleProgram(study_rule_id=1618, program_name="beta"))
db_session.commit()
first_study = db_session.query(studyrule.StudyRule).filter(studyrule.StudyRule.id == 1618).one()
assert len(first_study.whole_programs) == 2
assert all([program.study_rule_id == 1618 for program in first_study.whole_programs])
second_study = db_session.query(studyrule.StudyRule).filter(studyrule.StudyRule.id == 3141).one()
assert len(second_study.whole_programs) == 0
def test_study_rule__partial_programs(create_study_rule_db, db_session):
"""Test that study.partial_programs populate correctly.
Each study should contain it's corresponding records from
StudyRuleProgramProject.
"""
db_session.add(studyrule.StudyRule(id=1618, name="first"))
db_session.add(studyrule.StudyRule(id=3141, name="second"))
db_session.commit()
db_session.add(studyrule.StudyRuleProgramProject(study_rule_id=1618, program_name="alpha", project_code="uno"))
db_session.add(studyrule.StudyRuleProgramProject(study_rule_id=1618, program_name="alpha", project_code="dos"))
db_session.commit()
first_study = db_session.query(studyrule.StudyRule).filter(studyrule.StudyRule.id == 1618).one()
assert len(first_study.partial_programs) == 2
assert all([program.study_rule_id == 1618 for program in first_study.partial_programs])
second_study = db_session.query(studyrule.StudyRule).filter(studyrule.StudyRule.id == 3141).one()
assert len(second_study.partial_programs) == 0
def test_study_rule__to_json():
s = studyrule.StudyRule(
id=1618,
name="asdf",
created_datetime=datetime.datetime(
year=2020,
month=4,
day=15,
hour=12,
minute=45,
second=21,
microsecond=123,
tzinfo=pytz.utc,
),
updated_datetime=datetime.datetime(
year=2020,
month=4,
day=16,
hour=12,
minute=45,
second=21,
microsecond=123,
tzinfo=pytz.utc,
))
expected = json.loads(json.dumps({
"id": 1618,
"name": "asdf",
"created_datetime": "2020-04-15T12:45:21.000123+00:00",
"updated_datetime": "2020-04-16T12:45:21.000123+00:00",
}))
assert s.to_json() == expected
def test_study_rule__to_json_without_dates():
s = studyrule.StudyRule(
id=1618,
name="asdf",
)
expected = json.loads(json.dumps({
"id": 1618,
"name": "asdf",
"created_datetime": None,
"updated_datetime": None,
}))
assert s.to_json() == expected
def test_study_rule__str():
s = studyrule.StudyRule(
id=1618,
name="asdf",
created_datetime=datetime.datetime(
year=2020,
month=4,
day=15,
hour=12,
minute=45,
second=21,
microsecond=123,
tzinfo=pytz.utc,
),
updated_datetime=datetime.datetime(
year=2020,
month=4,
day=16,
hour=12,
minute=45,
second=21,
microsecond=123,
tzinfo=pytz.utc,
))
expected = "<StudyRule(id=1618, name='asdf', created_datetime=2020-04-15T12:45:21.000123+00:00, updated_datetime=2020-04-16T12:45:21.000123+00:00)>"
assert str(s) == expected
def test_study_rule__str_without_date():
s = studyrule.StudyRule(
id=1618,
name="asdf",
)
expected = "<StudyRule(id=1618, name='asdf', created_datetime=None, updated_datetime=None)>"
assert str(s) == expected
def test_study_rule_program__study_rule_must_exist(create_study_rule_db, db_session):
with pytest.raises(exc.IntegrityError, match=r"study_rule_program_study_rule_id_fk"):
db_session.add(studyrule.StudyRuleProgram(study_rule_id=1618, program_name="game_of_life"))
db_session.commit()
@pytest.mark.filterwarnings(
"ignore:Column 'study_rule_program.study_rule_id' is marked as a member of the primary key for table 'study_rule_program'")
def test_study_rule_program__study_rule_id_must_be_defined(create_study_rule_db, db_session):
with pytest.raises(exc.IntegrityError, match=r"violates not-null constraint"):
db_session.add(studyrule.StudyRuleProgram(program_name="game_of_life"))
db_session.commit()
@pytest.mark.filterwarnings(
"ignore:Column 'study_rule_program.program_name' is marked as a member of the primary key for table 'study_rule_program'")
def test_study_rule_program__program_name_must_be_defined(create_study_rule_db, db_session):
with pytest.raises(exc.IntegrityError, match=r"violates not-null constraint"):
db_session.add(studyrule.StudyRuleProgram(study_rule_id=1618))
db_session.commit()
def test_study_rule_program__study_rule_can_contain_multiple_programs(create_study_rule_db, db_session):
db_session.add(studyrule.StudyRule(id=1618, name="asdf"))
db_session.commit()
db_session.add(studyrule.StudyRuleProgram(study_rule_id=1618, program_name="alpha"))
db_session.add(studyrule.StudyRuleProgram(study_rule_id=1618, program_name="beta"))
db_session.commit()
assert db_session.query(studyrule.StudyRuleProgram).filter(
studyrule.StudyRuleProgram.study_rule_id == 1618).count() == 2
def test_study_rule_program__uniqueness(create_study_rule_db, db_session):
"""Check that the table enforces uniqueness of the study_rule_id and program_name."""
db_session.add(studyrule.StudyRule(id=1618, name="asdf"))
db_session.commit()
db_session.add(studyrule.StudyRuleProgram(study_rule_id=1618, program_name="dupe"))
db_session.commit()
with pytest.raises(exc.IntegrityError, match=r"study_rule_program_pk"):
db_session.add(studyrule.StudyRuleProgram(study_rule_id=1618, program_name="dupe"))
db_session.commit()
def test_study_rule_program__defaults_created_datetime(create_study_rule_db, db_session):
db_session.add(studyrule.StudyRule(id=1618, name="asdf"))
db_session.commit()
db_session.add(studyrule.StudyRuleProgram(study_rule_id=1618, program_name="alpha"))
db_session.commit()
s = db_session.query(studyrule.StudyRuleProgram).filter(
studyrule.StudyRuleProgram.study_rule_id == 1618 and studyrule.StudyRuleProgram.program_name == "alpha").one()
assert s.created_datetime is not None
def test_study_rule_program__defaults_updated_datetime(create_study_rule_db, db_session):
db_session.add(studyrule.StudyRule(id=1618, name="asdf"))
db_session.commit()
db_session.add(studyrule.StudyRuleProgram(study_rule_id=1618, program_name="alpha"))
db_session.commit()
s = db_session.query(studyrule.StudyRuleProgram).filter(
studyrule.StudyRuleProgram.study_rule_id == 1618 and studyrule.StudyRuleProgram.program_name == "alpha").one()
assert s.updated_datetime is not None
def test_study_rule_program__updates_updated_datetime(create_study_rule_db, db_session):
db_session.add(studyrule.StudyRule(id=1618, name="asdf"))
db_session.commit()
db_session.add(studyrule.StudyRuleProgram(study_rule_id=1618, program_name="alpha"))
db_session.commit()
db_session.query(studyrule.StudyRuleProgram).filter(studyrule.StudyRuleProgram.study_rule_id == 1618).update(
{"program_name": "updated"})
db_session.commit()
updated = db_session.query(studyrule.StudyRuleProgram).filter(
studyrule.StudyRuleProgram.study_rule_id == 1618).one()
assert updated.updated_datetime > updated.created_datetime
def test_study_rule_program__to_json():
sp = studyrule.StudyRuleProgram(
study_rule_id=1618,
program_name="alpha",
created_datetime=datetime.datetime(
year=2020,
month=4,
day=15,
hour=12,
minute=45,
second=21,
microsecond=123,
tzinfo=pytz.utc,
),
updated_datetime=datetime.datetime(
year=2020,
month=4,
day=16,
hour=12,
minute=45,
second=21,
microsecond=123,
tzinfo=pytz.utc,
)
)
expected = json.loads(json.dumps({
"study_rule_id": 1618,
"program_name": "alpha",
"created_datetime": "2020-04-15T12:45:21.000123+00:00",
"updated_datetime": "2020-04-16T12:45:21.000123+00:00",
}))
assert sp.to_json() == expected
def test_study_rule_program__to_json_without_dates():
sp = studyrule.StudyRuleProgram(
study_rule_id=1618,
program_name="alpha",
)
expected = json.loads(json.dumps({
"study_rule_id": 1618,
"program_name": "alpha",
"created_datetime": None,
"updated_datetime": None,
}))
assert sp.to_json() == expected
def test_study_rule_program__str():
sp = studyrule.StudyRuleProgram(
study_rule_id=1618,
program_name="alpha",
created_datetime=datetime.datetime(
year=2020,
month=4,
day=15,
hour=12,
minute=45,
second=21,
microsecond=123,
tzinfo=pytz.utc,
),
updated_datetime=datetime.datetime(
year=2020,
month=4,
day=16,
hour=12,
minute=45,
second=21,
microsecond=123,
tzinfo=pytz.utc,
)
)
expected = "<StudyRuleProgram(study_rule_id=1618, program_name='alpha', created_datetime=2020-04-15T12:45:21.000123+00:00, updated_datetime=2020-04-16T12:45:21.000123+00:00)>"
assert str(sp) == expected
def test_study_rule_program__str_without_dates():
sp = studyrule.StudyRuleProgram(
study_rule_id=1618,
program_name="alpha",
)
expected = "<StudyRuleProgram(study_rule_id=1618, program_name='alpha', created_datetime=None, updated_datetime=None)>"
assert str(sp) == expected
@pytest.mark.filterwarnings(
"ignore:Column 'study_rule_program_project.study_rule_id' is marked as a member of the primary key for table 'study_rule_program_project'")
def test_study_rule_program_project__study_rule_id_must_be_defined(create_study_rule_db, db_session):
with pytest.raises(exc.IntegrityError, match=r"violates not-null constraint"):
db_session.add(studyrule.StudyRuleProgramProject(program_name="game_of_life", project_code="asdf"))
db_session.commit()
@pytest.mark.filterwarnings(
"ignore:Column 'study_rule_program_project.program_name' is marked as a member of the primary key for table 'study_rule_program_project'")
def test_study_rule_program_project__program_name_must_be_defined(create_study_rule_db, db_session):
with pytest.raises(exc.IntegrityError, match=r"violates not-null constraint"):
db_session.add(studyrule.StudyRuleProgramProject(study_rule_id=1618, project_code="asdf"))
db_session.commit()
@pytest.mark.filterwarnings(
"ignore:Column 'study_rule_program_project.project_code' is marked as a member of the primary key for table 'study_rule_program_project'")
def test_study_rule_program_project__project_code_must_be_defined(create_study_rule_db, db_session):
with pytest.raises(exc.IntegrityError, match=r"violates not-null constraint"):
db_session.add(studyrule.StudyRuleProgramProject(study_rule_id=1618, program_name="game_of_life"))
db_session.commit()
def test_study_rule_program_project__study_rule_must_exist(create_study_rule_db, db_session):
with pytest.raises(exc.IntegrityError, match=r"study_rule_program_project_study_rule_id_fk"):
db_session.add(
studyrule.StudyRuleProgramProject(study_rule_id=1618, program_name="game_of_life", project_code="asdf"))
db_session.commit()
def test_study_rule_program_project__uniqueness(create_study_rule_db, db_session):
"""Check that the table enforces uniqueness of the study_rule_id, program_name, and project_code."""
db_session.add(studyrule.StudyRule(id=1618, name="asdf"))
db_session.commit()
db_session.add(studyrule.StudyRuleProgramProject(study_rule_id=1618, program_name="dupe", project_code="dupe"))
db_session.commit()
with pytest.raises(exc.IntegrityError, match=r"study_rule_program_project_pk"):
db_session.add(studyrule.StudyRuleProgramProject(study_rule_id=1618, program_name="dupe", project_code="dupe"))
db_session.commit()
def test_study_rule_program_project__study_rule_can_have_multiple_programs_and_projects(create_study_rule_db,
db_session):
db_session.add(studyrule.StudyRule(id=1618, name="asdf"))
db_session.commit()
db_session.add(studyrule.StudyRuleProgramProject(study_rule_id=1618, program_name="alpha", project_code="uno"))
db_session.add(studyrule.StudyRuleProgramProject(study_rule_id=1618, program_name="alpha", project_code="dos"))
db_session.add(studyrule.StudyRuleProgramProject(study_rule_id=1618, program_name="beta", project_code="uno"))
db_session.add(studyrule.StudyRuleProgramProject(study_rule_id=1618, program_name="beta", project_code="dos"))
db_session.commit()
assert db_session.query(studyrule.StudyRuleProgramProject).filter(
studyrule.StudyRuleProgramProject.study_rule_id == 1618).count() == 4
def test_study_rule_program_project__defaults_created_datetime (create_study_rule_db, db_session):
db_session.add(studyrule.StudyRule(id=1618, name="asdf"))
db_session.commit()
db_session.add(studyrule.StudyRuleProgramProject(study_rule_id=1618, program_name="alpha", project_code="uno"))
db_session.commit()
s = db_session.query(studyrule.StudyRuleProgramProject) \
.filter(studyrule.StudyRuleProgramProject.study_rule_id == 1618
and studyrule.StudyRuleProgramProject.program_name == "alpha"
and studyrule.StudyRuleProgramProject.project_code == "uno") \
.one()
assert s.created_datetime is not None
def test_study_rule_program_project__defaults_updated_datetime (create_study_rule_db, db_session):
db_session.add(studyrule.StudyRule(id=1618, name="asdf"))
db_session.commit()
db_session.add(studyrule.StudyRuleProgramProject(study_rule_id=1618, program_name="alpha", project_code="uno"))
db_session.commit()
s = db_session.query(studyrule.StudyRuleProgramProject) \
.filter(studyrule.StudyRuleProgramProject.study_rule_id == 1618
and studyrule.StudyRuleProgramProject.program_name == "alpha"
and studyrule.StudyRuleProgramProject.project_code == "uno") \
.one()
assert s.updated_datetime is not None
def test_study_rule_program__updates_updated_datetime (create_study_rule_db, db_session):
db_session.add(studyrule.StudyRule(id=1618, name="asdf"))
db_session.commit()
db_session.add(studyrule.StudyRuleProgramProject(study_rule_id=1618, program_name="alpha", project_code="uno"))
db_session.commit()
db_session.query(studyrule.StudyRuleProgramProject).filter(
studyrule.StudyRuleProgramProject.study_rule_id == 1618).update(
{"project_code": "updated"})
db_session.commit()
updated = db_session.query(studyrule.StudyRuleProgramProject).filter(
studyrule.StudyRuleProgramProject.study_rule_id == 1618).one()
assert updated.updated_datetime > updated.created_datetime
def test_study_rule_program_project__to_json():
spp = studyrule.StudyRuleProgramProject(
study_rule_id=1618,
program_name="alpha",
project_code="uno",
created_datetime=datetime.datetime(
year=2020,
month=4,
day=15,
hour=12,
minute=45,
second=21,
microsecond=123,
tzinfo=pytz.utc,
),
updated_datetime=datetime.datetime(
year=2020,
month=4,
day=16,
hour=12,
minute=45,
second=21,
microsecond=123,
tzinfo=pytz.utc,
)
)
expected = json.loads(json.dumps({
"study_rule_id": 1618,
"program_name": "alpha",
"project_code": "uno",
"created_datetime": "2020-04-15T12:45:21.000123+00:00",
"updated_datetime": "2020-04-16T12:45:21.000123+00:00",
}))
assert spp.to_json() == expected
def test_study_rule_program_project__to_json_without_dates():
spp = studyrule.StudyRuleProgramProject(
study_rule_id=1618,
program_name="alpha",
project_code="uno",
)
expected = json.loads(json.dumps({
"study_rule_id": 1618,
"program_name": "alpha",
"project_code": "uno",
"created_datetime": None,
"updated_datetime": None,
}))
assert spp.to_json() == expected
def test_study_rule_program_project__str():
spp = studyrule.StudyRuleProgramProject(
study_rule_id=1618,
program_name="alpha",
project_code="uno",
created_datetime=datetime.datetime(
year=2020,
month=4,
day=15,
hour=12,
minute=45,
second=21,
microsecond=123,
tzinfo=pytz.utc,
),
updated_datetime=datetime.datetime(
year=2020,
month=4,
day=16,
hour=12,
minute=45,
second=21,
microsecond=123,
tzinfo=pytz.utc,
)
)
expected = "<StudyRuleProgramProject(study_rule_id=1618, program_name='alpha', project_code='uno', created_datetime=2020-04-15T12:45:21.000123+00:00, updated_datetime=2020-04-16T12:45:21.000123+00:00)>"
assert str(spp) == expected
def test_study_rule_program_project__str_without_dates():
spp = studyrule.StudyRuleProgramProject(
study_rule_id=1618,
program_name="alpha",
project_code="uno",
)
expected = "<StudyRuleProgramProject(study_rule_id=1618, program_name='alpha', project_code='uno', created_datetime=None, updated_datetime=None)>"
assert str(spp) == expected
| 37.658407
| 206
| 0.700099
| 2,668
| 21,277
| 5.275862
| 0.052849
| 0.092711
| 0.04767
| 0.056479
| 0.967889
| 0.956238
| 0.949346
| 0.936203
| 0.913896
| 0.883916
| 0
| 0.047959
| 0.190534
| 21,277
| 564
| 207
| 37.725177
| 0.76932
| 0.020633
| 0
| 0.74382
| 0
| 0.020225
| 0.134481
| 0.061517
| 0
| 0
| 0
| 0
| 0.07191
| 1
| 0.085393
| false
| 0
| 0.013483
| 0
| 0.098876
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
77a4f4bb903bed7fc1a29e0d1fa1a41e5ad67873
| 25,214
|
py
|
Python
|
xain/benchmark/benchmark.py
|
danieljanes/ox-msc-diss-code-freeze
|
20c6881cabdf1e3ed7a9ddb40bbdcc7a7fd22f78
|
[
"Apache-2.0"
] | 1
|
2020-05-30T20:34:19.000Z
|
2020-05-30T20:34:19.000Z
|
xain/benchmark/benchmark.py
|
danieljanes/ox-msc-diss-code-freeze
|
20c6881cabdf1e3ed7a9ddb40bbdcc7a7fd22f78
|
[
"Apache-2.0"
] | null | null | null |
xain/benchmark/benchmark.py
|
danieljanes/ox-msc-diss-code-freeze
|
20c6881cabdf1e3ed7a9ddb40bbdcc7a7fd22f78
|
[
"Apache-2.0"
] | null | null | null |
import os
from tempfile import TemporaryDirectory
from time import strftime
from typing import Dict, List, Optional
from absl import flags, logging
from xain.helpers import storage
from xain.ops import docker, results, run
from .task import Task, UnitaryVisionTask, VisionTask
FLAGS = flags.FLAGS
class Benchmark:
def __init__(self, tasks: List[Task], aggregation_name: str, runner: str = "ec2"):
self.tasks = tasks
self.aggregation_name = aggregation_name
self.runner = runner
benchmarks: Dict[str, Benchmark] = {
#
# ##############################
# UL/FL CPP
# ##############################
#
"flul-fashion-mnist-100p-iid-balanced": Benchmark(
tasks=[
UnitaryVisionTask(
name="unitary",
label="Unitary",
dataset_name="fashion-mnist-100p-iid-balanced",
model_name="orig_cnn",
E=100,
partition_id=0,
instance_cores=8,
),
VisionTask(
name="federated",
label="Federated",
dataset_name="fashion-mnist-100p-iid-balanced",
model_name="orig_cnn",
R=100,
E=1,
instance_cores=32,
timeout=120,
),
],
aggregation_name="flul-aggregation",
),
"flul-fashion-mnist-100p-noniid-05cpp": Benchmark(
tasks=[
UnitaryVisionTask(
name="unitary",
label="Unitary",
dataset_name="fashion-mnist-100p-noniid-05cpp",
model_name="orig_cnn",
E=100,
partition_id=0,
instance_cores=8,
),
VisionTask(
name="federated",
label="Federated",
dataset_name="fashion-mnist-100p-noniid-05cpp",
model_name="orig_cnn",
R=100,
E=1,
instance_cores=32,
timeout=120,
),
],
aggregation_name="flul-aggregation",
),
#
# ##############################
# UL/FL VOL
# ##############################
#
"flul-fashion-mnist-100p-b1_045": Benchmark(
tasks=[
UnitaryVisionTask(
name="unitary_p0",
label='"Unitary (n=30)"', # low volume
dataset_name="fashion-mnist-100p-b1_045",
model_name="orig_cnn",
E=100,
B=16,
partition_id=0,
instance_cores=16,
timeout=120,
),
UnitaryVisionTask(
name="unitary_p99",
label='"Unitary (n=2356)"', # high volume
dataset_name="fashion-mnist-100p-b1_045",
model_name="orig_cnn",
E=100,
B=16,
partition_id=99,
instance_cores=16,
timeout=120,
),
VisionTask(
name="federated",
label="Federated",
dataset_name="fashion-mnist-100p-b1_045",
model_name="orig_cnn",
R=100,
E=1,
B=16,
instance_cores=32,
timeout=120,
),
],
aggregation_name="flul-aggregation",
),
#
# ##############################
# CPP CONTINUUM
# ##############################
#
"cpp-fashion-mnist-100p": Benchmark(
tasks=[
VisionTask(
name="federated-01cpp",
label="01cpp",
dataset_name="fashion-mnist-100p-noniid-01cpp",
model_name="orig_cnn",
R=100,
E=1,
instance_cores=32,
timeout=180,
),
VisionTask(
name="federated-02cpp",
label="02cpp",
dataset_name="fashion-mnist-100p-noniid-02cpp",
model_name="orig_cnn",
R=100,
E=1,
instance_cores=32,
timeout=180,
),
VisionTask(
name="federated-03cpp",
label="03cpp",
dataset_name="fashion-mnist-100p-noniid-03cpp",
model_name="orig_cnn",
R=100,
E=1,
instance_cores=32,
timeout=180,
),
VisionTask(
name="federated-04cpp",
label="04cpp",
dataset_name="fashion-mnist-100p-noniid-04cpp",
model_name="orig_cnn",
R=100,
E=1,
instance_cores=32,
timeout=180,
),
VisionTask(
name="federated-05cpp",
label="05cpp",
dataset_name="fashion-mnist-100p-noniid-05cpp",
model_name="orig_cnn",
R=100,
E=1,
instance_cores=32,
timeout=180,
),
VisionTask(
name="federated-06cpp",
label="06cpp",
dataset_name="fashion-mnist-100p-noniid-06cpp",
model_name="orig_cnn",
R=100,
E=1,
instance_cores=32,
timeout=180,
),
VisionTask(
name="federated-07cpp",
label="07cpp",
dataset_name="fashion-mnist-100p-noniid-07cpp",
model_name="orig_cnn",
R=100,
E=1,
instance_cores=32,
timeout=180,
),
VisionTask(
name="federated-08cpp",
label="08cpp",
dataset_name="fashion-mnist-100p-noniid-08cpp",
model_name="orig_cnn",
R=100,
E=1,
instance_cores=32,
timeout=180,
),
VisionTask(
name="federated-09cpp",
label="09cpp",
dataset_name="fashion-mnist-100p-noniid-09cpp",
model_name="orig_cnn",
R=100,
E=1,
instance_cores=32,
timeout=180,
),
VisionTask(
name="federated-balanced",
label="balanced",
dataset_name="fashion-mnist-100p-iid-balanced",
model_name="orig_cnn",
R=100,
E=1,
instance_cores=32,
timeout=180,
),
UnitaryVisionTask(
name="unitary-01cpp",
label="01cpp",
dataset_name="fashion-mnist-100p-noniid-01cpp",
model_name="orig_cnn",
E=100,
instance_cores=16,
),
UnitaryVisionTask(
name="unitary-02cpp",
label="02cpp",
dataset_name="fashion-mnist-100p-noniid-02cpp",
model_name="orig_cnn",
E=100,
instance_cores=16,
),
UnitaryVisionTask(
name="unitary-03cpp",
label="03cpp",
dataset_name="fashion-mnist-100p-noniid-03cpp",
model_name="orig_cnn",
E=100,
instance_cores=16,
),
UnitaryVisionTask(
name="unitary-04cpp",
label="04cpp",
dataset_name="fashion-mnist-100p-noniid-04cpp",
model_name="orig_cnn",
E=100,
instance_cores=16,
),
UnitaryVisionTask(
name="unitary-05cpp",
label="05cpp",
dataset_name="fashion-mnist-100p-noniid-05cpp",
model_name="orig_cnn",
E=100,
instance_cores=16,
),
UnitaryVisionTask(
name="unitary-06cpp",
label="06cpp",
dataset_name="fashion-mnist-100p-noniid-06cpp",
model_name="orig_cnn",
E=100,
instance_cores=16,
),
UnitaryVisionTask(
name="unitary-07cpp",
label="07cpp",
dataset_name="fashion-mnist-100p-noniid-07cpp",
model_name="orig_cnn",
E=100,
instance_cores=16,
),
UnitaryVisionTask(
name="unitary-08cpp",
label="08cpp",
dataset_name="fashion-mnist-100p-noniid-08cpp",
model_name="orig_cnn",
E=100,
instance_cores=16,
),
UnitaryVisionTask(
name="unitary-09cpp",
label="09cpp",
dataset_name="fashion-mnist-100p-noniid-09cpp",
model_name="orig_cnn",
E=100,
instance_cores=16,
),
UnitaryVisionTask(
name="unitary-balanced",
label="balanced",
dataset_name="fashion-mnist-100p-iid-balanced",
model_name="orig_cnn",
E=100,
instance_cores=16,
),
],
aggregation_name="cpp-aggregation",
),
#
# ##############################
# VOL CONTINUUM
# ##############################
#
## TODO
#
# ##############################
# C LOW-TO-HIGH
# ##############################
#
"C-fashion-mnist-100p-noniid-03cpp": Benchmark(
tasks=[
VisionTask(
name="federated-C0_01",
label="C=0.01",
dataset_name="fashion-mnist-100p-noniid-03cpp",
model_name="orig_cnn",
R=50,
E=1,
C=0.01,
instance_cores=32,
timeout=120,
),
VisionTask(
name="federated-C0_03",
label="C=0.03",
dataset_name="fashion-mnist-100p-noniid-03cpp",
model_name="orig_cnn",
R=50,
E=1,
C=0.03,
instance_cores=32,
timeout=120,
),
VisionTask(
name="federated-C0_10",
label="C=0.1",
dataset_name="fashion-mnist-100p-noniid-03cpp",
model_name="orig_cnn",
R=50,
E=1,
C=0.1,
instance_cores=32,
timeout=120,
),
VisionTask(
name="federated-C0_20",
label="C=0.2",
dataset_name="fashion-mnist-100p-noniid-03cpp",
model_name="orig_cnn",
R=50,
E=1,
C=0.2,
instance_cores=32,
timeout=240,
),
],
aggregation_name="flul-aggregation",
),
"C-fashion-mnist-100p-noniid-05cpp": Benchmark(
tasks=[
VisionTask(
name="federated-C0_01",
label="C=0.01",
dataset_name="fashion-mnist-100p-noniid-05cpp",
model_name="orig_cnn",
R=50,
E=1,
C=0.01,
instance_cores=32,
timeout=120,
),
VisionTask(
name="federated-C0_03",
label="C=0.03",
dataset_name="fashion-mnist-100p-noniid-05cpp",
model_name="orig_cnn",
R=50,
E=1,
C=0.03,
instance_cores=32,
timeout=120,
),
VisionTask(
name="federated-C0_10",
label="C=0.1",
dataset_name="fashion-mnist-100p-noniid-05cpp",
model_name="orig_cnn",
R=50,
E=1,
C=0.1,
instance_cores=32,
timeout=120,
),
VisionTask(
name="federated-C0_20",
label="C=0.2",
dataset_name="fashion-mnist-100p-noniid-05cpp",
model_name="orig_cnn",
R=50,
E=1,
C=0.2,
instance_cores=32,
timeout=240,
),
],
aggregation_name="flul-aggregation",
),
"C-fashion-mnist-100p-noniid-09cpp": Benchmark(
tasks=[
VisionTask(
name="federated-C0_01",
label="C=0.01",
dataset_name="fashion-mnist-100p-noniid-09cpp",
model_name="orig_cnn",
R=50,
E=1,
C=0.01,
instance_cores=32,
timeout=120,
),
VisionTask(
name="federated-C0_03",
label="C=0.03",
dataset_name="fashion-mnist-100p-noniid-09cpp",
model_name="orig_cnn",
R=50,
E=1,
C=0.03,
instance_cores=32,
timeout=120,
),
VisionTask(
name="federated-C0_10",
label="C=0.1",
dataset_name="fashion-mnist-100p-noniid-09cpp",
model_name="orig_cnn",
R=50,
E=1,
C=0.1,
instance_cores=32,
timeout=120,
),
VisionTask(
name="federated-C0_20",
label="C=0.2",
dataset_name="fashion-mnist-100p-noniid-09cpp",
model_name="orig_cnn",
R=50,
E=1,
C=0.2,
instance_cores=32,
timeout=240,
),
],
aggregation_name="flul-aggregation",
),
"C-fashion-mnist-100p-iid-balanced": Benchmark(
tasks=[
VisionTask(
name="federated-C0_01",
label="C=0.01",
dataset_name="fashion-mnist-100p-iid-balanced",
model_name="orig_cnn",
R=50,
E=1,
C=0.01,
instance_cores=32,
timeout=120,
),
VisionTask(
name="federated-C0_03",
label="C=0.03",
dataset_name="fashion-mnist-100p-iid-balanced",
model_name="orig_cnn",
R=50,
E=1,
C=0.03,
instance_cores=32,
timeout=120,
),
VisionTask(
name="federated-C0_10",
label="C=0.1",
dataset_name="fashion-mnist-100p-iid-balanced",
model_name="orig_cnn",
R=50,
E=1,
C=0.1,
instance_cores=32,
timeout=120,
),
VisionTask(
name="federated-C0_20",
label="C=0.2",
dataset_name="fashion-mnist-100p-iid-balanced",
model_name="orig_cnn",
R=50,
E=1,
C=0.2,
instance_cores=32,
timeout=240,
),
],
aggregation_name="flul-aggregation",
),
#
# ##############################
# E LOW-TO-HIGH
# ##############################
#
"E-fashion-mnist-100p-iid-balanced": Benchmark(
tasks=[
VisionTask(
name="federated-E01",
label="E=01",
dataset_name="fashion-mnist-100p-iid-balanced",
model_name="orig_cnn",
R=128,
E=1,
instance_cores=32,
timeout=120,
),
VisionTask(
name="federated-E02",
label="E=02",
dataset_name="fashion-mnist-100p-iid-balanced",
model_name="orig_cnn",
R=64,
E=2,
instance_cores=32,
timeout=120,
),
VisionTask(
name="federated-E04",
label="E=04",
dataset_name="fashion-mnist-100p-iid-balanced",
model_name="orig_cnn",
R=32,
E=4,
instance_cores=32,
timeout=120,
),
VisionTask(
name="federated-E08",
label="E=08",
dataset_name="fashion-mnist-100p-iid-balanced",
model_name="orig_cnn",
R=16,
E=8,
instance_cores=32,
timeout=120,
),
VisionTask(
name="federated-E16",
label="E=16",
dataset_name="fashion-mnist-100p-iid-balanced",
model_name="orig_cnn",
R=8,
E=16,
instance_cores=32,
timeout=120,
),
],
aggregation_name="flul-aggregation",
),
"E-fashion-mnist-100p-noniid-08cpp": Benchmark(
tasks=[
VisionTask(
name="federated-E01",
label="E=01",
dataset_name="fashion-mnist-100p-noniid-08cpp",
model_name="orig_cnn",
R=128,
E=1,
instance_cores=32,
timeout=120,
),
VisionTask(
name="federated-E02",
label="E=02",
dataset_name="fashion-mnist-100p-noniid-08cpp",
model_name="orig_cnn",
R=64,
E=2,
instance_cores=32,
timeout=120,
),
VisionTask(
name="federated-E04",
label="E=04",
dataset_name="fashion-mnist-100p-noniid-08cpp",
model_name="orig_cnn",
R=32,
E=4,
instance_cores=32,
timeout=120,
),
VisionTask(
name="federated-E08",
label="E=08",
dataset_name="fashion-mnist-100p-noniid-08cpp",
model_name="orig_cnn",
R=16,
E=8,
instance_cores=32,
timeout=120,
),
VisionTask(
name="federated-E16",
label="E=16",
dataset_name="fashion-mnist-100p-noniid-08cpp",
model_name="orig_cnn",
R=8,
E=16,
instance_cores=32,
timeout=120,
),
],
aggregation_name="flul-aggregation",
),
"E-fashion-mnist-100p-noniid-05cpp": Benchmark(
tasks=[
VisionTask(
name="federated-E01",
label="E=01",
dataset_name="fashion-mnist-100p-noniid-05cpp",
model_name="orig_cnn",
R=128,
E=1,
instance_cores=32,
timeout=120,
),
VisionTask(
name="federated-E02",
label="E=02",
dataset_name="fashion-mnist-100p-noniid-05cpp",
model_name="orig_cnn",
R=64,
E=2,
instance_cores=32,
timeout=120,
),
VisionTask(
name="federated-E04",
label="E=04",
dataset_name="fashion-mnist-100p-noniid-05cpp",
model_name="orig_cnn",
R=32,
E=4,
instance_cores=32,
timeout=120,
),
VisionTask(
name="federated-E08",
label="E=08",
dataset_name="fashion-mnist-100p-noniid-05cpp",
model_name="orig_cnn",
R=16,
E=8,
instance_cores=32,
timeout=120,
),
VisionTask(
name="federated-E16",
label="E=16",
dataset_name="fashion-mnist-100p-noniid-05cpp",
model_name="orig_cnn",
R=8,
E=16,
instance_cores=32,
timeout=120,
),
],
aggregation_name="flul-aggregation",
),
#
# ##############################
# End-To-End Tests
# ##############################
#
"e2e-flul-fashion-mnist": Benchmark(
tasks=[
UnitaryVisionTask(
name="unitary",
dataset_name="fashion-mnist-100p-noniid-02cpp",
E=4,
partition_id=0,
instance_cores=4,
timeout=10,
),
VisionTask(
name="federated",
dataset_name="fashion-mnist-100p-noniid-02cpp",
R=2,
E=2,
C=0.02,
instance_cores=4,
timeout=10,
),
],
aggregation_name="flul-aggregation",
),
"e2e-flul-cifar-10": Benchmark(
tasks=[
UnitaryVisionTask(
name="unitary",
dataset_name="cifar-10-100p-noniid-02cpp",
E=4,
partition_id=0,
instance_cores=16,
timeout=10,
),
VisionTask(
name="federated",
dataset_name="cifar-10-100p-noniid-02cpp",
R=2,
E=2,
C=0.02,
instance_cores=16,
timeout=10,
),
],
aggregation_name="flul-aggregation",
),
}
def run_benchmark(benchmark_name: str):
logging.info(f"Building Docker image for benchmark {benchmark_name}")
logging.info(f"Starting benchmark {benchmark_name}")
benchmark = benchmarks[benchmark_name]
group_name = FLAGS.group_name or f"{strftime('%Y%m%dT%H%M')}_{benchmark_name}"
task_names = {task.name for task in benchmark.tasks}
assert len(task_names) == len(benchmark.tasks), "Duplicate task names"
should_push = benchmark.runner == "ec2"
docker_image_name = docker.build(should_push=should_push)
# TODO Initiate tasks in parallel
for task in benchmark.tasks:
model_name = task.model_name
dataset_name = task.dataset_name
run_task(
docker_image_name=docker_image_name,
group_name=group_name,
task_name=task.name,
task_label=task.label,
model=model_name,
dataset=dataset_name,
R=task.R,
E=task.E,
C=task.C,
B=task.B,
partition_id=task.partition_id,
instance_cores=task.instance_cores,
timeout=task.timeout,
runner=benchmark.runner,
)
with TemporaryDirectory() as tmpdir:
fname = os.path.join(tmpdir, "config.json")
data = {"aggregation_name": benchmark.aggregation_name}
storage.write_json(data, fname)
results.push(group_name=group_name, task_name="", output_dir=tmpdir)
def run_task(
docker_image_name: str,
group_name: str,
task_name: str,
task_label: str,
model: str,
dataset: str,
R: int,
E: int,
C: float,
B: int,
partition_id: Optional[int],
instance_cores: int,
timeout: int,
runner: str, # one of ["ec2", "docker"]
):
task_msg = f"{model}, {dataset}, {R}, {E}, {C}, {B}, {instance_cores}, {timeout}"
logging.info(f"Attempting to run task on {runner}: {task_msg}")
if runner == "ec2":
r = run.ec2
elif runner == "docker":
r = run.docker
else:
raise Exception("Runner does not exist")
r(
image=docker_image_name,
timeout=timeout,
instance_cores=instance_cores,
# The following arguments will be passed as absl flags:
group_name=group_name,
task_name=task_name,
task_label=task_label,
model=model,
dataset=dataset,
R=R,
E=E,
C=C,
B=B,
partition_id=partition_id,
)
def main(_):
benchmark_name = FLAGS.benchmark_name
assert benchmark_name in benchmarks
run_benchmark(benchmark_name=benchmark_name)
| 30.378313
| 86
| 0.425756
| 2,249
| 25,214
| 4.613161
| 0.076923
| 0.083277
| 0.109494
| 0.133012
| 0.808
| 0.782843
| 0.772819
| 0.743036
| 0.742458
| 0.741012
| 0
| 0.079948
| 0.45332
| 25,214
| 829
| 87
| 30.414958
| 0.672737
| 0.009677
| 0
| 0.832031
| 0
| 0.001302
| 0.18069
| 0.094385
| 0
| 0
| 0
| 0.001206
| 0.002604
| 1
| 0.005208
| false
| 0
| 0.010417
| 0
| 0.016927
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
77ce8a9c08f16362091490ad7e200e351029a6c4
| 304
|
py
|
Python
|
myprojectdydy/__init__.py
|
DoyeobYeo/myprojectdydy
|
d49792b5093cdeb200e3c2b012f48a3f4b32c8d4
|
[
"MIT"
] | null | null | null |
myprojectdydy/__init__.py
|
DoyeobYeo/myprojectdydy
|
d49792b5093cdeb200e3c2b012f48a3f4b32c8d4
|
[
"MIT"
] | null | null | null |
myprojectdydy/__init__.py
|
DoyeobYeo/myprojectdydy
|
d49792b5093cdeb200e3c2b012f48a3f4b32c8d4
|
[
"MIT"
] | null | null | null |
from myprojectdydy.ista import ISTA
from myprojectdydy.ista import ISTA_l2
from myprojectdydy.ista import L2minGD
from myprojectdydy.lasso import Comparision_GroupLASSO
from myprojectdydy.lasso import GroupLasso
from myprojectdydy.lasso import GroupLasso2
from myprojectdydy.lasso import GroupLasso_ISTA
| 38
| 54
| 0.884868
| 38
| 304
| 7
| 0.263158
| 0.447368
| 0.330827
| 0.421053
| 0.661654
| 0
| 0
| 0
| 0
| 0
| 0
| 0.01087
| 0.092105
| 304
| 7
| 55
| 43.428571
| 0.952899
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
77edaf0921b93b6d8786b94db11d4280083a9689
| 476
|
py
|
Python
|
api_framework/permissions/__init__.py
|
alex-polosky/django-api-framework
|
6441fb70294429979653da58787c4d0304ead117
|
[
"BSD-2-Clause"
] | null | null | null |
api_framework/permissions/__init__.py
|
alex-polosky/django-api-framework
|
6441fb70294429979653da58787c4d0304ead117
|
[
"BSD-2-Clause"
] | null | null | null |
api_framework/permissions/__init__.py
|
alex-polosky/django-api-framework
|
6441fb70294429979653da58787c4d0304ead117
|
[
"BSD-2-Clause"
] | null | null | null |
from rest_framework.permissions import (
AllowAny,
BasePermission,
DjangoModelPermissions,
DjangoModelPermissionsOrAnonReadOnly,
DjangoObjectPermissions,
IsAdminUser,
IsAuthenticated,
IsAuthenticatedOrReadOnly
)
__all__ = [
'AllowAny',
'BasePermission',
'DjangoModelPermissions',
'DjangoModelPermissionsOrAnonReadOnly',
'DjangoObjectPermissions',
'IsAdminUser',
'IsAuthenticated',
'IsAuthenticatedOrReadOnly'
]
| 21.636364
| 43
| 0.735294
| 22
| 476
| 15.681818
| 0.636364
| 0.127536
| 0.255072
| 0.463768
| 0.892754
| 0.892754
| 0.892754
| 0.892754
| 0
| 0
| 0
| 0
| 0.189076
| 476
| 21
| 44
| 22.666667
| 0.893782
| 0
| 0
| 0
| 0
| 0
| 0.323529
| 0.222689
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.05
| 0
| 0.05
| 0
| 1
| 0
| 1
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
7ac782658dbc74f58b12e77efdac8388df5f467b
| 104
|
py
|
Python
|
solvers/__init__.py
|
GoRoadster/syslineq
|
329a2ffe6222fb4f90a558a423613c495bba877a
|
[
"MIT"
] | 4
|
2020-03-09T11:57:39.000Z
|
2021-03-28T09:16:19.000Z
|
solvers/__init__.py
|
GoRoadster/syslineq
|
329a2ffe6222fb4f90a558a423613c495bba877a
|
[
"MIT"
] | null | null | null |
solvers/__init__.py
|
GoRoadster/syslineq
|
329a2ffe6222fb4f90a558a423613c495bba877a
|
[
"MIT"
] | null | null | null |
from solvers.methods.gauss import gaussian_elimination
from solvers.methods.cholesky import cholesky_LU
| 34.666667
| 54
| 0.884615
| 14
| 104
| 6.428571
| 0.642857
| 0.244444
| 0.4
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.076923
| 104
| 2
| 55
| 52
| 0.9375
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
7ac7bbe30c23f681c4d60699082bb8af118e6f7b
| 61
|
py
|
Python
|
lakepy/__init__.py
|
jameshgrn/GlobalLakeLevelDatabase
|
39dafc23f38fbf984538511b04d6493b8b0819ff
|
[
"MIT"
] | null | null | null |
lakepy/__init__.py
|
jameshgrn/GlobalLakeLevelDatabase
|
39dafc23f38fbf984538511b04d6493b8b0819ff
|
[
"MIT"
] | null | null | null |
lakepy/__init__.py
|
jameshgrn/GlobalLakeLevelDatabase
|
39dafc23f38fbf984538511b04d6493b8b0819ff
|
[
"MIT"
] | null | null | null |
from lakepy.main import search
from lakepy.main import Lake
| 15.25
| 30
| 0.819672
| 10
| 61
| 5
| 0.6
| 0.4
| 0.56
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.147541
| 61
| 3
| 31
| 20.333333
| 0.961538
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 7
|
7ad50d269ab8b2b02a082451f1563dbb6efcbbaf
| 3,209
|
py
|
Python
|
prnGen.py
|
Alpha-CubeSat/Monarch-Ground-Station
|
def3de46f7234eab460bcb93225f42e956572fc1
|
[
"MIT"
] | null | null | null |
prnGen.py
|
Alpha-CubeSat/Monarch-Ground-Station
|
def3de46f7234eab460bcb93225f42e956572fc1
|
[
"MIT"
] | null | null | null |
prnGen.py
|
Alpha-CubeSat/Monarch-Ground-Station
|
def3de46f7234eab460bcb93225f42e956572fc1
|
[
"MIT"
] | null | null | null |
import numpy as np
mseq1 = np.array([
1,0,1,0,1,0,1,0,1,0,0,0,0,0,0,1,0,1,0,0,1,0,1,0,1,1,1,1,0,0,1,0,
1,1,1,0,1,1,1,0,0,0,0,0,0,1,1,1,0,0,1,1,1,0,1,0,0,1,0,0,1,1,1,1,
0,1,0,1,1,1,0,1,0,1,0,0,0,1,0,0,1,0,0,0,0,1,1,0,0,1,1,1,0,0,0,0,
1,0,1,1,1,1,0,1,1,0,1,1,0,0,1,1,0,1,0,0,0,0,1,1,1,0,1,1,1,1,0,0,
0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,1,1,1,1,0,1,1,1,1,1,0,0,0,1,0,1,
1,1,0,0,1,1,0,0,1,0,0,0,0,0,1,0,0,1,0,1,0,0,1,1,1,0,1,1,0,1,0,0,
0,1,1,1,1,0,0,1,1,1,1,1,0,0,1,1,0,1,1,0,0,0,1,0,1,0,1,0,0,1,0,0,
0,1,1,1,0,0,0,1,1,0,1,1,0,1,0,1,0,1,1,1,0,0,0,1,0,0,1,1,0,0,0,1,
0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,1,1,0,0,0,0,1,0,0,1,1,
1,0,0,1,0,1,0,1,0,1,1,0,0,0,0,1,1,0,1,1,1,1,0,1,0,0,1,1,0,1,1,1,
0,0,1,0,0,0,1,0,1,0,0,0,0,1,0,1,0,1,1,0,1,0,0,1,1,1,1,1,1,0,1,1,
0,0,1,0,0,1,0,0,1,0,1,1,0,1,1,1,1,1,1,0,0,1,0,0,1,1,0,1,0,1,0,0,
1,1,0,0,1,1,0,0,0,0,0,0,0,1,1,0,0,0,1,1,0,0,1,0,1,0,0,0,1,1,0,1,
0,0,1,0,1,1,1,1,1,1,1,0,1,0,0,0,1,0,1,1,0,0,0,1,1,1,0,1,0,1,1,0,
0,1,0,1,1,0,0,1,1,1,1,0,0,0,1,1,1,1,1,0,1,1,1,0,1,0,0,0,0,0,1,1,
0,1,0,1,1,0,1,1,0,1,1,1,0,1,1,0,0,0,0,0,1,0,1,1,0,1,0,1,1,1,1,0], dtype = 'uint8')
mseq2 = np.array([
1,0,1,0,1,0,1,0,1,1,1,1,0,1,1,1,1,1,1,0,0,1,1,1,1,0,1,0,0,1,0,0,
1,1,1,1,1,0,0,1,0,1,1,1,1,1,0,1,0,0,0,0,0,0,1,0,1,1,0,0,0,1,0,0,
1,1,0,0,1,1,1,0,1,1,1,1,0,1,0,1,1,0,1,1,0,1,1,1,0,1,0,1,0,1,1,0,
1,0,0,1,0,1,1,1,0,1,0,0,0,1,0,0,0,0,0,1,0,0,0,0,1,1,0,1,0,1,1,1,
0,1,1,0,0,0,0,1,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,1,1,0,0,0,0,0,1,0,
1,0,0,0,1,1,1,0,1,1,0,1,0,0,0,0,1,0,1,1,1,0,0,0,0,1,1,1,0,0,0,0,
0,1,1,1,0,1,0,0,1,1,0,1,0,1,0,1,0,0,1,1,0,0,0,1,1,1,1,0,1,1,0,1,
1,0,0,1,1,1,1,1,1,0,1,1,1,0,1,1,1,0,0,1,1,1,0,0,1,1,0,0,0,0,1,1,
0,0,0,1,0,1,1,1,1,0,0,1,1,0,1,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,0,1,
0,0,1,0,1,0,0,0,0,1,1,1,1,0,0,1,0,0,1,1,0,1,1,1,0,0,0,1,1,1,0,0,
1,0,0,0,1,0,0,1,0,0,0,0,1,0,0,1,1,1,0,1,0,1,1,1,1,1,1,1,0,1,0,1,
0,0,1,0,0,0,1,1,0,1,1,0,1,0,1,0,0,0,0,0,1,1,0,0,1,1,0,0,1,0,1,0,
0,1,0,1,0,1,0,0,0,1,0,1,0,0,1,1,1,0,0,0,1,0,1,0,1,1,1,0,0,1,0,1,
0,1,1,0,0,0,0,0,0,0,1,1,0,1,1,1,1,0,0,0,1,0,0,0,1,0,1,1,0,1,0,1,
1,0,0,1,0,0,1,0,0,1,0,1,1,0,0,1,1,0,1,1,0,0,0,1,1,0,1,0,0,1,1,1,
1,0,0,0,0,0,0,1,1,1,1,1,0,1,1,0,0,1,0,1,1,0,1,1,1,1,1,0,0,0,0,0], dtype = 'uint8')
def prn(i):
return mseq1 ^ np.roll(mseq2, -i)
#turn each 8 bit into a byte
def bin_to_hex(seq):
out = np.zeros(len(seq)//8, dtype = 'uint8')
for i in range(0,len(seq),8):
for k in range(8):
out[i//8] += seq[i+k]*2**k
return out
#print hex prn with 8 bytes per line
def print_prn(seq):
for i in range(0,len(seq),8):
print(" ".join(hex(n).zfill(2)+"," for n in seq[i:i+8]))
#print hex prn without the 0x
def print_prn_no_0x(seq):
print("".join(hex(n)[2:].zfill(2) for n in seq))
print("With Hex")
print("Prn 0:")
print_prn(bin_to_hex(prn(0)))
print("Prn 1:")
print_prn(bin_to_hex(prn(1)))
print("Preamble:")
print_prn(bin_to_hex(prn(2)))
print("Without Hex")
print("Prn 0:")
print_prn_no_0x(bin_to_hex(prn(0)))
print("Prn 1:")
print_prn_no_0x(bin_to_hex(prn(1)))
print("Preamble:")
print_prn_no_0x(bin_to_hex(prn(2)))
| 43.958904
| 88
| 0.511063
| 1,216
| 3,209
| 1.324013
| 0.039474
| 0.319255
| 0.238509
| 0.159006
| 0.81118
| 0.809938
| 0.764596
| 0.764596
| 0.721739
| 0.678882
| 0
| 0.371539
| 0.110938
| 3,209
| 72
| 89
| 44.569444
| 0.19278
| 0.028046
| 0
| 0.129032
| 0
| 0
| 0.025032
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.064516
| false
| 0
| 0.016129
| 0.016129
| 0.112903
| 0.290323
| 0
| 0
| 1
| null | 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 11
|
bb1a759536d41fb13fd4d944f8a33ae2de5cbba5
| 167
|
py
|
Python
|
tests/parser/aggregates.min.propagation.8.test.py
|
veltri/DLV2
|
944aaef803aa75e7ec51d7e0c2b0d964687fdd0e
|
[
"Apache-2.0"
] | null | null | null |
tests/parser/aggregates.min.propagation.8.test.py
|
veltri/DLV2
|
944aaef803aa75e7ec51d7e0c2b0d964687fdd0e
|
[
"Apache-2.0"
] | null | null | null |
tests/parser/aggregates.min.propagation.8.test.py
|
veltri/DLV2
|
944aaef803aa75e7ec51d7e0c2b0d964687fdd0e
|
[
"Apache-2.0"
] | null | null | null |
input = """
d(0) | b.
d(1).
:- not b.
l_d(M) :- d(M), #min{ D : d(D) } = M.
"""
output = """
d(0) | b.
d(1).
:- not b.
l_d(M) :- d(M), #min{ D : d(D) } = M.
"""
| 8.789474
| 37
| 0.329341
| 36
| 167
| 1.472222
| 0.277778
| 0.226415
| 0.113208
| 0.150943
| 0.792453
| 0.792453
| 0.792453
| 0.792453
| 0.792453
| 0.792453
| 0
| 0.033613
| 0.287425
| 167
| 18
| 38
| 9.277778
| 0.411765
| 0
| 0
| 0.833333
| 0
| 0.166667
| 0.814371
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| null | 1
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
248b74055aead279ac1a74cfcd166be848654ae1
| 45
|
py
|
Python
|
helloWorld/hello_world.py
|
Udhayabanu/hello_package
|
84d900b64015238d725723684cc8ac8423a01b6b
|
[
"MIT"
] | null | null | null |
helloWorld/hello_world.py
|
Udhayabanu/hello_package
|
84d900b64015238d725723684cc8ac8423a01b6b
|
[
"MIT"
] | null | null | null |
helloWorld/hello_world.py
|
Udhayabanu/hello_package
|
84d900b64015238d725723684cc8ac8423a01b6b
|
[
"MIT"
] | null | null | null |
def get_the_word():
return "Hello World"
| 15
| 24
| 0.688889
| 7
| 45
| 4.142857
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.2
| 45
| 2
| 25
| 22.5
| 0.805556
| 0
| 0
| 0
| 0
| 0
| 0.244444
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| true
| 0
| 0
| 0.5
| 1
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
24d6265967b82dee758a63399243fe4b25e631fd
| 228
|
py
|
Python
|
pypy/interpreter/pyparser/test/samples/snippet_whilelineno.py
|
camillobruni/pygirl
|
ddbd442d53061d6ff4af831c1eab153bcc771b5a
|
[
"MIT"
] | 12
|
2016-01-06T07:10:28.000Z
|
2021-05-13T23:02:02.000Z
|
pypy/interpreter/pyparser/test/samples/snippet_whilelineno.py
|
woodrow/pyoac
|
b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7
|
[
"MIT"
] | null | null | null |
pypy/interpreter/pyparser/test/samples/snippet_whilelineno.py
|
woodrow/pyoac
|
b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7
|
[
"MIT"
] | 2
|
2016-07-29T07:09:50.000Z
|
2016-10-16T08:50:26.000Z
|
while (a < b and c < d
and e < f):
pass
while (a < b and
c < d
and e < f):
pass
while (a < b
and c < d
and e < f):
pass
while (a < b
and c < d and
e < f):
pass
| 12
| 22
| 0.368421
| 40
| 228
| 2.1
| 0.225
| 0.285714
| 0.333333
| 0.47619
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0.526316
| 228
| 18
| 23
| 12.666667
| 0.777778
| 0
| 0
| 0.6
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.266667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 12
|
701577626f24326eb175f49edabffdfa0e81895e
| 41
|
py
|
Python
|
src/lib/stringold.py
|
DTenore/skulpt
|
098d20acfb088d6db85535132c324b7ac2f2d212
|
[
"MIT"
] | 2,671
|
2015-01-03T08:23:25.000Z
|
2022-03-31T06:15:48.000Z
|
src/lib/stringold.py
|
wakeupmuyunhe/skulpt
|
a8fb11a80fb6d7c016bab5dfe3712517a350b347
|
[
"MIT"
] | 972
|
2015-01-05T08:11:00.000Z
|
2022-03-29T13:47:15.000Z
|
src/lib/stringold.py
|
wakeupmuyunhe/skulpt
|
a8fb11a80fb6d7c016bab5dfe3712517a350b347
|
[
"MIT"
] | 845
|
2015-01-03T19:53:36.000Z
|
2022-03-29T18:34:22.000Z
|
import _sk_fail; _sk_fail._("stringold")
| 20.5
| 40
| 0.780488
| 6
| 41
| 4.5
| 0.666667
| 0.444444
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.073171
| 41
| 1
| 41
| 41
| 0.710526
| 0
| 0
| 0
| 0
| 0
| 0.219512
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
7040c5ad8b0ae0afd7f14c9d4dfa1e826d76867e
| 115
|
py
|
Python
|
helper_functions/plotting.py
|
Osrip/Novelty_criticality_PyTorch-NEAT
|
ff37eede4aea2cbb4075414a960477c215219f73
|
[
"Apache-2.0"
] | null | null | null |
helper_functions/plotting.py
|
Osrip/Novelty_criticality_PyTorch-NEAT
|
ff37eede4aea2cbb4075414a960477c215219f73
|
[
"Apache-2.0"
] | null | null | null |
helper_functions/plotting.py
|
Osrip/Novelty_criticality_PyTorch-NEAT
|
ff37eede4aea2cbb4075414a960477c215219f73
|
[
"Apache-2.0"
] | null | null | null |
import random
def random_color():
return "#" + ''.join([random.choice('0123456789ABCDEF') for j in range(6)])
| 23
| 79
| 0.669565
| 15
| 115
| 5.066667
| 0.866667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.112245
| 0.147826
| 115
| 4
| 80
| 28.75
| 0.663265
| 0
| 0
| 0
| 0
| 0
| 0.147826
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0
| 0.333333
| 0.333333
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 1
| 1
| 0
|
0
| 7
|
7062009b44ef567f147c0b3d414e9f0196c89916
| 24,947
|
py
|
Python
|
fline/models/models/research/history/object_detection_model.py
|
asromahin/fline
|
a34243878093b3b883607557eeaf968ef4b8acf6
|
[
"MIT"
] | 5
|
2021-07-01T08:19:51.000Z
|
2022-03-28T06:09:55.000Z
|
fline/models/models/research/history/object_detection_model.py
|
asromahin/fline
|
a34243878093b3b883607557eeaf968ef4b8acf6
|
[
"MIT"
] | 1
|
2022-03-21T02:42:44.000Z
|
2022-03-28T06:10:57.000Z
|
fline/models/models/research/history/object_detection_model.py
|
asromahin/fline
|
a34243878093b3b883607557eeaf968ef4b8acf6
|
[
"MIT"
] | null | null | null |
import torch
import segmentation_models_pytorch as smp
from fline.models.models.segmentation.fpn import TimmFPN
from fline.models.encoders.timm import TimmEncoder
from fline.models.models.research.extractor import VectorsFromMask
from fline.models.models.research.connect_net import ConnectNet
class ObjectDetectionModel(torch.nn.Module):
def __init__(
self,
backbone_name,
max_objects=32,
features_block=None,
):
super(ObjectDetectionModel, self).__init__()
self.backbone_name = backbone_name
self.model = TimmFPN(
backbone_name=backbone_name,
classes=max_objects,
activation=torch.nn.Softmax2d(),
features_block=features_block,
return_dict=True,
)
self.bbox_layer = torch.nn.Linear(self.model.out_feature_channels, self.model.out_feature_channels//2)
self.bbox_layer_out = torch.nn.Linear(self.model.out_feature_channels//2, 4)
self.sigmoid = torch.nn.Sigmoid()
def forward(self, x):
res_dict = self.model(x)
encoded = res_dict['out']
encoded_classes = res_dict['classes']
connected_out = encoded_classes.argmax(dim=1)
out_bboxes = []
zero_bbox = []
encoded = torch.transpose(encoded, 0, 1)
for i in torch.unique(connected_out):
cur_mask = (connected_out == i).to(dtype=torch.float32)
#print(cur_mask.shape, encoded.shape)
vector_encoded = cur_mask * encoded
vector_encoded = vector_encoded.max(dim=2)[0]
vector_encoded = vector_encoded.max(dim=2)[0]
vector_encoded = torch.transpose(vector_encoded, 0, 1)
bbox = self.bbox_layer(vector_encoded)
bbox = self.bbox_layer_out(bbox)
bbox = bbox.unsqueeze(1)
bbox = self.sigmoid(bbox)
#print(bbox)
if i != 0:
out_bboxes.append(bbox)
else:
zero_bbox.append(bbox)
if len(out_bboxes) == 0:
out_bboxes = zero_bbox
out_bboxes = torch.cat(out_bboxes, dim=1)
return out_bboxes, encoded_classes
class ObjectDetectionModelV2(torch.nn.Module):
def __init__(
self,
backbone_name,
features_block=None,
):
super(ObjectDetectionModelV2, self).__init__()
self.backbone_name = backbone_name
self.model = TimmFPN(
backbone_name=backbone_name,
features_block=features_block,
return_dict=True,
)
self.bbox_layer = torch.nn.Linear(self.model.out_feature_channels, self.model.out_feature_channels//2)
self.bbox_layer_out = torch.nn.Linear(self.model.out_feature_channels//2, 4)
self.sigmoid = torch.nn.Sigmoid()
def forward(self, x, masks):
res_dict = self.model(x)
encoded = res_dict['out']
#encoded_classes = res_dict['classes']
#connected_out = encoded_classes.argmax(dim=1)
out_bboxes = []
encoded = torch.transpose(encoded, 0, 1)
for i in torch.unique(masks):
if i != 0:
cur_mask = (masks == i).to(dtype=torch.float32)[:, 0, :, :]
vector_encoded = cur_mask * encoded
vector_encoded = vector_encoded.max(dim=2)[0]
vector_encoded = vector_encoded.max(dim=2)[0]
vector_encoded = torch.transpose(vector_encoded, 0, 1)
bbox = self.bbox_layer(vector_encoded)
bbox = self.bbox_layer_out(bbox)
bbox = bbox.unsqueeze(1)
bbox = self.sigmoid(bbox)
out_bboxes.append(bbox)
out_bboxes = torch.cat(out_bboxes, dim=1)
return out_bboxes
class ObjectDetectionModelV3(torch.nn.Module):
def __init__(
self,
backbone_name,
features_block=None,
):
super(ObjectDetectionModelV3, self).__init__()
self.backbone_name = backbone_name
self.model = TimmFPN(
backbone_name=backbone_name,
features_block=features_block,
return_dict=True,
)
self.bbox_layer = torch.nn.Linear(self.model.out_feature_channels, self.model.out_feature_channels//2)
self.bbox_layer_out = torch.nn.Linear(self.model.out_feature_channels//2, 4)
self.sigmoid = torch.nn.Sigmoid()
def forward(self, x, bboxes):
res_dict = self.model(x)
encoded = res_dict['out']
out_bboxes = []
encoded = torch.transpose(encoded, 0, 1)
#print('-'*60)
for b, batch_boxes in enumerate(bboxes):
cur_bboxes = []
for i, target_box in enumerate(batch_boxes):
x,y,w,h = target_box
x = int(x * encoded.shape[3])
w = int(w * encoded.shape[3])
y = int(y * encoded.shape[2])
h = int(h * encoded.shape[2])
#print(x,y,w,h)
vector_encoded = encoded[:, b:b+1, y-h//2: y+h//2+1, x-w//2: x+w//2+1]
#print(vector_encoded.shape)
vector_encoded = vector_encoded.max(dim=2)[0]
vector_encoded = vector_encoded.max(dim=2)[0]
vector_encoded = torch.transpose(vector_encoded, 0, 1)
bbox = self.bbox_layer(vector_encoded)
bbox = self.bbox_layer_out(bbox)
#bbox = bbox.unsqueeze(0)
bbox = self.sigmoid(bbox)
cur_bboxes.append(bbox)
cur_bboxes = torch.cat(cur_bboxes, dim=0)
cur_bboxes = cur_bboxes.unsqueeze(1)
out_bboxes.append(cur_bboxes)
out_bboxes = torch.cat(out_bboxes, dim=1)
return out_bboxes
class ObjectDetectionModelSMP(torch.nn.Module):
def __init__(
self,
backbone_name,
features_size=64,
):
super(ObjectDetectionModelSMP, self).__init__()
self.backbone_name = backbone_name
self.model = smp.Unet(
encoder_name=backbone_name,
activation=None,
classes=features_size,
)
self.bbox_layer = torch.nn.Linear(features_size, features_size//2)
self.bbox_layer_out = torch.nn.Linear(features_size//2, 4)
self.sigmoid = torch.nn.Sigmoid()
def forward(self, x, masks):
encoded = self.model(x)
#print(encoded.shape)
out_bboxes = []
encoded = torch.transpose(encoded, 0, 1)
for i in torch.unique(masks):
if i != 0:
cur_mask = (masks == i).to(dtype=torch.float32)[:, 0, :, :]
#print(cur_mask.shape, encoded.shape)
vector_encoded = cur_mask * encoded
vector_encoded = vector_encoded.max(dim=2)[0]
vector_encoded = vector_encoded.max(dim=2)[0]
vector_encoded = torch.transpose(vector_encoded, 0, 1)
bbox = self.bbox_layer(vector_encoded)
bbox = self.bbox_layer_out(bbox)
bbox = bbox.unsqueeze(1)
bbox = self.sigmoid(bbox)
#print(bbox)
out_bboxes.append(bbox)
out_bboxes = torch.cat(out_bboxes, dim=1)
return out_bboxes
class ConnectionsSMP(torch.nn.Module):
def __init__(
self,
backbone_name,
features_size=64,
connections_classes=4,
):
super(ConnectionsSMP, self).__init__()
self.backbone_name = backbone_name
self.model = smp.FPN(
encoder_name=backbone_name,
activation=None,
classes=features_size,
)
self.connections_classes = connections_classes
self.bbox_layer = torch.nn.Linear(features_size*2, features_size//2)
self.bbox_layer_out = torch.nn.Linear(features_size//2, connections_classes)
self.sigmoid = torch.nn.Sigmoid()
def forward(self, x, masks):
encoded = self.model(x)
vectors = []
encoded = torch.transpose(encoded, 0, 1)
for i in torch.unique(masks):
if i != 0:
cur_mask = (masks == i).to(dtype=torch.float32)[:, 0, :, :]
#print(cur_mask.shape, encoded.shape)
vector_encoded = cur_mask * encoded
vector_encoded = vector_encoded.max(dim=2)[0]
vector_encoded = vector_encoded.max(dim=2)[0]
vector_encoded = torch.transpose(vector_encoded, 0, 1).unsqueeze(1)
vectors.append(vector_encoded)
vectors = torch.cat(vectors, dim=1) # (b,n,f)
connections = []
for i in range(vectors.shape[1]):
line_connections = []
for j in range(vectors.shape[1]):
vector1 = vectors[:, i, :]
vector2 = vectors[:, j, :]
#vector_encoded = vector1+vector2
vector_encoded = torch.cat([vector1, vector2], dim=1)
bbox = self.bbox_layer(vector_encoded)
bbox = self.bbox_layer_out(bbox)
bbox = self.sigmoid(bbox)
bbox = bbox.unsqueeze(2)
line_connections.append(bbox)
line_connections = torch.cat(line_connections, dim=2).unsqueeze(3)
connections.append(line_connections)
connections = torch.cat(connections, dim=3)
#print(connections.shape)
return vectors, connections
class ConnectionsSMPV2(torch.nn.Module):
def __init__(
self,
backbone_name,
features_size=64,
connections_classes=4,
):
super(ConnectionsSMPV2, self).__init__()
self.backbone_name = backbone_name
self.model = smp.FPN(
encoder_name=backbone_name,
activation=None,
classes=features_size,
)
self.connections_classes = connections_classes
self.bbox_layer = torch.nn.Linear(features_size*2, features_size//2)
self.bbox_layer_out = torch.nn.Linear(features_size//2, connections_classes)
self.sigmoid = torch.nn.Sigmoid()
def forward(self, x, masks):
encoded = self.model(x)
vectors = []
encoded = torch.transpose(encoded, 0, 1)
for i in torch.unique(masks):
if i != 0:
cur_mask = (masks == i)[:, 0, :, :]
#print(cur_mask.shape, encoded.shape)
vector_encoded = []
for i, cm in enumerate(cur_mask):
v_encoded = encoded[:, i, cm]
v_encoded = v_encoded.max(dim=1)[0]
vector_encoded.append(v_encoded.unsqueeze(0))
vector_encoded = torch.cat(vector_encoded, dim=0).unsqueeze(1)
vectors.append(vector_encoded)
vectors = torch.cat(vectors, dim=1) # (b,n,f)
connections = []
for i in range(vectors.shape[1]):
line_connections = []
for j in range(vectors.shape[1]):
vector1 = vectors[:, i, :]
vector2 = vectors[:, j, :]
#vector_encoded = vector1+vector2
vector_encoded = torch.cat([vector1, vector2], dim=1)
bbox = self.bbox_layer(vector_encoded)
bbox = self.bbox_layer_out(bbox)
bbox = self.sigmoid(bbox)
bbox = bbox.unsqueeze(2)
line_connections.append(bbox)
line_connections = torch.cat(line_connections, dim=2).unsqueeze(3)
connections.append(line_connections)
connections = torch.cat(connections, dim=3)
#print(connections.shape)
return vectors, connections
class ConnectionsTimm(torch.nn.Module):
def __init__(
self,
backbone_name,
#features_size=64,
connections_classes=4,
features_block=None,
):
super(ConnectionsTimm, self).__init__()
self.backbone_name = backbone_name
self.model = TimmFPN(
backbone_name=backbone_name,
activation=None,
features_block=features_block,
#classes=features_size,
)
self.connections_classes = connections_classes
features_size = self.model.out_feature_channels
#print(features_size)
self.bbox_layer = torch.nn.Linear(features_size*2, features_size//2)
self.bbox_layer_out = torch.nn.Linear(features_size//2, connections_classes)
self.sigmoid = torch.nn.Sigmoid()
def forward(self, x, masks):
encoded = self.model(x)
vectors = []
encoded = torch.transpose(encoded, 0, 1)
for i in torch.unique(masks):
if i != 0:
cur_mask = (masks == i)[:, 0, :, :]
#print(cur_mask.shape, encoded.shape)
vector_encoded = []
for i, cm in enumerate(cur_mask):
v_encoded = encoded[:, i, cm]
v_encoded = v_encoded.max(dim=1)[0]
vector_encoded.append(v_encoded.unsqueeze(0))
vector_encoded = torch.cat(vector_encoded, dim=0).unsqueeze(1)
vectors.append(vector_encoded)
vectors = torch.cat(vectors, dim=1) # (b,n,f)
connections = []
for i in range(vectors.shape[1]):
line_connections = []
for j in range(vectors.shape[1]):
vector1 = vectors[:, i, :]
vector2 = vectors[:, j, :]
#vector_encoded = vector1+vector2
vector_encoded = torch.cat([vector1, vector2], dim=1)
#print(vector_encoded.shape)
bbox = self.bbox_layer(vector_encoded)
bbox = self.bbox_layer_out(bbox)
bbox = self.sigmoid(bbox)
bbox = bbox.unsqueeze(2)
line_connections.append(bbox)
line_connections = torch.cat(line_connections, dim=2).unsqueeze(3)
connections.append(line_connections)
connections = torch.cat(connections, dim=3)
#print(connections.shape)
return vectors, connections
class ConnectionsFullEncode(torch.nn.Module):
def __init__(
self,
backbone_name,
connections_classes=4,
):
super(ConnectionsFullEncode, self).__init__()
self.backbone_name = backbone_name
self.model = TimmEncoder(
backbone_name=backbone_name,
in_channels=4,
)
features_size = self.model.features_channels[-1]
print(features_size)
self.connections_classes = connections_classes
self.bbox_layer = torch.nn.Linear(features_size*2, features_size//2)
self.bbox_layer_out = torch.nn.Linear(features_size//2, connections_classes)
self.sigmoid = torch.nn.Sigmoid()
def forward(self, x, masks):
vectors = []
for i in torch.unique(masks):
if i != 0:
cur_mask = (masks == i)
new_x = torch.cat([x, cur_mask], dim=1)
encoded = self.model(new_x)
#print(cur_mask.shape, encoded.shape)
encoded = encoded.max(dim=2)[0].max(dim=2)[0].unsqueeze(1)
#print(encoded.shape)
vectors.append(encoded)
vectors = torch.cat(vectors, dim=1) # (b,n,f)
#print(vectors.shape)
connections = []
for i in range(vectors.shape[1]):
line_connections = []
for j in range(vectors.shape[1]):
vector1 = vectors[:, i, :]
vector2 = vectors[:, j, :]
#vector_encoded = vector1+vector2
vector_encoded = torch.cat([vector1, vector2], dim=1)
#print(vector_encoded.shape)
bbox = self.bbox_layer(vector_encoded)
bbox = self.bbox_layer_out(bbox)
bbox = self.sigmoid(bbox)
bbox = bbox.unsqueeze(2)
line_connections.append(bbox)
line_connections = torch.cat(line_connections, dim=2).unsqueeze(3)
connections.append(line_connections)
connections = torch.cat(connections, dim=3)
#print(connections.shape)
return vectors, connections
class ConnectionsSMPV3(torch.nn.Module):
def __init__(
self,
backbone_name,
features_size=64,
connections_classes=4,
):
super(ConnectionsSMPV3, self).__init__()
self.backbone_name = backbone_name
self.model = smp.FPN(
encoder_name=backbone_name,
activation=None,
classes=features_size,
)
self.connections_classes = connections_classes
self.bbox_layer = torch.nn.Conv2d(
in_channels=features_size,
out_channels=connections_classes,
kernel_size=3,
stride=1,
padding=1,
)
self.sigmoid = torch.nn.Sigmoid()
def forward(self, x, masks):
encoded = self.model(x)
vectors = []
encoded = torch.transpose(encoded, 0, 1)
for i in torch.unique(masks):
if i != 0:
cur_mask = (masks == i)[:, 0, :, :]
#print(cur_mask.shape, encoded.shape)
vector_encoded = []
for i, cm in enumerate(cur_mask):
v_encoded = encoded[:, i, cm]
v_encoded = v_encoded.max(dim=1)[0]
vector_encoded.append(v_encoded.unsqueeze(0))
vector_encoded = torch.cat(vector_encoded, dim=0).unsqueeze(1)
vectors.append(vector_encoded)
vectors = torch.cat(vectors, dim=1) # (b,n,f)
vectors = vectors.transpose(1, 2).unsqueeze(dim=3)
vectors_matrix = torch.matmul(vectors, vectors.transpose(2, 3))
bbox = self.bbox_layer(vectors_matrix)
connections = self.sigmoid(bbox)
return vectors, connections
class ConnectionsSMPV4(torch.nn.Module):
def __init__(
self,
backbone_name,
features_size=64,
connections_classes=4,
):
super(ConnectionsSMPV4, self).__init__()
self.backbone_name = backbone_name
self.model = smp.FPN(
encoder_name=backbone_name,
activation=None,
classes=features_size,
)
self.connections_classes = connections_classes
self.bbox_layer = torch.nn.Conv2d(
in_channels=features_size,
out_channels=connections_classes,
kernel_size=3,
stride=1,
padding=1,
)
self.sigmoid = torch.nn.Sigmoid()
def forward(self, x, masks):
encoded = self.model(x)
vectors = []
encoded = torch.transpose(encoded, 0, 1)
for i in range(masks.shape[1]):
#print(i)
if i != 0:
cur_mask = masks[:, i, :, :].to(dtype=torch.bool)
#print(cur_mask.shape)
#if cur_mask.sum() > 0:
#print(cur_mask.shape, encoded.shape)
vector_encoded = []
for i, cm in enumerate(cur_mask):
v_encoded = encoded[:, i, cm]
#print(v_encoded.shape)
v_encoded = v_encoded.max(dim=1)[0]
vector_encoded.append(v_encoded.unsqueeze(0))
vector_encoded = torch.cat(vector_encoded, dim=0).unsqueeze(1)
vectors.append(vector_encoded)
vectors = torch.cat(vectors, dim=1) # (b,n,f)
vectors = vectors.transpose(1, 2).unsqueeze(dim=3)
vectors_matrix = torch.matmul(vectors, vectors.transpose(2, 3))
bbox = self.bbox_layer(vectors_matrix)
connections = self.sigmoid(bbox)
return vectors, connections
class ConnectionsSMPV5(torch.nn.Module):
def __init__(
self,
backbone_name,
features_size=64,
connections_classes=4,
):
super(ConnectionsSMPV5, self).__init__()
self.backbone_name = backbone_name
self.model = smp.FPN(
encoder_name=backbone_name,
activation=None,
classes=features_size,
)
self.connections_classes = connections_classes
self.extractor = VectorsFromMask()
self.connector = ConnectNet(
features_size=features_size,
connections_classes=connections_classes,
)
def forward(self, x, masks):
encoded = self.model(x)
vectors = self.extractor(encoded, masks)
connections = self.connector(vectors, vectors)
return vectors, connections
class ObjectDetectionSMP(torch.nn.Module):
def __init__(
self,
backbone_name,
features_size=64,
#connections_classes=4,
):
super(ObjectDetectionSMP, self).__init__()
self.backbone_name = backbone_name
self.model = smp.FPN(
encoder_name=backbone_name,
activation=None,
classes=features_size,
)
self.points_classes = torch.nn.Conv2d(
in_channels=features_size,
out_channels=3,
kernel_size=3,
stride=1,
padding=1,
)
self.softmax = torch.nn.Softmax2d()
self.sigmoid = torch.nn.Sigmoid()
self.bbox_layer = torch.nn.Conv2d(
in_channels=features_size,
out_channels=1,
kernel_size=3,
stride=1,
padding=1,
)
self.limit = 1000
def forward(self, x, mask=None):
encoded = self.model(x)
points = self.points_classes(encoded)
points = self.softmax(points)
points_encode = points.argmax(dim=1)
if mask is None:
left_top_points = (points_encode == 1)#.unsqueeze(1)
right_bottom_points = (points_encode == 2)#.unsqueeze(1)
else:
left_top_points = (mask == 1) # .unsqueeze(1)
right_bottom_points = (mask == 2) # .unsqueeze(1)
out = []
for b in range(left_top_points.shape[0]):
#print(left_top_points.shape, encoded.shape)
left_top_vectors = encoded[b,:,left_top_points[b]][:,:self.limit].unsqueeze(2)
right_bottom_vectors = encoded[b,:,right_bottom_points[b]][:,:self.limit].unsqueeze(1)
#print(left_top_vectors.shape, right_bottom_vectors.shape)
vectors_matrix = torch.matmul(left_top_vectors, right_bottom_vectors).unsqueeze(0)
vectors_out = self.bbox_layer(vectors_matrix)
vectors_out = self.sigmoid(vectors_out)
out.append(vectors_out)
out = torch.cat(out, dim=0)
return out, points
class ObjectDetectionSMPV2(torch.nn.Module):
def __init__(
self,
backbone_name,
features_size=64,
#connections_classes=4,
):
super(ObjectDetectionSMPV2, self).__init__()
self.backbone_name = backbone_name
self.model = smp.FPN(
encoder_name=backbone_name,
activation=None,
classes=features_size,
)
self.points_classes = torch.nn.Conv2d(
in_channels=features_size,
out_channels=2,
kernel_size=3,
stride=1,
padding=1,
)
self.softmax = torch.nn.Softmax2d()
self.sigmoid = torch.nn.Sigmoid()
self.bbox_layer = torch.nn.Conv2d(
in_channels=features_size,
out_channels=1,
kernel_size=3,
stride=1,
padding=1,
)
self.limit = 1000
self.threshold = 0.5
def forward(self, x, mask=None):
encoded = self.model(x)
points = self.points_classes(encoded)
points = self.sigmoid(points)
#print(x.shape, encoded.shape, points.shape)
if mask is None:
mask = points
left_top_points = mask[:, 0, :, :] > self.threshold
right_bottom_points = mask[:, 1, :, :] > self.threshold
out = []
for b in range(left_top_points.shape[0]):
#print(left_top_points.shape, encoded.shape)
left_top_vectors = encoded[b,:,left_top_points[b]][:,:self.limit].unsqueeze(2)
right_bottom_vectors = encoded[b,:,right_bottom_points[b]][:,:self.limit].unsqueeze(1)
#print(left_top_vectors.shape, right_bottom_vectors.shape)
vectors_matrix = torch.matmul(left_top_vectors, right_bottom_vectors).unsqueeze(0)
vectors_out = self.bbox_layer(vectors_matrix)
vectors_out = self.sigmoid(vectors_out)
out.append(vectors_out)
out = torch.cat(out, dim=0)
return out, points
| 38.26227
| 110
| 0.573055
| 2,803
| 24,947
| 4.875134
| 0.051374
| 0.07135
| 0.038053
| 0.038053
| 0.845005
| 0.833443
| 0.827223
| 0.827223
| 0.814782
| 0.809001
| 0
| 0.019247
| 0.323125
| 24,947
| 651
| 111
| 38.321045
| 0.790004
| 0.053313
| 0
| 0.797513
| 0
| 0
| 0.000679
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.046181
| false
| 0
| 0.010657
| 0
| 0.10302
| 0.001776
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
706c68146bdd3fe565c4f0dba481ddedfedf9af8
| 48
|
py
|
Python
|
catwatch/blueprints/user/__init__.py
|
Pythonian/catwatch
|
25730faa9d8ec6564b075de78bbbf4ff125ada97
|
[
"MIT"
] | null | null | null |
catwatch/blueprints/user/__init__.py
|
Pythonian/catwatch
|
25730faa9d8ec6564b075de78bbbf4ff125ada97
|
[
"MIT"
] | null | null | null |
catwatch/blueprints/user/__init__.py
|
Pythonian/catwatch
|
25730faa9d8ec6564b075de78bbbf4ff125ada97
|
[
"MIT"
] | 2
|
2018-08-04T16:46:55.000Z
|
2019-07-02T19:30:24.000Z
|
from catwatch.blueprints.user.views import user
| 24
| 47
| 0.854167
| 7
| 48
| 5.857143
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.083333
| 48
| 1
| 48
| 48
| 0.931818
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 1
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
|
0
| 7
|
708beaf3830a40cb5d4f32f581b4550793b3b00a
| 745,684
|
py
|
Python
|
angr/procedures/definitions/win32_kernel32.py
|
r4b3rt/angr
|
c133cfd4f83ffea2a1d9e064241e9459eaabc55f
|
[
"BSD-2-Clause"
] | null | null | null |
angr/procedures/definitions/win32_kernel32.py
|
r4b3rt/angr
|
c133cfd4f83ffea2a1d9e064241e9459eaabc55f
|
[
"BSD-2-Clause"
] | null | null | null |
angr/procedures/definitions/win32_kernel32.py
|
r4b3rt/angr
|
c133cfd4f83ffea2a1d9e064241e9459eaabc55f
|
[
"BSD-2-Clause"
] | null | null | null |
# pylint:disable=line-too-long
import logging
from ...sim_type import SimTypeFunction, SimTypeShort, SimTypeInt, SimTypeLong, SimTypeLongLong, SimTypeDouble, SimTypeFloat, SimTypePointer, SimTypeChar, SimStruct, SimTypeFixedSizeArray, SimTypeBottom, SimUnion, SimTypeBool
from ...calling_conventions import SimCCStdcall, SimCCMicrosoftAMD64
from .. import SIM_PROCEDURES as P
from . import SimLibrary
_l = logging.getLogger(name=__name__)
lib = SimLibrary()
lib.set_default_cc('X86', SimCCStdcall)
lib.set_default_cc('AMD64', SimCCMicrosoftAMD64)
lib.add_all_from_dict(P['win32'])
lib.add_alias('EncodePointer', 'DecodePointer')
lib.add_alias('GlobalAlloc', 'LocalAlloc')
lib.add('lstrcatA', P['libc']['strcat'])
lib.add('lstrcmpA', P['libc']['strcmp'])
lib.add('lstrcpyA', P['libc']['strcpy'])
lib.add('lstrcpynA', P['libc']['strncpy'])
lib.add('lstrlenA', P['libc']['strlen'])
lib.add('lstrcmpW', P['libc']['wcscmp'])
lib.add('lstrcmpiW', P['libc']['wcscasecmp'])
lib.set_library_names("kernel32.dll")
prototypes = \
{
#
'ClearCommBreak': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile"]),
#
'ClearCommError': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="CLEAR_COMM_ERROR_FLAGS"), offset=0), SimTypePointer(SimStruct({"_bitfield": SimTypeInt(signed=False, label="UInt32"), "cbInQue": SimTypeInt(signed=False, label="UInt32"), "cbOutQue": SimTypeInt(signed=False, label="UInt32")}, name="COMSTAT", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "lpErrors", "lpStat"]),
#
'SetupComm': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "dwInQueue", "dwOutQueue"]),
#
'EscapeCommFunction': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="ESCAPE_COMM_FUNCTION")], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "dwFunc"]),
#
'GetCommConfig': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"dwSize": SimTypeInt(signed=False, label="UInt32"), "wVersion": SimTypeShort(signed=False, label="UInt16"), "wReserved": SimTypeShort(signed=False, label="UInt16"), "dcb": SimStruct({"DCBlength": SimTypeInt(signed=False, label="UInt32"), "BaudRate": SimTypeInt(signed=False, label="UInt32"), "_bitfield": SimTypeInt(signed=False, label="UInt32"), "wReserved": SimTypeShort(signed=False, label="UInt16"), "XonLim": SimTypeShort(signed=False, label="UInt16"), "XoffLim": SimTypeShort(signed=False, label="UInt16"), "ByteSize": SimTypeChar(label="Byte"), "Parity": SimTypeChar(label="Byte"), "StopBits": SimTypeChar(label="Byte"), "XonChar": SimTypeBottom(label="CHAR"), "XoffChar": SimTypeBottom(label="CHAR"), "ErrorChar": SimTypeBottom(label="CHAR"), "EofChar": SimTypeBottom(label="CHAR"), "EvtChar": SimTypeBottom(label="CHAR"), "wReserved1": SimTypeShort(signed=False, label="UInt16")}, name="DCB", pack=False, align=None), "dwProviderSubType": SimTypeInt(signed=False, label="UInt32"), "dwProviderOffset": SimTypeInt(signed=False, label="UInt32"), "dwProviderSize": SimTypeInt(signed=False, label="UInt32"), "wcProviderData": SimTypePointer(SimTypeChar(label="Char"), offset=0)}, name="COMMCONFIG", pack=False, align=None), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hCommDev", "lpCC", "lpdwSize"]),
#
'GetCommMask': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="COMM_EVENT_MASK"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "lpEvtMask"]),
#
'GetCommProperties': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"wPacketLength": SimTypeShort(signed=False, label="UInt16"), "wPacketVersion": SimTypeShort(signed=False, label="UInt16"), "dwServiceMask": SimTypeInt(signed=False, label="UInt32"), "dwReserved1": SimTypeInt(signed=False, label="UInt32"), "dwMaxTxQueue": SimTypeInt(signed=False, label="UInt32"), "dwMaxRxQueue": SimTypeInt(signed=False, label="UInt32"), "dwMaxBaud": SimTypeInt(signed=False, label="UInt32"), "dwProvSubType": SimTypeInt(signed=False, label="UInt32"), "dwProvCapabilities": SimTypeInt(signed=False, label="UInt32"), "dwSettableParams": SimTypeInt(signed=False, label="UInt32"), "dwSettableBaud": SimTypeInt(signed=False, label="UInt32"), "wSettableData": SimTypeShort(signed=False, label="UInt16"), "wSettableStopParity": SimTypeInt(signed=False, label="COMMPROP_STOP_PARITY"), "dwCurrentTxQueue": SimTypeInt(signed=False, label="UInt32"), "dwCurrentRxQueue": SimTypeInt(signed=False, label="UInt32"), "dwProvSpec1": SimTypeInt(signed=False, label="UInt32"), "dwProvSpec2": SimTypeInt(signed=False, label="UInt32"), "wcProvChar": SimTypePointer(SimTypeChar(label="Char"), offset=0)}, name="COMMPROP", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "lpCommProp"]),
#
'GetCommModemStatus': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="MODEM_STATUS_FLAGS"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "lpModemStat"]),
#
'GetCommState': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"DCBlength": SimTypeInt(signed=False, label="UInt32"), "BaudRate": SimTypeInt(signed=False, label="UInt32"), "_bitfield": SimTypeInt(signed=False, label="UInt32"), "wReserved": SimTypeShort(signed=False, label="UInt16"), "XonLim": SimTypeShort(signed=False, label="UInt16"), "XoffLim": SimTypeShort(signed=False, label="UInt16"), "ByteSize": SimTypeChar(label="Byte"), "Parity": SimTypeChar(label="Byte"), "StopBits": SimTypeChar(label="Byte"), "XonChar": SimTypeBottom(label="CHAR"), "XoffChar": SimTypeBottom(label="CHAR"), "ErrorChar": SimTypeBottom(label="CHAR"), "EofChar": SimTypeBottom(label="CHAR"), "EvtChar": SimTypeBottom(label="CHAR"), "wReserved1": SimTypeShort(signed=False, label="UInt16")}, name="DCB", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "lpDCB"]),
#
'GetCommTimeouts': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"ReadIntervalTimeout": SimTypeInt(signed=False, label="UInt32"), "ReadTotalTimeoutMultiplier": SimTypeInt(signed=False, label="UInt32"), "ReadTotalTimeoutConstant": SimTypeInt(signed=False, label="UInt32"), "WriteTotalTimeoutMultiplier": SimTypeInt(signed=False, label="UInt32"), "WriteTotalTimeoutConstant": SimTypeInt(signed=False, label="UInt32")}, name="COMMTIMEOUTS", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "lpCommTimeouts"]),
#
'PurgeComm': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="PURGE_COMM_FLAGS")], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "dwFlags"]),
#
'SetCommBreak': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile"]),
#
'SetCommConfig': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"dwSize": SimTypeInt(signed=False, label="UInt32"), "wVersion": SimTypeShort(signed=False, label="UInt16"), "wReserved": SimTypeShort(signed=False, label="UInt16"), "dcb": SimStruct({"DCBlength": SimTypeInt(signed=False, label="UInt32"), "BaudRate": SimTypeInt(signed=False, label="UInt32"), "_bitfield": SimTypeInt(signed=False, label="UInt32"), "wReserved": SimTypeShort(signed=False, label="UInt16"), "XonLim": SimTypeShort(signed=False, label="UInt16"), "XoffLim": SimTypeShort(signed=False, label="UInt16"), "ByteSize": SimTypeChar(label="Byte"), "Parity": SimTypeChar(label="Byte"), "StopBits": SimTypeChar(label="Byte"), "XonChar": SimTypeBottom(label="CHAR"), "XoffChar": SimTypeBottom(label="CHAR"), "ErrorChar": SimTypeBottom(label="CHAR"), "EofChar": SimTypeBottom(label="CHAR"), "EvtChar": SimTypeBottom(label="CHAR"), "wReserved1": SimTypeShort(signed=False, label="UInt16")}, name="DCB", pack=False, align=None), "dwProviderSubType": SimTypeInt(signed=False, label="UInt32"), "dwProviderOffset": SimTypeInt(signed=False, label="UInt32"), "dwProviderSize": SimTypeInt(signed=False, label="UInt32"), "wcProviderData": SimTypePointer(SimTypeChar(label="Char"), offset=0)}, name="COMMCONFIG", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hCommDev", "lpCC", "dwSize"]),
#
'SetCommMask': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="COMM_EVENT_MASK")], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "dwEvtMask"]),
#
'SetCommState': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"DCBlength": SimTypeInt(signed=False, label="UInt32"), "BaudRate": SimTypeInt(signed=False, label="UInt32"), "_bitfield": SimTypeInt(signed=False, label="UInt32"), "wReserved": SimTypeShort(signed=False, label="UInt16"), "XonLim": SimTypeShort(signed=False, label="UInt16"), "XoffLim": SimTypeShort(signed=False, label="UInt16"), "ByteSize": SimTypeChar(label="Byte"), "Parity": SimTypeChar(label="Byte"), "StopBits": SimTypeChar(label="Byte"), "XonChar": SimTypeBottom(label="CHAR"), "XoffChar": SimTypeBottom(label="CHAR"), "ErrorChar": SimTypeBottom(label="CHAR"), "EofChar": SimTypeBottom(label="CHAR"), "EvtChar": SimTypeBottom(label="CHAR"), "wReserved1": SimTypeShort(signed=False, label="UInt16")}, name="DCB", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "lpDCB"]),
#
'SetCommTimeouts': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"ReadIntervalTimeout": SimTypeInt(signed=False, label="UInt32"), "ReadTotalTimeoutMultiplier": SimTypeInt(signed=False, label="UInt32"), "ReadTotalTimeoutConstant": SimTypeInt(signed=False, label="UInt32"), "WriteTotalTimeoutMultiplier": SimTypeInt(signed=False, label="UInt32"), "WriteTotalTimeoutConstant": SimTypeInt(signed=False, label="UInt32")}, name="COMMTIMEOUTS", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "lpCommTimeouts"]),
#
'TransmitCommChar': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeChar(label="Byte")], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "cChar"]),
#
'WaitCommEvent': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="COMM_EVENT_MASK"), offset=0), SimTypePointer(SimStruct({"Internal": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "InternalHigh": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "Anonymous": SimUnion({"Anonymous": SimStruct({"Offset": SimTypeInt(signed=False, label="UInt32"), "OffsetHigh": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None), "Pointer": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="<anon>", label="None"), "hEvent": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)}, name="OVERLAPPED", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "lpEvtMask", "lpOverlapped"]),
#
'BuildCommDCBA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimStruct({"DCBlength": SimTypeInt(signed=False, label="UInt32"), "BaudRate": SimTypeInt(signed=False, label="UInt32"), "_bitfield": SimTypeInt(signed=False, label="UInt32"), "wReserved": SimTypeShort(signed=False, label="UInt16"), "XonLim": SimTypeShort(signed=False, label="UInt16"), "XoffLim": SimTypeShort(signed=False, label="UInt16"), "ByteSize": SimTypeChar(label="Byte"), "Parity": SimTypeChar(label="Byte"), "StopBits": SimTypeChar(label="Byte"), "XonChar": SimTypeBottom(label="CHAR"), "XoffChar": SimTypeBottom(label="CHAR"), "ErrorChar": SimTypeBottom(label="CHAR"), "EofChar": SimTypeBottom(label="CHAR"), "EvtChar": SimTypeBottom(label="CHAR"), "wReserved1": SimTypeShort(signed=False, label="UInt16")}, name="DCB", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpDef", "lpDCB"]),
#
'BuildCommDCBW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimStruct({"DCBlength": SimTypeInt(signed=False, label="UInt32"), "BaudRate": SimTypeInt(signed=False, label="UInt32"), "_bitfield": SimTypeInt(signed=False, label="UInt32"), "wReserved": SimTypeShort(signed=False, label="UInt16"), "XonLim": SimTypeShort(signed=False, label="UInt16"), "XoffLim": SimTypeShort(signed=False, label="UInt16"), "ByteSize": SimTypeChar(label="Byte"), "Parity": SimTypeChar(label="Byte"), "StopBits": SimTypeChar(label="Byte"), "XonChar": SimTypeBottom(label="CHAR"), "XoffChar": SimTypeBottom(label="CHAR"), "ErrorChar": SimTypeBottom(label="CHAR"), "EofChar": SimTypeBottom(label="CHAR"), "EvtChar": SimTypeBottom(label="CHAR"), "wReserved1": SimTypeShort(signed=False, label="UInt16")}, name="DCB", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpDef", "lpDCB"]),
#
'BuildCommDCBAndTimeoutsA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimStruct({"DCBlength": SimTypeInt(signed=False, label="UInt32"), "BaudRate": SimTypeInt(signed=False, label="UInt32"), "_bitfield": SimTypeInt(signed=False, label="UInt32"), "wReserved": SimTypeShort(signed=False, label="UInt16"), "XonLim": SimTypeShort(signed=False, label="UInt16"), "XoffLim": SimTypeShort(signed=False, label="UInt16"), "ByteSize": SimTypeChar(label="Byte"), "Parity": SimTypeChar(label="Byte"), "StopBits": SimTypeChar(label="Byte"), "XonChar": SimTypeBottom(label="CHAR"), "XoffChar": SimTypeBottom(label="CHAR"), "ErrorChar": SimTypeBottom(label="CHAR"), "EofChar": SimTypeBottom(label="CHAR"), "EvtChar": SimTypeBottom(label="CHAR"), "wReserved1": SimTypeShort(signed=False, label="UInt16")}, name="DCB", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"ReadIntervalTimeout": SimTypeInt(signed=False, label="UInt32"), "ReadTotalTimeoutMultiplier": SimTypeInt(signed=False, label="UInt32"), "ReadTotalTimeoutConstant": SimTypeInt(signed=False, label="UInt32"), "WriteTotalTimeoutMultiplier": SimTypeInt(signed=False, label="UInt32"), "WriteTotalTimeoutConstant": SimTypeInt(signed=False, label="UInt32")}, name="COMMTIMEOUTS", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpDef", "lpDCB", "lpCommTimeouts"]),
#
'BuildCommDCBAndTimeoutsW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimStruct({"DCBlength": SimTypeInt(signed=False, label="UInt32"), "BaudRate": SimTypeInt(signed=False, label="UInt32"), "_bitfield": SimTypeInt(signed=False, label="UInt32"), "wReserved": SimTypeShort(signed=False, label="UInt16"), "XonLim": SimTypeShort(signed=False, label="UInt16"), "XoffLim": SimTypeShort(signed=False, label="UInt16"), "ByteSize": SimTypeChar(label="Byte"), "Parity": SimTypeChar(label="Byte"), "StopBits": SimTypeChar(label="Byte"), "XonChar": SimTypeBottom(label="CHAR"), "XoffChar": SimTypeBottom(label="CHAR"), "ErrorChar": SimTypeBottom(label="CHAR"), "EofChar": SimTypeBottom(label="CHAR"), "EvtChar": SimTypeBottom(label="CHAR"), "wReserved1": SimTypeShort(signed=False, label="UInt16")}, name="DCB", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"ReadIntervalTimeout": SimTypeInt(signed=False, label="UInt32"), "ReadTotalTimeoutMultiplier": SimTypeInt(signed=False, label="UInt32"), "ReadTotalTimeoutConstant": SimTypeInt(signed=False, label="UInt32"), "WriteTotalTimeoutMultiplier": SimTypeInt(signed=False, label="UInt32"), "WriteTotalTimeoutConstant": SimTypeInt(signed=False, label="UInt32")}, name="COMMTIMEOUTS", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpDef", "lpDCB", "lpCommTimeouts"]),
#
'CommConfigDialogA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"dwSize": SimTypeInt(signed=False, label="UInt32"), "wVersion": SimTypeShort(signed=False, label="UInt16"), "wReserved": SimTypeShort(signed=False, label="UInt16"), "dcb": SimStruct({"DCBlength": SimTypeInt(signed=False, label="UInt32"), "BaudRate": SimTypeInt(signed=False, label="UInt32"), "_bitfield": SimTypeInt(signed=False, label="UInt32"), "wReserved": SimTypeShort(signed=False, label="UInt16"), "XonLim": SimTypeShort(signed=False, label="UInt16"), "XoffLim": SimTypeShort(signed=False, label="UInt16"), "ByteSize": SimTypeChar(label="Byte"), "Parity": SimTypeChar(label="Byte"), "StopBits": SimTypeChar(label="Byte"), "XonChar": SimTypeBottom(label="CHAR"), "XoffChar": SimTypeBottom(label="CHAR"), "ErrorChar": SimTypeBottom(label="CHAR"), "EofChar": SimTypeBottom(label="CHAR"), "EvtChar": SimTypeBottom(label="CHAR"), "wReserved1": SimTypeShort(signed=False, label="UInt16")}, name="DCB", pack=False, align=None), "dwProviderSubType": SimTypeInt(signed=False, label="UInt32"), "dwProviderOffset": SimTypeInt(signed=False, label="UInt32"), "dwProviderSize": SimTypeInt(signed=False, label="UInt32"), "wcProviderData": SimTypePointer(SimTypeChar(label="Char"), offset=0)}, name="COMMCONFIG", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpszName", "hWnd", "lpCC"]),
#
'CommConfigDialogW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"dwSize": SimTypeInt(signed=False, label="UInt32"), "wVersion": SimTypeShort(signed=False, label="UInt16"), "wReserved": SimTypeShort(signed=False, label="UInt16"), "dcb": SimStruct({"DCBlength": SimTypeInt(signed=False, label="UInt32"), "BaudRate": SimTypeInt(signed=False, label="UInt32"), "_bitfield": SimTypeInt(signed=False, label="UInt32"), "wReserved": SimTypeShort(signed=False, label="UInt16"), "XonLim": SimTypeShort(signed=False, label="UInt16"), "XoffLim": SimTypeShort(signed=False, label="UInt16"), "ByteSize": SimTypeChar(label="Byte"), "Parity": SimTypeChar(label="Byte"), "StopBits": SimTypeChar(label="Byte"), "XonChar": SimTypeBottom(label="CHAR"), "XoffChar": SimTypeBottom(label="CHAR"), "ErrorChar": SimTypeBottom(label="CHAR"), "EofChar": SimTypeBottom(label="CHAR"), "EvtChar": SimTypeBottom(label="CHAR"), "wReserved1": SimTypeShort(signed=False, label="UInt16")}, name="DCB", pack=False, align=None), "dwProviderSubType": SimTypeInt(signed=False, label="UInt32"), "dwProviderOffset": SimTypeInt(signed=False, label="UInt32"), "dwProviderSize": SimTypeInt(signed=False, label="UInt32"), "wcProviderData": SimTypePointer(SimTypeChar(label="Char"), offset=0)}, name="COMMCONFIG", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpszName", "hWnd", "lpCC"]),
#
'GetDefaultCommConfigA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimStruct({"dwSize": SimTypeInt(signed=False, label="UInt32"), "wVersion": SimTypeShort(signed=False, label="UInt16"), "wReserved": SimTypeShort(signed=False, label="UInt16"), "dcb": SimStruct({"DCBlength": SimTypeInt(signed=False, label="UInt32"), "BaudRate": SimTypeInt(signed=False, label="UInt32"), "_bitfield": SimTypeInt(signed=False, label="UInt32"), "wReserved": SimTypeShort(signed=False, label="UInt16"), "XonLim": SimTypeShort(signed=False, label="UInt16"), "XoffLim": SimTypeShort(signed=False, label="UInt16"), "ByteSize": SimTypeChar(label="Byte"), "Parity": SimTypeChar(label="Byte"), "StopBits": SimTypeChar(label="Byte"), "XonChar": SimTypeBottom(label="CHAR"), "XoffChar": SimTypeBottom(label="CHAR"), "ErrorChar": SimTypeBottom(label="CHAR"), "EofChar": SimTypeBottom(label="CHAR"), "EvtChar": SimTypeBottom(label="CHAR"), "wReserved1": SimTypeShort(signed=False, label="UInt16")}, name="DCB", pack=False, align=None), "dwProviderSubType": SimTypeInt(signed=False, label="UInt32"), "dwProviderOffset": SimTypeInt(signed=False, label="UInt32"), "dwProviderSize": SimTypeInt(signed=False, label="UInt32"), "wcProviderData": SimTypePointer(SimTypeChar(label="Char"), offset=0)}, name="COMMCONFIG", pack=False, align=None), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpszName", "lpCC", "lpdwSize"]),
#
'GetDefaultCommConfigW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimStruct({"dwSize": SimTypeInt(signed=False, label="UInt32"), "wVersion": SimTypeShort(signed=False, label="UInt16"), "wReserved": SimTypeShort(signed=False, label="UInt16"), "dcb": SimStruct({"DCBlength": SimTypeInt(signed=False, label="UInt32"), "BaudRate": SimTypeInt(signed=False, label="UInt32"), "_bitfield": SimTypeInt(signed=False, label="UInt32"), "wReserved": SimTypeShort(signed=False, label="UInt16"), "XonLim": SimTypeShort(signed=False, label="UInt16"), "XoffLim": SimTypeShort(signed=False, label="UInt16"), "ByteSize": SimTypeChar(label="Byte"), "Parity": SimTypeChar(label="Byte"), "StopBits": SimTypeChar(label="Byte"), "XonChar": SimTypeBottom(label="CHAR"), "XoffChar": SimTypeBottom(label="CHAR"), "ErrorChar": SimTypeBottom(label="CHAR"), "EofChar": SimTypeBottom(label="CHAR"), "EvtChar": SimTypeBottom(label="CHAR"), "wReserved1": SimTypeShort(signed=False, label="UInt16")}, name="DCB", pack=False, align=None), "dwProviderSubType": SimTypeInt(signed=False, label="UInt32"), "dwProviderOffset": SimTypeInt(signed=False, label="UInt32"), "dwProviderSize": SimTypeInt(signed=False, label="UInt32"), "wcProviderData": SimTypePointer(SimTypeChar(label="Char"), offset=0)}, name="COMMCONFIG", pack=False, align=None), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpszName", "lpCC", "lpdwSize"]),
#
'SetDefaultCommConfigA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimStruct({"dwSize": SimTypeInt(signed=False, label="UInt32"), "wVersion": SimTypeShort(signed=False, label="UInt16"), "wReserved": SimTypeShort(signed=False, label="UInt16"), "dcb": SimStruct({"DCBlength": SimTypeInt(signed=False, label="UInt32"), "BaudRate": SimTypeInt(signed=False, label="UInt32"), "_bitfield": SimTypeInt(signed=False, label="UInt32"), "wReserved": SimTypeShort(signed=False, label="UInt16"), "XonLim": SimTypeShort(signed=False, label="UInt16"), "XoffLim": SimTypeShort(signed=False, label="UInt16"), "ByteSize": SimTypeChar(label="Byte"), "Parity": SimTypeChar(label="Byte"), "StopBits": SimTypeChar(label="Byte"), "XonChar": SimTypeBottom(label="CHAR"), "XoffChar": SimTypeBottom(label="CHAR"), "ErrorChar": SimTypeBottom(label="CHAR"), "EofChar": SimTypeBottom(label="CHAR"), "EvtChar": SimTypeBottom(label="CHAR"), "wReserved1": SimTypeShort(signed=False, label="UInt16")}, name="DCB", pack=False, align=None), "dwProviderSubType": SimTypeInt(signed=False, label="UInt32"), "dwProviderOffset": SimTypeInt(signed=False, label="UInt32"), "dwProviderSize": SimTypeInt(signed=False, label="UInt32"), "wcProviderData": SimTypePointer(SimTypeChar(label="Char"), offset=0)}, name="COMMCONFIG", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpszName", "lpCC", "dwSize"]),
#
'SetDefaultCommConfigW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimStruct({"dwSize": SimTypeInt(signed=False, label="UInt32"), "wVersion": SimTypeShort(signed=False, label="UInt16"), "wReserved": SimTypeShort(signed=False, label="UInt16"), "dcb": SimStruct({"DCBlength": SimTypeInt(signed=False, label="UInt32"), "BaudRate": SimTypeInt(signed=False, label="UInt32"), "_bitfield": SimTypeInt(signed=False, label="UInt32"), "wReserved": SimTypeShort(signed=False, label="UInt16"), "XonLim": SimTypeShort(signed=False, label="UInt16"), "XoffLim": SimTypeShort(signed=False, label="UInt16"), "ByteSize": SimTypeChar(label="Byte"), "Parity": SimTypeChar(label="Byte"), "StopBits": SimTypeChar(label="Byte"), "XonChar": SimTypeBottom(label="CHAR"), "XoffChar": SimTypeBottom(label="CHAR"), "ErrorChar": SimTypeBottom(label="CHAR"), "EofChar": SimTypeBottom(label="CHAR"), "EvtChar": SimTypeBottom(label="CHAR"), "wReserved1": SimTypeShort(signed=False, label="UInt16")}, name="DCB", pack=False, align=None), "dwProviderSubType": SimTypeInt(signed=False, label="UInt32"), "dwProviderOffset": SimTypeInt(signed=False, label="UInt32"), "dwProviderSize": SimTypeInt(signed=False, label="UInt32"), "wcProviderData": SimTypePointer(SimTypeChar(label="Char"), offset=0)}, name="COMMCONFIG", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpszName", "lpCC", "dwSize"]),
#
'CloseHandle': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hObject"]),
#
'DuplicateHandle': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=True, label="Int32"), SimTypeInt(signed=False, label="DUPLICATE_HANDLE_OPTIONS")], SimTypeInt(signed=True, label="Int32"), arg_names=["hSourceProcessHandle", "hSourceHandle", "hTargetProcessHandle", "lpTargetHandle", "dwDesiredAccess", "bInheritHandle", "dwOptions"]),
#
'GetHandleInformation': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hObject", "lpdwFlags"]),
#
'SetHandleInformation': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="HANDLE_FLAGS")], SimTypeInt(signed=True, label="Int32"), arg_names=["hObject", "dwMask", "dwFlags"]),
#
'GetDateFormatA': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["Locale", "dwFlags", "lpDate", "lpFormat", "lpDateStr", "cchDate"]),
#
'GetDateFormatW': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["Locale", "dwFlags", "lpDate", "lpFormat", "lpDateStr", "cchDate"]),
#
'GetTimeFormatA': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["Locale", "dwFlags", "lpTime", "lpFormat", "lpTimeStr", "cchTime"]),
#
'GetTimeFormatW': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["Locale", "dwFlags", "lpTime", "lpFormat", "lpTimeStr", "cchTime"]),
#
'GetTimeFormatEx': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="TIME_FORMAT_FLAGS"), SimTypePointer(SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpLocaleName", "dwFlags", "lpTime", "lpFormat", "lpTimeStr", "cchTime"]),
#
'GetDateFormatEx': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="ENUM_DATE_FORMATS_FLAGS"), SimTypePointer(SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpLocaleName", "dwFlags", "lpDate", "lpFormat", "lpDateStr", "cchDate", "lpCalendar"]),
#
'GetDurationFormatEx': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), offset=0), SimTypeLongLong(signed=False, label="UInt64"), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpLocaleName", "dwFlags", "lpDuration", "ullDuration", "lpFormat", "lpDurationStr", "cchDuration"]),
#
'CompareStringEx': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="COMPARE_STRING_FLAGS"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimStruct({"dwNLSVersionInfoSize": SimTypeInt(signed=False, label="UInt32"), "dwNLSVersion": SimTypeInt(signed=False, label="UInt32"), "dwDefinedVersion": SimTypeInt(signed=False, label="UInt32"), "dwEffectiveId": SimTypeInt(signed=False, label="UInt32"), "guidCustomVersion": SimTypeBottom(label="Guid")}, name="NLSVERSIONINFO", pack=False, align=None), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpLocaleName", "dwCmpFlags", "lpString1", "cchCount1", "lpString2", "cchCount2", "lpVersionInformation", "lpReserved", "lParam"]),
#
'CompareStringOrdinal': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32"), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpString1", "cchCount1", "lpString2", "cchCount2", "bIgnoreCase"]),
#
'CompareStringW': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["Locale", "dwCmpFlags", "lpString1", "cchCount1", "lpString2", "cchCount2"]),
#
'FoldStringW': SimTypeFunction([SimTypeInt(signed=False, label="FOLD_STRING_MAP_FLAGS"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["dwMapFlags", "lpSrcStr", "cchSrc", "lpDestStr", "cchDest"]),
#
'GetStringTypeExW': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeShort(signed=False, label="UInt16"), label="LPArray", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["Locale", "dwInfoType", "lpSrcStr", "cchSrc", "lpCharType"]),
#
'GetStringTypeW': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeShort(signed=False, label="UInt16"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["dwInfoType", "lpSrcStr", "cchSrc", "lpCharType"]),
#
'MultiByteToWideChar': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="MULTI_BYTE_TO_WIDE_CHAR_FLAGS"), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["CodePage", "dwFlags", "lpMultiByteStr", "cbMultiByte", "lpWideCharStr", "cchWideChar"]),
#
'WideCharToMultiByte': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["CodePage", "dwFlags", "lpWideCharStr", "cchWideChar", "lpMultiByteStr", "cbMultiByte", "lpDefaultChar", "lpUsedDefaultChar"]),
#
'IsValidCodePage': SimTypeFunction([SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["CodePage"]),
#
'GetACP': SimTypeFunction([], SimTypeInt(signed=False, label="UInt32")),
#
'GetOEMCP': SimTypeFunction([], SimTypeInt(signed=False, label="UInt32")),
#
'GetCPInfo': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"MaxCharSize": SimTypeInt(signed=False, label="UInt32"), "DefaultChar": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 2), "LeadByte": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 12)}, name="CPINFO", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["CodePage", "lpCPInfo"]),
#
'GetCPInfoExA': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"MaxCharSize": SimTypeInt(signed=False, label="UInt32"), "DefaultChar": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 2), "LeadByte": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 12), "UnicodeDefaultChar": SimTypeChar(label="Char"), "CodePage": SimTypeInt(signed=False, label="UInt32"), "CodePageName": SimTypeFixedSizeArray(SimTypeBottom(label="CHAR"), 260)}, name="CPINFOEXA", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["CodePage", "dwFlags", "lpCPInfoEx"]),
#
'GetCPInfoExW': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"MaxCharSize": SimTypeInt(signed=False, label="UInt32"), "DefaultChar": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 2), "LeadByte": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 12), "UnicodeDefaultChar": SimTypeChar(label="Char"), "CodePage": SimTypeInt(signed=False, label="UInt32"), "CodePageName": SimTypeFixedSizeArray(SimTypeChar(label="Char"), 260)}, name="CPINFOEXW", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["CodePage", "dwFlags", "lpCPInfoEx"]),
#
'CompareStringA': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="SByte"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="SByte"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["Locale", "dwCmpFlags", "lpString1", "cchCount1", "lpString2", "cchCount2"]),
#
'FindNLSString': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeInt(signed=True, label="Int32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["Locale", "dwFindNLSStringFlags", "lpStringSource", "cchSource", "lpStringValue", "cchValue", "pcchFound"]),
#
'LCMapStringW': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["Locale", "dwMapFlags", "lpSrcStr", "cchSrc", "lpDestStr", "cchDest"]),
#
'LCMapStringA': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["Locale", "dwMapFlags", "lpSrcStr", "cchSrc", "lpDestStr", "cchDest"]),
#
'GetLocaleInfoW': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["Locale", "LCType", "lpLCData", "cchData"]),
#
'GetLocaleInfoA': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["Locale", "LCType", "lpLCData", "cchData"]),
#
'SetLocaleInfoA': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["Locale", "LCType", "lpLCData"]),
#
'SetLocaleInfoW': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["Locale", "LCType", "lpLCData"]),
#
'GetCalendarInfoA': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["Locale", "Calendar", "CalType", "lpCalData", "cchData", "lpValue"]),
#
'GetCalendarInfoW': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["Locale", "Calendar", "CalType", "lpCalData", "cchData", "lpValue"]),
#
'SetCalendarInfoA': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["Locale", "Calendar", "CalType", "lpCalData"]),
#
'SetCalendarInfoW': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["Locale", "Calendar", "CalType", "lpCalData"]),
#
'IsDBCSLeadByte': SimTypeFunction([SimTypeChar(label="Byte")], SimTypeInt(signed=True, label="Int32"), arg_names=["TestChar"]),
#
'IsDBCSLeadByteEx': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeChar(label="Byte")], SimTypeInt(signed=True, label="Int32"), arg_names=["CodePage", "TestChar"]),
#
'LocaleNameToLCID': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpName", "dwFlags"]),
#
'LCIDToLocaleName': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32"), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["Locale", "lpName", "cchName", "dwFlags"]),
#
'GetDurationFormat': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), offset=0), SimTypeLongLong(signed=False, label="UInt64"), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["Locale", "dwFlags", "lpDuration", "ullDuration", "lpFormat", "lpDurationStr", "cchDuration"]),
#
'GetNumberFormatA': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimStruct({"NumDigits": SimTypeInt(signed=False, label="UInt32"), "LeadingZero": SimTypeInt(signed=False, label="UInt32"), "Grouping": SimTypeInt(signed=False, label="UInt32"), "lpDecimalSep": SimTypePointer(SimTypeChar(label="Byte"), offset=0), "lpThousandSep": SimTypePointer(SimTypeChar(label="Byte"), offset=0), "NegativeOrder": SimTypeInt(signed=False, label="UInt32")}, name="NUMBERFMTA", pack=False, align=None), offset=0), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["Locale", "dwFlags", "lpValue", "lpFormat", "lpNumberStr", "cchNumber"]),
#
'GetNumberFormatW': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimStruct({"NumDigits": SimTypeInt(signed=False, label="UInt32"), "LeadingZero": SimTypeInt(signed=False, label="UInt32"), "Grouping": SimTypeInt(signed=False, label="UInt32"), "lpDecimalSep": SimTypePointer(SimTypeChar(label="Char"), offset=0), "lpThousandSep": SimTypePointer(SimTypeChar(label="Char"), offset=0), "NegativeOrder": SimTypeInt(signed=False, label="UInt32")}, name="NUMBERFMTW", pack=False, align=None), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["Locale", "dwFlags", "lpValue", "lpFormat", "lpNumberStr", "cchNumber"]),
#
'GetCurrencyFormatA': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimStruct({"NumDigits": SimTypeInt(signed=False, label="UInt32"), "LeadingZero": SimTypeInt(signed=False, label="UInt32"), "Grouping": SimTypeInt(signed=False, label="UInt32"), "lpDecimalSep": SimTypePointer(SimTypeChar(label="Byte"), offset=0), "lpThousandSep": SimTypePointer(SimTypeChar(label="Byte"), offset=0), "NegativeOrder": SimTypeInt(signed=False, label="UInt32"), "PositiveOrder": SimTypeInt(signed=False, label="UInt32"), "lpCurrencySymbol": SimTypePointer(SimTypeChar(label="Byte"), offset=0)}, name="CURRENCYFMTA", pack=False, align=None), offset=0), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["Locale", "dwFlags", "lpValue", "lpFormat", "lpCurrencyStr", "cchCurrency"]),
#
'GetCurrencyFormatW': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimStruct({"NumDigits": SimTypeInt(signed=False, label="UInt32"), "LeadingZero": SimTypeInt(signed=False, label="UInt32"), "Grouping": SimTypeInt(signed=False, label="UInt32"), "lpDecimalSep": SimTypePointer(SimTypeChar(label="Char"), offset=0), "lpThousandSep": SimTypePointer(SimTypeChar(label="Char"), offset=0), "NegativeOrder": SimTypeInt(signed=False, label="UInt32"), "PositiveOrder": SimTypeInt(signed=False, label="UInt32"), "lpCurrencySymbol": SimTypePointer(SimTypeChar(label="Char"), offset=0)}, name="CURRENCYFMTW", pack=False, align=None), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["Locale", "dwFlags", "lpValue", "lpFormat", "lpCurrencyStr", "cchCurrency"]),
#
'EnumCalendarInfoA': SimTypeFunction([SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["param0"]), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpCalInfoEnumProc", "Locale", "Calendar", "CalType"]),
#
'EnumCalendarInfoW': SimTypeFunction([SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["param0"]), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpCalInfoEnumProc", "Locale", "Calendar", "CalType"]),
#
'EnumCalendarInfoExA': SimTypeFunction([SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["param0", "param1"]), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpCalInfoEnumProcEx", "Locale", "Calendar", "CalType"]),
#
'EnumCalendarInfoExW': SimTypeFunction([SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["param0", "param1"]), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpCalInfoEnumProcEx", "Locale", "Calendar", "CalType"]),
#
'EnumTimeFormatsA': SimTypeFunction([SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["param0"]), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="TIME_FORMAT_FLAGS")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpTimeFmtEnumProc", "Locale", "dwFlags"]),
#
'EnumTimeFormatsW': SimTypeFunction([SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["param0"]), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="TIME_FORMAT_FLAGS")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpTimeFmtEnumProc", "Locale", "dwFlags"]),
#
'EnumDateFormatsA': SimTypeFunction([SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["param0"]), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpDateFmtEnumProc", "Locale", "dwFlags"]),
#
'EnumDateFormatsW': SimTypeFunction([SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["param0"]), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpDateFmtEnumProc", "Locale", "dwFlags"]),
#
'EnumDateFormatsExA': SimTypeFunction([SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["param0", "param1"]), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpDateFmtEnumProcEx", "Locale", "dwFlags"]),
#
'EnumDateFormatsExW': SimTypeFunction([SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["param0", "param1"]), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpDateFmtEnumProcEx", "Locale", "dwFlags"]),
#
'IsValidLanguageGroup': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="ENUM_SYSTEM_LANGUAGE_GROUPS_FLAGS")], SimTypeInt(signed=True, label="Int32"), arg_names=["LanguageGroup", "dwFlags"]),
#
'GetNLSVersion': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"dwNLSVersionInfoSize": SimTypeInt(signed=False, label="UInt32"), "dwNLSVersion": SimTypeInt(signed=False, label="UInt32"), "dwDefinedVersion": SimTypeInt(signed=False, label="UInt32"), "dwEffectiveId": SimTypeInt(signed=False, label="UInt32"), "guidCustomVersion": SimTypeBottom(label="Guid")}, name="NLSVERSIONINFO", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["Function", "Locale", "lpVersionInformation"]),
#
'IsValidLocale': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="IS_VALID_LOCALE_FLAGS")], SimTypeInt(signed=True, label="Int32"), arg_names=["Locale", "dwFlags"]),
#
'GetGeoInfoA': SimTypeFunction([SimTypeInt(signed=True, label="Int32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32"), SimTypeShort(signed=False, label="UInt16")], SimTypeInt(signed=True, label="Int32"), arg_names=["Location", "GeoType", "lpGeoData", "cchData", "LangId"]),
#
'GetGeoInfoW': SimTypeFunction([SimTypeInt(signed=True, label="Int32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32"), SimTypeShort(signed=False, label="UInt16")], SimTypeInt(signed=True, label="Int32"), arg_names=["Location", "GeoType", "lpGeoData", "cchData", "LangId"]),
#
'GetGeoInfoEx': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["location", "geoType", "geoData", "geoDataCount"]),
#
'EnumSystemGeoID': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeFunction([SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["param0"]), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["GeoClass", "ParentGeoId", "lpGeoEnumProc"]),
#
'EnumSystemGeoNames': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["param0", "param1"]), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["geoClass", "geoEnumProc", "data"]),
#
'GetUserGeoID': SimTypeFunction([SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["GeoClass"]),
#
'GetUserDefaultGeoName': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["geoName", "geoNameCount"]),
#
'SetUserGeoID': SimTypeFunction([SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["GeoId"]),
#
'SetUserGeoName': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["geoName"]),
#
'ConvertDefaultLocale': SimTypeFunction([SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["Locale"]),
#
'GetSystemDefaultUILanguage': SimTypeFunction([], SimTypeShort(signed=False, label="UInt16")),
#
'GetThreadLocale': SimTypeFunction([], SimTypeInt(signed=False, label="UInt32")),
#
'SetThreadLocale': SimTypeFunction([SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["Locale"]),
#
'GetUserDefaultUILanguage': SimTypeFunction([], SimTypeShort(signed=False, label="UInt16")),
#
'GetUserDefaultLangID': SimTypeFunction([], SimTypeShort(signed=False, label="UInt16")),
#
'GetSystemDefaultLangID': SimTypeFunction([], SimTypeShort(signed=False, label="UInt16")),
#
'GetSystemDefaultLCID': SimTypeFunction([], SimTypeInt(signed=False, label="UInt32")),
#
'GetUserDefaultLCID': SimTypeFunction([], SimTypeInt(signed=False, label="UInt32")),
#
'SetThreadUILanguage': SimTypeFunction([SimTypeShort(signed=False, label="UInt16")], SimTypeShort(signed=False, label="UInt16"), arg_names=["LangId"]),
#
'GetThreadUILanguage': SimTypeFunction([], SimTypeShort(signed=False, label="UInt16")),
#
'GetProcessPreferredUILanguages': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["dwFlags", "pulNumLanguages", "pwszLanguagesBuffer", "pcchLanguagesBuffer"]),
#
'SetProcessPreferredUILanguages': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["dwFlags", "pwszLanguagesBuffer", "pulNumLanguages"]),
#
'GetUserPreferredUILanguages': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["dwFlags", "pulNumLanguages", "pwszLanguagesBuffer", "pcchLanguagesBuffer"]),
#
'GetSystemPreferredUILanguages': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["dwFlags", "pulNumLanguages", "pwszLanguagesBuffer", "pcchLanguagesBuffer"]),
#
'GetThreadPreferredUILanguages': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["dwFlags", "pulNumLanguages", "pwszLanguagesBuffer", "pcchLanguagesBuffer"]),
#
'SetThreadPreferredUILanguages': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["dwFlags", "pwszLanguagesBuffer", "pulNumLanguages"]),
#
'GetFileMUIInfo': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimStruct({"dwSize": SimTypeInt(signed=False, label="UInt32"), "dwVersion": SimTypeInt(signed=False, label="UInt32"), "dwFileType": SimTypeInt(signed=False, label="UInt32"), "pChecksum": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 16), "pServiceChecksum": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 16), "dwLanguageNameOffset": SimTypeInt(signed=False, label="UInt32"), "dwTypeIDMainSize": SimTypeInt(signed=False, label="UInt32"), "dwTypeIDMainOffset": SimTypeInt(signed=False, label="UInt32"), "dwTypeNameMainOffset": SimTypeInt(signed=False, label="UInt32"), "dwTypeIDMUISize": SimTypeInt(signed=False, label="UInt32"), "dwTypeIDMUIOffset": SimTypeInt(signed=False, label="UInt32"), "dwTypeNameMUIOffset": SimTypeInt(signed=False, label="UInt32"), "abBuffer": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 8)}, name="FILEMUIINFO", pack=False, align=None), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["dwFlags", "pcwszFilePath", "pFileMUIInfo", "pcbFileMUIInfo"]),
#
'GetFileMUIPath': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeLongLong(signed=False, label="UInt64"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["dwFlags", "pcwszFilePath", "pwszLanguage", "pcchLanguage", "pwszFileMUIPath", "pcchFileMUIPath", "pululEnumerator"]),
#
'GetUILanguageInfo': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["dwFlags", "pwmszLanguage", "pwszFallbackLanguages", "pcchFallbackLanguages", "pAttributes"]),
#
'SetThreadPreferredUILanguages2': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["flags", "languages", "numLanguagesSet", "snapshot"]),
#
'RestoreThreadPreferredUILanguages': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeBottom(label="Void"), arg_names=["snapshot"]),
#
'NotifyUILanguageChange': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["dwFlags", "pcwstrNewLanguage", "pcwstrPreviousLanguage", "dwReserved", "pdwStatusRtrn"]),
#
'GetStringTypeExA': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeShort(signed=False, label="UInt16"), label="LPArray", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["Locale", "dwInfoType", "lpSrcStr", "cchSrc", "lpCharType"]),
#
'GetStringTypeA': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeShort(signed=False, label="UInt16"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["Locale", "dwInfoType", "lpSrcStr", "cchSrc", "lpCharType"]),
#
'FoldStringA': SimTypeFunction([SimTypeInt(signed=False, label="FOLD_STRING_MAP_FLAGS"), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["dwMapFlags", "lpSrcStr", "cchSrc", "lpDestStr", "cchDest"]),
#
'EnumSystemLocalesA': SimTypeFunction([SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["param0"]), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpLocaleEnumProc", "dwFlags"]),
#
'EnumSystemLocalesW': SimTypeFunction([SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["param0"]), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpLocaleEnumProc", "dwFlags"]),
#
'EnumSystemLanguageGroupsA': SimTypeFunction([SimTypePointer(SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["param0", "param1", "param2", "param3", "param4"]), offset=0), SimTypeInt(signed=False, label="ENUM_SYSTEM_LANGUAGE_GROUPS_FLAGS"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpLanguageGroupEnumProc", "dwFlags", "lParam"]),
#
'EnumSystemLanguageGroupsW': SimTypeFunction([SimTypePointer(SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["param0", "param1", "param2", "param3", "param4"]), offset=0), SimTypeInt(signed=False, label="ENUM_SYSTEM_LANGUAGE_GROUPS_FLAGS"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpLanguageGroupEnumProc", "dwFlags", "lParam"]),
#
'EnumLanguageGroupLocalesA': SimTypeFunction([SimTypePointer(SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["param0", "param1", "param2", "param3"]), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpLangGroupLocaleEnumProc", "LanguageGroup", "dwFlags", "lParam"]),
#
'EnumLanguageGroupLocalesW': SimTypeFunction([SimTypePointer(SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["param0", "param1", "param2", "param3"]), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpLangGroupLocaleEnumProc", "LanguageGroup", "dwFlags", "lParam"]),
#
'EnumUILanguagesA': SimTypeFunction([SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["param0", "param1"]), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpUILanguageEnumProc", "dwFlags", "lParam"]),
#
'EnumUILanguagesW': SimTypeFunction([SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["param0", "param1"]), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpUILanguageEnumProc", "dwFlags", "lParam"]),
#
'EnumSystemCodePagesA': SimTypeFunction([SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["param0"]), offset=0), SimTypeInt(signed=False, label="ENUM_SYSTEM_CODE_PAGES_FLAGS")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpCodePageEnumProc", "dwFlags"]),
#
'EnumSystemCodePagesW': SimTypeFunction([SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["param0"]), offset=0), SimTypeInt(signed=False, label="ENUM_SYSTEM_CODE_PAGES_FLAGS")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpCodePageEnumProc", "dwFlags"]),
#
'IdnToNameprepUnicode': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["dwFlags", "lpUnicodeCharStr", "cchUnicodeChar", "lpNameprepCharStr", "cchNameprepChar"]),
#
'NormalizeString': SimTypeFunction([SimTypeInt(signed=False, label="NORM_FORM"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["NormForm", "lpSrcString", "cwSrcLength", "lpDstString", "cwDstLength"]),
#
'IsNormalizedString': SimTypeFunction([SimTypeInt(signed=False, label="NORM_FORM"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["NormForm", "lpString", "cwLength"]),
#
'VerifyScripts': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["dwFlags", "lpLocaleScripts", "cchLocaleScripts", "lpTestScripts", "cchTestScripts"]),
#
'GetStringScripts': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["dwFlags", "lpString", "cchString", "lpScripts", "cchScripts"]),
#
'GetLocaleInfoEx': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpLocaleName", "LCType", "lpLCData", "cchData"]),
#
'GetCalendarInfoEx': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpLocaleName", "Calendar", "lpReserved", "CalType", "lpCalData", "cchData", "lpValue"]),
#
'GetNumberFormatEx': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimStruct({"NumDigits": SimTypeInt(signed=False, label="UInt32"), "LeadingZero": SimTypeInt(signed=False, label="UInt32"), "Grouping": SimTypeInt(signed=False, label="UInt32"), "lpDecimalSep": SimTypePointer(SimTypeChar(label="Char"), offset=0), "lpThousandSep": SimTypePointer(SimTypeChar(label="Char"), offset=0), "NegativeOrder": SimTypeInt(signed=False, label="UInt32")}, name="NUMBERFMTW", pack=False, align=None), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpLocaleName", "dwFlags", "lpValue", "lpFormat", "lpNumberStr", "cchNumber"]),
#
'GetCurrencyFormatEx': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimStruct({"NumDigits": SimTypeInt(signed=False, label="UInt32"), "LeadingZero": SimTypeInt(signed=False, label="UInt32"), "Grouping": SimTypeInt(signed=False, label="UInt32"), "lpDecimalSep": SimTypePointer(SimTypeChar(label="Char"), offset=0), "lpThousandSep": SimTypePointer(SimTypeChar(label="Char"), offset=0), "NegativeOrder": SimTypeInt(signed=False, label="UInt32"), "PositiveOrder": SimTypeInt(signed=False, label="UInt32"), "lpCurrencySymbol": SimTypePointer(SimTypeChar(label="Char"), offset=0)}, name="CURRENCYFMTW", pack=False, align=None), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpLocaleName", "dwFlags", "lpValue", "lpFormat", "lpCurrencyStr", "cchCurrency"]),
#
'GetUserDefaultLocaleName': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpLocaleName", "cchLocaleName"]),
#
'GetSystemDefaultLocaleName': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpLocaleName", "cchLocaleName"]),
#
'IsNLSDefinedString': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"dwNLSVersionInfoSize": SimTypeInt(signed=False, label="UInt32"), "dwNLSVersion": SimTypeInt(signed=False, label="UInt32"), "dwDefinedVersion": SimTypeInt(signed=False, label="UInt32"), "dwEffectiveId": SimTypeInt(signed=False, label="UInt32"), "guidCustomVersion": SimTypeBottom(label="Guid")}, name="NLSVERSIONINFO", pack=False, align=None), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["Function", "dwFlags", "lpVersionInformation", "lpString", "cchStr"]),
#
'GetNLSVersionEx': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimStruct({"dwNLSVersionInfoSize": SimTypeInt(signed=False, label="UInt32"), "dwNLSVersion": SimTypeInt(signed=False, label="UInt32"), "dwDefinedVersion": SimTypeInt(signed=False, label="UInt32"), "dwEffectiveId": SimTypeInt(signed=False, label="UInt32"), "guidCustomVersion": SimTypeBottom(label="Guid")}, name="NLSVERSIONINFOEX", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["function", "lpLocaleName", "lpVersionInformation"]),
#
'IsValidNLSVersion': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimStruct({"dwNLSVersionInfoSize": SimTypeInt(signed=False, label="UInt32"), "dwNLSVersion": SimTypeInt(signed=False, label="UInt32"), "dwDefinedVersion": SimTypeInt(signed=False, label="UInt32"), "dwEffectiveId": SimTypeInt(signed=False, label="UInt32"), "guidCustomVersion": SimTypeBottom(label="Guid")}, name="NLSVERSIONINFOEX", pack=False, align=None), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["function", "lpLocaleName", "lpVersionInformation"]),
#
'FindNLSStringEx': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeInt(signed=True, label="Int32"), offset=0), SimTypePointer(SimStruct({"dwNLSVersionInfoSize": SimTypeInt(signed=False, label="UInt32"), "dwNLSVersion": SimTypeInt(signed=False, label="UInt32"), "dwDefinedVersion": SimTypeInt(signed=False, label="UInt32"), "dwEffectiveId": SimTypeInt(signed=False, label="UInt32"), "guidCustomVersion": SimTypeBottom(label="Guid")}, name="NLSVERSIONINFO", pack=False, align=None), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpLocaleName", "dwFindNLSStringFlags", "lpStringSource", "cchSource", "lpStringValue", "cchValue", "pcchFound", "lpVersionInformation", "lpReserved", "sortHandle"]),
#
'LCMapStringEx': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimStruct({"dwNLSVersionInfoSize": SimTypeInt(signed=False, label="UInt32"), "dwNLSVersion": SimTypeInt(signed=False, label="UInt32"), "dwDefinedVersion": SimTypeInt(signed=False, label="UInt32"), "dwEffectiveId": SimTypeInt(signed=False, label="UInt32"), "guidCustomVersion": SimTypeBottom(label="Guid")}, name="NLSVERSIONINFO", pack=False, align=None), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpLocaleName", "dwMapFlags", "lpSrcStr", "cchSrc", "lpDestStr", "cchDest", "lpVersionInformation", "lpReserved", "sortHandle"]),
#
'IsValidLocaleName': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpLocaleName"]),
#
'EnumCalendarInfoExEx': SimTypeFunction([SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["param0", "param1", "param2", "param3"]), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["pCalInfoEnumProcExEx", "lpLocaleName", "Calendar", "lpReserved", "CalType", "lParam"]),
#
'EnumDateFormatsExEx': SimTypeFunction([SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["param0", "param1", "param2"]), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="ENUM_DATE_FORMATS_FLAGS"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpDateFmtEnumProcExEx", "lpLocaleName", "dwFlags", "lParam"]),
#
'EnumTimeFormatsEx': SimTypeFunction([SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["param0", "param1"]), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpTimeFmtEnumProcEx", "lpLocaleName", "dwFlags", "lParam"]),
#
'EnumSystemLocalesEx': SimTypeFunction([SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["param0", "param1", "param2"]), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpLocaleEnumProcEx", "dwFlags", "lParam", "lpReserved"]),
#
'ResolveLocaleName': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpNameToResolve", "lpLocaleName", "cchLocaleName"]),
#
'FindStringOrdinal': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32"), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["dwFindStringOrdinalFlags", "lpStringSource", "cchSource", "lpStringValue", "cchValue", "bIgnoreCase"]),
#
'lstrcmpA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpString1", "lpString2"]),
#
'lstrcmpW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpString1", "lpString2"]),
#
'lstrcmpiA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpString1", "lpString2"]),
#
'lstrcmpiW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpString1", "lpString2"]),
#
'lstrcpynA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=True, label="Int32")], SimTypePointer(SimTypeChar(label="Byte"), offset=0), arg_names=["lpString1", "lpString2", "iMaxLength"]),
#
'lstrcpynW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=True, label="Int32")], SimTypePointer(SimTypeChar(label="Char"), offset=0), arg_names=["lpString1", "lpString2", "iMaxLength"]),
#
'lstrcpyA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypePointer(SimTypeChar(label="Byte"), offset=0), arg_names=["lpString1", "lpString2"]),
#
'lstrcpyW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypePointer(SimTypeChar(label="Char"), offset=0), arg_names=["lpString1", "lpString2"]),
#
'lstrcatA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypePointer(SimTypeChar(label="Byte"), offset=0), arg_names=["lpString1", "lpString2"]),
#
'lstrcatW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypePointer(SimTypeChar(label="Char"), offset=0), arg_names=["lpString1", "lpString2"]),
#
'lstrlenA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpString"]),
#
'lstrlenW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpString"]),
#
'GetAppContainerNamedObjectPath': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["Token", "AppContainerSid", "ObjectPathLength", "ObjectPath", "ReturnLength"]),
#
'AddResourceAttributeAce': SimTypeFunction([SimTypePointer(SimStruct({"AclRevision": SimTypeChar(label="Byte"), "Sbz1": SimTypeChar(label="Byte"), "AclSize": SimTypeShort(signed=False, label="UInt16"), "AceCount": SimTypeShort(signed=False, label="UInt16"), "Sbz2": SimTypeShort(signed=False, label="UInt16")}, name="ACL", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="ACE_FLAGS"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"Version": SimTypeShort(signed=False, label="UInt16"), "Reserved": SimTypeShort(signed=False, label="UInt16"), "AttributeCount": SimTypeInt(signed=False, label="UInt32"), "Attribute": SimUnion({"pAttributeV1": SimTypePointer(SimStruct({"Name": SimTypePointer(SimTypeChar(label="Char"), offset=0), "ValueType": SimTypeInt(signed=False, label="CLAIM_SECURITY_ATTRIBUTE_VALUE_TYPE"), "Reserved": SimTypeShort(signed=False, label="UInt16"), "Flags": SimTypeInt(signed=False, label="UInt32"), "ValueCount": SimTypeInt(signed=False, label="UInt32"), "Values": SimUnion({"pInt64": SimTypePointer(SimTypeLongLong(signed=True, label="Int64"), offset=0), "pUint64": SimTypePointer(SimTypeLongLong(signed=False, label="UInt64"), offset=0), "ppString": SimTypePointer(SimTypePointer(SimTypeChar(label="Char"), offset=0), offset=0), "pFqbn": SimTypePointer(SimStruct({"Version": SimTypeLongLong(signed=False, label="UInt64"), "Name": SimTypePointer(SimTypeChar(label="Char"), offset=0)}, name="CLAIM_SECURITY_ATTRIBUTE_FQBN_VALUE", pack=False, align=None), offset=0), "pOctetString": SimTypePointer(SimStruct({"pValue": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "ValueLength": SimTypeInt(signed=False, label="UInt32")}, name="CLAIM_SECURITY_ATTRIBUTE_OCTET_STRING_VALUE", pack=False, align=None), offset=0)}, name="<anon>", label="None")}, name="CLAIM_SECURITY_ATTRIBUTE_V1", pack=False, align=None), offset=0)}, name="<anon>", label="None")}, name="CLAIM_SECURITY_ATTRIBUTES_INFORMATION", pack=False, align=None), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["pAcl", "dwAceRevision", "AceFlags", "AccessMask", "pSid", "pAttributeInfo", "pReturnLength"]),
#
'AddScopedPolicyIDAce': SimTypeFunction([SimTypePointer(SimStruct({"AclRevision": SimTypeChar(label="Byte"), "Sbz1": SimTypeChar(label="Byte"), "AclSize": SimTypeShort(signed=False, label="UInt16"), "AceCount": SimTypeShort(signed=False, label="UInt16"), "Sbz2": SimTypeShort(signed=False, label="UInt16")}, name="ACL", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="ACE_FLAGS"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["pAcl", "dwAceRevision", "AceFlags", "AccessMask", "pSid"]),
#
'CheckTokenCapability': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["TokenHandle", "CapabilitySidToCheck", "HasCapability"]),
#
'GetAppContainerAce': SimTypeFunction([SimTypePointer(SimStruct({"AclRevision": SimTypeChar(label="Byte"), "Sbz1": SimTypeChar(label="Byte"), "AclSize": SimTypeShort(signed=False, label="UInt16"), "AceCount": SimTypeShort(signed=False, label="UInt16"), "Sbz2": SimTypeShort(signed=False, label="UInt16")}, name="ACL", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypePointer(SimTypeBottom(label="Void"), offset=0), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["Acl", "StartingAceIndex", "AppContainerAce", "AppContainerAceIndex"]),
#
'CheckTokenMembershipEx': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=True, label="Int32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["TokenHandle", "SidToCheck", "Flags", "IsMember"]),
#
'SetCachedSigningLevel': SimTypeFunction([SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["SourceFiles", "SourceFileCount", "Flags", "TargetFile"]),
#
'GetCachedSigningLevel': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["File", "Flags", "SigningLevel", "Thumbprint", "ThumbprintSize", "ThumbprintAlgorithm"]),
#
'SearchPathW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypePointer(SimTypePointer(SimTypeChar(label="Char"), offset=0), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpPath", "lpFileName", "lpExtension", "nBufferLength", "lpBuffer", "lpFilePart"]),
#
'SearchPathA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypePointer(SimTypePointer(SimTypeChar(label="Byte"), offset=0), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpPath", "lpFileName", "lpExtension", "nBufferLength", "lpBuffer", "lpFilePart"]),
#
'CompareFileTime': SimTypeFunction([SimTypePointer(SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpFileTime1", "lpFileTime2"]),
#
'CreateDirectoryA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpPathName", "lpSecurityAttributes"]),
#
'CreateDirectoryW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpPathName", "lpSecurityAttributes"]),
#
'CreateFileA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=False, label="FILE_ACCESS_FLAGS"), SimTypeInt(signed=False, label="FILE_SHARE_MODE"), SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="FILE_CREATION_DISPOSITION"), SimTypeInt(signed=False, label="FILE_FLAGS_AND_ATTRIBUTES"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpFileName", "dwDesiredAccess", "dwShareMode", "lpSecurityAttributes", "dwCreationDisposition", "dwFlagsAndAttributes", "hTemplateFile"]),
#
'CreateFileW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="FILE_ACCESS_FLAGS"), SimTypeInt(signed=False, label="FILE_SHARE_MODE"), SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="FILE_CREATION_DISPOSITION"), SimTypeInt(signed=False, label="FILE_FLAGS_AND_ATTRIBUTES"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpFileName", "dwDesiredAccess", "dwShareMode", "lpSecurityAttributes", "dwCreationDisposition", "dwFlagsAndAttributes", "hTemplateFile"]),
#
'DefineDosDeviceW': SimTypeFunction([SimTypeInt(signed=False, label="DEFINE_DOS_DEVICE_FLAGS"), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["dwFlags", "lpDeviceName", "lpTargetPath"]),
#
'DeleteFileA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpFileName"]),
#
'DeleteFileW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpFileName"]),
#
'DeleteVolumeMountPointW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpszVolumeMountPoint"]),
#
'FileTimeToLocalFileTime': SimTypeFunction([SimTypePointer(SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpFileTime", "lpLocalFileTime"]),
#
'FindClose': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hFindFile"]),
#
'FindCloseChangeNotification': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hChangeHandle"]),
#
'FindFirstChangeNotificationA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=True, label="Int32"), SimTypeInt(signed=False, label="FILE_NOTIFY_CHANGE")], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpPathName", "bWatchSubtree", "dwNotifyFilter"]),
#
'FindFirstChangeNotificationW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=True, label="Int32"), SimTypeInt(signed=False, label="FILE_NOTIFY_CHANGE")], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpPathName", "bWatchSubtree", "dwNotifyFilter"]),
#
'FindFirstFileA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimStruct({"dwFileAttributes": SimTypeInt(signed=False, label="UInt32"), "ftCreationTime": SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), "ftLastAccessTime": SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), "ftLastWriteTime": SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), "nFileSizeHigh": SimTypeInt(signed=False, label="UInt32"), "nFileSizeLow": SimTypeInt(signed=False, label="UInt32"), "dwReserved0": SimTypeInt(signed=False, label="UInt32"), "dwReserved1": SimTypeInt(signed=False, label="UInt32"), "cFileName": SimTypeFixedSizeArray(SimTypeBottom(label="CHAR"), 260), "cAlternateFileName": SimTypeFixedSizeArray(SimTypeBottom(label="CHAR"), 14)}, name="WIN32_FIND_DATAA", pack=False, align=None), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpFileName", "lpFindFileData"]),
#
'FindFirstFileW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimStruct({"dwFileAttributes": SimTypeInt(signed=False, label="UInt32"), "ftCreationTime": SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), "ftLastAccessTime": SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), "ftLastWriteTime": SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), "nFileSizeHigh": SimTypeInt(signed=False, label="UInt32"), "nFileSizeLow": SimTypeInt(signed=False, label="UInt32"), "dwReserved0": SimTypeInt(signed=False, label="UInt32"), "dwReserved1": SimTypeInt(signed=False, label="UInt32"), "cFileName": SimTypeFixedSizeArray(SimTypeChar(label="Char"), 260), "cAlternateFileName": SimTypeFixedSizeArray(SimTypeChar(label="Char"), 14)}, name="WIN32_FIND_DATAW", pack=False, align=None), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpFileName", "lpFindFileData"]),
#
'FindFirstFileExA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=False, label="FINDEX_INFO_LEVELS"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="FINDEX_SEARCH_OPS"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="FIND_FIRST_EX_FLAGS")], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpFileName", "fInfoLevelId", "lpFindFileData", "fSearchOp", "lpSearchFilter", "dwAdditionalFlags"]),
#
'FindFirstFileExW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="FINDEX_INFO_LEVELS"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="FINDEX_SEARCH_OPS"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="FIND_FIRST_EX_FLAGS")], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpFileName", "fInfoLevelId", "lpFindFileData", "fSearchOp", "lpSearchFilter", "dwAdditionalFlags"]),
#
'FindFirstVolumeW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpszVolumeName", "cchBufferLength"]),
#
'FindNextChangeNotification': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hChangeHandle"]),
#
'FindNextFileA': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"dwFileAttributes": SimTypeInt(signed=False, label="UInt32"), "ftCreationTime": SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), "ftLastAccessTime": SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), "ftLastWriteTime": SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), "nFileSizeHigh": SimTypeInt(signed=False, label="UInt32"), "nFileSizeLow": SimTypeInt(signed=False, label="UInt32"), "dwReserved0": SimTypeInt(signed=False, label="UInt32"), "dwReserved1": SimTypeInt(signed=False, label="UInt32"), "cFileName": SimTypeFixedSizeArray(SimTypeBottom(label="CHAR"), 260), "cAlternateFileName": SimTypeFixedSizeArray(SimTypeBottom(label="CHAR"), 14)}, name="WIN32_FIND_DATAA", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hFindFile", "lpFindFileData"]),
#
'FindNextFileW': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"dwFileAttributes": SimTypeInt(signed=False, label="UInt32"), "ftCreationTime": SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), "ftLastAccessTime": SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), "ftLastWriteTime": SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), "nFileSizeHigh": SimTypeInt(signed=False, label="UInt32"), "nFileSizeLow": SimTypeInt(signed=False, label="UInt32"), "dwReserved0": SimTypeInt(signed=False, label="UInt32"), "dwReserved1": SimTypeInt(signed=False, label="UInt32"), "cFileName": SimTypeFixedSizeArray(SimTypeChar(label="Char"), 260), "cAlternateFileName": SimTypeFixedSizeArray(SimTypeChar(label="Char"), 14)}, name="WIN32_FIND_DATAW", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hFindFile", "lpFindFileData"]),
#
'FindNextVolumeW': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hFindVolume", "lpszVolumeName", "cchBufferLength"]),
#
'FindVolumeClose': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hFindVolume"]),
#
'FlushFileBuffers': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile"]),
#
'GetDiskFreeSpaceA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpRootPathName", "lpSectorsPerCluster", "lpBytesPerSector", "lpNumberOfFreeClusters", "lpTotalNumberOfClusters"]),
#
'GetDiskFreeSpaceW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpRootPathName", "lpSectorsPerCluster", "lpBytesPerSector", "lpNumberOfFreeClusters", "lpTotalNumberOfClusters"]),
#
'GetDiskFreeSpaceExA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimUnion({"Anonymous": SimStruct({"LowPart": SimTypeInt(signed=False, label="UInt32"), "HighPart": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None), "u": SimStruct({"LowPart": SimTypeInt(signed=False, label="UInt32"), "HighPart": SimTypeInt(signed=False, label="UInt32")}, name="_u_e__Struct", pack=False, align=None), "QuadPart": SimTypeLongLong(signed=False, label="UInt64")}, name="<anon>", label="None"), offset=0), SimTypePointer(SimUnion({"Anonymous": SimStruct({"LowPart": SimTypeInt(signed=False, label="UInt32"), "HighPart": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None), "u": SimStruct({"LowPart": SimTypeInt(signed=False, label="UInt32"), "HighPart": SimTypeInt(signed=False, label="UInt32")}, name="_u_e__Struct", pack=False, align=None), "QuadPart": SimTypeLongLong(signed=False, label="UInt64")}, name="<anon>", label="None"), offset=0), SimTypePointer(SimUnion({"Anonymous": SimStruct({"LowPart": SimTypeInt(signed=False, label="UInt32"), "HighPart": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None), "u": SimStruct({"LowPart": SimTypeInt(signed=False, label="UInt32"), "HighPart": SimTypeInt(signed=False, label="UInt32")}, name="_u_e__Struct", pack=False, align=None), "QuadPart": SimTypeLongLong(signed=False, label="UInt64")}, name="<anon>", label="None"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpDirectoryName", "lpFreeBytesAvailableToCaller", "lpTotalNumberOfBytes", "lpTotalNumberOfFreeBytes"]),
#
'GetDiskFreeSpaceExW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimUnion({"Anonymous": SimStruct({"LowPart": SimTypeInt(signed=False, label="UInt32"), "HighPart": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None), "u": SimStruct({"LowPart": SimTypeInt(signed=False, label="UInt32"), "HighPart": SimTypeInt(signed=False, label="UInt32")}, name="_u_e__Struct", pack=False, align=None), "QuadPart": SimTypeLongLong(signed=False, label="UInt64")}, name="<anon>", label="None"), offset=0), SimTypePointer(SimUnion({"Anonymous": SimStruct({"LowPart": SimTypeInt(signed=False, label="UInt32"), "HighPart": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None), "u": SimStruct({"LowPart": SimTypeInt(signed=False, label="UInt32"), "HighPart": SimTypeInt(signed=False, label="UInt32")}, name="_u_e__Struct", pack=False, align=None), "QuadPart": SimTypeLongLong(signed=False, label="UInt64")}, name="<anon>", label="None"), offset=0), SimTypePointer(SimUnion({"Anonymous": SimStruct({"LowPart": SimTypeInt(signed=False, label="UInt32"), "HighPart": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None), "u": SimStruct({"LowPart": SimTypeInt(signed=False, label="UInt32"), "HighPart": SimTypeInt(signed=False, label="UInt32")}, name="_u_e__Struct", pack=False, align=None), "QuadPart": SimTypeLongLong(signed=False, label="UInt64")}, name="<anon>", label="None"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpDirectoryName", "lpFreeBytesAvailableToCaller", "lpTotalNumberOfBytes", "lpTotalNumberOfFreeBytes"]),
#
'GetDiskSpaceInformationA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimStruct({"ActualTotalAllocationUnits": SimTypeLongLong(signed=False, label="UInt64"), "ActualAvailableAllocationUnits": SimTypeLongLong(signed=False, label="UInt64"), "ActualPoolUnavailableAllocationUnits": SimTypeLongLong(signed=False, label="UInt64"), "CallerTotalAllocationUnits": SimTypeLongLong(signed=False, label="UInt64"), "CallerAvailableAllocationUnits": SimTypeLongLong(signed=False, label="UInt64"), "CallerPoolUnavailableAllocationUnits": SimTypeLongLong(signed=False, label="UInt64"), "UsedAllocationUnits": SimTypeLongLong(signed=False, label="UInt64"), "TotalReservedAllocationUnits": SimTypeLongLong(signed=False, label="UInt64"), "VolumeStorageReserveAllocationUnits": SimTypeLongLong(signed=False, label="UInt64"), "AvailableCommittedAllocationUnits": SimTypeLongLong(signed=False, label="UInt64"), "PoolAvailableAllocationUnits": SimTypeLongLong(signed=False, label="UInt64"), "SectorsPerAllocationUnit": SimTypeInt(signed=False, label="UInt32"), "BytesPerSector": SimTypeInt(signed=False, label="UInt32")}, name="DISK_SPACE_INFORMATION", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["rootPath", "diskSpaceInfo"]),
#
'GetDiskSpaceInformationW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimStruct({"ActualTotalAllocationUnits": SimTypeLongLong(signed=False, label="UInt64"), "ActualAvailableAllocationUnits": SimTypeLongLong(signed=False, label="UInt64"), "ActualPoolUnavailableAllocationUnits": SimTypeLongLong(signed=False, label="UInt64"), "CallerTotalAllocationUnits": SimTypeLongLong(signed=False, label="UInt64"), "CallerAvailableAllocationUnits": SimTypeLongLong(signed=False, label="UInt64"), "CallerPoolUnavailableAllocationUnits": SimTypeLongLong(signed=False, label="UInt64"), "UsedAllocationUnits": SimTypeLongLong(signed=False, label="UInt64"), "TotalReservedAllocationUnits": SimTypeLongLong(signed=False, label="UInt64"), "VolumeStorageReserveAllocationUnits": SimTypeLongLong(signed=False, label="UInt64"), "AvailableCommittedAllocationUnits": SimTypeLongLong(signed=False, label="UInt64"), "PoolAvailableAllocationUnits": SimTypeLongLong(signed=False, label="UInt64"), "SectorsPerAllocationUnit": SimTypeInt(signed=False, label="UInt32"), "BytesPerSector": SimTypeInt(signed=False, label="UInt32")}, name="DISK_SPACE_INFORMATION", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["rootPath", "diskSpaceInfo"]),
#
'GetDriveTypeA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpRootPathName"]),
#
'GetDriveTypeW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpRootPathName"]),
#
'GetFileAttributesA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpFileName"]),
#
'GetFileAttributesW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpFileName"]),
#
'GetFileAttributesExA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=False, label="GET_FILEEX_INFO_LEVELS"), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpFileName", "fInfoLevelId", "lpFileInformation"]),
#
'GetFileAttributesExW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="GET_FILEEX_INFO_LEVELS"), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpFileName", "fInfoLevelId", "lpFileInformation"]),
#
'GetFileInformationByHandle': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"dwFileAttributes": SimTypeInt(signed=False, label="UInt32"), "ftCreationTime": SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), "ftLastAccessTime": SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), "ftLastWriteTime": SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), "dwVolumeSerialNumber": SimTypeInt(signed=False, label="UInt32"), "nFileSizeHigh": SimTypeInt(signed=False, label="UInt32"), "nFileSizeLow": SimTypeInt(signed=False, label="UInt32"), "nNumberOfLinks": SimTypeInt(signed=False, label="UInt32"), "nFileIndexHigh": SimTypeInt(signed=False, label="UInt32"), "nFileIndexLow": SimTypeInt(signed=False, label="UInt32")}, name="BY_HANDLE_FILE_INFORMATION", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "lpFileInformation"]),
#
'GetFileSize': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["hFile", "lpFileSizeHigh"]),
#
'GetFileSizeEx': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimUnion({"Anonymous": SimStruct({"LowPart": SimTypeInt(signed=False, label="UInt32"), "HighPart": SimTypeInt(signed=True, label="Int32")}, name="_Anonymous_e__Struct", pack=False, align=None), "u": SimStruct({"LowPart": SimTypeInt(signed=False, label="UInt32"), "HighPart": SimTypeInt(signed=True, label="Int32")}, name="_u_e__Struct", pack=False, align=None), "QuadPart": SimTypeLongLong(signed=True, label="Int64")}, name="<anon>", label="None"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "lpFileSize"]),
#
'GetFileType': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["hFile"]),
#
'GetFinalPathNameByHandleA': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="FILE_NAME")], SimTypeInt(signed=False, label="UInt32"), arg_names=["hFile", "lpszFilePath", "cchFilePath", "dwFlags"]),
#
'GetFinalPathNameByHandleW': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="FILE_NAME")], SimTypeInt(signed=False, label="UInt32"), arg_names=["hFile", "lpszFilePath", "cchFilePath", "dwFlags"]),
#
'GetFileTime': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "lpCreationTime", "lpLastAccessTime", "lpLastWriteTime"]),
#
'GetFullPathNameW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypePointer(SimTypePointer(SimTypeChar(label="Char"), offset=0), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpFileName", "nBufferLength", "lpBuffer", "lpFilePart"]),
#
'GetFullPathNameA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypePointer(SimTypePointer(SimTypeChar(label="Byte"), offset=0), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpFileName", "nBufferLength", "lpBuffer", "lpFilePart"]),
#
'GetLogicalDrives': SimTypeFunction([], SimTypeInt(signed=False, label="UInt32")),
#
'GetLogicalDriveStringsW': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["nBufferLength", "lpBuffer"]),
#
'GetLongPathNameA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpszShortPath", "lpszLongPath", "cchBuffer"]),
#
'GetLongPathNameW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpszShortPath", "lpszLongPath", "cchBuffer"]),
#
'GetShortPathNameW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpszLongPath", "lpszShortPath", "cchBuffer"]),
#
'GetTempFileNameW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpPathName", "lpPrefixString", "uUnique", "lpTempFileName"]),
#
'GetVolumeInformationByHandleW': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "lpVolumeNameBuffer", "nVolumeNameSize", "lpVolumeSerialNumber", "lpMaximumComponentLength", "lpFileSystemFlags", "lpFileSystemNameBuffer", "nFileSystemNameSize"]),
#
'GetVolumeInformationW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpRootPathName", "lpVolumeNameBuffer", "nVolumeNameSize", "lpVolumeSerialNumber", "lpMaximumComponentLength", "lpFileSystemFlags", "lpFileSystemNameBuffer", "nFileSystemNameSize"]),
#
'GetVolumePathNameW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpszFileName", "lpszVolumePathName", "cchBufferLength"]),
#
'LocalFileTimeToFileTime': SimTypeFunction([SimTypePointer(SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpLocalFileTime", "lpFileTime"]),
#
'LockFile': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "dwFileOffsetLow", "dwFileOffsetHigh", "nNumberOfBytesToLockLow", "nNumberOfBytesToLockHigh"]),
#
'LockFileEx': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="LOCK_FILE_FLAGS"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"Internal": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "InternalHigh": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "Anonymous": SimUnion({"Anonymous": SimStruct({"Offset": SimTypeInt(signed=False, label="UInt32"), "OffsetHigh": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None), "Pointer": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="<anon>", label="None"), "hEvent": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)}, name="OVERLAPPED", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "dwFlags", "dwReserved", "nNumberOfBytesToLockLow", "nNumberOfBytesToLockHigh", "lpOverlapped"]),
#
'QueryDosDeviceW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpDeviceName", "lpTargetPath", "ucchMax"]),
#
'ReadFile': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimStruct({"Internal": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "InternalHigh": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "Anonymous": SimUnion({"Anonymous": SimStruct({"Offset": SimTypeInt(signed=False, label="UInt32"), "OffsetHigh": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None), "Pointer": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="<anon>", label="None"), "hEvent": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)}, name="OVERLAPPED", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "lpBuffer", "nNumberOfBytesToRead", "lpNumberOfBytesRead", "lpOverlapped"]),
#
'ReadFileEx': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"Internal": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "InternalHigh": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "Anonymous": SimUnion({"Anonymous": SimStruct({"Offset": SimTypeInt(signed=False, label="UInt32"), "OffsetHigh": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None), "Pointer": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="<anon>", label="None"), "hEvent": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)}, name="OVERLAPPED", pack=False, align=None), offset=0), SimTypePointer(SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeBottom(label="OVERLAPPED"), offset=0)], SimTypeBottom(label="Void"), arg_names=["dwErrorCode", "dwNumberOfBytesTransfered", "lpOverlapped"]), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "lpBuffer", "nNumberOfBytesToRead", "lpOverlapped", "lpCompletionRoutine"]),
#
'ReadFileScatter': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimUnion({"Buffer": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "Alignment": SimTypeLongLong(signed=False, label="UInt64")}, name="<anon>", label="None"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimStruct({"Internal": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "InternalHigh": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "Anonymous": SimUnion({"Anonymous": SimStruct({"Offset": SimTypeInt(signed=False, label="UInt32"), "OffsetHigh": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None), "Pointer": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="<anon>", label="None"), "hEvent": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)}, name="OVERLAPPED", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "aSegmentArray", "nNumberOfBytesToRead", "lpReserved", "lpOverlapped"]),
#
'RemoveDirectoryA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpPathName"]),
#
'RemoveDirectoryW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpPathName"]),
#
'SetEndOfFile': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile"]),
#
'SetFileAttributesA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=False, label="FILE_FLAGS_AND_ATTRIBUTES")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpFileName", "dwFileAttributes"]),
#
'SetFileAttributesW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="FILE_FLAGS_AND_ATTRIBUTES")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpFileName", "dwFileAttributes"]),
#
'SetFileInformationByHandle': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="FILE_INFO_BY_HANDLE_CLASS"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "FileInformationClass", "lpFileInformation", "dwBufferSize"]),
#
'SetFilePointer': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeInt(signed=True, label="Int32"), offset=0), SimTypeInt(signed=False, label="SET_FILE_POINTER_MOVE_METHOD")], SimTypeInt(signed=False, label="UInt32"), arg_names=["hFile", "lDistanceToMove", "lpDistanceToMoveHigh", "dwMoveMethod"]),
#
'SetFilePointerEx': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimUnion({"Anonymous": SimStruct({"LowPart": SimTypeInt(signed=False, label="UInt32"), "HighPart": SimTypeInt(signed=True, label="Int32")}, name="_Anonymous_e__Struct", pack=False, align=None), "u": SimStruct({"LowPart": SimTypeInt(signed=False, label="UInt32"), "HighPart": SimTypeInt(signed=True, label="Int32")}, name="_u_e__Struct", pack=False, align=None), "QuadPart": SimTypeLongLong(signed=True, label="Int64")}, name="<anon>", label="None"), SimTypePointer(SimUnion({"Anonymous": SimStruct({"LowPart": SimTypeInt(signed=False, label="UInt32"), "HighPart": SimTypeInt(signed=True, label="Int32")}, name="_Anonymous_e__Struct", pack=False, align=None), "u": SimStruct({"LowPart": SimTypeInt(signed=False, label="UInt32"), "HighPart": SimTypeInt(signed=True, label="Int32")}, name="_u_e__Struct", pack=False, align=None), "QuadPart": SimTypeLongLong(signed=True, label="Int64")}, name="<anon>", label="None"), offset=0), SimTypeInt(signed=False, label="SET_FILE_POINTER_MOVE_METHOD")], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "liDistanceToMove", "lpNewFilePointer", "dwMoveMethod"]),
#
'SetFileTime': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "lpCreationTime", "lpLastAccessTime", "lpLastWriteTime"]),
#
'SetFileValidData': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeLongLong(signed=True, label="Int64")], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "ValidDataLength"]),
#
'UnlockFile': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "dwFileOffsetLow", "dwFileOffsetHigh", "nNumberOfBytesToUnlockLow", "nNumberOfBytesToUnlockHigh"]),
#
'UnlockFileEx': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"Internal": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "InternalHigh": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "Anonymous": SimUnion({"Anonymous": SimStruct({"Offset": SimTypeInt(signed=False, label="UInt32"), "OffsetHigh": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None), "Pointer": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="<anon>", label="None"), "hEvent": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)}, name="OVERLAPPED", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "dwReserved", "nNumberOfBytesToUnlockLow", "nNumberOfBytesToUnlockHigh", "lpOverlapped"]),
#
'WriteFile': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimStruct({"Internal": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "InternalHigh": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "Anonymous": SimUnion({"Anonymous": SimStruct({"Offset": SimTypeInt(signed=False, label="UInt32"), "OffsetHigh": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None), "Pointer": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="<anon>", label="None"), "hEvent": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)}, name="OVERLAPPED", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "lpBuffer", "nNumberOfBytesToWrite", "lpNumberOfBytesWritten", "lpOverlapped"]),
#
'WriteFileEx': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"Internal": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "InternalHigh": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "Anonymous": SimUnion({"Anonymous": SimStruct({"Offset": SimTypeInt(signed=False, label="UInt32"), "OffsetHigh": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None), "Pointer": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="<anon>", label="None"), "hEvent": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)}, name="OVERLAPPED", pack=False, align=None), offset=0), SimTypePointer(SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeBottom(label="OVERLAPPED"), offset=0)], SimTypeBottom(label="Void"), arg_names=["dwErrorCode", "dwNumberOfBytesTransfered", "lpOverlapped"]), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "lpBuffer", "nNumberOfBytesToWrite", "lpOverlapped", "lpCompletionRoutine"]),
#
'WriteFileGather': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimUnion({"Buffer": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "Alignment": SimTypeLongLong(signed=False, label="UInt64")}, name="<anon>", label="None"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimStruct({"Internal": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "InternalHigh": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "Anonymous": SimUnion({"Anonymous": SimStruct({"Offset": SimTypeInt(signed=False, label="UInt32"), "OffsetHigh": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None), "Pointer": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="<anon>", label="None"), "hEvent": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)}, name="OVERLAPPED", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "aSegmentArray", "nNumberOfBytesToWrite", "lpReserved", "lpOverlapped"]),
#
'GetTempPathW': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["nBufferLength", "lpBuffer"]),
#
'GetVolumeNameForVolumeMountPointW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpszVolumeMountPoint", "lpszVolumeName", "cchBufferLength"]),
#
'GetVolumePathNamesForVolumeNameW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpszVolumeName", "lpszVolumePathNames", "cchBufferLength", "lpcchReturnLength"]),
#
'CreateFile2': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="FILE_ACCESS_FLAGS"), SimTypeInt(signed=False, label="FILE_SHARE_MODE"), SimTypeInt(signed=False, label="FILE_CREATION_DISPOSITION"), SimTypePointer(SimStruct({"dwSize": SimTypeInt(signed=False, label="UInt32"), "dwFileAttributes": SimTypeInt(signed=False, label="UInt32"), "dwFileFlags": SimTypeInt(signed=False, label="UInt32"), "dwSecurityQosFlags": SimTypeInt(signed=False, label="UInt32"), "lpSecurityAttributes": SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0), "hTemplateFile": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)}, name="CREATEFILE2_EXTENDED_PARAMETERS", pack=False, align=None), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpFileName", "dwDesiredAccess", "dwShareMode", "dwCreationDisposition", "pCreateExParams"]),
#
'SetFileIoOverlappedRange': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["FileHandle", "OverlappedRangeStart", "Length"]),
#
'GetCompressedFileSizeA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpFileName", "lpFileSizeHigh"]),
#
'GetCompressedFileSizeW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpFileName", "lpFileSizeHigh"]),
#
'FindFirstStreamW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="STREAM_INFO_LEVELS"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpFileName", "InfoLevel", "lpFindStreamData", "dwFlags"]),
#
'FindNextStreamW': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hFindStream", "lpFindStreamData"]),
#
'AreFileApisANSI': SimTypeFunction([], SimTypeInt(signed=True, label="Int32")),
#
'GetTempPathA': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["nBufferLength", "lpBuffer"]),
#
'FindFirstFileNameW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpFileName", "dwFlags", "StringLength", "LinkName"]),
#
'FindNextFileNameW': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hFindStream", "StringLength", "LinkName"]),
#
'GetVolumeInformationA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpRootPathName", "lpVolumeNameBuffer", "nVolumeNameSize", "lpVolumeSerialNumber", "lpMaximumComponentLength", "lpFileSystemFlags", "lpFileSystemNameBuffer", "nFileSystemNameSize"]),
#
'GetTempFileNameA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpPathName", "lpPrefixString", "uUnique", "lpTempFileName"]),
#
'SetFileApisToOEM': SimTypeFunction([], SimTypeBottom(label="Void")),
#
'SetFileApisToANSI': SimTypeFunction([], SimTypeBottom(label="Void")),
#
'CreateIoCompletionPort': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["FileHandle", "ExistingCompletionPort", "CompletionKey", "NumberOfConcurrentThreads"]),
#
'GetQueuedCompletionStatus': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), offset=0), SimTypePointer(SimTypePointer(SimStruct({"Internal": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "InternalHigh": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "Anonymous": SimUnion({"Anonymous": SimStruct({"Offset": SimTypeInt(signed=False, label="UInt32"), "OffsetHigh": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None), "Pointer": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="<anon>", label="None"), "hEvent": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)}, name="OVERLAPPED", pack=False, align=None), offset=0), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["CompletionPort", "lpNumberOfBytesTransferred", "lpCompletionKey", "lpOverlapped", "dwMilliseconds"]),
#
'GetQueuedCompletionStatusEx': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"lpCompletionKey": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "lpOverlapped": SimTypePointer(SimTypeBottom(label="OVERLAPPED"), offset=0), "Internal": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "dwNumberOfBytesTransferred": SimTypeInt(signed=False, label="UInt32")}, name="OVERLAPPED_ENTRY", pack=False, align=None), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["CompletionPort", "lpCompletionPortEntries", "ulCount", "ulNumEntriesRemoved", "dwMilliseconds", "fAlertable"]),
#
'PostQueuedCompletionStatus': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypePointer(SimStruct({"Internal": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "InternalHigh": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "Anonymous": SimUnion({"Anonymous": SimStruct({"Offset": SimTypeInt(signed=False, label="UInt32"), "OffsetHigh": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None), "Pointer": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="<anon>", label="None"), "hEvent": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)}, name="OVERLAPPED", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["CompletionPort", "dwNumberOfBytesTransferred", "dwCompletionKey", "lpOverlapped"]),
#
'CancelIoEx': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"Internal": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "InternalHigh": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "Anonymous": SimUnion({"Anonymous": SimStruct({"Offset": SimTypeInt(signed=False, label="UInt32"), "OffsetHigh": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None), "Pointer": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="<anon>", label="None"), "hEvent": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)}, name="OVERLAPPED", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "lpOverlapped"]),
#
'CancelIo': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile"]),
#
'CancelSynchronousIo': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hThread"]),
#
'VerLanguageNameA': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["wLang", "szLang", "cchLang"]),
#
'VerLanguageNameW': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["wLang", "szLang", "cchLang"]),
#
'LZStart': SimTypeFunction([], SimTypeInt(signed=True, label="Int32")),
#
'LZDone': SimTypeFunction([], SimTypeBottom(label="Void")),
#
'CopyLZFile': SimTypeFunction([SimTypeInt(signed=True, label="Int32"), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hfSource", "hfDest"]),
#
'LZCopy': SimTypeFunction([SimTypeInt(signed=True, label="Int32"), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hfSource", "hfDest"]),
#
'LZInit': SimTypeFunction([SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hfSource"]),
#
'GetExpandedNameA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpszSource", "lpszBuffer"]),
#
'GetExpandedNameW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpszSource", "lpszBuffer"]),
#
'LZOpenFileA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimStruct({"cBytes": SimTypeChar(label="Byte"), "fFixedDisk": SimTypeChar(label="Byte"), "nErrCode": SimTypeShort(signed=False, label="UInt16"), "Reserved1": SimTypeShort(signed=False, label="UInt16"), "Reserved2": SimTypeShort(signed=False, label="UInt16"), "szPathName": SimTypeFixedSizeArray(SimTypeBottom(label="CHAR"), 128)}, name="OFSTRUCT", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="LZOPENFILE_STYLE")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpFileName", "lpReOpenBuf", "wStyle"]),
#
'LZOpenFileW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimStruct({"cBytes": SimTypeChar(label="Byte"), "fFixedDisk": SimTypeChar(label="Byte"), "nErrCode": SimTypeShort(signed=False, label="UInt16"), "Reserved1": SimTypeShort(signed=False, label="UInt16"), "Reserved2": SimTypeShort(signed=False, label="UInt16"), "szPathName": SimTypeFixedSizeArray(SimTypeBottom(label="CHAR"), 128)}, name="OFSTRUCT", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="LZOPENFILE_STYLE")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpFileName", "lpReOpenBuf", "wStyle"]),
#
'LZSeek': SimTypeFunction([SimTypeInt(signed=True, label="Int32"), SimTypeInt(signed=True, label="Int32"), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "lOffset", "iOrigin"]),
#
'LZRead': SimTypeFunction([SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "lpBuffer", "cbRead"]),
#
'LZClose': SimTypeFunction([SimTypeInt(signed=True, label="Int32")], SimTypeBottom(label="Void"), arg_names=["hFile"]),
#
'Wow64DisableWow64FsRedirection': SimTypeFunction([SimTypePointer(SimTypePointer(SimTypeBottom(label="Void"), offset=0), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["OldValue"]),
#
'Wow64RevertWow64FsRedirection': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["OlValue"]),
#
'GetBinaryTypeA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpApplicationName", "lpBinaryType"]),
#
'GetBinaryTypeW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpApplicationName", "lpBinaryType"]),
#
'GetShortPathNameA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpszLongPath", "lpszShortPath", "cchBuffer"]),
#
'GetLongPathNameTransactedA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpszShortPath", "lpszLongPath", "cchBuffer", "hTransaction"]),
#
'GetLongPathNameTransactedW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpszShortPath", "lpszLongPath", "cchBuffer", "hTransaction"]),
#
'SetFileCompletionNotificationModes': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeChar(label="Byte")], SimTypeInt(signed=True, label="Int32"), arg_names=["FileHandle", "Flags"]),
#
'SetFileShortNameA': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "lpShortName"]),
#
'SetFileShortNameW': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "lpShortName"]),
#
'SetTapePosition': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="TAPE_POSITION_METHOD"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["hDevice", "dwPositionMethod", "dwPartition", "dwOffsetLow", "dwOffsetHigh", "bImmediate"]),
#
'GetTapePosition': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="TAPE_POSITION_TYPE"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["hDevice", "dwPositionType", "lpdwPartition", "lpdwOffsetLow", "lpdwOffsetHigh"]),
#
'PrepareTape': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="PREPARE_TAPE_OPERATION"), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["hDevice", "dwOperation", "bImmediate"]),
#
'EraseTape': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="ERASE_TAPE_TYPE"), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["hDevice", "dwEraseType", "bImmediate"]),
#
'CreateTapePartition': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="CREATE_TAPE_PARTITION_METHOD"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["hDevice", "dwPartitionMethod", "dwCount", "dwSize"]),
#
'WriteTapemark': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="TAPEMARK_TYPE"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["hDevice", "dwTapemarkType", "dwTapemarkCount", "bImmediate"]),
#
'GetTapeStatus': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["hDevice"]),
#
'GetTapeParameters': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="GET_TAPE_DRIVE_PARAMETERS_OPERATION"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["hDevice", "dwOperation", "lpdwSize", "lpTapeInformation"]),
#
'SetTapeParameters': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="TAPE_INFORMATION_TYPE"), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["hDevice", "dwOperation", "lpTapeInformation"]),
#
'OpenFile': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimStruct({"cBytes": SimTypeChar(label="Byte"), "fFixedDisk": SimTypeChar(label="Byte"), "nErrCode": SimTypeShort(signed=False, label="UInt16"), "Reserved1": SimTypeShort(signed=False, label="UInt16"), "Reserved2": SimTypeShort(signed=False, label="UInt16"), "szPathName": SimTypeFixedSizeArray(SimTypeBottom(label="CHAR"), 128)}, name="OFSTRUCT", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="LZOPENFILE_STYLE")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpFileName", "lpReOpenBuff", "uStyle"]),
#
'BackupRead': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypeInt(signed=True, label="Int32"), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypePointer(SimTypeBottom(label="Void"), offset=0), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "lpBuffer", "nNumberOfBytesToRead", "lpNumberOfBytesRead", "bAbort", "bProcessSecurity", "lpContext"]),
#
'BackupSeek': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypePointer(SimTypeBottom(label="Void"), offset=0), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "dwLowBytesToSeek", "dwHighBytesToSeek", "lpdwLowByteSeeked", "lpdwHighByteSeeked", "lpContext"]),
#
'BackupWrite': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypeInt(signed=True, label="Int32"), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypePointer(SimTypeBottom(label="Void"), offset=0), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "lpBuffer", "nNumberOfBytesToWrite", "lpNumberOfBytesWritten", "bAbort", "bProcessSecurity", "lpContext"]),
#
'GetLogicalDriveStringsA': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["nBufferLength", "lpBuffer"]),
#
'Wow64EnableWow64FsRedirection': SimTypeFunction([SimTypeChar(label="Byte")], SimTypeChar(label="Byte"), arg_names=["Wow64FsEnableRedirection"]),
#
'SetSearchPathMode': SimTypeFunction([SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["Flags"]),
#
'CreateDirectoryExA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpTemplateDirectory", "lpNewDirectory", "lpSecurityAttributes"]),
#
'CreateDirectoryExW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpTemplateDirectory", "lpNewDirectory", "lpSecurityAttributes"]),
#
'CreateDirectoryTransactedA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpTemplateDirectory", "lpNewDirectory", "lpSecurityAttributes", "hTransaction"]),
#
'CreateDirectoryTransactedW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpTemplateDirectory", "lpNewDirectory", "lpSecurityAttributes", "hTransaction"]),
#
'RemoveDirectoryTransactedA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpPathName", "hTransaction"]),
#
'RemoveDirectoryTransactedW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpPathName", "hTransaction"]),
#
'GetFullPathNameTransactedA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypePointer(SimTypePointer(SimTypeChar(label="Byte"), offset=0), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpFileName", "nBufferLength", "lpBuffer", "lpFilePart", "hTransaction"]),
#
'GetFullPathNameTransactedW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypePointer(SimTypePointer(SimTypeChar(label="Char"), offset=0), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpFileName", "nBufferLength", "lpBuffer", "lpFilePart", "hTransaction"]),
#
'DefineDosDeviceA': SimTypeFunction([SimTypeInt(signed=False, label="DEFINE_DOS_DEVICE_FLAGS"), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["dwFlags", "lpDeviceName", "lpTargetPath"]),
#
'QueryDosDeviceA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpDeviceName", "lpTargetPath", "ucchMax"]),
#
'CreateFileTransactedA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="FILE_SHARE_MODE"), SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="FILE_CREATION_DISPOSITION"), SimTypeInt(signed=False, label="FILE_FLAGS_AND_ATTRIBUTES"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="TXFS_MINIVERSION"), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpFileName", "dwDesiredAccess", "dwShareMode", "lpSecurityAttributes", "dwCreationDisposition", "dwFlagsAndAttributes", "hTemplateFile", "hTransaction", "pusMiniVersion", "lpExtendedParameter"]),
#
'CreateFileTransactedW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="FILE_SHARE_MODE"), SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="FILE_CREATION_DISPOSITION"), SimTypeInt(signed=False, label="FILE_FLAGS_AND_ATTRIBUTES"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="TXFS_MINIVERSION"), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpFileName", "dwDesiredAccess", "dwShareMode", "lpSecurityAttributes", "dwCreationDisposition", "dwFlagsAndAttributes", "hTemplateFile", "hTransaction", "pusMiniVersion", "lpExtendedParameter"]),
#
'ReOpenFile': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="FILE_ACCESS_FLAGS"), SimTypeInt(signed=False, label="FILE_SHARE_MODE"), SimTypeInt(signed=False, label="FILE_FLAGS_AND_ATTRIBUTES")], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["hOriginalFile", "dwDesiredAccess", "dwShareMode", "dwFlagsAndAttributes"]),
#
'SetFileAttributesTransactedA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpFileName", "dwFileAttributes", "hTransaction"]),
#
'SetFileAttributesTransactedW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpFileName", "dwFileAttributes", "hTransaction"]),
#
'GetFileAttributesTransactedA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=False, label="GET_FILEEX_INFO_LEVELS"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpFileName", "fInfoLevelId", "lpFileInformation", "hTransaction"]),
#
'GetFileAttributesTransactedW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="GET_FILEEX_INFO_LEVELS"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpFileName", "fInfoLevelId", "lpFileInformation", "hTransaction"]),
#
'GetCompressedFileSizeTransactedA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpFileName", "lpFileSizeHigh", "hTransaction"]),
#
'GetCompressedFileSizeTransactedW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpFileName", "lpFileSizeHigh", "hTransaction"]),
#
'DeleteFileTransactedA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpFileName", "hTransaction"]),
#
'DeleteFileTransactedW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpFileName", "hTransaction"]),
#
'CheckNameLegalDOS8Dot3A': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=True, label="Int32"), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpName", "lpOemName", "OemNameSize", "pbNameContainsSpaces", "pbNameLegal"]),
#
'CheckNameLegalDOS8Dot3W': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=True, label="Int32"), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpName", "lpOemName", "OemNameSize", "pbNameContainsSpaces", "pbNameLegal"]),
#
'FindFirstFileTransactedA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=False, label="FINDEX_INFO_LEVELS"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="FINDEX_SEARCH_OPS"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpFileName", "fInfoLevelId", "lpFindFileData", "fSearchOp", "lpSearchFilter", "dwAdditionalFlags", "hTransaction"]),
#
'FindFirstFileTransactedW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="FINDEX_INFO_LEVELS"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="FINDEX_SEARCH_OPS"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpFileName", "fInfoLevelId", "lpFindFileData", "fSearchOp", "lpSearchFilter", "dwAdditionalFlags", "hTransaction"]),
#
'CopyFileA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpExistingFileName", "lpNewFileName", "bFailIfExists"]),
#
'CopyFileW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpExistingFileName", "lpNewFileName", "bFailIfExists"]),
#
'CopyFileExA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeFunction([SimTypeBottom(label="LARGE_INTEGER"), SimTypeBottom(label="LARGE_INTEGER"), SimTypeBottom(label="LARGE_INTEGER"), SimTypeBottom(label="LARGE_INTEGER"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="LPPROGRESS_ROUTINE_CALLBACK_REASON"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["TotalFileSize", "TotalBytesTransferred", "StreamSize", "StreamBytesTransferred", "dwStreamNumber", "dwCallbackReason", "hSourceFile", "hDestinationFile", "lpData"]), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int32"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpExistingFileName", "lpNewFileName", "lpProgressRoutine", "lpData", "pbCancel", "dwCopyFlags"]),
#
'CopyFileExW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeFunction([SimTypeBottom(label="LARGE_INTEGER"), SimTypeBottom(label="LARGE_INTEGER"), SimTypeBottom(label="LARGE_INTEGER"), SimTypeBottom(label="LARGE_INTEGER"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="LPPROGRESS_ROUTINE_CALLBACK_REASON"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["TotalFileSize", "TotalBytesTransferred", "StreamSize", "StreamBytesTransferred", "dwStreamNumber", "dwCallbackReason", "hSourceFile", "hDestinationFile", "lpData"]), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int32"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpExistingFileName", "lpNewFileName", "lpProgressRoutine", "lpData", "pbCancel", "dwCopyFlags"]),
#
'CopyFileTransactedA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeFunction([SimTypeBottom(label="LARGE_INTEGER"), SimTypeBottom(label="LARGE_INTEGER"), SimTypeBottom(label="LARGE_INTEGER"), SimTypeBottom(label="LARGE_INTEGER"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="LPPROGRESS_ROUTINE_CALLBACK_REASON"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["TotalFileSize", "TotalBytesTransferred", "StreamSize", "StreamBytesTransferred", "dwStreamNumber", "dwCallbackReason", "hSourceFile", "hDestinationFile", "lpData"]), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int32"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpExistingFileName", "lpNewFileName", "lpProgressRoutine", "lpData", "pbCancel", "dwCopyFlags", "hTransaction"]),
#
'CopyFileTransactedW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeFunction([SimTypeBottom(label="LARGE_INTEGER"), SimTypeBottom(label="LARGE_INTEGER"), SimTypeBottom(label="LARGE_INTEGER"), SimTypeBottom(label="LARGE_INTEGER"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="LPPROGRESS_ROUTINE_CALLBACK_REASON"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["TotalFileSize", "TotalBytesTransferred", "StreamSize", "StreamBytesTransferred", "dwStreamNumber", "dwCallbackReason", "hSourceFile", "hDestinationFile", "lpData"]), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int32"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpExistingFileName", "lpNewFileName", "lpProgressRoutine", "lpData", "pbCancel", "dwCopyFlags", "hTransaction"]),
#
'CopyFile2': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimStruct({"dwSize": SimTypeInt(signed=False, label="UInt32"), "dwCopyFlags": SimTypeInt(signed=False, label="UInt32"), "pfCancel": SimTypePointer(SimTypeInt(signed=True, label="Int32"), offset=0), "pProgressRoutine": SimTypePointer(SimTypeFunction([SimTypePointer(SimStruct({"Type": SimTypeInt(signed=False, label="COPYFILE2_MESSAGE_TYPE"), "dwPadding": SimTypeInt(signed=False, label="UInt32"), "Info": SimUnion({"ChunkStarted": SimStruct({"dwStreamNumber": SimTypeInt(signed=False, label="UInt32"), "dwReserved": SimTypeInt(signed=False, label="UInt32"), "hSourceFile": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "hDestinationFile": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "uliChunkNumber": SimTypeBottom(label="ULARGE_INTEGER"), "uliChunkSize": SimTypeBottom(label="ULARGE_INTEGER"), "uliStreamSize": SimTypeBottom(label="ULARGE_INTEGER"), "uliTotalFileSize": SimTypeBottom(label="ULARGE_INTEGER")}, name="_ChunkStarted_e__Struct", pack=False, align=None), "ChunkFinished": SimStruct({"dwStreamNumber": SimTypeInt(signed=False, label="UInt32"), "dwFlags": SimTypeInt(signed=False, label="UInt32"), "hSourceFile": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "hDestinationFile": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "uliChunkNumber": SimTypeBottom(label="ULARGE_INTEGER"), "uliChunkSize": SimTypeBottom(label="ULARGE_INTEGER"), "uliStreamSize": SimTypeBottom(label="ULARGE_INTEGER"), "uliStreamBytesTransferred": SimTypeBottom(label="ULARGE_INTEGER"), "uliTotalFileSize": SimTypeBottom(label="ULARGE_INTEGER"), "uliTotalBytesTransferred": SimTypeBottom(label="ULARGE_INTEGER")}, name="_ChunkFinished_e__Struct", pack=False, align=None), "StreamStarted": SimStruct({"dwStreamNumber": SimTypeInt(signed=False, label="UInt32"), "dwReserved": SimTypeInt(signed=False, label="UInt32"), "hSourceFile": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "hDestinationFile": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "uliStreamSize": SimTypeBottom(label="ULARGE_INTEGER"), "uliTotalFileSize": SimTypeBottom(label="ULARGE_INTEGER")}, name="_StreamStarted_e__Struct", pack=False, align=None), "StreamFinished": SimStruct({"dwStreamNumber": SimTypeInt(signed=False, label="UInt32"), "dwReserved": SimTypeInt(signed=False, label="UInt32"), "hSourceFile": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "hDestinationFile": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "uliStreamSize": SimTypeBottom(label="ULARGE_INTEGER"), "uliStreamBytesTransferred": SimTypeBottom(label="ULARGE_INTEGER"), "uliTotalFileSize": SimTypeBottom(label="ULARGE_INTEGER"), "uliTotalBytesTransferred": SimTypeBottom(label="ULARGE_INTEGER")}, name="_StreamFinished_e__Struct", pack=False, align=None), "PollContinue": SimStruct({"dwReserved": SimTypeInt(signed=False, label="UInt32")}, name="_PollContinue_e__Struct", pack=False, align=None), "Error": SimStruct({"CopyPhase": SimTypeInt(signed=False, label="COPYFILE2_COPY_PHASE"), "dwStreamNumber": SimTypeInt(signed=False, label="UInt32"), "hrFailure": SimTypeInt(signed=True, label="Int32"), "dwReserved": SimTypeInt(signed=False, label="UInt32"), "uliChunkNumber": SimTypeBottom(label="ULARGE_INTEGER"), "uliStreamSize": SimTypeBottom(label="ULARGE_INTEGER"), "uliStreamBytesTransferred": SimTypeBottom(label="ULARGE_INTEGER"), "uliTotalFileSize": SimTypeBottom(label="ULARGE_INTEGER"), "uliTotalBytesTransferred": SimTypeBottom(label="ULARGE_INTEGER")}, name="_Error_e__Struct", pack=False, align=None)}, name="<anon>", label="None")}, name="COPYFILE2_MESSAGE", pack=False, align=None), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=False, label="COPYFILE2_MESSAGE_ACTION"), arg_names=["pMessage", "pvCallbackContext"]), offset=0), "pvCallbackContext": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="COPYFILE2_EXTENDED_PARAMETERS", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["pwszExistingFileName", "pwszNewFileName", "pExtendedParameters"]),
#
'MoveFileA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpExistingFileName", "lpNewFileName"]),
#
'MoveFileW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpExistingFileName", "lpNewFileName"]),
#
'MoveFileExA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=False, label="MOVE_FILE_FLAGS")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpExistingFileName", "lpNewFileName", "dwFlags"]),
#
'MoveFileExW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="MOVE_FILE_FLAGS")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpExistingFileName", "lpNewFileName", "dwFlags"]),
#
'MoveFileWithProgressA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeFunction([SimTypeBottom(label="LARGE_INTEGER"), SimTypeBottom(label="LARGE_INTEGER"), SimTypeBottom(label="LARGE_INTEGER"), SimTypeBottom(label="LARGE_INTEGER"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="LPPROGRESS_ROUTINE_CALLBACK_REASON"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["TotalFileSize", "TotalBytesTransferred", "StreamSize", "StreamBytesTransferred", "dwStreamNumber", "dwCallbackReason", "hSourceFile", "hDestinationFile", "lpData"]), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="MOVE_FILE_FLAGS")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpExistingFileName", "lpNewFileName", "lpProgressRoutine", "lpData", "dwFlags"]),
#
'MoveFileWithProgressW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeFunction([SimTypeBottom(label="LARGE_INTEGER"), SimTypeBottom(label="LARGE_INTEGER"), SimTypeBottom(label="LARGE_INTEGER"), SimTypeBottom(label="LARGE_INTEGER"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="LPPROGRESS_ROUTINE_CALLBACK_REASON"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["TotalFileSize", "TotalBytesTransferred", "StreamSize", "StreamBytesTransferred", "dwStreamNumber", "dwCallbackReason", "hSourceFile", "hDestinationFile", "lpData"]), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="MOVE_FILE_FLAGS")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpExistingFileName", "lpNewFileName", "lpProgressRoutine", "lpData", "dwFlags"]),
#
'MoveFileTransactedA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeFunction([SimTypeBottom(label="LARGE_INTEGER"), SimTypeBottom(label="LARGE_INTEGER"), SimTypeBottom(label="LARGE_INTEGER"), SimTypeBottom(label="LARGE_INTEGER"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="LPPROGRESS_ROUTINE_CALLBACK_REASON"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["TotalFileSize", "TotalBytesTransferred", "StreamSize", "StreamBytesTransferred", "dwStreamNumber", "dwCallbackReason", "hSourceFile", "hDestinationFile", "lpData"]), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="MOVE_FILE_FLAGS"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpExistingFileName", "lpNewFileName", "lpProgressRoutine", "lpData", "dwFlags", "hTransaction"]),
#
'MoveFileTransactedW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeFunction([SimTypeBottom(label="LARGE_INTEGER"), SimTypeBottom(label="LARGE_INTEGER"), SimTypeBottom(label="LARGE_INTEGER"), SimTypeBottom(label="LARGE_INTEGER"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="LPPROGRESS_ROUTINE_CALLBACK_REASON"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["TotalFileSize", "TotalBytesTransferred", "StreamSize", "StreamBytesTransferred", "dwStreamNumber", "dwCallbackReason", "hSourceFile", "hDestinationFile", "lpData"]), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="MOVE_FILE_FLAGS"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpExistingFileName", "lpNewFileName", "lpProgressRoutine", "lpData", "dwFlags", "hTransaction"]),
#
'ReplaceFileA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=False, label="REPLACE_FILE_FLAGS"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpReplacedFileName", "lpReplacementFileName", "lpBackupFileName", "dwReplaceFlags", "lpExclude", "lpReserved"]),
#
'ReplaceFileW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="REPLACE_FILE_FLAGS"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpReplacedFileName", "lpReplacementFileName", "lpBackupFileName", "dwReplaceFlags", "lpExclude", "lpReserved"]),
#
'CreateHardLinkA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpFileName", "lpExistingFileName", "lpSecurityAttributes"]),
#
'CreateHardLinkW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpFileName", "lpExistingFileName", "lpSecurityAttributes"]),
#
'CreateHardLinkTransactedA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpFileName", "lpExistingFileName", "lpSecurityAttributes", "hTransaction"]),
#
'CreateHardLinkTransactedW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpFileName", "lpExistingFileName", "lpSecurityAttributes", "hTransaction"]),
#
'FindFirstStreamTransactedW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="STREAM_INFO_LEVELS"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpFileName", "InfoLevel", "lpFindStreamData", "dwFlags", "hTransaction"]),
#
'FindFirstFileNameTransactedW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpFileName", "dwFlags", "StringLength", "LinkName", "hTransaction"]),
#
'SetVolumeLabelA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpRootPathName", "lpVolumeName"]),
#
'SetVolumeLabelW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpRootPathName", "lpVolumeName"]),
#
'SetFileBandwidthReservation': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "nPeriodMilliseconds", "nBytesPerPeriod", "bDiscardable", "lpTransferSize", "lpNumOutstandingRequests"]),
#
'GetFileBandwidthReservation': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int32"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "lpPeriodMilliseconds", "lpBytesPerPeriod", "pDiscardable", "lpTransferSize", "lpNumOutstandingRequests"]),
#
'ReadDirectoryChangesW': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=True, label="Int32"), SimTypeInt(signed=False, label="FILE_NOTIFY_CHANGE"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimStruct({"Internal": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "InternalHigh": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "Anonymous": SimUnion({"Anonymous": SimStruct({"Offset": SimTypeInt(signed=False, label="UInt32"), "OffsetHigh": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None), "Pointer": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="<anon>", label="None"), "hEvent": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)}, name="OVERLAPPED", pack=False, align=None), offset=0), SimTypePointer(SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeBottom(label="OVERLAPPED"), offset=0)], SimTypeBottom(label="Void"), arg_names=["dwErrorCode", "dwNumberOfBytesTransfered", "lpOverlapped"]), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hDirectory", "lpBuffer", "nBufferLength", "bWatchSubtree", "dwNotifyFilter", "lpBytesReturned", "lpOverlapped", "lpCompletionRoutine"]),
#
'ReadDirectoryChangesExW': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=True, label="Int32"), SimTypeInt(signed=False, label="FILE_NOTIFY_CHANGE"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimStruct({"Internal": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "InternalHigh": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "Anonymous": SimUnion({"Anonymous": SimStruct({"Offset": SimTypeInt(signed=False, label="UInt32"), "OffsetHigh": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None), "Pointer": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="<anon>", label="None"), "hEvent": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)}, name="OVERLAPPED", pack=False, align=None), offset=0), SimTypePointer(SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeBottom(label="OVERLAPPED"), offset=0)], SimTypeBottom(label="Void"), arg_names=["dwErrorCode", "dwNumberOfBytesTransfered", "lpOverlapped"]), offset=0), SimTypeInt(signed=False, label="READ_DIRECTORY_NOTIFY_INFORMATION_CLASS")], SimTypeInt(signed=True, label="Int32"), arg_names=["hDirectory", "lpBuffer", "nBufferLength", "bWatchSubtree", "dwNotifyFilter", "lpBytesReturned", "lpOverlapped", "lpCompletionRoutine", "ReadDirectoryNotifyInformationClass"]),
#
'FindFirstVolumeA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpszVolumeName", "cchBufferLength"]),
#
'FindNextVolumeA': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hFindVolume", "lpszVolumeName", "cchBufferLength"]),
#
'FindFirstVolumeMountPointA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpszRootPathName", "lpszVolumeMountPoint", "cchBufferLength"]),
#
'FindFirstVolumeMountPointW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpszRootPathName", "lpszVolumeMountPoint", "cchBufferLength"]),
#
'FindNextVolumeMountPointA': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hFindVolumeMountPoint", "lpszVolumeMountPoint", "cchBufferLength"]),
#
'FindNextVolumeMountPointW': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hFindVolumeMountPoint", "lpszVolumeMountPoint", "cchBufferLength"]),
#
'FindVolumeMountPointClose': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hFindVolumeMountPoint"]),
#
'SetVolumeMountPointA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpszVolumeMountPoint", "lpszVolumeName"]),
#
'SetVolumeMountPointW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpszVolumeMountPoint", "lpszVolumeName"]),
#
'DeleteVolumeMountPointA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpszVolumeMountPoint"]),
#
'GetVolumeNameForVolumeMountPointA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpszVolumeMountPoint", "lpszVolumeName", "cchBufferLength"]),
#
'GetVolumePathNameA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpszFileName", "lpszVolumePathName", "cchBufferLength"]),
#
'GetVolumePathNamesForVolumeNameA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpszVolumeName", "lpszVolumePathNames", "cchBufferLength", "lpcchReturnLength"]),
#
'GetFileInformationByHandleEx': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="FILE_INFO_BY_HANDLE_CLASS"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "FileInformationClass", "lpFileInformation", "dwBufferSize"]),
#
'OpenFileById': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"dwSize": SimTypeInt(signed=False, label="UInt32"), "Type": SimTypeInt(signed=False, label="FILE_ID_TYPE"), "Anonymous": SimUnion({"FileId": SimTypeBottom(label="LARGE_INTEGER"), "ObjectId": SimTypeBottom(label="Guid"), "ExtendedFileId": SimStruct({"Identifier": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 16)}, name="FILE_ID_128", pack=False, align=None)}, name="<anon>", label="None")}, name="FILE_ID_DESCRIPTOR", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="FILE_ACCESS_FLAGS"), SimTypeInt(signed=False, label="FILE_SHARE_MODE"), SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="FILE_FLAGS_AND_ATTRIBUTES")], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["hVolumeHint", "lpFileId", "dwDesiredAccess", "dwShareMode", "lpSecurityAttributes", "dwFlagsAndAttributes"]),
#
'CreateSymbolicLinkA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=False, label="SYMBOLIC_LINK_FLAGS")], SimTypeChar(label="Byte"), arg_names=["lpSymlinkFileName", "lpTargetFileName", "dwFlags"]),
#
'CreateSymbolicLinkW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="SYMBOLIC_LINK_FLAGS")], SimTypeChar(label="Byte"), arg_names=["lpSymlinkFileName", "lpTargetFileName", "dwFlags"]),
#
'CreateSymbolicLinkTransactedA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=False, label="SYMBOLIC_LINK_FLAGS"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeChar(label="Byte"), arg_names=["lpSymlinkFileName", "lpTargetFileName", "dwFlags", "hTransaction"]),
#
'CreateSymbolicLinkTransactedW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="SYMBOLIC_LINK_FLAGS"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeChar(label="Byte"), arg_names=["lpSymlinkFileName", "lpTargetFileName", "dwFlags", "hTransaction"]),
#
'GetCurrentPackageId': SimTypeFunction([SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["bufferLength", "buffer"]),
#
'GetCurrentPackageFullName': SimTypeFunction([SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["packageFullNameLength", "packageFullName"]),
#
'GetCurrentPackageFamilyName': SimTypeFunction([SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["packageFamilyNameLength", "packageFamilyName"]),
#
'GetCurrentPackagePath': SimTypeFunction([SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["pathLength", "path"]),
#
'GetPackageId': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "bufferLength", "buffer"]),
#
'GetPackageFullName': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "packageFullNameLength", "packageFullName"]),
#
'GetPackageFamilyName': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "packageFamilyNameLength", "packageFamilyName"]),
#
'GetPackagePath': SimTypeFunction([SimTypePointer(SimStruct({"reserved": SimTypeInt(signed=False, label="UInt32"), "processorArchitecture": SimTypeInt(signed=False, label="UInt32"), "version": SimStruct({"Anonymous": SimUnion({"Version": SimTypeLongLong(signed=False, label="UInt64"), "Anonymous": SimStruct({"Revision": SimTypeShort(signed=False, label="UInt16"), "Build": SimTypeShort(signed=False, label="UInt16"), "Minor": SimTypeShort(signed=False, label="UInt16"), "Major": SimTypeShort(signed=False, label="UInt16")}, name="_Anonymous_e__Struct", pack=False, align=None)}, name="<anon>", label="None")}, name="PACKAGE_VERSION", pack=False, align=None), "name": SimTypePointer(SimTypeChar(label="Char"), offset=0), "publisher": SimTypePointer(SimTypeChar(label="Char"), offset=0), "resourceId": SimTypePointer(SimTypeChar(label="Char"), offset=0), "publisherId": SimTypePointer(SimTypeChar(label="Char"), offset=0)}, name="PACKAGE_ID", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["packageId", "reserved", "pathLength", "path"]),
#
'GetPackagePathByFullName': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["packageFullName", "pathLength", "path"]),
#
'GetStagedPackagePathByFullName': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["packageFullName", "pathLength", "path"]),
#
'GetCurrentApplicationUserModelId': SimTypeFunction([SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["applicationUserModelIdLength", "applicationUserModelId"]),
#
'GetApplicationUserModelId': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "applicationUserModelIdLength", "applicationUserModelId"]),
#
'PackageIdFromFullName': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["packageFullName", "flags", "bufferLength", "buffer"]),
#
'PackageFullNameFromId': SimTypeFunction([SimTypePointer(SimStruct({"reserved": SimTypeInt(signed=False, label="UInt32"), "processorArchitecture": SimTypeInt(signed=False, label="UInt32"), "version": SimStruct({"Anonymous": SimUnion({"Version": SimTypeLongLong(signed=False, label="UInt64"), "Anonymous": SimStruct({"Revision": SimTypeShort(signed=False, label="UInt16"), "Build": SimTypeShort(signed=False, label="UInt16"), "Minor": SimTypeShort(signed=False, label="UInt16"), "Major": SimTypeShort(signed=False, label="UInt16")}, name="_Anonymous_e__Struct", pack=False, align=None)}, name="<anon>", label="None")}, name="PACKAGE_VERSION", pack=False, align=None), "name": SimTypePointer(SimTypeChar(label="Char"), offset=0), "publisher": SimTypePointer(SimTypeChar(label="Char"), offset=0), "resourceId": SimTypePointer(SimTypeChar(label="Char"), offset=0), "publisherId": SimTypePointer(SimTypeChar(label="Char"), offset=0)}, name="PACKAGE_ID", pack=False, align=None), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["packageId", "packageFullNameLength", "packageFullName"]),
#
'PackageFamilyNameFromId': SimTypeFunction([SimTypePointer(SimStruct({"reserved": SimTypeInt(signed=False, label="UInt32"), "processorArchitecture": SimTypeInt(signed=False, label="UInt32"), "version": SimStruct({"Anonymous": SimUnion({"Version": SimTypeLongLong(signed=False, label="UInt64"), "Anonymous": SimStruct({"Revision": SimTypeShort(signed=False, label="UInt16"), "Build": SimTypeShort(signed=False, label="UInt16"), "Minor": SimTypeShort(signed=False, label="UInt16"), "Major": SimTypeShort(signed=False, label="UInt16")}, name="_Anonymous_e__Struct", pack=False, align=None)}, name="<anon>", label="None")}, name="PACKAGE_VERSION", pack=False, align=None), "name": SimTypePointer(SimTypeChar(label="Char"), offset=0), "publisher": SimTypePointer(SimTypeChar(label="Char"), offset=0), "resourceId": SimTypePointer(SimTypeChar(label="Char"), offset=0), "publisherId": SimTypePointer(SimTypeChar(label="Char"), offset=0)}, name="PACKAGE_ID", pack=False, align=None), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["packageId", "packageFamilyNameLength", "packageFamilyName"]),
#
'PackageFamilyNameFromFullName': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["packageFullName", "packageFamilyNameLength", "packageFamilyName"]),
#
'PackageNameAndPublisherIdFromFamilyName': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["packageFamilyName", "packageNameLength", "packageName", "packagePublisherIdLength", "packagePublisherId"]),
#
'FormatApplicationUserModelId': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["packageFamilyName", "packageRelativeApplicationId", "applicationUserModelIdLength", "applicationUserModelId"]),
#
'ParseApplicationUserModelId': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["applicationUserModelId", "packageFamilyNameLength", "packageFamilyName", "packageRelativeApplicationIdLength", "packageRelativeApplicationId"]),
#
'GetPackagesByPackageFamily': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypePointer(SimTypeChar(label="Char"), offset=0), label="LPArray", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["packageFamilyName", "count", "packageFullNames", "bufferLength", "buffer"]),
#
'FindPackagesByPackageFamily': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypePointer(SimTypeChar(label="Char"), offset=0), label="LPArray", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), label="LPArray", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["packageFamilyName", "packageFilters", "count", "packageFullNames", "bufferLength", "buffer", "packageProperties"]),
#
'GetCurrentPackageInfo': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["flags", "bufferLength", "buffer", "count"]),
#
'OpenPackageInfoByFullName': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypePointer(SimStruct({"reserved": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="_PACKAGE_INFO_REFERENCE", pack=False, align=None), offset=0), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["packageFullName", "reserved", "packageInfoReference"]),
#
'ClosePackageInfo': SimTypeFunction([SimTypePointer(SimStruct({"reserved": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="_PACKAGE_INFO_REFERENCE", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["packageInfoReference"]),
#
'GetPackageInfo': SimTypeFunction([SimTypePointer(SimStruct({"reserved": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="_PACKAGE_INFO_REFERENCE", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["packageInfoReference", "flags", "bufferLength", "buffer", "count"]),
#
'GetPackageApplicationIds': SimTypeFunction([SimTypePointer(SimStruct({"reserved": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="_PACKAGE_INFO_REFERENCE", pack=False, align=None), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["packageInfoReference", "bufferLength", "buffer", "count"]),
#
'AppPolicyGetLifecycleManagement': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="AppPolicyLifecycleManagement"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["processToken", "policy"]),
#
'AppPolicyGetWindowingModel': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="AppPolicyWindowingModel"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["processToken", "policy"]),
#
'AppPolicyGetMediaFoundationCodecLoading': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="AppPolicyMediaFoundationCodecLoading"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["processToken", "policy"]),
#
'AppPolicyGetClrCompat': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="AppPolicyClrCompat"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["processToken", "policy"]),
#
'AppPolicyGetThreadInitializationType': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="AppPolicyThreadInitializationType"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["processToken", "policy"]),
#
'AppPolicyGetShowDeveloperDiagnostic': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="AppPolicyShowDeveloperDiagnostic"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["processToken", "policy"]),
#
'AppPolicyGetProcessTerminationMethod': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="AppPolicyProcessTerminationMethod"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["processToken", "policy"]),
#
'AppPolicyGetCreateFileAccess': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="AppPolicyCreateFileAccess"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["processToken", "policy"]),
#
'InstallELAMCertificateInfo': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["ELAMFile"]),
#
'CreateActCtxA': SimTypeFunction([SimTypePointer(SimStruct({"cbSize": SimTypeInt(signed=False, label="UInt32"), "dwFlags": SimTypeInt(signed=False, label="UInt32"), "lpSource": SimTypePointer(SimTypeChar(label="Byte"), offset=0), "wProcessorArchitecture": SimTypeShort(signed=False, label="UInt16"), "wLangId": SimTypeShort(signed=False, label="UInt16"), "lpAssemblyDirectory": SimTypePointer(SimTypeChar(label="Byte"), offset=0), "lpResourceName": SimTypePointer(SimTypeChar(label="Byte"), offset=0), "lpApplicationName": SimTypePointer(SimTypeChar(label="Byte"), offset=0), "hModule": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)}, name="ACTCTXA", pack=False, align=None), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["pActCtx"]),
#
'CreateActCtxW': SimTypeFunction([SimTypePointer(SimStruct({"cbSize": SimTypeInt(signed=False, label="UInt32"), "dwFlags": SimTypeInt(signed=False, label="UInt32"), "lpSource": SimTypePointer(SimTypeChar(label="Char"), offset=0), "wProcessorArchitecture": SimTypeShort(signed=False, label="UInt16"), "wLangId": SimTypeShort(signed=False, label="UInt16"), "lpAssemblyDirectory": SimTypePointer(SimTypeChar(label="Char"), offset=0), "lpResourceName": SimTypePointer(SimTypeChar(label="Char"), offset=0), "lpApplicationName": SimTypePointer(SimTypeChar(label="Char"), offset=0), "hModule": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)}, name="ACTCTXW", pack=False, align=None), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["pActCtx"]),
#
'AddRefActCtx': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeBottom(label="Void"), arg_names=["hActCtx"]),
#
'ReleaseActCtx': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeBottom(label="Void"), arg_names=["hActCtx"]),
#
'ZombifyActCtx': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hActCtx"]),
#
'ActivateActCtx': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hActCtx", "lpCookie"]),
#
'DeactivateActCtx': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["dwFlags", "ulCookie"]),
#
'GetCurrentActCtx': SimTypeFunction([SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lphActCtx"]),
#
'FindActCtxSectionStringA': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeBottom(label="Guid"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimStruct({"cbSize": SimTypeInt(signed=False, label="UInt32"), "ulDataFormatVersion": SimTypeInt(signed=False, label="UInt32"), "lpData": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "ulLength": SimTypeInt(signed=False, label="UInt32"), "lpSectionGlobalData": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "ulSectionGlobalDataLength": SimTypeInt(signed=False, label="UInt32"), "lpSectionBase": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "ulSectionTotalLength": SimTypeInt(signed=False, label="UInt32"), "hActCtx": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "ulAssemblyRosterIndex": SimTypeInt(signed=False, label="UInt32"), "ulFlags": SimTypeInt(signed=False, label="UInt32"), "AssemblyMetadata": SimTypeBottom(label="ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA")}, name="ACTCTX_SECTION_KEYED_DATA", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["dwFlags", "lpExtensionGuid", "ulSectionId", "lpStringToFind", "ReturnedData"]),
#
'FindActCtxSectionStringW': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeBottom(label="Guid"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimStruct({"cbSize": SimTypeInt(signed=False, label="UInt32"), "ulDataFormatVersion": SimTypeInt(signed=False, label="UInt32"), "lpData": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "ulLength": SimTypeInt(signed=False, label="UInt32"), "lpSectionGlobalData": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "ulSectionGlobalDataLength": SimTypeInt(signed=False, label="UInt32"), "lpSectionBase": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "ulSectionTotalLength": SimTypeInt(signed=False, label="UInt32"), "hActCtx": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "ulAssemblyRosterIndex": SimTypeInt(signed=False, label="UInt32"), "ulFlags": SimTypeInt(signed=False, label="UInt32"), "AssemblyMetadata": SimTypeBottom(label="ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA")}, name="ACTCTX_SECTION_KEYED_DATA", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["dwFlags", "lpExtensionGuid", "ulSectionId", "lpStringToFind", "ReturnedData"]),
#
'FindActCtxSectionGuid': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeBottom(label="Guid"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeBottom(label="Guid"), offset=0), SimTypePointer(SimStruct({"cbSize": SimTypeInt(signed=False, label="UInt32"), "ulDataFormatVersion": SimTypeInt(signed=False, label="UInt32"), "lpData": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "ulLength": SimTypeInt(signed=False, label="UInt32"), "lpSectionGlobalData": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "ulSectionGlobalDataLength": SimTypeInt(signed=False, label="UInt32"), "lpSectionBase": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "ulSectionTotalLength": SimTypeInt(signed=False, label="UInt32"), "hActCtx": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "ulAssemblyRosterIndex": SimTypeInt(signed=False, label="UInt32"), "ulFlags": SimTypeInt(signed=False, label="UInt32"), "AssemblyMetadata": SimTypeBottom(label="ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA")}, name="ACTCTX_SECTION_KEYED_DATA", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["dwFlags", "lpExtensionGuid", "ulSectionId", "lpGuidToFind", "ReturnedData"]),
#
'QueryActCtxW': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["dwFlags", "hActCtx", "pvSubInstance", "ulInfoClass", "pvBuffer", "cbBuffer", "pcbWrittenOrRequired"]),
#
'QueryActCtxSettingsW': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["dwFlags", "hActCtx", "settingsNameSpace", "settingName", "pvBuffer", "dwBuffer", "pdwWrittenOrRequired"]),
#
'AllocConsole': SimTypeFunction([], SimTypeInt(signed=True, label="Int32")),
#
'FreeConsole': SimTypeFunction([], SimTypeInt(signed=True, label="Int32")),
#
'AttachConsole': SimTypeFunction([SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["dwProcessId"]),
#
'GetConsoleCP': SimTypeFunction([], SimTypeInt(signed=False, label="UInt32")),
#
'GetConsoleOutputCP': SimTypeFunction([], SimTypeInt(signed=False, label="UInt32")),
#
'GetConsoleMode': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="CONSOLE_MODE"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hConsoleHandle", "lpMode"]),
#
'SetConsoleMode': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="CONSOLE_MODE")], SimTypeInt(signed=True, label="Int32"), arg_names=["hConsoleHandle", "dwMode"]),
#
'GetNumberOfConsoleInputEvents': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hConsoleInput", "lpNumberOfEvents"]),
#
'ReadConsoleInputA': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"EventType": SimTypeShort(signed=False, label="UInt16"), "Event": SimUnion({"KeyEvent": SimStruct({"bKeyDown": SimTypeInt(signed=True, label="Int32"), "wRepeatCount": SimTypeShort(signed=False, label="UInt16"), "wVirtualKeyCode": SimTypeShort(signed=False, label="UInt16"), "wVirtualScanCode": SimTypeShort(signed=False, label="UInt16"), "uChar": SimUnion({"UnicodeChar": SimTypeChar(label="Char"), "AsciiChar": SimTypeBottom(label="CHAR")}, name="<anon>", label="None"), "dwControlKeyState": SimTypeInt(signed=False, label="UInt32")}, name="KEY_EVENT_RECORD", pack=False, align=None), "MouseEvent": SimStruct({"dwMousePosition": SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None), "dwButtonState": SimTypeInt(signed=False, label="UInt32"), "dwControlKeyState": SimTypeInt(signed=False, label="UInt32"), "dwEventFlags": SimTypeInt(signed=False, label="UInt32")}, name="MOUSE_EVENT_RECORD", pack=False, align=None), "WindowBufferSizeEvent": SimStruct({"dwSize": SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None)}, name="WINDOW_BUFFER_SIZE_RECORD", pack=False, align=None), "MenuEvent": SimStruct({"dwCommandId": SimTypeInt(signed=False, label="UInt32")}, name="MENU_EVENT_RECORD", pack=False, align=None), "FocusEvent": SimStruct({"bSetFocus": SimTypeInt(signed=True, label="Int32")}, name="FOCUS_EVENT_RECORD", pack=False, align=None)}, name="<anon>", label="None")}, name="INPUT_RECORD", pack=False, align=None), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hConsoleInput", "lpBuffer", "nLength", "lpNumberOfEventsRead"]),
#
'ReadConsoleInputW': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"EventType": SimTypeShort(signed=False, label="UInt16"), "Event": SimUnion({"KeyEvent": SimStruct({"bKeyDown": SimTypeInt(signed=True, label="Int32"), "wRepeatCount": SimTypeShort(signed=False, label="UInt16"), "wVirtualKeyCode": SimTypeShort(signed=False, label="UInt16"), "wVirtualScanCode": SimTypeShort(signed=False, label="UInt16"), "uChar": SimUnion({"UnicodeChar": SimTypeChar(label="Char"), "AsciiChar": SimTypeBottom(label="CHAR")}, name="<anon>", label="None"), "dwControlKeyState": SimTypeInt(signed=False, label="UInt32")}, name="KEY_EVENT_RECORD", pack=False, align=None), "MouseEvent": SimStruct({"dwMousePosition": SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None), "dwButtonState": SimTypeInt(signed=False, label="UInt32"), "dwControlKeyState": SimTypeInt(signed=False, label="UInt32"), "dwEventFlags": SimTypeInt(signed=False, label="UInt32")}, name="MOUSE_EVENT_RECORD", pack=False, align=None), "WindowBufferSizeEvent": SimStruct({"dwSize": SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None)}, name="WINDOW_BUFFER_SIZE_RECORD", pack=False, align=None), "MenuEvent": SimStruct({"dwCommandId": SimTypeInt(signed=False, label="UInt32")}, name="MENU_EVENT_RECORD", pack=False, align=None), "FocusEvent": SimStruct({"bSetFocus": SimTypeInt(signed=True, label="Int32")}, name="FOCUS_EVENT_RECORD", pack=False, align=None)}, name="<anon>", label="None")}, name="INPUT_RECORD", pack=False, align=None), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hConsoleInput", "lpBuffer", "nLength", "lpNumberOfEventsRead"]),
#
'PeekConsoleInputA': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"EventType": SimTypeShort(signed=False, label="UInt16"), "Event": SimUnion({"KeyEvent": SimStruct({"bKeyDown": SimTypeInt(signed=True, label="Int32"), "wRepeatCount": SimTypeShort(signed=False, label="UInt16"), "wVirtualKeyCode": SimTypeShort(signed=False, label="UInt16"), "wVirtualScanCode": SimTypeShort(signed=False, label="UInt16"), "uChar": SimUnion({"UnicodeChar": SimTypeChar(label="Char"), "AsciiChar": SimTypeBottom(label="CHAR")}, name="<anon>", label="None"), "dwControlKeyState": SimTypeInt(signed=False, label="UInt32")}, name="KEY_EVENT_RECORD", pack=False, align=None), "MouseEvent": SimStruct({"dwMousePosition": SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None), "dwButtonState": SimTypeInt(signed=False, label="UInt32"), "dwControlKeyState": SimTypeInt(signed=False, label="UInt32"), "dwEventFlags": SimTypeInt(signed=False, label="UInt32")}, name="MOUSE_EVENT_RECORD", pack=False, align=None), "WindowBufferSizeEvent": SimStruct({"dwSize": SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None)}, name="WINDOW_BUFFER_SIZE_RECORD", pack=False, align=None), "MenuEvent": SimStruct({"dwCommandId": SimTypeInt(signed=False, label="UInt32")}, name="MENU_EVENT_RECORD", pack=False, align=None), "FocusEvent": SimStruct({"bSetFocus": SimTypeInt(signed=True, label="Int32")}, name="FOCUS_EVENT_RECORD", pack=False, align=None)}, name="<anon>", label="None")}, name="INPUT_RECORD", pack=False, align=None), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hConsoleInput", "lpBuffer", "nLength", "lpNumberOfEventsRead"]),
#
'PeekConsoleInputW': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"EventType": SimTypeShort(signed=False, label="UInt16"), "Event": SimUnion({"KeyEvent": SimStruct({"bKeyDown": SimTypeInt(signed=True, label="Int32"), "wRepeatCount": SimTypeShort(signed=False, label="UInt16"), "wVirtualKeyCode": SimTypeShort(signed=False, label="UInt16"), "wVirtualScanCode": SimTypeShort(signed=False, label="UInt16"), "uChar": SimUnion({"UnicodeChar": SimTypeChar(label="Char"), "AsciiChar": SimTypeBottom(label="CHAR")}, name="<anon>", label="None"), "dwControlKeyState": SimTypeInt(signed=False, label="UInt32")}, name="KEY_EVENT_RECORD", pack=False, align=None), "MouseEvent": SimStruct({"dwMousePosition": SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None), "dwButtonState": SimTypeInt(signed=False, label="UInt32"), "dwControlKeyState": SimTypeInt(signed=False, label="UInt32"), "dwEventFlags": SimTypeInt(signed=False, label="UInt32")}, name="MOUSE_EVENT_RECORD", pack=False, align=None), "WindowBufferSizeEvent": SimStruct({"dwSize": SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None)}, name="WINDOW_BUFFER_SIZE_RECORD", pack=False, align=None), "MenuEvent": SimStruct({"dwCommandId": SimTypeInt(signed=False, label="UInt32")}, name="MENU_EVENT_RECORD", pack=False, align=None), "FocusEvent": SimStruct({"bSetFocus": SimTypeInt(signed=True, label="Int32")}, name="FOCUS_EVENT_RECORD", pack=False, align=None)}, name="<anon>", label="None")}, name="INPUT_RECORD", pack=False, align=None), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hConsoleInput", "lpBuffer", "nLength", "lpNumberOfEventsRead"]),
#
'ReadConsoleA': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "nInitialChars": SimTypeInt(signed=False, label="UInt32"), "dwCtrlWakeupMask": SimTypeInt(signed=False, label="UInt32"), "dwControlKeyState": SimTypeInt(signed=False, label="UInt32")}, name="CONSOLE_READCONSOLE_CONTROL", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hConsoleInput", "lpBuffer", "nNumberOfCharsToRead", "lpNumberOfCharsRead", "pInputControl"]),
#
'ReadConsoleW': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "nInitialChars": SimTypeInt(signed=False, label="UInt32"), "dwCtrlWakeupMask": SimTypeInt(signed=False, label="UInt32"), "dwControlKeyState": SimTypeInt(signed=False, label="UInt32")}, name="CONSOLE_READCONSOLE_CONTROL", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hConsoleInput", "lpBuffer", "nNumberOfCharsToRead", "lpNumberOfCharsRead", "pInputControl"]),
#
'WriteConsoleA': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeBottom(label="Void"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hConsoleOutput", "lpBuffer", "nNumberOfCharsToWrite", "lpNumberOfCharsWritten", "lpReserved"]),
#
'WriteConsoleW': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeBottom(label="Void"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hConsoleOutput", "lpBuffer", "nNumberOfCharsToWrite", "lpNumberOfCharsWritten", "lpReserved"]),
#
'SetConsoleCtrlHandler': SimTypeFunction([SimTypePointer(SimTypeFunction([SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["CtrlType"]), offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["HandlerRoutine", "Add"]),
#
'CreatePseudoConsole': SimTypeFunction([SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["size", "hInput", "hOutput", "dwFlags", "phPC"]),
#
'ResizePseudoConsole': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None)], SimTypeInt(signed=True, label="Int32"), arg_names=["hPC", "size"]),
#
'ClosePseudoConsole': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeBottom(label="Void"), arg_names=["hPC"]),
#
'FillConsoleOutputCharacterA': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeChar(label="Byte"), SimTypeInt(signed=False, label="UInt32"), SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hConsoleOutput", "cCharacter", "nLength", "dwWriteCoord", "lpNumberOfCharsWritten"]),
#
'FillConsoleOutputCharacterW': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeChar(label="Char"), SimTypeInt(signed=False, label="UInt32"), SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hConsoleOutput", "cCharacter", "nLength", "dwWriteCoord", "lpNumberOfCharsWritten"]),
#
'FillConsoleOutputAttribute': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeShort(signed=False, label="UInt16"), SimTypeInt(signed=False, label="UInt32"), SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hConsoleOutput", "wAttribute", "nLength", "dwWriteCoord", "lpNumberOfAttrsWritten"]),
#
'GenerateConsoleCtrlEvent': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["dwCtrlEvent", "dwProcessGroupId"]),
#
'CreateConsoleScreenBuffer': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["dwDesiredAccess", "dwShareMode", "lpSecurityAttributes", "dwFlags", "lpScreenBufferData"]),
#
'SetConsoleActiveScreenBuffer': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hConsoleOutput"]),
#
'FlushConsoleInputBuffer': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hConsoleInput"]),
#
'SetConsoleCP': SimTypeFunction([SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["wCodePageID"]),
#
'SetConsoleOutputCP': SimTypeFunction([SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["wCodePageID"]),
#
'GetConsoleCursorInfo': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"dwSize": SimTypeInt(signed=False, label="UInt32"), "bVisible": SimTypeInt(signed=True, label="Int32")}, name="CONSOLE_CURSOR_INFO", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hConsoleOutput", "lpConsoleCursorInfo"]),
#
'SetConsoleCursorInfo': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"dwSize": SimTypeInt(signed=False, label="UInt32"), "bVisible": SimTypeInt(signed=True, label="Int32")}, name="CONSOLE_CURSOR_INFO", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hConsoleOutput", "lpConsoleCursorInfo"]),
#
'GetConsoleScreenBufferInfo': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"dwSize": SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None), "dwCursorPosition": SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None), "wAttributes": SimTypeShort(signed=False, label="UInt16"), "srWindow": SimStruct({"Left": SimTypeShort(signed=True, label="Int16"), "Top": SimTypeShort(signed=True, label="Int16"), "Right": SimTypeShort(signed=True, label="Int16"), "Bottom": SimTypeShort(signed=True, label="Int16")}, name="SMALL_RECT", pack=False, align=None), "dwMaximumWindowSize": SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None)}, name="CONSOLE_SCREEN_BUFFER_INFO", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hConsoleOutput", "lpConsoleScreenBufferInfo"]),
#
'GetConsoleScreenBufferInfoEx': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"cbSize": SimTypeInt(signed=False, label="UInt32"), "dwSize": SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None), "dwCursorPosition": SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None), "wAttributes": SimTypeShort(signed=False, label="UInt16"), "srWindow": SimStruct({"Left": SimTypeShort(signed=True, label="Int16"), "Top": SimTypeShort(signed=True, label="Int16"), "Right": SimTypeShort(signed=True, label="Int16"), "Bottom": SimTypeShort(signed=True, label="Int16")}, name="SMALL_RECT", pack=False, align=None), "dwMaximumWindowSize": SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None), "wPopupAttributes": SimTypeShort(signed=False, label="UInt16"), "bFullscreenSupported": SimTypeInt(signed=True, label="Int32"), "ColorTable": SimTypeFixedSizeArray(SimTypeInt(signed=False, label="UInt32"), 16)}, name="CONSOLE_SCREEN_BUFFER_INFOEX", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hConsoleOutput", "lpConsoleScreenBufferInfoEx"]),
#
'SetConsoleScreenBufferInfoEx': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"cbSize": SimTypeInt(signed=False, label="UInt32"), "dwSize": SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None), "dwCursorPosition": SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None), "wAttributes": SimTypeShort(signed=False, label="UInt16"), "srWindow": SimStruct({"Left": SimTypeShort(signed=True, label="Int16"), "Top": SimTypeShort(signed=True, label="Int16"), "Right": SimTypeShort(signed=True, label="Int16"), "Bottom": SimTypeShort(signed=True, label="Int16")}, name="SMALL_RECT", pack=False, align=None), "dwMaximumWindowSize": SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None), "wPopupAttributes": SimTypeShort(signed=False, label="UInt16"), "bFullscreenSupported": SimTypeInt(signed=True, label="Int32"), "ColorTable": SimTypeFixedSizeArray(SimTypeInt(signed=False, label="UInt32"), 16)}, name="CONSOLE_SCREEN_BUFFER_INFOEX", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hConsoleOutput", "lpConsoleScreenBufferInfoEx"]),
#
'SetConsoleScreenBufferSize': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None)], SimTypeInt(signed=True, label="Int32"), arg_names=["hConsoleOutput", "dwSize"]),
#
'SetConsoleCursorPosition': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None)], SimTypeInt(signed=True, label="Int32"), arg_names=["hConsoleOutput", "dwCursorPosition"]),
#
'GetLargestConsoleWindowSize': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None), arg_names=["hConsoleOutput"]),
#
'SetConsoleTextAttribute': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeShort(signed=False, label="UInt16")], SimTypeInt(signed=True, label="Int32"), arg_names=["hConsoleOutput", "wAttributes"]),
#
'SetConsoleWindowInfo': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimStruct({"Left": SimTypeShort(signed=True, label="Int16"), "Top": SimTypeShort(signed=True, label="Int16"), "Right": SimTypeShort(signed=True, label="Int16"), "Bottom": SimTypeShort(signed=True, label="Int16")}, name="SMALL_RECT", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hConsoleOutput", "bAbsolute", "lpConsoleWindow"]),
#
'WriteConsoleOutputCharacterA': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32"), SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hConsoleOutput", "lpCharacter", "nLength", "dwWriteCoord", "lpNumberOfCharsWritten"]),
#
'WriteConsoleOutputCharacterW': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32"), SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hConsoleOutput", "lpCharacter", "nLength", "dwWriteCoord", "lpNumberOfCharsWritten"]),
#
'WriteConsoleOutputAttribute': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeShort(signed=False, label="UInt16"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32"), SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hConsoleOutput", "lpAttribute", "nLength", "dwWriteCoord", "lpNumberOfAttrsWritten"]),
#
'ReadConsoleOutputCharacterA': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32"), SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hConsoleOutput", "lpCharacter", "nLength", "dwReadCoord", "lpNumberOfCharsRead"]),
#
'ReadConsoleOutputCharacterW': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32"), SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hConsoleOutput", "lpCharacter", "nLength", "dwReadCoord", "lpNumberOfCharsRead"]),
#
'ReadConsoleOutputAttribute': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeShort(signed=False, label="UInt16"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32"), SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hConsoleOutput", "lpAttribute", "nLength", "dwReadCoord", "lpNumberOfAttrsRead"]),
#
'WriteConsoleInputA': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"EventType": SimTypeShort(signed=False, label="UInt16"), "Event": SimUnion({"KeyEvent": SimStruct({"bKeyDown": SimTypeInt(signed=True, label="Int32"), "wRepeatCount": SimTypeShort(signed=False, label="UInt16"), "wVirtualKeyCode": SimTypeShort(signed=False, label="UInt16"), "wVirtualScanCode": SimTypeShort(signed=False, label="UInt16"), "uChar": SimUnion({"UnicodeChar": SimTypeChar(label="Char"), "AsciiChar": SimTypeBottom(label="CHAR")}, name="<anon>", label="None"), "dwControlKeyState": SimTypeInt(signed=False, label="UInt32")}, name="KEY_EVENT_RECORD", pack=False, align=None), "MouseEvent": SimStruct({"dwMousePosition": SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None), "dwButtonState": SimTypeInt(signed=False, label="UInt32"), "dwControlKeyState": SimTypeInt(signed=False, label="UInt32"), "dwEventFlags": SimTypeInt(signed=False, label="UInt32")}, name="MOUSE_EVENT_RECORD", pack=False, align=None), "WindowBufferSizeEvent": SimStruct({"dwSize": SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None)}, name="WINDOW_BUFFER_SIZE_RECORD", pack=False, align=None), "MenuEvent": SimStruct({"dwCommandId": SimTypeInt(signed=False, label="UInt32")}, name="MENU_EVENT_RECORD", pack=False, align=None), "FocusEvent": SimStruct({"bSetFocus": SimTypeInt(signed=True, label="Int32")}, name="FOCUS_EVENT_RECORD", pack=False, align=None)}, name="<anon>", label="None")}, name="INPUT_RECORD", pack=False, align=None), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hConsoleInput", "lpBuffer", "nLength", "lpNumberOfEventsWritten"]),
#
'WriteConsoleInputW': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"EventType": SimTypeShort(signed=False, label="UInt16"), "Event": SimUnion({"KeyEvent": SimStruct({"bKeyDown": SimTypeInt(signed=True, label="Int32"), "wRepeatCount": SimTypeShort(signed=False, label="UInt16"), "wVirtualKeyCode": SimTypeShort(signed=False, label="UInt16"), "wVirtualScanCode": SimTypeShort(signed=False, label="UInt16"), "uChar": SimUnion({"UnicodeChar": SimTypeChar(label="Char"), "AsciiChar": SimTypeBottom(label="CHAR")}, name="<anon>", label="None"), "dwControlKeyState": SimTypeInt(signed=False, label="UInt32")}, name="KEY_EVENT_RECORD", pack=False, align=None), "MouseEvent": SimStruct({"dwMousePosition": SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None), "dwButtonState": SimTypeInt(signed=False, label="UInt32"), "dwControlKeyState": SimTypeInt(signed=False, label="UInt32"), "dwEventFlags": SimTypeInt(signed=False, label="UInt32")}, name="MOUSE_EVENT_RECORD", pack=False, align=None), "WindowBufferSizeEvent": SimStruct({"dwSize": SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None)}, name="WINDOW_BUFFER_SIZE_RECORD", pack=False, align=None), "MenuEvent": SimStruct({"dwCommandId": SimTypeInt(signed=False, label="UInt32")}, name="MENU_EVENT_RECORD", pack=False, align=None), "FocusEvent": SimStruct({"bSetFocus": SimTypeInt(signed=True, label="Int32")}, name="FOCUS_EVENT_RECORD", pack=False, align=None)}, name="<anon>", label="None")}, name="INPUT_RECORD", pack=False, align=None), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hConsoleInput", "lpBuffer", "nLength", "lpNumberOfEventsWritten"]),
#
'ScrollConsoleScreenBufferA': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"Left": SimTypeShort(signed=True, label="Int16"), "Top": SimTypeShort(signed=True, label="Int16"), "Right": SimTypeShort(signed=True, label="Int16"), "Bottom": SimTypeShort(signed=True, label="Int16")}, name="SMALL_RECT", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"Left": SimTypeShort(signed=True, label="Int16"), "Top": SimTypeShort(signed=True, label="Int16"), "Right": SimTypeShort(signed=True, label="Int16"), "Bottom": SimTypeShort(signed=True, label="Int16")}, name="SMALL_RECT", pack=False, align=None), offset=0), SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None), SimTypePointer(SimStruct({"Char": SimUnion({"UnicodeChar": SimTypeChar(label="Char"), "AsciiChar": SimTypeBottom(label="CHAR")}, name="<anon>", label="None"), "Attributes": SimTypeShort(signed=False, label="UInt16")}, name="CHAR_INFO", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hConsoleOutput", "lpScrollRectangle", "lpClipRectangle", "dwDestinationOrigin", "lpFill"]),
#
'ScrollConsoleScreenBufferW': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"Left": SimTypeShort(signed=True, label="Int16"), "Top": SimTypeShort(signed=True, label="Int16"), "Right": SimTypeShort(signed=True, label="Int16"), "Bottom": SimTypeShort(signed=True, label="Int16")}, name="SMALL_RECT", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"Left": SimTypeShort(signed=True, label="Int16"), "Top": SimTypeShort(signed=True, label="Int16"), "Right": SimTypeShort(signed=True, label="Int16"), "Bottom": SimTypeShort(signed=True, label="Int16")}, name="SMALL_RECT", pack=False, align=None), offset=0), SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None), SimTypePointer(SimStruct({"Char": SimUnion({"UnicodeChar": SimTypeChar(label="Char"), "AsciiChar": SimTypeBottom(label="CHAR")}, name="<anon>", label="None"), "Attributes": SimTypeShort(signed=False, label="UInt16")}, name="CHAR_INFO", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hConsoleOutput", "lpScrollRectangle", "lpClipRectangle", "dwDestinationOrigin", "lpFill"]),
#
'WriteConsoleOutputA': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"Char": SimUnion({"UnicodeChar": SimTypeChar(label="Char"), "AsciiChar": SimTypeBottom(label="CHAR")}, name="<anon>", label="None"), "Attributes": SimTypeShort(signed=False, label="UInt16")}, name="CHAR_INFO", pack=False, align=None), offset=0), SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None), SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None), SimTypePointer(SimStruct({"Left": SimTypeShort(signed=True, label="Int16"), "Top": SimTypeShort(signed=True, label="Int16"), "Right": SimTypeShort(signed=True, label="Int16"), "Bottom": SimTypeShort(signed=True, label="Int16")}, name="SMALL_RECT", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hConsoleOutput", "lpBuffer", "dwBufferSize", "dwBufferCoord", "lpWriteRegion"]),
#
'WriteConsoleOutputW': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"Char": SimUnion({"UnicodeChar": SimTypeChar(label="Char"), "AsciiChar": SimTypeBottom(label="CHAR")}, name="<anon>", label="None"), "Attributes": SimTypeShort(signed=False, label="UInt16")}, name="CHAR_INFO", pack=False, align=None), offset=0), SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None), SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None), SimTypePointer(SimStruct({"Left": SimTypeShort(signed=True, label="Int16"), "Top": SimTypeShort(signed=True, label="Int16"), "Right": SimTypeShort(signed=True, label="Int16"), "Bottom": SimTypeShort(signed=True, label="Int16")}, name="SMALL_RECT", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hConsoleOutput", "lpBuffer", "dwBufferSize", "dwBufferCoord", "lpWriteRegion"]),
#
'ReadConsoleOutputA': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"Char": SimUnion({"UnicodeChar": SimTypeChar(label="Char"), "AsciiChar": SimTypeBottom(label="CHAR")}, name="<anon>", label="None"), "Attributes": SimTypeShort(signed=False, label="UInt16")}, name="CHAR_INFO", pack=False, align=None), offset=0), SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None), SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None), SimTypePointer(SimStruct({"Left": SimTypeShort(signed=True, label="Int16"), "Top": SimTypeShort(signed=True, label="Int16"), "Right": SimTypeShort(signed=True, label="Int16"), "Bottom": SimTypeShort(signed=True, label="Int16")}, name="SMALL_RECT", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hConsoleOutput", "lpBuffer", "dwBufferSize", "dwBufferCoord", "lpReadRegion"]),
#
'ReadConsoleOutputW': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"Char": SimUnion({"UnicodeChar": SimTypeChar(label="Char"), "AsciiChar": SimTypeBottom(label="CHAR")}, name="<anon>", label="None"), "Attributes": SimTypeShort(signed=False, label="UInt16")}, name="CHAR_INFO", pack=False, align=None), offset=0), SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None), SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None), SimTypePointer(SimStruct({"Left": SimTypeShort(signed=True, label="Int16"), "Top": SimTypeShort(signed=True, label="Int16"), "Right": SimTypeShort(signed=True, label="Int16"), "Bottom": SimTypeShort(signed=True, label="Int16")}, name="SMALL_RECT", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hConsoleOutput", "lpBuffer", "dwBufferSize", "dwBufferCoord", "lpReadRegion"]),
#
'GetConsoleTitleA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpConsoleTitle", "nSize"]),
#
'GetConsoleTitleW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpConsoleTitle", "nSize"]),
#
'GetConsoleOriginalTitleA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpConsoleTitle", "nSize"]),
#
'GetConsoleOriginalTitleW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpConsoleTitle", "nSize"]),
#
'SetConsoleTitleA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpConsoleTitle"]),
#
'SetConsoleTitleW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpConsoleTitle"]),
#
'GetNumberOfConsoleMouseButtons': SimTypeFunction([SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpNumberOfMouseButtons"]),
#
'GetConsoleFontSize': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32")], SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None), arg_names=["hConsoleOutput", "nFont"]),
#
'GetCurrentConsoleFont': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimStruct({"nFont": SimTypeInt(signed=False, label="UInt32"), "dwFontSize": SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None)}, name="CONSOLE_FONT_INFO", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hConsoleOutput", "bMaximumWindow", "lpConsoleCurrentFont"]),
#
'GetCurrentConsoleFontEx': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimStruct({"cbSize": SimTypeInt(signed=False, label="UInt32"), "nFont": SimTypeInt(signed=False, label="UInt32"), "dwFontSize": SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None), "FontFamily": SimTypeInt(signed=False, label="UInt32"), "FontWeight": SimTypeInt(signed=False, label="UInt32"), "FaceName": SimTypeFixedSizeArray(SimTypeChar(label="Char"), 32)}, name="CONSOLE_FONT_INFOEX", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hConsoleOutput", "bMaximumWindow", "lpConsoleCurrentFontEx"]),
#
'SetCurrentConsoleFontEx': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimStruct({"cbSize": SimTypeInt(signed=False, label="UInt32"), "nFont": SimTypeInt(signed=False, label="UInt32"), "dwFontSize": SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None), "FontFamily": SimTypeInt(signed=False, label="UInt32"), "FontWeight": SimTypeInt(signed=False, label="UInt32"), "FaceName": SimTypeFixedSizeArray(SimTypeChar(label="Char"), 32)}, name="CONSOLE_FONT_INFOEX", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hConsoleOutput", "bMaximumWindow", "lpConsoleCurrentFontEx"]),
#
'GetConsoleSelectionInfo': SimTypeFunction([SimTypePointer(SimStruct({"dwFlags": SimTypeInt(signed=False, label="UInt32"), "dwSelectionAnchor": SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None), "srSelection": SimStruct({"Left": SimTypeShort(signed=True, label="Int16"), "Top": SimTypeShort(signed=True, label="Int16"), "Right": SimTypeShort(signed=True, label="Int16"), "Bottom": SimTypeShort(signed=True, label="Int16")}, name="SMALL_RECT", pack=False, align=None)}, name="CONSOLE_SELECTION_INFO", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpConsoleSelectionInfo"]),
#
'GetConsoleHistoryInfo': SimTypeFunction([SimTypePointer(SimStruct({"cbSize": SimTypeInt(signed=False, label="UInt32"), "HistoryBufferSize": SimTypeInt(signed=False, label="UInt32"), "NumberOfHistoryBuffers": SimTypeInt(signed=False, label="UInt32"), "dwFlags": SimTypeInt(signed=False, label="UInt32")}, name="CONSOLE_HISTORY_INFO", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpConsoleHistoryInfo"]),
#
'SetConsoleHistoryInfo': SimTypeFunction([SimTypePointer(SimStruct({"cbSize": SimTypeInt(signed=False, label="UInt32"), "HistoryBufferSize": SimTypeInt(signed=False, label="UInt32"), "NumberOfHistoryBuffers": SimTypeInt(signed=False, label="UInt32"), "dwFlags": SimTypeInt(signed=False, label="UInt32")}, name="CONSOLE_HISTORY_INFO", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpConsoleHistoryInfo"]),
#
'GetConsoleDisplayMode': SimTypeFunction([SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpModeFlags"]),
#
'SetConsoleDisplayMode': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"X": SimTypeShort(signed=True, label="Int16"), "Y": SimTypeShort(signed=True, label="Int16")}, name="COORD", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hConsoleOutput", "dwFlags", "lpNewScreenBufferDimensions"]),
#
'GetConsoleWindow': SimTypeFunction([], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)),
#
'AddConsoleAliasA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["Source", "Target", "ExeName"]),
#
'AddConsoleAliasW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["Source", "Target", "ExeName"]),
#
'GetConsoleAliasA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["Source", "TargetBuffer", "TargetBufferLength", "ExeName"]),
#
'GetConsoleAliasW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["Source", "TargetBuffer", "TargetBufferLength", "ExeName"]),
#
'GetConsoleAliasesLengthA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["ExeName"]),
#
'GetConsoleAliasesLengthW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["ExeName"]),
#
'GetConsoleAliasExesLengthA': SimTypeFunction([], SimTypeInt(signed=False, label="UInt32")),
#
'GetConsoleAliasExesLengthW': SimTypeFunction([], SimTypeInt(signed=False, label="UInt32")),
#
'GetConsoleAliasesA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["AliasBuffer", "AliasBufferLength", "ExeName"]),
#
'GetConsoleAliasesW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["AliasBuffer", "AliasBufferLength", "ExeName"]),
#
'GetConsoleAliasExesA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["ExeNameBuffer", "ExeNameBufferLength"]),
#
'GetConsoleAliasExesW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["ExeNameBuffer", "ExeNameBufferLength"]),
#
'ExpungeConsoleCommandHistoryA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeBottom(label="Void"), arg_names=["ExeName"]),
#
'ExpungeConsoleCommandHistoryW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeBottom(label="Void"), arg_names=["ExeName"]),
#
'SetConsoleNumberOfCommandsA': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["Number", "ExeName"]),
#
'SetConsoleNumberOfCommandsW': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["Number", "ExeName"]),
#
'GetConsoleCommandHistoryLengthA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["ExeName"]),
#
'GetConsoleCommandHistoryLengthW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["ExeName"]),
#
'GetConsoleCommandHistoryA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["Commands", "CommandBufferLength", "ExeName"]),
#
'GetConsoleCommandHistoryW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["Commands", "CommandBufferLength", "ExeName"]),
#
'GetConsoleProcessList': SimTypeFunction([SimTypePointer(SimTypeInt(signed=False, label="UInt32"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpdwProcessList", "dwProcessCount"]),
#
'GetStdHandle': SimTypeFunction([SimTypeInt(signed=False, label="STD_HANDLE")], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["nStdHandle"]),
#
'SetStdHandle': SimTypeFunction([SimTypeInt(signed=False, label="STD_HANDLE"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["nStdHandle", "hHandle"]),
#
'SetStdHandleEx': SimTypeFunction([SimTypeInt(signed=False, label="STD_HANDLE"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["nStdHandle", "hHandle", "phPrevValue"]),
#
'GlobalDeleteAtom': SimTypeFunction([SimTypeShort(signed=False, label="UInt16")], SimTypeShort(signed=False, label="UInt16"), arg_names=["nAtom"]),
#
'InitAtomTable': SimTypeFunction([SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["nSize"]),
#
'DeleteAtom': SimTypeFunction([SimTypeShort(signed=False, label="UInt16")], SimTypeShort(signed=False, label="UInt16"), arg_names=["nAtom"]),
#
'GlobalAddAtomA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeShort(signed=False, label="UInt16"), arg_names=["lpString"]),
#
'GlobalAddAtomW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeShort(signed=False, label="UInt16"), arg_names=["lpString"]),
#
'GlobalAddAtomExA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeShort(signed=False, label="UInt16"), arg_names=["lpString", "Flags"]),
#
'GlobalAddAtomExW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeShort(signed=False, label="UInt16"), arg_names=["lpString", "Flags"]),
#
'GlobalFindAtomA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeShort(signed=False, label="UInt16"), arg_names=["lpString"]),
#
'GlobalFindAtomW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeShort(signed=False, label="UInt16"), arg_names=["lpString"]),
#
'GlobalGetAtomNameA': SimTypeFunction([SimTypeShort(signed=False, label="UInt16"), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["nAtom", "lpBuffer", "nSize"]),
#
'GlobalGetAtomNameW': SimTypeFunction([SimTypeShort(signed=False, label="UInt16"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["nAtom", "lpBuffer", "nSize"]),
#
'AddAtomA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeShort(signed=False, label="UInt16"), arg_names=["lpString"]),
#
'AddAtomW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeShort(signed=False, label="UInt16"), arg_names=["lpString"]),
#
'FindAtomA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeShort(signed=False, label="UInt16"), arg_names=["lpString"]),
#
'FindAtomW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeShort(signed=False, label="UInt16"), arg_names=["lpString"]),
#
'GetAtomNameA': SimTypeFunction([SimTypeShort(signed=False, label="UInt16"), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["nAtom", "lpBuffer", "nSize"]),
#
'GetAtomNameW': SimTypeFunction([SimTypeShort(signed=False, label="UInt16"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["nAtom", "lpBuffer", "nSize"]),
#
'CeipIsOptedIn': SimTypeFunction([], SimTypeInt(signed=True, label="Int32")),
#
'RtlAddFunctionTable': SimTypeFunction([SimTypePointer(SimStruct({"BeginAddress": SimTypeInt(signed=False, label="UInt32"), "Anonymous": SimUnion({"UnwindData": SimTypeInt(signed=False, label="UInt32"), "Anonymous": SimStruct({"_bitfield": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None)}, name="<anon>", label="None")}, name="IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY", pack=False, align=None), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)], SimTypeChar(label="Byte"), arg_names=["FunctionTable", "EntryCount", "BaseAddress"]),
#
'RtlDeleteFunctionTable': SimTypeFunction([SimTypePointer(SimStruct({"BeginAddress": SimTypeInt(signed=False, label="UInt32"), "Anonymous": SimUnion({"UnwindData": SimTypeInt(signed=False, label="UInt32"), "Anonymous": SimStruct({"_bitfield": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None)}, name="<anon>", label="None")}, name="IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY", pack=False, align=None), offset=0)], SimTypeChar(label="Byte"), arg_names=["FunctionTable"]),
#
'RtlInstallFunctionTableCallback': SimTypeFunction([SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeFunction([SimTypeLongLong(signed=False, label="UInt64"), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypePointer(SimTypeBottom(label="IMAGE_RUNTIME_FUNCTION_ENTRY"), offset=0), arg_names=["ControlPc", "Context"]), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeChar(label="Byte"), arg_names=["TableIdentifier", "BaseAddress", "Length", "Callback", "Context", "OutOfProcessCallbackDll"]),
#
'RtlLookupFunctionEntry': SimTypeFunction([SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), offset=0), SimTypePointer(SimStruct({"Count": SimTypeInt(signed=False, label="UInt32"), "LocalHint": SimTypeChar(label="Byte"), "GlobalHint": SimTypeChar(label="Byte"), "Search": SimTypeChar(label="Byte"), "Once": SimTypeChar(label="Byte"), "LowAddress": SimTypeLongLong(signed=False, label="UInt64"), "HighAddress": SimTypeLongLong(signed=False, label="UInt64"), "Entry": SimTypeFixedSizeArray(SimStruct({"ImageBase": SimTypeLongLong(signed=False, label="UInt64"), "FunctionEntry": SimTypePointer(SimTypeBottom(label="IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY"), offset=0)}, name="UNWIND_HISTORY_TABLE_ENTRY", pack=False, align=None), 12)}, name="UNWIND_HISTORY_TABLE", pack=False, align=None), offset=0)], SimTypePointer(SimStruct({"BeginAddress": SimTypeInt(signed=False, label="UInt32"), "Anonymous": SimUnion({"UnwindData": SimTypeInt(signed=False, label="UInt32"), "Anonymous": SimStruct({"_bitfield": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None)}, name="<anon>", label="None")}, name="IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY", pack=False, align=None), offset=0), arg_names=["ControlPc", "ImageBase", "HistoryTable"]),
#
'RtlRestoreContext': SimTypeFunction([SimTypePointer(SimStruct({"ContextFlags": SimTypeInt(signed=False, label="UInt32"), "Dr0": SimTypeInt(signed=False, label="UInt32"), "Dr1": SimTypeInt(signed=False, label="UInt32"), "Dr2": SimTypeInt(signed=False, label="UInt32"), "Dr3": SimTypeInt(signed=False, label="UInt32"), "Dr6": SimTypeInt(signed=False, label="UInt32"), "Dr7": SimTypeInt(signed=False, label="UInt32"), "FloatSave": SimTypeBottom(label="FLOATING_SAVE_AREA"), "SegGs": SimTypeInt(signed=False, label="UInt32"), "SegFs": SimTypeInt(signed=False, label="UInt32"), "SegEs": SimTypeInt(signed=False, label="UInt32"), "SegDs": SimTypeInt(signed=False, label="UInt32"), "Edi": SimTypeInt(signed=False, label="UInt32"), "Esi": SimTypeInt(signed=False, label="UInt32"), "Ebx": SimTypeInt(signed=False, label="UInt32"), "Edx": SimTypeInt(signed=False, label="UInt32"), "Ecx": SimTypeInt(signed=False, label="UInt32"), "Eax": SimTypeInt(signed=False, label="UInt32"), "Ebp": SimTypeInt(signed=False, label="UInt32"), "Eip": SimTypeInt(signed=False, label="UInt32"), "SegCs": SimTypeInt(signed=False, label="UInt32"), "EFlags": SimTypeInt(signed=False, label="UInt32"), "Esp": SimTypeInt(signed=False, label="UInt32"), "SegSs": SimTypeInt(signed=False, label="UInt32"), "ExtendedRegisters": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 512)}, name="CONTEXT", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"ExceptionCode": SimTypeInt(signed=True, label="Int32"), "ExceptionFlags": SimTypeInt(signed=False, label="UInt32"), "ExceptionRecord": SimTypePointer(SimTypeBottom(label="EXCEPTION_RECORD"), offset=0), "ExceptionAddress": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "NumberParameters": SimTypeInt(signed=False, label="UInt32"), "ExceptionInformation": SimTypeFixedSizeArray(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), 15)}, name="EXCEPTION_RECORD", pack=False, align=None), offset=0)], SimTypeBottom(label="Void"), arg_names=["ContextRecord", "ExceptionRecord"]),
#
'RtlUnwindEx': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimStruct({"ExceptionCode": SimTypeInt(signed=True, label="Int32"), "ExceptionFlags": SimTypeInt(signed=False, label="UInt32"), "ExceptionRecord": SimTypePointer(SimTypeBottom(label="EXCEPTION_RECORD"), offset=0), "ExceptionAddress": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "NumberParameters": SimTypeInt(signed=False, label="UInt32"), "ExceptionInformation": SimTypeFixedSizeArray(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), 15)}, name="EXCEPTION_RECORD", pack=False, align=None), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimStruct({"ContextFlags": SimTypeInt(signed=False, label="UInt32"), "Dr0": SimTypeInt(signed=False, label="UInt32"), "Dr1": SimTypeInt(signed=False, label="UInt32"), "Dr2": SimTypeInt(signed=False, label="UInt32"), "Dr3": SimTypeInt(signed=False, label="UInt32"), "Dr6": SimTypeInt(signed=False, label="UInt32"), "Dr7": SimTypeInt(signed=False, label="UInt32"), "FloatSave": SimTypeBottom(label="FLOATING_SAVE_AREA"), "SegGs": SimTypeInt(signed=False, label="UInt32"), "SegFs": SimTypeInt(signed=False, label="UInt32"), "SegEs": SimTypeInt(signed=False, label="UInt32"), "SegDs": SimTypeInt(signed=False, label="UInt32"), "Edi": SimTypeInt(signed=False, label="UInt32"), "Esi": SimTypeInt(signed=False, label="UInt32"), "Ebx": SimTypeInt(signed=False, label="UInt32"), "Edx": SimTypeInt(signed=False, label="UInt32"), "Ecx": SimTypeInt(signed=False, label="UInt32"), "Eax": SimTypeInt(signed=False, label="UInt32"), "Ebp": SimTypeInt(signed=False, label="UInt32"), "Eip": SimTypeInt(signed=False, label="UInt32"), "SegCs": SimTypeInt(signed=False, label="UInt32"), "EFlags": SimTypeInt(signed=False, label="UInt32"), "Esp": SimTypeInt(signed=False, label="UInt32"), "SegSs": SimTypeInt(signed=False, label="UInt32"), "ExtendedRegisters": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 512)}, name="CONTEXT", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"Count": SimTypeInt(signed=False, label="UInt32"), "LocalHint": SimTypeChar(label="Byte"), "GlobalHint": SimTypeChar(label="Byte"), "Search": SimTypeChar(label="Byte"), "Once": SimTypeChar(label="Byte"), "LowAddress": SimTypeLongLong(signed=False, label="UInt64"), "HighAddress": SimTypeLongLong(signed=False, label="UInt64"), "Entry": SimTypeFixedSizeArray(SimStruct({"ImageBase": SimTypeLongLong(signed=False, label="UInt64"), "FunctionEntry": SimTypePointer(SimTypeBottom(label="IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY"), offset=0)}, name="UNWIND_HISTORY_TABLE_ENTRY", pack=False, align=None), 12)}, name="UNWIND_HISTORY_TABLE", pack=False, align=None), offset=0)], SimTypeBottom(label="Void"), arg_names=["TargetFrame", "TargetIp", "ExceptionRecord", "ReturnValue", "ContextRecord", "HistoryTable"]),
#
'RtlVirtualUnwind': SimTypeFunction([SimTypeInt(signed=False, label="RTL_VIRTUAL_UNWIND_HANDLER_TYPE"), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypePointer(SimStruct({"BeginAddress": SimTypeInt(signed=False, label="UInt32"), "Anonymous": SimUnion({"UnwindData": SimTypeInt(signed=False, label="UInt32"), "Anonymous": SimStruct({"_bitfield": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None)}, name="<anon>", label="None")}, name="IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"ContextFlags": SimTypeInt(signed=False, label="UInt32"), "Dr0": SimTypeInt(signed=False, label="UInt32"), "Dr1": SimTypeInt(signed=False, label="UInt32"), "Dr2": SimTypeInt(signed=False, label="UInt32"), "Dr3": SimTypeInt(signed=False, label="UInt32"), "Dr6": SimTypeInt(signed=False, label="UInt32"), "Dr7": SimTypeInt(signed=False, label="UInt32"), "FloatSave": SimTypeBottom(label="FLOATING_SAVE_AREA"), "SegGs": SimTypeInt(signed=False, label="UInt32"), "SegFs": SimTypeInt(signed=False, label="UInt32"), "SegEs": SimTypeInt(signed=False, label="UInt32"), "SegDs": SimTypeInt(signed=False, label="UInt32"), "Edi": SimTypeInt(signed=False, label="UInt32"), "Esi": SimTypeInt(signed=False, label="UInt32"), "Ebx": SimTypeInt(signed=False, label="UInt32"), "Edx": SimTypeInt(signed=False, label="UInt32"), "Ecx": SimTypeInt(signed=False, label="UInt32"), "Eax": SimTypeInt(signed=False, label="UInt32"), "Ebp": SimTypeInt(signed=False, label="UInt32"), "Eip": SimTypeInt(signed=False, label="UInt32"), "SegCs": SimTypeInt(signed=False, label="UInt32"), "EFlags": SimTypeInt(signed=False, label="UInt32"), "Esp": SimTypeInt(signed=False, label="UInt32"), "SegSs": SimTypeInt(signed=False, label="UInt32"), "ExtendedRegisters": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 512)}, name="CONTEXT", pack=False, align=None), offset=0), SimTypePointer(SimTypePointer(SimTypeBottom(label="Void"), offset=0), offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), offset=0), SimTypePointer(SimStruct({"Dummy": SimTypeInt(signed=False, label="UInt32")}, name="KNONVOLATILE_CONTEXT_POINTERS", pack=False, align=None), offset=0)], SimTypePointer(SimTypeFunction([SimTypePointer(SimStruct({"ExceptionCode": SimTypeInt(signed=True, label="Int32"), "ExceptionFlags": SimTypeInt(signed=False, label="UInt32"), "ExceptionRecord": SimTypePointer(SimTypeBottom(label="EXCEPTION_RECORD"), offset=0), "ExceptionAddress": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "NumberParameters": SimTypeInt(signed=False, label="UInt32"), "ExceptionInformation": SimTypeFixedSizeArray(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), 15)}, name="EXCEPTION_RECORD", pack=False, align=None), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimStruct({"ContextFlags": SimTypeInt(signed=False, label="UInt32"), "Dr0": SimTypeInt(signed=False, label="UInt32"), "Dr1": SimTypeInt(signed=False, label="UInt32"), "Dr2": SimTypeInt(signed=False, label="UInt32"), "Dr3": SimTypeInt(signed=False, label="UInt32"), "Dr6": SimTypeInt(signed=False, label="UInt32"), "Dr7": SimTypeInt(signed=False, label="UInt32"), "FloatSave": SimTypeBottom(label="FLOATING_SAVE_AREA"), "SegGs": SimTypeInt(signed=False, label="UInt32"), "SegFs": SimTypeInt(signed=False, label="UInt32"), "SegEs": SimTypeInt(signed=False, label="UInt32"), "SegDs": SimTypeInt(signed=False, label="UInt32"), "Edi": SimTypeInt(signed=False, label="UInt32"), "Esi": SimTypeInt(signed=False, label="UInt32"), "Ebx": SimTypeInt(signed=False, label="UInt32"), "Edx": SimTypeInt(signed=False, label="UInt32"), "Ecx": SimTypeInt(signed=False, label="UInt32"), "Eax": SimTypeInt(signed=False, label="UInt32"), "Ebp": SimTypeInt(signed=False, label="UInt32"), "Eip": SimTypeInt(signed=False, label="UInt32"), "SegCs": SimTypeInt(signed=False, label="UInt32"), "EFlags": SimTypeInt(signed=False, label="UInt32"), "Esp": SimTypeInt(signed=False, label="UInt32"), "SegSs": SimTypeInt(signed=False, label="UInt32"), "ExtendedRegisters": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 512)}, name="CONTEXT", pack=False, align=None), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=False, label="EXCEPTION_DISPOSITION"), arg_names=["ExceptionRecord", "EstablisherFrame", "ContextRecord", "DispatcherContext"]), offset=0), arg_names=["HandlerType", "ImageBase", "ControlPc", "FunctionEntry", "ContextRecord", "HandlerData", "EstablisherFrame", "ContextPointers"]),
#
'RtlCaptureStackBackTrace': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypePointer(SimTypeBottom(label="Void"), offset=0), label="LPArray", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeShort(signed=False, label="UInt16"), arg_names=["FramesToSkip", "FramesToCapture", "BackTrace", "BackTraceHash"]),
#
'RtlCaptureContext': SimTypeFunction([SimTypePointer(SimStruct({"ContextFlags": SimTypeInt(signed=False, label="UInt32"), "Dr0": SimTypeInt(signed=False, label="UInt32"), "Dr1": SimTypeInt(signed=False, label="UInt32"), "Dr2": SimTypeInt(signed=False, label="UInt32"), "Dr3": SimTypeInt(signed=False, label="UInt32"), "Dr6": SimTypeInt(signed=False, label="UInt32"), "Dr7": SimTypeInt(signed=False, label="UInt32"), "FloatSave": SimTypeBottom(label="FLOATING_SAVE_AREA"), "SegGs": SimTypeInt(signed=False, label="UInt32"), "SegFs": SimTypeInt(signed=False, label="UInt32"), "SegEs": SimTypeInt(signed=False, label="UInt32"), "SegDs": SimTypeInt(signed=False, label="UInt32"), "Edi": SimTypeInt(signed=False, label="UInt32"), "Esi": SimTypeInt(signed=False, label="UInt32"), "Ebx": SimTypeInt(signed=False, label="UInt32"), "Edx": SimTypeInt(signed=False, label="UInt32"), "Ecx": SimTypeInt(signed=False, label="UInt32"), "Eax": SimTypeInt(signed=False, label="UInt32"), "Ebp": SimTypeInt(signed=False, label="UInt32"), "Eip": SimTypeInt(signed=False, label="UInt32"), "SegCs": SimTypeInt(signed=False, label="UInt32"), "EFlags": SimTypeInt(signed=False, label="UInt32"), "Esp": SimTypeInt(signed=False, label="UInt32"), "SegSs": SimTypeInt(signed=False, label="UInt32"), "ExtendedRegisters": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 512)}, name="CONTEXT", pack=False, align=None), offset=0)], SimTypeBottom(label="Void"), arg_names=["ContextRecord"]),
#
'RtlCaptureContext2': SimTypeFunction([SimTypePointer(SimStruct({"ContextFlags": SimTypeInt(signed=False, label="UInt32"), "Dr0": SimTypeInt(signed=False, label="UInt32"), "Dr1": SimTypeInt(signed=False, label="UInt32"), "Dr2": SimTypeInt(signed=False, label="UInt32"), "Dr3": SimTypeInt(signed=False, label="UInt32"), "Dr6": SimTypeInt(signed=False, label="UInt32"), "Dr7": SimTypeInt(signed=False, label="UInt32"), "FloatSave": SimTypeBottom(label="FLOATING_SAVE_AREA"), "SegGs": SimTypeInt(signed=False, label="UInt32"), "SegFs": SimTypeInt(signed=False, label="UInt32"), "SegEs": SimTypeInt(signed=False, label="UInt32"), "SegDs": SimTypeInt(signed=False, label="UInt32"), "Edi": SimTypeInt(signed=False, label="UInt32"), "Esi": SimTypeInt(signed=False, label="UInt32"), "Ebx": SimTypeInt(signed=False, label="UInt32"), "Edx": SimTypeInt(signed=False, label="UInt32"), "Ecx": SimTypeInt(signed=False, label="UInt32"), "Eax": SimTypeInt(signed=False, label="UInt32"), "Ebp": SimTypeInt(signed=False, label="UInt32"), "Eip": SimTypeInt(signed=False, label="UInt32"), "SegCs": SimTypeInt(signed=False, label="UInt32"), "EFlags": SimTypeInt(signed=False, label="UInt32"), "Esp": SimTypeInt(signed=False, label="UInt32"), "SegSs": SimTypeInt(signed=False, label="UInt32"), "ExtendedRegisters": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 512)}, name="CONTEXT", pack=False, align=None), offset=0)], SimTypeBottom(label="Void"), arg_names=["ContextRecord"]),
#
'RtlUnwind': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimStruct({"ExceptionCode": SimTypeInt(signed=True, label="Int32"), "ExceptionFlags": SimTypeInt(signed=False, label="UInt32"), "ExceptionRecord": SimTypePointer(SimTypeBottom(label="EXCEPTION_RECORD"), offset=0), "ExceptionAddress": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "NumberParameters": SimTypeInt(signed=False, label="UInt32"), "ExceptionInformation": SimTypeFixedSizeArray(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), 15)}, name="EXCEPTION_RECORD", pack=False, align=None), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeBottom(label="Void"), arg_names=["TargetFrame", "TargetIp", "ExceptionRecord", "ReturnValue"]),
#
'RtlAddFunctionTable': SimTypeFunction([SimTypePointer(SimStruct({"BeginAddress": SimTypeInt(signed=False, label="UInt32"), "EndAddress": SimTypeInt(signed=False, label="UInt32"), "Anonymous": SimUnion({"UnwindInfoAddress": SimTypeInt(signed=False, label="UInt32"), "UnwindData": SimTypeInt(signed=False, label="UInt32")}, name="<anon>", label="None")}, name="IMAGE_RUNTIME_FUNCTION_ENTRY", pack=False, align=None), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeLongLong(signed=False, label="UInt64")], SimTypeChar(label="Byte"), arg_names=["FunctionTable", "EntryCount", "BaseAddress"]),
#
'RtlDeleteFunctionTable': SimTypeFunction([SimTypePointer(SimStruct({"BeginAddress": SimTypeInt(signed=False, label="UInt32"), "EndAddress": SimTypeInt(signed=False, label="UInt32"), "Anonymous": SimUnion({"UnwindInfoAddress": SimTypeInt(signed=False, label="UInt32"), "UnwindData": SimTypeInt(signed=False, label="UInt32")}, name="<anon>", label="None")}, name="IMAGE_RUNTIME_FUNCTION_ENTRY", pack=False, align=None), offset=0)], SimTypeChar(label="Byte"), arg_names=["FunctionTable"]),
#
'RtlInstallFunctionTableCallback': SimTypeFunction([SimTypeLongLong(signed=False, label="UInt64"), SimTypeLongLong(signed=False, label="UInt64"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeFunction([SimTypeLongLong(signed=False, label="UInt64"), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypePointer(SimTypeBottom(label="IMAGE_RUNTIME_FUNCTION_ENTRY"), offset=0), arg_names=["ControlPc", "Context"]), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeChar(label="Byte"), arg_names=["TableIdentifier", "BaseAddress", "Length", "Callback", "Context", "OutOfProcessCallbackDll"]),
#
'RtlLookupFunctionEntry': SimTypeFunction([SimTypeLongLong(signed=False, label="UInt64"), SimTypePointer(SimTypeLongLong(signed=False, label="UInt64"), offset=0), SimTypePointer(SimStruct({"Count": SimTypeInt(signed=False, label="UInt32"), "LocalHint": SimTypeChar(label="Byte"), "GlobalHint": SimTypeChar(label="Byte"), "Search": SimTypeChar(label="Byte"), "Once": SimTypeChar(label="Byte"), "LowAddress": SimTypeLongLong(signed=False, label="UInt64"), "HighAddress": SimTypeLongLong(signed=False, label="UInt64"), "Entry": SimTypeFixedSizeArray(SimStruct({"ImageBase": SimTypeLongLong(signed=False, label="UInt64"), "FunctionEntry": SimTypePointer(SimTypeBottom(label="IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY"), offset=0)}, name="UNWIND_HISTORY_TABLE_ENTRY", pack=False, align=None), 12)}, name="UNWIND_HISTORY_TABLE", pack=False, align=None), offset=0)], SimTypePointer(SimStruct({"BeginAddress": SimTypeInt(signed=False, label="UInt32"), "EndAddress": SimTypeInt(signed=False, label="UInt32"), "Anonymous": SimUnion({"UnwindInfoAddress": SimTypeInt(signed=False, label="UInt32"), "UnwindData": SimTypeInt(signed=False, label="UInt32")}, name="<anon>", label="None")}, name="IMAGE_RUNTIME_FUNCTION_ENTRY", pack=False, align=None), offset=0), arg_names=["ControlPc", "ImageBase", "HistoryTable"]),
#
'RtlVirtualUnwind': SimTypeFunction([SimTypeInt(signed=False, label="RTL_VIRTUAL_UNWIND_HANDLER_TYPE"), SimTypeLongLong(signed=False, label="UInt64"), SimTypeLongLong(signed=False, label="UInt64"), SimTypePointer(SimStruct({"BeginAddress": SimTypeInt(signed=False, label="UInt32"), "EndAddress": SimTypeInt(signed=False, label="UInt32"), "Anonymous": SimUnion({"UnwindInfoAddress": SimTypeInt(signed=False, label="UInt32"), "UnwindData": SimTypeInt(signed=False, label="UInt32")}, name="<anon>", label="None")}, name="IMAGE_RUNTIME_FUNCTION_ENTRY", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"ContextFlags": SimTypeInt(signed=False, label="UInt32"), "Dr0": SimTypeInt(signed=False, label="UInt32"), "Dr1": SimTypeInt(signed=False, label="UInt32"), "Dr2": SimTypeInt(signed=False, label="UInt32"), "Dr3": SimTypeInt(signed=False, label="UInt32"), "Dr6": SimTypeInt(signed=False, label="UInt32"), "Dr7": SimTypeInt(signed=False, label="UInt32"), "FloatSave": SimTypeBottom(label="FLOATING_SAVE_AREA"), "SegGs": SimTypeInt(signed=False, label="UInt32"), "SegFs": SimTypeInt(signed=False, label="UInt32"), "SegEs": SimTypeInt(signed=False, label="UInt32"), "SegDs": SimTypeInt(signed=False, label="UInt32"), "Edi": SimTypeInt(signed=False, label="UInt32"), "Esi": SimTypeInt(signed=False, label="UInt32"), "Ebx": SimTypeInt(signed=False, label="UInt32"), "Edx": SimTypeInt(signed=False, label="UInt32"), "Ecx": SimTypeInt(signed=False, label="UInt32"), "Eax": SimTypeInt(signed=False, label="UInt32"), "Ebp": SimTypeInt(signed=False, label="UInt32"), "Eip": SimTypeInt(signed=False, label="UInt32"), "SegCs": SimTypeInt(signed=False, label="UInt32"), "EFlags": SimTypeInt(signed=False, label="UInt32"), "Esp": SimTypeInt(signed=False, label="UInt32"), "SegSs": SimTypeInt(signed=False, label="UInt32"), "ExtendedRegisters": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 512)}, name="CONTEXT", pack=False, align=None), offset=0), SimTypePointer(SimTypePointer(SimTypeBottom(label="Void"), offset=0), offset=0), SimTypePointer(SimTypeLongLong(signed=False, label="UInt64"), offset=0), SimTypePointer(SimStruct({"Dummy": SimTypeInt(signed=False, label="UInt32")}, name="KNONVOLATILE_CONTEXT_POINTERS", pack=False, align=None), offset=0)], SimTypePointer(SimTypeFunction([SimTypePointer(SimStruct({"ExceptionCode": SimTypeInt(signed=True, label="Int32"), "ExceptionFlags": SimTypeInt(signed=False, label="UInt32"), "ExceptionRecord": SimTypePointer(SimTypeBottom(label="EXCEPTION_RECORD"), offset=0), "ExceptionAddress": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "NumberParameters": SimTypeInt(signed=False, label="UInt32"), "ExceptionInformation": SimTypeFixedSizeArray(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), 15)}, name="EXCEPTION_RECORD", pack=False, align=None), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimStruct({"ContextFlags": SimTypeInt(signed=False, label="UInt32"), "Dr0": SimTypeInt(signed=False, label="UInt32"), "Dr1": SimTypeInt(signed=False, label="UInt32"), "Dr2": SimTypeInt(signed=False, label="UInt32"), "Dr3": SimTypeInt(signed=False, label="UInt32"), "Dr6": SimTypeInt(signed=False, label="UInt32"), "Dr7": SimTypeInt(signed=False, label="UInt32"), "FloatSave": SimTypeBottom(label="FLOATING_SAVE_AREA"), "SegGs": SimTypeInt(signed=False, label="UInt32"), "SegFs": SimTypeInt(signed=False, label="UInt32"), "SegEs": SimTypeInt(signed=False, label="UInt32"), "SegDs": SimTypeInt(signed=False, label="UInt32"), "Edi": SimTypeInt(signed=False, label="UInt32"), "Esi": SimTypeInt(signed=False, label="UInt32"), "Ebx": SimTypeInt(signed=False, label="UInt32"), "Edx": SimTypeInt(signed=False, label="UInt32"), "Ecx": SimTypeInt(signed=False, label="UInt32"), "Eax": SimTypeInt(signed=False, label="UInt32"), "Ebp": SimTypeInt(signed=False, label="UInt32"), "Eip": SimTypeInt(signed=False, label="UInt32"), "SegCs": SimTypeInt(signed=False, label="UInt32"), "EFlags": SimTypeInt(signed=False, label="UInt32"), "Esp": SimTypeInt(signed=False, label="UInt32"), "SegSs": SimTypeInt(signed=False, label="UInt32"), "ExtendedRegisters": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 512)}, name="CONTEXT", pack=False, align=None), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=False, label="EXCEPTION_DISPOSITION"), arg_names=["ExceptionRecord", "EstablisherFrame", "ContextRecord", "DispatcherContext"]), offset=0), arg_names=["HandlerType", "ImageBase", "ControlPc", "FunctionEntry", "ContextRecord", "HandlerData", "EstablisherFrame", "ContextPointers"]),
#
'RtlPcToFileHeader': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypePointer(SimTypeBottom(label="Void"), offset=0), offset=0)], SimTypePointer(SimTypeBottom(label="Void"), offset=0), arg_names=["PcValue", "BaseOfImage"]),
#
'IsDebuggerPresent': SimTypeFunction([], SimTypeInt(signed=True, label="Int32")),
#
'DebugBreak': SimTypeFunction([], SimTypeBottom(label="Void")),
#
'OutputDebugStringA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeBottom(label="Void"), arg_names=["lpOutputString"]),
#
'OutputDebugStringW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeBottom(label="Void"), arg_names=["lpOutputString"]),
#
'ContinueDebugEvent': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["dwProcessId", "dwThreadId", "dwContinueStatus"]),
#
'WaitForDebugEvent': SimTypeFunction([SimTypePointer(SimStruct({"dwDebugEventCode": SimTypeInt(signed=False, label="DEBUG_EVENT_CODE"), "dwProcessId": SimTypeInt(signed=False, label="UInt32"), "dwThreadId": SimTypeInt(signed=False, label="UInt32"), "u": SimUnion({"Exception": SimStruct({"ExceptionRecord": SimStruct({"ExceptionCode": SimTypeInt(signed=True, label="Int32"), "ExceptionFlags": SimTypeInt(signed=False, label="UInt32"), "ExceptionRecord": SimTypePointer(SimTypeBottom(label="EXCEPTION_RECORD"), offset=0), "ExceptionAddress": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "NumberParameters": SimTypeInt(signed=False, label="UInt32"), "ExceptionInformation": SimTypeFixedSizeArray(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), 15)}, name="EXCEPTION_RECORD", pack=False, align=None), "dwFirstChance": SimTypeInt(signed=False, label="UInt32")}, name="EXCEPTION_DEBUG_INFO", pack=False, align=None), "CreateThread": SimStruct({"hThread": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "lpThreadLocalBase": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "lpStartAddress": SimTypeBottom(label="LPTHREAD_START_ROUTINE")}, name="CREATE_THREAD_DEBUG_INFO", pack=False, align=None), "CreateProcessInfo": SimStruct({"hFile": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "hProcess": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "hThread": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "lpBaseOfImage": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "dwDebugInfoFileOffset": SimTypeInt(signed=False, label="UInt32"), "nDebugInfoSize": SimTypeInt(signed=False, label="UInt32"), "lpThreadLocalBase": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "lpStartAddress": SimTypeBottom(label="LPTHREAD_START_ROUTINE"), "lpImageName": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "fUnicode": SimTypeShort(signed=False, label="UInt16")}, name="CREATE_PROCESS_DEBUG_INFO", pack=False, align=None), "ExitThread": SimStruct({"dwExitCode": SimTypeInt(signed=False, label="UInt32")}, name="EXIT_THREAD_DEBUG_INFO", pack=False, align=None), "ExitProcess": SimStruct({"dwExitCode": SimTypeInt(signed=False, label="UInt32")}, name="EXIT_PROCESS_DEBUG_INFO", pack=False, align=None), "LoadDll": SimStruct({"hFile": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "lpBaseOfDll": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "dwDebugInfoFileOffset": SimTypeInt(signed=False, label="UInt32"), "nDebugInfoSize": SimTypeInt(signed=False, label="UInt32"), "lpImageName": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "fUnicode": SimTypeShort(signed=False, label="UInt16")}, name="LOAD_DLL_DEBUG_INFO", pack=False, align=None), "UnloadDll": SimStruct({"lpBaseOfDll": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="UNLOAD_DLL_DEBUG_INFO", pack=False, align=None), "DebugString": SimStruct({"lpDebugStringData": SimTypePointer(SimTypeChar(label="Byte"), offset=0), "fUnicode": SimTypeShort(signed=False, label="UInt16"), "nDebugStringLength": SimTypeShort(signed=False, label="UInt16")}, name="OUTPUT_DEBUG_STRING_INFO", pack=False, align=None), "RipInfo": SimStruct({"dwError": SimTypeInt(signed=False, label="UInt32"), "dwType": SimTypeInt(signed=False, label="RIP_INFO_TYPE")}, name="RIP_INFO", pack=False, align=None)}, name="<anon>", label="None")}, name="DEBUG_EVENT", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpDebugEvent", "dwMilliseconds"]),
#
'DebugActiveProcess': SimTypeFunction([SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["dwProcessId"]),
#
'DebugActiveProcessStop': SimTypeFunction([SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["dwProcessId"]),
#
'CheckRemoteDebuggerPresent': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "pbDebuggerPresent"]),
#
'WaitForDebugEventEx': SimTypeFunction([SimTypePointer(SimStruct({"dwDebugEventCode": SimTypeInt(signed=False, label="DEBUG_EVENT_CODE"), "dwProcessId": SimTypeInt(signed=False, label="UInt32"), "dwThreadId": SimTypeInt(signed=False, label="UInt32"), "u": SimUnion({"Exception": SimStruct({"ExceptionRecord": SimStruct({"ExceptionCode": SimTypeInt(signed=True, label="Int32"), "ExceptionFlags": SimTypeInt(signed=False, label="UInt32"), "ExceptionRecord": SimTypePointer(SimTypeBottom(label="EXCEPTION_RECORD"), offset=0), "ExceptionAddress": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "NumberParameters": SimTypeInt(signed=False, label="UInt32"), "ExceptionInformation": SimTypeFixedSizeArray(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), 15)}, name="EXCEPTION_RECORD", pack=False, align=None), "dwFirstChance": SimTypeInt(signed=False, label="UInt32")}, name="EXCEPTION_DEBUG_INFO", pack=False, align=None), "CreateThread": SimStruct({"hThread": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "lpThreadLocalBase": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "lpStartAddress": SimTypeBottom(label="LPTHREAD_START_ROUTINE")}, name="CREATE_THREAD_DEBUG_INFO", pack=False, align=None), "CreateProcessInfo": SimStruct({"hFile": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "hProcess": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "hThread": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "lpBaseOfImage": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "dwDebugInfoFileOffset": SimTypeInt(signed=False, label="UInt32"), "nDebugInfoSize": SimTypeInt(signed=False, label="UInt32"), "lpThreadLocalBase": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "lpStartAddress": SimTypeBottom(label="LPTHREAD_START_ROUTINE"), "lpImageName": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "fUnicode": SimTypeShort(signed=False, label="UInt16")}, name="CREATE_PROCESS_DEBUG_INFO", pack=False, align=None), "ExitThread": SimStruct({"dwExitCode": SimTypeInt(signed=False, label="UInt32")}, name="EXIT_THREAD_DEBUG_INFO", pack=False, align=None), "ExitProcess": SimStruct({"dwExitCode": SimTypeInt(signed=False, label="UInt32")}, name="EXIT_PROCESS_DEBUG_INFO", pack=False, align=None), "LoadDll": SimStruct({"hFile": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "lpBaseOfDll": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "dwDebugInfoFileOffset": SimTypeInt(signed=False, label="UInt32"), "nDebugInfoSize": SimTypeInt(signed=False, label="UInt32"), "lpImageName": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "fUnicode": SimTypeShort(signed=False, label="UInt16")}, name="LOAD_DLL_DEBUG_INFO", pack=False, align=None), "UnloadDll": SimStruct({"lpBaseOfDll": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="UNLOAD_DLL_DEBUG_INFO", pack=False, align=None), "DebugString": SimStruct({"lpDebugStringData": SimTypePointer(SimTypeChar(label="Byte"), offset=0), "fUnicode": SimTypeShort(signed=False, label="UInt16"), "nDebugStringLength": SimTypeShort(signed=False, label="UInt16")}, name="OUTPUT_DEBUG_STRING_INFO", pack=False, align=None), "RipInfo": SimStruct({"dwError": SimTypeInt(signed=False, label="UInt32"), "dwType": SimTypeInt(signed=False, label="RIP_INFO_TYPE")}, name="RIP_INFO", pack=False, align=None)}, name="<anon>", label="None")}, name="DEBUG_EVENT", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpDebugEvent", "dwMilliseconds"]),
#
'EncodePointer': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypePointer(SimTypeBottom(label="Void"), offset=0), arg_names=["Ptr"]),
#
'DecodePointer': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypePointer(SimTypeBottom(label="Void"), offset=0), arg_names=["Ptr"]),
#
'EncodeSystemPointer': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypePointer(SimTypeBottom(label="Void"), offset=0), arg_names=["Ptr"]),
#
'DecodeSystemPointer': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypePointer(SimTypeBottom(label="Void"), offset=0), arg_names=["Ptr"]),
#
'Beep': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["dwFreq", "dwDuration"]),
#
'RaiseException': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), label="LPArray", offset=0)], SimTypeBottom(label="Void"), arg_names=["dwExceptionCode", "dwExceptionFlags", "nNumberOfArguments", "lpArguments"]),
#
'UnhandledExceptionFilter': SimTypeFunction([SimTypePointer(SimStruct({"ExceptionRecord": SimTypePointer(SimStruct({"ExceptionCode": SimTypeInt(signed=True, label="Int32"), "ExceptionFlags": SimTypeInt(signed=False, label="UInt32"), "ExceptionRecord": SimTypePointer(SimTypeBottom(label="EXCEPTION_RECORD"), offset=0), "ExceptionAddress": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "NumberParameters": SimTypeInt(signed=False, label="UInt32"), "ExceptionInformation": SimTypeFixedSizeArray(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), 15)}, name="EXCEPTION_RECORD", pack=False, align=None), offset=0), "ContextRecord": SimTypePointer(SimStruct({"P1Home": SimTypeLongLong(signed=False, label="UInt64"), "P2Home": SimTypeLongLong(signed=False, label="UInt64"), "P3Home": SimTypeLongLong(signed=False, label="UInt64"), "P4Home": SimTypeLongLong(signed=False, label="UInt64"), "P5Home": SimTypeLongLong(signed=False, label="UInt64"), "P6Home": SimTypeLongLong(signed=False, label="UInt64"), "ContextFlags": SimTypeInt(signed=False, label="UInt32"), "MxCsr": SimTypeInt(signed=False, label="UInt32"), "SegCs": SimTypeShort(signed=False, label="UInt16"), "SegDs": SimTypeShort(signed=False, label="UInt16"), "SegEs": SimTypeShort(signed=False, label="UInt16"), "SegFs": SimTypeShort(signed=False, label="UInt16"), "SegGs": SimTypeShort(signed=False, label="UInt16"), "SegSs": SimTypeShort(signed=False, label="UInt16"), "EFlags": SimTypeInt(signed=False, label="UInt32"), "Dr0": SimTypeLongLong(signed=False, label="UInt64"), "Dr1": SimTypeLongLong(signed=False, label="UInt64"), "Dr2": SimTypeLongLong(signed=False, label="UInt64"), "Dr3": SimTypeLongLong(signed=False, label="UInt64"), "Dr6": SimTypeLongLong(signed=False, label="UInt64"), "Dr7": SimTypeLongLong(signed=False, label="UInt64"), "Rax": SimTypeLongLong(signed=False, label="UInt64"), "Rcx": SimTypeLongLong(signed=False, label="UInt64"), "Rdx": SimTypeLongLong(signed=False, label="UInt64"), "Rbx": SimTypeLongLong(signed=False, label="UInt64"), "Rsp": SimTypeLongLong(signed=False, label="UInt64"), "Rbp": SimTypeLongLong(signed=False, label="UInt64"), "Rsi": SimTypeLongLong(signed=False, label="UInt64"), "Rdi": SimTypeLongLong(signed=False, label="UInt64"), "R8": SimTypeLongLong(signed=False, label="UInt64"), "R9": SimTypeLongLong(signed=False, label="UInt64"), "R10": SimTypeLongLong(signed=False, label="UInt64"), "R11": SimTypeLongLong(signed=False, label="UInt64"), "R12": SimTypeLongLong(signed=False, label="UInt64"), "R13": SimTypeLongLong(signed=False, label="UInt64"), "R14": SimTypeLongLong(signed=False, label="UInt64"), "R15": SimTypeLongLong(signed=False, label="UInt64"), "Rip": SimTypeLongLong(signed=False, label="UInt64"), "Anonymous": SimUnion({"FltSave": SimTypeBottom(label="XSAVE_FORMAT"), "Anonymous": SimStruct({"Header": SimTypeFixedSizeArray(SimTypeBottom(label="M128A"), 2), "Legacy": SimTypeFixedSizeArray(SimTypeBottom(label="M128A"), 8), "Xmm0": SimTypeBottom(label="M128A"), "Xmm1": SimTypeBottom(label="M128A"), "Xmm2": SimTypeBottom(label="M128A"), "Xmm3": SimTypeBottom(label="M128A"), "Xmm4": SimTypeBottom(label="M128A"), "Xmm5": SimTypeBottom(label="M128A"), "Xmm6": SimTypeBottom(label="M128A"), "Xmm7": SimTypeBottom(label="M128A"), "Xmm8": SimTypeBottom(label="M128A"), "Xmm9": SimTypeBottom(label="M128A"), "Xmm10": SimTypeBottom(label="M128A"), "Xmm11": SimTypeBottom(label="M128A"), "Xmm12": SimTypeBottom(label="M128A"), "Xmm13": SimTypeBottom(label="M128A"), "Xmm14": SimTypeBottom(label="M128A"), "Xmm15": SimTypeBottom(label="M128A")}, name="_Anonymous_e__Struct", pack=False, align=None)}, name="<anon>", label="None"), "VectorRegister": SimTypeFixedSizeArray(SimTypeBottom(label="M128A"), 26), "VectorControl": SimTypeLongLong(signed=False, label="UInt64"), "DebugControl": SimTypeLongLong(signed=False, label="UInt64"), "LastBranchToRip": SimTypeLongLong(signed=False, label="UInt64"), "LastBranchFromRip": SimTypeLongLong(signed=False, label="UInt64"), "LastExceptionToRip": SimTypeLongLong(signed=False, label="UInt64"), "LastExceptionFromRip": SimTypeLongLong(signed=False, label="UInt64")}, name="CONTEXT", pack=False, align=None), offset=0)}, name="EXCEPTION_POINTERS", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["ExceptionInfo"]),
#
'SetUnhandledExceptionFilter': SimTypeFunction([SimTypePointer(SimTypeFunction([SimTypePointer(SimStruct({"ExceptionRecord": SimTypePointer(SimStruct({"ExceptionCode": SimTypeInt(signed=True, label="Int32"), "ExceptionFlags": SimTypeInt(signed=False, label="UInt32"), "ExceptionRecord": SimTypePointer(SimTypeBottom(label="EXCEPTION_RECORD"), offset=0), "ExceptionAddress": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "NumberParameters": SimTypeInt(signed=False, label="UInt32"), "ExceptionInformation": SimTypeFixedSizeArray(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), 15)}, name="EXCEPTION_RECORD", pack=False, align=None), offset=0), "ContextRecord": SimTypePointer(SimStruct({"P1Home": SimTypeLongLong(signed=False, label="UInt64"), "P2Home": SimTypeLongLong(signed=False, label="UInt64"), "P3Home": SimTypeLongLong(signed=False, label="UInt64"), "P4Home": SimTypeLongLong(signed=False, label="UInt64"), "P5Home": SimTypeLongLong(signed=False, label="UInt64"), "P6Home": SimTypeLongLong(signed=False, label="UInt64"), "ContextFlags": SimTypeInt(signed=False, label="UInt32"), "MxCsr": SimTypeInt(signed=False, label="UInt32"), "SegCs": SimTypeShort(signed=False, label="UInt16"), "SegDs": SimTypeShort(signed=False, label="UInt16"), "SegEs": SimTypeShort(signed=False, label="UInt16"), "SegFs": SimTypeShort(signed=False, label="UInt16"), "SegGs": SimTypeShort(signed=False, label="UInt16"), "SegSs": SimTypeShort(signed=False, label="UInt16"), "EFlags": SimTypeInt(signed=False, label="UInt32"), "Dr0": SimTypeLongLong(signed=False, label="UInt64"), "Dr1": SimTypeLongLong(signed=False, label="UInt64"), "Dr2": SimTypeLongLong(signed=False, label="UInt64"), "Dr3": SimTypeLongLong(signed=False, label="UInt64"), "Dr6": SimTypeLongLong(signed=False, label="UInt64"), "Dr7": SimTypeLongLong(signed=False, label="UInt64"), "Rax": SimTypeLongLong(signed=False, label="UInt64"), "Rcx": SimTypeLongLong(signed=False, label="UInt64"), "Rdx": SimTypeLongLong(signed=False, label="UInt64"), "Rbx": SimTypeLongLong(signed=False, label="UInt64"), "Rsp": SimTypeLongLong(signed=False, label="UInt64"), "Rbp": SimTypeLongLong(signed=False, label="UInt64"), "Rsi": SimTypeLongLong(signed=False, label="UInt64"), "Rdi": SimTypeLongLong(signed=False, label="UInt64"), "R8": SimTypeLongLong(signed=False, label="UInt64"), "R9": SimTypeLongLong(signed=False, label="UInt64"), "R10": SimTypeLongLong(signed=False, label="UInt64"), "R11": SimTypeLongLong(signed=False, label="UInt64"), "R12": SimTypeLongLong(signed=False, label="UInt64"), "R13": SimTypeLongLong(signed=False, label="UInt64"), "R14": SimTypeLongLong(signed=False, label="UInt64"), "R15": SimTypeLongLong(signed=False, label="UInt64"), "Rip": SimTypeLongLong(signed=False, label="UInt64"), "Anonymous": SimUnion({"FltSave": SimTypeBottom(label="XSAVE_FORMAT"), "Anonymous": SimStruct({"Header": SimTypeFixedSizeArray(SimTypeBottom(label="M128A"), 2), "Legacy": SimTypeFixedSizeArray(SimTypeBottom(label="M128A"), 8), "Xmm0": SimTypeBottom(label="M128A"), "Xmm1": SimTypeBottom(label="M128A"), "Xmm2": SimTypeBottom(label="M128A"), "Xmm3": SimTypeBottom(label="M128A"), "Xmm4": SimTypeBottom(label="M128A"), "Xmm5": SimTypeBottom(label="M128A"), "Xmm6": SimTypeBottom(label="M128A"), "Xmm7": SimTypeBottom(label="M128A"), "Xmm8": SimTypeBottom(label="M128A"), "Xmm9": SimTypeBottom(label="M128A"), "Xmm10": SimTypeBottom(label="M128A"), "Xmm11": SimTypeBottom(label="M128A"), "Xmm12": SimTypeBottom(label="M128A"), "Xmm13": SimTypeBottom(label="M128A"), "Xmm14": SimTypeBottom(label="M128A"), "Xmm15": SimTypeBottom(label="M128A")}, name="_Anonymous_e__Struct", pack=False, align=None)}, name="<anon>", label="None"), "VectorRegister": SimTypeFixedSizeArray(SimTypeBottom(label="M128A"), 26), "VectorControl": SimTypeLongLong(signed=False, label="UInt64"), "DebugControl": SimTypeLongLong(signed=False, label="UInt64"), "LastBranchToRip": SimTypeLongLong(signed=False, label="UInt64"), "LastBranchFromRip": SimTypeLongLong(signed=False, label="UInt64"), "LastExceptionToRip": SimTypeLongLong(signed=False, label="UInt64"), "LastExceptionFromRip": SimTypeLongLong(signed=False, label="UInt64")}, name="CONTEXT", pack=False, align=None), offset=0)}, name="EXCEPTION_POINTERS", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["ExceptionInfo"]), offset=0)], SimTypePointer(SimTypeFunction([SimTypePointer(SimStruct({"ExceptionRecord": SimTypePointer(SimStruct({"ExceptionCode": SimTypeInt(signed=True, label="Int32"), "ExceptionFlags": SimTypeInt(signed=False, label="UInt32"), "ExceptionRecord": SimTypePointer(SimTypeBottom(label="EXCEPTION_RECORD"), offset=0), "ExceptionAddress": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "NumberParameters": SimTypeInt(signed=False, label="UInt32"), "ExceptionInformation": SimTypeFixedSizeArray(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), 15)}, name="EXCEPTION_RECORD", pack=False, align=None), offset=0), "ContextRecord": SimTypePointer(SimStruct({"P1Home": SimTypeLongLong(signed=False, label="UInt64"), "P2Home": SimTypeLongLong(signed=False, label="UInt64"), "P3Home": SimTypeLongLong(signed=False, label="UInt64"), "P4Home": SimTypeLongLong(signed=False, label="UInt64"), "P5Home": SimTypeLongLong(signed=False, label="UInt64"), "P6Home": SimTypeLongLong(signed=False, label="UInt64"), "ContextFlags": SimTypeInt(signed=False, label="UInt32"), "MxCsr": SimTypeInt(signed=False, label="UInt32"), "SegCs": SimTypeShort(signed=False, label="UInt16"), "SegDs": SimTypeShort(signed=False, label="UInt16"), "SegEs": SimTypeShort(signed=False, label="UInt16"), "SegFs": SimTypeShort(signed=False, label="UInt16"), "SegGs": SimTypeShort(signed=False, label="UInt16"), "SegSs": SimTypeShort(signed=False, label="UInt16"), "EFlags": SimTypeInt(signed=False, label="UInt32"), "Dr0": SimTypeLongLong(signed=False, label="UInt64"), "Dr1": SimTypeLongLong(signed=False, label="UInt64"), "Dr2": SimTypeLongLong(signed=False, label="UInt64"), "Dr3": SimTypeLongLong(signed=False, label="UInt64"), "Dr6": SimTypeLongLong(signed=False, label="UInt64"), "Dr7": SimTypeLongLong(signed=False, label="UInt64"), "Rax": SimTypeLongLong(signed=False, label="UInt64"), "Rcx": SimTypeLongLong(signed=False, label="UInt64"), "Rdx": SimTypeLongLong(signed=False, label="UInt64"), "Rbx": SimTypeLongLong(signed=False, label="UInt64"), "Rsp": SimTypeLongLong(signed=False, label="UInt64"), "Rbp": SimTypeLongLong(signed=False, label="UInt64"), "Rsi": SimTypeLongLong(signed=False, label="UInt64"), "Rdi": SimTypeLongLong(signed=False, label="UInt64"), "R8": SimTypeLongLong(signed=False, label="UInt64"), "R9": SimTypeLongLong(signed=False, label="UInt64"), "R10": SimTypeLongLong(signed=False, label="UInt64"), "R11": SimTypeLongLong(signed=False, label="UInt64"), "R12": SimTypeLongLong(signed=False, label="UInt64"), "R13": SimTypeLongLong(signed=False, label="UInt64"), "R14": SimTypeLongLong(signed=False, label="UInt64"), "R15": SimTypeLongLong(signed=False, label="UInt64"), "Rip": SimTypeLongLong(signed=False, label="UInt64"), "Anonymous": SimUnion({"FltSave": SimTypeBottom(label="XSAVE_FORMAT"), "Anonymous": SimStruct({"Header": SimTypeFixedSizeArray(SimTypeBottom(label="M128A"), 2), "Legacy": SimTypeFixedSizeArray(SimTypeBottom(label="M128A"), 8), "Xmm0": SimTypeBottom(label="M128A"), "Xmm1": SimTypeBottom(label="M128A"), "Xmm2": SimTypeBottom(label="M128A"), "Xmm3": SimTypeBottom(label="M128A"), "Xmm4": SimTypeBottom(label="M128A"), "Xmm5": SimTypeBottom(label="M128A"), "Xmm6": SimTypeBottom(label="M128A"), "Xmm7": SimTypeBottom(label="M128A"), "Xmm8": SimTypeBottom(label="M128A"), "Xmm9": SimTypeBottom(label="M128A"), "Xmm10": SimTypeBottom(label="M128A"), "Xmm11": SimTypeBottom(label="M128A"), "Xmm12": SimTypeBottom(label="M128A"), "Xmm13": SimTypeBottom(label="M128A"), "Xmm14": SimTypeBottom(label="M128A"), "Xmm15": SimTypeBottom(label="M128A")}, name="_Anonymous_e__Struct", pack=False, align=None)}, name="<anon>", label="None"), "VectorRegister": SimTypeFixedSizeArray(SimTypeBottom(label="M128A"), 26), "VectorControl": SimTypeLongLong(signed=False, label="UInt64"), "DebugControl": SimTypeLongLong(signed=False, label="UInt64"), "LastBranchToRip": SimTypeLongLong(signed=False, label="UInt64"), "LastBranchFromRip": SimTypeLongLong(signed=False, label="UInt64"), "LastExceptionToRip": SimTypeLongLong(signed=False, label="UInt64"), "LastExceptionFromRip": SimTypeLongLong(signed=False, label="UInt64")}, name="CONTEXT", pack=False, align=None), offset=0)}, name="EXCEPTION_POINTERS", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["ExceptionInfo"]), offset=0), arg_names=["lpTopLevelExceptionFilter"]),
#
'GetLastError': SimTypeFunction([], SimTypeInt(signed=False, label="WIN32_ERROR")),
#
'SetLastError': SimTypeFunction([SimTypeInt(signed=False, label="UInt32")], SimTypeBottom(label="Void"), arg_names=["dwErrCode"]),
#
'GetErrorMode': SimTypeFunction([], SimTypeInt(signed=False, label="UInt32")),
#
'SetErrorMode': SimTypeFunction([SimTypeInt(signed=False, label="THREAD_ERROR_MODE")], SimTypeInt(signed=False, label="UInt32"), arg_names=["uMode"]),
#
'AddVectoredExceptionHandler': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeFunction([SimTypePointer(SimStruct({"ExceptionRecord": SimTypePointer(SimStruct({"ExceptionCode": SimTypeInt(signed=True, label="Int32"), "ExceptionFlags": SimTypeInt(signed=False, label="UInt32"), "ExceptionRecord": SimTypePointer(SimTypeBottom(label="EXCEPTION_RECORD"), offset=0), "ExceptionAddress": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "NumberParameters": SimTypeInt(signed=False, label="UInt32"), "ExceptionInformation": SimTypeFixedSizeArray(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), 15)}, name="EXCEPTION_RECORD", pack=False, align=None), offset=0), "ContextRecord": SimTypePointer(SimStruct({"P1Home": SimTypeLongLong(signed=False, label="UInt64"), "P2Home": SimTypeLongLong(signed=False, label="UInt64"), "P3Home": SimTypeLongLong(signed=False, label="UInt64"), "P4Home": SimTypeLongLong(signed=False, label="UInt64"), "P5Home": SimTypeLongLong(signed=False, label="UInt64"), "P6Home": SimTypeLongLong(signed=False, label="UInt64"), "ContextFlags": SimTypeInt(signed=False, label="UInt32"), "MxCsr": SimTypeInt(signed=False, label="UInt32"), "SegCs": SimTypeShort(signed=False, label="UInt16"), "SegDs": SimTypeShort(signed=False, label="UInt16"), "SegEs": SimTypeShort(signed=False, label="UInt16"), "SegFs": SimTypeShort(signed=False, label="UInt16"), "SegGs": SimTypeShort(signed=False, label="UInt16"), "SegSs": SimTypeShort(signed=False, label="UInt16"), "EFlags": SimTypeInt(signed=False, label="UInt32"), "Dr0": SimTypeLongLong(signed=False, label="UInt64"), "Dr1": SimTypeLongLong(signed=False, label="UInt64"), "Dr2": SimTypeLongLong(signed=False, label="UInt64"), "Dr3": SimTypeLongLong(signed=False, label="UInt64"), "Dr6": SimTypeLongLong(signed=False, label="UInt64"), "Dr7": SimTypeLongLong(signed=False, label="UInt64"), "Rax": SimTypeLongLong(signed=False, label="UInt64"), "Rcx": SimTypeLongLong(signed=False, label="UInt64"), "Rdx": SimTypeLongLong(signed=False, label="UInt64"), "Rbx": SimTypeLongLong(signed=False, label="UInt64"), "Rsp": SimTypeLongLong(signed=False, label="UInt64"), "Rbp": SimTypeLongLong(signed=False, label="UInt64"), "Rsi": SimTypeLongLong(signed=False, label="UInt64"), "Rdi": SimTypeLongLong(signed=False, label="UInt64"), "R8": SimTypeLongLong(signed=False, label="UInt64"), "R9": SimTypeLongLong(signed=False, label="UInt64"), "R10": SimTypeLongLong(signed=False, label="UInt64"), "R11": SimTypeLongLong(signed=False, label="UInt64"), "R12": SimTypeLongLong(signed=False, label="UInt64"), "R13": SimTypeLongLong(signed=False, label="UInt64"), "R14": SimTypeLongLong(signed=False, label="UInt64"), "R15": SimTypeLongLong(signed=False, label="UInt64"), "Rip": SimTypeLongLong(signed=False, label="UInt64"), "Anonymous": SimUnion({"FltSave": SimTypeBottom(label="XSAVE_FORMAT"), "Anonymous": SimStruct({"Header": SimTypeFixedSizeArray(SimTypeBottom(label="M128A"), 2), "Legacy": SimTypeFixedSizeArray(SimTypeBottom(label="M128A"), 8), "Xmm0": SimTypeBottom(label="M128A"), "Xmm1": SimTypeBottom(label="M128A"), "Xmm2": SimTypeBottom(label="M128A"), "Xmm3": SimTypeBottom(label="M128A"), "Xmm4": SimTypeBottom(label="M128A"), "Xmm5": SimTypeBottom(label="M128A"), "Xmm6": SimTypeBottom(label="M128A"), "Xmm7": SimTypeBottom(label="M128A"), "Xmm8": SimTypeBottom(label="M128A"), "Xmm9": SimTypeBottom(label="M128A"), "Xmm10": SimTypeBottom(label="M128A"), "Xmm11": SimTypeBottom(label="M128A"), "Xmm12": SimTypeBottom(label="M128A"), "Xmm13": SimTypeBottom(label="M128A"), "Xmm14": SimTypeBottom(label="M128A"), "Xmm15": SimTypeBottom(label="M128A")}, name="_Anonymous_e__Struct", pack=False, align=None)}, name="<anon>", label="None"), "VectorRegister": SimTypeFixedSizeArray(SimTypeBottom(label="M128A"), 26), "VectorControl": SimTypeLongLong(signed=False, label="UInt64"), "DebugControl": SimTypeLongLong(signed=False, label="UInt64"), "LastBranchToRip": SimTypeLongLong(signed=False, label="UInt64"), "LastBranchFromRip": SimTypeLongLong(signed=False, label="UInt64"), "LastExceptionToRip": SimTypeLongLong(signed=False, label="UInt64"), "LastExceptionFromRip": SimTypeLongLong(signed=False, label="UInt64")}, name="CONTEXT", pack=False, align=None), offset=0)}, name="EXCEPTION_POINTERS", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["ExceptionInfo"]), offset=0)], SimTypePointer(SimTypeBottom(label="Void"), offset=0), arg_names=["First", "Handler"]),
#
'RemoveVectoredExceptionHandler': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["Handle"]),
#
'AddVectoredContinueHandler': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeFunction([SimTypePointer(SimStruct({"ExceptionRecord": SimTypePointer(SimStruct({"ExceptionCode": SimTypeInt(signed=True, label="Int32"), "ExceptionFlags": SimTypeInt(signed=False, label="UInt32"), "ExceptionRecord": SimTypePointer(SimTypeBottom(label="EXCEPTION_RECORD"), offset=0), "ExceptionAddress": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "NumberParameters": SimTypeInt(signed=False, label="UInt32"), "ExceptionInformation": SimTypeFixedSizeArray(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), 15)}, name="EXCEPTION_RECORD", pack=False, align=None), offset=0), "ContextRecord": SimTypePointer(SimStruct({"P1Home": SimTypeLongLong(signed=False, label="UInt64"), "P2Home": SimTypeLongLong(signed=False, label="UInt64"), "P3Home": SimTypeLongLong(signed=False, label="UInt64"), "P4Home": SimTypeLongLong(signed=False, label="UInt64"), "P5Home": SimTypeLongLong(signed=False, label="UInt64"), "P6Home": SimTypeLongLong(signed=False, label="UInt64"), "ContextFlags": SimTypeInt(signed=False, label="UInt32"), "MxCsr": SimTypeInt(signed=False, label="UInt32"), "SegCs": SimTypeShort(signed=False, label="UInt16"), "SegDs": SimTypeShort(signed=False, label="UInt16"), "SegEs": SimTypeShort(signed=False, label="UInt16"), "SegFs": SimTypeShort(signed=False, label="UInt16"), "SegGs": SimTypeShort(signed=False, label="UInt16"), "SegSs": SimTypeShort(signed=False, label="UInt16"), "EFlags": SimTypeInt(signed=False, label="UInt32"), "Dr0": SimTypeLongLong(signed=False, label="UInt64"), "Dr1": SimTypeLongLong(signed=False, label="UInt64"), "Dr2": SimTypeLongLong(signed=False, label="UInt64"), "Dr3": SimTypeLongLong(signed=False, label="UInt64"), "Dr6": SimTypeLongLong(signed=False, label="UInt64"), "Dr7": SimTypeLongLong(signed=False, label="UInt64"), "Rax": SimTypeLongLong(signed=False, label="UInt64"), "Rcx": SimTypeLongLong(signed=False, label="UInt64"), "Rdx": SimTypeLongLong(signed=False, label="UInt64"), "Rbx": SimTypeLongLong(signed=False, label="UInt64"), "Rsp": SimTypeLongLong(signed=False, label="UInt64"), "Rbp": SimTypeLongLong(signed=False, label="UInt64"), "Rsi": SimTypeLongLong(signed=False, label="UInt64"), "Rdi": SimTypeLongLong(signed=False, label="UInt64"), "R8": SimTypeLongLong(signed=False, label="UInt64"), "R9": SimTypeLongLong(signed=False, label="UInt64"), "R10": SimTypeLongLong(signed=False, label="UInt64"), "R11": SimTypeLongLong(signed=False, label="UInt64"), "R12": SimTypeLongLong(signed=False, label="UInt64"), "R13": SimTypeLongLong(signed=False, label="UInt64"), "R14": SimTypeLongLong(signed=False, label="UInt64"), "R15": SimTypeLongLong(signed=False, label="UInt64"), "Rip": SimTypeLongLong(signed=False, label="UInt64"), "Anonymous": SimUnion({"FltSave": SimTypeBottom(label="XSAVE_FORMAT"), "Anonymous": SimStruct({"Header": SimTypeFixedSizeArray(SimTypeBottom(label="M128A"), 2), "Legacy": SimTypeFixedSizeArray(SimTypeBottom(label="M128A"), 8), "Xmm0": SimTypeBottom(label="M128A"), "Xmm1": SimTypeBottom(label="M128A"), "Xmm2": SimTypeBottom(label="M128A"), "Xmm3": SimTypeBottom(label="M128A"), "Xmm4": SimTypeBottom(label="M128A"), "Xmm5": SimTypeBottom(label="M128A"), "Xmm6": SimTypeBottom(label="M128A"), "Xmm7": SimTypeBottom(label="M128A"), "Xmm8": SimTypeBottom(label="M128A"), "Xmm9": SimTypeBottom(label="M128A"), "Xmm10": SimTypeBottom(label="M128A"), "Xmm11": SimTypeBottom(label="M128A"), "Xmm12": SimTypeBottom(label="M128A"), "Xmm13": SimTypeBottom(label="M128A"), "Xmm14": SimTypeBottom(label="M128A"), "Xmm15": SimTypeBottom(label="M128A")}, name="_Anonymous_e__Struct", pack=False, align=None)}, name="<anon>", label="None"), "VectorRegister": SimTypeFixedSizeArray(SimTypeBottom(label="M128A"), 26), "VectorControl": SimTypeLongLong(signed=False, label="UInt64"), "DebugControl": SimTypeLongLong(signed=False, label="UInt64"), "LastBranchToRip": SimTypeLongLong(signed=False, label="UInt64"), "LastBranchFromRip": SimTypeLongLong(signed=False, label="UInt64"), "LastExceptionToRip": SimTypeLongLong(signed=False, label="UInt64"), "LastExceptionFromRip": SimTypeLongLong(signed=False, label="UInt64")}, name="CONTEXT", pack=False, align=None), offset=0)}, name="EXCEPTION_POINTERS", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["ExceptionInfo"]), offset=0)], SimTypePointer(SimTypeBottom(label="Void"), offset=0), arg_names=["First", "Handler"]),
#
'RemoveVectoredContinueHandler': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["Handle"]),
#
'RaiseFailFastException': SimTypeFunction([SimTypePointer(SimStruct({"ExceptionCode": SimTypeInt(signed=True, label="Int32"), "ExceptionFlags": SimTypeInt(signed=False, label="UInt32"), "ExceptionRecord": SimTypePointer(SimTypeBottom(label="EXCEPTION_RECORD"), offset=0), "ExceptionAddress": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "NumberParameters": SimTypeInt(signed=False, label="UInt32"), "ExceptionInformation": SimTypeFixedSizeArray(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), 15)}, name="EXCEPTION_RECORD", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"ContextFlags": SimTypeInt(signed=False, label="UInt32"), "Dr0": SimTypeInt(signed=False, label="UInt32"), "Dr1": SimTypeInt(signed=False, label="UInt32"), "Dr2": SimTypeInt(signed=False, label="UInt32"), "Dr3": SimTypeInt(signed=False, label="UInt32"), "Dr6": SimTypeInt(signed=False, label="UInt32"), "Dr7": SimTypeInt(signed=False, label="UInt32"), "FloatSave": SimTypeBottom(label="FLOATING_SAVE_AREA"), "SegGs": SimTypeInt(signed=False, label="UInt32"), "SegFs": SimTypeInt(signed=False, label="UInt32"), "SegEs": SimTypeInt(signed=False, label="UInt32"), "SegDs": SimTypeInt(signed=False, label="UInt32"), "Edi": SimTypeInt(signed=False, label="UInt32"), "Esi": SimTypeInt(signed=False, label="UInt32"), "Ebx": SimTypeInt(signed=False, label="UInt32"), "Edx": SimTypeInt(signed=False, label="UInt32"), "Ecx": SimTypeInt(signed=False, label="UInt32"), "Eax": SimTypeInt(signed=False, label="UInt32"), "Ebp": SimTypeInt(signed=False, label="UInt32"), "Eip": SimTypeInt(signed=False, label="UInt32"), "SegCs": SimTypeInt(signed=False, label="UInt32"), "EFlags": SimTypeInt(signed=False, label="UInt32"), "Esp": SimTypeInt(signed=False, label="UInt32"), "SegSs": SimTypeInt(signed=False, label="UInt32"), "ExtendedRegisters": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 512)}, name="CONTEXT", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeBottom(label="Void"), arg_names=["pExceptionRecord", "pContextRecord", "dwFlags"]),
#
'FatalAppExitA': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeBottom(label="Void"), arg_names=["uAction", "lpMessageText"]),
#
'FatalAppExitW': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeBottom(label="Void"), arg_names=["uAction", "lpMessageText"]),
#
'GetThreadErrorMode': SimTypeFunction([], SimTypeInt(signed=False, label="UInt32")),
#
'SetThreadErrorMode': SimTypeFunction([SimTypeInt(signed=False, label="THREAD_ERROR_MODE"), SimTypePointer(SimTypeInt(signed=False, label="THREAD_ERROR_MODE"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["dwNewMode", "lpOldMode"]),
#
'ReadProcessMemory': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "lpBaseAddress", "lpBuffer", "nSize", "lpNumberOfBytesRead"]),
#
'WriteProcessMemory': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "lpBaseAddress", "lpBuffer", "nSize", "lpNumberOfBytesWritten"]),
#
'GetThreadContext': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"ContextFlags": SimTypeInt(signed=False, label="UInt32"), "Dr0": SimTypeInt(signed=False, label="UInt32"), "Dr1": SimTypeInt(signed=False, label="UInt32"), "Dr2": SimTypeInt(signed=False, label="UInt32"), "Dr3": SimTypeInt(signed=False, label="UInt32"), "Dr6": SimTypeInt(signed=False, label="UInt32"), "Dr7": SimTypeInt(signed=False, label="UInt32"), "FloatSave": SimTypeBottom(label="FLOATING_SAVE_AREA"), "SegGs": SimTypeInt(signed=False, label="UInt32"), "SegFs": SimTypeInt(signed=False, label="UInt32"), "SegEs": SimTypeInt(signed=False, label="UInt32"), "SegDs": SimTypeInt(signed=False, label="UInt32"), "Edi": SimTypeInt(signed=False, label="UInt32"), "Esi": SimTypeInt(signed=False, label="UInt32"), "Ebx": SimTypeInt(signed=False, label="UInt32"), "Edx": SimTypeInt(signed=False, label="UInt32"), "Ecx": SimTypeInt(signed=False, label="UInt32"), "Eax": SimTypeInt(signed=False, label="UInt32"), "Ebp": SimTypeInt(signed=False, label="UInt32"), "Eip": SimTypeInt(signed=False, label="UInt32"), "SegCs": SimTypeInt(signed=False, label="UInt32"), "EFlags": SimTypeInt(signed=False, label="UInt32"), "Esp": SimTypeInt(signed=False, label="UInt32"), "SegSs": SimTypeInt(signed=False, label="UInt32"), "ExtendedRegisters": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 512)}, name="CONTEXT", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hThread", "lpContext"]),
#
'SetThreadContext': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"ContextFlags": SimTypeInt(signed=False, label="UInt32"), "Dr0": SimTypeInt(signed=False, label="UInt32"), "Dr1": SimTypeInt(signed=False, label="UInt32"), "Dr2": SimTypeInt(signed=False, label="UInt32"), "Dr3": SimTypeInt(signed=False, label="UInt32"), "Dr6": SimTypeInt(signed=False, label="UInt32"), "Dr7": SimTypeInt(signed=False, label="UInt32"), "FloatSave": SimTypeBottom(label="FLOATING_SAVE_AREA"), "SegGs": SimTypeInt(signed=False, label="UInt32"), "SegFs": SimTypeInt(signed=False, label="UInt32"), "SegEs": SimTypeInt(signed=False, label="UInt32"), "SegDs": SimTypeInt(signed=False, label="UInt32"), "Edi": SimTypeInt(signed=False, label="UInt32"), "Esi": SimTypeInt(signed=False, label="UInt32"), "Ebx": SimTypeInt(signed=False, label="UInt32"), "Edx": SimTypeInt(signed=False, label="UInt32"), "Ecx": SimTypeInt(signed=False, label="UInt32"), "Eax": SimTypeInt(signed=False, label="UInt32"), "Ebp": SimTypeInt(signed=False, label="UInt32"), "Eip": SimTypeInt(signed=False, label="UInt32"), "SegCs": SimTypeInt(signed=False, label="UInt32"), "EFlags": SimTypeInt(signed=False, label="UInt32"), "Esp": SimTypeInt(signed=False, label="UInt32"), "SegSs": SimTypeInt(signed=False, label="UInt32"), "ExtendedRegisters": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 512)}, name="CONTEXT", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hThread", "lpContext"]),
#
'FlushInstructionCache': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "lpBaseAddress", "dwSize"]),
#
'Wow64GetThreadContext': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"ContextFlags": SimTypeInt(signed=False, label="UInt32"), "Dr0": SimTypeInt(signed=False, label="UInt32"), "Dr1": SimTypeInt(signed=False, label="UInt32"), "Dr2": SimTypeInt(signed=False, label="UInt32"), "Dr3": SimTypeInt(signed=False, label="UInt32"), "Dr6": SimTypeInt(signed=False, label="UInt32"), "Dr7": SimTypeInt(signed=False, label="UInt32"), "FloatSave": SimStruct({"ControlWord": SimTypeInt(signed=False, label="UInt32"), "StatusWord": SimTypeInt(signed=False, label="UInt32"), "TagWord": SimTypeInt(signed=False, label="UInt32"), "ErrorOffset": SimTypeInt(signed=False, label="UInt32"), "ErrorSelector": SimTypeInt(signed=False, label="UInt32"), "DataOffset": SimTypeInt(signed=False, label="UInt32"), "DataSelector": SimTypeInt(signed=False, label="UInt32"), "RegisterArea": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 80), "Cr0NpxState": SimTypeInt(signed=False, label="UInt32")}, name="WOW64_FLOATING_SAVE_AREA", pack=False, align=None), "SegGs": SimTypeInt(signed=False, label="UInt32"), "SegFs": SimTypeInt(signed=False, label="UInt32"), "SegEs": SimTypeInt(signed=False, label="UInt32"), "SegDs": SimTypeInt(signed=False, label="UInt32"), "Edi": SimTypeInt(signed=False, label="UInt32"), "Esi": SimTypeInt(signed=False, label="UInt32"), "Ebx": SimTypeInt(signed=False, label="UInt32"), "Edx": SimTypeInt(signed=False, label="UInt32"), "Ecx": SimTypeInt(signed=False, label="UInt32"), "Eax": SimTypeInt(signed=False, label="UInt32"), "Ebp": SimTypeInt(signed=False, label="UInt32"), "Eip": SimTypeInt(signed=False, label="UInt32"), "SegCs": SimTypeInt(signed=False, label="UInt32"), "EFlags": SimTypeInt(signed=False, label="UInt32"), "Esp": SimTypeInt(signed=False, label="UInt32"), "SegSs": SimTypeInt(signed=False, label="UInt32"), "ExtendedRegisters": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 512)}, name="WOW64_CONTEXT", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hThread", "lpContext"]),
#
'Wow64SetThreadContext': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"ContextFlags": SimTypeInt(signed=False, label="UInt32"), "Dr0": SimTypeInt(signed=False, label="UInt32"), "Dr1": SimTypeInt(signed=False, label="UInt32"), "Dr2": SimTypeInt(signed=False, label="UInt32"), "Dr3": SimTypeInt(signed=False, label="UInt32"), "Dr6": SimTypeInt(signed=False, label="UInt32"), "Dr7": SimTypeInt(signed=False, label="UInt32"), "FloatSave": SimStruct({"ControlWord": SimTypeInt(signed=False, label="UInt32"), "StatusWord": SimTypeInt(signed=False, label="UInt32"), "TagWord": SimTypeInt(signed=False, label="UInt32"), "ErrorOffset": SimTypeInt(signed=False, label="UInt32"), "ErrorSelector": SimTypeInt(signed=False, label="UInt32"), "DataOffset": SimTypeInt(signed=False, label="UInt32"), "DataSelector": SimTypeInt(signed=False, label="UInt32"), "RegisterArea": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 80), "Cr0NpxState": SimTypeInt(signed=False, label="UInt32")}, name="WOW64_FLOATING_SAVE_AREA", pack=False, align=None), "SegGs": SimTypeInt(signed=False, label="UInt32"), "SegFs": SimTypeInt(signed=False, label="UInt32"), "SegEs": SimTypeInt(signed=False, label="UInt32"), "SegDs": SimTypeInt(signed=False, label="UInt32"), "Edi": SimTypeInt(signed=False, label="UInt32"), "Esi": SimTypeInt(signed=False, label="UInt32"), "Ebx": SimTypeInt(signed=False, label="UInt32"), "Edx": SimTypeInt(signed=False, label="UInt32"), "Ecx": SimTypeInt(signed=False, label="UInt32"), "Eax": SimTypeInt(signed=False, label="UInt32"), "Ebp": SimTypeInt(signed=False, label="UInt32"), "Eip": SimTypeInt(signed=False, label="UInt32"), "SegCs": SimTypeInt(signed=False, label="UInt32"), "EFlags": SimTypeInt(signed=False, label="UInt32"), "Esp": SimTypeInt(signed=False, label="UInt32"), "SegSs": SimTypeInt(signed=False, label="UInt32"), "ExtendedRegisters": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 512)}, name="WOW64_CONTEXT", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hThread", "lpContext"]),
#
'FatalExit': SimTypeFunction([SimTypeInt(signed=True, label="Int32")], SimTypeBottom(label="Void"), arg_names=["ExitCode"]),
#
'GetThreadSelectorEntry': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"LimitLow": SimTypeShort(signed=False, label="UInt16"), "BaseLow": SimTypeShort(signed=False, label="UInt16"), "HighWord": SimUnion({"Bytes": SimStruct({"BaseMid": SimTypeChar(label="Byte"), "Flags1": SimTypeChar(label="Byte"), "Flags2": SimTypeChar(label="Byte"), "BaseHi": SimTypeChar(label="Byte")}, name="_Bytes_e__Struct", pack=False, align=None), "Bits": SimStruct({"_bitfield": SimTypeInt(signed=False, label="UInt32")}, name="_Bits_e__Struct", pack=False, align=None)}, name="<anon>", label="None")}, name="LDT_ENTRY", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hThread", "dwSelector", "lpSelectorEntry"]),
#
'Wow64GetThreadSelectorEntry': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"LimitLow": SimTypeShort(signed=False, label="UInt16"), "BaseLow": SimTypeShort(signed=False, label="UInt16"), "HighWord": SimUnion({"Bytes": SimStruct({"BaseMid": SimTypeChar(label="Byte"), "Flags1": SimTypeChar(label="Byte"), "Flags2": SimTypeChar(label="Byte"), "BaseHi": SimTypeChar(label="Byte")}, name="_Bytes_e__Struct", pack=False, align=None), "Bits": SimStruct({"_bitfield": SimTypeInt(signed=False, label="UInt32")}, name="_Bits_e__Struct", pack=False, align=None)}, name="<anon>", label="None")}, name="WOW64_LDT_ENTRY", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hThread", "dwSelector", "lpSelectorEntry"]),
#
'DebugSetProcessKillOnExit': SimTypeFunction([SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["KillOnExit"]),
#
'DebugBreakProcess': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["Process"]),
#
'FormatMessageA': SimTypeFunction([SimTypeInt(signed=False, label="FORMAT_MESSAGE_OPTIONS"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypePointer(SimTypeChar(label="SByte"), offset=0), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["dwFlags", "lpSource", "dwMessageId", "dwLanguageId", "lpBuffer", "nSize", "Arguments"]),
#
'FormatMessageW': SimTypeFunction([SimTypeInt(signed=False, label="FORMAT_MESSAGE_OPTIONS"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypePointer(SimTypeChar(label="SByte"), offset=0), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["dwFlags", "lpSource", "dwMessageId", "dwLanguageId", "lpBuffer", "nSize", "Arguments"]),
#
'CopyContext': SimTypeFunction([SimTypePointer(SimStruct({"ContextFlags": SimTypeInt(signed=False, label="UInt32"), "Dr0": SimTypeInt(signed=False, label="UInt32"), "Dr1": SimTypeInt(signed=False, label="UInt32"), "Dr2": SimTypeInt(signed=False, label="UInt32"), "Dr3": SimTypeInt(signed=False, label="UInt32"), "Dr6": SimTypeInt(signed=False, label="UInt32"), "Dr7": SimTypeInt(signed=False, label="UInt32"), "FloatSave": SimTypeBottom(label="FLOATING_SAVE_AREA"), "SegGs": SimTypeInt(signed=False, label="UInt32"), "SegFs": SimTypeInt(signed=False, label="UInt32"), "SegEs": SimTypeInt(signed=False, label="UInt32"), "SegDs": SimTypeInt(signed=False, label="UInt32"), "Edi": SimTypeInt(signed=False, label="UInt32"), "Esi": SimTypeInt(signed=False, label="UInt32"), "Ebx": SimTypeInt(signed=False, label="UInt32"), "Edx": SimTypeInt(signed=False, label="UInt32"), "Ecx": SimTypeInt(signed=False, label="UInt32"), "Eax": SimTypeInt(signed=False, label="UInt32"), "Ebp": SimTypeInt(signed=False, label="UInt32"), "Eip": SimTypeInt(signed=False, label="UInt32"), "SegCs": SimTypeInt(signed=False, label="UInt32"), "EFlags": SimTypeInt(signed=False, label="UInt32"), "Esp": SimTypeInt(signed=False, label="UInt32"), "SegSs": SimTypeInt(signed=False, label="UInt32"), "ExtendedRegisters": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 512)}, name="CONTEXT", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"ContextFlags": SimTypeInt(signed=False, label="UInt32"), "Dr0": SimTypeInt(signed=False, label="UInt32"), "Dr1": SimTypeInt(signed=False, label="UInt32"), "Dr2": SimTypeInt(signed=False, label="UInt32"), "Dr3": SimTypeInt(signed=False, label="UInt32"), "Dr6": SimTypeInt(signed=False, label="UInt32"), "Dr7": SimTypeInt(signed=False, label="UInt32"), "FloatSave": SimTypeBottom(label="FLOATING_SAVE_AREA"), "SegGs": SimTypeInt(signed=False, label="UInt32"), "SegFs": SimTypeInt(signed=False, label="UInt32"), "SegEs": SimTypeInt(signed=False, label="UInt32"), "SegDs": SimTypeInt(signed=False, label="UInt32"), "Edi": SimTypeInt(signed=False, label="UInt32"), "Esi": SimTypeInt(signed=False, label="UInt32"), "Ebx": SimTypeInt(signed=False, label="UInt32"), "Edx": SimTypeInt(signed=False, label="UInt32"), "Ecx": SimTypeInt(signed=False, label="UInt32"), "Eax": SimTypeInt(signed=False, label="UInt32"), "Ebp": SimTypeInt(signed=False, label="UInt32"), "Eip": SimTypeInt(signed=False, label="UInt32"), "SegCs": SimTypeInt(signed=False, label="UInt32"), "EFlags": SimTypeInt(signed=False, label="UInt32"), "Esp": SimTypeInt(signed=False, label="UInt32"), "SegSs": SimTypeInt(signed=False, label="UInt32"), "ExtendedRegisters": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 512)}, name="CONTEXT", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["Destination", "ContextFlags", "Source"]),
#
'InitializeContext': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypePointer(SimStruct({"ContextFlags": SimTypeInt(signed=False, label="UInt32"), "Dr0": SimTypeInt(signed=False, label="UInt32"), "Dr1": SimTypeInt(signed=False, label="UInt32"), "Dr2": SimTypeInt(signed=False, label="UInt32"), "Dr3": SimTypeInt(signed=False, label="UInt32"), "Dr6": SimTypeInt(signed=False, label="UInt32"), "Dr7": SimTypeInt(signed=False, label="UInt32"), "FloatSave": SimTypeBottom(label="FLOATING_SAVE_AREA"), "SegGs": SimTypeInt(signed=False, label="UInt32"), "SegFs": SimTypeInt(signed=False, label="UInt32"), "SegEs": SimTypeInt(signed=False, label="UInt32"), "SegDs": SimTypeInt(signed=False, label="UInt32"), "Edi": SimTypeInt(signed=False, label="UInt32"), "Esi": SimTypeInt(signed=False, label="UInt32"), "Ebx": SimTypeInt(signed=False, label="UInt32"), "Edx": SimTypeInt(signed=False, label="UInt32"), "Ecx": SimTypeInt(signed=False, label="UInt32"), "Eax": SimTypeInt(signed=False, label="UInt32"), "Ebp": SimTypeInt(signed=False, label="UInt32"), "Eip": SimTypeInt(signed=False, label="UInt32"), "SegCs": SimTypeInt(signed=False, label="UInt32"), "EFlags": SimTypeInt(signed=False, label="UInt32"), "Esp": SimTypeInt(signed=False, label="UInt32"), "SegSs": SimTypeInt(signed=False, label="UInt32"), "ExtendedRegisters": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 512)}, name="CONTEXT", pack=False, align=None), offset=0), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["Buffer", "ContextFlags", "Context", "ContextLength"]),
#
'GetEnabledXStateFeatures': SimTypeFunction([], SimTypeLongLong(signed=False, label="UInt64")),
#
'GetXStateFeaturesMask': SimTypeFunction([SimTypePointer(SimStruct({"ContextFlags": SimTypeInt(signed=False, label="UInt32"), "Dr0": SimTypeInt(signed=False, label="UInt32"), "Dr1": SimTypeInt(signed=False, label="UInt32"), "Dr2": SimTypeInt(signed=False, label="UInt32"), "Dr3": SimTypeInt(signed=False, label="UInt32"), "Dr6": SimTypeInt(signed=False, label="UInt32"), "Dr7": SimTypeInt(signed=False, label="UInt32"), "FloatSave": SimTypeBottom(label="FLOATING_SAVE_AREA"), "SegGs": SimTypeInt(signed=False, label="UInt32"), "SegFs": SimTypeInt(signed=False, label="UInt32"), "SegEs": SimTypeInt(signed=False, label="UInt32"), "SegDs": SimTypeInt(signed=False, label="UInt32"), "Edi": SimTypeInt(signed=False, label="UInt32"), "Esi": SimTypeInt(signed=False, label="UInt32"), "Ebx": SimTypeInt(signed=False, label="UInt32"), "Edx": SimTypeInt(signed=False, label="UInt32"), "Ecx": SimTypeInt(signed=False, label="UInt32"), "Eax": SimTypeInt(signed=False, label="UInt32"), "Ebp": SimTypeInt(signed=False, label="UInt32"), "Eip": SimTypeInt(signed=False, label="UInt32"), "SegCs": SimTypeInt(signed=False, label="UInt32"), "EFlags": SimTypeInt(signed=False, label="UInt32"), "Esp": SimTypeInt(signed=False, label="UInt32"), "SegSs": SimTypeInt(signed=False, label="UInt32"), "ExtendedRegisters": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 512)}, name="CONTEXT", pack=False, align=None), offset=0), SimTypePointer(SimTypeLongLong(signed=False, label="UInt64"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["Context", "FeatureMask"]),
#
'LocateXStateFeature': SimTypeFunction([SimTypePointer(SimStruct({"ContextFlags": SimTypeInt(signed=False, label="UInt32"), "Dr0": SimTypeInt(signed=False, label="UInt32"), "Dr1": SimTypeInt(signed=False, label="UInt32"), "Dr2": SimTypeInt(signed=False, label="UInt32"), "Dr3": SimTypeInt(signed=False, label="UInt32"), "Dr6": SimTypeInt(signed=False, label="UInt32"), "Dr7": SimTypeInt(signed=False, label="UInt32"), "FloatSave": SimTypeBottom(label="FLOATING_SAVE_AREA"), "SegGs": SimTypeInt(signed=False, label="UInt32"), "SegFs": SimTypeInt(signed=False, label="UInt32"), "SegEs": SimTypeInt(signed=False, label="UInt32"), "SegDs": SimTypeInt(signed=False, label="UInt32"), "Edi": SimTypeInt(signed=False, label="UInt32"), "Esi": SimTypeInt(signed=False, label="UInt32"), "Ebx": SimTypeInt(signed=False, label="UInt32"), "Edx": SimTypeInt(signed=False, label="UInt32"), "Ecx": SimTypeInt(signed=False, label="UInt32"), "Eax": SimTypeInt(signed=False, label="UInt32"), "Ebp": SimTypeInt(signed=False, label="UInt32"), "Eip": SimTypeInt(signed=False, label="UInt32"), "SegCs": SimTypeInt(signed=False, label="UInt32"), "EFlags": SimTypeInt(signed=False, label="UInt32"), "Esp": SimTypeInt(signed=False, label="UInt32"), "SegSs": SimTypeInt(signed=False, label="UInt32"), "ExtendedRegisters": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 512)}, name="CONTEXT", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypePointer(SimTypeBottom(label="Void"), offset=0), arg_names=["Context", "FeatureId", "Length"]),
#
'SetXStateFeaturesMask': SimTypeFunction([SimTypePointer(SimStruct({"ContextFlags": SimTypeInt(signed=False, label="UInt32"), "Dr0": SimTypeInt(signed=False, label="UInt32"), "Dr1": SimTypeInt(signed=False, label="UInt32"), "Dr2": SimTypeInt(signed=False, label="UInt32"), "Dr3": SimTypeInt(signed=False, label="UInt32"), "Dr6": SimTypeInt(signed=False, label="UInt32"), "Dr7": SimTypeInt(signed=False, label="UInt32"), "FloatSave": SimTypeBottom(label="FLOATING_SAVE_AREA"), "SegGs": SimTypeInt(signed=False, label="UInt32"), "SegFs": SimTypeInt(signed=False, label="UInt32"), "SegEs": SimTypeInt(signed=False, label="UInt32"), "SegDs": SimTypeInt(signed=False, label="UInt32"), "Edi": SimTypeInt(signed=False, label="UInt32"), "Esi": SimTypeInt(signed=False, label="UInt32"), "Ebx": SimTypeInt(signed=False, label="UInt32"), "Edx": SimTypeInt(signed=False, label="UInt32"), "Ecx": SimTypeInt(signed=False, label="UInt32"), "Eax": SimTypeInt(signed=False, label="UInt32"), "Ebp": SimTypeInt(signed=False, label="UInt32"), "Eip": SimTypeInt(signed=False, label="UInt32"), "SegCs": SimTypeInt(signed=False, label="UInt32"), "EFlags": SimTypeInt(signed=False, label="UInt32"), "Esp": SimTypeInt(signed=False, label="UInt32"), "SegSs": SimTypeInt(signed=False, label="UInt32"), "ExtendedRegisters": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 512)}, name="CONTEXT", pack=False, align=None), offset=0), SimTypeLongLong(signed=False, label="UInt64")], SimTypeInt(signed=True, label="Int32"), arg_names=["Context", "FeatureMask"]),
#
'PssCaptureSnapshot': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="PSS_CAPTURE_FLAGS"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["ProcessHandle", "CaptureFlags", "ThreadContextFlags", "SnapshotHandle"]),
#
'PssFreeSnapshot': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["ProcessHandle", "SnapshotHandle"]),
#
'PssQuerySnapshot': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="PSS_QUERY_INFORMATION_CLASS"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["SnapshotHandle", "InformationClass", "Buffer", "BufferLength"]),
#
'PssWalkSnapshot': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="PSS_WALK_INFORMATION_CLASS"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeBottom(label="Void"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["SnapshotHandle", "InformationClass", "WalkMarkerHandle", "Buffer", "BufferLength"]),
#
'PssDuplicateSnapshot': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0), SimTypeInt(signed=False, label="PSS_DUPLICATE_FLAGS")], SimTypeInt(signed=False, label="UInt32"), arg_names=["SourceProcessHandle", "SnapshotHandle", "TargetProcessHandle", "TargetSnapshotHandle", "Flags"]),
#
'PssWalkMarkerCreate': SimTypeFunction([SimTypePointer(SimStruct({"Context": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "AllocRoutine": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "FreeRoutine": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)}, name="PSS_ALLOCATOR", pack=False, align=None), offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["Allocator", "WalkMarkerHandle"]),
#
'PssWalkMarkerFree': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["WalkMarkerHandle"]),
#
'PssWalkMarkerGetPosition': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["WalkMarkerHandle", "Position"]),
#
'PssWalkMarkerSetPosition': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["WalkMarkerHandle", "Position"]),
#
'PssWalkMarkerSeekToBeginning': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["WalkMarkerHandle"]),
#
'CreateToolhelp32Snapshot': SimTypeFunction([SimTypeInt(signed=False, label="CREATE_TOOLHELP_SNAPSHOT_FLAGS"), SimTypeInt(signed=False, label="UInt32")], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["dwFlags", "th32ProcessID"]),
#
'Heap32ListFirst': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"dwSize": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "th32ProcessID": SimTypeInt(signed=False, label="UInt32"), "th32HeapID": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "dwFlags": SimTypeInt(signed=False, label="UInt32")}, name="HEAPLIST32", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hSnapshot", "lphl"]),
#
'Heap32ListNext': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"dwSize": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "th32ProcessID": SimTypeInt(signed=False, label="UInt32"), "th32HeapID": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "dwFlags": SimTypeInt(signed=False, label="UInt32")}, name="HEAPLIST32", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hSnapshot", "lphl"]),
#
'Heap32First': SimTypeFunction([SimTypePointer(SimStruct({"dwSize": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "hHandle": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "dwAddress": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "dwBlockSize": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "dwFlags": SimTypeInt(signed=False, label="HEAPENTRY32_FLAGS"), "dwLockCount": SimTypeInt(signed=False, label="UInt32"), "dwResvd": SimTypeInt(signed=False, label="UInt32"), "th32ProcessID": SimTypeInt(signed=False, label="UInt32"), "th32HeapID": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)}, name="HEAPENTRY32", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lphe", "th32ProcessID", "th32HeapID"]),
#
'Heap32Next': SimTypeFunction([SimTypePointer(SimStruct({"dwSize": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "hHandle": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "dwAddress": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "dwBlockSize": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "dwFlags": SimTypeInt(signed=False, label="HEAPENTRY32_FLAGS"), "dwLockCount": SimTypeInt(signed=False, label="UInt32"), "dwResvd": SimTypeInt(signed=False, label="UInt32"), "th32ProcessID": SimTypeInt(signed=False, label="UInt32"), "th32HeapID": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)}, name="HEAPENTRY32", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lphe"]),
#
'Toolhelp32ReadProcessMemory': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["th32ProcessID", "lpBaseAddress", "lpBuffer", "cbRead", "lpNumberOfBytesRead"]),
#
'Process32FirstW': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"dwSize": SimTypeInt(signed=False, label="UInt32"), "cntUsage": SimTypeInt(signed=False, label="UInt32"), "th32ProcessID": SimTypeInt(signed=False, label="UInt32"), "th32DefaultHeapID": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "th32ModuleID": SimTypeInt(signed=False, label="UInt32"), "cntThreads": SimTypeInt(signed=False, label="UInt32"), "th32ParentProcessID": SimTypeInt(signed=False, label="UInt32"), "pcPriClassBase": SimTypeInt(signed=True, label="Int32"), "dwFlags": SimTypeInt(signed=False, label="UInt32"), "szExeFile": SimTypeFixedSizeArray(SimTypeChar(label="Char"), 260)}, name="PROCESSENTRY32W", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hSnapshot", "lppe"]),
#
'Process32NextW': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"dwSize": SimTypeInt(signed=False, label="UInt32"), "cntUsage": SimTypeInt(signed=False, label="UInt32"), "th32ProcessID": SimTypeInt(signed=False, label="UInt32"), "th32DefaultHeapID": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "th32ModuleID": SimTypeInt(signed=False, label="UInt32"), "cntThreads": SimTypeInt(signed=False, label="UInt32"), "th32ParentProcessID": SimTypeInt(signed=False, label="UInt32"), "pcPriClassBase": SimTypeInt(signed=True, label="Int32"), "dwFlags": SimTypeInt(signed=False, label="UInt32"), "szExeFile": SimTypeFixedSizeArray(SimTypeChar(label="Char"), 260)}, name="PROCESSENTRY32W", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hSnapshot", "lppe"]),
#
'Process32First': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"dwSize": SimTypeInt(signed=False, label="UInt32"), "cntUsage": SimTypeInt(signed=False, label="UInt32"), "th32ProcessID": SimTypeInt(signed=False, label="UInt32"), "th32DefaultHeapID": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "th32ModuleID": SimTypeInt(signed=False, label="UInt32"), "cntThreads": SimTypeInt(signed=False, label="UInt32"), "th32ParentProcessID": SimTypeInt(signed=False, label="UInt32"), "pcPriClassBase": SimTypeInt(signed=True, label="Int32"), "dwFlags": SimTypeInt(signed=False, label="UInt32"), "szExeFile": SimTypeFixedSizeArray(SimTypeBottom(label="CHAR"), 260)}, name="PROCESSENTRY32", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hSnapshot", "lppe"]),
#
'Process32Next': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"dwSize": SimTypeInt(signed=False, label="UInt32"), "cntUsage": SimTypeInt(signed=False, label="UInt32"), "th32ProcessID": SimTypeInt(signed=False, label="UInt32"), "th32DefaultHeapID": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "th32ModuleID": SimTypeInt(signed=False, label="UInt32"), "cntThreads": SimTypeInt(signed=False, label="UInt32"), "th32ParentProcessID": SimTypeInt(signed=False, label="UInt32"), "pcPriClassBase": SimTypeInt(signed=True, label="Int32"), "dwFlags": SimTypeInt(signed=False, label="UInt32"), "szExeFile": SimTypeFixedSizeArray(SimTypeBottom(label="CHAR"), 260)}, name="PROCESSENTRY32", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hSnapshot", "lppe"]),
#
'Thread32First': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"dwSize": SimTypeInt(signed=False, label="UInt32"), "cntUsage": SimTypeInt(signed=False, label="UInt32"), "th32ThreadID": SimTypeInt(signed=False, label="UInt32"), "th32OwnerProcessID": SimTypeInt(signed=False, label="UInt32"), "tpBasePri": SimTypeInt(signed=True, label="Int32"), "tpDeltaPri": SimTypeInt(signed=True, label="Int32"), "dwFlags": SimTypeInt(signed=False, label="UInt32")}, name="THREADENTRY32", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hSnapshot", "lpte"]),
#
'Thread32Next': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"dwSize": SimTypeInt(signed=False, label="UInt32"), "cntUsage": SimTypeInt(signed=False, label="UInt32"), "th32ThreadID": SimTypeInt(signed=False, label="UInt32"), "th32OwnerProcessID": SimTypeInt(signed=False, label="UInt32"), "tpBasePri": SimTypeInt(signed=True, label="Int32"), "tpDeltaPri": SimTypeInt(signed=True, label="Int32"), "dwFlags": SimTypeInt(signed=False, label="UInt32")}, name="THREADENTRY32", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hSnapshot", "lpte"]),
#
'Module32FirstW': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"dwSize": SimTypeInt(signed=False, label="UInt32"), "th32ModuleID": SimTypeInt(signed=False, label="UInt32"), "th32ProcessID": SimTypeInt(signed=False, label="UInt32"), "GlblcntUsage": SimTypeInt(signed=False, label="UInt32"), "ProccntUsage": SimTypeInt(signed=False, label="UInt32"), "modBaseAddr": SimTypePointer(SimTypeChar(label="Byte"), offset=0), "modBaseSize": SimTypeInt(signed=False, label="UInt32"), "hModule": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "szModule": SimTypeFixedSizeArray(SimTypeChar(label="Char"), 256), "szExePath": SimTypeFixedSizeArray(SimTypeChar(label="Char"), 260)}, name="MODULEENTRY32W", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hSnapshot", "lpme"]),
#
'Module32NextW': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"dwSize": SimTypeInt(signed=False, label="UInt32"), "th32ModuleID": SimTypeInt(signed=False, label="UInt32"), "th32ProcessID": SimTypeInt(signed=False, label="UInt32"), "GlblcntUsage": SimTypeInt(signed=False, label="UInt32"), "ProccntUsage": SimTypeInt(signed=False, label="UInt32"), "modBaseAddr": SimTypePointer(SimTypeChar(label="Byte"), offset=0), "modBaseSize": SimTypeInt(signed=False, label="UInt32"), "hModule": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "szModule": SimTypeFixedSizeArray(SimTypeChar(label="Char"), 256), "szExePath": SimTypeFixedSizeArray(SimTypeChar(label="Char"), 260)}, name="MODULEENTRY32W", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hSnapshot", "lpme"]),
#
'Module32First': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"dwSize": SimTypeInt(signed=False, label="UInt32"), "th32ModuleID": SimTypeInt(signed=False, label="UInt32"), "th32ProcessID": SimTypeInt(signed=False, label="UInt32"), "GlblcntUsage": SimTypeInt(signed=False, label="UInt32"), "ProccntUsage": SimTypeInt(signed=False, label="UInt32"), "modBaseAddr": SimTypePointer(SimTypeChar(label="Byte"), offset=0), "modBaseSize": SimTypeInt(signed=False, label="UInt32"), "hModule": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "szModule": SimTypeFixedSizeArray(SimTypeBottom(label="CHAR"), 256), "szExePath": SimTypeFixedSizeArray(SimTypeBottom(label="CHAR"), 260)}, name="MODULEENTRY32", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hSnapshot", "lpme"]),
#
'Module32Next': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"dwSize": SimTypeInt(signed=False, label="UInt32"), "th32ModuleID": SimTypeInt(signed=False, label="UInt32"), "th32ProcessID": SimTypeInt(signed=False, label="UInt32"), "GlblcntUsage": SimTypeInt(signed=False, label="UInt32"), "ProccntUsage": SimTypeInt(signed=False, label="UInt32"), "modBaseAddr": SimTypePointer(SimTypeChar(label="Byte"), offset=0), "modBaseSize": SimTypeInt(signed=False, label="UInt32"), "hModule": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "szModule": SimTypeFixedSizeArray(SimTypeBottom(label="CHAR"), 256), "szExePath": SimTypeFixedSizeArray(SimTypeBottom(label="CHAR"), 260)}, name="MODULEENTRY32", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hSnapshot", "lpme"]),
#
'SetEnvironmentStringsW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["NewEnvironment"]),
#
'GetCommandLineA': SimTypeFunction([], SimTypePointer(SimTypeChar(label="Byte"), offset=0)),
#
'GetCommandLineW': SimTypeFunction([], SimTypePointer(SimTypeChar(label="Char"), offset=0)),
#
'GetEnvironmentStrings': SimTypeFunction([], SimTypePointer(SimTypeChar(label="Byte"), offset=0)),
#
'GetEnvironmentStringsW': SimTypeFunction([], SimTypePointer(SimTypeChar(label="Char"), offset=0)),
#
'FreeEnvironmentStringsA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["penv"]),
#
'FreeEnvironmentStringsW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["penv"]),
#
'GetEnvironmentVariableA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpName", "lpBuffer", "nSize"]),
#
'GetEnvironmentVariableW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpName", "lpBuffer", "nSize"]),
#
'SetEnvironmentVariableA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpName", "lpValue"]),
#
'SetEnvironmentVariableW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpName", "lpValue"]),
#
'ExpandEnvironmentStringsA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpSrc", "lpDst", "nSize"]),
#
'ExpandEnvironmentStringsW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpSrc", "lpDst", "nSize"]),
#
'SetCurrentDirectoryA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpPathName"]),
#
'SetCurrentDirectoryW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpPathName"]),
#
'GetCurrentDirectoryA': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["nBufferLength", "lpBuffer"]),
#
'GetCurrentDirectoryW': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["nBufferLength", "lpBuffer"]),
#
'NeedCurrentDirectoryForExePathA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["ExeName"]),
#
'NeedCurrentDirectoryForExePathW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["ExeName"]),
#
'WerRegisterFile': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="WER_REGISTER_FILE_TYPE"), SimTypeInt(signed=False, label="WER_FILE")], SimTypeInt(signed=True, label="Int32"), arg_names=["pwzFile", "regFileType", "dwFlags"]),
#
'WerUnregisterFile': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["pwzFilePath"]),
#
'WerRegisterMemoryBlock': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["pvAddress", "dwSize"]),
#
'WerUnregisterMemoryBlock': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["pvAddress"]),
#
'WerRegisterExcludedMemoryBlock': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["address", "size"]),
#
'WerUnregisterExcludedMemoryBlock': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["address"]),
#
'WerRegisterCustomMetadata': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["key", "value"]),
#
'WerUnregisterCustomMetadata': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["key"]),
#
'WerRegisterAdditionalProcess': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["processId", "captureExtraInfoForThreadId"]),
#
'WerUnregisterAdditionalProcess': SimTypeFunction([SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["processId"]),
#
'WerRegisterAppLocalDump': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["localAppDataRelativePath"]),
#
'WerUnregisterAppLocalDump': SimTypeFunction([], SimTypeInt(signed=True, label="Int32")),
#
'WerSetFlags': SimTypeFunction([SimTypeInt(signed=False, label="WER_FAULT_REPORTING")], SimTypeInt(signed=True, label="Int32"), arg_names=["dwFlags"]),
#
'WerGetFlags': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="WER_FAULT_REPORTING"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "pdwFlags"]),
#
'WerRegisterRuntimeExceptionModule': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["pwszOutOfProcessCallbackDll", "pContext"]),
#
'WerUnregisterRuntimeExceptionModule': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["pwszOutOfProcessCallbackDll", "pContext"]),
#
'IsProcessInJob': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["ProcessHandle", "JobHandle", "Result"]),
#
'CreateJobObjectW': SimTypeFunction([SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpJobAttributes", "lpName"]),
#
'FreeMemoryJobObject': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeBottom(label="Void"), arg_names=["Buffer"]),
#
'OpenJobObjectW': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["dwDesiredAccess", "bInheritHandle", "lpName"]),
#
'AssignProcessToJobObject': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hJob", "hProcess"]),
#
'TerminateJobObject': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hJob", "uExitCode"]),
#
'SetInformationJobObject': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="JOBOBJECTINFOCLASS"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hJob", "JobObjectInformationClass", "lpJobObjectInformation", "cbJobObjectInformationLength"]),
#
'SetIoRateControlInformationJobObject': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"MaxIops": SimTypeLongLong(signed=True, label="Int64"), "MaxBandwidth": SimTypeLongLong(signed=True, label="Int64"), "ReservationIops": SimTypeLongLong(signed=True, label="Int64"), "VolumeName": SimTypePointer(SimTypeChar(label="Char"), offset=0), "BaseIoSize": SimTypeInt(signed=False, label="UInt32"), "ControlFlags": SimTypeBottom(label="JOB_OBJECT_IO_RATE_CONTROL_FLAGS")}, name="JOBOBJECT_IO_RATE_CONTROL_INFORMATION", pack=False, align=None), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["hJob", "IoRateControlInfo"]),
#
'QueryInformationJobObject': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="JOBOBJECTINFOCLASS"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hJob", "JobObjectInformationClass", "lpJobObjectInformation", "cbJobObjectInformationLength", "lpReturnLength"]),
#
'QueryIoRateControlInformationJobObject': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypePointer(SimStruct({"MaxIops": SimTypeLongLong(signed=True, label="Int64"), "MaxBandwidth": SimTypeLongLong(signed=True, label="Int64"), "ReservationIops": SimTypeLongLong(signed=True, label="Int64"), "VolumeName": SimTypePointer(SimTypeChar(label="Char"), offset=0), "BaseIoSize": SimTypeInt(signed=False, label="UInt32"), "ControlFlags": SimTypeBottom(label="JOB_OBJECT_IO_RATE_CONTROL_FLAGS")}, name="JOBOBJECT_IO_RATE_CONTROL_INFORMATION", pack=False, align=None), offset=0), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["hJob", "VolumeName", "InfoBlocks", "InfoBlockCount"]),
#
'CreateJobObjectA': SimTypeFunction([SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpJobAttributes", "lpName"]),
#
'OpenJobObjectA': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["dwDesiredAccess", "bInheritHandle", "lpName"]),
#
'DisableThreadLibraryCalls': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hLibModule"]),
#
'FindResourceExW': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeShort(signed=False, label="UInt16")], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["hModule", "lpType", "lpName", "wLanguage"]),
#
'FreeLibrary': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hLibModule"]),
#
'FreeLibraryAndExitThread': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeBottom(label="Void"), arg_names=["hLibModule", "dwExitCode"]),
#
'FreeResource': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hResData"]),
#
'GetModuleFileNameA': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["hModule", "lpFilename", "nSize"]),
#
'GetModuleFileNameW': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["hModule", "lpFilename", "nSize"]),
#
'GetModuleHandleA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpModuleName"]),
#
'GetModuleHandleW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpModuleName"]),
#
'GetModuleHandleExA': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["dwFlags", "lpModuleName", "phModule"]),
#
'GetModuleHandleExW': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["dwFlags", "lpModuleName", "phModule"]),
#
'GetProcAddress': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypePointer(SimTypeFunction([], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)), offset=0), arg_names=["hModule", "lpProcName"]),
#
'LoadLibraryExA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="LOAD_LIBRARY_FLAGS")], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpLibFileName", "hFile", "dwFlags"]),
#
'LoadLibraryExW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="LOAD_LIBRARY_FLAGS")], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpLibFileName", "hFile", "dwFlags"]),
#
'LoadResource': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["hModule", "hResInfo"]),
#
'LockResource': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypePointer(SimTypeBottom(label="Void"), offset=0), arg_names=["hResData"]),
#
'SizeofResource': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["hModule", "hResInfo"]),
#
'AddDllDirectory': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypePointer(SimTypeBottom(label="Void"), offset=0), arg_names=["NewDirectory"]),
#
'RemoveDllDirectory': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["Cookie"]),
#
'SetDefaultDllDirectories': SimTypeFunction([SimTypeInt(signed=False, label="LOAD_LIBRARY_FLAGS")], SimTypeInt(signed=True, label="Int32"), arg_names=["DirectoryFlags"]),
#
'EnumResourceLanguagesExA': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeShort(signed=False, label="UInt16"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hModule", "lpType", "lpName", "wLanguage", "lParam"]), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeShort(signed=False, label="UInt16")], SimTypeInt(signed=True, label="Int32"), arg_names=["hModule", "lpType", "lpName", "lpEnumFunc", "lParam", "dwFlags", "LangId"]),
#
'EnumResourceLanguagesExW': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeShort(signed=False, label="UInt16"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hModule", "lpType", "lpName", "wLanguage", "lParam"]), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeShort(signed=False, label="UInt16")], SimTypeInt(signed=True, label="Int32"), arg_names=["hModule", "lpType", "lpName", "lpEnumFunc", "lParam", "dwFlags", "LangId"]),
#
'EnumResourceNamesExA': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hModule", "lpType", "lpName", "lParam"]), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeShort(signed=False, label="UInt16")], SimTypeInt(signed=True, label="Int32"), arg_names=["hModule", "lpType", "lpEnumFunc", "lParam", "dwFlags", "LangId"]),
#
'EnumResourceNamesExW': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hModule", "lpType", "lpName", "lParam"]), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeShort(signed=False, label="UInt16")], SimTypeInt(signed=True, label="Int32"), arg_names=["hModule", "lpType", "lpEnumFunc", "lParam", "dwFlags", "LangId"]),
#
'EnumResourceTypesExA': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hModule", "lpType", "lParam"]), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeShort(signed=False, label="UInt16")], SimTypeInt(signed=True, label="Int32"), arg_names=["hModule", "lpEnumFunc", "lParam", "dwFlags", "LangId"]),
#
'EnumResourceTypesExW': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hModule", "lpType", "lParam"]), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeShort(signed=False, label="UInt16")], SimTypeInt(signed=True, label="Int32"), arg_names=["hModule", "lpEnumFunc", "lParam", "dwFlags", "LangId"]),
#
'FindResourceW': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["hModule", "lpName", "lpType"]),
#
'LoadLibraryA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpLibFileName"]),
#
'LoadLibraryW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpLibFileName"]),
#
'EnumResourceNamesW': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hModule", "lpType", "lpName", "lParam"]), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hModule", "lpType", "lpEnumFunc", "lParam"]),
#
'LoadModule': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpModuleName", "lpParameterBlock"]),
#
'LoadPackagedLibrary': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpwLibFileName", "Reserved"]),
#
'FindResourceA': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["hModule", "lpName", "lpType"]),
#
'FindResourceExA': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeShort(signed=False, label="UInt16")], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["hModule", "lpType", "lpName", "wLanguage"]),
#
'EnumResourceTypesA': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hModule", "lpType", "lParam"]), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hModule", "lpEnumFunc", "lParam"]),
#
'EnumResourceTypesW': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hModule", "lpType", "lParam"]), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hModule", "lpEnumFunc", "lParam"]),
#
'EnumResourceNamesA': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hModule", "lpType", "lpName", "lParam"]), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hModule", "lpType", "lpEnumFunc", "lParam"]),
#
'EnumResourceLanguagesA': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeShort(signed=False, label="UInt16"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hModule", "lpType", "lpName", "wLanguage", "lParam"]), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hModule", "lpType", "lpName", "lpEnumFunc", "lParam"]),
#
'EnumResourceLanguagesW': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeShort(signed=False, label="UInt16"), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hModule", "lpType", "lpName", "wLanguage", "lParam"]), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hModule", "lpType", "lpName", "lpEnumFunc", "lParam"]),
#
'BeginUpdateResourceA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=True, label="Int32")], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["pFileName", "bDeleteExistingResources"]),
#
'BeginUpdateResourceW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=True, label="Int32")], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["pFileName", "bDeleteExistingResources"]),
#
'UpdateResourceA': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeShort(signed=False, label="UInt16"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hUpdate", "lpType", "lpName", "wLanguage", "lpData", "cb"]),
#
'UpdateResourceW': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeShort(signed=False, label="UInt16"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hUpdate", "lpType", "lpName", "wLanguage", "lpData", "cb"]),
#
'EndUpdateResourceA': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hUpdate", "fDiscard"]),
#
'EndUpdateResourceW': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hUpdate", "fDiscard"]),
#
'SetDllDirectoryA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpPathName"]),
#
'SetDllDirectoryW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpPathName"]),
#
'GetDllDirectoryA': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["nBufferLength", "lpBuffer"]),
#
'GetDllDirectoryW': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["nBufferLength", "lpBuffer"]),
#
'CreateMailslotA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpName", "nMaxMessageSize", "lReadTimeout", "lpSecurityAttributes"]),
#
'CreateMailslotW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpName", "nMaxMessageSize", "lReadTimeout", "lpSecurityAttributes"]),
#
'GetMailslotInfo': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hMailslot", "lpMaxMessageSize", "lpNextSize", "lpMessageCount", "lpReadTimeout"]),
#
'SetMailslotInfo': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hMailslot", "lReadTimeout"]),
#
'HeapCreate': SimTypeFunction([SimTypeInt(signed=False, label="HEAP_FLAGS"), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["flOptions", "dwInitialSize", "dwMaximumSize"]),
#
'HeapDestroy': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hHeap"]),
#
'HeapAlloc': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="HEAP_FLAGS"), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)], SimTypePointer(SimTypeBottom(label="Void"), offset=0), arg_names=["hHeap", "dwFlags", "dwBytes"]),
#
'HeapReAlloc': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="HEAP_FLAGS"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)], SimTypePointer(SimTypeBottom(label="Void"), offset=0), arg_names=["hHeap", "dwFlags", "lpMem", "dwBytes"]),
#
'HeapFree': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="HEAP_FLAGS"), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hHeap", "dwFlags", "lpMem"]),
#
'HeapSize': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="HEAP_FLAGS"), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), arg_names=["hHeap", "dwFlags", "lpMem"]),
#
'GetProcessHeap': SimTypeFunction([], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)),
#
'HeapCompact': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="HEAP_FLAGS")], SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), arg_names=["hHeap", "dwFlags"]),
#
'HeapSetInformation': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="HEAP_INFORMATION_CLASS"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["HeapHandle", "HeapInformationClass", "HeapInformation", "HeapInformationLength"]),
#
'HeapValidate': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="HEAP_FLAGS"), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hHeap", "dwFlags", "lpMem"]),
#
'HeapSummary': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"cb": SimTypeInt(signed=False, label="UInt32"), "cbAllocated": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "cbCommitted": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "cbReserved": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "cbMaxReserve": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)}, name="HEAP_SUMMARY", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hHeap", "dwFlags", "lpSummary"]),
#
'GetProcessHeaps': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), label="LPArray", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["NumberOfHeaps", "ProcessHeaps"]),
#
'HeapLock': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hHeap"]),
#
'HeapUnlock': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hHeap"]),
#
'HeapWalk': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"lpData": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "cbData": SimTypeInt(signed=False, label="UInt32"), "cbOverhead": SimTypeChar(label="Byte"), "iRegionIndex": SimTypeChar(label="Byte"), "wFlags": SimTypeShort(signed=False, label="UInt16"), "Anonymous": SimUnion({"Block": SimStruct({"hMem": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "dwReserved": SimTypeFixedSizeArray(SimTypeInt(signed=False, label="UInt32"), 3)}, name="_Block_e__Struct", pack=False, align=None), "Region": SimStruct({"dwCommittedSize": SimTypeInt(signed=False, label="UInt32"), "dwUnCommittedSize": SimTypeInt(signed=False, label="UInt32"), "lpFirstBlock": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "lpLastBlock": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="_Region_e__Struct", pack=False, align=None)}, name="<anon>", label="None")}, name="PROCESS_HEAP_ENTRY", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hHeap", "lpEntry"]),
#
'HeapQueryInformation': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="HEAP_INFORMATION_CLASS"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["HeapHandle", "HeapInformationClass", "HeapInformation", "HeapInformationLength", "ReturnLength"]),
#
'VirtualAlloc': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypeInt(signed=False, label="VIRTUAL_ALLOCATION_TYPE"), SimTypeInt(signed=False, label="PAGE_PROTECTION_FLAGS")], SimTypePointer(SimTypeBottom(label="Void"), offset=0), arg_names=["lpAddress", "dwSize", "flAllocationType", "flProtect"]),
#
'VirtualProtect': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypeInt(signed=False, label="PAGE_PROTECTION_FLAGS"), SimTypePointer(SimTypeInt(signed=False, label="PAGE_PROTECTION_FLAGS"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpAddress", "dwSize", "flNewProtect", "lpflOldProtect"]),
#
'VirtualFree': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypeInt(signed=False, label="VIRTUAL_FREE_TYPE")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpAddress", "dwSize", "dwFreeType"]),
#
'VirtualQuery': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimStruct({"BaseAddress": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "AllocationBase": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "AllocationProtect": SimTypeInt(signed=False, label="PAGE_PROTECTION_FLAGS"), "RegionSize": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "State": SimTypeInt(signed=False, label="VIRTUAL_ALLOCATION_TYPE"), "Protect": SimTypeInt(signed=False, label="PAGE_PROTECTION_FLAGS"), "Type": SimTypeInt(signed=False, label="PAGE_TYPE")}, name="MEMORY_BASIC_INFORMATION", pack=False, align=None), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)], SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), arg_names=["lpAddress", "lpBuffer", "dwLength"]),
#
'VirtualAllocEx': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypeInt(signed=False, label="VIRTUAL_ALLOCATION_TYPE"), SimTypeInt(signed=False, label="PAGE_PROTECTION_FLAGS")], SimTypePointer(SimTypeBottom(label="Void"), offset=0), arg_names=["hProcess", "lpAddress", "dwSize", "flAllocationType", "flProtect"]),
#
'VirtualProtectEx': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypeInt(signed=False, label="PAGE_PROTECTION_FLAGS"), SimTypePointer(SimTypeInt(signed=False, label="PAGE_PROTECTION_FLAGS"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "lpAddress", "dwSize", "flNewProtect", "lpflOldProtect"]),
#
'VirtualQueryEx': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimStruct({"BaseAddress": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "AllocationBase": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "AllocationProtect": SimTypeInt(signed=False, label="PAGE_PROTECTION_FLAGS"), "RegionSize": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "State": SimTypeInt(signed=False, label="VIRTUAL_ALLOCATION_TYPE"), "Protect": SimTypeInt(signed=False, label="PAGE_PROTECTION_FLAGS"), "Type": SimTypeInt(signed=False, label="PAGE_TYPE")}, name="MEMORY_BASIC_INFORMATION", pack=False, align=None), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)], SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), arg_names=["hProcess", "lpAddress", "lpBuffer", "dwLength"]),
#
'CreateFileMappingW': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="PAGE_PROTECTION_FLAGS"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["hFile", "lpFileMappingAttributes", "flProtect", "dwMaximumSizeHigh", "dwMaximumSizeLow", "lpName"]),
#
'OpenFileMappingW': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["dwDesiredAccess", "bInheritHandle", "lpName"]),
#
'MapViewOfFile': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="FILE_MAP"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)], SimTypePointer(SimTypeBottom(label="Void"), offset=0), arg_names=["hFileMappingObject", "dwDesiredAccess", "dwFileOffsetHigh", "dwFileOffsetLow", "dwNumberOfBytesToMap"]),
#
'MapViewOfFileEx': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="FILE_MAP"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypePointer(SimTypeBottom(label="Void"), offset=0), arg_names=["hFileMappingObject", "dwDesiredAccess", "dwFileOffsetHigh", "dwFileOffsetLow", "dwNumberOfBytesToMap", "lpBaseAddress"]),
#
'VirtualFreeEx': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypeInt(signed=False, label="VIRTUAL_FREE_TYPE")], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "lpAddress", "dwSize", "dwFreeType"]),
#
'FlushViewOfFile': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpBaseAddress", "dwNumberOfBytesToFlush"]),
#
'UnmapViewOfFile': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpBaseAddress"]),
#
'GetLargePageMinimum': SimTypeFunction([], SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)),
#
'GetProcessWorkingSetSizeEx': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "lpMinimumWorkingSetSize", "lpMaximumWorkingSetSize", "Flags"]),
#
'SetProcessWorkingSetSizeEx': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "dwMinimumWorkingSetSize", "dwMaximumWorkingSetSize", "Flags"]),
#
'VirtualLock': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpAddress", "dwSize"]),
#
'VirtualUnlock': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpAddress", "dwSize"]),
#
'GetWriteWatch': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypePointer(SimTypePointer(SimTypeBottom(label="Void"), offset=0), label="LPArray", offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["dwFlags", "lpBaseAddress", "dwRegionSize", "lpAddresses", "lpdwCount", "lpdwGranularity"]),
#
'ResetWriteWatch': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpBaseAddress", "dwRegionSize"]),
#
'CreateMemoryResourceNotification': SimTypeFunction([SimTypeInt(signed=False, label="MEMORY_RESOURCE_NOTIFICATION_TYPE")], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["NotificationType"]),
#
'QueryMemoryResourceNotification': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["ResourceNotificationHandle", "ResourceState"]),
#
'GetSystemFileCacheSize': SimTypeFunction([SimTypePointer(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpMinimumFileCacheSize", "lpMaximumFileCacheSize", "lpFlags"]),
#
'SetSystemFileCacheSize': SimTypeFunction([SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["MinimumFileCacheSize", "MaximumFileCacheSize", "Flags"]),
#
'CreateFileMappingNumaW': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="PAGE_PROTECTION_FLAGS"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["hFile", "lpFileMappingAttributes", "flProtect", "dwMaximumSizeHigh", "dwMaximumSizeLow", "lpName", "nndPreferred"]),
#
'PrefetchVirtualMemory': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypePointer(SimStruct({"VirtualAddress": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "NumberOfBytes": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)}, name="WIN32_MEMORY_RANGE_ENTRY", pack=False, align=None), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "NumberOfEntries", "VirtualAddresses", "Flags"]),
#
'CreateFileMappingFromApp': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="PAGE_PROTECTION_FLAGS"), SimTypeLongLong(signed=False, label="UInt64"), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["hFile", "SecurityAttributes", "PageProtection", "MaximumSize", "Name"]),
#
'MapViewOfFileFromApp': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="FILE_MAP"), SimTypeLongLong(signed=False, label="UInt64"), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)], SimTypePointer(SimTypeBottom(label="Void"), offset=0), arg_names=["hFileMappingObject", "DesiredAccess", "FileOffset", "NumberOfBytesToMap"]),
#
'UnmapViewOfFileEx': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UNMAP_VIEW_OF_FILE_FLAGS")], SimTypeInt(signed=True, label="Int32"), arg_names=["BaseAddress", "UnmapFlags"]),
#
'AllocateUserPhysicalPages': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), label="LPArray", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "NumberOfPages", "PageArray"]),
#
'FreeUserPhysicalPages': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), label="LPArray", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "NumberOfPages", "PageArray"]),
#
'MapUserPhysicalPages': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), label="LPArray", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["VirtualAddress", "NumberOfPages", "PageArray"]),
#
'AllocateUserPhysicalPagesNuma': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "NumberOfPages", "PageArray", "nndPreferred"]),
#
'VirtualAllocExNuma': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypeInt(signed=False, label="VIRTUAL_ALLOCATION_TYPE"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32")], SimTypePointer(SimTypeBottom(label="Void"), offset=0), arg_names=["hProcess", "lpAddress", "dwSize", "flAllocationType", "flProtect", "nndPreferred"]),
#
'GetMemoryErrorHandlingCapabilities': SimTypeFunction([SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["Capabilities"]),
#
'RegisterBadMemoryNotification': SimTypeFunction([SimTypePointer(SimTypeFunction([], SimTypeBottom(label="Void")), offset=0)], SimTypePointer(SimTypeBottom(label="Void"), offset=0), arg_names=["Callback"]),
#
'UnregisterBadMemoryNotification': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["RegistrationHandle"]),
#
'OfferVirtualMemory': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), label="LPArray", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypeInt(signed=False, label="OFFER_PRIORITY")], SimTypeInt(signed=False, label="UInt32"), arg_names=["VirtualAddress", "Size", "Priority"]),
#
'ReclaimVirtualMemory': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), label="LPArray", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["VirtualAddress", "Size"]),
#
'DiscardVirtualMemory': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), label="LPArray", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["VirtualAddress", "Size"]),
#
'GlobalAlloc': SimTypeFunction([SimTypeInt(signed=False, label="GLOBAL_ALLOC_FLAGS"), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["uFlags", "dwBytes"]),
#
'GlobalReAlloc': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["hMem", "dwBytes", "uFlags"]),
#
'GlobalSize': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), arg_names=["hMem"]),
#
'GlobalUnlock': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hMem"]),
#
'GlobalLock': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypePointer(SimTypeBottom(label="Void"), offset=0), arg_names=["hMem"]),
#
'GlobalFlags': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["hMem"]),
#
'GlobalHandle': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["pMem"]),
#
'GlobalFree': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["hMem"]),
#
'LocalAlloc': SimTypeFunction([SimTypeInt(signed=False, label="LOCAL_ALLOC_FLAGS"), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["uFlags", "uBytes"]),
#
'LocalReAlloc': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["hMem", "uBytes", "uFlags"]),
#
'LocalLock': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypePointer(SimTypeBottom(label="Void"), offset=0), arg_names=["hMem"]),
#
'LocalHandle': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["pMem"]),
#
'LocalUnlock': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hMem"]),
#
'LocalSize': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), arg_names=["hMem"]),
#
'LocalFlags': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["hMem"]),
#
'LocalFree': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["hMem"]),
#
'CreateFileMappingA': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="PAGE_PROTECTION_FLAGS"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["hFile", "lpFileMappingAttributes", "flProtect", "dwMaximumSizeHigh", "dwMaximumSizeLow", "lpName"]),
#
'CreateFileMappingNumaA': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="PAGE_PROTECTION_FLAGS"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["hFile", "lpFileMappingAttributes", "flProtect", "dwMaximumSizeHigh", "dwMaximumSizeLow", "lpName", "nndPreferred"]),
#
'OpenFileMappingA': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["dwDesiredAccess", "bInheritHandle", "lpName"]),
#
'MapViewOfFileExNuma': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="FILE_MAP"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypePointer(SimTypeBottom(label="Void"), offset=0), arg_names=["hFileMappingObject", "dwDesiredAccess", "dwFileOffsetHigh", "dwFileOffsetLow", "dwNumberOfBytesToMap", "lpBaseAddress", "nndPreferred"]),
#
'IsBadReadPtr': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lp", "ucb"]),
#
'IsBadWritePtr': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lp", "ucb"]),
#
'IsBadCodePtr': SimTypeFunction([SimTypePointer(SimTypeFunction([], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpfn"]),
#
'IsBadStringPtrA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpsz", "ucchMax"]),
#
'IsBadStringPtrW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpsz", "ucchMax"]),
#
'MapUserPhysicalPagesScatter': SimTypeFunction([SimTypePointer(SimTypePointer(SimTypeBottom(label="Void"), offset=0), label="LPArray", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), label="LPArray", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["VirtualAddresses", "NumberOfPages", "PageArray"]),
#
'AddSecureMemoryCacheCallback': SimTypeFunction([SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)], SimTypeChar(label="Byte"), arg_names=["Addr", "Range"]), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["pfnCallBack"]),
#
'RemoveSecureMemoryCacheCallback': SimTypeFunction([SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)], SimTypeChar(label="Byte"), arg_names=["Addr", "Range"]), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["pfnCallBack"]),
#
'EnableThreadProfiling': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeLongLong(signed=False, label="UInt64"), SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["ThreadHandle", "Flags", "HardwareCounters", "PerformanceDataHandle"]),
#
'DisableThreadProfiling': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["PerformanceDataHandle"]),
#
'QueryThreadProfiling': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["ThreadHandle", "Enabled"]),
#
'ReadThreadProfilingData': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"Size": SimTypeShort(signed=False, label="UInt16"), "Version": SimTypeChar(label="Byte"), "HwCountersCount": SimTypeChar(label="Byte"), "ContextSwitchCount": SimTypeInt(signed=False, label="UInt32"), "WaitReasonBitMap": SimTypeLongLong(signed=False, label="UInt64"), "CycleTime": SimTypeLongLong(signed=False, label="UInt64"), "RetryCount": SimTypeInt(signed=False, label="UInt32"), "Reserved": SimTypeInt(signed=False, label="UInt32"), "HwCounters": SimTypeFixedSizeArray(SimStruct({"Type": SimTypeInt(signed=False, label="HARDWARE_COUNTER_TYPE"), "Reserved": SimTypeInt(signed=False, label="UInt32"), "Value": SimTypeLongLong(signed=False, label="UInt64")}, name="HARDWARE_COUNTER_DATA", pack=False, align=None), 16)}, name="PERFORMANCE_DATA", pack=False, align=None), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["PerformanceDataHandle", "Flags", "PerformanceData"]),
#
'QueryPerformanceCounter': SimTypeFunction([SimTypePointer(SimUnion({"Anonymous": SimStruct({"LowPart": SimTypeInt(signed=False, label="UInt32"), "HighPart": SimTypeInt(signed=True, label="Int32")}, name="_Anonymous_e__Struct", pack=False, align=None), "u": SimStruct({"LowPart": SimTypeInt(signed=False, label="UInt32"), "HighPart": SimTypeInt(signed=True, label="Int32")}, name="_u_e__Struct", pack=False, align=None), "QuadPart": SimTypeLongLong(signed=True, label="Int64")}, name="<anon>", label="None"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpPerformanceCount"]),
#
'QueryPerformanceFrequency': SimTypeFunction([SimTypePointer(SimUnion({"Anonymous": SimStruct({"LowPart": SimTypeInt(signed=False, label="UInt32"), "HighPart": SimTypeInt(signed=True, label="Int32")}, name="_Anonymous_e__Struct", pack=False, align=None), "u": SimStruct({"LowPart": SimTypeInt(signed=False, label="UInt32"), "HighPart": SimTypeInt(signed=True, label="Int32")}, name="_u_e__Struct", pack=False, align=None), "QuadPart": SimTypeLongLong(signed=True, label="Int64")}, name="<anon>", label="None"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpFrequency"]),
#
'CreatePipe': SimTypeFunction([SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0), SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hReadPipe", "hWritePipe", "lpPipeAttributes", "nSize"]),
#
'ConnectNamedPipe': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"Internal": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "InternalHigh": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "Anonymous": SimUnion({"Anonymous": SimStruct({"Offset": SimTypeInt(signed=False, label="UInt32"), "OffsetHigh": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None), "Pointer": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="<anon>", label="None"), "hEvent": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)}, name="OVERLAPPED", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hNamedPipe", "lpOverlapped"]),
#
'DisconnectNamedPipe': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hNamedPipe"]),
#
'SetNamedPipeHandleState': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="NAMED_PIPE_MODE"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hNamedPipe", "lpMode", "lpMaxCollectionCount", "lpCollectDataTimeout"]),
#
'PeekNamedPipe': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hNamedPipe", "lpBuffer", "nBufferSize", "lpBytesRead", "lpTotalBytesAvail", "lpBytesLeftThisMessage"]),
#
'TransactNamedPipe': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimStruct({"Internal": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "InternalHigh": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "Anonymous": SimUnion({"Anonymous": SimStruct({"Offset": SimTypeInt(signed=False, label="UInt32"), "OffsetHigh": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None), "Pointer": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="<anon>", label="None"), "hEvent": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)}, name="OVERLAPPED", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hNamedPipe", "lpInBuffer", "nInBufferSize", "lpOutBuffer", "nOutBufferSize", "lpBytesRead", "lpOverlapped"]),
#
'CreateNamedPipeW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="FILE_FLAGS_AND_ATTRIBUTES"), SimTypeInt(signed=False, label="NAMED_PIPE_MODE"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpName", "dwOpenMode", "dwPipeMode", "nMaxInstances", "nOutBufferSize", "nInBufferSize", "nDefaultTimeOut", "lpSecurityAttributes"]),
#
'WaitNamedPipeW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="WAIT_NAMED_PIPE_TIME_OUT_FLAGS")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpNamedPipeName", "nTimeOut"]),
#
'GetNamedPipeClientComputerNameW': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["Pipe", "ClientComputerName", "ClientComputerNameLength"]),
#
'GetNamedPipeInfo': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="NAMED_PIPE_MODE"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hNamedPipe", "lpFlags", "lpOutBufferSize", "lpInBufferSize", "lpMaxInstances"]),
#
'GetNamedPipeHandleStateW': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="NAMED_PIPE_MODE"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hNamedPipe", "lpState", "lpCurInstances", "lpMaxCollectionCount", "lpCollectDataTimeout", "lpUserName", "nMaxUserNameSize"]),
#
'CallNamedPipeW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpNamedPipeName", "lpInBuffer", "nInBufferSize", "lpOutBuffer", "nOutBufferSize", "lpBytesRead", "nTimeOut"]),
#
'CreateNamedPipeA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=False, label="FILE_FLAGS_AND_ATTRIBUTES"), SimTypeInt(signed=False, label="NAMED_PIPE_MODE"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpName", "dwOpenMode", "dwPipeMode", "nMaxInstances", "nOutBufferSize", "nInBufferSize", "nDefaultTimeOut", "lpSecurityAttributes"]),
#
'GetNamedPipeHandleStateA': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="NAMED_PIPE_MODE"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hNamedPipe", "lpState", "lpCurInstances", "lpMaxCollectionCount", "lpCollectDataTimeout", "lpUserName", "nMaxUserNameSize"]),
#
'CallNamedPipeA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpNamedPipeName", "lpInBuffer", "nInBufferSize", "lpOutBuffer", "nOutBufferSize", "lpBytesRead", "nTimeOut"]),
#
'WaitNamedPipeA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=False, label="WAIT_NAMED_PIPE_TIME_OUT_FLAGS")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpNamedPipeName", "nTimeOut"]),
#
'GetNamedPipeClientComputerNameA': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["Pipe", "ClientComputerName", "ClientComputerNameLength"]),
#
'GetNamedPipeClientProcessId': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["Pipe", "ClientProcessId"]),
#
'GetNamedPipeClientSessionId': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["Pipe", "ClientSessionId"]),
#
'GetNamedPipeServerProcessId': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["Pipe", "ServerProcessId"]),
#
'GetNamedPipeServerSessionId': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["Pipe", "ServerSessionId"]),
#
'RequestWakeupLatency': SimTypeFunction([SimTypeInt(signed=False, label="LATENCY_TIME")], SimTypeInt(signed=True, label="Int32"), arg_names=["latency"]),
#
'IsSystemResumeAutomatic': SimTypeFunction([], SimTypeInt(signed=True, label="Int32")),
#
'SetThreadExecutionState': SimTypeFunction([SimTypeInt(signed=False, label="EXECUTION_STATE")], SimTypeInt(signed=False, label="EXECUTION_STATE"), arg_names=["esFlags"]),
#
'PowerCreateRequest': SimTypeFunction([SimTypePointer(SimStruct({"Version": SimTypeInt(signed=False, label="UInt32"), "Flags": SimTypeInt(signed=False, label="POWER_REQUEST_CONTEXT_FLAGS"), "Reason": SimUnion({"Detailed": SimStruct({"LocalizedReasonModule": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "LocalizedReasonId": SimTypeInt(signed=False, label="UInt32"), "ReasonStringCount": SimTypeInt(signed=False, label="UInt32"), "ReasonStrings": SimTypePointer(SimTypePointer(SimTypeChar(label="Char"), offset=0), offset=0)}, name="_Detailed_e__Struct", pack=False, align=None), "SimpleReasonString": SimTypePointer(SimTypeChar(label="Char"), offset=0)}, name="<anon>", label="None")}, name="REASON_CONTEXT", pack=False, align=None), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["Context"]),
#
'PowerSetRequest': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="POWER_REQUEST_TYPE")], SimTypeInt(signed=True, label="Int32"), arg_names=["PowerRequest", "RequestType"]),
#
'PowerClearRequest': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="POWER_REQUEST_TYPE")], SimTypeInt(signed=True, label="Int32"), arg_names=["PowerRequest", "RequestType"]),
#
'GetDevicePowerState': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hDevice", "pfOn"]),
#
'SetSystemPowerState': SimTypeFunction([SimTypeInt(signed=True, label="Int32"), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["fSuspend", "fForce"]),
#
'GetSystemPowerStatus': SimTypeFunction([SimTypePointer(SimStruct({"ACLineStatus": SimTypeChar(label="Byte"), "BatteryFlag": SimTypeChar(label="Byte"), "BatteryLifePercent": SimTypeChar(label="Byte"), "SystemStatusFlag": SimTypeChar(label="Byte"), "BatteryLifeTime": SimTypeInt(signed=False, label="UInt32"), "BatteryFullLifeTime": SimTypeInt(signed=False, label="UInt32")}, name="SYSTEM_POWER_STATUS", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpSystemPowerStatus"]),
#
'K32EnumProcesses': SimTypeFunction([SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpidProcess", "cb", "lpcbNeeded"]),
#
'K32EnumProcessModules': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "lphModule", "cb", "lpcbNeeded"]),
#
'K32EnumProcessModulesEx': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypeInt(signed=False, label="ENUM_PROCESS_MODULES_EX_FLAGS")], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "lphModule", "cb", "lpcbNeeded", "dwFilterFlag"]),
#
'K32GetModuleBaseNameA': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["hProcess", "hModule", "lpBaseName", "nSize"]),
#
'K32GetModuleBaseNameW': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["hProcess", "hModule", "lpBaseName", "nSize"]),
#
'K32GetModuleFileNameExA': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["hProcess", "hModule", "lpFilename", "nSize"]),
#
'K32GetModuleFileNameExW': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["hProcess", "hModule", "lpFilename", "nSize"]),
#
'K32GetModuleInformation': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"lpBaseOfDll": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "SizeOfImage": SimTypeInt(signed=False, label="UInt32"), "EntryPoint": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="MODULEINFO", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "hModule", "lpmodinfo", "cb"]),
#
'K32EmptyWorkingSet': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess"]),
#
'K32QueryWorkingSet': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "pv", "cb"]),
#
'K32QueryWorkingSetEx': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "pv", "cb"]),
#
'K32InitializeProcessForWsWatch': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess"]),
#
'K32GetWsChanges': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"FaultingPc": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "FaultingVa": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="PSAPI_WS_WATCH_INFORMATION", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "lpWatchInfo", "cb"]),
#
'K32GetWsChangesEx': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"BasicInfo": SimStruct({"FaultingPc": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "FaultingVa": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="PSAPI_WS_WATCH_INFORMATION", pack=False, align=None), "FaultingThreadId": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "Flags": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)}, name="PSAPI_WS_WATCH_INFORMATION_EX", pack=False, align=None), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "lpWatchInfoEx", "cb"]),
#
'K32GetMappedFileNameW': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["hProcess", "lpv", "lpFilename", "nSize"]),
#
'K32GetMappedFileNameA': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["hProcess", "lpv", "lpFilename", "nSize"]),
#
'K32EnumDeviceDrivers': SimTypeFunction([SimTypePointer(SimTypePointer(SimTypeBottom(label="Void"), offset=0), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpImageBase", "cb", "lpcbNeeded"]),
#
'K32GetDeviceDriverBaseNameA': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["ImageBase", "lpFilename", "nSize"]),
#
'K32GetDeviceDriverBaseNameW': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["ImageBase", "lpBaseName", "nSize"]),
#
'K32GetDeviceDriverFileNameA': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["ImageBase", "lpFilename", "nSize"]),
#
'K32GetDeviceDriverFileNameW': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["ImageBase", "lpFilename", "nSize"]),
#
'K32GetProcessMemoryInfo': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"cb": SimTypeInt(signed=False, label="UInt32"), "PageFaultCount": SimTypeInt(signed=False, label="UInt32"), "PeakWorkingSetSize": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "WorkingSetSize": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "QuotaPeakPagedPoolUsage": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "QuotaPagedPoolUsage": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "QuotaPeakNonPagedPoolUsage": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "QuotaNonPagedPoolUsage": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "PagefileUsage": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "PeakPagefileUsage": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)}, name="PROCESS_MEMORY_COUNTERS", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["Process", "ppsmemCounters", "cb"]),
#
'K32GetPerformanceInfo': SimTypeFunction([SimTypePointer(SimStruct({"cb": SimTypeInt(signed=False, label="UInt32"), "CommitTotal": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "CommitLimit": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "CommitPeak": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "PhysicalTotal": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "PhysicalAvailable": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "SystemCache": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "KernelTotal": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "KernelPaged": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "KernelNonpaged": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "PageSize": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "HandleCount": SimTypeInt(signed=False, label="UInt32"), "ProcessCount": SimTypeInt(signed=False, label="UInt32"), "ThreadCount": SimTypeInt(signed=False, label="UInt32")}, name="PERFORMANCE_INFORMATION", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["pPerformanceInformation", "cb"]),
#
'K32EnumPageFilesW': SimTypeFunction([SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimStruct({"cb": SimTypeInt(signed=False, label="UInt32"), "Reserved": SimTypeInt(signed=False, label="UInt32"), "TotalSize": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "TotalInUse": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "PeakUsage": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)}, name="ENUM_PAGE_FILE_INFORMATION", pack=False, align=None), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["pContext", "pPageFileInfo", "lpFilename"]), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["pCallBackRoutine", "pContext"]),
#
'K32EnumPageFilesA': SimTypeFunction([SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimStruct({"cb": SimTypeInt(signed=False, label="UInt32"), "Reserved": SimTypeInt(signed=False, label="UInt32"), "TotalSize": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "TotalInUse": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "PeakUsage": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)}, name="ENUM_PAGE_FILE_INFORMATION", pack=False, align=None), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["pContext", "pPageFileInfo", "lpFilename"]), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["pCallBackRoutine", "pContext"]),
#
'K32GetProcessImageFileNameA': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["hProcess", "lpImageFileName", "nSize"]),
#
'K32GetProcessImageFileNameW': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["hProcess", "lpImageFileName", "nSize"]),
#
'RegisterApplicationRecoveryCallback': SimTypeFunction([SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["pvParameter"]), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["pRecoveyCallback", "pvParameter", "dwPingInterval", "dwFlags"]),
#
'UnregisterApplicationRecoveryCallback': SimTypeFunction([], SimTypeInt(signed=True, label="Int32")),
#
'RegisterApplicationRestart': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="REGISTER_APPLICATION_RESTART_FLAGS")], SimTypeInt(signed=True, label="Int32"), arg_names=["pwzCommandline", "dwFlags"]),
#
'UnregisterApplicationRestart': SimTypeFunction([], SimTypeInt(signed=True, label="Int32")),
#
'GetApplicationRecoveryCallback': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["pvParameter"]), offset=0), offset=0), SimTypePointer(SimTypePointer(SimTypeBottom(label="Void"), offset=0), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "pRecoveryCallback", "ppvParameter", "pdwPingInterval", "pdwFlags"]),
#
'GetApplicationRestartSettings': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "pwzCommandline", "pcchSize", "pdwFlags"]),
#
'ApplicationRecoveryInProgress': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["pbCancelled"]),
#
'ApplicationRecoveryFinished': SimTypeFunction([SimTypeInt(signed=True, label="Int32")], SimTypeBottom(label="Void"), arg_names=["bSuccess"]),
#
'ProcessIdToSessionId': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["dwProcessId", "pSessionId"]),
#
'WTSGetActiveConsoleSessionId': SimTypeFunction([], SimTypeInt(signed=False, label="UInt32")),
#
'OOBEComplete': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["isOOBEComplete"]),
#
'RegisterWaitUntilOOBECompleted': SimTypeFunction([SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeBottom(label="Void"), arg_names=["CallbackContext"]), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypePointer(SimTypeBottom(label="Void"), offset=0), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["OOBECompletedCallback", "CallbackContext", "WaitHandle"]),
#
'UnregisterWaitUntilOOBECompleted': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["WaitHandle"]),
#
'GlobalMemoryStatusEx': SimTypeFunction([SimTypePointer(SimStruct({"dwLength": SimTypeInt(signed=False, label="UInt32"), "dwMemoryLoad": SimTypeInt(signed=False, label="UInt32"), "ullTotalPhys": SimTypeLongLong(signed=False, label="UInt64"), "ullAvailPhys": SimTypeLongLong(signed=False, label="UInt64"), "ullTotalPageFile": SimTypeLongLong(signed=False, label="UInt64"), "ullAvailPageFile": SimTypeLongLong(signed=False, label="UInt64"), "ullTotalVirtual": SimTypeLongLong(signed=False, label="UInt64"), "ullAvailVirtual": SimTypeLongLong(signed=False, label="UInt64"), "ullAvailExtendedVirtual": SimTypeLongLong(signed=False, label="UInt64")}, name="MEMORYSTATUSEX", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpBuffer"]),
#
'GetSystemInfo': SimTypeFunction([SimTypePointer(SimStruct({"Anonymous": SimUnion({"dwOemId": SimTypeInt(signed=False, label="UInt32"), "Anonymous": SimStruct({"wProcessorArchitecture": SimTypeInt(signed=False, label="PROCESSOR_ARCHITECTURE"), "wReserved": SimTypeShort(signed=False, label="UInt16")}, name="_Anonymous_e__Struct", pack=False, align=None)}, name="<anon>", label="None"), "dwPageSize": SimTypeInt(signed=False, label="UInt32"), "lpMinimumApplicationAddress": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "lpMaximumApplicationAddress": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "dwActiveProcessorMask": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "dwNumberOfProcessors": SimTypeInt(signed=False, label="UInt32"), "dwProcessorType": SimTypeInt(signed=False, label="UInt32"), "dwAllocationGranularity": SimTypeInt(signed=False, label="UInt32"), "wProcessorLevel": SimTypeShort(signed=False, label="UInt16"), "wProcessorRevision": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEM_INFO", pack=False, align=None), offset=0)], SimTypeBottom(label="Void"), arg_names=["lpSystemInfo"]),
#
'GetSystemTime': SimTypeFunction([SimTypePointer(SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), offset=0)], SimTypeBottom(label="Void"), arg_names=["lpSystemTime"]),
#
'GetSystemTimeAsFileTime': SimTypeFunction([SimTypePointer(SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), offset=0)], SimTypeBottom(label="Void"), arg_names=["lpSystemTimeAsFileTime"]),
#
'GetLocalTime': SimTypeFunction([SimTypePointer(SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), offset=0)], SimTypeBottom(label="Void"), arg_names=["lpSystemTime"]),
#
'IsUserCetAvailableInEnvironment': SimTypeFunction([SimTypeInt(signed=False, label="USER_CET_ENVIRONMENT")], SimTypeInt(signed=True, label="Int32"), arg_names=["UserCetEnvironment"]),
#
'GetSystemLeapSecondInformation': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int32"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["Enabled", "Flags"]),
#
'GetVersion': SimTypeFunction([], SimTypeInt(signed=False, label="UInt32")),
#
'SetLocalTime': SimTypeFunction([SimTypePointer(SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpSystemTime"]),
#
'GetTickCount': SimTypeFunction([], SimTypeInt(signed=False, label="UInt32")),
#
'GetTickCount64': SimTypeFunction([], SimTypeLongLong(signed=False, label="UInt64")),
#
'GetSystemTimeAdjustment': SimTypeFunction([SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpTimeAdjustment", "lpTimeIncrement", "lpTimeAdjustmentDisabled"]),
#
'GetSystemDirectoryA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpBuffer", "uSize"]),
#
'GetSystemDirectoryW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpBuffer", "uSize"]),
#
'GetWindowsDirectoryA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpBuffer", "uSize"]),
#
'GetWindowsDirectoryW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpBuffer", "uSize"]),
#
'GetSystemWindowsDirectoryA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpBuffer", "uSize"]),
#
'GetSystemWindowsDirectoryW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpBuffer", "uSize"]),
#
'GetComputerNameExA': SimTypeFunction([SimTypeInt(signed=False, label="COMPUTER_NAME_FORMAT"), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["NameType", "lpBuffer", "nSize"]),
#
'GetComputerNameExW': SimTypeFunction([SimTypeInt(signed=False, label="COMPUTER_NAME_FORMAT"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["NameType", "lpBuffer", "nSize"]),
#
'SetComputerNameExW': SimTypeFunction([SimTypeInt(signed=False, label="COMPUTER_NAME_FORMAT"), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["NameType", "lpBuffer"]),
#
'SetSystemTime': SimTypeFunction([SimTypePointer(SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpSystemTime"]),
#
'GetVersionExA': SimTypeFunction([SimTypePointer(SimStruct({"dwOSVersionInfoSize": SimTypeInt(signed=False, label="UInt32"), "dwMajorVersion": SimTypeInt(signed=False, label="UInt32"), "dwMinorVersion": SimTypeInt(signed=False, label="UInt32"), "dwBuildNumber": SimTypeInt(signed=False, label="UInt32"), "dwPlatformId": SimTypeInt(signed=False, label="UInt32"), "szCSDVersion": SimTypeFixedSizeArray(SimTypeBottom(label="CHAR"), 128)}, name="OSVERSIONINFOA", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpVersionInformation"]),
#
'GetVersionExW': SimTypeFunction([SimTypePointer(SimStruct({"dwOSVersionInfoSize": SimTypeInt(signed=False, label="UInt32"), "dwMajorVersion": SimTypeInt(signed=False, label="UInt32"), "dwMinorVersion": SimTypeInt(signed=False, label="UInt32"), "dwBuildNumber": SimTypeInt(signed=False, label="UInt32"), "dwPlatformId": SimTypeInt(signed=False, label="UInt32"), "szCSDVersion": SimTypeFixedSizeArray(SimTypeChar(label="Char"), 128)}, name="OSVERSIONINFOW", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpVersionInformation"]),
#
'GetLogicalProcessorInformation': SimTypeFunction([SimTypePointer(SimStruct({"ProcessorMask": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "Relationship": SimTypeInt(signed=False, label="LOGICAL_PROCESSOR_RELATIONSHIP"), "Anonymous": SimUnion({"ProcessorCore": SimStruct({"Flags": SimTypeChar(label="Byte")}, name="_ProcessorCore_e__Struct", pack=False, align=None), "NumaNode": SimStruct({"NodeNumber": SimTypeInt(signed=False, label="UInt32")}, name="_NumaNode_e__Struct", pack=False, align=None), "Cache": SimTypeBottom(label="CACHE_DESCRIPTOR"), "Reserved": SimTypeFixedSizeArray(SimTypeLongLong(signed=False, label="UInt64"), 2)}, name="<anon>", label="None")}, name="SYSTEM_LOGICAL_PROCESSOR_INFORMATION", pack=False, align=None), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["Buffer", "ReturnedLength"]),
#
'GetLogicalProcessorInformationEx': SimTypeFunction([SimTypeInt(signed=False, label="LOGICAL_PROCESSOR_RELATIONSHIP"), SimTypePointer(SimStruct({"Relationship": SimTypeInt(signed=False, label="LOGICAL_PROCESSOR_RELATIONSHIP"), "Size": SimTypeInt(signed=False, label="UInt32"), "Anonymous": SimUnion({"Processor": SimStruct({"Flags": SimTypeChar(label="Byte"), "EfficiencyClass": SimTypeChar(label="Byte"), "Reserved": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 20), "GroupCount": SimTypeShort(signed=False, label="UInt16"), "GroupMask": SimTypePointer(SimStruct({"Mask": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "Group": SimTypeShort(signed=False, label="UInt16"), "Reserved": SimTypeFixedSizeArray(SimTypeShort(signed=False, label="UInt16"), 3)}, name="GROUP_AFFINITY", pack=False, align=None), offset=0)}, name="PROCESSOR_RELATIONSHIP", pack=False, align=None), "NumaNode": SimStruct({"NodeNumber": SimTypeInt(signed=False, label="UInt32"), "Reserved": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 20), "GroupMask": SimStruct({"Mask": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "Group": SimTypeShort(signed=False, label="UInt16"), "Reserved": SimTypeFixedSizeArray(SimTypeShort(signed=False, label="UInt16"), 3)}, name="GROUP_AFFINITY", pack=False, align=None)}, name="NUMA_NODE_RELATIONSHIP", pack=False, align=None), "Cache": SimStruct({"Level": SimTypeChar(label="Byte"), "Associativity": SimTypeChar(label="Byte"), "LineSize": SimTypeShort(signed=False, label="UInt16"), "CacheSize": SimTypeInt(signed=False, label="UInt32"), "Type": SimTypeInt(signed=False, label="PROCESSOR_CACHE_TYPE"), "Reserved": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 20), "GroupMask": SimStruct({"Mask": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "Group": SimTypeShort(signed=False, label="UInt16"), "Reserved": SimTypeFixedSizeArray(SimTypeShort(signed=False, label="UInt16"), 3)}, name="GROUP_AFFINITY", pack=False, align=None)}, name="CACHE_RELATIONSHIP", pack=False, align=None), "Group": SimStruct({"MaximumGroupCount": SimTypeShort(signed=False, label="UInt16"), "ActiveGroupCount": SimTypeShort(signed=False, label="UInt16"), "Reserved": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 20), "GroupInfo": SimTypePointer(SimStruct({"MaximumProcessorCount": SimTypeChar(label="Byte"), "ActiveProcessorCount": SimTypeChar(label="Byte"), "Reserved": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 38), "ActiveProcessorMask": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)}, name="PROCESSOR_GROUP_INFO", pack=False, align=None), offset=0)}, name="GROUP_RELATIONSHIP", pack=False, align=None)}, name="<anon>", label="None")}, name="SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX", pack=False, align=None), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["RelationshipType", "Buffer", "ReturnedLength"]),
#
'GetNativeSystemInfo': SimTypeFunction([SimTypePointer(SimStruct({"Anonymous": SimUnion({"dwOemId": SimTypeInt(signed=False, label="UInt32"), "Anonymous": SimStruct({"wProcessorArchitecture": SimTypeInt(signed=False, label="PROCESSOR_ARCHITECTURE"), "wReserved": SimTypeShort(signed=False, label="UInt16")}, name="_Anonymous_e__Struct", pack=False, align=None)}, name="<anon>", label="None"), "dwPageSize": SimTypeInt(signed=False, label="UInt32"), "lpMinimumApplicationAddress": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "lpMaximumApplicationAddress": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "dwActiveProcessorMask": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "dwNumberOfProcessors": SimTypeInt(signed=False, label="UInt32"), "dwProcessorType": SimTypeInt(signed=False, label="UInt32"), "dwAllocationGranularity": SimTypeInt(signed=False, label="UInt32"), "wProcessorLevel": SimTypeShort(signed=False, label="UInt16"), "wProcessorRevision": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEM_INFO", pack=False, align=None), offset=0)], SimTypeBottom(label="Void"), arg_names=["lpSystemInfo"]),
#
'GetSystemTimePreciseAsFileTime': SimTypeFunction([SimTypePointer(SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), offset=0)], SimTypeBottom(label="Void"), arg_names=["lpSystemTimeAsFileTime"]),
#
'GetProductInfo': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="OS_PRODUCT_TYPE"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["dwOSMajorVersion", "dwOSMinorVersion", "dwSpMajorVersion", "dwSpMinorVersion", "pdwReturnedProductType"]),
#
'VerSetConditionMask': SimTypeFunction([SimTypeLongLong(signed=False, label="UInt64"), SimTypeInt(signed=False, label="VER_FLAGS"), SimTypeChar(label="Byte")], SimTypeLongLong(signed=False, label="UInt64"), arg_names=["ConditionMask", "TypeMask", "Condition"]),
#
'EnumSystemFirmwareTables': SimTypeFunction([SimTypeInt(signed=False, label="FIRMWARE_TABLE_PROVIDER"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["FirmwareTableProviderSignature", "pFirmwareTableEnumBuffer", "BufferSize"]),
#
'GetSystemFirmwareTable': SimTypeFunction([SimTypeInt(signed=False, label="FIRMWARE_TABLE_PROVIDER"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["FirmwareTableProviderSignature", "FirmwareTableID", "pFirmwareTableBuffer", "BufferSize"]),
#
'DnsHostnameToComputerNameExW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["Hostname", "ComputerName", "nSize"]),
#
'GetPhysicallyInstalledSystemMemory': SimTypeFunction([SimTypePointer(SimTypeLongLong(signed=False, label="UInt64"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["TotalMemoryInKilobytes"]),
#
'SetComputerNameEx2W': SimTypeFunction([SimTypeInt(signed=False, label="COMPUTER_NAME_FORMAT"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["NameType", "Flags", "lpBuffer"]),
#
'SetSystemTimeAdjustment': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["dwTimeAdjustment", "bTimeAdjustmentDisabled"]),
#
'GetProcessorSystemCycleTime': SimTypeFunction([SimTypeShort(signed=False, label="UInt16"), SimTypePointer(SimStruct({"CycleTime": SimTypeLongLong(signed=False, label="UInt64")}, name="SYSTEM_PROCESSOR_CYCLE_TIME_INFORMATION", pack=False, align=None), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["Group", "Buffer", "ReturnedLength"]),
#
'SetComputerNameA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpComputerName"]),
#
'SetComputerNameW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpComputerName"]),
#
'SetComputerNameExA': SimTypeFunction([SimTypeInt(signed=False, label="COMPUTER_NAME_FORMAT"), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["NameType", "lpBuffer"]),
#
'GetSystemWow64DirectoryA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpBuffer", "uSize"]),
#
'GetSystemWow64DirectoryW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpBuffer", "uSize"]),
#
'IsWow64GuestMachineSupported': SimTypeFunction([SimTypeShort(signed=False, label="UInt16"), SimTypePointer(SimTypeInt(signed=True, label="Int32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["WowGuestMachine", "MachineIsSupported"]),
#
'GlobalMemoryStatus': SimTypeFunction([SimTypePointer(SimStruct({"dwLength": SimTypeInt(signed=False, label="UInt32"), "dwMemoryLoad": SimTypeInt(signed=False, label="UInt32"), "dwTotalPhys": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "dwAvailPhys": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "dwTotalPageFile": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "dwAvailPageFile": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "dwTotalVirtual": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "dwAvailVirtual": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)}, name="MEMORYSTATUS", pack=False, align=None), offset=0)], SimTypeBottom(label="Void"), arg_names=["lpBuffer"]),
#
'GetSystemDEPPolicy': SimTypeFunction([], SimTypeInt(signed=False, label="DEP_SYSTEM_POLICY_TYPE")),
#
'GetFirmwareType': SimTypeFunction([SimTypePointer(SimTypeInt(signed=False, label="FIRMWARE_TYPE"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["FirmwareType"]),
#
'VerifyVersionInfoA': SimTypeFunction([SimTypePointer(SimStruct({"dwOSVersionInfoSize": SimTypeInt(signed=False, label="UInt32"), "dwMajorVersion": SimTypeInt(signed=False, label="UInt32"), "dwMinorVersion": SimTypeInt(signed=False, label="UInt32"), "dwBuildNumber": SimTypeInt(signed=False, label="UInt32"), "dwPlatformId": SimTypeInt(signed=False, label="UInt32"), "szCSDVersion": SimTypeFixedSizeArray(SimTypeBottom(label="CHAR"), 128), "wServicePackMajor": SimTypeShort(signed=False, label="UInt16"), "wServicePackMinor": SimTypeShort(signed=False, label="UInt16"), "wSuiteMask": SimTypeShort(signed=False, label="UInt16"), "wProductType": SimTypeChar(label="Byte"), "wReserved": SimTypeChar(label="Byte")}, name="OSVERSIONINFOEXA", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="VER_FLAGS"), SimTypeLongLong(signed=False, label="UInt64")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpVersionInformation", "dwTypeMask", "dwlConditionMask"]),
#
'VerifyVersionInfoW': SimTypeFunction([SimTypePointer(SimStruct({"dwOSVersionInfoSize": SimTypeInt(signed=False, label="UInt32"), "dwMajorVersion": SimTypeInt(signed=False, label="UInt32"), "dwMinorVersion": SimTypeInt(signed=False, label="UInt32"), "dwBuildNumber": SimTypeInt(signed=False, label="UInt32"), "dwPlatformId": SimTypeInt(signed=False, label="UInt32"), "szCSDVersion": SimTypeFixedSizeArray(SimTypeChar(label="Char"), 128), "wServicePackMajor": SimTypeShort(signed=False, label="UInt16"), "wServicePackMinor": SimTypeShort(signed=False, label="UInt16"), "wSuiteMask": SimTypeShort(signed=False, label="UInt16"), "wProductType": SimTypeChar(label="Byte"), "wReserved": SimTypeChar(label="Byte")}, name="OSVERSIONINFOEXW", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="VER_FLAGS"), SimTypeLongLong(signed=False, label="UInt64")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpVersionInformation", "dwTypeMask", "dwlConditionMask"]),
#
'RtlRaiseException': SimTypeFunction([SimTypePointer(SimStruct({"ExceptionCode": SimTypeInt(signed=True, label="Int32"), "ExceptionFlags": SimTypeInt(signed=False, label="UInt32"), "ExceptionRecord": SimTypePointer(SimTypeBottom(label="EXCEPTION_RECORD"), offset=0), "ExceptionAddress": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "NumberParameters": SimTypeInt(signed=False, label="UInt32"), "ExceptionInformation": SimTypeFixedSizeArray(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), 15)}, name="EXCEPTION_RECORD", pack=False, align=None), offset=0)], SimTypeBottom(label="Void"), arg_names=["ExceptionRecord"]),
#
'RtlCompareMemory': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)], SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), arg_names=["Source1", "Source2", "Length"]),
#
'DeviceIoControl': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimStruct({"Internal": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "InternalHigh": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "Anonymous": SimUnion({"Anonymous": SimStruct({"Offset": SimTypeInt(signed=False, label="UInt32"), "OffsetHigh": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None), "Pointer": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="<anon>", label="None"), "hEvent": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)}, name="OVERLAPPED", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hDevice", "dwIoControlCode", "lpInBuffer", "nInBufferSize", "lpOutBuffer", "nOutBufferSize", "lpBytesReturned", "lpOverlapped"]),
#
'GetOverlappedResult': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"Internal": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "InternalHigh": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "Anonymous": SimUnion({"Anonymous": SimStruct({"Offset": SimTypeInt(signed=False, label="UInt32"), "OffsetHigh": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None), "Pointer": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="<anon>", label="None"), "hEvent": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)}, name="OVERLAPPED", pack=False, align=None), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "lpOverlapped", "lpNumberOfBytesTransferred", "bWait"]),
#
'GetOverlappedResultEx': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"Internal": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "InternalHigh": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "Anonymous": SimUnion({"Anonymous": SimStruct({"Offset": SimTypeInt(signed=False, label="UInt32"), "OffsetHigh": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None), "Pointer": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="<anon>", label="None"), "hEvent": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)}, name="OVERLAPPED", pack=False, align=None), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "lpOverlapped", "lpNumberOfBytesTransferred", "dwMilliseconds", "bAlertable"]),
#
'BindIoCompletionCallback': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeBottom(label="OVERLAPPED"), offset=0)], SimTypeBottom(label="Void"), arg_names=["dwErrorCode", "dwNumberOfBytesTransfered", "lpOverlapped"]), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["FileHandle", "Function", "Flags"]),
#
'FlsAlloc': SimTypeFunction([SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeBottom(label="Void"), arg_names=["lpFlsData"]), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpCallback"]),
#
'FlsGetValue': SimTypeFunction([SimTypeInt(signed=False, label="UInt32")], SimTypePointer(SimTypeBottom(label="Void"), offset=0), arg_names=["dwFlsIndex"]),
#
'FlsSetValue': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["dwFlsIndex", "lpFlsData"]),
#
'FlsFree': SimTypeFunction([SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["dwFlsIndex"]),
#
'IsThreadAFiber': SimTypeFunction([], SimTypeInt(signed=True, label="Int32")),
#
'InitializeSRWLock': SimTypeFunction([SimTypePointer(SimStruct({"Ptr": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="RTL_SRWLOCK", pack=False, align=None), offset=0)], SimTypeBottom(label="Void"), arg_names=["SRWLock"]),
#
'ReleaseSRWLockExclusive': SimTypeFunction([SimTypePointer(SimStruct({"Ptr": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="RTL_SRWLOCK", pack=False, align=None), offset=0)], SimTypeBottom(label="Void"), arg_names=["SRWLock"]),
#
'ReleaseSRWLockShared': SimTypeFunction([SimTypePointer(SimStruct({"Ptr": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="RTL_SRWLOCK", pack=False, align=None), offset=0)], SimTypeBottom(label="Void"), arg_names=["SRWLock"]),
#
'AcquireSRWLockExclusive': SimTypeFunction([SimTypePointer(SimStruct({"Ptr": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="RTL_SRWLOCK", pack=False, align=None), offset=0)], SimTypeBottom(label="Void"), arg_names=["SRWLock"]),
#
'AcquireSRWLockShared': SimTypeFunction([SimTypePointer(SimStruct({"Ptr": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="RTL_SRWLOCK", pack=False, align=None), offset=0)], SimTypeBottom(label="Void"), arg_names=["SRWLock"]),
#
'TryAcquireSRWLockExclusive': SimTypeFunction([SimTypePointer(SimStruct({"Ptr": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="RTL_SRWLOCK", pack=False, align=None), offset=0)], SimTypeChar(label="Byte"), arg_names=["SRWLock"]),
#
'TryAcquireSRWLockShared': SimTypeFunction([SimTypePointer(SimStruct({"Ptr": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="RTL_SRWLOCK", pack=False, align=None), offset=0)], SimTypeChar(label="Byte"), arg_names=["SRWLock"]),
#
'InitializeCriticalSection': SimTypeFunction([SimTypePointer(SimStruct({"DebugInfo": SimTypePointer(SimStruct({"Type": SimTypeShort(signed=False, label="UInt16"), "CreatorBackTraceIndex": SimTypeShort(signed=False, label="UInt16"), "CriticalSection": SimTypePointer(SimTypeBottom(label="RTL_CRITICAL_SECTION"), offset=0), "ProcessLocksList": SimStruct({"Flink": SimTypePointer(SimTypeBottom(label="LIST_ENTRY"), offset=0), "Blink": SimTypePointer(SimTypeBottom(label="LIST_ENTRY"), offset=0)}, name="LIST_ENTRY", pack=False, align=None), "EntryCount": SimTypeInt(signed=False, label="UInt32"), "ContentionCount": SimTypeInt(signed=False, label="UInt32"), "Flags": SimTypeInt(signed=False, label="UInt32"), "CreatorBackTraceIndexHigh": SimTypeShort(signed=False, label="UInt16"), "SpareWORD": SimTypeShort(signed=False, label="UInt16")}, name="RTL_CRITICAL_SECTION_DEBUG", pack=False, align=None), offset=0), "LockCount": SimTypeInt(signed=True, label="Int32"), "RecursionCount": SimTypeInt(signed=True, label="Int32"), "OwningThread": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "LockSemaphore": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "SpinCount": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)}, name="RTL_CRITICAL_SECTION", pack=False, align=None), offset=0)], SimTypeBottom(label="Void"), arg_names=["lpCriticalSection"]),
#
'EnterCriticalSection': SimTypeFunction([SimTypePointer(SimStruct({"DebugInfo": SimTypePointer(SimStruct({"Type": SimTypeShort(signed=False, label="UInt16"), "CreatorBackTraceIndex": SimTypeShort(signed=False, label="UInt16"), "CriticalSection": SimTypePointer(SimTypeBottom(label="RTL_CRITICAL_SECTION"), offset=0), "ProcessLocksList": SimStruct({"Flink": SimTypePointer(SimTypeBottom(label="LIST_ENTRY"), offset=0), "Blink": SimTypePointer(SimTypeBottom(label="LIST_ENTRY"), offset=0)}, name="LIST_ENTRY", pack=False, align=None), "EntryCount": SimTypeInt(signed=False, label="UInt32"), "ContentionCount": SimTypeInt(signed=False, label="UInt32"), "Flags": SimTypeInt(signed=False, label="UInt32"), "CreatorBackTraceIndexHigh": SimTypeShort(signed=False, label="UInt16"), "SpareWORD": SimTypeShort(signed=False, label="UInt16")}, name="RTL_CRITICAL_SECTION_DEBUG", pack=False, align=None), offset=0), "LockCount": SimTypeInt(signed=True, label="Int32"), "RecursionCount": SimTypeInt(signed=True, label="Int32"), "OwningThread": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "LockSemaphore": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "SpinCount": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)}, name="RTL_CRITICAL_SECTION", pack=False, align=None), offset=0)], SimTypeBottom(label="Void"), arg_names=["lpCriticalSection"]),
#
'LeaveCriticalSection': SimTypeFunction([SimTypePointer(SimStruct({"DebugInfo": SimTypePointer(SimStruct({"Type": SimTypeShort(signed=False, label="UInt16"), "CreatorBackTraceIndex": SimTypeShort(signed=False, label="UInt16"), "CriticalSection": SimTypePointer(SimTypeBottom(label="RTL_CRITICAL_SECTION"), offset=0), "ProcessLocksList": SimStruct({"Flink": SimTypePointer(SimTypeBottom(label="LIST_ENTRY"), offset=0), "Blink": SimTypePointer(SimTypeBottom(label="LIST_ENTRY"), offset=0)}, name="LIST_ENTRY", pack=False, align=None), "EntryCount": SimTypeInt(signed=False, label="UInt32"), "ContentionCount": SimTypeInt(signed=False, label="UInt32"), "Flags": SimTypeInt(signed=False, label="UInt32"), "CreatorBackTraceIndexHigh": SimTypeShort(signed=False, label="UInt16"), "SpareWORD": SimTypeShort(signed=False, label="UInt16")}, name="RTL_CRITICAL_SECTION_DEBUG", pack=False, align=None), offset=0), "LockCount": SimTypeInt(signed=True, label="Int32"), "RecursionCount": SimTypeInt(signed=True, label="Int32"), "OwningThread": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "LockSemaphore": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "SpinCount": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)}, name="RTL_CRITICAL_SECTION", pack=False, align=None), offset=0)], SimTypeBottom(label="Void"), arg_names=["lpCriticalSection"]),
#
'InitializeCriticalSectionAndSpinCount': SimTypeFunction([SimTypePointer(SimStruct({"DebugInfo": SimTypePointer(SimStruct({"Type": SimTypeShort(signed=False, label="UInt16"), "CreatorBackTraceIndex": SimTypeShort(signed=False, label="UInt16"), "CriticalSection": SimTypePointer(SimTypeBottom(label="RTL_CRITICAL_SECTION"), offset=0), "ProcessLocksList": SimStruct({"Flink": SimTypePointer(SimTypeBottom(label="LIST_ENTRY"), offset=0), "Blink": SimTypePointer(SimTypeBottom(label="LIST_ENTRY"), offset=0)}, name="LIST_ENTRY", pack=False, align=None), "EntryCount": SimTypeInt(signed=False, label="UInt32"), "ContentionCount": SimTypeInt(signed=False, label="UInt32"), "Flags": SimTypeInt(signed=False, label="UInt32"), "CreatorBackTraceIndexHigh": SimTypeShort(signed=False, label="UInt16"), "SpareWORD": SimTypeShort(signed=False, label="UInt16")}, name="RTL_CRITICAL_SECTION_DEBUG", pack=False, align=None), offset=0), "LockCount": SimTypeInt(signed=True, label="Int32"), "RecursionCount": SimTypeInt(signed=True, label="Int32"), "OwningThread": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "LockSemaphore": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "SpinCount": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)}, name="RTL_CRITICAL_SECTION", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpCriticalSection", "dwSpinCount"]),
#
'InitializeCriticalSectionEx': SimTypeFunction([SimTypePointer(SimStruct({"DebugInfo": SimTypePointer(SimStruct({"Type": SimTypeShort(signed=False, label="UInt16"), "CreatorBackTraceIndex": SimTypeShort(signed=False, label="UInt16"), "CriticalSection": SimTypePointer(SimTypeBottom(label="RTL_CRITICAL_SECTION"), offset=0), "ProcessLocksList": SimStruct({"Flink": SimTypePointer(SimTypeBottom(label="LIST_ENTRY"), offset=0), "Blink": SimTypePointer(SimTypeBottom(label="LIST_ENTRY"), offset=0)}, name="LIST_ENTRY", pack=False, align=None), "EntryCount": SimTypeInt(signed=False, label="UInt32"), "ContentionCount": SimTypeInt(signed=False, label="UInt32"), "Flags": SimTypeInt(signed=False, label="UInt32"), "CreatorBackTraceIndexHigh": SimTypeShort(signed=False, label="UInt16"), "SpareWORD": SimTypeShort(signed=False, label="UInt16")}, name="RTL_CRITICAL_SECTION_DEBUG", pack=False, align=None), offset=0), "LockCount": SimTypeInt(signed=True, label="Int32"), "RecursionCount": SimTypeInt(signed=True, label="Int32"), "OwningThread": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "LockSemaphore": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "SpinCount": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)}, name="RTL_CRITICAL_SECTION", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpCriticalSection", "dwSpinCount", "Flags"]),
#
'SetCriticalSectionSpinCount': SimTypeFunction([SimTypePointer(SimStruct({"DebugInfo": SimTypePointer(SimStruct({"Type": SimTypeShort(signed=False, label="UInt16"), "CreatorBackTraceIndex": SimTypeShort(signed=False, label="UInt16"), "CriticalSection": SimTypePointer(SimTypeBottom(label="RTL_CRITICAL_SECTION"), offset=0), "ProcessLocksList": SimStruct({"Flink": SimTypePointer(SimTypeBottom(label="LIST_ENTRY"), offset=0), "Blink": SimTypePointer(SimTypeBottom(label="LIST_ENTRY"), offset=0)}, name="LIST_ENTRY", pack=False, align=None), "EntryCount": SimTypeInt(signed=False, label="UInt32"), "ContentionCount": SimTypeInt(signed=False, label="UInt32"), "Flags": SimTypeInt(signed=False, label="UInt32"), "CreatorBackTraceIndexHigh": SimTypeShort(signed=False, label="UInt16"), "SpareWORD": SimTypeShort(signed=False, label="UInt16")}, name="RTL_CRITICAL_SECTION_DEBUG", pack=False, align=None), offset=0), "LockCount": SimTypeInt(signed=True, label="Int32"), "RecursionCount": SimTypeInt(signed=True, label="Int32"), "OwningThread": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "LockSemaphore": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "SpinCount": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)}, name="RTL_CRITICAL_SECTION", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpCriticalSection", "dwSpinCount"]),
#
'TryEnterCriticalSection': SimTypeFunction([SimTypePointer(SimStruct({"DebugInfo": SimTypePointer(SimStruct({"Type": SimTypeShort(signed=False, label="UInt16"), "CreatorBackTraceIndex": SimTypeShort(signed=False, label="UInt16"), "CriticalSection": SimTypePointer(SimTypeBottom(label="RTL_CRITICAL_SECTION"), offset=0), "ProcessLocksList": SimStruct({"Flink": SimTypePointer(SimTypeBottom(label="LIST_ENTRY"), offset=0), "Blink": SimTypePointer(SimTypeBottom(label="LIST_ENTRY"), offset=0)}, name="LIST_ENTRY", pack=False, align=None), "EntryCount": SimTypeInt(signed=False, label="UInt32"), "ContentionCount": SimTypeInt(signed=False, label="UInt32"), "Flags": SimTypeInt(signed=False, label="UInt32"), "CreatorBackTraceIndexHigh": SimTypeShort(signed=False, label="UInt16"), "SpareWORD": SimTypeShort(signed=False, label="UInt16")}, name="RTL_CRITICAL_SECTION_DEBUG", pack=False, align=None), offset=0), "LockCount": SimTypeInt(signed=True, label="Int32"), "RecursionCount": SimTypeInt(signed=True, label="Int32"), "OwningThread": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "LockSemaphore": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "SpinCount": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)}, name="RTL_CRITICAL_SECTION", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpCriticalSection"]),
#
'DeleteCriticalSection': SimTypeFunction([SimTypePointer(SimStruct({"DebugInfo": SimTypePointer(SimStruct({"Type": SimTypeShort(signed=False, label="UInt16"), "CreatorBackTraceIndex": SimTypeShort(signed=False, label="UInt16"), "CriticalSection": SimTypePointer(SimTypeBottom(label="RTL_CRITICAL_SECTION"), offset=0), "ProcessLocksList": SimStruct({"Flink": SimTypePointer(SimTypeBottom(label="LIST_ENTRY"), offset=0), "Blink": SimTypePointer(SimTypeBottom(label="LIST_ENTRY"), offset=0)}, name="LIST_ENTRY", pack=False, align=None), "EntryCount": SimTypeInt(signed=False, label="UInt32"), "ContentionCount": SimTypeInt(signed=False, label="UInt32"), "Flags": SimTypeInt(signed=False, label="UInt32"), "CreatorBackTraceIndexHigh": SimTypeShort(signed=False, label="UInt16"), "SpareWORD": SimTypeShort(signed=False, label="UInt16")}, name="RTL_CRITICAL_SECTION_DEBUG", pack=False, align=None), offset=0), "LockCount": SimTypeInt(signed=True, label="Int32"), "RecursionCount": SimTypeInt(signed=True, label="Int32"), "OwningThread": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "LockSemaphore": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "SpinCount": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)}, name="RTL_CRITICAL_SECTION", pack=False, align=None), offset=0)], SimTypeBottom(label="Void"), arg_names=["lpCriticalSection"]),
#
'InitOnceInitialize': SimTypeFunction([SimTypePointer(SimUnion({"Ptr": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="<anon>", label="None"), offset=0)], SimTypeBottom(label="Void"), arg_names=["InitOnce"]),
#
'InitOnceExecuteOnce': SimTypeFunction([SimTypePointer(SimUnion({"Ptr": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="<anon>", label="None"), offset=0), SimTypePointer(SimTypeFunction([SimTypePointer(SimUnion({"Ptr": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="<anon>", label="None"), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypePointer(SimTypeBottom(label="Void"), offset=0), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["InitOnce", "Parameter", "Context"]), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypePointer(SimTypeBottom(label="Void"), offset=0), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["InitOnce", "InitFn", "Parameter", "Context"]),
#
'InitOnceBeginInitialize': SimTypeFunction([SimTypePointer(SimUnion({"Ptr": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="<anon>", label="None"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=True, label="Int32"), offset=0), SimTypePointer(SimTypePointer(SimTypeBottom(label="Void"), offset=0), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpInitOnce", "dwFlags", "fPending", "lpContext"]),
#
'InitOnceComplete': SimTypeFunction([SimTypePointer(SimUnion({"Ptr": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="<anon>", label="None"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpInitOnce", "dwFlags", "lpContext"]),
#
'InitializeConditionVariable': SimTypeFunction([SimTypePointer(SimStruct({"Ptr": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="RTL_CONDITION_VARIABLE", pack=False, align=None), offset=0)], SimTypeBottom(label="Void"), arg_names=["ConditionVariable"]),
#
'WakeConditionVariable': SimTypeFunction([SimTypePointer(SimStruct({"Ptr": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="RTL_CONDITION_VARIABLE", pack=False, align=None), offset=0)], SimTypeBottom(label="Void"), arg_names=["ConditionVariable"]),
#
'WakeAllConditionVariable': SimTypeFunction([SimTypePointer(SimStruct({"Ptr": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="RTL_CONDITION_VARIABLE", pack=False, align=None), offset=0)], SimTypeBottom(label="Void"), arg_names=["ConditionVariable"]),
#
'SleepConditionVariableCS': SimTypeFunction([SimTypePointer(SimStruct({"Ptr": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="RTL_CONDITION_VARIABLE", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"DebugInfo": SimTypePointer(SimStruct({"Type": SimTypeShort(signed=False, label="UInt16"), "CreatorBackTraceIndex": SimTypeShort(signed=False, label="UInt16"), "CriticalSection": SimTypePointer(SimTypeBottom(label="RTL_CRITICAL_SECTION"), offset=0), "ProcessLocksList": SimStruct({"Flink": SimTypePointer(SimTypeBottom(label="LIST_ENTRY"), offset=0), "Blink": SimTypePointer(SimTypeBottom(label="LIST_ENTRY"), offset=0)}, name="LIST_ENTRY", pack=False, align=None), "EntryCount": SimTypeInt(signed=False, label="UInt32"), "ContentionCount": SimTypeInt(signed=False, label="UInt32"), "Flags": SimTypeInt(signed=False, label="UInt32"), "CreatorBackTraceIndexHigh": SimTypeShort(signed=False, label="UInt16"), "SpareWORD": SimTypeShort(signed=False, label="UInt16")}, name="RTL_CRITICAL_SECTION_DEBUG", pack=False, align=None), offset=0), "LockCount": SimTypeInt(signed=True, label="Int32"), "RecursionCount": SimTypeInt(signed=True, label="Int32"), "OwningThread": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "LockSemaphore": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "SpinCount": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)}, name="RTL_CRITICAL_SECTION", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["ConditionVariable", "CriticalSection", "dwMilliseconds"]),
#
'SleepConditionVariableSRW': SimTypeFunction([SimTypePointer(SimStruct({"Ptr": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="RTL_CONDITION_VARIABLE", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"Ptr": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="RTL_SRWLOCK", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["ConditionVariable", "SRWLock", "dwMilliseconds", "Flags"]),
#
'SetEvent': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hEvent"]),
#
'ResetEvent': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hEvent"]),
#
'ReleaseSemaphore': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeInt(signed=True, label="Int32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hSemaphore", "lReleaseCount", "lpPreviousCount"]),
#
'ReleaseMutex': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hMutex"]),
#
'WaitForSingleObject': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="WAIT_RETURN_CAUSE"), arg_names=["hHandle", "dwMilliseconds"]),
#
'SleepEx': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["dwMilliseconds", "bAlertable"]),
#
'WaitForSingleObjectEx': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=False, label="WAIT_RETURN_CAUSE"), arg_names=["hHandle", "dwMilliseconds", "bAlertable"]),
#
'WaitForMultipleObjectsEx': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=False, label="WAIT_RETURN_CAUSE"), arg_names=["nCount", "lpHandles", "bWaitAll", "dwMilliseconds", "bAlertable"]),
#
'CreateMutexA': SimTypeFunction([SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpMutexAttributes", "bInitialOwner", "lpName"]),
#
'CreateMutexW': SimTypeFunction([SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpMutexAttributes", "bInitialOwner", "lpName"]),
#
'OpenMutexW': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["dwDesiredAccess", "bInheritHandle", "lpName"]),
#
'CreateEventA': SimTypeFunction([SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0), SimTypeInt(signed=True, label="Int32"), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpEventAttributes", "bManualReset", "bInitialState", "lpName"]),
#
'CreateEventW': SimTypeFunction([SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0), SimTypeInt(signed=True, label="Int32"), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpEventAttributes", "bManualReset", "bInitialState", "lpName"]),
#
'OpenEventA': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["dwDesiredAccess", "bInheritHandle", "lpName"]),
#
'OpenEventW': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["dwDesiredAccess", "bInheritHandle", "lpName"]),
#
'OpenSemaphoreW': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["dwDesiredAccess", "bInheritHandle", "lpName"]),
#
'OpenWaitableTimerW': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["dwDesiredAccess", "bInheritHandle", "lpTimerName"]),
#
'SetWaitableTimerEx': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimUnion({"Anonymous": SimStruct({"LowPart": SimTypeInt(signed=False, label="UInt32"), "HighPart": SimTypeInt(signed=True, label="Int32")}, name="_Anonymous_e__Struct", pack=False, align=None), "u": SimStruct({"LowPart": SimTypeInt(signed=False, label="UInt32"), "HighPart": SimTypeInt(signed=True, label="Int32")}, name="_u_e__Struct", pack=False, align=None), "QuadPart": SimTypeLongLong(signed=True, label="Int64")}, name="<anon>", label="None"), offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32")], SimTypeBottom(label="Void"), arg_names=["lpArgToCompletionRoutine", "dwTimerLowValue", "dwTimerHighValue"]), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimStruct({"Version": SimTypeInt(signed=False, label="UInt32"), "Flags": SimTypeInt(signed=False, label="POWER_REQUEST_CONTEXT_FLAGS"), "Reason": SimUnion({"Detailed": SimStruct({"LocalizedReasonModule": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "LocalizedReasonId": SimTypeInt(signed=False, label="UInt32"), "ReasonStringCount": SimTypeInt(signed=False, label="UInt32"), "ReasonStrings": SimTypePointer(SimTypePointer(SimTypeChar(label="Char"), offset=0), offset=0)}, name="_Detailed_e__Struct", pack=False, align=None), "SimpleReasonString": SimTypePointer(SimTypeChar(label="Char"), offset=0)}, name="<anon>", label="None")}, name="REASON_CONTEXT", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hTimer", "lpDueTime", "lPeriod", "pfnCompletionRoutine", "lpArgToCompletionRoutine", "WakeContext", "TolerableDelay"]),
#
'SetWaitableTimer': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimUnion({"Anonymous": SimStruct({"LowPart": SimTypeInt(signed=False, label="UInt32"), "HighPart": SimTypeInt(signed=True, label="Int32")}, name="_Anonymous_e__Struct", pack=False, align=None), "u": SimStruct({"LowPart": SimTypeInt(signed=False, label="UInt32"), "HighPart": SimTypeInt(signed=True, label="Int32")}, name="_u_e__Struct", pack=False, align=None), "QuadPart": SimTypeLongLong(signed=True, label="Int64")}, name="<anon>", label="None"), offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32")], SimTypeBottom(label="Void"), arg_names=["lpArgToCompletionRoutine", "dwTimerLowValue", "dwTimerHighValue"]), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hTimer", "lpDueTime", "lPeriod", "pfnCompletionRoutine", "lpArgToCompletionRoutine", "fResume"]),
#
'CancelWaitableTimer': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hTimer"]),
#
'CreateMutexExA': SimTypeFunction([SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32")], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpMutexAttributes", "lpName", "dwFlags", "dwDesiredAccess"]),
#
'CreateMutexExW': SimTypeFunction([SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32")], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpMutexAttributes", "lpName", "dwFlags", "dwDesiredAccess"]),
#
'CreateEventExA': SimTypeFunction([SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=False, label="CREATE_EVENT"), SimTypeInt(signed=False, label="UInt32")], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpEventAttributes", "lpName", "dwFlags", "dwDesiredAccess"]),
#
'CreateEventExW': SimTypeFunction([SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="CREATE_EVENT"), SimTypeInt(signed=False, label="UInt32")], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpEventAttributes", "lpName", "dwFlags", "dwDesiredAccess"]),
#
'CreateSemaphoreExW': SimTypeFunction([SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0), SimTypeInt(signed=True, label="Int32"), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32")], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpSemaphoreAttributes", "lInitialCount", "lMaximumCount", "lpName", "dwFlags", "dwDesiredAccess"]),
#
'CreateWaitableTimerExW': SimTypeFunction([SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32")], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpTimerAttributes", "lpTimerName", "dwFlags", "dwDesiredAccess"]),
#
'EnterSynchronizationBarrier': SimTypeFunction([SimTypePointer(SimStruct({"Reserved1": SimTypeInt(signed=False, label="UInt32"), "Reserved2": SimTypeInt(signed=False, label="UInt32"), "Reserved3": SimTypeFixedSizeArray(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), 2), "Reserved4": SimTypeInt(signed=False, label="UInt32"), "Reserved5": SimTypeInt(signed=False, label="UInt32")}, name="RTL_BARRIER", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpBarrier", "dwFlags"]),
#
'InitializeSynchronizationBarrier': SimTypeFunction([SimTypePointer(SimStruct({"Reserved1": SimTypeInt(signed=False, label="UInt32"), "Reserved2": SimTypeInt(signed=False, label="UInt32"), "Reserved3": SimTypeFixedSizeArray(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), 2), "Reserved4": SimTypeInt(signed=False, label="UInt32"), "Reserved5": SimTypeInt(signed=False, label="UInt32")}, name="RTL_BARRIER", pack=False, align=None), offset=0), SimTypeInt(signed=True, label="Int32"), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpBarrier", "lTotalThreads", "lSpinCount"]),
#
'DeleteSynchronizationBarrier': SimTypeFunction([SimTypePointer(SimStruct({"Reserved1": SimTypeInt(signed=False, label="UInt32"), "Reserved2": SimTypeInt(signed=False, label="UInt32"), "Reserved3": SimTypeFixedSizeArray(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), 2), "Reserved4": SimTypeInt(signed=False, label="UInt32"), "Reserved5": SimTypeInt(signed=False, label="UInt32")}, name="RTL_BARRIER", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpBarrier"]),
#
'Sleep': SimTypeFunction([SimTypeInt(signed=False, label="UInt32")], SimTypeBottom(label="Void"), arg_names=["dwMilliseconds"]),
#
'WaitForMultipleObjects': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), label="LPArray", offset=0), SimTypeInt(signed=True, label="Int32"), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="WAIT_RETURN_CAUSE"), arg_names=["nCount", "lpHandles", "bWaitAll", "dwMilliseconds"]),
#
'CreateSemaphoreW': SimTypeFunction([SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0), SimTypeInt(signed=True, label="Int32"), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpSemaphoreAttributes", "lInitialCount", "lMaximumCount", "lpName"]),
#
'CreateWaitableTimerW': SimTypeFunction([SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpTimerAttributes", "bManualReset", "lpTimerName"]),
#
'InitializeSListHead': SimTypeFunction([SimTypePointer(SimUnion({"Alignment": SimTypeLongLong(signed=False, label="UInt64"), "Anonymous": SimStruct({"Next": SimStruct({"Next": SimTypePointer(SimTypeBottom(label="SLIST_ENTRY"), offset=0)}, name="SLIST_ENTRY", pack=False, align=None), "Depth": SimTypeShort(signed=False, label="UInt16"), "CpuId": SimTypeShort(signed=False, label="UInt16")}, name="_Anonymous_e__Struct", pack=False, align=None)}, name="<anon>", label="None"), offset=0)], SimTypeBottom(label="Void"), arg_names=["ListHead"]),
#
'InterlockedPopEntrySList': SimTypeFunction([SimTypePointer(SimUnion({"Alignment": SimTypeLongLong(signed=False, label="UInt64"), "Anonymous": SimStruct({"Next": SimStruct({"Next": SimTypePointer(SimTypeBottom(label="SLIST_ENTRY"), offset=0)}, name="SLIST_ENTRY", pack=False, align=None), "Depth": SimTypeShort(signed=False, label="UInt16"), "CpuId": SimTypeShort(signed=False, label="UInt16")}, name="_Anonymous_e__Struct", pack=False, align=None)}, name="<anon>", label="None"), offset=0)], SimTypePointer(SimStruct({"Next": SimTypePointer(SimTypeBottom(label="SLIST_ENTRY"), offset=0)}, name="SLIST_ENTRY", pack=False, align=None), offset=0), arg_names=["ListHead"]),
#
'InterlockedPushEntrySList': SimTypeFunction([SimTypePointer(SimUnion({"Alignment": SimTypeLongLong(signed=False, label="UInt64"), "Anonymous": SimStruct({"Next": SimStruct({"Next": SimTypePointer(SimTypeBottom(label="SLIST_ENTRY"), offset=0)}, name="SLIST_ENTRY", pack=False, align=None), "Depth": SimTypeShort(signed=False, label="UInt16"), "CpuId": SimTypeShort(signed=False, label="UInt16")}, name="_Anonymous_e__Struct", pack=False, align=None)}, name="<anon>", label="None"), offset=0), SimTypePointer(SimStruct({"Next": SimTypePointer(SimTypeBottom(label="SLIST_ENTRY"), offset=0)}, name="SLIST_ENTRY", pack=False, align=None), offset=0)], SimTypePointer(SimStruct({"Next": SimTypePointer(SimTypeBottom(label="SLIST_ENTRY"), offset=0)}, name="SLIST_ENTRY", pack=False, align=None), offset=0), arg_names=["ListHead", "ListEntry"]),
#
'InterlockedPushListSListEx': SimTypeFunction([SimTypePointer(SimUnion({"Alignment": SimTypeLongLong(signed=False, label="UInt64"), "Anonymous": SimStruct({"Next": SimStruct({"Next": SimTypePointer(SimTypeBottom(label="SLIST_ENTRY"), offset=0)}, name="SLIST_ENTRY", pack=False, align=None), "Depth": SimTypeShort(signed=False, label="UInt16"), "CpuId": SimTypeShort(signed=False, label="UInt16")}, name="_Anonymous_e__Struct", pack=False, align=None)}, name="<anon>", label="None"), offset=0), SimTypePointer(SimStruct({"Next": SimTypePointer(SimTypeBottom(label="SLIST_ENTRY"), offset=0)}, name="SLIST_ENTRY", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"Next": SimTypePointer(SimTypeBottom(label="SLIST_ENTRY"), offset=0)}, name="SLIST_ENTRY", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypePointer(SimStruct({"Next": SimTypePointer(SimTypeBottom(label="SLIST_ENTRY"), offset=0)}, name="SLIST_ENTRY", pack=False, align=None), offset=0), arg_names=["ListHead", "List", "ListEnd", "Count"]),
#
'InterlockedFlushSList': SimTypeFunction([SimTypePointer(SimUnion({"Alignment": SimTypeLongLong(signed=False, label="UInt64"), "Anonymous": SimStruct({"Next": SimStruct({"Next": SimTypePointer(SimTypeBottom(label="SLIST_ENTRY"), offset=0)}, name="SLIST_ENTRY", pack=False, align=None), "Depth": SimTypeShort(signed=False, label="UInt16"), "CpuId": SimTypeShort(signed=False, label="UInt16")}, name="_Anonymous_e__Struct", pack=False, align=None)}, name="<anon>", label="None"), offset=0)], SimTypePointer(SimStruct({"Next": SimTypePointer(SimTypeBottom(label="SLIST_ENTRY"), offset=0)}, name="SLIST_ENTRY", pack=False, align=None), offset=0), arg_names=["ListHead"]),
#
'QueryDepthSList': SimTypeFunction([SimTypePointer(SimUnion({"Alignment": SimTypeLongLong(signed=False, label="UInt64"), "Anonymous": SimStruct({"Next": SimStruct({"Next": SimTypePointer(SimTypeBottom(label="SLIST_ENTRY"), offset=0)}, name="SLIST_ENTRY", pack=False, align=None), "Depth": SimTypeShort(signed=False, label="UInt16"), "CpuId": SimTypeShort(signed=False, label="UInt16")}, name="_Anonymous_e__Struct", pack=False, align=None)}, name="<anon>", label="None"), offset=0)], SimTypeShort(signed=False, label="UInt16"), arg_names=["ListHead"]),
#
'QueueUserAPC': SimTypeFunction([SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)], SimTypeBottom(label="Void"), arg_names=["Parameter"]), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["pfnAPC", "hThread", "dwData"]),
#
'GetProcessTimes': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "lpCreationTime", "lpExitTime", "lpKernelTime", "lpUserTime"]),
#
'GetCurrentProcess': SimTypeFunction([], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)),
#
'GetCurrentProcessId': SimTypeFunction([], SimTypeInt(signed=False, label="UInt32")),
#
'ExitProcess': SimTypeFunction([SimTypeInt(signed=False, label="UInt32")], SimTypeBottom(label="Void"), arg_names=["uExitCode"]),
#
'TerminateProcess': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "uExitCode"]),
#
'GetExitCodeProcess': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "lpExitCode"]),
#
'SwitchToThread': SimTypeFunction([], SimTypeInt(signed=True, label="Int32")),
#
'CreateThread': SimTypeFunction([SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpThreadParameter"]), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="THREAD_CREATION_FLAGS"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpThreadAttributes", "dwStackSize", "lpStartAddress", "lpParameter", "dwCreationFlags", "lpThreadId"]),
#
'CreateRemoteThread': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpThreadParameter"]), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["hProcess", "lpThreadAttributes", "dwStackSize", "lpStartAddress", "lpParameter", "dwCreationFlags", "lpThreadId"]),
#
'GetCurrentThread': SimTypeFunction([], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)),
#
'GetCurrentThreadId': SimTypeFunction([], SimTypeInt(signed=False, label="UInt32")),
#
'OpenThread': SimTypeFunction([SimTypeInt(signed=False, label="THREAD_ACCESS_RIGHTS"), SimTypeInt(signed=True, label="Int32"), SimTypeInt(signed=False, label="UInt32")], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["dwDesiredAccess", "bInheritHandle", "dwThreadId"]),
#
'SetThreadPriority': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="THREAD_PRIORITY")], SimTypeInt(signed=True, label="Int32"), arg_names=["hThread", "nPriority"]),
#
'SetThreadPriorityBoost': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hThread", "bDisablePriorityBoost"]),
#
'GetThreadPriorityBoost': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hThread", "pDisablePriorityBoost"]),
#
'GetThreadPriority': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hThread"]),
#
'ExitThread': SimTypeFunction([SimTypeInt(signed=False, label="UInt32")], SimTypeBottom(label="Void"), arg_names=["dwExitCode"]),
#
'TerminateThread': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hThread", "dwExitCode"]),
#
'GetExitCodeThread': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hThread", "lpExitCode"]),
#
'SuspendThread': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["hThread"]),
#
'ResumeThread': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["hThread"]),
#
'TlsAlloc': SimTypeFunction([], SimTypeInt(signed=False, label="UInt32")),
#
'TlsGetValue': SimTypeFunction([SimTypeInt(signed=False, label="UInt32")], SimTypePointer(SimTypeBottom(label="Void"), offset=0), arg_names=["dwTlsIndex"]),
#
'TlsSetValue': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["dwTlsIndex", "lpTlsValue"]),
#
'TlsFree': SimTypeFunction([SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["dwTlsIndex"]),
#
'CreateProcessA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0), SimTypeInt(signed=True, label="Int32"), SimTypeInt(signed=False, label="PROCESS_CREATION_FLAGS"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimStruct({"cb": SimTypeInt(signed=False, label="UInt32"), "lpReserved": SimTypePointer(SimTypeChar(label="Byte"), offset=0), "lpDesktop": SimTypePointer(SimTypeChar(label="Byte"), offset=0), "lpTitle": SimTypePointer(SimTypeChar(label="Byte"), offset=0), "dwX": SimTypeInt(signed=False, label="UInt32"), "dwY": SimTypeInt(signed=False, label="UInt32"), "dwXSize": SimTypeInt(signed=False, label="UInt32"), "dwYSize": SimTypeInt(signed=False, label="UInt32"), "dwXCountChars": SimTypeInt(signed=False, label="UInt32"), "dwYCountChars": SimTypeInt(signed=False, label="UInt32"), "dwFillAttribute": SimTypeInt(signed=False, label="UInt32"), "dwFlags": SimTypeInt(signed=False, label="STARTUPINFOW_FLAGS"), "wShowWindow": SimTypeShort(signed=False, label="UInt16"), "cbReserved2": SimTypeShort(signed=False, label="UInt16"), "lpReserved2": SimTypePointer(SimTypeChar(label="Byte"), offset=0), "hStdInput": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "hStdOutput": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "hStdError": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)}, name="STARTUPINFOA", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"hProcess": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "hThread": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "dwProcessId": SimTypeInt(signed=False, label="UInt32"), "dwThreadId": SimTypeInt(signed=False, label="UInt32")}, name="PROCESS_INFORMATION", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpApplicationName", "lpCommandLine", "lpProcessAttributes", "lpThreadAttributes", "bInheritHandles", "dwCreationFlags", "lpEnvironment", "lpCurrentDirectory", "lpStartupInfo", "lpProcessInformation"]),
#
'CreateProcessW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0), SimTypeInt(signed=True, label="Int32"), SimTypeInt(signed=False, label="PROCESS_CREATION_FLAGS"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimStruct({"cb": SimTypeInt(signed=False, label="UInt32"), "lpReserved": SimTypePointer(SimTypeChar(label="Char"), offset=0), "lpDesktop": SimTypePointer(SimTypeChar(label="Char"), offset=0), "lpTitle": SimTypePointer(SimTypeChar(label="Char"), offset=0), "dwX": SimTypeInt(signed=False, label="UInt32"), "dwY": SimTypeInt(signed=False, label="UInt32"), "dwXSize": SimTypeInt(signed=False, label="UInt32"), "dwYSize": SimTypeInt(signed=False, label="UInt32"), "dwXCountChars": SimTypeInt(signed=False, label="UInt32"), "dwYCountChars": SimTypeInt(signed=False, label="UInt32"), "dwFillAttribute": SimTypeInt(signed=False, label="UInt32"), "dwFlags": SimTypeInt(signed=False, label="STARTUPINFOW_FLAGS"), "wShowWindow": SimTypeShort(signed=False, label="UInt16"), "cbReserved2": SimTypeShort(signed=False, label="UInt16"), "lpReserved2": SimTypePointer(SimTypeChar(label="Byte"), offset=0), "hStdInput": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "hStdOutput": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "hStdError": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)}, name="STARTUPINFOW", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"hProcess": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "hThread": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "dwProcessId": SimTypeInt(signed=False, label="UInt32"), "dwThreadId": SimTypeInt(signed=False, label="UInt32")}, name="PROCESS_INFORMATION", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpApplicationName", "lpCommandLine", "lpProcessAttributes", "lpThreadAttributes", "bInheritHandles", "dwCreationFlags", "lpEnvironment", "lpCurrentDirectory", "lpStartupInfo", "lpProcessInformation"]),
#
'SetProcessShutdownParameters': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["dwLevel", "dwFlags"]),
#
'GetProcessVersion': SimTypeFunction([SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["ProcessId"]),
#
'GetStartupInfoW': SimTypeFunction([SimTypePointer(SimStruct({"cb": SimTypeInt(signed=False, label="UInt32"), "lpReserved": SimTypePointer(SimTypeChar(label="Char"), offset=0), "lpDesktop": SimTypePointer(SimTypeChar(label="Char"), offset=0), "lpTitle": SimTypePointer(SimTypeChar(label="Char"), offset=0), "dwX": SimTypeInt(signed=False, label="UInt32"), "dwY": SimTypeInt(signed=False, label="UInt32"), "dwXSize": SimTypeInt(signed=False, label="UInt32"), "dwYSize": SimTypeInt(signed=False, label="UInt32"), "dwXCountChars": SimTypeInt(signed=False, label="UInt32"), "dwYCountChars": SimTypeInt(signed=False, label="UInt32"), "dwFillAttribute": SimTypeInt(signed=False, label="UInt32"), "dwFlags": SimTypeInt(signed=False, label="STARTUPINFOW_FLAGS"), "wShowWindow": SimTypeShort(signed=False, label="UInt16"), "cbReserved2": SimTypeShort(signed=False, label="UInt16"), "lpReserved2": SimTypePointer(SimTypeChar(label="Byte"), offset=0), "hStdInput": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "hStdOutput": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "hStdError": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)}, name="STARTUPINFOW", pack=False, align=None), offset=0)], SimTypeBottom(label="Void"), arg_names=["lpStartupInfo"]),
#
'SetPriorityClass': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="PROCESS_CREATION_FLAGS")], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "dwPriorityClass"]),
#
'GetPriorityClass': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["hProcess"]),
#
'SetThreadStackGuarantee': SimTypeFunction([SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["StackSizeInBytes"]),
#
'GetProcessId': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["Process"]),
#
'GetThreadId': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["Thread"]),
#
'FlushProcessWriteBuffers': SimTypeFunction([], SimTypeBottom(label="Void")),
#
'GetProcessIdOfThread': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["Thread"]),
#
'InitializeProcThreadAttributeList': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpAttributeList", "dwAttributeCount", "dwFlags", "lpSize"]),
#
'DeleteProcThreadAttributeList': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeBottom(label="Void"), arg_names=["lpAttributeList"]),
#
'UpdateProcThreadAttribute': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpAttributeList", "dwFlags", "Attribute", "lpValue", "cbSize", "lpPreviousValue", "lpReturnSize"]),
#
'SetProcessDynamicEHContinuationTargets': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeShort(signed=False, label="UInt16"), SimTypePointer(SimStruct({"TargetAddress": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "Flags": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)}, name="PROCESS_DYNAMIC_EH_CONTINUATION_TARGET", pack=False, align=None), label="LPArray", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["Process", "NumberOfTargets", "Targets"]),
#
'SetProcessAffinityUpdateMode': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="PROCESS_AFFINITY_AUTO_UPDATE_FLAGS")], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "dwFlags"]),
#
'QueryProcessAffinityUpdateMode': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="PROCESS_AFFINITY_AUTO_UPDATE_FLAGS"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "lpdwFlags"]),
#
'CreateRemoteThreadEx': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpThreadParameter"]), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["hProcess", "lpThreadAttributes", "dwStackSize", "lpStartAddress", "lpParameter", "dwCreationFlags", "lpAttributeList", "lpThreadId"]),
#
'GetCurrentThreadStackLimits': SimTypeFunction([SimTypePointer(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), offset=0)], SimTypeBottom(label="Void"), arg_names=["LowLimit", "HighLimit"]),
#
'GetProcessMitigationPolicy': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="PROCESS_MITIGATION_POLICY"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "MitigationPolicy", "lpBuffer", "dwLength"]),
#
'SetProcessMitigationPolicy': SimTypeFunction([SimTypeInt(signed=False, label="PROCESS_MITIGATION_POLICY"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["MitigationPolicy", "lpBuffer", "dwLength"]),
#
'GetThreadTimes': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hThread", "lpCreationTime", "lpExitTime", "lpKernelTime", "lpUserTime"]),
#
'OpenProcess': SimTypeFunction([SimTypeInt(signed=False, label="PROCESS_ACCESS_RIGHTS"), SimTypeInt(signed=True, label="Int32"), SimTypeInt(signed=False, label="UInt32")], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["dwDesiredAccess", "bInheritHandle", "dwProcessId"]),
#
'IsProcessorFeaturePresent': SimTypeFunction([SimTypeInt(signed=False, label="PROCESSOR_FEATURE_ID")], SimTypeInt(signed=True, label="Int32"), arg_names=["ProcessorFeature"]),
#
'GetProcessHandleCount': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "pdwHandleCount"]),
#
'GetCurrentProcessorNumber': SimTypeFunction([], SimTypeInt(signed=False, label="UInt32")),
#
'SetThreadIdealProcessorEx': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"Group": SimTypeShort(signed=False, label="UInt16"), "Number": SimTypeChar(label="Byte"), "Reserved": SimTypeChar(label="Byte")}, name="PROCESSOR_NUMBER", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"Group": SimTypeShort(signed=False, label="UInt16"), "Number": SimTypeChar(label="Byte"), "Reserved": SimTypeChar(label="Byte")}, name="PROCESSOR_NUMBER", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hThread", "lpIdealProcessor", "lpPreviousIdealProcessor"]),
#
'GetThreadIdealProcessorEx': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"Group": SimTypeShort(signed=False, label="UInt16"), "Number": SimTypeChar(label="Byte"), "Reserved": SimTypeChar(label="Byte")}, name="PROCESSOR_NUMBER", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hThread", "lpIdealProcessor"]),
#
'GetCurrentProcessorNumberEx': SimTypeFunction([SimTypePointer(SimStruct({"Group": SimTypeShort(signed=False, label="UInt16"), "Number": SimTypeChar(label="Byte"), "Reserved": SimTypeChar(label="Byte")}, name="PROCESSOR_NUMBER", pack=False, align=None), offset=0)], SimTypeBottom(label="Void"), arg_names=["ProcNumber"]),
#
'GetProcessPriorityBoost': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "pDisablePriorityBoost"]),
#
'SetProcessPriorityBoost': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "bDisablePriorityBoost"]),
#
'GetThreadIOPendingFlag': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hThread", "lpIOIsPending"]),
#
'GetSystemTimes': SimTypeFunction([SimTypePointer(SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpIdleTime", "lpKernelTime", "lpUserTime"]),
#
'GetThreadInformation': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="THREAD_INFORMATION_CLASS"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hThread", "ThreadInformationClass", "ThreadInformation", "ThreadInformationSize"]),
#
'SetThreadInformation': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="THREAD_INFORMATION_CLASS"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hThread", "ThreadInformationClass", "ThreadInformation", "ThreadInformationSize"]),
#
'IsProcessCritical': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "Critical"]),
#
'SetProtectedPolicy': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Guid"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["PolicyGuid", "PolicyValue", "OldPolicyValue"]),
#
'QueryProtectedPolicy': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Guid"), offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["PolicyGuid", "PolicyValue"]),
#
'SetThreadIdealProcessor': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["hThread", "dwIdealProcessor"]),
#
'SetProcessInformation': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="PROCESS_INFORMATION_CLASS"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "ProcessInformationClass", "ProcessInformation", "ProcessInformationSize"]),
#
'GetProcessInformation': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="PROCESS_INFORMATION_CLASS"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "ProcessInformationClass", "ProcessInformation", "ProcessInformationSize"]),
#
'GetSystemCpuSetInformation': SimTypeFunction([SimTypePointer(SimStruct({"Size": SimTypeInt(signed=False, label="UInt32"), "Type": SimTypeInt(signed=False, label="CPU_SET_INFORMATION_TYPE"), "Anonymous": SimUnion({"CpuSet": SimStruct({"Id": SimTypeInt(signed=False, label="UInt32"), "Group": SimTypeShort(signed=False, label="UInt16"), "LogicalProcessorIndex": SimTypeChar(label="Byte"), "CoreIndex": SimTypeChar(label="Byte"), "LastLevelCacheIndex": SimTypeChar(label="Byte"), "NumaNodeIndex": SimTypeChar(label="Byte"), "EfficiencyClass": SimTypeChar(label="Byte"), "Anonymous1": SimUnion({"AllFlags": SimTypeChar(label="Byte"), "Anonymous": SimStruct({"_bitfield": SimTypeChar(label="Byte")}, name="_Anonymous_e__Struct", pack=False, align=None)}, name="<anon>", label="None"), "Anonymous2": SimUnion({"Reserved": SimTypeInt(signed=False, label="UInt32"), "SchedulingClass": SimTypeChar(label="Byte")}, name="<anon>", label="None"), "AllocationTag": SimTypeLongLong(signed=False, label="UInt64")}, name="_CpuSet_e__Struct", pack=False, align=None)}, name="<anon>", label="None")}, name="SYSTEM_CPU_SET_INFORMATION", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["Information", "BufferLength", "ReturnedLength", "Process", "Flags"]),
#
'GetProcessDefaultCpuSets': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["Process", "CpuSetIds", "CpuSetIdCount", "RequiredIdCount"]),
#
'SetProcessDefaultCpuSets': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["Process", "CpuSetIds", "CpuSetIdCount"]),
#
'GetThreadSelectedCpuSets': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["Thread", "CpuSetIds", "CpuSetIdCount", "RequiredIdCount"]),
#
'SetThreadSelectedCpuSets': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["Thread", "CpuSetIds", "CpuSetIdCount"]),
#
'GetProcessShutdownParameters': SimTypeFunction([SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpdwLevel", "lpdwFlags"]),
#
'SetThreadDescription': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hThread", "lpThreadDescription"]),
#
'GetThreadDescription': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypePointer(SimTypeChar(label="Char"), offset=0), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hThread", "ppszThreadDescription"]),
#
'QueueUserWorkItem': SimTypeFunction([SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpThreadParameter"]), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="WORKER_THREAD_FLAGS")], SimTypeInt(signed=True, label="Int32"), arg_names=["Function", "Context", "Flags"]),
#
'UnregisterWaitEx': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["WaitHandle", "CompletionEvent"]),
#
'CreateTimerQueue': SimTypeFunction([], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)),
#
'CreateTimerQueueTimer': SimTypeFunction([SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeChar(label="Byte")], SimTypeBottom(label="Void"), arg_names=["param0", "param1"]), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="WORKER_THREAD_FLAGS")], SimTypeInt(signed=True, label="Int32"), arg_names=["phNewTimer", "TimerQueue", "Callback", "Parameter", "DueTime", "Period", "Flags"]),
#
'ChangeTimerQueueTimer': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["TimerQueue", "Timer", "DueTime", "Period"]),
#
'DeleteTimerQueueTimer': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["TimerQueue", "Timer", "CompletionEvent"]),
#
'DeleteTimerQueueEx': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["TimerQueue", "CompletionEvent"]),
#
'CreateThreadpool': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["reserved"]),
#
'SetThreadpoolThreadMaximum': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeBottom(label="Void"), arg_names=["ptpp", "cthrdMost"]),
#
'SetThreadpoolThreadMinimum': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["ptpp", "cthrdMic"]),
#
'SetThreadpoolStackInformation': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"StackReserve": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "StackCommit": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)}, name="TP_POOL_STACK_INFORMATION", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["ptpp", "ptpsi"]),
#
'QueryThreadpoolStackInformation': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"StackReserve": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "StackCommit": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)}, name="TP_POOL_STACK_INFORMATION", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["ptpp", "ptpsi"]),
#
'CloseThreadpool': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeBottom(label="Void"), arg_names=["ptpp"]),
#
'CreateThreadpoolCleanupGroup': SimTypeFunction([], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)),
#
'CloseThreadpoolCleanupGroupMembers': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeBottom(label="Void"), arg_names=["ptpcg", "fCancelPendingCallbacks", "pvCleanupContext"]),
#
'CloseThreadpoolCleanupGroup': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeBottom(label="Void"), arg_names=["ptpcg"]),
#
'SetEventWhenCallbackReturns': SimTypeFunction([SimTypePointer(SimStruct({}, name="TP_CALLBACK_INSTANCE", pack=False, align=None), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeBottom(label="Void"), arg_names=["pci", "evt"]),
#
'ReleaseSemaphoreWhenCallbackReturns': SimTypeFunction([SimTypePointer(SimStruct({}, name="TP_CALLBACK_INSTANCE", pack=False, align=None), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeBottom(label="Void"), arg_names=["pci", "sem", "crel"]),
#
'ReleaseMutexWhenCallbackReturns': SimTypeFunction([SimTypePointer(SimStruct({}, name="TP_CALLBACK_INSTANCE", pack=False, align=None), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeBottom(label="Void"), arg_names=["pci", "mut"]),
#
'LeaveCriticalSectionWhenCallbackReturns': SimTypeFunction([SimTypePointer(SimStruct({}, name="TP_CALLBACK_INSTANCE", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"DebugInfo": SimTypePointer(SimStruct({"Type": SimTypeShort(signed=False, label="UInt16"), "CreatorBackTraceIndex": SimTypeShort(signed=False, label="UInt16"), "CriticalSection": SimTypePointer(SimTypeBottom(label="RTL_CRITICAL_SECTION"), offset=0), "ProcessLocksList": SimStruct({"Flink": SimTypePointer(SimTypeBottom(label="LIST_ENTRY"), offset=0), "Blink": SimTypePointer(SimTypeBottom(label="LIST_ENTRY"), offset=0)}, name="LIST_ENTRY", pack=False, align=None), "EntryCount": SimTypeInt(signed=False, label="UInt32"), "ContentionCount": SimTypeInt(signed=False, label="UInt32"), "Flags": SimTypeInt(signed=False, label="UInt32"), "CreatorBackTraceIndexHigh": SimTypeShort(signed=False, label="UInt16"), "SpareWORD": SimTypeShort(signed=False, label="UInt16")}, name="RTL_CRITICAL_SECTION_DEBUG", pack=False, align=None), offset=0), "LockCount": SimTypeInt(signed=True, label="Int32"), "RecursionCount": SimTypeInt(signed=True, label="Int32"), "OwningThread": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "LockSemaphore": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "SpinCount": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)}, name="RTL_CRITICAL_SECTION", pack=False, align=None), offset=0)], SimTypeBottom(label="Void"), arg_names=["pci", "pcs"]),
#
'FreeLibraryWhenCallbackReturns': SimTypeFunction([SimTypePointer(SimStruct({}, name="TP_CALLBACK_INSTANCE", pack=False, align=None), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeBottom(label="Void"), arg_names=["pci", "mod"]),
#
'CallbackMayRunLong': SimTypeFunction([SimTypePointer(SimStruct({}, name="TP_CALLBACK_INSTANCE", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["pci"]),
#
'DisassociateCurrentThreadFromCallback': SimTypeFunction([SimTypePointer(SimStruct({}, name="TP_CALLBACK_INSTANCE", pack=False, align=None), offset=0)], SimTypeBottom(label="Void"), arg_names=["pci"]),
#
'TrySubmitThreadpoolCallback': SimTypeFunction([SimTypePointer(SimTypeFunction([SimTypePointer(SimStruct({}, name="TP_CALLBACK_INSTANCE", pack=False, align=None), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeBottom(label="Void"), arg_names=["Instance", "Context"]), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimStruct({"Version": SimTypeInt(signed=False, label="UInt32"), "Pool": SimTypeBottom(label="PTP_POOL"), "CleanupGroup": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "CleanupGroupCancelCallback": SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeBottom(label="Void"), arg_names=["ObjectContext", "CleanupContext"]), offset=0), "RaceDll": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "ActivationContext": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "FinalizationCallback": SimTypePointer(SimTypeFunction([SimTypePointer(SimStruct({}, name="TP_CALLBACK_INSTANCE", pack=False, align=None), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeBottom(label="Void"), arg_names=["Instance", "Context"]), offset=0), "u": SimUnion({"Flags": SimTypeInt(signed=False, label="UInt32"), "s": SimStruct({"_bitfield": SimTypeInt(signed=False, label="UInt32")}, name="_s_e__Struct", pack=False, align=None)}, name="<anon>", label="None"), "CallbackPriority": SimTypeInt(signed=False, label="TP_CALLBACK_PRIORITY"), "Size": SimTypeInt(signed=False, label="UInt32")}, name="TP_CALLBACK_ENVIRON_V3", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["pfns", "pv", "pcbe"]),
#
'CreateThreadpoolWork': SimTypeFunction([SimTypePointer(SimTypeFunction([SimTypePointer(SimStruct({}, name="TP_CALLBACK_INSTANCE", pack=False, align=None), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimStruct({}, name="TP_WORK", pack=False, align=None), offset=0)], SimTypeBottom(label="Void"), arg_names=["Instance", "Context", "Work"]), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimStruct({"Version": SimTypeInt(signed=False, label="UInt32"), "Pool": SimTypeBottom(label="PTP_POOL"), "CleanupGroup": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "CleanupGroupCancelCallback": SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeBottom(label="Void"), arg_names=["ObjectContext", "CleanupContext"]), offset=0), "RaceDll": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "ActivationContext": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "FinalizationCallback": SimTypePointer(SimTypeFunction([SimTypePointer(SimStruct({}, name="TP_CALLBACK_INSTANCE", pack=False, align=None), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeBottom(label="Void"), arg_names=["Instance", "Context"]), offset=0), "u": SimUnion({"Flags": SimTypeInt(signed=False, label="UInt32"), "s": SimStruct({"_bitfield": SimTypeInt(signed=False, label="UInt32")}, name="_s_e__Struct", pack=False, align=None)}, name="<anon>", label="None"), "CallbackPriority": SimTypeInt(signed=False, label="TP_CALLBACK_PRIORITY"), "Size": SimTypeInt(signed=False, label="UInt32")}, name="TP_CALLBACK_ENVIRON_V3", pack=False, align=None), offset=0)], SimTypePointer(SimStruct({}, name="TP_WORK", pack=False, align=None), offset=0), arg_names=["pfnwk", "pv", "pcbe"]),
#
'SubmitThreadpoolWork': SimTypeFunction([SimTypePointer(SimStruct({}, name="TP_WORK", pack=False, align=None), offset=0)], SimTypeBottom(label="Void"), arg_names=["pwk"]),
#
'WaitForThreadpoolWorkCallbacks': SimTypeFunction([SimTypePointer(SimStruct({}, name="TP_WORK", pack=False, align=None), offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeBottom(label="Void"), arg_names=["pwk", "fCancelPendingCallbacks"]),
#
'CloseThreadpoolWork': SimTypeFunction([SimTypePointer(SimStruct({}, name="TP_WORK", pack=False, align=None), offset=0)], SimTypeBottom(label="Void"), arg_names=["pwk"]),
#
'CreateThreadpoolTimer': SimTypeFunction([SimTypePointer(SimTypeFunction([SimTypePointer(SimStruct({}, name="TP_CALLBACK_INSTANCE", pack=False, align=None), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimStruct({}, name="TP_TIMER", pack=False, align=None), offset=0)], SimTypeBottom(label="Void"), arg_names=["Instance", "Context", "Timer"]), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimStruct({"Version": SimTypeInt(signed=False, label="UInt32"), "Pool": SimTypeBottom(label="PTP_POOL"), "CleanupGroup": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "CleanupGroupCancelCallback": SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeBottom(label="Void"), arg_names=["ObjectContext", "CleanupContext"]), offset=0), "RaceDll": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "ActivationContext": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "FinalizationCallback": SimTypePointer(SimTypeFunction([SimTypePointer(SimStruct({}, name="TP_CALLBACK_INSTANCE", pack=False, align=None), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeBottom(label="Void"), arg_names=["Instance", "Context"]), offset=0), "u": SimUnion({"Flags": SimTypeInt(signed=False, label="UInt32"), "s": SimStruct({"_bitfield": SimTypeInt(signed=False, label="UInt32")}, name="_s_e__Struct", pack=False, align=None)}, name="<anon>", label="None"), "CallbackPriority": SimTypeInt(signed=False, label="TP_CALLBACK_PRIORITY"), "Size": SimTypeInt(signed=False, label="UInt32")}, name="TP_CALLBACK_ENVIRON_V3", pack=False, align=None), offset=0)], SimTypePointer(SimStruct({}, name="TP_TIMER", pack=False, align=None), offset=0), arg_names=["pfnti", "pv", "pcbe"]),
#
'SetThreadpoolTimer': SimTypeFunction([SimTypePointer(SimStruct({}, name="TP_TIMER", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32")], SimTypeBottom(label="Void"), arg_names=["pti", "pftDueTime", "msPeriod", "msWindowLength"]),
#
'IsThreadpoolTimerSet': SimTypeFunction([SimTypePointer(SimStruct({}, name="TP_TIMER", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["pti"]),
#
'WaitForThreadpoolTimerCallbacks': SimTypeFunction([SimTypePointer(SimStruct({}, name="TP_TIMER", pack=False, align=None), offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeBottom(label="Void"), arg_names=["pti", "fCancelPendingCallbacks"]),
#
'CloseThreadpoolTimer': SimTypeFunction([SimTypePointer(SimStruct({}, name="TP_TIMER", pack=False, align=None), offset=0)], SimTypeBottom(label="Void"), arg_names=["pti"]),
#
'CreateThreadpoolWait': SimTypeFunction([SimTypePointer(SimTypeFunction([SimTypePointer(SimStruct({}, name="TP_CALLBACK_INSTANCE", pack=False, align=None), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimStruct({}, name="TP_WAIT", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeBottom(label="Void"), arg_names=["Instance", "Context", "Wait", "WaitResult"]), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimStruct({"Version": SimTypeInt(signed=False, label="UInt32"), "Pool": SimTypeBottom(label="PTP_POOL"), "CleanupGroup": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "CleanupGroupCancelCallback": SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeBottom(label="Void"), arg_names=["ObjectContext", "CleanupContext"]), offset=0), "RaceDll": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "ActivationContext": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "FinalizationCallback": SimTypePointer(SimTypeFunction([SimTypePointer(SimStruct({}, name="TP_CALLBACK_INSTANCE", pack=False, align=None), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeBottom(label="Void"), arg_names=["Instance", "Context"]), offset=0), "u": SimUnion({"Flags": SimTypeInt(signed=False, label="UInt32"), "s": SimStruct({"_bitfield": SimTypeInt(signed=False, label="UInt32")}, name="_s_e__Struct", pack=False, align=None)}, name="<anon>", label="None"), "CallbackPriority": SimTypeInt(signed=False, label="TP_CALLBACK_PRIORITY"), "Size": SimTypeInt(signed=False, label="UInt32")}, name="TP_CALLBACK_ENVIRON_V3", pack=False, align=None), offset=0)], SimTypePointer(SimStruct({}, name="TP_WAIT", pack=False, align=None), offset=0), arg_names=["pfnwa", "pv", "pcbe"]),
#
'SetThreadpoolWait': SimTypeFunction([SimTypePointer(SimStruct({}, name="TP_WAIT", pack=False, align=None), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), offset=0)], SimTypeBottom(label="Void"), arg_names=["pwa", "h", "pftTimeout"]),
#
'WaitForThreadpoolWaitCallbacks': SimTypeFunction([SimTypePointer(SimStruct({}, name="TP_WAIT", pack=False, align=None), offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeBottom(label="Void"), arg_names=["pwa", "fCancelPendingCallbacks"]),
#
'CloseThreadpoolWait': SimTypeFunction([SimTypePointer(SimStruct({}, name="TP_WAIT", pack=False, align=None), offset=0)], SimTypeBottom(label="Void"), arg_names=["pwa"]),
#
'CreateThreadpoolIo': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeFunction([SimTypePointer(SimStruct({}, name="TP_CALLBACK_INSTANCE", pack=False, align=None), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypePointer(SimStruct({}, name="TP_IO", pack=False, align=None), offset=0)], SimTypeBottom(label="Void"), arg_names=["Instance", "Context", "Overlapped", "IoResult", "NumberOfBytesTransferred", "Io"]), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimStruct({"Version": SimTypeInt(signed=False, label="UInt32"), "Pool": SimTypeBottom(label="PTP_POOL"), "CleanupGroup": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "CleanupGroupCancelCallback": SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeBottom(label="Void"), arg_names=["ObjectContext", "CleanupContext"]), offset=0), "RaceDll": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "ActivationContext": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "FinalizationCallback": SimTypePointer(SimTypeFunction([SimTypePointer(SimStruct({}, name="TP_CALLBACK_INSTANCE", pack=False, align=None), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeBottom(label="Void"), arg_names=["Instance", "Context"]), offset=0), "u": SimUnion({"Flags": SimTypeInt(signed=False, label="UInt32"), "s": SimStruct({"_bitfield": SimTypeInt(signed=False, label="UInt32")}, name="_s_e__Struct", pack=False, align=None)}, name="<anon>", label="None"), "CallbackPriority": SimTypeInt(signed=False, label="TP_CALLBACK_PRIORITY"), "Size": SimTypeInt(signed=False, label="UInt32")}, name="TP_CALLBACK_ENVIRON_V3", pack=False, align=None), offset=0)], SimTypePointer(SimStruct({}, name="TP_IO", pack=False, align=None), offset=0), arg_names=["fl", "pfnio", "pv", "pcbe"]),
#
'StartThreadpoolIo': SimTypeFunction([SimTypePointer(SimStruct({}, name="TP_IO", pack=False, align=None), offset=0)], SimTypeBottom(label="Void"), arg_names=["pio"]),
#
'CancelThreadpoolIo': SimTypeFunction([SimTypePointer(SimStruct({}, name="TP_IO", pack=False, align=None), offset=0)], SimTypeBottom(label="Void"), arg_names=["pio"]),
#
'WaitForThreadpoolIoCallbacks': SimTypeFunction([SimTypePointer(SimStruct({}, name="TP_IO", pack=False, align=None), offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeBottom(label="Void"), arg_names=["pio", "fCancelPendingCallbacks"]),
#
'CloseThreadpoolIo': SimTypeFunction([SimTypePointer(SimStruct({}, name="TP_IO", pack=False, align=None), offset=0)], SimTypeBottom(label="Void"), arg_names=["pio"]),
#
'SetThreadpoolTimerEx': SimTypeFunction([SimTypePointer(SimStruct({}, name="TP_TIMER", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["pti", "pftDueTime", "msPeriod", "msWindowLength"]),
#
'SetThreadpoolWaitEx': SimTypeFunction([SimTypePointer(SimStruct({}, name="TP_WAIT", pack=False, align=None), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["pwa", "h", "pftTimeout", "Reserved"]),
#
'IsWow64Process': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "Wow64Process"]),
#
'IsWow64Process2': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeShort(signed=False, label="UInt16"), offset=0), SimTypePointer(SimTypeShort(signed=False, label="UInt16"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "pProcessMachine", "pNativeMachine"]),
#
'Wow64SuspendThread': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["hThread"]),
#
'CreatePrivateNamespaceW': SimTypeFunction([SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpPrivateNamespaceAttributes", "lpBoundaryDescriptor", "lpAliasPrefix"]),
#
'OpenPrivateNamespaceW': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpBoundaryDescriptor", "lpAliasPrefix"]),
#
'ClosePrivateNamespace': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeChar(label="Byte"), arg_names=["Handle", "Flags"]),
#
'CreateBoundaryDescriptorW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["Name", "Flags"]),
#
'AddSIDToBoundaryDescriptor': SimTypeFunction([SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["BoundaryDescriptor", "RequiredSid"]),
#
'DeleteBoundaryDescriptor': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeBottom(label="Void"), arg_names=["BoundaryDescriptor"]),
#
'GetNumaHighestNodeNumber': SimTypeFunction([SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["HighestNodeNumber"]),
#
'GetNumaNodeProcessorMaskEx': SimTypeFunction([SimTypeShort(signed=False, label="UInt16"), SimTypePointer(SimStruct({"Mask": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "Group": SimTypeShort(signed=False, label="UInt16"), "Reserved": SimTypeFixedSizeArray(SimTypeShort(signed=False, label="UInt16"), 3)}, name="GROUP_AFFINITY", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["Node", "ProcessorMask"]),
#
'GetNumaProximityNodeEx': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeShort(signed=False, label="UInt16"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["ProximityId", "NodeNumber"]),
#
'GetProcessGroupAffinity': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeShort(signed=False, label="UInt16"), offset=0), SimTypePointer(SimTypeShort(signed=False, label="UInt16"), label="LPArray", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "GroupCount", "GroupArray"]),
#
'GetThreadGroupAffinity': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"Mask": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "Group": SimTypeShort(signed=False, label="UInt16"), "Reserved": SimTypeFixedSizeArray(SimTypeShort(signed=False, label="UInt16"), 3)}, name="GROUP_AFFINITY", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hThread", "GroupAffinity"]),
#
'SetThreadGroupAffinity': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"Mask": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "Group": SimTypeShort(signed=False, label="UInt16"), "Reserved": SimTypeFixedSizeArray(SimTypeShort(signed=False, label="UInt16"), 3)}, name="GROUP_AFFINITY", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"Mask": SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), "Group": SimTypeShort(signed=False, label="UInt16"), "Reserved": SimTypeFixedSizeArray(SimTypeShort(signed=False, label="UInt16"), 3)}, name="GROUP_AFFINITY", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hThread", "GroupAffinity", "PreviousGroupAffinity"]),
#
'GetProcessAffinityMask': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "lpProcessAffinityMask", "lpSystemAffinityMask"]),
#
'SetProcessAffinityMask': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "dwProcessAffinityMask"]),
#
'GetProcessIoCounters': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"ReadOperationCount": SimTypeLongLong(signed=False, label="UInt64"), "WriteOperationCount": SimTypeLongLong(signed=False, label="UInt64"), "OtherOperationCount": SimTypeLongLong(signed=False, label="UInt64"), "ReadTransferCount": SimTypeLongLong(signed=False, label="UInt64"), "WriteTransferCount": SimTypeLongLong(signed=False, label="UInt64"), "OtherTransferCount": SimTypeLongLong(signed=False, label="UInt64")}, name="IO_COUNTERS", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "lpIoCounters"]),
#
'GetProcessWorkingSetSize': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "lpMinimumWorkingSetSize", "lpMaximumWorkingSetSize"]),
#
'SetProcessWorkingSetSize': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "dwMinimumWorkingSetSize", "dwMaximumWorkingSetSize"]),
#
'SwitchToFiber': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeBottom(label="Void"), arg_names=["lpFiber"]),
#
'DeleteFiber': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeBottom(label="Void"), arg_names=["lpFiber"]),
#
'ConvertFiberToThread': SimTypeFunction([], SimTypeInt(signed=True, label="Int32")),
#
'CreateFiberEx': SimTypeFunction([SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeBottom(label="Void"), arg_names=["lpFiberParameter"]), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypePointer(SimTypeBottom(label="Void"), offset=0), arg_names=["dwStackCommitSize", "dwStackReserveSize", "dwFlags", "lpStartAddress", "lpParameter"]),
#
'ConvertThreadToFiberEx': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypePointer(SimTypeBottom(label="Void"), offset=0), arg_names=["lpParameter", "dwFlags"]),
#
'CreateFiber': SimTypeFunction([SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeBottom(label="Void"), arg_names=["lpFiberParameter"]), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypePointer(SimTypeBottom(label="Void"), offset=0), arg_names=["dwStackSize", "lpStartAddress", "lpParameter"]),
#
'ConvertThreadToFiber': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypePointer(SimTypeBottom(label="Void"), offset=0), arg_names=["lpParameter"]),
#
'CreateUmsCompletionList': SimTypeFunction([SimTypePointer(SimTypePointer(SimTypeBottom(label="Void"), offset=0), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["UmsCompletionList"]),
#
'DequeueUmsCompletionListItems': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypePointer(SimTypeBottom(label="Void"), offset=0), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["UmsCompletionList", "WaitTimeOut", "UmsThreadList"]),
#
'GetUmsCompletionListEvent': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["UmsCompletionList", "UmsCompletionEvent"]),
#
'ExecuteUmsThread': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["UmsThread"]),
#
'UmsThreadYield': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["SchedulerParam"]),
#
'DeleteUmsCompletionList': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["UmsCompletionList"]),
#
'GetCurrentUmsThread': SimTypeFunction([], SimTypePointer(SimTypeBottom(label="Void"), offset=0)),
#
'GetNextUmsListItem': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypePointer(SimTypeBottom(label="Void"), offset=0), arg_names=["UmsContext"]),
#
'QueryUmsThreadInformation': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="RTL_UMS_THREAD_INFO_CLASS"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["UmsThread", "UmsThreadInfoClass", "UmsThreadInformation", "UmsThreadInformationLength", "ReturnLength"]),
#
'SetUmsThreadInformation': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="RTL_UMS_THREAD_INFO_CLASS"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["UmsThread", "UmsThreadInfoClass", "UmsThreadInformation", "UmsThreadInformationLength"]),
#
'DeleteUmsThreadContext': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["UmsThread"]),
#
'CreateUmsThreadContext': SimTypeFunction([SimTypePointer(SimTypePointer(SimTypeBottom(label="Void"), offset=0), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpUmsThread"]),
#
'EnterUmsSchedulingMode': SimTypeFunction([SimTypePointer(SimStruct({"UmsVersion": SimTypeInt(signed=False, label="UInt32"), "CompletionList": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "SchedulerProc": SimTypePointer(SimTypeFunction([SimTypeInt(signed=False, label="RTL_UMS_SCHEDULER_REASON"), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0)], SimTypeBottom(label="Void"), arg_names=["Reason", "ActivationPayload", "SchedulerParam"]), offset=0), "SchedulerParam": SimTypePointer(SimTypeBottom(label="Void"), offset=0)}, name="UMS_SCHEDULER_STARTUP_INFO", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["SchedulerStartupInfo"]),
#
'GetUmsSystemThreadInformation': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimStruct({"UmsVersion": SimTypeInt(signed=False, label="UInt32"), "Anonymous": SimUnion({"Anonymous": SimStruct({"_bitfield": SimTypeInt(signed=False, label="UInt32")}, name="_Anonymous_e__Struct", pack=False, align=None), "ThreadUmsFlags": SimTypeInt(signed=False, label="UInt32")}, name="<anon>", label="None")}, name="UMS_SYSTEM_THREAD_INFORMATION", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["ThreadHandle", "SystemThreadInfo"]),
#
'SetThreadAffinityMask': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)], SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), arg_names=["hThread", "dwThreadAffinityMask"]),
#
'SetProcessDEPPolicy': SimTypeFunction([SimTypeInt(signed=False, label="PROCESS_DEP_FLAGS")], SimTypeInt(signed=True, label="Int32"), arg_names=["dwFlags"]),
#
'GetProcessDEPPolicy': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "lpFlags", "lpPermanent"]),
#
'PulseEvent': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hEvent"]),
#
'WinExec': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpCmdLine", "uCmdShow"]),
#
'CreateSemaphoreA': SimTypeFunction([SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0), SimTypeInt(signed=True, label="Int32"), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpSemaphoreAttributes", "lInitialCount", "lMaximumCount", "lpName"]),
#
'CreateSemaphoreExA': SimTypeFunction([SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0), SimTypeInt(signed=True, label="Int32"), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32")], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpSemaphoreAttributes", "lInitialCount", "lMaximumCount", "lpName", "dwFlags", "dwDesiredAccess"]),
#
'QueryFullProcessImageNameA': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="PROCESS_NAME_FORMAT"), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "dwFlags", "lpExeName", "lpdwSize"]),
#
'QueryFullProcessImageNameW': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="PROCESS_NAME_FORMAT"), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hProcess", "dwFlags", "lpExeName", "lpdwSize"]),
#
'RegisterWaitForSingleObject': SimTypeFunction([SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeChar(label="Byte")], SimTypeBottom(label="Void"), arg_names=["param0", "param1"]), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="WORKER_THREAD_FLAGS")], SimTypeInt(signed=True, label="Int32"), arg_names=["phNewWaitObject", "hObject", "Callback", "Context", "dwMilliseconds", "dwFlags"]),
#
'UnregisterWait': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["WaitHandle"]),
#
'DeleteTimerQueue': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["TimerQueue"]),
#
'CreatePrivateNamespaceA': SimTypeFunction([SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpPrivateNamespaceAttributes", "lpBoundaryDescriptor", "lpAliasPrefix"]),
#
'OpenPrivateNamespaceA': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpBoundaryDescriptor", "lpAliasPrefix"]),
#
'CreateBoundaryDescriptorA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["Name", "Flags"]),
#
'AddIntegrityLabelToBoundaryDescriptor': SimTypeFunction([SimTypePointer(SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["BoundaryDescriptor", "IntegrityLabel"]),
#
'GetActiveProcessorGroupCount': SimTypeFunction([], SimTypeShort(signed=False, label="UInt16")),
#
'GetMaximumProcessorGroupCount': SimTypeFunction([], SimTypeShort(signed=False, label="UInt16")),
#
'GetActiveProcessorCount': SimTypeFunction([SimTypeShort(signed=False, label="UInt16")], SimTypeInt(signed=False, label="UInt32"), arg_names=["GroupNumber"]),
#
'GetMaximumProcessorCount': SimTypeFunction([SimTypeShort(signed=False, label="UInt16")], SimTypeInt(signed=False, label="UInt32"), arg_names=["GroupNumber"]),
#
'GetNumaProcessorNode': SimTypeFunction([SimTypeChar(label="Byte"), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["Processor", "NodeNumber"]),
#
'GetNumaNodeNumberFromHandle': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeShort(signed=False, label="UInt16"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "NodeNumber"]),
#
'GetNumaProcessorNodeEx': SimTypeFunction([SimTypePointer(SimStruct({"Group": SimTypeShort(signed=False, label="UInt16"), "Number": SimTypeChar(label="Byte"), "Reserved": SimTypeChar(label="Byte")}, name="PROCESSOR_NUMBER", pack=False, align=None), offset=0), SimTypePointer(SimTypeShort(signed=False, label="UInt16"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["Processor", "NodeNumber"]),
#
'GetNumaNodeProcessorMask': SimTypeFunction([SimTypeChar(label="Byte"), SimTypePointer(SimTypeLongLong(signed=False, label="UInt64"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["Node", "ProcessorMask"]),
#
'GetNumaAvailableMemoryNode': SimTypeFunction([SimTypeChar(label="Byte"), SimTypePointer(SimTypeLongLong(signed=False, label="UInt64"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["Node", "AvailableBytes"]),
#
'GetNumaAvailableMemoryNodeEx': SimTypeFunction([SimTypeShort(signed=False, label="UInt16"), SimTypePointer(SimTypeLongLong(signed=False, label="UInt64"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["Node", "AvailableBytes"]),
#
'GetNumaProximityNode': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["ProximityId", "NodeNumber"]),
#
'SystemTimeToTzSpecificLocalTime': SimTypeFunction([SimTypePointer(SimStruct({"Bias": SimTypeInt(signed=True, label="Int32"), "StandardName": SimTypeFixedSizeArray(SimTypeChar(label="Char"), 32), "StandardDate": SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), "StandardBias": SimTypeInt(signed=True, label="Int32"), "DaylightName": SimTypeFixedSizeArray(SimTypeChar(label="Char"), 32), "DaylightDate": SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), "DaylightBias": SimTypeInt(signed=True, label="Int32")}, name="TIME_ZONE_INFORMATION", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpTimeZoneInformation", "lpUniversalTime", "lpLocalTime"]),
#
'TzSpecificLocalTimeToSystemTime': SimTypeFunction([SimTypePointer(SimStruct({"Bias": SimTypeInt(signed=True, label="Int32"), "StandardName": SimTypeFixedSizeArray(SimTypeChar(label="Char"), 32), "StandardDate": SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), "StandardBias": SimTypeInt(signed=True, label="Int32"), "DaylightName": SimTypeFixedSizeArray(SimTypeChar(label="Char"), 32), "DaylightDate": SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), "DaylightBias": SimTypeInt(signed=True, label="Int32")}, name="TIME_ZONE_INFORMATION", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpTimeZoneInformation", "lpLocalTime", "lpUniversalTime"]),
#
'FileTimeToSystemTime': SimTypeFunction([SimTypePointer(SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpFileTime", "lpSystemTime"]),
#
'SystemTimeToFileTime': SimTypeFunction([SimTypePointer(SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpSystemTime", "lpFileTime"]),
#
'GetTimeZoneInformation': SimTypeFunction([SimTypePointer(SimStruct({"Bias": SimTypeInt(signed=True, label="Int32"), "StandardName": SimTypeFixedSizeArray(SimTypeChar(label="Char"), 32), "StandardDate": SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), "StandardBias": SimTypeInt(signed=True, label="Int32"), "DaylightName": SimTypeFixedSizeArray(SimTypeChar(label="Char"), 32), "DaylightDate": SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), "DaylightBias": SimTypeInt(signed=True, label="Int32")}, name="TIME_ZONE_INFORMATION", pack=False, align=None), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpTimeZoneInformation"]),
#
'SetTimeZoneInformation': SimTypeFunction([SimTypePointer(SimStruct({"Bias": SimTypeInt(signed=True, label="Int32"), "StandardName": SimTypeFixedSizeArray(SimTypeChar(label="Char"), 32), "StandardDate": SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), "StandardBias": SimTypeInt(signed=True, label="Int32"), "DaylightName": SimTypeFixedSizeArray(SimTypeChar(label="Char"), 32), "DaylightDate": SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), "DaylightBias": SimTypeInt(signed=True, label="Int32")}, name="TIME_ZONE_INFORMATION", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpTimeZoneInformation"]),
#
'SetDynamicTimeZoneInformation': SimTypeFunction([SimTypePointer(SimStruct({"Bias": SimTypeInt(signed=True, label="Int32"), "StandardName": SimTypeFixedSizeArray(SimTypeChar(label="Char"), 32), "StandardDate": SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), "StandardBias": SimTypeInt(signed=True, label="Int32"), "DaylightName": SimTypeFixedSizeArray(SimTypeChar(label="Char"), 32), "DaylightDate": SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), "DaylightBias": SimTypeInt(signed=True, label="Int32"), "TimeZoneKeyName": SimTypeFixedSizeArray(SimTypeChar(label="Char"), 128), "DynamicDaylightTimeDisabled": SimTypeChar(label="Byte")}, name="DYNAMIC_TIME_ZONE_INFORMATION", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpTimeZoneInformation"]),
#
'GetDynamicTimeZoneInformation': SimTypeFunction([SimTypePointer(SimStruct({"Bias": SimTypeInt(signed=True, label="Int32"), "StandardName": SimTypeFixedSizeArray(SimTypeChar(label="Char"), 32), "StandardDate": SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), "StandardBias": SimTypeInt(signed=True, label="Int32"), "DaylightName": SimTypeFixedSizeArray(SimTypeChar(label="Char"), 32), "DaylightDate": SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), "DaylightBias": SimTypeInt(signed=True, label="Int32"), "TimeZoneKeyName": SimTypeFixedSizeArray(SimTypeChar(label="Char"), 128), "DynamicDaylightTimeDisabled": SimTypeChar(label="Byte")}, name="DYNAMIC_TIME_ZONE_INFORMATION", pack=False, align=None), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["pTimeZoneInformation"]),
#
'GetTimeZoneInformationForYear': SimTypeFunction([SimTypeShort(signed=False, label="UInt16"), SimTypePointer(SimStruct({"Bias": SimTypeInt(signed=True, label="Int32"), "StandardName": SimTypeFixedSizeArray(SimTypeChar(label="Char"), 32), "StandardDate": SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), "StandardBias": SimTypeInt(signed=True, label="Int32"), "DaylightName": SimTypeFixedSizeArray(SimTypeChar(label="Char"), 32), "DaylightDate": SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), "DaylightBias": SimTypeInt(signed=True, label="Int32"), "TimeZoneKeyName": SimTypeFixedSizeArray(SimTypeChar(label="Char"), 128), "DynamicDaylightTimeDisabled": SimTypeChar(label="Byte")}, name="DYNAMIC_TIME_ZONE_INFORMATION", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"Bias": SimTypeInt(signed=True, label="Int32"), "StandardName": SimTypeFixedSizeArray(SimTypeChar(label="Char"), 32), "StandardDate": SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), "StandardBias": SimTypeInt(signed=True, label="Int32"), "DaylightName": SimTypeFixedSizeArray(SimTypeChar(label="Char"), 32), "DaylightDate": SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), "DaylightBias": SimTypeInt(signed=True, label="Int32")}, name="TIME_ZONE_INFORMATION", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["wYear", "pdtzi", "ptzi"]),
#
'SystemTimeToTzSpecificLocalTimeEx': SimTypeFunction([SimTypePointer(SimStruct({"Bias": SimTypeInt(signed=True, label="Int32"), "StandardName": SimTypeFixedSizeArray(SimTypeChar(label="Char"), 32), "StandardDate": SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), "StandardBias": SimTypeInt(signed=True, label="Int32"), "DaylightName": SimTypeFixedSizeArray(SimTypeChar(label="Char"), 32), "DaylightDate": SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), "DaylightBias": SimTypeInt(signed=True, label="Int32"), "TimeZoneKeyName": SimTypeFixedSizeArray(SimTypeChar(label="Char"), 128), "DynamicDaylightTimeDisabled": SimTypeChar(label="Byte")}, name="DYNAMIC_TIME_ZONE_INFORMATION", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpTimeZoneInformation", "lpUniversalTime", "lpLocalTime"]),
#
'TzSpecificLocalTimeToSystemTimeEx': SimTypeFunction([SimTypePointer(SimStruct({"Bias": SimTypeInt(signed=True, label="Int32"), "StandardName": SimTypeFixedSizeArray(SimTypeChar(label="Char"), 32), "StandardDate": SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), "StandardBias": SimTypeInt(signed=True, label="Int32"), "DaylightName": SimTypeFixedSizeArray(SimTypeChar(label="Char"), 32), "DaylightDate": SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), "DaylightBias": SimTypeInt(signed=True, label="Int32"), "TimeZoneKeyName": SimTypeFixedSizeArray(SimTypeChar(label="Char"), 128), "DynamicDaylightTimeDisabled": SimTypeChar(label="Byte")}, name="DYNAMIC_TIME_ZONE_INFORMATION", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpTimeZoneInformation", "lpLocalTime", "lpUniversalTime"]),
#
'LocalFileTimeToLocalSystemTime': SimTypeFunction([SimTypePointer(SimStruct({"Bias": SimTypeInt(signed=True, label="Int32"), "StandardName": SimTypeFixedSizeArray(SimTypeChar(label="Char"), 32), "StandardDate": SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), "StandardBias": SimTypeInt(signed=True, label="Int32"), "DaylightName": SimTypeFixedSizeArray(SimTypeChar(label="Char"), 32), "DaylightDate": SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), "DaylightBias": SimTypeInt(signed=True, label="Int32")}, name="TIME_ZONE_INFORMATION", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["timeZoneInformation", "localFileTime", "localSystemTime"]),
#
'LocalSystemTimeToLocalFileTime': SimTypeFunction([SimTypePointer(SimStruct({"Bias": SimTypeInt(signed=True, label="Int32"), "StandardName": SimTypeFixedSizeArray(SimTypeChar(label="Char"), 32), "StandardDate": SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), "StandardBias": SimTypeInt(signed=True, label="Int32"), "DaylightName": SimTypeFixedSizeArray(SimTypeChar(label="Char"), 32), "DaylightDate": SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), "DaylightBias": SimTypeInt(signed=True, label="Int32")}, name="TIME_ZONE_INFORMATION", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"wYear": SimTypeShort(signed=False, label="UInt16"), "wMonth": SimTypeShort(signed=False, label="UInt16"), "wDayOfWeek": SimTypeShort(signed=False, label="UInt16"), "wDay": SimTypeShort(signed=False, label="UInt16"), "wHour": SimTypeShort(signed=False, label="UInt16"), "wMinute": SimTypeShort(signed=False, label="UInt16"), "wSecond": SimTypeShort(signed=False, label="UInt16"), "wMilliseconds": SimTypeShort(signed=False, label="UInt16")}, name="SYSTEMTIME", pack=False, align=None), offset=0), SimTypePointer(SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["timeZoneInformation", "localSystemTime", "localFileTime"]),
#
'uaw_lstrcmpW': SimTypeFunction([SimTypePointer(SimTypeShort(signed=False, label="UInt16"), offset=0), SimTypePointer(SimTypeShort(signed=False, label="UInt16"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["String1", "String2"]),
#
'uaw_lstrcmpiW': SimTypeFunction([SimTypePointer(SimTypeShort(signed=False, label="UInt16"), offset=0), SimTypePointer(SimTypeShort(signed=False, label="UInt16"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["String1", "String2"]),
#
'uaw_lstrlenW': SimTypeFunction([SimTypePointer(SimTypeShort(signed=False, label="UInt16"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["String"]),
#
'uaw_wcschr': SimTypeFunction([SimTypePointer(SimTypeShort(signed=False, label="UInt16"), offset=0), SimTypeChar(label="Char")], SimTypePointer(SimTypeShort(signed=False, label="UInt16"), offset=0), arg_names=["String", "Character"]),
#
'uaw_wcscpy': SimTypeFunction([SimTypePointer(SimTypeShort(signed=False, label="UInt16"), offset=0), SimTypePointer(SimTypeShort(signed=False, label="UInt16"), offset=0)], SimTypePointer(SimTypeShort(signed=False, label="UInt16"), offset=0), arg_names=["Destination", "Source"]),
#
'uaw_wcsicmp': SimTypeFunction([SimTypePointer(SimTypeShort(signed=False, label="UInt16"), offset=0), SimTypePointer(SimTypeShort(signed=False, label="UInt16"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["String1", "String2"]),
#
'uaw_wcslen': SimTypeFunction([SimTypePointer(SimTypeShort(signed=False, label="UInt16"), offset=0)], SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), arg_names=["String"]),
#
'uaw_wcsrchr': SimTypeFunction([SimTypePointer(SimTypeShort(signed=False, label="UInt16"), offset=0), SimTypeChar(label="Char")], SimTypePointer(SimTypeShort(signed=False, label="UInt16"), offset=0), arg_names=["String", "Character"]),
#
'QueryThreadCycleTime': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeLongLong(signed=False, label="UInt64"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["ThreadHandle", "CycleTime"]),
#
'QueryProcessCycleTime': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeLongLong(signed=False, label="UInt64"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["ProcessHandle", "CycleTime"]),
#
'QueryIdleProcessorCycleTime': SimTypeFunction([SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeLongLong(signed=False, label="UInt64"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["BufferLength", "ProcessorIdleCycleTime"]),
#
'QueryIdleProcessorCycleTimeEx': SimTypeFunction([SimTypeShort(signed=False, label="UInt16"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeLongLong(signed=False, label="UInt64"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["Group", "BufferLength", "ProcessorIdleCycleTime"]),
#
'QueryUnbiasedInterruptTime': SimTypeFunction([SimTypePointer(SimTypeLongLong(signed=False, label="UInt64"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["UnbiasedTime"]),
#
'GlobalCompact': SimTypeFunction([SimTypeInt(signed=False, label="UInt32")], SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), arg_names=["dwMinFree"]),
#
'GlobalFix': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeBottom(label="Void"), arg_names=["hMem"]),
#
'GlobalUnfix': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeBottom(label="Void"), arg_names=["hMem"]),
#
'GlobalWire': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypePointer(SimTypeBottom(label="Void"), offset=0), arg_names=["hMem"]),
#
'GlobalUnWire': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hMem"]),
#
'LocalShrink': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), arg_names=["hMem", "cbNewSize"]),
#
'LocalCompact': SimTypeFunction([SimTypeInt(signed=False, label="UInt32")], SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0), arg_names=["uMinFree"]),
#
'SetEnvironmentStringsA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["NewEnvironment"]),
#
'SetHandleCount': SimTypeFunction([SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["uNumber"]),
#
'RequestDeviceWakeup': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hDevice"]),
#
'CancelDeviceWakeupRequest': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["hDevice"]),
#
'SetMessageWaitingIndicator': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hMsgIndicator", "ulMsgCount"]),
#
'MulDiv': SimTypeFunction([SimTypeInt(signed=True, label="Int32"), SimTypeInt(signed=True, label="Int32"), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["nNumber", "nNumerator", "nDenominator"]),
#
'GetSystemRegistryQuota': SimTypeFunction([SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["pdwQuotaAllowed", "pdwQuotaUsed"]),
#
'FileTimeToDosDateTime': SimTypeFunction([SimTypePointer(SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), offset=0), SimTypePointer(SimTypeShort(signed=False, label="UInt16"), offset=0), SimTypePointer(SimTypeShort(signed=False, label="UInt16"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpFileTime", "lpFatDate", "lpFatTime"]),
#
'DosDateTimeToFileTime': SimTypeFunction([SimTypeShort(signed=False, label="UInt16"), SimTypeShort(signed=False, label="UInt16"), SimTypePointer(SimStruct({"dwLowDateTime": SimTypeInt(signed=False, label="UInt32"), "dwHighDateTime": SimTypeInt(signed=False, label="UInt32")}, name="FILETIME", pack=False, align=None), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["wFatDate", "wFatTime", "lpFileTime"]),
#
'_lopen': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpPathName", "iReadWrite"]),
#
'_lcreat': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpPathName", "iAttribute"]),
#
'_lread': SimTypeFunction([SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["hFile", "lpBuffer", "uBytes"]),
#
'_lwrite': SimTypeFunction([SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["hFile", "lpBuffer", "uBytes"]),
#
'_hread': SimTypeFunction([SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "lpBuffer", "lBytes"]),
#
'_hwrite': SimTypeFunction([SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "lpBuffer", "lBytes"]),
#
'_lclose': SimTypeFunction([SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile"]),
#
'_llseek': SimTypeFunction([SimTypeInt(signed=True, label="Int32"), SimTypeInt(signed=True, label="Int32"), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=True, label="Int32"), arg_names=["hFile", "lOffset", "iOrigin"]),
#
'SignalObjectAndWait': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["hObjectToSignal", "hObjectToWaitOn", "dwMilliseconds", "bAlertable"]),
#
'OpenMutexA': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["dwDesiredAccess", "bInheritHandle", "lpName"]),
#
'OpenSemaphoreA': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["dwDesiredAccess", "bInheritHandle", "lpName"]),
#
'CreateWaitableTimerA': SimTypeFunction([SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpTimerAttributes", "bManualReset", "lpTimerName"]),
#
'OpenWaitableTimerA': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["dwDesiredAccess", "bInheritHandle", "lpTimerName"]),
#
'CreateWaitableTimerExA': SimTypeFunction([SimTypePointer(SimStruct({"nLength": SimTypeInt(signed=False, label="UInt32"), "lpSecurityDescriptor": SimTypePointer(SimTypeBottom(label="Void"), offset=0), "bInheritHandle": SimTypeInt(signed=True, label="Int32")}, name="SECURITY_ATTRIBUTES", pack=False, align=None), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32")], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["lpTimerAttributes", "lpTimerName", "dwFlags", "dwDesiredAccess"]),
#
'GetStartupInfoA': SimTypeFunction([SimTypePointer(SimStruct({"cb": SimTypeInt(signed=False, label="UInt32"), "lpReserved": SimTypePointer(SimTypeChar(label="Byte"), offset=0), "lpDesktop": SimTypePointer(SimTypeChar(label="Byte"), offset=0), "lpTitle": SimTypePointer(SimTypeChar(label="Byte"), offset=0), "dwX": SimTypeInt(signed=False, label="UInt32"), "dwY": SimTypeInt(signed=False, label="UInt32"), "dwXSize": SimTypeInt(signed=False, label="UInt32"), "dwYSize": SimTypeInt(signed=False, label="UInt32"), "dwXCountChars": SimTypeInt(signed=False, label="UInt32"), "dwYCountChars": SimTypeInt(signed=False, label="UInt32"), "dwFillAttribute": SimTypeInt(signed=False, label="UInt32"), "dwFlags": SimTypeInt(signed=False, label="STARTUPINFOW_FLAGS"), "wShowWindow": SimTypeShort(signed=False, label="UInt16"), "cbReserved2": SimTypeShort(signed=False, label="UInt16"), "lpReserved2": SimTypePointer(SimTypeChar(label="Byte"), offset=0), "hStdInput": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "hStdOutput": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "hStdError": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)}, name="STARTUPINFOA", pack=False, align=None), offset=0)], SimTypeBottom(label="Void"), arg_names=["lpStartupInfo"]),
#
'GetFirmwareEnvironmentVariableA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpName", "lpGuid", "pBuffer", "nSize"]),
#
'GetFirmwareEnvironmentVariableW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpName", "lpGuid", "pBuffer", "nSize"]),
#
'GetFirmwareEnvironmentVariableExA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpName", "lpGuid", "pBuffer", "nSize", "pdwAttribubutes"]),
#
'GetFirmwareEnvironmentVariableExW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpName", "lpGuid", "pBuffer", "nSize", "pdwAttribubutes"]),
#
'SetFirmwareEnvironmentVariableA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpName", "lpGuid", "pValue", "nSize"]),
#
'SetFirmwareEnvironmentVariableW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpName", "lpGuid", "pValue", "nSize"]),
#
'SetFirmwareEnvironmentVariableExA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpName", "lpGuid", "pValue", "nSize", "dwAttributes"]),
#
'SetFirmwareEnvironmentVariableExW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["lpName", "lpGuid", "pValue", "nSize", "dwAttributes"]),
#
'IsNativeVhdBoot': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["NativeVhdBoot"]),
#
'GetProfileIntA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpAppName", "lpKeyName", "nDefault"]),
#
'GetProfileIntW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=True, label="Int32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpAppName", "lpKeyName", "nDefault"]),
#
'GetProfileStringA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpAppName", "lpKeyName", "lpDefault", "lpReturnedString", "nSize"]),
#
'GetProfileStringW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpAppName", "lpKeyName", "lpDefault", "lpReturnedString", "nSize"]),
#
'WriteProfileStringA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpAppName", "lpKeyName", "lpString"]),
#
'WriteProfileStringW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpAppName", "lpKeyName", "lpString"]),
#
'GetProfileSectionA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpAppName", "lpReturnedString", "nSize"]),
#
'GetProfileSectionW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpAppName", "lpReturnedString", "nSize"]),
#
'WriteProfileSectionA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpAppName", "lpString"]),
#
'WriteProfileSectionW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpAppName", "lpString"]),
#
'GetPrivateProfileIntA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpAppName", "lpKeyName", "nDefault", "lpFileName"]),
#
'GetPrivateProfileIntW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=True, label="Int32"), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpAppName", "lpKeyName", "nDefault", "lpFileName"]),
#
'GetPrivateProfileStringA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpAppName", "lpKeyName", "lpDefault", "lpReturnedString", "nSize", "lpFileName"]),
#
'GetPrivateProfileStringW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpAppName", "lpKeyName", "lpDefault", "lpReturnedString", "nSize", "lpFileName"]),
#
'WritePrivateProfileStringA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpAppName", "lpKeyName", "lpString", "lpFileName"]),
#
'WritePrivateProfileStringW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpAppName", "lpKeyName", "lpString", "lpFileName"]),
#
'GetPrivateProfileSectionA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpAppName", "lpReturnedString", "nSize", "lpFileName"]),
#
'GetPrivateProfileSectionW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpAppName", "lpReturnedString", "nSize", "lpFileName"]),
#
'WritePrivateProfileSectionA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpAppName", "lpString", "lpFileName"]),
#
'WritePrivateProfileSectionW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpAppName", "lpString", "lpFileName"]),
#
'GetPrivateProfileSectionNamesA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpszReturnBuffer", "nSize", "lpFileName"]),
#
'GetPrivateProfileSectionNamesW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=False, label="UInt32"), arg_names=["lpszReturnBuffer", "nSize", "lpFileName"]),
#
'GetPrivateProfileStructA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpszSection", "lpszKey", "lpStruct", "uSizeStruct", "szFile"]),
#
'GetPrivateProfileStructW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpszSection", "lpszKey", "lpStruct", "uSizeStruct", "szFile"]),
#
'WritePrivateProfileStructA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Byte"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpszSection", "lpszKey", "lpStruct", "uSizeStruct", "szFile"]),
#
'WritePrivateProfileStructW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypeChar(label="Char"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpszSection", "lpszKey", "lpStruct", "uSizeStruct", "szFile"]),
#
'IsBadHugeReadPtr': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lp", "ucb"]),
#
'IsBadHugeWritePtr': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt"), label="UIntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lp", "ucb"]),
#
'GetComputerNameA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpBuffer", "nSize"]),
#
'GetComputerNameW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["lpBuffer", "nSize"]),
#
'DnsHostnameToComputerNameA': SimTypeFunction([SimTypePointer(SimTypeChar(label="Byte"), offset=0), SimTypePointer(SimTypeChar(label="Byte"), label="LPArray", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["Hostname", "ComputerName", "nSize"]),
#
'DnsHostnameToComputerNameW': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), label="LPArray", offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["Hostname", "ComputerName", "nSize"]),
#
'SetTimerQueueTimer': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeChar(label="Byte")], SimTypeBottom(label="Void"), arg_names=["param0", "param1"]), offset=0), SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=False, label="UInt32"), SimTypeInt(signed=True, label="Int32")], SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), arg_names=["TimerQueue", "Callback", "Parameter", "DueTime", "Period", "PreferIo"]),
#
'CancelTimerQueueTimer': SimTypeFunction([SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0)], SimTypeInt(signed=True, label="Int32"), arg_names=["TimerQueue", "Timer"]),
#
'CreateJobSet': SimTypeFunction([SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimStruct({"JobHandle": SimTypePointer(SimTypeInt(signed=True, label="Int"), label="IntPtr", offset=0), "MemberLevel": SimTypeInt(signed=False, label="UInt32"), "Flags": SimTypeInt(signed=False, label="UInt32")}, name="JOB_SET_ARRAY", pack=False, align=None), label="LPArray", offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["NumJob", "UserJobSet", "Flags"]),
#
'ReplacePartitionUnit': SimTypeFunction([SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypePointer(SimTypeChar(label="Char"), offset=0), SimTypeInt(signed=False, label="UInt32")], SimTypeInt(signed=True, label="Int32"), arg_names=["TargetPartition", "SparePartition", "Flags"]),
#
'InitializeContext2': SimTypeFunction([SimTypePointer(SimTypeBottom(label="Void"), offset=0), SimTypeInt(signed=False, label="UInt32"), SimTypePointer(SimTypePointer(SimStruct({"ContextFlags": SimTypeInt(signed=False, label="UInt32"), "Dr0": SimTypeInt(signed=False, label="UInt32"), "Dr1": SimTypeInt(signed=False, label="UInt32"), "Dr2": SimTypeInt(signed=False, label="UInt32"), "Dr3": SimTypeInt(signed=False, label="UInt32"), "Dr6": SimTypeInt(signed=False, label="UInt32"), "Dr7": SimTypeInt(signed=False, label="UInt32"), "FloatSave": SimTypeBottom(label="FLOATING_SAVE_AREA"), "SegGs": SimTypeInt(signed=False, label="UInt32"), "SegFs": SimTypeInt(signed=False, label="UInt32"), "SegEs": SimTypeInt(signed=False, label="UInt32"), "SegDs": SimTypeInt(signed=False, label="UInt32"), "Edi": SimTypeInt(signed=False, label="UInt32"), "Esi": SimTypeInt(signed=False, label="UInt32"), "Ebx": SimTypeInt(signed=False, label="UInt32"), "Edx": SimTypeInt(signed=False, label="UInt32"), "Ecx": SimTypeInt(signed=False, label="UInt32"), "Eax": SimTypeInt(signed=False, label="UInt32"), "Ebp": SimTypeInt(signed=False, label="UInt32"), "Eip": SimTypeInt(signed=False, label="UInt32"), "SegCs": SimTypeInt(signed=False, label="UInt32"), "EFlags": SimTypeInt(signed=False, label="UInt32"), "Esp": SimTypeInt(signed=False, label="UInt32"), "SegSs": SimTypeInt(signed=False, label="UInt32"), "ExtendedRegisters": SimTypeFixedSizeArray(SimTypeChar(label="Byte"), 512)}, name="CONTEXT", pack=False, align=None), offset=0), offset=0), SimTypePointer(SimTypeInt(signed=False, label="UInt32"), offset=0), SimTypeLongLong(signed=False, label="UInt64")], SimTypeInt(signed=True, label="Int32"), arg_names=["Buffer", "ContextFlags", "Context", "ContextLength", "XStateCompactionMask"]),
#
'InterlockedCompareExchange': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'InterlockedCompareExchange64': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'InterlockedDecrement': SimTypeFunction([SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'InterlockedExchange': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'InterlockedExchangeAdd': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'InterlockedIncrement': SimTypeFunction([SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'UTRegister': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegisterConsoleVDM': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegOpenUserClassesRoot': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'SortCloseHandle': SimTypeFunction([SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'WriteConsoleInputVDMW': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegEnumValueW': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'BaseDllReadWriteIniFile': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'NlsCheckPolicy': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegGetKeySecurity': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'lstrlen': SimTypeFunction([SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'NlsGetCacheUpdateCount': SimTypeFunction([], SimTypeLong(signed=True)),
#
'OpenThreadToken': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'SetTermsrvAppInstallMode': SimTypeFunction([SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'GetConsoleFontInfo': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'GetCalendarMonthsInYear': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'WerpNotifyLoadStringResourceEx': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RemoveLocalAlternateComputerNameW': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'SetVDMCurrentDirectories': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'SetConsoleInputExeNameA': SimTypeFunction([SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegDisablePredefinedCacheEx': SimTypeFunction([], SimTypeLong(signed=True)),
#
'IdnToAscii': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'LoadAppInitDlls': SimTypeFunction([], SimTypeLong(signed=True)),
#
'OpenConsoleW': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'ExitVDM': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegNotifyChangeKeyValue': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'AddLocalAlternateComputerNameW': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegOpenKeyExA': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RtlMoveMemory': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegFlushKey': SimTypeFunction([SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegUnLoadKeyA': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegisterConsoleIME': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegLoadMUIStringA': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegCreateKeyExW': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'CheckForReadOnlyResource': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegRestoreKeyW': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'lstrcpy': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegEnumKeyExW': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'CreateProcessAsUserW': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RtlZeroMemory': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'GetConsoleNlsMode': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegGetValueA': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'AdjustCalendarDate': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'BaseSetLastNTError': SimTypeFunction([SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'ShowConsoleCursor': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'BasepCheckWinSaferRestrictions': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'ReadConsoleInputExA': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegSetValueExW': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegQueryValueExW': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegDeleteValueA': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegOpenCurrentUser': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'CtrlRoutine': SimTypeFunction([SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RtlFillMemory': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'VerifyConsoleIoHandle': SimTypeFunction([SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'EnumerateLocalComputerNamesW': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'CloseProfileUserMapping': SimTypeFunction([], SimTypeLong(signed=True)),
#
'GetEraNameCountedString': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegisterWaitForSingleObjectEx': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'DosPathToSessionPathW': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegSaveKeyExA': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'CreateProcessInternalW': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'OpenProfileUserMapping': SimTypeFunction([], SimTypeLong(signed=True)),
#
'GetConsoleHardwareState': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'SetConsoleNlsMode': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'AddLocalAlternateComputerNameA': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'BasepCheckBadapp': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'GetConsoleKeyboardLayoutNameA': SimTypeFunction([SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'lstrcmpi': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'BaseFormatObjectAttributes': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'LZCloseFile': SimTypeFunction([SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'GetNamedPipeAttribute': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'BasepMapModuleHandle': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'SetNamedPipeAttribute': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegCreateKeyExA': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'SetConsoleOS2OemFormat': SimTypeFunction([SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'TermsrvAppInstallMode': SimTypeFunction([], SimTypeLong(signed=True)),
#
'RemoveLocalAlternateComputerNameA': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'LZCreateFileW': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'NlsUpdateLocale': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegisterWowBaseHandlers': SimTypeFunction([SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'SetClientTimeZoneInformation': SimTypeFunction([SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'BaseCheckRunApp': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'BaseThreadInitThunk': SimTypeFunction([SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'UpdateCalendarDayOfWeek': SimTypeFunction([SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'SetConsoleMaximumWindowSize': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'ConvertNLSDayOfWeekToWin32DayOfWeek': SimTypeFunction([SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'ConvertCalDateTimeToSystemTime': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegDeleteKeyExW': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'ReplaceFile': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'GetConsoleCharType': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'GetConsoleInputWaitHandle': SimTypeFunction([], SimTypeLong(signed=True)),
#
'RestoreLastError': SimTypeFunction([SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'CompareCalendarDates': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegLoadKeyA': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'SetLocalPrimaryComputerNameW': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'UnregisterConsoleIME': SimTypeFunction([], SimTypeLong(signed=True)),
#
'lstrcat': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'BaseInitAppcompatCacheSupport': SimTypeFunction([], SimTypeLong(signed=True)),
#
'InterlockedPushListSList': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'GetEnvironmentStringsA': SimTypeFunction([], SimTypeLong(signed=True)),
#
'CreateSocketHandle': SimTypeFunction([], SimTypeLong(signed=True)),
#
'RegSetKeySecurity': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'SetThreadToken': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegQueryInfoKeyW': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'GetNumberOfConsoleFonts': SimTypeFunction([], SimTypeLong(signed=True)),
#
'GetCalendarSupportedDateRange': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegOpenKeyExW': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegKrnGetGlobalState': SimTypeFunction([], SimTypeLong(signed=True)),
#
'WerpNotifyUseStringResource': SimTypeFunction([SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'SetConsoleFont': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'BaseGetNamedObjectDirectory': SimTypeFunction([SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'IsCalendarLeapMonth': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegDeleteTreeW': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'IsValidCalDateTime': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegQueryValueExA': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'SetConsoleCursor': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegDeleteTreeA': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'SortGetHandle': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'WerpInitiateRemoteRecovery': SimTypeFunction([SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'VDMOperationStarted': SimTypeFunction([SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'OpenProcessToken': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'VDMConsoleOperation': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'BaseVerifyUnicodeString': SimTypeFunction([SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegUnLoadKeyW': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'GetProcessUserModeExceptionPolicy': SimTypeFunction([SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'GetNextVDMCommand': SimTypeFunction([SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'LoadStringBaseW': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'DuplicateConsoleHandle': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'BaseCheckAppcompatCache': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'WerpStringLookup': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'BaseDumpAppcompatCache': SimTypeFunction([], SimTypeLong(signed=True)),
#
'CreateProcessInternalA': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'NlsEventDataDescCreate': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegRestoreKeyA': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'NlsWriteEtwEvent': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegCloseKey': SimTypeFunction([SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'NotifyMountMgr': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'IsCalendarLeapYear': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'DosPathToSessionPathA': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'BasepAnsiStringToDynamicUnicodeString': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'SetLocalPrimaryComputerNameA': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'lstrcpyn': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'SetConsoleLocalEUDC': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'PrivCopyFileExW': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'SetConsoleCursorMode': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegisterConsoleOS2': SimTypeFunction([SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'SetConsoleIcon': SimTypeFunction([SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegDeleteValueW': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'SetConsoleInputExeNameW': SimTypeFunction([SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'SetConsoleHardwareState': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'GetConsoleCursorMode': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'ReadConsoleInputExW': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'WerpNotifyLoadStringResource': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'BaseCheckAppcompatCacheEx': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'PrivMoveFileIdentityW': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'CmdBatNotification': SimTypeFunction([SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'BaseFormatTimeOut': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'InvalidateConsoleDIBits': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegSaveKeyExW': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'IsCalendarLeapDay': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'BaseCleanupAppcompatCacheSupport': SimTypeFunction([SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'BasepAllocateActivationContextActivationBlock': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'DelayLoadFailureHook': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'WriteConsoleInputVDMA': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegLoadKeyW': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'lstrcmp': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'ConsoleMenuControl': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'BaseQueryModuleData': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegDeleteKeyExA': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegLoadMUIStringW': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'SetHandleContext': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'IdnToUnicode': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegKrnInitialize': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'BaseFlushAppcompatCache': SimTypeFunction([], SimTypeLong(signed=True)),
#
'GetCalendarWeekNumber': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'NlsUpdateSystemLocale': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'GetComPlusPackageInstallStatus': SimTypeFunction([], SimTypeLong(signed=True)),
#
'BaseIsAppcompatInfrastructureDisabled': SimTypeFunction([], SimTypeLong(signed=True)),
#
'WerpCleanupMessageMapping': SimTypeFunction([], SimTypeLong(signed=True)),
#
'RegisterWowExec': SimTypeFunction([SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'BasepCheckAppCompat': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'SetConsoleMenuClose': SimTypeFunction([SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'GetCalendarDifferenceInDays': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'LoadStringBaseExW': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'GetConsoleInputExeNameA': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'SetConsolePalette': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'GetCalendarDaysInMonth': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'BaseGenerateAppCompatData': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'SetLastConsoleEventActive': SimTypeFunction([], SimTypeLong(signed=True)),
#
'GetConsoleInputExeNameW': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegGetValueW': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'GetHandleContext': SimTypeFunction([SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'SetConsoleKeyShortcuts': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'BaseUpdateAppcompatCache': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'BasepFreeActivationContextActivationBlock': SimTypeFunction([SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'GetBinaryType': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'Basep8BitStringToDynamicUnicodeString': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegQueryInfoKeyA': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'BasepFreeAppCompatData': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegEnumKeyExA': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'CheckElevationEnabled': SimTypeFunction([SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'GetCalendarDateFormatEx': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegSetValueExA': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegEnumValueA': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'GetConsoleKeyboardLayoutNameW': SimTypeFunction([SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'SetComPlusPackageInstallStatus': SimTypeFunction([SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'GetVDMCurrentDirectories': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'CloseConsoleHandle': SimTypeFunction([SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'EnumerateLocalComputerNamesA': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'UTUnRegister': SimTypeFunction([SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'GetCalendarDateFormat': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'SetProcessUserModeExceptionPolicy': SimTypeFunction([SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'CheckElevation': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'RegisterWaitForInputIdle': SimTypeFunction([SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'ConvertSystemTimeToCalDateTime': SimTypeFunction([SimTypeLong(signed=True), SimTypeLong(signed=True), SimTypeLong(signed=True)], SimTypeLong(signed=True)),
#
'IsTimeZoneRedirectionEnabled': SimTypeFunction([], SimTypeLong(signed=True)),
}
lib.set_prototypes(prototypes)
| 239.538709
| 8,788
| 0.732623
| 75,918
| 745,684
| 7.153099
| 0.047841
| 0.15094
| 0.120357
| 0.145932
| 0.911017
| 0.904355
| 0.895381
| 0.887194
| 0.882475
| 0.879619
| 0
| 0.021823
| 0.081411
| 745,684
| 3,112
| 8,789
| 239.615681
| 0.770976
| 0.000038
| 0
| 0
| 0
| 0
| 0.239689
| 0.040696
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.001279
| 0.003197
| 0
| 0.003197
| 0.000639
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
56284cbb85c47ff6fe41ee239426254429afb966
| 182
|
py
|
Python
|
arcade_solutions/intro/different_symbols_naive.py
|
nickaigi/automatic-dollop
|
eb8222475c7871c1d5710242c5aed8c70ea0d2c8
|
[
"Unlicense"
] | null | null | null |
arcade_solutions/intro/different_symbols_naive.py
|
nickaigi/automatic-dollop
|
eb8222475c7871c1d5710242c5aed8c70ea0d2c8
|
[
"Unlicense"
] | null | null | null |
arcade_solutions/intro/different_symbols_naive.py
|
nickaigi/automatic-dollop
|
eb8222475c7871c1d5710242c5aed8c70ea0d2c8
|
[
"Unlicense"
] | null | null | null |
def different_symbols_naive(s):
symbols = set()
for ch in s:
symbols.update(ch)
return len(symbols)
def different_symbols_naive_short(s):
return len(set(s))
| 20.222222
| 37
| 0.67033
| 27
| 182
| 4.333333
| 0.481481
| 0.205128
| 0.324786
| 0.410256
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.225275
| 182
| 8
| 38
| 22.75
| 0.829787
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.285714
| false
| 0
| 0
| 0.142857
| 0.571429
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 8
|
563118cb91495cc73be3ca2f2c8b6e9eae0f6d9a
| 314
|
py
|
Python
|
gym_envs/gym-cpu/gymcpu/envs/__init__.py
|
pherna06/server-consumption
|
fee063aa4a1c65f1f8fa188abb59b8298a63907b
|
[
"Apache-2.0"
] | 1
|
2020-12-16T11:19:46.000Z
|
2020-12-16T11:19:46.000Z
|
gym_envs/gym-cpu/gymcpu/envs/__init__.py
|
pherna06/server-consumption
|
fee063aa4a1c65f1f8fa188abb59b8298a63907b
|
[
"Apache-2.0"
] | null | null | null |
gym_envs/gym-cpu/gymcpu/envs/__init__.py
|
pherna06/server-consumption
|
fee063aa4a1c65f1f8fa188abb59b8298a63907b
|
[
"Apache-2.0"
] | null | null | null |
from gymcpu.envs.cpu_env00 import CPUEnv00
from gymcpu.envs.cpu_env01 import CPUEnv01
from gymcpu.envs.cpu_env02 import CPUEnv02
from gymcpu.envs.cpu_env03 import CPUEnv03
from gymcpu.envs.final_env01 import FinalEnv01
from gymcpu.envs.final_env02 import FinalEnv02
from gymcpu.envs.final_env03 import FinalEnv03
| 34.888889
| 46
| 0.863057
| 49
| 314
| 5.387755
| 0.346939
| 0.265152
| 0.371212
| 0.257576
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.098246
| 0.092357
| 314
| 8
| 47
| 39.25
| 0.82807
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
56566857070dfd32b9fb7ef125c0600eaa8eecef
| 184
|
py
|
Python
|
aidapy/__init__.py
|
cheshirepezz/AIDApy
|
022b81bd979639db66d3f9566c8006d0db52c96f
|
[
"MIT"
] | null | null | null |
aidapy/__init__.py
|
cheshirepezz/AIDApy
|
022b81bd979639db66d3f9566c8006d0db52c96f
|
[
"MIT"
] | null | null | null |
aidapy/__init__.py
|
cheshirepezz/AIDApy
|
022b81bd979639db66d3f9566c8006d0db52c96f
|
[
"MIT"
] | null | null | null |
""" Init """
#aidapy init
from aidapy.aidafunc.load_data import load_data
from aidapy.aidafunc.load_data import get_mission_info
from aidapy.aidafunc.event_search import event_search
| 26.285714
| 54
| 0.831522
| 28
| 184
| 5.214286
| 0.428571
| 0.205479
| 0.369863
| 0.30137
| 0.438356
| 0.438356
| 0
| 0
| 0
| 0
| 0
| 0
| 0.097826
| 184
| 6
| 55
| 30.666667
| 0.879518
| 0.092391
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
3b654399bab29d914473ec4fda1cfa9afa0d7e56
| 128
|
py
|
Python
|
core/utils.py
|
JackWachira/django-caching-middleware
|
9598e187bbd5c7f56606fe99a556f1e537d3e8e5
|
[
"MIT"
] | 1
|
2019-01-23T18:38:36.000Z
|
2019-01-23T18:38:36.000Z
|
core/utils.py
|
JackWachira/django-caching-middleware
|
9598e187bbd5c7f56606fe99a556f1e537d3e8e5
|
[
"MIT"
] | null | null | null |
core/utils.py
|
JackWachira/django-caching-middleware
|
9598e187bbd5c7f56606fe99a556f1e537d3e8e5
|
[
"MIT"
] | 1
|
2020-09-22T19:07:47.000Z
|
2020-09-22T19:07:47.000Z
|
import uuid
def get_uuid():
"""Generate UUID
Returns:
uuid: UUID Version Four
"""
return uuid.uuid4()
| 12.8
| 31
| 0.578125
| 15
| 128
| 4.866667
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.011364
| 0.3125
| 128
| 9
| 32
| 14.222222
| 0.818182
| 0.390625
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
8e98473d8918c1b9bd93a1af03c6e2411db19922
| 18,579
|
py
|
Python
|
sdk/python/pulumi_alicloud/fnf/flow.py
|
pulumi/pulumi-alicloud
|
9c34d84b4588a7c885c6bec1f03b5016e5a41683
|
[
"ECL-2.0",
"Apache-2.0"
] | 42
|
2019-03-18T06:34:37.000Z
|
2022-03-24T07:08:57.000Z
|
sdk/python/pulumi_alicloud/fnf/flow.py
|
pulumi/pulumi-alicloud
|
9c34d84b4588a7c885c6bec1f03b5016e5a41683
|
[
"ECL-2.0",
"Apache-2.0"
] | 152
|
2019-04-15T21:03:44.000Z
|
2022-03-29T18:00:57.000Z
|
sdk/python/pulumi_alicloud/fnf/flow.py
|
pulumi/pulumi-alicloud
|
9c34d84b4588a7c885c6bec1f03b5016e5a41683
|
[
"ECL-2.0",
"Apache-2.0"
] | 3
|
2020-08-26T17:30:07.000Z
|
2021-07-05T01:37:45.000Z
|
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = ['FlowArgs', 'Flow']
@pulumi.input_type
class FlowArgs:
def __init__(__self__, *,
definition: pulumi.Input[str],
description: pulumi.Input[str],
type: pulumi.Input[str],
name: Optional[pulumi.Input[str]] = None,
role_arn: Optional[pulumi.Input[str]] = None):
"""
The set of arguments for constructing a Flow resource.
:param pulumi.Input[str] definition: The definition of the flow. It must comply with the Flow Definition Language (FDL) syntax.
:param pulumi.Input[str] description: The description of the flow.
:param pulumi.Input[str] type: The type of the flow. Valid values are `FDL` or `DEFAULT`.
:param pulumi.Input[str] name: The name of the flow. The name must be unique in an Alibaba Cloud account.
:param pulumi.Input[str] role_arn: The ARN of the specified RAM role that Serverless Workflow uses to assume the role when Serverless Workflow executes a flow.
"""
pulumi.set(__self__, "definition", definition)
pulumi.set(__self__, "description", description)
pulumi.set(__self__, "type", type)
if name is not None:
pulumi.set(__self__, "name", name)
if role_arn is not None:
pulumi.set(__self__, "role_arn", role_arn)
@property
@pulumi.getter
def definition(self) -> pulumi.Input[str]:
"""
The definition of the flow. It must comply with the Flow Definition Language (FDL) syntax.
"""
return pulumi.get(self, "definition")
@definition.setter
def definition(self, value: pulumi.Input[str]):
pulumi.set(self, "definition", value)
@property
@pulumi.getter
def description(self) -> pulumi.Input[str]:
"""
The description of the flow.
"""
return pulumi.get(self, "description")
@description.setter
def description(self, value: pulumi.Input[str]):
pulumi.set(self, "description", value)
@property
@pulumi.getter
def type(self) -> pulumi.Input[str]:
"""
The type of the flow. Valid values are `FDL` or `DEFAULT`.
"""
return pulumi.get(self, "type")
@type.setter
def type(self, value: pulumi.Input[str]):
pulumi.set(self, "type", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
"""
The name of the flow. The name must be unique in an Alibaba Cloud account.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@pulumi.getter(name="roleArn")
def role_arn(self) -> Optional[pulumi.Input[str]]:
"""
The ARN of the specified RAM role that Serverless Workflow uses to assume the role when Serverless Workflow executes a flow.
"""
return pulumi.get(self, "role_arn")
@role_arn.setter
def role_arn(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "role_arn", value)
@pulumi.input_type
class _FlowState:
def __init__(__self__, *,
definition: Optional[pulumi.Input[str]] = None,
description: Optional[pulumi.Input[str]] = None,
flow_id: Optional[pulumi.Input[str]] = None,
last_modified_time: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
role_arn: Optional[pulumi.Input[str]] = None,
type: Optional[pulumi.Input[str]] = None):
"""
Input properties used for looking up and filtering Flow resources.
:param pulumi.Input[str] definition: The definition of the flow. It must comply with the Flow Definition Language (FDL) syntax.
:param pulumi.Input[str] description: The description of the flow.
:param pulumi.Input[str] flow_id: The unique ID of the flow.
:param pulumi.Input[str] last_modified_time: The time when the flow was last modified.
:param pulumi.Input[str] name: The name of the flow. The name must be unique in an Alibaba Cloud account.
:param pulumi.Input[str] role_arn: The ARN of the specified RAM role that Serverless Workflow uses to assume the role when Serverless Workflow executes a flow.
:param pulumi.Input[str] type: The type of the flow. Valid values are `FDL` or `DEFAULT`.
"""
if definition is not None:
pulumi.set(__self__, "definition", definition)
if description is not None:
pulumi.set(__self__, "description", description)
if flow_id is not None:
pulumi.set(__self__, "flow_id", flow_id)
if last_modified_time is not None:
pulumi.set(__self__, "last_modified_time", last_modified_time)
if name is not None:
pulumi.set(__self__, "name", name)
if role_arn is not None:
pulumi.set(__self__, "role_arn", role_arn)
if type is not None:
pulumi.set(__self__, "type", type)
@property
@pulumi.getter
def definition(self) -> Optional[pulumi.Input[str]]:
"""
The definition of the flow. It must comply with the Flow Definition Language (FDL) syntax.
"""
return pulumi.get(self, "definition")
@definition.setter
def definition(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "definition", value)
@property
@pulumi.getter
def description(self) -> Optional[pulumi.Input[str]]:
"""
The description of the flow.
"""
return pulumi.get(self, "description")
@description.setter
def description(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "description", value)
@property
@pulumi.getter(name="flowId")
def flow_id(self) -> Optional[pulumi.Input[str]]:
"""
The unique ID of the flow.
"""
return pulumi.get(self, "flow_id")
@flow_id.setter
def flow_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "flow_id", value)
@property
@pulumi.getter(name="lastModifiedTime")
def last_modified_time(self) -> Optional[pulumi.Input[str]]:
"""
The time when the flow was last modified.
"""
return pulumi.get(self, "last_modified_time")
@last_modified_time.setter
def last_modified_time(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "last_modified_time", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
"""
The name of the flow. The name must be unique in an Alibaba Cloud account.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@pulumi.getter(name="roleArn")
def role_arn(self) -> Optional[pulumi.Input[str]]:
"""
The ARN of the specified RAM role that Serverless Workflow uses to assume the role when Serverless Workflow executes a flow.
"""
return pulumi.get(self, "role_arn")
@role_arn.setter
def role_arn(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "role_arn", value)
@property
@pulumi.getter
def type(self) -> Optional[pulumi.Input[str]]:
"""
The type of the flow. Valid values are `FDL` or `DEFAULT`.
"""
return pulumi.get(self, "type")
@type.setter
def type(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "type", value)
class Flow(pulumi.CustomResource):
@overload
def __init__(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
definition: Optional[pulumi.Input[str]] = None,
description: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
role_arn: Optional[pulumi.Input[str]] = None,
type: Optional[pulumi.Input[str]] = None,
__props__=None):
"""
Provides a Serverless Workflow Flow resource.
For information about Serverless Workflow Flow and how to use it, see [What is Flow](https://www.alibabacloud.com/help/en/doc-detail/123079.htm).
> **NOTE:** Available in v1.105.0+.
## Example Usage
Basic Usage
```python
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.ram.Role("default", document=\"\"\" {
"Statement": [
{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": {
"Service": [
"fnf.aliyuncs.com"
]
}
}
],
"Version": "1"
}
\"\"\")
example = alicloud.fnf.Flow("example",
definition=\"\"\" version: v1beta1
type: flow
steps:
- type: pass
name: helloworld
\"\"\",
role_arn=default.arn,
description="Test for terraform fnf_flow.",
type="FDL")
```
## Import
Serverless Workflow Flow can be imported using the id, e.g.
```sh
$ pulumi import alicloud:fnf/flow:Flow example <name>
```
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] definition: The definition of the flow. It must comply with the Flow Definition Language (FDL) syntax.
:param pulumi.Input[str] description: The description of the flow.
:param pulumi.Input[str] name: The name of the flow. The name must be unique in an Alibaba Cloud account.
:param pulumi.Input[str] role_arn: The ARN of the specified RAM role that Serverless Workflow uses to assume the role when Serverless Workflow executes a flow.
:param pulumi.Input[str] type: The type of the flow. Valid values are `FDL` or `DEFAULT`.
"""
...
@overload
def __init__(__self__,
resource_name: str,
args: FlowArgs,
opts: Optional[pulumi.ResourceOptions] = None):
"""
Provides a Serverless Workflow Flow resource.
For information about Serverless Workflow Flow and how to use it, see [What is Flow](https://www.alibabacloud.com/help/en/doc-detail/123079.htm).
> **NOTE:** Available in v1.105.0+.
## Example Usage
Basic Usage
```python
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.ram.Role("default", document=\"\"\" {
"Statement": [
{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": {
"Service": [
"fnf.aliyuncs.com"
]
}
}
],
"Version": "1"
}
\"\"\")
example = alicloud.fnf.Flow("example",
definition=\"\"\" version: v1beta1
type: flow
steps:
- type: pass
name: helloworld
\"\"\",
role_arn=default.arn,
description="Test for terraform fnf_flow.",
type="FDL")
```
## Import
Serverless Workflow Flow can be imported using the id, e.g.
```sh
$ pulumi import alicloud:fnf/flow:Flow example <name>
```
:param str resource_name: The name of the resource.
:param FlowArgs args: The arguments to use to populate this resource's properties.
:param pulumi.ResourceOptions opts: Options for the resource.
"""
...
def __init__(__self__, resource_name: str, *args, **kwargs):
resource_args, opts = _utilities.get_resource_args_opts(FlowArgs, pulumi.ResourceOptions, *args, **kwargs)
if resource_args is not None:
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
else:
__self__._internal_init(resource_name, *args, **kwargs)
def _internal_init(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
definition: Optional[pulumi.Input[str]] = None,
description: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
role_arn: Optional[pulumi.Input[str]] = None,
type: Optional[pulumi.Input[str]] = None,
__props__=None):
if opts is None:
opts = pulumi.ResourceOptions()
if not isinstance(opts, pulumi.ResourceOptions):
raise TypeError('Expected resource options to be a ResourceOptions instance')
if opts.version is None:
opts.version = _utilities.get_version()
if opts.id is None:
if __props__ is not None:
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
__props__ = FlowArgs.__new__(FlowArgs)
if definition is None and not opts.urn:
raise TypeError("Missing required property 'definition'")
__props__.__dict__["definition"] = definition
if description is None and not opts.urn:
raise TypeError("Missing required property 'description'")
__props__.__dict__["description"] = description
__props__.__dict__["name"] = name
__props__.__dict__["role_arn"] = role_arn
if type is None and not opts.urn:
raise TypeError("Missing required property 'type'")
__props__.__dict__["type"] = type
__props__.__dict__["flow_id"] = None
__props__.__dict__["last_modified_time"] = None
super(Flow, __self__).__init__(
'alicloud:fnf/flow:Flow',
resource_name,
__props__,
opts)
@staticmethod
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None,
definition: Optional[pulumi.Input[str]] = None,
description: Optional[pulumi.Input[str]] = None,
flow_id: Optional[pulumi.Input[str]] = None,
last_modified_time: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
role_arn: Optional[pulumi.Input[str]] = None,
type: Optional[pulumi.Input[str]] = None) -> 'Flow':
"""
Get an existing Flow resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] definition: The definition of the flow. It must comply with the Flow Definition Language (FDL) syntax.
:param pulumi.Input[str] description: The description of the flow.
:param pulumi.Input[str] flow_id: The unique ID of the flow.
:param pulumi.Input[str] last_modified_time: The time when the flow was last modified.
:param pulumi.Input[str] name: The name of the flow. The name must be unique in an Alibaba Cloud account.
:param pulumi.Input[str] role_arn: The ARN of the specified RAM role that Serverless Workflow uses to assume the role when Serverless Workflow executes a flow.
:param pulumi.Input[str] type: The type of the flow. Valid values are `FDL` or `DEFAULT`.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = _FlowState.__new__(_FlowState)
__props__.__dict__["definition"] = definition
__props__.__dict__["description"] = description
__props__.__dict__["flow_id"] = flow_id
__props__.__dict__["last_modified_time"] = last_modified_time
__props__.__dict__["name"] = name
__props__.__dict__["role_arn"] = role_arn
__props__.__dict__["type"] = type
return Flow(resource_name, opts=opts, __props__=__props__)
@property
@pulumi.getter
def definition(self) -> pulumi.Output[str]:
"""
The definition of the flow. It must comply with the Flow Definition Language (FDL) syntax.
"""
return pulumi.get(self, "definition")
@property
@pulumi.getter
def description(self) -> pulumi.Output[str]:
"""
The description of the flow.
"""
return pulumi.get(self, "description")
@property
@pulumi.getter(name="flowId")
def flow_id(self) -> pulumi.Output[str]:
"""
The unique ID of the flow.
"""
return pulumi.get(self, "flow_id")
@property
@pulumi.getter(name="lastModifiedTime")
def last_modified_time(self) -> pulumi.Output[str]:
"""
The time when the flow was last modified.
"""
return pulumi.get(self, "last_modified_time")
@property
@pulumi.getter
def name(self) -> pulumi.Output[str]:
"""
The name of the flow. The name must be unique in an Alibaba Cloud account.
"""
return pulumi.get(self, "name")
@property
@pulumi.getter(name="roleArn")
def role_arn(self) -> pulumi.Output[Optional[str]]:
"""
The ARN of the specified RAM role that Serverless Workflow uses to assume the role when Serverless Workflow executes a flow.
"""
return pulumi.get(self, "role_arn")
@property
@pulumi.getter
def type(self) -> pulumi.Output[str]:
"""
The type of the flow. Valid values are `FDL` or `DEFAULT`.
"""
return pulumi.get(self, "type")
| 37.993865
| 167
| 0.603046
| 2,191
| 18,579
| 4.934277
| 0.091739
| 0.082416
| 0.102303
| 0.089538
| 0.842105
| 0.799556
| 0.766534
| 0.734345
| 0.725927
| 0.702803
| 0
| 0.002201
| 0.290705
| 18,579
| 488
| 168
| 38.071721
| 0.818182
| 0.359976
| 0
| 0.627615
| 1
| 0
| 0.081617
| 0.002107
| 0
| 0
| 0
| 0
| 0
| 1
| 0.158996
| false
| 0.004184
| 0.020921
| 0
| 0.276151
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
8e9ade95aa909781f887194ae7b270560c34de2b
| 165
|
py
|
Python
|
pybrain/rl/environments/ode/tasks/__init__.py
|
sveilleux1/pybrain
|
1e1de73142c290edb84e29ca7850835f3e7bca8b
|
[
"BSD-3-Clause"
] | 2,208
|
2015-01-02T02:14:41.000Z
|
2022-03-31T04:45:46.000Z
|
pybrain/rl/environments/ode/tasks/__init__.py
|
sveilleux1/pybrain
|
1e1de73142c290edb84e29ca7850835f3e7bca8b
|
[
"BSD-3-Clause"
] | 91
|
2015-01-08T16:42:16.000Z
|
2021-12-11T19:16:35.000Z
|
pybrain/rl/environments/ode/tasks/__init__.py
|
sveilleux1/pybrain
|
1e1de73142c290edb84e29ca7850835f3e7bca8b
|
[
"BSD-3-Clause"
] | 786
|
2015-01-02T15:18:20.000Z
|
2022-02-23T23:42:40.000Z
|
from pybrain.rl.environments.ode.tasks.johnnie import *
from pybrain.rl.environments.ode.tasks.ccrl import *
from pybrain.rl.environments.ode.tasks.acrobot import *
| 41.25
| 55
| 0.818182
| 24
| 165
| 5.625
| 0.416667
| 0.244444
| 0.288889
| 0.555556
| 0.822222
| 0.822222
| 0.577778
| 0
| 0
| 0
| 0
| 0
| 0.072727
| 165
| 3
| 56
| 55
| 0.882353
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 10
|
d91669ef7a5ea0a95ce1b8562b8f450164bd635c
| 6,853
|
py
|
Python
|
bindings/python/ensmallen_graph/datasets/networkrepository/socepinions.py
|
caufieldjh/ensmallen_graph
|
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
|
[
"MIT"
] | null | null | null |
bindings/python/ensmallen_graph/datasets/networkrepository/socepinions.py
|
caufieldjh/ensmallen_graph
|
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
|
[
"MIT"
] | null | null | null |
bindings/python/ensmallen_graph/datasets/networkrepository/socepinions.py
|
caufieldjh/ensmallen_graph
|
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
|
[
"MIT"
] | null | null | null |
"""
This file offers the methods to automatically retrieve the graph soc-epinions.
The graph is automatically retrieved from the NetworkRepository repository.
Report
---------------------
At the time of rendering these methods (please see datetime below), the graph
had the following characteristics:
Datetime: 2021-02-06 11:44:33.306873
The undirected graph soc-epinions has 26588 nodes and 100120 unweighted
edges, of which none are self-loops. The graph is quite sparse as it has
a density of 0.00028 and is connected, as it has a single component. The
graph median node degree is 2, the mean node degree is 7.53, and the node
degree mode is 1. The top 5 most central nodes are 35 (degree 443), 32
(degree 426), 1783 (degree 423), 486 (degree 422) and 1024 (degree 412).
References
---------------------
Please cite the following if you use the data:
@inproceedings{nr,
title = {The Network Data Repository with Interactive Graph Analytics and Visualization},
author={Ryan A. Rossi and Nesreen K. Ahmed},
booktitle = {AAAI},
url={http://networkrepository.com},
year={2015}
}
@incollection{richardson2003trust,
title={Trust management for the semantic web},
author={Richardson, Matthew and Agrawal, Rakesh and Domingos, Pedro},
booktitle={The Semantic Web-ISWC 2003},
pages={351--368},
year={2003},
publisher={Springer}
}
@inproceedings{nr:massa05,
title = {Controversial Users Demand Local Trust Metrics: An Experimental Study on epinions.com Community},
author = {Paolo Massa and Paolo Avesani},
booktitle = {AAAI},
year = {2005},
pages = {121--126},
}
Usage example
----------------------
The usage of this graph is relatively straightforward:
.. code:: python
# First import the function to retrieve the graph from the datasets
from ensmallen_graph.datasets.networkrepository import SocEpinions
# Then load the graph
graph = SocEpinions()
# Finally, you can do anything with it, for instance, compute its report:
print(graph)
# If you need to run a link prediction task with validation,
# you can split the graph using a connected holdout as follows:
train_graph, validation_graph = graph.connected_holdout(
# You can use an 80/20 split the holdout, for example.
train_size=0.8,
# The random state is used to reproduce the holdout.
random_state=42,
# Wether to show a loading bar.
verbose=True
)
# Remember that, if you need, you can enable the memory-time trade-offs:
train_graph.enable(
vector_sources=True,
vector_destinations=True,
vector_outbounds=True
)
# Consider using the methods made available in the Embiggen package
# to run graph embedding or link prediction tasks.
"""
from typing import Dict
from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph
from ...ensmallen_graph import EnsmallenGraph # pylint: disable=import-error
def SocEpinions(
directed: bool = False,
verbose: int = 2,
cache_path: str = "graphs/networkrepository",
**additional_graph_kwargs: Dict
) -> EnsmallenGraph:
"""Return new instance of the soc-epinions graph.
The graph is automatically retrieved from the NetworkRepository repository.
Parameters
-------------------
directed: bool = False,
Wether to load the graph as directed or undirected.
By default false.
verbose: int = 2,
Wether to show loading bars during the retrieval and building
of the graph.
cache_path: str = "graphs",
Where to store the downloaded graphs.
additional_graph_kwargs: Dict,
Additional graph kwargs.
Returns
-----------------------
Instace of soc-epinions graph.
Report
---------------------
At the time of rendering these methods (please see datetime below), the graph
had the following characteristics:
Datetime: 2021-02-06 11:44:33.306873
The undirected graph soc-epinions has 26588 nodes and 100120 unweighted
edges, of which none are self-loops. The graph is quite sparse as it has
a density of 0.00028 and is connected, as it has a single component. The
graph median node degree is 2, the mean node degree is 7.53, and the node
degree mode is 1. The top 5 most central nodes are 35 (degree 443), 32
(degree 426), 1783 (degree 423), 486 (degree 422) and 1024 (degree 412).
References
---------------------
Please cite the following if you use the data:
@inproceedings{nr,
title = {The Network Data Repository with Interactive Graph Analytics and Visualization},
author={Ryan A. Rossi and Nesreen K. Ahmed},
booktitle = {AAAI},
url={http://networkrepository.com},
year={2015}
}
@incollection{richardson2003trust,
title={Trust management for the semantic web},
author={Richardson, Matthew and Agrawal, Rakesh and Domingos, Pedro},
booktitle={The Semantic Web-ISWC 2003},
pages={351--368},
year={2003},
publisher={Springer}
}
@inproceedings{nr:massa05,
title = {Controversial Users Demand Local Trust Metrics: An Experimental Study on epinions.com Community},
author = {Paolo Massa and Paolo Avesani},
booktitle = {AAAI},
year = {2005},
pages = {121--126},
}
Usage example
----------------------
The usage of this graph is relatively straightforward:
.. code:: python
# First import the function to retrieve the graph from the datasets
from ensmallen_graph.datasets.networkrepository import SocEpinions
# Then load the graph
graph = SocEpinions()
# Finally, you can do anything with it, for instance, compute its report:
print(graph)
# If you need to run a link prediction task with validation,
# you can split the graph using a connected holdout as follows:
train_graph, validation_graph = graph.connected_holdout(
# You can use an 80/20 split the holdout, for example.
train_size=0.8,
# The random state is used to reproduce the holdout.
random_state=42,
# Wether to show a loading bar.
verbose=True
)
# Remember that, if you need, you can enable the memory-time trade-offs:
train_graph.enable(
vector_sources=True,
vector_destinations=True,
vector_outbounds=True
)
# Consider using the methods made available in the Embiggen package
# to run graph embedding or link prediction tasks.
"""
return AutomaticallyRetrievedGraph(
graph_name="SocEpinions",
dataset="networkrepository",
directed=directed,
verbose=verbose,
cache_path=cache_path,
additional_graph_kwargs=additional_graph_kwargs
)()
| 32.173709
| 115
| 0.675033
| 885
| 6,853
| 5.186441
| 0.281356
| 0.02963
| 0.022876
| 0.006972
| 0.823094
| 0.823094
| 0.823094
| 0.823094
| 0.823094
| 0.794336
| 0
| 0.044157
| 0.233328
| 6,853
| 212
| 116
| 32.325472
| 0.829463
| 0.937837
| 0
| 0
| 0
| 0
| 0.089501
| 0.041308
| 0
| 0
| 0
| 0
| 0
| 1
| 0.058824
| false
| 0
| 0.176471
| 0
| 0.294118
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
d94fd3a383448a2668f4f7f4a54a1eba42875256
| 3,065
|
py
|
Python
|
alexia/apps/billing/migrations/0017_auto_20210326_1822.py
|
LaudateCorpus1/alexia-1
|
9c0d3c90c0ffe2237299a561b755b9c17905e354
|
[
"BSD-3-Clause"
] | 8
|
2015-06-29T20:01:22.000Z
|
2020-10-19T13:49:38.000Z
|
alexia/apps/billing/migrations/0017_auto_20210326_1822.py
|
LaudateCorpus1/alexia-1
|
9c0d3c90c0ffe2237299a561b755b9c17905e354
|
[
"BSD-3-Clause"
] | 67
|
2015-10-05T16:57:14.000Z
|
2022-03-28T19:57:36.000Z
|
alexia/apps/billing/migrations/0017_auto_20210326_1822.py
|
LaudateCorpus1/alexia-1
|
9c0d3c90c0ffe2237299a561b755b9c17905e354
|
[
"BSD-3-Clause"
] | 6
|
2015-10-05T13:54:34.000Z
|
2021-11-30T05:11:58.000Z
|
# Generated by Django 2.1.15 on 2021-03-26 17:22
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('billing', '0016_rfid_cards_set_null'),
]
operations = [
migrations.AlterField(
model_name='authorization',
name='organization',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='authorizations', to='organization.Organization', verbose_name='organization'),
),
migrations.AlterField(
model_name='authorization',
name='user',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='authorizations', to=settings.AUTH_USER_MODEL, verbose_name='user'),
),
migrations.AlterField(
model_name='permanentproduct',
name='organization',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='products', to='organization.Organization', verbose_name='organization'),
),
migrations.AlterField(
model_name='permanentproduct',
name='product_ptr',
field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='billing.Product'),
),
migrations.AlterField(
model_name='permanentproduct',
name='productgroup',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='billing.ProductGroup', verbose_name='product group'),
),
migrations.AlterField(
model_name='pricegroup',
name='organization',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='pricegroups', to='organization.Organization', verbose_name='organization'),
),
migrations.AlterField(
model_name='productgroup',
name='organization',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='productgroups', to='organization.Organization', verbose_name='organization'),
),
migrations.AlterField(
model_name='sellingprice',
name='pricegroup',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='billing.PriceGroup', verbose_name='price group'),
),
migrations.AlterField(
model_name='sellingprice',
name='productgroup',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='billing.ProductGroup', verbose_name='product group'),
),
migrations.AlterField(
model_name='temporaryproduct',
name='product_ptr',
field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='billing.Product'),
),
]
| 46.439394
| 178
| 0.663948
| 308
| 3,065
| 6.454545
| 0.217532
| 0.04829
| 0.077465
| 0.12173
| 0.822435
| 0.81992
| 0.70825
| 0.70825
| 0.70825
| 0.70825
| 0
| 0.00833
| 0.216639
| 3,065
| 65
| 179
| 47.153846
| 0.819658
| 0.015008
| 0
| 0.661017
| 1
| 0
| 0.202851
| 0.0411
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.050847
| 0
| 0.101695
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
d96725b2b5b1bba7775581ae9dda58b34a601b32
| 738
|
py
|
Python
|
emoji/game.py
|
wbprice/ojimoji
|
7b1a8b5ed0062d1d52e151e7412e1131e3de7924
|
[
"MIT"
] | null | null | null |
emoji/game.py
|
wbprice/ojimoji
|
7b1a8b5ed0062d1d52e151e7412e1131e3de7924
|
[
"MIT"
] | null | null | null |
emoji/game.py
|
wbprice/ojimoji
|
7b1a8b5ed0062d1d52e151e7412e1131e3de7924
|
[
"MIT"
] | null | null | null |
import numpy
h = 1
s = 0
bitmap = numpy.array([
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,0],
[0,0,0,1,1,1,1,1,1,0,1,1,1,0,0,0],
[0,0,1,1,0,1,1,1,1,1,1,1,1,1,0,0],
[0,0,1,0,0,0,1,1,1,1,1,0,0,1,0,0],
[0,0,1,1,0,1,1,1,1,1,1,0,0,1,0,0],
[0,0,1,1,1,1,0,0,0,0,1,1,1,1,0,0],
[0,0,0,1,1,0,0,0,0,0,0,1,1,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]])
| 33.545455
| 43
| 0.388889
| 265
| 738
| 1.083019
| 0.030189
| 1.28223
| 1.787456
| 2.229965
| 0.891986
| 0.891986
| 0.891986
| 0.891986
| 0.878049
| 0.874564
| 0
| 0.443299
| 0.211382
| 738
| 21
| 44
| 35.142857
| 0.049828
| 0
| 0
| 0.4
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.05
| 0
| 0.05
| 0
| 0
| 0
| 1
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 12
|
d9951372f6839d9843bc0d4c53f26ac25fa6bf7c
| 148,027
|
py
|
Python
|
tests/fixtures/test_components/content_04_expected.py
|
elifesciences/elife-tools
|
ee345bf0e6703ef0f7e718355e85730abbdfd117
|
[
"MIT"
] | 9
|
2015-04-16T08:13:31.000Z
|
2020-05-18T14:03:06.000Z
|
tests/fixtures/test_components/content_04_expected.py
|
elifesciences/elife-tools
|
ee345bf0e6703ef0f7e718355e85730abbdfd117
|
[
"MIT"
] | 310
|
2015-02-11T00:30:09.000Z
|
2021-07-14T23:58:50.000Z
|
tests/fixtures/test_components/content_04_expected.py
|
elifesciences/elife-tools
|
ee345bf0e6703ef0f7e718355e85730abbdfd117
|
[
"MIT"
] | 9
|
2015-02-04T01:21:28.000Z
|
2021-06-15T12:50:47.000Z
|
from collections import OrderedDict
# output from elife04490.xml
expected = [
OrderedDict(
[
("doi", "10.7554/eLife.04490.001"),
("doi_url", "https://doi.org/10.7554/eLife.04490.001"),
(
"content",
"Plants are at the trophic base of terrestrial ecosystems, and the diversity of plant species in an ecosystem is a principle determinant of community structure. This may arise from diverse functional traits among species. In fact, genetic diversity within species can have similarly large effects. However, studies of intraspecific genetic diversity have used genotypes varying in several complex traits, obscuring the specific phenotypic variation responsible for community-level effects. Using lines of the wild tobacco Nicotiana attenuata genetically altered in specific well-characterized defense traits and planted into experimental populations in their native habitat, we investigated community-level effects of trait diversity in populations of otherwise isogenic plants. We conclude that the frequency of defense traits in a population can determine the outcomes of these traits for individuals. Furthermore, our results suggest that some ecosystem-level services afforded by genetically diverse plant populations could be recaptured in intensive monocultures engineered to be functionally diverse. DOI: http://dx.doi.org/10.7554/eLife.04490.001",
),
("article_doi", "10.7554/eLife.04490"),
("type", "abstract"),
("position", 1),
("ordinal", 1),
("sibling_ordinal", 1),
("asset", None),
]
),
OrderedDict(
[
("doi", "10.7554/eLife.04490.002"),
("doi_url", "https://doi.org/10.7554/eLife.04490.002"),
("title", "eLife digest"),
("full_title", "eLife digest"),
(
"content",
"Plants are at the base of many food webs. This means that the different traits and characteristics of the plant species in an ecosystem can have a large impact on the animals and other organisms that live there. Individuals within the same plant species often differ in multiple genes. This ‘genetic diversity’ can affect the populations of other organisms in their ecosystem, for example, by altering which species are present, and the number of individuals. However, previous studies that investigated plant genetic diversity in ecosystems used plants that varied in multiple, usually unknown, genetic traits, which made it difficult to identify specific genetic traits in plants that can influence the whole ecosystem. One way that plants affect their ecosystems involves how they defend themselves against the herbivores that try to eat them. For example, plants can use sharp spines or harmful chemicals to deter herbivores, or attract predators that will attack the herbivores. Here, Schuman et al. carried out a 2-year field study using wild tobacco plants that had been genetically altered to employ different defensive strategies. This was achieved by altering the expression of three genes in the plants in specific combinations. Two of the genes, called LOX2 and LOX3, are required to make most of the chemicals that tobacco plants use to defend themselves against herbivores. The third gene, called TPS10, which comes from the crop plant maize, gives plants the ability to release a fragrance that attracts natural predators of their herbivores. Except for these specific alterations, the plants were otherwise genetically identical. These plants were then grown either alone, or in groups of five plants, which reflects the normal size of groups of wild tobacco growing in its natural environment. The groups contained mixtures of plants with different gene alterations. Schuman et al. found that the expression levels of these genes in individual plants could determine how well the whole group fared in several different measures of plant health and defense. For example, plants lacking LOX2 and LOX3 usually appeared to be less healthy and they were less likely to survive long enough to reproduce because they were less able to defend themselves against herbivores. However, if these plants were grown in a group with one plant that expressed TPS10, all of the plants in the group looked healthier and were more likely to survive long enough to reproduce. Many crops are grown in large fields containing individual plants that are largely genetically identical, which makes them more vulnerable to disease. Schuman et al.'s findings suggest that some of the community-level protective effects provided by diversity in wild populations of plants could be introduced into crop fields by altering the expression of a few specific genes in some individuals. DOI: http://dx.doi.org/10.7554/eLife.04490.002",
),
("article_doi", "10.7554/eLife.04490"),
("type", "abstract"),
("position", 2),
("ordinal", 2),
("sibling_ordinal", 2),
("asset", None),
]
),
OrderedDict(
[
("doi", "10.7554/eLife.04490.003"),
("doi_url", "https://doi.org/10.7554/eLife.04490.003"),
("id", "fig1"),
(
"title",
"The lox2/3 and TPS10 transgenic constructs, alone and in combination (lox2/3xTPS10), independently alter herbivore-induced plant defenses and sesquiterpene HIPVs.",
),
(
"full_title",
"The <italic>lox2/3</italic> and <italic>TPS10</italic> transgenic constructs, alone and in combination (<italic>lox2/3xTPS10</italic>), independently alter herbivore-induced plant defenses and sesquiterpene HIPVs.",
),
("label", "Figure 1."),
("full_label", "Figure 1."),
(
"caption",
"(A) The endogenous lipoxygenase genes LOX2 and LOX3 and the Z. mays sesquiterpene synthase gene TPS10 (TPS10) were manipulated in transgenic lines of N. attenuata in order to uncouple the production of two HIPVs—the sesquiterpenes (E)-α-bergamotene (TAB) and (E)-β-farnesene (TBF)—from jasmonate-mediated direct defenses and other volatiles. LOX2 and LOX3 provide fatty acid hydroperoxides from 18:2 and 18:3 fatty acids (18:2/18:3-OOH) for the synthesis of green leaf volatiles (GLVs) or jasmonic acid (JA) and the jasmonate-derived hormones, respectively. GLVs are released in response to herbivore damage, and jasmonates regulate the production of most anti-herbivore defenses, including trypsin protease inhibitors (TPIs), and other HIPVs. LOX2 and LOX3 were transgenically silenced using an inverted repeat (ir) construct specifically silencing both (lox2/3). Jasmonate-regulated volatiles in N. attenuata are mostly sesquiterpenes, of which the most prevalent is TAB, and include trace amounts of the biosynthetically related sesquiterpene TBF. The Z. mays sesquiterpene synthase TPS10 (Köllner et al., 2009), which produces TAB and TBF as its main products, was ectopically over-expressed in N. attenuata plants under control of a 35S promoter (TPS10) to uncouple the emission of these volatiles from endogenous jasmonate signaling. (B and C) Plants with lox2/3 and TPS10 constructs, and a cross with both constructs having the transgenes in a hemizygous state (lox2/3xTPS10) had the expected phenotypes both in glasshouse and field experiments. For each compound or group of compounds, the mean WT value was set to 1 (indicated by dashed lines), and all values were divided by the WT mean resulting in mean fold changes ±SEM. A complete description of TPS10 plants including the demonstration of a single transgene insertion and WT levels of non-target metabolites is provided in Schuman et al. (2014), and additional information for lox2/3, TPS10, and lox2/3xTPS10 plants (single transgene insertion for lox2/3, accumulation of target gene transcripts) is given in Appendix 1. (B) Glasshouse-grown plants were treated with wounding and M. sexta OS, and JA, GLVs, TAB and TBF were analyzed at the time of peak accumulation; n = 4. For lox2/3 and lox2/3xTPS10, GLVs were not quantifiable (NQ) by GC–MS due to inconsistently detected or no detected signals. ***p < 0.001 in Tukey HSD tests following a significant one-way ANOVA (p < 0.001) of WT, lox2/3, and lox2/3xTPS10; # plants with the TPS10 construct emit significantly more TAB + TBF (Holm-Bonferroni-corrected p < 0.01 in a Wilcoxon rank sum test of WT and lox2/3 vs lox2/3xTPS10 and TPS10); ns, not significant. TBF was not detectable in lox2/3 or WT samples. For absolute amounts of JA and other phytohormones, GLVs, TAB and TBF measured in glasshouse samples, see Figure 1—source data 1, 2. (C) TPI activity, total detectable GLVs, and total TAB and TBF measured in frozen leaf samples harvested from field-grown plants at the end of experimental season two (June 28th), after plants had accumulated damage from naturally occurring herbivores. TPIs (n = 11–24) were slightly elevated in field samples of TPS10 plants, but TPI activity did not differ from WT plants in glasshouse samples from two independent TPS10 lines including the line used for this study (Schuman et al., 2014). Total GLVs, TAB, and TBF were quantified by GC–MS in hexane extracts from the same tissue samples used to measure TPI activity, n = 9–22 (a few samples had insufficient tissue for the analysis). Neither TAB nor TBF could be detected in lox2/3 samples (NQ); TBF was also not detectable in WT samples. *Corrected p < 0.05, ***corrected p < 0.001 in pairwise Wilcoxon rank sum tests following significant (corrected p < 0.05) Kruskal–Wallis tests across all genotypes for each category; p-values were corrected for multiple testing using the Holm-Bonferroni method; ns, not significant. For absolute amounts of TPIs, GLVs, TAB and TBF, and non-target volatiles measured in field-collected tissue samples, see Figure 1—source data 3; emission of GLVs, TAB, TBF, and non-target volatiles from field-grown plants is given in Appendix 2.",
),
(
"full_caption",
'(<bold>A</bold>) The endogenous lipoxygenase genes <italic>LOX2</italic> and <italic>LOX3</italic> and the <italic>Z. mays</italic> sesquiterpene synthase gene <italic>TPS10</italic> (<italic>TPS10</italic>) were manipulated in transgenic lines of <italic>N. attenuata</italic> in order to uncouple the production of two HIPVs—the sesquiterpenes (<italic>E</italic>)-α-bergamotene (TAB) and (<italic>E</italic>)-β-farnesene (TBF)—from jasmonate-mediated direct defenses and other volatiles. LOX2 and LOX3 provide fatty acid hydroperoxides from 18:2 and 18:3 fatty acids (18:2/18:3-OOH) for the synthesis of green leaf volatiles (GLVs) or jasmonic acid (JA) and the jasmonate-derived hormones, respectively. GLVs are released in response to herbivore damage, and jasmonates regulate the production of most anti-herbivore defenses, including trypsin protease inhibitors (TPIs), and other HIPVs. LOX2 and LOX3 were transgenically silenced using an inverted repeat (ir) construct specifically silencing both (<italic>lox2/3</italic>). Jasmonate-regulated volatiles in <italic>N. attenuata</italic> are mostly sesquiterpenes, of which the most prevalent is TAB, and include trace amounts of the biosynthetically related sesquiterpene TBF. The <italic>Z. mays</italic> sesquiterpene synthase <italic>TPS10</italic> (Köllner et al., 2009), which produces TAB and TBF as its main products, was ectopically over-expressed in <italic>N. attenuata</italic> plants under control of a 35S promoter (<italic>TPS10</italic>) to uncouple the emission of these volatiles from endogenous jasmonate signaling. (<bold>B</bold> and <bold>C</bold>) Plants with <italic>lox2/3</italic> and <italic>TPS10</italic> constructs, and a cross with both constructs having the transgenes in a hemizygous state (<italic>lox2/3xTPS10</italic>) had the expected phenotypes both in glasshouse and field experiments. For each compound or group of compounds, the mean WT value was set to 1 (indicated by dashed lines), and all values were divided by the WT mean resulting in mean fold changes ±SEM. A complete description of <italic>TPS10</italic> plants including the demonstration of a single transgene insertion and WT levels of non-target metabolites is provided in <xref ref-type="bibr" rid="bib71">Schuman et al. (2014)</xref>, and additional information for <italic>lox2/3</italic>, <italic>TPS10</italic>, and <italic>lox2/3xTPS10</italic> plants (single transgene insertion for <italic>lox2/3</italic>, accumulation of target gene transcripts) is given in <xref ref-type="app" rid="app1">Appendix 1</xref>. (<bold>B</bold>) Glasshouse-grown plants were treated with wounding and <italic>M</italic>. <italic>sexta</italic> OS, and JA, GLVs, TAB and TBF were analyzed at the time of peak accumulation; n = 4. For <italic>lox2/3</italic> and <italic>lox2/3xTPS10</italic>, GLVs were not quantifiable (NQ) by GC–MS due to inconsistently detected or no detected signals. ***p < 0.001 in Tukey HSD tests following a significant one-way ANOVA (p < 0.001) of WT, <italic>lox2/3</italic>, and <italic>lox2/3xTPS10</italic>; # plants with the <italic>TPS10</italic> construct emit significantly more TAB + TBF (Holm-Bonferroni-corrected p < 0.01 in a Wilcoxon rank sum test of WT and <italic>lox2/3</italic> vs <italic>lox2/3xTPS10</italic> and <italic>TPS10</italic>); ns, not significant. TBF was not detectable in <italic>lox2/3</italic> or WT samples. For absolute amounts of JA and other phytohormones, GLVs, TAB and TBF measured in glasshouse samples, see <xref ref-type="supplementary-material" rid="SD1-data SD2-data">Figure 1—source data 1, 2</xref>. (<bold>C</bold>) TPI activity, total detectable GLVs, and total TAB and TBF measured in frozen leaf samples harvested from field-grown plants at the end of experimental season two (June 28th), after plants had accumulated damage from naturally occurring herbivores. TPIs (n = 11–24) were slightly elevated in field samples of <italic>TPS10</italic> plants, but TPI activity did not differ from WT plants in glasshouse samples from two independent <italic>TPS10</italic> lines including the line used for this study (<xref ref-type="bibr" rid="bib71">Schuman et al., 2014</xref>). Total GLVs, TAB, and TBF were quantified by GC–MS in hexane extracts from the same tissue samples used to measure TPI activity, n = 9–22 (a few samples had insufficient tissue for the analysis). Neither TAB nor TBF could be detected in <italic>lox2/3</italic> samples (NQ); TBF was also not detectable in WT samples. *Corrected p < 0.05, ***corrected p < 0.001 in pairwise Wilcoxon rank sum tests following significant (corrected p < 0.05) Kruskal–Wallis tests across all genotypes for each category; p<italic>-</italic>values were corrected for multiple testing using the Holm-Bonferroni method; ns, not significant. For absolute amounts of TPIs, GLVs, TAB and TBF, and non-target volatiles measured in field-collected tissue samples, see <xref ref-type="supplementary-material" rid="SD3-data">Figure 1—source data 3</xref>; emission of GLVs, TAB, TBF, and non-target volatiles from field-grown plants is given in <xref ref-type="app" rid="app2">Appendix 2</xref>.',
),
(
"content",
"(A) The endogenous lipoxygenase genes LOX2 and LOX3 and the Z. mays sesquiterpene synthase gene TPS10 (TPS10) were manipulated in transgenic lines of N. attenuata in order to uncouple the production of two HIPVs—the sesquiterpenes (E)-α-bergamotene (TAB) and (E)-β-farnesene (TBF)—from jasmonate-mediated direct defenses and other volatiles. LOX2 and LOX3 provide fatty acid hydroperoxides from 18:2 and 18:3 fatty acids (18:2/18:3-OOH) for the synthesis of green leaf volatiles (GLVs) or jasmonic acid (JA) and the jasmonate-derived hormones, respectively. GLVs are released in response to herbivore damage, and jasmonates regulate the production of most anti-herbivore defenses, including trypsin protease inhibitors (TPIs), and other HIPVs. LOX2 and LOX3 were transgenically silenced using an inverted repeat (ir) construct specifically silencing both (lox2/3). Jasmonate-regulated volatiles in N. attenuata are mostly sesquiterpenes, of which the most prevalent is TAB, and include trace amounts of the biosynthetically related sesquiterpene TBF. The Z. mays sesquiterpene synthase TPS10 (Köllner et al., 2009), which produces TAB and TBF as its main products, was ectopically over-expressed in N. attenuata plants under control of a 35S promoter (TPS10) to uncouple the emission of these volatiles from endogenous jasmonate signaling. (B and C) Plants with lox2/3 and TPS10 constructs, and a cross with both constructs having the transgenes in a hemizygous state (lox2/3xTPS10) had the expected phenotypes both in glasshouse and field experiments. For each compound or group of compounds, the mean WT value was set to 1 (indicated by dashed lines), and all values were divided by the WT mean resulting in mean fold changes ±SEM. A complete description of TPS10 plants including the demonstration of a single transgene insertion and WT levels of non-target metabolites is provided in Schuman et al. (2014), and additional information for lox2/3, TPS10, and lox2/3xTPS10 plants (single transgene insertion for lox2/3, accumulation of target gene transcripts) is given in Appendix 1. (B) Glasshouse-grown plants were treated with wounding and M. sexta OS, and JA, GLVs, TAB and TBF were analyzed at the time of peak accumulation; n = 4. For lox2/3 and lox2/3xTPS10, GLVs were not quantifiable (NQ) by GC–MS due to inconsistently detected or no detected signals. ***p < 0.001 in Tukey HSD tests following a significant one-way ANOVA (p < 0.001) of WT, lox2/3, and lox2/3xTPS10; # plants with the TPS10 construct emit significantly more TAB + TBF (Holm-Bonferroni-corrected p < 0.01 in a Wilcoxon rank sum test of WT and lox2/3 vs lox2/3xTPS10 and TPS10); ns, not significant. TBF was not detectable in lox2/3 or WT samples. For absolute amounts of JA and other phytohormones, GLVs, TAB and TBF measured in glasshouse samples, see Figure 1—source data 1, 2. (C) TPI activity, total detectable GLVs, and total TAB and TBF measured in frozen leaf samples harvested from field-grown plants at the end of experimental season two (June 28th), after plants had accumulated damage from naturally occurring herbivores. TPIs (n = 11–24) were slightly elevated in field samples of TPS10 plants, but TPI activity did not differ from WT plants in glasshouse samples from two independent TPS10 lines including the line used for this study (Schuman et al., 2014). Total GLVs, TAB, and TBF were quantified by GC–MS in hexane extracts from the same tissue samples used to measure TPI activity, n = 9–22 (a few samples had insufficient tissue for the analysis). Neither TAB nor TBF could be detected in lox2/3 samples (NQ); TBF was also not detectable in WT samples. *Corrected p < 0.05, ***corrected p < 0.001 in pairwise Wilcoxon rank sum tests following significant (corrected p < 0.05) Kruskal–Wallis tests across all genotypes for each category; p-values were corrected for multiple testing using the Holm-Bonferroni method; ns, not significant. For absolute amounts of TPIs, GLVs, TAB and TBF, and non-target volatiles measured in field-collected tissue samples, see Figure 1—source data 3; emission of GLVs, TAB, TBF, and non-target volatiles from field-grown plants is given in Appendix 2. DOI: http://dx.doi.org/10.7554/eLife.04490.003 10.7554/eLife.04490.004Figure 1—source data 1.Absolute values for JA and GLVs shown as fold-changes in Figure 1B in lox2/3 and lox2/3xTPS10 plants, as well as JA-Ile, individual GLVs, and leaf areas for headspace collection (mean ± SEM); n = 4.Data are from a single glasshouse experiment. Values for TPS10 (line 10–3) are reported in Schuman et al. (2014).DOI: http://dx.doi.org/10.7554/eLife.04490.004 Data are from a single glasshouse experiment. Values for TPS10 (line 10–3) are reported in Schuman et al. (2014). DOI: http://dx.doi.org/10.7554/eLife.04490.004 10.7554/eLife.04490.005Figure 1—source data 2.Absolute values for TAB and TBF shown as fold-changes in Figure 1B, and leaf areas for headspace collection (mean ± SEM); n = 4.Data are from a single glasshouse experiment.DOI: http://dx.doi.org/10.7554/eLife.04490.005 Data are from a single glasshouse experiment. DOI: http://dx.doi.org/10.7554/eLife.04490.005 10.7554/eLife.04490.006Figure 1—source data 3.Absolute values for analytes shown as fold-changes in Figure 1C (mean ± SEM).Data are from tissue samples of several pooled leaves per plant from field-grown plants, taken at the end of experimental season two (June 28th).DOI: http://dx.doi.org/10.7554/eLife.04490.006 Data are from tissue samples of several pooled leaves per plant from field-grown plants, taken at the end of experimental season two (June 28th). DOI: http://dx.doi.org/10.7554/eLife.04490.006",
),
("article_doi", "10.7554/eLife.04490"),
("type", "fig"),
("position", 3),
("ordinal", 1),
("sibling_ordinal", 1),
("asset", None),
]
),
OrderedDict(
[
("doi", "10.7554/eLife.04490.004"),
("doi_url", "https://doi.org/10.7554/eLife.04490.004"),
("id", "SD1-data"),
(
"title",
"Absolute values for JA and GLVs shown as fold-changes in Figure 1B in lox2/3 and lox2/3xTPS10 plants, as well as JA-Ile, individual GLVs, and leaf areas for headspace collection (mean ± SEM); n = 4.",
),
(
"full_title",
'Absolute values for JA and GLVs shown as fold-changes in <xref ref-type="fig" rid="fig1">Figure 1B</xref> in <italic>lox2/3</italic> and <italic>lox2/3xTPS10</italic> plants, as well as JA-Ile, individual GLVs, and leaf areas for headspace collection (mean ± SEM); n = 4.',
),
("label", "Figure 1—source data 1."),
("full_label", "Figure 1—source data 1."),
(
"caption",
"Data are from a single glasshouse experiment. Values for TPS10 (line 10–3) are reported in Schuman et al. (2014).",
),
(
"full_caption",
'Data are from a single glasshouse experiment. Values for <italic>TPS10</italic> (line 10–3) are reported in <xref ref-type="bibr" rid="bib71">Schuman et al. (2014)</xref>.',
),
("parent_type", "fig"),
("parent_ordinal", 1),
("parent_sibling_ordinal", 1),
("parent_asset", None),
(
"content",
"Data are from a single glasshouse experiment. Values for TPS10 (line 10–3) are reported in Schuman et al. (2014). DOI: http://dx.doi.org/10.7554/eLife.04490.004",
),
("mimetype", "application"),
("mime-subtype", "xlsx"),
("article_doi", "10.7554/eLife.04490"),
("type", "supplementary-material"),
("position", 4),
("ordinal", 1),
("sibling_ordinal", 1),
("asset", "data"),
]
),
OrderedDict(
[
("doi", "10.7554/eLife.04490.005"),
("doi_url", "https://doi.org/10.7554/eLife.04490.005"),
("id", "SD2-data"),
(
"title",
"Absolute values for TAB and TBF shown as fold-changes in Figure 1B, and leaf areas for headspace collection (mean ± SEM); n = 4.",
),
(
"full_title",
'Absolute values for TAB and TBF shown as fold-changes in <xref ref-type="fig" rid="fig1">Figure 1B</xref>, and leaf areas for headspace collection (mean ± SEM); n = 4.',
),
("label", "Figure 1—source data 2."),
("full_label", "Figure 1—source data 2."),
("caption", "Data are from a single glasshouse experiment."),
("full_caption", "Data are from a single glasshouse experiment."),
("parent_type", "fig"),
("parent_ordinal", 1),
("parent_sibling_ordinal", 1),
("parent_asset", None),
(
"content",
"Data are from a single glasshouse experiment. DOI: http://dx.doi.org/10.7554/eLife.04490.005",
),
("mimetype", "application"),
("mime-subtype", "xlsx"),
("article_doi", "10.7554/eLife.04490"),
("type", "supplementary-material"),
("position", 5),
("ordinal", 2),
("sibling_ordinal", 2),
("asset", "data"),
]
),
OrderedDict(
[
("doi", "10.7554/eLife.04490.006"),
("doi_url", "https://doi.org/10.7554/eLife.04490.006"),
("id", "SD3-data"),
(
"title",
"Absolute values for analytes shown as fold-changes in Figure 1C (mean ± SEM).",
),
(
"full_title",
'Absolute values for analytes shown as fold-changes in <xref ref-type="fig" rid="fig1">Figure 1C</xref> (mean ± SEM).',
),
("label", "Figure 1—source data 3."),
("full_label", "Figure 1—source data 3."),
(
"caption",
"Data are from tissue samples of several pooled leaves per plant from field-grown plants, taken at the end of experimental season two (June 28th).",
),
(
"full_caption",
"Data are from tissue samples of several pooled leaves per plant from field-grown plants, taken at the end of experimental season two (June 28th).",
),
("parent_type", "fig"),
("parent_ordinal", 1),
("parent_sibling_ordinal", 1),
("parent_asset", None),
(
"content",
"Data are from tissue samples of several pooled leaves per plant from field-grown plants, taken at the end of experimental season two (June 28th). DOI: http://dx.doi.org/10.7554/eLife.04490.006",
),
("mimetype", "application"),
("mime-subtype", "xlsx"),
("article_doi", "10.7554/eLife.04490"),
("type", "supplementary-material"),
("position", 6),
("ordinal", 3),
("sibling_ordinal", 3),
("asset", "data"),
]
),
OrderedDict(
[
("doi", "10.7554/eLife.04490.007"),
("doi_url", "https://doi.org/10.7554/eLife.04490.007"),
("id", "fig2"),
(
"title",
"Field experiments designed to measure genotype-by-population effects of TPS10 volatiles in well-defended (WT, TPS10) or poorly defended (lox2/3, lox2/3xTPS10) plants.",
),
(
"full_title",
"Field experiments designed to measure genotype-by-population effects of TPS10 volatiles in well-defended (WT, <italic>TPS10</italic>) or poorly defended (<italic>lox2/3</italic>, <italic>lox2/3xTPS10</italic>) plants.",
),
("label", "Figure 2."),
("full_label", "Figure 2."),
(
"caption",
"Two similar experiments were conducted in two consecutive field seasons. (A) Each genotype was planted as individuals and in five-plant populations (see Figure 2—figure supplement 1). Each individual or population was planted ca. 1.5 m from the nearest neighboring individual/population, measured perimeter-to-perimeter. Populations consisted of five plants arranged as shown in a 0.4 × 0.4 m square. (B) Individual and population types: monocultures and, additionally, mixed cultures were planted in which a TPS10 plant (TPS10 or lox2/3xTPS10) was surrounded by four plants of the same level of jasmonate-mediated defense and GLVs (WT or lox2/3). Replicates (n = 12 in season one, 15 in season two of each individual or population type) were arranged in a blocked design (see Figure 2—figure supplement 2): blocks consisting of one replicate of each type (all six randomly-ordered populations followed by all four randomly-ordered individuals) were staggered such that consecutive blocks were not aligned, and thus populations and individuals were also interspersed. Random order was modified only when necessary to ensure that no two replicate individuals/populations were placed next to each other vertically, horizontally, or diagonally. This planting design reflects typical distributions in native populations of Nicotiana attenuata (see Figure 2—figure supplement 3), particularly before 1995, after which an invasive brome grass fueled a dramatic increase in fire sizes and consequently N. attenuata population sizes.",
),
(
"full_caption",
'Two similar experiments were conducted in two consecutive field seasons. (<bold>A</bold>) Each genotype was planted as individuals and in five-plant populations (see <xref ref-type="fig" rid="fig2s1">Figure 2—figure supplement 1</xref>). Each individual or population was planted ca. 1.5 m from the nearest neighboring individual/population, measured perimeter-to-perimeter. Populations consisted of five plants arranged as shown in a 0.4 × 0.4 m square. (<bold>B</bold>) Individual and population types: monocultures and, additionally, mixed cultures were planted in which a <italic>TPS10</italic> plant (<italic>TPS10</italic> or <italic>lox2/3xTPS10</italic>) was surrounded by four plants of the same level of jasmonate-mediated defense and GLVs (WT or <italic>lox2/3</italic>). Replicates (n = 12 in season one, 15 in season two of each individual or population type) were arranged in a blocked design (see <xref ref-type="fig" rid="fig2s2">Figure 2—figure supplement 2</xref>): blocks consisting of one replicate of each type (all six randomly-ordered populations followed by all four randomly-ordered individuals) were staggered such that consecutive blocks were not aligned, and thus populations and individuals were also interspersed. Random order was modified only when necessary to ensure that no two replicate individuals/populations were placed next to each other vertically, horizontally, or diagonally. This planting design reflects typical distributions in native populations of <italic>Nicotiana attenuata</italic> (see <xref ref-type="fig" rid="fig2s3">Figure 2—figure supplement 3</xref>), particularly before 1995, after which an invasive brome grass fueled a dramatic increase in fire sizes and consequently <italic>N. attenuata</italic> population sizes.',
),
(
"content",
"Two similar experiments were conducted in two consecutive field seasons. (A) Each genotype was planted as individuals and in five-plant populations (see Figure 2—figure supplement 1). Each individual or population was planted ca. 1.5 m from the nearest neighboring individual/population, measured perimeter-to-perimeter. Populations consisted of five plants arranged as shown in a 0.4 × 0.4 m square. (B) Individual and population types: monocultures and, additionally, mixed cultures were planted in which a TPS10 plant (TPS10 or lox2/3xTPS10) was surrounded by four plants of the same level of jasmonate-mediated defense and GLVs (WT or lox2/3). Replicates (n = 12 in season one, 15 in season two of each individual or population type) were arranged in a blocked design (see Figure 2—figure supplement 2): blocks consisting of one replicate of each type (all six randomly-ordered populations followed by all four randomly-ordered individuals) were staggered such that consecutive blocks were not aligned, and thus populations and individuals were also interspersed. Random order was modified only when necessary to ensure that no two replicate individuals/populations were placed next to each other vertically, horizontally, or diagonally. This planting design reflects typical distributions in native populations of Nicotiana attenuata (see Figure 2—figure supplement 3), particularly before 1995, after which an invasive brome grass fueled a dramatic increase in fire sizes and consequently N. attenuata population sizes. DOI: http://dx.doi.org/10.7554/eLife.04490.007",
),
("article_doi", "10.7554/eLife.04490"),
("type", "fig"),
("position", 7),
("ordinal", 2),
("sibling_ordinal", 2),
("asset", None),
]
),
OrderedDict(
[
("doi", "10.7554/eLife.04490.008"),
("doi_url", "https://doi.org/10.7554/eLife.04490.008"),
("id", "fig2s1"),
("title", "Photographs of the field experiment in season one."),
("full_title", "Photographs of the field experiment in season one."),
("label", "Figure 2—figure supplement 1."),
("full_label", "Figure 2—figure supplement 1."),
(
"caption",
"(A) Photograph of a closed-headspace volatile trapping showing ca. 25% of the experiment in May of season one. (B) Photograph showing a similar portion of the experiment in June of season one.",
),
(
"full_caption",
"(<bold>A</bold>) Photograph of a closed-headspace volatile trapping showing ca. 25% of the experiment in May of season one. (<bold>B</bold>) Photograph showing a similar portion of the experiment in June of season one.",
),
("parent_type", "fig"),
("parent_ordinal", 2),
("parent_sibling_ordinal", 2),
("parent_asset", None),
(
"content",
"(A) Photograph of a closed-headspace volatile trapping showing ca. 25% of the experiment in May of season one. (B) Photograph showing a similar portion of the experiment in June of season one. DOI: http://dx.doi.org/10.7554/eLife.04490.008",
),
("article_doi", "10.7554/eLife.04490"),
("type", "fig"),
("position", 8),
("ordinal", 3),
("sibling_ordinal", 2),
("asset", "figsupp"),
]
),
OrderedDict(
[
("doi", "10.7554/eLife.04490.009"),
("doi_url", "https://doi.org/10.7554/eLife.04490.009"),
("id", "fig2s2"),
("title", "Layout in experimental season two, and color codes."),
("full_title", "Layout in experimental season two, and color codes."),
("label", "Figure 2—figure supplement 2."),
("full_label", "Figure 2—figure supplement 2."),
("caption", "R, row of earth between two irrigation lines; not to scale."),
(
"full_caption",
"R, row of earth between two irrigation lines; not to scale.",
),
("parent_type", "fig"),
("parent_ordinal", 2),
("parent_sibling_ordinal", 2),
("parent_asset", None),
(
"content",
"R, row of earth between two irrigation lines; not to scale. DOI: http://dx.doi.org/10.7554/eLife.04490.009",
),
("article_doi", "10.7554/eLife.04490"),
("type", "fig"),
("position", 9),
("ordinal", 4),
("sibling_ordinal", 3),
("asset", "figsupp"),
]
),
OrderedDict(
[
("doi", "10.7554/eLife.04490.010"),
("doi_url", "https://doi.org/10.7554/eLife.04490.010"),
("id", "fig2s3"),
(
"title",
"Example of plant distribution in a native N. attenuata population, photographed in 2004.",
),
(
"full_title",
"Example of plant distribution in a native <italic>N. attenuata</italic> population, photographed in 2004.",
),
("label", "Figure 2—figure supplement 3."),
("full_label", "Figure 2—figure supplement 3."),
(
"caption",
"Reprinted with permission from Danny Kessler, Copyright 2004. All rights reserved.",
),
(
"full_caption",
"Reprinted with permission from Danny Kessler, Copyright 2004. All rights reserved.",
),
("parent_type", "fig"),
("parent_ordinal", 2),
("parent_sibling_ordinal", 2),
("parent_asset", None),
(
"content",
"Reprinted with permission from Danny Kessler, Copyright 2004. All rights reserved. DOI: http://dx.doi.org/10.7554/eLife.04490.010",
),
("article_doi", "10.7554/eLife.04490"),
("type", "fig"),
("position", 10),
("ordinal", 5),
("sibling_ordinal", 4),
("asset", "figsupp"),
]
),
OrderedDict(
[
("doi", "10.7554/eLife.04490.011"),
("doi_url", "https://doi.org/10.7554/eLife.04490.011"),
("id", "fig3"),
(
"title",
"The TPS10 product TAB can be detected in the open headspace around lox2/3 plants in mixed cultures containing a lox2/3xTPS10 plant.",
),
(
"full_title",
"The TPS10 product TAB can be detected in the open headspace around <italic>lox2/3</italic> plants in mixed cultures containing a <italic>lox2/3xTPS10</italic> plant.",
),
("label", "Figure 3."),
("full_label", "Figure 3."),
(
"caption",
"(A) An ‘open headspace’ trapping was conducted during season two (May 16th) with rosette-stage individuals and edge plants as shown, using activated charcoal filters shielded from ozone and UV by MnO2-coated copper ozone scrubbers (black strips in Teflon tubes pointed at plant) and aluminum foil, respectively. The headspace was sampled during the day, when sesquiterpenes are most abundant (see Appendix 2). Eluents from all four filters were combined and analyzed using highly sensitive GCxGC-ToF analysis; n = 4 plants. (B) The TPS10 product trans-α-bergamotene (TAB) could be detected in the open headspace of two of four lox2/3 plants at the edges of mixed cultures containing a lox2/3xTPS10 plant, but not in lox2/3 individuals or lox2/3 plants in monocultures. Peak areas were normalized to the internal standard (IS) peak. Arrows indicate the plant that was sampled.",
),
(
"full_caption",
'(<bold>A</bold>) An ‘open headspace’ trapping was conducted during season two (May 16th) with rosette-stage individuals and edge plants as shown, using activated charcoal filters shielded from ozone and UV by MnO<sub>2</sub>-coated copper ozone scrubbers (black strips in Teflon tubes pointed at plant) and aluminum foil, respectively. The headspace was sampled during the day, when sesquiterpenes are most abundant (see <xref ref-type="app" rid="app2">Appendix 2</xref>). Eluents from all four filters were combined and analyzed using highly sensitive GCxGC-ToF analysis; n = 4 plants. (<bold>B</bold>) The <italic>TPS10</italic> product <italic>trans</italic>-α-bergamotene (TAB) could be detected in the open headspace of two of four <italic>lox2/3</italic> plants at the edges of mixed cultures containing a <italic>lox2/3xTPS10</italic> plant, but not in <italic>lox2/3</italic> individuals or <italic>lox2/3</italic> plants in monocultures. Peak areas were normalized to the internal standard (IS) peak. Arrows indicate the plant that was sampled.',
),
(
"content",
"(A) An ‘open headspace’ trapping was conducted during season two (May 16th) with rosette-stage individuals and edge plants as shown, using activated charcoal filters shielded from ozone and UV by MnO2-coated copper ozone scrubbers (black strips in Teflon tubes pointed at plant) and aluminum foil, respectively. The headspace was sampled during the day, when sesquiterpenes are most abundant (see Appendix 2). Eluents from all four filters were combined and analyzed using highly sensitive GCxGC-ToF analysis; n = 4 plants. (B) The TPS10 product trans-α-bergamotene (TAB) could be detected in the open headspace of two of four lox2/3 plants at the edges of mixed cultures containing a lox2/3xTPS10 plant, but not in lox2/3 individuals or lox2/3 plants in monocultures. Peak areas were normalized to the internal standard (IS) peak. Arrows indicate the plant that was sampled. DOI: http://dx.doi.org/10.7554/eLife.04490.011",
),
("article_doi", "10.7554/eLife.04490"),
("type", "fig"),
("position", 11),
("ordinal", 6),
("sibling_ordinal", 3),
("asset", None),
]
),
OrderedDict(
[
("doi", "10.7554/eLife.04490.012"),
("doi_url", "https://doi.org/10.7554/eLife.04490.012"),
("id", "fig4"),
(
"title",
"Manduca sexta larvae grow larger on LOX2/3-deficient plants, regardless of TPS10 expression, in a glasshouse experiment.",
),
(
"full_title",
"<italic>Manduca sexta</italic> larvae grow larger on <italic>LOX2/3</italic>-deficient plants, regardless of <italic>TPS10</italic> expression, in a glasshouse experiment.",
),
("label", "Figure 4."),
("full_label", "Figure 4."),
(
"caption",
"Data are shown as mean ± SEM; n = 15–19 larvae on day 8 and 11–16 larvae on day 12. One M. sexta neonate per plant (starting n = 25 larvae) was placed immediately after hatching on the youngest rosette leaf of an elongated plant. Larvae were weighed at the third and fourth instars (of 5 total), corresponding to days 8 and 12, after which larvae become mobile between plants. a,b/A,B Different letters indicate significant differences (corrected p < 0.001) in larval mass on different plant genotypes within each day, in Wilcoxon rank sum tests following significant (corrected p < 0.001) Kruskal–Wallis tests for each day (WT vs lox2/3 day 8, W17,19 = 310, corrected p < 0.001, day 12, W15,15 = 217, corrected p < 0.001; TPS10 vs lox2/3xTPS10, day 8, W15,20 = 290, corrected p < 0.001, day 12, W11,14 = 143, corrected p < 0.001; WT vs TPS10 day 8, W17,15 = 95, corrected p = 0.227, day 12, W15,11 = 56, corrected p = 0.361; lox2/3 vs lox2/3xTPS10 day 8, W19,20 = 249, corrected p = 0.201, day 12, W16,14 = 134, corrected p = 0.377). p-values were corrected for multiple testing using the Holm-Bonferroni method.",
),
(
"full_caption",
"Data are shown as mean ± SEM; n = 15–19 larvae on day 8 and 11–16 larvae on day 12. One <italic>M. sexta</italic> neonate per plant (starting n = 25 larvae) was placed immediately after hatching on the youngest rosette leaf of an elongated plant. Larvae were weighed at the third and fourth instars (of 5 total), corresponding to days 8 and 12, after which larvae become mobile between plants. <sup>a,b/A,B</sup> Different letters indicate significant differences (corrected p < 0.001) in larval mass on different plant genotypes within each day, in Wilcoxon rank sum tests following significant (corrected p < 0.001) Kruskal–Wallis tests for each day (WT vs <italic>lox2/3</italic> day 8, W<sub>17,19</sub> = 310, corrected p <italic><</italic> 0.001, day 12, W<sub>15,15</sub> = 217, corrected p <italic><</italic> 0.001; <italic>TPS10</italic> vs <italic>lox2/3</italic>x<italic>TPS10</italic>, day 8, W<sub>15,20</sub> = 290, corrected p <italic><</italic> 0.001, day 12, W<sub>11,14</sub> = 143, corrected p <italic><</italic> 0.001; WT vs <italic>TPS10</italic> day 8, W<sub>17,15</sub> = 95, corrected p = 0.227, day 12, W<sub>15,11</sub> = 56, corrected p <italic>=</italic> 0.361; <italic>lox2/3</italic> vs <italic>lox2/3</italic>x<italic>TPS10</italic> day 8, W<sub>19,20</sub> = 249, corrected p = 0.201, day 12, W<sub>16,14</sub> = 134, corrected p = 0.377). p<italic>-</italic>values were corrected for multiple testing using the Holm-Bonferroni method.",
),
(
"content",
"Data are shown as mean ± SEM; n = 15–19 larvae on day 8 and 11–16 larvae on day 12. One M. sexta neonate per plant (starting n = 25 larvae) was placed immediately after hatching on the youngest rosette leaf of an elongated plant. Larvae were weighed at the third and fourth instars (of 5 total), corresponding to days 8 and 12, after which larvae become mobile between plants. a,b/A,B Different letters indicate significant differences (corrected p < 0.001) in larval mass on different plant genotypes within each day, in Wilcoxon rank sum tests following significant (corrected p < 0.001) Kruskal–Wallis tests for each day (WT vs lox2/3 day 8, W17,19 = 310, corrected p < 0.001, day 12, W15,15 = 217, corrected p < 0.001; TPS10 vs lox2/3xTPS10, day 8, W15,20 = 290, corrected p < 0.001, day 12, W11,14 = 143, corrected p < 0.001; WT vs TPS10 day 8, W17,15 = 95, corrected p = 0.227, day 12, W15,11 = 56, corrected p = 0.361; lox2/3 vs lox2/3xTPS10 day 8, W19,20 = 249, corrected p = 0.201, day 12, W16,14 = 134, corrected p = 0.377). p-values were corrected for multiple testing using the Holm-Bonferroni method. DOI: http://dx.doi.org/10.7554/eLife.04490.012",
),
("article_doi", "10.7554/eLife.04490"),
("type", "fig"),
("position", 12),
("ordinal", 7),
("sibling_ordinal", 4),
("asset", None),
]
),
OrderedDict(
[
("doi", "10.7554/eLife.04490.013"),
("doi_url", "https://doi.org/10.7554/eLife.04490.013"),
("id", "fig5"),
(
"title",
"Only LOX2/3 and not TPS10, plant position, or population type determined total foliar damage from herbivores over two consecutive field seasons.",
),
(
"full_title",
"Only <italic>LOX2/3</italic> and not <italic>TPS10</italic>, plant position, or population type determined total foliar damage from herbivores over two consecutive field seasons.",
),
("label", "Figure 5."),
("full_label", "Figure 5."),
(
"caption",
"Note differences in y-axis scale. Data were collected on June 9th in season one (left panels), and on June 2nd in season two (right panels) from plants at all different positions in the experiment: individual plants (A–B), and plants at the edges (C–D) or at the centers (E–F) of populations. Black bars denote WT, grey bars TPS10, red bars lox2/3, and pink bars lox2/3xTPS10 plants. Total canopy damage reflected the trends in canopy damage caused by individual herbivores (Figure 5—source data 1, 2). Total canopy damage in season one was low (left panels), ranging from 5–10% on lox2/3 and lox2/3xTPS10 plants, and only 2–5% on WT and TPS10 plants. Damage levels were about twice as high in season two (right panels), but showed the same relative pattern, with LOX2/3-deficient plans having more damage. Damage levels within a season were similar for plants in different positions (p > 0.07, see Appendix 3). a,b Different letters indicate significant differences (p < 0.05) between LOX2/3-expressing and LOX2/3-deficient plants (WT, TPS10 v. lox2/3, lox2/3xTPS10) in minimal ANOVA or linear mixed-effects models on arcsin-transformed data. For individuals and center plants n = 7–13, and for edge plants n = 16–48 (up to 4 per population; the blocking effect was accounted for by a random factor in statistical analysis); exact replicate numbers are given in Figure 5—source data 1, 2. There were no significant differences in damage between plants differing only in TPS10 expression (p > 0.4), plants in mono- vs mixed cultures (p > 0.5), or plants of the same genotype at different positions (individual, edge, or center, p > 0.07). Statistical models are given in Appendix 3.",
),
(
"full_caption",
'Note differences in y-axis scale. Data were collected on June 9th in season one (left panels), and on June 2nd in season two (right panels) from plants at all different positions in the experiment: individual plants (<bold>A</bold>–<bold>B</bold>), and plants at the edges (<bold>C</bold>–<bold>D</bold>) or at the centers (<bold>E</bold>–<bold>F</bold>) of populations. Black bars denote WT, grey bars <italic>TPS10</italic>, red bars <italic>lox2/3</italic>, and pink bars <italic>lox2/3xTPS10</italic> plants. Total canopy damage reflected the trends in canopy damage caused by individual herbivores (<xref ref-type="supplementary-material" rid="SD4-data SD5-data">Figure 5—source data 1, 2</xref>). Total canopy damage in season one was low (left panels), ranging from 5–10% on <italic>lox2/3</italic> and <italic>lox2/3xTPS10</italic> plants, and only 2–5% on WT and <italic>TPS10</italic> plants. Damage levels were about twice as high in season two (right panels), but showed the same relative pattern, with <italic>LOX2/3</italic>-deficient plans having more damage. Damage levels within a season were similar for plants in different positions (p > 0.07, see <xref ref-type="app" rid="app3">Appendix 3</xref>). <sup>a,b</sup> Different letters indicate significant differences (p < 0.05) between <italic>LOX2/3</italic>-expressing and <italic>LOX2/3</italic>-deficient plants (WT, <italic>TPS10</italic> v. <italic>lox2/3</italic>, <italic>lox2/3xTPS10</italic>) in minimal ANOVA or linear mixed-effects models on arcsin-transformed data. For individuals and center plants n = 7–13, and for edge plants n = 16–48 (up to 4 per population; the blocking effect was accounted for by a random factor in statistical analysis); exact replicate numbers are given in <xref ref-type="supplementary-material" rid="SD4-data SD5-data">Figure 5—source data 1, 2</xref>. There were no significant differences in damage between plants differing only in <italic>TPS10</italic> expression (p > 0.4), plants in mono- vs mixed cultures (p > 0.5), or plants of the same genotype at different positions (individual, edge, or center, p > 0.07). Statistical models are given in <xref ref-type="app" rid="app3">Appendix 3</xref>.',
),
(
"content",
"Note differences in y-axis scale. Data were collected on June 9th in season one (left panels), and on June 2nd in season two (right panels) from plants at all different positions in the experiment: individual plants (A–B), and plants at the edges (C–D) or at the centers (E–F) of populations. Black bars denote WT, grey bars TPS10, red bars lox2/3, and pink bars lox2/3xTPS10 plants. Total canopy damage reflected the trends in canopy damage caused by individual herbivores (Figure 5—source data 1, 2). Total canopy damage in season one was low (left panels), ranging from 5–10% on lox2/3 and lox2/3xTPS10 plants, and only 2–5% on WT and TPS10 plants. Damage levels were about twice as high in season two (right panels), but showed the same relative pattern, with LOX2/3-deficient plans having more damage. Damage levels within a season were similar for plants in different positions (p > 0.07, see Appendix 3). a,b Different letters indicate significant differences (p < 0.05) between LOX2/3-expressing and LOX2/3-deficient plants (WT, TPS10 v. lox2/3, lox2/3xTPS10) in minimal ANOVA or linear mixed-effects models on arcsin-transformed data. For individuals and center plants n = 7–13, and for edge plants n = 16–48 (up to 4 per population; the blocking effect was accounted for by a random factor in statistical analysis); exact replicate numbers are given in Figure 5—source data 1, 2. There were no significant differences in damage between plants differing only in TPS10 expression (p > 0.4), plants in mono- vs mixed cultures (p > 0.5), or plants of the same genotype at different positions (individual, edge, or center, p > 0.07). Statistical models are given in Appendix 3. DOI: http://dx.doi.org/10.7554/eLife.04490.013 10.7554/eLife.04490.014Figure 5—source data 1.Total canopy damage from individual herbivores or groups of herbivores in experimental season one, corresponding to data shown in Figure 5A (mean ± SEM).DOI: http://dx.doi.org/10.7554/eLife.04490.014 DOI: http://dx.doi.org/10.7554/eLife.04490.014 10.7554/eLife.04490.015Figure 5—source data 2.Total canopy damage from individual herbivores or groups of herbivores in experimental season two, corresponding to data shown in Figure 5B (mean ± SEM).DOI: http://dx.doi.org/10.7554/eLife.04490.015 DOI: http://dx.doi.org/10.7554/eLife.04490.015",
),
("article_doi", "10.7554/eLife.04490"),
("type", "fig"),
("position", 13),
("ordinal", 8),
("sibling_ordinal", 5),
("asset", None),
]
),
OrderedDict(
[
("doi", "10.7554/eLife.04490.014"),
("doi_url", "https://doi.org/10.7554/eLife.04490.014"),
("id", "SD4-data"),
(
"title",
"Total canopy damage from individual herbivores or groups of herbivores in experimental season one, corresponding to data shown in Figure 5A (mean ± SEM).",
),
(
"full_title",
'Total canopy damage from individual herbivores or groups of herbivores in experimental season one, corresponding to data shown in <xref ref-type="fig" rid="fig5">Figure 5A</xref> (mean ± SEM).',
),
("label", "Figure 5—source data 1."),
("full_label", "Figure 5—source data 1."),
("parent_type", "fig"),
("parent_ordinal", 8),
("parent_sibling_ordinal", 5),
("parent_asset", None),
("content", "DOI: http://dx.doi.org/10.7554/eLife.04490.014"),
("mimetype", "application"),
("mime-subtype", "xlsx"),
("article_doi", "10.7554/eLife.04490"),
("type", "supplementary-material"),
("position", 14),
("ordinal", 4),
("sibling_ordinal", 1),
("asset", "data"),
]
),
OrderedDict(
[
("doi", "10.7554/eLife.04490.015"),
("doi_url", "https://doi.org/10.7554/eLife.04490.015"),
("id", "SD5-data"),
(
"title",
"Total canopy damage from individual herbivores or groups of herbivores in experimental season two, corresponding to data shown in Figure 5B (mean ± SEM).",
),
(
"full_title",
'Total canopy damage from individual herbivores or groups of herbivores in experimental season two, corresponding to data shown in <xref ref-type="fig" rid="fig5">Figure 5B</xref> (mean ± SEM).',
),
("label", "Figure 5—source data 2."),
("full_label", "Figure 5—source data 2."),
("parent_type", "fig"),
("parent_ordinal", 8),
("parent_sibling_ordinal", 5),
("parent_asset", None),
("content", "DOI: http://dx.doi.org/10.7554/eLife.04490.015"),
("mimetype", "application"),
("mime-subtype", "xlsx"),
("article_doi", "10.7554/eLife.04490"),
("type", "supplementary-material"),
("position", 15),
("ordinal", 5),
("sibling_ordinal", 2),
("asset", "data"),
]
),
OrderedDict(
[
("doi", "10.7554/eLife.04490.016"),
("doi_url", "https://doi.org/10.7554/eLife.04490.016"),
("id", "fig6"),
(
"title",
"Foliar herbivore abundance is determined by TPS10 expression, lox2/3 expression, and plant position.",
),
(
"full_title",
"Foliar herbivore abundance is determined by <italic>TPS10</italic> expression, <italic>lox2/3</italic> expression, and plant position.",
),
("label", "Figure 6."),
("full_label", "Figure 6."),
(
"caption",
"Data were collected on June 26th in season two, when herbivores and predators were more abundant (see Figure 5). Black denotes WT, grey TPS10, red lox2/3, and pink lox2/3xTPS10 plants. Counts for individual herbivores and predators are given in Figure 6—source data 1, 2. (A) Herbivore counts on focal plants of each genotype revealed fewer herbivores present on plants expressing TPS10 (n given in Figure 6—source data 1). a,b Different letters indicate significant differences (corrected p < 0.05) between genotypes in Tukey contrasts following significant differences in a generalized linear mixed-effects model (see Appendix 3). (B) For WT and TPS10 individuals or plants in monocultures (n given in Figure 6—source data 2), there was a significant effect (p < 0.05) of plant genotype (z = −3.662, p = 0.0003) and an interaction of genotype with position (TPS10 by center vs individual position, z = 2.186, p = 0.0288, generalized linear mixed-effects model in Appendix 3). (C) The presence of a TPS10-expressing neighbor in mixed populations did not significantly affect herbivore abundance on WT or lox2/3 edge plants, but there was a significant difference between WT and lox2/3 genotypes at the edges of populations (n given in Figure 6—source data 2, z = 2.358, p = 0.0183, generalized linear model in Appendix 3).",
),
(
"full_caption",
'Data were collected on June 26th in season two, when herbivores and predators were more abundant (see <xref ref-type="fig" rid="fig5">Figure 5</xref>). Black denotes WT, grey <italic>TPS10</italic>, red <italic>lox2/3</italic>, and pink <italic>lox2/3xTPS10</italic> plants. Counts for individual herbivores and predators are given in <xref ref-type="supplementary-material" rid="SD6-data SD7-data">Figure 6—source data 1, 2</xref>. (<bold>A</bold>) Herbivore counts on focal plants of each genotype revealed fewer herbivores present on plants expressing <italic>TPS10</italic> (n given in <xref ref-type="supplementary-material" rid="SD6-data">Figure 6—source data 1</xref>). <sup>a,b</sup> Different letters indicate significant differences (corrected p < 0.05) between genotypes in Tukey contrasts following significant differences in a generalized linear mixed-effects model (see <xref ref-type="app" rid="app3">Appendix 3</xref>). (<bold>B</bold>) For WT and <italic>TPS10</italic> individuals or plants in monocultures (n given in <xref ref-type="supplementary-material" rid="SD7-data">Figure 6—source data 2</xref>), there was a significant effect (p < 0.05) of plant genotype (z = −3.662, p = 0.0003) and an interaction of genotype with position (<italic>TPS10</italic> by center vs individual position, z = 2.186, p = 0.0288, generalized linear mixed-effects model in <xref ref-type="app" rid="app3">Appendix 3</xref>). (<bold>C</bold>) The presence of a <italic>TPS10</italic>-expressing neighbor in mixed populations did not significantly affect herbivore abundance on WT or <italic>lox2/3</italic> edge plants, but there was a significant difference between WT and <italic>lox2/3</italic> genotypes at the edges of populations (n given in <xref ref-type="supplementary-material" rid="SD7-data">Figure 6—source data 2</xref>, z = 2.358, p = 0.0183, generalized linear model in <xref ref-type="app" rid="app3">Appendix 3</xref>).',
),
(
"content",
"Data were collected on June 26th in season two, when herbivores and predators were more abundant (see Figure 5). Black denotes WT, grey TPS10, red lox2/3, and pink lox2/3xTPS10 plants. Counts for individual herbivores and predators are given in Figure 6—source data 1, 2. (A) Herbivore counts on focal plants of each genotype revealed fewer herbivores present on plants expressing TPS10 (n given in Figure 6—source data 1). a,b Different letters indicate significant differences (corrected p < 0.05) between genotypes in Tukey contrasts following significant differences in a generalized linear mixed-effects model (see Appendix 3). (B) For WT and TPS10 individuals or plants in monocultures (n given in Figure 6—source data 2), there was a significant effect (p < 0.05) of plant genotype (z = −3.662, p = 0.0003) and an interaction of genotype with position (TPS10 by center vs individual position, z = 2.186, p = 0.0288, generalized linear mixed-effects model in Appendix 3). (C) The presence of a TPS10-expressing neighbor in mixed populations did not significantly affect herbivore abundance on WT or lox2/3 edge plants, but there was a significant difference between WT and lox2/3 genotypes at the edges of populations (n given in Figure 6—source data 2, z = 2.358, p = 0.0183, generalized linear model in Appendix 3). DOI: http://dx.doi.org/10.7554/eLife.04490.016 10.7554/eLife.04490.017Figure 6—source data 1.Total and median numbers of herbivores and predators counted on focal plants of different genotypes on June 26th in season two.DOI: http://dx.doi.org/10.7554/eLife.04490.017 DOI: http://dx.doi.org/10.7554/eLife.04490.017 10.7554/eLife.04490.018Figure 6—source data 2.Total and median numbers of herbivores counted on focal plants of different genotypes on June 26th in season two, broken down into different population types and plant locations for WT and TPS10 plants.Replicate numbers of lox2/3 and lox2/3xTPS10 plants were not sufficient for this analysis (n ≤ 3 per population type and position).DOI: http://dx.doi.org/10.7554/eLife.04490.018 Replicate numbers of lox2/3 and lox2/3xTPS10 plants were not sufficient for this analysis (n ≤ 3 per population type and position). DOI: http://dx.doi.org/10.7554/eLife.04490.018",
),
("article_doi", "10.7554/eLife.04490"),
("type", "fig"),
("position", 16),
("ordinal", 9),
("sibling_ordinal", 6),
("asset", None),
]
),
OrderedDict(
[
("doi", "10.7554/eLife.04490.017"),
("doi_url", "https://doi.org/10.7554/eLife.04490.017"),
("id", "SD6-data"),
(
"title",
"Total and median numbers of herbivores and predators counted on focal plants of different genotypes on June 26th in season two.",
),
(
"full_title",
"Total and median numbers of herbivores and predators counted on focal plants of different genotypes on June 26th in season two.",
),
("label", "Figure 6—source data 1."),
("full_label", "Figure 6—source data 1."),
("parent_type", "fig"),
("parent_ordinal", 9),
("parent_sibling_ordinal", 6),
("parent_asset", None),
("content", "DOI: http://dx.doi.org/10.7554/eLife.04490.017"),
("mimetype", "application"),
("mime-subtype", "xlsx"),
("article_doi", "10.7554/eLife.04490"),
("type", "supplementary-material"),
("position", 17),
("ordinal", 6),
("sibling_ordinal", 1),
("asset", "data"),
]
),
OrderedDict(
[
("doi", "10.7554/eLife.04490.018"),
("doi_url", "https://doi.org/10.7554/eLife.04490.018"),
("id", "SD7-data"),
(
"title",
"Total and median numbers of herbivores counted on focal plants of different genotypes on June 26th in season two, broken down into different population types and plant locations for WT and TPS10 plants.",
),
(
"full_title",
"Total and median numbers of herbivores counted on focal plants of different genotypes on June 26th in season two, broken down into different population types and plant locations for WT and <italic>TPS10</italic> plants.",
),
("label", "Figure 6—source data 2."),
("full_label", "Figure 6—source data 2."),
(
"caption",
"Replicate numbers of lox2/3 and lox2/3xTPS10 plants were not sufficient for this analysis (n ≤ 3 per population type and position).",
),
(
"full_caption",
"Replicate numbers of <italic>lox2/3</italic> and <italic>lox2/3</italic>x<italic>TPS10</italic> plants were not sufficient for this analysis (n ≤ 3 per population type and position).",
),
("parent_type", "fig"),
("parent_ordinal", 9),
("parent_sibling_ordinal", 6),
("parent_asset", None),
(
"content",
"Replicate numbers of lox2/3 and lox2/3xTPS10 plants were not sufficient for this analysis (n ≤ 3 per population type and position). DOI: http://dx.doi.org/10.7554/eLife.04490.018",
),
("mimetype", "application"),
("mime-subtype", "xlsx"),
("article_doi", "10.7554/eLife.04490"),
("type", "supplementary-material"),
("position", 18),
("ordinal", 7),
("sibling_ordinal", 2),
("asset", "data"),
]
),
OrderedDict(
[
("doi", "10.7554/eLife.04490.019"),
("doi_url", "https://doi.org/10.7554/eLife.04490.019"),
("id", "fig7"),
("title", "LOX2/3 deficiency accelerated flowering under low herbivory."),
(
"full_title",
"<italic>LOX2/3</italic> deficiency accelerated flowering under low herbivory.",
),
("label", "Figure 7."),
("full_label", "Figure 7."),
(
"caption",
"Flower production was monitored twice per season: once shortly after plants began to flower and again 1 week later, when most or all plants were flowering. Bars indicate either total percentage of plants of each genotype which were flowering (left panels), or the mean number of flowers per plant (right panels). WT and TPS10 (black and grey bars) are shown opposite lox2/3 and lox2/3xTPS10 (red and pink bars). Ratios in bars indicate numbers of flowering/total plants monitored; a few plants were not included in counts which had recently lost their main stem to herbivores and had not yet re-grown. (A) In season one, when plants suffered less damage from herbivores (Figure 5), plants with the lox2/3 silencing construct produced more flowers earlier: asterisks indicate pairwise differences between genotypes differing only in the lox2/3 silencing construct. ***Corrected p < 0.001, **corrected p < 0.01, *corrected p < 0.05, or no significant difference (ns) in G-tests (percentage flowering) or in Wilcoxon rank sum tests (flower number, WT vs lox2/3: May 11th, W120,120 = 8582, p = 0.0002; May 17th, W120,119 = 5043, p < 0.0001; TPS10 vs lox2/3xTPS10: May 11th, W84,84 = 3801, p = 0.2063; May 17th, W84,84 = 2520, p = 0.0027). (B) In season two, during which plants received more damage from herbivores (Figure 5), flowering was monitored at later dates: the first timepoint in (B) is comparable to the second timepoint in (A) in terms of the proportion of plants flowering and the average number of flowers per plant (note difference in scale). In season two, LOX2/3 deficiency rather decreased early flower numbers in the comparison of WT vs lox2/3 on May 29th, and did not increase flower numbers at either measurement (WT vs lox2/3: May 29th, W103,95 = 3860.5, p = 0.0091; June 6th, W97,69 = 2940.5, p = 0.3018; TPS10 vs lox2/3xTPS10: May 29th, W87,74 = 3646.5, p = 0.1417; June 6th, W83,63 = 2695, p = 0.7518). For a complete analysis of the effects of LOX2/3 deficiency and TPS10 expression, plant position, and population type on flowering and plant size, see source data file for Figure 8.",
),
(
"full_caption",
'Flower production was monitored twice per season: once shortly after plants began to flower and again 1 week later, when most or all plants were flowering. Bars indicate either total percentage of plants of each genotype which were flowering (left panels), or the mean number of flowers per plant (right panels). WT and <italic>TPS10</italic> (black and grey bars) are shown opposite <italic>lox2/3</italic> and <italic>lox2/3xTPS10</italic> (red and pink bars). Ratios in bars indicate numbers of flowering/total plants monitored; a few plants were not included in counts which had recently lost their main stem to herbivores and had not yet re-grown. (<bold>A</bold>) In season one, when plants suffered less damage from herbivores (<xref ref-type="fig" rid="fig5">Figure 5</xref>), plants with the <italic>lox2/3</italic> silencing construct produced more flowers earlier: asterisks indicate pairwise differences between genotypes differing only in the <italic>lox2/3</italic> silencing construct. ***Corrected p < 0.001, **corrected p < 0.01, *corrected p < 0.05, or no significant difference (ns) in G-tests (percentage flowering) or in Wilcoxon rank sum tests (flower number, WT vs <italic>lox2/3</italic>: May 11th, W<sub>120,120</sub> = 8582, p = 0.0002; May 17th, W<sub>120,119</sub> = 5043, p < 0.0001; <italic>TPS10</italic> vs <italic>lox2/3</italic>x<italic>TPS10</italic>: May 11th, W<sub>84,84</sub> = 3801, p = 0.2063; May 17th, W<sub>84,84</sub> = 2520, p = 0.0027). (<bold>B</bold>) In season two, during which plants received more damage from herbivores (<xref ref-type="fig" rid="fig5">Figure 5</xref>), flowering was monitored at later dates: the first timepoint in (<bold>B</bold>) is comparable to the second timepoint in (<bold>A</bold>) in terms of the proportion of plants flowering and the average number of flowers per plant (note difference in scale). In season two, <italic>LOX2/3</italic> deficiency rather decreased early flower numbers in the comparison of WT vs <italic>lox2/3</italic> on May 29th, and did not increase flower numbers at either measurement (WT vs <italic>lox2/3</italic>: May 29th, W<sub>103,95</sub> = 3860.5, p = 0.0091; June 6th, W<sub>97,69</sub> = 2940.5, p = 0.3018; <italic>TPS10</italic> vs <italic>lox2/3</italic>x<italic>TPS10</italic>: May 29th, W<sub>87,74</sub> = 3646.5, p = 0.1417; June 6th, W<sub>83,63</sub> = 2695, p = 0.7518). For a complete analysis of the effects of <italic>LOX2/3</italic> deficiency and <italic>TPS10</italic> expression, plant position, and population type on flowering and plant size, see source data file for <xref ref-type="fig" rid="fig8">Figure 8</xref>.',
),
(
"content",
"Flower production was monitored twice per season: once shortly after plants began to flower and again 1 week later, when most or all plants were flowering. Bars indicate either total percentage of plants of each genotype which were flowering (left panels), or the mean number of flowers per plant (right panels). WT and TPS10 (black and grey bars) are shown opposite lox2/3 and lox2/3xTPS10 (red and pink bars). Ratios in bars indicate numbers of flowering/total plants monitored; a few plants were not included in counts which had recently lost their main stem to herbivores and had not yet re-grown. (A) In season one, when plants suffered less damage from herbivores (Figure 5), plants with the lox2/3 silencing construct produced more flowers earlier: asterisks indicate pairwise differences between genotypes differing only in the lox2/3 silencing construct. ***Corrected p < 0.001, **corrected p < 0.01, *corrected p < 0.05, or no significant difference (ns) in G-tests (percentage flowering) or in Wilcoxon rank sum tests (flower number, WT vs lox2/3: May 11th, W120,120 = 8582, p = 0.0002; May 17th, W120,119 = 5043, p < 0.0001; TPS10 vs lox2/3xTPS10: May 11th, W84,84 = 3801, p = 0.2063; May 17th, W84,84 = 2520, p = 0.0027). (B) In season two, during which plants received more damage from herbivores (Figure 5), flowering was monitored at later dates: the first timepoint in (B) is comparable to the second timepoint in (A) in terms of the proportion of plants flowering and the average number of flowers per plant (note difference in scale). In season two, LOX2/3 deficiency rather decreased early flower numbers in the comparison of WT vs lox2/3 on May 29th, and did not increase flower numbers at either measurement (WT vs lox2/3: May 29th, W103,95 = 3860.5, p = 0.0091; June 6th, W97,69 = 2940.5, p = 0.3018; TPS10 vs lox2/3xTPS10: May 29th, W87,74 = 3646.5, p = 0.1417; June 6th, W83,63 = 2695, p = 0.7518). For a complete analysis of the effects of LOX2/3 deficiency and TPS10 expression, plant position, and population type on flowering and plant size, see source data file for Figure 8. DOI: http://dx.doi.org/10.7554/eLife.04490.019",
),
("article_doi", "10.7554/eLife.04490"),
("type", "fig"),
("position", 19),
("ordinal", 10),
("sibling_ordinal", 7),
("asset", None),
]
),
OrderedDict(
[
("doi", "10.7554/eLife.04490.020"),
("doi_url", "https://doi.org/10.7554/eLife.04490.020"),
("id", "fig8"),
(
"title",
"TPS10 expression reduced flower production under high herbivory.",
),
(
"full_title",
"<italic>TPS10</italic> expression reduced flower production under high herbivory.",
),
("label", "Figure 8."),
("full_label", "Figure 8."),
(
"caption",
"Plant size as measured by stem length (left panels), and reproduction as measured by flower production (right panels); n given in Figure 8—source data 1. Data were collected on June 6th in season two from plants at all different positions in the experiment: individual plants (A–B), and plants at the edges (C–D) or at the centers (E–F) of populations. Black bars denote WT, grey bars TPS10, red bars lox2/3, and pink bars lox2/3xTPS10 plants. Plant height differed little, with only a small negative effect of TPS10 expression for center plants (E), which was more pronounced in mixed- than monocultures, indicating a slight competitive disadvantage for these plants. Individual plants differed much more than plants in populations in terms of flower production, with TPS10-expressing plants at a disadvantage (B); this effect was greatly reduced in populations.a,b Different letters indicate significant differences (corrected p < 0.05) in Tukey post-hoc tests on plant genotype following significant effects in a generalized linear model, or generalized linear mixed-effects model (C–D) with genotype as a factor; these p-values were corrected using the Holm-Bonferroni correction for multiple testing as the same data were also tested for effects of LOX2/3 deficiency and TPS10 expression (see Figure 8—source data 1). There was no difference in flower production for edge plants, but a small negative effect of TPS10 expression on flower production in center plants (F) corresponding to the slight reduction in height of these plants (E). Statistical models are given in Figure 8—source data 1.",
),
(
"full_caption",
'Plant size as measured by stem length (left panels), and reproduction as measured by flower production (right panels); n given in <xref ref-type="supplementary-material" rid="SD8-data">Figure 8—source data 1</xref>. Data were collected on June 6th in season two from plants at all different positions in the experiment: individual plants (<bold>A</bold>–<bold>B</bold>), and plants at the edges (<bold>C</bold>–<bold>D</bold>) or at the centers (<bold>E</bold>–<bold>F</bold>) of populations. Black bars denote WT, grey bars <italic>TPS10</italic>, red bars <italic>lox2/3</italic>, and pink bars <italic>lox2/3xTPS10</italic> plants. Plant height differed little, with only a small negative effect of <italic>TPS10</italic> expression for center plants (<bold>E</bold>), which was more pronounced in mixed- than monocultures, indicating a slight competitive disadvantage for these plants. Individual plants differed much more than plants in populations in terms of flower production, with <italic>TPS10</italic>-expressing plants at a disadvantage (<bold>B</bold>); this effect was greatly reduced in populations.<sup>a,b</sup> Different letters indicate significant differences (corrected p < 0.05) in Tukey post-hoc tests on plant genotype following significant effects in a generalized linear model, or generalized linear mixed-effects model (<bold>C</bold>–<bold>D</bold>) with genotype as a factor; these p-values were corrected using the Holm-Bonferroni correction for multiple testing as the same data were also tested for effects of <italic>LOX2/3</italic> deficiency and <italic>TPS10</italic> expression (see <xref ref-type="supplementary-material" rid="SD8-data">Figure 8—source data 1</xref>). There was no difference in flower production for edge plants, but a small negative effect of <italic>TPS10</italic> expression on flower production in center plants (<bold>F</bold>) corresponding to the slight reduction in height of these plants (<bold>E</bold>). Statistical models are given in <xref ref-type="supplementary-material" rid="SD8-data">Figure 8—source data 1</xref>.',
),
(
"content",
"Plant size as measured by stem length (left panels), and reproduction as measured by flower production (right panels); n given in Figure 8—source data 1. Data were collected on June 6th in season two from plants at all different positions in the experiment: individual plants (A–B), and plants at the edges (C–D) or at the centers (E–F) of populations. Black bars denote WT, grey bars TPS10, red bars lox2/3, and pink bars lox2/3xTPS10 plants. Plant height differed little, with only a small negative effect of TPS10 expression for center plants (E), which was more pronounced in mixed- than monocultures, indicating a slight competitive disadvantage for these plants. Individual plants differed much more than plants in populations in terms of flower production, with TPS10-expressing plants at a disadvantage (B); this effect was greatly reduced in populations.a,b Different letters indicate significant differences (corrected p < 0.05) in Tukey post-hoc tests on plant genotype following significant effects in a generalized linear model, or generalized linear mixed-effects model (C–D) with genotype as a factor; these p-values were corrected using the Holm-Bonferroni correction for multiple testing as the same data were also tested for effects of LOX2/3 deficiency and TPS10 expression (see Figure 8—source data 1). There was no difference in flower production for edge plants, but a small negative effect of TPS10 expression on flower production in center plants (F) corresponding to the slight reduction in height of these plants (E). Statistical models are given in Figure 8—source data 1. DOI: http://dx.doi.org/10.7554/eLife.04490.020 10.7554/eLife.04490.021Figure 8—source data 1.The same statistical approach described in Appendix 3 for Figure 5 was used for plant size and reproduction data from May 17th in season 1, and June 6th in season two (the most complete measurements, closest to the date of herbivore damage screens, from each season).It should be kept in mind that plants in the season one analysis were at an earlier stage of growth and flowering, for example, had about 10% as many flowers as plants in the season 2 analysis; for an analysis of flowering at similar stages, see Figure 7. Significant p-values and factors are given in bold, while p-values and factors marked in grey and in bold are marginal, but are required in the minimal model because their removal resulted in poorer (higher) AIC values. Other non-significant factors remained in models because they were the least insignificant factor (if only one factor remained), or because they are dependent on other factors which are significant or required.DOI: http://dx.doi.org/10.7554/eLife.04490.021 It should be kept in mind that plants in the season one analysis were at an earlier stage of growth and flowering, for example, had about 10% as many flowers as plants in the season 2 analysis; for an analysis of flowering at similar stages, see Figure 7. Significant p-values and factors are given in bold, while p-values and factors marked in grey and in bold are marginal, but are required in the minimal model because their removal resulted in poorer (higher) AIC values. Other non-significant factors remained in models because they were the least insignificant factor (if only one factor remained), or because they are dependent on other factors which are significant or required. DOI: http://dx.doi.org/10.7554/eLife.04490.021",
),
("article_doi", "10.7554/eLife.04490"),
("type", "fig"),
("position", 20),
("ordinal", 11),
("sibling_ordinal", 8),
("asset", None),
]
),
OrderedDict(
[
("doi", "10.7554/eLife.04490.021"),
("doi_url", "https://doi.org/10.7554/eLife.04490.021"),
("id", "SD8-data"),
(
"title",
"The same statistical approach described in Appendix 3 for Figure 5 was used for plant size and reproduction data from May 17th in season 1, and June 6th in season two (the most complete measurements, closest to the date of herbivore damage screens, from each season).",
),
(
"full_title",
'The same statistical approach described in <xref ref-type="app" rid="app3">Appendix 3</xref> for <xref ref-type="fig" rid="fig5">Figure 5</xref> was used for plant size and reproduction data from May 17th in season 1, and June 6th in season two (the most complete measurements, closest to the date of herbivore damage screens, from each season).',
),
("label", "Figure 8—source data 1."),
("full_label", "Figure 8—source data 1."),
(
"caption",
"It should be kept in mind that plants in the season one analysis were at an earlier stage of growth and flowering, for example, had about 10% as many flowers as plants in the season 2 analysis; for an analysis of flowering at similar stages, see Figure 7. Significant p-values and factors are given in bold, while p-values and factors marked in grey and in bold are marginal, but are required in the minimal model because their removal resulted in poorer (higher) AIC values. Other non-significant factors remained in models because they were the least insignificant factor (if only one factor remained), or because they are dependent on other factors which are significant or required.",
),
(
"full_caption",
'It should be kept in mind that plants in the season one analysis were at an earlier stage of growth and flowering, for example, had about 10% as many flowers as plants in the season 2 analysis; for an analysis of flowering at similar stages, see <xref ref-type="fig" rid="fig7">Figure 7</xref>. Significant p-values and factors are given in bold, while p-values and factors marked in grey and in bold are marginal, but are required in the minimal model because their removal resulted in poorer (higher) AIC values. Other non-significant factors remained in models because they were the least insignificant factor (if only one factor remained), or because they are dependent on other factors which are significant or required.',
),
("parent_type", "fig"),
("parent_ordinal", 11),
("parent_sibling_ordinal", 8),
("parent_asset", None),
(
"content",
"It should be kept in mind that plants in the season one analysis were at an earlier stage of growth and flowering, for example, had about 10% as many flowers as plants in the season 2 analysis; for an analysis of flowering at similar stages, see Figure 7. Significant p-values and factors are given in bold, while p-values and factors marked in grey and in bold are marginal, but are required in the minimal model because their removal resulted in poorer (higher) AIC values. Other non-significant factors remained in models because they were the least insignificant factor (if only one factor remained), or because they are dependent on other factors which are significant or required. DOI: http://dx.doi.org/10.7554/eLife.04490.021",
),
("mimetype", "application"),
("mime-subtype", "xlsx"),
("article_doi", "10.7554/eLife.04490"),
("type", "supplementary-material"),
("position", 21),
("ordinal", 8),
("sibling_ordinal", 1),
("asset", "data"),
]
),
OrderedDict(
[
("doi", "10.7554/eLife.04490.022"),
("doi_url", "https://doi.org/10.7554/eLife.04490.022"),
("id", "fig9"),
(
"title",
"One TPS10-expressing plant per population counteracts a mortality increase in LOX2/3-deficient populations.",
),
(
"full_title",
"One <italic>TPS10</italic>-expressing plant per population counteracts a mortality increase in <italic>LOX2/3</italic>-deficient populations.",
),
("label", "Figure 9."),
("full_label", "Figure 9."),
(
"caption",
"Bars indicate total percentage mortality for all plants in each population type, and ratios in bars indicate numbers of dead/total plants (n = 75). WT and TPS10 populations (left, black, and grey bars) are compared to the equivalent lox2/3 and lox2/3xTPS10 populations (right, red, and pink bars) differing only in the lox2/3 silencing construct. LOX2/3-deficient plants had higher mortality in monocultures, regardless of whether they also expressed TPS10 (**WT mono v. lox2/3 mono, corrected p < 0.01; *TPS10 mono v. lox2/3xTPS10 mono, corrected p < 0.05 in G-tests; p-values were corrected for multiple testing using the Holm-Bonferroni method). However, the mortality of plants in mixed lox2/3 + lox2/3xTPS10 populations is similar to that of the plants in mixed WT + TPS10 populations (ns, not significant). There was no significant difference in mortality among mono- and mixed cultures of WT and TPS10 plants (corrected p > 0.3), or of lox2/3 and lox2/3xTPS10 plants, although there was a marginal difference between lox2/3 monocultures and lox2/3 + lox2/3xTPS10 mixed cultures (corrected p = 0.091). In addition, a health index was assigned to each plant (discussed in text); this index was correlated with several plant growth and reproduction parameters (see Figure 9—figure supplement 1). Data were collected on June 29th at the end of experimental season two; in season one, all plants experienced much lower herbivory (Figure 5) and negligible mortality (0–5%).",
),
(
"full_caption",
'Bars indicate total percentage mortality for all plants in each population type, and ratios in bars indicate numbers of dead/total plants (n = 75). WT and <italic>TPS10</italic> populations (left, black, and grey bars) are compared to the equivalent <italic>lox2/3</italic> and <italic>lox2/3xTPS10</italic> populations (right, red, and pink bars) differing only in the <italic>lox2/3</italic> silencing construct. <italic>LOX2/3</italic>-deficient plants had higher mortality in monocultures, regardless of whether they also expressed <italic>TPS10</italic> (**WT mono v. <italic>lox2/3</italic> mono, corrected p < 0.01; *<italic>TPS10</italic> mono v. <italic>lox2/3xTPS10</italic> mono, corrected p < 0.05 in G-tests; p<italic>-</italic>values were corrected for multiple testing using the Holm-Bonferroni method). However, the mortality of plants in mixed <italic>lox2/3</italic> + <italic>lox2/3xTPS10</italic> populations is similar to that of the plants in mixed WT + <italic>TPS10</italic> populations (ns, not significant). There was no significant difference in mortality among mono- and mixed cultures of WT and <italic>TPS10</italic> plants (corrected p > 0.3), or of <italic>lox2/3</italic> and <italic>lox2/3xTPS10</italic> plants, although there was a marginal difference between <italic>lox2/3</italic> monocultures and <italic>lox2/3</italic> + <italic>lox2/3xTPS10</italic> mixed cultures (corrected p = 0.091). In addition, a health index was assigned to each plant (discussed in text); this index was correlated with several plant growth and reproduction parameters (see <xref ref-type="fig" rid="fig9s1">Figure 9—figure supplement 1</xref>). Data were collected on June 29th at the end of experimental season two; in season one, all plants experienced much lower herbivory (<xref ref-type="fig" rid="fig5">Figure 5</xref>) and negligible mortality (0–5%).',
),
(
"content",
"Bars indicate total percentage mortality for all plants in each population type, and ratios in bars indicate numbers of dead/total plants (n = 75). WT and TPS10 populations (left, black, and grey bars) are compared to the equivalent lox2/3 and lox2/3xTPS10 populations (right, red, and pink bars) differing only in the lox2/3 silencing construct. LOX2/3-deficient plants had higher mortality in monocultures, regardless of whether they also expressed TPS10 (**WT mono v. lox2/3 mono, corrected p < 0.01; *TPS10 mono v. lox2/3xTPS10 mono, corrected p < 0.05 in G-tests; p-values were corrected for multiple testing using the Holm-Bonferroni method). However, the mortality of plants in mixed lox2/3 + lox2/3xTPS10 populations is similar to that of the plants in mixed WT + TPS10 populations (ns, not significant). There was no significant difference in mortality among mono- and mixed cultures of WT and TPS10 plants (corrected p > 0.3), or of lox2/3 and lox2/3xTPS10 plants, although there was a marginal difference between lox2/3 monocultures and lox2/3 + lox2/3xTPS10 mixed cultures (corrected p = 0.091). In addition, a health index was assigned to each plant (discussed in text); this index was correlated with several plant growth and reproduction parameters (see Figure 9—figure supplement 1). Data were collected on June 29th at the end of experimental season two; in season one, all plants experienced much lower herbivory (Figure 5) and negligible mortality (0–5%). DOI: http://dx.doi.org/10.7554/eLife.04490.022",
),
("article_doi", "10.7554/eLife.04490"),
("type", "fig"),
("position", 22),
("ordinal", 12),
("sibling_ordinal", 9),
("asset", None),
]
),
OrderedDict(
[
("doi", "10.7554/eLife.04490.023"),
("doi_url", "https://doi.org/10.7554/eLife.04490.023"),
("id", "fig9s1"),
(
"title",
"The health index assigned to plants is strongly and significantly correlated to several measures of plant size and reproduction.",
),
(
"full_title",
"The health index assigned to plants is strongly and significantly correlated to several measures of plant size and reproduction.",
),
("label", "Figure 9—figure supplement 1."),
("full_label", "Figure 9—figure supplement 1."),
(
"caption",
"All measures of plant size and reproduction made on June 6th in season two are plotted against simultaneously assigned health indices >1 (a health index of 1 refers to dead plants). Spearman's ρ and the corresponding Holm-Bonferroni corrected p-value are shown for each correlation.",
),
(
"full_caption",
"All measures of plant size and reproduction made on June 6th in season two are plotted against simultaneously assigned health indices >1 (a health index of 1 refers to dead plants). Spearman's ρ and the corresponding Holm-Bonferroni corrected p<italic>-</italic>value are shown for each correlation.",
),
("parent_type", "fig"),
("parent_ordinal", 12),
("parent_sibling_ordinal", 9),
("parent_asset", None),
(
"content",
"All measures of plant size and reproduction made on June 6th in season two are plotted against simultaneously assigned health indices >1 (a health index of 1 refers to dead plants). Spearman's ρ and the corresponding Holm-Bonferroni corrected p-value are shown for each correlation. DOI: http://dx.doi.org/10.7554/eLife.04490.023",
),
("article_doi", "10.7554/eLife.04490"),
("type", "fig"),
("position", 23),
("ordinal", 13),
("sibling_ordinal", 2),
("asset", "figsupp"),
]
),
OrderedDict(
[
("doi", "10.7554/eLife.04490.024"),
("doi_url", "https://doi.org/10.7554/eLife.04490.024"),
("id", "fig10"),
(
"title",
"TPS10 plants increase the infestation rates of their WT neighbors with the stem-boring weevil T. mucorea.",
),
(
"full_title",
"<italic>TPS10</italic> plants increase the infestation rates of their WT neighbors with the stem-boring weevil <italic>T. mucorea.</italic>",
),
("label", "Figure 10."),
("full_label", "Figure 10."),
(
"caption",
"(A) Photograph of a T. mucorea adult emerging from the stem which it infested as a larva reprinted with permission from Anke Steppuhn, Copyright 2005. All rights reserved. Adults mate and oviposit on young N. attenuata plants in March and April, and upon hatching, larvae burrow into the growing stem of the plant chosen by their mother (Diezel et al., 2011). Infestation was scored as the number of plants with hollow, frass-filled stems (from which larvae were usually also recovered). (B) T. mucorea infestation more than doubled for WT plants, but did not change for TPS10 plants in mixed cultures vs monocultures. Bars indicate total percentage of plants infested; ratios in bars indicate numbers of infested/total plants. Data were collected at the end of experimental season two (June 29th). *Corrected p < 0.05 in a Fisher's exact test, n = 31–47 (all surviving replicates). p-values were corrected for multiple testing using the Holm-Bonferroni method. (C) The presence of lox2/3xTPS10 plants also tended to increase T. mucorea infestation in lox2/3 + lox2/3xTPS10 populations but, likely due to lower replicate numbers caused by higher mortality for plants in lox2/3 and lox2/3xTPS10 monocultures (Figure 9), differences are not significant (corrected p-values = 1).",
),
(
"full_caption",
'(<bold>A</bold>) Photograph of a <italic>T. mucorea</italic> adult emerging from the stem which it infested as a larva reprinted with permission from Anke Steppuhn, Copyright 2005. All rights reserved. Adults mate and oviposit on young <italic>N. attenuata</italic> plants in March and April, and upon hatching, larvae burrow into the growing stem of the plant chosen by their mother (<xref ref-type="bibr" rid="bib22">Diezel et al., 2011</xref>). Infestation was scored as the number of plants with hollow, frass-filled stems (from which larvae were usually also recovered). (<bold>B</bold>) <italic>T. mucorea</italic> infestation more than doubled for WT plants, but did not change for <italic>TPS10</italic> plants in mixed cultures vs monocultures. Bars indicate total percentage of plants infested; ratios in bars indicate numbers of infested/total plants. Data were collected at the end of experimental season two (June 29th). *Corrected p < 0.05 in a Fisher\'s exact test, n = 31–47 (all surviving replicates). p<italic>-</italic>values were corrected for multiple testing using the Holm-Bonferroni method. (<bold>C</bold>) The presence of <italic>lox2/3xTPS10</italic> plants also tended to increase <italic>T. mucorea</italic> infestation in <italic>lox2/3</italic> + <italic>lox2/3xTPS10</italic> populations but, likely due to lower replicate numbers caused by higher mortality for plants in <italic>lox2/3</italic> and <italic>lox2/3xTPS10</italic> monocultures (<xref ref-type="fig" rid="fig9">Figure 9</xref>), differences are not significant (corrected p<italic>-</italic>values = 1).',
),
(
"content",
"(A) Photograph of a T. mucorea adult emerging from the stem which it infested as a larva reprinted with permission from Anke Steppuhn, Copyright 2005. All rights reserved. Adults mate and oviposit on young N. attenuata plants in March and April, and upon hatching, larvae burrow into the growing stem of the plant chosen by their mother (Diezel et al., 2011). Infestation was scored as the number of plants with hollow, frass-filled stems (from which larvae were usually also recovered). (B) T. mucorea infestation more than doubled for WT plants, but did not change for TPS10 plants in mixed cultures vs monocultures. Bars indicate total percentage of plants infested; ratios in bars indicate numbers of infested/total plants. Data were collected at the end of experimental season two (June 29th). *Corrected p < 0.05 in a Fisher's exact test, n = 31–47 (all surviving replicates). p-values were corrected for multiple testing using the Holm-Bonferroni method. (C) The presence of lox2/3xTPS10 plants also tended to increase T. mucorea infestation in lox2/3 + lox2/3xTPS10 populations but, likely due to lower replicate numbers caused by higher mortality for plants in lox2/3 and lox2/3xTPS10 monocultures (Figure 9), differences are not significant (corrected p-values = 1). DOI: http://dx.doi.org/10.7554/eLife.04490.024",
),
("article_doi", "10.7554/eLife.04490"),
("type", "fig"),
("position", 24),
("ordinal", 14),
("sibling_ordinal", 10),
("asset", None),
]
),
OrderedDict(
[
("doi", "10.7554/eLife.04490.025"),
("doi_url", "https://doi.org/10.7554/eLife.04490.025"),
("id", "fig11"),
(
"title",
"TPS10 and LOX2/3 interact to alter the predation of M. sexta by Geocoris spp from edge vs center plants.",
),
(
"full_title",
"<italic>TPS10</italic> and <italic>LOX2/3</italic> interact to alter the predation of <italic>M. sexta</italic> by <italic>Geocoris</italic> spp from edge vs center plants.",
),
("label", "Figure 11."),
("full_label", "Figure 11."),
(
"caption",
"(A) Photograph of a M. sexta egg and first-instar larva, and G. pallens adult on an N. attenuata leaf reprinted with permission from Danny Kessler, Copyright 2006. All rights reserved. As shown here, one first-instar M. sexta larva and one egg were placed on a lower stem leaf in a standardized position on healthy, size-matched plants (one leaf/plant), and their predation was monitored for 24 h. Data are total numbers from five consecutive trials conducted between June 21st and June 27th at the end of experimental season two, when Geocoris spp. and herbivores were more abundant (see Figure 5). (B and C) Predation rates of M. sexta are higher on lox2/3xTPS10 than lox2/3 plants at the edges of monocultures (B), but lower on TPS10 than WT plants at the centers of monocultures (C). Bars indicate the total percentage of M. sexta eggs and larvae predated per population; numbers of predated/total eggs and larvae are given inside bars. The same trends were observed in both egg and larva predation; separate numbers of larvae and eggs predated are given in Figure 11—source data 1. Plants of the WT background and plants with the lox2/3 silencing construct were separately matched for parallel experiments and thus analyzed separately. (B) Predation of herbivores from edge plants was similar (not significant, ns) regardless of the number of TPS10 plants in WT + TPS10 populations, but increased with increasing numbers of lox2/3xTPS10 plants in lox2/3 + lox2/3xTPS10 populations. For plants at the center of populations, the pattern was reversed: (C) predation rates decreased with increasing numbers of TPS10 plants in WT + TPS10 populations, and were similar (ns) regardless of the number of lox2/3xTPS10 plants in lox2/3 + lox2/3xTPS10 populations. a,b Different letters indicate significant differences (corrected p < 0.05) in Fisher's exact tests; p-values were corrected for multiple testing using the Holm-Bonferroni method.",
),
(
"full_caption",
'(<bold>A</bold>) Photograph of a <italic>M. sexta</italic> egg and first-instar larva, and <italic>G. pallens</italic> adult on an <italic>N. attenuata</italic> leaf reprinted with permission from Danny Kessler, Copyright 2006. All rights reserved. As shown here, one first-instar <italic>M</italic>. <italic>sexta</italic> larva and one egg were placed on a lower stem leaf in a standardized position on healthy, size-matched plants (one leaf/plant), and their predation was monitored for 24 h. Data are total numbers from five consecutive trials conducted between June 21st and June 27th at the end of experimental season two, when <italic>Geocoris</italic> spp. and herbivores were more abundant (see <xref ref-type="fig" rid="fig5">Figure 5</xref>). (<bold>B</bold> and <bold>C</bold>) Predation rates of <italic>M</italic>. <italic>sexta</italic> are higher on <italic>lox2/3xTPS10</italic> than <italic>lox2/3</italic> plants at the edges of monocultures (<bold>B</bold>), but lower on <italic>TPS10</italic> than WT plants at the centers of monocultures (<bold>C</bold>). Bars indicate the total percentage of <italic>M</italic>. <italic>sexta</italic> eggs and larvae predated per population; numbers of predated/total eggs and larvae are given inside bars. The same trends were observed in both egg and larva predation; separate numbers of larvae and eggs predated are given in <xref ref-type="supplementary-material" rid="SD9-data">Figure 11—source data 1</xref>. Plants of the WT background and plants with the <italic>lox2/3</italic> silencing construct were separately matched for parallel experiments and thus analyzed separately. (<bold>B</bold>) Predation of herbivores from edge plants was similar (not significant, ns) regardless of the number of <italic>TPS10</italic> plants in WT + <italic>TPS10</italic> populations, but increased with increasing numbers of <italic>lox2/3xTPS10</italic> plants in <italic>lox2/3</italic> + <italic>lox2/3xTPS10</italic> populations. For plants at the center of populations, the pattern was reversed: (<bold>C</bold>) predation rates decreased with increasing numbers of <italic>TPS10</italic> plants in WT + <italic>TPS10</italic> populations, and were similar (ns) regardless of the number of <italic>lox2/3xTPS10</italic> plants in <italic>lox2/3</italic> + <italic>lox2/3xTPS10</italic> populations. <sup>a,b</sup> Different letters indicate significant differences (corrected p < 0.05) in Fisher\'s exact tests; p<italic>-</italic>values were corrected for multiple testing using the Holm-Bonferroni method.',
),
(
"content",
"(A) Photograph of a M. sexta egg and first-instar larva, and G. pallens adult on an N. attenuata leaf reprinted with permission from Danny Kessler, Copyright 2006. All rights reserved. As shown here, one first-instar M. sexta larva and one egg were placed on a lower stem leaf in a standardized position on healthy, size-matched plants (one leaf/plant), and their predation was monitored for 24 h. Data are total numbers from five consecutive trials conducted between June 21st and June 27th at the end of experimental season two, when Geocoris spp. and herbivores were more abundant (see Figure 5). (B and C) Predation rates of M. sexta are higher on lox2/3xTPS10 than lox2/3 plants at the edges of monocultures (B), but lower on TPS10 than WT plants at the centers of monocultures (C). Bars indicate the total percentage of M. sexta eggs and larvae predated per population; numbers of predated/total eggs and larvae are given inside bars. The same trends were observed in both egg and larva predation; separate numbers of larvae and eggs predated are given in Figure 11—source data 1. Plants of the WT background and plants with the lox2/3 silencing construct were separately matched for parallel experiments and thus analyzed separately. (B) Predation of herbivores from edge plants was similar (not significant, ns) regardless of the number of TPS10 plants in WT + TPS10 populations, but increased with increasing numbers of lox2/3xTPS10 plants in lox2/3 + lox2/3xTPS10 populations. For plants at the center of populations, the pattern was reversed: (C) predation rates decreased with increasing numbers of TPS10 plants in WT + TPS10 populations, and were similar (ns) regardless of the number of lox2/3xTPS10 plants in lox2/3 + lox2/3xTPS10 populations. a,b Different letters indicate significant differences (corrected p < 0.05) in Fisher's exact tests; p-values were corrected for multiple testing using the Holm-Bonferroni method. DOI: http://dx.doi.org/10.7554/eLife.04490.025 10.7554/eLife.04490.026Figure 11—source data 1.Total numbers of M. sexta larvae and eggs predated by Geocoris spp. in experimental season two (corresponding to data shown in Figure 10).DOI: http://dx.doi.org/10.7554/eLife.04490.026 DOI: http://dx.doi.org/10.7554/eLife.04490.026",
),
("article_doi", "10.7554/eLife.04490"),
("type", "fig"),
("position", 25),
("ordinal", 15),
("sibling_ordinal", 11),
("asset", None),
]
),
OrderedDict(
[
("doi", "10.7554/eLife.04490.026"),
("doi_url", "https://doi.org/10.7554/eLife.04490.026"),
("id", "SD9-data"),
(
"title",
"Total numbers of M. sexta larvae and eggs predated by Geocoris spp. in experimental season two (corresponding to data shown in Figure 10).",
),
(
"full_title",
'Total numbers of <italic>M. sexta</italic> larvae and eggs predated by <italic>Geocoris</italic> spp. in experimental season two (corresponding to data shown in <xref ref-type="fig" rid="fig10">Figure 10</xref>).',
),
("label", "Figure 11—source data 1."),
("full_label", "Figure 11—source data 1."),
("parent_type", "fig"),
("parent_ordinal", 15),
("parent_sibling_ordinal", 11),
("parent_asset", None),
("content", "DOI: http://dx.doi.org/10.7554/eLife.04490.026"),
("mimetype", "application"),
("mime-subtype", "xlsx"),
("article_doi", "10.7554/eLife.04490"),
("type", "supplementary-material"),
("position", 26),
("ordinal", 9),
("sibling_ordinal", 1),
("asset", "data"),
]
),
OrderedDict(
[
("doi", "10.7554/eLife.04490.027"),
("doi_url", "https://doi.org/10.7554/eLife.04490.027"),
("id", "fig12"),
(
"title",
"Transgene insertions and reduced jasmonate accumulation in lines of lox2/3.",
),
(
"full_title",
"Transgene insertions and reduced jasmonate accumulation in lines of <italic>lox2/3.</italic>",
),
("label", "Appendix Figure 1."),
("full_label", "Appendix Figure 1."),
(
"caption",
"(A) Southern blot of genomic DNA from multiple lines of lox2/3 digested with the restriction enzymes XbaI or EcoRI. Line 707 is highlighted: this line was used for experiments. A single transgene insertion in TPS10 (line 10-3) is shown in Schuman et al. (2014). All lines of lox2/3 screened had strong reductions in their induced (B) JA and (C) JA-Ile accumulation (mean ± SEM, n = 6). Line 707-2 was used for further experiments. a,b Different letters indicate significant differences (corrected p < 0.0001) in Tukey HSD tests following significant (p < 0.0001) 1-way ANOVAs on natural log-transformed data (JA: F4,25 = 54.15; JA-Ile: F4,25 = 18.00); ns, not significant in 1-way ANOVAs (p > 0.4).",
),
(
"full_caption",
'(<bold>A</bold>) Southern blot of genomic DNA from multiple lines of <italic>lox2/3</italic> digested with the restriction enzymes XbaI or EcoRI. Line 707 is highlighted: this line was used for experiments. A single transgene insertion in <italic>TPS10</italic> (line 10-3) is shown in <xref ref-type="bibr" rid="bib71">Schuman et al. (2014)</xref>. All lines of <italic>lox2/3</italic> screened had strong reductions in their induced (<bold>B</bold>) JA and (<bold>C</bold>) JA-Ile accumulation (mean ± SEM, n = 6). Line 707-2 was used for further experiments. <sup>a,b</sup> Different letters indicate significant differences (corrected p < 0.0001) in Tukey HSD tests following significant (p < 0.0001) 1-way ANOVAs on natural log-transformed data (JA: F<sub>4,25</sub> = 54.15; JA-Ile: F<sub>4,25</sub> = 18.00); ns, not significant in 1-way ANOVAs (p > 0.4).',
),
(
"content",
"(A) Southern blot of genomic DNA from multiple lines of lox2/3 digested with the restriction enzymes XbaI or EcoRI. Line 707 is highlighted: this line was used for experiments. A single transgene insertion in TPS10 (line 10-3) is shown in Schuman et al. (2014). All lines of lox2/3 screened had strong reductions in their induced (B) JA and (C) JA-Ile accumulation (mean ± SEM, n = 6). Line 707-2 was used for further experiments. a,b Different letters indicate significant differences (corrected p < 0.0001) in Tukey HSD tests following significant (p < 0.0001) 1-way ANOVAs on natural log-transformed data (JA: F4,25 = 54.15; JA-Ile: F4,25 = 18.00); ns, not significant in 1-way ANOVAs (p > 0.4). DOI: http://dx.doi.org/10.7554/eLife.04490.027",
),
("article_doi", "10.7554/eLife.04490"),
("type", "fig"),
("position", 27),
("ordinal", 16),
("sibling_ordinal", 1),
("asset", None),
]
),
OrderedDict(
[
("doi", "10.7554/eLife.04490.028"),
("doi_url", "https://doi.org/10.7554/eLife.04490.028"),
("id", "fig13"),
(
"title",
"Target gene transcript levels in lox2/3, TPS10, and lox2/3xTPS10 plants.",
),
(
"full_title",
"Target gene transcript levels in <italic>lox2/3</italic>, <italic>TPS10</italic>, and <italic>lox2/3</italic>x<italic>TPS10</italic> plants.",
),
("label", "Appendix Figure 2."),
("full_label", "Appendix Figure 2."),
(
"caption",
"Transcript accumulation shows that lox2/3 plants, TPS10 plants, and hemizygous crosses (lox2/3xTPS10) have the expected silencing or accumulation of the target genes LOX2, LOX3, and TPS10 (mean ± SEM, n = 4). a,b Different letters indicate significant differences (corrected p < 0.01) in Tukey HSD tests following a significant (p < 0.001) 1-way ANOVA on natural log-transformed data (LOX2: F3,12 = 49.49, p < 0.001; LOX3: F3,12 = 13.73, p < 0.001; TPS10: F3,12 = 845.6, p < 0.001).",
),
(
"full_caption",
"Transcript accumulation shows that <italic>lox2/3</italic> plants, <italic>TPS10</italic> plants, and hemizygous crosses (<italic>lox2/3xTPS10</italic>) have the expected silencing or accumulation of the target genes <italic>LOX2</italic>, <italic>LOX3</italic>, and <italic>TPS10</italic> (mean ± SEM, n = 4). <sup>a,b</sup> Different letters indicate significant differences (corrected p < 0.01) in Tukey HSD tests following a significant (p < 0.001) 1-way ANOVA on natural log-transformed data (<italic>LOX2</italic>: F<sub>3,12</sub> = 49.49, p < 0.001; <italic>LOX3</italic>: F<sub>3,12</sub> = 13.73, p < 0.001; <italic>TPS10</italic>: F<sub>3,12</sub> = 845.6, p < 0.001).",
),
(
"content",
"Transcript accumulation shows that lox2/3 plants, TPS10 plants, and hemizygous crosses (lox2/3xTPS10) have the expected silencing or accumulation of the target genes LOX2, LOX3, and TPS10 (mean ± SEM, n = 4). a,b Different letters indicate significant differences (corrected p < 0.01) in Tukey HSD tests following a significant (p < 0.001) 1-way ANOVA on natural log-transformed data (LOX2: F3,12 = 49.49, p < 0.001; LOX3: F3,12 = 13.73, p < 0.001; TPS10: F3,12 = 845.6, p < 0.001). DOI: http://dx.doi.org/10.7554/eLife.04490.028",
),
("article_doi", "10.7554/eLife.04490"),
("type", "fig"),
("position", 28),
("ordinal", 17),
("sibling_ordinal", 2),
("asset", None),
]
),
OrderedDict(
[
("doi", "10.7554/eLife.04490.029"),
("doi_url", "https://doi.org/10.7554/eLife.04490.029"),
("id", "tbl1"),
("label", "Appendix Table 1."),
("full_label", "Appendix Table 1."),
(
"caption",
"Volatiles (percent IS plant−1, mean ± SEM) trapped in the headspace around single plants in experimental season one (June 8th–9th).",
),
(
"full_caption",
"Volatiles (percent IS plant<sup>−1</sup>, mean ± SEM) trapped in the headspace around single plants in experimental season one (June 8th–9th).",
),
(
"content",
"Volatiles (percent IS plant−1, mean ± SEM) trapped in the headspace around single plants in experimental season one (June 8th–9th). DOI: http://dx.doi.org/10.7554/eLife.04490.029 a, b Different letters indicate significant differences between lines for a vertical category (corrected P<0.05) in Wilcoxon rank sum tests following significant Kruskal-Wallis tests across all genotypes (see Results text); P-values were corrected for multiple testing using the Holm-Bonferroni method. Community type was also tested and found not significant. Where there are no letters, there are no significant pairwise differences within a category. } alox, } blox / } aTPS, } bTPS Indicate significant differences (corrected P<0.05) between lines with and without either the lox construct (WT and TPS v. lox and loxTPS) or the TPS construct (WT and lox v. TPS and loxTPS) in Wilcoxon rank sum tests for a category; P-values were corrected for multiple testing using the Holm-Bonferroni method. There are no significant pairwise differences in these categories. IS, internal standard; GLVs, green leaf volatiles; TAB, (E)-α-bergamotene; TBF, (E)-β-farnesene; —, not detected.",
),
("article_doi", "10.7554/eLife.04490"),
("type", "table-wrap"),
("position", 29),
("ordinal", 1),
("sibling_ordinal", 1),
("asset", None),
]
),
OrderedDict(
[
("doi", "10.7554/eLife.04490.030"),
("doi_url", "https://doi.org/10.7554/eLife.04490.030"),
("id", "SA1"),
("title", "Decision letter"),
("full_title", "Decision letter"),
(
"contributors",
[
{
"type": "editor",
"role": "Reviewing editor",
"surname": "Greenberg",
"given-names": "Jean T",
"affiliations": [
{
"institution": "University of Chicago",
"country": "United States",
}
],
}
],
),
(
"content",
"eLife posts the editorial decision letter and author response on a selection of the published articles (subject to the approval of the authors). An edited version of the letter sent to the authors after peer review is shown, indicating the substantive concerns or comments; minor concerns are not usually shown. Reviewers have the opportunity to discuss the decision before the letter is sent (see review process). Similarly, the author response typically shows only responses to the major concerns raised by the reviewers. Thank you for sending your work entitled “Plant defense phenotypes determine the consequences of volatile emission for individuals and neighbors” for consideration at eLife. Your article has been favorably evaluated by Diethard Tautz (Senior editor), a Reviewing editor, and three reviewers. The Reviewing editor and the reviewers discussed their comments before we reached this decision, and the Reviewing editor has assembled the following comments to help you prepare a revised submission. This manuscript makes an important contribution to understanding the role of two volatiles. The reviewers identified a few issues that need improvement. 1) You report that the role of lox mediated direct defence and its associated volatiles is determining damage on the plot level, not affecting focal or neighbouring plants. Whereas the TSP10 plants do affect abundance of stem borer beetles and predator presence on individual plant level. This conclusion is sound based on the data presented, but it is also biased by the experimental design. You did not explore the role of LOX derived volatiles or direct defences on the individual plant level experimentally. You should acknowledge and discuss the fact that the effect of LOX mediated effects has not been tested fully. The Discussion should include how the missing treatment might affect your conclusions or further inferences about the role of particular volatile emissions. 2) Although from the plants perspective measurement of damage is a useful predictor of the costs of herbivory, the measurement may not accurately present the actual effect on herbivore abundance. Damage is confounding: herbivore abundance, their feeding intensity (that individuals may adjust to plant quality), and predator pressure on herbivores. Actual herbivore counts such as provided for the stem borer beetles would more strongly support the conclusions on LOX and TSP mediated community processes. Please discuss this point or provide the counts if you have them. 3) You rely very heavily on pairwise comparisons between treatments, usually with non-parametric tests or G tests for differences in proportions. The results would be much clearer to the readers, and avoid many of the concerns over multiple comparisons, if the authors used generalized linear models that better reflect the experimental design (see below for specific suggestion). For instance, the strongest results for their “community genetics” argument comes from the pattern of reduced mortality of lox2/3 vs. WT plants when in the presence of a TPS10 plant (Figure 9), but you do not test this directly. This pattern should be tested as an interaction between the lox and TPS treatments. You interpret this pattern strongly, but all of the tests performed show marginal or non-significant differences (a marginal decline in mortality for lox2/3 plants and a non-significant increase in mortality for WT plants due to the presence of a TPS10 plant). A similar model could be used for stem borer infestation and predation rates. In addition to providing more powerful tests, it may help the reader if all of these analyses are presented in a parallel way. Specific suggestion: your statistical analysis could be improved for the analysis of the field experiment data (mortality, prevalence of stem borers, and prevalence of predation). All of the outcome variables are binomial (1 or 0 at the level of an individual plant). It is recommended that you model this outcome with a generalized linear mixed model, using a binomial error distribution. This could be done with the glmer function in R or the GLIMMIX procedure in SAS, among other options. The model would include two crossed factors: the LOX genotype of the individual plant (2 levels, wild type or mutant) crossed with the TPS10 treatment of the population (5 levels, individual WT, individual TPS10, monoculture WT, monoculuture TPS10, mixed), and plot as a random effect to account for the non-independence of plants from the same plot. The test of whether the presence of a TPS10 plant alters mortality on non-TPS10 neighbors differently based on the LOX genotype of those neighbors would come from the interaction term in this model, with the TPS10 producing plant individuals excluded (and thus the TPS10 monoculture treatment dropped). Or alternatively, you could drop the individual plant treatments and have a three way factorial model of LOX genotype*population treatment (mono WT, mono TPS10, mixed)*position (Center vs. Edge). You could then perform an a priori contrast to compare the interaction specifically between the (WT monoculture vs. mixture)*(LOX genotype) for edge plants to test the significance of the pattern in Figure 9. 4) Please consider that a streamlining of the presentation would make the manuscript easier to read and understand. A great deal of space is devoted to establishing that the gene silencing/overexpression worked and produced reliable phenotypes in controlled conditions. These methods and results could be moved to an appendix. This would allow the authors to focus on the results from the field experiment, where the interesting finding is not just that manipulating plant defenses and volatiles affects herbivore damage and plant fitness, but that the genotype of one individual can affect the outcome on neighboring individuals. [Editors' note: further revisions were requested prior to acceptance, as described below.] Thank you for resubmitting your work entitled “Plant defense phenotypes determine the consequences of volatile emission for individuals and neighbors” for further consideration at eLife. Your revised article has been favorably evaluated by Diethard Tautz (Senior editor), a member of the Board of Reviewing Editors, and two of the original reviewers. The manuscript has been improved but there are some remaining issues that need to be addressed before acceptance, as outlined below. The reviewers found your manuscript to be improved. However there remains a statistical issue that requires resolution. This was framed by one of the reviewers as follows: ”My other concern with the original article was that the authors used a great deal of pairwise comparisons rather than building statistical models that better reflected their experimental design and could test directly for the interactive effects at the heart of their arguments. The authors made some attempt to respond to this suggestion, providing revamped analyses for plant size, flower number, and herbivore damage. However, I was disappointed to see that they did not collect their data in a way that would allow this more powerful analyses of the plant mortality data (which is the clearest case of “extended phenotypes” where the genotype of the center plant affected the fitness of the edge plants), or the data on stem borer abundance and predation rates. For the mortality data especially, this is surprising to me: why would the authors not have noted the live/dead status of plants individually, rather than just taking a tally? Do they mean that within a given population of five plants, they tallied the total number dead (1-5), or do they really mean that they cannot ascribe their mortality data even to the plot level (the base unit of replication for their experiment). If it is the former, they could still use a binomial generalized linear model, as long as they kept the data from the center and edge plants separately. If it is the latter, this is concerning to me because this analysis does not reflect the psuedoreplication induced by having five plants per plot. While a G test is “unreplicated” in that you need only enter a single frequency, it still assumes that the individuals comprising those frequencies are independent observations (i.e. a comparison between 28/75 vs. 50/75 is more powerful than 6/15 vs. 10/15). And I am truly puzzled as to how the authors can have data on flower production at an individual plant scale, but not have mortality data on that scale. Surely if they know how many flowers any given plant produced, they must know if it was alive or not. Am I missing something obvious here?” In light of these comments, please clarify how the data on plant mortality and stem borer infection was collected. If the mortality analysis is unreplicated as described in the cover letter, please justify why it is still appropriate to use the statistical test that you used.",
),
("article_doi", "10.7554/eLife.04490"),
("type", "sub-article"),
("position", 30),
("ordinal", 1),
("sibling_ordinal", 1),
("asset", "dec"),
]
),
OrderedDict(
[
("doi", "10.7554/eLife.04490.031"),
("doi_url", "https://doi.org/10.7554/eLife.04490.031"),
("id", "SA2"),
("title", "Author response"),
("full_title", "Author response"),
(
"content",
"1) You report that the role of lox mediated direct defence and its associated volatiles is determining damage on the plot level, not affecting focal or neighbouring plants. Whereas the TSP10 plants do affect abundance of stem borer beetles and predator presence on individual plant level. This conclusion is sound based on the data presented, but it is also biased by the experimental design. You did not explore the role of LOX derived volatiles or direct defences on the individual plant level experimentally. You should acknowledge and discuss the fact that the effect of LOX mediated effects has not been tested fully. The Discussion should include how the missing treatment might affect your conclusions or further inferences about the role of particular volatile emissions. We agree that we did not always explicitly consider the limits of our experimental design when discussing the data, and to correct this, we have added the following text to the Discussion: a) “It should be noted that our experimental design did not support the analysis of population-level effects […] in the presence, or absence, of total HIPVs and jasmonate-mediated defense.” b) We changed the subsection title from “LOX2/3 expression has large direct effects on plants, while the largest effects of TPS10 expression are indirect” to “LOX2/3 expression has large direct effects on plants, while TPS10 expression has large indirect effects”. c) We have also added the following sentence: “In contrast, due to the large suite of defenses regulated by LOX2 and LOX3 products, it would have been more difficult to determine the proximate cause of neighbor effects resulting from manipulation of LOX2 and LOX3 expression.” d) We had already stated in the Discussion: “Although several components of plant HIPV blends have been shown to prime the direct and indirect defenses of neighbors in different systems (reviewed in Baldwin et al. 2006; Arimura et al. 2010; and see Heil, Kost 2006), GLVs may often be the active cues (Engelberth et al. 2004; Kessler et al. 2006; Frost et al. 2008). We did not mix GLV-deficient with GLV-emitting plants in our experimental design, but we can conclude that TPS10 volatiles had no detectable direct effects on neighbor plants in our set-up.” (This was in the first submission and has not changed.) e) “Of course it is possible that the manipulation of LOX2 and LOX3 expression within populations would also reveal such extortionist-like effects, for example if T. mucorea preferred to oviposit in TPS10 plants over LOX2/3xTPS10 plants in the same population, which would support the hypothesis that T. mucorea preference reflects the ratio between TPS10 volatiles and other HIPVs.” f) And finally, we added: “In this context, it would be interesting to know whether central LOX2/3 plants surrounded by WT edge plants would experience a similar predation disadvantage as central TPS10 plants surrounded by WT edge plants, and whether central WT plants surrounded by LOX2/3 edge plants would have an advantage over their neighbors in attracting predators.” 2) Although from the plants perspective measurement of damage is a useful predictor of the costs of herbivory, the measurement may not accurately present the actual effect on herbivore abundance. Damage is confounding: herbivore abundance, their feeding intensity (that individuals may adjust to plant quality), and predator pressure on herbivores. Actual herbivore counts such as provided for the stem borer beetles would more strongly support the conclusions on LOX and TSP mediated community processes. Please discuss this point or provide the counts if you have them. We thank the reviewers for this astute suggestion. We do indeed have one time point of herbivore count data and had previously not included it because the data are from only a subset of plants and we considered that they might not be as robust as the damage data. However, we re-visited these data and have now included them as a new Figure 6 (the original figures have been re-numbered accordingly). Indeed, the herbivore abundance data differs from the damage data. This must be interpreted with caution as the abundance data were recorded on June 26th while the damage data were recorded on June 9th, but we state these dates clearly in the text and note, in the Results and in the Discussion, that observation of the plants indicated that there were no changes in trends of herbivore damage between these dates (i.e., relative damage levels remained consistent throughout the end of the experiment). These data are also introduced in the Introduction, reviewed in the Results and in the Discussion, in several commented locations, and a new paragraph has been included in the Methods under the subsection headed “Herbivore and predator counts”. 3) You rely very heavily on pairwise comparisons between treatments, usually with non-parametric tests or G tests for differences in proportions. The results would be much clearer to the readers, and avoid many of the concerns over multiple comparisons, if the authors used generalized linear models that better reflect the experimental design (see below for specific suggestion). For instance, the strongest results for their “community genetics” argument comes from the pattern of reduced mortality of lox2/3 vs. WT plants when in the presence of a TPS10 plant (Figure 9), but you do not test this directly. This pattern should be tested as an interaction between the lox and TPS treatments. You interpret this pattern strongly, but all of the tests performed show marginal or non-significant differences (a marginal decline in mortality for lox2/3 plants and a non-significant increase in mortality for WT plants due to the presence of a TPS10 plant). A similar model could be used for stem borer infestation and predation rates. In addition to providing more powerful tests, it may help the reader if all of these analyses are presented in a parallel way. Specific suggestion.: your statistical analysis could be improved for the analysis of the field experiment data (mortality, prevalence of stem borers, and prevalence of predation). All of the outcome variables are binomial (1 or 0 at the level of an individual plant). It is recommended that you model this outcome with a generalized linear mixed model, using a binomial error distribution. This could be done with the glmer function in R or the GLIMMIX procedure in SAS, among other options. The model would include two crossed factors: the LOX genotype of the individual plant (2 levels, wild type or mutant) crossed with the TPS10 treatment of the population (5 levels, individual WT, individual TPS10, monoculture WT, monoculuture TPS10, mixed), and plot as a random effect to account for the non-independence of plants from the same plot. The test of whether the presence of a TPS10 plant alters mortality on non-TPS10 neighbors differently based on the LOX genotype of those neighbors would come from the interaction term in this model, with the TPS10 producing plant individuals excluded (and thus the TPS10 monoculture treatment dropped). Or alternatively, you could drop the individual plant treatments and have a three way factorial model of LOX genotype*population treatment (mono WT, mono TPS10, mixed)*position (Center vs. Edge). You could then perform an a priori contrast to compare the interaction specifically between the (WT monoculture vs. mixture)*(LOX genotype) for edge plants to test the significance of the pattern in Figure 9. We have revisited these raw data and regrettably, none of these data sets were collected in a manner which we think permits application of the modeling techniques suggested. Specifically, the Trichobaris mucorea infestation data and mortality data were simply collected as tallies per individual or population type and genotype at the end of the season, i.e., not replicated. Thus an unreplicated analysis such as the G-test, according to our understanding, must be used. The predation assays were not always conducted on exactly the same group of plants, as over the course of the 5 repetitions some plants were damaged by wind or severed by cutworms and new plants had to be assigned. Thus it would be difficult to appropriately apportion error to a random or repeated-measures term in a model, and we feel it is most appropriate for these data as well to treat them as total frequencies and conduct an unreplicated statistical analysis. We have stated these limitations clearly in the Methods and Results sections describing the relevant experiments, as marked by comments in the revised text. However, we greatly appreciate the reviewers’ points and detailed suggestions. We thus reviewed all of the data in the manuscript and determined that other data sets would be more appropriately analyzed with such an approach. We therefore used an approach similar to that suggested by the reviewers to analyze the newly included foliar herbivore abundance data, and we furthermore re-analyzed our foliar herbivore damage, plant size, and flower production data. These changed analyses are presented in the new version of Figure 5 (foliar herbivore damage data), the new Figure 6 and source data files (foliar herbivore abundance data), and a new Figure 8 and source data file (re-analyzed size and flower production data). The general statistical approaches are described in the revised statistical analysis section of the Materials and methods, and in addition, we have provided detailed descriptions of the analyses as part of the new Appendix 3. In particular, the re-analysis of plant size and reproduction data allowed us to simplify the presentation of the flowering data in Figure 7 to focus only on LOX2/3 deficiency effects, while revealing subtler interactive effects of TPS10 expression in the separate effects (new analysis presented in the new Figure 8 and Figure 8–Source data 1), which fit well with the other data sets, and which were overlooked in our previous analysis. Overall, the revised statistical analyses have revealed more population-level and interactive effects of TPS10 expression which we feel facilitate our discussion of the data, strengthen our conclusions, and overall provide a more comprehensible and coherent picture for the reader. 4) Please consider that a streamlining of the presentation would make the manuscript easier to read and understand. A great deal of space is devoted to establishing that the gene silencing/overexpression worked and produced reliable phenotypes in controlled conditions. These methods and results could be moved to an appendix. This would allow the authors to focus on the results from the field experiment, where the interesting finding is not just that manipulating plant defenses and volatiles affects herbivore damage and plant fitness, but that the genotype of one individual can affect the outcome on neighboring individuals. We thank the reviewers for this suggestion to streamline the text. The eLife staff suggested that we create three appendices, each with one coherent topic or set of contents. Thus, the results regarding screening of transgenic lines are now in Appendix 1, results demonstrating field-stable phenotypes are in Appendix 2, and the corresponding methods are in Appendix 3. We feel this has greatly improved the readability and organization of the manuscript. [Editors' note: further revisions were requested prior to acceptance, as described below.] The reviewers found your manuscript to be improved. However there remains a statistical issue that requires resolution. This was framed by one of the reviewers as follows: “My other concern with the original article was that the authors used a great deal of pairwise comparisons rather than building statistical models that better reflected their experimental design and could test directly for the interactive effects at the heart of their arguments. The authors made some attempt to respond to this suggestion, providing revamped analyses for plant size, flower number, and herbivore damage. However, I was disappointed to see that they did not collect their data in a way that would allow this more powerful analyses of the plant mortality data (which is the clearest case of “extended phenotypes” where the genotype of the center plant affected the fitness of the edge plants), or the data on stem borer abundance and predation rates. For the mortality data especially, this is surprising to me: why would the authors not have noted the live/dead status of plants individually, rather than just taking a tally? Do they mean that within a given population of five plants, they tallied the total number dead (1-5), or do they really mean that they cannot ascribe their mortality data even to the plot level (the base unit of replication for their experiment). If it is the former, they could still use a binomial generalized linear model, as long as they kept the data from the center and edge plants separately. If it is the latter, this is concerning to me because this analysis does not reflect the psuedoreplication induced by having five plants per plot. While a G test is “unreplicated” in that you need only enter a single frequency, it still assumes that the individuals comprising those frequencies are independent observations (i.e. a comparison between 28/75 vs. 50/75 is more powerful than 6/15 vs. 10/15). And I am truly puzzled as to how the authors can have data on flower production at an individual plant scale, but not have mortality data on that scale. Surely if they know how many flowers any given plant produced, they must know if it was alive or not. Am I missing something obvious here?” In light of these comments, please clarify how the data on plant mortality and stem borer infection was collected. If the mortality analysis is unreplicated as described in the cover letter, please justify why it is still appropriate to use the statistical test that you used. This is an important concern and a considered comment, and we want to give a correspondingly careful and reasoned response, which is below. In summary, the data presented in Figure 9 is the most biologically meaningful plant mortality data, which is unfortunately from an unreplicated data set; however the analysis presented in Figure 9 is appropriate for these data and our question, and does not violate the assumptions of the G-test regarding independence between the groups compared. Likewise, the assumption of independence is not violated for the analysis in Figure 11. However the assumption of independence of the Fisher’s test was violated in one instance for the analysis presented in Figure 10. We have corrected our analysis for Figure 10 and associated parts of the Results text, but the corrected analysis produces exactly the same conclusions. Question 1: Should we replace our unreplicated plant mortality data set (presented in Figure 9) with a replicated data set, collected concurrently with flowering data? Of course we did note plant mortality while collecting the data on flowering. However the flowering data was collected on May 29th and June 6th, while we wished to analyze mortality by the end of the season on June 29th. All other data sets collected between June 6th and June 29th (herbivore abundance, predation rates) were collected on subsets of plants and plant mortality was not noted again until June 29th, at which point all surviving plants were tallied in categories while checking stems for infestation by Trichobaris mucorea. Thus total mortality for the season was calculated on June 29th as the number of plants originally planted minus the number surviving in each category. Because these total mortality numbers from June 29th most accurately reflect the likelihood that plants would not have survived to produce ripe seed, we feel it is most meaningful to present the June 29th data. One could argue that, although the final mortality numbers from June 29th are principally more meaningful, nevertheless if mortality did not change much between June 6th and June 29th, it would be preferable to present a replicated rather than an unreplicated data set. However there was a 1.5-fold increase in overall mortality, from 29% to 46%, between June 6th and June 29th. Although the mortality data from June 6th show similar trends as June 29th, with LOX2/3 deficiency tending to increase mortality and TPS10 expression tending to lower mortality, the differences on June 6th are not significant even when analyzed using a GLM with a binomial distribution, because the total mortality is lower. Thus the June 6th dataset has lower statistical power and, more importantly, is truly less biologically meaningful. Answer to question 1: No. It is best to present the unreplicated June 29th data. Question 2: Is the use of G-tests to analyze the data in Figure 9 appropriate? What about the use of G-tests and Fisher’s tests in other data sets (Figures 10 and 11)? In analyzing total mortality on June 29th, we wished to know whether mortality rate was dependent on, or independent of, population type. We thus used G-tests of independence and conducted post-hoc P-value corrections for multiple comparisons as necessary, which we understand to be the most appropriate choice of tests for our unreplicated data and our question. Although our data came from experimental populations (plots), we did not violate the assumption of independence incorporated into the G-test for the data shown in Figure 9. This is because, in Figure 9, we only compare data from separate population types (separate plots), and we never compare data from plants at different positions in the same population type. If we had compared e.g. center to edge plants, there would be dependencies within the data set because some of the plants in group “edge” would have come from the same populations as plants in group “center”, and thus we would not be comparing independent observations. However by comparing different population types, we ensured that no plants in group A shared a population with any plants in group B, and therefore there are no dependencies between groups: they are independent. The same reasoning holds for the comparisons in Figure 11, and for the comparisons of mortality between plants differing only in LOX2/3 deficiency or from different population types made in the Results section text (in the subsection headed “LOX2/3 deficiency increases plant mortality, but mortality is mitigated by single TPS10-expressing plants in LOX2/3-deficient populations”). For Figure 10, we compare both plants from separate population types and plants from the same population type. The comparison of plants from the same population type violates the independence assumption of the Fisher’s test and we thank the Reviewer for bringing this to our attention. We have removed the incorrect comparisons, changed the representation of the statistical comparisons in Figure 10 accordingly, and corrected the relevant parts of the figure caption and of the manuscript (subsection headed “TPS10-expressing plants increase the infestation rates of their neighbors by the stem-boring weevil Trichobaris mucorea”). In this part of the manuscript text, we also removed the Fisher’s tests of infestation by genotype: when comparing genotypes differing only in TPS10 expression overall, rather than different population types, we also violated the assumption of independence because some populations contain both TPS10-expressing and non-expressing individuals. As a result of removing some of the pairwise comparisons, our post-hoc correction factor decreased and the P-value we report for the comparison of WT plants in mixed versus monocultures decreased from 0.025 to 0.015. Because the critical comparisons in the analysis of the Trichobaris mucorea infestation data are those made between, and not within populations, the correction of our statistics does not change the conclusions we draw from these data. Answer to Question 2: Yes, the G-tests and Fisher’s tests are appropriate and generally the requirement of independent observations is not violated. However, one comparison shown in Figure 10 and a few comparisons in the associated results text violated the independence assumption of the Fisher’s test. We have removed these comparisons. The corrected analysis does not change our conclusions at all.",
),
("article_doi", "10.7554/eLife.04490"),
("type", "sub-article"),
("position", 31),
("ordinal", 2),
("sibling_ordinal", 2),
("asset", "resp"),
]
),
]
| 143.159574
| 20,380
| 0.701156
| 21,923
| 148,027
| 4.73302
| 0.076358
| 0.009734
| 0.015796
| 0.022976
| 0.827143
| 0.800187
| 0.780623
| 0.759141
| 0.745697
| 0.710549
| 0
| 0.049756
| 0.215508
| 148,027
| 1,033
| 20,381
| 143.298161
| 0.841973
| 0.000176
| 0
| 0.492726
| 0
| 0.095053
| 0.865702
| 0.048933
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.00291
| 0
| 0.00291
| 0.008729
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
7947284b67f1da002bca200aa1819af6491a4871
| 66
|
py
|
Python
|
addons/checks/__init__.py
|
enterspeed/kurisu
|
48163391d1861fe92125f59dad63884d5e767ab2
|
[
"MIT"
] | 10
|
2017-06-10T21:22:21.000Z
|
2021-01-22T13:45:31.000Z
|
addons/checks/__init__.py
|
enterspeed/kurisu
|
48163391d1861fe92125f59dad63884d5e767ab2
|
[
"MIT"
] | 1
|
2018-06-08T18:18:17.000Z
|
2018-06-08T21:12:23.000Z
|
addons/checks/__init__.py
|
enterspeed/makisekurisu
|
48163391d1861fe92125f59dad63884d5e767ab2
|
[
"MIT"
] | 3
|
2017-06-10T21:22:22.000Z
|
2021-01-29T00:23:10.000Z
|
from addons.checks import checks
from addons.checks import errors
| 22
| 32
| 0.848485
| 10
| 66
| 5.6
| 0.5
| 0.357143
| 0.571429
| 0.785714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.121212
| 66
| 2
| 33
| 33
| 0.965517
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 7
|
79743f491f0b993a1db4cd3baa6c22a327f5e3a0
| 353,172
|
py
|
Python
|
openapi_client/api/settings_api.py
|
hi-artem/twistlock-py
|
9888e905f5b9d3cc00f9b84244588c0992f8e4f4
|
[
"RSA-MD"
] | null | null | null |
openapi_client/api/settings_api.py
|
hi-artem/twistlock-py
|
9888e905f5b9d3cc00f9b84244588c0992f8e4f4
|
[
"RSA-MD"
] | null | null | null |
openapi_client/api/settings_api.py
|
hi-artem/twistlock-py
|
9888e905f5b9d3cc00f9b84244588c0992f8e4f4
|
[
"RSA-MD"
] | null | null | null |
# coding: utf-8
"""
Prisma Cloud Compute API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 21.04.439
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility library
import six
from openapi_client.api_client import ApiClient
from openapi_client.exceptions import ( # noqa: F401
ApiTypeError,
ApiValueError
)
class SettingsApi(object):
"""NOTE: This class is auto generated by OpenAPI Generator
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
def __init__(self, api_client=None):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
def api_v1_settings_alerts_get(self, **kwargs): # noqa: E501
"""api_v1_settings_alerts_get # noqa: E501
AlertsSettings returns the alert settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_alerts_get(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: ApiAlertSettings
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_alerts_get_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_alerts_get_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_alerts_get # noqa: E501
AlertsSettings returns the alert settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_alerts_get_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: tuple(ApiAlertSettings, status_code(int), headers(HTTPHeaderDict))
"""
local_var_params = locals()
all_params = [
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_alerts_get" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {
200: "ApiAlertSettings",
}
return self.api_client.call_api(
'/api/v1/settings/alerts', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_alerts_options_get(self, **kwargs): # noqa: E501
"""api_v1_settings_alerts_options_get # noqa: E501
AlertProfileOptions returns the alert profile configuration options # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_alerts_options_get(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: list[TypesAlertProfileOption]
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_alerts_options_get_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_alerts_options_get_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_alerts_options_get # noqa: E501
AlertProfileOptions returns the alert profile configuration options # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_alerts_options_get_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: tuple(list[TypesAlertProfileOption], status_code(int), headers(HTTPHeaderDict))
"""
local_var_params = locals()
all_params = [
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_alerts_options_get" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {
200: "list[TypesAlertProfileOption]",
}
return self.api_client.call_api(
'/api/v1/settings/alerts/options', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_alerts_post(self, **kwargs): # noqa: E501
"""api_v1_settings_alerts_post # noqa: E501
SetAlertSettings sets the alert settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_alerts_post(async_req=True)
>>> result = thread.get()
:param api_alert_settings:
:type api_alert_settings: ApiAlertSettings
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_alerts_post_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_alerts_post_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_alerts_post # noqa: E501
SetAlertSettings sets the alert settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_alerts_post_with_http_info(async_req=True)
>>> result = thread.get()
:param api_alert_settings:
:type api_alert_settings: ApiAlertSettings
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
local_var_params = locals()
all_params = [
'api_alert_settings'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_alerts_post" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'api_alert_settings' in local_var_params:
body_params = local_var_params['api_alert_settings']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {}
return self.api_client.call_api(
'/api/v1/settings/alerts', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_certificates_post(self, **kwargs): # noqa: E501
"""api_v1_settings_certificates_post # noqa: E501
SetCertificateSettings sets the certificate settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_certificates_post(async_req=True)
>>> result = thread.get()
:param types_certificate_settings:
:type types_certificate_settings: TypesCertificateSettings
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_certificates_post_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_certificates_post_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_certificates_post # noqa: E501
SetCertificateSettings sets the certificate settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_certificates_post_with_http_info(async_req=True)
>>> result = thread.get()
:param types_certificate_settings:
:type types_certificate_settings: TypesCertificateSettings
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
local_var_params = locals()
all_params = [
'types_certificate_settings'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_certificates_post" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'types_certificate_settings' in local_var_params:
body_params = local_var_params['types_certificate_settings']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {}
return self.api_client.call_api(
'/api/v1/settings/certificates', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_certs_get(self, **kwargs): # noqa: E501
"""api_v1_settings_certs_get # noqa: E501
CertSettings returns the console certificate settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_certs_get(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: TypesCertSettings
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_certs_get_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_certs_get_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_certs_get # noqa: E501
CertSettings returns the console certificate settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_certs_get_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: tuple(TypesCertSettings, status_code(int), headers(HTTPHeaderDict))
"""
local_var_params = locals()
all_params = [
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_certs_get" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {
200: "TypesCertSettings",
}
return self.api_client.call_api(
'/api/v1/settings/certs', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_certs_post(self, **kwargs): # noqa: E501
"""api_v1_settings_certs_post # noqa: E501
UpdateCertSettings updates the certificate settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_certs_post(async_req=True)
>>> result = thread.get()
:param types_cert_settings:
:type types_cert_settings: TypesCertSettings
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_certs_post_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_certs_post_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_certs_post # noqa: E501
UpdateCertSettings updates the certificate settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_certs_post_with_http_info(async_req=True)
>>> result = thread.get()
:param types_cert_settings:
:type types_cert_settings: TypesCertSettings
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
local_var_params = locals()
all_params = [
'types_cert_settings'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_certs_post" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'types_cert_settings' in local_var_params:
body_params = local_var_params['types_cert_settings']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {}
return self.api_client.call_api(
'/api/v1/settings/certs', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_coderepos_get(self, **kwargs): # noqa: E501
"""api_v1_settings_coderepos_get # noqa: E501
CodeRepoSettings returns the code repository scan settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_coderepos_get(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: SharedCodeRepoSettings
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_coderepos_get_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_coderepos_get_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_coderepos_get # noqa: E501
CodeRepoSettings returns the code repository scan settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_coderepos_get_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: tuple(SharedCodeRepoSettings, status_code(int), headers(HTTPHeaderDict))
"""
local_var_params = locals()
all_params = [
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_coderepos_get" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {
200: "SharedCodeRepoSettings",
}
return self.api_client.call_api(
'/api/v1/settings/coderepos', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_coderepos_put(self, **kwargs): # noqa: E501
"""api_v1_settings_coderepos_put # noqa: E501
SetCodeRepoSettings sets the code repository scan settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_coderepos_put(async_req=True)
>>> result = thread.get()
:param shared_code_repo_specification:
:type shared_code_repo_specification: list[SharedCodeRepoSpecification]
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_coderepos_put_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_coderepos_put_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_coderepos_put # noqa: E501
SetCodeRepoSettings sets the code repository scan settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_coderepos_put_with_http_info(async_req=True)
>>> result = thread.get()
:param shared_code_repo_specification:
:type shared_code_repo_specification: list[SharedCodeRepoSpecification]
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
local_var_params = locals()
all_params = [
'shared_code_repo_specification'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_coderepos_put" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'shared_code_repo_specification' in local_var_params:
body_params = local_var_params['shared_code_repo_specification']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {}
return self.api_client.call_api(
'/api/v1/settings/coderepos', 'PUT',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_console_certificate_post(self, **kwargs): # noqa: E501
"""api_v1_settings_console_certificate_post # noqa: E501
SetConsoleCertificateSettings sets the console certificate settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_console_certificate_post(async_req=True)
>>> result = thread.get()
:param types_console_certificate_settings:
:type types_console_certificate_settings: TypesConsoleCertificateSettings
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_console_certificate_post_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_console_certificate_post_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_console_certificate_post # noqa: E501
SetConsoleCertificateSettings sets the console certificate settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_console_certificate_post_with_http_info(async_req=True)
>>> result = thread.get()
:param types_console_certificate_settings:
:type types_console_certificate_settings: TypesConsoleCertificateSettings
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
local_var_params = locals()
all_params = [
'types_console_certificate_settings'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_console_certificate_post" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'types_console_certificate_settings' in local_var_params:
body_params = local_var_params['types_console_certificate_settings']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {}
return self.api_client.call_api(
'/api/v1/settings/console-certificate', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_custom_labels_get(self, **kwargs): # noqa: E501
"""api_v1_settings_custom_labels_get # noqa: E501
SettingsCustomLabels returns the custom labels settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_custom_labels_get(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: SharedCustomLabelsSettings
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_custom_labels_get_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_custom_labels_get_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_custom_labels_get # noqa: E501
SettingsCustomLabels returns the custom labels settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_custom_labels_get_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: tuple(SharedCustomLabelsSettings, status_code(int), headers(HTTPHeaderDict))
"""
local_var_params = locals()
all_params = [
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_custom_labels_get" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {
200: "SharedCustomLabelsSettings",
}
return self.api_client.call_api(
'/api/v1/settings/custom-labels', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_custom_labels_post(self, **kwargs): # noqa: E501
"""api_v1_settings_custom_labels_post # noqa: E501
SetCustomLabels sets the custom audit labels # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_custom_labels_post(async_req=True)
>>> result = thread.get()
:param shared_custom_labels_settings:
:type shared_custom_labels_settings: SharedCustomLabelsSettings
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_custom_labels_post_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_custom_labels_post_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_custom_labels_post # noqa: E501
SetCustomLabels sets the custom audit labels # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_custom_labels_post_with_http_info(async_req=True)
>>> result = thread.get()
:param shared_custom_labels_settings:
:type shared_custom_labels_settings: SharedCustomLabelsSettings
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
local_var_params = locals()
all_params = [
'shared_custom_labels_settings'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_custom_labels_post" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'shared_custom_labels_settings' in local_var_params:
body_params = local_var_params['shared_custom_labels_settings']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {}
return self.api_client.call_api(
'/api/v1/settings/custom-labels', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_defender_get(self, **kwargs): # noqa: E501
"""api_v1_settings_defender_get # noqa: E501
DefenderSettings returns the defenders settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_defender_get(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: DefenderSettings
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_defender_get_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_defender_get_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_defender_get # noqa: E501
DefenderSettings returns the defenders settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_defender_get_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: tuple(DefenderSettings, status_code(int), headers(HTTPHeaderDict))
"""
local_var_params = locals()
all_params = [
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_defender_get" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {
200: "DefenderSettings",
}
return self.api_client.call_api(
'/api/v1/settings/defender', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_defender_post(self, **kwargs): # noqa: E501
"""api_v1_settings_defender_post # noqa: E501
SetDefenderSettings sets the settings of the defenders # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_defender_post(async_req=True)
>>> result = thread.get()
:param defender_settings:
:type defender_settings: DefenderSettings
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_defender_post_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_defender_post_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_defender_post # noqa: E501
SetDefenderSettings sets the settings of the defenders # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_defender_post_with_http_info(async_req=True)
>>> result = thread.get()
:param defender_settings:
:type defender_settings: DefenderSettings
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
local_var_params = locals()
all_params = [
'defender_settings'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_defender_post" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'defender_settings' in local_var_params:
body_params = local_var_params['defender_settings']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {}
return self.api_client.call_api(
'/api/v1/settings/defender', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_forensic_get(self, **kwargs): # noqa: E501
"""api_v1_settings_forensic_get # noqa: E501
ForensicSettings returns the forensic settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_forensic_get(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: SharedForensicSettings
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_forensic_get_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_forensic_get_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_forensic_get # noqa: E501
ForensicSettings returns the forensic settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_forensic_get_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: tuple(SharedForensicSettings, status_code(int), headers(HTTPHeaderDict))
"""
local_var_params = locals()
all_params = [
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_forensic_get" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {
200: "SharedForensicSettings",
}
return self.api_client.call_api(
'/api/v1/settings/forensic', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_forensic_post(self, **kwargs): # noqa: E501
"""api_v1_settings_forensic_post # noqa: E501
SetForensicSettings sets the forensic settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_forensic_post(async_req=True)
>>> result = thread.get()
:param shared_forensic_settings:
:type shared_forensic_settings: SharedForensicSettings
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_forensic_post_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_forensic_post_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_forensic_post # noqa: E501
SetForensicSettings sets the forensic settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_forensic_post_with_http_info(async_req=True)
>>> result = thread.get()
:param shared_forensic_settings:
:type shared_forensic_settings: SharedForensicSettings
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
local_var_params = locals()
all_params = [
'shared_forensic_settings'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_forensic_post" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'shared_forensic_settings' in local_var_params:
body_params = local_var_params['shared_forensic_settings']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {}
return self.api_client.call_api(
'/api/v1/settings/forensic', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_host_auto_deploy_get(self, **kwargs): # noqa: E501
"""api_v1_settings_host_auto_deploy_get # noqa: E501
HostAutoDeploySettings returns the host auto-deploy settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_host_auto_deploy_get(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: list[SharedHostAutoDeploySpecification]
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_host_auto_deploy_get_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_host_auto_deploy_get_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_host_auto_deploy_get # noqa: E501
HostAutoDeploySettings returns the host auto-deploy settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_host_auto_deploy_get_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: tuple(list[SharedHostAutoDeploySpecification], status_code(int), headers(HTTPHeaderDict))
"""
local_var_params = locals()
all_params = [
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_host_auto_deploy_get" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {
200: "list[SharedHostAutoDeploySpecification]",
}
return self.api_client.call_api(
'/api/v1/settings/host-auto-deploy', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_host_auto_deploy_post(self, **kwargs): # noqa: E501
"""api_v1_settings_host_auto_deploy_post # noqa: E501
SetHostAutoDeploySettings sets the host auto-deploy specification settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_host_auto_deploy_post(async_req=True)
>>> result = thread.get()
:param shared_host_auto_deploy_specification:
:type shared_host_auto_deploy_specification: list[SharedHostAutoDeploySpecification]
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_host_auto_deploy_post_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_host_auto_deploy_post_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_host_auto_deploy_post # noqa: E501
SetHostAutoDeploySettings sets the host auto-deploy specification settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_host_auto_deploy_post_with_http_info(async_req=True)
>>> result = thread.get()
:param shared_host_auto_deploy_specification:
:type shared_host_auto_deploy_specification: list[SharedHostAutoDeploySpecification]
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
local_var_params = locals()
all_params = [
'shared_host_auto_deploy_specification'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_host_auto_deploy_post" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'shared_host_auto_deploy_specification' in local_var_params:
body_params = local_var_params['shared_host_auto_deploy_specification']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {}
return self.api_client.call_api(
'/api/v1/settings/host-auto-deploy', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_initialized_get(self, **kwargs): # noqa: E501
"""api_v1_settings_initialized_get # noqa: E501
InitStatus returns the initialization status of the system Check whether admin account is configured, use alias (initialized) to keep the functionality obscure # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_initialized_get(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: ApiInitStatus
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_initialized_get_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_initialized_get_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_initialized_get # noqa: E501
InitStatus returns the initialization status of the system Check whether admin account is configured, use alias (initialized) to keep the functionality obscure # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_initialized_get_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: tuple(ApiInitStatus, status_code(int), headers(HTTPHeaderDict))
"""
local_var_params = locals()
all_params = [
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_initialized_get" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {
200: "ApiInitStatus",
}
return self.api_client.call_api(
'/api/v1/settings/initialized', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_intelligence_get(self, **kwargs): # noqa: E501
"""api_v1_settings_intelligence_get # noqa: E501
IntelligenceSettings returns the intelligence service settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_intelligence_get(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: TypesIntelligenceSettings
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_intelligence_get_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_intelligence_get_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_intelligence_get # noqa: E501
IntelligenceSettings returns the intelligence service settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_intelligence_get_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: tuple(TypesIntelligenceSettings, status_code(int), headers(HTTPHeaderDict))
"""
local_var_params = locals()
all_params = [
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_intelligence_get" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {
200: "TypesIntelligenceSettings",
}
return self.api_client.call_api(
'/api/v1/settings/intelligence', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_intelligence_post(self, **kwargs): # noqa: E501
"""api_v1_settings_intelligence_post # noqa: E501
SetIntelligenceSettings sets the intelligence settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_intelligence_post(async_req=True)
>>> result = thread.get()
:param types_intelligence_settings:
:type types_intelligence_settings: TypesIntelligenceSettings
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_intelligence_post_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_intelligence_post_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_intelligence_post # noqa: E501
SetIntelligenceSettings sets the intelligence settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_intelligence_post_with_http_info(async_req=True)
>>> result = thread.get()
:param types_intelligence_settings:
:type types_intelligence_settings: TypesIntelligenceSettings
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
local_var_params = locals()
all_params = [
'types_intelligence_settings'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_intelligence_post" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'types_intelligence_settings' in local_var_params:
body_params = local_var_params['types_intelligence_settings']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {}
return self.api_client.call_api(
'/api/v1/settings/intelligence', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_intelligence_windows_post(self, **kwargs): # noqa: E501
"""api_v1_settings_intelligence_windows_post # noqa: E501
SetWindowsCVESettings sets the windows cve settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_intelligence_windows_post(async_req=True)
>>> result = thread.get()
:param types_intelligence_settings:
:type types_intelligence_settings: TypesIntelligenceSettings
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_intelligence_windows_post_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_intelligence_windows_post_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_intelligence_windows_post # noqa: E501
SetWindowsCVESettings sets the windows cve settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_intelligence_windows_post_with_http_info(async_req=True)
>>> result = thread.get()
:param types_intelligence_settings:
:type types_intelligence_settings: TypesIntelligenceSettings
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
local_var_params = locals()
all_params = [
'types_intelligence_settings'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_intelligence_windows_post" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'types_intelligence_settings' in local_var_params:
body_params = local_var_params['types_intelligence_settings']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {}
return self.api_client.call_api(
'/api/v1/settings/intelligence-windows', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_kubernetes_audit_get(self, **kwargs): # noqa: E501
"""api_v1_settings_kubernetes_audit_get # noqa: E501
KubernetesAuditSettings returns the Kubernetes audit settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_kubernetes_audit_get(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: SharedKubernetesAuditSettings
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_kubernetes_audit_get_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_kubernetes_audit_get_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_kubernetes_audit_get # noqa: E501
KubernetesAuditSettings returns the Kubernetes audit settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_kubernetes_audit_get_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: tuple(SharedKubernetesAuditSettings, status_code(int), headers(HTTPHeaderDict))
"""
local_var_params = locals()
all_params = [
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_kubernetes_audit_get" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {
200: "SharedKubernetesAuditSettings",
}
return self.api_client.call_api(
'/api/v1/settings/kubernetes-audit', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_kubernetes_audit_post(self, **kwargs): # noqa: E501
"""api_v1_settings_kubernetes_audit_post # noqa: E501
SetKubernetesAuditSettings validates and sets the given Kubernetes audit settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_kubernetes_audit_post(async_req=True)
>>> result = thread.get()
:param shared_kubernetes_audit_settings:
:type shared_kubernetes_audit_settings: SharedKubernetesAuditSettings
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_kubernetes_audit_post_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_kubernetes_audit_post_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_kubernetes_audit_post # noqa: E501
SetKubernetesAuditSettings validates and sets the given Kubernetes audit settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_kubernetes_audit_post_with_http_info(async_req=True)
>>> result = thread.get()
:param shared_kubernetes_audit_settings:
:type shared_kubernetes_audit_settings: SharedKubernetesAuditSettings
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
local_var_params = locals()
all_params = [
'shared_kubernetes_audit_settings'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_kubernetes_audit_post" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'shared_kubernetes_audit_settings' in local_var_params:
body_params = local_var_params['shared_kubernetes_audit_settings']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {}
return self.api_client.call_api(
'/api/v1/settings/kubernetes-audit', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_latest_version_get(self, **kwargs): # noqa: E501
"""api_v1_settings_latest_version_get # noqa: E501
LatestVersion returns the latest product version # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_latest_version_get(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: TypesLatestVersion
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_latest_version_get_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_latest_version_get_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_latest_version_get # noqa: E501
LatestVersion returns the latest product version # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_latest_version_get_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: tuple(TypesLatestVersion, status_code(int), headers(HTTPHeaderDict))
"""
local_var_params = locals()
all_params = [
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_latest_version_get" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {
200: "TypesLatestVersion",
}
return self.api_client.call_api(
'/api/v1/settings/latest-version', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_ldap_get(self, **kwargs): # noqa: E501
"""api_v1_settings_ldap_get # noqa: E501
LdapSettings returns the ldap settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_ldap_get(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: IdentityLdapSettings
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_ldap_get_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_ldap_get_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_ldap_get # noqa: E501
LdapSettings returns the ldap settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_ldap_get_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: tuple(IdentityLdapSettings, status_code(int), headers(HTTPHeaderDict))
"""
local_var_params = locals()
all_params = [
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_ldap_get" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {
200: "IdentityLdapSettings",
}
return self.api_client.call_api(
'/api/v1/settings/ldap', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_ldap_post(self, **kwargs): # noqa: E501
"""api_v1_settings_ldap_post # noqa: E501
SetLdapSettings sets the ldap settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_ldap_post(async_req=True)
>>> result = thread.get()
:param identity_ldap_settings:
:type identity_ldap_settings: IdentityLdapSettings
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_ldap_post_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_ldap_post_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_ldap_post # noqa: E501
SetLdapSettings sets the ldap settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_ldap_post_with_http_info(async_req=True)
>>> result = thread.get()
:param identity_ldap_settings:
:type identity_ldap_settings: IdentityLdapSettings
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
local_var_params = locals()
all_params = [
'identity_ldap_settings'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_ldap_post" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'identity_ldap_settings' in local_var_params:
body_params = local_var_params['identity_ldap_settings']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {}
return self.api_client.call_api(
'/api/v1/settings/ldap', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_license_get(self, **kwargs): # noqa: E501
"""api_v1_settings_license_get # noqa: E501
License is the customer license # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_license_get(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: SharedLicense
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_license_get_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_license_get_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_license_get # noqa: E501
License is the customer license # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_license_get_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: tuple(SharedLicense, status_code(int), headers(HTTPHeaderDict))
"""
local_var_params = locals()
all_params = [
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_license_get" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {
200: "SharedLicense",
}
return self.api_client.call_api(
'/api/v1/settings/license', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_license_post(self, **kwargs): # noqa: E501
"""api_v1_settings_license_post # noqa: E501
SetLicense sets the Twistlock license # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_license_post(async_req=True)
>>> result = thread.get()
:param api_license_request:
:type api_license_request: ApiLicenseRequest
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_license_post_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_license_post_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_license_post # noqa: E501
SetLicense sets the Twistlock license # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_license_post_with_http_info(async_req=True)
>>> result = thread.get()
:param api_license_request:
:type api_license_request: ApiLicenseRequest
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
local_var_params = locals()
all_params = [
'api_license_request'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_license_post" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'api_license_request' in local_var_params:
body_params = local_var_params['api_license_request']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {}
return self.api_client.call_api(
'/api/v1/settings/license', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_logging_get(self, **kwargs): # noqa: E501
"""api_v1_settings_logging_get # noqa: E501
LoggingSettings returns the event logger settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_logging_get(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: SharedLoggingSettings
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_logging_get_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_logging_get_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_logging_get # noqa: E501
LoggingSettings returns the event logger settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_logging_get_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: tuple(SharedLoggingSettings, status_code(int), headers(HTTPHeaderDict))
"""
local_var_params = locals()
all_params = [
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_logging_get" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {
200: "SharedLoggingSettings",
}
return self.api_client.call_api(
'/api/v1/settings/logging', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_logging_post(self, **kwargs): # noqa: E501
"""api_v1_settings_logging_post # noqa: E501
SetLoggingSettings sets the logging settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_logging_post(async_req=True)
>>> result = thread.get()
:param shared_logging_settings:
:type shared_logging_settings: SharedLoggingSettings
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_logging_post_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_logging_post_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_logging_post # noqa: E501
SetLoggingSettings sets the logging settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_logging_post_with_http_info(async_req=True)
>>> result = thread.get()
:param shared_logging_settings:
:type shared_logging_settings: SharedLoggingSettings
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
local_var_params = locals()
all_params = [
'shared_logging_settings'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_logging_post" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'shared_logging_settings' in local_var_params:
body_params = local_var_params['shared_logging_settings']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {}
return self.api_client.call_api(
'/api/v1/settings/logging', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_logon_get(self, **kwargs): # noqa: E501
"""api_v1_settings_logon_get # noqa: E501
LogonSettings returns the console logon settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_logon_get(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: TypesLogonSettings
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_logon_get_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_logon_get_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_logon_get # noqa: E501
LogonSettings returns the console logon settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_logon_get_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: tuple(TypesLogonSettings, status_code(int), headers(HTTPHeaderDict))
"""
local_var_params = locals()
all_params = [
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_logon_get" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {
200: "TypesLogonSettings",
}
return self.api_client.call_api(
'/api/v1/settings/logon', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_logon_post(self, **kwargs): # noqa: E501
"""api_v1_settings_logon_post # noqa: E501
SetLogonSettings sets the logon settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_logon_post(async_req=True)
>>> result = thread.get()
:param types_logon_settings:
:type types_logon_settings: TypesLogonSettings
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_logon_post_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_logon_post_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_logon_post # noqa: E501
SetLogonSettings sets the logon settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_logon_post_with_http_info(async_req=True)
>>> result = thread.get()
:param types_logon_settings:
:type types_logon_settings: TypesLogonSettings
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
local_var_params = locals()
all_params = [
'types_logon_settings'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_logon_post" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'types_logon_settings' in local_var_params:
body_params = local_var_params['types_logon_settings']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {}
return self.api_client.call_api(
'/api/v1/settings/logon', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_oauth_get(self, **kwargs): # noqa: E501
"""api_v1_settings_oauth_get # noqa: E501
OauthSettings returns the Oauth settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_oauth_get(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: IdentityProviderSettings
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_oauth_get_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_oauth_get_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_oauth_get # noqa: E501
OauthSettings returns the Oauth settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_oauth_get_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: tuple(IdentityProviderSettings, status_code(int), headers(HTTPHeaderDict))
"""
local_var_params = locals()
all_params = [
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_oauth_get" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {
200: "IdentityProviderSettings",
}
return self.api_client.call_api(
'/api/v1/settings/oauth', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_oauth_post(self, **kwargs): # noqa: E501
"""api_v1_settings_oauth_post # noqa: E501
SetOauthSettings sets the Oauth settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_oauth_post(async_req=True)
>>> result = thread.get()
:param identity_provider_settings:
:type identity_provider_settings: IdentityProviderSettings
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_oauth_post_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_oauth_post_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_oauth_post # noqa: E501
SetOauthSettings sets the Oauth settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_oauth_post_with_http_info(async_req=True)
>>> result = thread.get()
:param identity_provider_settings:
:type identity_provider_settings: IdentityProviderSettings
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
local_var_params = locals()
all_params = [
'identity_provider_settings'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_oauth_post" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'identity_provider_settings' in local_var_params:
body_params = local_var_params['identity_provider_settings']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {}
return self.api_client.call_api(
'/api/v1/settings/oauth', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_oidc_get(self, **kwargs): # noqa: E501
"""api_v1_settings_oidc_get # noqa: E501
OidcSettings returns the OpenID Connect settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_oidc_get(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: IdentityProviderSettings
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_oidc_get_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_oidc_get_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_oidc_get # noqa: E501
OidcSettings returns the OpenID Connect settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_oidc_get_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: tuple(IdentityProviderSettings, status_code(int), headers(HTTPHeaderDict))
"""
local_var_params = locals()
all_params = [
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_oidc_get" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {
200: "IdentityProviderSettings",
}
return self.api_client.call_api(
'/api/v1/settings/oidc', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_oidc_post(self, **kwargs): # noqa: E501
"""api_v1_settings_oidc_post # noqa: E501
SetOidcSettings sets the OpenID Connect settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_oidc_post(async_req=True)
>>> result = thread.get()
:param identity_provider_settings:
:type identity_provider_settings: IdentityProviderSettings
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_oidc_post_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_oidc_post_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_oidc_post # noqa: E501
SetOidcSettings sets the OpenID Connect settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_oidc_post_with_http_info(async_req=True)
>>> result = thread.get()
:param identity_provider_settings:
:type identity_provider_settings: IdentityProviderSettings
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
local_var_params = locals()
all_params = [
'identity_provider_settings'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_oidc_post" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'identity_provider_settings' in local_var_params:
body_params = local_var_params['identity_provider_settings']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {}
return self.api_client.call_api(
'/api/v1/settings/oidc', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_projects_get(self, **kwargs): # noqa: E501
"""api_v1_settings_projects_get # noqa: E501
ProjectSettings returns the project settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_projects_get(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: ApiProjectSettings
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_projects_get_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_projects_get_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_projects_get # noqa: E501
ProjectSettings returns the project settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_projects_get_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: tuple(ApiProjectSettings, status_code(int), headers(HTTPHeaderDict))
"""
local_var_params = locals()
all_params = [
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_projects_get" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {
200: "ApiProjectSettings",
}
return self.api_client.call_api(
'/api/v1/settings/projects', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_projects_post(self, **kwargs): # noqa: E501
"""api_v1_settings_projects_post # noqa: E501
SetProjectSettings sets the project federation settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_projects_post(async_req=True)
>>> result = thread.get()
:param api_project_settings:
:type api_project_settings: ApiProjectSettings
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_projects_post_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_projects_post_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_projects_post # noqa: E501
SetProjectSettings sets the project federation settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_projects_post_with_http_info(async_req=True)
>>> result = thread.get()
:param api_project_settings:
:type api_project_settings: ApiProjectSettings
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
local_var_params = locals()
all_params = [
'api_project_settings'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_projects_post" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'api_project_settings' in local_var_params:
body_params = local_var_params['api_project_settings']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {}
return self.api_client.call_api(
'/api/v1/settings/projects', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_proxy_get(self, **kwargs): # noqa: E501
"""api_v1_settings_proxy_get # noqa: E501
ProxySettings returns the proxy settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_proxy_get(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: CommonProxySettings
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_proxy_get_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_proxy_get_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_proxy_get # noqa: E501
ProxySettings returns the proxy settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_proxy_get_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: tuple(CommonProxySettings, status_code(int), headers(HTTPHeaderDict))
"""
local_var_params = locals()
all_params = [
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_proxy_get" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {
200: "CommonProxySettings",
}
return self.api_client.call_api(
'/api/v1/settings/proxy', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_proxy_post(self, **kwargs): # noqa: E501
"""api_v1_settings_proxy_post # noqa: E501
SetHTTPProxySettings sets the HTTP proxy settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_proxy_post(async_req=True)
>>> result = thread.get()
:param common_proxy_settings:
:type common_proxy_settings: CommonProxySettings
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_proxy_post_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_proxy_post_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_proxy_post # noqa: E501
SetHTTPProxySettings sets the HTTP proxy settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_proxy_post_with_http_info(async_req=True)
>>> result = thread.get()
:param common_proxy_settings:
:type common_proxy_settings: CommonProxySettings
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
local_var_params = locals()
all_params = [
'common_proxy_settings'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_proxy_post" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'common_proxy_settings' in local_var_params:
body_params = local_var_params['common_proxy_settings']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {}
return self.api_client.call_api(
'/api/v1/settings/proxy', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_registry_get(self, **kwargs): # noqa: E501
"""api_v1_settings_registry_get # noqa: E501
RegistrySettings returns the registry settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_registry_get(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: SharedRegistrySettings
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_registry_get_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_registry_get_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_registry_get # noqa: E501
RegistrySettings returns the registry settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_registry_get_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: tuple(SharedRegistrySettings, status_code(int), headers(HTTPHeaderDict))
"""
local_var_params = locals()
all_params = [
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_registry_get" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {
200: "SharedRegistrySettings",
}
return self.api_client.call_api(
'/api/v1/settings/registry', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_registry_post(self, **kwargs): # noqa: E501
"""api_v1_settings_registry_post # noqa: E501
AddRegistrySpec adds a registry to the registry settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_registry_post(async_req=True)
>>> result = thread.get()
:param shared_registry_specification:
:type shared_registry_specification: SharedRegistrySpecification
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_registry_post_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_registry_post_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_registry_post # noqa: E501
AddRegistrySpec adds a registry to the registry settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_registry_post_with_http_info(async_req=True)
>>> result = thread.get()
:param shared_registry_specification:
:type shared_registry_specification: SharedRegistrySpecification
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
local_var_params = locals()
all_params = [
'shared_registry_specification'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_registry_post" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'shared_registry_specification' in local_var_params:
body_params = local_var_params['shared_registry_specification']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {}
return self.api_client.call_api(
'/api/v1/settings/registry', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_registry_put(self, **kwargs): # noqa: E501
"""api_v1_settings_registry_put # noqa: E501
SetRegistrySettings sets the registry settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_registry_put(async_req=True)
>>> result = thread.get()
:param shared_registry_settings:
:type shared_registry_settings: SharedRegistrySettings
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_registry_put_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_registry_put_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_registry_put # noqa: E501
SetRegistrySettings sets the registry settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_registry_put_with_http_info(async_req=True)
>>> result = thread.get()
:param shared_registry_settings:
:type shared_registry_settings: SharedRegistrySettings
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
local_var_params = locals()
all_params = [
'shared_registry_settings'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_registry_put" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'shared_registry_settings' in local_var_params:
body_params = local_var_params['shared_registry_settings']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {}
return self.api_client.call_api(
'/api/v1/settings/registry', 'PUT',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_saml_get(self, **kwargs): # noqa: E501
"""api_v1_settings_saml_get # noqa: E501
SamlSettings returns the saml settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_saml_get(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: IdentitySamlSettings
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_saml_get_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_saml_get_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_saml_get # noqa: E501
SamlSettings returns the saml settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_saml_get_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: tuple(IdentitySamlSettings, status_code(int), headers(HTTPHeaderDict))
"""
local_var_params = locals()
all_params = [
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_saml_get" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {
200: "IdentitySamlSettings",
}
return self.api_client.call_api(
'/api/v1/settings/saml', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_saml_post(self, **kwargs): # noqa: E501
"""api_v1_settings_saml_post # noqa: E501
SetSamlSettings sets the saml settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_saml_post(async_req=True)
>>> result = thread.get()
:param identity_saml_settings:
:type identity_saml_settings: IdentitySamlSettings
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_saml_post_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_saml_post_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_saml_post # noqa: E501
SetSamlSettings sets the saml settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_saml_post_with_http_info(async_req=True)
>>> result = thread.get()
:param identity_saml_settings:
:type identity_saml_settings: IdentitySamlSettings
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
local_var_params = locals()
all_params = [
'identity_saml_settings'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_saml_post" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'identity_saml_settings' in local_var_params:
body_params = local_var_params['identity_saml_settings']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {}
return self.api_client.call_api(
'/api/v1/settings/saml', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_scan_get(self, **kwargs): # noqa: E501
"""api_v1_settings_scan_get # noqa: E501
ScanSettings returns the scan settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_scan_get(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: SharedScanSettings
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_scan_get_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_scan_get_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_scan_get # noqa: E501
ScanSettings returns the scan settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_scan_get_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: tuple(SharedScanSettings, status_code(int), headers(HTTPHeaderDict))
"""
local_var_params = locals()
all_params = [
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_scan_get" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {
200: "SharedScanSettings",
}
return self.api_client.call_api(
'/api/v1/settings/scan', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_scan_post(self, **kwargs): # noqa: E501
"""api_v1_settings_scan_post # noqa: E501
SetScanSettings sets the system scan settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_scan_post(async_req=True)
>>> result = thread.get()
:param shared_scan_settings:
:type shared_scan_settings: SharedScanSettings
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_scan_post_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_scan_post_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_scan_post # noqa: E501
SetScanSettings sets the system scan settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_scan_post_with_http_info(async_req=True)
>>> result = thread.get()
:param shared_scan_settings:
:type shared_scan_settings: SharedScanSettings
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
local_var_params = locals()
all_params = [
'shared_scan_settings'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_scan_post" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'shared_scan_settings' in local_var_params:
body_params = local_var_params['shared_scan_settings']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {}
return self.api_client.call_api(
'/api/v1/settings/scan', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_secrets_get(self, **kwargs): # noqa: E501
"""api_v1_settings_secrets_get # noqa: E501
SettingsSecretsStores returns the secret store settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_secrets_get(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: SharedSecretsStores
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_secrets_get_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_secrets_get_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_secrets_get # noqa: E501
SettingsSecretsStores returns the secret store settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_secrets_get_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: tuple(SharedSecretsStores, status_code(int), headers(HTTPHeaderDict))
"""
local_var_params = locals()
all_params = [
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_secrets_get" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {
200: "SharedSecretsStores",
}
return self.api_client.call_api(
'/api/v1/settings/secrets', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_secrets_post(self, **kwargs): # noqa: E501
"""api_v1_settings_secrets_post # noqa: E501
SetSecretStoresSettings sets the secret stores settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_secrets_post(async_req=True)
>>> result = thread.get()
:param shared_secrets_stores:
:type shared_secrets_stores: SharedSecretsStores
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_secrets_post_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_secrets_post_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_secrets_post # noqa: E501
SetSecretStoresSettings sets the secret stores settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_secrets_post_with_http_info(async_req=True)
>>> result = thread.get()
:param shared_secrets_stores:
:type shared_secrets_stores: SharedSecretsStores
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
local_var_params = locals()
all_params = [
'shared_secrets_stores'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_secrets_post" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'shared_secrets_stores' in local_var_params:
body_params = local_var_params['shared_secrets_stores']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {}
return self.api_client.call_api(
'/api/v1/settings/secrets', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_serverless_auto_deploy_get(self, **kwargs): # noqa: E501
"""api_v1_settings_serverless_auto_deploy_get # noqa: E501
ServerlessAutoDeploySettings returns the serverless auto-deploy settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_serverless_auto_deploy_get(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: list[SharedServerlessAutoDeploySpecification]
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_serverless_auto_deploy_get_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_serverless_auto_deploy_get_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_serverless_auto_deploy_get # noqa: E501
ServerlessAutoDeploySettings returns the serverless auto-deploy settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_serverless_auto_deploy_get_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: tuple(list[SharedServerlessAutoDeploySpecification], status_code(int), headers(HTTPHeaderDict))
"""
local_var_params = locals()
all_params = [
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_serverless_auto_deploy_get" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {
200: "list[SharedServerlessAutoDeploySpecification]",
}
return self.api_client.call_api(
'/api/v1/settings/serverless-auto-deploy', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_serverless_auto_deploy_post(self, **kwargs): # noqa: E501
"""api_v1_settings_serverless_auto_deploy_post # noqa: E501
SetServerlessAutoDeploySettings sets the serverless auto-deploy specification settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_serverless_auto_deploy_post(async_req=True)
>>> result = thread.get()
:param shared_serverless_auto_deploy_specification:
:type shared_serverless_auto_deploy_specification: list[SharedServerlessAutoDeploySpecification]
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_serverless_auto_deploy_post_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_serverless_auto_deploy_post_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_serverless_auto_deploy_post # noqa: E501
SetServerlessAutoDeploySettings sets the serverless auto-deploy specification settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_serverless_auto_deploy_post_with_http_info(async_req=True)
>>> result = thread.get()
:param shared_serverless_auto_deploy_specification:
:type shared_serverless_auto_deploy_specification: list[SharedServerlessAutoDeploySpecification]
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
local_var_params = locals()
all_params = [
'shared_serverless_auto_deploy_specification'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_serverless_auto_deploy_post" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'shared_serverless_auto_deploy_specification' in local_var_params:
body_params = local_var_params['shared_serverless_auto_deploy_specification']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {}
return self.api_client.call_api(
'/api/v1/settings/serverless-auto-deploy', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_serverless_scan_get(self, **kwargs): # noqa: E501
"""api_v1_settings_serverless_scan_get # noqa: E501
ServerlessScanSettings returns the serverless scan settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_serverless_scan_get(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: list[SharedServerlessScanSpecification]
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_serverless_scan_get_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_serverless_scan_get_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_serverless_scan_get # noqa: E501
ServerlessScanSettings returns the serverless scan settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_serverless_scan_get_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: tuple(list[SharedServerlessScanSpecification], status_code(int), headers(HTTPHeaderDict))
"""
local_var_params = locals()
all_params = [
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_serverless_scan_get" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {
200: "list[SharedServerlessScanSpecification]",
}
return self.api_client.call_api(
'/api/v1/settings/serverless-scan', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_serverless_scan_post(self, **kwargs): # noqa: E501
"""api_v1_settings_serverless_scan_post # noqa: E501
AddServerlessScanSettings adds serverless settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_serverless_scan_post(async_req=True)
>>> result = thread.get()
:param shared_serverless_scan_specification:
:type shared_serverless_scan_specification: SharedServerlessScanSpecification
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_serverless_scan_post_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_serverless_scan_post_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_serverless_scan_post # noqa: E501
AddServerlessScanSettings adds serverless settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_serverless_scan_post_with_http_info(async_req=True)
>>> result = thread.get()
:param shared_serverless_scan_specification:
:type shared_serverless_scan_specification: SharedServerlessScanSpecification
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
local_var_params = locals()
all_params = [
'shared_serverless_scan_specification'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_serverless_scan_post" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'shared_serverless_scan_specification' in local_var_params:
body_params = local_var_params['shared_serverless_scan_specification']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {}
return self.api_client.call_api(
'/api/v1/settings/serverless-scan', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_serverless_scan_put(self, **kwargs): # noqa: E501
"""api_v1_settings_serverless_scan_put # noqa: E501
SetServerlessScanSettings sets the serverless settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_serverless_scan_put(async_req=True)
>>> result = thread.get()
:param shared_serverless_scan_specification:
:type shared_serverless_scan_specification: list[SharedServerlessScanSpecification]
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_serverless_scan_put_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_serverless_scan_put_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_serverless_scan_put # noqa: E501
SetServerlessScanSettings sets the serverless settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_serverless_scan_put_with_http_info(async_req=True)
>>> result = thread.get()
:param shared_serverless_scan_specification:
:type shared_serverless_scan_specification: list[SharedServerlessScanSpecification]
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
local_var_params = locals()
all_params = [
'shared_serverless_scan_specification'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_serverless_scan_put" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'shared_serverless_scan_specification' in local_var_params:
body_params = local_var_params['shared_serverless_scan_specification']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {}
return self.api_client.call_api(
'/api/v1/settings/serverless-scan', 'PUT',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_system_get(self, **kwargs): # noqa: E501
"""api_v1_settings_system_get # noqa: E501
Settings converts daemonset proxy opts back into ProxySettings struct # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_system_get(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: TypesSettings
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_system_get_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_system_get_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_system_get # noqa: E501
Settings converts daemonset proxy opts back into ProxySettings struct # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_system_get_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: tuple(TypesSettings, status_code(int), headers(HTTPHeaderDict))
"""
local_var_params = locals()
all_params = [
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_system_get" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {
200: "TypesSettings",
}
return self.api_client.call_api(
'/api/v1/settings/system', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_tas_get(self, **kwargs): # noqa: E501
"""api_v1_settings_tas_get # noqa: E501
TASSettings returns the TAS settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_tas_get(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: list[SharedTASDropletSpecification]
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_tas_get_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_tas_get_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_tas_get # noqa: E501
TASSettings returns the TAS settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_tas_get_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: tuple(list[SharedTASDropletSpecification], status_code(int), headers(HTTPHeaderDict))
"""
local_var_params = locals()
all_params = [
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_tas_get" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {
200: "list[SharedTASDropletSpecification]",
}
return self.api_client.call_api(
'/api/v1/settings/tas', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_tas_post(self, **kwargs): # noqa: E501
"""api_v1_settings_tas_post # noqa: E501
SetTASSettings sets the TAS settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_tas_post(async_req=True)
>>> result = thread.get()
:param shared_tas_droplet_specification:
:type shared_tas_droplet_specification: list[SharedTASDropletSpecification]
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_tas_post_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_tas_post_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_tas_post # noqa: E501
SetTASSettings sets the TAS settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_tas_post_with_http_info(async_req=True)
>>> result = thread.get()
:param shared_tas_droplet_specification:
:type shared_tas_droplet_specification: list[SharedTASDropletSpecification]
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
local_var_params = locals()
all_params = [
'shared_tas_droplet_specification'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_tas_post" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'shared_tas_droplet_specification' in local_var_params:
body_params = local_var_params['shared_tas_droplet_specification']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {}
return self.api_client.call_api(
'/api/v1/settings/tas', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_telemetry_get(self, **kwargs): # noqa: E501
"""api_v1_settings_telemetry_get # noqa: E501
TelemetrySettings returns the telemetry settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_telemetry_get(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: TypesTelemetrySettings
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_telemetry_get_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_telemetry_get_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_telemetry_get # noqa: E501
TelemetrySettings returns the telemetry settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_telemetry_get_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: tuple(TypesTelemetrySettings, status_code(int), headers(HTTPHeaderDict))
"""
local_var_params = locals()
all_params = [
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_telemetry_get" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {
200: "TypesTelemetrySettings",
}
return self.api_client.call_api(
'/api/v1/settings/telemetry', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_telemetry_post(self, **kwargs): # noqa: E501
"""api_v1_settings_telemetry_post # noqa: E501
SetTelemetrySettings sets the telemetry settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_telemetry_post(async_req=True)
>>> result = thread.get()
:param types_telemetry_settings:
:type types_telemetry_settings: TypesTelemetrySettings
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_telemetry_post_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_telemetry_post_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_telemetry_post # noqa: E501
SetTelemetrySettings sets the telemetry settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_telemetry_post_with_http_info(async_req=True)
>>> result = thread.get()
:param types_telemetry_settings:
:type types_telemetry_settings: TypesTelemetrySettings
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
local_var_params = locals()
all_params = [
'types_telemetry_settings'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_telemetry_post" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'types_telemetry_settings' in local_var_params:
body_params = local_var_params['types_telemetry_settings']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {}
return self.api_client.call_api(
'/api/v1/settings/telemetry', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_trusted_certificate_post(self, **kwargs): # noqa: E501
"""api_v1_settings_trusted_certificate_post # noqa: E501
AddTrustedCert adds a trusted certificate # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_trusted_certificate_post(async_req=True)
>>> result = thread.get()
:param types_cert_data:
:type types_cert_data: TypesCertData
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: SharedTrustedCertSignature
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_trusted_certificate_post_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_trusted_certificate_post_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_trusted_certificate_post # noqa: E501
AddTrustedCert adds a trusted certificate # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_trusted_certificate_post_with_http_info(async_req=True)
>>> result = thread.get()
:param types_cert_data:
:type types_cert_data: TypesCertData
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: tuple(SharedTrustedCertSignature, status_code(int), headers(HTTPHeaderDict))
"""
local_var_params = locals()
all_params = [
'types_cert_data'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_trusted_certificate_post" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'types_cert_data' in local_var_params:
body_params = local_var_params['types_cert_data']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {
200: "SharedTrustedCertSignature",
}
return self.api_client.call_api(
'/api/v1/settings/trusted-certificate', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_trusted_certificates_post(self, **kwargs): # noqa: E501
"""api_v1_settings_trusted_certificates_post # noqa: E501
SetTrustedCertificateSettings sets the trusted certificate settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_trusted_certificates_post(async_req=True)
>>> result = thread.get()
:param shared_trusted_cert_settings:
:type shared_trusted_cert_settings: SharedTrustedCertSettings
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_trusted_certificates_post_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_trusted_certificates_post_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_trusted_certificates_post # noqa: E501
SetTrustedCertificateSettings sets the trusted certificate settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_trusted_certificates_post_with_http_info(async_req=True)
>>> result = thread.get()
:param shared_trusted_cert_settings:
:type shared_trusted_cert_settings: SharedTrustedCertSettings
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
local_var_params = locals()
all_params = [
'shared_trusted_cert_settings'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_trusted_certificates_post" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'shared_trusted_cert_settings' in local_var_params:
body_params = local_var_params['shared_trusted_cert_settings']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {}
return self.api_client.call_api(
'/api/v1/settings/trusted-certificates', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_vm_get(self, **kwargs): # noqa: E501
"""api_v1_settings_vm_get # noqa: E501
VMSettings returns the VM settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_vm_get(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: list[SharedVMSpecification]
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_vm_get_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_vm_get_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_vm_get # noqa: E501
VMSettings returns the VM settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_vm_get_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: tuple(list[SharedVMSpecification], status_code(int), headers(HTTPHeaderDict))
"""
local_var_params = locals()
all_params = [
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_vm_get" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {
200: "list[SharedVMSpecification]",
}
return self.api_client.call_api(
'/api/v1/settings/vm', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_vm_put(self, **kwargs): # noqa: E501
"""api_v1_settings_vm_put # noqa: E501
SetVMSettings sets the VM settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_vm_put(async_req=True)
>>> result = thread.get()
:param shared_vm_specification:
:type shared_vm_specification: list[SharedVMSpecification]
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_vm_put_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_vm_put_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_vm_put # noqa: E501
SetVMSettings sets the VM settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_vm_put_with_http_info(async_req=True)
>>> result = thread.get()
:param shared_vm_specification:
:type shared_vm_specification: list[SharedVMSpecification]
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
local_var_params = locals()
all_params = [
'shared_vm_specification'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_vm_put" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'shared_vm_specification' in local_var_params:
body_params = local_var_params['shared_vm_specification']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {}
return self.api_client.call_api(
'/api/v1/settings/vm', 'PUT',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_wildfire_get(self, **kwargs): # noqa: E501
"""api_v1_settings_wildfire_get # noqa: E501
WildFireSettings returns the wildfire settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_wildfire_get(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: SharedWildFireSettings
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_wildfire_get_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_wildfire_get_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_wildfire_get # noqa: E501
WildFireSettings returns the wildfire settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_wildfire_get_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: tuple(SharedWildFireSettings, status_code(int), headers(HTTPHeaderDict))
"""
local_var_params = locals()
all_params = [
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_wildfire_get" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {
200: "SharedWildFireSettings",
}
return self.api_client.call_api(
'/api/v1/settings/wildfire', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
def api_v1_settings_wildfire_put(self, **kwargs): # noqa: E501
"""api_v1_settings_wildfire_put # noqa: E501
SetWildFireSettings sets the wildfire service usage settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_wildfire_put(async_req=True)
>>> result = thread.get()
:param shared_wild_fire_policy:
:type shared_wild_fire_policy: SharedWildFirePolicy
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
kwargs['_return_http_data_only'] = True
return self.api_v1_settings_wildfire_put_with_http_info(**kwargs) # noqa: E501
def api_v1_settings_wildfire_put_with_http_info(self, **kwargs): # noqa: E501
"""api_v1_settings_wildfire_put # noqa: E501
SetWildFireSettings sets the wildfire service usage settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.api_v1_settings_wildfire_put_with_http_info(async_req=True)
>>> result = thread.get()
:param shared_wild_fire_policy:
:type shared_wild_fire_policy: SharedWildFirePolicy
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: None
"""
local_var_params = locals()
all_params = [
'shared_wild_fire_policy'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth'
]
)
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method api_v1_settings_wildfire_put" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'shared_wild_fire_policy' in local_var_params:
body_params = local_var_params['shared_wild_fire_policy']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
response_types_map = {}
return self.api_client.call_api(
'/api/v1/settings/wildfire', 'PUT',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
_request_auth=local_var_params.get('_request_auth'))
| 42.684554
| 182
| 0.597151
| 38,193
| 353,172
| 5.215275
| 0.009635
| 0.031448
| 0.045897
| 0.035243
| 0.98519
| 0.984351
| 0.983859
| 0.983518
| 0.982469
| 0.981088
| 0
| 0.01235
| 0.33858
| 353,172
| 8,273
| 183
| 42.689714
| 0.840352
| 0.509086
| 0
| 0.768593
| 1
| 0
| 0.165265
| 0.071797
| 0
| 0
| 0
| 0
| 0
| 1
| 0.037471
| false
| 0
| 0.00143
| 0
| 0.076373
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
798ae5013c6cb36f4fd52d220fc7f25474cfad7c
| 171
|
py
|
Python
|
roboticstoolbox/__init__.py
|
LabRobPL/robotics-toolbox-python
|
4fe4d8a23bda77f5fde39c5d7b53dc953c2a07dd
|
[
"MIT"
] | 749
|
2015-04-28T03:02:30.000Z
|
2022-03-31T06:55:12.000Z
|
roboticstoolbox/__init__.py
|
LabRobPL/robotics-toolbox-python
|
4fe4d8a23bda77f5fde39c5d7b53dc953c2a07dd
|
[
"MIT"
] | 226
|
2015-04-16T22:22:55.000Z
|
2022-03-24T16:42:28.000Z
|
roboticstoolbox/__init__.py
|
LabRobPL/robotics-toolbox-python
|
4fe4d8a23bda77f5fde39c5d7b53dc953c2a07dd
|
[
"MIT"
] | 251
|
2015-04-30T23:52:35.000Z
|
2022-03-27T13:32:16.000Z
|
from roboticstoolbox.tools import *
from roboticstoolbox.robot import *
from roboticstoolbox.mobile import *
import roboticstoolbox.models
import roboticstoolbox.backends
| 28.5
| 36
| 0.859649
| 18
| 171
| 8.166667
| 0.444444
| 0.387755
| 0.340136
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.093567
| 171
| 5
| 37
| 34.2
| 0.948387
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
79cba9d35d1f82ba5c000a714b9aff16cc62288c
| 130
|
py
|
Python
|
Course/modules/example_14.py
|
zevgenia/Python_shultais
|
e51c31de221c5e7f36ede857a960138009ec8a05
|
[
"Apache-2.0"
] | null | null | null |
Course/modules/example_14.py
|
zevgenia/Python_shultais
|
e51c31de221c5e7f36ede857a960138009ec8a05
|
[
"Apache-2.0"
] | null | null | null |
Course/modules/example_14.py
|
zevgenia/Python_shultais
|
e51c31de221c5e7f36ede857a960138009ec8a05
|
[
"Apache-2.0"
] | null | null | null |
from rel import *
from physics import *
from physics import ek
from rel import ek as rel_ek
print(ek(100, 10), rel_ek(100, 10))
| 16.25
| 35
| 0.730769
| 25
| 130
| 3.72
| 0.36
| 0.150538
| 0.27957
| 0.494624
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.09434
| 0.184615
| 130
| 7
| 36
| 18.571429
| 0.783019
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.8
| 0
| 0.8
| 0.2
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
79cd514535f207208180a0919ea6055666d97f78
| 390
|
py
|
Python
|
terrascript/provider/external.py
|
mjuenema/python-terrascript
|
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
|
[
"BSD-2-Clause"
] | 507
|
2017-07-26T02:58:38.000Z
|
2022-01-21T12:35:13.000Z
|
terrascript/provider/external.py
|
mjuenema/python-terrascript
|
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
|
[
"BSD-2-Clause"
] | 135
|
2017-07-20T12:01:59.000Z
|
2021-10-04T22:25:40.000Z
|
terrascript/provider/external.py
|
mjuenema/python-terrascript
|
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
|
[
"BSD-2-Clause"
] | 81
|
2018-02-20T17:55:28.000Z
|
2022-01-31T07:08:40.000Z
|
# terrascript/provider/external.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:16:09 UTC)
#
# For imports without namespace, e.g.
#
# >>> import terrascript.provider.external
#
# instead of
#
# >>> import terrascript.provider.hashicorp.external
#
# This is only available for 'official' and 'partner' providers.
from terrascript.provider.hashicorp.external import *
| 26
| 73
| 0.751282
| 49
| 390
| 5.979592
| 0.714286
| 0.259386
| 0.1843
| 0.245734
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.035398
| 0.130769
| 390
| 14
| 74
| 27.857143
| 0.828909
| 0.794872
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
8de3354da042a104332e219af1449b67424b03d4
| 13,618
|
py
|
Python
|
mergedeep/test_mergedeep.py
|
tdegeus/mergedeep
|
02eab0702057f5e2265dc7938aad5dbf9cb182df
|
[
"MIT"
] | null | null | null |
mergedeep/test_mergedeep.py
|
tdegeus/mergedeep
|
02eab0702057f5e2265dc7938aad5dbf9cb182df
|
[
"MIT"
] | null | null | null |
mergedeep/test_mergedeep.py
|
tdegeus/mergedeep
|
02eab0702057f5e2265dc7938aad5dbf9cb182df
|
[
"MIT"
] | null | null | null |
"""mergedeep test module"""
import inspect
import unittest
from collections import Counter
from copy import deepcopy
from mergedeep import merge, Strategy
class test_mergedeep(unittest.TestCase):
"""mergedeep function tests."""
##############################################################################################################################
# REPLACE
##############################################################################################################################
def test_should_merge_3_dicts_into_new_dict_using_replace_strategy_and_only_mutate_target(self,):
expected = {
"a": {"b": {"c": 5, "_c": 15}, "B": {"C": 10}},
"d": 3,
"e": {1: 2, "a": {"f": 2}},
"f": [4, 5, 6],
"g": (100, 200),
"h": Counter({"a": 1, "b": 1, "c": 1}),
"i": 2,
"j": Counter({"z": 2}),
"z": Counter({"a": 2}),
}
a = {
"a": {"b": {"c": 5}},
"d": 1,
"e": {2: 3},
"f": [1, 2, 3],
"g": (2, 4, 6),
"h": Counter({"a": 1, "b": 1}),
"j": 1,
}
a_copy = deepcopy(a)
b = {
"a": {"B": {"C": 10}},
"d": 2,
"e": 2,
"f": [4, 5, 6],
"g": (100, 200),
"h": Counter({"a": 1, "c": 1}),
"i": Counter({"a": 1}),
"z": Counter({"a": 2}),
}
b_copy = deepcopy(b)
c = {
"a": {"b": {"_c": 15}},
"d": 3,
"e": {1: 2, "a": {"f": 2}},
"i": 2,
"j": Counter({"z": 2}),
"z": Counter({"a": 2}),
}
c_copy = deepcopy(c)
actual = merge({}, a, b, c, strategy=Strategy.REPLACE)
self.assertEqual(actual, expected)
self.assertEqual(a, a_copy)
self.assertEqual(b, b_copy)
self.assertEqual(c, c_copy)
def test_should_merge_2_dicts_into_existing_dict_using_replace_strategy_and_only_mutate_target(self,):
expected = {
"a": {"b": {"c": 5, "_c": 15}, "B": {"C": 10}},
"d": 3,
"e": {1: 2, "a": {"f": 2}},
"f": [4, 5, 6],
"g": (100, 200),
"h": Counter({"a": 1, "b": 1, "c": 1}),
"i": 2,
"j": Counter({"z": 2}),
}
a = {
"a": {"b": {"c": 5}},
"d": 1,
"e": {2: 3},
"f": [1, 2, 3],
"g": (2, 4, 6),
"h": Counter({"a": 1, "b": 1}),
"j": 1,
}
a_copy = deepcopy(a)
b = {
"a": {"B": {"C": 10}},
"d": 2,
"e": 2,
"f": [4, 5, 6],
"g": (100, 200),
"h": Counter({"a": 1, "c": 1}),
"i": Counter({"a": 1}),
}
b_copy = deepcopy(b)
c = {"a": {"b": {"_c": 15}}, "d": 3, "e": {1: 2, "a": {"f": 2}}, "i": 2, "j": Counter({"z": 2})}
c_copy = deepcopy(c)
actual = merge(a, b, c, strategy=Strategy.REPLACE)
self.assertEqual(actual, expected)
self.assertEqual(actual, a)
self.assertNotEqual(a, a_copy)
self.assertEqual(b, b_copy)
self.assertEqual(c, c_copy)
def test_should_have_default_strategy_of_replace(self):
func_spec = inspect.getfullargspec(merge)
default_strategy = Strategy.REPLACE
self.assertEqual(func_spec.kwonlydefaults.get("strategy"), default_strategy)
# mock_merge.method.assert_called_with(target, source, strategy=Strategy.REPLACE)
##############################################################################################################################
# ADDITIVE
##############################################################################################################################
def test_should_merge_3_dicts_into_new_dict_using_additive_strategy_on_lists_and_only_mutate_target(self,):
expected = {
"a": {"b": {"c": 5, "_c": 15}, "B": {"C": 10}},
"d": 3,
"e": {1: 2, "a": {"f": 2}},
"f": [1, 2, 3, 4, 5, 6],
}
a = {"a": {"b": {"c": 5}}, "d": 1, "e": {2: 3}, "f": [1, 2, 3]}
a_copy = deepcopy(a)
b = {"a": {"B": {"C": 10}}, "d": 2, "e": 2, "f": [4, 5, 6]}
b_copy = deepcopy(b)
c = {"a": {"b": {"_c": 15}}, "d": 3, "e": {1: 2, "a": {"f": 2}}}
c_copy = deepcopy(c)
actual = merge({}, a, b, c, strategy=Strategy.ADDITIVE)
self.assertEqual(actual, expected)
self.assertEqual(a, a_copy)
self.assertEqual(b, b_copy)
self.assertEqual(c, c_copy)
def test_should_merge_3_dicts_into_new_dict_using_additive_strategy_on_sets_and_only_mutate_target(self,):
expected = {
"a": {"b": {"c": 5, "_c": 15}, "B": {"C": 10}},
"d": 3,
"e": {1: 2, "a": {"f": 2}},
"f": {1, 2, 3, 4, 5, 6},
}
a = {"a": {"b": {"c": 5}}, "d": 1, "e": {2: 3}, "f": {1, 2, 3}}
a_copy = deepcopy(a)
b = {"a": {"B": {"C": 10}}, "d": 2, "e": 2, "f": {4, 5, 6}}
b_copy = deepcopy(b)
c = {"a": {"b": {"_c": 15}}, "d": 3, "e": {1: 2, "a": {"f": 2}}}
c_copy = deepcopy(c)
actual = merge({}, a, b, c, strategy=Strategy.ADDITIVE)
self.assertEqual(actual, expected)
self.assertEqual(a, a_copy)
self.assertEqual(b, b_copy)
self.assertEqual(c, c_copy)
def test_should_merge_3_dicts_into_new_dict_using_additive_strategy_on_tuples_and_only_mutate_target(self,):
expected = {
"a": {"b": {"c": 5, "_c": 15}, "B": {"C": 10}},
"d": 3,
"e": {1: 2, "a": {"f": 2}},
"f": (1, 2, 3, 4, 5, 6),
}
a = {"a": {"b": {"c": 5}}, "d": 1, "e": {2: 3}, "f": (1, 2, 3)}
a_copy = deepcopy(a)
b = {"a": {"B": {"C": 10}}, "d": 2, "e": 2, "f": (4, 5, 6)}
b_copy = deepcopy(b)
c = {"a": {"b": {"_c": 15}}, "d": 3, "e": {1: 2, "a": {"f": 2}}}
c_copy = deepcopy(c)
actual = merge({}, a, b, c, strategy=Strategy.ADDITIVE)
self.assertEqual(actual, expected)
self.assertEqual(a, a_copy)
self.assertEqual(b, b_copy)
self.assertEqual(c, c_copy)
def test_should_merge_3_dicts_into_new_dict_using_additive_strategy_on_counters_and_only_mutate_target(self,):
expected = {
"a": {"b": {"c": 5, "_c": 15}, "B": {"C": 10}},
"d": 3,
"e": {1: 2, "a": {"f": 2}},
"f": Counter({"a": 2, "c": 1, "b": 1}),
"i": 2,
"j": Counter({"z": 2}),
"z": Counter({"a": 4}),
}
a = {
"a": {"b": {"c": 5}},
"d": 1,
"e": {2: 3},
"f": Counter({"a": 1, "c": 1}),
"i": Counter({"f": 9}),
"j": Counter({"a": 1, "z": 4}),
}
a_copy = deepcopy(a)
b = {
"a": {"B": {"C": 10}},
"d": 2,
"e": 2,
"f": Counter({"a": 1, "b": 1}),
"j": [1, 2, 3],
"z": Counter({"a": 2}),
}
b_copy = deepcopy(b)
c = {
"a": {"b": {"_c": 15}},
"d": 3,
"e": {1: 2, "a": {"f": 2}},
"i": 2,
"j": Counter({"z": 2}),
"z": Counter({"a": 2}),
}
c_copy = deepcopy(c)
actual = merge({}, a, b, c, strategy=Strategy.ADDITIVE)
self.assertEqual(actual, expected)
self.assertEqual(a, a_copy)
self.assertEqual(b, b_copy)
self.assertEqual(c, c_copy)
def test_should_not_copy_references(self):
before = 1
after = 99
o1 = {"key1": before}
o2 = {"key2": before}
expected = {"list": deepcopy([o1, o2]), "tuple": deepcopy((o1, o2))}
a = {"list": [o1], "tuple": (o1,)}
b = {"list": [o2], "tuple": (o2,)}
actual = merge({}, a, b, strategy=Strategy.ADDITIVE)
o1["key1"] = after
o2["key2"] = after
self.assertEqual(actual, expected)
# Copied dicts should `not` mutate
self.assertEqual(actual["list"][0]["key1"], before)
self.assertEqual(actual["list"][1]["key2"], before)
self.assertEqual(actual["tuple"][0]["key1"], before)
self.assertEqual(actual["tuple"][1]["key2"], before)
# Non-copied dicts should mutate
self.assertEqual(a["list"][0]["key1"], after)
self.assertEqual(b["list"][0]["key2"], after)
self.assertEqual(a["tuple"][0]["key1"], after)
self.assertEqual(b["tuple"][0]["key2"], after)
##############################################################################################################################
# TYPESAFE
# TYPESAFE_REPLACE
##############################################################################################################################
def test_should_raise_TypeError_using_typesafe_strategy_if_types_differ(self):
a = {"a": {"b": {"c": 5}}, "d": 1, "e": {2: 3}, "f": [1, 2, 3]}
b = {"a": {"B": {"C": 10}}, "d": 2, "e": 2, "f": [4, 5, 6]}
c = {"a": {"b": {"_c": 15}}, "d": 3, "e": {1: 2, "a": {"f": 2}}}
with self.assertRaises(TypeError):
merge({}, a, b, c, strategy=Strategy.TYPESAFE)
def test_should_raise_TypeError_using_typesafe_replace_strategy_if_types_differ(self,):
a = {"a": {"b": {"c": 5}}, "d": 1, "e": {2: 3}, "f": [1, 2, 3]}
b = {"a": {"B": {"C": 10}}, "d": 2, "e": 2, "f": [4, 5, 6]}
c = {"a": {"b": {"_c": 15}}, "d": 3, "e": {1: 2, "a": {"f": 2}}}
with self.assertRaises(TypeError):
merge({}, a, b, c, strategy=Strategy.TYPESAFE_REPLACE)
def test_should_merge_3_dicts_into_new_dict_using_typesafe_strategy_and_only_mutate_target_if_types_are_compatible(
self,
):
expected = {
"a": {"b": {"c": 5, "_c": 15}, "B": {"C": 10}},
"d": 3,
"f": [4, 5, 6],
"g": {2, 3, 4},
"h": (1, 3),
"z": Counter({"a": 1, "b": 1, "c": 1}),
}
a = {"a": {"b": {"c": 5}}, "d": 1, "f": [1, 2, 3], "g": {1, 2, 3}, "z": Counter({"a": 1, "b": 1})}
a_copy = deepcopy(a)
b = {"a": {"B": {"C": 10}}, "d": 2, "f": [4, 5, 6], "g": {2, 3, 4}, "h": (1,)}
b_copy = deepcopy(b)
c = {"a": {"b": {"_c": 15}}, "d": 3, "h": (1, 3), "z": Counter({"a": 1, "c": 1})}
c_copy = deepcopy(c)
actual = merge({}, a, b, c, strategy=Strategy.TYPESAFE)
self.assertEqual(actual, expected)
self.assertEqual(a, a_copy)
self.assertEqual(b, b_copy)
self.assertEqual(c, c_copy)
def test_should_merge_3_dicts_into_new_dict_using_typesafe_replace_strategy_and_only_mutate_target_if_types_are_compatible(
self,
):
expected = {
"a": {"b": {"c": 5, "_c": 15}, "B": {"C": 10}},
"d": 3,
"f": [4, 5, 6],
"g": {2, 3, 4},
"h": (1, 3),
"z": Counter({"a": 1, "b": 1, "c": 1}),
}
a = {"a": {"b": {"c": 5}}, "d": 1, "f": [1, 2, 3], "g": {1, 2, 3}, "z": Counter({"a": 1, "b": 1})}
a_copy = deepcopy(a)
b = {"a": {"B": {"C": 10}}, "d": 2, "f": [4, 5, 6], "g": {2, 3, 4}, "h": (1,)}
b_copy = deepcopy(b)
c = {"a": {"b": {"_c": 15}}, "d": 3, "h": (1, 3), "z": Counter({"a": 1, "c": 1})}
c_copy = deepcopy(c)
actual = merge({}, a, b, c, strategy=Strategy.TYPESAFE_REPLACE)
self.assertEqual(actual, expected)
self.assertEqual(a, a_copy)
self.assertEqual(b, b_copy)
self.assertEqual(c, c_copy)
##############################################################################################################################
# TYPESAFE_ADDITIVE
##############################################################################################################################
def test_should_raise_TypeError_using_typesafe_additive_strategy_if_types_differ(self,):
a = {"a": {"b": {"c": 5}}, "d": 1, "e": {2: 3}, "f": [1, 2, 3]}
b = {"a": {"B": {"C": 10}}, "d": 2, "e": 2, "f": [4, 5, 6]}
c = {"a": {"b": {"_c": 15}}, "d": 3, "e": {1: 2, "a": {"f": 2}}}
with self.assertRaises(TypeError):
merge({}, a, b, c, strategy=Strategy.TYPESAFE_ADDITIVE)
def test_should_merge_3_dicts_into_new_dict_using_typesafe_additive_strategy_and_only_mutate_target_if_types_are_compatible(
self,
):
expected = {
"a": {"b": {"c": 5, "_c": 15}, "B": {"C": 10}},
"d": 3,
"f": [1, 2, 3, 4, 5, 6],
"g": {1, 2, 3, 4},
"h": (1, 1, 3),
"z": Counter({"a": 2, "b": 1, "c": 1}),
}
a = {"a": {"b": {"c": 5}}, "d": 1, "f": [1, 2, 3], "g": {1, 2, 3}, "z": Counter({"a": 1, "b": 1})}
a_copy = deepcopy(a)
b = {"a": {"B": {"C": 10}}, "d": 2, "f": [4, 5, 6], "g": {2, 3, 4}, "h": (1,)}
b_copy = deepcopy(b)
c = {"a": {"b": {"_c": 15}}, "d": 3, "h": (1, 3), "z": Counter({"a": 1, "c": 1})}
c_copy = deepcopy(c)
actual = merge({}, a, b, c, strategy=Strategy.TYPESAFE_ADDITIVE)
self.assertEqual(actual, expected)
self.assertEqual(a, a_copy)
self.assertEqual(b, b_copy)
self.assertEqual(c, c_copy)
if __name__ == "__main__":
unittest.main()
| 34.21608
| 130
| 0.395433
| 1,717
| 13,618
| 2.970879
| 0.059406
| 0.029406
| 0.033523
| 0.016467
| 0.823172
| 0.801215
| 0.774554
| 0.74358
| 0.74358
| 0.74358
| 0
| 0.054503
| 0.310178
| 13,618
| 397
| 131
| 34.302267
| 0.488503
| 0.018578
| 0
| 0.708054
| 0
| 0
| 0.046519
| 0
| 0
| 0
| 0
| 0
| 0.167785
| 1
| 0.04698
| false
| 0
| 0.016779
| 0
| 0.067114
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
8de56cc78ee99b403eda7dc016eae75187decc95
| 18,673
|
py
|
Python
|
TopQuarkAnalysis/TopPairBSM/python/RecoInput_ZPrime2000_cfi.py
|
SWuchterl/cmssw
|
769b4a7ef81796579af7d626da6039dfa0347b8e
|
[
"Apache-2.0"
] | 6
|
2017-09-08T14:12:56.000Z
|
2022-03-09T23:57:01.000Z
|
TopQuarkAnalysis/TopPairBSM/python/RecoInput_ZPrime2000_cfi.py
|
SWuchterl/cmssw
|
769b4a7ef81796579af7d626da6039dfa0347b8e
|
[
"Apache-2.0"
] | 545
|
2017-09-19T17:10:19.000Z
|
2022-03-07T16:55:27.000Z
|
TopQuarkAnalysis/TopPairBSM/python/RecoInput_ZPrime2000_cfi.py
|
SWuchterl/cmssw
|
769b4a7ef81796579af7d626da6039dfa0347b8e
|
[
"Apache-2.0"
] | 14
|
2017-10-04T09:47:21.000Z
|
2019-10-23T18:04:45.000Z
|
# from /RelValQCD_Pt_3000_3500/CMSSW_2_1_0_pre6-RelVal-1213987236-IDEAL_V2-2nd/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO
import FWCore.ParameterSet.Config as cms
# from
def RecoInput() :
return cms.Source("PoolSource",
debugVerbosity = cms.untracked.uint32(200),
debugFlag = cms.untracked.bool(True),
fileNames = cms.untracked.vstring(
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_100.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_101.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_102.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_104.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_105.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_107.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_108.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_109.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_10.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_110.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_111.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_112.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_113.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_114.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_116.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_117.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_118.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_119.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_11.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_120.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_121.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_122.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_123.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_124.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_125.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_126.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_127.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_128.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_12.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_130.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_131.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_132.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_133.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_134.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_135.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_136.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_137.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_138.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_139.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_13.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_140.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_141.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_142.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_143.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_144.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_145.root',
# 'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_146.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_147.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_148.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_149.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_14.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_150.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_151.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_152.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_153.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_154.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_155.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_156.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_157.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_158.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_159.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_15.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_160.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_161.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_162.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_164.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_165.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_166.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_167.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_168.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_169.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_170.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_171.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_172.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_173.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_174.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_176.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_177.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_178.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_179.root',
# 'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_17.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_180.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_181.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_182.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_183.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_184.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_185.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_186.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_187.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_189.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_18.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_190.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_191.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_192.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_193.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_194.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_195.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_196.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_197.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_198.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_199.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_19.root',
# 'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_1.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_200.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_201.root',
# 'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_202.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_203.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_204.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_205.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_206.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_207.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_208.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_209.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_20.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_210.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_212.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_213.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_214.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_216.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_217.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_218.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_21.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_220.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_221.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_222.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_223.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_224.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_225.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_226.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_227.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_228.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_229.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_22.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_230.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_231.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_232.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_233.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_234.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_235.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_236.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_237.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_238.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_239.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_23.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_240.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_241.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_242.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_243.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_244.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_245.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_246.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_247.root',
# 'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_249.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_24.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_250.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_25.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_26.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_27.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_28.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_2.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_30.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_31.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_32.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_33.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_34.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_35.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_36.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_37.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_38.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_39.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_3.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_40.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_41.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_42.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_43.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_44.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_45.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_46.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_47.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_48.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_49.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_4.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_50.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_51.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_52.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_53.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_55.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_56.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_57.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_58.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_59.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_5.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_60.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_61.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_62.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_63.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_64.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_65.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_67.root',
# 'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_68.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_69.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_6.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_71.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_72.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_73.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_74.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_75.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_76.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_77.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_78.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_79.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_7.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_80.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_81.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_82.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_83.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_84.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_85.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_86.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_87.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_89.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_8.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_90.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_91.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_92.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_94.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_95.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_96.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_97.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_98.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_99.root',
'dcache:/pnfs/cms/WAX/resilient/rappocc/zprime/zprime_2000GeV_9.root'
)
)
| 75.294355
| 109
| 0.754083
| 2,600
| 18,673
| 5.234231
| 0.106923
| 0.170475
| 0.221618
| 0.272761
| 0.937321
| 0.937321
| 0.937321
| 0.937321
| 0.937321
| 0.933573
| 0
| 0.091769
| 0.094307
| 18,673
| 247
| 110
| 75.59919
| 0.712926
| 0.030847
| 0
| 0
| 0
| 0
| 0.857356
| 0.856803
| 0
| 0
| 0
| 0
| 0
| 1
| 0.004274
| true
| 0
| 0.004274
| 0.004274
| 0.012821
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 11
|
8def689d788d9e92f6499aba7ad2b80f7faee1e4
| 285,062
|
py
|
Python
|
shaystackdata.py
|
Ben-Costa/Brick_Haystack_API
|
ab6848f4661d26c01669c95db8d5257cc0ea0f2f
|
[
"MIT"
] | null | null | null |
shaystackdata.py
|
Ben-Costa/Brick_Haystack_API
|
ab6848f4661d26c01669c95db8d5257cc0ea0f2f
|
[
"MIT"
] | null | null | null |
shaystackdata.py
|
Ben-Costa/Brick_Haystack_API
|
ab6848f4661d26c01669c95db8d5257cc0ea0f2f
|
[
"MIT"
] | null | null | null |
rows= [
{"id":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "area":{"_kind":"number", "val":50000, "unit":"ft\u00b2"}, "dis":"Charlie", "geoAddr":"123 Some Rd, Troy, MI 48007", "geoCity":"Troy", "geoCountry":"US", "geoPostalCode":"48007", "geoState":"MI", "geoStreet":"123 Some Rd", "primaryFunction":"Office", "site":{"_kind":"marker"}, "tz":"Detroit", "weatherStationRef":{"_kind":"ref", "val":"c-0267", "dis":"c-0267"}, "yearBuilt":1995},
{"id":{"_kind":"ref", "val":"c-0001", "dis":"c-0001"}, "ahu":{"_kind":"marker"}, "dis":"Charlie AHU 1", "equip":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "custom":{"equipGroup":"AHUs"}},
{"id":{"_kind":"ref", "val":"c-0002", "dis":"c-0002"}, "air":{"_kind":"marker"}, "co2":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU 1 CO2", "equipRef":{"_kind":"ref", "val":"c-0001", "dis":"c-0001"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York", "unit":"ppm", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0003", "dis":"c-0003"}, "air":{"_kind":"marker"}, "co2":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU 1 CO2 Setpoint", "equipRef":{"_kind":"ref", "val":"c-0001", "dis":"c-0001"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "tz":"New_York", "unit":"ppm", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0004", "dis":"c-0004"}, "chilled":{"_kind":"marker"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU 1 Chilled Water Valve Status", "equipRef":{"_kind":"ref", "val":"c-0001", "dis":"c-0001"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York", "unit":"%", "valve":{"_kind":"marker"}, "water":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0005", "dis":"c-0005"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU 1 Discharge Air Pressure", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0001", "dis":"c-0001"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "pressure":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York", "unit":"inH\u2082O", "custom":{"precision":2}},
{"id":{"_kind":"ref", "val":"c-0006", "dis":"c-0006"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU 1 Discharge Air Pressure Setpoint", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0001", "dis":"c-0001"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "pressure":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "tz":"New_York", "unit":"inH\u2082O", "custom":{"precision":2}},
{"id":{"_kind":"ref", "val":"c-0007", "dis":"c-0007"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU 1 Discharge Air Temp", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0001", "dis":"c-0001"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"New_York", "unit":"\u00b0F"},
{"id":{"_kind":"ref", "val":"c-0008", "dis":"c-0008"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU 1 Discharge Air Temp Reset", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0001", "dis":"c-0001"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"New_York", "unit":"\u00b0F", "custom":{"rest":{"_kind":"marker"}}},
{"id":{"_kind":"ref", "val":"c-0009", "dis":"c-0009"}, "air":{"_kind":"marker"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "damper":{"_kind":"marker"}, "dis":"Charlie AHU 1 Mixed Air Damper Command", "equipRef":{"_kind":"ref", "val":"c-0001", "dis":"c-0001"}, "his":{"_kind":"marker"}, "kind":"Number", "mixed":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York", "custom":{"precision":1}},
{"id":{"_kind":"ref", "val":"c-000a", "dis":"c-000a"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU 1 Mixed Air Temp Sensor", "equipRef":{"_kind":"ref", "val":"c-0001", "dis":"c-0001"}, "his":{"_kind":"marker"}, "kind":"Number", "mixed":{"_kind":"marker"}, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"New_York", "unit":"\u00b0F"},
{"id":{"_kind":"ref", "val":"c-000b", "dis":"c-000b"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU 1 Mixed Air Temp Setpoint", "equipRef":{"_kind":"ref", "val":"c-0001", "dis":"c-0001"}, "his":{"_kind":"marker"}, "kind":"Number", "mixed":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"New_York", "unit":"\u00b0F"},
{"id":{"_kind":"ref", "val":"c-000c", "dis":"c-000c"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU 1 Occupied Command", "enum":"UnOccupied,Occupied", "equipRef":{"_kind":"ref", "val":"c-0001", "dis":"c-0001"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York"},
{"id":{"_kind":"ref", "val":"c-000d", "dis":"c-000d"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU 1 Outside Air Temp Sensor", "equipRef":{"_kind":"ref", "val":"c-0001", "dis":"c-0001"}, "his":{"_kind":"marker"}, "kind":"Number", "outside":{"_kind":"marker"}, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"New_York", "unit":"\u00b0F"},
{"id":{"_kind":"ref", "val":"c-000e", "dis":"c-000e"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU 1 Return Air Temp Sensor", "equipRef":{"_kind":"ref", "val":"c-0001", "dis":"c-0001"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "return":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"New_York", "unit":"\u00b0F"},
{"id":{"_kind":"ref", "val":"c-000f", "dis":"c-000f"}, "air":{"_kind":"marker"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU 1 Return Fan Command", "enum":"Off,On", "equipRef":{"_kind":"ref", "val":"c-0001", "dis":"c-0001"}, "fan":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Bool", "point":{"_kind":"marker"}, "return":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York"},
{"id":{"_kind":"ref", "val":"c-0010", "dis":"c-0010"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU 1 Return Fan Status", "enum":"Off,On", "equipRef":{"_kind":"ref", "val":"c-0001", "dis":"c-0001"}, "fan":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Bool", "point":{"_kind":"marker"}, "return":{"_kind":"marker"}, "run":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York"},
{"id":{"_kind":"ref", "val":"c-0011", "dis":"c-0011"}, "air":{"_kind":"marker"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU 1 Return Fan VFD Signal", "equipRef":{"_kind":"ref", "val":"c-0001", "dis":"c-0001"}, "fan":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "return":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "speed":{"_kind":"marker"}, "tz":"New_York", "unit":"%"},
{"id":{"_kind":"ref", "val":"c-0012", "dis":"c-0012"}, "air":{"_kind":"marker"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU 1 ReturnFan", "enum":"false,true", "equipRef":{"_kind":"ref", "val":"c-0001", "dis":"c-0001"}, "fan":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Bool", "point":{"_kind":"marker"}, "return":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York"},
{"id":{"_kind":"ref", "val":"c-0013", "dis":"c-0013"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU 1 ReturnFanStatus", "enum":"false,true", "equipRef":{"_kind":"ref", "val":"c-0001", "dis":"c-0001"}, "fan":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Bool", "point":{"_kind":"marker"}, "return":{"_kind":"marker"}, "run":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York"},
{"id":{"_kind":"ref", "val":"c-0014", "dis":"c-0014"}, "air":{"_kind":"marker"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU 1 Supply Fan Command", "discharge":{"_kind":"marker"}, "enum":"Off,On", "equipRef":{"_kind":"ref", "val":"c-0001", "dis":"c-0001"}, "fan":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Bool", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York"},
{"id":{"_kind":"ref", "val":"c-0015", "dis":"c-0015"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU 1 Supply Fan Status", "discharge":{"_kind":"marker"}, "enum":"Off,On", "equipRef":{"_kind":"ref", "val":"c-0001", "dis":"c-0001"}, "fan":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Bool", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York"},
{"id":{"_kind":"ref", "val":"c-0016", "dis":"c-0016"}, "air":{"_kind":"marker"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU 1 Supply Fan VFD Speed", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0001", "dis":"c-0001"}, "fan":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "speed":{"_kind":"marker"}, "tz":"New_York", "unit":"%"},
{"id":{"_kind":"ref", "val":"c-0017", "dis":"c-0017"}, "air":{"_kind":"marker"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU 1 SupplyFan", "discharge":{"_kind":"marker"}, "enum":"false,true", "equipRef":{"_kind":"ref", "val":"c-0001", "dis":"c-0001"}, "fan":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Bool", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York"},
{"id":{"_kind":"ref", "val":"c-0018", "dis":"c-0018"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU 1 SupplyfanStatus", "discharge":{"_kind":"marker"}, "enum":"false,true", "equipRef":{"_kind":"ref", "val":"c-0001", "dis":"c-0001"}, "fan":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Bool", "point":{"_kind":"marker"}, "run":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York"},
{"id":{"_kind":"ref", "val":"c-0019", "dis":"c-0019"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU 1 Zone Air Temp Sensor", "equipRef":{"_kind":"ref", "val":"c-0001", "dis":"c-0001"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"New_York", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-001a", "dis":"c-001a"}, "ahu":{"_kind":"marker"}, "dis":"Charlie AHU-2", "equip":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "custom":{"equipGroup":"AHUs"}},
{"id":{"_kind":"ref", "val":"c-001b", "dis":"c-001b"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU-2 AHU2-BLD~2dP-SetPoint", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-001a", "dis":"c-001a"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "pressure":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "tz":"New_York", "unit":"in/wc", "custom":{"precision":2}},
{"id":{"_kind":"ref", "val":"c-001c", "dis":"c-001c"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU-2 AHU2-BLD~2dPressure", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-001a", "dis":"c-001a"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "pressure":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York", "unit":"in/wc", "custom":{"precision":2}},
{"id":{"_kind":"ref", "val":"c-001d", "dis":"c-001d"}, "chilled":{"_kind":"marker"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU-2 AHU2-CHW~2dValve", "equipRef":{"_kind":"ref", "val":"c-001a", "dis":"c-001a"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York", "unit":"%", "valve":{"_kind":"marker"}, "water":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-001e", "dis":"c-001e"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU-2 AHU2-DA~2dP", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-001a", "dis":"c-001a"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "pressure":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York", "unit":"in/wc", "custom":{"precision":2}},
{"id":{"_kind":"ref", "val":"c-001f", "dis":"c-001f"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU-2 AHU2-DA~2dP-SetPoint", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-001a", "dis":"c-001a"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "pressure":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "tz":"New_York", "unit":"in/wc", "custom":{"precision":2}},
{"id":{"_kind":"ref", "val":"c-0020", "dis":"c-0020"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU-2 AHU2-Discharge Air Temp-Reset", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-001a", "dis":"c-001a"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"New_York", "unit":"\u00b0F", "custom":{"reset":{"_kind":"marker"}}},
{"id":{"_kind":"ref", "val":"c-0021", "dis":"c-0021"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU-2 AHU2-OCC~2dC", "enum":"UnOccupied,Occupied", "equipRef":{"_kind":"ref", "val":"c-001a", "dis":"c-001a"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York"},
{"id":{"_kind":"ref", "val":"c-0022", "dis":"c-0022"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU-2 AHU2-Override", "enum":"Off,On", "equipRef":{"_kind":"ref", "val":"c-001a", "dis":"c-001a"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York"},
{"id":{"_kind":"ref", "val":"c-0023", "dis":"c-0023"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU-2 AHU2-RF~2dS", "enum":"Off,On", "equipRef":{"_kind":"ref", "val":"c-001a", "dis":"c-001a"}, "fan":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Bool", "point":{"_kind":"marker"}, "return":{"_kind":"marker"}, "run":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York"},
{"id":{"_kind":"ref", "val":"c-0024", "dis":"c-0024"}, "air":{"_kind":"marker"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU-2 AHU2-RF~2dVFD", "equipRef":{"_kind":"ref", "val":"c-001a", "dis":"c-001a"}, "fan":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "return":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "speed":{"_kind":"marker"}, "tz":"New_York", "unit":"%"},
{"id":{"_kind":"ref", "val":"c-0025", "dis":"c-0025"}, "air":{"_kind":"marker"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU-2 AHU2-SF~2dC", "discharge":{"_kind":"marker"}, "enum":"Off,On", "equipRef":{"_kind":"ref", "val":"c-001a", "dis":"c-001a"}, "fan":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Bool", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York"},
{"id":{"_kind":"ref", "val":"c-0026", "dis":"c-0026"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU-2 AHU2-SF~2dS", "discharge":{"_kind":"marker"}, "enum":"Off,On", "equipRef":{"_kind":"ref", "val":"c-001a", "dis":"c-001a"}, "fan":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Bool", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York"},
{"id":{"_kind":"ref", "val":"c-0027", "dis":"c-0027"}, "air":{"_kind":"marker"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU-2 AHU2-SF~2dVFD", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-001a", "dis":"c-001a"}, "fan":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "speed":{"_kind":"marker"}, "tz":"New_York", "unit":"%"},
{"id":{"_kind":"ref", "val":"c-0028", "dis":"c-0028"}, "air":{"_kind":"marker"}, "co2":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU-2 AHU2CO2SetPoint", "equipRef":{"_kind":"ref", "val":"c-001a", "dis":"c-001a"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "tz":"New_York", "unit":"ppm", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0029", "dis":"c-0029"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU-2 Discharge Air Temp", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-001a", "dis":"c-001a"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"New_York", "unit":"\u00b0F"},
{"id":{"_kind":"ref", "val":"c-002a", "dis":"c-002a"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU-2 Mixed Air Temp Sensor", "equipRef":{"_kind":"ref", "val":"c-001a", "dis":"c-001a"}, "his":{"_kind":"marker"}, "kind":"Number", "mixed":{"_kind":"marker"}, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"New_York", "unit":"\u00b0F"},
{"id":{"_kind":"ref", "val":"c-002b", "dis":"c-002b"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU-2 Mixed Air Temp Setpoint", "equipRef":{"_kind":"ref", "val":"c-001a", "dis":"c-001a"}, "his":{"_kind":"marker"}, "kind":"Number", "mixed":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"New_York", "unit":"\u00b0F"},
{"id":{"_kind":"ref", "val":"c-002c", "dis":"c-002c"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU-2 Outside Air Temp Sensor", "equipRef":{"_kind":"ref", "val":"c-001a", "dis":"c-001a"}, "his":{"_kind":"marker"}, "kind":"Number", "outside":{"_kind":"marker"}, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"New_York", "unit":"\u00b0F"},
{"id":{"_kind":"ref", "val":"c-002d", "dis":"c-002d"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU-2 Return Air Temp Sensor", "equipRef":{"_kind":"ref", "val":"c-001a", "dis":"c-001a"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "return":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"New_York", "unit":"\u00b0F"},
{"id":{"_kind":"ref", "val":"c-002e", "dis":"c-002e"}, "air":{"_kind":"marker"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU-2 ReturnFan", "enum":"false,true", "equipRef":{"_kind":"ref", "val":"c-001a", "dis":"c-001a"}, "fan":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Bool", "point":{"_kind":"marker"}, "return":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York"},
{"id":{"_kind":"ref", "val":"c-002f", "dis":"c-002f"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU-2 ReturnFanStatus", "enum":"false,true", "equipRef":{"_kind":"ref", "val":"c-001a", "dis":"c-001a"}, "fan":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Bool", "point":{"_kind":"marker"}, "return":{"_kind":"marker"}, "run":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York"},
{"id":{"_kind":"ref", "val":"c-0030", "dis":"c-0030"}, "air":{"_kind":"marker"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU-2 SupplyFan", "discharge":{"_kind":"marker"}, "enum":"false,true", "equipRef":{"_kind":"ref", "val":"c-001a", "dis":"c-001a"}, "fan":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Bool", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York"},
{"id":{"_kind":"ref", "val":"c-0031", "dis":"c-0031"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU-2 SupplyfanStatus", "discharge":{"_kind":"marker"}, "enum":"false,true", "equipRef":{"_kind":"ref", "val":"c-001a", "dis":"c-001a"}, "fan":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Bool", "point":{"_kind":"marker"}, "run":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York"},
{"id":{"_kind":"ref", "val":"c-0032", "dis":"c-0032"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie AHU-2 Zone Air Temp Sensor", "equipRef":{"_kind":"ref", "val":"c-001a", "dis":"c-001a"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"New_York", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0033", "dis":"c-0033"}, "boiler":{"_kind":"marker"}, "dis":"Charlie B100 BOILERS PUMPS", "equip":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "custom":{"equipGroup":"Hot Water Systems"}},
{"id":{"_kind":"ref", "val":"c-0034", "dis":"c-0034"}, "boiler":{"_kind":"marker"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie B100 BOILERS PUMPS BLR1~2dC", "enable":{"_kind":"marker"}, "enum":"On,Off", "equipRef":{"_kind":"ref", "val":"c-0033", "dis":"c-0033"}, "his":{"_kind":"marker"}, "kind":"Bool", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York"},
{"id":{"_kind":"ref", "val":"c-0035", "dis":"c-0035"}, "boiler":{"_kind":"marker"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie B100 BOILERS PUMPS BLR2~2dC-", "enable":{"_kind":"marker"}, "enum":"On,Off", "equipRef":{"_kind":"ref", "val":"c-0033", "dis":"c-0033"}, "his":{"_kind":"marker"}, "kind":"Bool", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York"},
{"id":{"_kind":"ref", "val":"c-0036", "dis":"c-0036"}, "boiler":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie B100 BOILERS PUMPS Boiler-Reset", "equipRef":{"_kind":"ref", "val":"c-0033", "dis":"c-0033"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "tz":"New_York", "unit":"\u00b0F", "custom":{"reset":{"_kind":"marker"}}},
{"id":{"_kind":"ref", "val":"c-0037", "dis":"c-0037"}, "boiler":{"_kind":"marker"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie B100 BOILERS PUMPS Boiler1", "enable":{"_kind":"marker"}, "enum":"false,true", "equipRef":{"_kind":"ref", "val":"c-0033", "dis":"c-0033"}, "his":{"_kind":"marker"}, "kind":"Bool", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York"},
{"id":{"_kind":"ref", "val":"c-0038", "dis":"c-0038"}, "boiler":{"_kind":"marker"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie B100 BOILERS PUMPS Boiler2", "enable":{"_kind":"marker"}, "enum":"false,true", "equipRef":{"_kind":"ref", "val":"c-0033", "dis":"c-0033"}, "his":{"_kind":"marker"}, "kind":"Bool", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York"},
{"id":{"_kind":"ref", "val":"c-0039", "dis":"c-0039"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie B100 BOILERS PUMPS HWP1~2dC", "enum":"On,Off", "equipRef":{"_kind":"ref", "val":"c-0033", "dis":"c-0033"}, "his":{"_kind":"marker"}, "hot":{"_kind":"marker"}, "kind":"Bool", "point":{"_kind":"marker"}, "pump":{"_kind":"marker"}, "run":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York", "water":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-003a", "dis":"c-003a"}, "cur":{"_kind":"marker"}, "dis":"Charlie B100 BOILERS PUMPS HWP1~2dS", "enum":"Off,On", "equipRef":{"_kind":"ref", "val":"c-0033", "dis":"c-0033"}, "his":{"_kind":"marker"}, "hot":{"_kind":"marker"}, "kind":"Bool", "point":{"_kind":"marker"}, "pump":{"_kind":"marker"}, "run":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York", "water":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-003b", "dis":"c-003b"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie B100 BOILERS PUMPS HWP2~2dC", "enum":"On,Off", "equipRef":{"_kind":"ref", "val":"c-0033", "dis":"c-0033"}, "his":{"_kind":"marker"}, "hot":{"_kind":"marker"}, "kind":"Bool", "point":{"_kind":"marker"}, "pump":{"_kind":"marker"}, "run":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York", "water":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-003c", "dis":"c-003c"}, "cur":{"_kind":"marker"}, "dis":"Charlie B100 BOILERS PUMPS HWP2~2dS", "enum":"Off,On", "equipRef":{"_kind":"ref", "val":"c-0033", "dis":"c-0033"}, "his":{"_kind":"marker"}, "hot":{"_kind":"marker"}, "kind":"Bool", "point":{"_kind":"marker"}, "pump":{"_kind":"marker"}, "run":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York", "water":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-003d", "dis":"c-003d"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie B100 BOILERS PUMPS HWP3~2dC", "enum":"On,Off", "equipRef":{"_kind":"ref", "val":"c-0033", "dis":"c-0033"}, "his":{"_kind":"marker"}, "hot":{"_kind":"marker"}, "kind":"Bool", "point":{"_kind":"marker"}, "pump":{"_kind":"marker"}, "run":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York", "water":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-003e", "dis":"c-003e"}, "cur":{"_kind":"marker"}, "dis":"Charlie B100 BOILERS PUMPS HWP3~2dS", "enum":"Off,On", "equipRef":{"_kind":"ref", "val":"c-0033", "dis":"c-0033"}, "his":{"_kind":"marker"}, "hot":{"_kind":"marker"}, "kind":"Bool", "point":{"_kind":"marker"}, "pump":{"_kind":"marker"}, "run":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York", "water":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-003f", "dis":"c-003f"}, "cur":{"_kind":"marker"}, "dis":"Charlie B100 BOILERS PUMPS HWR~2dT", "entering":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0033", "dis":"c-0033"}, "his":{"_kind":"marker"}, "hot":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"New_York", "unit":"\u00b0F", "water":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0040", "dis":"c-0040"}, "cur":{"_kind":"marker"}, "dis":"Charlie B100 BOILERS PUMPS HWS~2dT", "equipRef":{"_kind":"ref", "val":"c-0033", "dis":"c-0033"}, "his":{"_kind":"marker"}, "hot":{"_kind":"marker"}, "kind":"Number", "leaving":{"_kind":"marker"}, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"New_York", "unit":"\u00b0F", "water":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0041", "dis":"c-0041"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie B100 BOILERS PUMPS Outside Air Temp Sensor Lockout Setpoint", "equipRef":{"_kind":"ref", "val":"c-0033", "dis":"c-0033"}, "his":{"_kind":"marker"}, "kind":"Number", "outside":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"New_York", "unit":"\u00b0F", "custom":{"lockout":{"_kind":"marker"}}},
{"id":{"_kind":"ref", "val":"c-0042", "dis":"c-0042"}, "chiller":{"_kind":"marker"}, "dis":"Charlie B100 CHILLER-1", "equip":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "custom":{"equipGroup":"Chilled Water System"}},
{"id":{"_kind":"ref", "val":"c-0043", "dis":"c-0043"}, "chilled":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie B100 CHILLER-1 CHWR~2dT", "entering":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0042", "dis":"c-0042"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"New_York", "unit":"\u00b0F", "water":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0044", "dis":"c-0044"}, "chilled":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie B100 CHILLER-1 CHWS~2dT", "equipRef":{"_kind":"ref", "val":"c-0042", "dis":"c-0042"}, "his":{"_kind":"marker"}, "kind":"Number", "leaving":{"_kind":"marker"}, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"New_York", "unit":"\u00b0F", "water":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0045", "dis":"c-0045"}, "chiller":{"_kind":"marker"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie B100 CHILLER-1 Chiler-Override", "enable":{"_kind":"marker"}, "enum":"Off,On", "equipRef":{"_kind":"ref", "val":"c-0042", "dis":"c-0042"}, "his":{"_kind":"marker"}, "kind":"Bool", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York"},
{"id":{"_kind":"ref", "val":"c-0046", "dis":"c-0046"}, "cur":{"_kind":"marker"}, "current":{"_kind":"marker"}, "dis":"Charlie B100 CHILLER-1 Chiller-1-Amps", "elec":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0042", "dis":"c-0042"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York", "unit":"A", "custom":{"precision":1}},
{"id":{"_kind":"ref", "val":"c-0047", "dis":"c-0047"}, "chiller":{"_kind":"marker"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie B100 CHILLER-1 Chiller-1-Command", "enable":{"_kind":"marker"}, "enum":"Off,On", "equipRef":{"_kind":"ref", "val":"c-0042", "dis":"c-0042"}, "his":{"_kind":"marker"}, "kind":"Bool", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York"},
{"id":{"_kind":"ref", "val":"c-0048", "dis":"c-0048"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie B100 CHILLER-1 OAT-Chiller-Enable-SetPoint", "equipRef":{"_kind":"ref", "val":"c-0042", "dis":"c-0042"}, "his":{"_kind":"marker"}, "kind":"Number", "outside":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"New_York", "unit":"\u00b0F"},
{"id":{"_kind":"ref", "val":"c-0049", "dis":"c-0049"}, "dis":"Charlie BLOCK HEAT", "equip":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "custom":{"equipGroup":"Misc"}},
{"id":{"_kind":"ref", "val":"c-004a", "dis":"c-004a"}, "cur":{"_kind":"marker"}, "dis":"Charlie BLOCK HEAT Block Temperature", "equipRef":{"_kind":"ref", "val":"c-0049", "dis":"c-0049"}, "his":{"_kind":"marker"}, "hot":{"_kind":"marker"}, "kind":"Number", "leaving":{"_kind":"marker"}, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"New_York", "unit":"\u00b0F", "water":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-004b", "dis":"c-004b"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie BLOCK HEAT Valve Command", "equipRef":{"_kind":"ref", "val":"c-0049", "dis":"c-0049"}, "his":{"_kind":"marker"}, "hot":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York", "unit":"%", "valve":{"_kind":"marker"}, "water":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-004c", "dis":"c-004c"}, "chiller":{"_kind":"marker"}, "dis":"Charlie CHILLER-2", "equip":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "custom":{"equipGroup":"Chilled Water System"}},
{"id":{"_kind":"ref", "val":"c-004d", "dis":"c-004d"}, "chilled":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie CHILLER-2 CHWR~2dT", "entering":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-004c", "dis":"c-004c"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"New_York", "unit":"\u00b0F", "water":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-004e", "dis":"c-004e"}, "chilled":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie CHILLER-2 CHWS~2dT", "equipRef":{"_kind":"ref", "val":"c-004c", "dis":"c-004c"}, "his":{"_kind":"marker"}, "kind":"Number", "leaving":{"_kind":"marker"}, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"New_York", "unit":"\u00b0F", "water":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-004f", "dis":"c-004f"}, "chiller":{"_kind":"marker"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie CHILLER-2 Chiler-Override", "enable":{"_kind":"marker"}, "enum":"Off,On", "equipRef":{"_kind":"ref", "val":"c-004c", "dis":"c-004c"}, "his":{"_kind":"marker"}, "kind":"Bool", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York"},
{"id":{"_kind":"ref", "val":"c-0050", "dis":"c-0050"}, "cur":{"_kind":"marker"}, "current":{"_kind":"marker"}, "dis":"Charlie CHILLER-2 Chiller-2-Amps", "elec":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-004c", "dis":"c-004c"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York", "unit":"A", "custom":{"precision":1}},
{"id":{"_kind":"ref", "val":"c-0051", "dis":"c-0051"}, "chiller":{"_kind":"marker"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie CHILLER-2 Chiller-2-Command", "enable":{"_kind":"marker"}, "enum":"Off,On", "equipRef":{"_kind":"ref", "val":"c-004c", "dis":"c-004c"}, "his":{"_kind":"marker"}, "kind":"Bool", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York"},
{"id":{"_kind":"ref", "val":"c-0052", "dis":"c-0052"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie CHILLER-2 OAT-Chiller-Enable-SetPoint", "equipRef":{"_kind":"ref", "val":"c-004c", "dis":"c-004c"}, "his":{"_kind":"marker"}, "kind":"Number", "outside":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"New_York", "unit":"\u00b0F"},
{"id":{"_kind":"ref", "val":"c-0053", "dis":"c-0053"}, "ac":{"_kind":"marker"}, "dis":"Charlie CWS_Pump1_Meter", "elec":{"_kind":"marker"}, "equip":{"_kind":"marker"}, "meter":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "submeterOf":{"_kind":"ref", "val":"c-007d", "dis":"c-007d"}, "custom":{"equipGroup":"Meters"}},
{"id":{"_kind":"ref", "val":"c-0054", "dis":"c-0054"}, "cur":{"_kind":"marker"}, "current":{"_kind":"marker"}, "dis":"Charlie CWS_Pump1_Meter Current Sum Element N", "equipRef":{"_kind":"ref", "val":"c-0053", "dis":"c-0053"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"A"},
{"id":{"_kind":"ref", "val":"c-0055", "dis":"c-0055"}, "cur":{"_kind":"marker"}, "dis":"Charlie CWS_Pump1_Meter Power Demand Peak Element N", "elec":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0053", "dis":"c-0053"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "power":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"kW"},
{"id":{"_kind":"ref", "val":"c-0056", "dis":"c-0056"}, "cur":{"_kind":"marker"}, "dis":"Charlie CWS_Pump1_Meter Power Sum Element N", "elec":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0053", "dis":"c-0053"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "power":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"kW"},
{"id":{"_kind":"ref", "val":"c-0057", "dis":"c-0057"}, "cur":{"_kind":"marker"}, "dis":"Charlie CWS_Pump1_Meter VA Demand Peak Element N", "equipRef":{"_kind":"ref", "val":"c-0053", "dis":"c-0053"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "reactive":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"kVA"},
{"id":{"_kind":"ref", "val":"c-0058", "dis":"c-0058"}, "cur":{"_kind":"marker"}, "dis":"Charlie CWS_Pump1_Meter VA Sum Element N", "equipRef":{"_kind":"ref", "val":"c-0053", "dis":"c-0053"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "reactive":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"kVA"},
{"id":{"_kind":"ref", "val":"c-0059", "dis":"c-0059"}, "ac":{"_kind":"marker"}, "dis":"Charlie CWS_Pump2_Meter", "elec":{"_kind":"marker"}, "equip":{"_kind":"marker"}, "meter":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "submeterOf":{"_kind":"ref", "val":"c-007d", "dis":"c-007d"}, "custom":{"equipGroup":"Meters"}},
{"id":{"_kind":"ref", "val":"c-005a", "dis":"c-005a"}, "cur":{"_kind":"marker"}, "current":{"_kind":"marker"}, "dis":"Charlie CWS_Pump2_Meter Current Sum Element C", "equipRef":{"_kind":"ref", "val":"c-0059", "dis":"c-0059"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"A"},
{"id":{"_kind":"ref", "val":"c-005b", "dis":"c-005b"}, "cur":{"_kind":"marker"}, "dis":"Charlie CWS_Pump2_Meter Energy Net Sum Element C", "elec":{"_kind":"marker"}, "energy":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0059", "dis":"c-0059"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"kWh"},
{"id":{"_kind":"ref", "val":"c-005c", "dis":"c-005c"}, "cur":{"_kind":"marker"}, "dis":"Charlie CWS_Pump2_Meter Power Demand Peak Element C", "elec":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0059", "dis":"c-0059"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "power":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"kW"},
{"id":{"_kind":"ref", "val":"c-005d", "dis":"c-005d"}, "cur":{"_kind":"marker"}, "dis":"Charlie CWS_Pump2_Meter Power Sum Element C", "elec":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0059", "dis":"c-0059"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "power":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"kW"},
{"id":{"_kind":"ref", "val":"c-005e", "dis":"c-005e"}, "cur":{"_kind":"marker"}, "dis":"Charlie CWS_Pump2_Meter VA Demand Peak Element C", "equipRef":{"_kind":"ref", "val":"c-0059", "dis":"c-0059"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "reactive":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"kVA"},
{"id":{"_kind":"ref", "val":"c-005f", "dis":"c-005f"}, "ac":{"_kind":"marker"}, "dis":"Charlie Chiller1_Meter", "elec":{"_kind":"marker"}, "equip":{"_kind":"marker"}, "meter":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "submeterOf":{"_kind":"ref", "val":"c-007d", "dis":"c-007d"}, "custom":{"equipGroup":"Meters"}},
{"id":{"_kind":"ref", "val":"c-0060", "dis":"c-0060"}, "cur":{"_kind":"marker"}, "current":{"_kind":"marker"}, "dis":"Charlie Chiller1_Meter Current Sum Element D", "equipRef":{"_kind":"ref", "val":"c-005f", "dis":"c-005f"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"A"},
{"id":{"_kind":"ref", "val":"c-0061", "dis":"c-0061"}, "cur":{"_kind":"marker"}, "dis":"Charlie Chiller1_Meter Power Demand Peak Element D", "elec":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-005f", "dis":"c-005f"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "power":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"kW"},
{"id":{"_kind":"ref", "val":"c-0062", "dis":"c-0062"}, "cur":{"_kind":"marker"}, "dis":"Charlie Chiller1_Meter Power Sum Element D", "elec":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-005f", "dis":"c-005f"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "power":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"kW"},
{"id":{"_kind":"ref", "val":"c-0063", "dis":"c-0063"}, "cur":{"_kind":"marker"}, "dis":"Charlie Chiller1_Meter VA Demand Peak Element D", "equipRef":{"_kind":"ref", "val":"c-005f", "dis":"c-005f"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "reactive":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"kVA"},
{"id":{"_kind":"ref", "val":"c-0064", "dis":"c-0064"}, "cur":{"_kind":"marker"}, "dis":"Charlie Chiller1_Meter VA Sum Element D", "equipRef":{"_kind":"ref", "val":"c-005f", "dis":"c-005f"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "reactive":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"kVA"},
{"id":{"_kind":"ref", "val":"c-0065", "dis":"c-0065"}, "ac":{"_kind":"marker"}, "dis":"Charlie Chiller2_Meter", "elec":{"_kind":"marker"}, "equip":{"_kind":"marker"}, "meter":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "submeterOf":{"_kind":"ref", "val":"c-007d", "dis":"c-007d"}, "custom":{"equipGroup":"Meters"}},
{"id":{"_kind":"ref", "val":"c-0066", "dis":"c-0066"}, "cur":{"_kind":"marker"}, "current":{"_kind":"marker"}, "dis":"Charlie Chiller2_Meter Current Sum Element H", "equipRef":{"_kind":"ref", "val":"c-0065", "dis":"c-0065"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"A"},
{"id":{"_kind":"ref", "val":"c-0067", "dis":"c-0067"}, "cur":{"_kind":"marker"}, "dis":"Charlie Chiller2_Meter Power Demand Peak Element H", "elec":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0065", "dis":"c-0065"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "power":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"kW"},
{"id":{"_kind":"ref", "val":"c-0068", "dis":"c-0068"}, "cur":{"_kind":"marker"}, "dis":"Charlie Chiller2_Meter Power Sum Element H", "elec":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0065", "dis":"c-0065"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "power":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"kW"},
{"id":{"_kind":"ref", "val":"c-0069", "dis":"c-0069"}, "cur":{"_kind":"marker"}, "dis":"Charlie Chiller2_Meter VA Demand Peak Element H", "equipRef":{"_kind":"ref", "val":"c-0065", "dis":"c-0065"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "reactive":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"kVA"},
{"id":{"_kind":"ref", "val":"c-006a", "dis":"c-006a"}, "cur":{"_kind":"marker"}, "dis":"Charlie Chiller2_Meter VA Sum Element H", "equipRef":{"_kind":"ref", "val":"c-0065", "dis":"c-0065"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "reactive":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"kVA"},
{"id":{"_kind":"ref", "val":"c-006b", "dis":"c-006b"}, "ac":{"_kind":"marker"}, "dis":"Charlie Cooling_Tower_Meter", "elec":{"_kind":"marker"}, "equip":{"_kind":"marker"}, "meter":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "submeterOf":{"_kind":"ref", "val":"c-007d", "dis":"c-007d"}, "custom":{"equipGroup":"Meters"}},
{"id":{"_kind":"ref", "val":"c-006c", "dis":"c-006c"}, "cur":{"_kind":"marker"}, "current":{"_kind":"marker"}, "dis":"Charlie Cooling_Tower_Meter Current Sum Element O", "equipRef":{"_kind":"ref", "val":"c-006b", "dis":"c-006b"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"A"},
{"id":{"_kind":"ref", "val":"c-006d", "dis":"c-006d"}, "cur":{"_kind":"marker"}, "dis":"Charlie Cooling_Tower_Meter Power Demand Peak Element O", "elec":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-006b", "dis":"c-006b"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "power":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"kW"},
{"id":{"_kind":"ref", "val":"c-006e", "dis":"c-006e"}, "cur":{"_kind":"marker"}, "dis":"Charlie Cooling_Tower_Meter Power Sum Element O", "elec":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-006b", "dis":"c-006b"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "power":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"kW"},
{"id":{"_kind":"ref", "val":"c-006f", "dis":"c-006f"}, "cur":{"_kind":"marker"}, "dis":"Charlie Cooling_Tower_Meter VA Demand Peak Element O", "equipRef":{"_kind":"ref", "val":"c-006b", "dis":"c-006b"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "reactive":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"kVA"},
{"id":{"_kind":"ref", "val":"c-0070", "dis":"c-0070"}, "cur":{"_kind":"marker"}, "dis":"Charlie Cooling_Tower_Meter VA Sum Element O", "equipRef":{"_kind":"ref", "val":"c-006b", "dis":"c-006b"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "reactive":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"kVA"},
{"id":{"_kind":"ref", "val":"c-0071", "dis":"c-0071"}, "ac":{"_kind":"marker"}, "airRef":{"_kind":"ref", "val":"c-0001", "dis":"c-0001"}, "dis":"Charlie East_Return_Fan_Meter", "elec":{"_kind":"marker"}, "equip":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0001", "dis":"c-0001"}, "meter":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "submeterOf":{"_kind":"ref", "val":"c-007d", "dis":"c-007d"}, "custom":{"equipGroup":"Meters"}},
{"id":{"_kind":"ref", "val":"c-0072", "dis":"c-0072"}, "cur":{"_kind":"marker"}, "current":{"_kind":"marker"}, "dis":"Charlie East_Return_Fan_Meter Current Sum Element K", "equipRef":{"_kind":"ref", "val":"c-0071", "dis":"c-0071"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"A"},
{"id":{"_kind":"ref", "val":"c-0073", "dis":"c-0073"}, "ac":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "demand":{"_kind":"marker"}, "dis":"Charlie East_Return_Fan_Meter Power Demand Peak Element K", "elec":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0071", "dis":"c-0071"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "power":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"kW"},
{"id":{"_kind":"ref", "val":"c-0074", "dis":"c-0074"}, "ac":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie East_Return_Fan_Meter Power Sum Element K", "elec":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0071", "dis":"c-0071"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "power":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"kW"},
{"id":{"_kind":"ref", "val":"c-0075", "dis":"c-0075"}, "cur":{"_kind":"marker"}, "dis":"Charlie East_Return_Fan_Meter VA Demand Peak Element K", "equipRef":{"_kind":"ref", "val":"c-0071", "dis":"c-0071"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "reactive":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"kVA"},
{"id":{"_kind":"ref", "val":"c-0076", "dis":"c-0076"}, "cur":{"_kind":"marker"}, "dis":"Charlie East_Return_Fan_Meter VA Sum Element K", "equipRef":{"_kind":"ref", "val":"c-0071", "dis":"c-0071"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "reactive":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"kVA"},
{"id":{"_kind":"ref", "val":"c-0077", "dis":"c-0077"}, "ac":{"_kind":"marker"}, "airRef":{"_kind":"ref", "val":"c-0001", "dis":"c-0001"}, "dis":"Charlie East_Supply_Fan_Meter", "elec":{"_kind":"marker"}, "equip":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0001", "dis":"c-0001"}, "meter":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "submeterOf":{"_kind":"ref", "val":"c-007d", "dis":"c-007d"}, "custom":{"equipGroup":"Meters"}},
{"id":{"_kind":"ref", "val":"c-0078", "dis":"c-0078"}, "cur":{"_kind":"marker"}, "current":{"_kind":"marker"}, "dis":"Charlie East_Supply_Fan_Meter Current Sum Element L", "equipRef":{"_kind":"ref", "val":"c-0077", "dis":"c-0077"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"A"},
{"id":{"_kind":"ref", "val":"c-0079", "dis":"c-0079"}, "ac":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "demand":{"_kind":"marker"}, "dis":"Charlie East_Supply_Fan_Meter Power Demand Peak Element L", "elec":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0077", "dis":"c-0077"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "power":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"kW"},
{"id":{"_kind":"ref", "val":"c-007a", "dis":"c-007a"}, "ac":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie East_Supply_Fan_Meter Power Sum Element L", "elec":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0077", "dis":"c-0077"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "power":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"kW"},
{"id":{"_kind":"ref", "val":"c-007b", "dis":"c-007b"}, "cur":{"_kind":"marker"}, "dis":"Charlie East_Supply_Fan_Meter VA Demand Peak Element L", "equipRef":{"_kind":"ref", "val":"c-0077", "dis":"c-0077"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "reactive":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"kVA"},
{"id":{"_kind":"ref", "val":"c-007c", "dis":"c-007c"}, "cur":{"_kind":"marker"}, "dis":"Charlie East_Supply_Fan_Meter VA Sum Element L", "equipRef":{"_kind":"ref", "val":"c-0077", "dis":"c-0077"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "reactive":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"kVA"},
{"id":{"_kind":"ref", "val":"c-007d", "dis":"c-007d"}, "ac":{"_kind":"marker"}, "dis":"Charlie Elec_Main_100_Meter", "elec":{"_kind":"marker"}, "equip":{"_kind":"marker"}, "meter":{"_kind":"marker"}, "siteMeter":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "custom":{"equipGroup":"Meters"}},
{"id":{"_kind":"ref", "val":"c-007e", "dis":"c-007e"}, "ac":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "demand":{"_kind":"marker"}, "dis":"Charlie Elec_Main_100_Meter kW System", "elec":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-007d", "dis":"c-007d"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "power":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"kW"},
{"id":{"_kind":"ref", "val":"c-007f", "dis":"c-007f"}, "ac":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Elec_Main_100_Meter kWh System Total", "elec":{"_kind":"marker"}, "energy":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-007d", "dis":"c-007d"}, "his":{"_kind":"marker"}, "hisTotalized":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"kWh", "custom":{"pointType":""}},
{"id":{"_kind":"ref", "val":"c-0080", "dis":"c-0080"}, "ac":{"_kind":"marker"}, "dis":"Charlie Floor-4 400L-Meter", "elec":{"_kind":"marker"}, "equip":{"_kind":"marker"}, "meter":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "submeterOf":{"_kind":"ref", "val":"c-007d", "dis":"c-007d"}, "custom":{"equipGroup":"Meters"}},
{"id":{"_kind":"ref", "val":"c-0081", "dis":"c-0081"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 400L-Meter Energy Total", "elec":{"_kind":"marker"}, "energy":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0080", "dis":"c-0080"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"kWh"},
{"id":{"_kind":"ref", "val":"c-0082", "dis":"c-0082"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 400L-Meter Line Voltage AB", "equipRef":{"_kind":"ref", "val":"c-0080", "dis":"c-0080"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"V"},
{"id":{"_kind":"ref", "val":"c-0083", "dis":"c-0083"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 400L-Meter Line Voltage BC", "equipRef":{"_kind":"ref", "val":"c-0080", "dis":"c-0080"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"V"},
{"id":{"_kind":"ref", "val":"c-0084", "dis":"c-0084"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 400L-Meter Line Voltage CA", "equipRef":{"_kind":"ref", "val":"c-0080", "dis":"c-0080"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"V"},
{"id":{"_kind":"ref", "val":"c-0085", "dis":"c-0085"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 400L-Meter Total Active Power", "elec":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0080", "dis":"c-0080"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "power":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"kW"},
{"id":{"_kind":"ref", "val":"c-0086", "dis":"c-0086"}, "ac":{"_kind":"marker"}, "dis":"Charlie Floor-4 400R-Meter", "elec":{"_kind":"marker"}, "equip":{"_kind":"marker"}, "meter":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "submeterOf":{"_kind":"ref", "val":"c-007d", "dis":"c-007d"}, "custom":{"equipGroup":"Meters"}},
{"id":{"_kind":"ref", "val":"c-0087", "dis":"c-0087"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 400R-Meter Energy Total", "elec":{"_kind":"marker"}, "energy":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0086", "dis":"c-0086"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"kWh"},
{"id":{"_kind":"ref", "val":"c-0088", "dis":"c-0088"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 400R-Meter Line Voltage AB", "equipRef":{"_kind":"ref", "val":"c-0086", "dis":"c-0086"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"V"},
{"id":{"_kind":"ref", "val":"c-0089", "dis":"c-0089"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 400R-Meter Line Voltage BC", "equipRef":{"_kind":"ref", "val":"c-0086", "dis":"c-0086"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"V"},
{"id":{"_kind":"ref", "val":"c-008a", "dis":"c-008a"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 400R-Meter Line Voltage CA", "equipRef":{"_kind":"ref", "val":"c-0086", "dis":"c-0086"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"V"},
{"id":{"_kind":"ref", "val":"c-008b", "dis":"c-008b"}, "dis":"Charlie Floor-4 400R-Meter Offline Meter", "equipRef":{"_kind":"ref", "val":"c-0086", "dis":"c-0086"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "custom":{"offlineMeter":{"_kind":"marker"}}},
{"id":{"_kind":"ref", "val":"c-008c", "dis":"c-008c"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 400R-Meter Total Active Power", "elec":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0086", "dis":"c-0086"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "power":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"kW"},
{"id":{"_kind":"ref", "val":"c-008d", "dis":"c-008d"}, "dis":"Charlie Floor-4 VAV_1", "equip":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "vav":{"_kind":"marker"}, "custom":{"equipGroup":"VAVs"}},
{"id":{"_kind":"ref", "val":"c-008e", "dis":"c-008e"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "damper":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_1 dpr_pos", "equipRef":{"_kind":"ref", "val":"c-008d", "dis":"c-008d"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%"},
{"id":{"_kind":"ref", "val":"c-008f", "dis":"c-008f"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_1 eff_cl_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-008d", "dis":"c-008d"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0090", "dis":"c-0090"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_1 eff_ht_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-008d", "dis":"c-008d"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0091", "dis":"c-0091"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_1 flow_input", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-008d", "dis":"c-008d"}, "flow":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":96, "minVal":45, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"cfm", "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-0092", "dis":"c-0092"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_1 hw_valve", "equipRef":{"_kind":"ref", "val":"c-008d", "dis":"c-008d"}, "heat":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":100, "minVal":0, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%", "valve":{"_kind":"marker"}, "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-0093", "dis":"c-0093"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_1 link_ahu_mode", "enum":"OFF,WARM$2dUP,HEAT,COOL,FREECOOL,PRESSURIZE,EVACUATE,VENT", "equipRef":{"_kind":"ref", "val":"c-008d", "dis":"c-008d"}, "his":{"_kind":"marker"}, "kind":"Str", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-0094", "dis":"c-0094"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_1 occ_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-008d", "dis":"c-008d"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0095", "dis":"c-0095"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_1 occ_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-008d", "dis":"c-008d"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0096", "dis":"c-0096"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_1 occ_status", "enum":"Unoccupied,Occupied", "equipRef":{"_kind":"ref", "val":"c-008d", "dis":"c-008d"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-0097", "dis":"c-0097"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_1 occ_switch", "enum":"Open,Closed", "equipRef":{"_kind":"ref", "val":"c-008d", "dis":"c-008d"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-0098", "dis":"c-0098"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_1 sa_temp", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-008d", "dis":"c-008d"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F"},
{"id":{"_kind":"ref", "val":"c-0099", "dis":"c-0099"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_1 space_temp", "equipRef":{"_kind":"ref", "val":"c-008d", "dis":"c-008d"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-009a", "dis":"c-009a"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_1 terminal_status", "enum":"Off,Heating,Warm$2dUp,Vent,N$2fA,Cooling,Dehumidify,Reheat,Pressurize,Evacuate,Shutdown,IAQ$20Override,Air$20Balancing", "equipRef":{"_kind":"ref", "val":"c-008d", "dis":"c-008d"}, "his":{"_kind":"marker"}, "kind":"Str", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-009b", "dis":"c-009b"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_1 unocc_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-008d", "dis":"c-008d"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-009c", "dis":"c-009c"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_1 unocc_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-008d", "dis":"c-008d"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-009d", "dis":"c-009d"}, "dis":"Charlie Floor-4 VAV_10", "equip":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "vav":{"_kind":"marker"}, "custom":{"equipGroup":"VAVs"}},
{"id":{"_kind":"ref", "val":"c-009e", "dis":"c-009e"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "damper":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_10 dpr_pos", "equipRef":{"_kind":"ref", "val":"c-009d", "dis":"c-009d"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%"},
{"id":{"_kind":"ref", "val":"c-009f", "dis":"c-009f"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_10 eff_cl_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-009d", "dis":"c-009d"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00a0", "dis":"c-00a0"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_10 eff_ht_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-009d", "dis":"c-009d"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00a1", "dis":"c-00a1"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_10 flow_input", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-009d", "dis":"c-009d"}, "flow":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":96, "minVal":45, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"cfm", "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-00a2", "dis":"c-00a2"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_10 hw_valve", "equipRef":{"_kind":"ref", "val":"c-009d", "dis":"c-009d"}, "heat":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":100, "minVal":0, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%", "valve":{"_kind":"marker"}, "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-00a3", "dis":"c-00a3"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_10 occ_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-009d", "dis":"c-009d"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00a4", "dis":"c-00a4"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_10 occ_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-009d", "dis":"c-009d"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00a5", "dis":"c-00a5"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_10 occ_status", "enum":"Unoccupied,Occupied", "equipRef":{"_kind":"ref", "val":"c-009d", "dis":"c-009d"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-00a6", "dis":"c-00a6"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_10 occ_switch", "enum":"Open,Closed", "equipRef":{"_kind":"ref", "val":"c-009d", "dis":"c-009d"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-00a7", "dis":"c-00a7"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_10 sa_temp", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-009d", "dis":"c-009d"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F"},
{"id":{"_kind":"ref", "val":"c-00a8", "dis":"c-00a8"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_10 space_temp", "equipRef":{"_kind":"ref", "val":"c-009d", "dis":"c-009d"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00a9", "dis":"c-00a9"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_10 unocc_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-009d", "dis":"c-009d"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00aa", "dis":"c-00aa"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_10 unocc_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-009d", "dis":"c-009d"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00ab", "dis":"c-00ab"}, "dis":"Charlie Floor-4 VAV_11", "equip":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "vav":{"_kind":"marker"}, "custom":{"equipGroup":"VAVs"}},
{"id":{"_kind":"ref", "val":"c-00ac", "dis":"c-00ac"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "damper":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_11 dpr_pos", "equipRef":{"_kind":"ref", "val":"c-00ab", "dis":"c-00ab"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%"},
{"id":{"_kind":"ref", "val":"c-00ad", "dis":"c-00ad"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_11 eff_cl_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-00ab", "dis":"c-00ab"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00ae", "dis":"c-00ae"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_11 eff_ht_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-00ab", "dis":"c-00ab"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00af", "dis":"c-00af"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_11 flow_input", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-00ab", "dis":"c-00ab"}, "flow":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":96, "minVal":45, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"cfm", "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-00b0", "dis":"c-00b0"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_11 hw_valve", "equipRef":{"_kind":"ref", "val":"c-00ab", "dis":"c-00ab"}, "heat":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":100, "minVal":0, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%", "valve":{"_kind":"marker"}, "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-00b1", "dis":"c-00b1"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_11 occ_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-00ab", "dis":"c-00ab"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00b2", "dis":"c-00b2"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_11 occ_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-00ab", "dis":"c-00ab"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00b3", "dis":"c-00b3"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_11 occ_status", "enum":"Unoccupied,Occupied", "equipRef":{"_kind":"ref", "val":"c-00ab", "dis":"c-00ab"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-00b4", "dis":"c-00b4"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_11 occ_switch", "enum":"Open,Closed", "equipRef":{"_kind":"ref", "val":"c-00ab", "dis":"c-00ab"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-00b5", "dis":"c-00b5"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_11 sa_temp", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-00ab", "dis":"c-00ab"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F"},
{"id":{"_kind":"ref", "val":"c-00b6", "dis":"c-00b6"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_11 space_temp", "equipRef":{"_kind":"ref", "val":"c-00ab", "dis":"c-00ab"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00b7", "dis":"c-00b7"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_11 unocc_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-00ab", "dis":"c-00ab"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00b8", "dis":"c-00b8"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_11 unocc_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-00ab", "dis":"c-00ab"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00b9", "dis":"c-00b9"}, "dis":"Charlie Floor-4 VAV_12", "equip":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "vav":{"_kind":"marker"}, "custom":{"equipGroup":"VAVs"}},
{"id":{"_kind":"ref", "val":"c-00ba", "dis":"c-00ba"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "damper":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_12 dpr_pos", "equipRef":{"_kind":"ref", "val":"c-00b9", "dis":"c-00b9"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%"},
{"id":{"_kind":"ref", "val":"c-00bb", "dis":"c-00bb"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_12 eff_cl_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-00b9", "dis":"c-00b9"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00bc", "dis":"c-00bc"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_12 eff_ht_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-00b9", "dis":"c-00b9"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00bd", "dis":"c-00bd"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_12 flow_input", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-00b9", "dis":"c-00b9"}, "flow":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":96, "minVal":45, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"cfm", "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-00be", "dis":"c-00be"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_12 hw_valve", "equipRef":{"_kind":"ref", "val":"c-00b9", "dis":"c-00b9"}, "heat":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":100, "minVal":0, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%", "valve":{"_kind":"marker"}, "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-00bf", "dis":"c-00bf"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_12 occ_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-00b9", "dis":"c-00b9"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00c0", "dis":"c-00c0"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_12 occ_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-00b9", "dis":"c-00b9"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00c1", "dis":"c-00c1"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_12 occ_status", "enum":"Unoccupied,Occupied", "equipRef":{"_kind":"ref", "val":"c-00b9", "dis":"c-00b9"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-00c2", "dis":"c-00c2"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_12 occ_switch", "enum":"Open,Closed", "equipRef":{"_kind":"ref", "val":"c-00b9", "dis":"c-00b9"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-00c3", "dis":"c-00c3"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_12 sa_temp", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-00b9", "dis":"c-00b9"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F"},
{"id":{"_kind":"ref", "val":"c-00c4", "dis":"c-00c4"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_12 space_temp", "equipRef":{"_kind":"ref", "val":"c-00b9", "dis":"c-00b9"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00c5", "dis":"c-00c5"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_12 unocc_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-00b9", "dis":"c-00b9"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00c6", "dis":"c-00c6"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_12 unocc_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-00b9", "dis":"c-00b9"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00c7", "dis":"c-00c7"}, "dis":"Charlie Floor-4 VAV_13", "equip":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "vav":{"_kind":"marker"}, "custom":{"equipGroup":"VAVs"}},
{"id":{"_kind":"ref", "val":"c-00c8", "dis":"c-00c8"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "damper":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_13 dpr_pos", "equipRef":{"_kind":"ref", "val":"c-00c7", "dis":"c-00c7"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%"},
{"id":{"_kind":"ref", "val":"c-00c9", "dis":"c-00c9"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_13 eff_cl_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-00c7", "dis":"c-00c7"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00ca", "dis":"c-00ca"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_13 eff_ht_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-00c7", "dis":"c-00c7"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00cb", "dis":"c-00cb"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_13 flow_input", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-00c7", "dis":"c-00c7"}, "flow":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":96, "minVal":45, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"cfm", "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-00cc", "dis":"c-00cc"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_13 hw_valve", "equipRef":{"_kind":"ref", "val":"c-00c7", "dis":"c-00c7"}, "heat":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":100, "minVal":0, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%", "valve":{"_kind":"marker"}, "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-00cd", "dis":"c-00cd"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_13 occ_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-00c7", "dis":"c-00c7"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00ce", "dis":"c-00ce"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_13 occ_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-00c7", "dis":"c-00c7"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00cf", "dis":"c-00cf"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_13 occ_status", "enum":"Unoccupied,Occupied", "equipRef":{"_kind":"ref", "val":"c-00c7", "dis":"c-00c7"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-00d0", "dis":"c-00d0"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_13 occ_switch", "enum":"Open,Closed", "equipRef":{"_kind":"ref", "val":"c-00c7", "dis":"c-00c7"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-00d1", "dis":"c-00d1"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_13 sa_temp", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-00c7", "dis":"c-00c7"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F"},
{"id":{"_kind":"ref", "val":"c-00d2", "dis":"c-00d2"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_13 space_temp", "equipRef":{"_kind":"ref", "val":"c-00c7", "dis":"c-00c7"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00d3", "dis":"c-00d3"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_13 unocc_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-00c7", "dis":"c-00c7"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00d4", "dis":"c-00d4"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_13 unocc_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-00c7", "dis":"c-00c7"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00d5", "dis":"c-00d5"}, "dis":"Charlie Floor-4 VAV_14", "equip":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "vav":{"_kind":"marker"}, "custom":{"equipGroup":"VAVs"}},
{"id":{"_kind":"ref", "val":"c-00d6", "dis":"c-00d6"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "damper":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_14 dpr_pos", "equipRef":{"_kind":"ref", "val":"c-00d5", "dis":"c-00d5"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%"},
{"id":{"_kind":"ref", "val":"c-00d7", "dis":"c-00d7"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_14 eff_cl_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-00d5", "dis":"c-00d5"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00d8", "dis":"c-00d8"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_14 eff_ht_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-00d5", "dis":"c-00d5"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00d9", "dis":"c-00d9"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_14 flow_input", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-00d5", "dis":"c-00d5"}, "flow":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":96, "minVal":45, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"cfm", "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-00da", "dis":"c-00da"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_14 hw_valve", "equipRef":{"_kind":"ref", "val":"c-00d5", "dis":"c-00d5"}, "heat":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":100, "minVal":0, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%", "valve":{"_kind":"marker"}, "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-00db", "dis":"c-00db"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_14 occ_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-00d5", "dis":"c-00d5"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00dc", "dis":"c-00dc"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_14 occ_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-00d5", "dis":"c-00d5"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00dd", "dis":"c-00dd"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_14 occ_status", "enum":"Unoccupied,Occupied", "equipRef":{"_kind":"ref", "val":"c-00d5", "dis":"c-00d5"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-00de", "dis":"c-00de"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_14 occ_switch", "enum":"Open,Closed", "equipRef":{"_kind":"ref", "val":"c-00d5", "dis":"c-00d5"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-00df", "dis":"c-00df"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_14 sa_temp", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-00d5", "dis":"c-00d5"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F"},
{"id":{"_kind":"ref", "val":"c-00e0", "dis":"c-00e0"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_14 space_temp", "equipRef":{"_kind":"ref", "val":"c-00d5", "dis":"c-00d5"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00e1", "dis":"c-00e1"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_14 unocc_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-00d5", "dis":"c-00d5"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00e2", "dis":"c-00e2"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_14 unocc_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-00d5", "dis":"c-00d5"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00e3", "dis":"c-00e3"}, "dis":"Charlie Floor-4 VAV_15", "equip":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "vav":{"_kind":"marker"}, "custom":{"equipGroup":"VAVs"}},
{"id":{"_kind":"ref", "val":"c-00e4", "dis":"c-00e4"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "damper":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_15 dpr_pos", "equipRef":{"_kind":"ref", "val":"c-00e3", "dis":"c-00e3"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%"},
{"id":{"_kind":"ref", "val":"c-00e5", "dis":"c-00e5"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_15 eff_cl_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-00e3", "dis":"c-00e3"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00e6", "dis":"c-00e6"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_15 eff_ht_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-00e3", "dis":"c-00e3"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00e7", "dis":"c-00e7"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_15 flow_input", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-00e3", "dis":"c-00e3"}, "flow":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":96, "minVal":45, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"cfm", "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-00e8", "dis":"c-00e8"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_15 hw_valve", "equipRef":{"_kind":"ref", "val":"c-00e3", "dis":"c-00e3"}, "heat":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":100, "minVal":0, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%", "valve":{"_kind":"marker"}, "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-00e9", "dis":"c-00e9"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_15 occ_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-00e3", "dis":"c-00e3"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00ea", "dis":"c-00ea"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_15 occ_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-00e3", "dis":"c-00e3"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00eb", "dis":"c-00eb"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_15 occ_status", "enum":"Unoccupied,Occupied", "equipRef":{"_kind":"ref", "val":"c-00e3", "dis":"c-00e3"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-00ec", "dis":"c-00ec"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_15 occ_switch", "enum":"Open,Closed", "equipRef":{"_kind":"ref", "val":"c-00e3", "dis":"c-00e3"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-00ed", "dis":"c-00ed"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_15 sa_temp", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-00e3", "dis":"c-00e3"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F"},
{"id":{"_kind":"ref", "val":"c-00ee", "dis":"c-00ee"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_15 space_temp", "equipRef":{"_kind":"ref", "val":"c-00e3", "dis":"c-00e3"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00ef", "dis":"c-00ef"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_15 unocc_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-00e3", "dis":"c-00e3"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00f0", "dis":"c-00f0"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_15 unocc_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-00e3", "dis":"c-00e3"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00f1", "dis":"c-00f1"}, "dis":"Charlie Floor-4 VAV_16", "equip":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "vav":{"_kind":"marker"}, "custom":{"equipGroup":"VAVs"}},
{"id":{"_kind":"ref", "val":"c-00f2", "dis":"c-00f2"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "damper":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_16 dpr_pos", "equipRef":{"_kind":"ref", "val":"c-00f1", "dis":"c-00f1"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%"},
{"id":{"_kind":"ref", "val":"c-00f3", "dis":"c-00f3"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_16 eff_cl_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-00f1", "dis":"c-00f1"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00f4", "dis":"c-00f4"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_16 eff_ht_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-00f1", "dis":"c-00f1"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00f5", "dis":"c-00f5"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_16 flow_input", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-00f1", "dis":"c-00f1"}, "flow":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":96, "minVal":45, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"cfm", "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-00f6", "dis":"c-00f6"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_16 hw_valve", "equipRef":{"_kind":"ref", "val":"c-00f1", "dis":"c-00f1"}, "heat":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":100, "minVal":0, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%", "valve":{"_kind":"marker"}, "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-00f7", "dis":"c-00f7"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_16 occ_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-00f1", "dis":"c-00f1"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00f8", "dis":"c-00f8"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_16 occ_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-00f1", "dis":"c-00f1"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00f9", "dis":"c-00f9"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_16 occ_status", "enum":"Unoccupied,Occupied", "equipRef":{"_kind":"ref", "val":"c-00f1", "dis":"c-00f1"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-00fa", "dis":"c-00fa"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_16 occ_switch", "enum":"Open,Closed", "equipRef":{"_kind":"ref", "val":"c-00f1", "dis":"c-00f1"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-00fb", "dis":"c-00fb"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_16 sa_temp", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-00f1", "dis":"c-00f1"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F"},
{"id":{"_kind":"ref", "val":"c-00fc", "dis":"c-00fc"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_16 space_temp", "equipRef":{"_kind":"ref", "val":"c-00f1", "dis":"c-00f1"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00fd", "dis":"c-00fd"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_16 unocc_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-00f1", "dis":"c-00f1"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00fe", "dis":"c-00fe"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_16 unocc_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-00f1", "dis":"c-00f1"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-00ff", "dis":"c-00ff"}, "dis":"Charlie Floor-4 VAV_17", "equip":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "vav":{"_kind":"marker"}, "custom":{"equipGroup":"VAVs"}},
{"id":{"_kind":"ref", "val":"c-0100", "dis":"c-0100"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "damper":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_17 dpr_pos", "equipRef":{"_kind":"ref", "val":"c-00ff", "dis":"c-00ff"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%"},
{"id":{"_kind":"ref", "val":"c-0101", "dis":"c-0101"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_17 eff_cl_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-00ff", "dis":"c-00ff"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0102", "dis":"c-0102"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_17 eff_ht_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-00ff", "dis":"c-00ff"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0103", "dis":"c-0103"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_17 flow_input", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-00ff", "dis":"c-00ff"}, "flow":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":96, "minVal":45, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"cfm", "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-0104", "dis":"c-0104"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_17 hw_valve", "equipRef":{"_kind":"ref", "val":"c-00ff", "dis":"c-00ff"}, "heat":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":100, "minVal":0, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%", "valve":{"_kind":"marker"}, "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-0105", "dis":"c-0105"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_17 occ_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-00ff", "dis":"c-00ff"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0106", "dis":"c-0106"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_17 occ_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-00ff", "dis":"c-00ff"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0107", "dis":"c-0107"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_17 occ_status", "enum":"Unoccupied,Occupied", "equipRef":{"_kind":"ref", "val":"c-00ff", "dis":"c-00ff"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-0108", "dis":"c-0108"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_17 occ_switch", "enum":"Open,Closed", "equipRef":{"_kind":"ref", "val":"c-00ff", "dis":"c-00ff"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-0109", "dis":"c-0109"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_17 sa_temp", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-00ff", "dis":"c-00ff"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F"},
{"id":{"_kind":"ref", "val":"c-010a", "dis":"c-010a"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_17 space_temp", "equipRef":{"_kind":"ref", "val":"c-00ff", "dis":"c-00ff"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-010b", "dis":"c-010b"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_17 unocc_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-00ff", "dis":"c-00ff"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-010c", "dis":"c-010c"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_17 unocc_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-00ff", "dis":"c-00ff"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-010d", "dis":"c-010d"}, "dis":"Charlie Floor-4 VAV_18", "equip":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "vav":{"_kind":"marker"}, "custom":{"equipGroup":"VAVs"}},
{"id":{"_kind":"ref", "val":"c-010e", "dis":"c-010e"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "damper":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_18 dpr_pos", "equipRef":{"_kind":"ref", "val":"c-010d", "dis":"c-010d"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%"},
{"id":{"_kind":"ref", "val":"c-010f", "dis":"c-010f"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_18 eff_cl_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-010d", "dis":"c-010d"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0110", "dis":"c-0110"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_18 eff_ht_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-010d", "dis":"c-010d"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0111", "dis":"c-0111"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_18 flow_input", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-010d", "dis":"c-010d"}, "flow":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":96, "minVal":45, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"cfm", "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-0112", "dis":"c-0112"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_18 hw_valve", "equipRef":{"_kind":"ref", "val":"c-010d", "dis":"c-010d"}, "heat":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":100, "minVal":0, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%", "valve":{"_kind":"marker"}, "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-0113", "dis":"c-0113"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_18 occ_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-010d", "dis":"c-010d"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0114", "dis":"c-0114"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_18 occ_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-010d", "dis":"c-010d"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0115", "dis":"c-0115"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_18 occ_status", "enum":"Unoccupied,Occupied", "equipRef":{"_kind":"ref", "val":"c-010d", "dis":"c-010d"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-0116", "dis":"c-0116"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_18 occ_switch", "enum":"Open,Closed", "equipRef":{"_kind":"ref", "val":"c-010d", "dis":"c-010d"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-0117", "dis":"c-0117"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_18 sa_temp", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-010d", "dis":"c-010d"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F"},
{"id":{"_kind":"ref", "val":"c-0118", "dis":"c-0118"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_18 space_temp", "equipRef":{"_kind":"ref", "val":"c-010d", "dis":"c-010d"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0119", "dis":"c-0119"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_18 unocc_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-010d", "dis":"c-010d"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-011a", "dis":"c-011a"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_18 unocc_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-010d", "dis":"c-010d"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-011b", "dis":"c-011b"}, "dis":"Charlie Floor-4 VAV_19", "equip":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "vav":{"_kind":"marker"}, "custom":{"equipGroup":"VAVs"}},
{"id":{"_kind":"ref", "val":"c-011c", "dis":"c-011c"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "damper":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_19 dpr_pos", "equipRef":{"_kind":"ref", "val":"c-011b", "dis":"c-011b"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%"},
{"id":{"_kind":"ref", "val":"c-011d", "dis":"c-011d"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_19 eff_cl_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-011b", "dis":"c-011b"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-011e", "dis":"c-011e"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_19 eff_ht_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-011b", "dis":"c-011b"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-011f", "dis":"c-011f"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_19 flow_input", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-011b", "dis":"c-011b"}, "flow":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":96, "minVal":45, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"cfm", "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-0120", "dis":"c-0120"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_19 hw_valve", "equipRef":{"_kind":"ref", "val":"c-011b", "dis":"c-011b"}, "heat":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":100, "minVal":0, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%", "valve":{"_kind":"marker"}, "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-0121", "dis":"c-0121"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_19 occ_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-011b", "dis":"c-011b"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0122", "dis":"c-0122"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_19 occ_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-011b", "dis":"c-011b"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0123", "dis":"c-0123"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_19 occ_status", "enum":"Unoccupied,Occupied", "equipRef":{"_kind":"ref", "val":"c-011b", "dis":"c-011b"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-0124", "dis":"c-0124"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_19 occ_switch", "enum":"Open,Closed", "equipRef":{"_kind":"ref", "val":"c-011b", "dis":"c-011b"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-0125", "dis":"c-0125"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_19 sa_temp", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-011b", "dis":"c-011b"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F"},
{"id":{"_kind":"ref", "val":"c-0126", "dis":"c-0126"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_19 space_temp", "equipRef":{"_kind":"ref", "val":"c-011b", "dis":"c-011b"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0127", "dis":"c-0127"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_19 unocc_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-011b", "dis":"c-011b"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0128", "dis":"c-0128"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_19 unocc_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-011b", "dis":"c-011b"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0129", "dis":"c-0129"}, "dis":"Charlie Floor-4 VAV_2", "equip":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "vav":{"_kind":"marker"}, "custom":{"equipGroup":"VAVs"}},
{"id":{"_kind":"ref", "val":"c-012a", "dis":"c-012a"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "damper":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_2 dpr_pos", "equipRef":{"_kind":"ref", "val":"c-0129", "dis":"c-0129"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%"},
{"id":{"_kind":"ref", "val":"c-012b", "dis":"c-012b"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_2 eff_cl_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0129", "dis":"c-0129"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-012c", "dis":"c-012c"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_2 eff_ht_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0129", "dis":"c-0129"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-012d", "dis":"c-012d"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_2 flow_input", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0129", "dis":"c-0129"}, "flow":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":96, "minVal":45, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"cfm", "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-012e", "dis":"c-012e"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_2 hw_valve", "equipRef":{"_kind":"ref", "val":"c-0129", "dis":"c-0129"}, "heat":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":100, "minVal":0, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%", "valve":{"_kind":"marker"}, "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-012f", "dis":"c-012f"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_2 occ_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-0129", "dis":"c-0129"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0130", "dis":"c-0130"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_2 occ_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-0129", "dis":"c-0129"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0131", "dis":"c-0131"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_2 occ_status", "enum":"Unoccupied,Occupied", "equipRef":{"_kind":"ref", "val":"c-0129", "dis":"c-0129"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-0132", "dis":"c-0132"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_2 occ_switch", "enum":"Open,Closed", "equipRef":{"_kind":"ref", "val":"c-0129", "dis":"c-0129"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-0133", "dis":"c-0133"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_2 sa_temp", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0129", "dis":"c-0129"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F"},
{"id":{"_kind":"ref", "val":"c-0134", "dis":"c-0134"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_2 space_temp", "equipRef":{"_kind":"ref", "val":"c-0129", "dis":"c-0129"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0135", "dis":"c-0135"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_2 unocc_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-0129", "dis":"c-0129"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0136", "dis":"c-0136"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_2 unocc_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-0129", "dis":"c-0129"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0137", "dis":"c-0137"}, "dis":"Charlie Floor-4 VAV_20", "equip":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "vav":{"_kind":"marker"}, "custom":{"equipGroup":"VAVs"}},
{"id":{"_kind":"ref", "val":"c-0138", "dis":"c-0138"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "damper":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_20 dpr_pos", "equipRef":{"_kind":"ref", "val":"c-0137", "dis":"c-0137"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%"},
{"id":{"_kind":"ref", "val":"c-0139", "dis":"c-0139"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_20 eff_cl_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0137", "dis":"c-0137"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-013a", "dis":"c-013a"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_20 eff_ht_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0137", "dis":"c-0137"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-013b", "dis":"c-013b"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_20 flow_input", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0137", "dis":"c-0137"}, "flow":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":96, "minVal":45, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"cfm", "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-013c", "dis":"c-013c"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_20 hw_valve", "equipRef":{"_kind":"ref", "val":"c-0137", "dis":"c-0137"}, "heat":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":100, "minVal":0, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%", "valve":{"_kind":"marker"}, "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-013d", "dis":"c-013d"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_20 occ_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-0137", "dis":"c-0137"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-013e", "dis":"c-013e"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_20 occ_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-0137", "dis":"c-0137"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-013f", "dis":"c-013f"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_20 occ_status", "enum":"Unoccupied,Occupied", "equipRef":{"_kind":"ref", "val":"c-0137", "dis":"c-0137"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-0140", "dis":"c-0140"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_20 occ_switch", "enum":"Open,Closed", "equipRef":{"_kind":"ref", "val":"c-0137", "dis":"c-0137"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-0141", "dis":"c-0141"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_20 sa_temp", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0137", "dis":"c-0137"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F"},
{"id":{"_kind":"ref", "val":"c-0142", "dis":"c-0142"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_20 space_temp", "equipRef":{"_kind":"ref", "val":"c-0137", "dis":"c-0137"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0143", "dis":"c-0143"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_20 unocc_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-0137", "dis":"c-0137"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0144", "dis":"c-0144"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_20 unocc_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-0137", "dis":"c-0137"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0145", "dis":"c-0145"}, "dis":"Charlie Floor-4 VAV_21", "equip":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "vav":{"_kind":"marker"}, "custom":{"equipGroup":"VAVs"}},
{"id":{"_kind":"ref", "val":"c-0146", "dis":"c-0146"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "damper":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_21 dpr_pos", "equipRef":{"_kind":"ref", "val":"c-0145", "dis":"c-0145"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%"},
{"id":{"_kind":"ref", "val":"c-0147", "dis":"c-0147"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_21 eff_cl_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0145", "dis":"c-0145"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0148", "dis":"c-0148"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_21 eff_ht_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0145", "dis":"c-0145"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0149", "dis":"c-0149"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_21 flow_input", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0145", "dis":"c-0145"}, "flow":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":96, "minVal":45, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"cfm", "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-014a", "dis":"c-014a"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_21 hw_valve", "equipRef":{"_kind":"ref", "val":"c-0145", "dis":"c-0145"}, "heat":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":100, "minVal":0, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%", "valve":{"_kind":"marker"}, "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-014b", "dis":"c-014b"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_21 occ_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-0145", "dis":"c-0145"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-014c", "dis":"c-014c"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_21 occ_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-0145", "dis":"c-0145"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-014d", "dis":"c-014d"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_21 occ_status", "enum":"Unoccupied,Occupied", "equipRef":{"_kind":"ref", "val":"c-0145", "dis":"c-0145"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-014e", "dis":"c-014e"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_21 occ_switch", "enum":"Open,Closed", "equipRef":{"_kind":"ref", "val":"c-0145", "dis":"c-0145"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-014f", "dis":"c-014f"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_21 sa_temp", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0145", "dis":"c-0145"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F"},
{"id":{"_kind":"ref", "val":"c-0150", "dis":"c-0150"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_21 space_temp", "equipRef":{"_kind":"ref", "val":"c-0145", "dis":"c-0145"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0151", "dis":"c-0151"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_21 unocc_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-0145", "dis":"c-0145"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0152", "dis":"c-0152"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_21 unocc_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-0145", "dis":"c-0145"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0153", "dis":"c-0153"}, "dis":"Charlie Floor-4 VAV_22", "equip":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "vav":{"_kind":"marker"}, "custom":{"equipGroup":"VAVs"}},
{"id":{"_kind":"ref", "val":"c-0154", "dis":"c-0154"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "damper":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_22 dpr_pos", "equipRef":{"_kind":"ref", "val":"c-0153", "dis":"c-0153"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%"},
{"id":{"_kind":"ref", "val":"c-0155", "dis":"c-0155"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_22 eff_cl_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0153", "dis":"c-0153"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0156", "dis":"c-0156"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_22 eff_ht_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0153", "dis":"c-0153"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0157", "dis":"c-0157"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_22 flow_input", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0153", "dis":"c-0153"}, "flow":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":96, "minVal":45, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"cfm", "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-0158", "dis":"c-0158"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_22 hw_valve", "equipRef":{"_kind":"ref", "val":"c-0153", "dis":"c-0153"}, "heat":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":100, "minVal":0, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%", "valve":{"_kind":"marker"}, "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-0159", "dis":"c-0159"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_22 occ_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-0153", "dis":"c-0153"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-015a", "dis":"c-015a"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_22 occ_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-0153", "dis":"c-0153"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-015b", "dis":"c-015b"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_22 occ_status", "enum":"Unoccupied,Occupied", "equipRef":{"_kind":"ref", "val":"c-0153", "dis":"c-0153"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-015c", "dis":"c-015c"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_22 occ_switch", "enum":"Open,Closed", "equipRef":{"_kind":"ref", "val":"c-0153", "dis":"c-0153"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-015d", "dis":"c-015d"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_22 sa_temp", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0153", "dis":"c-0153"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F"},
{"id":{"_kind":"ref", "val":"c-015e", "dis":"c-015e"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_22 space_temp", "equipRef":{"_kind":"ref", "val":"c-0153", "dis":"c-0153"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-015f", "dis":"c-015f"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_22 unocc_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-0153", "dis":"c-0153"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0160", "dis":"c-0160"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_22 unocc_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-0153", "dis":"c-0153"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0161", "dis":"c-0161"}, "dis":"Charlie Floor-4 VAV_23", "equip":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "vav":{"_kind":"marker"}, "custom":{"equipGroup":"VAVs"}},
{"id":{"_kind":"ref", "val":"c-0162", "dis":"c-0162"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "damper":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_23 dpr_pos", "equipRef":{"_kind":"ref", "val":"c-0161", "dis":"c-0161"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%"},
{"id":{"_kind":"ref", "val":"c-0163", "dis":"c-0163"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_23 eff_cl_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0161", "dis":"c-0161"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0164", "dis":"c-0164"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_23 eff_ht_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0161", "dis":"c-0161"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0165", "dis":"c-0165"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_23 flow_input", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0161", "dis":"c-0161"}, "flow":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":96, "minVal":45, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"cfm", "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-0166", "dis":"c-0166"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_23 hw_valve", "equipRef":{"_kind":"ref", "val":"c-0161", "dis":"c-0161"}, "heat":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":100, "minVal":0, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%", "valve":{"_kind":"marker"}, "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-0167", "dis":"c-0167"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_23 occ_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-0161", "dis":"c-0161"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0168", "dis":"c-0168"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_23 occ_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-0161", "dis":"c-0161"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0169", "dis":"c-0169"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_23 occ_status", "enum":"Unoccupied,Occupied", "equipRef":{"_kind":"ref", "val":"c-0161", "dis":"c-0161"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-016a", "dis":"c-016a"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_23 occ_switch", "enum":"Open,Closed", "equipRef":{"_kind":"ref", "val":"c-0161", "dis":"c-0161"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-016b", "dis":"c-016b"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_23 sa_temp", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0161", "dis":"c-0161"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F"},
{"id":{"_kind":"ref", "val":"c-016c", "dis":"c-016c"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_23 space_temp", "equipRef":{"_kind":"ref", "val":"c-0161", "dis":"c-0161"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-016d", "dis":"c-016d"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_23 unocc_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-0161", "dis":"c-0161"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-016e", "dis":"c-016e"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_23 unocc_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-0161", "dis":"c-0161"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-016f", "dis":"c-016f"}, "dis":"Charlie Floor-4 VAV_24", "equip":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "vav":{"_kind":"marker"}, "custom":{"equipGroup":"VAVs"}},
{"id":{"_kind":"ref", "val":"c-0170", "dis":"c-0170"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "damper":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_24 dpr_pos", "equipRef":{"_kind":"ref", "val":"c-016f", "dis":"c-016f"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%"},
{"id":{"_kind":"ref", "val":"c-0171", "dis":"c-0171"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_24 eff_cl_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-016f", "dis":"c-016f"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0172", "dis":"c-0172"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_24 eff_ht_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-016f", "dis":"c-016f"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0173", "dis":"c-0173"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_24 flow_input", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-016f", "dis":"c-016f"}, "flow":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":96, "minVal":45, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"cfm", "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-0174", "dis":"c-0174"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_24 hw_valve", "equipRef":{"_kind":"ref", "val":"c-016f", "dis":"c-016f"}, "heat":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":100, "minVal":0, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%", "valve":{"_kind":"marker"}, "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-0175", "dis":"c-0175"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_24 occ_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-016f", "dis":"c-016f"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0176", "dis":"c-0176"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_24 occ_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-016f", "dis":"c-016f"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0177", "dis":"c-0177"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_24 occ_status", "enum":"Unoccupied,Occupied", "equipRef":{"_kind":"ref", "val":"c-016f", "dis":"c-016f"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-0178", "dis":"c-0178"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_24 occ_switch", "enum":"Open,Closed", "equipRef":{"_kind":"ref", "val":"c-016f", "dis":"c-016f"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-0179", "dis":"c-0179"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_24 sa_temp", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-016f", "dis":"c-016f"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F"},
{"id":{"_kind":"ref", "val":"c-017a", "dis":"c-017a"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_24 space_temp", "equipRef":{"_kind":"ref", "val":"c-016f", "dis":"c-016f"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-017b", "dis":"c-017b"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_24 unocc_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-016f", "dis":"c-016f"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-017c", "dis":"c-017c"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_24 unocc_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-016f", "dis":"c-016f"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-017d", "dis":"c-017d"}, "dis":"Charlie Floor-4 VAV_25", "equip":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "vav":{"_kind":"marker"}, "custom":{"equipGroup":"VAVs"}},
{"id":{"_kind":"ref", "val":"c-017e", "dis":"c-017e"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "damper":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_25 dpr_pos", "equipRef":{"_kind":"ref", "val":"c-017d", "dis":"c-017d"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%"},
{"id":{"_kind":"ref", "val":"c-017f", "dis":"c-017f"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_25 eff_cl_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-017d", "dis":"c-017d"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0180", "dis":"c-0180"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_25 eff_ht_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-017d", "dis":"c-017d"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0181", "dis":"c-0181"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_25 flow_input", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-017d", "dis":"c-017d"}, "flow":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":96, "minVal":45, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"cfm", "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-0182", "dis":"c-0182"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_25 hw_valve", "equipRef":{"_kind":"ref", "val":"c-017d", "dis":"c-017d"}, "heat":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":100, "minVal":0, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%", "valve":{"_kind":"marker"}, "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-0183", "dis":"c-0183"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_25 link_ahu_mode", "enum":"OFF,WARM$2dUP,HEAT,COOL,FREECOOL,PRESSURIZE,EVACUATE,VENT", "equipRef":{"_kind":"ref", "val":"c-017d", "dis":"c-017d"}, "his":{"_kind":"marker"}, "kind":"Str", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-0184", "dis":"c-0184"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_25 occ_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-017d", "dis":"c-017d"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0185", "dis":"c-0185"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_25 occ_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-017d", "dis":"c-017d"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0186", "dis":"c-0186"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_25 occ_status", "enum":"Unoccupied,Occupied", "equipRef":{"_kind":"ref", "val":"c-017d", "dis":"c-017d"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-0187", "dis":"c-0187"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_25 occ_switch", "enum":"Open,Closed", "equipRef":{"_kind":"ref", "val":"c-017d", "dis":"c-017d"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-0188", "dis":"c-0188"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_25 sa_temp", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-017d", "dis":"c-017d"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F"},
{"id":{"_kind":"ref", "val":"c-0189", "dis":"c-0189"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_25 space_temp", "equipRef":{"_kind":"ref", "val":"c-017d", "dis":"c-017d"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-018a", "dis":"c-018a"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_25 terminal_status", "enum":"Off,Heating,Warm$2dUp,Vent,N$2fA,Cooling,Dehumidify,Reheat,Pressurize,Evacuate,Shutdown,IAQ$20Override,Air$20Balancing", "equipRef":{"_kind":"ref", "val":"c-017d", "dis":"c-017d"}, "his":{"_kind":"marker"}, "kind":"Str", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-018b", "dis":"c-018b"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_25 unocc_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-017d", "dis":"c-017d"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-018c", "dis":"c-018c"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_25 unocc_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-017d", "dis":"c-017d"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-018d", "dis":"c-018d"}, "dis":"Charlie Floor-4 VAV_26", "equip":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "vav":{"_kind":"marker"}, "custom":{"equipGroup":"VAVs"}},
{"id":{"_kind":"ref", "val":"c-018e", "dis":"c-018e"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "damper":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_26 dpr_pos", "equipRef":{"_kind":"ref", "val":"c-018d", "dis":"c-018d"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%"},
{"id":{"_kind":"ref", "val":"c-018f", "dis":"c-018f"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_26 eff_cl_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-018d", "dis":"c-018d"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0190", "dis":"c-0190"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_26 eff_ht_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-018d", "dis":"c-018d"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0191", "dis":"c-0191"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_26 flow_input", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-018d", "dis":"c-018d"}, "flow":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":96, "minVal":45, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"cfm", "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-0192", "dis":"c-0192"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_26 occ_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-018d", "dis":"c-018d"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0193", "dis":"c-0193"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_26 occ_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-018d", "dis":"c-018d"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0194", "dis":"c-0194"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_26 occ_status", "enum":"Unoccupied,Occupied", "equipRef":{"_kind":"ref", "val":"c-018d", "dis":"c-018d"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-0195", "dis":"c-0195"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_26 occ_switch", "enum":"Open,Closed", "equipRef":{"_kind":"ref", "val":"c-018d", "dis":"c-018d"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-0196", "dis":"c-0196"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_26 sa_temp", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-018d", "dis":"c-018d"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F"},
{"id":{"_kind":"ref", "val":"c-0197", "dis":"c-0197"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_26 space_temp", "equipRef":{"_kind":"ref", "val":"c-018d", "dis":"c-018d"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0198", "dis":"c-0198"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_26 unocc_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-018d", "dis":"c-018d"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0199", "dis":"c-0199"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_26 unocc_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-018d", "dis":"c-018d"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-019a", "dis":"c-019a"}, "dis":"Charlie Floor-4 VAV_27", "equip":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "vav":{"_kind":"marker"}, "custom":{"equipGroup":"VAVs"}},
{"id":{"_kind":"ref", "val":"c-019b", "dis":"c-019b"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "damper":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_27 dpr_pos", "equipRef":{"_kind":"ref", "val":"c-019a", "dis":"c-019a"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%"},
{"id":{"_kind":"ref", "val":"c-019c", "dis":"c-019c"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_27 eff_cl_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-019a", "dis":"c-019a"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-019d", "dis":"c-019d"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_27 eff_ht_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-019a", "dis":"c-019a"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-019e", "dis":"c-019e"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_27 flow_input", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-019a", "dis":"c-019a"}, "flow":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":96, "minVal":45, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"cfm", "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-019f", "dis":"c-019f"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_27 hw_valve", "equipRef":{"_kind":"ref", "val":"c-019a", "dis":"c-019a"}, "heat":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":100, "minVal":0, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%", "valve":{"_kind":"marker"}, "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-01a0", "dis":"c-01a0"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_27 occ_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-019a", "dis":"c-019a"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01a1", "dis":"c-01a1"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_27 occ_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-019a", "dis":"c-019a"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01a2", "dis":"c-01a2"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_27 occ_status", "enum":"Unoccupied,Occupied", "equipRef":{"_kind":"ref", "val":"c-019a", "dis":"c-019a"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-01a3", "dis":"c-01a3"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_27 occ_switch", "enum":"Open,Closed", "equipRef":{"_kind":"ref", "val":"c-019a", "dis":"c-019a"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-01a4", "dis":"c-01a4"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_27 sa_temp", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-019a", "dis":"c-019a"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F"},
{"id":{"_kind":"ref", "val":"c-01a5", "dis":"c-01a5"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_27 space_temp", "equipRef":{"_kind":"ref", "val":"c-019a", "dis":"c-019a"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01a6", "dis":"c-01a6"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_27 unocc_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-019a", "dis":"c-019a"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01a7", "dis":"c-01a7"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_27 unocc_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-019a", "dis":"c-019a"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01a8", "dis":"c-01a8"}, "dis":"Charlie Floor-4 VAV_28", "equip":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "vav":{"_kind":"marker"}, "custom":{"equipGroup":"VAVs"}},
{"id":{"_kind":"ref", "val":"c-01a9", "dis":"c-01a9"}, "air":{"_kind":"marker"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "damper":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_28 VAVActuatorCommand", "equipRef":{"_kind":"ref", "val":"c-01a8", "dis":"c-01a8"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%", "custom":{"precision":1}},
{"id":{"_kind":"ref", "val":"c-01aa", "dis":"c-01aa"}, "actuator":{"_kind":"marker"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "damper":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_28 VAVActuatorPosition", "equipRef":{"_kind":"ref", "val":"c-01a8", "dis":"c-01a8"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%", "custom":{"precision":1, "position":{"_kind":"marker"}, "actuatorPosition":{"_kind":"marker"}}},
{"id":{"_kind":"ref", "val":"c-01ab", "dis":"c-01ab"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "damper":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_28 dpr_pos", "equipRef":{"_kind":"ref", "val":"c-01a8", "dis":"c-01a8"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%"},
{"id":{"_kind":"ref", "val":"c-01ac", "dis":"c-01ac"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_28 eff_cl_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-01a8", "dis":"c-01a8"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01ad", "dis":"c-01ad"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_28 eff_ht_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-01a8", "dis":"c-01a8"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01ae", "dis":"c-01ae"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_28 flow_input", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-01a8", "dis":"c-01a8"}, "flow":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":96, "minVal":45, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"cfm", "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-01af", "dis":"c-01af"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_28 hw_valve", "equipRef":{"_kind":"ref", "val":"c-01a8", "dis":"c-01a8"}, "heat":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":100, "minVal":0, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%", "valve":{"_kind":"marker"}, "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-01b0", "dis":"c-01b0"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_28 occ_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-01a8", "dis":"c-01a8"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01b1", "dis":"c-01b1"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_28 occ_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-01a8", "dis":"c-01a8"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01b2", "dis":"c-01b2"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_28 occ_status", "enum":"Unoccupied,Occupied", "equipRef":{"_kind":"ref", "val":"c-01a8", "dis":"c-01a8"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-01b3", "dis":"c-01b3"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_28 occ_switch", "enum":"Open,Closed", "equipRef":{"_kind":"ref", "val":"c-01a8", "dis":"c-01a8"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-01b4", "dis":"c-01b4"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_28 sa_temp", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-01a8", "dis":"c-01a8"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F"},
{"id":{"_kind":"ref", "val":"c-01b5", "dis":"c-01b5"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_28 space_temp", "equipRef":{"_kind":"ref", "val":"c-01a8", "dis":"c-01a8"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01b6", "dis":"c-01b6"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_28 unocc_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-01a8", "dis":"c-01a8"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01b7", "dis":"c-01b7"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_28 unocc_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-01a8", "dis":"c-01a8"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01b8", "dis":"c-01b8"}, "dis":"Charlie Floor-4 VAV_29", "equip":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "vav":{"_kind":"marker"}, "custom":{"equipGroup":"VAVs"}},
{"id":{"_kind":"ref", "val":"c-01b9", "dis":"c-01b9"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "damper":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_29 dpr_pos", "equipRef":{"_kind":"ref", "val":"c-01b8", "dis":"c-01b8"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%"},
{"id":{"_kind":"ref", "val":"c-01ba", "dis":"c-01ba"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_29 eff_cl_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-01b8", "dis":"c-01b8"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01bb", "dis":"c-01bb"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_29 eff_ht_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-01b8", "dis":"c-01b8"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01bc", "dis":"c-01bc"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_29 flow_input", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-01b8", "dis":"c-01b8"}, "flow":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":96, "minVal":45, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"cfm", "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-01bd", "dis":"c-01bd"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_29 hw_valve", "equipRef":{"_kind":"ref", "val":"c-01b8", "dis":"c-01b8"}, "heat":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":100, "minVal":0, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%", "valve":{"_kind":"marker"}, "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-01be", "dis":"c-01be"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_29 occ_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-01b8", "dis":"c-01b8"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01bf", "dis":"c-01bf"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_29 occ_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-01b8", "dis":"c-01b8"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01c0", "dis":"c-01c0"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_29 occ_status", "enum":"Unoccupied,Occupied", "equipRef":{"_kind":"ref", "val":"c-01b8", "dis":"c-01b8"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-01c1", "dis":"c-01c1"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_29 occ_switch", "enum":"Open,Closed", "equipRef":{"_kind":"ref", "val":"c-01b8", "dis":"c-01b8"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-01c2", "dis":"c-01c2"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_29 sa_temp", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-01b8", "dis":"c-01b8"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F"},
{"id":{"_kind":"ref", "val":"c-01c3", "dis":"c-01c3"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_29 space_temp", "equipRef":{"_kind":"ref", "val":"c-01b8", "dis":"c-01b8"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01c4", "dis":"c-01c4"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_29 unocc_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-01b8", "dis":"c-01b8"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01c5", "dis":"c-01c5"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_29 unocc_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-01b8", "dis":"c-01b8"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01c6", "dis":"c-01c6"}, "dis":"Charlie Floor-4 VAV_3", "equip":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "vav":{"_kind":"marker"}, "custom":{"equipGroup":"VAVs"}},
{"id":{"_kind":"ref", "val":"c-01c7", "dis":"c-01c7"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "damper":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_3 dpr_pos", "equipRef":{"_kind":"ref", "val":"c-01c6", "dis":"c-01c6"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%"},
{"id":{"_kind":"ref", "val":"c-01c8", "dis":"c-01c8"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_3 eff_cl_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-01c6", "dis":"c-01c6"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01c9", "dis":"c-01c9"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_3 eff_ht_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-01c6", "dis":"c-01c6"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01ca", "dis":"c-01ca"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_3 flow_input", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-01c6", "dis":"c-01c6"}, "flow":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":96, "minVal":45, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"cfm", "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-01cb", "dis":"c-01cb"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_3 hw_valve", "equipRef":{"_kind":"ref", "val":"c-01c6", "dis":"c-01c6"}, "heat":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":100, "minVal":0, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%", "valve":{"_kind":"marker"}, "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-01cc", "dis":"c-01cc"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_3 occ_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-01c6", "dis":"c-01c6"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01cd", "dis":"c-01cd"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_3 occ_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-01c6", "dis":"c-01c6"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01ce", "dis":"c-01ce"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_3 occ_status", "enum":"Unoccupied,Occupied", "equipRef":{"_kind":"ref", "val":"c-01c6", "dis":"c-01c6"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-01cf", "dis":"c-01cf"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_3 occ_switch", "enum":"Open,Closed", "equipRef":{"_kind":"ref", "val":"c-01c6", "dis":"c-01c6"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-01d0", "dis":"c-01d0"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_3 sa_temp", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-01c6", "dis":"c-01c6"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F"},
{"id":{"_kind":"ref", "val":"c-01d1", "dis":"c-01d1"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_3 space_temp", "equipRef":{"_kind":"ref", "val":"c-01c6", "dis":"c-01c6"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01d2", "dis":"c-01d2"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_3 unocc_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-01c6", "dis":"c-01c6"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01d3", "dis":"c-01d3"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_3 unocc_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-01c6", "dis":"c-01c6"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01d4", "dis":"c-01d4"}, "dis":"Charlie Floor-4 VAV_30", "equip":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "vav":{"_kind":"marker"}, "custom":{"equipGroup":"VAVs"}},
{"id":{"_kind":"ref", "val":"c-01d5", "dis":"c-01d5"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "damper":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_30 dpr_pos", "equipRef":{"_kind":"ref", "val":"c-01d4", "dis":"c-01d4"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%"},
{"id":{"_kind":"ref", "val":"c-01d6", "dis":"c-01d6"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_30 eff_cl_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-01d4", "dis":"c-01d4"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01d7", "dis":"c-01d7"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_30 eff_ht_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-01d4", "dis":"c-01d4"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01d8", "dis":"c-01d8"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_30 flow_input", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-01d4", "dis":"c-01d4"}, "flow":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":96, "minVal":45, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"cfm", "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-01d9", "dis":"c-01d9"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_30 hw_valve", "equipRef":{"_kind":"ref", "val":"c-01d4", "dis":"c-01d4"}, "heat":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":100, "minVal":0, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%", "valve":{"_kind":"marker"}, "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-01da", "dis":"c-01da"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_30 occ_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-01d4", "dis":"c-01d4"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01db", "dis":"c-01db"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_30 occ_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-01d4", "dis":"c-01d4"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01dc", "dis":"c-01dc"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_30 occ_status", "enum":"Unoccupied,Occupied", "equipRef":{"_kind":"ref", "val":"c-01d4", "dis":"c-01d4"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-01dd", "dis":"c-01dd"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_30 occ_switch", "enum":"Open,Closed", "equipRef":{"_kind":"ref", "val":"c-01d4", "dis":"c-01d4"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-01de", "dis":"c-01de"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_30 sa_temp", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-01d4", "dis":"c-01d4"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F"},
{"id":{"_kind":"ref", "val":"c-01df", "dis":"c-01df"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_30 space_temp", "equipRef":{"_kind":"ref", "val":"c-01d4", "dis":"c-01d4"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01e0", "dis":"c-01e0"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_30 unocc_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-01d4", "dis":"c-01d4"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01e1", "dis":"c-01e1"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_30 unocc_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-01d4", "dis":"c-01d4"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01e2", "dis":"c-01e2"}, "dis":"Charlie Floor-4 VAV_4", "equip":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "vav":{"_kind":"marker"}, "custom":{"equipGroup":"VAVs"}},
{"id":{"_kind":"ref", "val":"c-01e3", "dis":"c-01e3"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "damper":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_4 dpr_pos", "equipRef":{"_kind":"ref", "val":"c-01e2", "dis":"c-01e2"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%"},
{"id":{"_kind":"ref", "val":"c-01e4", "dis":"c-01e4"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_4 eff_cl_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-01e2", "dis":"c-01e2"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01e5", "dis":"c-01e5"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_4 eff_ht_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-01e2", "dis":"c-01e2"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01e6", "dis":"c-01e6"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_4 flow_input", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-01e2", "dis":"c-01e2"}, "flow":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":96, "minVal":45, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"cfm", "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-01e7", "dis":"c-01e7"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_4 hw_valve", "equipRef":{"_kind":"ref", "val":"c-01e2", "dis":"c-01e2"}, "heat":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":100, "minVal":0, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%", "valve":{"_kind":"marker"}, "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-01e8", "dis":"c-01e8"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_4 occ_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-01e2", "dis":"c-01e2"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01e9", "dis":"c-01e9"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_4 occ_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-01e2", "dis":"c-01e2"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01ea", "dis":"c-01ea"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_4 occ_status", "enum":"Unoccupied,Occupied", "equipRef":{"_kind":"ref", "val":"c-01e2", "dis":"c-01e2"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-01eb", "dis":"c-01eb"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_4 occ_switch", "enum":"Open,Closed", "equipRef":{"_kind":"ref", "val":"c-01e2", "dis":"c-01e2"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-01ec", "dis":"c-01ec"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_4 sa_temp", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-01e2", "dis":"c-01e2"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F"},
{"id":{"_kind":"ref", "val":"c-01ed", "dis":"c-01ed"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_4 space_temp", "equipRef":{"_kind":"ref", "val":"c-01e2", "dis":"c-01e2"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01ee", "dis":"c-01ee"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_4 unocc_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-01e2", "dis":"c-01e2"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01ef", "dis":"c-01ef"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_4 unocc_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-01e2", "dis":"c-01e2"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01f0", "dis":"c-01f0"}, "dis":"Charlie Floor-4 VAV_5", "equip":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "vav":{"_kind":"marker"}, "custom":{"equipGroup":"VAVs"}},
{"id":{"_kind":"ref", "val":"c-01f1", "dis":"c-01f1"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "damper":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_5 dpr_pos", "equipRef":{"_kind":"ref", "val":"c-01f0", "dis":"c-01f0"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%"},
{"id":{"_kind":"ref", "val":"c-01f2", "dis":"c-01f2"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_5 eff_cl_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-01f0", "dis":"c-01f0"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01f3", "dis":"c-01f3"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_5 eff_ht_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-01f0", "dis":"c-01f0"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01f4", "dis":"c-01f4"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_5 flow_input", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-01f0", "dis":"c-01f0"}, "flow":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":96, "minVal":45, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"cfm", "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-01f5", "dis":"c-01f5"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_5 hw_valve", "equipRef":{"_kind":"ref", "val":"c-01f0", "dis":"c-01f0"}, "heat":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":100, "minVal":0, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%", "valve":{"_kind":"marker"}, "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-01f6", "dis":"c-01f6"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_5 occ_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-01f0", "dis":"c-01f0"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01f7", "dis":"c-01f7"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_5 occ_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-01f0", "dis":"c-01f0"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01f8", "dis":"c-01f8"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_5 occ_status", "enum":"Unoccupied,Occupied", "equipRef":{"_kind":"ref", "val":"c-01f0", "dis":"c-01f0"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-01f9", "dis":"c-01f9"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_5 occ_switch", "enum":"Open,Closed", "equipRef":{"_kind":"ref", "val":"c-01f0", "dis":"c-01f0"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-01fa", "dis":"c-01fa"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_5 sa_temp", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-01f0", "dis":"c-01f0"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F"},
{"id":{"_kind":"ref", "val":"c-01fb", "dis":"c-01fb"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_5 space_temp", "equipRef":{"_kind":"ref", "val":"c-01f0", "dis":"c-01f0"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01fc", "dis":"c-01fc"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_5 unocc_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-01f0", "dis":"c-01f0"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01fd", "dis":"c-01fd"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_5 unocc_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-01f0", "dis":"c-01f0"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-01fe", "dis":"c-01fe"}, "dis":"Charlie Floor-4 VAV_6", "equip":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "vav":{"_kind":"marker"}, "custom":{"equipGroup":"VAVs"}},
{"id":{"_kind":"ref", "val":"c-01ff", "dis":"c-01ff"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "damper":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_6 dpr_pos", "equipRef":{"_kind":"ref", "val":"c-01fe", "dis":"c-01fe"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%"},
{"id":{"_kind":"ref", "val":"c-0200", "dis":"c-0200"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_6 eff_cl_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-01fe", "dis":"c-01fe"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0201", "dis":"c-0201"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_6 eff_ht_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-01fe", "dis":"c-01fe"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0202", "dis":"c-0202"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_6 flow_input", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-01fe", "dis":"c-01fe"}, "flow":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":96, "minVal":45, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"cfm", "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-0203", "dis":"c-0203"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_6 hw_valve", "equipRef":{"_kind":"ref", "val":"c-01fe", "dis":"c-01fe"}, "heat":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":100, "minVal":0, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%", "valve":{"_kind":"marker"}, "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-0204", "dis":"c-0204"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_6 occ_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-01fe", "dis":"c-01fe"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0205", "dis":"c-0205"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_6 occ_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-01fe", "dis":"c-01fe"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0206", "dis":"c-0206"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_6 occ_status", "enum":"Unoccupied,Occupied", "equipRef":{"_kind":"ref", "val":"c-01fe", "dis":"c-01fe"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-0207", "dis":"c-0207"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_6 occ_switch", "enum":"Open,Closed", "equipRef":{"_kind":"ref", "val":"c-01fe", "dis":"c-01fe"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-0208", "dis":"c-0208"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_6 sa_temp", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-01fe", "dis":"c-01fe"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F"},
{"id":{"_kind":"ref", "val":"c-0209", "dis":"c-0209"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_6 space_temp", "equipRef":{"_kind":"ref", "val":"c-01fe", "dis":"c-01fe"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-020a", "dis":"c-020a"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_6 unocc_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-01fe", "dis":"c-01fe"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-020b", "dis":"c-020b"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_6 unocc_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-01fe", "dis":"c-01fe"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-020c", "dis":"c-020c"}, "dis":"Charlie Floor-4 VAV_7", "equip":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "vav":{"_kind":"marker"}, "custom":{"equipGroup":"VAVs"}},
{"id":{"_kind":"ref", "val":"c-020d", "dis":"c-020d"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "damper":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_7 dpr_pos", "equipRef":{"_kind":"ref", "val":"c-020c", "dis":"c-020c"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%"},
{"id":{"_kind":"ref", "val":"c-020e", "dis":"c-020e"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_7 eff_cl_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-020c", "dis":"c-020c"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-020f", "dis":"c-020f"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_7 eff_ht_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-020c", "dis":"c-020c"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0210", "dis":"c-0210"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_7 flow_input", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-020c", "dis":"c-020c"}, "flow":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":96, "minVal":45, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"cfm", "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-0211", "dis":"c-0211"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_7 hw_valve", "equipRef":{"_kind":"ref", "val":"c-020c", "dis":"c-020c"}, "heat":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":100, "minVal":0, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%", "valve":{"_kind":"marker"}, "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-0212", "dis":"c-0212"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_7 occ_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-020c", "dis":"c-020c"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0213", "dis":"c-0213"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_7 occ_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-020c", "dis":"c-020c"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0214", "dis":"c-0214"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_7 occ_status", "enum":"Unoccupied,Occupied", "equipRef":{"_kind":"ref", "val":"c-020c", "dis":"c-020c"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-0215", "dis":"c-0215"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_7 occ_switch", "enum":"Open,Closed", "equipRef":{"_kind":"ref", "val":"c-020c", "dis":"c-020c"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-0216", "dis":"c-0216"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_7 sa_temp", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-020c", "dis":"c-020c"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F"},
{"id":{"_kind":"ref", "val":"c-0217", "dis":"c-0217"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_7 space_temp", "equipRef":{"_kind":"ref", "val":"c-020c", "dis":"c-020c"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0218", "dis":"c-0218"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_7 unocc_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-020c", "dis":"c-020c"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0219", "dis":"c-0219"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_7 unocc_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-020c", "dis":"c-020c"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-021a", "dis":"c-021a"}, "dis":"Charlie Floor-4 VAV_8", "equip":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "vav":{"_kind":"marker"}, "custom":{"equipGroup":"VAVs"}},
{"id":{"_kind":"ref", "val":"c-021b", "dis":"c-021b"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "damper":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_8 dpr_pos", "equipRef":{"_kind":"ref", "val":"c-021a", "dis":"c-021a"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%"},
{"id":{"_kind":"ref", "val":"c-021c", "dis":"c-021c"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_8 eff_cl_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-021a", "dis":"c-021a"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-021d", "dis":"c-021d"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_8 eff_ht_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-021a", "dis":"c-021a"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-021e", "dis":"c-021e"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_8 flow_input", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-021a", "dis":"c-021a"}, "flow":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":96, "minVal":45, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"cfm", "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-021f", "dis":"c-021f"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_8 hw_valve", "equipRef":{"_kind":"ref", "val":"c-021a", "dis":"c-021a"}, "heat":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":100, "minVal":0, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%", "valve":{"_kind":"marker"}, "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-0220", "dis":"c-0220"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_8 occ_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-021a", "dis":"c-021a"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0221", "dis":"c-0221"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_8 occ_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-021a", "dis":"c-021a"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0222", "dis":"c-0222"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_8 occ_status", "enum":"Unoccupied,Occupied", "equipRef":{"_kind":"ref", "val":"c-021a", "dis":"c-021a"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-0223", "dis":"c-0223"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_8 occ_switch", "enum":"Open,Closed", "equipRef":{"_kind":"ref", "val":"c-021a", "dis":"c-021a"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-0224", "dis":"c-0224"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_8 sa_temp", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-021a", "dis":"c-021a"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F"},
{"id":{"_kind":"ref", "val":"c-0225", "dis":"c-0225"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_8 space_temp", "equipRef":{"_kind":"ref", "val":"c-021a", "dis":"c-021a"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0226", "dis":"c-0226"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_8 unocc_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-021a", "dis":"c-021a"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0227", "dis":"c-0227"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_8 unocc_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-021a", "dis":"c-021a"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0228", "dis":"c-0228"}, "dis":"Charlie Floor-4 VAV_9", "equip":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "vav":{"_kind":"marker"}, "custom":{"equipGroup":"VAVs"}},
{"id":{"_kind":"ref", "val":"c-0229", "dis":"c-0229"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "damper":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_9 dpr_pos", "equipRef":{"_kind":"ref", "val":"c-0228", "dis":"c-0228"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%"},
{"id":{"_kind":"ref", "val":"c-022a", "dis":"c-022a"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_9 eff_cl_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0228", "dis":"c-0228"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-022b", "dis":"c-022b"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_9 eff_ht_stpt", "effective":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0228", "dis":"c-0228"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-022c", "dis":"c-022c"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_9 flow_input", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0228", "dis":"c-0228"}, "flow":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":96, "minVal":45, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"cfm", "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-022d", "dis":"c-022d"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_9 hw_valve", "equipRef":{"_kind":"ref", "val":"c-0228", "dis":"c-0228"}, "heat":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "maxVal":100, "minVal":0, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%", "valve":{"_kind":"marker"}, "custom":{"precision":0}},
{"id":{"_kind":"ref", "val":"c-022e", "dis":"c-022e"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_9 link_ahu_mode", "enum":"OFF,WARM$2dUP,HEAT,COOL,FREECOOL,PRESSURIZE,EVACUATE,VENT", "equipRef":{"_kind":"ref", "val":"c-0228", "dis":"c-0228"}, "his":{"_kind":"marker"}, "kind":"Str", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-022f", "dis":"c-022f"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_9 occ_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-0228", "dis":"c-0228"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0230", "dis":"c-0230"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_9 occ_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-0228", "dis":"c-0228"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "occ":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0231", "dis":"c-0231"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_9 occ_status", "enum":"Unoccupied,Occupied", "equipRef":{"_kind":"ref", "val":"c-0228", "dis":"c-0228"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-0232", "dis":"c-0232"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_9 occ_switch", "enum":"Open,Closed", "equipRef":{"_kind":"ref", "val":"c-0228", "dis":"c-0228"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-0233", "dis":"c-0233"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_9 sa_temp", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0228", "dis":"c-0228"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F"},
{"id":{"_kind":"ref", "val":"c-0234", "dis":"c-0234"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_9 space_temp", "equipRef":{"_kind":"ref", "val":"c-0228", "dis":"c-0228"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0235", "dis":"c-0235"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_9 terminal_status", "enum":"Off,Heating,Warm$2dUp,Vent,N$2fA,Cooling,Dehumidify,Reheat,Pressurize,Evacuate,Shutdown,IAQ$20Override,Air$20Balancing", "equipRef":{"_kind":"ref", "val":"c-0228", "dis":"c-0228"}, "his":{"_kind":"marker"}, "kind":"Str", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit"},
{"id":{"_kind":"ref", "val":"c-0236", "dis":"c-0236"}, "air":{"_kind":"marker"}, "cooling":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_9 unocc_cl_stpt", "equipRef":{"_kind":"ref", "val":"c-0228", "dis":"c-0228"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0237", "dis":"c-0237"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie Floor-4 VAV_9 unocc_ht_stpt", "equipRef":{"_kind":"ref", "val":"c-0228", "dis":"c-0228"}, "heating":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "unocc":{"_kind":"marker"}, "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0238", "dis":"c-0238"}, "ahu":{"_kind":"marker"}, "dis":"Charlie HEATING UNIT-1", "equip":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "custom":{"unitHeater":{"_kind":"marker"}, "equipGroup":"AHUs"}},
{"id":{"_kind":"ref", "val":"c-0239", "dis":"c-0239"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie HEATING UNIT-1 Discharge Air Temp", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0238", "dis":"c-0238"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"New_York", "unit":"\u00b0F"},
{"id":{"_kind":"ref", "val":"c-023a", "dis":"c-023a"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie HEATING UNIT-1 HeatUnit-SF~2dS", "discharge":{"_kind":"marker"}, "enum":"Off,On", "equipRef":{"_kind":"ref", "val":"c-0238", "dis":"c-0238"}, "fan":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Bool", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York"},
{"id":{"_kind":"ref", "val":"c-023b", "dis":"c-023b"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie HEATING UNIT-1 HeatUnit1-DA~2dP--", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0238", "dis":"c-0238"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "pressure":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York", "unit":"in/wc", "custom":{"precision":2}},
{"id":{"_kind":"ref", "val":"c-023c", "dis":"c-023c"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie HEATING UNIT-1 HeatUnit1-DA~2dP-SetPoint", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0238", "dis":"c-0238"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "pressure":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "tz":"New_York", "unit":"in/wc", "custom":{"precision":2}},
{"id":{"_kind":"ref", "val":"c-023d", "dis":"c-023d"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie HEATING UNIT-1 HeatUnit1-Discharge Air Temp-Reset", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0238", "dis":"c-0238"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"New_York", "unit":"\u00b0F", "custom":{"reset":{"_kind":"marker"}}},
{"id":{"_kind":"ref", "val":"c-023e", "dis":"c-023e"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie HEATING UNIT-1 HeatUnit1-HW~2dValve", "equipRef":{"_kind":"ref", "val":"c-0238", "dis":"c-0238"}, "his":{"_kind":"marker"}, "hot":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York", "unit":"%", "valve":{"_kind":"marker"}, "water":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-023f", "dis":"c-023f"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie HEATING UNIT-1 HeatUnit1-OCC~2dC", "enum":"UnOccupied,Occupied", "equipRef":{"_kind":"ref", "val":"c-0238", "dis":"c-0238"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York"},
{"id":{"_kind":"ref", "val":"c-0240", "dis":"c-0240"}, "air":{"_kind":"marker"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie HEATING UNIT-1 HeatUnit1-SF~2dC", "discharge":{"_kind":"marker"}, "enum":"Off,On", "equipRef":{"_kind":"ref", "val":"c-0238", "dis":"c-0238"}, "fan":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Bool", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York"},
{"id":{"_kind":"ref", "val":"c-0241", "dis":"c-0241"}, "air":{"_kind":"marker"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie HEATING UNIT-1 HeatUnit1-SF~2dVFD", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0238", "dis":"c-0238"}, "fan":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "speed":{"_kind":"marker"}, "tz":"New_York", "unit":"%"},
{"id":{"_kind":"ref", "val":"c-0242", "dis":"c-0242"}, "air":{"_kind":"marker"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie HEATING UNIT-1 SupplyFan", "discharge":{"_kind":"marker"}, "enum":"false,true", "equipRef":{"_kind":"ref", "val":"c-0238", "dis":"c-0238"}, "fan":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Bool", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York"},
{"id":{"_kind":"ref", "val":"c-0243", "dis":"c-0243"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie HEATING UNIT-1 SupplyfanStatus", "discharge":{"_kind":"marker"}, "enum":"false,true", "equipRef":{"_kind":"ref", "val":"c-0238", "dis":"c-0238"}, "fan":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Bool", "point":{"_kind":"marker"}, "run":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York"},
{"id":{"_kind":"ref", "val":"c-0244", "dis":"c-0244"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie HEATING UNIT-1 Zone Air Temp Sensor", "equipRef":{"_kind":"ref", "val":"c-0238", "dis":"c-0238"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"New_York", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0245", "dis":"c-0245"}, "ahu":{"_kind":"marker"}, "dis":"Charlie HEATING UNIT-2", "equip":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "custom":{"unitHeater":{"_kind":"marker"}, "equipGroup":"AHUs"}},
{"id":{"_kind":"ref", "val":"c-0246", "dis":"c-0246"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie HEATING UNIT-2 Discharge Air Temp", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0245", "dis":"c-0245"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"New_York", "unit":"\u00b0F"},
{"id":{"_kind":"ref", "val":"c-0247", "dis":"c-0247"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie HEATING UNIT-2 HeatUnit2-DA~2dP", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0245", "dis":"c-0245"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "pressure":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York", "unit":"in/wc", "custom":{"precision":2}},
{"id":{"_kind":"ref", "val":"c-0248", "dis":"c-0248"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie HEATING UNIT-2 HeatUnit2-DA~2dP-SetPoint", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0245", "dis":"c-0245"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "pressure":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "sp":{"_kind":"marker"}, "tz":"New_York", "unit":"in/wc", "custom":{"precision":2}},
{"id":{"_kind":"ref", "val":"c-0249", "dis":"c-0249"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie HEATING UNIT-2 HeatUnit2-HW~2dValve", "equipRef":{"_kind":"ref", "val":"c-0245", "dis":"c-0245"}, "his":{"_kind":"marker"}, "hot":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York", "unit":"%", "valve":{"_kind":"marker"}, "water":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-024a", "dis":"c-024a"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie HEATING UNIT-2 HeatUnit2-OCC~2dC", "enum":"UnOccupied,Occupied", "equipRef":{"_kind":"ref", "val":"c-0245", "dis":"c-0245"}, "his":{"_kind":"marker"}, "kind":"Bool", "occupied":{"_kind":"marker"}, "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York"},
{"id":{"_kind":"ref", "val":"c-024b", "dis":"c-024b"}, "air":{"_kind":"marker"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie HEATING UNIT-2 HeatUnit2-SF~2dC", "discharge":{"_kind":"marker"}, "enum":"Off,On", "equipRef":{"_kind":"ref", "val":"c-0245", "dis":"c-0245"}, "fan":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Bool", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York"},
{"id":{"_kind":"ref", "val":"c-024c", "dis":"c-024c"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie HEATING UNIT-2 HeatUnit2-SF~2dS", "discharge":{"_kind":"marker"}, "enum":"Off,On", "equipRef":{"_kind":"ref", "val":"c-0245", "dis":"c-0245"}, "fan":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Bool", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York"},
{"id":{"_kind":"ref", "val":"c-024d", "dis":"c-024d"}, "air":{"_kind":"marker"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie HEATING UNIT-2 HeatUnit2-SF~2dVFD", "discharge":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0245", "dis":"c-0245"}, "fan":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "speed":{"_kind":"marker"}, "tz":"New_York", "unit":"%"},
{"id":{"_kind":"ref", "val":"c-024e", "dis":"c-024e"}, "air":{"_kind":"marker"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie HEATING UNIT-2 SupplyFan", "discharge":{"_kind":"marker"}, "enum":"false,true", "equipRef":{"_kind":"ref", "val":"c-0245", "dis":"c-0245"}, "fan":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Bool", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York"},
{"id":{"_kind":"ref", "val":"c-024f", "dis":"c-024f"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie HEATING UNIT-2 SupplyfanStatus", "discharge":{"_kind":"marker"}, "enum":"false,true", "equipRef":{"_kind":"ref", "val":"c-0245", "dis":"c-0245"}, "fan":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Bool", "point":{"_kind":"marker"}, "run":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York"},
{"id":{"_kind":"ref", "val":"c-0250", "dis":"c-0250"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie HEATING UNIT-2 Zone Air Temp Sensor", "equipRef":{"_kind":"ref", "val":"c-0245", "dis":"c-0245"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "temp":{"_kind":"marker"}, "tz":"New_York", "unit":"\u00b0F", "zone":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0251", "dis":"c-0251"}, "dis":"Charlie LIBERTY_100_LIGHTING", "equip":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "custom":{"lightsGroup":{"_kind":"marker"}, "equipGroup":"Lighting System"}},
{"id":{"_kind":"ref", "val":"c-0252", "dis":"c-0252"}, "cur":{"_kind":"marker"}, "dis":"Charlie LIBERTY_100_LIGHTING Photo-Cell", "equipRef":{"_kind":"ref", "val":"c-0251", "dis":"c-0251"}, "his":{"_kind":"marker"}, "kind":"Number", "light":{"_kind":"marker"}, "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"New_York", "unit":"lx", "custom":{"precision":1}},
{"id":{"_kind":"ref", "val":"c-0253", "dis":"c-0253"}, "air":{"_kind":"marker"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "damper":{"_kind":"marker"}, "dis":"Charlie LIBERTY_100_LIGHTING VAVActuatorCommand", "equipRef":{"_kind":"ref", "val":"c-0251", "dis":"c-0251"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%", "custom":{"precision":1}},
{"id":{"_kind":"ref", "val":"c-0254", "dis":"c-0254"}, "air":{"_kind":"marker"}, "cmd":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "damper":{"_kind":"marker"}, "dis":"Charlie LIBERTY_100_LIGHTING VAVActuatorCommand", "equipRef":{"_kind":"ref", "val":"c-0251", "dis":"c-0251"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%", "custom":{"precision":1}},
{"id":{"_kind":"ref", "val":"c-0255", "dis":"c-0255"}, "actuator":{"_kind":"marker"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "damper":{"_kind":"marker"}, "dis":"Charlie LIBERTY_100_LIGHTING VAVActuatorPosition", "equipRef":{"_kind":"ref", "val":"c-0251", "dis":"c-0251"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%", "custom":{"precision":1, "position":{"_kind":"marker"}, "actuatorPosition":{"_kind":"marker"}}},
{"id":{"_kind":"ref", "val":"c-0256", "dis":"c-0256"}, "actuator":{"_kind":"marker"}, "air":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "damper":{"_kind":"marker"}, "dis":"Charlie LIBERTY_100_LIGHTING VAVActuatorPosition", "equipRef":{"_kind":"ref", "val":"c-0251", "dis":"c-0251"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"%", "custom":{"precision":1, "position":{"_kind":"marker"}, "actuatorPosition":{"_kind":"marker"}}},
{"id":{"_kind":"ref", "val":"c-0257", "dis":"c-0257"}, "ac":{"_kind":"marker"}, "dis":"Charlie Water_Main_100_Meter", "elec":{"_kind":"marker"}, "equip":{"_kind":"marker"}, "meter":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "water":{"_kind":"marker"}, "custom":{"equipGroup":"Meters"}},
{"id":{"_kind":"ref", "val":"c-0258", "dis":"c-0258"}, "cur":{"_kind":"marker"}, "dis":"Charlie Water_Main_100_Meter chA mass flow", "equipRef":{"_kind":"ref", "val":"c-0257", "dis":"c-0257"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"lb/h"},
{"id":{"_kind":"ref", "val":"c-0259", "dis":"c-0259"}, "cur":{"_kind":"marker"}, "dis":"Charlie Water_Main_100_Meter chA volumetric flow rate", "equipRef":{"_kind":"ref", "val":"c-0257", "dis":"c-0257"}, "flow":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"gal/min", "volume":{"_kind":"marker"}, "water":{"_kind":"marker"}, "custom":{"pointType":""}},
{"id":{"_kind":"ref", "val":"c-025a", "dis":"c-025a"}, "cur":{"_kind":"marker"}, "dis":"Charlie Water_Main_100_Meter chA volumetric flow rate, + totalizer", "equipRef":{"_kind":"ref", "val":"c-0257", "dis":"c-0257"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"gal"},
{"id":{"_kind":"ref", "val":"c-025b", "dis":"c-025b"}, "ac":{"_kind":"marker"}, "dis":"Charlie West_Return_Fan_Meter", "elec":{"_kind":"marker"}, "equip":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-001a", "dis":"c-001a"}, "meter":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "submeterOf":{"_kind":"ref", "val":"c-007d", "dis":"c-007d"}, "custom":{"equipGroup":"Meters"}},
{"id":{"_kind":"ref", "val":"c-025c", "dis":"c-025c"}, "cur":{"_kind":"marker"}, "current":{"_kind":"marker"}, "dis":"Charlie West_Return_Fan_Meter Current Sum Element G", "equipRef":{"_kind":"ref", "val":"c-025b", "dis":"c-025b"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"A"},
{"id":{"_kind":"ref", "val":"c-025d", "dis":"c-025d"}, "cur":{"_kind":"marker"}, "dis":"Charlie West_Return_Fan_Meter Fan VA Sum Element G", "equipRef":{"_kind":"ref", "val":"c-025b", "dis":"c-025b"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "reactive":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"kVA"},
{"id":{"_kind":"ref", "val":"c-025e", "dis":"c-025e"}, "ac":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "demand":{"_kind":"marker"}, "dis":"Charlie West_Return_Fan_Meter Power Demand Peak Element G", "elec":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-025b", "dis":"c-025b"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "power":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"kW"},
{"id":{"_kind":"ref", "val":"c-025f", "dis":"c-025f"}, "ac":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie West_Return_Fan_Meter Power Sum Element G", "elec":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-025b", "dis":"c-025b"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "power":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"kW"},
{"id":{"_kind":"ref", "val":"c-0260", "dis":"c-0260"}, "cur":{"_kind":"marker"}, "dis":"Charlie West_Return_Fan_Meter VA Demand Peak Element G", "equipRef":{"_kind":"ref", "val":"c-025b", "dis":"c-025b"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "reactive":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"kVA"},
{"id":{"_kind":"ref", "val":"c-0261", "dis":"c-0261"}, "ac":{"_kind":"marker"}, "dis":"Charlie West_Supply_Fan_Meter", "elec":{"_kind":"marker"}, "equip":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-001a", "dis":"c-001a"}, "his":{"_kind":"marker"}, "meter":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "submeterOf":{"_kind":"ref", "val":"c-007d", "dis":"c-007d"}, "custom":{"equipGroup":"Meters"}},
{"id":{"_kind":"ref", "val":"c-0262", "dis":"c-0262"}, "cur":{"_kind":"marker"}, "current":{"_kind":"marker"}, "dis":"Charlie West_Supply_Fan_Meter Current Sum Element P", "equipRef":{"_kind":"ref", "val":"c-0261", "dis":"c-0261"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"A"},
{"id":{"_kind":"ref", "val":"c-0263", "dis":"c-0263"}, "ac":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "demand":{"_kind":"marker"}, "dis":"Charlie West_Supply_Fan_Meter Power Demand Peak Element P", "elec":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0261", "dis":"c-0261"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "power":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"kW"},
{"id":{"_kind":"ref", "val":"c-0264", "dis":"c-0264"}, "ac":{"_kind":"marker"}, "cur":{"_kind":"marker"}, "dis":"Charlie West_Supply_Fan_Meter Power Sum Element P", "elec":{"_kind":"marker"}, "equipRef":{"_kind":"ref", "val":"c-0261", "dis":"c-0261"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "power":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"kW"},
{"id":{"_kind":"ref", "val":"c-0265", "dis":"c-0265"}, "cur":{"_kind":"marker"}, "dis":"Charlie West_Supply_Fan_Meter VA Demand Peak Element P", "equipRef":{"_kind":"ref", "val":"c-0261", "dis":"c-0261"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "reactive":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"kVA"},
{"id":{"_kind":"ref", "val":"c-0266", "dis":"c-0266"}, "cur":{"_kind":"marker"}, "dis":"Charlie West_Supply_Fan_Meter VA Sum Element P", "equipRef":{"_kind":"ref", "val":"c-0261", "dis":"c-0261"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "reactive":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "siteRef":{"_kind":"ref", "val":"c-0000", "dis":"c-0000"}, "tz":"Detroit", "unit":"kVA"},
{"id":{"_kind":"ref", "val":"c-0267", "dis":"c-0267"}, "dis":"Troy, MI", "geoCity":"Troy", "geoCoord":{"_kind":"coord", "lng":-83.15, "lat":42.606}, "geoCountry":"US", "geoState":"MI", "tz":"Detroit", "weatherStation":{"_kind":"marker"}},
{"id":{"_kind":"ref", "val":"c-0268", "dis":"c-0268"}, "atmospheric":{"_kind":"marker"}, "dis":"Troy, MI Barometric Pressure", "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "pressure":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "tz":"Detroit", "unit":"inHg", "weather":{"_kind":"marker"}, "weatherStationRef":{"_kind":"ref", "val":"c-0267", "dis":"c-0267"}},
{"id":{"_kind":"ref", "val":"c-0269", "dis":"c-0269"}, "dis":"Troy, MI Condition", "enum":"unknown,clear,partlyCloudy,cloudy,showers,rain,thunderstorms,ice,flurries,snow", "his":{"_kind":"marker"}, "kind":"Str", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "tz":"Detroit", "weather":{"_kind":"marker"}, "weatherCond":{"_kind":"marker"}, "weatherStationRef":{"_kind":"ref", "val":"c-0267", "dis":"c-0267"}},
{"id":{"_kind":"ref", "val":"c-026a", "dis":"c-026a"}, "dewPoint":{"_kind":"marker"}, "dis":"Troy, MI Dew Point", "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "weather":{"_kind":"marker"}, "weatherStationRef":{"_kind":"ref", "val":"c-0267", "dis":"c-0267"}},
{"id":{"_kind":"ref", "val":"c-026b", "dis":"c-026b"}, "dis":"Troy, MI Feels Like", "feelsLike":{"_kind":"marker"}, "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "weather":{"_kind":"marker"}, "weatherStationRef":{"_kind":"ref", "val":"c-0267", "dis":"c-0267"}},
{"id":{"_kind":"ref", "val":"c-026c", "dis":"c-026c"}, "air":{"_kind":"marker"}, "dis":"Troy, MI Humidity", "his":{"_kind":"marker"}, "humidity":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "tz":"Detroit", "unit":"%RH", "weather":{"_kind":"marker"}, "weatherStationRef":{"_kind":"ref", "val":"c-0267", "dis":"c-0267"}},
{"id":{"_kind":"ref", "val":"c-026d", "dis":"c-026d"}, "dis":"Troy, MI Precipitation", "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "precipitation":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "tz":"Detroit", "unit":"in", "weather":{"_kind":"marker"}, "weatherStationRef":{"_kind":"ref", "val":"c-0267", "dis":"c-0267"}},
{"id":{"_kind":"ref", "val":"c-026e", "dis":"c-026e"}, "daytime":{"_kind":"marker"}, "dis":"Troy, MI Sunrise", "his":{"_kind":"marker"}, "kind":"Bool", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "tz":"Detroit", "weather":{"_kind":"marker"}, "weatherStationRef":{"_kind":"ref", "val":"c-0267", "dis":"c-0267"}},
{"id":{"_kind":"ref", "val":"c-026f", "dis":"c-026f"}, "air":{"_kind":"marker"}, "dis":"Troy, MI Temp", "his":{"_kind":"marker"}, "kind":"Number", "point":{"_kind":"marker"}, "sensor":{"_kind":"marker"}, "temp":{"_kind":"marker"}, "tz":"Detroit", "unit":"\u00b0F", "weather":{"_kind":"marker"}, "weatherStationRef":{"_kind":"ref", "val":"c-0267", "dis":"c-0267"}}
]
| 455.370607
| 568
| 0.560773
| 38,558
| 285,062
| 3.955288
| 0.02469
| 0.279395
| 0.119731
| 0.131705
| 0.948095
| 0.946232
| 0.939682
| 0.931577
| 0.918273
| 0.893579
| 0
| 0.057745
| 0.050354
| 285,062
| 626
| 569
| 455.370607
| 0.505622
| 0
| 0
| 0
| 0
| 0.004792
| 0.583562
| 0.004322
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
8dfeb63914f113a35d7996ec2b3a28cd3cc16dbe
| 1,852
|
py
|
Python
|
python/tests/generated/errors/validation/test_missing_list_item_value.py
|
eno-lang/enolib
|
4175f7c1e8246493b6758c29bddc80d20eaf15f7
|
[
"MIT"
] | 17
|
2019-04-15T21:03:37.000Z
|
2022-01-24T11:03:34.000Z
|
python/tests/generated/errors/validation/test_missing_list_item_value.py
|
eno-lang/enolib
|
4175f7c1e8246493b6758c29bddc80d20eaf15f7
|
[
"MIT"
] | 20
|
2019-03-13T23:23:40.000Z
|
2022-03-29T13:40:57.000Z
|
python/tests/generated/errors/validation/test_missing_list_item_value.py
|
eno-lang/enolib
|
4175f7c1e8246493b6758c29bddc80d20eaf15f7
|
[
"MIT"
] | 4
|
2019-04-15T21:18:03.000Z
|
2019-09-21T16:18:10.000Z
|
import enolib
def test_directly_querying_a_list_item_for_a_required_but_missing_value_raises_the_expected_validationerror():
error = None
input = ("list:\n"
"-")
try:
enolib.parse(input).list('list').items()[0].required_string_value()
except enolib.ValidationError as _error:
if isinstance(_error, enolib.ValidationError):
error = _error
else:
raise _error
assert type(error) is enolib.ValidationError
text = ("The list 'list' may not contain empty items.")
assert error.text == text
snippet = (" Line | Content\n"
" 1 | list:\n"
" > 2 | -")
assert error.snippet == snippet
assert error.selection['from']['line'] == 1
assert error.selection['from']['column'] == 1
assert error.selection['to']['line'] == 1
assert error.selection['to']['column'] == 1
def test_indirectly_querying_a_list_with_empty_items_for_required_values_raises_the_expected_validationerror():
error = None
input = ("list:\n"
"-")
try:
enolib.parse(input).list('list').required_string_values()
except enolib.ValidationError as _error:
if isinstance(_error, enolib.ValidationError):
error = _error
else:
raise _error
assert type(error) is enolib.ValidationError
text = ("The list 'list' may not contain empty items.")
assert error.text == text
snippet = (" Line | Content\n"
" 1 | list:\n"
" > 2 | -")
assert error.snippet == snippet
assert error.selection['from']['line'] == 1
assert error.selection['from']['column'] == 1
assert error.selection['to']['line'] == 1
assert error.selection['to']['column'] == 1
| 29.396825
| 111
| 0.588553
| 205
| 1,852
| 5.117073
| 0.258537
| 0.125834
| 0.152526
| 0.120114
| 0.831268
| 0.831268
| 0.831268
| 0.831268
| 0.831268
| 0.831268
| 0
| 0.009841
| 0.286717
| 1,852
| 63
| 112
| 29.396825
| 0.784254
| 0
| 0
| 0.888889
| 0
| 0
| 0.14571
| 0
| 0
| 0
| 0
| 0
| 0.311111
| 1
| 0.044444
| false
| 0
| 0.022222
| 0
| 0.066667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
5c35dcad55357c51bf70e37bb459bfe0fc3bb8f1
| 2,011
|
py
|
Python
|
psana/psana/detector/bld.py
|
ZhenghengLi/lcls2
|
94e75c6536954a58c8937595dcac295163aa1cdf
|
[
"BSD-3-Clause-LBNL"
] | 16
|
2017-11-09T17:10:56.000Z
|
2022-03-09T23:03:10.000Z
|
psana/psana/detector/bld.py
|
ZhenghengLi/lcls2
|
94e75c6536954a58c8937595dcac295163aa1cdf
|
[
"BSD-3-Clause-LBNL"
] | 6
|
2017-12-12T19:30:05.000Z
|
2020-07-09T00:28:33.000Z
|
psana/psana/detector/bld.py
|
ZhenghengLi/lcls2
|
94e75c6536954a58c8937595dcac295163aa1cdf
|
[
"BSD-3-Clause-LBNL"
] | 25
|
2017-09-18T20:02:43.000Z
|
2022-03-27T22:27:42.000Z
|
import numpy as np
from psana.detector.detector_impl import DetectorImpl
# for AMI
import typing
import inspect
class hpsex_hpsex_0_0_1(DetectorImpl):
def __init__(self, *args):
super(hpsex_hpsex_0_0_1, self).__init__(*args)
self._add_fields()
def _info(self,evt):
# check for missing data
segments = self._segments(evt)
if segments is None: return None
return segments[0]
class hpscp_hpscp_0_0_1(DetectorImpl):
def __init__(self, *args):
super(hpscp_hpscp_0_0_1, self).__init__(*args)
self._add_fields()
def _info(self,evt):
# check for missing data
segments = self._segments(evt)
if segments is None: return None
return segments[0]
class ebeam_ebeamAlg_0_7_1(DetectorImpl):
def __init__(self, *args):
super(ebeam_ebeamAlg_0_7_1, self).__init__(*args)
self._add_fields()
class ebeam_raw_2_0_0(ebeam_ebeamAlg_0_7_1):
def __init__(self, *args):
super().__init__(*args)
class ebeamh_raw_2_0_0(ebeam_ebeamAlg_0_7_1):
def __init__(self, *args):
super().__init__(*args)
class pcav_raw_2_0_0(DetectorImpl):
def __init__(self, *args):
super(pcav_raw_2_0_0, self).__init__(*args)
self._add_fields()
class pcavh_raw_2_0_0(DetectorImpl):
def __init__(self, *args):
super(pcavh_raw_2_0_0, self).__init__(*args)
self._add_fields()
class gmd_raw_2_0_0(DetectorImpl):
def __init__(self, *args):
super(gmd_raw_2_0_0, self).__init__(*args)
self._add_fields()
class gmd_raw_2_1_0(DetectorImpl):
def __init__(self, *args):
super(gmd_raw_2_1_0, self).__init__(*args)
self._add_fields()
class xgmd_raw_2_0_0(DetectorImpl):
def __init__(self, *args):
super(xgmd_raw_2_0_0, self).__init__(*args)
self._add_fields()
class xgmd_raw_2_1_0(DetectorImpl):
def __init__(self, *args):
super(xgmd_raw_2_1_0, self).__init__(*args)
self._add_fields()
| 27.175676
| 57
| 0.679761
| 302
| 2,011
| 3.86755
| 0.149007
| 0.023973
| 0.103596
| 0.141267
| 0.906678
| 0.831336
| 0.831336
| 0.776541
| 0.776541
| 0.71661
| 0
| 0.042929
| 0.212332
| 2,011
| 73
| 58
| 27.547945
| 0.694444
| 0.026355
| 0
| 0.555556
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.240741
| false
| 0
| 0.074074
| 0
| 0.555556
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 8
|
ebb0bf2051b842e0ed7bdb646f4cc4506da3c5da
| 5,306
|
py
|
Python
|
svhn.py
|
flavda/datasets
|
9d5a4cb19a5d163323544a27a610fde7a3373a82
|
[
"MIT"
] | null | null | null |
svhn.py
|
flavda/datasets
|
9d5a4cb19a5d163323544a27a610fde7a3373a82
|
[
"MIT"
] | null | null | null |
svhn.py
|
flavda/datasets
|
9d5a4cb19a5d163323544a27a610fde7a3373a82
|
[
"MIT"
] | null | null | null |
from __future__ import print_function
import torch
from torchvision import datasets, transforms
from datasets.svhn_full import SVHNFull
from datasets.utils import create_loader
class SVHNFullLoader(object):
''' This loads the original SVHN dataset (non-centered).
The classes here are BCE classes where each bit
signifies the presence of the digit in the img'''
def __init__(self, path, batch_size, train_sampler=None, test_sampler=None,
transform=None, target_transform=None, use_cuda=1, **kwargs):
# first grab the datasets
train_dataset, test_dataset = self.get_datasets(path, transform,
target_transform)
# build the loaders
kwargs = {'num_workers': 4, 'pin_memory': True} if use_cuda else {}
self.train_loader = create_loader(train_dataset,
train_sampler,
batch_size,
shuffle=True if train_sampler is None else False,
**kwargs)
self.test_loader = create_loader(test_dataset,
test_sampler,
batch_size,
shuffle=False,
**kwargs)
self.output_size = 10
self.batch_size = batch_size
self.img_shp = [3, 32, 32]
@staticmethod
def get_datasets(path, transform=None, target_transform=None):
if transform:
assert isinstance(transform, list)
transform_list = []
if transform:
transform_list.extend(transform)
# normalize = transforms.Normalize(mean=[0.485, 0.456, 0.406],
# std=[0.229, 0.224, 0.225])
# normalize = transforms.Normalize(mean=(0.5, 0.5, 0.5),
# std=(0.5, 0.5, 0.5))
# transform_list.append(normalize)
transform_list.append(transforms.ToTensor())
train_dataset = SVHNFull(path, split='train', download=True,
transform=transforms.Compose(transform_list),
target_transform=target_transform)
test_dataset = SVHNFull(path, split='test', download=True,
transform=transforms.Compose(transform_list),
target_transform=target_transform)
return train_dataset, test_dataset
class SVHNCenteredLoader(object):
def __init__(self, path, batch_size, train_sampler=None, test_sampler=None,
transform=None, target_transform=None, use_cuda=1, **kwargs):
# first grab the datasets
train_dataset, test_dataset = self.get_datasets(
#path, target_transform=None #transforms.Lambda(lambda lbl: lbl - 1)
path, transform, target_transform
)
# build the loaders
kwargs = {'num_workers': 4, 'pin_memory': True} if use_cuda else {}
self.train_loader = create_loader(train_dataset,
train_sampler,
batch_size,
shuffle=True if train_sampler is None else False,
**kwargs)
self.test_loader = create_loader(test_dataset,
test_sampler,
batch_size,
shuffle=False,
**kwargs)
self.output_size = 10
self.batch_size = batch_size
self.img_shp = [3, 32, 32]
@staticmethod
def get_datasets(path, transform=None, target_transform=None):
if transform:
assert isinstance(transform, list)
transform_list = []
if transform:
transform_list.extend(transform)
# target_transform_list = [transforms.Lambda(lambda lbl: lbl - 1)]
# if target_transform:
# target_transform_list.append(target_transform)
# normalize = transforms.Normalize(mean=[0.485, 0.456, 0.406],
# std=[0.229, 0.224, 0.225])
# normalize = transforms.Normalize(mean=(0.5, 0.5, 0.5),
# std=(0.5, 0.5, 0.5))
# transform_list.append(normalize)
transform_list.append(transforms.ToTensor())
train_dataset = datasets.SVHN(path, split='train', download=True,
transform=transforms.Compose(transform_list),
target_transform=target_transform)
#target_transform=transforms.Compose(target_transform_list))
test_dataset = datasets.SVHN(path, split='test', download=True,
transform=transforms.Compose(transform_list),
target_transform=target_transform)
#target_transform=transforms.Compose(target_transform_list))
return train_dataset, test_dataset
| 44.588235
| 98
| 0.532228
| 512
| 5,306
| 5.292969
| 0.195313
| 0.127306
| 0.088561
| 0.011808
| 0.838376
| 0.805535
| 0.784133
| 0.784133
| 0.784133
| 0.784133
| 0
| 0.028404
| 0.389559
| 5,306
| 118
| 99
| 44.966102
| 0.808274
| 0.203543
| 0
| 0.783784
| 0
| 0
| 0.014344
| 0
| 0
| 0
| 0
| 0
| 0.027027
| 1
| 0.054054
| false
| 0
| 0.067568
| 0
| 0.175676
| 0.013514
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
c634b840531352adde86b26b62daefcf564ccef9
| 12,582
|
py
|
Python
|
src/economy/migrations/0011_pos_posreport.py
|
bornhack/bornhack-website
|
40ed0875f5129a4c8ae1887e33e7dedb4981dadc
|
[
"BSD-3-Clause"
] | 7
|
2017-04-14T15:28:29.000Z
|
2021-09-10T09:45:38.000Z
|
src/economy/migrations/0011_pos_posreport.py
|
bornhack/bornhack-website
|
40ed0875f5129a4c8ae1887e33e7dedb4981dadc
|
[
"BSD-3-Clause"
] | 799
|
2016-04-28T09:31:50.000Z
|
2022-03-29T09:05:02.000Z
|
src/economy/migrations/0011_pos_posreport.py
|
bornhack/bornhack-website
|
40ed0875f5129a4c8ae1887e33e7dedb4981dadc
|
[
"BSD-3-Clause"
] | 35
|
2016-04-28T09:23:53.000Z
|
2021-05-02T12:36:01.000Z
|
# Generated by Django 3.1 on 2020-08-10 23:41
import uuid
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("teams", "0052_team_permission_set"),
("economy", "0010_auto_20190330_1045"),
]
operations = [
migrations.CreateModel(
name="Pos",
fields=[
(
"uuid",
models.UUIDField(
default=uuid.uuid4,
editable=False,
primary_key=True,
serialize=False,
),
),
("created", models.DateTimeField(auto_now_add=True)),
("updated", models.DateTimeField(auto_now=True)),
(
"name",
models.CharField(
help_text="The point-of-sale name", max_length=255
),
),
(
"slug",
models.SlugField(
blank=True,
help_text="Url slug for this POS. Leave blank to generate based on POS name.",
max_length=255,
),
),
(
"team",
models.ForeignKey(
help_text="The Team managning this POS",
on_delete=django.db.models.deletion.PROTECT,
to="teams.team",
),
),
],
options={
"ordering": ["name"],
},
),
migrations.CreateModel(
name="PosReport",
fields=[
(
"uuid",
models.UUIDField(
default=uuid.uuid4,
editable=False,
primary_key=True,
serialize=False,
),
),
("created", models.DateTimeField(auto_now_add=True)),
("updated", models.DateTimeField(auto_now=True)),
(
"date",
models.DateField(
help_text="The date this report covers (pick the starting date if opening hours cross midnight)."
),
),
(
"pos_json",
models.JSONField(
blank=True,
help_text="The JSON exported from the external POS system",
null=True,
),
),
(
"bank_count_dkk_start",
models.PositiveIntegerField(
default=0,
help_text="The number of DKK handed out from the bank to the POS at the start of the business day (counted by the bank responsible)",
),
),
(
"bank_count_hax5_start",
models.PositiveIntegerField(
default=0,
help_text="The number of 5 HAX coins handed out from the bank to the POS at the start of the business day (counted by the bank responsible)",
),
),
(
"bank_count_hax10_start",
models.PositiveIntegerField(
default=0,
help_text="The number of 10 HAX coins handed out from the bank to the POS at the start of the business day (counted by the bank responsible)",
),
),
(
"bank_count_hax20_start",
models.PositiveIntegerField(
default=0,
help_text="The number of 20 HAX coins handed out from the bank to the POS at the start of the business day (counted by the bank responsible)",
),
),
(
"bank_count_hax50_start",
models.PositiveIntegerField(
default=0,
help_text="The number of 50 HAX coins handed out from the bank to the POS at the start of the business day (counted by the bank responsible)",
),
),
(
"bank_count_hax100_start",
models.PositiveIntegerField(
default=0,
help_text="The number of 100 HAX coins handed out from the bank to the POS at the start of the business day (counted by the bank responsible)",
),
),
(
"pos_count_dkk_start",
models.PositiveIntegerField(
default=0,
help_text="The number of DKK handed out from the bank to the POS at the start of the business day (counted by the POS responsible)",
),
),
(
"pos_count_hax5_start",
models.PositiveIntegerField(
default=0,
help_text="The number of 5 HAX coins received by the POS from the bank at the start of the business day (counted by the POS responsible)",
),
),
(
"pos_count_hax10_start",
models.PositiveIntegerField(
default=0,
help_text="The number of 10 HAX coins received by the POS from the bank at the start of the business day (counted by the POS responsible)",
),
),
(
"pos_count_hax20_start",
models.PositiveIntegerField(
default=0,
help_text="The number of 20 HAX coins received by the POS from the bank at the start of the business day (counted by the POS responsible)",
),
),
(
"pos_count_hax50_start",
models.PositiveIntegerField(
default=0,
help_text="The number of 50 HAX coins received by the POS from the bank at the start of the business day (counted by the POS responsible)",
),
),
(
"pos_count_hax100_start",
models.PositiveIntegerField(
default=0,
help_text="The number of 100 HAX coins received by the POS from the bank at the start of the business day (counted by the POS responsible)",
),
),
(
"bank_count_dkk_end",
models.PositiveIntegerField(
default=0,
help_text="The number of DKK handed back from the POS to the bank at the end of the business day (counted by the bank responsible)",
),
),
(
"bank_count_hax5_end",
models.PositiveIntegerField(
default=0,
help_text="The number of 5 HAX coins handed back from the POS to the bank at the end of the business day (counted by the bank responsible)",
),
),
(
"bank_count_hax10_end",
models.PositiveIntegerField(
default=0,
help_text="The number of 10 HAX coins handed back from the POS to the bank at the end of the business day (counted by the bank responsible)",
),
),
(
"bank_count_hax20_end",
models.PositiveIntegerField(
default=0,
help_text="The number of 20 HAX coins handed back from the POS to the bank at the end of the business day (counted by the bank responsible)",
),
),
(
"bank_count_hax50_end",
models.PositiveIntegerField(
default=0,
help_text="The number of 50 HAX coins handed back from the POS to the bank at the end of the business day (counted by the bank responsible)",
),
),
(
"bank_count_hax100_end",
models.PositiveIntegerField(
default=0,
help_text="The number of 100 HAX coins handed back from the POS to the bank at the end of the business day (counted by the bank responsible)",
),
),
(
"pos_count_dkk_end",
models.PositiveIntegerField(
default=0,
help_text="The number of DKK handed back from the POS to the bank at the end of the business day (counted by the POS responsible)",
),
),
(
"pos_count_hax5_end",
models.PositiveIntegerField(
default=0,
help_text="The number of 5 HAX coins received by the bank from the POS at the end of the business day (counted by the POS responsible)",
),
),
(
"pos_count_hax10_end",
models.PositiveIntegerField(
default=0,
help_text="The number of 10 HAX coins received by the bank from the POS at the end of the business day (counted by the POS responsible)",
),
),
(
"pos_count_hax20_end",
models.PositiveIntegerField(
default=0,
help_text="The number of 20 HAX coins received by the bank from the POS at the end of the business day (counted by the POS responsible)",
),
),
(
"pos_count_hax50_end",
models.PositiveIntegerField(
default=0,
help_text="The number of 50 HAX coins received by the bank from the POS at the end of the business day (counted by the POS responsible)",
),
),
(
"pos_count_hax100_end",
models.PositiveIntegerField(
default=0,
help_text="The number of 100 HAX coins received by the bank from the POS at the end of the business day (counted by the POS responsible)",
),
),
(
"bank_responsible",
models.ForeignKey(
help_text="The banker responsible for this PosReport",
on_delete=django.db.models.deletion.PROTECT,
related_name="pos_reports_banker",
to=settings.AUTH_USER_MODEL,
),
),
(
"pos",
models.ForeignKey(
help_text="The Pos this PosReport belongs to.",
on_delete=django.db.models.deletion.PROTECT,
related_name="pos_reports",
to="economy.pos",
),
),
(
"pos_responsible",
models.ForeignKey(
help_text="The POS person responsible for this PosReport",
on_delete=django.db.models.deletion.PROTECT,
related_name="pos_reports_poser",
to=settings.AUTH_USER_MODEL,
),
),
],
options={
"abstract": False,
},
),
]
| 43.536332
| 167
| 0.440312
| 1,143
| 12,582
| 4.72266
| 0.118985
| 0.042238
| 0.063172
| 0.151167
| 0.845869
| 0.832345
| 0.812153
| 0.805298
| 0.805298
| 0.805298
| 0
| 0.023116
| 0.498013
| 12,582
| 288
| 168
| 43.6875
| 0.831539
| 0.003418
| 0
| 0.548043
| 1
| 0.085409
| 0.327989
| 0.020978
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.014235
| 0
| 0.024911
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
d67aa1f543d6cd188b03057ee434fd8477614e89
| 3,783
|
py
|
Python
|
accelbyte_py_sdk/api/social/wrappers/__init__.py
|
encyphered/accelbyte-python-sdk
|
09c1e989d7251de308150fdcd3119d662ca2d205
|
[
"MIT"
] | null | null | null |
accelbyte_py_sdk/api/social/wrappers/__init__.py
|
encyphered/accelbyte-python-sdk
|
09c1e989d7251de308150fdcd3119d662ca2d205
|
[
"MIT"
] | null | null | null |
accelbyte_py_sdk/api/social/wrappers/__init__.py
|
encyphered/accelbyte-python-sdk
|
09c1e989d7251de308150fdcd3119d662ca2d205
|
[
"MIT"
] | null | null | null |
"""Auto-generated package that contains utility functions for the social API."""
__version__ = "1.17.1"
__author__ = "AccelByte"
__email__ = "dev@accelbyte.net"
# pylint: disable=line-too-long
from ._game_profile import get_user_profiles
from ._game_profile import get_profile
from ._game_profile import public_get_user_profiles
from ._game_profile import public_create_profile
from ._game_profile import public_get_profile_attribute
from ._game_profile import public_update_attribute
from ._game_profile import public_get_profile
from ._game_profile import public_update_profile
from ._game_profile import public_delete_profile
from ._game_profile import public_get_user_game_profiles
from ._global_statistic import get_global_stat_items
from ._user_statistic import bulk_inc_user_stat_item
from ._user_statistic import bulk_inc_user_stat_item_value
from ._user_statistic import bulk_fetch_stat_items
from ._user_statistic import bulk_reset_user_stat_item
from ._user_statistic import bulk_inc_user_stat_item_1
from ._user_statistic import bulk_inc_user_stat_item_value_1
from ._user_statistic import get_user_stat_items
from ._user_statistic import bulk_create_user_stat_items
from ._user_statistic import bulk_reset_user_stat_item_1
from ._user_statistic import create_user_stat_item
from ._user_statistic import delete_user_stat_items
from ._user_statistic import reset_user_stat_item_value
from ._user_statistic import inc_user_stat_item_value
from ._user_statistic import public_bulk_inc_user_stat_item
from ._user_statistic import public_bulk_inc_user_stat_item_value
from ._user_statistic import bulk_fetch_stat_items_1
from ._user_statistic import bulk_reset_user_stat_item_2
from ._user_statistic import public_bulk_inc_user_stat_item_1
from ._user_statistic import bulk_inc_user_stat_item_value_2
from ._user_statistic import public_query_user_stat_items
from ._user_statistic import public_bulk_create_user_stat_items
from ._user_statistic import bulk_reset_user_stat_item_3
from ._user_statistic import public_inc_user_stat_item
from ._user_statistic import public_inc_user_stat_item_value
from ._user_statistic import public_create_user_stat_item
from ._user_statistic import delete_user_stat_items_1
from ._user_statistic import reset_user_stat_item_value_1
from ._user_statistic import bulk_update_user_stat_item_v2
from ._user_statistic import bulk_update_user_stat_item
from ._user_statistic import update_user_stat_item_value
from ._user_statistic import delete_user_stat_items_2
from ._user_statistic import bulk_update_user_stat_item_1
from ._user_statistic import bulk_update_user_stat_item_2
from ._user_statistic import update_user_stat_item_value_1
from ._stat_configuration import get_stat
from ._stat_configuration import delete_stat
from ._stat_configuration import update_stat
from ._stat_configuration import get_stats
from ._stat_configuration import create_stat
from ._stat_configuration import query_stats
from ._stat_configuration import export_stats
from ._stat_configuration import import_stats
from ._stat_configuration import create_stat_1
from ._slot_config import get_namespace_slot_config
from ._slot_config import update_namespace_slot_config
from ._slot_config import delete_namespace_slot_config
from ._slot_config import get_user_slot_config
from ._slot_config import update_user_slot_config
from ._slot_config import delete_user_slot_config
from ._slot import get_slot_data
from ._slot import get_user_namespace_slots
from ._slot import public_get_slot_data
from ._slot import public_update_user_namespace_slot
from ._slot import public_delete_user_namespace_slot
from ._slot import public_get_user_namespace_slots
from ._slot import public_create_user_namespace_slot
from ._slot import public_update_user_namespace_slot_metadata
| 46.703704
| 80
| 0.895586
| 594
| 3,783
| 5.070707
| 0.099327
| 0.174303
| 0.191899
| 0.259628
| 0.914343
| 0.818393
| 0.762616
| 0.566733
| 0.441567
| 0.294489
| 0
| 0.005744
| 0.079566
| 3,783
| 80
| 81
| 47.2875
| 0.859276
| 0.027756
| 0
| 0
| 1
| 0
| 0.008715
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.957746
| 0
| 0.957746
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
d695c5ffd1733557bdc99c3237579a7245599800
| 4,746
|
py
|
Python
|
Packs/CommonScripts/Scripts/UnzipFile/UnzipFile_test.py
|
mchasepan/content
|
177c7fe86c4872141107f48075c6578daffc4bd4
|
[
"MIT"
] | 1
|
2021-04-20T07:10:06.000Z
|
2021-04-20T07:10:06.000Z
|
Packs/CommonScripts/Scripts/UnzipFile/UnzipFile_test.py
|
mchasepan/content
|
177c7fe86c4872141107f48075c6578daffc4bd4
|
[
"MIT"
] | 2
|
2019-09-18T08:11:22.000Z
|
2020-11-24T18:50:28.000Z
|
Packs/CommonScripts/Scripts/UnzipFile/UnzipFile_test.py
|
mchasepan/content
|
177c7fe86c4872141107f48075c6578daffc4bd4
|
[
"MIT"
] | 2
|
2020-10-11T18:01:32.000Z
|
2020-10-14T03:21:23.000Z
|
from tempfile import mkdtemp
from UnzipFile import *
import os
import sys
import pytest
data_test_unzip_no_password = ['testZip.yml', 'ScanSummary.txt', 'item.png']
@pytest.mark.parametrize('file_name', data_test_unzip_no_password)
def test_unzip_no_password(file_name):
"""
Given
- valid zip file - no password required
- empty folder _dir
When
- run extract on that zip file and export the internal files to _dir
Then
- ensure zip file content have be saved at _dir directory with the original filename
- ensure that the saved file has expected content
"""
# Given
# - valid zip file - no password required
main_dir = '/'.join(__file__.split('/')[0:-1])
expected_file_unzipped = os.path.join(main_dir + '/data_test', file_name)
zipped_file_path = expected_file_unzipped + '.zip'
# Creation of file object
zipped_file_object = {
'name': 'testFile',
'path': zipped_file_path
}
# - empty folder _di
_dir = mkdtemp()
# When
# - run extract on that zip file and export the internal files to _dir
extract(zipped_file_object, _dir)
# Then
# - ensure zip file content have been saved at _dir directory with the original filename
with open(_dir + '/' + file_name, 'rb') as f:
actual_file_data = f.read()
with open(expected_file_unzipped, 'rb') as f:
expected_data = f.read()
shutil.rmtree(_dir)
# - ensure that the saved file has expected content data
assert expected_data == actual_file_data, 'failed extracting ' + zipped_file_path
data_test_unzip_with_password = [
('fix_unzip.png', 'demisto'),
]
@pytest.mark.parametrize('file_name, password', data_test_unzip_with_password)
def test_unzip_with_password(file_name, password):
"""
Given
- valid zip file - with password required
- empty folder _dir
When
- run extract on that zip file and export the internal files to _dir
Then
- ensure zip file content have be saved at _dir directory with the original filename
- ensure that the saved file has expected content
"""
# Given
# - valid zip file - no password required
main_dir = '/'.join(__file__.split('/')[0:-1])
expected_file_unzipped = os.path.join(main_dir + '/data_test', file_name)
zipped_file_path = expected_file_unzipped + '.zip'
# Creation of file object
zipped_file_object = {
'name': 'testFile',
'path': zipped_file_path
}
# - empty folder _dir
_dir = mkdtemp()
# When
# - run extract on that zip file and export the internal files to _dir
extract(zipped_file_object, _dir, password)
# Then
# - ensure zip file content have been saved at _dir directory with the original filename
with open(_dir + '/' + file_name, 'rb') as f:
actual_file_data = f.read()
with open(expected_file_unzipped, 'rb') as f:
expected_data = f.read()
shutil.rmtree(_dir)
# - ensure that the saved file has expected content data
assert expected_data == actual_file_data,\
'failed unzipping file: ' + zipped_file_path + ' with password: ' + password
def test_unrar_no_password():
"""
Given
- valid rar file - no password required
- empty folder _dir
When
- run extract on the rar file and export the internal files to _dir
Then
- ensure rar file content has been saved at _dir directory with the original filename
- ensure that the saved file has expected content
"""
if sys.version_info > (3, 0):
# Given
# - valid rar file - no password required
file_name = 'Untitled_document.pdf'
main_dir = '/'.join(__file__.split('/')[0:-1])
expected_file_unzipped = os.path.join(main_dir + '/data_test', file_name)
zipped_file_path = expected_file_unzipped + '.rar'
# Creation of file object
zipped_file_object = {
'name': 'testFile',
'path': zipped_file_path
}
# - empty folder _di
_dir = mkdtemp()
# When
# - run extract on that zip file and export the internal files to _dir
extract(zipped_file_object, _dir)
# Then
# - ensure rar file content have been saved at _dir directory with the original filename
with open(_dir + '/' + file_name, 'rb') as f:
actual_file_data = f.read()
with open(expected_file_unzipped, 'rb') as f:
expected_data = f.read()
shutil.rmtree(_dir)
# - ensure that the saved file has expected content data
assert expected_data == actual_file_data, 'failed extracting ' + zipped_file_path
else:
assert len("This doesn't work on the old docker image") > 1
| 35.954545
| 96
| 0.660135
| 643
| 4,746
| 4.62986
| 0.157076
| 0.050386
| 0.060464
| 0.032247
| 0.863957
| 0.812227
| 0.806517
| 0.786026
| 0.786026
| 0.784683
| 0
| 0.002539
| 0.253055
| 4,746
| 131
| 97
| 36.229008
| 0.837236
| 0.373578
| 0
| 0.609375
| 0
| 0
| 0.117146
| 0.007455
| 0
| 0
| 0
| 0
| 0.0625
| 1
| 0.046875
| false
| 0.140625
| 0.078125
| 0
| 0.125
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 7
|
d6e6b944f17909266227cd6dba65b9ef0659ff5d
| 9,825
|
py
|
Python
|
merino/assemble/assemble_prep.py
|
cmap/merino
|
30701866b05b8517e09beaec17a3ea4454c1fd63
|
[
"BSD-3-Clause"
] | 3
|
2018-10-05T11:38:36.000Z
|
2019-07-23T16:53:18.000Z
|
merino/assemble/assemble_prep.py
|
cmap/merino
|
30701866b05b8517e09beaec17a3ea4454c1fd63
|
[
"BSD-3-Clause"
] | 9
|
2018-09-17T20:35:24.000Z
|
2021-07-13T14:04:51.000Z
|
merino/assemble/assemble_prep.py
|
cmap/merino
|
30701866b05b8517e09beaec17a3ea4454c1fd63
|
[
"BSD-3-Clause"
] | 1
|
2018-09-25T14:32:49.000Z
|
2018-09-25T14:32:49.000Z
|
import glob
import os
def assemble_run(project_folder):
for x in glob.glob(project_folder + '/lxb/*'):
if os.path.basename(x).split('_')[0] + '_CS5_' + os.path.basename(x).split('_')[2] not in [os.path.basename(y) for y in glob.glob(project_folder + 'assemble/*')]:
pert = os.path.basename(x)
name = pert.split('_')[0] + '_CS5_' + pert.split('_')[2]
print name
trunc = pert[0:7]
os.system(
'python assemble.py -config_filepath prism_pipeline.cfg -ptp /Volumes/cmap_obelix/pod/custom/PREP/PREP014-48_plate_key.txt -csdf /Volumes/cmap/data/vdb/PRISM/cell_set_definitions/PRISM_CS5_cellset.txt -dmf /Users/elemire/Workspace/projects/PRvDP/PR500_mapping.txt -out /Volumes/cmap_obelix/pod/custom/PREP/assemble/ -prn {} -dp_csv PR500 /Volumes/cmap_obelix/pod/custom/PREP/lxb/{}/{}.csv -pmp /Volumes/cmap_obelix/pod/custom/PREP/map_src/PREP014-48/{}.src'.format(
name, pert, pert, trunc))
def prep_run():
for x in glob.glob('/Volumes/cmap_obelix/pod/custom/PREP/lxb/*PR500*'):
if os.path.basename(x).split('_')[0] + '_CS5_' + os.path.basename(x).split('_')[2] not in [os.path.basename(y) for y in glob.glob('/Volumes/cmap_obelix/pod/custom/PREP/assemble/*')]:
pert = os.path.basename(x)
name = pert.split('_')[0] + '_CS5_' + pert.split('_')[2]
print name
trunc = pert[0:7]
os.system('python ~/Workspace/merino/assemble.py -config_filepath prism_pipeline.cfg -ptp /Volumes/cmap_obelix/pod/custom/PREP/PREP014-48_plate_key.txt -csdf /Volumes/cmap/data/vdb/PRISM/cell_set_definitions/PRISM_PR500.CS5_definition.txt -dmf /Volumes/cmap/data/vdb/PRISM/analyte_mapping/PR500_mapping.txt -out /Volumes/cmap_obelix/pod/custom/PREP/assemble/ -prn {} -dp_csv PR500 /Volumes/cmap_obelix/pod/custom/PREP/lxb/{}/{}.jcsv -pmp /Volumes/cmap_obelix/pod/custom/PREP/map_src/PREP014-48/{}.src'.format(name, pert, pert, trunc))
def pasg_run():
for x in glob.glob('/Volumes/cmap_obelix/pod/custom/PASG/lxb/*PR500*'):
if os.path.basename(x).split('_')[0] + '_CS5_' + os.path.basename(x).split('_')[2] not in [os.path.basename(y) for y in glob.glob('/Volumes/cmap_obelix/pod/custom/PASG/assemble/*')]:
pert = os.path.basename(x)
name = pert.split('_')[0] + '_CS5_' + pert.split('_')[2]
print name
trunc = pert[0:7]
os.system('python ~/Workspace/merino/assemble.py -config_filepath prism_pipeline.cfg -ptp /Volumes/cmap_obelix/pod/custom/PREP/PREP014-48_plate_key.txt -csdf /Volumes/cmap/data/vdb/PRISM/cell_set_definitions/PRISM_PR500.CS5_definition.txt -dmf /Users/elemire/Workspace/projects/PRvDP/PR500_mapping.txt -out /Volumes/cmap_obelix/pod/custom/PASG/assemble/ -prn {} -dp_csv PR500 /Volumes/cmap_obelix/pod/custom/PASG/lxb/{}/{}.csv -pmp /Users/elemire/Workspace/deal_with_this_later/PASG003.src'.format(name, pert, pert))
def pcal_run():
for x in glob.glob('/Volumes/cmap_obelix/pod/custom/PCAL/lxb/*PR500_*'):
if os.path.basename(x).split('_')[0] + '_CS5_' + os.path.basename(x).split('_')[2] not in [os.path.basename(y) for y in glob.glob('/Volumes/cmap_obelix/pod/custom/PCAL/assemble/*')]:
pert = os.path.basename(x)
name = pert.split('_')[0] + '_CS5_' + pert.split('_')[2]
print name
trunc = pert[0:7]
os.system('python ~/Workspace/merino/assemble/assemble.py -config_filepath prism_pipeline.cfg -at PR500 -out /Volumes/cmap_obelix/pod/custom/PCAL/assemble/ -prn {} -csv /Volumes/cmap_obelix/pod/custom/PCAL/lxb/{}/{}.csv -pmp /Volumes/cmap_obelix/pod/custom/PCAL/map_src/PCAL075-102/{}.src'.format(name, pert, pert, trunc))
def pcal_t2b_run():
for x in glob.glob('/Volumes/cmap_obelix/pod/custom/PCAL/lxb/*PR500.2*'):
if os.path.basename(x).split('_')[0] + '_CS5_' + os.path.basename(x).split('_')[2] not in [os.path.basename(y) for y in glob.glob('/Volumes/cmap_obelix/pod/custom/PCAL/assemble/*')]:
pert = os.path.basename(x)
name = pert.split('_')[0] + '_CS5_' + pert.split('_')[2]
print name
trunc = pert[0:7]
os.system('python ~/Workspace/merino/assemble.py -config_filepath prism_pipeline.cfg -out /Volumes/cmap_obelix/pod/custom/PCAL/assemble/ -prn {} -csv /Volumes/cmap_obelix/pod/custom/PCAL/lxb/{}/{}.jcsv -pmp /Volumes/cmap_obelix/pod/custom/PCAL/map_src/PCAL103-126/plate_maps/{}.src -at PR500'.format(name, pert, pert, trunc))
def pmts_run():
for x in glob.glob('/Volumes/cmap_obelix/pod/custom/PMTS/lxb/combined/*PR500*'):
if os.path.basename(x).split('_')[0] + '_CS5_' + os.path.basename(x).split('_')[2] not in [os.path.basename(y) for y in glob.glob('/Volumes/cmap_obelix/pod/custom/PMTS/assemble/*')]:
pert = os.path.basename(x)
name = pert.split('_')[0] + '_CS5_' + pert.split('_')[2]
print name
trunc = pert[0:7]
os.system('python ~/Workspace/merino/assemble.py -config_filepath prism_pipeline.cfg -ptp /Volumes/cmap_obelix/pod/custom/PCAL/map_src/PCAL103-126/plate_tracking/PCAL103-126_plate_tracking.txt -csdf /Volumes/cmap/data/vdb/PRISM/cell_set_definitions/PRISM_CS5_cellset.txt -dmf /Volumes/cmap/data/vdb/PRISM/analyte_mapping/PR500_mapping.txt -out /Volumes/cmap_obelix/pod/custom/PMTS/assemble/ -prn {} -dp_csv PR500 /Volumes/cmap_obelix/pod/custom/PMTS/lxb/combined/{}/{}.csv -pmp /Volumes/cmap_obelix/pod/custom/PMTS/map_src/PMTS008-11/{}.src'.format(name, pert, pert, trunc))
def pmcl_run():
for x in glob.glob('/Volumes/cmap_obelix/pod/custom/PMCL/lxb/combined/*PR500*'):
if os.path.basename(x).split('_')[0] + '_CS5_' + os.path.basename(x).split('_')[2] not in [os.path.basename(y) for y in glob.glob('/Volumes/cmap_obelix/pod/custom/PMCL/assemble/*')]:
pert = os.path.basename(x)
name = pert.split('_')[0] + '_CS5_' + pert.split('_')[2]
print name
trunc = pert[0:7]
os.system('python ~/Workspace/merino/assemble.py -config_filepath prism_pipeline.cfg -ptp /Volumes/cmap_obelix/pod/custom/PCAL/map_src/PCAL103-126/plate_tracking/PCAL103-126_plate_tracking.txt -csdf /Volumes/cmap/data/vdb/PRISM/cell_set_definitions/PRISM_CS5_cellset.txt -dmf /Volumes/cmap/data/vdb/PRISM/analyte_mapping/PR500_mapping.txt -out /Volumes/cmap_obelix/pod/custom/PMCL/assemble/ -prn {} -dp_csv PR500 /Volumes/cmap_obelix/pod/custom/PMCL/lxb/combined/{}/{}.csv -pmp /Volumes/cmap_obelix/pod/custom/PMCL/map_src/{}.src'.format(name, pert, pert, trunc))
def pcal_t3a():
for x in glob.glob('/Volumes/cmap_obelix/pod/custom/PCAL/lxb/*PR500.3*'):
if os.path.basename(x).split('_')[0] + '_CS5_' + os.path.basename(x).split('_')[2] not in [os.path.basename(y) for y in glob.glob('/Volumes/cmap_obelix/pod/custom/PCAL/assemble/*')]:
pert = os.path.basename(x)
map = pert.replace('.L2', '')
map = map.replace('.L3', '')
name = pert.split('_')[0] + '_CS5_' + pert.split('_')[2]
print name
trunc = pert[0:7]
os.system('python ~/Workspace/merino/assemble.py -config_filepath prism_pipeline.cfg -ptp /Volumes/cmap_obelix/pod/custom/PREP/PREP014-48_plate_key.txt -csdf /Volumes/cmap/data/vdb/PRISM/cell_set_definitions/PRISM_PR500.CS5_definition.txt -dmf /Volumes/cmap/data/vdb/PRISM/analyte_mapping/PR500_mapping.txt -out /Volumes/cmap_obelix/pod/custom/PCAL/assemble/ -prn {} -dp_csv PR500 /Volumes/cmap_obelix/pod/custom/PCAL/lxb/{}/{}.csv -pmp /Volumes/cmap_obelix/pod/custom/PCAL/elwork/PCAL_T3A/map_src/PCAL127-155/maps/{}.src'.format(name, pert, pert, map))
def cbrant():
for x in glob.glob('/Volumes/cmap_obelix/pod/custom/CBRANT/lxb/*'):
if os.path.basename(x).replace('KJ100_', 'KJ100.').replace('_CP2.1', '') not in [os.path.basename(y) for y in glob.glob('/Volumes/cmap_obelix/pod/custom/CBRANT/assemble/*')]:
pert = os.path.basename(x)
name = pert.replace('KJ100_', 'KJ100.')
name = name.replace('_CP2.1', '')
print name
trunc = pert[0:9]
os.system('python ~/Workspace/merino/assemble.py -config_filepath prism_pipeline.cfg -ptp /Volumes/cmap_obelix/pod/custom/PREP/PREP014-48_plate_key.txt -csdf /Volumes/cmap/data/vdb/PRISM/cell_set_definitions/PRISM_PR500.CS5_definition.txt -dmf /Volumes/cmap/data/vdb/PRISM/analyte_mapping/copin_p904.p906.P907.P915_mapping.txt -out /Volumes/cmap_obelix/pod/custom/CBRANT/assemble/ -prn {} -dp_csv PR500 /Volumes/cmap_obelix/pod/custom/CBRANT/lxb/{}/{}.csv -pmp /Volumes/cmap_obelix/pod/custom/CBRANT/map_src/{}.src'.format(name, pert, pert, trunc))
def pbrant():
for x in glob.glob('/Volumes/cmap_obelix/pod/custom/PBRANT/lxb/*'):
if os.path.basename(x).replace('KJ100_', 'KJ100.').replace('_PR500.3', '') not in [os.path.basename(y) for y in glob.glob('/Volumes/cmap_obelix/pod/custom/PBRANT/assemble/*')]:
pert = os.path.basename(x)
name = pert.replace('KJ100_', 'KJ100.')
if '_PR500.3_' in name:
name = name.replace('_PR500.3_', '_CS5_')
name = name.replace('_PR500.3', '')
print name
trunc = pert[0:9]
os.system('python ~/Workspace/merino/assemble.py -config_filepath prism_pipeline.cfg -ptp /Volumes/cmap_obelix/pod/custom/PREP/PREP014-48_plate_key.txt -csdf /Volumes/cmap/data/vdb/PRISM/cell_set_definitions/PRISM_PR500.CS5_definition.txt -dmf /Volumes/cmap/data/vdb/PRISM/analyte_mapping/PR500_mapping.txt -out /Volumes/cmap_obelix/pod/custom/PBRANT/assemble/ -prn {} -dp_csv PR500 /Volumes/cmap_obelix/pod/custom/PBRANT/lxb/{}/{}.csv -pmp /Volumes/cmap_obelix/pod/custom/PBRANT/map_src/{}.src'.format(name, pert, pert, trunc))
| 87.723214
| 586
| 0.679593
| 1,478
| 9,825
| 4.345061
| 0.075778
| 0.118187
| 0.145593
| 0.171286
| 0.94986
| 0.930551
| 0.922921
| 0.905481
| 0.874805
| 0.83977
| 0
| 0.037743
| 0.14514
| 9,825
| 111
| 587
| 88.513514
| 0.726872
| 0
| 0
| 0.477778
| 0
| 0.111111
| 0.573101
| 0.453166
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.022222
| null | null | 0.111111
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
baa537f1a141eb8c7f7e16365fd8703e9576b1ea
| 243
|
py
|
Python
|
cudanet/__init__.py
|
TimDettmers/dlearndb
|
975b6977e61cf02508199ccd97b294ee0238639f
|
[
"Apache-2.0"
] | null | null | null |
cudanet/__init__.py
|
TimDettmers/dlearndb
|
975b6977e61cf02508199ccd97b294ee0238639f
|
[
"Apache-2.0"
] | null | null | null |
cudanet/__init__.py
|
TimDettmers/dlearndb
|
975b6977e61cf02508199ccd97b294ee0238639f
|
[
"Apache-2.0"
] | null | null | null |
# ----------------------------------------------------------------------------
# Copyright 2014 Nervana Systems Inc. All rights reserved.
# ----------------------------------------------------------------------------
from cudanet import *
| 30.375
| 78
| 0.263374
| 11
| 243
| 5.818182
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.018018
| 0.08642
| 243
| 7
| 79
| 34.714286
| 0.27027
| 0.868313
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
baa858c3d7612f56bdec9955871acfb670afdcc2
| 5,076
|
py
|
Python
|
Assignments/Homework 3/q2/utils.py
|
linbo0518/CSE-5334-Data-Mining
|
766f360589e2efa740884ad95aa0ac5cb5705920
|
[
"MIT"
] | null | null | null |
Assignments/Homework 3/q2/utils.py
|
linbo0518/CSE-5334-Data-Mining
|
766f360589e2efa740884ad95aa0ac5cb5705920
|
[
"MIT"
] | null | null | null |
Assignments/Homework 3/q2/utils.py
|
linbo0518/CSE-5334-Data-Mining
|
766f360589e2efa740884ad95aa0ac5cb5705920
|
[
"MIT"
] | null | null | null |
from datetime import datetime
import numpy as np
import torch
class Accuracy:
def __init__(self, eps=1e-7):
self._correct = 0
self._total = 0
self._eps = eps
def update(self, preds, targets):
if preds.size(1) == 1:
preds = torch.sigmoid(preds)
preds[preds >= 0.5] = 1
preds[preds < 0.5] = 0
else:
preds = torch.argmax(preds, dim=1)
self._correct += (preds == targets).sum().item()
self._total += len(targets)
def get(self):
return self._correct / (self._total + self._eps)
def reset(self):
self._correct = 0
self._total = 0
def train(dataloader, model, criterion, optimizer, scheduler, config, epoch):
model.train()
loss_history = []
acc_metric = Accuracy()
start_time = datetime.now().timestamp()
for batch_idx, (image, label) in enumerate(dataloader, 1):
optimizer.zero_grad()
pred = model(image)
loss = criterion(pred, label)
loss.backward()
optimizer.step()
scheduler.step()
with torch.no_grad():
loss_history.append(loss.item())
acc_metric.update(pred, label)
if batch_idx % config.print_interval == 0:
speed = config.batch_size * config.print_interval / (
datetime.now().timestamp() - start_time)
print(
f"{datetime.now().ctime()} - Epoch: {epoch:03}, Batch: {batch_idx:04}, LR: {optimizer.param_groups[0]['lr']}, Speed: {speed:.5f} sample/s"
)
print(
f"Training Loss: {np.mean(loss_history):.5f}, Training Acc: {acc_metric.get():.5f}"
)
for _ in range(50):
print("-", end="")
print()
loss_history = []
acc_metric.reset()
start_time = datetime.now().timestamp()
def test(dataloader, model, criterion, epoch):
print(f"{datetime.now().ctime()} - Start Testing...")
model.eval()
loss_history = []
acc_metric = Accuracy()
with torch.no_grad():
for image, label in dataloader:
pred = model(image)
loss = criterion(pred, label)
loss_history.append(loss.item())
acc_metric.update(pred, label)
print(f"{datetime.now().ctime()} - Epoch: {epoch:03}")
print(
f"Testing Loss: {np.mean(loss_history):.5f}, Testing Acc: {acc_metric.get():.5f}"
)
save_model(model, acc_metric.get())
for _ in range(50):
print("-", end="")
print()
return np.mean(loss_history), acc_metric.get()
def lr_train(dataloader, model, criterion, optimizer, scheduler, config, epoch):
model.train()
loss_history = []
acc_metric = Accuracy()
start_time = datetime.now().timestamp()
for batch_idx, (image, label) in enumerate(dataloader, 1):
label = label.unsqueeze(1).to(torch.float32)
optimizer.zero_grad()
pred = model(image)
loss = criterion(pred, label)
loss.backward()
optimizer.step()
scheduler.step()
with torch.no_grad():
loss_history.append(loss.item())
acc_metric.update(pred, label)
if batch_idx % config.print_interval == 0:
speed = config.batch_size * config.print_interval / (
datetime.now().timestamp() - start_time)
print(
f"{datetime.now().ctime()} - Epoch: {epoch:03}, Batch: {batch_idx:04}, LR: {optimizer.param_groups[0]['lr']}, Speed: {speed:.5f} sample/s"
)
print(
f"Training Loss: {np.mean(loss_history):.5f}, Training Acc: {acc_metric.get():.5f}"
)
for _ in range(50):
print("-", end="")
print()
loss_history = []
acc_metric.reset()
start_time = datetime.now().timestamp()
def lr_test(dataloader, model, criterion, epoch):
print(f"{datetime.now().ctime()} - Start Testing...")
model.eval()
loss_history = []
acc_metric = Accuracy()
with torch.no_grad():
for image, label in dataloader:
label = label.unsqueeze(1).to(torch.float32)
pred = model(image)
loss = criterion(pred, label)
loss_history.append(loss.item())
acc_metric.update(pred, label)
print(f"{datetime.now().ctime()} - Epoch: {epoch:03}")
print(
f"Testing Loss: {np.mean(loss_history):.5f}, Testing Acc: {acc_metric.get():.5f}"
)
save_model(model, acc_metric.get())
for _ in range(50):
print("-", end="")
print()
return np.mean(loss_history), acc_metric.get()
def save_model(model, metric):
cur_time = datetime.now()
datetime_prefix = f"{cur_time.year}{cur_time.month}{cur_time.day}{cur_time.hour}{cur_time.minute}{cur_time.second}"
model_filename = f"{datetime_prefix}_{metric:5f}.pth"
torch.save(model.state_dict(), f"model/{model_filename}")
print(f"{datetime.now().ctime()} - Model Saved")
| 32.33121
| 154
| 0.57171
| 605
| 5,076
| 4.638017
| 0.171901
| 0.057733
| 0.039914
| 0.057021
| 0.810406
| 0.802566
| 0.786885
| 0.762651
| 0.762651
| 0.762651
| 0
| 0.015908
| 0.281718
| 5,076
| 157
| 155
| 32.33121
| 0.753703
| 0
| 0
| 0.738462
| 0
| 0.053846
| 0.187315
| 0.115226
| 0
| 0
| 0
| 0
| 0
| 1
| 0.069231
| false
| 0
| 0.023077
| 0.007692
| 0.123077
| 0.176923
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
baace8518383b3493ceb8eeab9d2a187af41f733
| 3,446
|
py
|
Python
|
src/tests/test_comms_comms.py
|
reddcoin-project/ReddConnect
|
5c212683de6b80b81fd15ed05239c3a1b46c3afd
|
[
"BSD-3-Clause"
] | 5
|
2015-01-30T08:47:59.000Z
|
2022-01-22T19:27:03.000Z
|
src/tests/test_comms_comms.py
|
reddcoin-project/ReddConnect
|
5c212683de6b80b81fd15ed05239c3a1b46c3afd
|
[
"BSD-3-Clause"
] | 2
|
2017-12-28T21:36:48.000Z
|
2017-12-28T21:36:57.000Z
|
src/tests/test_comms_comms.py
|
reddcoin-project/ReddConnect
|
5c212683de6b80b81fd15ed05239c3a1b46c3afd
|
[
"BSD-3-Clause"
] | 1
|
2019-01-05T15:51:37.000Z
|
2019-01-05T15:51:37.000Z
|
import unittest
class TestChannel(unittest.TestCase):
def test_at_channel_create(self):
# channel = Channel()
# self.assertEqual(expected, channel.at_channel_create())
assert True # TODO: implement your test here
def test_at_init(self):
# channel = Channel()
# self.assertEqual(expected, channel.at_init())
assert True # TODO: implement your test here
def test_channel_prefix(self):
# channel = Channel()
# self.assertEqual(expected, channel.channel_prefix(msg, emit))
assert True # TODO: implement your test here
def test_distribute_message(self):
# channel = Channel()
# self.assertEqual(expected, channel.distribute_message(msg, online))
assert True # TODO: implement your test here
def test_format_external(self):
# channel = Channel()
# self.assertEqual(expected, channel.format_external(msg, senders, emit))
assert True # TODO: implement your test here
def test_format_message(self):
# channel = Channel()
# self.assertEqual(expected, channel.format_message(msg, emit))
assert True # TODO: implement your test here
def test_format_senders(self):
# channel = Channel()
# self.assertEqual(expected, channel.format_senders(senders))
assert True # TODO: implement your test here
def test_message_transform(self):
# channel = Channel()
# self.assertEqual(expected, channel.message_transform(msg, emit, prefix, sender_strings, external))
assert True # TODO: implement your test here
def test_msg(self):
# channel = Channel()
# self.assertEqual(expected, channel.msg(msgobj, header, senders, sender_strings, persistent, online, emit, external))
assert True # TODO: implement your test here
def test_pose_transform(self):
# channel = Channel()
# self.assertEqual(expected, channel.pose_transform(msg, sender_string))
assert True # TODO: implement your test here
def test_post_join_channel(self):
# channel = Channel()
# self.assertEqual(expected, channel.post_join_channel(joiner))
assert True # TODO: implement your test here
def test_post_leave_channel(self):
# channel = Channel()
# self.assertEqual(expected, channel.post_leave_channel(leaver))
assert True # TODO: implement your test here
def test_post_send_message(self):
# channel = Channel()
# self.assertEqual(expected, channel.post_send_message(msg))
assert True # TODO: implement your test here
def test_pre_join_channel(self):
# channel = Channel()
# self.assertEqual(expected, channel.pre_join_channel(joiner))
assert True # TODO: implement your test here
def test_pre_leave_channel(self):
# channel = Channel()
# self.assertEqual(expected, channel.pre_leave_channel(leaver))
assert True # TODO: implement your test here
def test_pre_send_message(self):
# channel = Channel()
# self.assertEqual(expected, channel.pre_send_message(msg))
assert True # TODO: implement your test here
def test_tempmsg(self):
# channel = Channel()
# self.assertEqual(expected, channel.tempmsg(message, header, senders))
assert True # TODO: implement your test here
if __name__ == '__main__':
unittest.main()
| 37.868132
| 126
| 0.670633
| 398
| 3,446
| 5.625628
| 0.120603
| 0.103171
| 0.136668
| 0.167039
| 0.826708
| 0.826708
| 0.826708
| 0.762394
| 0.54176
| 0.320232
| 0
| 0
| 0.236506
| 3,446
| 90
| 127
| 38.288889
| 0.851007
| 0.584446
| 0
| 0.447368
| 0
| 0
| 0.005797
| 0
| 0
| 0
| 0
| 0.011111
| 0.447368
| 1
| 0.447368
| false
| 0
| 0.026316
| 0
| 0.5
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
bac3e9fd9f878e44b7d1ada26b280b3c02ceeb86
| 71
|
py
|
Python
|
tests/AnotherTopLevelPackage/packageB/__init__.py
|
jsfehler/package-tree
|
e1416a55f077083f98db6805bef9aeef1ec62c29
|
[
"MIT"
] | 1
|
2022-01-03T17:26:30.000Z
|
2022-01-03T17:26:30.000Z
|
tests/AnotherTopLevelPackage/packageB/__init__.py
|
jsfehler/package-tree
|
e1416a55f077083f98db6805bef9aeef1ec62c29
|
[
"MIT"
] | 2
|
2018-06-26T03:01:01.000Z
|
2018-09-04T22:03:25.000Z
|
tests/AnotherTopLevelPackage/packageB/__init__.py
|
jsfehler/package-tree
|
e1416a55f077083f98db6805bef9aeef1ec62c29
|
[
"MIT"
] | null | null | null |
from .classB import ClassB # NOQA
from .classB import ClassBB # NOQA
| 23.666667
| 35
| 0.746479
| 10
| 71
| 5.3
| 0.5
| 0.377358
| 0.603774
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.197183
| 71
| 2
| 36
| 35.5
| 0.929825
| 0.126761
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
245fa0444b26366c9b418fb1c75cb31e21267253
| 90,581
|
py
|
Python
|
static/0.6.0.322/js/transcrypt/handlers.vinculos.py
|
PhanterJR/www_sme
|
bfe3cd430a33c05e7cd4ceadfd6b90ce8f45be90
|
[
"MIT"
] | null | null | null |
static/0.6.0.322/js/transcrypt/handlers.vinculos.py
|
PhanterJR/www_sme
|
bfe3cd430a33c05e7cd4ceadfd6b90ce8f45be90
|
[
"MIT"
] | null | null | null |
static/0.6.0.322/js/transcrypt/handlers.vinculos.py
|
PhanterJR/www_sme
|
bfe3cd430a33c05e7cd4ceadfd6b90ce8f45be90
|
[
"MIT"
] | null | null | null |
import phanterpwa.frontend.gatehandler as gatehandler
import phanterpwa.frontend.helpers as helpers
import phanterpwa.frontend.validations as validations
import phanterpwa.frontend.components.widgets as widgets
import phanterpwa.frontend.components.left_bar as left_bar
import phanterpwa.frontend.forms as forms
import phanterpwa.frontend.components.modal as modal
import phanterpwa.frontend.preloaders as preloaders
import phanterpwa.frontend.decorators as decorators
import handlers.escolas as escolas
import handlers.anos_letivos as anos_letivos
from org.transcrypt.stubs.browser import __pragma__
__pragma__('alias', "jQuery", "$")
__pragma__('skip')
jQuery = sessionStorage = JSON = M = js_undefined = Date = window =\
this = __new__ = FormData = console = localStorage = QRCode = 0
__pragma__('noskip')
CONCATENATE = helpers.CONCATENATE
OPTION = helpers.XmlConstructor.tagger("option")
SELECT = helpers.XmlConstructor.tagger("select")
DIV = helpers.XmlConstructor.tagger("div")
BUTTON = helpers.XmlConstructor.tagger("button")
I = helpers.XmlConstructor.tagger("i")
A = helpers.XmlConstructor.tagger("a")
SPAN = helpers.XmlConstructor.tagger("span")
FORM = helpers.XmlConstructor.tagger("form")
UL = helpers.XmlConstructor.tagger("ul")
LI = helpers.XmlConstructor.tagger("li")
TR = helpers.XmlConstructor.tagger("tr")
TH = helpers.XmlConstructor.tagger("th")
TD = helpers.XmlConstructor.tagger("td")
P = helpers.XmlConstructor.tagger("p")
LABEL = helpers.XmlConstructor.tagger("label")
STRONG = helpers.XmlConstructor.tagger("strong")
IMG = helpers.XmlConstructor.tagger("img", True)
H2 = helpers.XmlConstructor.tagger("h2")
H3 = helpers.XmlConstructor.tagger("h3")
H4 = helpers.XmlConstructor.tagger("h4")
H5 = helpers.XmlConstructor.tagger("h5")
INPUT = helpers.XmlConstructor.tagger("input", True)
BR = helpers.XmlConstructor.tagger("br", True)
I18N = helpers.I18N
XTABLE = widgets.Table
XML = helpers.XML
XTRD = widgets.TableData
XTRH = widgets.TableHead
XFOOTER = widgets.TableFooterPagination
__pragma__('kwargs')
class Index(gatehandler.Handler):
@decorators.check_authorization(lambda: window.PhanterPWA.auth_user_has_role(["administrator", "root", "Administrador Master SME", "Administrador Master Escola", "Coordenação SME"]))
def initialize(self):
html = CONCATENATE(
DIV(
DIV(
DIV(
DIV("VINCULAR", _class="phanterpwa-breadcrumb"),
_class="phanterpwa-breadcrumb-wrapper"
),
_class="p-container expand"),
_class='title_page_container card'
),
DIV(
DIV(
DIV(
DIV(preloaders.android, _style="width: 300px; height: 300px; overflow: hidden; margin: auto;"),
_style="text-align:center; padding: 50px 0;"
),
_id="content-vinculo",
_class='p-row card e-padding_20'
),
_class="phanterpwa-container p-container expand"
)
)
html.html_to("#main-container")
arg0 = window.PhanterPWA.Request.get_arg(0)
arg1 = window.PhanterPWA.Request.get_arg(1)
arg2 = window.PhanterPWA.Request.get_arg(2)
arg3 = window.PhanterPWA.Request.get_arg(3)
BackButton = left_bar.LeftBarButton(
"back_localizar_vinculos",
"Voltar",
I(_class="fas fa-arrow-circle-left"),
**{"_phanterpwa-way": "area-do-servidor",
"position": "top",
"ways": [lambda r: True if r.startswith("vinculos") or r.startswith("vinculos/") else False]}
)
if arg0 == "editar" or arg0 == "novo":
if window.PhanterPWA.Request.get_param("retornar") is not None:
BackButton = left_bar.LeftBarButton(
"back_localizar_vinculos",
"Voltar",
I(_class="fas fa-arrow-circle-left"),
**{"_phanterpwa-way": window.PhanterPWA.Request.get_param("retornar"),
"position": "top",
"ways": [lambda r: True if r.startswith("vinculos") or r.startswith("vinculos/") else False]}
)
else:
BackButton = left_bar.LeftBarButton(
"back_localizar_vinculos",
"Voltar",
I(_class="fas fa-arrow-circle-left"),
**{"_phanterpwa-way": "vinculos",
"position": "top",
"ways": [lambda r: True if r.startswith("vinculos") or r.startswith("vinculos/") else False]}
)
self.Vinculo = Vinculo(self, arg0, arg1, arg2, arg3)
elif arg0 == "escola":
if arg1 is None or arg1 is js_undefined:
html = escolas.EscolherEscola(
id_target="#content-vinculo",
callback_link=lambda id_escola: "#_phanterpwa:/vinculos/escola/{0}".format(id_escola)
)
elif str(arg1).isdigit() and (arg2 is None or arg2 is js_undefined):
html = anos_letivos.EscolherAnoLetivo(
id_target="#content-vinculo",
callback_link=lambda ano: "#_phanterpwa:/vinculos/escola/{0}/{1}".format(arg1, ano)
)
elif str(arg1).isdigit() and str(arg2).isdigit():
self.VinculosEscola = VinculosEscola(self, arg0, arg1, arg2, arg3)
if window.PhanterPWA.Request.get_param("vinculos-funcionarios") is not None:
BackButton = left_bar.LeftBarButton(
"back_localizar_vinculos",
"Voltar",
I(_class="fas fa-arrow-circle-left"),
**{"_phanterpwa-way": window.PhanterPWA.Request.get_param("vinculos-funcionarios"),
"position": "top",
"ways": [lambda r: True if r.startswith("vinculos") or r.startswith("vinculos/") else False]}
)
else:
BackButton = left_bar.LeftBarButton(
"back_localizar_vinculos",
"Voltar",
I(_class="fas fa-arrow-circle-left"),
**{"_phanterpwa-way": "vinculos",
"position": "top",
"ways": [lambda r: True if r.startswith("vinculos") or r.startswith("vinculos/") else False]}
)
elif window.PhanterPWA.auth_user_has_role(["administrator", "root", "Administrador Master SME"]):
if arg0 is None:
html = anos_letivos.EscolherAnoLetivo(
id_target="#content-vinculo",
callback_link=lambda ano: "#_phanterpwa:/vinculos/escolas/{0}".format(ano)
)
elif arg0 == "escolas" and str(arg1).isdigit():
self.VinculosUsuarioSME = VinculosUsuarioSME(self, arg0, arg1, arg2, arg3)
BackButton = left_bar.LeftBarButton(
"back_localizar_vinculos",
"Voltar",
I(_class="fas fa-arrow-circle-left"),
**{"_phanterpwa-way": "vinculos",
"position": "top",
"ways": [lambda r: True if r.startswith("vinculos") or r.startswith("vinculos/") else False]}
)
window.PhanterPWA.Components['left_bar'].add_button(BackButton)
class VinculosUsuarioSME(helpers.XmlConstructor):
def __init__(self, index_instance, arg0, arg1, arg2=None, arg3=None):
self.index_instance = index_instance
self.arg0 = arg0
self.arg1 = arg1
self.arg2 = arg2
self.arg3 = arg3
html = CONCATENATE(
DIV(
DIV(
DIV(
DIV("VINCULOS", _class="phanterpwa-breadcrumb"),
_class="phanterpwa-breadcrumb-wrapper"
),
_class="p-container expand"),
_class='title_page_container card'
),
DIV(
DIV(
DIV(
DIV(preloaders.android, _style="width: 300px; height: 300px; overflow: hidden; margin: auto;"),
_style="text-align:center; padding: 50px 0;"
),
_id="content-vinculo",
_class='p-row card e-padding_20'
),
_class="phanterpwa-container p-container expand"
)
)
html.html_to("#main-container")
self.obter_vinculos()
def obter_vinculos(self):
window.PhanterPWA.GET(
"api",
"vinculos",
"sme",
self.arg1,
onComplete=self.depois_de_obter
)
def depois_de_obter(self, data, ajax_status):
if ajax_status == "success":
json = data.responseJSON
dados = json.dados
escolas = []
grupo = []
xmls = CONCATENATE()
for x in dados:
endereco_imagem_funcionario = "/static/{0}/images/user.png".format(
window.PhanterPWA.VERSIONING
)
endereco_imagem_escola = "{0}/api/escolas/{1}/image".format(
window.PhanterPWA.ApiServer.remote_address,
x[0]
)
if x[0] not in escolas:
escolas.append(x[0])
equipe_diretiva = ""
corpo_docente = ""
equipe_de_apoio = ""
equipe_diretiva = XTABLE(
"funcionarios-vinculos-equipe_diretiva-{0}".format(x[0]),
TR(TH("EQUIPE DIRETIVA", _colspan="6", _style="text-align: center;")),
XTRH(
"funcionarios-vinculos-equipe_diretiva-rotulos-{0}".format(x[0]),
"Foto",
"Nome Completo",
"Atribuição",
"Email de Acesso",
"Nível de Acesso"
)
)
corpo_docente = XTABLE(
"funcionarios-vinculos-corpo_docente-{0}".format(x[0]),
TR(TH("CORPO DOCENTE", _colspan="7", _style="text-align: center;")),
XTRH(
"funcionarios-vinculos-corpo_docente-rotulos-{0}".format(x[0]),
"Foto",
"Nome Completo",
"Atribuição",
"Email de Acesso",
"Nível de Acesso",
TH("T&D", _title="Turmas e Disciplinas"),
)
)
equipe_de_apoio = XTABLE(
"funcionarios-vinculos-equipe_de_apoio-{0}".format(x[0]),
TR(TH("EQUIPE DE APOIO", _colspan="6", _style="text-align: center;")),
XTRH(
"funcionarios-vinculos-equipe_de_apoio-rotulos-{0}".format(x[0]),
"Foto",
"Nome Completo",
"Atribuição",
"Email de Acesso",
"Nível de Acesso"
)
)
bool_equipe_diretiva = False
bool_corpo_docente = False
bool_equipe_de_apoio = False
for ed in x[2]:
wg_renovar = []
if str(json.ultimo_ano).isdigit() and ed.tem_vinculo_ultimo_ano is False:
wg_renovar.append(widgets.MenuOption("Renovar Vínculo para {0}".format(json.ultimo_ano), **{
"_class": "botao_vinculo_ultimo_ano wave_on_click",
"_href": "#_phanterpwa:/vinculos/novo/{0}/{1}/{2}/{3}?retornar={4}{5}".format(
ed.id_funcionario,
ed.id_escola,
json.ultimo_ano,
ed.id_atribuicao,
window.PhanterPWA._get_way_from_url_hash(),
"&autorizacao={0}".format(ed.autorizacao_especial) if ed.autorizacao_especial != "" else ""
)
}))
bool_equipe_diretiva = True
if ed.id_funcionario is not None:
endereco_imagem_funcionario = "{0}/api/funcionarios/{1}/image".format(
window.PhanterPWA.ApiServer.remote_address,
ed.id_funcionario
)
equipe_diretiva.append(
XTRD(
"funcionarios-vinculos-tabela-dados-{0}-{1}".format(ed.id_escola, ed.id_funcionario),
DIV(IMG(_src=endereco_imagem_funcionario, _style="width:25px; height:25px; border-radius: 100%;")),
ed.nome_funcionario,
ed.atribuicoes,
TD(ed.email_de_acesso, _class="email_de_acesso_funcionario_{0}".format(ed.id_funcionario)),
TD(ed.autorizacao_especial, _class="papel_funcionario_{0}".format(ed.id_funcionario)),
widgets.MenuBox(
"menu_funcionario_vinculado_{0}".format(ed.id),
I(_class="fas fa-ellipsis-v"),
widgets.MenuOption("Visualizar", **{
"_class": "botao_visualizar_funcionario wave_on_click",
"_data-id_funcionario": ed.id_funcionario,
}),
widgets.MenuOption("Editar Funcionário", **{
"_class": "botao_editar_vinculo wave_on_click",
"_href": "#_phanterpwa:/funcionarios/{0}/editar/?origem={1}".format(ed.id_funcionario, window.PhanterPWA.get_current_way())
}),
widgets.MenuOption("Editar Vínculo", **{
"_class": "botao_editar_vinculo wave_on_click",
"_href": "#_phanterpwa:/vinculos/editar/{0}/?retornar={1}".format(ed.id, window.PhanterPWA._get_way_from_url_hash())
}),
widgets.MenuOption("Revogar Vínculo", **{
"_class": "botao_revogar_vinculo wave_on_click",
"_data-id_vinculo": ed.id
}),
widgets.MenuOption("Conta de Acesso", **{
"_class": "botao_prover_acesso_vinculo wave_on_click",
"_data-id_funcionario": ed.id_funcionario
}),
*wg_renovar,
onOpen=self.bind_menu_option
),
**{"drag_and_drop": False}
)
)
for cd in x[3]:
wg_renovar = []
if str(json.ultimo_ano).isdigit() and cd.tem_vinculo_ultimo_ano is False:
wg_renovar.append(widgets.MenuOption("Renovar Vínculo para {0}".format(json.ultimo_ano), **{
"_class": "botao_vinculo_ultimo_ano wave_on_click",
"_href": "#_phanterpwa:/vinculos/novo/{0}/{1}/{2}/{3}?retornar={4}{5}".format(
cd.id_funcionario,
cd.id_escola,
json.ultimo_ano,
cd.id_atribuicao,
window.PhanterPWA._get_way_from_url_hash(),
"&autorizacao={0}".format(cd.autorizacao_especial) if cd.autorizacao_especial != "" else ""
)
}))
bool_corpo_docente = True
if cd.id_funcionario is not None:
endereco_imagem_funcionario = "{0}/api/funcionarios/{1}/image".format(
window.PhanterPWA.ApiServer.remote_address,
cd.id_funcionario
)
corpo_docente.append(
XTRD(
"funcionarios-vinculos-tabela-dados-{0}-{1}".format(cd.id_escola, cd.id_funcionario),
DIV(IMG(_src=endereco_imagem_funcionario, _style="width:25px; height:25px; border-radius: 100%;")),
cd.nome_funcionario,
cd.atribuicoes,
TD(cd.email_de_acesso, _class="email_de_acesso_funcionario_{0}".format(cd.id_funcionario)),
TD(cd.autorizacao_especial, _class="papel_funcionario_{0}".format(cd.id_funcionario)),
widgets.MenuBox(
"menu_funcionario_turmas_{0}".format(cd.id),
I(cd.disciplinas_turmas.length, _class="phanterpwa-icon_numb"),
*[widgets.MenuOption(t_e_d[0], _href=window.PhanterPWA.XWAY("turmas", t_e_d[1], t_e_d[2], "especifico", t_e_d[3])) for t_e_d in cd.disciplinas_turmas],
),
widgets.MenuBox(
"menu_funcionario_vinculado_{0}".format(cd.id),
I(_class="fas fa-ellipsis-v"),
widgets.MenuOption("Visualizar", **{
"_class": "botao_visualizar_funcionario wave_on_click",
"_data-id_funcionario": cd.id_funcionario,
}),
widgets.MenuOption("Editar Funcionário", **{
"_class": "botao_editar_vinculo wave_on_click",
"_href": "#_phanterpwa:/funcionarios/{0}/editar/?origem={1}".format(cd.id_funcionario, window.PhanterPWA.get_current_way())
}),
widgets.MenuOption("Editar Vínculo", **{
"_class": "botao_editar_vinculo wave_on_click",
"_href": "#_phanterpwa:/vinculos/editar/{0}/?retornar={1}".format(cd.id, window.PhanterPWA._get_way_from_url_hash())
}),
widgets.MenuOption("Revogar Vínculo", **{
"_class": "botao_revogar_vinculo wave_on_click",
"_data-id_vinculo": cd.id
}),
widgets.MenuOption("Conta de Acesso", **{
"_class": "botao_prover_acesso_vinculo wave_on_click",
"_data-id_funcionario": cd.id_funcionario
}),
*wg_renovar,
onOpen=self.bind_menu_option
),
**{"drag_and_drop": False}
)
)
for eda in x[4]:
bool_equipe_de_apoio = True
wg_renovar = []
if str(json.ultimo_ano).isdigit() and eda.tem_vinculo_ultimo_ano is False:
wg_renovar.append(widgets.MenuOption("Renovar Vínculo para {0}".format(json.ultimo_ano), **{
"_class": "botao_vinculo_ultimo_ano wave_on_click",
"_href": "#_phanterpwa:/vinculos/novo/{0}/{1}/{2}/{3}?retornar={4}{5}".format(
eda.id_funcionario,
eda.id_escola,
json.ultimo_ano,
eda.id_atribuicao,
window.PhanterPWA._get_way_from_url_hash(),
"&autorizacao={0}".format(eda.autorizacao_especial) if eda.autorizacao_especial != "" else ""
)
}))
if eda.id_funcionario is not None:
endereco_imagem_funcionario = "{0}/api/funcionarios/{1}/image".format(
window.PhanterPWA.ApiServer.remote_address,
eda.id_funcionario
)
equipe_de_apoio.append(
XTRD(
"funcionarios-vinculos-tabela-dados-{0}-{1}".format(eda.id_escola, eda.id_funcionario),
DIV(IMG(_src=endereco_imagem_funcionario, _style="width:25px; height:25px; border-radius: 100%;")),
eda.nome_funcionario,
eda.atribuicoes,
TD(eda.email_de_acesso, _class="email_de_acesso_funcionario_{0}".format(eda.id_funcionario)),
TD(eda.autorizacao_especial, _class="papel_funcionario_{0}".format(eda.id_funcionario)),
widgets.MenuBox(
"menu_funcionario_vinculado_{0}".format(eda.id),
I(_class="fas fa-ellipsis-v"),
widgets.MenuOption("Visualizar", **{
"_class": "botao_visualizar_funcionario wave_on_click",
"_data-id_funcionario": eda.id_funcionario,
}),
widgets.MenuOption("Editar Funcionário", **{
"_class": "botao_editar_vinculo wave_on_click",
"_href": "#_phanterpwa:/funcionarios/{0}/editar/?origem={1}".format(eda.id_funcionario, window.PhanterPWA.get_current_way())
}),
widgets.MenuOption("Editar Vínculo", **{
"_class": "botao_editar_vinculo wave_on_click",
"_href": "#_phanterpwa:/vinculos/editar/{0}/?retornar={1}".format(eda.id, window.PhanterPWA._get_way_from_url_hash())
}),
widgets.MenuOption("Revogar Vínculo", **{
"_class": "botao_revogar_vinculo wave_on_click",
"_data-id_vinculo": eda.id
}),
widgets.MenuOption("Conta de Acesso", **{
"_class": "botao_prover_acesso_vinculo wave_on_click",
"_data-id_funcionario": eda.id_funcionario
}),
*wg_renovar,
onOpen=self.bind_menu_option
),
**{"drag_and_drop": False}
)
)
card = DIV(
LABEL(
DIV(
IMG(_src=endereco_imagem_escola, _style="width:25px; height:25px; border-radius: 100%;position: absolute;top: 6px;"),
_style="display: inline-block;margin-right: 10px;height: 25px;width: 25px;position: relative;"
),
x[1], _for="phanterpwa-card-panel-control-{0}".format(x[0])
),
DIV(
DIV(
DIV(
DIV(
equipe_diretiva if bool_equipe_diretiva else "",
BR() if bool_equipe_diretiva and bool_corpo_docente else "",
corpo_docente if bool_corpo_docente else "",
BR() if bool_equipe_diretiva and bool_equipe_de_apoio else "",
equipe_de_apoio if bool_equipe_de_apoio else "",
_class="p-row"
),
_class="phanterpwa-card-panel-control-content"
),
DIV(
A(
I(_class="fas fa-puzzle-piece"),
**{
"_class": "botao_separar_unidade_escolar icon_button",
"_title": "Separar esta unidade escolar",
"_href": window.PhanterPWA.XWAY(
"vinculos",
"escola",
x[0],
self.arg1,
**{"_vinculos-funcionarios": "vinculos/escolas/{0}/".format(self.arg1)}
)
}
),
# DIV(
# I(_class="fas fa-user-graduate"),
# **{
# "_class": "botao_alunos icon_button actived",
# "_title": "Adicione alunos à turma",
# "_data-id_escola": self.id_escola,
# "_data-id_ano_letivo": self.ano_letivo,
# "_data-id_turma": data_turma.id
# }
# ),
# A(
# I(_class="fas fa-table"),
# **{
# "_class": "botao_diario_notas icon_button",
# "_title": "Diário de Notas da Turma",
# "_data-id_escola": self.id_escola,
# "_data-id_ano_letivo": self.ano_letivo,
# "_data-id_turma": data_turma.id,
# "_disabled": disabled,
# "_href": window.PhanterPWA.XWAY("diario-de-notas", self.id_escola, self.ano_letivo, data_turma.id, **{"_turma": data_turma.turma})
# }
# ),
# A(
# I(_class="fas fa-clipboard-list"),
# **{
# "_class": "botao_ficha_avaliativa icon_button",
# "_title": "Ficha Avaliativa",
# "_data-id_escola": self.id_escola,
# "_data-id_ano_letivo": self.ano_letivo,
# "_data-id_turma": data_turma.id,
# "_disabled": disabled,
# "_href": window.PhanterPWA.XWAY("ficha-avaliativa", self.id_escola, self.ano_letivo, data_turma.id, **{"_retornar": "turmas-detalhadas"})
# }
# ),
# DIV(
# I(_class="fas fa-calendar-check"),
# **{
# "_class": "botao_faltas icon_button",
# "_title": "Registro de Presença",
# "_data-id_escola": self.id_escola,
# "_data-id_ano_letivo": self.ano_letivo,
# "_data-id_turma": data_turma.id,
# "_disabled": disabled
# }
# ),
# DIV(
# I(_class="fas fa-chalkboard-teacher"),
# **{
# "_class": "botao_professores icon_button",
# "_title": "Disciplinas e seus respectivos professores",
# "_data-id_escola": self.id_escola,
# "_data-id_ano_letivo": self.ano_letivo,
# "_data-id_turma": data_turma.id,
# "_disabled": "disabled"
# }
# ),
# DIV(
# I(_class="fas fa-clock"),
# **{
# "_class": "botao_horario icon_button",
# "_title": "Horário da Turma",
# "_data-id_escola": self.id_escola,
# "_data-id_ano_letivo": self.ano_letivo,
# "_data-id_turma": data_turma.id,
# "_disabled": "disabled"
# }
# ),
_class="phanterpwa-card-panel-control-buttons"
),
_class="phanterpwa-card-panel-control-wrapper has_buttons"
),
_class="phanterpwa-card-panel-control-container"
),
_id="phanterpwa-card-panel-control-{0}".format(x.id_escola),
_class="phanterpwa-card-panel-control"
)
xmls.append(card)
xmls.append(DIV(_id="modal_prover_acesso_container"))
xmls.append(DIV(_id="modal_deletar_acesso_container"))
xmls.append(DIV(_id="modal_visualizar_funcionario"))
xmls.html_to("#content-vinculo")
def bind_menu_option(self):
jQuery(
".botao_prover_acesso_vinculo"
).off(
"click.botao_prover_acesso"
).on(
"click.botao_prover_acesso",
lambda: self.obter_lista_de_contas_disponiveis(this)
)
jQuery(
".botao_revogar_vinculo"
).off(
"click.botao_revogar_acesso"
).on(
"click.botao_revogar_acesso",
lambda: self.modal_confirmar_deletar_vinculo(this)
)
jQuery(
".botao_visualizar_funcionario"
).off(
"click.botao_visualizar_funcionario"
).on(
"click.botao_visualizar_funcionario",
lambda: self.get_visualizar_funcionario(this)
)
def obter_lista_de_contas_disponiveis(self, el):
valor = jQuery(el).data("id_funcionario")
window.PhanterPWA.GET(
"api",
"funcionarios",
"contas-disponiveis",
onComplete=lambda data, ajax_status: self.abrir_modal_prover_acesso(valor, data, ajax_status)
)
def abrir_modal_prover_acesso(self, id_funcionario, data, ajax_status):
if ajax_status == "success":
data_set = data.responseJSON.contas
content = DIV(
forms.FormWidget(
"prover_acesso",
"contas_disponiveis",
**{
"value": "",
"label": "Contas disponíveis",
"type": "select",
"form": "prover_acesso",
"data_set": data_set,
"_class": "p-col w1p100"
}
),
_class="p-row"
)
footer = DIV(
forms.SubmitButton(
"adicionar_prover_acesso",
"Usar a conta selecionada",
_class="btn-autoresize wave_on_click waves-phanterpwa"
),
_class='phanterpwa-form-buttons-container'
)
self.modal_prover_acesso = modal.Modal(
"#modal_prover_acesso_container",
**{
"title": "Definir a conta do funcionário que será usada no acesso",
"content": content,
"footer": footer,
"form": "prover_acesso"
}
)
self.modal_prover_acesso.open()
jQuery("#phanterpwa-widget-form-submit_button-adicionar_prover_acesso").off(
"click.adicionar_prover_acesso"
).on(
"click.adicionar_prover_acesso",
lambda: self.sing_form_modal_funcionario(id_funcionario)
)
def sing_form_modal_funcionario(self, id_funcionario):
window.PhanterPWA.GET(
"api",
"signforms",
"phanterpwa-form-funcionarios",
onComplete=lambda data, ajax_status: self.depois_de_assinar_modal_funcionario(
data, ajax_status, id_funcionario)
)
def depois_de_assinar_modal_funcionario(self, data, ajax_status, id_funcionario):
json = data.responseJSON
id_auth_user = jQuery(".phanterpwa-widget-select-select[name='contas_disponiveis']").val()
formdata = __new__(FormData())
formdata.append(
"csrf_token",
json.csrf
)
formdata.append(
"auth_user",
id_auth_user
)
window.PhanterPWA.PUT(
"api",
"funcionario",
"definir-conta",
id_funcionario,
form_data=formdata,
onComplete=self.depois_de_definir_o_email_do_funcionario
)
def depois_de_definir_o_email_do_funcionario(self, data, ajax_status):
if ajax_status == "success":
self.modal_prover_acesso.close()
dados = data.responseJSON.dados
jQuery(".email_de_acesso_funcionario_{0}".format(dados.id_funcionario)).text(dados.email_de_acesso)
jQuery(".papel_funcionario_{0}".format(dados.id_funcionario)).text(dados.papel)
def modal_confirmar_deletar_vinculo(self, el):
id_vinculo = jQuery(el).data("id_vinculo")
content = DIV(
P("Atenção, o vínculo do funcionário será deletado permanentemente, se ",
"o mesmo possuir acesso especial ao sistema, este será revogado. Por exemplo,"
" em caso de ", STRONG("professores"), ", ele não terá mais acesso às suas ",
"disciplinas e suas turmas"),
P("Tem certeza que deseja deletar este vínculo?"),
_class="p-row"
)
footer = DIV(
forms.FormButton(
"deletar_vinculo_sim",
"Sim",
_class="btn-autoresize wave_on_click waves-phanterpwa"
),
forms.FormButton(
"deletar_vinculo_nao",
"Não",
_class="btn-autoresize wave_on_click waves-phanterpwa"
),
_class='phanterpwa-form-buttons-container'
)
self.modal_deletar_vinculo = modal.Modal(
"#modal_deletar_acesso_container",
**{
"title": "Deletar vínculo",
"content": content,
"footer": footer,
"form": "deletar_vinculo"
}
)
self.modal_deletar_vinculo.open()
jQuery("#phanterpwa-widget-form-form_button-deletar_vinculo_sim").off(
"click.adicionar_deletar_vinculo_sim"
).on(
"click.adicionar_deletar_vinculo_sim",
lambda: self._on_click_deletar_vinculo(id_vinculo)
)
jQuery("#phanterpwa-widget-form-form_button-deletar_vinculo_nao").off(
"click.adicionar_deletar_vinculo_nao"
).on(
"click.adicionar_deletar_vinculo_nao",
lambda: self.modal_deletar_vinculo.close()
)
def _on_click_deletar_vinculo(self, id_vinculo):
window.PhanterPWA.DELETE(
"api",
"vinculo",
"deletar",
id_vinculo,
onComplete=self.depois_de_deletar_vinculo
)
self.modal_deletar_vinculo.close()
def depois_de_deletar_vinculo(self, data, ajax_status):
if ajax_status == "success":
self.obter_vinculos()
def get_visualizar_funcionario(self, widget_instance):
id_funcionario = jQuery(widget_instance).data("id_funcionario")
window.PhanterPWA.GET(
"api",
"funcionario",
"visualizar",
id_funcionario,
onComplete=lambda data, ajax_status: self.modal_add_funcinario_visualizar(data, ajax_status)
)
def modal_add_funcinario_visualizar(self, data, ajax_status):
json = data.responseJSON
if ajax_status == "success":
html_vinculos = DIV(
DIV("VÍNCULOS DO FUNCIONÁRIO", _class="p-col w1p100 phanterpwa-widget-form-separator"),
P("O Funcionário não possui vínculos"),
_class="vinculos-conteudo"
)
if json.data.vinculos is not None and json.data.vinculos is not js_undefined:
html_vinculos = DIV(
DIV("VÍNCULOS DO FUNCIONÁRIO", _class="p-col w1p100 phanterpwa-widget-form-separator"),
_class="vinculos-conteudo"
)
tabela = XTABLE(
"tabela_ficha_individual",
XTRH(
"tabela_ficha_individual_head",
"Ano Letivo",
"Escola",
"Atribuições",
"Data Limite",
"Autorização"
),
)
for x in json.data.vinculos:
data_limite = "31/12/{0}".format(x.anos_letivo.ano)
if x.vinculos_funcionarios.data_limite is not None and x.vinculos_funcionarios.data_limite is not js_undefined:
data_limite = validations.format_iso_date_datetime(
x.vinculos_funcionarios.data_limite, "dd/MM/yyyy", "date"
)
tabela.append(
XTRD(
"tabela_ficha_individual_linhas_{0}".format(x.vinculos_funcionarios.id),
x.anos_letivo.ano,
x.escolas.nome,
x.profissoes.profissao,
data_limite,
x.vinculos_funcionarios.autorizacao,
**{"drag_and_drop": False}
)
)
html_vinculos.append(tabela)
content = DIV(
forms.Form(json.data.funcionario),
html_vinculos,
_class="p-row"
)
self.modal_visualizar_funcionario = modal.Modal(
"#modal_visualizar_funcionario",
**{
"title": CONCATENATE(DIV("Visualizar dados do funcionário"),
DIV(STRONG(json.data.nome))),
"content": content
}
)
self.modal_visualizar_funcionario.open()
else:
window.PhanterPWA.flash("Não há alunos_visualizar matriculados para a série da turma")
class VinculosEscola(helpers.XmlConstructor):
def __init__(self, index_instance, arg0, arg1, arg2=None, arg3=None):
self.index_instance = index_instance
self.arg0 = arg0
self.arg1 = arg1
self.arg2 = arg2
self.arg3 = arg3
logo = "{0}/api/escolas/{1}/image".format(
window.PhanterPWA.ApiServer.remote_address,
arg1
)
html = CONCATENATE(
DIV(
DIV(
DIV(
DIV("VINCULOS", _class="phanterpwa-breadcrumb"),
DIV("ESCOLA", _class="phanterpwa-breadcrumb"),
_class="phanterpwa-breadcrumb-wrapper"
),
_class="p-container expand"),
_class='title_page_container card'
),
DIV(
DIV(
DIV(
DIV(
DIV(
IMG(_src=logo),
_class="escolas-container-info-image",
_style="text-align: center;"
),
_class="p-col w1p100 w4p30"
),
DIV(
H2("LISTA DE FUNCIONÁRIOS VINCULADOS À ESTA UNIDADE DE ENSINO NO ANO DE ", arg2, "."),
P("O funcionário sem ", STRONG("Email de Acesso"), "indica que o funcionário vinculado",
" não possui uma conta de usuário ou a conta não está devidamente ligada ao cadastro",
" do funcionário."),
P("É possível vincular um novo funcionário clicando em ", I(_class="fas fa-plus"), "."),
P("Para acessar opções individuais de cada funcionário basta clicar em ", I(_class="fas fa-ellipsis-v"), "."),
_class="p-col w1p100 w4p70",
_id="u_informacao_series"
),
_class="p-row"
),
DIV(
DIV(
DIV(preloaders.android, _style="width: 300px; height: 300px; overflow: hidden; margin: auto;"),
_style="text-align:center; padding: 50px 0;"
),
_id="content-vinculo-escola",
_class="p-row"
),
_class='card e-padding_20'
),
_class="phanterpwa-container p-container expand"
)
)
html.html_to("#main-container")
self.obter_vinculos()
def obter_vinculos(self):
window.PhanterPWA.GET(
"api",
"vinculos",
"escola",
self.arg1,
self.arg2,
onComplete=self.depois_de_obter
)
def depois_de_obter(self, data, ajax_status):
if ajax_status == "success":
json = data.responseJSON
dados = json.dados
escolas = []
grupo = []
xmls = CONCATENATE()
for x in dados:
endereco_imagem_funcionario = "/static/{0}/images/user.png".format(
window.PhanterPWA.VERSIONING
)
endereco_imagem_escola = "{0}/api/escolas/{1}/image".format(
window.PhanterPWA.ApiServer.remote_address,
x[0]
)
if x[0] not in escolas:
escolas.append(x[0])
equipe_diretiva = ""
corpo_docente = ""
equipe_de_apoio = ""
equipe_diretiva = XTABLE(
"funcionarios-vinculos-equipe_diretiva-{0}".format(x[0]),
TR(TH("EQUIPE DIRETIVA", _colspan="6", _style="text-align: center;")),
XTRH(
"funcionarios-vinculos-equipe_diretiva-rotulos-{0}".format(x[0]),
"Foto",
"Nome Completo",
"Atribuição",
"Email de Acesso",
"Nível de Acesso"
)
)
corpo_docente = XTABLE(
"funcionarios-vinculos-corpo_docente-{0}".format(x[0]),
TR(TH("CORPO DOCENTE", _colspan="7", _style="text-align: center;")),
XTRH(
"funcionarios-vinculos-corpo_docente-rotulos-{0}".format(x[0]),
"Foto",
"Nome Completo",
"Atribuição",
"Email de Acesso",
"Nível de Acesso",
TH("T&D", _title="Turmas e Disciplinas"),
)
)
equipe_de_apoio = XTABLE(
"funcionarios-vinculos-equipe_de_apoio-{0}".format(x[0]),
TR(TH("EQUIPE DE APOIO", _colspan="6", _style="text-align: center;")),
XTRH(
"funcionarios-vinculos-equipe_de_apoio-rotulos-{0}".format(x[0]),
"Foto",
"Nome Completo",
"Atribuição",
"Email de Acesso",
"Nível de Acesso"
)
)
bool_equipe_diretiva = False
bool_corpo_docente = False
bool_equipe_de_apoio = False
for ed in x[2]:
bool_equipe_diretiva = True
if ed.id_funcionario is not None:
endereco_imagem_funcionario = "{0}/api/funcionarios/{1}/image".format(
window.PhanterPWA.ApiServer.remote_address,
ed.id_funcionario
)
equipe_diretiva.append(
XTRD(
"funcionarios-vinculos-tabela-dados-{0}-{1}".format(ed.id_escola, ed.id_funcionario),
DIV(IMG(_src=endereco_imagem_funcionario, _style="width:25px; height:25px; border-radius: 100%;")),
ed.nome_funcionario,
ed.atribuicoes,
TD(ed.email_de_acesso, _class="email_de_acesso_funcionario_{0}".format(ed.id_funcionario)),
TD(ed.autorizacao_especial, _class="papel_funcionario_{0}".format(ed.id_funcionario)),
widgets.MenuBox(
"menu_funcionario_vinculado_{0}".format(ed.id),
I(_class="fas fa-ellipsis-v"),
widgets.MenuOption("Visualizar", **{
"_class": "botao_visualizar_funcionario wave_on_click",
"_data-id_funcionario": ed.id_funcionario,
}),
widgets.MenuOption("Editar Funcionário", **{
"_class": "botao_editar_vinculo wave_on_click",
"_href": "#_phanterpwa:/funcionarios/{0}/editar/?origem={1}".format(ed.id_funcionario, window.PhanterPWA.get_current_way())
}),
widgets.MenuOption("Editar Vínculo", **{
"_class": "botao_editar_vinculo wave_on_click",
"_href": "#_phanterpwa:/vinculos/editar/{0}/?retornar={1}".format(ed.id, window.PhanterPWA._get_way_from_url_hash())
}),
widgets.MenuOption("Revogar Vínculo", **{
"_class": "botao_revogar_vinculo wave_on_click",
"_data-id_vinculo": ed.id
}),
widgets.MenuOption("Conta de Acesso", **{
"_class": "botao_prover_acesso_vinculo wave_on_click",
"_data-id_funcionario": ed.id_funcionario
}),
onOpen=self.bind_menu_option
),
**{"drag_and_drop": False}
)
)
for cd in x[3]:
console.log(json.ultimo_ano, cd.tem_vinculo_ultimo_ano)
bool_corpo_docente = True
wg_renovar = []
if str(json.ultimo_ano).isdigit() and cd.tem_vinculo_ultimo_ano is False:
wg_renovar.append(widgets.MenuOption("Renovar Vínculo para {0}".format(json.ultimo_ano), **{
"_class": "botao_vinculo_ultimo_ano wave_on_click",
"_href": "#_phanterpwa:/vinculos/novo/{0}/{1}/{2}/{3}?retornar={4}{5}".format(
cd.id_funcionario,
cd.id_escola,
json.ultimo_ano,
cd.id_atribuicao,
window.PhanterPWA._get_way_from_url_hash(),
"&autorizacao={0}".format(cd.autorizacao_especial) if cd.autorizacao_especial != "" else ""
)
}))
if cd.id_funcionario is not None:
endereco_imagem_funcionario = "{0}/api/funcionarios/{1}/image".format(
window.PhanterPWA.ApiServer.remote_address,
cd.id_funcionario
)
corpo_docente.append(
XTRD(
"funcionarios-vinculos-tabela-dados-{0}-{1}".format(cd.id_escola, cd.id_funcionario),
DIV(IMG(_src=endereco_imagem_funcionario, _style="width:25px; height:25px; border-radius: 100%;")),
cd.nome_funcionario,
cd.atribuicoes,
TD(cd.email_de_acesso, _class="email_de_acesso_funcionario_{0}".format(cd.id_funcionario)),
TD(cd.autorizacao_especial, _class="papel_funcionario_{0}".format(cd.id_funcionario)),
widgets.MenuBox(
"menu_funcionario_turmas_{0}".format(cd.id),
I(cd.disciplinas_turmas.length, _class="phanterpwa-icon_numb"),
*[widgets.MenuOption(t_e_d[0], _href=window.PhanterPWA.XWAY("turmas", t_e_d[1], t_e_d[2], "especifico", t_e_d[3])) for t_e_d in cd.disciplinas_turmas],
),
widgets.MenuBox(
"menu_funcionario_vinculado_{0}".format(cd.id),
I(_class="fas fa-ellipsis-v"),
widgets.MenuOption("Visualizar", **{
"_class": "botao_visualizar_funcionario wave_on_click",
"_data-id_funcionario": cd.id_funcionario,
}),
widgets.MenuOption("Editar Funcionário", **{
"_class": "botao_editar_vinculo wave_on_click",
"_href": "#_phanterpwa:/funcionarios/{0}/editar/?origem={1}".format(cd.id_funcionario, window.PhanterPWA.get_current_way())
}),
widgets.MenuOption("Editar Vínculo", **{
"_class": "botao_editar_vinculo wave_on_click",
"_href": "#_phanterpwa:/vinculos/editar/{0}/?retornar={1}".format(cd.id, window.PhanterPWA._get_way_from_url_hash())
}),
widgets.MenuOption("Revogar Vínculo", **{
"_class": "botao_revogar_vinculo wave_on_click",
"_data-id_vinculo": cd.id
}),
widgets.MenuOption("Conta de Acesso", **{
"_class": "botao_prover_acesso_vinculo wave_on_click",
"_data-id_funcionario": cd.id_funcionario
}),
*wg_renovar,
onOpen=self.bind_menu_option
),
**{"drag_and_drop": False}
)
)
for eda in x[4]:
bool_equipe_de_apoio = True
wg_renovar = []
if str(json.ultimo_ano).isdigit() and eda.tem_vinculo_ultimo_ano is False:
wg_renovar.append(widgets.MenuOption("Renovar Vínculo para {0}".format(json.ultimo_ano), **{
"_class": "botao_vinculo_ultimo_ano wave_on_click",
"_href": "#_phanterpwa:/vinculos/novo/{0}/{1}/{2}/{3}?retornar={4}{5}".format(
eda.id_funcionario,
eda.id_escola,
json.ultimo_ano,
eda.id_atribuicao,
window.PhanterPWA._get_way_from_url_hash(),
"&autorizacao={0}".format(eda.autorizacao_especial) if eda.autorizacao_especial != "" else ""
)
}))
if eda.id_funcionario is not None:
endereco_imagem_funcionario = "{0}/api/funcionarios/{1}/image".format(
window.PhanterPWA.ApiServer.remote_address,
eda.id_funcionario
)
equipe_de_apoio.append(
XTRD(
"funcionarios-vinculos-tabela-dados-{0}-{1}".format(eda.id_escola, eda.id_funcionario),
DIV(IMG(_src=endereco_imagem_funcionario, _style="width:25px; height:25px; border-radius: 100%;")),
eda.nome_funcionario,
eda.atribuicoes,
TD(eda.email_de_acesso, _class="email_de_acesso_funcionario_{0}".format(eda.id_funcionario)),
TD(eda.autorizacao_especial, _class="papel_funcionario_{0}".format(eda.id_funcionario)),
widgets.MenuBox(
"menu_funcionario_vinculado_{0}".format(eda.id),
I(_class="fas fa-ellipsis-v"),
widgets.MenuOption("Visualizar", **{
"_class": "botao_visualizar_funcionario wave_on_click",
"_data-id_funcionario": eda.id_funcionario,
}),
widgets.MenuOption("Editar Funcionário", **{
"_class": "botao_editar_vinculo wave_on_click",
"_href": "#_phanterpwa:/funcionarios/{0}/editar/?origem={1}".format(eda.id_funcionario, window.PhanterPWA.get_current_way())
}),
widgets.MenuOption("Editar Vínculo", **{
"_class": "botao_editar_vinculo wave_on_click",
"_href": "#_phanterpwa:/vinculos/editar/{0}/?retornar={1}".format(eda.id, window.PhanterPWA._get_way_from_url_hash())
}),
widgets.MenuOption("Revogar Vínculo", **{
"_class": "botao_revogar_vinculo wave_on_click",
"_data-id_vinculo": eda.id
}),
widgets.MenuOption("Conta de Acesso", **{
"_class": "botao_prover_acesso_vinculo wave_on_click",
"_data-id_funcionario": eda.id_funcionario
}),
*wg_renovar,
onOpen=self.bind_menu_option
),
**{"drag_and_drop": False}
)
)
card = DIV(
LABEL(
DIV(
IMG(_src=endereco_imagem_escola, _style="width:25px; height:25px; border-radius: 100%;position: absolute;top: 6px;"),
_style="display: inline-block;margin-right: 10px;height: 25px;width: 25px;position: relative;"
),
x[1], _for="phanterpwa-card-panel-control-{0}".format(x[0])
),
DIV(
DIV(
DIV(
DIV(
equipe_diretiva if bool_equipe_diretiva else "",
BR() if bool_equipe_diretiva and bool_corpo_docente else "",
corpo_docente if bool_corpo_docente else "",
BR() if bool_equipe_diretiva and bool_equipe_de_apoio else "",
equipe_de_apoio if bool_equipe_de_apoio else "",
_class="p-row"
),
_class="phanterpwa-card-panel-control-content"
),
DIV(
A(
I(_class="fas fa-print"),
**{
"_class": "botao_imprimir_lista_alunos_turma icon_button",
"_title": "Imprimir lista de alunos",
"_href": window.PhanterPWA.XWAY("imprimir", "vinculos", self.arg1, self.arg2)
}
),
# DIV(
# I(_class="fas fa-user-graduate"),
# **{
# "_class": "botao_alunos icon_button actived",
# "_title": "Adicione alunos à turma",
# "_data-id_escola": self.id_escola,
# "_data-id_ano_letivo": self.ano_letivo,
# "_data-id_turma": data_turma.id
# }
# ),
# A(
# I(_class="fas fa-table"),
# **{
# "_class": "botao_diario_notas icon_button",
# "_title": "Diário de Notas da Turma",
# "_data-id_escola": self.id_escola,
# "_data-id_ano_letivo": self.ano_letivo,
# "_data-id_turma": data_turma.id,
# "_disabled": disabled,
# "_href": window.PhanterPWA.XWAY("diario-de-notas", self.id_escola, self.ano_letivo, data_turma.id, **{"_turma": data_turma.turma})
# }
# ),
# A(
# I(_class="fas fa-clipboard-list"),
# **{
# "_class": "botao_ficha_avaliativa icon_button",
# "_title": "Ficha Avaliativa",
# "_data-id_escola": self.id_escola,
# "_data-id_ano_letivo": self.ano_letivo,
# "_data-id_turma": data_turma.id,
# "_disabled": disabled,
# "_href": window.PhanterPWA.XWAY("ficha-avaliativa", self.id_escola, self.ano_letivo, data_turma.id, **{"_retornar": "turmas-detalhadas"})
# }
# ),
# DIV(
# I(_class="fas fa-calendar-check"),
# **{
# "_class": "botao_faltas icon_button",
# "_title": "Registro de Presença",
# "_data-id_escola": self.id_escola,
# "_data-id_ano_letivo": self.ano_letivo,
# "_data-id_turma": data_turma.id,
# "_disabled": disabled
# }
# ),
# DIV(
# I(_class="fas fa-chalkboard-teacher"),
# **{
# "_class": "botao_professores icon_button",
# "_title": "Disciplinas e seus respectivos professores",
# "_data-id_escola": self.id_escola,
# "_data-id_ano_letivo": self.ano_letivo,
# "_data-id_turma": data_turma.id,
# "_disabled": "disabled"
# }
# ),
# DIV(
# I(_class="fas fa-clock"),
# **{
# "_class": "botao_horario icon_button",
# "_title": "Horário da Turma",
# "_data-id_escola": self.id_escola,
# "_data-id_ano_letivo": self.ano_letivo,
# "_data-id_turma": data_turma.id,
# "_disabled": "disabled"
# }
# ),
_class="phanterpwa-card-panel-control-buttons"
),
_class="phanterpwa-card-panel-control-wrapper has_buttons"
),
_class="phanterpwa-card-panel-control-container"
),
_id="phanterpwa-card-panel-control-{0}".format(x.id_escola),
_class="phanterpwa-card-panel-control"
)
xmls.append(card)
xmls.append(DIV(_id="modal_prover_acesso_escola_container"))
xmls.append(DIV(_id="modal_deletar_acesso_escola_container"))
xmls.append(DIV(_id="modal_visualizar_escola_funcionario"))
xmls.html_to("#content-vinculo-escola")
def bind_menu_option(self):
jQuery(
".botao_prover_acesso_vinculo"
).off(
"click.botao_prover_acesso"
).on(
"click.botao_prover_acesso",
lambda: self.obter_lista_de_contas_disponiveis(this)
)
jQuery(
".botao_revogar_vinculo"
).off(
"click.botao_revogar_acesso"
).on(
"click.botao_revogar_acesso",
lambda: self.modal_confirmar_deletar_vinculo(this)
)
jQuery(
".botao_visualizar_funcionario"
).off(
"click.botao_visualizar_funcionario"
).on(
"click.botao_visualizar_funcionario",
lambda: self.get_visualizar_funcionario(this)
)
def obter_lista_de_contas_disponiveis(self, el):
valor = jQuery(el).data("id_funcionario")
window.PhanterPWA.GET(
"api",
"funcionarios",
"contas-disponiveis",
onComplete=lambda data, ajax_status: self.abrir_modal_prover_acesso(valor, data, ajax_status)
)
def abrir_modal_prover_acesso(self, id_funcionario, data, ajax_status):
if ajax_status == "success":
data_set = data.responseJSON.contas
content = DIV(
forms.FormWidget(
"prover_acesso",
"contas_disponiveis",
**{
"value": "",
"label": "Contas disponíveis",
"type": "select",
"form": "prover_acesso",
"data_set": data_set,
"_class": "p-col w1p100"
}
),
_class="p-row"
)
footer = DIV(
forms.SubmitButton(
"adicionar_prover_acesso",
"Usar a conta selecionada",
_class="btn-autoresize wave_on_click waves-phanterpwa"
),
_class='phanterpwa-form-buttons-container'
)
self.modal_prover_acesso = modal.Modal(
"#modal_prover_acesso_escola_container",
**{
"title": "Definir a conta do funcionário que será usada no acesso",
"content": content,
"footer": footer,
"form": "prover_acesso"
}
)
self.modal_prover_acesso.open()
jQuery("#phanterpwa-widget-form-submit_button-adicionar_prover_acesso").off(
"click.adicionar_prover_acesso"
).on(
"click.adicionar_prover_acesso",
lambda: self.sing_form_modal_funcionario(id_funcionario)
)
def sing_form_modal_funcionario(self, id_funcionario):
window.PhanterPWA.GET(
"api",
"signforms",
"phanterpwa-form-funcionarios",
onComplete=lambda data, ajax_status: self.depois_de_assinar_modal_funcionario(
data, ajax_status, id_funcionario)
)
def depois_de_assinar_modal_funcionario(self, data, ajax_status, id_funcionario):
json = data.responseJSON
id_auth_user = jQuery(".phanterpwa-widget-select-select[name='contas_disponiveis']").val()
formdata = __new__(FormData())
formdata.append(
"csrf_token",
json.csrf
)
formdata.append(
"auth_user",
id_auth_user
)
window.PhanterPWA.PUT(
"api",
"funcionario",
"definir-conta",
id_funcionario,
form_data=formdata,
onComplete=self.depois_de_definir_o_email_do_funcionario
)
def depois_de_definir_o_email_do_funcionario(self, data, ajax_status):
if ajax_status == "success":
self.modal_prover_acesso.close()
dados = data.responseJSON.dados
jQuery(".email_de_acesso_funcionario_{0}".format(dados.id_funcionario)).text(dados.email_de_acesso)
jQuery(".papel_funcionario_{0}".format(dados.id_funcionario)).text(dados.papel)
def modal_confirmar_deletar_vinculo(self, el):
id_vinculo = jQuery(el).data("id_vinculo")
content = DIV(
P("Atenção, o vínculo do funcionário será deletado permanentemente, se ",
"o mesmo possuir acesso especial ao sistema, este será revogado. Por exemplo,"
" em caso de ", STRONG("professores"), ", ele não terá mais acesso às suas ",
"disciplinas e suas turmas"),
P("Tem certeza que deseja deletar este vínculo?"),
_class="p-row"
)
footer = DIV(
forms.FormButton(
"deletar_vinculo_sim",
"Sim",
_class="btn-autoresize wave_on_click waves-phanterpwa"
),
forms.FormButton(
"deletar_vinculo_nao",
"Não",
_class="btn-autoresize wave_on_click waves-phanterpwa"
),
_class='phanterpwa-form-buttons-container'
)
self.modal_deletar_vinculo = modal.Modal(
"#modal_deletar_acesso_escola_container",
**{
"title": "Deletar vínculo",
"content": content,
"footer": footer,
"form": "deletar_vinculo"
}
)
self.modal_deletar_vinculo.open()
jQuery("#phanterpwa-widget-form-form_button-deletar_vinculo_sim").off(
"click.adicionar_deletar_vinculo_sim"
).on(
"click.adicionar_deletar_vinculo_sim",
lambda: self._on_click_deletar_vinculo(id_vinculo)
)
jQuery("#phanterpwa-widget-form-form_button-deletar_vinculo_nao").off(
"click.adicionar_deletar_vinculo_nao"
).on(
"click.adicionar_deletar_vinculo_nao",
lambda: self.modal_deletar_vinculo.close()
)
def _on_click_deletar_vinculo(self, id_vinculo):
window.PhanterPWA.DELETE(
"api",
"vinculo",
"deletar",
id_vinculo,
onComplete=self.depois_de_deletar_vinculo
)
self.modal_deletar_vinculo.close()
def depois_de_deletar_vinculo(self, data, ajax_status):
if ajax_status == "success":
self.obter_vinculos()
def get_visualizar_funcionario(self, widget_instance):
id_funcionario = jQuery(widget_instance).data("id_funcionario")
window.PhanterPWA.GET(
"api",
"funcionario",
"visualizar",
id_funcionario,
onComplete=lambda data, ajax_status: self.modal_add_funcinario_visualizar(data, ajax_status)
)
def modal_add_funcinario_visualizar(self, data, ajax_status):
json = data.responseJSON
if ajax_status == "success":
html_vinculos = DIV(
DIV("VÍNCULOS DO FUNCIONÁRIO", _class="p-col w1p100 phanterpwa-widget-form-separator"),
P("O Funcionário não possui vínculos"),
_class="vinculos-conteudo"
)
if json.data.vinculos is not None and json.data.vinculos is not js_undefined:
html_vinculos = DIV(
DIV("VÍNCULOS DO FUNCIONÁRIO", _class="p-col w1p100 phanterpwa-widget-form-separator"),
_class="vinculos-conteudo"
)
tabela = XTABLE(
"tabela_ficha_individual",
XTRH(
"tabela_ficha_individual_head",
"Ano Letivo",
"Escola",
"Atribuições",
"Data Limite",
"Autorização"
),
)
for x in json.data.vinculos:
data_limite = "31/12/{0}".format(x.anos_letivo.ano)
if x.vinculos_funcionarios.data_limite is not None and x.vinculos_funcionarios.data_limite is not js_undefined:
data_limite = validations.format_iso_date_datetime(
x.vinculos_funcionarios.data_limite, "dd/MM/yyyy", "date"
)
tabela.append(
XTRD(
"tabela_ficha_individual_linhas_{0}".format(x.vinculos_funcionarios.id),
x.anos_letivo.ano,
x.escolas.nome,
x.profissoes.profissao,
data_limite,
x.vinculos_funcionarios.autorizacao,
**{"drag_and_drop": False}
)
)
html_vinculos.append(tabela)
content = DIV(
forms.Form(json.data.funcionario),
html_vinculos,
_class="p-row"
)
self.modal_visualizar_funcionario = modal.Modal(
"#modal_visualizar_escola_funcionario",
**{
"title": CONCATENATE(DIV("Visualizar dados do funcionário"),
DIV(STRONG(json.data.nome))),
"content": content
}
)
self.modal_visualizar_funcionario.open()
else:
window.PhanterPWA.flash("Não há alunos_visualizar matriculados para a série da turma")
class Vinculo(helpers.XmlConstructor):
def __init__(self, index_instance, arg0, arg1, arg2, arg3):
self.index_instance = index_instance
self.arg0 = arg0
self.arg1 = arg1
self.arg2 = arg2
self.arg3 = arg3
vars_serialized = ""
if self.index_instance.request.js_params is not None and self.index_instance.request.js_params is not js_undefined:
vars_serialized = "?{0}".format(jQuery.param(self.index_instance.request.js_params))
if arg0 == "editar":
self.get_form_vinculo()
elif arg0 == "visualizar":
self.visualizar(id_vinculo, index_instance.request.params)
elif arg0 == "novo" and str(arg1).isdigit() and (arg2 is None or arg2 is js_undefined):
html = escolas.EscolherEscola(
id_target="#content-vinculo",
callback_link=lambda id_escola: "#_phanterpwa:/vinculos/novo/{0}/{1}{2}".format(self.arg1, id_escola,
vars_serialized)
)
elif arg0 == "novo" and str(arg1).isdigit() and str(arg2).isdigit() and (arg3 is None or arg3 is js_undefined):
html = anos_letivos.EscolherAnoLetivo(
id_target="#content-vinculo",
callback_link=lambda ano: "#_phanterpwa:/vinculos/novo/{0}/{1}/{2}{3}".format(self.arg1, self.arg2, ano,
vars_serialized)
)
elif arg0 == "novo" and str(arg1).isdigit() and str(arg2).isdigit() and str(arg3).isdigit():
self.id_funcionario = arg1
self.id_escola = arg2
self.ano_letivo = arg3
self.id_atribuicao = window.PhanterPWA.Request.get_arg(4)
self.autorizacao_especial = window.PhanterPWA.Request.get_param("autorizacao")
self.get_form_vinculo(arg0, arg1, arg2)
def lista_de_vinculos(self, json):
logo = "{0}/api/escolas/{1}/image".format(
window.PhanterPWA.ApiServer.remote_address,
self.arg1
)
aviso = ""
if json.aviso is not None and json.aviso is not js_undefined:
aviso = H5(json.aviso, _style="color:red;")
table = XTABLE(
"lista_de_vinculos-table",
XTRH(
"lista_de_vinculos-table-head",
*["Nome completo", "Vinculo Escolar", "Atribuição"],
DIV(
I(_class="fas fa-plus"),
**{
"_class": "icon_button wave_on_click novo_vinculo",
"_data-id_funcionario": self.arg0,
"_data-id_escola": self.arg1,
"_data-ano_letivo": self.arg2
}
)
)
)
if json.data.vinculos is not js_undefined:
cont_vinculos = 0
cont_escola = 0
for x in json.data.vinculos:
cont_vinculos += 1
botao_acao = DIV(
I(_class="fas fa-exclamation-circle"),
**{
"_href": "#",
"_class": "icon_button wave_on_click",
"_disabled": "disabled"
}
)
if x.autorizado:
cont_escola += 1
botao_acao = DIV(
I(_class="fas fa-edit"),
**{
"_class": "icon_button wave_on_click editar_vinculo_especifico",
"_data-id_vinculo": x.id,
"_data-id_funcionario": self.arg0,
"_data-id_escola": self.arg1,
"_data-ano_letivo": self.arg2
}
)
table.append(
XTRD(
"lista_de_vinculos-table-data-{0}".format(x.id),
x.nome_completo,
x.nome_da_escola,
x.nome_atribuicao,
botao_acao,
**{"drag_and_drop": False}
)
)
if cont_vinculos == 1 and cont_escola == 1:
titulo = H3("O FUNCIONÁRIO JÁ POSSUI UM VÍNCULO NESTA UNIDADE DE ENSINO NO ANO LETIVO ESPECIFICADO.")
elif cont_vinculos == 1:
titulo = H3(
"O FUNCIONÁRIO POSSUI UM VÍNCULO EM OUTRA UNIDADE DE ENSINO ANO LETIVO ESPECIFICADO.",
" VOCÊ NÃO TEM AUTORIZAÇÃO DE EDITÁ-LO, PORÉM PODE ADICIONAR UM NOVO VINCULO EM SUA ESCOLA."
)
else:
titulo = H3(
"O FUNCIONÁRIO POSSUI OUTROS VÍNCULOS EM OUTRA UNIDADE DE ENSINO NO ANO LETIVO ESPECIFICADO.",
" VOCÊ NÃO TEM AUTORIZAÇÃO DE EDITÁ-LOS, PORÉM PODE ADICIONAR UM NOVO VINCULO EM SUA ESCOLA."
)
if cont_escola > 0:
titulo = H3(
"O FUNCIONÁRIO POSSUI OUTROS VÍNCULOS EM OUTRA UNIDADE DE ENSINO NO ANO LETIVO ESPECIFICADO.",
" VOCÊ NÃO TEM AUTORIZAÇÃO DE EDITÁ-LOS, PORÉM PODE EDITAR OS VÍNCULOS EXISTENTES DE SUA UNIDADE",
" DE ENSINO OU ADICIONAR UM NOVO VINCULO EM SUA ESCOLA."
)
if cont_escola == cont_vinculos:
titulo = H3(
"O FUNCIONÁRIO JÁ POSSUI OUTROS VÍNCULOS EM SUA UNIDADE DE ENSINO NO ANO LETIVO ESPECIFICADO.",
" VOCÊ PODE EDITAR OS VÍNCULOS EXISTENTES OU ADICIONAR UM NOVO VINCULO."
)
html = DIV(
DIV(
DIV(
DIV(
DIV(
DIV(
DIV(
DIV(
IMG(_src=logo),
_class="escolas-container-info-image",
_style="text-align: center;"
),
_class="p-col w1p100 w4p30"
),
DIV(
titulo,
# aviso,
_class="p-col w1p100 w4p70"
),
_class="p-row"
),
DIV(
DIV(
DIV(
DIV(preloaders.android, _style="width: 300px; height: 300px; overflow: hidden; margin: auto;"),
_style="text-align:center; padding: 50px 0;"
),
_id="lista_de_vinculos"),
_class="p-col w1p100",
),
_class="p-row e-padding_20w"
),
_class="phanterpwa-container-section"
),
**{
"_id": "vinculo-funcionario-escola",
"_class": "p-row"
}
),
_class="phanterpwa_tables_search_wrapper"
),
_class='series-container phanterpwa-card-container'
)
html.html_to("#content-vinculo")
table.html_to("#lista_de_vinculos")
#self.binds()
def after_get(self, data, ajax_status):
if ajax_status == "success":
json = data.responseJSON
if data.status == 202:
self.lista_de_vinculos(json)
else:
self.process_data(json)
def process_data(self, json):
self.nome_funcionario = json.data.funcionario.nome_completo
self.form = forms.Form(json.data.vinculo)
logo = "{0}/api/escolas/{1}/image".format(
window.PhanterPWA.ApiServer.remote_address,
json.data.id_escola
)
aviso = ""
if json.aviso is not None and json.aviso is not js_undefined:
aviso = H5(json.aviso, _style="color:red;")
titulo = P("CRIANDO UM NOVO VÍNCULO DO(A) FUNCIONÁRIO(A) ", STRONG(self.nome_funcionario), " NESTA UNIDADE DE ENSINO.")
self.id_vinculo = None
if json.id_vinculo is not None and json.id_vinculo is not js_undefined:
self.id_vinculo = json.id_vinculo
titulo = H3("O FUNCIONÁRIO JÁ POSSUI UM VÍNCULO NESTA UNIDADE DE ENSINO NO ANO LETIVO ESPECIFICADO.")
html = DIV(
DIV(
DIV(
DIV(
DIV(
DIV(
DIV(
DIV(
IMG(_src=logo),
_class="escolas-container-info-image",
_style="text-align: center;"
),
_class="p-col w1p100 w4p30"
),
DIV(
titulo,
P("OBSERVE QUE O VÍNCULO ESTÁ SENDO EFETUADO NO ANO LETIVO DE ", STRONG(self.ano_letivo, _style="text-style:bold"), ", CASO ESTE NÃO",
" SEJA O ANO CORRETO ", A("CLIQUE AQUI.", _href=window.PhanterPWA.XWAY(
"vinculo", self.arg0, self.arg1, self.arg2), _class="btn btn-inline")),
aviso,
_class="p-col w1p100 w4p70"
),
_class="p-row"
),
DIV(
DIV(
DIV(
DIV(preloaders.android, _style="width: 300px; height: 300px; overflow: hidden; margin: auto;"),
_style="text-align:center; padding: 50px 0;"
),
_id="formulario_vinculo_funcionario"),
_class="p-col w1p100",
),
_class="p-row e-padding_20w"
),
_class="phanterpwa-container-section"
),
**{
"_id": "vinculo-funcionario-escola",
"_class": "p-row"
}
),
_class="phanterpwa_tables_search_wrapper"
),
_class='series-container phanterpwa-card-container'
)
html.html_to("#content-vinculo")
self.form.html_to("#formulario_vinculo_funcionario")
self.binds()
def binds(self):
forms.SignForm("#form-vinculos_funcionarios", after_sign=lambda: forms.ValidateForm("#form-vinculos_funcionarios"))
jQuery(
"#phanterpwa-widget-form-submit_button-vinculos_funcionarios"
).off(
"click.submit_vinculos_button"
).on(
"click.submit_vinculos_button",
lambda: self.submit(this)
)
def get_form_vinculo(self):
if self.arg0 == "novo" and str(self.arg1).isdigit() and str(self.arg2).isdigit() and str(self.arg3).isdigit():
paramentros = dict(onComplete=self.after_get)
if self.id_atribuicao is not None:
paramentros['_atribuicao'] = self.id_atribuicao
if self.autorizacao_especial is not None:
paramentros['_autorizacao_especial'] = self.autorizacao_especial
window.PhanterPWA.GET(
"api",
"vinculo",
self.arg0,
self.arg1,
self.arg2,
self.arg3,
**paramentros
)
else:
window.PhanterPWA.ApiServer.GET(**{
'url_args': ["api", "vinculo", self.arg0, self.arg1],
'onComplete': self.after_get,
'get_cache': self.process_data
})
def submit(self, el):
if jQuery(el)[0].hasAttribute("disabled"):
window.PhanterPWA.flash(html=I18N("The form has errors!"))
else:
form_vinculo = jQuery("#form-vinculos_funcionarios")[0]
form_vinculo = __new__(FormData(form_vinculo))
if self.arg0 == "novo" and str(self.arg1).isdigit() and str(self.arg2).isdigit() and str(self.arg3).isdigit():
window.PhanterPWA.ApiServer.POST(**{
'url_args': ["api", "vinculo", self.arg0, self.arg1, self.arg2, self.arg3],
'form_data': form_vinculo,
'onComplete': self.after_submit
})
elif self.arg0 == "editar" and str(self.arg1).isdigit():
window.PhanterPWA.ApiServer.PUT(**{
'url_args': ["api", "vinculo", self.arg0, self.arg1],
'form_data': form_vinculo,
'onComplete': self.after_submit
})
def after_submit(self, data):
forms.SignForm("#form-vinculos_funcionarios")
self.form.process_api_response(data)
if data.status == 200:
if window.PhanterPWA.Request.get_param("retornar") is not None:
window.PhanterPWA.open_way(window.PhanterPWA.Request.get_param("retornar"))
else:
window.PhanterPWA.open_way("funcionarios/")
__pragma__('nokwargs')
| 50.462953
| 187
| 0.443404
| 7,399
| 90,581
| 5.156508
| 0.070009
| 0.031347
| 0.012686
| 0.008938
| 0.863366
| 0.844311
| 0.835531
| 0.828401
| 0.816214
| 0.812859
| 0
| 0.012005
| 0.462945
| 90,581
| 1,794
| 188
| 50.491081
| 0.772278
| 0.047847
| 0
| 0.757325
| 0
| 0.005732
| 0.208268
| 0.087017
| 0
| 0
| 0
| 0
| 0
| 1
| 0.023567
| false
| 0
| 0.007643
| 0
| 0.033758
| 0.000637
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
2461bfef0145fc2177fbdb8ba22d5fe3ccb30671
| 114
|
py
|
Python
|
QuickDemos/fuzzysearch.py
|
Nick32179/CMPT-120L-902-21S
|
6acf2d2c7336aeb42ea1daf9dfa7aa014216ee08
|
[
"MIT"
] | 1
|
2022-02-09T16:26:45.000Z
|
2022-02-09T16:26:45.000Z
|
QuickDemos/fuzzysearch.py
|
Nick32179/CMPT-120L-902-21S
|
6acf2d2c7336aeb42ea1daf9dfa7aa014216ee08
|
[
"MIT"
] | 1
|
2021-04-24T05:26:25.000Z
|
2021-04-24T05:26:25.000Z
|
QuickDemos/fuzzysearch.py
|
Nick32179/CMPT-120L-902-21S
|
6acf2d2c7336aeb42ea1daf9dfa7aa014216ee08
|
[
"MIT"
] | 31
|
2021-02-18T02:48:53.000Z
|
2022-02-16T16:51:30.000Z
|
from fuzzywuzzy import fuzz
from fuzzywuzzy import process
print(fuzz.ratio("this is a test", "this is a test!"))
| 28.5
| 54
| 0.763158
| 19
| 114
| 4.578947
| 0.578947
| 0.321839
| 0.45977
| 0.252874
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.140351
| 114
| 4
| 54
| 28.5
| 0.887755
| 0
| 0
| 0
| 0
| 0
| 0.252174
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 0.333333
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
030b9124e7fd0a6566016053c2b72bb4231f9308
| 1,179
|
py
|
Python
|
stellar_model/response/__init__.py
|
MartinThoma/stellar-model
|
a21969f3d1aac1e95cb32747d54b72a30e21dda9
|
[
"Apache-2.0"
] | null | null | null |
stellar_model/response/__init__.py
|
MartinThoma/stellar-model
|
a21969f3d1aac1e95cb32747d54b72a30e21dda9
|
[
"Apache-2.0"
] | null | null | null |
stellar_model/response/__init__.py
|
MartinThoma/stellar-model
|
a21969f3d1aac1e95cb32747d54b72a30e21dda9
|
[
"Apache-2.0"
] | null | null | null |
from stellar_model.response.account_data_response import *
from stellar_model.response.account_response import *
from stellar_model.response.accounts_response import *
from stellar_model.response.assets_response import *
from stellar_model.response.claimable_balance_response import *
from stellar_model.response.claimable_balances_response import *
from stellar_model.response.effects_response import *
from stellar_model.response.error_response import *
from stellar_model.response.fee_stats_response import *
from stellar_model.response.ledger_response import *
from stellar_model.response.ledgers_response import *
from stellar_model.response.offer_response import *
from stellar_model.response.offers_response import *
from stellar_model.response.operation_response import *
from stellar_model.response.operations_response import *
from stellar_model.response.paths_response import *
from stellar_model.response.payments_response import *
from stellar_model.response.trade_aggregations_response import *
from stellar_model.response.trades_response import *
from stellar_model.response.transaction_response import *
from stellar_model.response.transactions_response import *
| 53.590909
| 64
| 0.875318
| 152
| 1,179
| 6.480263
| 0.190789
| 0.234518
| 0.341117
| 0.511675
| 0.828426
| 0.789848
| 0.095431
| 0
| 0
| 0
| 0
| 0
| 0.071247
| 1,179
| 21
| 65
| 56.142857
| 0.899543
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
ceff0da8268ed188d49741dfa9345fbc5524725d
| 5,108
|
py
|
Python
|
sorts/bubblesort/bubble_sort.py
|
microwind/algorithm
|
e71d3c581e8c65244044d38c65eeee01a8aecb7c
|
[
"MIT"
] | 6
|
2020-07-03T05:38:11.000Z
|
2022-01-23T06:50:54.000Z
|
sorts/bubblesort/bubble_sort.py
|
microwind/algorithm
|
e71d3c581e8c65244044d38c65eeee01a8aecb7c
|
[
"MIT"
] | null | null | null |
sorts/bubblesort/bubble_sort.py
|
microwind/algorithm
|
e71d3c581e8c65244044d38c65eeee01a8aecb7c
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
#-*- encoding: UTF-8-*-
"""
* Copyright © https://github.com/jarry All rights reserved.
* @author: jarryli@gmail.com
* @version: 1.0
"""
import time
# ASE
def bubble_sort(arr):
print('bubble_sort from left to right:')
length = len(arr)
for i in range(length):
for j in range(length - 1):
# 自左往右每两个进行比较,把大的交换到右侧
# 逐轮冒出最大数,已经排好序的不要再比较
if (arr[j] > arr[j + 1]):
[arr[j], arr[j + 1]] = [arr[j + 1], arr[j]]
print('i=' + str(i), 'j=' + str(j), arr)
# DESC
def bubble_sort(arr):
print('bubble_sort from right to left:')
length = len(arr)
for i in range(length):
for j in range(length - 1, i, -1):
# 自右往左每两个进行比较,把小的交换到右侧
# 逐轮冒出最小数,已经排好序的不要再比较
if (arr[j - 1] < arr[j]):
[arr[j - 1], arr[j]] = [arr[j], arr[j - 1]]
print('i=' + str(i), 'j=' + str(j), arr)
# add flag
def bubble_sort(arr):
print('bubble_sort add flag:')
# 增加一个标志,如果某一轮没有进行过任何的交换
# 则说明当前数组已排好序,则不必继续后面的遍历,
length = len(arr)
flag = True
for i in range(length):
flag = False
print('no. ' + str(i))
for j in range(length - 1):
# 自左往右每两个进行比较,把大的交换到右侧
# 逐轮冒出最大数,已经排好序的不要再比较
if (arr[j] > arr[j + 1]):
flag = True
[arr[j], arr[j + 1]] = [arr[j + 1], arr[j]]
print('i=' + str(i), 'j=' + str(j), arr)
arr = [ 7, 11, 9, 10, 12, 13, 8 ]
start_time = time.time()
bubble_sort(arr)
print(arr)
print("time:" + str((time.time() - start_time) * 1000) + " ms")
"""
jarrys-MacBook-Pro:bubble_sort jarry$ python bubble_sort.py
bubble_sort add flag:
no. 0
('i=0', 'j=0', [7, 11, 9, 10, 12, 13, 8])
('i=0', 'j=1', [7, 9, 11, 10, 12, 13, 8])
('i=0', 'j=2', [7, 9, 10, 11, 12, 13, 8])
('i=0', 'j=3', [7, 9, 10, 11, 12, 13, 8])
('i=0', 'j=4', [7, 9, 10, 11, 12, 13, 8])
('i=0', 'j=5', [7, 9, 10, 11, 12, 8, 13])
no. 1
('i=1', 'j=0', [7, 9, 10, 11, 12, 8, 13])
('i=1', 'j=1', [7, 9, 10, 11, 12, 8, 13])
('i=1', 'j=2', [7, 9, 10, 11, 12, 8, 13])
('i=1', 'j=3', [7, 9, 10, 11, 12, 8, 13])
('i=1', 'j=4', [7, 9, 10, 11, 8, 12, 13])
('i=1', 'j=5', [7, 9, 10, 11, 8, 12, 13])
no. 2
('i=2', 'j=0', [7, 9, 10, 11, 8, 12, 13])
('i=2', 'j=1', [7, 9, 10, 11, 8, 12, 13])
('i=2', 'j=2', [7, 9, 10, 11, 8, 12, 13])
('i=2', 'j=3', [7, 9, 10, 8, 11, 12, 13])
('i=2', 'j=4', [7, 9, 10, 8, 11, 12, 13])
('i=2', 'j=5', [7, 9, 10, 8, 11, 12, 13])
no. 3
('i=3', 'j=0', [7, 9, 10, 8, 11, 12, 13])
('i=3', 'j=1', [7, 9, 10, 8, 11, 12, 13])
('i=3', 'j=2', [7, 9, 8, 10, 11, 12, 13])
('i=3', 'j=3', [7, 9, 8, 10, 11, 12, 13])
('i=3', 'j=4', [7, 9, 8, 10, 11, 12, 13])
('i=3', 'j=5', [7, 9, 8, 10, 11, 12, 13])
no. 4
('i=4', 'j=0', [7, 9, 8, 10, 11, 12, 13])
('i=4', 'j=1', [7, 8, 9, 10, 11, 12, 13])
('i=4', 'j=2', [7, 8, 9, 10, 11, 12, 13])
('i=4', 'j=3', [7, 8, 9, 10, 11, 12, 13])
('i=4', 'j=4', [7, 8, 9, 10, 11, 12, 13])
('i=4', 'j=5', [7, 8, 9, 10, 11, 12, 13])
no. 5
('i=5', 'j=0', [7, 8, 9, 10, 11, 12, 13])
('i=5', 'j=1', [7, 8, 9, 10, 11, 12, 13])
('i=5', 'j=2', [7, 8, 9, 10, 11, 12, 13])
('i=5', 'j=3', [7, 8, 9, 10, 11, 12, 13])
('i=5', 'j=4', [7, 8, 9, 10, 11, 12, 13])
('i=5', 'j=5', [7, 8, 9, 10, 11, 12, 13])
no. 6
('i=6', 'j=0', [7, 8, 9, 10, 11, 12, 13])
jarrys-MacBook-Pro:bubble_sort jarry$ python bubble_sort.py
bubble_sort add flag:
no. 0
('i=0', 'j=0', [7, 11, 9, 10, 12, 13, 8])
('i=0', 'j=1', [7, 9, 11, 10, 12, 13, 8])
('i=0', 'j=2', [7, 9, 10, 11, 12, 13, 8])
('i=0', 'j=3', [7, 9, 10, 11, 12, 13, 8])
('i=0', 'j=4', [7, 9, 10, 11, 12, 13, 8])
('i=0', 'j=5', [7, 9, 10, 11, 12, 8, 13])
no. 1
('i=1', 'j=0', [7, 9, 10, 11, 12, 8, 13])
('i=1', 'j=1', [7, 9, 10, 11, 12, 8, 13])
('i=1', 'j=2', [7, 9, 10, 11, 12, 8, 13])
('i=1', 'j=3', [7, 9, 10, 11, 12, 8, 13])
('i=1', 'j=4', [7, 9, 10, 11, 8, 12, 13])
('i=1', 'j=5', [7, 9, 10, 11, 8, 12, 13])
no. 2
('i=2', 'j=0', [7, 9, 10, 11, 8, 12, 13])
('i=2', 'j=1', [7, 9, 10, 11, 8, 12, 13])
('i=2', 'j=2', [7, 9, 10, 11, 8, 12, 13])
('i=2', 'j=3', [7, 9, 10, 8, 11, 12, 13])
('i=2', 'j=4', [7, 9, 10, 8, 11, 12, 13])
('i=2', 'j=5', [7, 9, 10, 8, 11, 12, 13])
no. 3
('i=3', 'j=0', [7, 9, 10, 8, 11, 12, 13])
('i=3', 'j=1', [7, 9, 10, 8, 11, 12, 13])
('i=3', 'j=2', [7, 9, 8, 10, 11, 12, 13])
('i=3', 'j=3', [7, 9, 8, 10, 11, 12, 13])
('i=3', 'j=4', [7, 9, 8, 10, 11, 12, 13])
('i=3', 'j=5', [7, 9, 8, 10, 11, 12, 13])
no. 4
('i=4', 'j=0', [7, 9, 8, 10, 11, 12, 13])
('i=4', 'j=1', [7, 8, 9, 10, 11, 12, 13])
('i=4', 'j=2', [7, 8, 9, 10, 11, 12, 13])
('i=4', 'j=3', [7, 8, 9, 10, 11, 12, 13])
('i=4', 'j=4', [7, 8, 9, 10, 11, 12, 13])
('i=4', 'j=5', [7, 8, 9, 10, 11, 12, 13])
no. 5
('i=5', 'j=0', [7, 8, 9, 10, 11, 12, 13])
('i=5', 'j=1', [7, 8, 9, 10, 11, 12, 13])
('i=5', 'j=2', [7, 8, 9, 10, 11, 12, 13])
('i=5', 'j=3', [7, 8, 9, 10, 11, 12, 13])
('i=5', 'j=4', [7, 8, 9, 10, 11, 12, 13])
('i=5', 'j=5', [7, 8, 9, 10, 11, 12, 13])
no. 6
('i=6', 'j=0', [7, 8, 9, 10, 11, 12, 13])
('i=6', 'j=1', [7, 8, 9, 10, 11, 12, 13])
('i=6', 'j=2', [7, 8, 9, 10, 11, 12, 13])
('i=6', 'j=3', [7, 8, 9, 10, 11, 12, 13])
('i=6', 'j=4', [7, 8, 9, 10, 11, 12, 13])
('i=6', 'j=5', [7, 8, 9, 10, 11, 12, 13])
[7, 8, 9, 10, 11, 12, 13]
time:0.400066375732 ms
"""
| 31.726708
| 63
| 0.434612
| 1,164
| 5,108
| 1.895189
| 0.067869
| 0.12874
| 0.126927
| 0.145966
| 0.826836
| 0.816863
| 0.816863
| 0.792838
| 0.752947
| 0.745694
| 0
| 0.276071
| 0.222788
| 5,108
| 161
| 64
| 31.726708
| 0.279345
| 0.065583
| 0
| 0.588235
| 0
| 0
| 0.094774
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.088235
| false
| 0
| 0.029412
| 0
| 0.117647
| 0.264706
| 0
| 0
| 1
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
061cc195314e47edbea22faeb495773c28a192e8
| 49,215
|
py
|
Python
|
tests/clients/test_securitydata.py
|
PixelogicDev/py42
|
ccb100b03025fff1a060a39635bee3e76a251a85
|
[
"MIT"
] | null | null | null |
tests/clients/test_securitydata.py
|
PixelogicDev/py42
|
ccb100b03025fff1a060a39635bee3e76a251a85
|
[
"MIT"
] | null | null | null |
tests/clients/test_securitydata.py
|
PixelogicDev/py42
|
ccb100b03025fff1a060a39635bee3e76a251a85
|
[
"MIT"
] | null | null | null |
import json
import pytest
from py42.clients.securitydata import PlanStorageInfo
from py42.clients.securitydata import SecurityDataClient
from py42.exceptions import Py42ChecksumNotFoundError
from py42.exceptions import Py42Error
from py42.response import Py42Response
from py42.services.fileevent import FileEventService
from py42.services.preservationdata import PreservationDataService
from py42.services.savedsearch import SavedSearchService
from py42.services.securitydata import SecurityDataService
from py42.services.storage._service_factory import StorageServiceFactory
from py42.services.storage.preservationdata import StoragePreservationDataService
from py42.services.storage.securitydata import StorageSecurityDataService
RAW_QUERY = "RAW JSON QUERY"
USER_UID = "user-uid"
PDS_EXCEPTION_MESSAGE = (
u"No file with hash {0} available for download on any storage node."
)
GET_SECURITY_EVENT_LOCATIONS_RESPONSE_BODY_ONE_LOCATION = """{
"securityPlanLocationsByDestination": [
{
"destinationGuid": "4",
"securityPlanLocationsByNode": [
{
"nodeGuid": "41",
"securityPlanUids": [
"111111111111111111"
]
}
]
}
],
"userUid": "917354657784339860"
}"""
GET_SECURITY_EVENT_LOCATIONS_RESPONSE_BODY_TWO_PLANS_ONE_NODE = """{
"securityPlanLocationsByDestination": [
{
"destinationGuid": "4",
"securityPlanLocationsByNode": [
{
"nodeGuid": "41",
"securityPlanUids": [
"111111111111111111",
"222222222222222222"
]
}
]
}
],
"userUid": "917354657784339860"
}"""
GET_SECURITY_EVENT_LOCATIONS_RESPONSE_BODY_TWO_PLANS_TWO_NODES = """{
"securityPlanLocationsByDestination": [
{
"destinationGuid": "4",
"securityPlanLocationsByNode": [
{
"nodeGuid": "41",
"securityPlanUids": [
"111111111111111111"
]
},
{
"nodeGuid": "42",
"securityPlanUids": [
"222222222222222222"
]
}
]
}
],
"userUid": "917354657784339860"
}"""
GET_SECURITY_EVENT_LOCATIONS_RESPONSE_BODY_ONE_PLAN_TWO_DESTINATIONS = """{
"securityPlanLocationsByDestination": [
{
"destinationGuid": "4",
"securityPlanLocationsByNode": [
{
"nodeGuid": "41",
"securityPlanUids": [
"111111111111111111"
]
}
]
},
{
"destinationGuid": "5",
"securityPlanLocationsByNode": [
{
"nodeGuid": "51",
"securityPlanUids": [
"111111111111111111"
]
}
]
}
],
"userUid": "917354657784339860"
}"""
GET_SECURITY_EVENT_LOCATIONS_RESPONSE_BODY_TWO_PLANS_TWO_DESTINATIONS = """{
"securityPlanLocationsByDestination": [
{
"destinationGuid": "4",
"securityPlanLocationsByNode": [
{
"nodeGuid": "41",
"securityPlanUids": [
"111111111111111111",
"222222222222222222"
]
}
]
},
{
"destinationGuid": "5",
"securityPlanLocationsByNode": [
{
"nodeGuid": "51",
"securityPlanUids": [
"111111111111111111",
"222222222222222222"
]
}
]
}
],
"userUid": "917354657784339860"
}"""
GET_SECURITY_EVENT_LOCATIONS_RESPONSE_BODY_TWO_PLANS_TWO_DESTINATIONS_THREE_NODES = """{
"securityPlanLocationsByDestination": [
{
"destinationGuid": "4",
"securityPlanLocationsByNode": [
{
"nodeGuid": "41",
"securityPlanUids": [
"111111111111111111",
"222222222222222222"
]
}
]
},
{
"destinationGuid": "5",
"securityPlanLocationsByNode": [
{
"nodeGuid": "51",
"securityPlanUids": [
"111111111111111111"
]
},
{
"nodeGuid": "52",
"securityPlanUids": [
"222222222222222222"
]
}
]
}
],
"userUid": "917354657784339860"
}"""
FILE_EVENTS_RESPONSE = """{
"fileEvents":[
{
"deviceUid": "testdeviceUid",
"fileName": "testfileName",
"filePath": "/test/file/path/",
"md5Checksum":"testmd5-2",
"sha256Checksum":"testsha256-2"
}
]
}"""
FILE_LOCATION_RESPONSE = """{
"locations": [
{
"fileName": "file1",
"deviceUid": "device1",
"filePath": "path1"
},
{
"fileName": "file2",
"deviceUid": "device2",
"filePath": "path2"
}
]
}"""
PDS_FILE_VERSIONS = """{
"versions": [
{
"storageNodeURL": "https://host-1.com",
"archiveGuid": "archiveid-1",
"fileId": "fileid-1",
"fileMD5": "testmd5-1",
"fileSHA256": "testsha256-1",
"versionTimestamp": 12345
},
{
"storageNodeURL": "https://host-2.com",
"archiveGuid": "archiveid-2",
"fileId": "fileid-2",
"fileMD5": "testmd5-2",
"fileSHA256": "testsha256-2",
"versionTimestamp": 12344
},
{
"storageNodeURL": "https://host-3.com",
"archiveGuid": "archiveid-3",
"fileId": "fileid-3",
"fileMD5": "testmd5-3",
"fileSHA256": "testsha256-3",
"versionTimestamp": 12346
}
]
}"""
AVAILABLE_VERSION_RESPONSE = """{
"storageNodeURL": "https://host.com",
"archiveGuid": "archiveid-3",
"fileId": "fileid-3",
"fileMD5": "testmd5-3",
"fileSHA256": "testsha256-3",
"versionTimestamp": 12346
}"""
class TestSecurityClient(object):
@pytest.fixture
def security_service(self, mocker):
return mocker.MagicMock(spec=SecurityDataService)
@pytest.fixture
def security_service_one_location(self, security_service, py42_response):
py42_response.text = GET_SECURITY_EVENT_LOCATIONS_RESPONSE_BODY_ONE_LOCATION
security_service.get_security_event_locations.return_value = py42_response
return security_service
@pytest.fixture
def security_service_two_plans_one_node(self, security_service, py42_response):
py42_response.text = (
GET_SECURITY_EVENT_LOCATIONS_RESPONSE_BODY_TWO_PLANS_ONE_NODE
)
security_service.get_security_event_locations.return_value = py42_response
return security_service
@pytest.fixture
def security_service_two_plans_two_nodes(self, security_service, py42_response):
py42_response.text = (
GET_SECURITY_EVENT_LOCATIONS_RESPONSE_BODY_TWO_PLANS_TWO_NODES
)
security_service.get_security_event_locations.return_value = py42_response
return security_service
@pytest.fixture
def security_service_one_plan_two_destinations(
self, security_service, py42_response
):
py42_response.text = (
GET_SECURITY_EVENT_LOCATIONS_RESPONSE_BODY_ONE_PLAN_TWO_DESTINATIONS
)
security_service.get_security_event_locations.return_value = py42_response
return security_service
@pytest.fixture
def security_service_two_plans_two_destinations(
self, security_service, py42_response
):
py42_response.text = (
GET_SECURITY_EVENT_LOCATIONS_RESPONSE_BODY_TWO_PLANS_TWO_DESTINATIONS
)
security_service.get_security_event_locations.return_value = py42_response
return security_service
@pytest.fixture
def security_service_two_plans_two_destinations_three_nodes(
self, security_service, py42_response
):
py42_response.text = GET_SECURITY_EVENT_LOCATIONS_RESPONSE_BODY_TWO_PLANS_TWO_DESTINATIONS_THREE_NODES
security_service.get_security_event_locations.return_value = py42_response
return security_service
@pytest.fixture
def storage_service_factory(self, mocker):
return mocker.MagicMock(spec=StorageServiceFactory)
@pytest.fixture
def file_event_service(self, mocker):
return mocker.MagicMock(spec=FileEventService)
@pytest.fixture
def preservation_data_service(self, mocker):
return mocker.MagicMock(spec=PreservationDataService)
@pytest.fixture
def saved_search_service(self, mocker):
return mocker.MagicMock(spec=SavedSearchService)
def test_search_with_only_query_calls_through_to_client(
self,
security_service,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
):
security_client = SecurityDataClient(
security_service,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
)
security_client.search_file_events(RAW_QUERY)
file_event_service.search.assert_called_once_with(RAW_QUERY)
def test_get_security_plan_storage_info_one_location_returns_location_info(
self,
security_service_one_location,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
):
security_client = SecurityDataClient(
security_service_one_location,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
)
storage_infos = security_client.get_security_plan_storage_info_list("foo")
assert len(storage_infos) == 1
assert self._storage_info_contains(
storage_infos, "111111111111111111", "4", "41"
)
def test_get_security_plan_storage_info_two_plans_one_node_returns_both_location_info(
self,
security_service_two_plans_one_node,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
):
security_client = SecurityDataClient(
security_service_two_plans_one_node,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
)
storage_infos = security_client.get_security_plan_storage_info_list("foo")
assert len(storage_infos) == 2
assert self._storage_info_contains(
storage_infos, "111111111111111111", "4", "41"
)
assert self._storage_info_contains(
storage_infos, "222222222222222222", "4", "41"
)
def test_get_security_plan_storage_info_two_plans_two_nodes_returns_both_location_info(
self,
security_service_two_plans_two_nodes,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
):
security_client = SecurityDataClient(
security_service_two_plans_two_nodes,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
)
storage_infos = security_client.get_security_plan_storage_info_list("foo")
assert self._storage_info_contains(
storage_infos, "111111111111111111", "4", "41"
)
assert self._storage_info_contains(
storage_infos, "222222222222222222", "4", "42"
)
def test_get_security_plan_storage_info_one_plan_two_destinations_returns_one_location(
self,
security_service_one_plan_two_destinations,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
):
security_client = SecurityDataClient(
security_service_one_plan_two_destinations,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
)
storage_infos = security_client.get_security_plan_storage_info_list("foo")
assert len(storage_infos) == 1
assert self._storage_info_contains(
storage_infos, "111111111111111111", "4", "41"
) or self._storage_info_contains(storage_infos, "111111111111111111", "5", "51")
def test_get_security_plan_storage_info_two_plans_two_destinations_returns_one_location_per_plan(
self,
security_service_two_plans_two_destinations,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
):
security_client = SecurityDataClient(
security_service_two_plans_two_destinations,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
)
storage_infos = security_client.get_security_plan_storage_info_list("foo")
assert len(storage_infos) == 2
assert self._storage_info_contains(
storage_infos, "111111111111111111", "4", "41"
) or self._storage_info_contains(storage_infos, "111111111111111111", "5", "51")
assert self._storage_info_contains(
storage_infos, "222222222222222222", "4", "41"
) or self._storage_info_contains(storage_infos, "222222222222222222", "5", "51")
def test_get_security_plan_storage_info_two_plans_two_destinations_three_nodes_returns_one_location_per_plan(
self,
security_service_two_plans_two_destinations_three_nodes,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
):
security_client = SecurityDataClient(
security_service_two_plans_two_destinations_three_nodes,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
)
storage_infos = security_client.get_security_plan_storage_info_list("foo")
assert self._storage_info_contains(
storage_infos, "111111111111111111", "4", "41"
) or self._storage_info_contains(storage_infos, "111111111111111111", "5", "51")
assert self._storage_info_contains(
storage_infos, "222222222222222222", "4", "41"
) or self._storage_info_contains(storage_infos, "222222222222222222", "5", "52")
def test_get_all_user_security_events_calls_security_service_with_expected_params(
self,
mocker,
security_service_one_location,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
):
mock_storage_security_service = mocker.MagicMock(
spec=StorageSecurityDataService
)
response = mocker.MagicMock(spec=Py42Response)
response.text = "{}"
response.data = {}
mock_storage_security_service.get_plan_security_events.return_value = response
storage_service_factory.create_security_data_service.return_value = (
mock_storage_security_service
)
security_client = SecurityDataClient(
security_service_one_location,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
)
for _, _ in security_client.get_all_user_security_events("foo"):
pass
mock_storage_security_service.get_plan_security_events.assert_called_once_with(
"111111111111111111",
cursor=None,
event_types=None,
include_files=True,
max_timestamp=None,
min_timestamp=None,
)
def test_get_all_user_security_events_when_cursors_returned_calls_security_service_expected_number_of_times(
self,
mocker,
security_service_one_location,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
):
mock_storage_security_service = mocker.MagicMock(
spec=StorageSecurityDataService
)
response1 = mocker.MagicMock(spec=Py42Response)
cursor_json = '{"cursor": "1:1"}'
response1.text = cursor_json
response1.data = json.loads(cursor_json)
response2 = mocker.MagicMock(spec=Py42Response)
response2.text = "{}"
response2.data = {}
mock_storage_security_service.get_plan_security_events.side_effect = [
response1,
response2,
]
storage_service_factory.create_security_data_service.return_value = (
mock_storage_security_service
)
security_client = SecurityDataClient(
security_service_one_location,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
)
for _, _ in security_client.get_all_user_security_events("foo"):
pass
assert mock_storage_security_service.get_plan_security_events.call_count == 2
def test_get_all_user_security_events_when_multiple_plans_returned_calls_security_service_expected_number_of_times(
self,
mocker,
security_service_two_plans_one_node,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
):
mock_storage_security_service = mocker.MagicMock(
spec=StorageSecurityDataService
)
response = mocker.MagicMock(spec=Py42Response)
response.text = "{}"
response.data = {}
mock_storage_security_service.get_plan_security_events.return_value = response
storage_service_factory.create_security_data_service.return_value = (
mock_storage_security_service
)
security_client = SecurityDataClient(
security_service_two_plans_one_node,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
)
for _, _ in security_client.get_all_user_security_events("foo"):
pass
assert mock_storage_security_service.get_plan_security_events.call_count == 2
def test_get_all_user_security_events_when_multiple_plans_with_cursors_returned_calls_security_service_expected_number_of_times(
self,
mocker,
security_service_two_plans_one_node,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
):
mock_storage_security_service = mocker.MagicMock(
spec=StorageSecurityDataService
)
response1 = mocker.MagicMock(spec=Py42Response)
cursor_json = '{"cursor": "1:1"}'
response1.text = cursor_json
response1.data = json.loads(cursor_json)
response2 = mocker.MagicMock(spec=Py42Response)
response2.text = "{}"
response2.data = {}
mock_storage_security_service.get_plan_security_events.side_effect = [
response1,
response2,
response1,
response2,
]
storage_service_factory.create_security_data_service.return_value = (
mock_storage_security_service
)
security_client = SecurityDataClient(
security_service_two_plans_one_node,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
)
for _, _ in security_client.get_all_user_security_events("foo"):
pass
assert mock_storage_security_service.get_plan_security_events.call_count == 4
@pytest.mark.parametrize(
"plan_storage_info",
[
PlanStorageInfo("111111111111111111", "41", "4"),
(PlanStorageInfo("111111111111111111", "41", "4"),),
[PlanStorageInfo("111111111111111111", "41", "4")],
],
)
def test_get_all_plan_security_events_calls_security_service_with_expected_params(
self,
mocker,
security_service,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
plan_storage_info,
):
mock_storage_security_service = mocker.MagicMock(
spec=StorageSecurityDataService
)
response = mocker.MagicMock(spec=Py42Response)
response.text = "{}"
response.data = {}
mock_storage_security_service.get_plan_security_events.return_value = response
storage_service_factory.create_security_data_service.return_value = (
mock_storage_security_service
)
security_client = SecurityDataClient(
security_service,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
)
for _, _ in security_client.get_all_plan_security_events(plan_storage_info):
pass
mock_storage_security_service.get_plan_security_events.assert_called_once_with(
"111111111111111111",
cursor=None,
event_types=None,
include_files=True,
max_timestamp=None,
min_timestamp=None,
)
def test_get_all_plan_security_events_when_cursors_returned_calls_security_service_expected_number_of_times(
self,
mocker,
security_service,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
):
mock_storage_security_service = mocker.MagicMock(
spec=StorageSecurityDataService
)
response1 = mocker.MagicMock(spec=Py42Response)
cursor_json = '{"cursor": "1:1"}'
response1.text = cursor_json
response1.data = json.loads(cursor_json)
response2 = mocker.MagicMock(spec=Py42Response)
response2.text = "{}"
response2.data = {}
mock_storage_security_service.get_plan_security_events.side_effect = [
response1,
response2,
]
storage_service_factory.create_security_data_service.return_value = (
mock_storage_security_service
)
security_client = SecurityDataClient(
security_service,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
)
for _, _ in security_client.get_all_plan_security_events(
PlanStorageInfo("111111111111111111", "41", "4")
):
pass
assert mock_storage_security_service.get_plan_security_events.call_count == 2
def test_get_all_plan_security_events_when_multiple_plans_returned_calls_security_service_expected_number_of_times(
self,
mocker,
security_service,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
):
mock_storage_security_service = mocker.MagicMock(
spec=StorageSecurityDataService
)
response = mocker.MagicMock(spec=Py42Response)
response.text = "{}"
response.data = {}
mock_storage_security_service.get_plan_security_events.return_value = response
storage_service_factory.create_security_data_service.return_value = (
mock_storage_security_service
)
security_client = SecurityDataClient(
security_service,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
)
plans = [
PlanStorageInfo("111111111111111111", "41", "4"),
PlanStorageInfo("222222222222222222", "41", "4"),
]
for _, _ in security_client.get_all_plan_security_events(plans):
pass
assert mock_storage_security_service.get_plan_security_events.call_count == 2
def test_get_all_plan_security_events_when_multiple_plans_with_cursors_returned_calls_security_service_expected_number_of_times(
self,
mocker,
security_service,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
):
mock_storage_security_service = mocker.MagicMock(
spec=StorageSecurityDataService
)
response1 = mocker.MagicMock(spec=Py42Response)
cursor_json = '{"cursor": "1:1"}'
response1.text = cursor_json
response1.data = json.loads(cursor_json)
response2 = mocker.MagicMock(spec=Py42Response)
response2.text = "{}"
response2.data = {}
mock_storage_security_service.get_plan_security_events.side_effect = [
response1,
response2,
response1,
response2,
]
storage_service_factory.create_security_data_service.return_value = (
mock_storage_security_service
)
security_client = SecurityDataClient(
security_service,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
)
plans = [
PlanStorageInfo("111111111111111111", "41", "4"),
PlanStorageInfo("222222222222222222", "41", "4"),
]
for _, _ in security_client.get_all_plan_security_events(plans):
pass
assert mock_storage_security_service.get_plan_security_events.call_count == 4
# the order the items are iterated through is not deterministic in some versions of python,
# so we simply test that the value returned is one of the _possible_ values.
def _storage_info_contains(
self, storage_info_list, plan_uid, destination_guid, node_guid
):
return any(
item.plan_uid == plan_uid
and item.destination_guid == destination_guid
and item.node_guid == node_guid
for item in storage_info_list
)
def test_saved_searches_returns_saved_search_client(
self,
security_service,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
):
security_client = SecurityDataClient(
security_service,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
)
assert security_client.savedsearches
@pytest.fixture
def file_event_search(self, mocker):
response = mocker.MagicMock(spec=Py42Response)
response.status_code = 200
response.encoding = None
response.__getitem__ = lambda _, key: json.loads(response.text).get(key)
file_event_response = response
file_event_response.text = FILE_EVENTS_RESPONSE
return file_event_response
@pytest.fixture
def file_location(self, mocker):
response = mocker.MagicMock(spec=Py42Response)
response.status_code = 200
response.encoding = None
response.__getitem__ = lambda _, key: json.loads(response.text).get(key)
file_location_response = response
file_location_response.text = FILE_LOCATION_RESPONSE
return file_location_response
@pytest.fixture
def file_version_list(self, mocker):
response = mocker.MagicMock(spec=Py42Response)
response.status_code = 200
response.encoding = None
response.__getitem__ = lambda _, key: json.loads(response.text).get(key)
pds_file_version_response = response
pds_file_version_response.text = PDS_FILE_VERSIONS
return pds_file_version_response
@pytest.fixture
def available_version(self, mocker):
response = mocker.MagicMock(spec=Py42Response)
response.status_code = 200
response.encoding = None
response.__getitem__ = lambda _, key: json.loads(response.text).get(key)
available_version_response = response
available_version_response.text = AVAILABLE_VERSION_RESPONSE
return available_version_response
@pytest.fixture
def file_download(self, mocker):
response = mocker.MagicMock(spec=Py42Response)
response.status_code = 200
response.encoding = None
response.__getitem__ = lambda _, key: json.loads(response.text).get(key)
download_token_response = response
download_token_response.text = "PDSDownloadToken=token"
return download_token_response
def test_stream_file_by_sha256_with_exact_match_response_calls_get_version_list_with_expected_params(
self,
mocker,
security_service,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
file_event_search,
file_version_list,
file_download,
):
file_event_service.search.return_value = file_event_search
preservation_data_service.get_file_version_list.return_value = file_version_list
storage_node_client = mocker.MagicMock(spec=StoragePreservationDataService)
storage_node_client.get_download_token.return_value = file_download
storage_node_client.get_file.return_value = b"stream"
storage_service_factory.create_preservation_data_service.return_value = (
storage_node_client
)
security_client = SecurityDataClient(
security_service,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
)
response = security_client.stream_file_by_sha256("testsha256-2")
version_list_params = [
"testdeviceUid",
"testmd5-2",
"testsha256-2",
"/test/file/path/testfileName",
]
preservation_data_service.get_file_version_list.assert_called_once_with(
*version_list_params
)
storage_service_factory.create_preservation_data_service.assert_called_once_with(
"https://host-2.com"
)
assert file_event_service.get_file_location_detail_by_sha256.call_count == 0
assert preservation_data_service.find_file_version.call_count == 0
download_token_params = ["archiveid-2", "fileid-2", 12344]
storage_node_client.get_download_token.assert_called_once_with(
*download_token_params
)
assert response == b"stream"
def test_stream_file_by_sha256_without_exact_match_response_calls_get_version_list_with_expected_params(
self,
mocker,
security_service,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
file_event_search,
file_version_list,
file_download,
):
file_event_search.text = file_event_search.text.replace("-2", "-6")
file_event_service.search.return_value = file_event_search
preservation_data_service.get_file_version_list.return_value = file_version_list
storage_node_client = mocker.MagicMock(spec=StoragePreservationDataService)
storage_node_client.get_download_token.return_value = file_download
storage_node_client.get_file.return_value = b"stream"
storage_service_factory.create_preservation_data_service.return_value = (
storage_node_client
)
security_client = SecurityDataClient(
security_service,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
)
response = security_client.stream_file_by_sha256("testsha256-6")
expected = [
"testdeviceUid",
"testmd5-6",
"testsha256-6",
"/test/file/path/testfileName",
]
preservation_data_service.get_file_version_list.assert_called_once_with(
*expected
)
storage_service_factory.create_preservation_data_service.assert_called_once_with(
"https://host-3.com"
)
assert file_event_service.get_file_location_detail_by_sha256.call_count == 0
assert preservation_data_service.find_file_version.call_count == 0
# should get version with most recent versionTimestamp
download_token_params = ["archiveid-3", "fileid-3", 12346]
storage_node_client.get_download_token.assert_called_once_with(
*download_token_params
)
assert response == b"stream"
def test_stream_file_by_sha256_when_search_returns_empty_response_raises_py42_checksum_not_found_error_(
self,
security_service,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
file_event_search,
):
file_event_search.text = '{"fileEvents": []}'
file_event_service.search.return_value = file_event_search
security_client = SecurityDataClient(
security_service,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
)
with pytest.raises(Py42ChecksumNotFoundError) as e:
security_client.stream_file_by_sha256("shahash")
assert u"No files found with SHA256 checksum" in e.value.args[0]
def test_stream_file_by_sha256_when_file_versions_returns_empty_response_gets_version_from_other_location(
self,
mocker,
security_service,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
file_event_search,
file_version_list,
file_location,
file_download,
available_version,
):
file_version_list.text = '{"versions": []}'
preservation_data_service.get_file_version_list.return_value = file_version_list
preservation_data_service.find_file_version.return_value = available_version
file_event_service.search.return_value = file_event_search
file_event_service.get_file_location_detail_by_sha256.return_value = (
file_location
)
storage_node_client = mocker.MagicMock(spec=StoragePreservationDataService)
storage_node_client.get_download_token.return_value = file_download
storage_node_client.get_file.return_value = b"stream"
storage_service_factory.create_preservation_data_service.return_value = (
storage_node_client
)
security_client = SecurityDataClient(
security_service,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
)
response = security_client.stream_file_by_sha256("shahash")
assert response == b"stream"
file_event_service.get_file_location_detail_by_sha256.assert_called_once_with(
"testsha256-2"
)
expected = ["testmd5-2", "testsha256-2", mocker.ANY]
preservation_data_service.find_file_version.assert_called_once_with(*expected)
# should return version returned by find_file_version
download_token_params = ["archiveid-3", "fileid-3", 12346]
storage_node_client.get_download_token.assert_called_once_with(
*download_token_params
)
def test_stream_file_by_sha256_when_get_locations_returns_empty_list_raises_py42_error(
self,
mocker,
security_service,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
file_event_search,
file_version_list,
file_location,
):
file_version_list.text = '{"versions": []}'
file_location.text = '{"locations": []}'
preservation_data_service.get_file_version_list.return_value = file_version_list
file_event_service.search.return_value = file_event_search
file_event_service.get_file_location_detail_by_sha256.return_value = (
file_location
)
security_client = SecurityDataClient(
security_service,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
)
with pytest.raises(Py42Error) as e:
security_client.stream_file_by_sha256("shahash")
assert e.value.args[0] == PDS_EXCEPTION_MESSAGE.format("shahash")
def test_stream_file_by_sha256_when_find_file_version_returns_204_status_code_raises_py42_error(
self,
mocker,
security_service,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
file_event_search,
file_location,
file_version_list,
available_version,
):
file_version_list.text = '{"versions": []}'
preservation_data_service.get_file_version_list.return_value = file_version_list
file_event_service.search.return_value = file_event_search
file_event_service.get_file_location_detail_by_sha256.return_value = (
file_location
)
available_version.status_code = 204
preservation_data_service.find_file_version.return_value = available_version
security_client = SecurityDataClient(
security_service,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
)
with pytest.raises(Py42Error) as e:
security_client.stream_file_by_sha256("shahash")
assert e.value.args[0] == PDS_EXCEPTION_MESSAGE.format("shahash")
def test_stream_file_by_md5_with_exact_match_response_calls_get_version_list_with_expected_params(
self,
mocker,
security_service,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
file_event_search,
file_version_list,
file_download,
):
file_event_service.search.return_value = file_event_search
preservation_data_service.get_file_version_list.return_value = file_version_list
storage_node_client = mocker.MagicMock(spec=StoragePreservationDataService)
storage_node_client.get_download_token.return_value = file_download
storage_node_client.get_file.return_value = b"stream"
storage_service_factory.create_preservation_data_service.return_value = (
storage_node_client
)
security_client = SecurityDataClient(
security_service,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
)
response = security_client.stream_file_by_md5("testmd5-2")
version_list_params = [
"testdeviceUid",
"testmd5-2",
"testsha256-2",
"/test/file/path/testfileName",
]
preservation_data_service.get_file_version_list.assert_called_once_with(
*version_list_params
)
storage_service_factory.create_preservation_data_service.assert_called_once_with(
"https://host-2.com"
)
assert file_event_service.get_file_location_detail_by_sha256.call_count == 0
assert preservation_data_service.find_file_version.call_count == 0
download_token_params = ["archiveid-2", "fileid-2", 12344]
storage_node_client.get_download_token.assert_called_once_with(
*download_token_params
)
assert response == b"stream"
def test_stream_file_by_md5_without_exact_match_response_calls_get_version_list_with_expected_params(
self,
mocker,
security_service,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
file_event_search,
file_version_list,
file_download,
):
file_event_search.text = file_event_search.text.replace("-2", "-6")
file_event_service.search.return_value = file_event_search
preservation_data_service.get_file_version_list.return_value = file_version_list
storage_node_client = mocker.MagicMock(spec=StoragePreservationDataService)
storage_node_client.get_download_token.return_value = file_download
storage_node_client.get_file.return_value = b"stream"
storage_service_factory.create_preservation_data_service.return_value = (
storage_node_client
)
security_client = SecurityDataClient(
security_service,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
)
response = security_client.stream_file_by_md5("testmd5-6")
expected = [
"testdeviceUid",
"testmd5-6",
"testsha256-6",
"/test/file/path/testfileName",
]
preservation_data_service.get_file_version_list.assert_called_once_with(
*expected
)
storage_service_factory.create_preservation_data_service.assert_called_once_with(
"https://host-3.com"
)
assert file_event_service.get_file_location_detail_by_sha256.call_count == 0
assert preservation_data_service.find_file_version.call_count == 0
# should get version returned with most recent versionTimestamp
download_token_params = ["archiveid-3", "fileid-3", 12346]
storage_node_client.get_download_token.assert_called_once_with(
*download_token_params
)
assert response == b"stream"
def test_stream_file_by_md5_when_search_returns_empty_response_raises_py42_checksum_not_found_error_(
self,
security_service,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
file_event_search,
):
file_event_search.text = '{"fileEvents": []}'
file_event_service.search.return_value = file_event_search
security_client = SecurityDataClient(
security_service,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
)
with pytest.raises(Py42ChecksumNotFoundError) as e:
security_client.stream_file_by_md5("mdhash")
assert u"No files found with MD5 checksum" in e.value.args[0]
def test_stream_file_by_md5_when_file_versions_returns_empty_response_gets_version_from_other_location(
self,
mocker,
security_service,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
file_event_search,
file_version_list,
file_location,
file_download,
available_version,
):
file_version_list.text = '{"versions": []}'
preservation_data_service.get_file_version_list.return_value = file_version_list
preservation_data_service.find_file_version.return_value = available_version
file_event_service.search.return_value = file_event_search
file_event_service.get_file_location_detail_by_sha256.return_value = (
file_location
)
storage_node_client = mocker.MagicMock(spec=StoragePreservationDataService)
storage_node_client.get_download_token.return_value = file_download
storage_node_client.get_file.return_value = b"stream"
storage_service_factory.create_preservation_data_service.return_value = (
storage_node_client
)
security_client = SecurityDataClient(
security_service,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
)
response = security_client.stream_file_by_md5("mdhash")
assert response == b"stream"
file_event_service.get_file_location_detail_by_sha256.assert_called_once_with(
"testsha256-2"
)
expected = ["testmd5-2", "testsha256-2", mocker.ANY]
preservation_data_service.find_file_version.assert_called_once_with(*expected)
# should return version returned by find_file_version
download_token_params = ["archiveid-3", "fileid-3", 12346]
storage_node_client.get_download_token.assert_called_once_with(
*download_token_params
)
def test_stream_file_by_md5_when_get_locations_returns_empty_list_raises_py42_error(
self,
security_service,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
file_event_search,
file_version_list,
file_location,
):
file_version_list.text = '{"versions": []}'
file_location.text = '{"locations": []}'
preservation_data_service.get_file_version_list.return_value = file_version_list
file_event_service.search.return_value = file_event_search
file_event_service.get_file_location_detail_by_sha256.return_value = (
file_location
)
security_client = SecurityDataClient(
security_service,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
)
with pytest.raises(Py42Error) as e:
security_client.stream_file_by_md5("mdhash")
assert e.value.args[0] == PDS_EXCEPTION_MESSAGE.format("mdhash")
def test_stream_file_by_md5_when_find_file_version_returns_204_status_code_raises_py42_error(
self,
security_service,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
file_event_search,
file_location,
file_version_list,
available_version,
):
file_version_list.text = '{"versions": []}'
preservation_data_service.get_file_version_list.return_value = file_version_list
file_event_service.search.return_value = file_event_search
file_event_service.get_file_location_detail_by_sha256.return_value = (
file_location
)
available_version.status_code = 204
preservation_data_service.find_file_version.return_value = available_version
security_client = SecurityDataClient(
security_service,
file_event_service,
preservation_data_service,
saved_search_service,
storage_service_factory,
)
with pytest.raises(Py42Error) as e:
security_client.stream_file_by_md5("mdhash")
assert e.value.args[0] == PDS_EXCEPTION_MESSAGE.format("mdhash")
| 37.397416
| 132
| 0.646835
| 4,772
| 49,215
| 6.160939
| 0.049874
| 0.061735
| 0.07119
| 0.053333
| 0.907483
| 0.896497
| 0.891224
| 0.880986
| 0.869116
| 0.858742
| 0
| 0.040739
| 0.28727
| 49,215
| 1,315
| 133
| 37.425856
| 0.797417
| 0.007782
| 0
| 0.733656
| 0
| 0
| 0.154654
| 0.015709
| 0
| 0
| 0
| 0
| 0.05004
| 1
| 0.03632
| false
| 0.006457
| 0.011299
| 0.004843
| 0.062147
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
06ae8bdc376259aada0838ecdafb5e62e09123f5
| 3,228
|
py
|
Python
|
ExperimentBasics/migrations/0007_auto_20180215_1745.py
|
tifat58/lsv-c4-django-webexperiment
|
6aa706ad36b9766fbbf4323fdcd6e5d7420f1e16
|
[
"Apache-2.0"
] | 1
|
2022-03-16T11:17:06.000Z
|
2022-03-16T11:17:06.000Z
|
ExperimentBasics/migrations/0007_auto_20180215_1745.py
|
tifat58/lsv-c4-django-webexperiment
|
6aa706ad36b9766fbbf4323fdcd6e5d7420f1e16
|
[
"Apache-2.0"
] | null | null | null |
ExperimentBasics/migrations/0007_auto_20180215_1745.py
|
tifat58/lsv-c4-django-webexperiment
|
6aa706ad36b9766fbbf4323fdcd6e5d7420f1e16
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
# Generated by Django 1.9.9 on 2018-02-15 12:45
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ExperimentBasics', '0006_informedconsent'),
]
operations = [
migrations.AddField(
model_name='informedconsent',
name='consent_description_bg',
field=models.CharField(max_length=1024, null=True, verbose_name='consent description'),
),
migrations.AddField(
model_name='informedconsent',
name='consent_description_bs',
field=models.CharField(max_length=1024, null=True, verbose_name='consent description'),
),
migrations.AddField(
model_name='informedconsent',
name='consent_description_cs',
field=models.CharField(max_length=1024, null=True, verbose_name='consent description'),
),
migrations.AddField(
model_name='informedconsent',
name='consent_description_de',
field=models.CharField(max_length=1024, null=True, verbose_name='consent description'),
),
migrations.AddField(
model_name='informedconsent',
name='consent_description_en',
field=models.CharField(max_length=1024, null=True, verbose_name='consent description'),
),
migrations.AddField(
model_name='informedconsent',
name='consent_description_hr',
field=models.CharField(max_length=1024, null=True, verbose_name='consent description'),
),
migrations.AddField(
model_name='informedconsent',
name='consent_description_mk',
field=models.CharField(max_length=1024, null=True, verbose_name='consent description'),
),
migrations.AddField(
model_name='informedconsent',
name='consent_description_pl',
field=models.CharField(max_length=1024, null=True, verbose_name='consent description'),
),
migrations.AddField(
model_name='informedconsent',
name='consent_description_ru',
field=models.CharField(max_length=1024, null=True, verbose_name='consent description'),
),
migrations.AddField(
model_name='informedconsent',
name='consent_description_sk',
field=models.CharField(max_length=1024, null=True, verbose_name='consent description'),
),
migrations.AddField(
model_name='informedconsent',
name='consent_description_sl',
field=models.CharField(max_length=1024, null=True, verbose_name='consent description'),
),
migrations.AddField(
model_name='informedconsent',
name='consent_description_sr',
field=models.CharField(max_length=1024, null=True, verbose_name='consent description'),
),
migrations.AddField(
model_name='informedconsent',
name='consent_description_uk',
field=models.CharField(max_length=1024, null=True, verbose_name='consent description'),
),
]
| 39.851852
| 99
| 0.631351
| 308
| 3,228
| 6.386364
| 0.178571
| 0.145399
| 0.290798
| 0.178444
| 0.885613
| 0.885613
| 0.885613
| 0.885613
| 0.853076
| 0.853076
| 0
| 0.030189
| 0.261152
| 3,228
| 80
| 100
| 40.35
| 0.794549
| 0.020756
| 0
| 0.712329
| 1
| 0
| 0.241925
| 0.090564
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.027397
| 0
| 0.068493
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
ebf073b6228afcd7a8a0268b49a4d71e68b79f17
| 41,130
|
py
|
Python
|
tests/test_subgraph.py
|
Protean-Labs/subgrounds
|
9e7f6817b94593d31ff7c19ed13fad8189e3223d
|
[
"Apache-2.0"
] | 18
|
2021-12-15T17:45:44.000Z
|
2022-03-20T11:41:04.000Z
|
tests/test_subgraph.py
|
Protean-Labs/subgrounds
|
9e7f6817b94593d31ff7c19ed13fad8189e3223d
|
[
"Apache-2.0"
] | 13
|
2022-01-23T15:34:25.000Z
|
2022-03-20T15:45:40.000Z
|
tests/test_subgraph.py
|
Protean-Labs/subgrounds
|
9e7f6817b94593d31ff7c19ed13fad8189e3223d
|
[
"Apache-2.0"
] | 4
|
2022-01-25T22:09:58.000Z
|
2022-03-24T17:59:20.000Z
|
import unittest
from subgrounds.schema import SchemaMeta, TypeMeta, TypeRef
from subgrounds.subgraph import FieldPath, Filter, Object, Subgraph, SyntheticField
from subgrounds.query import Argument, DataRequest, InputValue, Query, Selection
from subgrounds.subgrounds import Subgrounds
from subgrounds.utils import identity
from tests.utils import schema
class TestAddType(unittest.TestCase):
def setUp(self):
self.schema = schema()
self.subgraph = Subgraph("", self.schema)
def tearDown(self) -> None:
SyntheticField.counter = 0
def test_add_synthetic_field_1(self):
sfield = SyntheticField(identity, SyntheticField.FLOAT, self.subgraph.Pair.reserveUSD)
expected = SchemaMeta(query_type='Query', type_map={
'Int': TypeMeta.ScalarMeta('Int', ''),
'Float': TypeMeta.ScalarMeta('Float', ''),
'BigInt': TypeMeta.ScalarMeta('BigInt', ''),
'BigDecimal': TypeMeta.ScalarMeta('BigDecimal', ''),
'String': TypeMeta.ScalarMeta('String', ''),
'OrderDirection': TypeMeta.EnumMeta('OrderDirection', '', [
TypeMeta.EnumValueMeta('asc', ''),
TypeMeta.EnumValueMeta('desc', '')
]),
'Query': TypeMeta.ObjectMeta('Query', '', fields=[
TypeMeta.FieldMeta('pairs', '', [
TypeMeta.ArgumentMeta('first', '', TypeRef.Named('Int'), None),
TypeMeta.ArgumentMeta('skip', '', TypeRef.Named('Int'), None),
TypeMeta.ArgumentMeta('where', '', TypeRef.Named('Pair_filter'), None),
TypeMeta.ArgumentMeta('orderBy', '', TypeRef.Named('Pair_orderBy'), None),
TypeMeta.ArgumentMeta('orderDirection', '', TypeRef.Named('OrderDirection'), None),
], TypeRef.non_null_list('Pair')),
TypeMeta.FieldMeta('swaps', '', [
TypeMeta.ArgumentMeta('first', '', TypeRef.Named('Int'), None),
TypeMeta.ArgumentMeta('skip', '', TypeRef.Named('Int'), None),
TypeMeta.ArgumentMeta('where', '', TypeRef.Named('Swap_filter'), None),
TypeMeta.ArgumentMeta('orderBy', '', TypeRef.Named('Swap_orderBy'), None),
TypeMeta.ArgumentMeta('orderDirection', '', TypeRef.Named('OrderDirection'), None),
], TypeRef.non_null_list('Swap')),
]),
'Swap': TypeMeta.ObjectMeta('Swap', '', fields=[
TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String')),
TypeMeta.FieldMeta('timestamp', '', [], TypeRef.Named('BigInt')),
TypeMeta.FieldMeta('amount0In', '', [], TypeRef.Named('BigDecimal')),
TypeMeta.FieldMeta('amount0Out', '', [], TypeRef.Named('BigDecimal')),
TypeMeta.FieldMeta('amount1In', '', [], TypeRef.Named('BigDecimal')),
TypeMeta.FieldMeta('amount1Out', '', [], TypeRef.Named('BigDecimal')),
]),
'Token': TypeMeta.ObjectMeta('Token', '', fields=[
TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String')),
TypeMeta.FieldMeta('name', '', [], TypeRef.Named('String')),
TypeMeta.FieldMeta('symbol', '', [], TypeRef.Named('String')),
TypeMeta.FieldMeta('decimals', '', [], TypeRef.Named('Int')),
]),
'Pair': TypeMeta.ObjectMeta('Pair', '', fields=[
TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String')),
TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token')),
TypeMeta.FieldMeta('token1', '', [], TypeRef.Named('Token')),
TypeMeta.FieldMeta('reserveUSD', '', [], TypeRef.Named('BigDecimal')),
TypeMeta.FieldMeta('priceToken0', '', [], TypeRef.Named('BigDecimal')),
TypeMeta.FieldMeta('priceToken1', '', [], TypeRef.Named('BigDecimal')),
TypeMeta.FieldMeta('createdAtTimestamp', '', [], TypeRef.Named('BigInt')),
TypeMeta.FieldMeta('reserveCAD', '', [], TypeRef.Named('Float')),
]),
'Pair_filter': TypeMeta.InputObjectMeta('Pair_filter', '', [
TypeMeta.ArgumentMeta('id', '', TypeRef.Named('String'), None),
TypeMeta.ArgumentMeta('id_gt', '', TypeRef.Named('String'), None),
TypeMeta.ArgumentMeta('id_lt', '', TypeRef.Named('String'), None),
TypeMeta.ArgumentMeta('token0', '', TypeRef.Named('String'), None),
TypeMeta.ArgumentMeta('token1', '', TypeRef.Named('String'), None),
TypeMeta.ArgumentMeta('reserveUSD_lt', '', TypeRef.Named('BigDecimal'), None),
TypeMeta.ArgumentMeta('reserveUSD_gt', '', TypeRef.Named('BigDecimal'), None),
TypeMeta.ArgumentMeta('priceToken0_lt', '', TypeRef.Named('BigDecimal'), None),
TypeMeta.ArgumentMeta('priceToken0_gt', '', TypeRef.Named('BigDecimal'), None),
TypeMeta.ArgumentMeta('priceToken1_lt', '', TypeRef.Named('BigDecimal'), None),
TypeMeta.ArgumentMeta('priceToken1_gt', '', TypeRef.Named('BigDecimal'), None),
TypeMeta.ArgumentMeta('createdAtTimestamp_lt', '', TypeRef.Named('BigInt'), None),
TypeMeta.ArgumentMeta('createdAtTimestamp_gt', '', TypeRef.Named('BigInt'), None),
]),
'Pair_orderBy': TypeMeta.EnumMeta('Pair_orderBy', '', [
TypeMeta.EnumValueMeta('id', ''),
TypeMeta.EnumValueMeta('reserveUSD', ''),
TypeMeta.EnumValueMeta('createdAtTimestamp', ''),
]),
'Swap_filter': TypeMeta.InputObjectMeta('Swap_filter', '', [
TypeMeta.ArgumentMeta('id', '', TypeRef.Named('String'), None),
TypeMeta.ArgumentMeta('id_gt', '', TypeRef.Named('String'), None),
TypeMeta.ArgumentMeta('id_lt', '', TypeRef.Named('String'), None),
TypeMeta.ArgumentMeta('timestamp', '', TypeRef.Named('BigInt'), None),
TypeMeta.ArgumentMeta('timestamp_gt', '', TypeRef.Named('BigInt'), None),
TypeMeta.ArgumentMeta('timestamp_lt', '', TypeRef.Named('BigInt'), None),
TypeMeta.ArgumentMeta('amount0In', '', TypeRef.Named('BigDecimal'), None),
TypeMeta.ArgumentMeta('amount0Out', '', TypeRef.Named('BigDecimal'), None),
TypeMeta.ArgumentMeta('amount1In', '', TypeRef.Named('BigDecimal'), None),
TypeMeta.ArgumentMeta('amount1Out', '', TypeRef.Named('BigDecimal'), None),
]),
})
Pair = self.subgraph.Pair
Pair.reserveCAD = sfield
self.assertEqual(self.subgraph._schema, expected)
def test_add_synthetic_field_2(self):
expected = SchemaMeta(query_type='Query', type_map={
'Int': TypeMeta.ScalarMeta('Int', ''),
'Float': TypeMeta.ScalarMeta('Float', ''),
'BigInt': TypeMeta.ScalarMeta('BigInt', ''),
'BigDecimal': TypeMeta.ScalarMeta('BigDecimal', ''),
'String': TypeMeta.ScalarMeta('String', ''),
'OrderDirection': TypeMeta.EnumMeta('OrderDirection', '', [
TypeMeta.EnumValueMeta('asc', ''),
TypeMeta.EnumValueMeta('desc', '')
]),
'Query': TypeMeta.ObjectMeta('Query', '', fields=[
TypeMeta.FieldMeta('pairs', '', [
TypeMeta.ArgumentMeta('first', '', TypeRef.Named('Int'), None),
TypeMeta.ArgumentMeta('skip', '', TypeRef.Named('Int'), None),
TypeMeta.ArgumentMeta('where', '', TypeRef.Named('Pair_filter'), None),
TypeMeta.ArgumentMeta('orderBy', '', TypeRef.Named('Pair_orderBy'), None),
TypeMeta.ArgumentMeta('orderDirection', '', TypeRef.Named('OrderDirection'), None),
], TypeRef.non_null_list('Pair')),
TypeMeta.FieldMeta('swaps', '', [
TypeMeta.ArgumentMeta('first', '', TypeRef.Named('Int'), None),
TypeMeta.ArgumentMeta('skip', '', TypeRef.Named('Int'), None),
TypeMeta.ArgumentMeta('where', '', TypeRef.Named('Swap_filter'), None),
TypeMeta.ArgumentMeta('orderBy', '', TypeRef.Named('Swap_orderBy'), None),
TypeMeta.ArgumentMeta('orderDirection', '', TypeRef.Named('OrderDirection'), None),
], TypeRef.non_null_list('Swap')),
]),
'Swap': TypeMeta.ObjectMeta('Swap', '', fields=[
TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String')),
TypeMeta.FieldMeta('timestamp', '', [], TypeRef.Named('BigInt')),
TypeMeta.FieldMeta('amount0In', '', [], TypeRef.Named('BigDecimal')),
TypeMeta.FieldMeta('amount0Out', '', [], TypeRef.Named('BigDecimal')),
TypeMeta.FieldMeta('amount1In', '', [], TypeRef.Named('BigDecimal')),
TypeMeta.FieldMeta('amount1Out', '', [], TypeRef.Named('BigDecimal')),
]),
'Token': TypeMeta.ObjectMeta('Token', '', fields=[
TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String')),
TypeMeta.FieldMeta('name', '', [], TypeRef.Named('String')),
TypeMeta.FieldMeta('symbol', '', [], TypeRef.Named('String')),
TypeMeta.FieldMeta('decimals', '', [], TypeRef.Named('Int')),
]),
'Pair': TypeMeta.ObjectMeta('Pair', '', fields=[
TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String')),
TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token')),
TypeMeta.FieldMeta('token1', '', [], TypeRef.Named('Token')),
TypeMeta.FieldMeta('reserveUSD', '', [], TypeRef.Named('BigDecimal')),
TypeMeta.FieldMeta('priceToken0', '', [], TypeRef.Named('BigDecimal')),
TypeMeta.FieldMeta('priceToken1', '', [], TypeRef.Named('BigDecimal')),
TypeMeta.FieldMeta('createdAtTimestamp', '', [], TypeRef.Named('BigInt')),
TypeMeta.FieldMeta('reserveCAD', '', [], TypeRef.Named('Float')),
]),
'Pair_filter': TypeMeta.InputObjectMeta('Pair_filter', '', [
TypeMeta.ArgumentMeta('id', '', TypeRef.Named('String'), None),
TypeMeta.ArgumentMeta('id_gt', '', TypeRef.Named('String'), None),
TypeMeta.ArgumentMeta('id_lt', '', TypeRef.Named('String'), None),
TypeMeta.ArgumentMeta('token0', '', TypeRef.Named('String'), None),
TypeMeta.ArgumentMeta('token1', '', TypeRef.Named('String'), None),
TypeMeta.ArgumentMeta('reserveUSD_lt', '', TypeRef.Named('BigDecimal'), None),
TypeMeta.ArgumentMeta('reserveUSD_gt', '', TypeRef.Named('BigDecimal'), None),
TypeMeta.ArgumentMeta('priceToken0_lt', '', TypeRef.Named('BigDecimal'), None),
TypeMeta.ArgumentMeta('priceToken0_gt', '', TypeRef.Named('BigDecimal'), None),
TypeMeta.ArgumentMeta('priceToken1_lt', '', TypeRef.Named('BigDecimal'), None),
TypeMeta.ArgumentMeta('priceToken1_gt', '', TypeRef.Named('BigDecimal'), None),
TypeMeta.ArgumentMeta('createdAtTimestamp_lt', '', TypeRef.Named('BigInt'), None),
TypeMeta.ArgumentMeta('createdAtTimestamp_gt', '', TypeRef.Named('BigInt'), None),
]),
'Pair_orderBy': TypeMeta.EnumMeta('Pair_orderBy', '', [
TypeMeta.EnumValueMeta('id', ''),
TypeMeta.EnumValueMeta('reserveUSD', ''),
TypeMeta.EnumValueMeta('createdAtTimestamp', ''),
]),
'Swap_filter': TypeMeta.InputObjectMeta('Swap_filter', '', [
TypeMeta.ArgumentMeta('id', '', TypeRef.Named('String'), None),
TypeMeta.ArgumentMeta('id_gt', '', TypeRef.Named('String'), None),
TypeMeta.ArgumentMeta('id_lt', '', TypeRef.Named('String'), None),
TypeMeta.ArgumentMeta('timestamp', '', TypeRef.Named('BigInt'), None),
TypeMeta.ArgumentMeta('timestamp_gt', '', TypeRef.Named('BigInt'), None),
TypeMeta.ArgumentMeta('timestamp_lt', '', TypeRef.Named('BigInt'), None),
TypeMeta.ArgumentMeta('amount0In', '', TypeRef.Named('BigDecimal'), None),
TypeMeta.ArgumentMeta('amount0Out', '', TypeRef.Named('BigDecimal'), None),
TypeMeta.ArgumentMeta('amount1In', '', TypeRef.Named('BigDecimal'), None),
TypeMeta.ArgumentMeta('amount1Out', '', TypeRef.Named('BigDecimal'), None),
]),
})
Pair = self.subgraph.Pair
Pair.reserveCAD = Pair.reserveUSD * 1.3
self.assertEqual(self.subgraph._schema, expected)
def test_add_synthetic_field_3(self):
expected = SchemaMeta(query_type='Query', type_map={
'Int': TypeMeta.ScalarMeta('Int', ''),
'Float': TypeMeta.ScalarMeta('Float', ''),
'BigInt': TypeMeta.ScalarMeta('BigInt', ''),
'BigDecimal': TypeMeta.ScalarMeta('BigDecimal', ''),
'String': TypeMeta.ScalarMeta('String', ''),
'OrderDirection': TypeMeta.EnumMeta('OrderDirection', '', [
TypeMeta.EnumValueMeta('asc', ''),
TypeMeta.EnumValueMeta('desc', '')
]),
'Query': TypeMeta.ObjectMeta('Query', '', fields=[
TypeMeta.FieldMeta('pairs', '', [
TypeMeta.ArgumentMeta('first', '', TypeRef.Named('Int'), None),
TypeMeta.ArgumentMeta('skip', '', TypeRef.Named('Int'), None),
TypeMeta.ArgumentMeta('where', '', TypeRef.Named('Pair_filter'), None),
TypeMeta.ArgumentMeta('orderBy', '', TypeRef.Named('Pair_orderBy'), None),
TypeMeta.ArgumentMeta('orderDirection', '', TypeRef.Named('OrderDirection'), None),
], TypeRef.non_null_list('Pair')),
TypeMeta.FieldMeta('swaps', '', [
TypeMeta.ArgumentMeta('first', '', TypeRef.Named('Int'), None),
TypeMeta.ArgumentMeta('skip', '', TypeRef.Named('Int'), None),
TypeMeta.ArgumentMeta('where', '', TypeRef.Named('Swap_filter'), None),
TypeMeta.ArgumentMeta('orderBy', '', TypeRef.Named('Swap_orderBy'), None),
TypeMeta.ArgumentMeta('orderDirection', '', TypeRef.Named('OrderDirection'), None),
], TypeRef.non_null_list('Swap')),
]),
'Swap': TypeMeta.ObjectMeta('Swap', '', fields=[
TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String')),
TypeMeta.FieldMeta('timestamp', '', [], TypeRef.Named('BigInt')),
TypeMeta.FieldMeta('amount0In', '', [], TypeRef.Named('BigDecimal')),
TypeMeta.FieldMeta('amount0Out', '', [], TypeRef.Named('BigDecimal')),
TypeMeta.FieldMeta('amount1In', '', [], TypeRef.Named('BigDecimal')),
TypeMeta.FieldMeta('amount1Out', '', [], TypeRef.Named('BigDecimal')),
]),
'Token': TypeMeta.ObjectMeta('Token', '', fields=[
TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String')),
TypeMeta.FieldMeta('name', '', [], TypeRef.Named('String')),
TypeMeta.FieldMeta('symbol', '', [], TypeRef.Named('String')),
TypeMeta.FieldMeta('decimals', '', [], TypeRef.Named('Int')),
]),
'Pair': TypeMeta.ObjectMeta('Pair', '', fields=[
TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String')),
TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token')),
TypeMeta.FieldMeta('token1', '', [], TypeRef.Named('Token')),
TypeMeta.FieldMeta('reserveUSD', '', [], TypeRef.Named('BigDecimal')),
TypeMeta.FieldMeta('priceToken0', '', [], TypeRef.Named('BigDecimal')),
TypeMeta.FieldMeta('priceToken1', '', [], TypeRef.Named('BigDecimal')),
TypeMeta.FieldMeta('createdAtTimestamp', '', [], TypeRef.Named('BigInt')),
TypeMeta.FieldMeta('reserveCAD', '', [], TypeRef.Named('Float')),
TypeMeta.FieldMeta('reserveEUR', '', [], TypeRef.Named('Float')),
]),
'Pair_filter': TypeMeta.InputObjectMeta('Pair_filter', '', [
TypeMeta.ArgumentMeta('id', '', TypeRef.Named('String'), None),
TypeMeta.ArgumentMeta('id_gt', '', TypeRef.Named('String'), None),
TypeMeta.ArgumentMeta('id_lt', '', TypeRef.Named('String'), None),
TypeMeta.ArgumentMeta('token0', '', TypeRef.Named('String'), None),
TypeMeta.ArgumentMeta('token1', '', TypeRef.Named('String'), None),
TypeMeta.ArgumentMeta('reserveUSD_lt', '', TypeRef.Named('BigDecimal'), None),
TypeMeta.ArgumentMeta('reserveUSD_gt', '', TypeRef.Named('BigDecimal'), None),
TypeMeta.ArgumentMeta('priceToken0_lt', '', TypeRef.Named('BigDecimal'), None),
TypeMeta.ArgumentMeta('priceToken0_gt', '', TypeRef.Named('BigDecimal'), None),
TypeMeta.ArgumentMeta('priceToken1_lt', '', TypeRef.Named('BigDecimal'), None),
TypeMeta.ArgumentMeta('priceToken1_gt', '', TypeRef.Named('BigDecimal'), None),
TypeMeta.ArgumentMeta('createdAtTimestamp_lt', '', TypeRef.Named('BigInt'), None),
TypeMeta.ArgumentMeta('createdAtTimestamp_gt', '', TypeRef.Named('BigInt'), None),
]),
'Pair_orderBy': TypeMeta.EnumMeta('Pair_orderBy', '', [
TypeMeta.EnumValueMeta('id', ''),
TypeMeta.EnumValueMeta('reserveUSD', ''),
TypeMeta.EnumValueMeta('createdAtTimestamp', ''),
]),
'Swap_filter': TypeMeta.InputObjectMeta('Swap_filter', '', [
TypeMeta.ArgumentMeta('id', '', TypeRef.Named('String'), None),
TypeMeta.ArgumentMeta('id_gt', '', TypeRef.Named('String'), None),
TypeMeta.ArgumentMeta('id_lt', '', TypeRef.Named('String'), None),
TypeMeta.ArgumentMeta('timestamp', '', TypeRef.Named('BigInt'), None),
TypeMeta.ArgumentMeta('timestamp_gt', '', TypeRef.Named('BigInt'), None),
TypeMeta.ArgumentMeta('timestamp_lt', '', TypeRef.Named('BigInt'), None),
TypeMeta.ArgumentMeta('amount0In', '', TypeRef.Named('BigDecimal'), None),
TypeMeta.ArgumentMeta('amount0Out', '', TypeRef.Named('BigDecimal'), None),
TypeMeta.ArgumentMeta('amount1In', '', TypeRef.Named('BigDecimal'), None),
TypeMeta.ArgumentMeta('amount1Out', '', TypeRef.Named('BigDecimal'), None),
]),
})
Pair = self.subgraph.Pair
Pair.reserveCAD = Pair.reserveUSD * 1.3
Pair.reserveEUR = Pair.reserveCAD * 1.5
self.assertEqual(self.subgraph._schema, expected)
def test_add_synthetic_field_4(self):
expected = SchemaMeta(query_type='Query', type_map={
'Int': TypeMeta.ScalarMeta('Int', ''),
'Float': TypeMeta.ScalarMeta('Float', ''),
'BigInt': TypeMeta.ScalarMeta('BigInt', ''),
'BigDecimal': TypeMeta.ScalarMeta('BigDecimal', ''),
'String': TypeMeta.ScalarMeta('String', ''),
'OrderDirection': TypeMeta.EnumMeta('OrderDirection', '', [
TypeMeta.EnumValueMeta('asc', ''),
TypeMeta.EnumValueMeta('desc', '')
]),
'Query': TypeMeta.ObjectMeta('Query', '', fields=[
TypeMeta.FieldMeta('pairs', '', [
TypeMeta.ArgumentMeta('first', '', TypeRef.Named('Int'), None),
TypeMeta.ArgumentMeta('skip', '', TypeRef.Named('Int'), None),
TypeMeta.ArgumentMeta('where', '', TypeRef.Named('Pair_filter'), None),
TypeMeta.ArgumentMeta('orderBy', '', TypeRef.Named('Pair_orderBy'), None),
TypeMeta.ArgumentMeta('orderDirection', '', TypeRef.Named('OrderDirection'), None),
], TypeRef.non_null_list('Pair')),
TypeMeta.FieldMeta('swaps', '', [
TypeMeta.ArgumentMeta('first', '', TypeRef.Named('Int'), None),
TypeMeta.ArgumentMeta('skip', '', TypeRef.Named('Int'), None),
TypeMeta.ArgumentMeta('where', '', TypeRef.Named('Swap_filter'), None),
TypeMeta.ArgumentMeta('orderBy', '', TypeRef.Named('Swap_orderBy'), None),
TypeMeta.ArgumentMeta('orderDirection', '', TypeRef.Named('OrderDirection'), None),
], TypeRef.non_null_list('Swap')),
]),
'Swap': TypeMeta.ObjectMeta('Swap', '', fields=[
TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String')),
TypeMeta.FieldMeta('timestamp', '', [], TypeRef.Named('BigInt')),
TypeMeta.FieldMeta('amount0In', '', [], TypeRef.Named('BigDecimal')),
TypeMeta.FieldMeta('amount0Out', '', [], TypeRef.Named('BigDecimal')),
TypeMeta.FieldMeta('amount1In', '', [], TypeRef.Named('BigDecimal')),
TypeMeta.FieldMeta('amount1Out', '', [], TypeRef.Named('BigDecimal')),
]),
'Token': TypeMeta.ObjectMeta('Token', '', fields=[
TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String')),
TypeMeta.FieldMeta('name', '', [], TypeRef.Named('String')),
TypeMeta.FieldMeta('symbol', '', [], TypeRef.Named('String')),
TypeMeta.FieldMeta('decimals', '', [], TypeRef.Named('Int')),
]),
'Pair': TypeMeta.ObjectMeta('Pair', '', fields=[
TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String')),
TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token')),
TypeMeta.FieldMeta('token1', '', [], TypeRef.Named('Token')),
TypeMeta.FieldMeta('reserveUSD', '', [], TypeRef.Named('BigDecimal')),
TypeMeta.FieldMeta('priceToken0', '', [], TypeRef.Named('BigDecimal')),
TypeMeta.FieldMeta('priceToken1', '', [], TypeRef.Named('BigDecimal')),
TypeMeta.FieldMeta('createdAtTimestamp', '', [], TypeRef.Named('BigInt')),
TypeMeta.FieldMeta('tokenString', '', [], TypeRef.Named('String')),
]),
'Pair_filter': TypeMeta.InputObjectMeta('Pair_filter', '', [
TypeMeta.ArgumentMeta('id', '', TypeRef.Named('String'), None),
TypeMeta.ArgumentMeta('id_gt', '', TypeRef.Named('String'), None),
TypeMeta.ArgumentMeta('id_lt', '', TypeRef.Named('String'), None),
TypeMeta.ArgumentMeta('token0', '', TypeRef.Named('String'), None),
TypeMeta.ArgumentMeta('token1', '', TypeRef.Named('String'), None),
TypeMeta.ArgumentMeta('reserveUSD_lt', '', TypeRef.Named('BigDecimal'), None),
TypeMeta.ArgumentMeta('reserveUSD_gt', '', TypeRef.Named('BigDecimal'), None),
TypeMeta.ArgumentMeta('priceToken0_lt', '', TypeRef.Named('BigDecimal'), None),
TypeMeta.ArgumentMeta('priceToken0_gt', '', TypeRef.Named('BigDecimal'), None),
TypeMeta.ArgumentMeta('priceToken1_lt', '', TypeRef.Named('BigDecimal'), None),
TypeMeta.ArgumentMeta('priceToken1_gt', '', TypeRef.Named('BigDecimal'), None),
TypeMeta.ArgumentMeta('createdAtTimestamp_lt', '', TypeRef.Named('BigInt'), None),
TypeMeta.ArgumentMeta('createdAtTimestamp_gt', '', TypeRef.Named('BigInt'), None),
]),
'Pair_orderBy': TypeMeta.EnumMeta('Pair_orderBy', '', [
TypeMeta.EnumValueMeta('id', ''),
TypeMeta.EnumValueMeta('reserveUSD', ''),
TypeMeta.EnumValueMeta('createdAtTimestamp', ''),
]),
'Swap_filter': TypeMeta.InputObjectMeta('Swap_filter', '', [
TypeMeta.ArgumentMeta('id', '', TypeRef.Named('String'), None),
TypeMeta.ArgumentMeta('id_gt', '', TypeRef.Named('String'), None),
TypeMeta.ArgumentMeta('id_lt', '', TypeRef.Named('String'), None),
TypeMeta.ArgumentMeta('timestamp', '', TypeRef.Named('BigInt'), None),
TypeMeta.ArgumentMeta('timestamp_gt', '', TypeRef.Named('BigInt'), None),
TypeMeta.ArgumentMeta('timestamp_lt', '', TypeRef.Named('BigInt'), None),
TypeMeta.ArgumentMeta('amount0In', '', TypeRef.Named('BigDecimal'), None),
TypeMeta.ArgumentMeta('amount0Out', '', TypeRef.Named('BigDecimal'), None),
TypeMeta.ArgumentMeta('amount1In', '', TypeRef.Named('BigDecimal'), None),
TypeMeta.ArgumentMeta('amount1Out', '', TypeRef.Named('BigDecimal'), None),
]),
})
Pair = self.subgraph.Pair
Pair.tokenString = Pair.token0.symbol + "_" + Pair.token0.id + "_" + Pair.token1.symbol + "_" + Pair.token1.id
self.assertEqual(self.subgraph._schema, expected)
class TestFieldPath(unittest.TestCase):
def setUp(self):
self.schema = schema()
self.subgraph = Subgraph("", self.schema)
def tearDown(self) -> None:
FieldPath.__test_mode = False
def test_object(self):
object_ = TypeMeta.ObjectMeta('Pair', '', fields=[
TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String')),
TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token')),
TypeMeta.FieldMeta('token1', '', [], TypeRef.Named('Token')),
TypeMeta.FieldMeta('reserveUSD', '', [], TypeRef.Named('BigDecimal')),
TypeMeta.FieldMeta('priceToken0', '', [], TypeRef.Named('BigDecimal')),
TypeMeta.FieldMeta('priceToken1', '', [], TypeRef.Named('BigDecimal')),
TypeMeta.FieldMeta('createdAtTimestamp', '', [], TypeRef.Named('BigInt')),
])
expected = Object(self.subgraph, object_)
Pair = self.subgraph.Pair
FieldPath.__test_mode = True
self.assertEqual(Pair, expected)
def test_field_path_1(self):
expected = FieldPath(
self.subgraph,
TypeMeta.ObjectMeta('Pair', '', fields=[
TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String')),
TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token')),
TypeMeta.FieldMeta('token1', '', [], TypeRef.Named('Token')),
TypeMeta.FieldMeta('reserveUSD', '', [], TypeRef.Named('BigDecimal')),
TypeMeta.FieldMeta('priceToken0', '', [], TypeRef.Named('BigDecimal')),
TypeMeta.FieldMeta('priceToken1', '', [], TypeRef.Named('BigDecimal')),
]),
TypeRef.Named('Token'),
[
(None, TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token'))),
]
)
fpath = self.subgraph.Pair.token0
FieldPath.__test_mode = True
self.assertEqual(fpath, expected)
def test_field_path_2(self):
expected = FieldPath(
self.subgraph,
TypeMeta.ObjectMeta('Pair', '', fields=[
TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String')),
TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token')),
TypeMeta.FieldMeta('token1', '', [], TypeRef.Named('Token')),
TypeMeta.FieldMeta('reserveUSD', '', [], TypeRef.Named('BigDecimal')),
TypeMeta.FieldMeta('priceToken0', '', [], TypeRef.Named('BigDecimal')),
TypeMeta.FieldMeta('priceToken1', '', [], TypeRef.Named('BigDecimal')),
]),
TypeRef.Named('String'),
[
(None, TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String'))),
]
)
fpath = self.subgraph.Pair.id
FieldPath.__test_mode = True
self.assertEqual(fpath, expected)
def test_field_path_3(self):
expected = FieldPath(
self.subgraph,
TypeMeta.ObjectMeta('Pair', '', fields=[
TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String')),
TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token')),
TypeMeta.FieldMeta('token1', '', [], TypeRef.Named('Token')),
TypeMeta.FieldMeta('reserveUSD', '', [], TypeRef.Named('BigDecimal')),
TypeMeta.FieldMeta('priceToken0', '', [], TypeRef.Named('BigDecimal')),
TypeMeta.FieldMeta('priceToken1', '', [], TypeRef.Named('BigDecimal')),
]),
TypeRef.Named('String'),
[
(None, TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token'))),
(None, TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String'))),
]
)
fpath = self.subgraph.Pair.token0.id
FieldPath.__test_mode = True
self.assertEqual(fpath, expected)
def test_synthetic_field_path_1(self):
sfield = SyntheticField(identity, SyntheticField.FLOAT, self.subgraph.Pair.reserveUSD)
expected = FieldPath(
self.subgraph,
TypeMeta.ObjectMeta('Pair', '', fields=[
TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String')),
TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token')),
TypeMeta.FieldMeta('token1', '', [], TypeRef.Named('Token')),
TypeMeta.FieldMeta('reserveUSD', '', [], TypeRef.Named('BigDecimal')),
TypeMeta.FieldMeta('priceToken0', '', [], TypeRef.Named('BigDecimal')),
TypeMeta.FieldMeta('priceToken1', '', [], TypeRef.Named('BigDecimal')),
]),
TypeRef.Named('Float'),
[
(None, TypeMeta.FieldMeta('reserveCAD', '', [], TypeRef.Named('Float'))),
]
)
self.subgraph.Pair.reserveCAD = sfield
fpath = self.subgraph.Pair.reserveCAD
FieldPath.__test_mode = True
self.assertEqual(fpath, expected)
def test_synthetic_field_path_2(self):
sfield = SyntheticField(identity, SyntheticField.STRING, "Le Token")
expected = FieldPath(
self.subgraph,
TypeMeta.ObjectMeta('Token', '', fields=[
TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String')),
TypeMeta.FieldMeta('name', '', [], TypeRef.Named('String')),
TypeMeta.FieldMeta('symbol', '', [], TypeRef.Named('String')),
TypeMeta.FieldMeta('decimals', '', [], TypeRef.Named('Int')),
]),
TypeRef.Named('String'),
[
(None, TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token'))),
(None, TypeMeta.FieldMeta("frenchName", "", [], TypeRef.Named('String'))),
]
)
self.subgraph.Token.frenchName = sfield
fpath = self.subgraph.Pair.token0.frenchName
FieldPath.__test_mode = True
self.assertEqual(fpath, expected)
def test_synthetic_field_path_3(self):
expected = FieldPath(
self.subgraph,
TypeRef.Named('Pair'),
TypeRef.Named('String'),
[
(None, TypeMeta.FieldMeta('token0Id', '', [], TypeRef.Named('String')))
]
)
self.subgraph.Pair.token0Id = self.subgraph.Pair.token0.id
fpath = self.subgraph.Pair.token0Id
FieldPath.__test_mode = True
self.assertEqual(fpath, expected)
def test_filter_1(self):
expected = Filter(
TypeMeta.FieldMeta('reserveUSD', '', [], TypeRef.Named('BigDecimal')),
Filter.Operator.GT,
100
)
filter_ = self.subgraph.Pair.reserveUSD > 100
FieldPath.__test_mode = True
self.assertEqual(filter_, expected)
def test_field_path_args_1(self):
expected = FieldPath(
self.subgraph,
TypeRef.Named("Query"),
TypeRef.non_null_list('Pair'),
[
(
{
'first': 100,
'where': {
'reserveUSD_lt': 10
},
'orderBy': 'reserveUSD',
'orderDirection': 'desc'
},
TypeMeta.FieldMeta('pairs', '', [
TypeMeta.ArgumentMeta('first', '', TypeRef.Named('Int'), None),
TypeMeta.ArgumentMeta('skip', '', TypeRef.Named('Int'), None),
TypeMeta.ArgumentMeta('where', '', TypeRef.Named('Pair_filter'), None),
TypeMeta.ArgumentMeta('orderBy', '', TypeRef.Named('Pair_orderBy'), None),
TypeMeta.ArgumentMeta('orderDirection', '', TypeRef.Named('OrderDirection'), None),
], TypeRef.non_null_list('Pair')),
),
]
)
fpath = self.subgraph.Query.pairs(
first=100,
where={'reserveUSD_lt': 10},
orderBy='reserveUSD',
orderDirection='desc'
)
FieldPath.__test_mode = True
self.assertEqual(fpath, expected)
def test_field_path_args_2(self):
expected = FieldPath(
self.subgraph,
TypeRef.Named("Query"),
TypeRef.non_null_list('Pair'),
[
(
{
'first': 100,
'where': {
'reserveUSD_gt': 100.0,
'token0': 'abcd'
}
},
TypeMeta.FieldMeta('pairs', '', [
TypeMeta.ArgumentMeta('first', '', TypeRef.Named('Int'), None),
TypeMeta.ArgumentMeta('skip', '', TypeRef.Named('Int'), None),
TypeMeta.ArgumentMeta('where', '', TypeRef.Named('Pair_filter'), None),
TypeMeta.ArgumentMeta('orderBy', '', TypeRef.Named('Pair_orderBy'), None),
TypeMeta.ArgumentMeta('orderDirection', '', TypeRef.Named('OrderDirection'), None),
], TypeRef.non_null_list('Pair')),
)
]
)
fpath = self.subgraph.Query.pairs(
first=100,
where=[
self.subgraph.Pair.reserveUSD > 100,
self.subgraph.Pair.token0 == "abcd"
]
)
FieldPath.__test_mode = True
self.assertEqual(fpath, expected)
def test_field_path_args_3(self):
expected = FieldPath(
self.subgraph,
TypeMeta.ObjectMeta('Query', '', fields=[
TypeMeta.FieldMeta('pairs', '', [
TypeMeta.ArgumentMeta('first', '', TypeRef.Named('Int'), None),
TypeMeta.ArgumentMeta('where', '', TypeRef.Named('Pair_filter'), None),
TypeMeta.ArgumentMeta('orderBy', '', TypeRef.Named('Pair_orderBy'), None),
TypeMeta.ArgumentMeta('orderDirection', '', TypeRef.Named('OrderDirection'), None),
], TypeRef.non_null_list('Pair')),
TypeMeta.FieldMeta('swaps', '', [], TypeRef.non_null_list('Swap')),
]),
TypeRef.non_null_list('Pair'),
[
(
{
'first': 100,
'orderBy': 'reserveUSD'
},
# [
# Argument('first', InputValue.Int(100)),
# Argument('orderBy', InputValue.Enum('reserveUSD'))
# ],
TypeMeta.FieldMeta('pairs', '', [
TypeMeta.ArgumentMeta('first', '', TypeRef.Named('Int'), None),
TypeMeta.ArgumentMeta('skip', '', TypeRef.Named('Int'), None),
TypeMeta.ArgumentMeta('where', '', TypeRef.Named('Pair_filter'), None),
TypeMeta.ArgumentMeta('orderBy', '', TypeRef.Named('Pair_orderBy'), None),
TypeMeta.ArgumentMeta('orderDirection', '', TypeRef.Named('OrderDirection'), None),
], TypeRef.non_null_list('Pair')),
),
]
)
fpath = self.subgraph.Query.pairs(
first=100,
orderBy=self.subgraph.Pair.reserveUSD
)
FieldPath.__test_mode = True
self.assertEqual(fpath, expected)
def test_field_path_extend_1(self):
expected = FieldPath(
self.subgraph,
TypeMeta.ObjectMeta('Query', '', fields=[
TypeMeta.FieldMeta('pairs', '', [
TypeMeta.ArgumentMeta('first', '', TypeRef.Named('Int'), None),
TypeMeta.ArgumentMeta('where', '', TypeRef.Named('Pair_filter'), None),
TypeMeta.ArgumentMeta('orderBy', '', TypeRef.Named('Pair_orderBy'), None),
TypeMeta.ArgumentMeta('orderDirection', '', TypeRef.Named('OrderDirection'), None),
], TypeRef.non_null_list('Pair')),
TypeMeta.FieldMeta('swaps', '', [], TypeRef.non_null_list('Swap')),
]),
TypeRef.Named('String'),
[
(
None,
TypeMeta.FieldMeta('pairs', '', [
TypeMeta.ArgumentMeta('first', '', TypeRef.Named('Int'), None),
TypeMeta.ArgumentMeta('skip', '', TypeRef.Named('Int'), None),
TypeMeta.ArgumentMeta('where', '', TypeRef.Named('Pair_filter'), None),
TypeMeta.ArgumentMeta('orderBy', '', TypeRef.Named('Pair_orderBy'), None),
TypeMeta.ArgumentMeta('orderDirection', '', TypeRef.Named('OrderDirection'), None),
], TypeRef.non_null_list('Pair')),
),
(None, TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token'))),
(None, TypeMeta.FieldMeta('symbol', '', [], TypeRef.Named('String'))),
]
)
fpath1 = self.subgraph.Query.pairs
fpath2 = self.subgraph.Pair.token0.symbol
fpath = FieldPath._extend(fpath1, fpath2)
FieldPath.__test_mode = True
self.assertEqual(fpath, expected)
class TestQueryBuilding(unittest.TestCase):
def setUp(self):
self.schema = schema()
self.subgraph = Subgraph("", self.schema)
def tearDown(self) -> None:
SyntheticField.counter = 0
def test_mk_request_1(self):
expected = DataRequest.single_query("", Query(selection=[
Selection(
TypeMeta.FieldMeta('pairs', '', [
TypeMeta.ArgumentMeta('first', '', TypeRef.Named('Int'), None),
TypeMeta.ArgumentMeta('skip', '', TypeRef.Named('Int'), None),
TypeMeta.ArgumentMeta('where', '', TypeRef.Named('Pair_filter'), None),
TypeMeta.ArgumentMeta('orderBy', '', TypeRef.Named('Pair_orderBy'), None),
TypeMeta.ArgumentMeta('orderDirection', '', TypeRef.Named('OrderDirection'), None),
], TypeRef.non_null_list('Pair')),
alias='x7ecb1bc5fd9e0dcf',
arguments=[Argument("first", InputValue.Int(10))],
selection=[
Selection(TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String'))),
Selection(TypeMeta.FieldMeta('token0', '', [], TypeRef.Named('Token')), selection=[
Selection(TypeMeta.FieldMeta('symbol', '', [], TypeRef.Named('String')))
])
]
)
]))
sg = Subgrounds()
pairs = self.subgraph.Query.pairs(first=10)
query = sg.mk_request([
pairs.id,
pairs.token0.symbol
])
FieldPath.__test_mode = True
self.maxDiff = None
self.assertEqual(query, expected)
def test_mk_request_2(self):
expected = DataRequest.single_query("", Query(selection=[
Selection(
TypeMeta.FieldMeta('pairs', '', [
TypeMeta.ArgumentMeta('first', '', TypeRef.Named('Int'), None),
TypeMeta.ArgumentMeta('skip', '', TypeRef.Named('Int'), None),
TypeMeta.ArgumentMeta('where', '', TypeRef.Named('Pair_filter'), None),
TypeMeta.ArgumentMeta('orderBy', '', TypeRef.Named('Pair_orderBy'), None),
TypeMeta.ArgumentMeta('orderDirection', '', TypeRef.Named('OrderDirection'), None),
], TypeRef.non_null_list('Pair')),
alias='x7ecb1bc5fd9e0dcf',
arguments=[
Argument("first", InputValue.Int(10))
],
selection=[
Selection(TypeMeta.FieldMeta('id', '', [], TypeRef.Named('String'))),
Selection(TypeMeta.FieldMeta('token0Id', '', [], TypeRef.Named('String')))
]
)
]))
app = Subgrounds()
Pair = self.subgraph.Pair
Pair.token0Id = Pair.token0.id
pairs = self.subgraph.Query.pairs(first=10)
query = app.mk_request([
pairs.id,
pairs.token0Id
])
FieldPath.__test_mode = True
self.maxDiff = None
self.assertEqual(query, expected)
def test_mk_request_3(self):
expected = DataRequest.single_query("", Query(selection=[
Selection(TypeMeta.FieldMeta('swaps', '', [
TypeMeta.ArgumentMeta('first', '', TypeRef.Named('Int'), None),
TypeMeta.ArgumentMeta('skip', '', TypeRef.Named('Int'), None),
TypeMeta.ArgumentMeta('where', '', TypeRef.Named('Swap_filter'), None),
TypeMeta.ArgumentMeta('orderBy', '', TypeRef.Named('Swap_orderBy'), None),
TypeMeta.ArgumentMeta('orderDirection', '', TypeRef.Named('OrderDirection'), None),
], TypeRef.non_null_list('Swap')), selection=[
Selection(TypeMeta.FieldMeta('timestamp', '', [], TypeRef.Named('BigInt'))),
Selection(TypeMeta.FieldMeta('price', '', [], TypeRef.Named('Float')))
])
]))
app = Subgrounds()
Swap = self.subgraph.Swap
Swap.price = abs(Swap.amount0In - Swap.amount0Out) / abs(Swap.amount1In - Swap.amount1Out)
query = app.mk_request([
self.subgraph.Query.swaps.timestamp,
self.subgraph.Query.swaps.price
])
FieldPath.__test_mode = True
self.maxDiff = None
self.assertEqual(query, expected)
def test_mk_request_4(self):
expected = DataRequest.single_query("", Query(selection=[
Selection(TypeMeta.FieldMeta('swaps', '', [
TypeMeta.ArgumentMeta('first', '', TypeRef.Named('Int'), None),
TypeMeta.ArgumentMeta('skip', '', TypeRef.Named('Int'), None),
TypeMeta.ArgumentMeta('where', '', TypeRef.Named('Swap_filter'), None),
TypeMeta.ArgumentMeta('orderBy', '', TypeRef.Named('Swap_orderBy'), None),
TypeMeta.ArgumentMeta('orderDirection', '', TypeRef.Named('OrderDirection'), None),
], TypeRef.non_null_list('Swap')), selection=[
Selection(TypeMeta.FieldMeta('timestamp', '', [], TypeRef.Named('BigInt'))),
Selection(TypeMeta.FieldMeta('my_value', '', [], TypeRef.Named('Float')))
])
]))
app = Subgrounds()
Swap = self.subgraph.Swap
Swap.my_value = Swap.amount0In / 10 ** Swap.amount0Out
query = app.mk_request([
self.subgraph.Query.swaps.timestamp,
self.subgraph.Query.swaps.my_value
])
FieldPath.__test_mode = True
self.maxDiff = None
self.assertEqual(query, expected)
class TestSyntheticField(unittest.TestCase):
def setUp(self):
self.schema = schema()
self.subgraph = Subgraph("", self.schema)
def tearDown(self) -> None:
SyntheticField.counter = 0
def test_synthetic_field_1(self):
Swap = self.subgraph.Swap
expected_deps = [
Swap.amount0In
]
sfield = SyntheticField(
lambda x: x * 10,
SyntheticField.INT,
Swap.amount0In
)
self.assertEqual(sfield._f(1), 10)
self.assertEqual(sfield._deps, expected_deps)
def test_synthetic_field_2(self):
Swap = self.subgraph.Swap
expected_deps = [
Swap.amount0In,
Swap.amount0Out
]
sfield: SyntheticField = Swap.amount0In - Swap.amount0Out
self.assertEqual(sfield._f(10, 0), 10)
self.assertEqual(sfield._deps, expected_deps)
def test_synthetic_field_3(self):
Swap = self.subgraph.Swap
expected_deps = [
Swap.amount0In,
Swap.amount0Out,
Swap.amount1In,
]
sfield: SyntheticField = Swap.amount0In - Swap.amount0Out + Swap.amount1In
self.assertEqual(sfield._f(10, 0, 4), 14)
self.assertEqual(sfield._deps, expected_deps)
def test_synthetic_field_5(self):
Swap = self.subgraph.Swap
expected_deps = [
Swap.amount0In,
Swap.amount0Out,
Swap.amount1In,
Swap.amount1Out
]
sfield: SyntheticField = abs(Swap.amount0In - Swap.amount0Out) / abs(Swap.amount1In - Swap.amount1Out)
self.assertEqual(sfield._f(10, 0, 0, 20), 0.5)
self.assertEqual(sfield._deps, expected_deps)
def test_synthetic_field_6(self):
Swap = self.subgraph.Swap
expected_deps = [
Swap.amount0In,
Swap.amount0Out,
]
sfield: SyntheticField = Swap.amount0In / 10 ** Swap.amount0Out
self.assertEqual(sfield._f(100, 2), 1)
self.assertEqual(sfield._deps, expected_deps)
| 44.65798
| 114
| 0.617068
| 3,769
| 41,130
| 6.641019
| 0.035553
| 0.152457
| 0.147663
| 0.04155
| 0.945266
| 0.929245
| 0.901159
| 0.898002
| 0.89141
| 0.889453
| 0
| 0.008199
| 0.19346
| 41,130
| 920
| 115
| 44.706522
| 0.74633
| 0.002407
| 0
| 0.783416
| 0
| 0
| 0.154024
| 0.004095
| 0
| 0
| 0
| 0
| 0.037129
| 1
| 0.040842
| false
| 0
| 0.008663
| 0
| 0.054455
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
23374c77d0c53e8cd0970d8413550814181c47e5
| 178
|
py
|
Python
|
libfuturize/test_scripts/py2/stdlib_print_statement.py
|
kojoidrissa/python-future
|
16635ad986ab10a337267f637a8b040a70bc5258
|
[
"MIT"
] | 1
|
2018-01-18T00:46:19.000Z
|
2018-01-18T00:46:19.000Z
|
libfuturize/test_scripts/py2/stdlib_print_statement.py
|
kojoidrissa/python-future
|
16635ad986ab10a337267f637a8b040a70bc5258
|
[
"MIT"
] | null | null | null |
libfuturize/test_scripts/py2/stdlib_print_statement.py
|
kojoidrissa/python-future
|
16635ad986ab10a337267f637a8b040a70bc5258
|
[
"MIT"
] | null | null | null |
from __future__ import absolute_import
from __future__ import print_function
from future import standard_library
from future.builtins import *
import socketserver
print('blah')
| 22.25
| 38
| 0.853933
| 23
| 178
| 6.130435
| 0.478261
| 0.283688
| 0.340426
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.11236
| 178
| 7
| 39
| 25.428571
| 0.892405
| 0
| 0
| 0
| 0
| 0
| 0.022472
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.833333
| 0
| 0.833333
| 0.333333
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
2354dfe977c35dde2eee6c81f5f9663681eaa677
| 18,681
|
py
|
Python
|
venv/lib/python3.8/site-packages/ansible_collections/arista/eos/tests/unit/modules/network/eos/test_eos_ntp_global.py
|
saeedya/docker-ansible
|
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
|
[
"Apache-2.0"
] | null | null | null |
venv/lib/python3.8/site-packages/ansible_collections/arista/eos/tests/unit/modules/network/eos/test_eos_ntp_global.py
|
saeedya/docker-ansible
|
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
|
[
"Apache-2.0"
] | null | null | null |
venv/lib/python3.8/site-packages/ansible_collections/arista/eos/tests/unit/modules/network/eos/test_eos_ntp_global.py
|
saeedya/docker-ansible
|
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
|
[
"Apache-2.0"
] | null | null | null |
#
# (c) 2019, Ansible by Red Hat, inc
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
#
from __future__ import absolute_import, division, print_function
__metaclass__ = type
from ansible_collections.arista.eos.tests.unit.compat.mock import patch
from ansible_collections.arista.eos.plugins.modules import eos_ntp_global
from ansible_collections.arista.eos.tests.unit.modules.utils import (
set_module_args,
)
from .eos_module import TestEosModule, load_fixture
class TestEosNtp_GlobalModule(TestEosModule):
module = eos_ntp_global
def setUp(self):
super(TestEosNtp_GlobalModule, self).setUp()
self.mock_get_resource_connection_config = patch(
"ansible_collections.ansible.netcommon.plugins.module_utils.network.common.rm_base.resource_module_base.get_resource_connection"
)
self.get_resource_connection_config = (
self.mock_get_resource_connection_config.start()
)
self.mock_execute_show_command = patch(
"ansible_collections.arista.eos.plugins.module_utils.network.eos.facts.ntp_global.ntp_global.Ntp_globalFacts.get_config"
)
self.execute_show_command = self.mock_execute_show_command.start()
def tearDown(self):
super(TestEosNtp_GlobalModule, self).tearDown()
self.mock_get_resource_connection_config.stop()
self.mock_execute_show_command.stop()
def load_fixtures(self, commands=None, transport="cli", filename=None):
if filename is None:
filename = "eos_ntp_global_config.cfg"
def load_from_file(*args, **kwargs):
output = load_fixture(filename)
return output
self.execute_show_command.side_effect = load_from_file
def test_eos_ntp_global_merged_idempotent(self):
set_module_args(
dict(
config=dict(
authenticate=dict(enable=True),
authentication_keys=[
dict(
id=2, algorithm="sha1", encryption=7, key="123456"
),
dict(
id=23, algorithm="md5", encryption=7, key="123456"
),
],
local_interface="Ethernet1",
qos_dscp=10,
trusted_key=23,
servers=[
dict(
server="25.1.1.1",
vrf="vrf01",
maxpoll=15,
key_id=2,
),
dict(
server="11.21.1.1",
vrf="vrf01",
minpoll=13,
burst=True,
prefer=True,
),
],
serve=dict(
access_lists=[
dict(
afi="ip",
acls=[dict(acl_name="acl01", direction="in")],
),
dict(
afi="ipv6",
acls=[dict(acl_name="acl02", direction="in")],
),
]
),
)
)
)
self.execute_module(changed=False, commands=[])
def test_eos_ntp_global_replaced_idempotent(self):
set_module_args(
dict(
state="replaced",
config=dict(
authenticate=dict(enable=True),
authentication_keys=[
dict(
id=2, algorithm="sha1", encryption=7, key="123456"
),
dict(
id=23, algorithm="md5", encryption=7, key="123456"
),
],
local_interface="Ethernet1",
qos_dscp=10,
trusted_key=23,
servers=[
dict(
server="25.1.1.1",
vrf="vrf01",
maxpoll=15,
key_id=2,
),
dict(
server="11.21.1.1",
vrf="vrf01",
minpoll=13,
burst=True,
prefer=True,
),
],
serve=dict(
access_lists=[
dict(
afi="ip",
acls=[dict(acl_name="acl01", direction="in")],
),
dict(
afi="ipv6",
acls=[dict(acl_name="acl02", direction="in")],
),
]
),
),
)
)
self.execute_module(changed=False, commands=[])
def test_eos_ntp_global_overridden_idempotent(self):
set_module_args(
dict(
state="overridden",
config=dict(
authenticate=dict(enable=True),
authentication_keys=[
dict(
id=2, algorithm="sha1", encryption=7, key="123456"
),
dict(
id=23, algorithm="md5", encryption=7, key="123456"
),
],
local_interface="Ethernet1",
qos_dscp=10,
trusted_key=23,
servers=[
dict(
server="25.1.1.1",
vrf="vrf01",
maxpoll=15,
key_id=2,
),
dict(
server="11.21.1.1",
vrf="vrf01",
minpoll=13,
burst=True,
prefer=True,
),
],
serve=dict(
access_lists=[
dict(
afi="ip",
acls=[dict(acl_name="acl01", direction="in")],
),
dict(
afi="ipv6",
acls=[dict(acl_name="acl02", direction="in")],
),
]
),
),
)
)
self.execute_module(changed=False, commands=[])
def test_eos_ntp_global_merged(self):
set_module_args(
dict(
config=dict(
authentication_keys=[
dict(
id=4, algorithm="sha1", encryption=0, key="123456"
)
],
qos_dscp=15,
servers=[
dict(server="110.21.1.1", version=3, iburst=True)
],
serve=dict(
access_lists=[
dict(
afi="ip",
acls=[dict(acl_name="acl03", direction="in")],
)
]
),
)
)
)
commands = [
"ntp serve ip access-group acl03 in",
"ntp authentication-key 4 sha1 0 123456",
"ntp server 110.21.1.1 iburst version 3",
"ntp qos dscp 15",
]
self.execute_module(changed=True, commands=sorted(commands))
def test_eos_ntp_global_replaced(self):
set_module_args(
dict(
state="replaced",
config=dict(
authentication_keys=[
dict(
id=4, algorithm="sha1", encryption=0, key="123456"
)
],
qos_dscp=15,
servers=[
dict(server="110.21.1.1", version=3, iburst=True)
],
serve=dict(
access_lists=[
dict(
afi="ip",
acls=[dict(acl_name="acl03", direction="in")],
)
]
),
),
)
)
commands = [
"no ntp serve ip access-group acl01 in",
"no ntp serve ipv6 access-group acl02 in",
"no ntp authentication-key 2 sha1 7 123456",
"no ntp authentication-key 23 md5 7 123456",
"no ntp server vrf vrf01 11.21.1.1 burst minpoll 13 prefer",
"no ntp server vrf vrf01 25.1.1.1 key 2 maxpoll 15",
"no ntp authenticate",
"no ntp local-interface Ethernet1",
"no ntp trusted-key 23",
"ntp serve ip access-group acl03 in",
"ntp authentication-key 4 sha1 0 123456",
"ntp server 110.21.1.1 iburst version 3",
"ntp qos dscp 15",
]
self.execute_module(changed=True, commands=sorted(commands))
def test_eos_ntp_global_overridden(self):
set_module_args(
dict(
state="overridden",
config=dict(
authentication_keys=[
dict(
id=4, algorithm="sha1", encryption=0, key="123456"
)
],
qos_dscp=15,
local_interface="Vlan100",
servers=[
dict(server="110.21.1.1", version=3, iburst=True)
],
serve=dict(
access_lists=[
dict(
afi="ip",
acls=[dict(acl_name="acl03", direction="in")],
)
]
),
),
)
)
commands = [
"no ntp serve ip access-group acl01 in",
"no ntp serve ipv6 access-group acl02 in",
"no ntp authentication-key 2 sha1 7 123456",
"no ntp authentication-key 23 md5 7 123456",
"no ntp server vrf vrf01 11.21.1.1 burst minpoll 13 prefer",
"no ntp server vrf vrf01 25.1.1.1 key 2 maxpoll 15",
"no ntp authenticate",
"no ntp trusted-key 23",
"ntp serve ip access-group acl03 in",
"ntp local-interface Vlan100",
"ntp authentication-key 4 sha1 0 123456",
"ntp server 110.21.1.1 iburst version 3",
"ntp qos dscp 15",
]
self.execute_module(changed=True, commands=sorted(commands))
def test_eos_ntp_global_deleted(self):
set_module_args(dict(state="deleted"))
commands = [
"no ntp serve ip access-group acl01 in",
"no ntp serve ipv6 access-group acl02 in",
"no ntp authentication-key 2 sha1 7 123456",
"no ntp authentication-key 23 md5 7 123456",
"no ntp server vrf vrf01 11.21.1.1 burst minpoll 13 prefer",
"no ntp server vrf vrf01 25.1.1.1 key 2 maxpoll 15",
"no ntp authenticate",
"no ntp local-interface Ethernet1",
"no ntp trusted-key 23",
"no ntp qos dscp 10",
]
self.execute_module(changed=True, commands=sorted(commands))
def test_eos_ntp_global_gathered(self):
set_module_args(dict(state="gathered"))
result = self.execute_module(
changed=False, filename="eos_ntp_global_config.cfg"
)
gathered_list = {
"authenticate": {"enable": True},
"authentication_keys": [
{
"algorithm": "sha1",
"encryption": 7,
"id": 2,
"key": "123456",
},
{
"algorithm": "md5",
"encryption": 7,
"id": 23,
"key": "123456",
},
],
"local_interface": "Ethernet1",
"qos_dscp": 10,
"serve": {
"access_lists": [
{
"acls": [{"acl_name": "acl01", "direction": "in"}],
"afi": "ip",
},
{
"acls": [{"acl_name": "acl02", "direction": "in"}],
"afi": "ipv6",
},
]
},
"servers": [
{
"burst": True,
"minpoll": 13,
"prefer": True,
"server": "11.21.1.1",
"vrf": "vrf01",
},
{
"key_id": 2,
"maxpoll": 15,
"server": "25.1.1.1",
"vrf": "vrf01",
},
],
"trusted_key": "23",
}
self.assertEqual(sorted(gathered_list), sorted(result["gathered"]))
def test_eos_ntp_global_parsed(self):
commands = [
"ntp authentication-key 2 sha1 7 123456",
"ntp authentication-key 23 md5 7 123456",
"ntp trusted-key 23",
"ntp authenticate",
"ntp local-interface Ethernet1",
"ntp qos dscp 10",
"ntp server vrf vrf01 11.21.1.1 prefer burst minpoll 13",
"ntp server vrf vrf01 25.1.1.1 maxpoll 15 key 2",
"ntp serve ip access-group acl01 in",
"ntp serve ipv6 access-group acl02 in",
]
parsed_str = "\n".join(commands)
set_module_args(dict(running_config=parsed_str, state="parsed"))
result = self.execute_module(changed=False)
parsed_list = {
"authenticate": {"enable": True},
"authentication_keys": [
{
"algorithm": "sha1",
"encryption": 7,
"id": 2,
"key": "123456",
},
{
"algorithm": "md5",
"encryption": 7,
"id": 23,
"key": "123456",
},
],
"local_interface": "Ethernet1",
"qos_dscp": 10,
"serve": {
"access_lists": [
{
"acls": [{"acl_name": "acl01", "direction": "in"}],
"afi": "ip",
},
{
"acls": [{"acl_name": "acl02", "direction": "in"}],
"afi": "ipv6",
},
]
},
"servers": [
{
"burst": True,
"minpoll": 13,
"prefer": True,
"server": "11.21.1.1",
"vrf": "vrf01",
},
{
"key_id": 2,
"maxpoll": 15,
"server": "25.1.1.1",
"vrf": "vrf01",
},
],
"trusted_key": "23",
}
self.assertEqual(sorted(parsed_list), sorted(result["parsed"]))
def test_eos_ntp_global_rendered(self):
set_module_args(
dict(
state="rendered",
config=dict(
authenticate=dict(enable=True),
authentication_keys=[
dict(
id=2, algorithm="sha1", encryption=7, key="123456"
),
dict(
id=23, algorithm="md5", encryption=7, key="123456"
),
],
local_interface="Ethernet1",
qos_dscp=10,
trusted_key=23,
servers=[
dict(
server="25.1.1.1",
vrf="vrf01",
maxpoll=15,
key_id=2,
),
dict(
server="11.21.1.1",
vrf="vrf01",
minpoll=13,
burst=True,
prefer=True,
),
],
serve=dict(
access_lists=[
dict(
afi="ip",
acls=[dict(acl_name="acl01", direction="in")],
),
dict(
afi="ipv6",
acls=[dict(acl_name="acl02", direction="in")],
),
]
),
),
)
)
commands = [
"ntp authentication-key 2 sha1 7 123456",
"ntp authentication-key 23 md5 7 123456",
"ntp trusted-key 23",
"ntp authenticate",
"ntp local-interface Ethernet1",
"ntp qos dscp 10",
"ntp server vrf vrf01 11.21.1.1 burst minpoll 13 prefer",
"ntp server vrf vrf01 25.1.1.1 key 2 maxpoll 15",
"ntp serve ip access-group acl01 in",
"ntp serve ipv6 access-group acl02 in",
]
result = self.execute_module(changed=False)
self.assertEqual(
sorted(result["rendered"]), sorted(commands), result["rendered"]
)
| 36.486328
| 140
| 0.384508
| 1,526
| 18,681
| 4.563565
| 0.110092
| 0.0112
| 0.009765
| 0.017231
| 0.834291
| 0.797243
| 0.741671
| 0.716111
| 0.712952
| 0.692849
| 0
| 0.074897
| 0.518281
| 18,681
| 511
| 141
| 36.55773
| 0.698967
| 0.006638
| 0
| 0.731959
| 0
| 0.002062
| 0.186826
| 0.015847
| 0
| 0
| 0
| 0
| 0.006186
| 1
| 0.028866
| false
| 0
| 0.010309
| 0
| 0.045361
| 0.002062
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
0006a8bcfe1c3c95ea3015edd11b5265e83a1d1f
| 6,313
|
py
|
Python
|
lib/bald/tests/integration/test_ogc_conformance.py
|
adamml/bald
|
3f0502f4fd3f0a7f6b259bd89f6b2e1787bf3ac0
|
[
"BSD-3-Clause"
] | 10
|
2016-11-09T12:24:25.000Z
|
2022-03-22T18:55:23.000Z
|
lib/bald/tests/integration/test_ogc_conformance.py
|
charlesvardeman/bald
|
8828182ff736f5692e2530bc8a34760e7c32ac89
|
[
"BSD-3-Clause"
] | 53
|
2016-05-06T21:34:02.000Z
|
2021-05-04T23:25:24.000Z
|
lib/bald/tests/integration/test_ogc_conformance.py
|
adamml/bald
|
3f0502f4fd3f0a7f6b259bd89f6b2e1787bf3ac0
|
[
"BSD-3-Clause"
] | 12
|
2016-05-05T06:21:03.000Z
|
2021-06-09T20:18:22.000Z
|
import os
import subprocess
import unittest
import netCDF4
import numpy as np
import requests
import bald
from bald.tests import BaldTestCase
OGCFiles = ('https://raw.githubusercontent.com/opengeospatial/netcdf-ld/'
'master/standard/abstract_tests/')
class Test(BaldTestCase):
def setUp(self):
self.cdl_path = os.path.join(os.path.dirname(__file__), 'CDL')
self.ttl_path = os.path.join(os.path.dirname(__file__), 'TTL')
self.maxDiff = None
def test_conformance_a(self):
with self.temp_filename('.nc') as tfile:
cdlname = 'ogcClassA.cdl'
cdl_file = os.path.join(self.cdl_path, cdlname)
with open(cdl_file, 'w') as cdlf:
cdluri = '{}CDL/ogcClassA.cdl'.format(OGCFiles)
r = requests.get(cdluri)
if r.status_code != 200:
raise ValueError('CDL download failed for {}'.format(cdluri))
cdlf.write(r.text)
subprocess.check_call(['ncgen', '-o', tfile, cdl_file])
cdl_file_uri = 'http://secret.binary-array-ld.net/identity.nc'
root_container = bald.load_netcdf(tfile, baseuri=cdl_file_uri, cache=self.acache)
ttl = root_container.rdfgraph().serialize(format='n3').decode("utf-8")
ttl_file = os.path.join(self.ttl_path, 'ogcClassA.ttl')
with open(ttl_file, 'w') as ttlf:
ttluri = '{}TTL/ogcClassA.ttl'.format(OGCFiles)
r = requests.get(ttluri)
if r.status_code != 200:
raise ValueError('TTL download failed for {}'.format(ttluri))
ttlf.write(r.text)
with open(ttl_file, 'r') as sf:
expected_ttl = sf.read()
os.remove(ttl_file)
os.remove(cdl_file)
self.assertEqual(expected_ttl, ttl)
def test_conformance_b(self):
with self.temp_filename('.nc') as tfile:
cdlname = 'ogcClassB.cdl'
cdl_file = os.path.join(self.cdl_path, cdlname)
with open(cdl_file, 'w') as cdlf:
cdluri = '{}CDL/ogcClassB.cdl'.format(OGCFiles)
r = requests.get(cdluri)
if r.status_code != 200:
raise ValueError('CDL download failed for {}'.format(cdluri))
cdlf.write(r.text)
subprocess.check_call(['ncgen', '-o', tfile, cdl_file])
cdl_file_uri = 'http://secret.binary-array-ld.net/prefix.nc'
root_container = bald.load_netcdf(tfile, baseuri=cdl_file_uri, cache=self.acache)
ttl = root_container.rdfgraph().serialize(format='n3').decode("utf-8")
ttl_file = os.path.join(self.ttl_path, 'ogcClassA.ttl')
with open(ttl_file, 'w') as ttlf:
ttluri = '{}TTL/ogcClassB.ttl'.format(OGCFiles)
r = requests.get(ttluri)
if r.status_code != 200:
raise ValueError('TTL download failed for {}'.format(ttluri))
ttlf.write(r.text)
with open(ttl_file, 'r') as sf:
expected_ttl = sf.read()
os.remove(ttl_file)
os.remove(cdl_file)
self.assertEqual(expected_ttl, ttl)
def test_conformance_c(self):
with self.temp_filename('.nc') as tfile:
cdlname = 'ogcClassC.cdl'
cdl_file = os.path.join(self.cdl_path, cdlname)
with open(cdl_file, 'w') as cdlf:
cdluri = '{}CDL/ogcClassC.cdl'.format(OGCFiles)
r = requests.get(cdluri)
if r.status_code != 200:
raise ValueError('CDL download failed for {}'.format(cdluri))
cdlf.write(r.text)
subprocess.check_call(['ncgen', '-o', tfile, cdl_file])
cdl_file_uri = 'http://secret.binary-array-ld.net/alias.nc'
alias_dict = {'NetCDF': 'http://def.scitools.org.uk/NetCDF'}
root_container = bald.load_netcdf(tfile, baseuri=cdl_file_uri,
alias_dict=alias_dict, cache=self.acache)
ttl = root_container.rdfgraph().serialize(format='n3').decode("utf-8")
ttl_file = os.path.join(self.ttl_path, 'ogcClassA.ttl')
with open(ttl_file, 'w') as ttlf:
ttluri = '{}TTL/ogcClassC.ttl'.format(OGCFiles)
r = requests.get(ttluri)
if r.status_code != 200:
raise ValueError('TTL download failed for {}'.format(ttluri))
ttlf.write(r.text)
with open(ttl_file, 'r') as sf:
expected_ttl = sf.read()
os.remove(ttl_file)
os.remove(cdl_file)
self.assertEqual(expected_ttl, ttl)
def test_conformance_d(self):
with self.temp_filename('.nc') as tfile:
cdlname = 'ogcClassD.cdl'
cdl_file = os.path.join(self.cdl_path, cdlname)
with open(cdl_file, 'w') as cdlf:
cdluri = '{}CDL/ogcClassD.cdl'.format(OGCFiles)
r = requests.get(cdluri)
if r.status_code != 200:
raise ValueError('CDL download failed for {}'.format(cdluri))
cdlf.write(r.text)
subprocess.check_call(['ncgen', '-o', tfile, cdl_file])
cdl_file_uri = 'http://secret.binary-array-ld.net/attributes.nc'
alias_dict = {'NetCDF': 'http://def.scitools.org.uk/NetCDF'}
root_container = bald.load_netcdf(tfile, baseuri=cdl_file_uri,
alias_dict=alias_dict, cache=self.acache)
ttl = root_container.rdfgraph().serialize(format='n3').decode("utf-8")
ttl_file = os.path.join(self.ttl_path, 'ogcClassA.ttl')
with open(ttl_file, 'w') as ttlf:
ttluri = '{}TTL/ogcClassD.ttl'.format(OGCFiles)
r = requests.get(ttluri)
if r.status_code != 200:
raise ValueError('TTL download failed for {}'.format(ttluri))
ttlf.write(r.text)
with open(ttl_file, 'r') as sf:
expected_ttl = sf.read()
os.remove(ttl_file)
os.remove(cdl_file)
self.assertEqual(expected_ttl, ttl)
| 47.825758
| 93
| 0.561381
| 762
| 6,313
| 4.497375
| 0.14042
| 0.049022
| 0.02918
| 0.032682
| 0.87365
| 0.87365
| 0.87365
| 0.87365
| 0.855559
| 0.808871
| 0
| 0.007618
| 0.313797
| 6,313
| 131
| 94
| 48.19084
| 0.783472
| 0
| 0
| 0.715447
| 0
| 0
| 0.141771
| 0.004911
| 0
| 0
| 0
| 0
| 0.03252
| 1
| 0.04065
| false
| 0
| 0.065041
| 0
| 0.113821
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
0028ce7c4b62cd8abe99e963baf595c3e19510fa
| 14,211
|
py
|
Python
|
chess-ai-master/game/pieces.py
|
explodicus/intelliSah
|
acbec81a58292b788e2c7c0c7ea1ea04572a072f
|
[
"MIT"
] | null | null | null |
chess-ai-master/game/pieces.py
|
explodicus/intelliSah
|
acbec81a58292b788e2c7c0c7ea1ea04572a072f
|
[
"MIT"
] | null | null | null |
chess-ai-master/game/pieces.py
|
explodicus/intelliSah
|
acbec81a58292b788e2c7c0c7ea1ea04572a072f
|
[
"MIT"
] | null | null | null |
import itertools
from rules import RulesEnforcer
"""
Movement behavior for each of the different pieces.
"""
class Pawn(object):
"""
Movement behavior for this piece
Note that the pawn is able to take pieces that are across from it, so we will need to scan
the board for diagonally adjacent pieces to identify piece taking opportunities
"""
@staticmethod
def moves(cords, color, chessboard = None):
"""
takes as input the coordinate and color of the piece, outputs the possible moves
Pawns can attack adjacent diagonals
"""
if not chessboard:
if color == 'w':
if int(cords[1]) == 2:
#if the pawn is at the starting position then it can move either one or two squares
pos_moves = [[cords[0], int(cords[1]) + 1], [cords[0], int(cords[1]) + 2]]
else:
pos_moves = [[cords[0], int(cords[1]) + 1]]
if color == 'b':
if int(cords[1]) == 7:
pos_moves = [[cords[0], int(cords[1]) - 1], [cords[0], int(cords[1]) - 2]]
else:
pos_moves = [[cords[0], int(cords[1]) - 1]]
obstructed = False
if chessboard:
pos_moves = []
if color == 'w':
move1 = [cords[0], int(cords[1]) + 1]
if RulesEnforcer.collision_detection(move1, color, chessboard) not in ["friend","enemy"]:
pos_moves.append(move1)
else:
obstructed = True
if int(cords[1]) == 2 and obstructed == False:
move2 = [cords[0], int(cords[1]) + 2]
if RulesEnforcer.collision_detection(move2, color, chessboard) not in ["friend","enemy"]:
pos_moves.append(move2)
if color == 'b':
move1 = [cords[0], int(cords[1]) - 1]
if RulesEnforcer.collision_detection(move1, color, chessboard) not in ["friend","enemy"]:
pos_moves.append(move1)
else:
obstructed = True
if int(cords[1]) == 7 and obstructed == False:
move2 = [cords[0], int(cords[1]) - 2]
if RulesEnforcer.collision_detection(move2, color, chessboard) not in ["friend","enemy"]:
pos_moves.append(move2)
#check adjacent diagonals for piece taking opportunities
if chessboard:
board_cords = RulesEnforcer.coordinate_mapper(cords)
if color == 'w':
#check diagonal left
if board_cords[0] > 0 and board_cords[1] > 0:
row = board_cords[0] - 1
column = board_cords[1] - 1
square = chessboard[row][column]
if square.split('-')[0] == 'b':
final_cord = RulesEnforcer.coordinate_mapper_reverse([row,column])
pos_moves.append([final_cord[0],int(final_cord[1])])
#check diagonal right
if board_cords[0] > 0 and board_cords[1] < 7:
row = board_cords[0] - 1
column = board_cords[1] + 1
square = chessboard[row][column]
if square.split('-')[0] == 'b':
final_cord = RulesEnforcer.coordinate_mapper_reverse([row,column])
pos_moves.append([final_cord[0],int(final_cord[1])])
if color == 'b':
#check diagonal left
if board_cords[0] < 7 and board_cords[1] > 0:
row = board_cords[0] + 1
column = board_cords[1] - 1
square = chessboard[row][column]
if square.split('-')[0] == 'w':
final_cord = RulesEnforcer.coordinate_mapper_reverse([row,column])
pos_moves.append([final_cord[0],int(final_cord[1])])
#check diagonal right
if board_cords[0] < 7 and board_cords[1] < 7:
row = board_cords[0] + 1
column = board_cords[1] + 1
square = chessboard[row][column]
if square.split('-')[0] == 'w':
final_cord = RulesEnforcer.coordinate_mapper_reverse([row,column])
pos_moves.append([final_cord[0],int(final_cord[1])])
pos_moves = RulesEnforcer.remove_outofbound_moves(pos_moves)
return pos_moves
class Rook(object):
"""
Movement behavior for this piece
The rook can move horizontally and vertically
"""
@staticmethod
def moves(cords, color, chessboard = None):
pos_moves = []
x = cords[0] #g
y = int(cords[1]) #5
x_new = ord(cords[0]) #g
y_new = int(cords[1]) #5
#while x is between 'a' and 'h' and..
while x_new >= 97 and x_new <= 104 and y_new >= 1 and y_new <= 8:
x_new = x_new + 1
move = [chr(x_new), y_new]
if chessboard:
if RulesEnforcer.collision_detection(move, color, chessboard) == "friend":
break
elif RulesEnforcer.collision_detection(move, color, chessboard) == "enemy":
pos_moves.append(move)
break
else:
pass
pos_moves.append(move)
x_new = ord(cords[0]) #g
y_new = int(cords[1]) #5
while x_new >= 97 and x_new <= 104 and y_new >= 1 and y_new <= 8:
x_new = x_new - 1
move = [chr(x_new), y_new]
if chessboard:
if RulesEnforcer.collision_detection(move, color, chessboard) == "friend":
break
elif RulesEnforcer.collision_detection(move, color, chessboard) == "enemy":
pos_moves.append(move)
break
else:
pass
pos_moves.append(move)
x_new = ord(cords[0]) #g
y_new = int(cords[1]) #5
while x_new >= 97 and x_new <= 104 and y_new >= 1 and y_new <= 8:
y_new = y_new - 1
move = [chr(x_new), y_new]
if chessboard:
if RulesEnforcer.collision_detection(move, color, chessboard) == "friend":
break
elif RulesEnforcer.collision_detection(move, color, chessboard) == "enemy":
pos_moves.append(move)
break
else:
pass
pos_moves.append(move)
x_new = ord(cords[0]) #g
y_new = int(cords[1]) #5
while x_new >= 97 and x_new <= 104 and y_new >= 1 and y_new <= 8:
y_new = y_new + 1
move = [chr(x_new), y_new]
if chessboard:
if RulesEnforcer.collision_detection(move, color, chessboard) == "friend":
break
elif RulesEnforcer.collision_detection(move, color, chessboard) == "enemy":
pos_moves.append(move)
break
else:
pass
pos_moves.append(move)
pos_moves = RulesEnforcer.remove_outofbound_moves(pos_moves)
return pos_moves
class Knight(object):
"""
Movement behavior for this piece
The knight moves in an L shape
"""
@staticmethod
def moves(cords, color, chessboard = None):
"""
takes as input the coordinate and color of the piece, outputs the possible moves
"""
pos_hor1 = [chr(ord(cords[0]) + 1), chr(ord(cords[0]) - 1)]
pos_hor2 = [chr(ord(cords[0]) + 2), chr(ord(cords[0]) - 2)]
pos_ver1 = [int(cords[1]) + 1, int(cords[1]) - 1]
pos_ver2 = [int(cords[1]) + 2, int(cords[1]) - 2]
pos_moves1 = list(itertools.product(pos_hor1, pos_ver2))
pos_moves2 = list(itertools.product(pos_hor2, pos_ver1))
pos_moves = pos_moves1 + pos_moves2
pos_moves = [list(i) for i in pos_moves]
pos_moves = RulesEnforcer.remove_outofbound_moves(pos_moves)
#If chessboard exists, then run collision detection
if chessboard:
for i in range(len(pos_moves)):
move = pos_moves[i]
if RulesEnforcer.collision_detection(move, color, chessboard) == "friend":
pos_moves[i] = 'remove'
while 'remove' in pos_moves:
pos_moves.remove('remove')
return pos_moves
class Bishop(object):
"""Movement behavior for this piece"""
@staticmethod
def moves(cords, color, chessboard = None):
pos_moves = []
x = cords[0] #g
y = int(cords[1]) #5
x_new = ord(cords[0]) #g
y_new = int(cords[1]) #5
#while x is between 'a' and 'h' and..
while x_new >= 97 and x_new <= 104 and y_new >= 1 and y_new <= 8:
x_new = x_new + 1
y_new = y_new + 1
move = [chr(x_new), y_new]
if chessboard:
if RulesEnforcer.collision_detection(move, color, chessboard) == "friend":
break
elif RulesEnforcer.collision_detection(move, color, chessboard) == "enemy":
pos_moves.append(move)
break
else:
pass
pos_moves.append(move)
x_new = ord(cords[0]) #g
y_new = int(cords[1]) #5
while x_new >= 97 and x_new <= 104 and y_new >= 1 and y_new <= 8:
x_new = x_new - 1
y_new = y_new - 1
move = [chr(x_new), y_new]
if chessboard:
if RulesEnforcer.collision_detection(move, color, chessboard) == "friend":
break
elif RulesEnforcer.collision_detection(move, color, chessboard) == "enemy":
pos_moves.append(move)
break
else:
pass
pos_moves.append(move)
x_new = ord(cords[0]) #g
y_new = int(cords[1]) #5
while x_new >= 97 and x_new <= 104 and y_new >= 1 and y_new <= 8:
x_new = x_new + 1
y_new = y_new - 1
move = [chr(x_new), y_new]
if chessboard:
if RulesEnforcer.collision_detection(move, color, chessboard) == "friend":
break
elif RulesEnforcer.collision_detection(move, color, chessboard) == "enemy":
pos_moves.append(move)
break
else:
pass
pos_moves.append(move)
x_new = ord(cords[0]) #g
y_new = int(cords[1]) #5
while x_new >= 97 and x_new <= 104 and y_new >= 1 and y_new <= 8:
x_new = x_new - 1
y_new = y_new + 1
move = [chr(x_new), y_new]
if chessboard:
if RulesEnforcer.collision_detection(move, color, chessboard) == "friend":
break
elif RulesEnforcer.collision_detection(move, color, chessboard) == "enemy":
pos_moves.append(move)
break
else:
pass
pos_moves.append(move)
pos_moves = RulesEnforcer.remove_outofbound_moves(pos_moves)
return pos_moves
class Queen(object):
"""Movement behavior for this piece
Should be a combination of the bishop and the rook, so we should be able to combine those two movements
"""
@staticmethod
def moves(cords, color, chessboard = None):
pos_moves_verthor = Rook.moves(cords,color,chessboard)
pos_moves_diag = Bishop.moves(cords,color,chessboard)
pos_moves = pos_moves_verthor + pos_moves_diag
pos_moves = RulesEnforcer.remove_outofbound_moves(pos_moves)
return pos_moves
class King(object):
"""Movement behavior for the King.
The king is a special piece because there is the concept of "check."
If the king is under check, then something has to be done to move the king out of check.
The state of "check" will be stored here so that we can incorporate this logic.
Also, another nuance is that the king cannot move somewhere where he can be attacked or in "check"
So we need to incorporate logic to account for this as well
"""
def __init__(self, color):
self.color = color
self.check = False
@staticmethod
def moves(cords, color, chessboard = None):
x = cords[0] #g
y = int(cords[1]) #5
pos_moves = []
x_new = ord(cords[0]) #g
y_new = int(cords[1]) #5
#8 possible locations where the king can move
pos_moves.append([chr(x_new + 1), y_new])
pos_moves.append([chr(x_new - 1), y_new])
pos_moves.append([chr(x_new), y_new + 1])
pos_moves.append([chr(x_new), y_new - 1])
pos_moves.append([chr(x_new + 1), y_new + 1])
pos_moves.append([chr(x_new + 1), y_new - 1])
pos_moves.append([chr(x_new - 1), y_new + 1])
pos_moves.append([chr(x_new - 1), y_new - 1])
pos_moves = RulesEnforcer.remove_outofbound_moves(pos_moves)
#If chessboard exists, then run collision detection
if chessboard:
for i in range(len(pos_moves)):
move = pos_moves[i]
if RulesEnforcer.collision_detection(move, color, chessboard) == "friend":
pos_moves[i] = 'remove'
while 'remove' in pos_moves:
pos_moves.remove('remove')
return pos_moves
| 36.72093
| 109
| 0.512138
| 1,680
| 14,211
| 4.169048
| 0.105952
| 0.086808
| 0.063963
| 0.089949
| 0.803684
| 0.790834
| 0.766848
| 0.74486
| 0.74486
| 0.73044
| 0
| 0.027506
| 0.388572
| 14,211
| 387
| 110
| 36.72093
| 0.778571
| 0.115122
| 0
| 0.812261
| 0
| 0
| 0.015777
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.02682
| false
| 0.030651
| 0.007663
| 0
| 0.08046
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
004f746d927ad07f90f2fad8873294f50ec9b146
| 122
|
py
|
Python
|
etl_e2e/census_etl/ctools/tests/pdf_tools_test.py
|
thinkmoore/das
|
d9faabf3de987b890a5079b914f5aba597215b14
|
[
"CC0-1.0"
] | 35
|
2019-04-16T19:37:01.000Z
|
2022-02-14T20:33:41.000Z
|
etl_e2e/census_etl/ctools/tests/pdf_tools_test.py
|
thinkmoore/das
|
d9faabf3de987b890a5079b914f5aba597215b14
|
[
"CC0-1.0"
] | 7
|
2019-12-11T16:46:43.000Z
|
2020-08-20T00:49:11.000Z
|
etl_e2e/census_etl/ctools/tests/pdf_tools_test.py
|
thinkmoore/das
|
d9faabf3de987b890a5079b914f5aba597215b14
|
[
"CC0-1.0"
] | 12
|
2019-05-02T19:38:06.000Z
|
2021-09-11T22:02:03.000Z
|
import py.test
# Test converting a .doc to a .pdf
# Test converting a .docx to a .pdf
# Test converting a .rtf to a .pdf
| 20.333333
| 35
| 0.696721
| 24
| 122
| 3.541667
| 0.416667
| 0.494118
| 0.529412
| 0.235294
| 0.494118
| 0.494118
| 0
| 0
| 0
| 0
| 0
| 0
| 0.221311
| 122
| 5
| 36
| 24.4
| 0.894737
| 0.811475
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 9
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.