hexsha
stringlengths 40
40
| size
int64 5
1.05M
| ext
stringclasses 98
values | lang
stringclasses 21
values | max_stars_repo_path
stringlengths 3
945
| max_stars_repo_name
stringlengths 4
118
| max_stars_repo_head_hexsha
stringlengths 40
78
| max_stars_repo_licenses
listlengths 1
10
| max_stars_count
int64 1
368k
⌀ | max_stars_repo_stars_event_min_datetime
stringlengths 24
24
⌀ | max_stars_repo_stars_event_max_datetime
stringlengths 24
24
⌀ | max_issues_repo_path
stringlengths 3
945
| max_issues_repo_name
stringlengths 4
118
| max_issues_repo_head_hexsha
stringlengths 40
78
| max_issues_repo_licenses
listlengths 1
10
| max_issues_count
int64 1
134k
⌀ | max_issues_repo_issues_event_min_datetime
stringlengths 24
24
⌀ | max_issues_repo_issues_event_max_datetime
stringlengths 24
24
⌀ | max_forks_repo_path
stringlengths 3
945
| max_forks_repo_name
stringlengths 4
135
| max_forks_repo_head_hexsha
stringlengths 40
78
| max_forks_repo_licenses
listlengths 1
10
| max_forks_count
int64 1
105k
⌀ | max_forks_repo_forks_event_min_datetime
stringlengths 24
24
⌀ | max_forks_repo_forks_event_max_datetime
stringlengths 24
24
⌀ | content
stringlengths 5
1.05M
| avg_line_length
float64 1
1.03M
| max_line_length
int64 2
1.03M
| alphanum_fraction
float64 0
1
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9d6be5e2c7e0c9150880a5f6e789623e43821e0a
| 1,169
|
swift
|
Swift
|
EncomiendasUy/ConsultaController.swift
|
vmseba/EncomiendasUY
|
7286d8ff368e32bc8a7a964e5b304f7d4c2b4fdd
|
[
"MIT"
] | null | null | null |
EncomiendasUy/ConsultaController.swift
|
vmseba/EncomiendasUY
|
7286d8ff368e32bc8a7a964e5b304f7d4c2b4fdd
|
[
"MIT"
] | null | null | null |
EncomiendasUy/ConsultaController.swift
|
vmseba/EncomiendasUY
|
7286d8ff368e32bc8a7a964e5b304f7d4c2b4fdd
|
[
"MIT"
] | null | null | null |
//
// ConsultaController.swift
// EncomiendasUy
//
// Created by Sebastián Negreira on 31/12/14.
// Copyright (c) 2014 Sebastián Negreira. All rights reserved.
//
import UIKit
import Alamofire
import SwiftyJSON
class ConsultaController: UITableViewController {
@IBOutlet weak var documento: UITextField!
@IBOutlet weak var fecha: UITextField!
override func viewDidLoad() {
super.viewDidLoad()
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
@IBAction func consultar(sender: AnyObject) {
println("consultar mis compras, ci: \(documento.text) para el anio: \(fecha.text)")
performSegueWithIdentifier("listadoCompras", sender: sender)
}
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
println("preparando para segue...")
let listadoCompras = segue.destinationViewController as MisComprasController
listadoCompras.documento = documento.text
listadoCompras.fecha = fecha.text
}
}
| 24.87234
| 91
| 0.668948
|
33124f8430b787d1c89051abe45a2a0e13187b5a
| 976
|
html
|
HTML
|
src/dashboard/templates/staff/unpublished_courses.html
|
cbsBiram/xarala__ssr
|
863e1362c786daa752b942b796f7a015211d2f1b
|
[
"FSFAP"
] | null | null | null |
src/dashboard/templates/staff/unpublished_courses.html
|
cbsBiram/xarala__ssr
|
863e1362c786daa752b942b796f7a015211d2f1b
|
[
"FSFAP"
] | null | null | null |
src/dashboard/templates/staff/unpublished_courses.html
|
cbsBiram/xarala__ssr
|
863e1362c786daa752b942b796f7a015211d2f1b
|
[
"FSFAP"
] | null | null | null |
{% extends "_dashboard_base.html" %}
{% load static %}
{% load crispy_forms_tags %}
{% block title %} {{ title }} {% endblock title %}
{% block sidebar %}
{% include "partials/_staff_sidebar.html" %}
{% endblock sidebar %}
{% block content %}
<div class="row">
<div class="col-lg-12">
{% include "partials/_courses_table.html" with courses=courses %}
</div>
</div>
{% endblock %}
{% block extrajs %}
<script>
$(document).ready(function () {
$(document).on("click", ".publish_course_btn", function () {
console.log("clicked")
var url = $(this).attr("data-url")
var courseId = $(this).attr("data-course-id")
$.ajax({
type: "POST",
url: url,
data: {
'course_id': courseId,
csrfmiddlewaretoken: '{{ csrf_token }}'
},
dataType: "json",
success: function (response) {
alert("cours publie")
}
});
})
});
</script>
{% endblock extrajs %}
| 20.333333
| 69
| 0.550205
|
02aa9fbddd18b0f443fd9499e88de2f5ab907888
| 198
|
hh
|
C++
|
Include/Zion/Main.hh
|
zionmultiplayer/Client
|
291c027c4011cb1ab207c9b394fb5f4b1da8652c
|
[
"MIT"
] | 4
|
2022-02-08T07:04:49.000Z
|
2022-02-09T23:43:49.000Z
|
Include/Zion/Main.hh
|
zionmultiplayer/Client
|
291c027c4011cb1ab207c9b394fb5f4b1da8652c
|
[
"MIT"
] | null | null | null |
Include/Zion/Main.hh
|
zionmultiplayer/Client
|
291c027c4011cb1ab207c9b394fb5f4b1da8652c
|
[
"MIT"
] | null | null | null |
#pragma once
#include "Game/CPad.h"
#include "Game/CPlayerPed.h"
namespace Zion
{
class Main
{
public:
static CPlayerPed *player;
static CPad *pad;
};
};
| 15.230769
| 38
| 0.560606
|
fd7102850ba06fe0c2e9e97fee0d17aa15d620d6
| 2,275
|
kt
|
Kotlin
|
code/codegen/src/main/kotlin/com/android/gradle/replicator/resgen/util/ValueGenerator.kt
|
android/project-replicator
|
bcfb5bf02891782e6a55875d93027bdd4e41c348
|
[
"Apache-2.0"
] | 74
|
2020-07-22T06:42:34.000Z
|
2022-03-09T13:27:31.000Z
|
code/codegen/src/main/kotlin/com/android/gradle/replicator/resgen/util/ValueGenerator.kt
|
android/project-replicator
|
bcfb5bf02891782e6a55875d93027bdd4e41c348
|
[
"Apache-2.0"
] | 2
|
2020-10-07T12:32:47.000Z
|
2020-12-08T23:31:06.000Z
|
code/codegen/src/main/kotlin/com/android/gradle/replicator/resgen/util/ValueGenerator.kt
|
android/project-replicator
|
bcfb5bf02891782e6a55875d93027bdd4e41c348
|
[
"Apache-2.0"
] | 23
|
2020-08-05T14:19:58.000Z
|
2022-03-16T13:44:41.000Z
|
/*
* Copyright (C) 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package com.android.gradle.replicator.resgen.util
import kotlin.math.abs
import kotlin.math.ceil
import kotlin.random.Random
private val words = listOf (
"pizza",
"party",
"cool",
"delivery",
"awesome",
"nice",
"constable",
"writer",
"wire",
"android",
"face",
"pie",
"cookie",
"etc.",
"the",
"name",
"max",
"min",
"chocolate",
"vanilla",
"strawberry"
)
fun genString(maxWordCount: Int, separator: String, random: Random): String {
val stringValue = mutableListOf<String>()
repeat(random.nextInt(1, maxWordCount + 1)) {
stringValue.add(words.get(random.nextInt(words.size)))
}
return stringValue.joinToString(separator)
}
// TODO: Make name based on count rather than random
fun genName(random: Random): String {
return genString(3, "_", random)
}
fun genHex(numberOfDigits: Int, random: Random): String {
val toHex = { byte: Byte -> "%02x".format(abs(byte.toInt())) }
// Note: Bytes are 2 hex digits, ex: 9 = 09, 255 = FF, etc.
return random.nextBytes(ceil(numberOfDigits / 2.0).toInt())
.joinToString("") { byte -> toHex(byte) }
.substring(0, numberOfDigits) // Trim if odd number of hex requested
}
fun genFileNameCharacters(count: Int, minFileNameCharacters: Int = 3): String {
var current = count
var characters = ""
while (current > 0 || characters.length < minFileNameCharacters) {
characters = 'a' + (current % 26) + characters
current /= 26
}
return "_$characters"
}
| 28.797468
| 80
| 0.63033
|
58da4b807994f6c760e5740063e386b13f83eff4
| 495
|
css
|
CSS
|
assets/style.css
|
Brianna1915403/iot-dashboard
|
76b1fc49a173485efe67d273304300820510346f
|
[
"MIT"
] | null | null | null |
assets/style.css
|
Brianna1915403/iot-dashboard
|
76b1fc49a173485efe67d273304300820510346f
|
[
"MIT"
] | null | null | null |
assets/style.css
|
Brianna1915403/iot-dashboard
|
76b1fc49a173485efe67d273304300820510346f
|
[
"MIT"
] | null | null | null |
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@200&display=swap');
body {
font-family: 'Barlow', sans-serif;
}
.dashboard-container {
width: 100% !important;
}
.dashboard {
display: flex;
margin-top: 3em;
}
aside {
width: min-content;
margin: 0em 2.5em;
}
aside.left-sidebar {
float: left;
}
aside.right-sidebar {
float: right;
}
.card {
display: inline;
}
.threashold {
width: 10em;
}
#formatting-text {
color: #FFF;
}
| 12.692308
| 85
| 0.616162
|
1c2196b3cc6deea55581f4ebc8314f09ec826981
| 1,297
|
swift
|
Swift
|
ShakeView.swift
|
kimar/ShakeView
|
9e063307ab59fab90e13e66bb894a131650de049
|
[
"MIT"
] | 2
|
2015-07-25T19:44:45.000Z
|
2018-09-03T14:40:45.000Z
|
ShakeView.swift
|
kimar/ShakeView
|
9e063307ab59fab90e13e66bb894a131650de049
|
[
"MIT"
] | null | null | null |
ShakeView.swift
|
kimar/ShakeView
|
9e063307ab59fab90e13e66bb894a131650de049
|
[
"MIT"
] | null | null | null |
//
// ShakeView.swift
// himbo
//
// Created by Marcus Kida on 29/11/2014.
// Copyright (c) 2014 Marcus Kida. All rights reserved.
//
import UIKit
enum ShakeDirection {
case Horizontal, Vertical
}
extension UIView {
func shake(times: Int, direction: ShakeDirection) {
shake(times, iteration: 0, direction: 1, shakeDirection: direction, delta: 10, speed: 0.08)
}
private func shake(times: Int, iteration: Int, direction: CGFloat, shakeDirection: ShakeDirection, delta: CGFloat, speed: NSTimeInterval) {
UIView.animateWithDuration(speed, animations: { () -> Void in
self.layer.setAffineTransform((shakeDirection == ShakeDirection.Horizontal) ? CGAffineTransformMakeTranslation(delta * direction, 0) : CGAffineTransformMakeTranslation(0, delta * direction))
}) { (finished: Bool) -> Void in
if iteration >= times {
UIView.animateWithDuration(speed, animations: { () -> Void in
self.layer.setAffineTransform(CGAffineTransformIdentity)
})
return
}
self.shake((times - 1), iteration: (iteration + 1), direction: (direction * -1), shakeDirection: shakeDirection, delta: delta, speed: speed)
}
}
}
| 39.30303
| 202
| 0.630686
|
54e76086e35fecd29ad2d54330bfa5e34de509be
| 1,549
|
css
|
CSS
|
styles/global.css
|
activatedgeek/www-next
|
5a845aad6e912a2b2770483997a5ee8adf354fa7
|
[
"Apache-2.0"
] | null | null | null |
styles/global.css
|
activatedgeek/www-next
|
5a845aad6e912a2b2770483997a5ee8adf354fa7
|
[
"Apache-2.0"
] | 8
|
2021-08-13T03:26:51.000Z
|
2022-03-29T22:33:05.000Z
|
styles/global.css
|
activatedgeek/www-next
|
5a845aad6e912a2b2770483997a5ee8adf354fa7
|
[
"Apache-2.0"
] | null | null | null |
@tailwind base;
@layer base {
h1,
h2,
h3,
h4 {
@apply font-serif;
}
p {
@apply font-sans;
}
summary {
@apply font-sans cursor-pointer inline-block border rounded shadow-sm py-2 px-4;
}
figcaption {
@apply font-sans text-center;
}
img {
@apply mx-auto rounded shadow-md;
}
a {
/** @TODO: Resolve this using utility classes instead. */
@apply font-sans;
color: #3b82f6 !important;
font-weight: normal !important;
}
/* purgecss start ignore */
div.math-display {
@apply overflow-auto;
}
div.toc-container {
@apply md:absolute md:h-full md:-right-53 md:w-1/2 md:mt-0 mt-4;
}
nav.toc {
@apply md:sticky md:top-0 md:overflow-y-auto md:max-h-3/4 rounded shadow-sm p-6 bg-gradient-to-bl from-gray-50 to-blue-50 prose sm:prose lg:prose-lg xl:prose-xl 2xl:prose-2xl sm:text-sm lg:text-lg xl:text-xl;
}
nav.toc > h3 {
@apply md:z-10 md:sticky md:top-0 md:bg-gradient-to-bl md:from-gray-50 md:to-blue-50 shadow-sm;
}
p.hint {
@apply p-4 rounded bg-gray-200 prose sm:prose lg:prose-lg xl:prose-xl 2xl:prose-2xl sm:text-sm lg:text-lg xl:text-xl;
}
p.hint.tip {
@apply bg-green-200;
}
p.hint.warn {
@apply bg-yellow-200;
}
p.hint.error {
@apply bg-red-200;
}
div.footnotes {
@apply sm:text-xs md:text-base;
}
div.footnotes hr {
@apply my-4;
}
iframe.tweet {
@apply w-full mx-auto h-auto;
max-width: 550px;
min-height: 50vh;
}
/* purgecss end ignore */
}
@tailwind components;
@tailwind utilities;
| 22.779412
| 212
| 0.62621
|
62d8bdc0b46136f4bc0959d295bf5aac98a5837e
| 1,320
|
h
|
C
|
XVim2/XcodeHeader/IDEKit/IDETestNavigatorFilterManager.h
|
haozhiyu1990/XVim2
|
3f37d905d51c22fbd86c36e42d8ee1813829b00c
|
[
"MIT"
] | 2,453
|
2017-09-07T00:07:49.000Z
|
2022-03-29T22:32:10.000Z
|
XVim2/XcodeHeader/IDEKit/IDETestNavigatorFilterManager.h
|
haozhiyu1990/XVim2
|
3f37d905d51c22fbd86c36e42d8ee1813829b00c
|
[
"MIT"
] | 373
|
2017-09-20T04:16:11.000Z
|
2022-03-26T17:01:37.000Z
|
XVim2/XcodeHeader/IDEKit/IDETestNavigatorFilterManager.h
|
haozhiyu1990/XVim2
|
3f37d905d51c22fbd86c36e42d8ee1813829b00c
|
[
"MIT"
] | 260
|
2017-09-16T15:31:41.000Z
|
2022-02-07T02:52:29.000Z
|
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 30 2020 21:18:12).
//
// Copyright (C) 1997-2019 Steve Nygard.
//
#import <objc/NSObject.h>
#import <IDEKit/IDETestNavigatorFilterProducer-Protocol.h>
@class IDETestManager, NSString;
@protocol IDETestNavigatorFilterConsumer;
@interface IDETestNavigatorFilterManager : NSObject <IDETestNavigatorFilterProducer>
{
BOOL _shouldIncludeFailingTests;
BOOL _shouldIncludeSkippedTests;
NSString *_testNamePatternString;
id <IDETestNavigatorFilterConsumer> _filterConsumer;
IDETestManager *_testManager;
}
- (void).cxx_destruct;
@property(readonly) IDETestManager *testManager; // @synthesize testManager=_testManager;
@property __weak id <IDETestNavigatorFilterConsumer> filterConsumer; // @synthesize filterConsumer=_filterConsumer;
@property(retain, nonatomic) NSString *testNamePatternString; // @synthesize testNamePatternString=_testNamePatternString;
@property(nonatomic) BOOL shouldIncludeSkippedTests; // @synthesize shouldIncludeSkippedTests=_shouldIncludeSkippedTests;
@property(nonatomic) BOOL shouldIncludeFailingTests; // @synthesize shouldIncludeFailingTests=_shouldIncludeFailingTests;
- (id)representedObjectPredicate;
- (id)testStatusFilter;
- (id)initWithTestManager:(id)arg1 filterConsumer:(id)arg2;
@end
| 37.714286
| 122
| 0.809848
|
43fe50d5b68fa802d8edbdd4430e34e9b3d98995
| 3,982
|
ts
|
TypeScript
|
client/src/redux/reducers/projectReducer.ts
|
adxzhang1/readyship-app
|
2bc3972933ba9561a5bd0561166bd92b02f5c88d
|
[
"MIT"
] | null | null | null |
client/src/redux/reducers/projectReducer.ts
|
adxzhang1/readyship-app
|
2bc3972933ba9561a5bd0561166bd92b02f5c88d
|
[
"MIT"
] | null | null | null |
client/src/redux/reducers/projectReducer.ts
|
adxzhang1/readyship-app
|
2bc3972933ba9561a5bd0561166bd92b02f5c88d
|
[
"MIT"
] | null | null | null |
import {
CREATE_PROJECT_REQUEST,
CREATE_PROJECT_SUCCESS,
CREATE_PROJECT_FAIL,
UPDATE_PROJECT_REQUEST,
UPDATE_PROJECT_SUCCESS,
UPDATE_PROJECT_FAIL,
DELETE_PROJECT_REQUEST,
DELETE_PROJECT_SUCCESS,
DELETE_PROJECT_FAIL,
USER_PROJECTS_REQUEST,
USER_PROJECTS_SUCCESS,
USER_PROJECTS_FAIL,
ASSIGNED_PROJECTS_REQUEST,
ASSIGNED_PROJECTS_SUCCESS,
ASSIGNED_PROJECTS_FAIL,
ASSIGNER_SINGLE_PROJECT_REQUEST,
ASSIGNER_SINGLE_PROJECT_SUCCESS,
ASSIGNER_SINGLE_PROJECT_FAIL,
ASSIGNEE_SINGLE_PROJECT_REQUEST,
ASSIGNEE_SINGLE_PROJECT_SUCCESS,
ASSIGNEE_SINGLE_PROJECT_FAIL,
ProjectsDispatchTypes,
Project
} from "../constants/projectConstants";
export interface DefaultProjectState {
loading: boolean,
projectList?: Project[],
assignedProjectList?: Project[]
error?: string,
id?: number
}
const initialState: DefaultProjectState = {
loading: false
};
export const createProjectReducer = (state: DefaultProjectState = initialState, action: ProjectsDispatchTypes) => {
switch (action.type) {
case CREATE_PROJECT_REQUEST:
return { loading: true };
case CREATE_PROJECT_SUCCESS:
return { loading: false, projects: action.payload };
case CREATE_PROJECT_FAIL:
return { loading: false, error: action.payload };
default:
return state;
}
};
export const updateProjectReducer = (state: DefaultProjectState = initialState, action: ProjectsDispatchTypes) => {
switch (action.type) {
case UPDATE_PROJECT_REQUEST:
return { loading: true };
case UPDATE_PROJECT_SUCCESS:
return { loading: false, projects: action.payload };
case UPDATE_PROJECT_FAIL:
return { loading: false, error: action.payload };
default:
return state;
}
};
export const deleteProjectReducer = (state: DefaultProjectState = initialState, action: ProjectsDispatchTypes) => {
switch (action.type) {
case DELETE_PROJECT_REQUEST:
return { loading: true };
case DELETE_PROJECT_SUCCESS:
return { loading: false, projects: action.payload };
case DELETE_PROJECT_FAIL:
return { loading: false, error: action.payload };
default:
return state;
}
};
export const userProjectsReducer = (state: DefaultProjectState = initialState, action: ProjectsDispatchTypes) => {
switch (action.type) {
case USER_PROJECTS_REQUEST:
return { loading: true };
case USER_PROJECTS_SUCCESS:
return { loading: false, projects: action.payload };
case USER_PROJECTS_FAIL:
return { loading: false, error: action.payload };
default:
return state;
}
};
export const assignedProjectsReducer = (state: DefaultProjectState = initialState, action: ProjectsDispatchTypes) => {
switch (action.type) {
case ASSIGNED_PROJECTS_REQUEST:
return { loading: true };
case ASSIGNED_PROJECTS_SUCCESS:
return { loading: false, id: action.payload };
case ASSIGNED_PROJECTS_FAIL:
return { loading: false, error: action.payload };
default:
return state;
}
};
export const assignerProjectReducer = (state: DefaultProjectState = initialState, action: ProjectsDispatchTypes) => {
switch (action.type) {
case ASSIGNER_SINGLE_PROJECT_REQUEST:
return { loading: true };
case ASSIGNER_SINGLE_PROJECT_SUCCESS:
return { loading: false, id: action.payload };
case ASSIGNER_SINGLE_PROJECT_FAIL:
return { loading: false, error: action.payload };
default:
return state;
}
};
export const assigneeProjectReducer = (state: DefaultProjectState = initialState, action: ProjectsDispatchTypes) => {
switch (action.type) {
case ASSIGNEE_SINGLE_PROJECT_REQUEST:
return { loading: true };
case ASSIGNEE_SINGLE_PROJECT_SUCCESS:
return { loading: false, id: action.payload };
case ASSIGNEE_SINGLE_PROJECT_FAIL:
return { loading: false, error: action.payload };
default:
return state;
}
};
| 26.197368
| 118
| 0.712205
|
6d7b281e8b4e7882232d79d2c4ceeac334541aa1
| 1,609
|
swift
|
Swift
|
TwitterDemo/TweetsDetailViewController.swift
|
JaberJanati/Twitter
|
54306991991eada9350ee8a2f5a4bfdb1310b292
|
[
"Apache-2.0"
] | null | null | null |
TwitterDemo/TweetsDetailViewController.swift
|
JaberJanati/Twitter
|
54306991991eada9350ee8a2f5a4bfdb1310b292
|
[
"Apache-2.0"
] | 3
|
2016-02-29T02:13:55.000Z
|
2016-03-23T19:16:02.000Z
|
TwitterDemo/TweetsDetailViewController.swift
|
JaberJanati/Twitter
|
54306991991eada9350ee8a2f5a4bfdb1310b292
|
[
"Apache-2.0"
] | null | null | null |
//
// TweetsDetailViewController.swift
// TwitterDemo
//
// Created by The Boss on 3/19/16.
// Copyright © 2016 The Boss. All rights reserved.
//
import UIKit
class TweetsDetailViewController: UIViewController {
@IBOutlet weak var profileImage: UIImageView!
@IBOutlet weak var nameLabel: UILabel!
@IBOutlet weak var tweetLabel: UILabel!
@IBOutlet weak var timestampLabel: UILabel!
@IBOutlet weak var numOfRetweet: UILabel!
@IBOutlet weak var numOfFavorites: UILabel!
@IBOutlet weak var screenNameLabel: UILabel!
var userData: Tweet!
override func viewDidLoad() {
super.viewDidLoad()
profileImage.setImageWithURL(userData.user.profileUrl!)
screenNameLabel.text = String(userData.user.screenName!)
nameLabel.text = String(userData.user.name!)
tweetLabel.text = String(userData.text)
numOfRetweet.text = String(userData.retweetCount)
numOfFavorites.text = String(userData.favoritesCount)
// Do any aditional setup after loading the view.
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
/*
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
// Get the new view controller using segue.destinationViewController.
// Pass the selected object to the new view controller.
}
*/
}
| 29.796296
| 106
| 0.691112
|
5405fbb0f213de941dadebe45383e921979127be
| 179
|
css
|
CSS
|
css/master.css
|
luisreys/luisreys.github.io
|
c295163fbaa692164d96c7a5c4126a1eae15de7a
|
[
"MIT"
] | null | null | null |
css/master.css
|
luisreys/luisreys.github.io
|
c295163fbaa692164d96c7a5c4126a1eae15de7a
|
[
"MIT"
] | null | null | null |
css/master.css
|
luisreys/luisreys.github.io
|
c295163fbaa692164d96c7a5c4126a1eae15de7a
|
[
"MIT"
] | null | null | null |
.alto{
height: 100vh;
}
.bg-colorA{
/*background-color: #FF3D00; */
background-color: #FFF86A;
}
.bg-colorB{
/*background-color: #00DB6C;*/
background-color: #FFF200;
}
| 12.785714
| 32
| 0.642458
|
f1bc2765a9506cb9e07712c1c29cd874623bc240
| 505
|
rb
|
Ruby
|
spec/models/concerns/commerce/purchaser_spec.rb
|
MidnightRiders/MemberPortal
|
5b958ff9081c0c3eb28f8fc4546b6cceda39cdfa
|
[
"MIT"
] | 1
|
2017-01-09T18:30:59.000Z
|
2017-01-09T18:30:59.000Z
|
spec/models/concerns/commerce/purchaser_spec.rb
|
MidnightRiders/MemberPortal
|
5b958ff9081c0c3eb28f8fc4546b6cceda39cdfa
|
[
"MIT"
] | 40
|
2017-01-03T01:25:51.000Z
|
2021-10-30T16:54:10.000Z
|
spec/models/concerns/commerce/purchaser_spec.rb
|
MidnightRiders/MemberPortal
|
5b958ff9081c0c3eb28f8fc4546b6cceda39cdfa
|
[
"MIT"
] | null | null | null |
require 'spec_helper'
describe Commerce::Purchaser do
let(:purchaser) {
class ExamplePurchaserClass
include ActiveModel::Validations
include Commerce::Purchaser
end
ExamplePurchaserClass.new
}
describe 'defaulted methods' do
it 'returns a blank string for stripe_customer_info' do
expect(purchaser.stripe_customer_info).to eq({})
end
it 'returns a blank string for stripe_metadata' do
expect(purchaser.stripe_metadata).to eq({})
end
end
end
| 21.956522
| 59
| 0.714851
|
259846028fcbf521d100645391171349770c5b44
| 5,577
|
cs
|
C#
|
src/Com.Danliris.Service.Packing.Inventory.Data/Models/MaterialDeliveryNoteWeaving/MaterialDeliveryNoteWeavingModel.cs
|
AndreaZain/com-danliris-service-packing-inventory
|
d6dd88e4839f7345387cf8ab059f73f02306f59a
|
[
"MIT"
] | null | null | null |
src/Com.Danliris.Service.Packing.Inventory.Data/Models/MaterialDeliveryNoteWeaving/MaterialDeliveryNoteWeavingModel.cs
|
AndreaZain/com-danliris-service-packing-inventory
|
d6dd88e4839f7345387cf8ab059f73f02306f59a
|
[
"MIT"
] | 669
|
2020-04-07T10:40:37.000Z
|
2022-03-29T05:20:48.000Z
|
src/Com.Danliris.Service.Packing.Inventory.Data/Models/MaterialDeliveryNoteWeaving/MaterialDeliveryNoteWeavingModel.cs
|
AndreaZain/com-danliris-service-packing-inventory
|
d6dd88e4839f7345387cf8ab059f73f02306f59a
|
[
"MIT"
] | 117
|
2019-11-20T06:23:37.000Z
|
2022-03-31T09:49:28.000Z
|
using Com.Danliris.Service.Packing.Inventory.Data.Models.MaterialDeliveryNoteWeaving;
using Com.Moonlay.Models;
using System;
using System.Collections.Generic;
using System.Text;
namespace Com.Danliris.Service.Packing.Inventory.Data
{
public class MaterialDeliveryNoteWeavingModel: StandardEntity
{
public string Code { get; set; }
public DateTimeOffset DateSJ { get; set; }
public long DoSalesNumberId { get; set; }
public string DoSalesNumber { get; set; }
public string SendTo { get; set; }
public int UnitId { get; set; }
public string UnitName { get; set; }
public int BuyerId { get; set; }
public string BuyerCode { get; set; }
public string BuyerName { get; set; }
public string NumberOut { get; set; }
public int? StorageId { get; set; }
public string StorageCode { get; set; }
public string StorageName { get; set; }
public string Remark { get; set; }
//public string StorageUnit { get; set; }
public ICollection<ItemsMaterialDeliveryNoteWeavingModel> ItemsMaterialDeliveryNoteWeaving { get; private set; }
public MaterialDeliveryNoteWeavingModel()
{
ItemsMaterialDeliveryNoteWeaving = new HashSet<ItemsMaterialDeliveryNoteWeavingModel>();
}
public MaterialDeliveryNoteWeavingModel(
string code,
DateTimeOffset datesj,
long dosalesnumberid,
string dosalesnumber,
string sendto,
int unitid,
string unitname,
int buyerid,
string buyercode,
string buyername,
string numberout,
int? storageid,
string storagecode,
string storagename,
string remark,
//string storageunit,
ICollection<ItemsMaterialDeliveryNoteWeavingModel> items
)
{
Code = code;
DateSJ = datesj;
DoSalesNumberId = dosalesnumberid;
DoSalesNumber = dosalesnumber;
SendTo = sendto;
UnitId = unitid;
UnitName = unitname;
BuyerId = buyerid;
BuyerCode= buyercode;
BuyerName = buyername;
NumberOut = numberout;
StorageId = storageid;
StorageCode = storagecode;
StorageName = storagename;
Remark = remark;
//StorageUnit = storageunit;
ItemsMaterialDeliveryNoteWeaving = items;
}
public void SetCode(string newCode)
{
if (newCode != Code)
{
Code = newCode;
}
}
public void SetDateSJ(DateTimeOffset newDateSJ)
{
if (newDateSJ != DateSJ)
{
DateSJ = newDateSJ;
}
}
public void SetDoSalesNumberId(long newdosalesnumberid)
{
if (newdosalesnumberid != DoSalesNumberId)
{
DoSalesNumberId = newdosalesnumberid;
}
}
public void SetDoSalesNumber(string newDoSalesNumber)
{
if (newDoSalesNumber != DoSalesNumber)
{
DoSalesNumber = newDoSalesNumber;
}
}
public void SetSendTo(string newSendTo)
{
if (newSendTo != SendTo)
{
SendTo = newSendTo;
}
}
public void SetUnitId(int newUnitId)
{
if (newUnitId != UnitId)
{
UnitId = newUnitId;
}
}
public void SetUnitName(string newUnitName)
{
if (newUnitName != UnitName)
{
UnitName = newUnitName;
}
}
public void SetBuyerId(int newBuyerId)
{
if (newBuyerId != BuyerId)
{
BuyerId = newBuyerId;
}
}
public void SetBuyerCode(string newBuyerCode)
{
if (newBuyerCode != BuyerCode)
{
BuyerCode = newBuyerCode;
}
}
public void SetBuyerName(string newBuyerName)
{
if (newBuyerName != BuyerName)
{
BuyerName = newBuyerName;
}
}
public void SetNumberOut(string newNumberOut)
{
if (newNumberOut != NumberOut)
{
NumberOut = newNumberOut;
}
}
public void SetStorageId(int? newStorageId)
{
if (newStorageId != StorageId)
{
StorageId = newStorageId;
}
}
public void SetStorageCode(string newStorageCode)
{
if (newStorageCode != StorageCode)
{
StorageCode = newStorageCode;
}
}
public void SetStorageName(string newStorageName)
{
if (newStorageName != StorageName)
{
StorageName = newStorageName;
}
}
//public void SetStorageUnit(string newStorageUnit)
//{
// if (newStorageUnit != StorageUnit)
// {
// StorageUnit = newStorageUnit;
// }
//}
public void SetRemark(string newRemark)
{
if (newRemark != Remark)
{
Remark = newRemark;
}
}
}
}
| 27.204878
| 120
| 0.511924
|
ae5c4ef570ff78156b3e44ad9e61bf16775eb676
| 220
|
sql
|
SQL
|
leetcode/180-consecutive-numbers.sql
|
airt/oj-codes
|
51279048a45080dcf390d02145f5ea623db557a1
|
[
"MIT"
] | null | null | null |
leetcode/180-consecutive-numbers.sql
|
airt/oj-codes
|
51279048a45080dcf390d02145f5ea623db557a1
|
[
"MIT"
] | null | null | null |
leetcode/180-consecutive-numbers.sql
|
airt/oj-codes
|
51279048a45080dcf390d02145f5ea623db557a1
|
[
"MIT"
] | null | null | null |
-- https://leetcode.com/problems/consecutive-numbers
select distinct l.num as consecutivenums
from logs l, logs ll, logs lll
where l.id + 1 = ll.id and ll.id + 1 = lll.id
and l.num = ll.num and ll.num = lll.num
| 31.428571
| 52
| 0.686364
|
441b547cb500f1bc58baad6bea93b4cf210fa408
| 578
|
lua
|
Lua
|
files/scripts/rubber_cement.lua
|
BaconSeaner/Binding-of-Noita
|
266d3a8fed1a4dc30f049bd3fa39b8d6bf8673e9
|
[
"MIT"
] | null | null | null |
files/scripts/rubber_cement.lua
|
BaconSeaner/Binding-of-Noita
|
266d3a8fed1a4dc30f049bd3fa39b8d6bf8673e9
|
[
"MIT"
] | null | null | null |
files/scripts/rubber_cement.lua
|
BaconSeaner/Binding-of-Noita
|
266d3a8fed1a4dc30f049bd3fa39b8d6bf8673e9
|
[
"MIT"
] | null | null | null |
local entity_id = GetUpdatedEntityID()
local proj_comps = EntityGetComponent( entity_id, "ProjectileComponent" )
if proj_comps then
for i, comp in ipairs(proj_comps) do
--ComponentSetValue2( comp, "collide_with_world" , true )
--ComponentSetValue2( comp, "collide_with_entities" , true )
--ComponentSetValue2( comp, "on_collision_die" , false )
ComponentSetValue2( comp, "bounce_energy" , 0.9 )
ComponentSetValue2( comp, "bounce_always" , true )
ComponentSetValue2( comp, "bounce_at_any_angle" , true )
end
end
| 41.285714
| 73
| 0.688581
|
c662abae0eef581a39cfb73b57a049b5af3bcf3c
| 1,407
|
rb
|
Ruby
|
lib/db_meta/oracle/types/sequence.rb
|
thomis/db_meta
|
8047db1404b661e58984aa10de3605d7512074cd
|
[
"Apache-2.0"
] | null | null | null |
lib/db_meta/oracle/types/sequence.rb
|
thomis/db_meta
|
8047db1404b661e58984aa10de3605d7512074cd
|
[
"Apache-2.0"
] | 1
|
2021-05-01T06:17:54.000Z
|
2021-05-01T06:17:54.000Z
|
lib/db_meta/oracle/types/sequence.rb
|
thomis/db_meta
|
8047db1404b661e58984aa10de3605d7512074cd
|
[
"Apache-2.0"
] | null | null | null |
module DbMeta
module Oracle
class Sequence < Base
register_type("SEQUENCE")
attr_reader :min_value, :max_value, :increment_by, :cycle_flag, :order_flag, :cache_size, :last_number
def fetch
connection = Connection.instance.get
cursor = connection.exec("select to_char(min_value), to_char(max_value), to_char(increment_by), cycle_flag, order_flag, to_char(cache_size), to_char(last_number) from user_sequences where sequence_name = '#{@name}'")
while (row = cursor.fetch)
@min_value = row[0].to_i
@max_value = row[1].to_i
@increment_by = row[2].to_i
@cycle_flag = row[3].to_s
@order_flag = row[4].to_s
@cache_size = row[5].to_i
@last_number = row[6].to_i
end
cursor.close
ensure
connection.logoff
end
def extract(args = {})
buffer = [block(@name)]
buffer << "CREATE SEQUENCE #{@name}"
buffer << " START WITH #{@last_number}"
buffer << " MAXVALUE #{@max_value}"
buffer << " MINVALUE #{@min_value}"
buffer << (@cycle_flag == "N" ? " NOCYCLE" : " CYCLE")
buffer << (@cache_size == 0 ? " NOCACHE" : " CACHE #{@cache_size}")
buffer << (@order_flag == "N" ? " NOORDER" : " ORDER")
buffer << ";"
buffer << nil
buffer.join("\n")
end
end
end
end
| 34.317073
| 224
| 0.568586
|
372c5b62c7bdf3050a862d0cc539f8027c12335b
| 379
|
swift
|
Swift
|
Rickipedia/Views/EpisodeDetailsViewController.swift
|
vshkl/Rickipedia-iOS
|
8088223d5461cbd505f438fc93bf5b4ea4a37d8b
|
[
"MIT"
] | null | null | null |
Rickipedia/Views/EpisodeDetailsViewController.swift
|
vshkl/Rickipedia-iOS
|
8088223d5461cbd505f438fc93bf5b4ea4a37d8b
|
[
"MIT"
] | null | null | null |
Rickipedia/Views/EpisodeDetailsViewController.swift
|
vshkl/Rickipedia-iOS
|
8088223d5461cbd505f438fc93bf5b4ea4a37d8b
|
[
"MIT"
] | null | null | null |
//
// EpisodeDetailsViewController.swift
// Rickipedia
//
// Created by Pavel Vashkel on 4/4/20.
// Copyright © 2020 Pavel Vashkel. All rights reserved.
//
import UIKit
class EpisodeDetailsViewController: UIViewController {
var episode: Episode?
override func viewDidLoad() {
super.viewDidLoad()
navigationItem.title = episode?.name
}
}
| 17.227273
| 56
| 0.680739
|
0343c6990a506d130b0f6021ba5dab01fc857826
| 44,149
|
sql
|
SQL
|
SQL/CreatePMDObjects.sql
|
itrain-de/pmdsql
|
3e1a056e3d967993fcc693b5c3c6a4aa2735422d
|
[
"MIT"
] | null | null | null |
SQL/CreatePMDObjects.sql
|
itrain-de/pmdsql
|
3e1a056e3d967993fcc693b5c3c6a4aa2735422d
|
[
"MIT"
] | null | null | null |
SQL/CreatePMDObjects.sql
|
itrain-de/pmdsql
|
3e1a056e3d967993fcc693b5c3c6a4aa2735422d
|
[
"MIT"
] | null | null | null |
--drop TABLE [Documentation].[ExtendedPropertiesConfiguration]
SET NOCOUNT ON
IF NOT EXISTS (SELECT * FROM sys.schemas WHERE name = 'Documentation')
EXEC sp_executeSQL N'CREATE SCHEMA Documentation'
IF NOT EXISTS (SELECT * FROM sys.tables WHERE name ='ExtendedPropertiesConfiguration' AND SCHEMA_NAME(schema_id) = 'Documentation')
BEGIN
CREATE TABLE [Documentation].[ExtendedPropertiesConfiguration](
[objtype] [nvarchar](255) NOT NULL,
[propertyname] [nvarchar](255) NOT NULL,
[usagecount] [int] NULL,
[includeinview] [bit] NULL,
[columnnumber] [int] NULL,
[ismsshipped] [bit] NULL
)
ALTER TABLE [Documentation].[ExtendedPropertiesConfiguration] WITH CHECK ADD CONSTRAINT [CK_ExtendedPropertiesConfiguration] CHECK (([objtype]='XML SCHEMA COLLECTION' OR [objtype]='VIEW' OR [objtype]='TYPE' OR [objtype]='TRIGGER' OR [objtype]='TABLE' OR [objtype]='SYNONYM' OR [objtype]='SERVICE' OR [objtype]='SCHEMA' OR [objtype]='RULE' OR [objtype]='QUEUE' OR [objtype]='PROCEDURE' OR [objtype]='PARAMETER' OR [objtype]='LOGICAL FILE NAME' OR [objtype]='INDEX' OR [objtype]='FUNCTION' OR [objtype]='FOREIGNKEY' OR [objtype]='FILEGROUP' OR [objtype]='EVENT NOTIFICATION' OR [objtype]='DEFAULT' OR [objtype]='DATABASE TRIGGER' OR [objtype]='DATABASE' OR [objtype]='CONTRACT' OR [objtype]='CONSTRAINT' OR [objtype]='COLUMN' OR [objtype]='ASSEMBLY' OR [objtype]='AGGREGATE'))
ALTER TABLE [Documentation].[ExtendedPropertiesConfiguration] CHECK CONSTRAINT [CK_ExtendedPropertiesConfiguration]
END
GO
IF NOT EXISTS (SELECT * FROM Documentation.ExtendedPropertiesConfiguration)
BEGIN
INSERT INTO Documentation.ExtendedPropertiesConfiguration VALUES ('DATABASE', 'MS_Description', 0, 1, 1, 1)
INSERT INTO Documentation.ExtendedPropertiesConfiguration VALUES ('ASSEMBLY', 'MS_Description', 0, 1, 1, 1)
INSERT INTO Documentation.ExtendedPropertiesConfiguration VALUES ('CONTRACT', 'MS_Description', 0, 1, 1, 1)
INSERT INTO Documentation.ExtendedPropertiesConfiguration VALUES ('FILEGROUP', 'MS_Description', 0, 1, 1, 1)
INSERT INTO Documentation.ExtendedPropertiesConfiguration VALUES ('SCHEMA', 'MS_Description', 0, 1, 1, 1)
INSERT INTO Documentation.ExtendedPropertiesConfiguration VALUES ('SERVICE', 'MS_Description', 0, 1, 1, 1)
INSERT INTO Documentation.ExtendedPropertiesConfiguration VALUES ('DATABASE TRIGGER', 'MS_Description', 0, 1, 1, 1)
INSERT INTO Documentation.ExtendedPropertiesConfiguration VALUES ('AGGREGATE', 'MS_Description', 0, 1, 1, 1)
INSERT INTO Documentation.ExtendedPropertiesConfiguration VALUES ('DEFAULT', 'MS_Description', 0, 1, 1, 1)
INSERT INTO Documentation.ExtendedPropertiesConfiguration VALUES ('FUNCTION', 'MS_Description', 0, 1, 1, 1)
INSERT INTO Documentation.ExtendedPropertiesConfiguration VALUES ('LOGICAL FILE NAME', 'MS_Description', 0, 1, 1, 1)
INSERT INTO Documentation.ExtendedPropertiesConfiguration VALUES ('PROCEDURE', 'MS_Description', 0, 1, 1, 1)
INSERT INTO Documentation.ExtendedPropertiesConfiguration VALUES ('QUEUE', 'MS_Description', 0, 1, 1, 1)
INSERT INTO Documentation.ExtendedPropertiesConfiguration VALUES ('RULE', 'MS_Description', 0, 1, 1, 1)
INSERT INTO Documentation.ExtendedPropertiesConfiguration VALUES ('SYNONYM', 'MS_Description', 0, 1, 1, 1)
INSERT INTO Documentation.ExtendedPropertiesConfiguration VALUES ('TABLE', 'MS_Description', 0, 1, 1, 1)
INSERT INTO Documentation.ExtendedPropertiesConfiguration VALUES ('VIEW', 'MS_Description', 0, 1, 1, 1)
INSERT INTO Documentation.ExtendedPropertiesConfiguration VALUES ('TYPE', 'MS_Description', 0, 1, 1, 1)
INSERT INTO Documentation.ExtendedPropertiesConfiguration VALUES ('XML SCHEMA COLLECTION', 'MS_Description', 0, 1, 1, 1)
INSERT INTO Documentation.ExtendedPropertiesConfiguration VALUES ('COLUMN', 'MS_Description', 0, 1, 1, 1)
INSERT INTO Documentation.ExtendedPropertiesConfiguration VALUES ('CONSTRAINT', 'MS_Description', 0, 1, 1, 1)
INSERT INTO Documentation.ExtendedPropertiesConfiguration VALUES ('EVENT NOTIFICATION', 'MS_Description', 0, 1, 1, 1)
INSERT INTO Documentation.ExtendedPropertiesConfiguration VALUES ('INDEX', 'MS_Description', 0, 1, 1, 1)
INSERT INTO Documentation.ExtendedPropertiesConfiguration VALUES ('PARAMETER', 'MS_Description', 0, 1, 1, 1)
INSERT INTO Documentation.ExtendedPropertiesConfiguration VALUES ('TRIGGER', 'MS_Description', 0, 1, 1, 1)
END
GO
CREATE OR ALTER PROC Documentation.syncExtendedPropertiesConfigurationCount
AS
SET NOCOUNT ON
MERGE INTO [Documentation].[ExtendedPropertiesConfiguration] trg
USING (SELECT DISTINCT xpr.name,
CASE WHEN so.type IN ('U') THEN 'TABLE'
WHEN so.type IN ('V') THEN 'VIEW'
WHEN so.type IN ('FN', 'TF', 'TF') THEN 'FUNCTION'
WHEN so.type IN ('P') THEN 'PROCEDURE'
WHEN so.type IN ('F') THEN 'FOREIGNKEY'
WHEN so.type IN ('TR') THEN 'TRIGGER'
ELSE so.Type END objtype,
COUNT(*) num
FROM sys.extended_properties xpr
INNER JOIN sys.objects so
ON so.object_id = major_id
AND class_desc = 'OBJECT_OR_COLUMN'
AND minor_id = 0
GROUP BY xpr.name, CASE WHEN so.type IN ('U') THEN 'TABLE'
WHEN so.type IN ('V') THEN 'VIEW'
WHEN so.type IN ('FN', 'TF', 'TF') THEN 'FUNCTION'
WHEN so.type IN ('P') THEN 'PROCEDURE'
WHEN so.type IN ('F') THEN 'FOREIGNKEY'
WHEN so.type IN ('TR') THEN 'TRIGGER'
ELSE so.Type END ) src
ON ( src.name = trg.propertyname AND src.objtype = trg.objtype COLLATE Latin1_General_CI_AS)
WHEN MATCHED THEN
UPDATE SET columnnumber = num
WHEN NOT MATCHED BY target THEN
INSERT (objtype, propertyname, usagecount, includeinview) VALUES ( src.objtype, src.name, src.num, 1)
WHEN NOT MATCHED BY source THEN
UPDATE SET Columnnumber = 0
;
MERGE INTO [Documentation].[ExtendedPropertiesConfiguration] trg
USING ( SELECT DISTINCT xpr.name,
'COLUMN' objtype,
COUNT(*) num
FROM sys.extended_properties xpr
INNER JOIN sys.objects so
ON so.object_id = major_id
INNER JOIN sys.columns col
ON col.column_id = xpr.minor_id
AND class_desc = 'OBJECT_OR_COLUMN'
AND so.object_id = col.object_id
GROUP BY xpr.name) src
ON ( src.name = trg.propertyname AND src.objtype = trg.objtype COLLATE Latin1_General_CI_AS)
WHEN MATCHED THEN
UPDATE SET columnnumber = num
WHEN NOT MATCHED BY target THEN
INSERT (objtype, propertyname, usagecount, includeinview) VALUES ( src.objtype, src.name, src.num, 1)
WHEN NOT MATCHED BY source THEN
UPDATE SET Columnnumber = 0
;
MERGE INTO [Documentation].[ExtendedPropertiesConfiguration] trg
USING ( SELECT DISTINCT xpr.name,
'PARAMETER' objtype,
COUNT(*) num
FROM sys.extended_properties xpr
INNER JOIN sys.foreign_keys fk
ON fk.object_id = xpr.major_id
AND class_desc = 'OBJECT_OR_COLUMN'
INNER JOIN sys.objects so
ON so.object_id = fk.parent_object_id
GROUP BY xpr.name) src
ON ( src.name = trg.propertyname AND src.objtype = trg.objtype COLLATE Latin1_General_CI_AS)
WHEN MATCHED THEN
UPDATE SET columnnumber = num
WHEN NOT MATCHED BY target THEN
INSERT (objtype, propertyname, usagecount, includeinview) VALUES ( src.objtype, src.name, src.num, 1)
WHEN NOT MATCHED BY source THEN
UPDATE SET Columnnumber = 0
;
GO
EXEC Documentation.syncExtendedPropertiesConfigurationCount
GO
CREATE OR ALTER PROC [Documentation].[GenerateExtendedTablePropertiesView]
@Debug bit = 0
AS
SET NOCOUNT ON
DECLARE @SQLView nvarchar(max)
DECLARE @SQLTrigger nvarchar(max)
DECLARE @SQLColumn nvarchar(max) = '', @SQLApply nvarchar(max) = ''
DECLARE @columnlist nvarchar(max)
DECLARE @ViewName nvarchar(255), @PropertyName nvarchar(255)
SET @ViewName = 'ExtendedTableProperties'
DECLARE cProperties CURSOR LOCAL FAST_FORWARD FOR
SELECT propertyname
FROM Documentation.ExtendedPropertiesConfiguration
WHERE objtype = 'TABLE'
AND includeinview = 1
ORDER BY columnnumber
OPEN cProperties
FETCH NEXT FROM cProperties INTO @propertyName --, @DisplayName
WHILE @@FETCH_STATUS = 0
BEGIN
SET @SQLColumn += ', CAST(' + QUOTENAME(@propertyName) + '.value AS nvarchar(4000)) ' + QUOTENAME(@PropertyName)
SET @SQLApply += 'OUTER APPLY ::fn_listextendedproperty(''' + @PropertyName + ''', ''schema'', SCHEMA_NAME(schema_id), ''TABLE'', tab.name, DEFAULT, DEFAULT) ' + QUOTENAME(@PropertyName)
SET @columnlist = ISNULL(@columnlist + ', ' + QUOTENAME(@PropertyName) , QUOTENAME(@PropertyName))
FETCH NEXT FROM cProperties INTO @propertyName --, @DisplayName
END
CLOSE cProperties
DEALLOCATE cProperties
SET @SQLView = 'CREATE OR ALTER VIEW [Documentation].' + QUOTENAME(@ViewName) + '
WITH VIEW_METADATA
AS
SELECT CAST(SCHEMA_NAME(Schema_id) AS nvarchar(255)) [SCHEMA_NAME] ,
CAST(tab.name AS nvarchar(255)) [TABLE_NAME] '
SET @SQLView += @SQLColumn
SET @SQLView += '
FROM sys.tables tab
'
SET @SQLView += @SQLApply
IF @Debug = 1 PRINT @SQLView
EXEC sp_executeSQL @SQLView
SET @SQLTrigger = 'CREATE OR ALTER TRIGGER [Documentation].' + QUOTENAME( @ViewName + 'Trigger') + ' ON [Documentation].' + QUOTENAME(@ViewName) + '
INSTEAD OF UPDATE
AS
SET NOCOUNT ON
DECLARE @colBitmap varbinary(2)
DECLARE @NumOfColumns int
DECLARE @Schema varchar(255)
DECLARE @Property varchar(255)
DECLARE @Table sysname
DECLARE @Value SQL_VARIANT
DECLARE @Changes TABLE (schemaName sysname, tabName sysName, Value SQL_VARIANT, PropName varchar(255))
DECLARE @curColumnId int = 1
INSERT INTO @Changes
SELECT *
FROM (SELECT * FROM inserted i
UNPIVOT (Res FOR Value IN ( ' + @columnlist + ') ) un ) un
DECLARE cDaten CURSOR FAST_FORWARD FOR
SELECT SCHEMA_NAME,
TABLE_NAME
FROM inserted i
OPEN cDaten
FETCH NEXT FROM cDaten INTO @Schema, @Table
WHILE @@FETCH_STATUS = 0
BEGIN
SET @curColumnId = 3 -- ignore first 2columns
SELECT @NumOfColumns = COUNT(*) FROM sys.columns WHERE OBJECT_ID(''Documentation.' + @ViewName + ''') = object_id
IF @NumOfColumns < 9
SET @colBitmap = SUBSTRING( COLUMNS_UPDATED(), 1, 1)
ELSE
SET @colBitmap = SUBSTRING( COLUMNS_UPDATED(), 2, 1) + SUBSTRING(Columns_UPDATED(), 1,1)
WHILE @curColumnId <= @NumOfColumns
BEGIN
IF @colBitmap & POWER(2, (@curColumnId -1)) = POWER(2, (@curColumnId -1))
BEGIN
SET @Value = NULL
SELECT @Property = name
FROM sys.columns
WHERE OBJECT_ID(''Documentation.' + @ViewName + ''') = object_id
AND column_id = @curColumnId
SELECT @Value = Value
FROM @Changes
WHERE PropName = @Property
AND SchemaName = @Schema
AND TabName = @Table
IF EXISTS (SELECT * FROM ::fn_listextendedproperty(@Property, ''schema'', @schema, ''table'', @Table, DEFAULT, DEFAULT))
BEGIN
IF @Value IS NULL OR DATALENGTH(@Value) = 0
BEGIN
EXEC sp_dropextendedproperty @Property, ''schema'', @schema, ''table'', @Table, DEFAULT, DEFAULT
END
ELSE
BEGIN
EXEC sp_updateextendedproperty @Property, @Value, ''schema'', @schema, ''table'', @Table, DEFAULT, DEFAULT
END
END
ELSE
BEGIN
IF @Value IS NOT NULL AND DATALENGTH(@Value) > 0
EXEC sp_addextendedproperty @Property, @Value, ''schema'', @Schema, ''table'', @Table, DEFAULT, DEFAULT
END
END -- Change detected
SET @curColumnId += 1
END
FETCH NEXT FROM cDaten INTO @Schema, @Table
END
CLOSE cDaten
DEALLOCATE cDaten
'
EXEC sp_executeSQL @SQLTrigger
IF @Debug = 1 PRINT @SQLTrigger
GO
CREATE OR ALTER PROC [Documentation].[GenerateExtendedViewPropertiesView]
@Debug bit = 0
AS
SET NOCOUNT ON
DECLARE @SQLView nvarchar(max)
DECLARE @SQLTrigger nvarchar(max)
DECLARE @SQLColumn nvarchar(max) = '', @SQLApply nvarchar(max) = ''
DECLARE @columnlist nvarchar(max)
DECLARE @ViewName nvarchar(255), @PropertyName nvarchar(255), @DisplayName nvarchar(255)
SET @ViewName = 'ExtendedViewProperties'
DECLARE cProperties CURSOR LOCAL FAST_FORWARD FOR
SELECT propertyname
FROM Documentation.ExtendedPropertiesConfiguration
WHERE objtype = 'VIEW'
AND includeinview = 1
ORDER BY columnnumber
OPEN cProperties
FETCH NEXT FROM cProperties INTO @propertyName
WHILE @@FETCH_STATUS = 0
BEGIN
SET @SQLColumn += ', CAST(' + QUOTENAME(@propertyName) + '.value AS nvarchar(4000)) ' + QUOTENAME(@PropertyName)
SET @SQLApply += 'OUTER APPLY ::fn_listextendedproperty(''' + @PropertyName + ''', ''schema'', SCHEMA_NAME(schema_id), ''TABLE'', viw.name, DEFAULT, DEFAULT) ' + QUOTENAME(@PropertyName)
SET @columnlist = ISNULL(@columnlist + ', ' + QUOTENAME(@PropertyName) , QUOTENAME(@PropertyName))
FETCH NEXT FROM cProperties INTO @propertyName
END
CLOSE cProperties
DEALLOCATE cProperties
SET @SQLView = 'CREATE OR ALTER VIEW [Documentation].' + QUOTENAME(@ViewName) + '
WITH VIEW_METADATA
AS
SELECT CAST(SCHEMA_NAME(Schema_id) AS nvarchar(255)) [SCHEMA_NAME] ,
CAST(viw.name AS nvarchar(255)) [VIEW_NAME] '
SET @SQLView += @SQLColumn
SET @SQLView += '
FROM sys.views viw
'
SET @SQLView += @SQLApply
IF @Debug = 1 PRINT @SQLView
EXEC sp_executeSQL @SQLView
SET @SQLTrigger = 'CREATE OR ALTER TRIGGER [Documentation].' + QUOTENAME( @ViewName + 'Trigger') + ' ON [Documentation].' + QUOTENAME(@ViewName) + '
INSTEAD OF UPDATE
AS
SET NOCOUNT ON
DECLARE @colBitmap varbinary(2)
DECLARE @NumOfColumns int
DECLARE @Schema varchar(255)
DECLARE @Property varchar(255)
DECLARE @View sysname
DECLARE @Value SQL_VARIANT
DECLARE @Changes TABLE (schemaName sysname, tabName sysName, Value SQL_VARIANT, PropName varchar(255))
DECLARE @curColumnId int = 1
INSERT INTO @Changes
SELECT *
FROM (SELECT * FROM inserted i
UNPIVOT (Res FOR Value IN ( ' + @columnlist + ') ) un ) un
DECLARE cDaten CURSOR FAST_FORWARD FOR
SELECT SCHEMA_NAME,
VIEW_NAME
FROM inserted i
OPEN cDaten
FETCH NEXT FROM cDaten INTO @Schema, @View
WHILE @@FETCH_STATUS = 0
BEGIN
SET @curColumnId = 3 -- ignore first 2columns
SELECT @NumOfColumns = COUNT(*) FROM sys.columns WHERE OBJECT_ID(''Documentation.' + @ViewName + ''') = object_id
IF @NumOfColumns < 9
SET @colBitmap = SUBSTRING( COLUMNS_UPDATED(), 1, 1)
ELSE
SET @colBitmap = SUBSTRING( COLUMNS_UPDATED(), 2, 1) + SUBSTRING(Columns_UPDATED(), 1,1)
WHILE @curColumnId <= @NumOfColumns
BEGIN
IF @colBitmap & POWER(2, (@curColumnId -1)) = POWER(2, (@curColumnId -1))
BEGIN
SET @Value = NULL
SELECT @Property = name
FROM sys.columns
WHERE OBJECT_ID(''Documentation.' + @ViewName + ''') = object_id
AND column_id = @curColumnId
SELECT @Value = Value
FROM @Changes
WHERE PropName = @Property
AND SchemaName = @Schema
AND TabName = @View
IF EXISTS (SELECT * FROM ::fn_listextendedproperty(@Property, ''schema'', @schema, ''view'', @View, DEFAULT, DEFAULT))
BEGIN
IF @Value IS NULL OR DATALENGTH(@Value) = 0
BEGIN
EXEC sp_dropextendedproperty @Property, ''schema'', @schema, ''view'', @View, DEFAULT, DEFAULT
END
ELSE
BEGIN
EXEC sp_updateextendedproperty @Property, @Value, ''schema'', @schema, ''view'', @View, DEFAULT, DEFAULT
END
END
ELSE
BEGIN
IF @Value IS NOT NULL AND DATALENGTH(@Value) > 0
EXEC sp_addextendedproperty @Property, @Value, ''schema'', @Schema, ''view'', @View, DEFAULT, DEFAULT
END
END -- Change detected
SET @curColumnId =@curColumnId + 1
END
FETCH NEXT FROM cDaten INTO @Schema, @View
END
CLOSE cDaten
DEALLOCATE cDaten
'
EXEC sp_executeSQL @SQLTrigger
IF @Debug = 1 PRINT @SQLTrigger
GO
CREATE OR ALTER PROC [Documentation].[GenerateExtendedTriggerPropertiesView]
@Debug bit = 0
AS
SET NOCOUNT ON
DECLARE @SQLView nvarchar(max)
DECLARE @SQLTrigger nvarchar(max)
DECLARE @SQLColumn nvarchar(max) = '', @SQLApply nvarchar(max) = ''
DECLARE @columnlist nvarchar(max)
DECLARE @ViewName nvarchar(255), @PropertyName nvarchar(255), @DisplayName nvarchar(255)
SET @ViewName = 'ExtendedTriggerProperties'
DECLARE cProperties CURSOR LOCAL FAST_FORWARD FOR
SELECT propertyname
FROM Documentation.ExtendedPropertiesConfiguration
WHERE objtype = 'TRIGGER'
AND includeinview = 1
ORDER BY columnnumber
OPEN cProperties
FETCH NEXT FROM cProperties INTO @propertyName
WHILE @@FETCH_STATUS = 0
BEGIN
SET @SQLColumn += ', CAST(' + QUOTENAME(@propertyName) + '.value AS nvarchar(4000)) ' + QUOTENAME(@PropertyName)
SET @SQLApply += 'OUTER APPLY ::fn_listextendedproperty(''' + @PropertyName + ''', ''schema'', SCHEMA_NAME(schema_id), CASE WHEN so.type = ''U'' THEN ''TABLE'' WHEN so.type = ''V'' THEN ''VIEW'' WHEN so.type IN (''TF'',''IF'') THEN ''FUNCTION'' ELSE ''UNKNOWN'' END , so.name, ''TRIGGER'', col.name) ' + QUOTENAME(@PropertyName)
SET @columnlist = ISNULL(@columnlist + ', ' + QUOTENAME(@PropertyName) , QUOTENAME(@PropertyName))
FETCH NEXT FROM cProperties INTO @propertyName
END
CLOSE cProperties
DEALLOCATE cProperties
SET @SQLView = 'CREATE OR ALTER VIEW [Documentation].' + QUOTENAME(@ViewName) + '
WITH VIEW_METADATA
AS
SELECT CASE WHEN so.type IN (''U'') THEN ''TABLE'' WHEN so.type IN (''V'') THEN ''VIEW'' WHEN so.type IN (''IF'', ''TF'') THEN ''FUNCTION'' ELSE NULL END OBJECT_TYPE,
CAST(SCHEMA_NAME(Schema_id) AS nvarchar(255)) [SCHEMA_NAME] ,
CAST(so.name AS nvarchar(255)) [OBJECT_NAME] ,
CAST(col.name AS nvarchar(255)) [TRIGGER_NAME]'
SET @SQLView += @SQLColumn
SET @SQLView += '
FROM sys.objects so
INNER JOIN sys.triggers col
ON col.parent_id = so.object_id
'
SET @SQLView += @SQLApply
SET @SQLView += ' WHERE so.type IN (''U'', ''V'') '
IF @Debug = 1 PRINT @SQLView
EXEC sp_executeSQL @SQLView
SET @SQLTrigger = 'CREATE OR ALTER TRIGGER [Documentation].' + QUOTENAME( @ViewName + 'Trigger') + ' ON [Documentation].' + QUOTENAME(@ViewName) + '
INSTEAD OF UPDATE
AS
SET NOCOUNT ON
DECLARE @colBitmap varbinary(2)
DECLARE @NumOfColumns int
DECLARE @Schema varchar(255)
DECLARE @Property varchar(255)
DECLARE @View sysname
DECLARE @Trigger sysname
DECLARE @Value SQL_VARIANT
DECLARE @ObjectType varchar(255)
DECLARE @Changes TABLE (objectType sysname, schemaName sysname, tabName sysName,colname sysname, Value SQL_VARIANT, PropName varchar(255))
DECLARE @curColumnId int = 1
INSERT INTO @Changes
SELECT *
FROM (SELECT * FROM inserted i
UNPIVOT (Res FOR Value IN ( ' + @columnlist + ') ) un ) un
DECLARE cDaten CURSOR FAST_FORWARD FOR
SELECT SCHEMA_NAME,
OBJECT_NAME,
TRIGGER_NAME,
OBJECT_TYPE
FROM inserted i
INNER JOIN sys.objects SO
ON SO.name = OBJECT_NAME AND SCHEMA_NAME(so.SCHEMA_ID) = i.SCHEMA_NAME
OPEN cDaten
FETCH NEXT FROM cDaten INTO @Schema, @View, @Trigger, @ObjectType
WHILE @@FETCH_STATUS = 0
BEGIN
SET @curColumnId = 4 -- ignore first 3 columns
SELECT @NumOfColumns = COUNT(*) FROM sys.columns WHERE OBJECT_ID(''Documentation.' + @ViewName + ''') = object_id
IF @NumOfColumns < 9
SET @colBitmap = SUBSTRING( COLUMNS_UPDATED(), 1, 1)
ELSE
SET @colBitmap = SUBSTRING( COLUMNS_UPDATED(), 2, 1) + SUBSTRING(Columns_UPDATED(), 1,1)
WHILE @curColumnId <= @NumOfColumns
BEGIN
IF @colBitmap & POWER(2, (@curColumnId -1)) = POWER(2, (@curColumnId -1))
BEGIN
SET @Value = NULL
SELECT @Property = name
FROM sys.columns
WHERE OBJECT_ID(''Documentation.' + @ViewName + ''') = object_id
AND column_id = @curColumnId
SELECT @Value = Value
FROM @Changes
WHERE PropName = @Property
AND SchemaName = @Schema
AND TabName = @View
AND ColName = @Trigger
IF EXISTS (SELECT * FROM ::fn_listextendedproperty(@Property, ''schema'', @schema, @ObjectType, @View, ''trigger'', @Trigger))
BEGIN
IF @Value IS NULL OR DATALENGTH(@Value) = 0
BEGIN
EXEC sp_dropextendedproperty @Property, ''schema'', @schema, @ObjectType, @View, ''trigger'', @Trigger
END
ELSE
BEGIN
EXEC sp_updateextendedproperty @Property, @Value, ''schema'', @schema, @ObjectType, @View, ''trigger'', @Trigger
END
END
ELSE
BEGIN
IF @Value IS NOT NULL AND DATALENGTH(@Value) > 0
EXEC sp_addextendedproperty @Property, @Value, ''SCHEMA'', @Schema, @ObjectType, @View, ''trigger'', @Trigger
END
END -- Change detected
SET @curColumnId =@curColumnId + 1
END
FETCH NEXT FROM cDaten INTO @Schema, @View, @Trigger, @ObjectType
END
CLOSE cDaten
DEALLOCATE cDaten
'
EXEC sp_executeSQL @SQLTrigger
IF @Debug = 1 PRINT @SQLTrigger
GO
CREATE OR ALTER PROC [Documentation].[GenerateExtendedProcedurePropertiesView]
@Debug bit = 0
AS
SET NOCOUNT ON
DECLARE @SQLView nvarchar(max)
DECLARE @SQLTrigger nvarchar(max)
DECLARE @SQLColumn nvarchar(max) = '', @SQLApply nvarchar(max) = ''
DECLARE @columnlist nvarchar(max)
DECLARE @ViewName nvarchar(255), @PropertyName nvarchar(255), @DisplayName nvarchar(255)
SET @ViewName = 'ExtendedProcedureProperties'
DECLARE cProperties CURSOR LOCAL FAST_FORWARD FOR
SELECT propertyname --, displayname
FROM Documentation.ExtendedPropertiesConfiguration
WHERE objtype IN ('PROCEDURE')
AND includeinview = 1
ORDER BY columnnumber
OPEN cProperties
FETCH NEXT FROM cProperties INTO @propertyName --, @DisplayName
WHILE @@FETCH_STATUS = 0
BEGIN
SET @SQLColumn += ', CAST(' + QUOTENAME(@propertyName) + '.value AS nvarchar(4000)) ' + QUOTENAME(@PropertyName)
SET @SQLApply += 'OUTER APPLY ::fn_listextendedproperty(''' + @PropertyName + ''', ''schema'', SCHEMA_NAME(schema_id), ''PROCEDURE'', fun.name, DEFAULT, DEFAULT) ' + QUOTENAME(@PropertyName)
SET @columnlist = ISNULL(@columnlist + ', ' + QUOTENAME(@PropertyName) , QUOTENAME(@PropertyName))
FETCH NEXT FROM cProperties INTO @propertyName --, @DisplayName
END
CLOSE cProperties
DEALLOCATE cProperties
SET @SQLView = 'CREATE OR ALTER VIEW [Documentation].' + QUOTENAME(@ViewName) + '
WITH VIEW_METADATA
AS
SELECT CAST(SCHEMA_NAME(Schema_id) AS nvarchar(255)) [SCHEMA_NAME] ,
CAST(fun.name AS nvarchar(255)) [OBJECT_NAME] '
SET @SQLView += @SQLColumn
SET @SQLView += '
FROM sys.procedures fun
'
SET @SQLView += @SQLApply
IF @Debug = 1 PRINT @SQLView
EXEC sp_executeSQL @SQLView
SET @SQLTrigger = 'CREATE OR ALTER TRIGGER [Documentation].' + QUOTENAME( @ViewName + 'Trigger') + ' ON [Documentation].' + QUOTENAME(@ViewName) + '
INSTEAD OF UPDATE
AS
SET NOCOUNT ON
DECLARE @colBitmap varbinary(2)
DECLARE @NumOfColumns int
DECLARE @Schema varchar(255)
DECLARE @Property varchar(255)
DECLARE @Table sysname
DECLARE @Value SQL_VARIANT
DECLARE @Changes TABLE (schemaName sysname, tabName sysName, Value SQL_VARIANT, PropName varchar(255))
DECLARE @curColumnId int = 1
INSERT INTO @Changes
SELECT *
FROM (SELECT * FROM inserted i
UNPIVOT (Res FOR Value IN ( ' + @columnlist + ') ) un ) un
DECLARE cDaten CURSOR FAST_FORWARD FOR
SELECT SCHEMA_NAME,
OBJECT_NAME
FROM inserted i
OPEN cDaten
FETCH NEXT FROM cDaten INTO @Schema, @Table
WHILE @@FETCH_STATUS = 0
BEGIN
SET @curColumnId = 3 -- ignore first 2columns
SELECT @NumOfColumns = COUNT(*) FROM sys.columns WHERE OBJECT_ID(''Documentation.' + @ViewName + ''') = object_id
IF @NumOfColumns < 9
SET @colBitmap = SUBSTRING( COLUMNS_UPDATED(), 1, 1)
ELSE
SET @colBitmap = SUBSTRING( COLUMNS_UPDATED(), 2, 1) + SUBSTRING(Columns_UPDATED(), 1,1)
WHILE @curColumnId <= @NumOfColumns
BEGIN
IF @colBitmap & POWER(2, (@curColumnId -1)) = POWER(2, (@curColumnId -1))
BEGIN
SET @Value = NULL
SELECT @Property = name
FROM sys.columns
WHERE OBJECT_ID(''Documentation.' + @ViewName + ''') = object_id
AND column_id = @curColumnId
SELECT @Value = Value
FROM @Changes
WHERE PropName = @Property
AND SchemaName = @Schema
AND TabName = @Table
IF EXISTS (SELECT * FROM ::fn_listextendedproperty(@Property, ''schema'', @schema, ''PROCEDURE'', @Table, DEFAULT, DEFAULT))
BEGIN
IF @Value IS NULL OR DATALENGTH(@Value) = 0
BEGIN
EXEC sp_dropextendedproperty @Property, ''schema'', @schema, ''PROCEDURE'', @Table, DEFAULT, DEFAULT
END
ELSE
BEGIN
EXEC sp_updateextendedproperty @Property, @Value, ''schema'', @schema, ''PROCEDURE'', @Table, DEFAULT, DEFAULT
END
END
ELSE
BEGIN
IF @Value IS NOT NULL AND DATALENGTH(@Value) > 0
EXEC sp_addextendedproperty @Property, @Value, ''schema'', @Schema, ''PROCEDURE'', @Table, DEFAULT, DEFAULT
END
END -- Change detected
SET @curColumnId =@curColumnId + 1
END
FETCH NEXT FROM cDaten INTO @Schema, @Table
END
CLOSE cDaten
DEALLOCATE cDaten
'
EXEC sp_executeSQL @SQLTrigger
IF @Debug = 1 PRINT @SQLTrigger
GO
CREATE OR ALTER PROC [Documentation].[GenerateExtendedFunctionPropertiesView]
@Debug bit = 0
AS
SET NOCOUNT ON
DECLARE @SQLView nvarchar(max)
DECLARE @SQLTrigger nvarchar(max)
DECLARE @SQLColumn nvarchar(max) = '', @SQLApply nvarchar(max) = ''
DECLARE @columnlist nvarchar(max)
DECLARE @ViewName nvarchar(255), @PropertyName nvarchar(255), @DisplayName nvarchar(255)
SET @ViewName = 'ExtendedFunctionProperties'
DECLARE cProperties CURSOR LOCAL FAST_FORWARD FOR
SELECT propertyname --, displayname
FROM Documentation.ExtendedPropertiesConfiguration
WHERE objtype IN ('FUNCTION')
AND includeinview = 1
ORDER BY columnnumber
OPEN cProperties
FETCH NEXT FROM cProperties INTO @propertyName --, @DisplayName
WHILE @@FETCH_STATUS = 0
BEGIN
SET @SQLColumn += ', CAST(' + QUOTENAME(@propertyName) + '.value AS nvarchar(4000)) ' + QUOTENAME(@PropertyName)
SET @SQLApply += 'OUTER APPLY ::fn_listextendedproperty(''' + @PropertyName + ''', ''schema'', SCHEMA_NAME(schema_id), ''FUNCTION'', fun.name, DEFAULT, DEFAULT) ' + QUOTENAME(@PropertyName)
SET @columnlist = ISNULL(@columnlist + ', ' + QUOTENAME(@PropertyName) , QUOTENAME(@PropertyName))
FETCH NEXT FROM cProperties INTO @propertyName --, @DisplayName
END
CLOSE cProperties
DEALLOCATE cProperties
SET @SQLView = 'CREATE OR ALTER VIEW [Documentation].' + QUOTENAME(@ViewName) + '
WITH VIEW_METADATA
AS
SELECT CAST(SCHEMA_NAME(Schema_id) AS nvarchar(255)) [SCHEMA_NAME] ,
CAST(fun.name AS nvarchar(255)) [OBJECT_NAME] '
SET @SQLView += @SQLColumn
SET @SQLView += '
FROM sys.objects fun
'
SET @SQLView += @SQLApply
SET @SQLView += ' WHERE type IN (''FN'', ''IF'', ''TF'')'
IF @Debug = 1 PRINT @SQLView
EXEC sp_executeSQL @SQLView
SET @SQLTrigger = 'CREATE OR ALTER TRIGGER [Documentation].' + QUOTENAME( @ViewName + 'Trigger') + ' ON [Documentation].' + QUOTENAME(@ViewName) + '
INSTEAD OF UPDATE
AS
SET NOCOUNT ON
DECLARE @colBitmap varbinary(2)
DECLARE @NumOfColumns int
DECLARE @Schema varchar(255)
DECLARE @Property varchar(255)
DECLARE @Table sysname
DECLARE @Value SQL_VARIANT
DECLARE @Changes TABLE (schemaName sysname, tabName sysName, Value SQL_VARIANT, PropName varchar(255))
DECLARE @curColumnId int = 1
INSERT INTO @Changes
SELECT *
FROM (SELECT * FROM inserted i
UNPIVOT (Res FOR Value IN ( ' + @columnlist + ') ) un ) un
DECLARE cDaten CURSOR FAST_FORWARD FOR
SELECT SCHEMA_NAME,
OBJECT_NAME
FROM inserted i
OPEN cDaten
FETCH NEXT FROM cDaten INTO @Schema, @Table
WHILE @@FETCH_STATUS = 0
BEGIN
SET @curColumnId = 3 -- ignore first 2columns
SELECT @NumOfColumns = COUNT(*) FROM sys.columns WHERE OBJECT_ID(''Documentation.' + @ViewName + ''') = object_id
IF @NumOfColumns < 9
SET @colBitmap = SUBSTRING( COLUMNS_UPDATED(), 1, 1)
ELSE
SET @colBitmap = SUBSTRING( COLUMNS_UPDATED(), 2, 1) + SUBSTRING(Columns_UPDATED(), 1,1)
WHILE @curColumnId <= @NumOfColumns
BEGIN
IF @colBitmap & POWER(2, (@curColumnId -1)) = POWER(2, (@curColumnId -1))
BEGIN
SET @Value = NULL
SELECT @Property = name
FROM sys.columns
WHERE OBJECT_ID(''Documentation.' + @ViewName + ''') = object_id
AND column_id = @curColumnId
SELECT @Value = Value
FROM @Changes
WHERE PropName = @Property
AND SchemaName = @Schema
AND TabName = @Table
IF EXISTS (SELECT * FROM ::fn_listextendedproperty(@Property, ''schema'', @schema, ''FUNCTION'', @Table, DEFAULT, DEFAULT))
BEGIN
IF @Value IS NULL OR DATALENGTH(@Value) = 0
BEGIN
EXEC sp_dropextendedproperty @Property, ''schema'', @schema, ''FUNCTION'', @Table, DEFAULT, DEFAULT
END
ELSE
BEGIN
EXEC sp_updateextendedproperty @Property, @Value, ''schema'', @schema, ''FUNCTION'', @Table, DEFAULT, DEFAULT
END
END
ELSE
BEGIN
IF @Value IS NOT NULL AND DATALENGTH(@Value) > 0
EXEC sp_addextendedproperty @Property, @Value, ''schema'', @Schema, ''FUNCTION'', @Table, DEFAULT, DEFAULT
END
END -- Change detected
SET @curColumnId =@curColumnId + 1
END
FETCH NEXT FROM cDaten INTO @Schema, @Table
END
CLOSE cDaten
DEALLOCATE cDaten
'
EXEC sp_executeSQL @SQLTrigger
IF @Debug = 1 PRINT @SQLTrigger
GO
CREATE OR ALTER PROC [Documentation].[GenerateExtendedColumnPropertiesView]
@Debug bit = 0
AS
SET NOCOUNT ON
DECLARE @SQLView nvarchar(max)
DECLARE @SQLTrigger nvarchar(max)
DECLARE @SQLColumn nvarchar(max) = '', @SQLApply nvarchar(max) = ''
DECLARE @columnlist nvarchar(max)
DECLARE @ViewName nvarchar(255), @PropertyName nvarchar(255), @DisplayName nvarchar(255)
SET @ViewName = 'ExtendedColumnProperties'
DECLARE cProperties CURSOR LOCAL FAST_FORWARD FOR
SELECT propertyname --, displayname
FROM Documentation.ExtendedPropertiesConfiguration
WHERE objtype = 'COLUMN'
AND includeinview = 1
ORDER BY columnnumber
OPEN cProperties
FETCH NEXT FROM cProperties INTO @propertyName --, @DisplayName
WHILE @@FETCH_STATUS = 0
BEGIN
SET @SQLColumn += ', CAST(' + QUOTENAME(@propertyName) + '.value AS nvarchar(4000)) ' + QUOTENAME(@PropertyName)
SET @SQLApply += 'OUTER APPLY ::fn_listextendedproperty(''' + @PropertyName + ''', ''schema'', SCHEMA_NAME(schema_id), CASE WHEN so.type = ''U'' THEN ''TABLE'' WHEN so.type = ''V'' THEN ''VIEW'' WHEN so.type IN (''TF'',''IF'') THEN ''FUNCTION'' ELSE ''UNKNOWN'' END , so.name, ''COLUMN'', col.name) ' + QUOTENAME(@PropertyName)
SET @columnlist = ISNULL(@columnlist + ', ' + QUOTENAME(@PropertyName) , QUOTENAME(@PropertyName))
FETCH NEXT FROM cProperties INTO @propertyName --, @DisplayName
END
CLOSE cProperties
DEALLOCATE cProperties
SET @SQLView = 'CREATE OR ALTER VIEW [Documentation].' + QUOTENAME(@ViewName) + '
WITH VIEW_METADATA
AS
SELECT CAST(SCHEMA_NAME(Schema_id) AS nvarchar(255)) [SCHEMA_NAME] ,
CAST(so.name AS nvarchar(255)) [OBJECT_NAME] ,
CAST(col.name AS nvarchar(255)) [COLUMN_NAME]'
SET @SQLView += @SQLColumn
SET @SQLView += '
FROM sys.objects so
INNER JOIN sys.columns col
ON col.object_id = so.object_id
'
SET @SQLView += @SQLApply
SET @SQLView += ' WHERE so.type IN (''U'', ''V'', ''IF'', ''TF'') '
IF @Debug = 1 PRINT @SQLView
EXEC sp_executeSQL @SQLView
SET @SQLTrigger = 'CREATE OR ALTER TRIGGER [Documentation].' + QUOTENAME( @ViewName + 'Trigger') + ' ON [Documentation].' + QUOTENAME(@ViewName) + '
INSTEAD OF UPDATE
AS
SET NOCOUNT ON
DECLARE @colBitmap varbinary(2)
DECLARE @NumOfColumns int
DECLARE @Schema varchar(255)
DECLARE @Property varchar(255)
DECLARE @View sysname
DECLARE @Column sysname
DECLARE @Value SQL_VARIANT
DECLARE @ObjectType varchar(255)
DECLARE @Changes TABLE (schemaName sysname, tabName sysName,colname sysname, Value SQL_VARIANT, PropName varchar(255))
DECLARE @curColumnId int = 1
INSERT INTO @Changes
SELECT *
FROM (SELECT * FROM inserted i
UNPIVOT (Res FOR Value IN ( ' + @columnlist + ') ) un ) un
DECLARE cDaten CURSOR FAST_FORWARD FOR
SELECT SCHEMA_NAME,
OBJECT_NAME,
COLUMN_NAME,
CASE WHEN so.type IN (''U'') THEN ''TABLE'' WHEN so.type IN (''V'') THEN ''VIEW'' WHEN so.type IN (''IF'', ''TF'') THEN ''FUNCTION'' ELSE NULL END
FROM inserted i
INNER JOIN sys.objects SO
ON SO.name = OBJECT_NAME AND SCHEMA_NAME(so.SCHEMA_ID) = i.SCHEMA_NAME
OPEN cDaten
FETCH NEXT FROM cDaten INTO @Schema, @View, @Column, @ObjectType
WHILE @@FETCH_STATUS = 0
BEGIN
SET @curColumnId = 4 -- ignore first 3 columns
SELECT @NumOfColumns = COUNT(*) FROM sys.columns WHERE OBJECT_ID(''Documentation.' + @ViewName + ''') = object_id
IF @NumOfColumns < 9
SET @colBitmap = SUBSTRING( COLUMNS_UPDATED(), 1, 1)
ELSE
SET @colBitmap = SUBSTRING( COLUMNS_UPDATED(), 2, 1) + SUBSTRING(Columns_UPDATED(), 1,1)
WHILE @curColumnId <= @NumOfColumns
BEGIN
IF @colBitmap & POWER(2, (@curColumnId -1)) = POWER(2, (@curColumnId -1))
BEGIN
SET @Value = NULL
SELECT @Property = name
FROM sys.columns
WHERE OBJECT_ID(''Documentation.' + @ViewName + ''') = object_id
AND column_id = @curColumnId
SELECT @Value = Value
FROM @Changes
WHERE PropName = @Property
AND SchemaName = @Schema
AND TabName = @View
AND ColName = @Column
IF EXISTS (SELECT * FROM ::fn_listextendedproperty(@Property, ''schema'', @schema, @ObjectType, @View, ''column'', @Column))
BEGIN
IF @Value IS NULL OR DATALENGTH(@Value) = 0
BEGIN
EXEC sp_dropextendedproperty @Property, ''schema'', @schema, @ObjectType, @View, ''column'', @Column
END
ELSE
BEGIN
EXEC sp_updateextendedproperty @Property, @Value, ''schema'', @schema, @ObjectType, @View, ''column'', @Column
END
END
ELSE
BEGIN
IF @Value IS NOT NULL AND DATALENGTH(@Value) > 0
EXEC sp_addextendedproperty @Property, @Value, ''SCHEMA'', @Schema, @ObjectType, @View, ''COLUMN'', @Column
END
END -- Change detected
SET @curColumnId =@curColumnId + 1
END
FETCH NEXT FROM cDaten INTO @Schema, @View, @Column, @ObjectType
END
CLOSE cDaten
DEALLOCATE cDaten
'
EXEC sp_executeSQL @SQLTrigger
IF @Debug = 1 PRINT @SQLTrigger
GO
CREATE OR ALTER PROC [Documentation].[GenerateExtendedParameterPropertiesView]
@Debug bit = 0
AS
SET NOCOUNT ON
DECLARE @SQLView nvarchar(max)
DECLARE @SQLTrigger nvarchar(max)
DECLARE @SQLColumn nvarchar(max) = '', @SQLApply nvarchar(max) = ''
DECLARE @columnlist nvarchar(max)
DECLARE @ViewName nvarchar(255), @PropertyName nvarchar(255), @DisplayName nvarchar(255)
SET @ViewName = 'ExtendedParameterProperties'
DECLARE cProperties CURSOR LOCAL FAST_FORWARD FOR
SELECT propertyname --, displayname
FROM Documentation.ExtendedPropertiesConfiguration
WHERE objtype = 'COLUMN'
AND includeinview = 1
ORDER BY columnnumber
OPEN cProperties
FETCH NEXT FROM cProperties INTO @propertyName --, @DisplayName
WHILE @@FETCH_STATUS = 0
BEGIN
SET @SQLColumn += ', CAST(' + QUOTENAME(@propertyName) + '.value AS nvarchar(4000)) ' + QUOTENAME(@PropertyName)
SET @SQLApply += 'OUTER APPLY ::fn_listextendedproperty(''' + @PropertyName + ''', ''schema'', SCHEMA_NAME(schema_id), CASE WHEN so.type = ''P'' THEN ''PROCEDURE'' WHEN so.type IN (''TF'',''IF'', ''FN'') THEN ''FUNCTION'' ELSE ''UNKNOWN'' END , so.name, ''PARAMETER'', par.name) ' + QUOTENAME(@PropertyName)
SET @columnlist = ISNULL(@columnlist + ', ' + QUOTENAME(@PropertyName) , QUOTENAME(@PropertyName))
FETCH NEXT FROM cProperties INTO @propertyName --, @DisplayName
END
CLOSE cProperties
DEALLOCATE cProperties
SET @SQLView = 'CREATE OR ALTER VIEW [Documentation].' + QUOTENAME(@ViewName) + '
WITH VIEW_METADATA
AS
SELECT CAST(CASE WHEN type IN (''P'') THEN ''PROCEDURE''
WHEN type IN (''IF'', ''FN'', ''TF'') THEN ''FUNCTION''
ELSE ''UNKNOWN'' END AS nvarchar(255)) [OBJECT_TYPE],
CAST(SCHEMA_NAME(Schema_id) AS nvarchar(255)) [SCHEMA_NAME] ,
CAST(so.name AS nvarchar(255)) [OBJECT_NAME] ,
CAST(par.name AS nvarchar(255)) [PARAMETER_NAME]'
SET @SQLView += @SQLColumn
SET @SQLView += '
FROM sys.objects so
INNER JOIN sys.parameters par
ON par.object_id = so.object_id
'
SET @SQLView += @SQLApply
SET @SQLView += ' WHERE so.type IN (''P'', ''FN'', ''IF'', ''TF'') AND Parameter_ID > 0'
IF @Debug = 1 PRINT @SQLView
EXEC sp_executeSQL @SQLView
SET @SQLTrigger = 'CREATE OR ALTER TRIGGER [Documentation].' + QUOTENAME( @ViewName + 'Trigger') + ' ON [Documentation].' + QUOTENAME(@ViewName) + '
INSTEAD OF UPDATE
AS
SET NOCOUNT ON
DECLARE @colBitmap varbinary(2)
DECLARE @NumOfColumns int
DECLARE @Schema varchar(255)
DECLARE @Property varchar(255)
DECLARE @View sysname
DECLARE @Parameter sysname
DECLARE @Value SQL_VARIANT
DECLARE @ObjectType varchar(255)
DECLARE @Changes TABLE (objecttype sysname, schemaName sysname, tabName sysName,colname sysname, Value SQL_VARIANT, PropName varchar(255))
DECLARE @curColumnId int = 1
INSERT INTO @Changes
SELECT *
FROM (SELECT * FROM inserted i
UNPIVOT (Res FOR Value IN ( ' + @columnlist + ') ) un ) un
DECLARE cDaten CURSOR FAST_FORWARD FOR
SELECT SCHEMA_NAME,
OBJECT_NAME,
NULLIF(PARAMETER_NAME, ''''),
OBJECT_TYPE
FROM inserted i
INNER JOIN sys.objects SO
ON SO.name = OBJECT_NAME AND SCHEMA_NAME(so.SCHEMA_ID) = i.SCHEMA_NAME
OPEN cDaten
FETCH NEXT FROM cDaten INTO @Schema, @View, @Parameter, @ObjectType
WHILE @@FETCH_STATUS = 0
BEGIN
SET @curColumnId = 5 -- ignore first 4 columns
SELECT @NumOfColumns = COUNT(*) FROM sys.columns WHERE OBJECT_ID(''Documentation.' + @ViewName + ''') = object_id
IF @NumOfColumns < 9
SET @colBitmap = SUBSTRING( COLUMNS_UPDATED(), 1, 1)
ELSE
SET @colBitmap = SUBSTRING( COLUMNS_UPDATED(), 2, 1) + SUBSTRING(Columns_UPDATED(), 1,1)
WHILE @curColumnId <= @NumOfColumns
BEGIN
IF @colBitmap & POWER(2, (@curColumnId -1)) = POWER(2, (@curColumnId -1))
BEGIN
SET @Value = NULL
SELECT @Property = name
FROM sys.columns
WHERE OBJECT_ID(''Documentation.' + @ViewName + ''') = object_id
AND column_id = @curColumnId
SELECT @Value = Value
FROM @Changes
WHERE PropName = @Property
AND SchemaName = @Schema
AND TabName = @View
AND ColName = @Parameter
IF EXISTS (SELECT * FROM ::fn_listextendedproperty(@Property, ''schema'', @schema, @ObjectType, @View, ''PARAMETER'', @Parameter))
BEGIN
IF @Value IS NULL OR DATALENGTH(@Value) = 0
BEGIN
EXEC sp_dropextendedproperty @Property, ''schema'', @schema, @ObjectType, @View, ''PARAMETER'', @Parameter
END
ELSE
BEGIN
EXEC sp_updateextendedproperty @Property, @Value, ''schema'', @schema, @ObjectType, @View, ''PARAMETER'', @Parameter
END
END
ELSE
BEGIN
IF @Value IS NOT NULL AND DATALENGTH(@Value) > 0
EXEC sp_addextendedproperty @Property, @Value, ''SCHEMA'', @Schema, @ObjectType, @View, ''PARAMETER'', @Parameter
END
END -- Change detected
SET @curColumnId =@curColumnId + 1
END
FETCH NEXT FROM cDaten INTO @Schema, @View, @Parameter, @ObjectType
END
CLOSE cDaten
DEALLOCATE cDaten
'
EXEC sp_executeSQL @SQLTrigger
IF @Debug = 1 PRINT @SQLTrigger
GO
CREATE OR ALTER PROC [Documentation].[GenerateExtendedForeignKeyPropertiesView]
@Debug bit = 0
AS
SET NOCOUNT ON
DECLARE @SQLView nvarchar(max)
DECLARE @SQLTrigger nvarchar(max)
DECLARE @SQLColumn nvarchar(max) = '', @SQLApply nvarchar(max) = ''
DECLARE @columnlist nvarchar(max)
DECLARE @ViewName nvarchar(255), @PropertyName nvarchar(255), @DisplayName nvarchar(255)
SET @ViewName = 'ExtendedForeignKeyProperties'
DECLARE cProperties CURSOR LOCAL FAST_FORWARD FOR
SELECT propertyname --, displayname
FROM Documentation.ExtendedPropertiesConfiguration
WHERE objtype = 'CONSTRAINT'
AND includeinview = 1
ORDER BY columnnumber
OPEN cProperties
FETCH NEXT FROM cProperties INTO @propertyName --, @DisplayName
WHILE @@FETCH_STATUS = 0
BEGIN
SET @SQLColumn += ', CAST(' + QUOTENAME(@propertyName) + '.value AS nvarchar(4000)) ' + QUOTENAME(@PropertyName)
SET @SQLApply += 'OUTER APPLY ::fn_listextendedproperty(''' + @PropertyName + ''', ''schema'', SCHEMA_NAME(tab.schema_id), ''TABLE'', tab.name, ''CONSTRAINT'', fok.name) ' + QUOTENAME(@PropertyName)
SET @columnlist = ISNULL(@columnlist + ', ' + QUOTENAME(@PropertyName) , QUOTENAME(@PropertyName))
FETCH NEXT FROM cProperties INTO @propertyName --, @DisplayName
END
CLOSE cProperties
DEALLOCATE cProperties
SET @SQLView = 'CREATE OR ALTER VIEW [Documentation].' + QUOTENAME(@ViewName) + '
WITH VIEW_METADATA
AS
SELECT CAST(SCHEMA_NAME(tab.Schema_id) AS nvarchar(255)) [SCHEMA_NAME] ,
CAST(tab.name AS nvarchar(255)) [OBJECT_NAME] ,
CAST(fok.name AS nvarchar(255)) [FOREIGNKEY_NAME]'
SET @SQLView += @SQLColumn
SET @SQLView += '
FROM sys.tables tab
INNER JOIN sys.foreign_keys fok
ON tab.object_id = fok.parent_object_id
'
SET @SQLView += @SQLApply
--SET @SQLView += ' WHERE so.type IN (''U'', ''V'') '
IF @Debug = 1 PRINT @SQLView
EXEC sp_executeSQL @SQLView
SET @SQLTrigger = 'CREATE OR ALTER TRIGGER [Documentation].' + QUOTENAME( @ViewName + 'Trigger') + ' ON [Documentation].' + QUOTENAME(@ViewName) + '
INSTEAD OF UPDATE
AS
SET NOCOUNT ON
DECLARE @colBitmap varbinary(2)
DECLARE @NumOfColumns int
DECLARE @Schema varchar(255)
DECLARE @Property varchar(255)
DECLARE @View sysname
DECLARE @forkey sysname
DECLARE @Value SQL_VARIANT
DECLARE @ObjectType varchar(255)
DECLARE @curColumnIdd int
DECLARE @Changes TABLE (schemaName sysname, tabName sysName, colname sysname, Value SQL_VARIANT, PropName varchar(255))
DECLARE @curColumnId int = 1
INSERT INTO @Changes
SELECT *
FROM (SELECT * FROM inserted i
UNPIVOT (Res FOR Value IN ( ' + @columnlist + ') ) un ) un
DECLARE cDaten CURSOR FAST_FORWARD FOR
SELECT SCHEMA_NAME,
OBJECT_NAME,
FOREIGNKEY_NAME
FROM inserted i
INNER JOIN sys.objects SO
ON SO.name = OBJECT_NAME AND SCHEMA_NAME(so.SCHEMA_ID) = i.SCHEMA_NAME
OPEN cDaten
FETCH NEXT FROM cDaten INTO @Schema, @View, @forkey --, @ObjectType
WHILE @@FETCH_STATUS = 0
BEGIN
SET @curColumnId = 4 -- ignore first 3 columns
SELECT @NumOfColumns = COUNT(*) FROM sys.columns WHERE OBJECT_ID(''Documentation.' + @ViewName + ''') = object_id
IF @NumOfColumns < 9
SET @colBitmap = SUBSTRING( COLUMNS_UPDATED(), 1, 1)
ELSE
SET @colBitmap = SUBSTRING( COLUMNS_UPDATED(), 2, 1) + SUBSTRING(Columns_UPDATED(), 1,1)
WHILE @curColumnId <= @NumOfColumns
BEGIN
IF @colBitmap & POWER(2, (@curColumnId -1)) = POWER(2, (@curColumnId -1))
BEGIN
SET @Value = NULL
SELECT @Property = name
FROM sys.columns
WHERE OBJECT_ID(''Documentation.' + @ViewName + ''') = object_id
AND column_id = @curColumnId
SELECT @Value = Value
FROM @Changes
WHERE PropName = @Property
AND SchemaName = @Schema
AND TabName = @View
AND ColName = @forkey
IF EXISTS (SELECT * FROM ::fn_listextendedproperty(@Property, ''schema'', @schema, ''TABLE'', @View, ''constraint'', @forkey))
BEGIN
IF @Value IS NULL OR DATALENGTH(@Value) = 0
BEGIN
EXEC sp_dropextendedproperty @Property, ''schema'', @schema, ''TABLE'', @View, ''constraint'', @forkey
END
ELSE
BEGIN
EXEC sp_updateextendedproperty @Property, @Value, ''schema'', @schema, ''TABLE'', @View, ''constraint'', @forkey
END
END
ELSE
BEGIN
IF @Value IS NOT NULL AND DATALENGTH(@Value) > 0
EXEC sp_addextendedproperty @Property, @Value, ''SCHEMA'', @Schema, ''TABLE'', @View, ''constraint'', @forkey
END
END -- Change detected
SET @curColumnId =@curColumnId + 1
END
FETCH NEXT FROM cDaten INTO @Schema, @View, @forkey --, @ObjectType
END
CLOSE cDaten
DEALLOCATE cDaten
'
EXEC sp_executeSQL @SQLTrigger
IF @Debug = 1 PRINT @SQLTrigger
GO
EXEC Documentation.GenerateExtendedTablePropertiesView
EXEC Documentation.GenerateExtendedViewPropertiesView
EXEC Documentation.GenerateExtendedProcedurePropertiesView
EXEC Documentation.GenerateExtendedFunctionPropertiesView
EXEC Documentation.GenerateExtendedForeignKeyPropertiesView
EXEC Documentation.GenerateExtendedTriggerPropertiesView
EXEC Documentation.GenerateExtendedParameterPropertiesView
| 39.917722
| 778
| 0.703028
|
8d96394e98983643857ebba0f2e2d927643872e0
| 7,153
|
js
|
JavaScript
|
src/js/QuartzCore/CAKeyframeAnimation.js
|
browniefed/JSceneKit
|
4f4939bd6b57eff9830bb038add1fb5fbac289aa
|
[
"MIT"
] | 71
|
2017-04-09T11:33:55.000Z
|
2022-02-26T17:08:58.000Z
|
src/js/QuartzCore/CAKeyframeAnimation.js
|
browniefed/JSceneKit
|
4f4939bd6b57eff9830bb038add1fb5fbac289aa
|
[
"MIT"
] | 6
|
2017-10-20T00:29:57.000Z
|
2020-05-18T16:55:41.000Z
|
src/js/QuartzCore/CAKeyframeAnimation.js
|
browniefed/JSceneKit
|
4f4939bd6b57eff9830bb038add1fb5fbac289aa
|
[
"MIT"
] | 12
|
2017-09-05T14:20:32.000Z
|
2021-01-18T02:34:12.000Z
|
'use strict'
import CAPropertyAnimation from './CAPropertyAnimation'
//import CGPath from '../CoreGraphics/CGPath'
//import CAMediaTimingFunction from './CAMediaTimingFunction'
import * as Constants from '../constants'
/**
* An object that provides keyframe animation capabilities for a layer object.
* @access public
* @extends {CAPropertyAnimation}
* @see https://developer.apple.com/documentation/quartzcore/cakeyframeanimation
*/
export default class CAKeyframeAnimation extends CAPropertyAnimation {
static get _propTypes() {
return {
duration: 'integer',
fillMode: 'string',
keyPath: 'string',
keyTimes: 'LKNSArrayCodingProxy',
removedOnCompletion: ['boolean', 'isRemovedOnCompletion'],
timingFunctions: 'LKNSArrayCodingProxy',
values: 'LKNSArrayCodingProxy',
__CACodingContents: 'NSArray'
}
}
// Creating an Animation
/**
* Creates and returns an CAKeyframeAnimation instance for the specified key path.
* @access public
* @constructor
* @param {?string} path -
*/
constructor(path) {
super(path)
// Providing keyframe values
/**
* An array of objects that specify the keyframe values to use for the animation.
* @type {?Object[]}
* @see https://developer.apple.com/documentation/quartzcore/cakeyframeanimation/1412498-values
*/
this.values = null
/**
* The path for a point-based property to follow.
* @type {?CGPath}
* @see https://developer.apple.com/documentation/quartzcore/cakeyframeanimation/1412474-path
*/
this.path = null
// Keyframe timing
/**
* An optional array of NSNumber objects that define the time at which to apply a given keyframe segment.
* @type {?number[]}
* @see https://developer.apple.com/documentation/quartzcore/cakeyframeanimation/1412522-keytimes
*/
this.keyTimes = null
/**
* An optional array of CAMediaTimingFunction objects that define the pacing for each keyframe segment.
* @type {?CAMediaTimingFunction[]}
* @see https://developer.apple.com/documentation/quartzcore/cakeyframeanimation/1412465-timingfunctions
*/
this.timingFunctions = null
/**
* Specifies how intermediate keyframe values are calculated by the receiver.
* @type {string}
* @see https://developer.apple.com/documentation/quartzcore/cakeyframeanimation/1412500-calculationmode
*/
this.calculationMode = Constants.kCAAnimationLinear
// Rotation Mode Attribute
/**
* Determines whether objects animating along the path rotate to match the path tangent.
* @type {?string}
* @see https://developer.apple.com/documentation/quartzcore/cakeyframeanimation/1412454-rotationmode
*/
this.rotationMode = null
// Cubic Mode Attributes
/**
* An array of NSNumber objects that define the tightness of the curve.
* @type {?number[]}
* @see https://developer.apple.com/documentation/quartzcore/cakeyframeanimation/1412475-tensionvalues
*/
this.tensionValues = null
/**
* An array of NSNumber objects that define the sharpness of the timing curve’s corners.
* @type {?number[]}
* @see https://developer.apple.com/documentation/quartzcore/cakeyframeanimation/1412491-continuityvalues
*/
this.continuityValues = null
/**
* An array of NSNumber objects that define the position of the curve relative to a control point.
* @type {?number[]}
* @see https://developer.apple.com/documentation/quartzcore/cakeyframeanimation/1412485-biasvalues
*/
this.biasValues = null
/**
* @access private
* @type {number}
*/
this._indexCache = 0
}
/**
* @access public
* @returns {CAKeyframeAnimation} -
*/
copy() {
const anim = super.copy()
anim.values = this.values ? this.values.slice() : null
anim.path = this.path
anim.keyTimes = this.keyTimes ? this.keyTimes.slice() : null
anim.timingFunctions = this.timingFunctions ? this.timingFunctions.slice() : null
anim.calculationMode = this.calculationMode
anim.rotationMode = this.rotationMode
anim.tensionValues = this.tensionValues ? this.tensionValues.slice() : null
anim.continuityValues = this.continuityValues ? this.continuityValues.slice() : null
anim.biasValues = this.biasValues ? this.biasValues.slice() : null
return anim
}
/**
* apply animation to the given node.
* @access private
* @param {Object} obj - target object to apply this animation.
* @param {number} time - active time
* @param {boolean} [needTimeConversion = true] -
* @returns {void}
*/
_applyAnimation(obj, time, needTimeConversion = true) {
let t = time
if(needTimeConversion){
const baseTime = this._basetimeFromTime(time)
t = baseTime
}
let index = this._indexCache
let key0 = 0
let key1 = 0
if(t > 1){
throw new Error(`CAKeyframeAnimation._applyAnimation: t ${t} > 1`)
}
const len = this.keyTimes.length
if(index >= len){
console.log(`CAKeyframeAnimation index >= len ${index} >= ${len}`)
index = len - 1
}
// search keyTime linearly
if(this.keyTimes[index] < t){
for(; index < len; index++){
if(this.keyTimes[index] >= t)
break
}
key0 = index - 1
key1 = index
}else{
for(; index >= 0; index--){
if(this.keyTimes[index] < t)
break
}
key0 = index
key1 = index + 1
}
if(key0 <= 0){
key0 = 0
}
if(key1 >= len){
key1 = len - 1
}
this._indexCache = key0
const time0 = this.keyTimes[key0]
const time1 = this.keyTimes[key1]
const val0 = this.values[key0]
const val1 = this.values[key1]
let value = val0
if(time0 !== time1){
const dt = (t - time0) / (time1 - time0)
let r = dt
if(this.timingFunctions !== null){
r = this.timingFunctions[key0]._getValueAtTime(dt)
}
switch(this.calculationMode){
case Constants.kCAAnimationLinear:
value = this._lerp(val0, val1, r)
break
case Constants.kCAAnimationDiscrete:
// TODO: implement
throw new Error('kCAAnimationDiscrete not implemented')
case Constants.kCAAnimationPaced:
// TODO: implement
throw new Error('kCAAnimationPaced not implemented')
case Constants.kCAAnimationCubic:
// TODO: implement
throw new Error('kCAAnimationCubic not implemented')
case Constants.kCAAnimationCubicPaced:
// TODO: impelement
throw new Error('kCAAnimationCubicPaced not implemented')
default:
throw new Error(`unknown calculation mode: ${this.calculationMode}`)
}
//console.log(`t: ${t}, time0: ${time0}, time1: ${time1}, dt: ${dt}, r: ${r}, value: ${value}`)
}else{
//console.log(`t: ${t}, time0: ${time0}, time1: ${time1}, value: ${value}`)
}
value = this._calculateWithBaseValue(obj, value)
this._applyValue(obj, value)
this._handleEvents(obj, t)
}
}
| 29.804167
| 109
| 0.64784
|
b0a7d60788924e091863b5ea004675876bd89153
| 725
|
py
|
Python
|
builder/pylib/clean_cmd.py
|
alexa/aac-sdk
|
9324a7776da8b2d2210b76a88330c3f695d9b9f6
|
[
"Apache-2.0"
] | 139
|
2018-08-09T15:14:05.000Z
|
2019-06-21T20:47:58.000Z
|
builder/pylib/clean_cmd.py
|
chris19930209/alexa-auto-sdk
|
9324a7776da8b2d2210b76a88330c3f695d9b9f6
|
[
"Apache-2.0"
] | 2
|
2018-09-04T23:43:24.000Z
|
2019-01-30T20:38:13.000Z
|
builder/pylib/clean_cmd.py
|
chris19930209/alexa-auto-sdk
|
9324a7776da8b2d2210b76a88330c3f695d9b9f6
|
[
"Apache-2.0"
] | 60
|
2018-08-09T22:28:37.000Z
|
2019-06-25T07:06:17.000Z
|
import subprocess
from pylib.common import BaseHandler
class BuilderHandler(BaseHandler):
def run( self ):
clean_packages = self.builder_configuration.find_packages( self.get_arg("pattern") )
self.log_info( "Cleaning cached builder data..." )
for next in clean_packages:
# remove package from builder settings
self.builder_configuration.remove_package( next )
# remove package from conan
if not self.get_arg( "skip_conan", False ):
subprocess.run( ["conan", "remove", next, "-f"], env=self.conan_env, capture_output=not self.verbose, check=True )
# save the settings state
self.builder_configuration.save()
| 42.647059
| 130
| 0.657931
|
83e8587c4f658e72937a79f3f3dd8820e7cdc2b3
| 1,047
|
swift
|
Swift
|
src/old/SeasoningManagement/SeasoningManagement/UsingSeasoningView/ViewModel/SMUsingSeasoningCollectionViewModel.swift
|
DIO0550/-seasoning-management-ios
|
00130634097acad2b1ac82edaf8b57e84d9207f0
|
[
"MIT"
] | null | null | null |
src/old/SeasoningManagement/SeasoningManagement/UsingSeasoningView/ViewModel/SMUsingSeasoningCollectionViewModel.swift
|
DIO0550/-seasoning-management-ios
|
00130634097acad2b1ac82edaf8b57e84d9207f0
|
[
"MIT"
] | 9
|
2020-05-11T11:33:51.000Z
|
2020-06-26T11:47:08.000Z
|
src/old/SeasoningManagement/SeasoningManagement/UsingSeasoningView/ViewModel/SMUsingSeasoningCollectionViewModel.swift
|
DIO0550/seasoning-management-iOS
|
00130634097acad2b1ac82edaf8b57e84d9207f0
|
[
"MIT"
] | null | null | null |
//
// SMUsingSeasoningCollectionViewModel.swift
// SeasoningManagement
//
// Created by DIO on 2020/05/17.
// Copyright © 2020 DIO0550. All rights reserved.
//
import UIKit
import RxDataSources
import RxSwift
import RxCocoa
class SMUsingSeasoningCollectionViewModel {
typealias Section = SMUsingSeasoningCollectionViewCellSectionOfModel
typealias Model = SMUsingSeasoningCollectionViewCellModel
private let items = BehaviorRelay<[Section]>(value: [SMUsingSeasoningCollectionViewCellSectionOfModel(
header: "A",
items: [SMUsingSeasoningCollectionViewCellModel(seasoningName: "AAAAA", expirationDate: "BBBBB")])])
func sectionsObservable() -> Observable<[Section]> {
return self.items.asObservable()
}
func addUsingSeasoning(model: Model, sectionHeader: String) {
let uuid = UUID().uuidString
var value = self.items.value
value.append(SMUsingSeasoningCollectionViewCellSectionOfModel(header: uuid, items: [model]))
self.items.accept(value)
}
}
| 31.727273
| 108
| 0.730659
|
2f1119fea951ece2e849b60cec3c4ce96c6b3bc6
| 434
|
sql
|
SQL
|
timeregistration-parent-pom/timeregistration-common-pom/timeregistration-common-sql/src/main/resources/sql/ddl/_create-tables.sql
|
schioler/timeregistration
|
95c9221a67d1698dcf55eab44724f7b44446c295
|
[
"Apache-2.0"
] | null | null | null |
timeregistration-parent-pom/timeregistration-common-pom/timeregistration-common-sql/src/main/resources/sql/ddl/_create-tables.sql
|
schioler/timeregistration
|
95c9221a67d1698dcf55eab44724f7b44446c295
|
[
"Apache-2.0"
] | null | null | null |
timeregistration-parent-pom/timeregistration-common-pom/timeregistration-common-sql/src/main/resources/sql/ddl/_create-tables.sql
|
schioler/timeregistration
|
95c9221a67d1698dcf55eab44724f7b44446c295
|
[
"Apache-2.0"
] | null | null | null |
use timereg;
source create-user.sql
source create-user_password.sql
source create-role.sql
source create-user_role_link.sql
source create-work_clock_event_type.sql
source create-work_clock_event.sql
source create-provider.sql
source create-provider_account.sql
source create-client.sql
source create-client_project.sql
source create-registration_item.sql
source create-registration_event.sql
source create-registration_submitted.sql
| 27.125
| 40
| 0.870968
|
6d845ffbb058b0890bace5cbc6d607cdde167345
| 275
|
h
|
C
|
AppPredictionInternal.framework/ATXABHelper.h
|
reels-research/iOS-Private-Frameworks
|
9a4f4534939310a51fdbf5a439dd22487efb0f01
|
[
"MIT"
] | 4
|
2021-10-06T12:15:26.000Z
|
2022-02-21T02:26:00.000Z
|
AppPredictionInternal.framework/ATXABHelper.h
|
reels-research/iOS-Private-Frameworks
|
9a4f4534939310a51fdbf5a439dd22487efb0f01
|
[
"MIT"
] | null | null | null |
AppPredictionInternal.framework/ATXABHelper.h
|
reels-research/iOS-Private-Frameworks
|
9a4f4534939310a51fdbf5a439dd22487efb0f01
|
[
"MIT"
] | 1
|
2021-10-08T07:40:53.000Z
|
2021-10-08T07:40:53.000Z
|
/* Generated by RuntimeBrowser
Image: /System/Library/PrivateFrameworks/AppPredictionInternal.framework/AppPredictionInternal
*/
@interface ATXABHelper : NSObject
+ (id)abGroupForConsumerSubType:(unsigned char)arg1;
+ (id)abGroupNilString;
+ (id)abGroupOverride;
@end
| 22.916667
| 97
| 0.8
|
f3f7c2790df775506af9c87a464b063871fbeeff
| 365
|
ts
|
TypeScript
|
src/services/bandchain.ts
|
EngineEarz/bridge-v2
|
d8638bc3b69ee30d0e726bfca509843dc82eff41
|
[
"MIT"
] | 1
|
2022-03-06T20:25:41.000Z
|
2022-03-06T20:25:41.000Z
|
src/services/bandchain.ts
|
EngineEarz/bridge-v2
|
d8638bc3b69ee30d0e726bfca509843dc82eff41
|
[
"MIT"
] | null | null | null |
src/services/bandchain.ts
|
EngineEarz/bridge-v2
|
d8638bc3b69ee30d0e726bfca509843dc82eff41
|
[
"MIT"
] | null | null | null |
import { Client } from "@bandprotocol/bandchain.js";
let bandchainInstance: any | null = null;
// BandChain's Proof-of-Authority REST endpoint
const endpoint = "https://laozi-testnet4.bandchain.org/grpc-web";
export const getBandchain = () => {
if (bandchainInstance === null) {
bandchainInstance = new Client(endpoint);
}
return bandchainInstance;
};
| 26.071429
| 65
| 0.715068
|
bf48589b08ef8b2b91190a214078268ab196e3a4
| 213
|
rb
|
Ruby
|
lib/locomotivecms_search.rb
|
locomotivecms/search
|
1e2f577a6e47c72f27148a80decaec3e1aed2cd3
|
[
"MIT"
] | 7
|
2018-04-07T22:12:32.000Z
|
2020-02-11T06:15:22.000Z
|
lib/locomotivecms_search.rb
|
locomotivecms/search
|
1e2f577a6e47c72f27148a80decaec3e1aed2cd3
|
[
"MIT"
] | 2
|
2019-05-13T15:35:57.000Z
|
2022-01-27T14:53:12.000Z
|
lib/locomotivecms_search.rb
|
locomotivecms/search
|
1e2f577a6e47c72f27148a80decaec3e1aed2cd3
|
[
"MIT"
] | 5
|
2018-06-16T14:54:52.000Z
|
2021-11-06T08:08:30.000Z
|
require 'locomotive/search/errors'
require 'locomotive/search/backend_factory'
require 'locomotive/search/engine'
require 'locomotive/search/backend/base'
module Locomotive::Search
# Your code goes here...
end
| 23.666667
| 43
| 0.802817
|
9806e3cb64b66b2f2f58409610c03093399285ce
| 765
|
py
|
Python
|
rest-apis/apis.py
|
fishermano/QShield
|
745da3870240e0cab6ab75deebd128eb08b45bac
|
[
"Apache-2.0"
] | 2
|
2021-09-17T11:04:01.000Z
|
2021-09-17T11:04:03.000Z
|
rest-apis/apis.py
|
fishermano/qshield
|
745da3870240e0cab6ab75deebd128eb08b45bac
|
[
"Apache-2.0"
] | null | null | null |
rest-apis/apis.py
|
fishermano/qshield
|
745da3870240e0cab6ab75deebd128eb08b45bac
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'CYX'
import json, logging, inspect, functools
class APIError(Exception):
def __init__(self, error, data = '', message = ''):
super(APIError, self).__init__(message)
self.error = error
self.data = data
self.message = message
class APIValueError(APIError):
def __init__(self, field, message = ''):
super(APIValueError, self).__init__('value: invalid', field, message)
class APIResourceNotFoundError(APIError):
def __init__(self, field, message = ''):
super(APIValueError, self).__init__('value: not found', field, message)
class APIPermissionError(APIError):
def __init__(self, message = ''):
super(APIPermissionError, self).__init__('permission: forbidden', 'permission', message)
| 29.423077
| 90
| 0.720261
|
6dc6675db23bbb91408cd8a854a842c1a8a3c6fe
| 1,372
|
c
|
C
|
src/impls/atrshmlogimpl_inittimes_flag.c
|
atrsoftgmbh/atrshmlog
|
4ca1a2cc6ff26890a02d74db378e597353f197d3
|
[
"Apache-2.0"
] | null | null | null |
src/impls/atrshmlogimpl_inittimes_flag.c
|
atrsoftgmbh/atrshmlog
|
4ca1a2cc6ff26890a02d74db378e597353f197d3
|
[
"Apache-2.0"
] | null | null | null |
src/impls/atrshmlogimpl_inittimes_flag.c
|
atrsoftgmbh/atrshmlog
|
4ca1a2cc6ff26890a02d74db378e597353f197d3
|
[
"Apache-2.0"
] | null | null | null |
#include "../atrshmlog_internal.h"
/********************************************************************/
/**
* \file atrshmlogimpl_inittimes_flag.c
*/
/**
* \n Main code:
*
* \brief The init time values.
*
* Our time is meatured in tsc clicks.
*
* So we make one corresponding gettime and use two tsc
* to cornerstone this gettime.
*
* The medium of the two tsc is then assumed the real tsc for the gettime
* which is of course wrong, but will reduce error somehow.
*
* With one from program start and one from buffer full we have a rough
* estimation for the calc of real time for a tsc.
*
* Its better than trying to calc on a hypothetical base
* but even this can go wrong if the machine is not
* GOOD ENOUGH
* for holding tsc nice.
*
* The calculation for the ral time approximation is done in the convert.
* So we dont do any of that in the module.
*/
_Alignas(128) atrshmlog_internal_time_t atrshmlog_inittime;
/********************************************************************/
/**
* \n Main code:
*
* \brief The click before we get the real time.
*/
_Alignas(128) atrshmlog_time_t atrshmlog_inittimetsc_before;
/********************************************************************/
/**
* \n Main code:
*
* \brief The click after we get the ral time.
*/
_Alignas(128) atrshmlog_time_t atrshmlog_inittimetsc_after;
| 24.070175
| 73
| 0.600583
|
3128cc67cf2c36c4eead35c6e518a77a7f4865b0
| 324
|
kt
|
Kotlin
|
subprojects/gradle/instrumentation-tests/src/main/kotlin/com/avito/instrumentation/suite/dex/TestSuiteLoader.kt
|
ussernamenikita/avito-android
|
45b414cad6ecf101635ba73c9b7b8ed23881b386
|
[
"MIT"
] | null | null | null |
subprojects/gradle/instrumentation-tests/src/main/kotlin/com/avito/instrumentation/suite/dex/TestSuiteLoader.kt
|
ussernamenikita/avito-android
|
45b414cad6ecf101635ba73c9b7b8ed23881b386
|
[
"MIT"
] | null | null | null |
subprojects/gradle/instrumentation-tests/src/main/kotlin/com/avito/instrumentation/suite/dex/TestSuiteLoader.kt
|
ussernamenikita/avito-android
|
45b414cad6ecf101635ba73c9b7b8ed23881b386
|
[
"MIT"
] | null | null | null |
package com.avito.instrumentation.suite.dex
import com.avito.instrumentation.suite.dex.check.TestSignatureCheck
import org.funktionale.tries.Try
import java.io.File
interface TestSuiteLoader {
fun loadTestSuite(
file: File,
testSignatureCheck: TestSignatureCheck? = null
): Try<List<TestInApk>>
}
| 23.142857
| 67
| 0.759259
|
2c8a1cc00144844130ad33bc823c28f67186aad6
| 35,824
|
py
|
Python
|
pysnmp-with-texts/SW-LAYER2-PORT-MANAGEMENT-MIB.py
|
agustinhenze/mibs.snmplabs.com
|
1fc5c07860542b89212f4c8ab807057d9a9206c7
|
[
"Apache-2.0"
] | 8
|
2019-05-09T17:04:00.000Z
|
2021-06-09T06:50:51.000Z
|
pysnmp-with-texts/SW-LAYER2-PORT-MANAGEMENT-MIB.py
|
agustinhenze/mibs.snmplabs.com
|
1fc5c07860542b89212f4c8ab807057d9a9206c7
|
[
"Apache-2.0"
] | 4
|
2019-05-31T16:42:59.000Z
|
2020-01-31T21:57:17.000Z
|
pysnmp-with-texts/SW-LAYER2-PORT-MANAGEMENT-MIB.py
|
agustinhenze/mibs.snmplabs.com
|
1fc5c07860542b89212f4c8ab807057d9a9206c7
|
[
"Apache-2.0"
] | 10
|
2019-04-30T05:51:36.000Z
|
2022-02-16T03:33:41.000Z
|
#
# PySNMP MIB module SW-LAYER2-PORT-MANAGEMENT-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/SW-LAYER2-PORT-MANAGEMENT-MIB
# Produced by pysmi-0.3.4 at Wed May 1 15:12:34 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsUnion, ValueRangeConstraint, SingleValueConstraint, ValueSizeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueRangeConstraint", "SingleValueConstraint", "ValueSizeConstraint", "ConstraintsIntersection")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
TimeTicks, MibIdentifier, NotificationType, Integer32, NotificationType, Unsigned32, MibScalar, MibTable, MibTableRow, MibTableColumn, IpAddress, iso, ModuleIdentity, Counter32, Gauge32, Bits, ObjectIdentity, enterprises, Counter64 = mibBuilder.importSymbols("SNMPv2-SMI", "TimeTicks", "MibIdentifier", "NotificationType", "Integer32", "NotificationType", "Unsigned32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "IpAddress", "iso", "ModuleIdentity", "Counter32", "Gauge32", "Bits", "ObjectIdentity", "enterprises", "Counter64")
DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
marconi = MibIdentifier((1, 3, 6, 1, 4, 1, 326))
systems = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2))
external = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20))
dlink = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1))
dlinkcommon = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 1))
golf = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2))
golfproducts = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 1))
es2000 = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 1, 3))
golfcommon = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2))
marconi_products = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 1)).setLabel("marconi-products")
marconi_es2000Prod = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 1, 28)).setLabel("marconi-es2000Prod")
swProperty = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 1, 28, 1))
marconi_mgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2)).setLabel("marconi-mgmt")
es2000Mgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28))
swL2Mgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2))
swL2PortMgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4))
swL2PortInfoTable = MibTable((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 1), )
if mibBuilder.loadTexts: swL2PortInfoTable.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortInfoTable.setDescription('A table that contains information about every port.')
swL2PortInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 1, 1), ).setIndexNames((0, "SW-LAYER2-PORT-MANAGEMENT-MIB", "swL2PortInfoUnitIndex"), (0, "SW-LAYER2-PORT-MANAGEMENT-MIB", "swL2PortInfoModuleIndex"), (0, "SW-LAYER2-PORT-MANAGEMENT-MIB", "swL2PortInfoIndex"))
if mibBuilder.loadTexts: swL2PortInfoEntry.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortInfoEntry.setDescription('A list of information for each port of the device.')
swL2PortInfoUnitIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortInfoUnitIndex.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortInfoUnitIndex.setDescription('Indicates ID of the unit in the device.')
swL2PortInfoModuleIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 1, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortInfoModuleIndex.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortInfoModuleIndex.setDescription('Indicates ID of the module on the unit.')
swL2PortInfoIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 1, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortInfoIndex.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortInfoIndex.setDescription('Indicates ID of the port on the module.')
swL2PortInfoType = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("portType-100TX", 1), ("portType-100FX", 2), ("portType-GIGA-MTRJSX", 3), ("portType-GIGA-MTRJLX", 4), ("portType-GIGA-SCSX", 5), ("portType-GIGA-SCLX", 6), ("other", 7)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortInfoType.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortInfoType.setDescription('Indicates the connector type of this port.')
swL2PortInfoDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 1, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortInfoDescr.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortInfoDescr.setDescription('Provides port type information in displayed string format.')
swL2PortInfoLinkStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("link-pass", 2), ("link-fail", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortInfoLinkStatus.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortInfoLinkStatus.setDescription('Indicates port link status.')
swL2PortInfoNwayStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("other", 1), ("half-10Mbps", 2), ("full-10Mbps", 3), ("half-100Mbps", 4), ("full-100Mbps", 5), ("half-1Gigabps", 6), ("full-1Gigabps", 7)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortInfoNwayStatus.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortInfoNwayStatus.setDescription('This object indicates the port speed and duplex mode.')
swL2PortCtrlTable = MibTable((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2), )
if mibBuilder.loadTexts: swL2PortCtrlTable.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortCtrlTable.setDescription('A table that contains control information about every port.')
swL2PortCtrlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1), ).setIndexNames((0, "SW-LAYER2-PORT-MANAGEMENT-MIB", "swL2PortCtrlUnitIndex"), (0, "SW-LAYER2-PORT-MANAGEMENT-MIB", "swL2PortCtrlModuleIndex"), (0, "SW-LAYER2-PORT-MANAGEMENT-MIB", "swL2PortCtrlIndex"))
if mibBuilder.loadTexts: swL2PortCtrlEntry.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortCtrlEntry.setDescription('A list of control information for each port of the device.')
swL2PortCtrlUnitIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortCtrlUnitIndex.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortCtrlUnitIndex.setDescription('Indicates ID of the unit in the device.')
swL2PortCtrlModuleIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortCtrlModuleIndex.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortCtrlModuleIndex.setDescription('Indicates ID of the module on the unit.')
swL2PortCtrlIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortCtrlIndex.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortCtrlIndex.setDescription('This object indicates the device port number.(1..Max port number).')
swL2PortCtrlAdminState = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3), ("notAvailable", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2PortCtrlAdminState.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortCtrlAdminState.setDescription('This object decides the port to be enabled or disabled.')
swL2PortCtrlLinkStatusAlarmState = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3), ("notAvailable", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2PortCtrlLinkStatusAlarmState.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortCtrlLinkStatusAlarmState.setDescription('Depends on this object to determine to send a trap or not when link status changes.')
swL2PortCtrlNwayState = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 10))).clone(namedValues=NamedValues(("other", 1), ("nway-enabled", 2), ("nway-disabled-10Mbps-Half", 3), ("nway-disabled-10Mbps-Full", 4), ("nway-disabled-100Mbps-Half", 5), ("nway-disabled-100Mbps-Full", 6), ("nway-disabled-1Gigabps-Half", 7), ("nway-disabled-1Gigabps-Full", 8), ("notAvailable", 10)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2PortCtrlNwayState.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortCtrlNwayState.setDescription('Chooses the port speed, duplex mode, and N-Way function mode.')
swL2PortCtrlFlowCtrlState = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2PortCtrlFlowCtrlState.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortCtrlFlowCtrlState.setDescription('Sets IEEE 802.3x compliant flow control function as enabled or disabled. And IEEE 802.3x compliant flow control function work only when the port is in full duplex mode.The setting is effective the next time you reset or power on the hub.')
swL2PortCtrlBackPressState = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2PortCtrlBackPressState.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortCtrlBackPressState.setDescription('Depends on this object to determine to enable or disable the backpressure function when the port is working in half duplex mode.')
swL2PortCtrlLockState = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("disable", 2), ("enable", 3), ("notAvailable", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2PortCtrlLockState.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortCtrlLockState.setDescription('The state of this entry. The meanings of the values are: other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. disable(2) - Port lock funtion disable. enable(3) - Locking a port provides the CPU with the ability to decide which address are permitted to reside on such port, who knows about these address, and unknown packet forwarding to/from such ports. This is a way to prevent undesired traffic from being received or transmmited on the port.')
swL2PortCtrlPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("default", 2), ("force-low-priority", 3), ("force-high-priority", 4), ("notAvailable", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2PortCtrlPriority.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortCtrlPriority.setDescription('The priority queueing for packets received on this port, except for BPDU/IGMP packets and packets with unknown unicast destination address. IGMP and BPDU packets are always routed with high priority; packets with unknown unicast destination addresses are always routed with low priority. Other packets follow the rules below: other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. default(2) - A packet is normally classified as low priority, unless at least one of the following is true: (a)The packet contained a TAG (per 802.1Q definition) with the priority greater or equal to 4. (b)The address-table entry for the destination address had Pd=HIGH. force-low_priority(3) - A packet is normally classified as low priority. force-high_priority(4) - A packet is normally classified as high priority.')
swL2PortCtrlStpState = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3), ("notAvailable", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2PortCtrlStpState.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortCtrlStpState.setDescription("The state of STP(spanning tree algorithm) operation on this port. That's meaning the port whether add in the STP. The value enabled(3) indicates that STP is enabled on this port, as long as swDevCtrlStpState is also enabled for this device. When disabled(2) but swDevCtrlStpState is still enabled for the device, STP is disabled on this port : any BPDU packets received will be discarded and no BPDU packets will be propagated from the port.")
swL2PortCtrlHOLState = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3), ("notAvailable", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2PortCtrlHOLState.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortCtrlHOLState.setDescription("The object provides a way to prevent HOL (Head Of Line) blocking between ports. HOL protection may prevent forwarding a packet to a blocking port. The idea relies on the assumption that it is better to discard packets destined to blocking ports, then to let them consume more and more buffers in the input-port's Rx-counters because eventually these input ports may become totally blocked. The meanings of the values are: other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. disabled(2) - HOL function disable. enabled(3) - HOL function enable.")
swL2PortCtrlBcastRisingAct = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("do-nothing", 2), ("blocking", 3), ("blocking-trap", 4), ("notAvailable", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2PortCtrlBcastRisingAct.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortCtrlBcastRisingAct.setDescription('This object indicates the system action when broadcast storm rising threshold is met. other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. do-nothing(2) - no action. blocking(3) - the port can discard any coming broadcast frame. blocking-trap(4) - the port can discard any coming broadcast frame. And the device can send a broadcast rising trap.')
swL2PortCtrlBcastFallingAct = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("do-nothing", 2), ("forwarding", 3), ("forwarding-trap", 4), ("notAvailable", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swL2PortCtrlBcastFallingAct.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortCtrlBcastFallingAct.setDescription('This object indicates the device action when broadcast storm falling threshold is met. other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. do-nothing(2) - no action. forwarding(3) - the port has returned to normal operation mode. forwarding-trap(4) - the port has returned to normal operation mode. And the device can send a broadcast falling trap.')
swL2PortCtrlClearCounter = MibScalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1, 15), Integer32()).setMaxAccess("writeonly")
if mibBuilder.loadTexts: swL2PortCtrlClearCounter.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortCtrlClearCounter.setDescription('Sets choosed port to clear counter. First of all, any unsigned integer can be used to set.')
swL2PortStTable = MibTable((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3), )
if mibBuilder.loadTexts: swL2PortStTable.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortStTable.setDescription('A list of port statistic Counter entries.')
swL2PortStEntry = MibTableRow((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1), ).setIndexNames((0, "SW-LAYER2-PORT-MANAGEMENT-MIB", "swL2PortStUnitIndex"), (0, "SW-LAYER2-PORT-MANAGEMENT-MIB", "swL2PortStModuleIndex"), (0, "SW-LAYER2-PORT-MANAGEMENT-MIB", "swL2PortStIndex"))
if mibBuilder.loadTexts: swL2PortStEntry.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortStEntry.setDescription('This entry include all the port statistic Counter which support by the device, like Bytes received, Bytes Sent ...')
swL2PortStUnitIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortStUnitIndex.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortStUnitIndex.setDescription('Indicates ID of the unit in the device.')
swL2PortStModuleIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortStModuleIndex.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortStModuleIndex.setDescription('Indicates ID of the module on the unit.')
swL2PortStIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortStIndex.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortStIndex.setDescription('This object indicates the device port number.(1..Max port number)')
swL2PortStByteRx = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortStByteRx.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortStByteRx.setDescription('swDevCtrlCounterMode = 2(switched-frames) : This counter is incremented once for every data octet of good packets(unicast + multicast + broadcast) received. swDevCtrlCounterMode = 3(all-frames) : This counter is incremented once for every data octet of good packets(unicast + multicast + broadcast packets) and for local and dropped packets.')
swL2PortStByteTx = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortStByteTx.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortStByteTx.setDescription('This counter is incremented once for every data octet of a transmitted good packet.')
swL2PortStFrameRx = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortStFrameRx.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortStFrameRx.setDescription('swDevCtrlCounterMode = 2(switched-frames) : This counter is incremented once for every good packet(unicast + multicast + broadcast) received. swDevCtrlCounterMode = 3(all-frames) : This counter is incremented once for every good packet(unicast + multicast + broadcast packets) and for local and dropped packets received.')
swL2PortStFrameTx = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortStFrameTx.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortStFrameTx.setDescription('This counter is incremented once for every transmitted good packet.')
swL2PortStTotalBytesRx = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortStTotalBytesRx.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortStTotalBytesRx.setDescription('This counter is incremented once for every data octet of all received packets. This include data octets of rejected and local packets which are not forwarded to the switching core for transmission. This counter should reflect all the data octets received on the line. Note: A nibble is not counted as a whole byte.')
swL2PortStTotalFramesRx = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortStTotalFramesRx.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortStTotalFramesRx.setDescription('This counter is incremented once for every received packets. This include rejected and local packets which are not forwarded to the switching core for transmission. This counter should reflect all packets received on the line.')
swL2PortStBroadcastFramesRx = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortStBroadcastFramesRx.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortStBroadcastFramesRx.setDescription('swDevCtrlCounterMode = 2(switched-frames) : This counter is incremented once for every good broadcast packet received. swDevCtrlCounterMode = 3(all-frames) : This counter is incremented once for every good broadcast packet received and for local and dropped broadcast packets.')
swL2PortStMulticastFramesRx = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortStMulticastFramesRx.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortStMulticastFramesRx.setDescription('swDevCtrlCounterMode = 2(switched-frames) : This counter is incremented once for every good multicast packet received. swDevCtrlCounterMode = 3(all-frames) : This counter is incremented once for every good multicast packet received and for local and dropped multicast packets. This counter does not include broadcast packets.')
swL2PortStCRCError = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortStCRCError.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortStCRCError.setDescription('This counter is incremented once for every received packet which meets all the following conditions: 1. Packet data length is between 64 and 1536 bytes inclusive. 2. Packet has invalid CRC. 3. Collision event, late collision event and receive error event have not been detected.')
swL2PortStOversizeFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 13), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortStOversizeFrames.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortStOversizeFrames.setDescription('The number of good frames with length more than 1536 bytes.')
swL2PortStFragments = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 14), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortStFragments.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortStFragments.setDescription('This counter is incremented once for every received packet which meets all the following conditions: 1. Packet data length is less than 64 bytes or packet withourt SFD and is less than 64 bytes in length. 2. Packet has invalid CRC. 3. Collision event, late collision event and receive error event have not been detected.')
swL2PortStJabber = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 15), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortStJabber.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortStJabber.setDescription('The number of frames with length more than 1536 bytes and with CRC error or misaligned.')
swL2PortStCollision = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 16), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortStCollision.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortStCollision.setDescription('The number of Collisions.')
swL2PortStLateCollision = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 17), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortStLateCollision.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortStLateCollision.setDescription('The number of Late Collision(collision occurring later than 576th transmitted bit).')
swL2PortStFrames_64_bytes = MibScalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 18), Counter32()).setLabel("swL2PortStFrames-64-bytes").setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortStFrames_64_bytes.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortStFrames_64_bytes.setDescription('This counter is incremented once for every received and transmitted packet with size of 64 bytes. This counter includes rejected received and transmitted packets.')
swL2PortStFrames_65_127_bytes = MibScalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 19), Counter32()).setLabel("swL2PortStFrames-65-127-bytes").setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortStFrames_65_127_bytes.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortStFrames_65_127_bytes.setDescription('This counter is incremented once for every received and transmitted packet with size of 65 to 127 bytes. This counter includes rejected received and transmitted packets.')
swL2PortStFrames_128_255_bytes = MibScalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 20), Counter32()).setLabel("swL2PortStFrames-128-255-bytes").setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortStFrames_128_255_bytes.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortStFrames_128_255_bytes.setDescription('This counter is incremented once for every received and transmitted packet with size of 128 to 255 bytes. This counter includes rejected received and transmitted packets.')
swL2PortStFrames_256_511_bytes = MibScalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 21), Counter32()).setLabel("swL2PortStFrames-256-511-bytes").setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortStFrames_256_511_bytes.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortStFrames_256_511_bytes.setDescription('This counter is incremented once for every received and transmitted packet with size of 256 to 511 bytes. This counter includes rejected received and transmitted packets.')
swL2PortStFrames_512_1023_bytes = MibScalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 22), Counter32()).setLabel("swL2PortStFrames-512-1023-bytes").setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortStFrames_512_1023_bytes.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortStFrames_512_1023_bytes.setDescription('This counter is incremented once for every received and transmitted packet with size of 512 to 1023 bytes. This counter includes rejected received and transmitted packets.')
swL2PortStFrames_1024_1536_bytes = MibScalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 23), Counter32()).setLabel("swL2PortStFrames-1024-1536-bytes").setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortStFrames_1024_1536_bytes.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortStFrames_1024_1536_bytes.setDescription('This counter is incremented once for every received and transmitted packet with size of 1024 to 1536 bytes. This counter includes rejected received and transmitted packets.')
swL2PortStFramesDroppedFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 24), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortStFramesDroppedFrames.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortStFramesDroppedFrames.setDescription('This counter is incremented once for every received dropped packet.')
swL2PortStMulticastFramesTx = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 25), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortStMulticastFramesTx.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortStMulticastFramesTx.setDescription('The number of multicast frames sent. This counter does not include broadcast packets.')
swL2PortStBroadcastFramesTx = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 26), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortStBroadcastFramesTx.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortStBroadcastFramesTx.setDescription('The number of broadcast frames sent.')
swL2PortStUndersizeFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 27), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swL2PortStUndersizeFrames.setStatus('mandatory')
if mibBuilder.loadTexts: swL2PortStUndersizeFrames.setDescription('This counter is incremented once for every received packet which meets all the following conditions: 1. Packet data length is less than 64 bytes. 2. Packet has valid CRC. 3. Collision event, late collision event and receive error event have not been detected.')
swEventPortPartition = NotificationType((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 1, 3) + (0,1)).setObjects(("SW-LAYER2-PORT-MANAGEMENT-MIB", "swL2PortInfoUnitIndex"), ("SW-LAYER2-PORT-MANAGEMENT-MIB", "swL2PortInfoModuleIndex"), ("SW-LAYER2-PORT-MANAGEMENT-MIB", "swL2PortInfoIndex"))
if mibBuilder.loadTexts: swEventPortPartition.setDescription('The trap is sent whenever the port state enter the Partion mode when more than 61 collisions occur while trasmitting.')
swEventlinkChangeEvent = NotificationType((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 1, 3) + (0,2)).setObjects(("SW-LAYER2-PORT-MANAGEMENT-MIB", "swL2PortInfoUnitIndex"), ("SW-LAYER2-PORT-MANAGEMENT-MIB", "swL2PortInfoModuleIndex"), ("SW-LAYER2-PORT-MANAGEMENT-MIB", "swL2PortInfoIndex"))
if mibBuilder.loadTexts: swEventlinkChangeEvent.setDescription('The trap is sent whenever the link state of a port changes from link up to link down or from link down to link up')
swEventBcastRisingStorm = NotificationType((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 1, 3) + (0,3)).setObjects(("SW-LAYER2-PORT-MANAGEMENT-MIB", "swL2PortInfoUnitIndex"), ("SW-LAYER2-PORT-MANAGEMENT-MIB", "swL2PortInfoModuleIndex"), ("SW-LAYER2-PORT-MANAGEMENT-MIB", "swL2PortInfoIndex"))
if mibBuilder.loadTexts: swEventBcastRisingStorm.setDescription('The trap indicates that broadcast higher rising threshold. This trap including the port ID')
swEventBcastFallingStorm = NotificationType((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 1, 3) + (0,4)).setObjects(("SW-LAYER2-PORT-MANAGEMENT-MIB", "swL2PortInfoUnitIndex"), ("SW-LAYER2-PORT-MANAGEMENT-MIB", "swL2PortInfoModuleIndex"), ("SW-LAYER2-PORT-MANAGEMENT-MIB", "swL2PortInfoIndex"))
if mibBuilder.loadTexts: swEventBcastFallingStorm.setDescription('The trap indicates that broadcast higher falling threshold. This trap including the port ID')
mibBuilder.exportSymbols("SW-LAYER2-PORT-MANAGEMENT-MIB", swL2PortStCRCError=swL2PortStCRCError, swL2PortStFrames_1024_1536_bytes=swL2PortStFrames_1024_1536_bytes, swL2PortCtrlModuleIndex=swL2PortCtrlModuleIndex, swL2PortStLateCollision=swL2PortStLateCollision, swL2PortStOversizeFrames=swL2PortStOversizeFrames, systems=systems, swL2PortInfoTable=swL2PortInfoTable, golfcommon=golfcommon, swL2PortCtrlAdminState=swL2PortCtrlAdminState, swL2PortStByteRx=swL2PortStByteRx, swL2PortCtrlEntry=swL2PortCtrlEntry, es2000=es2000, swL2PortStFragments=swL2PortStFragments, swL2Mgmt=swL2Mgmt, swL2PortCtrlClearCounter=swL2PortCtrlClearCounter, swL2PortStJabber=swL2PortStJabber, dlinkcommon=dlinkcommon, es2000Mgmt=es2000Mgmt, swL2PortInfoNwayStatus=swL2PortInfoNwayStatus, swL2PortStUnitIndex=swL2PortStUnitIndex, swL2PortInfoUnitIndex=swL2PortInfoUnitIndex, swL2PortStFrames_128_255_bytes=swL2PortStFrames_128_255_bytes, swL2PortStModuleIndex=swL2PortStModuleIndex, swL2PortCtrlStpState=swL2PortCtrlStpState, marconi=marconi, swL2PortCtrlLockState=swL2PortCtrlLockState, swL2PortInfoType=swL2PortInfoType, swL2PortStTotalBytesRx=swL2PortStTotalBytesRx, swL2PortStTable=swL2PortStTable, swL2PortMgmt=swL2PortMgmt, swL2PortInfoIndex=swL2PortInfoIndex, swEventBcastFallingStorm=swEventBcastFallingStorm, swL2PortStMulticastFramesRx=swL2PortStMulticastFramesRx, swL2PortStFramesDroppedFrames=swL2PortStFramesDroppedFrames, swL2PortStFrames_64_bytes=swL2PortStFrames_64_bytes, swL2PortStMulticastFramesTx=swL2PortStMulticastFramesTx, swL2PortCtrlFlowCtrlState=swL2PortCtrlFlowCtrlState, marconi_products=marconi_products, swL2PortStFrames_65_127_bytes=swL2PortStFrames_65_127_bytes, swL2PortStUndersizeFrames=swL2PortStUndersizeFrames, swL2PortStBroadcastFramesTx=swL2PortStBroadcastFramesTx, dlink=dlink, swL2PortStEntry=swL2PortStEntry, external=external, golfproducts=golfproducts, swL2PortStIndex=swL2PortStIndex, swL2PortStFrameRx=swL2PortStFrameRx, marconi_mgmt=marconi_mgmt, golf=golf, swL2PortInfoLinkStatus=swL2PortInfoLinkStatus, swL2PortCtrlTable=swL2PortCtrlTable, swL2PortCtrlLinkStatusAlarmState=swL2PortCtrlLinkStatusAlarmState, swL2PortCtrlHOLState=swL2PortCtrlHOLState, swL2PortCtrlBackPressState=swL2PortCtrlBackPressState, swL2PortStByteTx=swL2PortStByteTx, swL2PortStTotalFramesRx=swL2PortStTotalFramesRx, swL2PortStFrames_256_511_bytes=swL2PortStFrames_256_511_bytes, swEventBcastRisingStorm=swEventBcastRisingStorm, swL2PortCtrlUnitIndex=swL2PortCtrlUnitIndex, swL2PortStFrames_512_1023_bytes=swL2PortStFrames_512_1023_bytes, swL2PortInfoModuleIndex=swL2PortInfoModuleIndex, swL2PortCtrlBcastFallingAct=swL2PortCtrlBcastFallingAct, swL2PortStFrameTx=swL2PortStFrameTx, swL2PortInfoEntry=swL2PortInfoEntry, swProperty=swProperty, swL2PortStBroadcastFramesRx=swL2PortStBroadcastFramesRx, swEventPortPartition=swEventPortPartition, marconi_es2000Prod=marconi_es2000Prod, swEventlinkChangeEvent=swEventlinkChangeEvent, swL2PortStCollision=swL2PortStCollision, swL2PortCtrlBcastRisingAct=swL2PortCtrlBcastRisingAct, swL2PortInfoDescr=swL2PortInfoDescr, swL2PortCtrlPriority=swL2PortCtrlPriority, swL2PortCtrlNwayState=swL2PortCtrlNwayState, swL2PortCtrlIndex=swL2PortCtrlIndex)
| 175.607843
| 3,182
| 0.769791
|
853dd1c736916b168a439bb41f08aa1a781e737e
| 1,109
|
cs
|
C#
|
Samples/DirectX12WinFormsApp/Program.cs
|
TechnikEmpire/DirectX12GameEngine
|
b6aa64442fceb8e08d0b735c25fa8fb3d860b387
|
[
"MIT"
] | 255
|
2019-08-20T04:41:20.000Z
|
2022-03-24T11:26:03.000Z
|
Samples/DirectX12WinFormsApp/Program.cs
|
5l1v3r1/DirectX12GameEngine
|
efb7d4c0852c645fcc9e73edab098d20ef683d57
|
[
"MIT"
] | 12
|
2019-08-19T15:06:56.000Z
|
2021-08-18T14:00:14.000Z
|
Samples/DirectX12WinFormsApp/Program.cs
|
5l1v3r1/DirectX12GameEngine
|
efb7d4c0852c645fcc9e73edab098d20ef683d57
|
[
"MIT"
] | 44
|
2019-09-17T11:41:00.000Z
|
2022-03-24T11:27:00.000Z
|
using System;
using System.IO;
using System.Windows.Forms;
using DirectX12Game;
using DirectX12GameEngine.Serialization;
using DirectX12GameEngine.Games;
using Windows.Storage;
namespace DirectX12WinFormsApp
{
public class MyForm : Form
{
public MyForm()
{
Width = 1200;
Height = 800;
Load += OnMyFormLoad;
}
private async void OnMyFormLoad(object? sender, EventArgs e)
{
StorageFolder rootFolder = await StorageFolder.GetFolderFromPathAsync(Directory.GetCurrentDirectory());
MyGame game = new MyGame(new WinFormsGameContext(this) { FileProvider = new FileSystemProvider(rootFolder) });
game.Run();
}
}
public class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
private static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MyForm());
}
}
}
| 25.204545
| 122
| 0.612263
|
cc456b3a2573d8769c536b98b1658e8b5ebe1569
| 226
|
sql
|
SQL
|
tests/queries/0_stateless/01373_summing_merge_tree_explicit_columns_definition.sql
|
pdv-ru/ClickHouse
|
0ff975bcf3008fa6c6373cbdfed16328e3863ec5
|
[
"Apache-2.0"
] | 15,577
|
2019-09-23T11:57:53.000Z
|
2022-03-31T18:21:48.000Z
|
tests/queries/0_stateless/01373_summing_merge_tree_explicit_columns_definition.sql
|
pdv-ru/ClickHouse
|
0ff975bcf3008fa6c6373cbdfed16328e3863ec5
|
[
"Apache-2.0"
] | 16,476
|
2019-09-23T11:47:00.000Z
|
2022-03-31T23:06:01.000Z
|
tests/queries/0_stateless/01373_summing_merge_tree_explicit_columns_definition.sql
|
pdv-ru/ClickHouse
|
0ff975bcf3008fa6c6373cbdfed16328e3863ec5
|
[
"Apache-2.0"
] | 3,633
|
2019-09-23T12:18:28.000Z
|
2022-03-31T15:55:48.000Z
|
DROP TABLE IF EXISTS tt_error_1373;
CREATE TABLE tt_error_1373
( a Int64, d Int64, val Int64 )
ENGINE = SummingMergeTree((a, val)) PARTITION BY (a) ORDER BY (d); -- { serverError 36 }
DROP TABLE IF EXISTS tt_error_1373;
| 32.285714
| 88
| 0.721239
|
a38c131efd7afa43918055ef4d2c2c7fe129defd
| 8,209
|
java
|
Java
|
app/src/main/java/org/jboss/hal/client/runtime/subsystem/datasource/DataSourceView.java
|
rmartinc/console
|
8e2cb2b5a147af582e533980b8211bfb3e58524e
|
[
"Apache-2.0"
] | 25
|
2018-04-02T13:35:05.000Z
|
2021-11-28T03:28:35.000Z
|
app/src/main/java/org/jboss/hal/client/runtime/subsystem/datasource/DataSourceView.java
|
rmartinc/console
|
8e2cb2b5a147af582e533980b8211bfb3e58524e
|
[
"Apache-2.0"
] | 160
|
2018-03-29T07:23:42.000Z
|
2022-03-24T13:13:49.000Z
|
app/src/main/java/org/jboss/hal/client/runtime/subsystem/datasource/DataSourceView.java
|
rmartinc/console
|
8e2cb2b5a147af582e533980b8211bfb3e58524e
|
[
"Apache-2.0"
] | 63
|
2018-03-30T06:47:58.000Z
|
2021-11-11T16:06:06.000Z
|
/*
* Copyright 2015-2016 Red Hat, Inc, and individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jboss.hal.client.runtime.subsystem.datasource;
import javax.inject.Inject;
import elemental2.dom.HTMLElement;
import org.jboss.gwt.elemento.core.Elements;
import org.jboss.hal.ballroom.Tabs;
import org.jboss.hal.ballroom.form.Form;
import org.jboss.hal.core.datasource.DataSource;
import org.jboss.hal.core.mbui.form.ModelNodeForm;
import org.jboss.hal.core.mvp.HalViewImpl;
import org.jboss.hal.dmr.ModelNode;
import org.jboss.hal.meta.Metadata;
import org.jboss.hal.meta.MetadataRegistry;
import org.jboss.hal.resources.Ids;
import org.jboss.hal.resources.Names;
import org.jboss.hal.resources.Resources;
import static java.util.Arrays.asList;
import static org.jboss.gwt.elemento.core.Elements.a;
import static org.jboss.gwt.elemento.core.Elements.h;
import static org.jboss.gwt.elemento.core.Elements.p;
import static org.jboss.gwt.elemento.core.Elements.span;
import static org.jboss.gwt.elemento.core.EventType.click;
import static org.jboss.hal.ballroom.LayoutBuilder.column;
import static org.jboss.hal.ballroom.LayoutBuilder.row;
import static org.jboss.hal.client.runtime.subsystem.datasource.AddressTemplates.DATA_SOURCE_JDBC_TEMPLATE;
import static org.jboss.hal.client.runtime.subsystem.datasource.AddressTemplates.DATA_SOURCE_POOL_TEMPLATE;
import static org.jboss.hal.client.runtime.subsystem.datasource.AddressTemplates.XA_DATA_SOURCE_JDBC_TEMPLATE;
import static org.jboss.hal.client.runtime.subsystem.datasource.AddressTemplates.XA_DATA_SOURCE_POOL_TEMPLATE;
import static org.jboss.hal.dmr.ModelDescriptionConstants.STATISTICS_ENABLED;
import static org.jboss.hal.dmr.ModelNodeHelper.failSafeGet;
import static org.jboss.hal.resources.CSS.*;
public class DataSourceView extends HalViewImpl implements DataSourcePresenter.MyView {
private static final String POOL_PATH = "statistics/pool";
private static final String JDBC_PATH = "statistics/jdbc";
private static final String[] XA_ATTRIBUTES = {
"XACommitAverageTime",
"XACommitCount",
"XACommitMaxTime",
"XACommitTotalTime",
"XAEndAverageTime",
"XAEndCount",
"XAEndMaxTime",
"XAEndTotalTime",
"XAForgetAverageTime",
"XAForgetCount",
"XAForgetMaxTime",
"XAForgetTotalTime",
"XAPrepareAverageTime",
"XAPrepareCount",
"XAPrepareMaxTime",
"XAPrepareTotalTime",
"XARecoverAverageTime",
"XARecoverCount",
"XARecoverMaxTime",
"XARecoverTotalTime",
"XARollbackAverageTime",
"XARollbackCount",
"XARollbackMaxTime",
"XARollbackTotalTime",
"XAStartAverageTime",
"XAStartCount",
"XAStartMaxTime",
"XAStartTotalTime"
};
private final MetadataRegistry metadataRegistry;
private final Resources resources;
private DataSourcePresenter presenter;
private HTMLElement header;
private Tabs nonXaTabs;
private Tabs xaTabs;
private Form<ModelNode> poolForm;
private Form<ModelNode> xaPoolForm;
private Form<ModelNode> jdbcForm;
private Form<ModelNode> xaJdbcForm;
private boolean setup;
@Inject
public DataSourceView(MetadataRegistry metadataRegistry, Resources resources) {
this.metadataRegistry = metadataRegistry;
this.resources = resources;
this.setup = false;
}
@Override
public void setup() {
if (setup) {
return;
}
// The metadata for the "statistic" resources is only available fro existing data-sources.
// That's why we cannot setup the UI in the constructor like in other views and
// using wildcards in the address templates. As a workaround we defer the UI setup
// until the DS name is known and replace the wildcards with the DS name.
Metadata poolMeta;
Metadata jdbcMeta;
if (presenter.isXa()) {
poolMeta = metadataRegistry.lookup(
XA_DATA_SOURCE_POOL_TEMPLATE.replaceWildcards(presenter.getDataSource()));
jdbcMeta = metadataRegistry.lookup(
XA_DATA_SOURCE_JDBC_TEMPLATE.replaceWildcards(presenter.getDataSource()));
} else {
poolMeta = metadataRegistry.lookup(DATA_SOURCE_POOL_TEMPLATE.replaceWildcards(presenter.getDataSource()));
jdbcMeta = metadataRegistry.lookup(DATA_SOURCE_JDBC_TEMPLATE.replaceWildcards(presenter.getDataSource()));
}
nonXaTabs = new Tabs(Ids.DATA_SOURCE_RUNTIME_TAB_CONTAINER);
xaTabs = new Tabs(Ids.XA_DATA_SOURCE_RUNTIME_TAB_CONTAINER);
poolForm = new ModelNodeForm.Builder<>(Ids.DATA_SOURCE_RUNTIME_POOL_FORM, poolMeta)
.readOnly()
.includeRuntime()
.exclude(STATISTICS_ENABLED)
.exclude(XA_ATTRIBUTES)
.build();
nonXaTabs.add(Ids.DATA_SOURCE_RUNTIME_POOL_TAB, Names.POOL, poolForm.element());
xaPoolForm = new ModelNodeForm.Builder<>(Ids.XA_DATA_SOURCE_RUNTIME_POOL_FORM, poolMeta)
.readOnly()
.includeRuntime()
.exclude(STATISTICS_ENABLED)
.build();
xaTabs.add(Ids.XA_DATA_SOURCE_RUNTIME_POOL_TAB, Names.POOL, xaPoolForm.element());
jdbcForm = new ModelNodeForm.Builder<>(Ids.DATA_SOURCE_RUNTIME_JDBC_FORM, jdbcMeta)
.readOnly()
.includeRuntime()
.exclude(STATISTICS_ENABLED)
.build();
nonXaTabs.add(Ids.DATA_SOURCE_RUNTIME_JDBC_TAB, Names.JDBC, jdbcForm.element());
xaJdbcForm = new ModelNodeForm.Builder<>(Ids.XA_DATA_SOURCE_RUNTIME_JDBC_FORM, jdbcMeta)
.readOnly()
.includeRuntime()
.exclude(STATISTICS_ENABLED)
.build();
xaTabs.add(Ids.XA_DATA_SOURCE_RUNTIME_JDBC_TAB, Names.JDBC, xaJdbcForm.element());
HTMLElement root = row()
.add(column()
.add(header = h(1).textContent(Names.DATASOURCE).element())
.add(p().css(clearfix)
.add(a().css(clickable, pullRight).on(click, event -> refresh())
.add(span().css(fontAwesome("refresh"), marginRight5))
.add(span().textContent(resources.constants().refresh()))))
.add(nonXaTabs)
.add(xaTabs)).element();
registerAttachables(asList(poolForm, xaPoolForm, jdbcForm, xaJdbcForm));
initElement(root);
setup = true;
}
@Override
public void setPresenter(DataSourcePresenter presenter) {
this.presenter = presenter;
}
@Override
public void update(DataSource dataSource) {
showHide(dataSource.isXa());
header.textContent = dataSource.getName();
if (dataSource.isXa()) {
xaPoolForm.view(failSafeGet(dataSource, POOL_PATH));
xaJdbcForm.view(failSafeGet(dataSource, JDBC_PATH));
} else {
poolForm.view(failSafeGet(dataSource, POOL_PATH));
jdbcForm.view(failSafeGet(dataSource, JDBC_PATH));
}
}
private void showHide(boolean xa) {
Elements.setVisible(nonXaTabs.element(), !xa);
Elements.setVisible(xaTabs.element(), xa);
}
private void refresh() {
if (presenter != null) {
presenter.reload();
}
}
}
| 40.638614
| 118
| 0.664027
|
2c51285d04fc0c5bc8333deb4b992a3af6f2a610
| 1,216
|
py
|
Python
|
o2dash/remote.py
|
mariuszduka/omega2-dash-simple-project
|
108a14460c4abc700f683f268b243eb1e7b995df
|
[
"MIT"
] | 1
|
2021-11-28T21:14:46.000Z
|
2021-11-28T21:14:46.000Z
|
o2dash/remote.py
|
mariuszduka/omega2-dash-simple-project
|
108a14460c4abc700f683f268b243eb1e7b995df
|
[
"MIT"
] | null | null | null |
o2dash/remote.py
|
mariuszduka/omega2-dash-simple-project
|
108a14460c4abc700f683f268b243eb1e7b995df
|
[
"MIT"
] | null | null | null |
import socket
import time
host = '0.0.0.0' # IP address of Omega2(+) or Omega2 Pro with temperature sensor
port = 50005
def sendCommand(command = "stat"):
addr = socket.getaddrinfo(host, port)[0][-1]
s = socket.socket()
s.settimeout(5.0)
try:
s.connect(addr)
except:
return False
s.send(command)
try:
data = s.recv(1024)
except:
print("Socket recv problem.")
s.close()
return data
def checkRemote():
temp = checkTempSensor()
(relayStatus, relayAuto) = checkRelay()
return (temp, relayStatus, relayAuto)
def checkTempSensor():
print("Checking sensor value...")
recv = sendCommand('temp')
if recv:
value = int(float(recv.decode()))
else:
value = 0
return value
def checkRelay():
print("Checking relay status...")
recv = sendCommand('relay-status')
if recv:
r = recv.decode()
r = r.split(",")
try:
return(True if r[0] == 'on' else False, True if r[1] == 'on' else False)
except:
return (False, False)
else:
return (False, False)
def switchRelay(command = 'relay-off'):
print("Switching relay...")
recv = sendCommand(command)
if recv:
r = recv.decode()
if r == 'done':
return True
else:
return False
else:
return False
| 17.126761
| 80
| 0.648026
|
6b0e8c014fc524eaee29377816ca014a0f425f36
| 542
|
swift
|
Swift
|
Titanic/SwiftUI/GamePickerDelegate.swift
|
maikdrop/Titanic
|
9e8ecea082ea1e203d6bb3e3ec42f884ae7f7f24
|
[
"MIT"
] | 1
|
2021-04-28T14:34:36.000Z
|
2021-04-28T14:34:36.000Z
|
Titanic/SwiftUI/GamePickerDelegate.swift
|
maikdrop/Titanic
|
9e8ecea082ea1e203d6bb3e3ec42f884ae7f7f24
|
[
"MIT"
] | null | null | null |
Titanic/SwiftUI/GamePickerDelegate.swift
|
maikdrop/Titanic
|
9e8ecea082ea1e203d6bb3e3ec42f884ae7f7f24
|
[
"MIT"
] | null | null | null |
//
// GamePickerDelegate.swift
// Titanic
//
// Created by Maik on 01.12.20.
// Copyright © 2020 maikdrop. All rights reserved.
//
import Foundation
import Combine
class GamePickerDelegate: ObservableObject {
// MARK: - Properties
var willChange = PassthroughSubject<GamePickerDelegate, Never>()
var didChange = PassthroughSubject<GamePickerDelegate, Never>()
var storedGameDate: Date? {
willSet {
willChange.send(self)
}
didSet {
didChange.send(self)
}
}
}
| 20.074074
| 68
| 0.640221
|
c6e63f58b7a7b5eaee99b9c784211a3ab17ee65b
| 537
|
css
|
CSS
|
stylesheets/stylesheets/toc2.css
|
vengatlnx/Slides
|
7fabb9c3771f8084e06bcde1c421b68030420df1
|
[
"MIT"
] | 25
|
2016-08-13T14:30:29.000Z
|
2019-08-29T14:22:05.000Z
|
contrib/doc/stylesheets/toc2.css
|
rkoschmitzky/gaffer
|
ec6262ae1292767bdeb9520d1447d65a4a511884
|
[
"BSD-3-Clause"
] | 17
|
2015-10-13T18:44:55.000Z
|
2021-08-29T15:48:30.000Z
|
contrib/doc/stylesheets/toc2.css
|
rkoschmitzky/gaffer
|
ec6262ae1292767bdeb9520d1447d65a4a511884
|
[
"BSD-3-Clause"
] | 19
|
2015-03-05T12:33:49.000Z
|
2018-08-10T04:54:14.000Z
|
@media screen {
body {
max-width: 50em; /* approximately 80 characters wide */
margin-left: 16em;
}
#toc {
position: fixed;
top: 0;
left: 0;
bottom: 0;
width: 13em;
padding: 0.5em;
padding-bottom: 1.5em;
margin: 0;
overflow: auto;
border-right: 3px solid #f8f8f8;
background-color: white;
}
#toc .toclevel1 {
margin-top: 0.5em;
}
#toc .toclevel2 {
margin-top: 0.25em;
display: list-item;
color: #aaaaaa;
}
#toctitle {
margin-top: 0.5em;
}
}
| 15.342857
| 59
| 0.560521
|
5ca8c3d279fb50adc4d178ae84d2f3b0b85313e2
| 1,547
|
lua
|
Lua
|
luci-app-v2ray-server/luasrc/controller/v2ray_server.lua
|
guyezi/app
|
ee8ed6239793fd1a042c14f1e4b1dfac4d03943c
|
[
"MIT"
] | null | null | null |
luci-app-v2ray-server/luasrc/controller/v2ray_server.lua
|
guyezi/app
|
ee8ed6239793fd1a042c14f1e4b1dfac4d03943c
|
[
"MIT"
] | null | null | null |
luci-app-v2ray-server/luasrc/controller/v2ray_server.lua
|
guyezi/app
|
ee8ed6239793fd1a042c14f1e4b1dfac4d03943c
|
[
"MIT"
] | null | null | null |
module("luci.controller.v2ray_server",package.seeall)
local http = require "luci.http"
local v2ray = require "luci.model.cbi.v2ray_server.api.v2ray"
function index()
if not nixio.fs.access("/etc/config/v2ray_server")then
return
end
entry({"admin","vpn"}, firstchild(), "VPN", 45).dependent = false
entry({"admin","vpn","v2ray_server"},cbi("v2ray_server/index"),_("V2ray Server"),3).dependent=true
entry({"admin","vpn","v2ray_server","config"},cbi("v2ray_server/config")).leaf=true
entry({"admin","vpn","v2ray_server","users_status"},call("v2ray_users_status")).leaf=true
entry({"admin", "vpn", "v2ray_server", "check"}, call("v2ray_check")).leaf = true
entry({"admin", "vpn", "v2ray_server", "update"}, call("v2ray_update")).leaf = true
end
local function http_write_json(content)
http.prepare_content("application/json")
http.write_json(content or { code = 1 })
end
function v2ray_users_status()
local e={}
e.index=luci.http.formvalue("index")
e.status=luci.sys.call("ps -w| grep -v grep | grep '/var/etc/v2ray_server/" .. luci.http.formvalue("id") .. "' >/dev/null")==0
http_write_json(e)
end
function v2ray_check()
local json = v2ray.to_check("")
http_write_json(json)
end
function v2ray_update()
local json = nil
local task = http.formvalue("task")
if task == "extract" then
json = v2ray.to_extract(http.formvalue("file"), http.formvalue("subfix"))
elseif task == "move" then
json = v2ray.to_move(http.formvalue("file"))
else
json = v2ray.to_download(http.formvalue("url"))
end
http_write_json(json)
end
| 32.914894
| 127
| 0.7117
|
54a5a84271445b6cc5c7d9115481b2c87eac5457
| 1,408
|
css
|
CSS
|
pgAdmin4/pgAdmin4/lib/python2.7/site-packages/pgadmin4/pgadmin/tools/debugger/static/css/debugger.css
|
Anillab/One-Minute-Pitch
|
123f7b2010d3ae0f031066db1bcfe6eda7a41e84
|
[
"MIT"
] | 4
|
2019-10-03T21:58:22.000Z
|
2021-02-12T13:33:32.000Z
|
openresty-win32-build/thirdparty/x86/pgsql/pgAdmin 4/web/pgadmin/tools/debugger/static/css/debugger.css
|
nneesshh/openresty-oss
|
bfbb9d7526020eda1788a0ed24f2be3c8be5c1c3
|
[
"MIT"
] | 10
|
2020-06-05T19:42:26.000Z
|
2022-03-11T23:38:35.000Z
|
openresty-win32-build/thirdparty/x86/pgsql/pgAdmin 4/web/pgadmin/tools/debugger/static/css/debugger.css
|
nneesshh/openresty-oss
|
bfbb9d7526020eda1788a0ed24f2be3c8be5c1c3
|
[
"MIT"
] | 1
|
2021-01-13T09:30:29.000Z
|
2021-01-13T09:30:29.000Z
|
#container {
position: absolute;
top: 40px;
bottom: 0px;
left: 0px;
right: 0px;
}
.full-container {
position: absolute;
top: 0px;
left: 0px;
right: 0px;
bottom:0px;
}
.full-container-pane {
width: 100%;
height: 100%;
}
.top-container {
min-height: 300px;
height: 100%;
}
.pg-debugger-panel {
height: 100%;
width: 100%;
position: absolute;
top: 0; bottom: 0; right: 0; left: 0;
}
.debugger-container .breakpoints {
width: 0.9em;
}
.debugger-container .CodeMirror-activeline-background {
background: #50B0F0;
}
.CodeMirror-foldmarker {
color: blue;
text-shadow: #b9f 1px 1px 2px, #b9f -1px -1px 2px, #b9f 1px -1px 2px, #b9f -1px 1px 2px;
font-family: "Open Sans";
line-height: .3;
cursor: pointer;
}
.CodeMirror, .CodeMirror-gutters {
min-height: 100%;
}
.CodeMirror-foldgutter {
width: .9em;
}
.CodeMirror-foldgutter-open,
.CodeMirror-foldgutter-folded {
cursor: pointer;
}
.CodeMirror-foldgutter-open:after {
content: "\25BC";
}
.CodeMirror-foldgutter-folded:after {
content: "\25B6";
}
/* To make font same as Query tool in messages tab */
.messages {
white-space: pre-wrap;
font-family: "Source Code Pro";
padding-top: 5px;
padding-left: 10px;
overflow: auto;
height: 100%;
font-size: 0.925em;
-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
user-select: text;
}
| 16.564706
| 90
| 0.647017
|
f47dec19a9c993cd4293f6d43ca01ed4d4bdfff0
| 1,187
|
ts
|
TypeScript
|
tests/testUtils/queries/species.ts
|
thehairy/star-wars-api
|
18140ae47902bb41a838f6c7397e87084239fa59
|
[
"MIT"
] | 6
|
2021-07-09T07:41:10.000Z
|
2022-03-13T03:06:58.000Z
|
tests/testUtils/queries/species.ts
|
thehairy/star-wars-api
|
18140ae47902bb41a838f6c7397e87084239fa59
|
[
"MIT"
] | 95
|
2021-07-08T23:29:57.000Z
|
2022-03-27T03:20:58.000Z
|
tests/testUtils/queries/species.ts
|
thehairy/star-wars-api
|
18140ae47902bb41a838f6c7397e87084239fa59
|
[
"MIT"
] | 2
|
2021-07-13T11:50:40.000Z
|
2021-12-22T10:39:42.000Z
|
import { gql } from '#test-utils/testUtils';
const FullDataFragment = gql`
fragment FullDataFragment on Species {
averageHeight
averageLifespan
classification
designation
eyeColors
films {
title
}
hairColors
homeworld {
name
}
language
name
people {
name
}
skinColors
}
`;
const NameOnlyFragment = gql`
fragment NameOnlyFragment on Species {
name
}
`;
export const getSpeciesName = gql`
${NameOnlyFragment}
query ($species: StarWarsSpecies!) {
getSpecies(species: $species) {
...NameOnlyFragment
}
}
`;
export const getSpeciesWithNested = gql`
${FullDataFragment}
query ($species: StarWarsSpecies!) {
getSpecies(species: $species) {
...FullDataFragment
}
}
`;
export const getFuzzySpeciesName = gql`
${NameOnlyFragment}
query ($species: String!, $take: Int, $reverse: Boolean) {
getFuzzySpecies(species: $species, take: $take, reverse: $reverse) {
...NameOnlyFragment
}
}
`;
export const getFuzzySpeciesWithNested = gql`
${FullDataFragment}
query ($species: String!, $take: Int, $reverse: Boolean) {
getFuzzySpecies(species: $species, take: $take, reverse: $reverse) {
...FullDataFragment
}
}
`;
| 17.716418
| 70
| 0.690817
|
43e9c879176b676c50a351b45c919f4b4082b918
| 704
|
ts
|
TypeScript
|
src/display/display.ts
|
mathieucaroff/hashrule
|
289d0a10d28b3a6bed59036d0b834a8cfc425c11
|
[
"0BSD"
] | null | null | null |
src/display/display.ts
|
mathieucaroff/hashrule
|
289d0a10d28b3a6bed59036d0b834a8cfc425c11
|
[
"0BSD"
] | null | null | null |
src/display/display.ts
|
mathieucaroff/hashrule
|
289d0a10d28b3a6bed59036d0b834a8cfc425c11
|
[
"0BSD"
] | null | null | null |
import { Rect } from '../hashrule/type/rectType'
export interface Display {
put: (image: ImageData, region: Rect) => void
}
export interface DisplayProp {
canvas: HTMLCanvasElement
}
let w: any = window
export let createDisplay = (prop: DisplayProp): Display => {
let { canvas } = prop
let ctx0 = canvas.getContext('2d')
if (!ctx0) throw new Error() // ctx is null
let ctx = ctx0
let a = 0
return {
put: (image, rect) => {
// console.log('Display.PUT')
if (a == 0) {
w.image = image
w.rect = rect
w.ctx = ctx
}
a++
w.a = a
ctx.putImageData(image, rect.x, rect.y)
},
}
}
| 20.705882
| 60
| 0.535511
|
f14f90cc23d5fd42182927113a8d3006e2c22586
| 63
|
rb
|
Ruby
|
frameworks/ror/app/models/text.rb
|
AxelPAL/lang-comparisons
|
98558d2a306a79e93ef233e14a788a3117f7d269
|
[
"MIT"
] | 2
|
2015-12-04T05:13:16.000Z
|
2017-01-21T21:48:45.000Z
|
frameworks/ror/app/models/text.rb
|
AxelPAL/lang-comparisons
|
98558d2a306a79e93ef233e14a788a3117f7d269
|
[
"MIT"
] | null | null | null |
frameworks/ror/app/models/text.rb
|
AxelPAL/lang-comparisons
|
98558d2a306a79e93ef233e14a788a3117f7d269
|
[
"MIT"
] | null | null | null |
class Text < ActiveRecord::Base
self.table_name = "text"
end
| 15.75
| 31
| 0.730159
|
4462ea54a35988f7ffe65d6cd43587c0df0a5ca2
| 7,905
|
py
|
Python
|
tests/test_helpers.py
|
beveradb/ecs-digital-interview-test
|
7e2d18005263424be016281d3f3f344af4536971
|
[
"MIT"
] | null | null | null |
tests/test_helpers.py
|
beveradb/ecs-digital-interview-test
|
7e2d18005263424be016281d3f3f344af4536971
|
[
"MIT"
] | 49
|
2019-02-14T01:52:14.000Z
|
2021-11-15T17:48:17.000Z
|
tests/test_helpers.py
|
beveradb/python-sql-migration-runner
|
7e2d18005263424be016281d3f3f344af4536971
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import pytest
class TestHelpers(object):
"""Tests for Helpers class in `migration_runner` package."""
def test_extract_sequence_sql_filename_expected(
self, helpers, sql_filename_expected
):
version = helpers.extract_sequence_num(sql_filename_expected)
assert version == 45
def test_extract_sequence_sql_filename_hyphen(
self, helpers, sql_filename_hyphen
):
version = helpers.extract_sequence_num(sql_filename_hyphen)
assert version == 45
def test_extract_sequence_sql_filename_not_zero_padded(
self, helpers, sql_filename_not_zero_padded
):
version = helpers.extract_sequence_num(sql_filename_not_zero_padded)
assert version == 45
def test_extract_sequence_sql_filename_spaced(
self, helpers, sql_filename_spaced
):
version = helpers.extract_sequence_num(sql_filename_spaced)
assert version == 45
def test_extract_sequence_sql_filename_no_sql_suffix(
self, helpers, sql_filename_no_sql_suffix
):
version = helpers.extract_sequence_num(sql_filename_no_sql_suffix)
assert version == 45
def test_extract_sequence_sql_filename_no_separator(
self, helpers, sql_filename_no_separator
):
version = helpers.extract_sequence_num(sql_filename_no_separator)
assert version == 45
def test_extract_sequence_sql_filename_bigint(
self, helpers, sql_filename_bigint
):
version = helpers.extract_sequence_num(sql_filename_bigint)
assert version == 23514352834592347502351435283459234750
def test_extract_sequence_sql_filename_no_version(
self, helpers, sql_filename_no_version
):
with pytest.raises(AttributeError):
helpers.extract_sequence_num(sql_filename_no_version)
def test_append_migration_sql_filename_expected(
self, helpers, sql_filename_expected
):
migrations = []
helpers.append_migration(migrations, sql_filename_expected)
assert migrations == [(45, sql_filename_expected)]
def test_append_migration_sql_filename_expected_existing_value(
self, helpers, sql_filename_expected
):
migrations = [(2, "test.sql")]
helpers.append_migration(migrations, sql_filename_expected)
assert migrations == [(2, "test.sql"),
(45, sql_filename_expected)]
def test_find_migrations_expected(
self, helpers, tmpdir, sql_filename_expected
):
filepath = tmpdir.join(sql_filename_expected)
filepath.write("test")
migrations = helpers.find_migrations(str(tmpdir))
assert migrations == [(45, str(filepath))]
def test_find_migrations_empty(
self, helpers, tmpdir
):
migrations = helpers.find_migrations(str(tmpdir))
assert migrations == []
def test_find_migrations_no_suffix(
self, helpers, tmpdir, sql_filename_no_sql_suffix
):
filepath = tmpdir.join(sql_filename_no_sql_suffix)
filepath.write("test")
migrations = helpers.find_migrations(str(tmpdir))
assert migrations == []
def test_find_migrations_multiple(
self, helpers, tmpdir,
sql_filename_expected,
sql_filename_bigint,
sql_filename_no_sql_suffix,
sql_filename_spaced
):
sql_filename_expected_filepath = tmpdir.join(sql_filename_expected)
sql_filename_expected_filepath.write("test")
sql_filename_bigint_filepath = tmpdir.join(sql_filename_bigint)
sql_filename_bigint_filepath.write("test")
sql_filename_no_sql_suffix_path = tmpdir.join(
sql_filename_no_sql_suffix)
sql_filename_no_sql_suffix_path.write("test")
sql_filename_spaced_path = tmpdir.join(sql_filename_spaced)
sql_filename_spaced_path.write("test")
migrations = helpers.find_migrations(str(tmpdir))
assert ((45, str(sql_filename_expected_filepath)) in migrations)
assert ((23514352834592347502351435283459234750,
str(sql_filename_bigint_filepath)) in migrations)
assert ((45, str(sql_filename_spaced_path)) in migrations)
def test_sort_migrations_expected(
self, helpers, unsorted_migrations_tuple_list
):
helpers.sort_migrations(unsorted_migrations_tuple_list)
assert unsorted_migrations_tuple_list == [
(1, '/tmp/001.createtable.sql'),
(2, '/tmp/2-createtable.sql'),
(45, '/tmp/045.createtable.sql'),
(60, '/tmp/60.createtable.sql'),
]
def test_sort_migrations_not_tuples(
self, helpers, unsorted_migrations_string_list
):
with pytest.raises(TypeError):
helpers.sort_migrations(unsorted_migrations_string_list)
def test_sort_migrations_not_versioned_tuples(
self, helpers, unsorted_migrations_non_versioned_list
):
with pytest.raises(TypeError):
helpers.sort_migrations(unsorted_migrations_non_versioned_list)
def test_populate_migrations_calls_find_migrations(
self, helpers, mocker, tmpdir
):
mocker.patch('migration_runner.helpers.Helpers.find_migrations')
helpers.populate_migrations(str(tmpdir))
helpers.find_migrations.assert_called_with(str(tmpdir))
def test_populate_migrations_calls_sort_migrations(
self, helpers, mocker, tmpdir, sql_filename_expected
):
sql_filename_expected_filepath = tmpdir.join(sql_filename_expected)
sql_filename_expected_filepath.write("test")
mocker.patch('migration_runner.helpers.Helpers.sort_migrations')
helpers.populate_migrations(str(tmpdir))
helpers.sort_migrations.assert_called_with(
[(45, sql_filename_expected_filepath)]
)
def test_get_unprocessed_migrations_version_0(
self, helpers, unsorted_migrations_tuple_list
):
result = helpers.get_unprocessed_migrations(
0,
unsorted_migrations_tuple_list
)
assert result == unsorted_migrations_tuple_list
def test_get_unprocessed_migrations_version_10(
self, helpers, unsorted_migrations_tuple_list
):
expected = [
(45, '/tmp/045.createtable.sql'),
(60, '/tmp/60.createtable.sql'),
]
result = helpers.get_unprocessed_migrations(
10,
unsorted_migrations_tuple_list
)
assert result == expected
def test_get_unprocessed_migrations_version_59(
self, helpers, unsorted_migrations_tuple_list
):
expected = [
(60, '/tmp/60.createtable.sql'),
]
result = helpers.get_unprocessed_migrations(
59,
unsorted_migrations_tuple_list
)
assert result == expected
def test_get_unprocessed_migrations_version_60(
self, helpers, unsorted_migrations_tuple_list
):
expected = []
result = helpers.get_unprocessed_migrations(
60,
unsorted_migrations_tuple_list
)
assert result == expected
def test_get_unprocessed_migrations_version_61(
self, helpers, unsorted_migrations_tuple_list
):
expected = []
result = helpers.get_unprocessed_migrations(
61,
unsorted_migrations_tuple_list
)
assert result == expected
def test_get_unprocessed_migrations_version_string(
self, helpers, unsorted_migrations_tuple_list
):
with pytest.raises(ValueError):
helpers.get_unprocessed_migrations(
'five',
unsorted_migrations_tuple_list)
| 33.35443
| 76
| 0.674383
|
1f83e054bd020a40adc140b388f252ebf7ddb52d
| 334
|
lua
|
Lua
|
source/graphics/drawable/iPath.lua
|
LeomRonald/DFQ-Original
|
d4b9088d9e6efeede3e504d3b6e64e3a459aa012
|
[
"Apache-2.0"
] | 30
|
2019-10-31T08:07:07.000Z
|
2022-03-28T07:04:58.000Z
|
source/graphics/drawable/iPath.lua
|
QdWan/DFQ-Original
|
46b05009fd7c9013e386046688c8feeefc3e1c66
|
[
"Apache-2.0"
] | null | null | null |
source/graphics/drawable/iPath.lua
|
QdWan/DFQ-Original
|
46b05009fd7c9013e386046688c8feeefc3e1c66
|
[
"Apache-2.0"
] | 27
|
2019-10-31T08:07:14.000Z
|
2022-02-19T02:14:23.000Z
|
--[[
desc: IPath, a interface of path's business.
author: Musoucrow
since: 2018-12-18
]]--
---@class Graphics.Drawable.IPath
---@field protected _path string
local _IPath = require("core.class")()
function _IPath:Ctor()
self._path = ""
end
---@return string
function _IPath:GetPath()
return self._path
end
return _IPath
| 16.7
| 45
| 0.697605
|
f468d792b71c6da35af013251f52fb0189c77114
| 4,799
|
ts
|
TypeScript
|
src/models/Units.ts
|
IoTChainCode/itc-ts
|
e4dff74f41fe76f5f2cf59b74e85f81174626a6e
|
[
"MIT"
] | 43
|
2018-01-29T07:36:27.000Z
|
2021-09-30T02:11:45.000Z
|
src/models/Units.ts
|
IoTChainCode/itc-ts
|
e4dff74f41fe76f5f2cf59b74e85f81174626a6e
|
[
"MIT"
] | null | null | null |
src/models/Units.ts
|
IoTChainCode/itc-ts
|
e4dff74f41fe76f5f2cf59b74e85f81174626a6e
|
[
"MIT"
] | 12
|
2018-01-31T15:13:38.000Z
|
2020-05-22T00:55:52.000Z
|
import Unit from '../core/unit';
import sqlstore from '../storage/sqlstore';
import Parents from './Parents';
import Witnesses from './Witnesses';
import {Authors} from './Authors';
import Messages from './Messages';
import {isGenesisUnit} from '../core/genesis';
type StaticUnitProps = {
level: number,
witnessed_level: number,
best_parent_unit: Base64,
witness_list_unit: Base64,
};
const cachedUnits = new Map<Base64, StaticUnitProps>();
const stableUnits = new Map<Base64, any>();
type UnitStatus = 'unknown' | 'known';
export default class Units {
static async readStaticUnitProps(unit: Base64): Promise<StaticUnitProps> {
const props = cachedUnits.get(unit);
if (props)
return props;
const row: StaticUnitProps = await sqlstore.get(`
SELECT level, witnessed_level, best_parent_unit, witness_list_unit FROM units where unit=?`, unit);
cachedUnits.set(unit, row);
return row;
}
static async readUnitProps(unit: Base64): Promise<any> {
if (stableUnits.has(unit))
return stableUnits.get(unit);
const rows = await sqlstore.all(`
SELECT unit, level, latest_included_mc_index, main_chain_index, is_on_main_chain, is_free, is_stable, witnessed_level
FROM units WHERE unit=?`,
unit,
);
const props = rows[0];
if (props.is_stable) {
stableUnits.set(unit, props);
}
return props;
}
static async readPropsOfUnits(earlierUnit: string, laterUnits: any[]) {
const rows = await sqlstore.all(`
SELECT unit, level, latest_included_mc_index, main_chain_index, is_on_main_chain, is_free FROM units WHERE unit IN(?, ?)`,
earlierUnit, laterUnits,
);
let earlierUnitProps;
const laterUnitProps = [];
for (let i = 0; i < rows.length; i++) {
if (rows[i].unit === earlierUnit)
earlierUnitProps = rows[i];
else
laterUnitProps.push(rows[i]);
}
return [earlierUnitProps, laterUnitProps];
}
static async read(unit: Base64): Promise<Unit> {
const row = await sqlstore.get(`
SELECT units.unit, version, alt, witness_list_unit, last_ball_unit, balls.ball AS last_ball, is_stable,
content_hash, headers_commission, payload_commission, main_chain_index,
FROM units LEFT JOIN balls ON last_ball_unit=balls.unit WHERE units.unit=?`,
unit,
);
if (!row) {
return null;
}
const parents = await Parents.read(unit);
let witnesses = [];
if (!row.witness_list_unit) {
witnesses = await Witnesses.readWitnessList(unit);
}
const authors = await Authors.read(unit);
const messages = await Messages.read(unit);
return new Unit(
parents,
row.last_ball,
row.last_ball_unit,
row.witness_list_unit,
authors,
witnesses,
messages,
);
}
static async save(unit: Unit, sequence: string) {
const fields = [
'unit', 'version', 'alt', 'witness_list_unit', 'last_ball_unit', 'headers_commission',
'payload_commission', 'sequence', 'content_hash',
];
const values = '?,?,?,?,?,?,?,?,?';
const params = [unit.unit, unit.version, unit.alt, unit.witnessListUnit, unit.lastBallUnit, unit.headersCommission,
unit.payloadCommission, sequence,
];
await sqlstore.run(`INSERT INTO units (${fields}) VALUES (${values})`, ...params);
if (isGenesisUnit(unit)) {
await sqlstore.run(`
UPDATE units SET is_on_main_chain=1, main_chain_index=0, is_stable=1, level=0, witnessed_level=0
WHERE unit=?`, unit.unit);
} else {
await sqlstore.run(`UPDATE units SET is_free=0 WHERE unit IN(?)`, unit.parentUnits);
}
// save balls
if (unit.ball) {
await sqlstore.run('INSERT INTO balls (ball, unit) VALUES(?,?)', unit.ball, unit.unit);
}
// save parenthoods
if (unit.parentUnits) {
for (const parent of unit.parentUnits) {
await sqlstore.run('INSERT INTO parenthoods (child_unit, parent_unit) VALUES(?,?)', unit.unit, parent);
}
}
await Messages.save(unit);
await Witnesses.save(unit);
await Authors.save(unit);
}
static async checkUnitStatus(unit: Base64): Promise<UnitStatus> {
const rows = await sqlstore.all('SELECT 1 FROM units WHERE unit=?', unit);
if (rows.length > 0)
return 'known';
return 'unknown';
}
}
| 34.278571
| 134
| 0.595124
|
56ce5563831f9810f10a228cc6c3688827158c0c
| 2,876
|
swift
|
Swift
|
Sources/LanguageClient/LocalProcessServer.swift
|
ChimeHQ/LanguageClient
|
d979e5416b16e8130f87b8e46f60f82cac4d64cb
|
[
"BSD-3-Clause"
] | 15
|
2021-11-23T18:32:07.000Z
|
2022-03-21T20:20:29.000Z
|
Sources/LanguageClient/LocalProcessServer.swift
|
ChimeHQ/LanguageClient
|
d979e5416b16e8130f87b8e46f60f82cac4d64cb
|
[
"BSD-3-Clause"
] | null | null | null |
Sources/LanguageClient/LocalProcessServer.swift
|
ChimeHQ/LanguageClient
|
d979e5416b16e8130f87b8e46f60f82cac4d64cb
|
[
"BSD-3-Clause"
] | null | null | null |
import Foundation
import LanguageServerProtocol
import JSONRPC
#if os(macOS)
import ProcessEnv
public class LocalProcessServer {
private let transport: StdioDataTransport
private let process: Process
private var wrappedServer: JSONRPCLanguageServer?
public var terminationHandler: (() -> Void)?
public convenience init(path: String, arguments: [String], environment: [String : String]? = nil) {
let params = Process.ExecutionParameters(path: path, arguments: arguments, environment: environment)
self.init(executionParameters: params)
}
public init(executionParameters parameters: Process.ExecutionParameters) {
self.transport = StdioDataTransport()
self.wrappedServer = JSONRPCLanguageServer(dataTransport: transport)
self.process = Process()
process.standardInput = transport.stdinPipe
process.standardOutput = transport.stdoutPipe
process.standardError = transport.stderrPipe
process.parameters = parameters
process.terminationHandler = { [unowned self] (task) in
self.processTerminated(task)
}
process.launch()
}
deinit {
process.terminationHandler = nil
process.terminate()
transport.close()
}
private func processTerminated(_ process: Process) {
transport.close()
// releasing the server here will short-circuit any pending requests,
// which might otherwise take a while to time out, if ever.
wrappedServer = nil
terminationHandler?()
}
public var logMessages: Bool {
get { return wrappedServer?.logMessages ?? false }
set { wrappedServer?.logMessages = newValue }
}
}
extension LocalProcessServer: LanguageServerProtocol.Server {
public var requestHandler: RequestHandler? {
get { return wrappedServer?.requestHandler }
set { wrappedServer?.requestHandler = newValue }
}
public var notificationHandler: NotificationHandler? {
get { wrappedServer?.notificationHandler }
set { wrappedServer?.notificationHandler = newValue }
}
public func sendNotification(_ notif: ClientNotification, completionHandler: @escaping (ServerError?) -> Void) {
guard let server = wrappedServer, process.isRunning else {
completionHandler(.serverUnavailable)
return
}
server.sendNotification(notif, completionHandler: completionHandler)
}
public func sendRequest<Response: Codable>(_ request: ClientRequest, completionHandler: @escaping (ServerResult<Response>) -> Void) {
guard let server = wrappedServer, process.isRunning else {
completionHandler(.failure(.serverUnavailable))
return
}
server.sendRequest(request, completionHandler: completionHandler)
}
}
#endif
| 31.26087
| 137
| 0.687413
|
84514fe067994e8ff2bc0f136892fbb76ca6df15
| 906
|
swift
|
Swift
|
Sources/MockingbirdGenerator/Generator/Templates/Primitives/FunctionDefinitionTemplate.swift
|
ARamy23/mockingbird
|
55bb0b407d0ae44e60aad105b7c0a3ae584bc5e4
|
[
"MIT"
] | 1
|
2022-01-16T17:00:12.000Z
|
2022-01-16T17:00:12.000Z
|
Sources/MockingbirdGenerator/Generator/Templates/Primitives/FunctionDefinitionTemplate.swift
|
ARamy23/mockingbird
|
55bb0b407d0ae44e60aad105b7c0a3ae584bc5e4
|
[
"MIT"
] | null | null | null |
Sources/MockingbirdGenerator/Generator/Templates/Primitives/FunctionDefinitionTemplate.swift
|
ARamy23/mockingbird
|
55bb0b407d0ae44e60aad105b7c0a3ae584bc5e4
|
[
"MIT"
] | null | null | null |
import Foundation
struct FunctionDefinitionTemplate: Template {
let leadingTrivia: String
let attributes: [String]
let declaration: String
let genericConstraints: [String]
let body: String
init(leadingTrivia: String = "",
attributes: [String] = [],
declaration: String,
genericConstraints: [String] = [],
body: String) {
self.leadingTrivia = leadingTrivia
self.attributes = attributes
self.declaration = declaration
self.genericConstraints = genericConstraints
self.body = body
}
func render() -> String {
let genericConstraintsString = genericConstraints.isEmpty ? "" :
" where \(separated: genericConstraints)"
return String(lines: [
leadingTrivia,
attributes.filter({ !$0.isEmpty }).joined(separator: " "),
declaration + genericConstraintsString + " " + BlockTemplate(body: body).render()
])
}
}
| 28.3125
| 87
| 0.673289
|
3b3f1bdc8dffe04f029e4936f1ef6da4920b9d83
| 1,334
|
sql
|
SQL
|
views/p800_sheet_preview.sql
|
jkvetina/BUG
|
2b5c02e5166bdf2ea5f743d40b06732662f4e038
|
[
"MIT"
] | 3
|
2021-12-27T08:55:43.000Z
|
2022-03-17T16:57:30.000Z
|
views/p800_sheet_preview.sql
|
jkvetina/Lumberjack---tree-logger-for-PL-SQL
|
fd7ead7ce082b8ff66d29cdce0049e53944707b2
|
[
"MIT"
] | null | null | null |
views/p800_sheet_preview.sql
|
jkvetina/Lumberjack---tree-logger-for-PL-SQL
|
fd7ead7ce082b8ff66d29cdce0049e53944707b2
|
[
"MIT"
] | null | null | null |
CREATE OR REPLACE FORCE VIEW p800_sheet_preview AS
WITH s AS (
SELECT
s.*,
app.get_duration(l.timer) AS timer
FROM uploaded_file_sheets s
LEFT JOIN logs l
ON l.log_id = s.result_log_id
WHERE s.file_name = apex.get_item('$FILE')
AND s.sheet_id = apex.get_item('$SHEET')
AND s.app_id = sess.get_app_id()
AND s.uploader_id = apex.get_item('$TARGET')
)
SELECT
t.label_,
--
CASE WHEN ROWNUM = 1 THEN
TO_CHAR(s.updated_at, 'YYYY-MM-DD HH24:MI') ||
CASE WHEN s.commited_at IS NOT NULL THEN ' COMMIT' END ||
CASE WHEN s.updated_at IS NOT NULL THEN '<br />' END ||
s.timer
END AS supplemental_,
--
t.counter_,
t.filter_
FROM (
SELECT 'Inserted' AS label_, s.result_inserted AS counter_, 'I' AS filter_ FROM s UNION ALL
SELECT 'Updated' AS label_, s.result_updated AS counter_, 'U' AS filter_ FROM s UNION ALL
SELECT 'Deleted' AS label_, s.result_deleted AS counter_, 'D' AS filter_ FROM s UNION ALL
SELECT 'Errors' AS label_, s.result_errors AS counter_, 'E' AS filter_ FROM s UNION ALL
SELECT 'Unmatched' AS label_, s.result_unmatched AS counter_, '-' AS filter_ FROM s
) t
CROSS JOIN s
WHERE t.counter_ > 0;
| 37.055556
| 101
| 0.613193
|
43c3b61e6c3ba63acbc22168847f1db1446f7ce0
| 567
|
ts
|
TypeScript
|
src/app/views/notificationchannel/email.component.ts
|
brijesh3052/goamlrep
|
8c07a1e37efcdd67102639881e404d3f25582747
|
[
"MIT"
] | null | null | null |
src/app/views/notificationchannel/email.component.ts
|
brijesh3052/goamlrep
|
8c07a1e37efcdd67102639881e404d3f25582747
|
[
"MIT"
] | null | null | null |
src/app/views/notificationchannel/email.component.ts
|
brijesh3052/goamlrep
|
8c07a1e37efcdd67102639881e404d3f25582747
|
[
"MIT"
] | null | null | null |
import { Component } from '@angular/core';
@Component({
templateUrl: 'email.component.html'
})
export class Email {
constructor() { }
smtpCard: boolean = false;
emailCard: boolean = true;
configurationField: boolean = false;
buttonLabel:string = "Modify";
sendEmail(){
this.smtpCard = true;
this.emailCard = false;
}
enableForm(){
this.configurationField = true;
this.buttonLabel = "Save";
(<HTMLInputElement> document.getElementById("button")).value="Save";
}
disableForm(){
this.configurationField = false;
}
}
| 18.9
| 72
| 0.664903
|
a374c3ef23bd8828d497d201ad8982b77f62d584
| 2,672
|
java
|
Java
|
collect_app/src/main/java/org/eco/collect/android/utilities/NotificationUtils.java
|
AdamEcoTest/ecocollect
|
1d0a68e9122905691618223d007181ab7303c268
|
[
"Apache-2.0"
] | null | null | null |
collect_app/src/main/java/org/eco/collect/android/utilities/NotificationUtils.java
|
AdamEcoTest/ecocollect
|
1d0a68e9122905691618223d007181ab7303c268
|
[
"Apache-2.0"
] | null | null | null |
collect_app/src/main/java/org/eco/collect/android/utilities/NotificationUtils.java
|
AdamEcoTest/ecocollect
|
1d0a68e9122905691618223d007181ab7303c268
|
[
"Apache-2.0"
] | null | null | null |
/*
* Copyright 2018 Nafundi
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.eco.collect.android.utilities;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.os.Build;
import androidx.core.app.NotificationCompat;
import org.eco.collect.android.R;
import org.eco.collect.android.application.Collect;
public class NotificationUtils {
public static final String CHANNEL_ID = "collect_notification_channel";
public static final int FORM_UPDATE_NOTIFICATION_ID = 0;
private NotificationUtils() {
}
public static void createNotificationChannel(Collect collect) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
NotificationManager notificationManager = collect.getSystemService(NotificationManager.class);
if (notificationManager != null) {
notificationManager.createNotificationChannel(new NotificationChannel(
CHANNEL_ID,
collect.getString(R.string.notification_channel_name),
NotificationManager.IMPORTANCE_DEFAULT)
);
}
}
}
public static void showNotification(PendingIntent contentIntent,
int notificationId,
int title,
String contentText) {
Context context = Collect.getInstance();
NotificationCompat.Builder builder = new NotificationCompat.Builder(context, CHANNEL_ID).setContentIntent(contentIntent);
builder
.setContentTitle(context.getString(title))
.setContentText(contentText)
.setSmallIcon(IconUtils.getNotificationAppIcon())
.setAutoCancel(true);
NotificationManager manager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
if (manager != null) {
manager.notify(notificationId, builder.build());
}
}
}
| 37.633803
| 129
| 0.661677
|
393586696589664d15a34e4afb5e958b461be868
| 1,249
|
py
|
Python
|
src/wield_services/wield/deploy/image.py
|
hamshif/wield-services
|
f159c192accb3649e2ec470a25bf9784cf76a409
|
[
"Apache-2.0"
] | null | null | null |
src/wield_services/wield/deploy/image.py
|
hamshif/wield-services
|
f159c192accb3649e2ec470a25bf9784cf76a409
|
[
"Apache-2.0"
] | 1
|
2020-06-09T08:17:38.000Z
|
2020-06-09T08:17:38.000Z
|
src/wield_services/wield/deploy/image.py
|
hamshif/wield-services
|
f159c192accb3649e2ec470a25bf9784cf76a409
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/env python
from wield_services.wield.deploy.util import get_locale, get_module_locale
from wield_services.wield.deploy.configurer import get_project_deploy_mode
from wielder.util.commander import async_cmd
# TODO find a way to abstract this it's ugly
from wield_services.deploy.boot.wield.boot_image import boot_image
from wield_services.deploy.pep.wield.pep_image import pep_image
from wield_services.deploy.whisperer.wield.whisperer_image import whisperer_image
from wield_services.deploy.slate.wield.slate_image import slate_image
def output(result):
print(f"Type of result: {type(result)}")
# [print(f"result: {r}") for r in result]
print(result)
def micros_image(parallel=True, action=None, delete_project_res=False):
wield_mode, conf, action = get_project_deploy_mode(action)
locale = get_locale(__file__)
deployments = conf.deployments
for deploy in deployments:
print(f'{deploy}')
module_root = get_module_locale(deploy).module_root
image_script = f'{module_root}wield/{deploy}_image.py'
print(f'{image_script}')
if __name__ == "__main__":
# micros_image(parallel=True)
boot_image()
whisperer_image()
slate_image()
pep_image()
| 24.490196
| 81
| 0.7502
|
72c75d9161b88bb3d8ba08dd07972c290e60bf65
| 3,430
|
cs
|
C#
|
xna/branches/gui_sandbox/Dependancies/CeGui/CeGui/Source/Falagard/TextComponent.cs
|
astyanax/Project-Xenocide
|
e9448fe1ffad4adebd932a289e9772d7d5ccfca4
|
[
"MIT"
] | 1
|
2018-03-12T03:41:55.000Z
|
2018-03-12T03:41:55.000Z
|
xna/trunk/Dependancies/CeGui/CeGui/Source/Falagard/TextComponent.cs
|
astyanax/Project-Xenocide
|
e9448fe1ffad4adebd932a289e9772d7d5ccfca4
|
[
"MIT"
] | null | null | null |
xna/trunk/Dependancies/CeGui/CeGui/Source/Falagard/TextComponent.cs
|
astyanax/Project-Xenocide
|
e9448fe1ffad4adebd932a289e9772d7d5ccfca4
|
[
"MIT"
] | null | null | null |
#region LGPL License
/*************************************************************************
Crazy Eddie's GUI System (http://crayzedsgui.sourceforge.net)
Copyright (C)2004 Paul D Turner (crayzed@users.sourceforge.net)
C# Port developed by Chris McGuirk (leedgitar@latenitegames.com)
Compatible with the Axiom 3D Engine (http://axiomengine.sf.net)
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*************************************************************************/
#endregion LGPL License
using System;
using System.Drawing;
namespace CeGui {
/// <summary>
/// Class that encapsulates information for a text component.
/// </summary>
public class TextComponent : FalagardComponentBase {
#region Fields
/// <summary>
/// text rendered by this component.
/// </summary>
protected string text;
/// <summary>
/// name of font to use.
/// </summary>
protected string font;
/// <summary>
/// Vertical formatting to be applied when rendering the component.
/// </summary>
protected VerticalTextFormatting vertFormatting;
/// <summary>
/// Horizontal formatting to be applied when rendering the component.
/// </summary>
protected HorizontalTextFormatting horzFormatting;
#endregion
#region Properties
/// <summary>
/// Gets/Sets the text object that will be rendered by this TextComponent.
/// </summary>
public string Text {
get { return text; }
set { text = value; }
}
/// <summary>
/// Gets/Sets the name of the font to be used when rendering this TextComponent.
/// </summary>
public string Font {
get { return font; }
set { font = value; }
}
/// <summary>
/// Return the current vertical formatting setting for this TextComponent.
/// </summary>
public VerticalTextFormatting VerticalFormatting {
get { return vertFormatting; }
set { vertFormatting = value; }
}
/// <summary>
/// Return the current horizontal formatting setting for this TextComponent.
/// </summary>
public HorizontalTextFormatting HorizontalFormatting {
get { return horzFormatting; }
set { horzFormatting = value; }
}
#endregion
#region Constructors
/// <summary>
/// Constructor
/// </summary>
public TextComponent() {
vertFormatting = VerticalTextFormatting.TopAligned;
horzFormatting = HorizontalTextFormatting.LeftAligned;
}
#endregion
#region Protected Methods
protected override void RenderImpl(Window srcWindow, Rect destRect, float base_z, ColourRect modColours, Rect clipper, bool clipToDisplay) {
throw new NotImplementedException();
}
#endregion
}
} // namespace CeGui
| 32.666667
| 143
| 0.658601
|
daa0bfd14a66b27dd51ea1176b492d42e3426192
| 2,055
|
php
|
PHP
|
classes/ExpenseChart.php
|
fbeuster/since
|
e9b53668d0c34666d6aff9303b837ed64ac361e0
|
[
"BSD-2-Clause"
] | 1
|
2018-02-10T18:40:09.000Z
|
2018-02-10T18:40:09.000Z
|
classes/ExpenseChart.php
|
fbeuster/since
|
e9b53668d0c34666d6aff9303b837ed64ac361e0
|
[
"BSD-2-Clause"
] | 1
|
2020-01-11T16:32:31.000Z
|
2020-01-11T16:32:31.000Z
|
classes/ExpenseChart.php
|
fbeuster/SINCE
|
e9b53668d0c34666d6aff9303b837ed64ac361e0
|
[
"BSD-2-Clause"
] | null | null | null |
<?php
class ExpenseChart {
private $expenses = array();
private $total = 0;
function __construct() {
$this->loadData();
}
public function getJavaScripts() {
$scripts = '';
$scripts .= '<script type="text/javascript" src="assets/js/distribution_chart.js"></script>';
$scripts .= '<script type="text/javascript">';
$scripts .= 'var expense_chart = $.extend(true, {}, app.distribution_chart);';
$scripts .= "expense_chart.draw('#expense_chart', JSON.parse('".json_encode($this->expenses)."'));";
$scripts .= '</script>';
return $scripts;
}
private function loadData() {
$con = Database::getDB()->getCon();
$sql = 'SELECT
`customers`.`name`,
`customers`.`color`,
ROUND(SUM(`brutto`), 2) AS `brutto_sum`
FROM
`transactions`
JOIN
`categories`
ON `categories`.`id` = `transactions`.`category_id`
JOIN
`customers`
ON `customers`.`id` = `transactions`.`customers_id`
WHERE
`is_income` = 0
GROUP BY
`customers`.`name`
ORDER BY
`brutto_sum` DESC';
$stmt = $con->prepare($sql);
$stmt->execute();
$stmt->bind_result($customer, $color, $brutto);
while ($stmt->fetch()) {
$this->total += $brutto;
$this->expenses[] = array(
'c' => $customer,
'color' => ($color && preg_match('/#[a-f0-9]{6}/', $color)) ? $color : '',
'amount' => $brutto
);
}
$stmt->close();
}
public function show() {
echo '<h3 class="distribution_chart">Expense Distribution</h3>';
echo '<p>The following chart illustrates the distribution of the expenses for given year across the different vendors.';
echo '<div id="expense_chart" class="distribution_chart" data-sum="'.$this->total.'">';
echo '</div>';
}
}
?>
| 30.671642
| 126
| 0.513382
|
0ce473d490b2d3418c9eda1e19d6132166691c89
| 1,108
|
rb
|
Ruby
|
microprocessor/emips/sim/checkinsn.rb
|
hhonda68/handy-eda-utils
|
1ff761d2a30d76681d0047e62663cb42f6622d69
|
[
"MIT"
] | null | null | null |
microprocessor/emips/sim/checkinsn.rb
|
hhonda68/handy-eda-utils
|
1ff761d2a30d76681d0047e62663cb42f6622d69
|
[
"MIT"
] | null | null | null |
microprocessor/emips/sim/checkinsn.rb
|
hhonda68/handy-eda-utils
|
1ff761d2a30d76681d0047e62663cb42f6622d69
|
[
"MIT"
] | null | null | null |
#!/usr/bin/ruby -w
#
# EMIPS : Embedding MIPS Microprocessor
#
# Copyright (c) 2012 the handy-eda-utils developer(s).
# Distributed under the MIT License.
# (See accompanying file COPYING or copy at
# http://www.opensource.org/licenses/mit-license.php.)
#
# ruby checkinsn.rb foo.dis
# ==> if (foo.dis contains unsupported instructions) {
# print them and exit(2);
# } else {
# print nothing and exit(0);
# }
SupportedInsnList = %w(sll srl sra sllv srlv srav jr jalr mfhi mflo mult multu div divu) +
%w(addu subu and or xor nor slt sltu bltz bgez bltzal bgezal j jal beq bne blez bgtz) +
%w(addiu slti sltiu andi ori xori lui mfc0 mtc0 lb lh lw lbu lhu sb sh sw) +
%w(nop move negu beqz bnez li)
SupportedInsn = {}
SupportedInsnList.each do |insn|
SupportedInsn[insn] = true
end
exitcode = 0
while ($_ = gets) do
($_ =~ /^[0-9a-f]{8}:\s+[0-9a-f]{8}\s+(\w+)/) or next
opcode = $1
unless SupportedInsn.include?(opcode) then
print("Error: unsupported insn: ", $_)
exitcode = 2
end
end
exit(exitcode)
| 30.777778
| 107
| 0.631769
|
e00c9faf8f4507eb7d9de558252c9cec7484d2e7
| 7,126
|
h
|
C
|
test/stress/set/set_type_lazy_list.h
|
Nemo1369/libcds
|
6c96ab635067b2018b14afe5dd0251b9af3ffddf
|
[
"BSD-2-Clause"
] | null | null | null |
test/stress/set/set_type_lazy_list.h
|
Nemo1369/libcds
|
6c96ab635067b2018b14afe5dd0251b9af3ffddf
|
[
"BSD-2-Clause"
] | 1
|
2017-11-12T06:43:27.000Z
|
2017-11-12T06:43:27.000Z
|
test/stress/set/set_type_lazy_list.h
|
Nemo1369/libcds
|
6c96ab635067b2018b14afe5dd0251b9af3ffddf
|
[
"BSD-2-Clause"
] | 2
|
2020-10-01T04:12:27.000Z
|
2021-07-01T07:46:19.000Z
|
/*
This file is a part of libcds - Concurrent Data Structures library
(C) Copyright Maxim Khizhinsky (libcds.dev@gmail.com) 2006-2017
Source code repo: http://github.com/khizmax/libcds/
Download: http://sourceforge.net/projects/libcds/files/
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef CDSUNIT_SET_TYPE_LAZY_LIST_H
#define CDSUNIT_SET_TYPE_LAZY_LIST_H
#include "set_type.h"
#include <cds/container/lazy_list_hp.h>
#include <cds/container/lazy_list_dhp.h>
#include <cds/container/lazy_list_rcu.h>
namespace set {
template <typename Key, typename Val>
struct lazy_list_type
{
typedef typename set_type_base< Key, Val >::key_val key_val;
typedef typename set_type_base< Key, Val >::compare compare;
typedef typename set_type_base< Key, Val >::less less;
struct traits_LazyList_cmp :
public cc::lazy_list::make_traits<
co::compare< compare >
>::type
{};
typedef cc::LazyList< cds::gc::HP, key_val, traits_LazyList_cmp > LazyList_HP_cmp;
typedef cc::LazyList< cds::gc::DHP, key_val, traits_LazyList_cmp > LazyList_DHP_cmp;
typedef cc::LazyList< rcu_gpi, key_val, traits_LazyList_cmp > LazyList_RCU_GPI_cmp;
typedef cc::LazyList< rcu_gpb, key_val, traits_LazyList_cmp > LazyList_RCU_GPB_cmp;
typedef cc::LazyList< rcu_gpt, key_val, traits_LazyList_cmp > LazyList_RCU_GPT_cmp;
#ifdef CDS_URCU_SIGNAL_HANDLING_ENABLED
typedef cc::LazyList< rcu_shb, key_val, traits_LazyList_cmp > LazyList_RCU_SHB_cmp;
#endif
struct traits_LazyList_cmp_stat : public traits_LazyList_cmp
{
typedef cc::lazy_list::stat<> stat;
};
typedef cc::LazyList< cds::gc::HP, key_val, traits_LazyList_cmp_stat > LazyList_HP_cmp_stat;
typedef cc::LazyList< cds::gc::DHP, key_val, traits_LazyList_cmp_stat > LazyList_DHP_cmp_stat;
typedef cc::LazyList< rcu_gpi, key_val, traits_LazyList_cmp_stat > LazyList_RCU_GPI_cmp_stat;
typedef cc::LazyList< rcu_gpb, key_val, traits_LazyList_cmp_stat > LazyList_RCU_GPB_cmp_stat;
typedef cc::LazyList< rcu_gpt, key_val, traits_LazyList_cmp_stat > LazyList_RCU_GPT_cmp_stat;
#ifdef CDS_URCU_SIGNAL_HANDLING_ENABLED
typedef cc::LazyList< rcu_shb, key_val, traits_LazyList_cmp_stat > LazyList_RCU_SHB_cmp_stat;
#endif
struct traits_LazyList_cmp_seqcst :
public cc::lazy_list::make_traits<
co::compare< compare >
,co::memory_model< co::v::sequential_consistent >
>::type
{};
typedef cc::LazyList< cds::gc::HP, key_val, traits_LazyList_cmp_seqcst > LazyList_HP_cmp_seqcst;
typedef cc::LazyList< cds::gc::DHP, key_val, traits_LazyList_cmp_seqcst > LazyList_DHP_cmp_seqcst;
typedef cc::LazyList< rcu_gpi, key_val, traits_LazyList_cmp_seqcst > LazyList_RCU_GPI_cmp_seqcst;
typedef cc::LazyList< rcu_gpb, key_val, traits_LazyList_cmp_seqcst > LazyList_RCU_GPB_cmp_seqcst;
typedef cc::LazyList< rcu_gpt, key_val, traits_LazyList_cmp_seqcst > LazyList_RCU_GPT_cmp_seqcst;
#ifdef CDS_URCU_SIGNAL_HANDLING_ENABLED
typedef cc::LazyList< rcu_shb, key_val, traits_LazyList_cmp_seqcst > LazyList_RCU_SHB_cmp_seqcst;
#endif
struct traits_LazyList_less:
public cc::lazy_list::make_traits<
co::less< less >
>::type
{};
typedef cc::LazyList< cds::gc::HP, key_val, traits_LazyList_less > LazyList_HP_less;
typedef cc::LazyList< cds::gc::DHP, key_val, traits_LazyList_less > LazyList_DHP_less;
typedef cc::LazyList< rcu_gpi, key_val, traits_LazyList_less > LazyList_RCU_GPI_less;
typedef cc::LazyList< rcu_gpb, key_val, traits_LazyList_less > LazyList_RCU_GPB_less;
typedef cc::LazyList< rcu_gpt, key_val, traits_LazyList_less > LazyList_RCU_GPT_less;
#ifdef CDS_URCU_SIGNAL_HANDLING_ENABLED
typedef cc::LazyList< rcu_shb, key_val, traits_LazyList_less > LazyList_RCU_SHB_less;
#endif
struct traits_LazyList_less_stat: public traits_LazyList_less
{
typedef cc::lazy_list::stat<> stat;
};
typedef cc::LazyList< cds::gc::HP, key_val, traits_LazyList_less_stat > LazyList_HP_less_stat;
typedef cc::LazyList< cds::gc::DHP, key_val, traits_LazyList_less_stat > LazyList_DHP_less_stat;
typedef cc::LazyList< rcu_gpi, key_val, traits_LazyList_less_stat > LazyList_RCU_GPI_less_stat;
typedef cc::LazyList< rcu_gpb, key_val, traits_LazyList_less_stat > LazyList_RCU_GPB_less_stat;
typedef cc::LazyList< rcu_gpt, key_val, traits_LazyList_less_stat > LazyList_RCU_GPT_less_stat;
#ifdef CDS_URCU_SIGNAL_HANDLING_ENABLED
typedef cc::LazyList< rcu_shb, key_val, traits_LazyList_less_stat > LazyList_RCU_SHB_less_stat;
#endif
struct traits_LazyList_less_seqcst :
public cc::lazy_list::make_traits<
co::less< less >
,co::memory_model< co::v::sequential_consistent >
>::type
{};
typedef cc::LazyList< cds::gc::HP, key_val, traits_LazyList_less_seqcst > LazyList_HP_less_seqcst;
typedef cc::LazyList< cds::gc::DHP, key_val, traits_LazyList_less_seqcst > LazyList_DHP_less_seqcst;
typedef cc::LazyList< rcu_gpi, key_val, traits_LazyList_less_seqcst > LazyList_RCU_GPI_less_seqcst;
typedef cc::LazyList< rcu_gpb, key_val, traits_LazyList_less_seqcst > LazyList_RCU_GPB_less_seqcst;
typedef cc::LazyList< rcu_gpt, key_val, traits_LazyList_less_seqcst > LazyList_RCU_GPT_less_seqcst;
#ifdef CDS_URCU_SIGNAL_HANDLING_ENABLED
typedef cc::LazyList< rcu_shb, key_val, traits_LazyList_less_seqcst > LazyList_RCU_SHB_less_seqcst;
#endif
};
} // namespace set
#endif // #ifndef CDSUNIT_SET_TYPE_LAZY_LIST_H
| 51.637681
| 108
| 0.731967
|
ee1284f630040d8c0d443d12da33812f14518d01
| 818
|
go
|
Go
|
core/chains/terra/denom/denom_test.go
|
solidity-external-tests/chainlink
|
c3c190e60fd2d119336fa1412b304644631cce01
|
[
"MIT"
] | 1
|
2022-02-08T17:23:34.000Z
|
2022-02-08T17:23:34.000Z
|
core/chains/terra/denom/denom_test.go
|
solidity-external-tests/chainlink
|
c3c190e60fd2d119336fa1412b304644631cce01
|
[
"MIT"
] | 15
|
2022-02-26T13:50:17.000Z
|
2022-03-30T11:35:30.000Z
|
core/chains/terra/denom/denom_test.go
|
solidity-external-tests/chainlink
|
c3c190e60fd2d119336fa1412b304644631cce01
|
[
"MIT"
] | 2
|
2021-11-21T22:14:21.000Z
|
2022-01-31T23:12:32.000Z
|
package denom
import (
"testing"
"github.com/cosmos/cosmos-sdk/types"
"github.com/stretchr/testify/require"
)
func TestConvertToLuna(t *testing.T) {
tests := []struct {
coin types.Coin
exp string
}{
{types.NewInt64Coin("uluna", 1), "0.000001000000000000luna"},
{types.NewInt64Coin("uluna", 0), "0.000000000000000000luna"},
{types.NewInt64Coin("luna", 1), "1.000000000000000000luna"},
{types.NewInt64Coin("uluna", 1000000), "1.000000000000000000luna"},
{types.NewInt64Coin("mluna", 1000000), "1000.000000000000000000luna"},
{types.NewInt64Coin("mluna", 123456789), "123456.789000000000000000luna"},
}
for _, tt := range tests {
t.Run(tt.coin.String(), func(t *testing.T) {
got, err := ConvertToLuna(tt.coin)
require.NoError(t, err)
require.Equal(t, tt.exp, got.String())
})
}
}
| 27.266667
| 76
| 0.691932
|
e482a4f4b37b64cea64bb83691ff45c291e5e16b
| 8,391
|
swift
|
Swift
|
Sources/MQTTDecoder/MQTTDecoder.swift
|
lbhbrave/swiftnio-mqttDecoder
|
8d2d86ba88a11a959e53ae49c8325e37626a328a
|
[
"MIT"
] | 18
|
2018-05-18T06:47:11.000Z
|
2021-11-19T09:03:40.000Z
|
Sources/MQTTDecoder/MQTTDecoder.swift
|
lbhbrave/swiftnio-mqttDecoder
|
8d2d86ba88a11a959e53ae49c8325e37626a328a
|
[
"MIT"
] | null | null | null |
Sources/MQTTDecoder/MQTTDecoder.swift
|
lbhbrave/swiftnio-mqttDecoder
|
8d2d86ba88a11a959e53ae49c8325e37626a328a
|
[
"MIT"
] | 3
|
2019-03-20T03:19:15.000Z
|
2020-06-30T06:39:55.000Z
|
import NIO
import Foundation
//enum ParseError {
// case
//}
enum ParseResult {
case insufficientData
case decoded(num: Int)
case result(decoded:Int, packet: MQTTPacket)
}
fileprivate class MQTTParserState {
internal var state: WaitingDataState = .firstByte
internal var decoder: MQTTMessageDecoder = MQTTMessageDecoder()
public var cumulationBuffer: ByteBuffer? = nil
internal private(set) var curRemainlength: Int? = nil
internal private(set) var curFixedHeader: MQTTPacketFixedHeader? = nil
internal private(set) var curVariableHeader: MQTTPacketVariableHeader? = nil
internal private(set) var curPayload: MQTTPacketPayload? = nil
enum WaitingDataState {
case firstByte
case variableHeaderData
case payloadData
}
func praseStep(_ buffer: inout ByteBuffer) throws -> ParseResult {
switch self.state {
case .firstByte:
let (decoded, fixedheader) = try decoder.decodeFixedHeader(buffer: &buffer)
guard decoded != 0, let fixedHeader = fixedheader else {
return .insufficientData
}
if decoded > buffer.readableBytes {
return .insufficientData
}
self.curFixedHeader = fixedheader
self.curRemainlength = fixedHeader.remainingLength
return updateState(curState: .firstByte, decoded: decoded)
case .variableHeaderData:
let (decoded, variableHeader) = try decoder.decodeVariableHeader(fixedHeader: curFixedHeader!, buffer: &buffer)
self.curVariableHeader = variableHeader
self.curRemainlength! -= decoded
return updateState(curState: .variableHeaderData, decoded: decoded)
case .payloadData:
guard self.curRemainlength! >= 0 else {
throw MQTTDecodeError.remainLengthLessThanZero
}
let (decoded, payload) = try decoder.decodePayloads(variableHeader: curVariableHeader, packetType: curFixedHeader!.messageType, remainLength: curRemainlength!, buffer: &buffer)
self.curPayload = payload
return updateState(curState: .payloadData, decoded: decoded)
}
}
func reset() {
self.state = .firstByte
self.curRemainlength = nil
self.curFixedHeader = nil
self.curPayload = nil
self.curVariableHeader = nil
}
func checkIfNeedMore(buffer: ByteBuffer) -> Bool {
if self.state == .firstByte {
// we need to check firstByte state when parse it
return false
}
switch self.state {
case .variableHeaderData:
if let length = caculateVariableHeaderLength(buffer: buffer) {
return buffer.readableBytes < length
} else {
return true
}
case .payloadData:
switch self.curFixedHeader!.messageType {
case .PUBLISH, .CONNEC, .SUBSCRIBE, .UNSUBSCRIBE:
return buffer.readableBytes < self.curRemainlength!
default:
return false
}
default:
return false
}
}
func updateState(curState: WaitingDataState, decoded: Int) -> ParseResult {
switch curState {
case .firstByte:
switch curFixedHeader!.messageType {
case .PINGRESP, .PINGREQ, .DISCONNECT:
let packet = MQTTPacket(fixedHeader: curFixedHeader!)
reset()
return .result(decoded: decoded, packet: packet)
default:
self.state = .variableHeaderData
return .decoded(num: decoded)
}
case .variableHeaderData:
switch curFixedHeader!.messageType {
case .CONNACK, .PUBACK, .PUBREL:
let packet = MQTTPacket(fixedHeader: curFixedHeader!, variableHeader: curVariableHeader!)
reset()
return .result(decoded: decoded, packet: packet)
default:
self.state = .payloadData
return .decoded(num: decoded)
}
case .payloadData:
let packet = MQTTPacket(fixedHeader: curFixedHeader!, variableHeader: curVariableHeader, payloads: curPayload)
reset()
return .result(decoded: decoded, packet: packet)
}
}
func caculateVariableHeaderLength(buffer: ByteBuffer) -> Int? {
func decodeMsbLsb(bytes: [UInt8]) -> Int {
let result = bytes[0] << 8 | bytes[1]
return Int(result)
}
switch self.curFixedHeader!.messageType {
case .CONNEC:
return 10
case .PUBLISH:
guard let topicLenBytes = buffer.getBytes(at: (buffer.readerIndex) ,length: 2) else {
// we need to caclulate the length of publish packet's variableheader,the first two bytes
// is the length of topic,if we cant get,means we need more data,so return max to let paraser
// know there should be more data
return nil
}
var res = 2
res += decodeMsbLsb(bytes: topicLenBytes)
if self.curFixedHeader!.qosLevel > .AT_MOST_ONCE {
res += 2
}
return res
case .SUBSCRIBE, .SUBACK, .UNSUBACK, .UNSUBSCRIBE, .PUBACK, .PUBREC, .PUBREL, .PUBCOMP:
return 2
default:
return 0
}
}
}
public final class MQTTDecoder: ByteToMessageDecoder {
public typealias InboundIn = ByteBuffer
public typealias InboundOut = MQTTPacket
private var decoding: Bool = false
private var newDataComing: Bool = false
public var cumulationBuffer: ByteBuffer? {
get {
return self.parser.cumulationBuffer
}
set {
self.parser.cumulationBuffer = newValue
}
}
public init () {
}
private var shouldKeepingParse = false
fileprivate var parser: MQTTParserState = MQTTParserState()
public func channelRead(ctx: ChannelHandlerContext, data: NIOAny) {
var buffer = self.unwrapInboundIn(data)
guard !self.decoding else {
self.cumulationBuffer?.write(buffer: &buffer)
return
}
self.decoding = true
defer {
self.decoding = false
}
if self.cumulationBuffer == nil {
self.cumulationBuffer = buffer
} else {
self.cumulationBuffer?.write(buffer: &buffer)
}
//
do {
try decodeMQTT(ctx: ctx)
if !shouldKeepingParse {
//TODO 适当的时候释放bufferByte
self.cumulationBuffer = nil
}
}
catch {
self.cumulationBuffer = nil
ctx.fireErrorCaught(error)
ctx.close(promise: nil)
}
}
func decodeMQTT(ctx: ChannelHandlerContext) throws {
// i have thinked how to write that until i read the code from official http parser
// its write, so i follow the solution of it
var needmore = false
// we wont change bufferSlice while parseStep
parsing: while var bufferSlice = self.parser.cumulationBuffer, bufferSlice.readableBytes > 0 {
guard !self.parser.checkIfNeedMore(buffer: bufferSlice) else {
needmore = true
break
}
let res = try self.parser.praseStep(&bufferSlice)
switch res {
case .insufficientData:
needmore = true
break parsing
case let .decoded(decoded):
self.cumulationBuffer?.moveReaderIndex(forwardBy: decoded)
case let .result(decoded, packet):
self.cumulationBuffer?.moveReaderIndex(forwardBy: decoded)
ctx.fireChannelRead(wrapInboundOut(packet))
}
}
shouldKeepingParse = self.parser.state != .firstByte || (self.parser.state == .firstByte && needmore)
}
// will remove in the future
public func decode(ctx: ChannelHandlerContext, buffer: inout ByteBuffer) throws -> DecodingState {
print("decod handle")
return .needMoreData
}
}
| 34.817427
| 188
| 0.588249
|
cad0ccfd03bef8426ec759040b2abf0b5526d9b6
| 416
|
lua
|
Lua
|
tests/projects/cuda/console/xmake.lua
|
wangling12/xmake
|
02433ff768af0842de49d3901df973c57bb43a5a
|
[
"Apache-2.0"
] | null | null | null |
tests/projects/cuda/console/xmake.lua
|
wangling12/xmake
|
02433ff768af0842de49d3901df973c57bb43a5a
|
[
"Apache-2.0"
] | null | null | null |
tests/projects/cuda/console/xmake.lua
|
wangling12/xmake
|
02433ff768af0842de49d3901df973c57bb43a5a
|
[
"Apache-2.0"
] | null | null | null |
add_rules("mode.debug", "mode.release")
target("cuda_console")
set_kind("binary")
add_includedirs("inc")
add_files("src/*.cu")
-- generate SASS code for each SM architecture
add_cugencodes("sm_35", "sm_37", "sm_50", "sm_52", "sm_60", "sm_61", "sm_70", "sm_75")
-- generate PTX code from the highest SM architecture to guarantee forward-compatibility
add_cugencodes("compute_75")
| 27.733333
| 92
| 0.677885
|
b08e28184309528059d04d9b444f7192dc24209c
| 396
|
py
|
Python
|
Data Preparetion/1.3 Metrics Module/A.3.14.1.roc_auc_togther.py
|
mosalaheg/sklearn
|
d275bdfaf0db4b01f45231889a37a8e004e2f77c
|
[
"MIT"
] | null | null | null |
Data Preparetion/1.3 Metrics Module/A.3.14.1.roc_auc_togther.py
|
mosalaheg/sklearn
|
d275bdfaf0db4b01f45231889a37a8e004e2f77c
|
[
"MIT"
] | null | null | null |
Data Preparetion/1.3 Metrics Module/A.3.14.1.roc_auc_togther.py
|
mosalaheg/sklearn
|
d275bdfaf0db4b01f45231889a37a8e004e2f77c
|
[
"MIT"
] | null | null | null |
# Import Libraries
from sklearn.metrics import roc_auc_score
#----------------------------------------------------
# Calculating ROC AUC Score together in the same statement:
# roc_auc_score(y_true, y_score, average=’macro’, sample_weight=None,max_fpr=None)
ROCAUCScore = roc_auc_score(y_test,y_pred, average='micro') #it can be : macro,weighted,samples
#print('ROCAUC Score : ', ROCAUCScore)
| 44
| 95
| 0.676768
|
a8f6a0b4b339c6b61ccb4f570aa7dcea0b63307e
| 3,426
|
sh
|
Shell
|
src/os/preferences/macos/trackpad.sh
|
filipejtdias/dotfiles
|
dcfe695a221b396bf06697fe1f5736e1f1173978
|
[
"MIT"
] | null | null | null |
src/os/preferences/macos/trackpad.sh
|
filipejtdias/dotfiles
|
dcfe695a221b396bf06697fe1f5736e1f1173978
|
[
"MIT"
] | null | null | null |
src/os/preferences/macos/trackpad.sh
|
filipejtdias/dotfiles
|
dcfe695a221b396bf06697fe1f5736e1f1173978
|
[
"MIT"
] | 1
|
2022-01-23T02:07:09.000Z
|
2022-01-23T02:07:09.000Z
|
#!/bin/bash
cd "$(dirname "${BASH_SOURCE[0]}")" \
&& . "../../utils.sh"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
print_in_purple "\n Trackpad\n\n"
execute "defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true && \
defaults write com.apple.AppleMultitouchTrackpad Clicking -int 1" \
"Enable 'Tap to click'"
execute "defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadRightClick -bool true && \
defaults write com.apple.AppleMultitouchTrackpad TrackpadRightClick -int 1 && \
defaults -currentHost write -g com.apple.trackpad.enableSecondaryClick -bool true && \
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadCornerSecondaryClick -int 0 && \
defaults write com.apple.AppleMultitouchTrackpad TrackpadCornerSecondaryClick -int 0 && \
defaults -currentHost write -g com.apple.trackpad.trackpadCornerClickBehavior -int 1" \
"Map 'click or tap with two fingers' to the secondary click"
execute "defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad DragLock -int 0 && \
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Dragging -int 0 && \
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadFiveFingerPinchGesture -int 2 && \
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadFourFingerHorizSwipeGesture -int 2 && \
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadFourFingerPinchGesture -int 2 && \
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadFourFingerVertSwipeGesture -int 2 && \
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadHandResting -int 1 && \
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadHorizScroll -int 1 && \
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadMomentumScroll -int 1 && \
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadPinch -int 1 && \
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadRotate -int 1 && \
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadScroll -int 1 && \
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerDrag -int 1 && \
defaults write com.apple.AppleMultitouchTrackpad TrackpadThreeFingerDrag -int 1 && \
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerHorizSwipeGesture -int 0 && \
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerTapGesture -int 0 && \
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerVertSwipeGesture -int 0 && \
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadTwoFingerDoubleTapGesture -int 1 && \
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadTwoFingerFromRightEdgeSwipeGesture -int 3 && \
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad USBMouseStopsTrackpad -int 0 && \
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad UserPreferences -int 1" \
"Other Trackpad prefs"
| 77.863636
| 129
| 0.748103
|
5d72959b82f3512f3036468d26d20a78356e82a3
| 1,517
|
hpp
|
C++
|
src/Numerical/RootFinding/RootFinder.hpp
|
wthrowe/spectre
|
0ddd6405eef1e57de1d0a765aa4f6cfbc83c9f15
|
[
"MIT"
] | null | null | null |
src/Numerical/RootFinding/RootFinder.hpp
|
wthrowe/spectre
|
0ddd6405eef1e57de1d0a765aa4f6cfbc83c9f15
|
[
"MIT"
] | null | null | null |
src/Numerical/RootFinding/RootFinder.hpp
|
wthrowe/spectre
|
0ddd6405eef1e57de1d0a765aa4f6cfbc83c9f15
|
[
"MIT"
] | null | null | null |
// Distributed under the MIT License.
// See LICENSE.txt for details.
/// \file
/// Declares function find_root_of_function
#pragma once
#include <functional>
#include <limits>
#include <boost/math/tools/toms748_solve.hpp>
/*! \ingroup Functors
* \brief Finds the root of the function f with the TOMS_748 method.
*
* \requires Function f be callable
*/
template <typename Function>
double find_root_of_function(Function f, const double lower_bound,
const double upper_bound,
const double absolute_tolerance,
const double relative_tolerance,
const size_t max_iterations = 100) {
boost::uintmax_t max_iter = max_iterations;
// This solver requires tol to be passed as a termination condition. This
// termination condition is equivalent to the convergence criteria used by the
// GSL
auto tol = [absolute_tolerance, relative_tolerance](double lhs, double rhs) {
return (fabs(lhs - rhs) <=
absolute_tolerance +
relative_tolerance * fmin(fabs(lhs), fabs(rhs)));
};
// Lower and upper bound are shifted by absolute tolerance so that the root
// find does not fail if upper or lower bound are equal to the root within
// tolerance
auto result = boost::math::tools::toms748_solve(
f, lower_bound - absolute_tolerance, upper_bound + absolute_tolerance,
tol, max_iter);
return result.first + 0.5 * (result.second - result.first);
}
| 35.27907
| 80
| 0.673698
|
a3791f107ddb5dbbccedfceebc392713bd37365d
| 1,305
|
ts
|
TypeScript
|
server/src/services/etc/timestamps.service.ts
|
jetstream0/spyglass-api
|
9b31ce83538ee176898e8d388db46f89a59eb4bd
|
[
"MIT"
] | null | null | null |
server/src/services/etc/timestamps.service.ts
|
jetstream0/spyglass-api
|
9b31ce83538ee176898e8d388db46f89a59eb4bd
|
[
"MIT"
] | null | null | null |
server/src/services/etc/timestamps.service.ts
|
jetstream0/spyglass-api
|
9b31ce83538ee176898e8d388db46f89a59eb4bd
|
[
"MIT"
] | null | null | null |
import { AppCache, PROFILE } from '@app/config';
import { LOG_INFO } from '../log/info.service';
const { performance } = require('perf_hooks');
const csv = require('csv-parser');
const fs = require('fs');
export const importHistoricHashTimestamps = (): Promise<void> => {
const start = LOG_INFO('Importing Historic Hash Timestamps');
return new Promise((resolve) => {
fs.createReadStream(`./database/${PROFILE}/timestamps.csv`)
.pipe(csv())
.on('data', (row) => {
// Anything before March 19, 2021 let's use creepers data
if (row.timestamp < 1616158800) {
// TODO: Make me a config variable
AppCache.historicHashes.set(row.hash, row.timestamp);
}
})
.on('end', () => {
LOG_INFO('Historic Hash Timestamps Updated', start);
console.log(AppCache.historicHashes.size + ' timestamps imported');
resolve();
});
});
};
export const getAccurateHashTimestamp = (hash: string, localTimestamp: string | number): number => {
if (AppCache.historicHashes.has(hash)) {
return Math.min(AppCache.historicHashes.get(hash), Number(localTimestamp));
}
return Number(localTimestamp);
};
| 38.382353
| 100
| 0.585441
|
c9c34008952d261cf3f5138810f5871b924e8c7a
| 1,417
|
ts
|
TypeScript
|
packages/core/src/webapp/views/registrar/editors.ts
|
LTHODAVDOPL/kui
|
d428a3ecfaceecda014a6ac109ddc15178c78c30
|
[
"Apache-2.0"
] | 1
|
2019-11-02T01:11:21.000Z
|
2019-11-02T01:11:21.000Z
|
packages/core/src/webapp/views/registrar/editors.ts
|
LTHODAVDOPL/kui
|
d428a3ecfaceecda014a6ac109ddc15178c78c30
|
[
"Apache-2.0"
] | null | null | null |
packages/core/src/webapp/views/registrar/editors.ts
|
LTHODAVDOPL/kui
|
d428a3ecfaceecda014a6ac109ddc15178c78c30
|
[
"Apache-2.0"
] | null | null | null |
/*
* Copyright 2019 IBM Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { Tab } from '../../tab'
import { CustomSpec } from '../sidecar-core'
import Presentation from '../presentation'
import { ExecOptions } from '../../../models/execOptions'
export interface EditorProvider {
tryOpen: (
tab: Tab,
spec: CustomSpec,
options: ExecOptions
) => Promise<{ content: Element; presentation: Presentation }>
}
/** registered editor */
let primaryProvider: EditorProvider
/**
* Register an editor
*
*/
export function registerEditor(provider: EditorProvider) {
primaryProvider = provider
}
export default registerEditor
/**
* Apply all registered modes that are relevant to the given resource
* to the given modes model
*
*/
export function tryOpenWithEditor(tab: Tab, spec: CustomSpec, options: ExecOptions) {
return primaryProvider.tryOpen(tab, spec, options)
}
| 28.34
| 85
| 0.728299
|
da1400e2efbb4fb103ce78117d3f84bd53d956e9
| 13,100
|
php
|
PHP
|
html/wp-content/plugins/wordfence/lib/wfCentralAPI.php
|
Pulixe/dockerVPS
|
aa134bccc36c9e7a36cc45d924245996db3f8156
|
[
"Apache-2.0"
] | null | null | null |
html/wp-content/plugins/wordfence/lib/wfCentralAPI.php
|
Pulixe/dockerVPS
|
aa134bccc36c9e7a36cc45d924245996db3f8156
|
[
"Apache-2.0"
] | 1
|
2021-05-11T12:23:02.000Z
|
2021-05-11T12:23:02.000Z
|
html/wp-content/plugins/wordfence/lib/wfCentralAPI.php
|
Pulixe/dockerVPS
|
aa134bccc36c9e7a36cc45d924245996db3f8156
|
[
"Apache-2.0"
] | null | null | null |
<?php
class wfCentralAPIRequest {
/**
* @var string
*/
private $endpoint;
/**
* @var string
*/
private $method;
/**
* @var null
*/
private $token;
/**
* @var array
*/
private $body;
/**
* @var array
*/
private $args;
/**
* @param string $endpoint
* @param string $method
* @param string|null $token
* @param array $body
* @param array $args
*/
public function __construct($endpoint, $method = 'GET', $token = null, $body = array(), $args = array()) {
$this->endpoint = $endpoint;
$this->method = $method;
$this->token = $token;
$this->body = $body;
$this->args = $args;
}
public function execute() {
$args = array(
'timeout' => 10,
);
$args = wp_parse_args($this->getArgs(), $args);
$args['method'] = $this->getMethod();
if (empty($args['headers'])) {
$args['headers'] = array();
}
$token = $this->getToken();
if ($token) {
$args['headers']['Authorization'] = 'Bearer ' . $token;
}
if ($this->getBody()) {
$args['headers']['Content-Type'] = 'application/json';
$args['body'] = json_encode($this->getBody());
}
$http = _wp_http_get_object();
$response = $http->request(WORDFENCE_CENTRAL_API_URL_SEC . $this->getEndpoint(), $args);
return new wfCentralAPIResponse($response);
}
/**
* @return string
*/
public function getEndpoint() {
return $this->endpoint;
}
/**
* @param string $endpoint
*/
public function setEndpoint($endpoint) {
$this->endpoint = $endpoint;
}
/**
* @return string
*/
public function getMethod() {
return $this->method;
}
/**
* @param string $method
*/
public function setMethod($method) {
$this->method = $method;
}
/**
* @return null
*/
public function getToken() {
return $this->token;
}
/**
* @param null $token
*/
public function setToken($token) {
$this->token = $token;
}
/**
* @return array
*/
public function getBody() {
return $this->body;
}
/**
* @param array $body
*/
public function setBody($body) {
$this->body = $body;
}
/**
* @return array
*/
public function getArgs() {
return $this->args;
}
/**
* @param array $args
*/
public function setArgs($args) {
$this->args = $args;
}
}
class wfCentralAPIResponse {
public static function parseErrorJSON($json) {
$data = json_decode($json, true);
if (is_array($data) && array_key_exists('message', $data)) {
return $data['message'];
}
return $json;
}
/**
* @var array|null
*/
private $response;
/**
* @param array $response
*/
public function __construct($response = null) {
$this->response = $response;
}
public function getStatusCode() {
return wp_remote_retrieve_response_code($this->getResponse());
}
public function getBody() {
return wp_remote_retrieve_body($this->getResponse());
}
public function getJSONBody() {
return json_decode($this->getBody(), true);
}
public function isError() {
if (is_wp_error($this->getResponse())) {
return true;
}
$statusCode = $this->getStatusCode();
return !($statusCode >= 200 && $statusCode < 300);
}
public function returnErrorArray() {
return array(
'err' => 1,
'errorMsg' => sprintf(__('HTTP %d received from Wordfence Central: %s', 'wordfence'),
$this->getStatusCode(), $this->parseErrorJSON($this->getBody())),
);
}
/**
* @return array|null
*/
public function getResponse() {
return $this->response;
}
/**
* @param array|null $response
*/
public function setResponse($response) {
$this->response = $response;
}
}
class wfCentralAuthenticatedAPIRequest extends wfCentralAPIRequest {
private $retries = 3;
/**
* @param string $endpoint
* @param string $method
* @param array $body
* @param array $args
*/
public function __construct($endpoint, $method = 'GET', $body = array(), $args = array()) {
parent::__construct($endpoint, $method, null, $body, $args);
}
/**
* @return mixed|null
* @throws wfCentralAPIException
*/
public function getToken() {
$token = parent::getToken();
if ($token) {
return $token;
}
$token = get_transient('wordfenceCentralJWT' . wfConfig::get('wordfenceCentralSiteID'));
if ($token) {
return $token;
}
for ($i = 0; $i < $this->retries; $i++) {
try {
$token = $this->fetchToken();
break;
} catch (wfCentralAPIException $e) {
continue;
}
}
if (empty($token)) {
if (isset($e)) {
throw $e;
} else {
throw new wfCentralAPIException(__('Unable to authenticate with Wordfence Central.', 'wordfence'));
}
}
$tokenContents = wfJWT::extractTokenContents($token);
if (!empty($tokenContents['body']['exp'])) {
set_transient('wordfenceCentralJWT' . wfConfig::get('wordfenceCentralSiteID'), $token, $tokenContents['body']['exp'] - time());
}
return $token;
}
public function fetchToken() {
require_once(WORDFENCE_PATH . '/crypto/vendor/paragonie/sodium_compat/autoload-fast.php');
$defaultArgs = array(
'timeout' => 6,
);
$siteID = wfConfig::get('wordfenceCentralSiteID');
if (!$siteID) {
throw new wfCentralAPIException(__('Wordfence Central site ID has not been created yet.', 'wordfence'));
}
$secretKey = wfConfig::get('wordfenceCentralSecretKey');
if (!$secretKey) {
throw new wfCentralAPIException(__('Wordfence Central secret key has not been created yet.', 'wordfence'));
}
// Pull down nonce.
$request = new wfCentralAPIRequest(sprintf('/site/%s/login', $siteID), 'GET', null, array(), $defaultArgs);
$nonceResponse = $request->execute();
if ($nonceResponse->isError()) {
$errorArray = $nonceResponse->returnErrorArray();
throw new wfCentralAPIException($errorArray['errorMsg']);
}
$body = $nonceResponse->getJSONBody();
if (!is_array($body) || !isset($body['nonce'])) {
throw new wfCentralAPIException(__('Invalid response received from Wordfence Central when fetching nonce.', 'wordfence'));
}
$nonce = $body['nonce'];
// Sign nonce to pull down JWT.
$data = $nonce . '|' . $siteID;
$signature = ParagonIE_Sodium_Compat::crypto_sign_detached($data, $secretKey);
$request = new wfCentralAPIRequest(sprintf('/site/%s/login', $siteID), 'POST', null, array(
'data' => $data,
'signature' => ParagonIE_Sodium_Compat::bin2hex($signature),
), $defaultArgs);
$authResponse = $request->execute();
if ($authResponse->isError()) {
$errorArray = $authResponse->returnErrorArray();
throw new wfCentralAPIException($errorArray['errorMsg']);
}
$body = $authResponse->getJSONBody();
if (!is_array($body)) {
throw new wfCentralAPIException(__('Invalid response received from Wordfence Central when fetching token.', 'wordfence'));
}
if (!isset($body['jwt'])) { // Possible authentication error.
throw new wfCentralAPIException(__('Unable to authenticate with Wordfence Central.', 'wordfence'));
}
return $body['jwt'];
}
}
class wfCentralAPIException extends Exception {
}
class wfCentral {
/**
* @return bool
*/
public static function isSupported() {
return function_exists('register_rest_route') && version_compare(phpversion(), '5.3', '>=');
}
/**
* @return bool
*/
public static function isConnected() {
return self::isSupported() && ((bool) wfConfig::get('wordfenceCentralConnected', false));
}
/**
* @return bool
*/
public static function isPartialConnection() {
return !wfConfig::get('wordfenceCentralConnected') && wfConfig::get('wordfenceCentralSiteID');
}
/**
* @param array $issue
* @return bool|wfCentralAPIResponse
*/
public static function sendIssue($issue) {
return self::sendIssues(array($issue));
}
/**
* @param $issues
* @return bool|wfCentralAPIResponse
*/
public static function sendIssues($issues) {
$data = array();
foreach ($issues as $issue) {
$issueData = array(
'type' => 'issue',
'attributes' => $issue,
);
if (array_key_exists('id', $issueData)) {
$issueData['id'] = $issue['id'];
}
$data[] = $issueData;
}
$siteID = wfConfig::get('wordfenceCentralSiteID');
$request = new wfCentralAuthenticatedAPIRequest('/site/' . $siteID . '/issues', 'POST', array(
'data' => $data,
));
try {
$response = $request->execute();
return $response;
} catch (wfCentralAPIException $e) {
error_log($e);
}
return false;
}
/**
* @param int $issueID
* @return bool|wfCentralAPIResponse
*/
public static function deleteIssue($issueID) {
return self::deleteIssues(array($issueID));
}
/**
* @param $issues
* @return bool|wfCentralAPIResponse
*/
public static function deleteIssues($issues) {
$siteID = wfConfig::get('wordfenceCentralSiteID');
$request = new wfCentralAuthenticatedAPIRequest('/site/' . $siteID . '/issues', 'DELETE', array(
'data' => array(
'type' => 'issue-list',
'attributes' => array(
'ids' => $issues,
)
),
));
try {
$response = $request->execute();
return $response;
} catch (wfCentralAPIException $e) {
error_log($e);
}
return false;
}
/**
* @return bool|wfCentralAPIResponse
*/
public static function deleteNewIssues() {
$siteID = wfConfig::get('wordfenceCentralSiteID');
$request = new wfCentralAuthenticatedAPIRequest('/site/' . $siteID . '/issues', 'DELETE', array(
'data' => array(
'type' => 'issue-list',
'attributes' => array(
'status' => 'new',
)
),
));
try {
$response = $request->execute();
return $response;
} catch (wfCentralAPIException $e) {
error_log($e);
}
return false;
}
/**
* @param array $types Array of issue types to delete
* @param string $status Issue status to delete
* @return bool|wfCentralAPIResponse
*/
public static function deleteIssueTypes($types, $status = 'new') {
$siteID = wfConfig::get('wordfenceCentralSiteID');
$request = new wfCentralAuthenticatedAPIRequest('/site/' . $siteID . '/issues', 'DELETE', array(
'data' => array(
'type' => 'issue-list',
'attributes' => array(
'types' => $types,
'status' => $status,
)
),
));
try {
$response = $request->execute();
return $response;
} catch (wfCentralAPIException $e) {
error_log($e);
}
return false;
}
public static function requestConfigurationSync() {
if (! wfCentral::isConnected() || !self::$syncConfig) {
return;
}
$endpoint = '/site/'.wfConfig::get('wordfenceCentralSiteID').'/config';
$args = array('timeout' => 0.01, 'blocking' => false);
$request = new wfCentralAuthenticatedAPIRequest($endpoint, 'POST', array(), $args);
try {
$request->execute();
} catch (Exception $e) {
// We can safely ignore an error here for now.
}
}
protected static $syncConfig = true;
public static function preventConfigurationSync() {
self::$syncConfig = false;
}
/**
* @param $scan
* @param $running
* @return bool|wfCentralAPIResponse
*/
public static function updateScanStatus($scan = null) {
if ($scan === null) {
$scan = wfConfig::get_ser('scanStageStatuses');
if (!is_array($scan)) {
$scan = array();
}
}
$siteID = wfConfig::get('wordfenceCentralSiteID');
$running = wfScanner::shared()->isRunning();
$request = new wfCentralAuthenticatedAPIRequest('/site/' . $siteID . '/scan', 'PATCH', array(
'data' => array(
'type' => 'scan',
'attributes' => array(
'running' => $running,
'scan' => $scan,
'scan-summary' => wfConfig::get('wf_summaryItems'),
),
),
));
try {
$response = $request->execute();
return $response;
} catch (wfCentralAPIException $e) {
error_log($e);
}
return false;
}
/**
* @param string $event
* @param array $data
* @param callable|null $alertCallback
*/
public static function sendSecurityEvent($event, $data = array(), $alertCallback = null) {
$alerted = false;
if (!self::pluginAlertingDisabled() && is_callable($alertCallback)) {
call_user_func($alertCallback);
$alerted = true;
}
$siteID = wfConfig::get('wordfenceCentralSiteID');
$request = new wfCentralAuthenticatedAPIRequest('/site/' . $siteID . '/security-events', 'POST', array(
'data' => array(
array(
'type' => 'security-event',
'attributes' => array(
'type' => $event,
'data' => $data,
'event_time' => microtime(true),
),
),
),
));
try {
// Attempt to send the security event to Central.
$response = $request->execute();
} catch (wfCentralAPIException $e) {
// If we didn't alert previously, notify the user now in the event Central is down.
if (!$alerted && is_callable($alertCallback)) {
call_user_func($alertCallback);
}
}
}
/**
* @param $event
* @param array $data
* @param callable|null $alertCallback
*/
public static function sendAlertCallback($event, $data = array(), $alertCallback = null) {
if (is_callable($alertCallback)) {
call_user_func($alertCallback);
}
}
public static function pluginAlertingDisabled() {
if (!self::isConnected()) {
return false;
}
return wfConfig::get('wordfenceCentralPluginAlertingDisabled', false);
}
}
| 23.434705
| 130
| 0.629847
|
8d8f37b2d58c3b80c9a7b874b778fac3a88c2569
| 2,360
|
js
|
JavaScript
|
Develop/utils/generateMarkdown.js
|
mtugrulavci/potential-enigma
|
4078976dc0ecda0272b0d4c83fc0469dd946ddad
|
[
"MIT"
] | null | null | null |
Develop/utils/generateMarkdown.js
|
mtugrulavci/potential-enigma
|
4078976dc0ecda0272b0d4c83fc0469dd946ddad
|
[
"MIT"
] | null | null | null |
Develop/utils/generateMarkdown.js
|
mtugrulavci/potential-enigma
|
4078976dc0ecda0272b0d4c83fc0469dd946ddad
|
[
"MIT"
] | 1
|
2021-06-27T14:00:35.000Z
|
2021-06-27T14:00:35.000Z
|
// TODO: Create a function that returns a license badge based on which license is passed in
const chalk = require("chalk");
// If there is no license, return an empty string
function renderLicenseBadge(license) {
if (license === "None") {
return '';
}
if (license === "MIT") {
return `
[](https://opensource.org/licenses/MIT)
`
;
}
if (license === "ISC") {
return `
[](https://opensource.org/licenses/ISC)
` ;
}
if (license === "IBM") {
return `
[](https://opensource.org/licenses/IPL-1.0)
` ;
}
if (license === "Mozilla Public License 2.0") {
return `
[](https://opensource.org/licenses/MPL-2.0)
` ;
}
}
// TODO: Create a function that returns the license link
// If there is no license, return an empty string
function renderLicenseLink(license) {
if (license === "None") {
return '';
}
return `
* [License](#license)
`;
}
// TODO: Create a function that returns the license section of README
// If there is no license, return an empty string
function renderLicenseSection(license) {
if (license === "None") {
return '';
}
return `
## License
${renderLicenseBadge(license)}
${license}
`;
}
// TODO: Create a function to generate markdown for README
function generateMarkdown(data) {
return `
# Project Title : ${data.projectName}
## Description
${data.description}
## Table of Contents
* [Installation](#installation)
* [Usage](#usage)
${renderLicenseLink(data.license)}
* [Contributing](#contributing)
* [Tests](#tests)
* [Questions](#questions)
## Installation
${data.dependencies}
## Usage
[Usage Demo](https://drive.google.com/file/d/1k8pm3os3K3GZw3ufpH6JcmmXO73jZnkS/view)
${renderLicenseSection(data.license) }
## Contributing
${data.contributing}
## Tests
## Questions
Github User Name: [${data.github}](https://github.com/${data.github})
Email Address : ${data.email}
${data.contributing}
`
}
module.exports = generateMarkdown;
| 21.261261
| 128
| 0.638136
|
5e85cde1f5b7327107579a546f8c696816c0936b
| 2,384
|
sql
|
SQL
|
dudovcic/zadaca114/zad2.sql
|
algebrateam/phpdev
|
06e49ab8d162e3ff2493c0bf9fc0232fab91171c
|
[
"MIT"
] | null | null | null |
dudovcic/zadaca114/zad2.sql
|
algebrateam/phpdev
|
06e49ab8d162e3ff2493c0bf9fc0232fab91171c
|
[
"MIT"
] | null | null | null |
dudovcic/zadaca114/zad2.sql
|
algebrateam/phpdev
|
06e49ab8d162e3ff2493c0bf9fc0232fab91171c
|
[
"MIT"
] | 1
|
2020-05-15T07:47:49.000Z
|
2020-05-15T07:47:49.000Z
|
-- --------------------------------------------------------
-- Host: 127.0.0.1
-- Server version: 10.1.21-MariaDB - mariadb.org binary distribution
-- Server OS: Win32
-- HeidiSQL Version: 9.4.0.5125
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-- Dumping database structure for trgovina
CREATE DATABASE IF NOT EXISTS `trgovina` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `trgovina`;
-- Dumping structure for table trgovina.proizvod
CREATE TABLE IF NOT EXISTS `proizvod` (
`sifra_proizvoda` int(10) NOT NULL AUTO_INCREMENT,
`naziv` varchar(55) NOT NULL,
`sifra_skladista` int(5) NOT NULL,
PRIMARY KEY (`sifra_proizvoda`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table trgovina.proizvod: ~0 rows (approximately)
/*!40000 ALTER TABLE `proizvod` DISABLE KEYS */;
/*!40000 ALTER TABLE `proizvod` ENABLE KEYS */;
-- Dumping structure for table trgovina.radnik
CREATE TABLE IF NOT EXISTS `radnik` (
`sifra_radnika` int(10) NOT NULL AUTO_INCREMENT,
`ime` varchar(25) NOT NULL,
`prezime` varchar(25) NOT NULL,
`sifra_skladista` int(5) NOT NULL,
`voditelj_skladista` tinyint(1) NOT NULL,
PRIMARY KEY (`sifra_radnika`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table trgovina.radnik: ~0 rows (approximately)
/*!40000 ALTER TABLE `radnik` DISABLE KEYS */;
/*!40000 ALTER TABLE `radnik` ENABLE KEYS */;
-- Dumping structure for table trgovina.skladisno_mjesto
CREATE TABLE IF NOT EXISTS `skladisno_mjesto` (
`sifra_skladista` int(5) NOT NULL,
`naziv` varchar(55) NOT NULL,
PRIMARY KEY (`sifra_skladista`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table trgovina.skladisno_mjesto: ~0 rows (approximately)
/*!40000 ALTER TABLE `skladisno_mjesto` DISABLE KEYS */;
/*!40000 ALTER TABLE `skladisno_mjesto` ENABLE KEYS */;
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
| 40.40678
| 99
| 0.683305
|
16d652ca5fc813795e76a0410e5aeba147e57b2c
| 20,246
|
sql
|
SQL
|
system_erp.sql
|
alfiqi11/Tugas_System_ERP
|
a331f65f2f1975d7ac2b18d4d5009d4e96fec9c1
|
[
"MIT"
] | null | null | null |
system_erp.sql
|
alfiqi11/Tugas_System_ERP
|
a331f65f2f1975d7ac2b18d4d5009d4e96fec9c1
|
[
"MIT"
] | null | null | null |
system_erp.sql
|
alfiqi11/Tugas_System_ERP
|
a331f65f2f1975d7ac2b18d4d5009d4e96fec9c1
|
[
"MIT"
] | null | null | null |
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: 02 Jul 2021 pada 23.58
-- Versi Server: 10.1.10-MariaDB
-- PHP Version: 5.5.30
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `system_erp`
--
-- --------------------------------------------------------
--
-- Struktur dari tabel `ci_sessions`
--
CREATE TABLE `ci_sessions` (
`id` varchar(128) NOT NULL,
`ip_address` varchar(45) NOT NULL,
`timestamp` int(10) UNSIGNED NOT NULL DEFAULT '0',
`data` blob NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `ci_sessions`
--
INSERT INTO `ci_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES
('0cpfl5kgcbu980q5d273ncksatb9rogc', '::1', 1625098423, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632353039383432333b),
('18ralljq7mv550roiguc88hnlifg31a6', '127.0.0.1', 1621656874, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632313635363837343b),
('1g8irboopf3pof7bdehdi0afbpsj3vrb', '127.0.0.1', 1624041885, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343034313838353b),
('1qnve0ljpsgjhhdq1ckstrq6h0assi5i', '127.0.0.1', 1624048848, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343034383834383b),
('2b9dtps234ha8c6dkci16h04j1hhg244', '127.0.0.1', 1624037085, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343033373038353b),
('2ets2co3orbth1h30spn73f4862n02pj', '127.0.0.1', 1624614356, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343631343335353b),
('2ijiucgpled7s4lirvpcqmr89uok565k', '127.0.0.1', 1624033802, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343033333830323b),
('2p59pe6kabr61eprkqe3g7co1k1dcffk', '127.0.0.1', 1624035323, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343033353332333b),
('2tbmv5cftthv3b12tie38maj8ipv79fb', '127.0.0.1', 1624617136, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343631373133363b),
('3ls3q3dlv7v3uk4mfoj04hh4o1gs6hpm', '127.0.0.1', 1623482340, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632333438323334303b),
('3n7glnmu67oqibatlr2jo7d1hqencbc7', '127.0.0.1', 1624041198, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343034313139383b),
('42ld36o21q8oqj5truis9jsecv0fq1d0', '127.0.0.1', 1623421665, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632333432313636353b),
('48tjbf8gas55srrqi68hn9beir1lihlg', '::1', 1625103233, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632353130333233333b),
('4bnrd1imodo2f6u3gaa984194bupkt7r', '127.0.0.1', 1623420487, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632333432303438373b),
('4c62ga8033d1rh8cp1t22qml5ahdnfcc', '127.0.0.1', 1624037630, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343033373633303b),
('4gtq91m2il0ivqq9caktn79cjq1tha6c', '127.0.0.1', 1623473139, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632333437333133393b),
('4ij0he3boleusjbhssjnuj4m6n2b5c18', '::1', 1625233864, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632353233333538333b),
('4m4f4dchivenigbbbaancb59aqjoidm3', '127.0.0.1', 1623483744, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632333438333734343b),
('4vms87ld195stbm6oov7q08i214mgvum', '127.0.0.1', 1624615582, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343631353538323b),
('51jdj0q7vnno21bbhnkmnpb9t01444oh', '127.0.0.1', 1623465958, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632333436353935383b),
('6c6l5avkcecm6a5l8kr4ie5fs9lknqpr', '127.0.0.1', 1624617460, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343631373436303b),
('6emsgao5ouu87qg4vfs930jb36nsknrb', '127.0.0.1', 1624047904, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343034373930343b),
('6jtckhoq2s954bluacb3h2lah6pu8v4i', '127.0.0.1', 1624618064, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343631383036343b),
('6k340qol22uqkfc9brpne63b4e8tbuor', '::1', 1625097112, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632353039373131323b),
('6osp01egbn78c72l45s463bgqrsf66a4', '127.0.0.1', 1624621666, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343632313636363b),
('6vo6umq2o7cfvm3it9n2dq5su2ejvg9q', '::1', 1625232968, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632353233323936363b),
('735h2f11dlshoujcb4u90m20ck8mmtf9', '::1', 1625234873, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632353233343136343b),
('755iehejaqi0uh5rs3f9u81ig7sa9epu', '::1', 1625100801, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632353130303830313b),
('77158v4loh2o07sp281qgalabspod2mt', '::1', 1625099657, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632353039393635373b),
('77ittvig6kebd9tjvpjrcg06l4mbflbl', '127.0.0.1', 1624041502, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343034313530323b),
('7kqrgmf5lkginsveckp48u6vugdd82l0', '127.0.0.1', 1624621971, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343632313937313b),
('7q50sive43g2ce7ss2lt1qo64jbomntc', '127.0.0.1', 1623463459, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632333436333435393b),
('81d5djg2ocuavbmgvj1nifm8mq48s41p', '127.0.0.1', 1624035353, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343033353335333b),
('831eubp6l0so5i4ehge4592tuchlnoc7', '127.0.0.1', 1624043030, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343034333033303b),
('84lg3ftmnofbp2ouhm7aju76h70c7pbs', '127.0.0.1', 1623422301, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632333432323330313b),
('8avuhpchh9n1jfn4sagll6lnal8hm5ch', '127.0.0.1', 1624044207, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343034343230373b),
('8cubmra0bu70110nvve81sbj3qs0u283', '127.0.0.1', 1624045395, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343034353339353b),
('8dsf6rus5tuc9bg1m74flkfbomk65fin', '127.0.0.1', 1624616835, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343631363833353b),
('8iev0mogvjdesiupt6ruemfuj9nvae0d', '127.0.0.1', 1623424846, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632333432343834363b),
('8o326otsc5cfd0iifppr1ogcb1aogtih', '127.0.0.1', 1624615920, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343631353932303b),
('8pm9v58jovi8o1fturkql12bfjkoqrc4', '127.0.0.1', 1623415012, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632333431353031323b),
('8ptqsr0ee8dv7tpbs9qn10s4gspdnos5', '127.0.0.1', 1624619302, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343631393330323b),
('8rq4bgrc9a0kq30u1dch1qa6td8ig4qb', '127.0.0.1', 1623419983, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632333431393938333b),
('9dhhgaee6ntme9kg69u9j1mgi5gci9ps', '::1', 1625104528, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632353130343430323b),
('9gle7ca0qtl9rlmhiitcd73rr49fi0ae', '127.0.0.1', 1624036365, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343033363336353b),
('9ijm6fhecree58d14ro0d0iftkleumok', '127.0.0.1', 1623424848, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632333432343834383b),
('a4fsm8onb9g1raed4336g91igtda50v0', '::1', 1625102515, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632353130323531353b),
('ablouog50imdai4gu06npmlf2lvnpvtq', '127.0.0.1', 1624035699, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343033353639383b),
('ak2ilqn59fcp4krbhlsq1kq30bnr9o4s', '127.0.0.1', 1624040893, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343034303839333b),
('b0pk71rb6d8eergd8lnj52d0rajtrvjl', '::1', 1625099349, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632353039393334393b),
('b6fsqvqnif63isuav3hrntknp9kns9l1', '127.0.0.1', 1624040288, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343034303238383b),
('bpl69vvfb6p9q176h97fam0ttref3jlk', '127.0.0.1', 1623485989, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632333438353938393b),
('c2m2cr99p4vbm8novcd6k6a7n0hnnfmt', '::1', 1625209635, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632353230393138363b),
('c89vr58q822uolbp7r2mrvq0e6g25tph', '127.0.0.1', 1624614827, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343631343832363b),
('cjjpqhtttohfdg3g00qd0nl70cece50s', '127.0.0.1', 1624619879, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343631393837393b),
('d8cihdh489mq6ldga8u8okee0hop7v8l', '127.0.0.1', 1624038952, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343033383935323b),
('dkvkbi49lj6el7lr2ajvs5b3qhqbq1hk', '127.0.0.1', 1624615202, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343631353230323b),
('dnj94vnnv0lge9l4okcm3a9k846uf411', '::1', 1625256734, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632353235363733303b),
('e1liksd68dh25mebrqrtq0n6uls87oen', '127.0.0.1', 1624614434, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343631343433343b),
('e37smcggf3crhs93afdmu5k0f7se1oo7', '::1', 1625101157, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632353130313135373b),
('edgr6nlp9hct3cl5u2d1k0ju9vl0kmg1', '127.0.0.1', 1624039974, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343033393937343b),
('f2vadtgduk5m0gvml6qpcprki3llkqsm', '127.0.0.1', 1624071757, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343037313735373b),
('fbeim85dg7j1gjm1304ggam9gstnncrg', '::1', 1625244781, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632353234343736363b),
('ffu7k96a64p2f15khc9ccobo2nbo1ug9', '127.0.0.1', 1623484119, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632333438343131393b),
('gehjc6q1sg5750bhokgbmrmt1d7umgr1', '::1', 1625096449, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632353039363434393b),
('ghmebqnc5ct4jm5b3hsfg479pr3h2onm', '127.0.0.1', 1624039629, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343033393632393b),
('gpgas145rer9friftcfqmgs5vdl999qh', '127.0.0.1', 1624040589, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343034303538393b),
('h5u91u85t7lo6qveog3an3f3b1n0nl99', '127.0.0.1', 1624033194, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343033333139343b),
('h76c47l69hpl7t3p0e96civ3ljl5q0b8', '::1', 1625242611, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632353234323630393b),
('hjfbjvo5dnnavu56qnreolcfp54ru3sp', '127.0.0.1', 1624043463, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343034333436333b),
('ig176g80j3j57e7d7im4n2se2aevr3ls', '::1', 1625104402, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632353130343430323b),
('ijphdhp78nmg709sr753qo7rn155msqm', '::1', 1625231866, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632353233313639323b),
('j13obtvpj4vmaq318qgq6on1uu2e79vn', '::1', 1625242133, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632353234323031323b),
('j7c91h7obhkqig3efaubll0rnrk8k6ht', '127.0.0.1', 1624039297, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343033393239373b),
('jikg531rg59tbg2rlud3pn34mk2vjh31', '127.0.0.1', 1623483595, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632333438333539353b),
('kfflgjaktn5k7a6tobe04h7hb1omeipa', '127.0.0.1', 1623466989, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632333436363938393b),
('kqdqeuskk8d2pc2kthjkas3vsk82h868', '::1', 1625208862, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632353230383739383b),
('ktgpjv44h3fugavgpgvrvrt2rehqvjvr', '::1', 1625097820, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632353039373832303b),
('lr93skuss7gbvh879pdqrog6g3kpp8d0', '127.0.0.1', 1623466647, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632333436363634373b),
('m3p2dt2sn18uq9t22o0k23oag0uracmk', '::1', 1625104076, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632353130343037363b),
('mbg3855hpe92p13iaa91ft32as0sqkae', '127.0.0.1', 1623472317, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632333437323331373b),
('mearp36gd4mmeh825oao6agkoejepgsk', '127.0.0.1', 1623483246, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632333438333234363b),
('n14flaa1107fdes8nfiq2vngt0di4kne', '::1', 1625100439, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632353130303433393b),
('ns1soionin0pa8bgohl6ed3fph4f7jq7', '127.0.0.1', 1623471051, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632333437313035313b),
('oko5ckaku6vm24c9mdub3q90o0tg91jh', '127.0.0.1', 1624035039, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343033353033393b),
('p02se5ut7vb8qllqcj34044oq17j47lg', '::1', 1625244761, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632353234343436333b),
('pjp1cngva7l0h3jcc2vt4u8fonivofrq', '127.0.0.1', 1623421982, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632333432313938323b),
('pmbkcmkhahl7vl2bv9n11im4kbp1t3gc', '127.0.0.1', 1623428067, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632333432383036373b),
('pn5pt237s4ugp9voodg3o8ps1jcubg04', '127.0.0.1', 1623421339, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632333432313333393b),
('qpmgabc56a6901qdhnefnq2bb0vb4ktv', '127.0.0.1', 1624032355, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343033323335353b),
('qqmstjlo83pptqdr0f8fc58kdj4mjpmm', '::1', 1625098925, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632353039383932353b),
('qtvdojv01r3ho862q41o2qfpvm2k8j25', '127.0.0.1', 1624048328, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343034383332383b),
('qus6856g5p1tu7kj0euec6q56ehguvkr', '127.0.0.1', 1623466417, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632333436363431373b),
('r4lnfaj69k1pb156durk6b199q14s2n8', '127.0.0.1', 1623417337, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632333431373333373b),
('rbcbl8k07adfs9gsfao0pe7frsf0n1up', '::1', 1625240753, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632353234303733373b),
('re2o2hqd1it5l2vkf0jnjav66k9v19er', '::1', 1625102090, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632353130323039303b),
('s0at5pfe5isi00n8pbloq24b42ksevfa', '127.0.0.1', 1624032382, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343033323338323b),
('s0d0urst1unfcf81j2edo1733a5pk7r8', '::1', 1625101695, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632353130313639353b),
('sb2302sa89k1aqln51advnncpsv5t3lp', '127.0.0.1', 1624046170, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343034363137303b),
('sd3dlqe6o4a38j2rlp50dar008cm75g5', '127.0.0.1', 1624042595, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343034323539353b),
('slpu7t631s4o9h2nq2hk4ij3v2f3dgnu', '::1', 1625209639, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632353230393633393b),
('t0v9r5tqq7u551ko6hc5s1q17tg8fmfa', '::1', 1625208777, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632353230383530303b),
('t3l7tkvosj9iji8gvsslmuio9d3sqfjn', '127.0.0.1', 1624029620, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343032393632303b),
('u2mjbqj2m0k42l61krdsvr56b857ne6i', '127.0.0.1', 1624615183, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343631353138333b),
('u6gjes9ssa5j5u157vji4imfsaeh14sm', '127.0.0.1', 1624037970, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632343033373937303b),
('ud9oj3li0njlgbjgluci6021klh93b50', '::1', 1625209048, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632353230383836373b),
('uui54ccng2mho4pnde38vhs3m2mafhq0', '::1', 1625235694, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632353233343837383b),
('v0pdlf7h9ge4njdhe92tnslfus462pqb', '127.0.0.1', 1623471957, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632333437313935373b),
('vknm9lo1cqolrtrcnfbem73ql3k5qham', '::1', 1625098121, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632353039383132313b),
('vv69biep0nn57qg5c4nf55fcuqgmnmfj', '::1', 1625102860, 0x5f5f63695f6c6173745f726567656e65726174657c693a313632353130323836303b);
-- --------------------------------------------------------
--
-- Struktur dari tabel `tbbantu_pembelian_detail`
--
CREATE TABLE `tbbantu_pembelian_detail` (
`id_pembelian_detail` int(11) NOT NULL,
`no_faktur` varchar(20) NOT NULL,
`kode_barang` varchar(8) NOT NULL,
`harga_beli` double NOT NULL,
`qty` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Struktur dari tabel `tb_barang`
--
CREATE TABLE `tb_barang` (
`kode_barang` varchar(8) NOT NULL,
`nama` varchar(200) NOT NULL,
`satuan` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `tb_barang`
--
INSERT INTO `tb_barang` (`kode_barang`, `nama`, `satuan`) VALUES
('BRG001', 'Kecap', 'sachet'),
('BRG002', 'Minyak Goreng', 'Liter'),
('BRG003', 'Beras', 'Kilogram'),
('BRG004', 'Gula Pasir', 'Kilogram'),
('BRG005', 'Telur', 'Butir'),
('BRG006', 'Susu Kental Manis', 'Gram'),
('BRG007', 'Minyak Tanah', 'Liter'),
('BRG008', 'Gas Elpiji', 'Kilogram'),
('BRG009', 'Sayur-sayuran', 'Ikat');
-- --------------------------------------------------------
--
-- Struktur dari tabel `tb_barang_gudang`
--
CREATE TABLE `tb_barang_gudang` (
`id_barang_gudang` int(11) NOT NULL,
`kode_barang` varchar(20) NOT NULL,
`tanggal` date NOT NULL,
`harga_modal` double NOT NULL,
`debit` int(11) NOT NULL,
`kredit` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Struktur dari tabel `tb_hutang`
--
CREATE TABLE `tb_hutang` (
`id_hutang` int(11) NOT NULL,
`no_faktur` varchar(20) NOT NULL,
`tanggal_bayar` date NOT NULL,
`jumlah_bayar` double NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Struktur dari tabel `tb_pembelian`
--
CREATE TABLE `tb_pembelian` (
`no_faktur` varchar(20) NOT NULL,
`tanggal` date NOT NULL,
`id_supplier` varchar(25) NOT NULL,
`total` double NOT NULL,
`dp` double NOT NULL,
`jatuh_tempo` date NOT NULL,
`status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Struktur dari tabel `tb_pembelian_detail`
--
CREATE TABLE `tb_pembelian_detail` (
`id_pembelian_detail` int(11) NOT NULL,
`no_faktur` varchar(20) NOT NULL,
`kode_barang` varchar(8) NOT NULL,
`harga_beli` double NOT NULL,
`qty` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Struktur dari tabel `tb_supplier`
--
CREATE TABLE `tb_supplier` (
`id_supplier` varchar(25) NOT NULL,
`nama` varchar(200) NOT NULL,
`alamat` text NOT NULL,
`telp` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `tb_supplier`
--
INSERT INTO `tb_supplier` (`id_supplier`, `nama`, `alamat`, `telp`) VALUES
('SPL001', 'Annisa Celluller', 'Dharmasraya', '085234567345'),
('SPL002', 'Rianda Finance', 'Depok', '081209812345'),
('SPL003', 'Bang AL Computer', 'Padang', '082123432222'),
('SPL004', 'AMRI Tani', 'Dharmasraya', '081232478687'),
('SPL005', 'ZafraNadhif Tour & Travel', 'Dharmasraya', '082384574833'),
('SPL006', 'Degta Tour & Travel', 'Padang', '085399484002'),
('SPL007', 'CV. ADAMA Jaya Utama', 'Dharmasraya', '085299558334'),
('SPL008', 'Arsenio Mart', 'Padang', '082294884455'),
('SPL009', 'Aqmar Swalayan', 'Dharmasraya', '083132948855');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `ci_sessions`
--
ALTER TABLE `ci_sessions`
ADD PRIMARY KEY (`id`),
ADD KEY `ci_sessions_timestamp` (`timestamp`);
--
-- Indexes for table `tbbantu_pembelian_detail`
--
ALTER TABLE `tbbantu_pembelian_detail`
ADD PRIMARY KEY (`id_pembelian_detail`);
--
-- Indexes for table `tb_barang`
--
ALTER TABLE `tb_barang`
ADD PRIMARY KEY (`kode_barang`);
--
-- Indexes for table `tb_barang_gudang`
--
ALTER TABLE `tb_barang_gudang`
ADD PRIMARY KEY (`id_barang_gudang`);
--
-- Indexes for table `tb_hutang`
--
ALTER TABLE `tb_hutang`
ADD PRIMARY KEY (`id_hutang`);
--
-- Indexes for table `tb_pembelian`
--
ALTER TABLE `tb_pembelian`
ADD PRIMARY KEY (`no_faktur`);
--
-- Indexes for table `tb_pembelian_detail`
--
ALTER TABLE `tb_pembelian_detail`
ADD PRIMARY KEY (`id_pembelian_detail`);
--
-- Indexes for table `tb_supplier`
--
ALTER TABLE `tb_supplier`
ADD PRIMARY KEY (`id_supplier`);
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
| 60.435821
| 134
| 0.808604
|
0df4cdaabcc2a57c57411ecd29233d685aba76f5
| 254
|
sh
|
Shell
|
start_workers.sh
|
h3nnn4n/colosseum
|
9e4230b0934cae43521b0aacdb482f4337be9dbf
|
[
"MIT"
] | 9
|
2021-12-27T15:06:57.000Z
|
2022-02-03T01:40:08.000Z
|
start_workers.sh
|
h3nnn4n/colosseum
|
9e4230b0934cae43521b0aacdb482f4337be9dbf
|
[
"MIT"
] | 5
|
2021-11-26T12:36:26.000Z
|
2021-12-27T15:51:27.000Z
|
start_workers.sh
|
h3nnn4n/colosseum
|
9e4230b0934cae43521b0aacdb482f4337be9dbf
|
[
"MIT"
] | null | null | null |
#!/bin/bash
N_CORES=$(grep -c ^processor /proc/cpuinfo)
N_CORES=${N_CORES:-2}
echo "Starting ${N_CORES} workers"
for i in `seq "${N_CORES}"`; do
while [[ true ]]; do python -m poetry run python tournament_online.py; done &
sleep 1
done
echo Done
| 18.142857
| 79
| 0.677165
|
2f81551400650fa081a88b2635958b4e1c192231
| 3,316
|
js
|
JavaScript
|
.history/v5.17.1_dividing/dist/skylark-ui-coder/addon/edit/closetag.js
|
skylark-integration/skylark-codemirror
|
0c4b7f85db58c6f515d0525c7bad819f1c4366ec
|
[
"MIT"
] | null | null | null |
.history/v5.17.1_dividing/dist/skylark-ui-coder/addon/edit/closetag.js
|
skylark-integration/skylark-codemirror
|
0c4b7f85db58c6f515d0525c7bad819f1c4366ec
|
[
"MIT"
] | null | null | null |
.history/v5.17.1_dividing/dist/skylark-ui-coder/addon/edit/closetag.js
|
skylark-integration/skylark-codemirror
|
0c4b7f85db58c6f515d0525c7bad819f1c4366ec
|
[
"MIT"
] | null | null | null |
/**
* skylark-ui-coder - The skylark coder widget
* @author Hudaokeji, Inc.
* @version v0.9.0
* @link https://github.com/skylarkui/skylark-ui-coder/
* @license MIT
*/
define(["../../Coder"],function(e){function t(t){if(t.getOption("disableInput"))return e.Pass;for(var n=t.listSelections(),a=[],l=0;l<n.length;l++){if(!n[l].empty())return e.Pass;var g=n[l].head,c=t.getTokenAt(g),d=e.innerMode(t.getMode(),c.state),f=d.state;if("xml"!=d.mode.name||!f.tagName)return e.Pass;var u=t.getOption("autoCloseTags"),h="html"==d.mode.configuration,m="object"==typeof u&&u.dontCloseTags||h&&i,p="object"==typeof u&&u.indentTags||h&&s,v=f.tagName;c.end>g.ch&&(v=v.slice(0,v.length-c.end+g.ch));var y=v.toLowerCase();if(!v||"string"==c.type&&(c.end!=g.ch||!/[\"\']/.test(c.string.charAt(c.string.length-1))||1==c.string.length)||"tag"==c.type&&"closeTag"==f.type||c.string.indexOf("/")==c.string.length-1||m&&r(m,y)>-1||o(t,v,g,f,!0))return e.Pass;var P=p&&r(p,y)>-1;a[l]={indent:P,text:">"+(P?"\n\n":"")+"</"+v+">",newPos:P?e.Pos(g.line+1,0):e.Pos(g.line,g.ch+1)}}for(var l=n.length-1;l>=0;l--){var b=a[l];t.replaceRange(b.text,n[l].head,n[l].anchor,"+insert");var x=t.listSelections().slice(0);x[l]={head:b.newPos,anchor:b.newPos},t.setSelections(x),b.indent&&(t.indentLine(b.newPos.line,null,!0),t.indentLine(b.newPos.line+1,null,!0))}}function n(t,n){for(var a=t.listSelections(),r=[],i=n?"/":"</",s=0;s<a.length;s++){if(!a[s].empty())return e.Pass;var l=a[s].head,g=t.getTokenAt(l),c=e.innerMode(t.getMode(),g.state),d=c.state;if(n&&("string"==g.type||"<"!=g.string.charAt(0)||g.start!=l.ch-1))return e.Pass;var f;if("xml"!=c.mode.name)if("htmlmixed"==t.getMode().name&&"javascript"==c.mode.name)f=i+"script";else{if("htmlmixed"!=t.getMode().name||"css"!=c.mode.name)return e.Pass;f=i+"style"}else{if(!d.context||!d.context.tagName||o(t,d.context.tagName,l,d))return e.Pass;f=i+d.context.tagName}">"!=t.getLine(l.line).charAt(g.end)&&(f+=">"),r[s]=f}t.replaceSelections(r),a=t.listSelections();for(var s=0;s<a.length;s++)(s==a.length-1||a[s].head.line<a[s+1].head.line)&&t.indentLine(a[s].head.line)}function a(t){return t.getOption("disableInput")?e.Pass:n(t,!0)}function r(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,a=e.length;n<a;++n)if(e[n]==t)return n;return-1}function o(t,n,a,r,o){if(!e.scanForClosingTag)return!1;var i=Math.min(t.lastLine()+1,a.line+500),s=e.scanForClosingTag(t,a,null,i);if(!s||s.tag!=n)return!1;for(var l=r.context,g=o?1:0;l&&l.tagName==n;l=l.prev)++g;a=s.to;for(var c=1;c<g;c++){var d=e.scanForClosingTag(t,a,null,i);if(!d||d.tag!=n)return!1;a=d.to}return!0}e.defineOption("autoCloseTags",!1,function(n,r,o){if(o!=e.Init&&o&&n.removeKeyMap("autoCloseTags"),r){var i={name:"autoCloseTags"};("object"!=typeof r||r.whenClosing)&&(i["'/'"]=function(e){return a(e)}),("object"!=typeof r||r.whenOpening)&&(i["'>'"]=function(e){return t(e)}),n.addKeyMap(i)}});var i=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],s=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];e.commands.closeTag=function(e){return n(e)}});
//# sourceMappingURL=../../sourcemaps/addon/edit/closetag.js.map
| 331.6
| 3,077
| 0.652292
|
bc11ad81bcb5a401c2ad73875f9c911b21230fea
| 183
|
lua
|
Lua
|
modules/about/about_client.lua
|
rifleh700/gradmin
|
12b307e076a10c862caf56b56da98fca81c1075a
|
[
"MIT"
] | 5
|
2021-05-05T17:31:04.000Z
|
2022-03-19T18:06:16.000Z
|
modules/about/about_client.lua
|
rifleh700/gradmin
|
12b307e076a10c862caf56b56da98fca81c1075a
|
[
"MIT"
] | 2
|
2021-05-22T17:19:54.000Z
|
2021-05-22T19:23:31.000Z
|
modules/about/about_client.lua
|
rifleh700/gradmin
|
12b307e076a10c862caf56b56da98fca81c1075a
|
[
"MIT"
] | null | null | null |
mAbout = {}
function mAbout.init()
mAbout.gui.init()
return true
end
function mAbout.term()
mAbout.gui.term()
return true
end
cModules.register(mAbout, GENERAL_PERMISSION)
| 10.166667
| 45
| 0.73224
|
43426f87b3fdaec4bbcd395d8bac383687dd23bf
| 2,362
|
ts
|
TypeScript
|
mediapp-frontend/src/app/shared/server-errors.interceptor.ts
|
dperezpardo/mito.evaluacion
|
2474104e4bc2fea33e818ef77605278175f768bb
|
[
"Apache-2.0"
] | null | null | null |
mediapp-frontend/src/app/shared/server-errors.interceptor.ts
|
dperezpardo/mito.evaluacion
|
2474104e4bc2fea33e818ef77605278175f768bb
|
[
"Apache-2.0"
] | null | null | null |
mediapp-frontend/src/app/shared/server-errors.interceptor.ts
|
dperezpardo/mito.evaluacion
|
2474104e4bc2fea33e818ef77605278175f768bb
|
[
"Apache-2.0"
] | null | null | null |
import { Router } from '@angular/router';
import { environment } from './../../environments/environment';
import { MatSnackBar } from '@angular/material/snack-bar';
import { Injectable } from '@angular/core';
import { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor, HttpResponse } from '@angular/common/http';
import { Observable, EMPTY } from 'rxjs';
import { tap, catchError, retry } from 'rxjs/operators';
@Injectable({
providedIn: 'root'
})
export class ServerErrorsInterceptor implements HttpInterceptor {
constructor(private snackBar: MatSnackBar, private router : Router) {}
intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {
return next.handle(request).pipe(retry(environment.REINTENTOS))
.pipe(tap(event => {
if (event instanceof HttpResponse) {
if (event.body && event.body.error === true && event.body.errorMessage) {
throw new Error(event.body.errorMessage);
}/*else{
this.snackBar.open("EXITO", 'AVISO', { duration: 5000 });
}*/
}
//variable err tiene el response json del backend
})).pipe(catchError((err) => {
//https://en.wikipedia.org/wiki/List_of_HTTP_status_codes
if (err.status === 400) {
console.log(err);
this.snackBar.open(err.mensaje, 'ERROR 400', { duration: 5000 });
}
else if (err.status === 404){
this.snackBar.open('No existe el recurso', 'ERROR 404', { duration: 5000 });
}
else if (err.status === 403 || err.status === 401) {
console.log(err);
this.snackBar.open(err.error.error_description, 'ERROR 403', { duration: 5000 });
//sessionStorage.clear();
//this.router.navigate(['/login']);
}
else if (err.status === 500) {
this.snackBar.open(err.error.mensaje, 'ERROR 500', { duration: 5000 });
} else {
this.snackBar.open(err.error.mensaje, 'ERROR', { duration: 5000 });
}
return EMPTY;
}));
}
}
| 47.24
| 106
| 0.531753
|
6d60e9d712865496088e9af42e03e5ba18a8d7d6
| 323
|
ts
|
TypeScript
|
app/services/pitch/pitch.ts
|
DJilanov/nativescript-test
|
1f25dab1e69f2021b52379fefa5d40549745ebdc
|
[
"Apache-2.0"
] | null | null | null |
app/services/pitch/pitch.ts
|
DJilanov/nativescript-test
|
1f25dab1e69f2021b52379fefa5d40549745ebdc
|
[
"Apache-2.0"
] | null | null | null |
app/services/pitch/pitch.ts
|
DJilanov/nativescript-test
|
1f25dab1e69f2021b52379fefa5d40549745ebdc
|
[
"Apache-2.0"
] | null | null | null |
import { Observable } from "tns-core-modules/data/observable";
export interface Pitch extends Observable {
id: string;
type: string;
attributes?: {
starts: string;
ends: string;
price: string;
admin_fee: string;
currency: string;
availabilities: number;
};
}
| 23.071429
| 62
| 0.603715
|
410463e95952dec40d6eb120719dcd849a19f873
| 1,093
|
js
|
JavaScript
|
interview-problems/problems/RecursivePalindrome.js
|
masharp/algorithms-n-structures
|
b043a792986519298679d001c82733fdbfd3e7b9
|
[
"MIT"
] | 1
|
2016-05-28T17:26:27.000Z
|
2016-05-28T17:26:27.000Z
|
interview-problems/problems/RecursivePalindrome.js
|
masharp/useful-algorithms
|
b043a792986519298679d001c82733fdbfd3e7b9
|
[
"MIT"
] | null | null | null |
interview-problems/problems/RecursivePalindrome.js
|
masharp/useful-algorithms
|
b043a792986519298679d001c82733fdbfd3e7b9
|
[
"MIT"
] | null | null | null |
/* This is an implementation of a recursive algorithm designed to determine if a string is a palindrome.
A paldinrome is a string that reads the same forward as it does backward.
by Michael Sharp
www.softwareontheshore.com
michael@softwareontheshore.com
---------------------------------
Psudocode:
- if string is empty or 1 character
string is paldindrome
- if first and last characters do not match
string is not palindrome
- else
remove first and last characters from string
return palindrome(remaining characters)
*/
var stringA = "racecar";
var stringB = "motor";
var stringC = "rottor";
console.log(findPalindrome(stringA));
console.log(findPalindrome(stringB));
console.log(findPalindrome(stringC));
function findPalindrome(str) {
var firstCharacter = str.slice(0, 1);
var lastCharacter = str.slice(-1);
var middleCharacters = str.slice(1, -1);
if(str.length <= 1) {
return true;
}
if(firstCharacter !== lastCharacter) {
return false;
}
return findPalindrome(middleCharacters);
}
| 26.658537
| 105
| 0.677951
|
6a86ec4bcc8c8e35f6021c8cc797aae60dce1c73
| 108
|
dart
|
Dart
|
example/test_driver/tflite_flutter_plugin_example_e2e_test.dart
|
mgalgs/tflite_flutter_plugin
|
e8071d07c1a876c370425f49c126235855d158d1
|
[
"Apache-2.0"
] | 1
|
2021-05-11T12:21:42.000Z
|
2021-05-11T12:21:42.000Z
|
example/test_driver/tflite_flutter_plugin_example_e2e_test.dart
|
mgalgs/tflite_flutter_plugin
|
e8071d07c1a876c370425f49c126235855d158d1
|
[
"Apache-2.0"
] | null | null | null |
example/test_driver/tflite_flutter_plugin_example_e2e_test.dart
|
mgalgs/tflite_flutter_plugin
|
e8071d07c1a876c370425f49c126235855d158d1
|
[
"Apache-2.0"
] | 3
|
2021-06-20T23:01:50.000Z
|
2021-08-21T12:51:38.000Z
|
import 'dart:async';
import 'package:e2e/e2e_driver.dart' as e2e;
Future<void> main() async => e2e.main();
| 21.6
| 44
| 0.703704
|
e70a136135e94e6c99cb6c85cbbdfc132c043450
| 770
|
php
|
PHP
|
download_doc.php
|
sudogem/brcms
|
6229e0659a4c2d99e41c7d53a676a628cab0fdff
|
[
"MIT"
] | null | null | null |
download_doc.php
|
sudogem/brcms
|
6229e0659a4c2d99e41c7d53a676a628cab0fdff
|
[
"MIT"
] | 1
|
2015-12-01T09:15:03.000Z
|
2015-12-01T09:15:03.000Z
|
download_doc.php
|
sudogem/brcms
|
6229e0659a4c2d99e41c7d53a676a628cab0fdff
|
[
"MIT"
] | null | null | null |
<?php
require ( 'admin/coreclass.php' );
$articleID = $_GET['articleID'];
$db = new database;
$sql = "select * from article_versions ";
$sql .= " where articleID=" . intval( $articleID );
if (!($result = $db->query($sql))){
die('Error:'. $db->error());
}
while( $article[] = $db->fetcharray());
$db->freeresult();
$title = $article[0]->title;
$author = getArticle_authors_info( $article[0]->articleID , 'fullname' );
$dateline = friendlyDate3( $article[0]->dateline );
$body = strip_tags( $article[0]->article_body,'' );
$doc = new document_generator( 'templates/preview.rtf' );
$tags = array(
'<TITLE>' => $title,
'<AUTHOR>' => $author,
'<DATELINE>'=> $dateline,
'<BODY>' => $body
);
$doc->doc_tags( $tags );
echo $doc->display();
?>
| 26.551724
| 74
| 0.6
|
e13a4c257935b0a8f9b71c461928f33801f3ae72
| 246
|
rs
|
Rust
|
src/execution/error.rs
|
Uzaaft/barter-rs
|
08f1ddd9c622d4b7c4cddfc4520242e0c3360c6e
|
[
"MIT"
] | 1
|
2022-02-04T23:59:37.000Z
|
2022-02-04T23:59:37.000Z
|
src/execution/error.rs
|
Uzaaft/barter-rs
|
08f1ddd9c622d4b7c4cddfc4520242e0c3360c6e
|
[
"MIT"
] | null | null | null |
src/execution/error.rs
|
Uzaaft/barter-rs
|
08f1ddd9c622d4b7c4cddfc4520242e0c3360c6e
|
[
"MIT"
] | 1
|
2022-02-05T00:00:07.000Z
|
2022-02-05T00:00:07.000Z
|
use thiserror::Error;
/// All errors generated in the barter::execution module.
#[derive(Error, Copy, Clone, Debug)]
pub enum ExecutionError {
#[error("Failed to build struct due to incomplete attributes provided")]
BuilderIncomplete,
}
| 27.333333
| 76
| 0.735772
|
af59144ea04a5a3aeb70b5432942b303bdbb60fb
| 961
|
py
|
Python
|
day01/main.py
|
thetwoj/advent-of-code-2021
|
87a918e1f8973e3a9e5238248043ec27338939de
|
[
"MIT"
] | null | null | null |
day01/main.py
|
thetwoj/advent-of-code-2021
|
87a918e1f8973e3a9e5238248043ec27338939de
|
[
"MIT"
] | null | null | null |
day01/main.py
|
thetwoj/advent-of-code-2021
|
87a918e1f8973e3a9e5238248043ec27338939de
|
[
"MIT"
] | null | null | null |
def get_input(filename):
data = []
with open(filename, 'r') as i:
for x in i.readlines():
data.append(int(x))
return data
def count_increases(measurements):
previous = measurements[0]
increases = 0
for measurement in measurements[1:]:
if measurement > previous:
increases += 1
previous = measurement
return increases
def sliding_window_increases(measurements, window_size):
previous = sum(measurements[0:window_size])
increases = 0
for x in range(1, len(measurements)):
current = sum(measurements[x:x+window_size])
if current > previous:
increases += 1
previous = current
return increases
def main():
measurements = get_input("input")
print("Part 1:")
print(count_increases(measurements))
print()
print("Part 2:")
print(sliding_window_increases(measurements, 3))
if __name__ == "__main__":
main()
| 23.439024
| 56
| 0.631634
|
bb11e026bfcb0fd5f55096b82770120fdb04c1bf
| 1,007
|
cs
|
C#
|
AllReadyApp/Web-App/AllReady/Features/Requests/FindRequestIdByPhoneNumberQueryHandler.cs
|
mk0sojo/allReady
|
37833fcf2ea4d1f54d0e846c78ff79b307509809
|
[
"MIT"
] | 1,034
|
2015-07-20T17:08:09.000Z
|
2022-03-15T08:10:51.000Z
|
AllReadyApp/Web-App/AllReady/Features/Requests/FindRequestIdByPhoneNumberQueryHandler.cs
|
mk0sojo/allReady
|
37833fcf2ea4d1f54d0e846c78ff79b307509809
|
[
"MIT"
] | 1,853
|
2015-07-30T22:40:20.000Z
|
2022-02-25T19:09:29.000Z
|
AllReadyApp/Web-App/AllReady/Features/Requests/FindRequestIdByPhoneNumberQueryHandler.cs
|
mk0sojo/allReady
|
37833fcf2ea4d1f54d0e846c78ff79b307509809
|
[
"MIT"
] | 946
|
2015-07-20T17:39:36.000Z
|
2022-03-23T18:13:05.000Z
|
using AllReady.Models;
using MediatR;
using Microsoft.EntityFrameworkCore;
using System;
using System.Linq;
using System.Threading.Tasks;
namespace AllReady.Features.Requests
{
public class FindRequestIdByPhoneNumberQueryHandler : IAsyncRequestHandler<FindRequestIdByPhoneNumberQuery, Guid>
{
private readonly AllReadyContext _context;
public FindRequestIdByPhoneNumberQueryHandler(AllReadyContext context)
{
_context = context;
}
public async Task<Guid> Handle(FindRequestIdByPhoneNumberQuery message)
{
// note - stevejgordon - for now we are taking the most recent matching request - later this may be enhanced to use the SMS log table
return await _context.Requests.AsNoTracking()
.Where(rec => rec.Phone == message.PhoneNumber)
.OrderByDescending(rec => rec.DateAdded)
.Select(rec => rec.RequestId)
.FirstOrDefaultAsync();
}
}
}
| 32.483871
| 145
| 0.676266
|
38546351f2dbdf8223ef5b645da2300070e9e89a
| 291
|
php
|
PHP
|
app/database/seeds/UserTableSeeder.php
|
wengcd/caifushijie-laravel
|
3eb8ba80e1e881fba0b3e594ba449bc02fa5b5f4
|
[
"MIT"
] | null | null | null |
app/database/seeds/UserTableSeeder.php
|
wengcd/caifushijie-laravel
|
3eb8ba80e1e881fba0b3e594ba449bc02fa5b5f4
|
[
"MIT"
] | null | null | null |
app/database/seeds/UserTableSeeder.php
|
wengcd/caifushijie-laravel
|
3eb8ba80e1e881fba0b3e594ba449bc02fa5b5f4
|
[
"MIT"
] | null | null | null |
<?php
class UserTableSeeder extends Seeder
{
public function run()
{
User::create(array(
'username' => 'admin',
'email' => 'wengchaoda@gmail.com',
'password' => Hash::make('Wcd28835276'),
'is_admin' => true
));
}
}
| 20.785714
| 52
| 0.491409
|
a355396ee9b9ea2f3b0f945ea807ffba4f12398b
| 240
|
java
|
Java
|
src/main/java/pl/rembol/jme3/shootapdf/images/ImageLoader.java
|
RemboL/shoot-a-pdf
|
d49425727d239efab0152a168029afcd0dfdd25d
|
[
"MIT"
] | null | null | null |
src/main/java/pl/rembol/jme3/shootapdf/images/ImageLoader.java
|
RemboL/shoot-a-pdf
|
d49425727d239efab0152a168029afcd0dfdd25d
|
[
"MIT"
] | null | null | null |
src/main/java/pl/rembol/jme3/shootapdf/images/ImageLoader.java
|
RemboL/shoot-a-pdf
|
d49425727d239efab0152a168029afcd0dfdd25d
|
[
"MIT"
] | null | null | null |
package pl.rembol.jme3.shootapdf.images;
import java.io.File;
import java.util.List;
import pl.rembol.jme3.shootapdf.slide.SlideFactory;
interface ImageLoader {
List<SlideFactory> load(File file);
boolean canLoad(File file);
}
| 17.142857
| 51
| 0.758333
|
9e049ea4158f59eeb85cba609c8a88a2383cd84f
| 4,234
|
cs
|
C#
|
FlatLib/Graphics/Camera.cs
|
MatokHunt/MonoDev
|
a2238dcafef82ca3a68072f48eb3531a4c7f5b16
|
[
"MIT"
] | null | null | null |
FlatLib/Graphics/Camera.cs
|
MatokHunt/MonoDev
|
a2238dcafef82ca3a68072f48eb3531a4c7f5b16
|
[
"MIT"
] | null | null | null |
FlatLib/Graphics/Camera.cs
|
MatokHunt/MonoDev
|
a2238dcafef82ca3a68072f48eb3531a4c7f5b16
|
[
"MIT"
] | null | null | null |
using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace FlatLib.Graphics
{
public sealed class Camera
{
public readonly static float MinZ = 1f;
public readonly static float MaxZ = 2048f;
public readonly static int MinZoom = 1;
public readonly static int MaxZoom = 3;
private Vector2 position;
private float z;
private float baseZ;
private float aspectRatio;
private float fieldOfView;
private Matrix view;
private Matrix projection;
public int zoom;
public Vector2 Position
{
get { return this.position; }
}
public float Z
{
get { return this.z; }
}
public float BaseZ
{
get { return this.baseZ; }
}
public Matrix View
{
get { return this.view; }
}
public Matrix Projection
{
get { return this.projection; }
}
public Camera(Screen screen)
{
if (screen == null)
{
throw new ArgumentNullException("screen");
}
this.aspectRatio = (float)screen.Width / screen.Height;
this.fieldOfView = MathHelper.PiOver2;
this.position = new Vector2(0, 0);
this.baseZ = this.GetZFromHeight(screen.Height);
this.z = this.baseZ;
this.UpdateMatricies();
this.zoom = 1;
}
public void UpdateMatricies()
{
this.view = Matrix.CreateLookAt(new Vector3(0, 0, this.z), Vector3.Zero, Vector3.Up);
this.projection = Matrix.CreatePerspectiveFieldOfView(this.fieldOfView, this.aspectRatio, Camera.MinZ, Camera.MaxZ);
}
public float GetZFromHeight(float height)
{
return (0.5f * height) / (float)Math.Tan(0.5f * this.fieldOfView);
}
public float GetHeightFromZ()
{
return this.z * (float)Math.Tan(0.5f * this.fieldOfView) * 2f;
}
public void MoveZ(float amount)
{
this.z += amount;
this.z = Util.Clamp(this.z, MinZ, MaxZ);
}
public void ResetZ()
{
this.z = this.baseZ;
}
public void Move(Vector2 amount)
{
amount.Floor();
this.position += amount;
}
public void MoveTo(Vector2 position)
{
position.Floor();
this.position = position;
}
public void IncrementZoom()
{
this.zoom++;
this.zoom = Util.Clamp(this.zoom, MinZoom, MaxZoom);
this.z = this.baseZ / this.zoom;
}
public void DecrementZoom()
{
this.zoom--;
this.zoom = Util.Clamp(this.zoom, MinZoom, MaxZoom);
this.z = this.baseZ / this.zoom;
}
public void SetZoom(int amount)
{
this.zoom = amount;
this.zoom = Util.Clamp(this.zoom, MinZoom, MaxZoom);
this.z = this.baseZ / this.zoom;
}
public void GetExtents(out float width, out float height)
{
height = this.GetHeightFromZ();
width = height * this.aspectRatio;
}
public void GetExtents(out float left, out float right, out float bottom, out float top)
{
this.GetExtents(out float width, out float height);
left = this.position.X - width * 0.5f;
right = left + width;
bottom = this.position.Y - height * 0.5f;
top = bottom + height;
}
public void GetExtents(out Vector2 min, out Vector2 max)
{
this.GetExtents(out float left, out float right, out float bottom, out float top);
min = new Vector2(left, bottom);
max = new Vector2(right, top);
}
public Rectangle GetViewRectangle()
{
this.GetExtents(out Vector2 min, out Vector2 max);
return new Rectangle((int)min.X, (int)min.Y, (int)(max.X - min.X), (int)(max.Y - min.Y));
}
}
}
| 26.628931
| 128
| 0.526689
|
79b9a414c071182b3bb24ae189264108a156853c
| 25,759
|
php
|
PHP
|
app/Models/Usulan.php
|
PigHero82/laravel_sitasi
|
fdb133520f3b562dc78a1a8528be7c2b14b34d76
|
[
"MIT"
] | null | null | null |
app/Models/Usulan.php
|
PigHero82/laravel_sitasi
|
fdb133520f3b562dc78a1a8528be7c2b14b34d76
|
[
"MIT"
] | null | null | null |
app/Models/Usulan.php
|
PigHero82/laravel_sitasi
|
fdb133520f3b562dc78a1a8528be7c2b14b34d76
|
[
"MIT"
] | null | null | null |
<?php
namespace App\Models;
use Auth;
use DB;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Usulan extends Model
{
use HasFactory;
protected $table = 'usulan';
protected $fillable = ['dosen_id', 'skema_usulan_id', 'jenis', 'judul', 'ringkasan', 'kata_kunci', 'latar_belakang', 'tinjauan_pustaka', 'metode', 'daftar_pustaka', 'rumpun_ilmu_1', 'rumpun_ilmu_2', 'rumpun_ilmu_3', 'usulan_dana', 'nilai', 'step'];
static function countUsulanByDosenId($id, $jenis)
{
return Usulan::where('jenis', $jenis)
->where('dosen_id', $id)
->whereNotNull('judul')
->count();
}
static function countReviewedUsulan($reviewer)
{
return Usulan::selectRaw('count(id) as reviewed')
->where('reviewer', $reviewer)
->where('nilai', '>', 0)
->pluck('reviewed')
->first();
}
static function countUnreviewedUsulan($reviewer)
{
return Usulan::selectRaw('count(id) as unreviewed')
->where('reviewer', $reviewer)
->where('nilai', 0)
->orWhereNull('nilai')
->pluck('unreviewed')
->first();
}
static function firstUsulan($id)
{
$usulan = Usulan::select('id', 'skema_usulan_id')
->whereId($id)
->orderByDesc('created_at')
->first();
if (isset($usulan)) {
$data = [];
$data = Usulan::select(DB::raw('usulan.*, skema.kode, skema_usulan.tahun_skema, dosen.nama as ketua, skema_usulan.dana_maksimal'))->join('dosen', 'usulan.dosen_id', 'dosen.id')
->join('skema_usulan', 'usulan.skema_usulan_id', 'skema_usulan.id')
->join('skema', 'skema_usulan.skema_id', 'skema.id')
->firstWhere('usulan.id', $id);
$data['anggota'] = UsulanAnggota::getConfirmedAnggota($id);
$data['belanja'] = UsulanBelanja::getBelanja($id);
$data['berkas'] = UsulanBerkas::getBerkas($id);
$data['kegiatan'] = UsulanKegiatan::getKegiatan($id);
$data['komentar'] = UsulanKomentar::getKomentar($id);
$data['luaran'] = UsulanLuaran::getLuaran($id);
$data['mahasiswa'] = UsulanMahasiswa::getMahasiswa($id);
$data['penilaian'] = UsulanNilai::getNilai($id);
$data['rab'] = UsulanRab::getRab($id);
$data['skema_usulan'] = SkemaUsulan::firstSkema($usulan->skema_usulan_id);
$data['mitra'] = UsulanMitra::firstMitra($id);
$data['tautan'] = UsulanTautanPublikasi::getTautan($id);
return $data;
}
return $usulan;
}
static function firstUsulanByDosenIdSkemaId($dosenId, $skemaUsulanId)
{
$data = Usulan::select(DB::raw('usulan.*, skema.kode, skema_usulan.tahun_skema, dosen.nama as ketua'))
->join('dosen', 'usulan.dosen_id', 'dosen.id')
->join('skema_usulan', 'usulan.skema_usulan_id', 'skema_usulan.id')
->join('skema', 'skema_usulan.skema_id', 'skema.id')
->where('dosen_id', $dosenId)
->where('skema_usulan_id', $skemaUsulanId)
->first();
$data['anggota'] = UsulanAnggota::getConfirmedAnggota($data->id);
$data['belanja'] = UsulanBelanja::getBelanja($data->id);
$data['berkas'] = UsulanBerkas::getBerkas($data->id);
$data['kegiatan'] = UsulanKegiatan::getKegiatan($data->id);
$data['komentar'] = UsulanKomentar::getKomentar($data->id);
$data['luaran'] = UsulanLuaran::getLuaran($data->id);
$data['mahasiswa'] = UsulanMahasiswa::getMahasiswa($data->id);
$data['mitra'] = UsulanMitra::firstMitra($data->id);
$data['penilaian'] = UsulanNilai::getNilai($data->id);
$data['rab'] = UsulanRab::getRab($data->id);
$data['skema_usulan'] = SkemaUsulan::firstSkema($data->skema_usulan_id);
return $data;
}
static function getUsulanId($jenis)
{
$usulan = Usulan::select('id', 'skema_usulan_id', 'reviewer')
->where('jenis', $jenis)
->orderByDesc('created_at')
->get();
if ($usulan->isNotEmpty()) {
foreach ($usulan as $key => $value) {
$data[$key] = Usulan::findOrFail($value->id);
}
return $data;
}
return $usulan;
}
static function getUsulanaktif($jenis){
$usulan = Usulan::select('usulan.id', 'skema_usulan_id', 'reviewer','step', 'skema_usulan.status','dosen.nama AS ketua','usulan.dosen_id')
->join('dosen', 'usulan.dosen_id', 'dosen.id')
->join('skema_usulan','usulan.skema_usulan_id','skema_usulan.id')
->where('usulan.jenis', $jenis)
->whereNotNull('judul')
->where('skema_usulan.status',1)
->orderByDesc('usulan.created_at')
->get();
if ($usulan->isNotEmpty()) {
foreach ($usulan as $key => $value) {
$data[$key] = Usulan::findOrFail($value->id);
$data[$key]['anggota'] = UsulanAnggota::getConfirmedAnggota($value->id);
$data[$key]['belanja'] = UsulanBelanja::getBelanja($value->id);
$data[$key]['kegiatan'] = UsulanKegiatan::getKegiatan($value->id);
$data[$key]['komentar'] = UsulanKomentar::getKomentar($value->id);
$data[$key]['luaran'] = UsulanLuaran::getLuaran($value->id);
$data[$key]['mahasiswa'] = UsulanMahasiswa::getMahasiswa($value->id);
$data[$key]['mitra'] = UsulanMitra::firstMitra($value->id);
$data[$key]['penilaian'] = UsulanNilai::getNilai($value->id);
$data[$key]['rab'] = UsulanRab::getRab($value->id);
$data[$key]['reviewer'] = ($value->reviewer != NULL) ? Dosen::firstDosenByNidn($value->reviewer) : NULL ;
$data[$key]['skema_usulan'] = SkemaUsulan::firstSkema($value->skema_usulan_id);
}
return $data;
}
return $usulan;
}
static function getUsulan($jenis)
{
$usulan = Usulan::select('id', 'skema_usulan_id', 'reviewer','step')
->where('jenis', $jenis)
->whereNotNull('judul')
->orderByDesc('created_at')
->get();
if ($usulan->isNotEmpty()) {
foreach ($usulan as $key => $value) {
$data[$key] = Usulan::findOrFail($value->id);
$data[$key]['anggota'] = UsulanAnggota::getConfirmedAnggota($value->id);
$data[$key]['belanja'] = UsulanBelanja::getBelanja($value->id);
$data[$key]['kegiatan'] = UsulanKegiatan::getKegiatan($value->id);
$data[$key]['komentar'] = UsulanKomentar::getKomentar($value->id);
$data[$key]['luaran'] = UsulanLuaran::getLuaran($value->id);
$data[$key]['mahasiswa'] = UsulanMahasiswa::getMahasiswa($value->id);
$data[$key]['mitra'] = UsulanMitra::firstMitra($value->id);
$data[$key]['penilaian'] = UsulanNilai::getNilai($value->id);
$data[$key]['rab'] = UsulanRab::getRab($value->id);
$data[$key]['reviewer'] = ($value->reviewer != NULL) ? Dosen::firstDosenByNidn($value->reviewer) : NULL ;
$data[$key]['skema_usulan'] = SkemaUsulan::firstSkema($value->skema_usulan_id);
}
return $data;
}
return $usulan;
}
static function getUsulanPenilaian($jenis)
{
$usulan = Usulan::select('usulan.id', 'skema_usulan_id', 'usulan.reviewer')
->join('skema_usulan','usulan.skema_usulan_id','skema_usulan.id')
->where('usulan.jenis', $jenis)
->where('usulan.step', '>', 8)
->where('skema_usulan.status',1)
->orderBy('usulan.step')
->orderByDesc('usulan.judul')
->get();
if ($usulan->isNotEmpty()) {
foreach ($usulan as $key => $value) {
$data[$key] = Usulan::firstUsulan($value->id);
$data[$key]['anggota'] = UsulanAnggota::getConfirmedAnggota($value->id);
$data[$key]['belanja'] = UsulanBelanja::getBelanja($value->id);
$data[$key]['kegiatan'] = UsulanKegiatan::getKegiatan($value->id);
$data[$key]['komentar'] = UsulanKomentar::getKomentar($value->id);
$data[$key]['luaran'] = UsulanLuaran::getLuaran($value->id);
$data[$key]['mahasiswa'] = UsulanMahasiswa::getMahasiswa($value->id);
$data[$key]['mitra'] = UsulanMitra::firstMitra($value->id);
$data[$key]['penilaian'] = UsulanNilai::getNilai($value->id);
$data[$key]['rab'] = UsulanRab::getRab($value->id);
$data[$key]['reviewer'] = ($value->reviewer != NULL) ? Dosen::firstDosenByNidn($value->reviewer) : NULL ;
$data[$key]['skema_usulan'] = SkemaUsulan::firstSkema($value->skema_usulan_id);
}
return $data;
}
return $usulan;
}
static function getUsulanPenelitian()
{
$data = [];
$usulan = Usulan::select()
->where('jenis', 1)
->whereNotNull('judul')
->orderByDesc('skema_usulan_id')
->get();
if ($usulan->isNotEmpty()) {
foreach ($usulan as $key => $value) {
$data[$key] = Usulan::firstUsulan($value->id);
$data[$key]['skema_usulan'] = SkemaUsulan::firstSkema($value->skema_usulan_id);
$data[$key]['anggota'] = UsulanAnggota::getConfirmedAnggota($value->id);
$data[$key]['kegiatan'] = UsulanKegiatan::getKegiatan($value->id);
$data[$key]['luaran'] = UsulanLuaran::getLuaran($value->id);
$data[$key]['rab'] = UsulanRab::getRab($value->id);
$data[$key]['arnilai'] = UsulanNilai::getNilai($value->id);
}
return $data;
}
return $usulan;
}
static function getLimitedUsulanPenelitian($count)
{
$usulan = Usulan::where('jenis', 1)
->whereNotNull('judul')
->orderByDesc('skema_usulan_id')
->take($count)
->get();
if ($usulan->isNotEmpty()) {
foreach ($usulan as $key => $value) {
$data[$key] = Usulan::firstUsulan($value->id);
$data[$key]['skema_usulan'] = SkemaUsulan::firstSkema($value->skema_usulan_id);
$data[$key]['anggota'] = UsulanAnggota::getConfirmedAnggota($value->id);
$data[$key]['kegiatan'] = UsulanKegiatan::getKegiatan($value->id);
$data[$key]['luaran'] = UsulanLuaran::getLuaran($value->id);
$data[$key]['rab'] = UsulanRab::getRab($value->id);
}
return $data;
}
return $usulan;
}
static function getUsulanPengabdian()
{
$data = [];
$usulan = Usulan::where('jenis', 2)
->whereNotNull('judul')
->orderByDesc('skema_usulan_id')
->get();
if ($usulan->isNotEmpty()) {
foreach ($usulan as $key => $value) {
$data[$key] = Usulan::firstUsulan($value->id);
$data[$key]['skema_usulan'] = SkemaUsulan::firstSkema($value->skema_usulan_id);
$data[$key]['anggota'] = UsulanAnggota::getConfirmedAnggota($value->id);
$data[$key]['kegiatan'] = UsulanKegiatan::getKegiatan($value->id);
$data[$key]['luaran'] = UsulanLuaran::getLuaran($value->id);
$data[$key]['rab'] = UsulanRab::getRab($value->id);
$data[$key]['arnilai'] = UsulanNilai::getNilai($value->id);
}
return $data;
}
return $usulan;
}
static function getLimitedUsulanPengabdian($count)
{
$usulan = Usulan::where('jenis', 2)
->whereNotNull('judul')
->orderByDesc('skema_usulan_id')
->paginate($count);
if ($usulan->isNotEmpty()) {
foreach ($usulan as $key => $value) {
$data[$key] = Usulan::firstUsulan($value->id);
$data[$key]['skema_usulan'] = SkemaUsulan::firstSkema($value->skema_usulan_id);
$data[$key]['anggota'] = UsulanAnggota::getConfirmedAnggota($value->id);
$data[$key]['kegiatan'] = UsulanKegiatan::getKegiatan($value->id);
$data[$key]['luaran'] = UsulanLuaran::getLuaran($value->id);
$data[$key]['rab'] = UsulanRab::getRab($value->id);
}
return $data;
}
return $usulan;
}
static function getUsulanByDosenId($id, $jenis)
{
$usulan = Usulan::where('jenis', $jenis)
->where('dosen_id', $id)
->whereNotNull('judul')
->orderByDesc('created_at')
->get();
if ($usulan->isNotEmpty()) {
foreach ($usulan as $key => $value) {
$data[$key] = Usulan::firstUsulan($value->id);
$data[$key]['anggota'] = UsulanAnggota::getConfirmedAnggota($value->id);
$data[$key]['belanja'] = UsulanBelanja::getBelanja($value->id);
$data[$key]['kegiatan'] = UsulanKegiatan::getKegiatan($value->id);
$data[$key]['komentar'] = UsulanKomentar::getKomentar($value->id);
$data[$key]['luaran'] = UsulanLuaran::getLuaran($value->id);
$data[$key]['mitra'] = UsulanMitra::firstMitra($value->id);
$data[$key]['penilaian'] = UsulanNilai::getNilai($value->id);
$data[$key]['rab'] = UsulanRab::getRab($value->id);
$data[$key]['skema_usulan'] = SkemaUsulan::firstSkema($value->skema_usulan_id);
}
return $data;
}
return $usulan;
}
static function getUsulanPenelitianByDosenId($id)
{
$usulan = Usulan::where('jenis', 1)
->where('dosen_id', $id)
->orderByDesc('created_at')
->get();
if ($usulan->isNotEmpty()) {
foreach ($usulan as $key => $value) {
$data[$key] = Usulan::firstUsulan($value->id);
$data[$key]['skema_usulan'] = SkemaUsulan::firstSkema($value->skema_usulan_id);
$data[$key]['anggota'] = UsulanAnggota::getConfirmedAnggota($value->id);
$data[$key]['kegiatan'] = UsulanKegiatan::getKegiatan($value->id);
$data[$key]['luaran'] = UsulanLuaran::getLuaran($value->id);
$data[$key]['rab'] = UsulanRab::getRab($value->id);
}
return $data;
}
return $usulan;
}
static function getUsulanPengabdianByDosenId($id)
{
$usulan = Usulan::where('jenis', 2)
->where('dosen_id', $id)
->orderByDesc('created_at')
->get();
if ($usulan->isNotEmpty()) {
foreach ($usulan as $key => $value) {
$data[$key] = Usulan::firstUsulan($value->id);
$data[$key]['skema_usulan'] = SkemaUsulan::firstSkema($value->skema_usulan_id);
$data[$key]['anggota'] = UsulanAnggota::getConfirmedAnggota($value->id);
$data[$key]['kegiatan'] = UsulanKegiatan::getKegiatan($value->id);
$data[$key]['luaran'] = UsulanLuaran::getLuaran($value->id);
$data[$key]['rab'] = UsulanRab::getRab($value->id);
}
return $data;
}
return $usulan;
}
static function getUsulanPerYear($jenis)
{
return Usulan::selectRaw('skema_usulan.tahun_pelaksanaan, count(skema_usulan.tahun_pelaksanaan) as jumlah')
->leftjoin('skema_usulan', 'usulan.skema_usulan_id', 'skema_usulan.id')
->where('usulan.jenis', $jenis)
->whereNotNull('judul')
->groupBy('skema_usulan.tahun_pelaksanaan')
->get();
}
static function getUsulanBySkema($skema_id){
}
static function getUsulanByReviewer($reviewer, $jenis)
{
$usulan = Usulan::select('usulan.id', 'skema_usulan_id', 'usulan.reviewer')
->join('skema_usulan','usulan.skema_usulan_id','skema_usulan.id')
->where('reviewer', $reviewer)
->where('usulan.jenis', $jenis)
->where('skema_usulan.status',1)
->whereNotNull('judul')
->orderByDesc('usulan.created_at')
->get();
if ($usulan->isNotEmpty()) {
foreach ($usulan as $key => $value) {
$data[$key] = Usulan::findOrFail($value->id);
$data[$key]['anggota'] = UsulanAnggota::getConfirmedAnggota($value->id);
$data[$key]['belanja'] = UsulanBelanja::getBelanja($value->id);
$data[$key]['kegiatan'] = UsulanKegiatan::getKegiatan($value->id);
$data[$key]['komentar'] = UsulanKomentar::getKomentar($value->id);
$data[$key]['luaran'] = UsulanLuaran::getLuaran($value->id);
$data[$key]['mahasiswa'] = UsulanMahasiswa::getMahasiswa($value->id);
$data[$key]['mitra'] = UsulanMitra::firstMitra($value->id);
$data[$key]['penilaian'] = UsulanNilai::getNilai($value->id);
$data[$key]['rab'] = UsulanRab::getRab($value->id);
$data[$key]['reviewer'] = ($value->reviewer != NULL) ? Dosen::firstDosenByNidn($value->reviewer) : NULL ;
$data[$key]['skema_usulan'] = SkemaUsulan::firstSkema($value->skema_usulan_id);
}
return $data;
}
return $usulan;
}
static function getUsulanByReviewerLimited($reviewer, $jenis, $count)
{
$usulan = Usulan::select('id', 'skema_usulan_id', 'reviewer','judul')
->whereNotNull('judul')
->where(function ($query) use($reviewer, $jenis) {
$query->where('reviewer', $reviewer)
->where('jenis', $jenis)
->where('step', '>', 8)
->where('nilai', 0);
})
->orWhere(function($query) use($reviewer, $jenis) {
$query->where('reviewer', $reviewer)
->where('jenis', $jenis)
->where('step', '>', 8)
->whereNull('nilai');
})
->orderByDesc('created_at')
->get();
if ($usulan->isNotEmpty()) {
foreach ($usulan as $key => $value) {
$data[$key] = Usulan::findOrFail($value->id);
$data[$key]['anggota'] = UsulanAnggota::getConfirmedAnggota($value->id);
$data[$key]['belanja'] = UsulanBelanja::getBelanja($value->id);
$data[$key]['kegiatan'] = UsulanKegiatan::getKegiatan($value->id);
$data[$key]['komentar'] = UsulanKomentar::getKomentar($value->id);
$data[$key]['luaran'] = UsulanLuaran::getLuaran($value->id);
$data[$key]['mahasiswa'] = UsulanMahasiswa::getMahasiswa($value->id);
$data[$key]['mitra'] = UsulanMitra::firstMitra($value->id);
$data[$key]['penilaian'] = UsulanNilai::getNilai($value->id);
$data[$key]['rab'] = UsulanRab::getRab($value->id);
$data[$key]['reviewer'] = ($value->reviewer != NULL) ? Dosen::firstDosenByNidn($value->reviewer) : NULL ;
$data[$key]['skema_usulan'] = SkemaUsulan::firstSkema($value->skema_usulan_id);
}
return $data;
}
return $usulan;
}
static function persetujuanUsulan($status, $id)
{
if ($status == 1) {
Usulan::whereId($id)->update([
'nilai' => $status,
'step' => 10
]);
} else if ($status == 2) {
Usulan::whereId($id)->update([
'nilai' => $status,
'step' => 12
]);
} else if ($status == 3) {
Usulan::whereId($id)->update([
'nilai' => $status,
'step' => 14
]);
}
}
static function storeUsulan($request, $skemaUsulanId)
{
Usulan::updateOrCreate([
'dosen_id' => Auth::user()->id,
'skema_usulan_id' => $skemaUsulanId
], [
'dosen_id' => Auth::user()->id,
'skema_usulan_id' => $skemaUsulanId,
'jenis' => $request->jenis
]);
}
static function updateNilai($nilai, $id)
{
Usulan::whereId($id)->update(['nilai' => $nilai]);
}
static function updateReviewer($dosenId, $id)
{
Usulan::whereId($id)->update(['reviewer' => $dosenId]);
}
static function updateStep($step, $skemaUsulanId)
{
$data = Usulan::firstUsulanByDosenIdSkemaId(Auth::user()->id, $skemaUsulanId);
if ($data->step < $step) {
Usulan::where('dosen_id', Auth::user()->id)
->where('skema_usulan_id', $skemaUsulanId)
->update(['step' => $step]);
}
}
static function updateUsulan1($request, $skemaUsulanId)
{
$request->validate([
'judul' => 'required',
'ringkasan' => 'required',
'kata_kunci' => 'required',
'step' => 'required'
]);
Usulan::updateOrCreate([
'dosen_id' => Auth::user()->id,
'skema_usulan_id' => $skemaUsulanId
], [
'judul' => $request->judul,
'ringkasan' => $request->ringkasan,
'kata_kunci' => $request->kata_kunci
]);
if ($request->rumpun_ilmu_1) {
$request->validate(['rumpun_ilmu_1' => 'numeric']);
Usulan::where('dosen_id', Auth::user()->id)
->where('skema_usulan_id', $skemaUsulanId)
->update(['rumpun_ilmu_1' => $request->rumpun_ilmu_1]);
}
if ($request->rumpun_ilmu_2) {
$request->validate(['rumpun_ilmu_2' => 'numeric']);
Usulan::where('dosen_id', Auth::user()->id)
->where('skema_usulan_id', $skemaUsulanId)
->update(['rumpun_ilmu_2' => $request->rumpun_ilmu_2]);
}
if ($request->rumpun_ilmu_3) {
$request->validate(['rumpun_ilmu_3' => 'numeric']);
Usulan::where('dosen_id', Auth::user()->id)
->where('skema_usulan_id', $skemaUsulanId)
->update(['rumpun_ilmu_3' => $request->rumpun_ilmu_3]);
}
Usulan::updateStep($request->step, $skemaUsulanId);
}
static function updateUsulan2($request, $skemaUsulanId)
{
$request->validate(['step' => 'required']);
Usulan::updateStep($request->step, $skemaUsulanId);
}
static function updateUsulan3($request, $skemaUsulanId)
{
$request->validate(['step' => 'required']);
Usulan::updateStep($request->step, $skemaUsulanId);
}
static function updateUsulan4($request, $skemaUsulanId)
{
$request->validate(['step' => 'required']);
Usulan::updateStep($request->step, $skemaUsulanId);
}
static function updateUsulan5($request, $skemaUsulanId)
{
$request->validate(['step' => 'required']);
Usulan::updateStep($request->step, $skemaUsulanId);
}
static function updateUsulan6($request, $skemaUsulanId)
{
$request->validate(['step' => 'required']);
Usulan::updateStep($request->step, $skemaUsulanId);
}
static function updateUsulan7($request, $skemaUsulanId)
{
$request->validate(['step' => 'required']);
Usulan::updateStep($request->step, $skemaUsulanId);
}
static function updateUsulan8($request, $skemaUsulanId)
{
$request->validate(['step' => 'required']);
Usulan::updateStep($request->step, $skemaUsulanId);
}
static function updateUsulanDana($request)
{
$request->validate([
'usulan_id' => 'numeric|required',
'usulan_dana' => 'numeric|required'
]);
Usulan::whereId($request->usulan_id)->update(['usulan_dana' => $request->usulan_dana]);
}
}
| 41.082935
| 252
| 0.504445
|
92d99b7a478e998035eefb8f2c08b7b31b070488
| 588
|
sql
|
SQL
|
inst/sql/sql_server/analyses/1610.sql
|
OHDSI/Achilles
|
edbf6abbeac5ff8f087d21dd794952c63102bbdc
|
[
"Apache-1.1"
] | 108
|
2015-01-12T18:31:47.000Z
|
2022-03-29T18:10:11.000Z
|
inst/sql/sql_server/analyses/1610.sql
|
OHDSI/Achilles
|
edbf6abbeac5ff8f087d21dd794952c63102bbdc
|
[
"Apache-1.1"
] | 507
|
2015-01-06T15:27:08.000Z
|
2022-03-28T13:16:28.000Z
|
inst/sql/sql_server/analyses/1610.sql
|
OHDSI/Achilles
|
edbf6abbeac5ff8f087d21dd794952c63102bbdc
|
[
"Apache-1.1"
] | 132
|
2015-04-06T05:01:49.000Z
|
2022-03-09T18:43:40.000Z
|
-- 1610 Number of records by revenue_code_concept_id
--HINT DISTRIBUTE_ON_KEY(stratum_1)
select
1610 as analysis_id,
cast(revenue_code_concept_id as varchar(255)) as stratum_1,
cast(null as varchar(255)) as stratum_2, cast(null as varchar(255)) as stratum_3,
cast(null as varchar(255)) as stratum_4, cast(null as varchar(255)) as stratum_5,
count_big(cost_id) as count_value
into @scratchDatabaseSchema@schemaDelim@tempAchillesPrefix_1610
from @cdmDatabaseSchema.cost
where revenue_code_concept_id is not null
and cost_domain_id = 'Procedure'
group by revenue_code_concept_id
;
| 34.588235
| 83
| 0.811224
|
54d919b671aab175a030e7b2871dd18657ef6cd1
| 363
|
css
|
CSS
|
src/student-portal/src/Components/Footer/Footer.css
|
marouane-edghoughi/react-springboot
|
c44d792567dcbb13079cecc3d8e73fd26891d0bc
|
[
"MIT"
] | null | null | null |
src/student-portal/src/Components/Footer/Footer.css
|
marouane-edghoughi/react-springboot
|
c44d792567dcbb13079cecc3d8e73fd26891d0bc
|
[
"MIT"
] | null | null | null |
src/student-portal/src/Components/Footer/Footer.css
|
marouane-edghoughi/react-springboot
|
c44d792567dcbb13079cecc3d8e73fd26891d0bc
|
[
"MIT"
] | null | null | null |
.footer-bar {
width: 100%;
padding: 0.5rem;
background-color: rgba(236, 240, 241, 0.8);
position: fixed;
bottom: 0;
}
.students-number {
display: inline-block;
color: white;
background-color: #e67e22;
border-radius: 25px;
margin-right: 1rem;
width: 40px;
height: 40px;
padding: 8px 5px;
font-weight: 400;
}
| 19.105263
| 47
| 0.600551
|
0d80fc9f0f1889b9c97fd9bfb2c41b4291446434
| 11,007
|
c
|
C
|
ocl-icd-compat/ocl_icd_compat.c
|
KhronosGroup/OpenCL-Layers
|
e2dc0f3ffb826af29efde40d6a936fb2944043bc
|
[
"Apache-2.0"
] | 1
|
2021-12-10T09:58:11.000Z
|
2021-12-10T09:58:11.000Z
|
ocl-icd-compat/ocl_icd_compat.c
|
StreamHPC/OpenCL-Layers
|
2f45c7eb6df477626d46e61549aa4d558bd112a9
|
[
"Apache-2.0"
] | 4
|
2021-12-08T16:15:00.000Z
|
2022-03-10T16:29:07.000Z
|
ocl-icd-compat/ocl_icd_compat.c
|
StreamHPC/OpenCL-Layers
|
2f45c7eb6df477626d46e61549aa4d558bd112a9
|
[
"Apache-2.0"
] | 2
|
2021-12-08T15:29:36.000Z
|
2022-01-03T12:29:41.000Z
|
#include <stdlib.h>
#include <string.h>
#include <CL/cl_layer.h>
static struct _cl_icd_dispatch dispatch;
static const struct _cl_icd_dispatch *tdispatch;
CL_API_ENTRY cl_int CL_API_CALL
clGetLayerInfo(
cl_layer_info param_name,
size_t param_value_size,
void *param_value,
size_t *param_value_size_ret) {
switch (param_name) {
case CL_LAYER_API_VERSION:
if (param_value) {
if (param_value_size < sizeof(cl_layer_api_version))
return CL_INVALID_VALUE;
*((cl_layer_api_version *)param_value) = CL_LAYER_API_VERSION_100;
}
if (param_value_size_ret)
*param_value_size_ret = sizeof(cl_layer_api_version);
break;
default:
return CL_INVALID_VALUE;
}
return CL_SUCCESS;
}
static void _init_dispatch(void);
struct platform_icd {
cl_platform_id pid;
cl_uint ngpus; /* number of GPU devices */
cl_uint ncpus; /* number of CPU devices */
cl_uint ndevs; /* total number of devices, of all types */
};
static int _cmp_platforms(const void *_a, const void *_b) {
const struct platform_icd *a=(const struct platform_icd *)_a;
const struct platform_icd *b=(const struct platform_icd *)_b;
/* sort first platforms handling max gpu */
if (a->ngpus > b->ngpus) return -1;
if (a->ngpus < b->ngpus) return 1;
/* sort next platforms handling max cpu */
if (a->ncpus > b->ncpus) return -1;
if (a->ncpus < b->ncpus) return 1;
/* sort then platforms handling max devices */
if (a->ndevs > b->ndevs) return -1;
if (a->ndevs < b->ndevs) return 1;
/* else consider platforms equal */
return 0;
}
static struct platform_icd *_platforms = NULL;
static cl_uint _num_platforms = 0;
static cl_platform_id _default_id = NULL;
static void _count_devices(struct platform_icd *p) {
tdispatch->clGetDeviceIDs(p->pid, CL_DEVICE_TYPE_GPU, 0, NULL, &(p->ngpus));
tdispatch->clGetDeviceIDs(p->pid, CL_DEVICE_TYPE_CPU, 0, NULL, &(p->ncpus));
tdispatch->clGetDeviceIDs(p->pid, CL_DEVICE_TYPE_ALL, 0, NULL, &(p->ndevs));
}
static void _sort_platforms(struct platform_icd *picds, cl_uint npicds) {
if (npicds > 1) {
#ifndef _MSC_VER
char* ocl_sort=getenv("OCL_ICD_PLATFORM_SORT");
if (ocl_sort!=NULL && !strcmp(ocl_sort, "none")) {
#else
#define ocl_sort_max_len 5
char ocl_sort[ocl_sort_max_len];
errno_t err = getenv_s(
NULL,
ocl_sort,
(rsize_t)ocl_sort_max_len,
"OCL_ICD_PLATFORM_SORT"
);
#undef ocl_sort_max_len
if(err==0 && !strcmp(ocl_sort, "none")) {
#endif
/* Platform not sorted */
return;
} else {
for (cl_uint i = 0; i < npicds; i++) {
_count_devices(picds + i);
}
qsort(picds, npicds, sizeof(*picds), &_cmp_platforms);
}
}
}
static void _set_default_id() {
int num_default_platform = 0;
#ifndef _MSC_VER
const char *default_platform = getenv("OCL_ICD_DEFAULT_PLATFORM");
if (default_platform) {
#else
#define default_platform_max_len 5
const char default_platform[default_platform_max_len];
errno_t err = getenv_s(
NULL,
(char*)default_platform,
(rsize_t)default_platform_max_len,
"OCL_ICD_DEFAULT_PLATFORM"
);
#undef default_platform_max_len
if(err==0) {
#endif
char *end_scan;
num_default_platform = strtol(default_platform, &end_scan, 10);
if (*default_platform == '\0' || *end_scan != '\0')
return;
}
if (num_default_platform < 0 || num_default_platform >= (int)_num_platforms)
return;
_default_id = _platforms[num_default_platform].pid;
}
void _init_platforms() {
cl_int err;
cl_platform_id *ids = NULL;
err = tdispatch->clGetPlatformIDs(0, NULL, &_num_platforms);
if (err != CL_SUCCESS)
return;
if (!_num_platforms)
return;
_platforms = (struct platform_icd *)calloc(
_num_platforms,
sizeof(struct platform_icd));
if (!_platforms)
return;
ids = (cl_platform_id *)calloc(
_num_platforms,
sizeof(cl_platform_id));
if (!ids)
goto error;
err = tdispatch->clGetPlatformIDs(_num_platforms, ids, NULL);
if (err != CL_SUCCESS)
goto error;
for (cl_uint i =0; i < _num_platforms; i++)
_platforms[i].pid = ids[i];
_sort_platforms(_platforms, _num_platforms);
_set_default_id();
free(ids);
return;
error:
free(ids);
free(_platforms);
}
CL_API_ENTRY cl_int CL_API_CALL
clInitLayer(
cl_uint num_entries,
const struct _cl_icd_dispatch *target_dispatch,
cl_uint *num_entries_out,
const struct _cl_icd_dispatch **layer_dispatch_ret) {
if (!target_dispatch || !layer_dispatch_ret ||!num_entries_out || num_entries < sizeof(dispatch)/sizeof(dispatch.clGetPlatformIDs))
return CL_INVALID_VALUE;
tdispatch = target_dispatch;
_init_platforms();
_init_dispatch();
*layer_dispatch_ret = &dispatch;
*num_entries_out = sizeof(dispatch)/sizeof(dispatch.clGetPlatformIDs);
return CL_SUCCESS;
}
static CL_API_ENTRY cl_int CL_API_CALL clGetPlatformIDs_wrap(
cl_uint num_entries,
cl_platform_id* platforms,
cl_uint* num_platforms)
{
if (platforms == NULL && num_platforms == NULL)
return CL_INVALID_VALUE;
if (num_entries == 0 && platforms != NULL)
return CL_INVALID_VALUE;
if (_num_platforms == 0) {
if ( num_platforms != NULL )
*num_platforms = 0;
return CL_PLATFORM_NOT_FOUND_KHR;
}
if (num_platforms != NULL)
*num_platforms = _num_platforms;
if (platforms != NULL) {
cl_uint n_platforms = _num_platforms < num_entries ? _num_platforms : num_entries;
for( cl_uint i = 0; i < n_platforms; i++)
platforms[i] = _platforms[i].pid;
}
return CL_SUCCESS;
}
static inline int _check_platform(cl_platform_id pid) {
int good=0;
for(cl_uint j = 0; j < _num_platforms; j++) {
if( _platforms[j].pid == pid) {
good=1;
break;
}
}
return good;
}
static CL_API_ENTRY cl_context CL_API_CALL clCreateContext_wrap(
const cl_context_properties* properties,
cl_uint num_devices,
const cl_device_id* devices,
void (CL_CALLBACK* pfn_notify)(const char* errinfo, const void* private_info, size_t cb, void* user_data),
void* user_data,
cl_int* errcode_ret)
{
if (properties != NULL){
cl_uint i = 0;
while (properties[i] != 0) {
if (properties[i] == CL_CONTEXT_PLATFORM) {
if ((struct _cl_platform_id *) properties[i+1] == NULL) {
goto out;
} else {
if (!_check_platform((cl_platform_id) properties[i+1])) {
goto out;
}
}
break;
}
i += 2;
}
}
return tdispatch->clCreateContext(
properties,
num_devices,
devices,
pfn_notify,
user_data,
errcode_ret);
out:
*errcode_ret = CL_INVALID_PLATFORM;
return NULL;
}
static CL_API_ENTRY cl_context CL_API_CALL clCreateContextFromType_wrap(
const cl_context_properties* properties,
cl_device_type device_type,
void (CL_CALLBACK* pfn_notify)(const char* errinfo, const void* private_info, size_t cb, void* user_data),
void* user_data,
cl_int* errcode_ret)
{
if (_num_platforms == 0)
goto out;
if (properties != NULL){
cl_uint i = 0;
while (properties[i] != 0) {
if (properties[i] == CL_CONTEXT_PLATFORM) {
if ((struct _cl_platform_id *) properties[i+1] == NULL) {
goto out;
} else {
if (!_check_platform((cl_platform_id) properties[i+1])) {
goto out;
}
}
return tdispatch->clCreateContextFromType(
properties,
device_type,
pfn_notify,
user_data,
errcode_ret);
}
i += 2;
}
} else {
if (_default_id == NULL)
goto out;
cl_context_properties new_props[3] =
{ (cl_context_properties)CL_CONTEXT_PLATFORM,
(cl_context_properties)_default_id,
(cl_context_properties)NULL};
return tdispatch->clCreateContextFromType(
new_props,
device_type,
pfn_notify,
user_data,
errcode_ret);
}
out:
*errcode_ret = CL_INVALID_PLATFORM;
return NULL;
}
static CL_API_ENTRY cl_int CL_API_CALL clGetGLContextInfoKHR_wrap(
const cl_context_properties * properties,
cl_gl_context_info param_name,
size_t param_value_size,
void * param_value,
size_t * param_value_size_ret) {
if (properties != NULL){
cl_uint i = 0;
while (properties[i] != 0) {
if (properties[i] == CL_CONTEXT_PLATFORM) {
if ((struct _cl_platform_id *) properties[i+1] == NULL) {
goto out;
} else {
if (!_check_platform((cl_platform_id) properties[i+1])) {
goto out;
}
}
break;
}
i += 2;
}
}
return tdispatch->clGetGLContextInfoKHR(
properties,
param_name,
param_value_size,
param_value,
param_value_size_ret);
out:
return CL_INVALID_PLATFORM;
}
static inline
cl_platform_id _select_platform_id(cl_platform_id pid) {
if (pid) return pid;
return _default_id;
}
static CL_API_ENTRY cl_int CL_API_CALL clGetPlatformInfo_wrap(
cl_platform_id platform,
cl_platform_info param_name,
size_t param_value_size,
void * param_value,
size_t * param_value_size_ret) {
platform = _select_platform_id(platform);
return tdispatch->clGetPlatformInfo(
platform,
param_name,
param_value_size,
param_value,
param_value_size_ret);
}
static CL_API_ENTRY cl_int CL_API_CALL clGetDeviceIDs_wrap(
cl_platform_id platform,
cl_device_type device_type,
cl_uint num_entries,
cl_device_id * devices,
cl_uint * num_devices) {
platform = _select_platform_id(platform);
return tdispatch->clGetDeviceIDs(
platform,
device_type,
num_entries,
devices,
num_devices);
}
static CL_API_ENTRY cl_int CL_API_CALL clUnloadPlatformCompiler_wrap(
cl_platform_id platform){
platform = _select_platform_id(platform);
return tdispatch->clUnloadPlatformCompiler(platform);
}
static CL_API_ENTRY void * CL_API_CALL clGetExtensionFunctionAddressForPlatform_wrap(
cl_platform_id platform,
const char * func_name){
platform = _select_platform_id(platform);
return tdispatch->clGetExtensionFunctionAddressForPlatform(
platform,
func_name);
}
static void _init_dispatch(void) {
dispatch.clGetPlatformIDs = &clGetPlatformIDs_wrap;
dispatch.clGetPlatformInfo = &clGetPlatformInfo_wrap;
dispatch.clGetDeviceIDs = &clGetDeviceIDs_wrap;
dispatch.clCreateContext = &clCreateContext_wrap;
dispatch.clCreateContextFromType = &clCreateContextFromType_wrap;
dispatch.clGetGLContextInfoKHR = &clGetGLContextInfoKHR_wrap;
dispatch.clUnloadPlatformCompiler = &clUnloadPlatformCompiler_wrap;
dispatch.clGetExtensionFunctionAddressForPlatform = &clGetExtensionFunctionAddressForPlatform_wrap;
}
| 28.150895
| 133
| 0.673299
|
2577521e4b63d45885c986ecc060863a84176bbe
| 3,058
|
cs
|
C#
|
src/ANDOR-CS/Classes/LocalCameraFactory.cs
|
Ilia-Kosenkov/DIPOL-UF
|
b760f5541cd4a67e9e3d7505eef5b928e9219364
|
[
"MIT"
] | 1
|
2021-05-26T22:13:23.000Z
|
2021-05-26T22:13:23.000Z
|
src/ANDOR-CS/Classes/LocalCameraFactory.cs
|
Ilia-Kosenkov/DIPOL-UF
|
b760f5541cd4a67e9e3d7505eef5b928e9219364
|
[
"MIT"
] | 2
|
2021-06-06T21:44:27.000Z
|
2021-06-06T21:44:35.000Z
|
src/ANDOR-CS/Classes/LocalCameraFactory.cs
|
Ilia-Kosenkov/DIPOL-UF
|
b760f5541cd4a67e9e3d7505eef5b928e9219364
|
[
"MIT"
] | 2
|
2021-06-06T20:31:55.000Z
|
2021-06-06T20:34:40.000Z
|
// This file is part of Dipol-3 Camera Manager.
// MIT License
//
// Copyright(c) 2018-2019 Ilia Kosenkov
//
// 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 NONINFINGEMENT. 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.
using System;
using System.Threading.Tasks;
using ANDOR_CS.Exceptions;
namespace ANDOR_CS.Classes
{
public sealed partial class LocalCamera
{
public class LocalCameraFactory : IDeviceFactory
{
public int GetNumberOfCameras()
{
// Variable is passed to SDK function
var result =
AndorSdkInitialization.CallWithoutHandle(
AndorSdkInitialization.SdkInstance.GetAvailableCameras, out int cameraCount);
if (AndorSdkException.FailIfError(result,
nameof(AndorSdkInitialization.SdkInstance.GetAvailableCameras),
out var except))
throw except;
return cameraCount;
}
public IDevice Create(int index = 0)
{
var n = GetNumberOfCameras();
if (n == 0)
throw new AndorSdkException("No ANDOR-compatible cameras found.", null);
// If cameraIndex is less than 0, it is out of range
if (index < 0)
throw new ArgumentException(
$"Camera index is out of range; Cannot be less than 0 (provided {index}).");
// If cameraIndex equals to or exceeds the number of available cameras, it is also out of range
if (index > n)
throw new ArgumentException(
$"Camera index is out of range; Cannot be greater than {GetNumberOfCameras() - 1} (provided {index}).");
return new LocalCamera(index);
}
public Task<IDevice> CreateAsync(int index = 0)
=> Task.Run(() => Create(index));
}
}
}
| 40.773333
| 128
| 0.610203
|
b8dd3338b7bb9e80632e65eccf0f147ae9f1a007
| 8,785
|
py
|
Python
|
paragami/tests/test_autograd_supplement_lib.py
|
rgiordan/paragami
|
059bb354b816bafe821d446ece2fb9b968a39d83
|
[
"Apache-2.0"
] | 11
|
2019-03-13T15:55:38.000Z
|
2020-02-15T02:44:11.000Z
|
paragami/tests/test_autograd_supplement_lib.py
|
rgiordan/paragami
|
059bb354b816bafe821d446ece2fb9b968a39d83
|
[
"Apache-2.0"
] | 59
|
2018-10-30T04:28:23.000Z
|
2020-08-03T17:45:56.000Z
|
paragami/tests/test_autograd_supplement_lib.py
|
rgiordan/paragami
|
059bb354b816bafe821d446ece2fb9b968a39d83
|
[
"Apache-2.0"
] | 2
|
2020-10-31T17:51:48.000Z
|
2020-12-14T18:41:00.000Z
|
#!/usr/bin/env python3
import autograd
import autograd.numpy as np
import autograd.numpy.random as npr
from autograd.test_util import check_grads
import copy
from paragami import autograd_supplement_lib
import autograd.scipy as sp
from numpy.testing import assert_array_almost_equal
import scipy as osp
import scipy.sparse
import unittest
npr.seed(1)
def rand_psd(D):
mat = npr.randn(D, D)
return np.dot(mat, mat.T)
def assert_sp_array_almost_equal(x, y):
x_test = x.todense() if sp.sparse.issparse(x) else x
y_test = y.todense() if sp.sparse.issparse(y) else y
assert_array_almost_equal(x_test, y_test)
class TestAutogradSupplement(unittest.TestCase):
def test_replace(self):
dim = 10
x = np.random.random(dim)
x_orig = copy.deepcopy(x)
inds = [1, 3, 5]
x_sub = np.random.random(len(inds))
non_inds = np.setdiff1d(np.arange(dim), inds)
x_new = autograd_supplement_lib.replace(x_sub, x, inds)
assert_array_almost_equal(x_new[inds], x_sub)
assert_array_almost_equal(x_new[non_inds], x[non_inds])
assert_array_almost_equal(x, x_orig)
assert len(x_new) == len(x)
# Apparnetly check grads doesn't check all the arguments?
check_grads(
lambda x_sub: autograd_supplement_lib.replace(x_sub, x, inds))(x_sub)
check_grads(
lambda x: autograd_supplement_lib.replace(x_sub, x, inds))(x)
def test_inv(self):
def fun(x):
return np.linalg.inv(x)
D = 3
mat = npr.randn(D, D) + np.eye(D) * 2
check_grads(fun)(mat)
def test_inv_3d(self):
fun = lambda x: np.linalg.inv(x)
D = 4
mat = npr.randn(D, D, D) + 5 * np.eye(D)
check_grads(fun)(mat)
mat = npr.randn(D, D, D, D) + 5 * np.eye(D)
check_grads(fun)(mat)
def test_slogdet(self):
def fun(x):
sign, logdet = np.linalg.slogdet(x)
return logdet
D = 6
mat = npr.randn(D, D)
mat[0, 1] = mat[1, 0] + 1 # Make sure the matrix is not symmetric
check_grads(fun)(mat)
check_grads(fun)(-mat)
def test_slogdet_3d(self):
fun = lambda x: np.sum(np.linalg.slogdet(x)[1])
mat = np.concatenate(
[(rand_psd(5) + 5 * np.eye(5))[None,...] for _ in range(3)])
# At this time, this is not supported.
#check_grads(fun)(mat)
# Check that it raises an error.
fwd_grad = autograd.make_jvp(fun, argnum=0)
def error_fun():
return fwd_grad(mat)(mat)
self.assertRaises(ValueError, error_fun)
def test_solve_arg1(self):
D = 8
A = npr.randn(D, D) + 10.0 * np.eye(D)
B = npr.randn(D, D - 1)
def fun(a): return np.linalg.solve(a, B)
check_grads(fun)(A)
def test_solve_arg1_1d(self):
D = 8
A = npr.randn(D, D) + 10.0 * np.eye(D)
B = npr.randn(D)
def fun(a): return np.linalg.solve(a, B)
check_grads(fun)(A)
def test_solve_arg2(self):
D = 6
A = npr.randn(D, D) + 1.0 * np.eye(D)
B = npr.randn(D, D - 1)
def fun(b): return np.linalg.solve(A, b)
check_grads(fun)(B)
def test_solve_arg1_3d(self):
D = 4
A = npr.randn(D + 1, D, D) + 5 * np.eye(D)
B = npr.randn(D + 1, D)
fun = lambda A: np.linalg.solve(A, B)
check_grads(fun)(A)
def test_solve_arg1_3d_3d(self):
D = 4
A = npr.randn(D+1, D, D) + 5 * np.eye(D)
B = npr.randn(D+1, D, D + 2)
fun = lambda A: np.linalg.solve(A, B)
check_grads(fun)(A)
def test_gammaln_functions(self):
for x in np.linspace(2.5, 3.5, 10):
check_grads(sp.special.digamma)(x)
check_grads(sp.special.psi)(x)
check_grads(sp.special.gamma)(x)
check_grads(sp.special.gammaln)(x)
check_grads(sp.special.rgamma)(x)
for n in range(4):
check_grads(lambda x: sp.special.polygamma(int(n), x))(x)
class TestSparseMatrixTools(unittest.TestCase):
def test_get_sparse_product(self):
z_dense = np.random.random((10, 2))
z_mat = osp.sparse.coo_matrix(z_dense)
self.assertTrue(osp.sparse.issparse(z_mat))
for mu_dim in [1, 2]:
if mu_dim == 1:
mu = np.random.random(z_mat.shape[1])
else:
mu = np.random.random((z_mat.shape[1], 3))
z_mult, zt_mult = \
autograd_supplement_lib.get_sparse_product(z_mat)
check_grads(z_mult, modes=['rev', 'fwd'], order=4)(mu)
z_mult2, zt_mult2 = \
autograd_supplement_lib.get_sparse_product(2 * z_mat)
check_grads(z_mult2, modes=['rev', 'fwd'], order=4)(mu)
assert_array_almost_equal(z_mult(mu), z_mat @ mu)
assert_array_almost_equal(z_mult2(mu), 2 * z_mat @ mu)
# Check that errors are raised if the sparse matrix is not 2d
z_dense_3d = np.random.random((2, 2, 2))
self.assertRaises(
ValueError,
lambda: autograd_supplement_lib.get_sparse_product(z_dense_3d))
z_dense_1d = np.random.random((2, ))
self.assertRaises(
ValueError,
lambda: autograd_supplement_lib.get_sparse_product(z_dense_1d))
# Check that errors are raised if the argument is more than 2d
z_mult, zt_mult = \
autograd_supplement_lib.get_sparse_product(z_mat)
mu_bad = np.random.random((z_mat.shape[1], 3, 3))
mut_bad = np.random.random((z_mat.shape[0], 3, 3))
self.assertRaises(ValueError, lambda: z_mult(mu_bad))
self.assertRaises(ValueError, lambda: zt_mult(mu_bad))
def test_get_differentiable_solver(self):
dim = 5
z = np.eye(dim)
z[0, 1] = 0.2
z[1, 0] = 0.2
z[0, dim - 1] = 0.05
z[dim - 1, 0] = 0.1
z_sp = osp.sparse.csc_matrix(z)
a = np.random.random(dim)
# Check with simple lambda functions.
z_solve, zt_solve = autograd_supplement_lib.get_differentiable_solver(
lambda b: osp.sparse.linalg.spsolve(z_sp, b),
lambda b: osp.sparse.linalg.spsolve(z_sp.T, b))
assert_array_almost_equal(
osp.sparse.linalg.spsolve(z_sp, a), z_solve(a))
assert_array_almost_equal(
osp.sparse.linalg.spsolve(z_sp.T, a), zt_solve(a))
check_grads(z_solve)(a)
check_grads(zt_solve)(a)
# Check with factorized matrices.
z_factorized = osp.sparse.linalg.factorized(z_sp)
zt_factorized = osp.sparse.linalg.factorized(z_sp.T)
z_solve_fac, zt_solve_fac = \
autograd_supplement_lib.get_differentiable_solver(
z_factorized, zt_factorized)
assert_array_almost_equal(z_factorized(a), z_solve_fac(a))
assert_array_almost_equal(zt_factorized(a), zt_solve_fac(a))
check_grads(z_solve_fac)(a)
check_grads(zt_solve_fac)(a)
# # Test with a Cholesky decomposition.
# z_chol = cholesky(z_sp)
# zt_chol = cholesky(z_sp.T)
#
# # Make sure that we are testing the fill-reducing permutation.
# self.assertTrue(not np.all(z_chol.P() == np.arange(dim)))
# z_solve_chol, zt_solve_chol = \
# autograd_supplement_lib.get_differentiable_solver(
# z_chol, zt_chol)
#
# # TODO(why is Cholesky not working?)
# # For some reason, ``z_chol(a)`` doesn't work unless ``a``
# # is the same (square) dimension as ``z``. This appears to be
# # a problem with the Cholesky decomposition, not the sparse solver.
# z_chol(a) # Fails
# assert_array_almost_equal(z_chol(a), z_solve_chol(a))
# assert_array_almost_equal(zt_chol(a), zt_solve_chol(a))
#
# check_grads(z_solve_chol)(a)
# check_grads(zt_solve_chol)(a)
class TestGroupedSum(unittest.TestCase):
def test_grouped_sum(self):
grouped_sum = autograd_supplement_lib.grouped_sum
n_groups = 10
n_per_group = 2
n_obs = n_groups * n_per_group
groups = np.repeat(np.arange(0, n_groups), n_per_group)
def check(x):
if x.ndim == 1:
assert_array_almost_equal(
grouped_sum(x, groups),
np.bincount(groups, x))
check_grads(grouped_sum)(x, groups)
check_grads(grouped_sum)(x, groups, num_groups=n_groups + 4)
check(np.random.random(n_obs))
check(np.random.random((n_obs, 3)))
check(np.random.random((n_obs, 3, 2)))
if __name__ == '__main__':
unittest.main()
| 33.026316
| 81
| 0.595105
|
f250018aa46688170337b14d2a57b040e1e2b3a4
| 3,443
|
lua
|
Lua
|
source/rituals.lua
|
FormTheAnt/GGJ2016
|
4dd9a7a8ecea8acec248cecac9300a91f396e7ed
|
[
"MIT"
] | null | null | null |
source/rituals.lua
|
FormTheAnt/GGJ2016
|
4dd9a7a8ecea8acec248cecac9300a91f396e7ed
|
[
"MIT"
] | null | null | null |
source/rituals.lua
|
FormTheAnt/GGJ2016
|
4dd9a7a8ecea8acec248cecac9300a91f396e7ed
|
[
"MIT"
] | null | null | null |
local Container = {}
local RitualList = {
["is gravity still functioning?"] = { [1] = {name = "player is touching box top side", first = true, complete = false},
[2] = {name = "player is touching box top side", mustcomplete = 1, id = 5, complete = false},
[3] = {name = "player is touching box top side", mustcomplete = {1, 2}, id = 9, complete = false},
complete = false,
counter = 0
},
["test barrel weight limit integrity"] = { [1] = {name = "player is touching box top side", id = 187, complete = false},
[2] = {name = "player is touching box top side", id = 188, complete = false},
complete = false,
counter = 0
},
["test block with sides between two Ls"] = { [1] = {name = "player is touching box top side", id = 50, complete = false},
[2] = {name = "player is touching box left side", id = 50, complete = false},
[3] = {name = "player is touching box right side", id = 50, complete = false},
[4] = {name = "player is touching box bottom side", id = 50, complete = false},
complete = false,
mustcomplete = "test barrel weight limit integrity",
counter = 0
}
}
local RitualCompleted = {{} --[[ritual names go here]], {} --[[indexes go here]], {} --[[Timers go here]]}
local COMPLETE = function( f_ritual, f_index )
if #RitualCompleted[1] > 1 then
for i = 1, #RitualCompleted[1] do
if RitualCompleted[1][i] == nil then
RitualCompleted[1][i] = f_ritual
RitualCompleted[2][i] = f_index
RitualCompleted[3][i] = love.timer.getTime()
break
end
end
else
RitualCompleted[1][#RitualCompleted[1] + 1] = f_ritual
RitualCompleted[2][#RitualCompleted[2] + 1] = f_index
RitualCompleted[3][#RitualCompleted[3] + 1] = love.timer.getTime()
end
RitualList[f_ritual][f_index].complete = true
end
local CurrentRitual = "is gravity still functioning?"
Container.main = {popuptime = 1.5, listeners = RitualList, COMPLETE = COMPLETE, currentritual = CurrentRitual}
Container.run = function( f_dt, f_world )
local rituals = Container.main
local speciallist = {
["first"] = function( f_ritual, f_index )
if f_world.logfirsts[RitualList[f_ritual][f_index].event] then
return true
end
end
}
for i = 1, #RitualCompleted[1] do
if RitualCompleted[3][i] then
if love.timer.getTime() >= RitualCompleted[3][i] + rituals.popuptime then
RitualCompleted[1][i] = nil
RitualCompleted[2][i] = nil
RitualCompleted[3][i] = nil
end
end
end
end
Container.draw = function( f_world, f_camera )
local ritual = Container.main
for i = 1, #RitualCompleted[1] do
if RitualCompleted[3][i] then
love.graphics.setColor( 55, 255, 55, 255 - (200 * ((love.timer.getTime() - RitualCompleted[3][i]) / f_world.rituals.popuptime)) )
love.graphics.print( "test " .. RitualList[ritual.currentritual].counter .. " passed", (f_world.player.x - f_camera.x) - (string.len( "test " .. RitualList[ritual.currentritual].counter .. " passed" ) * 2), ((f_world.player.y - f_camera.y) - 20) + (i * 20) )
end
end
love.graphics.setColor( 55, 255, 55, 255)
love.graphics.print( "Diagnostic: " .. ritual.currentritual .. " passed(" .. RitualList[ritual.currentritual].counter .. ")", (f_world.player.x - f_camera.x) - (string.len( "Diagnostic: " .. ritual.currentritual .. " passed(" .. RitualList[ritual.currentritual].counter .. ")") * 2), ((f_world.player.y - f_camera.y) - 20) )
love.graphics.setColor( 255, 255, 255, 255 )
end
return Container
| 39.125
| 328
| 0.658147
|
06e4b81fd7614fe2fdc62827698b6fb720e62e6f
| 72
|
py
|
Python
|
{{cookiecutter.dist_name}}/{{cookiecutter.package_name}}/__init__.py
|
frankie567/cookiecutter-hipster-pypackage
|
501d358e318c4ea8c3e569552f541709ebb3e8cb
|
[
"MIT"
] | 5
|
2020-06-08T01:41:52.000Z
|
2022-02-04T21:29:33.000Z
|
{{cookiecutter.dist_name}}/{{cookiecutter.package_name}}/__init__.py
|
frankie567/cookiecutter-hipster-pypackage
|
501d358e318c4ea8c3e569552f541709ebb3e8cb
|
[
"MIT"
] | null | null | null |
{{cookiecutter.dist_name}}/{{cookiecutter.package_name}}/__init__.py
|
frankie567/cookiecutter-hipster-pypackage
|
501d358e318c4ea8c3e569552f541709ebb3e8cb
|
[
"MIT"
] | 2
|
2020-05-15T16:39:30.000Z
|
2021-05-16T03:28:53.000Z
|
"""{{cookiecutter.project_short_description}}"""
__version__ = "0.0.0"
| 18
| 48
| 0.708333
|
b303b9aae279d8faef9be0e0c56f469920b4f2d1
| 16,073
|
sql
|
SQL
|
conf/evolutions/default/1.sql
|
davidallysson/simea
|
5890ac796e3e103f1c375c3010ccd0fea002777a
|
[
"Apache-2.0"
] | null | null | null |
conf/evolutions/default/1.sql
|
davidallysson/simea
|
5890ac796e3e103f1c375c3010ccd0fea002777a
|
[
"Apache-2.0"
] | null | null | null |
conf/evolutions/default/1.sql
|
davidallysson/simea
|
5890ac796e3e103f1c375c3010ccd0fea002777a
|
[
"Apache-2.0"
] | 1
|
2019-10-24T22:36:41.000Z
|
2019-10-24T22:36:41.000Z
|
# --- Created by Ebean DDL
# To stop Ebean DDL generation, remove this comment and start using Evolutions
# --- !Ups
create table answer (
id bigserial not null,
answer varchar(255),
valid boolean,
ordem integer,
pontos integer,
question_id bigint,
constraint pk_answer primary key (id)
);
create table campus (
id bigserial not null,
nome varchar(255),
constraint pk_campus primary key (id)
);
create table curso (
id bigserial not null,
nome varchar(255),
campus_id bigint,
diretoria_id bigint,
constraint pk_curso primary key (id)
);
create table diretoria (
id bigserial not null,
nome varchar(255),
campus_id bigint,
constraint pk_diretoria primary key (id)
);
create table eixo (
id bigserial not null,
nome varchar(255),
constraint pk_eixo primary key (id)
);
create table pontuacao_evasao (
id bigserial not null,
pontuacao_obtida integer,
data_cadastro date,
usuario_id bigint,
resposta_id bigint,
pergunta_id bigint,
eixo_id bigint,
quiz_id bigint,
constraint pk_pontuacao_evasao primary key (id)
);
create table questao (
id bigserial not null,
pergunta varchar(255),
usuario_id bigint,
eixo_id bigint,
quiz_id bigint,
constraint pk_questao primary key (id)
);
create table quiz (
id bigserial not null,
name varchar(255),
active boolean,
pop_counter integer,
difficulty integer,
start timestamp,
fim timestamp,
creator_id bigint,
category varchar(255),
constraint pk_quiz primary key (id)
);
create table resultado (
id bigserial not null,
valor integer,
opcoes_escolhidas varchar(255),
valor_eixo_individual integer,
valor_eixo_familiar integer,
valor_eixo_intra_escolar integer,
valor_eixo_carreira_profissional integer,
valor_eixo_area_formacao integer,
valor_eixo_institucional integer,
valor_faixa_etaria15a19 integer,
valor_faixa_etaria20a24 integer,
valor_faixa_etaria25a29 integer,
valor_faixa_etaria30a34 integer,
valor_faixa_etaria35a39 integer,
valor_faixa_etaria40ou_mais integer,
solteiro integer,
casado integer,
divorciado integer,
separado integer,
viuvo integer,
branca integer,
preta integer,
parda integer,
amarela integer,
indigina integer,
sem_declaracao integer,
ate1salario integer,
ate3salarios integer,
ate6salarios integer,
ate9salarios integer,
ate10ou_mais integer,
masculino integer,
feminino integer,
valor_compara integer,
opcoes_escolhidas_compara varchar(255),
valor_eixo_individual_compara integer,
valor_eixo_familiar_compara integer,
valor_eixo_intra_escolar_compara integer,
valor_eixo_carreira_profissional_compara integer,
valor_eixo_area_formacao_compara integer,
valor_eixo_institucional_compara integer,
valor_faixa_etaria15a19compara integer,
valor_faixa_etaria20a24compara integer,
valor_faixa_etaria25a29compara integer,
valor_faixa_etaria30a34compara integer,
valor_faixa_etaria35a39compara integer,
valor_faixa_etaria40ou_mais_compara integer,
solteiro_compara integer,
casado_compara integer,
divorciado_compara integer,
separado_compara integer,
viuvo_compara integer,
branca_compara integer,
preta_compara integer,
parda_compara integer,
amarela_compara integer,
indigina_compara integer,
sem_declaracao_compara integer,
ate1salario_compara integer,
ate3salarios_compara integer,
ate6salarios_compara integer,
ate9salarios_compara integer,
ate10ou_mais_compara integer,
masculino_compara integer,
feminino_compara integer,
constraint pk_resultado primary key (id)
);
create table solution (
id bigserial not null,
first_time boolean,
first_question_show boolean,
done boolean,
quiz_answer_time bigint,
best_time bigint,
points integer,
current_question integer,
start timestamp,
codigo_habilitacao_nerd integer,
quiz_participant_id bigint,
quiz_id bigint,
paused boolean,
answered_correclty integer,
constraint pk_solution primary key (id)
);
create table solution_questao (
solution_id bigint not null,
questao_id bigint not null,
constraint pk_solution_questao primary key (solution_id,questao_id)
);
create table turma (
id bigserial not null,
nome varchar(255),
campus_id bigint,
diretoria_id bigint,
curso_id bigint,
constraint pk_turma primary key (id)
);
create table usuario (
id bigserial not null,
nome varchar(255),
matricula varchar(255),
email varchar(255),
password varchar(255),
is_administrador boolean,
is_supervisor boolean,
chave_redefinicao_senha varchar(255),
ativo boolean,
entrou varchar(255),
masculino boolean,
feminino boolean,
faixa_etaria integer,
estado_civil integer,
raca integer,
renda integer,
telefone varchar(255),
campus_id bigint,
diretoria_id bigint,
curso_id bigint,
turma_id bigint,
constraint uq_usuario_email unique (email),
constraint pk_usuario primary key (id)
);
alter table answer add constraint fk_answer_question_id foreign key (question_id) references questao (id) on delete restrict on update restrict;
create index ix_answer_question_id on answer (question_id);
alter table curso add constraint fk_curso_campus_id foreign key (campus_id) references campus (id) on delete restrict on update restrict;
create index ix_curso_campus_id on curso (campus_id);
alter table curso add constraint fk_curso_diretoria_id foreign key (diretoria_id) references diretoria (id) on delete restrict on update restrict;
create index ix_curso_diretoria_id on curso (diretoria_id);
alter table diretoria add constraint fk_diretoria_campus_id foreign key (campus_id) references campus (id) on delete restrict on update restrict;
create index ix_diretoria_campus_id on diretoria (campus_id);
alter table pontuacao_evasao add constraint fk_pontuacao_evasao_usuario_id foreign key (usuario_id) references usuario (id) on delete restrict on update restrict;
create index ix_pontuacao_evasao_usuario_id on pontuacao_evasao (usuario_id);
alter table pontuacao_evasao add constraint fk_pontuacao_evasao_resposta_id foreign key (resposta_id) references answer (id) on delete restrict on update restrict;
create index ix_pontuacao_evasao_resposta_id on pontuacao_evasao (resposta_id);
alter table pontuacao_evasao add constraint fk_pontuacao_evasao_pergunta_id foreign key (pergunta_id) references questao (id) on delete restrict on update restrict;
create index ix_pontuacao_evasao_pergunta_id on pontuacao_evasao (pergunta_id);
alter table pontuacao_evasao add constraint fk_pontuacao_evasao_eixo_id foreign key (eixo_id) references eixo (id) on delete restrict on update restrict;
create index ix_pontuacao_evasao_eixo_id on pontuacao_evasao (eixo_id);
alter table pontuacao_evasao add constraint fk_pontuacao_evasao_quiz_id foreign key (quiz_id) references quiz (id) on delete restrict on update restrict;
create index ix_pontuacao_evasao_quiz_id on pontuacao_evasao (quiz_id);
alter table questao add constraint fk_questao_usuario_id foreign key (usuario_id) references usuario (id) on delete restrict on update restrict;
create index ix_questao_usuario_id on questao (usuario_id);
alter table questao add constraint fk_questao_eixo_id foreign key (eixo_id) references eixo (id) on delete restrict on update restrict;
create index ix_questao_eixo_id on questao (eixo_id);
alter table questao add constraint fk_questao_quiz_id foreign key (quiz_id) references quiz (id) on delete restrict on update restrict;
create index ix_questao_quiz_id on questao (quiz_id);
alter table quiz add constraint fk_quiz_creator_id foreign key (creator_id) references usuario (id) on delete restrict on update restrict;
create index ix_quiz_creator_id on quiz (creator_id);
alter table solution add constraint fk_solution_quiz_participant_id foreign key (quiz_participant_id) references usuario (id) on delete restrict on update restrict;
create index ix_solution_quiz_participant_id on solution (quiz_participant_id);
alter table solution add constraint fk_solution_quiz_id foreign key (quiz_id) references quiz (id) on delete restrict on update restrict;
create index ix_solution_quiz_id on solution (quiz_id);
alter table solution_questao add constraint fk_solution_questao_solution foreign key (solution_id) references solution (id) on delete restrict on update restrict;
create index ix_solution_questao_solution on solution_questao (solution_id);
alter table solution_questao add constraint fk_solution_questao_questao foreign key (questao_id) references questao (id) on delete restrict on update restrict;
create index ix_solution_questao_questao on solution_questao (questao_id);
alter table turma add constraint fk_turma_campus_id foreign key (campus_id) references campus (id) on delete restrict on update restrict;
create index ix_turma_campus_id on turma (campus_id);
alter table turma add constraint fk_turma_diretoria_id foreign key (diretoria_id) references diretoria (id) on delete restrict on update restrict;
create index ix_turma_diretoria_id on turma (diretoria_id);
alter table turma add constraint fk_turma_curso_id foreign key (curso_id) references curso (id) on delete restrict on update restrict;
create index ix_turma_curso_id on turma (curso_id);
alter table usuario add constraint fk_usuario_campus_id foreign key (campus_id) references campus (id) on delete restrict on update restrict;
create index ix_usuario_campus_id on usuario (campus_id);
alter table usuario add constraint fk_usuario_diretoria_id foreign key (diretoria_id) references diretoria (id) on delete restrict on update restrict;
create index ix_usuario_diretoria_id on usuario (diretoria_id);
alter table usuario add constraint fk_usuario_curso_id foreign key (curso_id) references curso (id) on delete restrict on update restrict;
create index ix_usuario_curso_id on usuario (curso_id);
alter table usuario add constraint fk_usuario_turma_id foreign key (turma_id) references turma (id) on delete restrict on update restrict;
create index ix_usuario_turma_id on usuario (turma_id);
# --- !Downs
alter table if exists answer drop constraint if exists fk_answer_question_id;
drop index if exists ix_answer_question_id;
alter table if exists curso drop constraint if exists fk_curso_campus_id;
drop index if exists ix_curso_campus_id;
alter table if exists curso drop constraint if exists fk_curso_diretoria_id;
drop index if exists ix_curso_diretoria_id;
alter table if exists diretoria drop constraint if exists fk_diretoria_campus_id;
drop index if exists ix_diretoria_campus_id;
alter table if exists pontuacao_evasao drop constraint if exists fk_pontuacao_evasao_usuario_id;
drop index if exists ix_pontuacao_evasao_usuario_id;
alter table if exists pontuacao_evasao drop constraint if exists fk_pontuacao_evasao_resposta_id;
drop index if exists ix_pontuacao_evasao_resposta_id;
alter table if exists pontuacao_evasao drop constraint if exists fk_pontuacao_evasao_pergunta_id;
drop index if exists ix_pontuacao_evasao_pergunta_id;
alter table if exists pontuacao_evasao drop constraint if exists fk_pontuacao_evasao_eixo_id;
drop index if exists ix_pontuacao_evasao_eixo_id;
alter table if exists pontuacao_evasao drop constraint if exists fk_pontuacao_evasao_quiz_id;
drop index if exists ix_pontuacao_evasao_quiz_id;
alter table if exists questao drop constraint if exists fk_questao_usuario_id;
drop index if exists ix_questao_usuario_id;
alter table if exists questao drop constraint if exists fk_questao_eixo_id;
drop index if exists ix_questao_eixo_id;
alter table if exists questao drop constraint if exists fk_questao_quiz_id;
drop index if exists ix_questao_quiz_id;
alter table if exists quiz drop constraint if exists fk_quiz_creator_id;
drop index if exists ix_quiz_creator_id;
alter table if exists solution drop constraint if exists fk_solution_quiz_participant_id;
drop index if exists ix_solution_quiz_participant_id;
alter table if exists solution drop constraint if exists fk_solution_quiz_id;
drop index if exists ix_solution_quiz_id;
alter table if exists solution_questao drop constraint if exists fk_solution_questao_solution;
drop index if exists ix_solution_questao_solution;
alter table if exists solution_questao drop constraint if exists fk_solution_questao_questao;
drop index if exists ix_solution_questao_questao;
alter table if exists turma drop constraint if exists fk_turma_campus_id;
drop index if exists ix_turma_campus_id;
alter table if exists turma drop constraint if exists fk_turma_diretoria_id;
drop index if exists ix_turma_diretoria_id;
alter table if exists turma drop constraint if exists fk_turma_curso_id;
drop index if exists ix_turma_curso_id;
alter table if exists usuario drop constraint if exists fk_usuario_campus_id;
drop index if exists ix_usuario_campus_id;
alter table if exists usuario drop constraint if exists fk_usuario_diretoria_id;
drop index if exists ix_usuario_diretoria_id;
alter table if exists usuario drop constraint if exists fk_usuario_curso_id;
drop index if exists ix_usuario_curso_id;
alter table if exists usuario drop constraint if exists fk_usuario_turma_id;
drop index if exists ix_usuario_turma_id;
drop table if exists answer cascade;
drop table if exists campus cascade;
drop table if exists curso cascade;
drop table if exists diretoria cascade;
drop table if exists eixo cascade;
drop table if exists pontuacao_evasao cascade;
drop table if exists questao cascade;
drop table if exists quiz cascade;
drop table if exists resultado cascade;
drop table if exists solution cascade;
drop table if exists solution_questao cascade;
drop table if exists turma cascade;
drop table if exists usuario cascade;
| 42.521164
| 164
| 0.699309
|
f5ad661aba7ec491e9193a8c78f467b63ff456c4
| 2,037
|
css
|
CSS
|
public/app/style/style.css
|
dmatoscit/Node-Red-bluehack-App
|
f19b42a713b7414ec37e367124d287a93efdf7f5
|
[
"Apache-2.0"
] | null | null | null |
public/app/style/style.css
|
dmatoscit/Node-Red-bluehack-App
|
f19b42a713b7414ec37e367124d287a93efdf7f5
|
[
"Apache-2.0"
] | null | null | null |
public/app/style/style.css
|
dmatoscit/Node-Red-bluehack-App
|
f19b42a713b7414ec37e367124d287a93efdf7f5
|
[
"Apache-2.0"
] | null | null | null |
body {
margin-top: 50px;
background: #e9e9e9;
}
.div-style {
background: #fff;
padding: 25px;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
-webkit-box-shadow: 0 0 25px rgba(0, 0, 0, 0.04);
-moz-box-shadow: 0 0 25px rgba(0, 0, 0, 0.04);
box-shadow: 0 0 25px rgba(0, 0, 0, 0.04);
margin-bottom: 20px;
}
.topbar-blue {
/* background: #1caff6; */
background: #000;
height: auto;
min-height: 70px;
}
.list-discussion-item:first-child {
border-top: none;
}
.list-discussion-item {
border-top: 2px solid #f3f3f3;
padding: 20px;
}
.list-discussion-title {
font-size: 19px;
padding: 10px;
}
.list-discussion-info {
font-size: 12px;
}
.img-circle {
border-radius: 50%;
}
.avatar-discussion {
width: 80px;
height: 80px;
border: 4px solid #607bca;
}
ul.tag-highlight {
color: #0275d8;
font-weight: bold;
}
ul.tag-highlight li {
list-style:none;
display: inline;
margin-left: 40px;
}
ul.tag-highlight li:nth-child(1) {
font-size: 24px;
}
ul.tag-highlight li:nth-child(2) {
font-size: 30px;
}
ul.tag-highlight li:nth-child(3) {
font-size: 18px;
}
ul.tag-highlight li:last-child {
font-size: 30px;
}
.fa {
margin-right: 10px;
}
.list-group .small {
font-size: 12px;
}
.inactive {
color: #c8c8c8 !important;
}
.instagram-color {
color: #6A453B;
}
.spotify-color {
color: #50BA5E;
}
h3.idea {
color: #8c8c00;
}
@media screen and (min-width: 960px) {
.navbar {
padding-left: 100px;
}
.profile-login {
margin-right: 110px;
}
}
@media (min-width: 992px) {
.navbar-toggleable-md .navbar-nav {
padding-top: 10px;
}
}
.profile-login a.user-name {
color: #fff;
padding-left: 10px;
}
ul.dropdown-menu li {
padding: 6px;
}
ul.dropdown-menu {
background: #000;
}
ul.dropdown-menu a {
color: #fff;
}
.list-discussion-title a .name {
font-size: 14px;
color: #000
}
.img-user-profile {
width: 50px;
}
| 14.244755
| 53
| 0.595484
|
ae78aa1a694abefdf14204d6704ab02a289c6cf2
| 435
|
cs
|
C#
|
Solid/Solid/SolidPrinciples/Principle.cs
|
jacobduijzer/SolidPrinciplesApp
|
f8e52aedcd57b9a3fd08150f4d284df72cd448ba
|
[
"MIT"
] | null | null | null |
Solid/Solid/SolidPrinciples/Principle.cs
|
jacobduijzer/SolidPrinciplesApp
|
f8e52aedcd57b9a3fd08150f4d284df72cd448ba
|
[
"MIT"
] | null | null | null |
Solid/Solid/SolidPrinciples/Principle.cs
|
jacobduijzer/SolidPrinciplesApp
|
f8e52aedcd57b9a3fd08150f4d284df72cd448ba
|
[
"MIT"
] | null | null | null |
using System.Collections.Generic;
namespace Solid.Models
{
public class Principle
{
public int Id { get; set; }
public string Name { get; set; }
public string ShortDescription { get; set; }
public string Description { get; set; }
public string Recognize { get; set; }
public List<string> GoodExamples { get; set; }
public List<string> BadExamples { get; set; }
}
}
| 27.1875
| 54
| 0.609195
|
57ed444f659de1320cbbb15d66959041ba636fb8
| 5,154
|
php
|
PHP
|
resources/views/goals/goals.blade.php
|
harri-codes/Focus
|
2f7f1efcea97eca1a3fa059d2fdfd5779c3c87e1
|
[
"MIT"
] | null | null | null |
resources/views/goals/goals.blade.php
|
harri-codes/Focus
|
2f7f1efcea97eca1a3fa059d2fdfd5779c3c87e1
|
[
"MIT"
] | null | null | null |
resources/views/goals/goals.blade.php
|
harri-codes/Focus
|
2f7f1efcea97eca1a3fa059d2fdfd5779c3c87e1
|
[
"MIT"
] | null | null | null |
@extends('layouts.primary')
@section('content')
<div class="page-header mb-4 border-radius-xl">
<span class="mask bg-gradient-dark"></span>
<div class="container">
<div class="row">
<p class="col-lg-6 my-auto">
<h5 class="text-white fadeIn2 fadeInBottom mt-4">
{{__('Realise your Dreams')}}
</h5>
<p class="text-white opacity-8 fadeIn3 fadeInBottom">
{{__('You must form a clear and definite mental picture of what you want.')}}
</p>
<p class=" text-white opacity-8 fadeIn3 fadeInBottom">
{{__('— The science of getting rich')}}
</p>
</div>
<a href="/set-goal" type="button" class="btn btn-outline-light">
{{__('Set your goals')}}
</a>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="card mb-4">
<div class="card-header pb-0">
<h6>{{__('Goals')}}</h6>
</div>
<div class="card-body px-0 pt-0 pb-2">
<div class="table-responsive p-0">
<table class="table align-items-center mb-0">
<thead>
<tr>
<th class="text-uppercase text-secondary text-xxs font-weight-bolder opacity-7">{{__('Name')}}</th>
<th class="text-uppercase text-secondary text-xxs font-weight-bolder opacity-7 ps-2">
{{__('Estimate Date to finish')}}
</th>
<th class="text-center float-end text-uppercase text-secondary text-xxs font-weight-bolder opacity-7">
{{__('Completed?')}}
</th>
<th class="text-secondary opacity-7"></th>
</tr>
</thead>
<tbody>
@foreach($goals as $goal)
<tr>
<td>
<div class="d-flex px-2 py-1">
<div class="d-flex flex-column justify-content-center">
<h6 class="mb-0 text-sm">{{$goal->name}}</h6>
</div>
</div>
</td>
<td>
<span class="text-xs font-weight-bold">{{$goal->date}}</span>
</td>
<td class="align-right text-sm">
<div class="form-check float-end ">
<input class="form-check-input goal_checkbox" type="checkbox"
data-id="{{$goal->id}}"
@if($goal->completed) checked @endif
>
</div>
</td>
<td class="">
<div class="ms-auto text-end">
<a class="btn btn-link text-danger text-gradient px-3 mb-0" href="/delete/goal/{{$goal->id}}"><i class="far fa-trash-alt me-2"></i>{{__('Delete')}}</a>
<a class="btn btn-link text-dark px-3 mb-0" href="/set-goal?id={{$goal->id}}"><i class="fas fa-pencil-alt text-dark me-2" aria-hidden="true"></i>{{__('Edit')}}</a>
</div>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
@endsection
@section('script')
<script>
"use strict"
$(function () {
$('.goal_checkbox').on('change',function () {
let that = $(this);
if(this.checked)
{
$.post('/goals/change-status',{
id: that.attr('data-id'),
status: 'Completed',
_token: '{{csrf_token()}}',
});
}
else{
$.post('/goals/change-status',{
id: that.attr('data-id'),
status: 'Not Completed',
_token: '{{csrf_token()}}',
});
}
});
});
</script>
@endsection
| 33.467532
| 207
| 0.337602
|
81abdfa70436b381e89780c12ba28cb9f061f264
| 393,338
|
rs
|
Rust
|
src/proto/messages.rs
|
getgauge-contrib/gauge-rs
|
4ae3eed5cb6f085a2b9b4535a188a29ee4549e00
|
[
"MIT"
] | 3
|
2016-01-14T12:23:01.000Z
|
2016-02-08T12:06:24.000Z
|
src/proto/messages.rs
|
kaustavdm/gauge-rs
|
4ae3eed5cb6f085a2b9b4535a188a29ee4549e00
|
[
"MIT"
] | null | null | null |
src/proto/messages.rs
|
kaustavdm/gauge-rs
|
4ae3eed5cb6f085a2b9b4535a188a29ee4549e00
|
[
"MIT"
] | 1
|
2017-08-11T12:52:33.000Z
|
2017-08-11T12:52:33.000Z
|
// This file is generated. Do not edit
// @generated
// https://github.com/Manishearth/rust-clippy/issues/702
#![allow(unknown_lints)]
#![allow(clippy)]
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(box_pointers)]
#![allow(dead_code)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(non_upper_case_globals)]
#![allow(trivial_casts)]
#![allow(unsafe_code)]
#![allow(unused_imports)]
#![allow(unused_results)]
use protobuf::Message as Message_imported_for_functions;
use protobuf::ProtobufEnum as ProtobufEnum_imported_for_functions;
#[derive(Clone,Default)]
pub struct KillProcessRequest {
// special fields
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::std::cell::Cell<u32>,
}
// see codegen.rs for the explanation why impl Sync explicitly
unsafe impl ::std::marker::Sync for KillProcessRequest {}
impl KillProcessRequest {
pub fn new() -> KillProcessRequest {
::std::default::Default::default()
}
pub fn default_instance() -> &'static KillProcessRequest {
static mut instance: ::protobuf::lazy::Lazy<KillProcessRequest> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const KillProcessRequest,
};
unsafe {
instance.get(|| {
KillProcessRequest {
unknown_fields: ::protobuf::UnknownFields::new(),
cached_size: ::std::cell::Cell::new(0),
}
})
}
}
}
impl ::protobuf::Message for KillProcessRequest {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
while !try!(is.eof()) {
let (field_number, wire_type) = try!(is.read_tag_unpack());
match field_number {
_ => {
try!(::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields()));
},
};
}
::std::result::Result::Ok(())
}
// Compute sizes of nested messages
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
try!(os.write_unknown_fields(self.get_unknown_fields()));
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn type_id(&self) -> ::std::any::TypeId {
::std::any::TypeId::of::<KillProcessRequest>()
}
fn as_any(&self) -> &::std::any::Any {
self as &::std::any::Any
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
::protobuf::MessageStatic::descriptor_static(None::<Self>)
}
}
impl ::protobuf::MessageStatic for KillProcessRequest {
fn new() -> KillProcessRequest {
KillProcessRequest::new()
}
fn descriptor_static(_: ::std::option::Option<KillProcessRequest>) -> &'static ::protobuf::reflect::MessageDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
};
unsafe {
descriptor.get(|| {
let fields = ::std::vec::Vec::new();
::protobuf::reflect::MessageDescriptor::new::<KillProcessRequest>(
"KillProcessRequest",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for KillProcessRequest {
fn clear(&mut self) {
self.unknown_fields.clear();
}
}
impl ::std::cmp::PartialEq for KillProcessRequest {
fn eq(&self, other: &KillProcessRequest) -> bool {
self.unknown_fields == other.unknown_fields
}
}
impl ::std::fmt::Debug for KillProcessRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
#[derive(Clone,Default)]
pub struct ExecutionStatusResponse {
// message fields
executionResult: ::protobuf::SingularPtrField<super::spec::ProtoExecutionResult>,
// special fields
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::std::cell::Cell<u32>,
}
// see codegen.rs for the explanation why impl Sync explicitly
unsafe impl ::std::marker::Sync for ExecutionStatusResponse {}
impl ExecutionStatusResponse {
pub fn new() -> ExecutionStatusResponse {
::std::default::Default::default()
}
pub fn default_instance() -> &'static ExecutionStatusResponse {
static mut instance: ::protobuf::lazy::Lazy<ExecutionStatusResponse> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ExecutionStatusResponse,
};
unsafe {
instance.get(|| {
ExecutionStatusResponse {
executionResult: ::protobuf::SingularPtrField::none(),
unknown_fields: ::protobuf::UnknownFields::new(),
cached_size: ::std::cell::Cell::new(0),
}
})
}
}
// required .gauge.messages.ProtoExecutionResult executionResult = 1;
pub fn clear_executionResult(&mut self) {
self.executionResult.clear();
}
pub fn has_executionResult(&self) -> bool {
self.executionResult.is_some()
}
// Param is passed by value, moved
pub fn set_executionResult(&mut self, v: super::spec::ProtoExecutionResult) {
self.executionResult = ::protobuf::SingularPtrField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_executionResult(&mut self) -> &mut super::spec::ProtoExecutionResult {
if self.executionResult.is_none() {
self.executionResult.set_default();
};
self.executionResult.as_mut().unwrap()
}
// Take field
pub fn take_executionResult(&mut self) -> super::spec::ProtoExecutionResult {
self.executionResult.take().unwrap_or_else(|| super::spec::ProtoExecutionResult::new())
}
pub fn get_executionResult(&self) -> &super::spec::ProtoExecutionResult {
self.executionResult.as_ref().unwrap_or_else(|| super::spec::ProtoExecutionResult::default_instance())
}
}
impl ::protobuf::Message for ExecutionStatusResponse {
fn is_initialized(&self) -> bool {
if self.executionResult.is_none() {
return false;
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
while !try!(is.eof()) {
let (field_number, wire_type) = try!(is.read_tag_unpack());
match field_number {
1 => {
try!(::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.executionResult));
},
_ => {
try!(::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields()));
},
};
}
::std::result::Result::Ok(())
}
// Compute sizes of nested messages
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
for value in &self.executionResult {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
if let Some(v) = self.executionResult.as_ref() {
try!(os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited));
try!(os.write_raw_varint32(v.get_cached_size()));
try!(v.write_to_with_cached_sizes(os));
};
try!(os.write_unknown_fields(self.get_unknown_fields()));
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn type_id(&self) -> ::std::any::TypeId {
::std::any::TypeId::of::<ExecutionStatusResponse>()
}
fn as_any(&self) -> &::std::any::Any {
self as &::std::any::Any
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
::protobuf::MessageStatic::descriptor_static(None::<Self>)
}
}
impl ::protobuf::MessageStatic for ExecutionStatusResponse {
fn new() -> ExecutionStatusResponse {
ExecutionStatusResponse::new()
}
fn descriptor_static(_: ::std::option::Option<ExecutionStatusResponse>) -> &'static ::protobuf::reflect::MessageDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
};
unsafe {
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor(
"executionResult",
ExecutionStatusResponse::has_executionResult,
ExecutionStatusResponse::get_executionResult,
));
::protobuf::reflect::MessageDescriptor::new::<ExecutionStatusResponse>(
"ExecutionStatusResponse",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for ExecutionStatusResponse {
fn clear(&mut self) {
self.clear_executionResult();
self.unknown_fields.clear();
}
}
impl ::std::cmp::PartialEq for ExecutionStatusResponse {
fn eq(&self, other: &ExecutionStatusResponse) -> bool {
self.executionResult == other.executionResult &&
self.unknown_fields == other.unknown_fields
}
}
impl ::std::fmt::Debug for ExecutionStatusResponse {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
#[derive(Clone,Default)]
pub struct ExecutionStartingRequest {
// message fields
currentExecutionInfo: ::protobuf::SingularPtrField<ExecutionInfo>,
// special fields
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::std::cell::Cell<u32>,
}
// see codegen.rs for the explanation why impl Sync explicitly
unsafe impl ::std::marker::Sync for ExecutionStartingRequest {}
impl ExecutionStartingRequest {
pub fn new() -> ExecutionStartingRequest {
::std::default::Default::default()
}
pub fn default_instance() -> &'static ExecutionStartingRequest {
static mut instance: ::protobuf::lazy::Lazy<ExecutionStartingRequest> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ExecutionStartingRequest,
};
unsafe {
instance.get(|| {
ExecutionStartingRequest {
currentExecutionInfo: ::protobuf::SingularPtrField::none(),
unknown_fields: ::protobuf::UnknownFields::new(),
cached_size: ::std::cell::Cell::new(0),
}
})
}
}
// optional .gauge.messages.ExecutionInfo currentExecutionInfo = 1;
pub fn clear_currentExecutionInfo(&mut self) {
self.currentExecutionInfo.clear();
}
pub fn has_currentExecutionInfo(&self) -> bool {
self.currentExecutionInfo.is_some()
}
// Param is passed by value, moved
pub fn set_currentExecutionInfo(&mut self, v: ExecutionInfo) {
self.currentExecutionInfo = ::protobuf::SingularPtrField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_currentExecutionInfo(&mut self) -> &mut ExecutionInfo {
if self.currentExecutionInfo.is_none() {
self.currentExecutionInfo.set_default();
};
self.currentExecutionInfo.as_mut().unwrap()
}
// Take field
pub fn take_currentExecutionInfo(&mut self) -> ExecutionInfo {
self.currentExecutionInfo.take().unwrap_or_else(|| ExecutionInfo::new())
}
pub fn get_currentExecutionInfo(&self) -> &ExecutionInfo {
self.currentExecutionInfo.as_ref().unwrap_or_else(|| ExecutionInfo::default_instance())
}
}
impl ::protobuf::Message for ExecutionStartingRequest {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
while !try!(is.eof()) {
let (field_number, wire_type) = try!(is.read_tag_unpack());
match field_number {
1 => {
try!(::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.currentExecutionInfo));
},
_ => {
try!(::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields()));
},
};
}
::std::result::Result::Ok(())
}
// Compute sizes of nested messages
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
for value in &self.currentExecutionInfo {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
if let Some(v) = self.currentExecutionInfo.as_ref() {
try!(os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited));
try!(os.write_raw_varint32(v.get_cached_size()));
try!(v.write_to_with_cached_sizes(os));
};
try!(os.write_unknown_fields(self.get_unknown_fields()));
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn type_id(&self) -> ::std::any::TypeId {
::std::any::TypeId::of::<ExecutionStartingRequest>()
}
fn as_any(&self) -> &::std::any::Any {
self as &::std::any::Any
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
::protobuf::MessageStatic::descriptor_static(None::<Self>)
}
}
impl ::protobuf::MessageStatic for ExecutionStartingRequest {
fn new() -> ExecutionStartingRequest {
ExecutionStartingRequest::new()
}
fn descriptor_static(_: ::std::option::Option<ExecutionStartingRequest>) -> &'static ::protobuf::reflect::MessageDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
};
unsafe {
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor(
"currentExecutionInfo",
ExecutionStartingRequest::has_currentExecutionInfo,
ExecutionStartingRequest::get_currentExecutionInfo,
));
::protobuf::reflect::MessageDescriptor::new::<ExecutionStartingRequest>(
"ExecutionStartingRequest",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for ExecutionStartingRequest {
fn clear(&mut self) {
self.clear_currentExecutionInfo();
self.unknown_fields.clear();
}
}
impl ::std::cmp::PartialEq for ExecutionStartingRequest {
fn eq(&self, other: &ExecutionStartingRequest) -> bool {
self.currentExecutionInfo == other.currentExecutionInfo &&
self.unknown_fields == other.unknown_fields
}
}
impl ::std::fmt::Debug for ExecutionStartingRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
#[derive(Clone,Default)]
pub struct ExecutionEndingRequest {
// message fields
currentExecutionInfo: ::protobuf::SingularPtrField<ExecutionInfo>,
// special fields
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::std::cell::Cell<u32>,
}
// see codegen.rs for the explanation why impl Sync explicitly
unsafe impl ::std::marker::Sync for ExecutionEndingRequest {}
impl ExecutionEndingRequest {
pub fn new() -> ExecutionEndingRequest {
::std::default::Default::default()
}
pub fn default_instance() -> &'static ExecutionEndingRequest {
static mut instance: ::protobuf::lazy::Lazy<ExecutionEndingRequest> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ExecutionEndingRequest,
};
unsafe {
instance.get(|| {
ExecutionEndingRequest {
currentExecutionInfo: ::protobuf::SingularPtrField::none(),
unknown_fields: ::protobuf::UnknownFields::new(),
cached_size: ::std::cell::Cell::new(0),
}
})
}
}
// optional .gauge.messages.ExecutionInfo currentExecutionInfo = 1;
pub fn clear_currentExecutionInfo(&mut self) {
self.currentExecutionInfo.clear();
}
pub fn has_currentExecutionInfo(&self) -> bool {
self.currentExecutionInfo.is_some()
}
// Param is passed by value, moved
pub fn set_currentExecutionInfo(&mut self, v: ExecutionInfo) {
self.currentExecutionInfo = ::protobuf::SingularPtrField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_currentExecutionInfo(&mut self) -> &mut ExecutionInfo {
if self.currentExecutionInfo.is_none() {
self.currentExecutionInfo.set_default();
};
self.currentExecutionInfo.as_mut().unwrap()
}
// Take field
pub fn take_currentExecutionInfo(&mut self) -> ExecutionInfo {
self.currentExecutionInfo.take().unwrap_or_else(|| ExecutionInfo::new())
}
pub fn get_currentExecutionInfo(&self) -> &ExecutionInfo {
self.currentExecutionInfo.as_ref().unwrap_or_else(|| ExecutionInfo::default_instance())
}
}
impl ::protobuf::Message for ExecutionEndingRequest {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
while !try!(is.eof()) {
let (field_number, wire_type) = try!(is.read_tag_unpack());
match field_number {
1 => {
try!(::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.currentExecutionInfo));
},
_ => {
try!(::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields()));
},
};
}
::std::result::Result::Ok(())
}
// Compute sizes of nested messages
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
for value in &self.currentExecutionInfo {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
if let Some(v) = self.currentExecutionInfo.as_ref() {
try!(os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited));
try!(os.write_raw_varint32(v.get_cached_size()));
try!(v.write_to_with_cached_sizes(os));
};
try!(os.write_unknown_fields(self.get_unknown_fields()));
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn type_id(&self) -> ::std::any::TypeId {
::std::any::TypeId::of::<ExecutionEndingRequest>()
}
fn as_any(&self) -> &::std::any::Any {
self as &::std::any::Any
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
::protobuf::MessageStatic::descriptor_static(None::<Self>)
}
}
impl ::protobuf::MessageStatic for ExecutionEndingRequest {
fn new() -> ExecutionEndingRequest {
ExecutionEndingRequest::new()
}
fn descriptor_static(_: ::std::option::Option<ExecutionEndingRequest>) -> &'static ::protobuf::reflect::MessageDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
};
unsafe {
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor(
"currentExecutionInfo",
ExecutionEndingRequest::has_currentExecutionInfo,
ExecutionEndingRequest::get_currentExecutionInfo,
));
::protobuf::reflect::MessageDescriptor::new::<ExecutionEndingRequest>(
"ExecutionEndingRequest",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for ExecutionEndingRequest {
fn clear(&mut self) {
self.clear_currentExecutionInfo();
self.unknown_fields.clear();
}
}
impl ::std::cmp::PartialEq for ExecutionEndingRequest {
fn eq(&self, other: &ExecutionEndingRequest) -> bool {
self.currentExecutionInfo == other.currentExecutionInfo &&
self.unknown_fields == other.unknown_fields
}
}
impl ::std::fmt::Debug for ExecutionEndingRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
#[derive(Clone,Default)]
pub struct SpecExecutionStartingRequest {
// message fields
currentExecutionInfo: ::protobuf::SingularPtrField<ExecutionInfo>,
// special fields
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::std::cell::Cell<u32>,
}
// see codegen.rs for the explanation why impl Sync explicitly
unsafe impl ::std::marker::Sync for SpecExecutionStartingRequest {}
impl SpecExecutionStartingRequest {
pub fn new() -> SpecExecutionStartingRequest {
::std::default::Default::default()
}
pub fn default_instance() -> &'static SpecExecutionStartingRequest {
static mut instance: ::protobuf::lazy::Lazy<SpecExecutionStartingRequest> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const SpecExecutionStartingRequest,
};
unsafe {
instance.get(|| {
SpecExecutionStartingRequest {
currentExecutionInfo: ::protobuf::SingularPtrField::none(),
unknown_fields: ::protobuf::UnknownFields::new(),
cached_size: ::std::cell::Cell::new(0),
}
})
}
}
// optional .gauge.messages.ExecutionInfo currentExecutionInfo = 1;
pub fn clear_currentExecutionInfo(&mut self) {
self.currentExecutionInfo.clear();
}
pub fn has_currentExecutionInfo(&self) -> bool {
self.currentExecutionInfo.is_some()
}
// Param is passed by value, moved
pub fn set_currentExecutionInfo(&mut self, v: ExecutionInfo) {
self.currentExecutionInfo = ::protobuf::SingularPtrField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_currentExecutionInfo(&mut self) -> &mut ExecutionInfo {
if self.currentExecutionInfo.is_none() {
self.currentExecutionInfo.set_default();
};
self.currentExecutionInfo.as_mut().unwrap()
}
// Take field
pub fn take_currentExecutionInfo(&mut self) -> ExecutionInfo {
self.currentExecutionInfo.take().unwrap_or_else(|| ExecutionInfo::new())
}
pub fn get_currentExecutionInfo(&self) -> &ExecutionInfo {
self.currentExecutionInfo.as_ref().unwrap_or_else(|| ExecutionInfo::default_instance())
}
}
impl ::protobuf::Message for SpecExecutionStartingRequest {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
while !try!(is.eof()) {
let (field_number, wire_type) = try!(is.read_tag_unpack());
match field_number {
1 => {
try!(::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.currentExecutionInfo));
},
_ => {
try!(::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields()));
},
};
}
::std::result::Result::Ok(())
}
// Compute sizes of nested messages
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
for value in &self.currentExecutionInfo {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
if let Some(v) = self.currentExecutionInfo.as_ref() {
try!(os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited));
try!(os.write_raw_varint32(v.get_cached_size()));
try!(v.write_to_with_cached_sizes(os));
};
try!(os.write_unknown_fields(self.get_unknown_fields()));
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn type_id(&self) -> ::std::any::TypeId {
::std::any::TypeId::of::<SpecExecutionStartingRequest>()
}
fn as_any(&self) -> &::std::any::Any {
self as &::std::any::Any
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
::protobuf::MessageStatic::descriptor_static(None::<Self>)
}
}
impl ::protobuf::MessageStatic for SpecExecutionStartingRequest {
fn new() -> SpecExecutionStartingRequest {
SpecExecutionStartingRequest::new()
}
fn descriptor_static(_: ::std::option::Option<SpecExecutionStartingRequest>) -> &'static ::protobuf::reflect::MessageDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
};
unsafe {
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor(
"currentExecutionInfo",
SpecExecutionStartingRequest::has_currentExecutionInfo,
SpecExecutionStartingRequest::get_currentExecutionInfo,
));
::protobuf::reflect::MessageDescriptor::new::<SpecExecutionStartingRequest>(
"SpecExecutionStartingRequest",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for SpecExecutionStartingRequest {
fn clear(&mut self) {
self.clear_currentExecutionInfo();
self.unknown_fields.clear();
}
}
impl ::std::cmp::PartialEq for SpecExecutionStartingRequest {
fn eq(&self, other: &SpecExecutionStartingRequest) -> bool {
self.currentExecutionInfo == other.currentExecutionInfo &&
self.unknown_fields == other.unknown_fields
}
}
impl ::std::fmt::Debug for SpecExecutionStartingRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
#[derive(Clone,Default)]
pub struct SpecExecutionEndingRequest {
// message fields
currentExecutionInfo: ::protobuf::SingularPtrField<ExecutionInfo>,
// special fields
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::std::cell::Cell<u32>,
}
// see codegen.rs for the explanation why impl Sync explicitly
unsafe impl ::std::marker::Sync for SpecExecutionEndingRequest {}
impl SpecExecutionEndingRequest {
pub fn new() -> SpecExecutionEndingRequest {
::std::default::Default::default()
}
pub fn default_instance() -> &'static SpecExecutionEndingRequest {
static mut instance: ::protobuf::lazy::Lazy<SpecExecutionEndingRequest> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const SpecExecutionEndingRequest,
};
unsafe {
instance.get(|| {
SpecExecutionEndingRequest {
currentExecutionInfo: ::protobuf::SingularPtrField::none(),
unknown_fields: ::protobuf::UnknownFields::new(),
cached_size: ::std::cell::Cell::new(0),
}
})
}
}
// optional .gauge.messages.ExecutionInfo currentExecutionInfo = 1;
pub fn clear_currentExecutionInfo(&mut self) {
self.currentExecutionInfo.clear();
}
pub fn has_currentExecutionInfo(&self) -> bool {
self.currentExecutionInfo.is_some()
}
// Param is passed by value, moved
pub fn set_currentExecutionInfo(&mut self, v: ExecutionInfo) {
self.currentExecutionInfo = ::protobuf::SingularPtrField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_currentExecutionInfo(&mut self) -> &mut ExecutionInfo {
if self.currentExecutionInfo.is_none() {
self.currentExecutionInfo.set_default();
};
self.currentExecutionInfo.as_mut().unwrap()
}
// Take field
pub fn take_currentExecutionInfo(&mut self) -> ExecutionInfo {
self.currentExecutionInfo.take().unwrap_or_else(|| ExecutionInfo::new())
}
pub fn get_currentExecutionInfo(&self) -> &ExecutionInfo {
self.currentExecutionInfo.as_ref().unwrap_or_else(|| ExecutionInfo::default_instance())
}
}
impl ::protobuf::Message for SpecExecutionEndingRequest {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
while !try!(is.eof()) {
let (field_number, wire_type) = try!(is.read_tag_unpack());
match field_number {
1 => {
try!(::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.currentExecutionInfo));
},
_ => {
try!(::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields()));
},
};
}
::std::result::Result::Ok(())
}
// Compute sizes of nested messages
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
for value in &self.currentExecutionInfo {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
if let Some(v) = self.currentExecutionInfo.as_ref() {
try!(os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited));
try!(os.write_raw_varint32(v.get_cached_size()));
try!(v.write_to_with_cached_sizes(os));
};
try!(os.write_unknown_fields(self.get_unknown_fields()));
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn type_id(&self) -> ::std::any::TypeId {
::std::any::TypeId::of::<SpecExecutionEndingRequest>()
}
fn as_any(&self) -> &::std::any::Any {
self as &::std::any::Any
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
::protobuf::MessageStatic::descriptor_static(None::<Self>)
}
}
impl ::protobuf::MessageStatic for SpecExecutionEndingRequest {
fn new() -> SpecExecutionEndingRequest {
SpecExecutionEndingRequest::new()
}
fn descriptor_static(_: ::std::option::Option<SpecExecutionEndingRequest>) -> &'static ::protobuf::reflect::MessageDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
};
unsafe {
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor(
"currentExecutionInfo",
SpecExecutionEndingRequest::has_currentExecutionInfo,
SpecExecutionEndingRequest::get_currentExecutionInfo,
));
::protobuf::reflect::MessageDescriptor::new::<SpecExecutionEndingRequest>(
"SpecExecutionEndingRequest",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for SpecExecutionEndingRequest {
fn clear(&mut self) {
self.clear_currentExecutionInfo();
self.unknown_fields.clear();
}
}
impl ::std::cmp::PartialEq for SpecExecutionEndingRequest {
fn eq(&self, other: &SpecExecutionEndingRequest) -> bool {
self.currentExecutionInfo == other.currentExecutionInfo &&
self.unknown_fields == other.unknown_fields
}
}
impl ::std::fmt::Debug for SpecExecutionEndingRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
#[derive(Clone,Default)]
pub struct ScenarioExecutionStartingRequest {
// message fields
currentExecutionInfo: ::protobuf::SingularPtrField<ExecutionInfo>,
// special fields
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::std::cell::Cell<u32>,
}
// see codegen.rs for the explanation why impl Sync explicitly
unsafe impl ::std::marker::Sync for ScenarioExecutionStartingRequest {}
impl ScenarioExecutionStartingRequest {
pub fn new() -> ScenarioExecutionStartingRequest {
::std::default::Default::default()
}
pub fn default_instance() -> &'static ScenarioExecutionStartingRequest {
static mut instance: ::protobuf::lazy::Lazy<ScenarioExecutionStartingRequest> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ScenarioExecutionStartingRequest,
};
unsafe {
instance.get(|| {
ScenarioExecutionStartingRequest {
currentExecutionInfo: ::protobuf::SingularPtrField::none(),
unknown_fields: ::protobuf::UnknownFields::new(),
cached_size: ::std::cell::Cell::new(0),
}
})
}
}
// optional .gauge.messages.ExecutionInfo currentExecutionInfo = 1;
pub fn clear_currentExecutionInfo(&mut self) {
self.currentExecutionInfo.clear();
}
pub fn has_currentExecutionInfo(&self) -> bool {
self.currentExecutionInfo.is_some()
}
// Param is passed by value, moved
pub fn set_currentExecutionInfo(&mut self, v: ExecutionInfo) {
self.currentExecutionInfo = ::protobuf::SingularPtrField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_currentExecutionInfo(&mut self) -> &mut ExecutionInfo {
if self.currentExecutionInfo.is_none() {
self.currentExecutionInfo.set_default();
};
self.currentExecutionInfo.as_mut().unwrap()
}
// Take field
pub fn take_currentExecutionInfo(&mut self) -> ExecutionInfo {
self.currentExecutionInfo.take().unwrap_or_else(|| ExecutionInfo::new())
}
pub fn get_currentExecutionInfo(&self) -> &ExecutionInfo {
self.currentExecutionInfo.as_ref().unwrap_or_else(|| ExecutionInfo::default_instance())
}
}
impl ::protobuf::Message for ScenarioExecutionStartingRequest {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
while !try!(is.eof()) {
let (field_number, wire_type) = try!(is.read_tag_unpack());
match field_number {
1 => {
try!(::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.currentExecutionInfo));
},
_ => {
try!(::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields()));
},
};
}
::std::result::Result::Ok(())
}
// Compute sizes of nested messages
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
for value in &self.currentExecutionInfo {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
if let Some(v) = self.currentExecutionInfo.as_ref() {
try!(os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited));
try!(os.write_raw_varint32(v.get_cached_size()));
try!(v.write_to_with_cached_sizes(os));
};
try!(os.write_unknown_fields(self.get_unknown_fields()));
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn type_id(&self) -> ::std::any::TypeId {
::std::any::TypeId::of::<ScenarioExecutionStartingRequest>()
}
fn as_any(&self) -> &::std::any::Any {
self as &::std::any::Any
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
::protobuf::MessageStatic::descriptor_static(None::<Self>)
}
}
impl ::protobuf::MessageStatic for ScenarioExecutionStartingRequest {
fn new() -> ScenarioExecutionStartingRequest {
ScenarioExecutionStartingRequest::new()
}
fn descriptor_static(_: ::std::option::Option<ScenarioExecutionStartingRequest>) -> &'static ::protobuf::reflect::MessageDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
};
unsafe {
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor(
"currentExecutionInfo",
ScenarioExecutionStartingRequest::has_currentExecutionInfo,
ScenarioExecutionStartingRequest::get_currentExecutionInfo,
));
::protobuf::reflect::MessageDescriptor::new::<ScenarioExecutionStartingRequest>(
"ScenarioExecutionStartingRequest",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for ScenarioExecutionStartingRequest {
fn clear(&mut self) {
self.clear_currentExecutionInfo();
self.unknown_fields.clear();
}
}
impl ::std::cmp::PartialEq for ScenarioExecutionStartingRequest {
fn eq(&self, other: &ScenarioExecutionStartingRequest) -> bool {
self.currentExecutionInfo == other.currentExecutionInfo &&
self.unknown_fields == other.unknown_fields
}
}
impl ::std::fmt::Debug for ScenarioExecutionStartingRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
#[derive(Clone,Default)]
pub struct ScenarioExecutionEndingRequest {
// message fields
currentExecutionInfo: ::protobuf::SingularPtrField<ExecutionInfo>,
// special fields
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::std::cell::Cell<u32>,
}
// see codegen.rs for the explanation why impl Sync explicitly
unsafe impl ::std::marker::Sync for ScenarioExecutionEndingRequest {}
impl ScenarioExecutionEndingRequest {
pub fn new() -> ScenarioExecutionEndingRequest {
::std::default::Default::default()
}
pub fn default_instance() -> &'static ScenarioExecutionEndingRequest {
static mut instance: ::protobuf::lazy::Lazy<ScenarioExecutionEndingRequest> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ScenarioExecutionEndingRequest,
};
unsafe {
instance.get(|| {
ScenarioExecutionEndingRequest {
currentExecutionInfo: ::protobuf::SingularPtrField::none(),
unknown_fields: ::protobuf::UnknownFields::new(),
cached_size: ::std::cell::Cell::new(0),
}
})
}
}
// optional .gauge.messages.ExecutionInfo currentExecutionInfo = 1;
pub fn clear_currentExecutionInfo(&mut self) {
self.currentExecutionInfo.clear();
}
pub fn has_currentExecutionInfo(&self) -> bool {
self.currentExecutionInfo.is_some()
}
// Param is passed by value, moved
pub fn set_currentExecutionInfo(&mut self, v: ExecutionInfo) {
self.currentExecutionInfo = ::protobuf::SingularPtrField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_currentExecutionInfo(&mut self) -> &mut ExecutionInfo {
if self.currentExecutionInfo.is_none() {
self.currentExecutionInfo.set_default();
};
self.currentExecutionInfo.as_mut().unwrap()
}
// Take field
pub fn take_currentExecutionInfo(&mut self) -> ExecutionInfo {
self.currentExecutionInfo.take().unwrap_or_else(|| ExecutionInfo::new())
}
pub fn get_currentExecutionInfo(&self) -> &ExecutionInfo {
self.currentExecutionInfo.as_ref().unwrap_or_else(|| ExecutionInfo::default_instance())
}
}
impl ::protobuf::Message for ScenarioExecutionEndingRequest {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
while !try!(is.eof()) {
let (field_number, wire_type) = try!(is.read_tag_unpack());
match field_number {
1 => {
try!(::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.currentExecutionInfo));
},
_ => {
try!(::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields()));
},
};
}
::std::result::Result::Ok(())
}
// Compute sizes of nested messages
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
for value in &self.currentExecutionInfo {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
if let Some(v) = self.currentExecutionInfo.as_ref() {
try!(os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited));
try!(os.write_raw_varint32(v.get_cached_size()));
try!(v.write_to_with_cached_sizes(os));
};
try!(os.write_unknown_fields(self.get_unknown_fields()));
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn type_id(&self) -> ::std::any::TypeId {
::std::any::TypeId::of::<ScenarioExecutionEndingRequest>()
}
fn as_any(&self) -> &::std::any::Any {
self as &::std::any::Any
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
::protobuf::MessageStatic::descriptor_static(None::<Self>)
}
}
impl ::protobuf::MessageStatic for ScenarioExecutionEndingRequest {
fn new() -> ScenarioExecutionEndingRequest {
ScenarioExecutionEndingRequest::new()
}
fn descriptor_static(_: ::std::option::Option<ScenarioExecutionEndingRequest>) -> &'static ::protobuf::reflect::MessageDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
};
unsafe {
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor(
"currentExecutionInfo",
ScenarioExecutionEndingRequest::has_currentExecutionInfo,
ScenarioExecutionEndingRequest::get_currentExecutionInfo,
));
::protobuf::reflect::MessageDescriptor::new::<ScenarioExecutionEndingRequest>(
"ScenarioExecutionEndingRequest",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for ScenarioExecutionEndingRequest {
fn clear(&mut self) {
self.clear_currentExecutionInfo();
self.unknown_fields.clear();
}
}
impl ::std::cmp::PartialEq for ScenarioExecutionEndingRequest {
fn eq(&self, other: &ScenarioExecutionEndingRequest) -> bool {
self.currentExecutionInfo == other.currentExecutionInfo &&
self.unknown_fields == other.unknown_fields
}
}
impl ::std::fmt::Debug for ScenarioExecutionEndingRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
#[derive(Clone,Default)]
pub struct StepExecutionStartingRequest {
// message fields
currentExecutionInfo: ::protobuf::SingularPtrField<ExecutionInfo>,
// special fields
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::std::cell::Cell<u32>,
}
// see codegen.rs for the explanation why impl Sync explicitly
unsafe impl ::std::marker::Sync for StepExecutionStartingRequest {}
impl StepExecutionStartingRequest {
pub fn new() -> StepExecutionStartingRequest {
::std::default::Default::default()
}
pub fn default_instance() -> &'static StepExecutionStartingRequest {
static mut instance: ::protobuf::lazy::Lazy<StepExecutionStartingRequest> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const StepExecutionStartingRequest,
};
unsafe {
instance.get(|| {
StepExecutionStartingRequest {
currentExecutionInfo: ::protobuf::SingularPtrField::none(),
unknown_fields: ::protobuf::UnknownFields::new(),
cached_size: ::std::cell::Cell::new(0),
}
})
}
}
// optional .gauge.messages.ExecutionInfo currentExecutionInfo = 1;
pub fn clear_currentExecutionInfo(&mut self) {
self.currentExecutionInfo.clear();
}
pub fn has_currentExecutionInfo(&self) -> bool {
self.currentExecutionInfo.is_some()
}
// Param is passed by value, moved
pub fn set_currentExecutionInfo(&mut self, v: ExecutionInfo) {
self.currentExecutionInfo = ::protobuf::SingularPtrField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_currentExecutionInfo(&mut self) -> &mut ExecutionInfo {
if self.currentExecutionInfo.is_none() {
self.currentExecutionInfo.set_default();
};
self.currentExecutionInfo.as_mut().unwrap()
}
// Take field
pub fn take_currentExecutionInfo(&mut self) -> ExecutionInfo {
self.currentExecutionInfo.take().unwrap_or_else(|| ExecutionInfo::new())
}
pub fn get_currentExecutionInfo(&self) -> &ExecutionInfo {
self.currentExecutionInfo.as_ref().unwrap_or_else(|| ExecutionInfo::default_instance())
}
}
impl ::protobuf::Message for StepExecutionStartingRequest {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
while !try!(is.eof()) {
let (field_number, wire_type) = try!(is.read_tag_unpack());
match field_number {
1 => {
try!(::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.currentExecutionInfo));
},
_ => {
try!(::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields()));
},
};
}
::std::result::Result::Ok(())
}
// Compute sizes of nested messages
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
for value in &self.currentExecutionInfo {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
if let Some(v) = self.currentExecutionInfo.as_ref() {
try!(os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited));
try!(os.write_raw_varint32(v.get_cached_size()));
try!(v.write_to_with_cached_sizes(os));
};
try!(os.write_unknown_fields(self.get_unknown_fields()));
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn type_id(&self) -> ::std::any::TypeId {
::std::any::TypeId::of::<StepExecutionStartingRequest>()
}
fn as_any(&self) -> &::std::any::Any {
self as &::std::any::Any
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
::protobuf::MessageStatic::descriptor_static(None::<Self>)
}
}
impl ::protobuf::MessageStatic for StepExecutionStartingRequest {
fn new() -> StepExecutionStartingRequest {
StepExecutionStartingRequest::new()
}
fn descriptor_static(_: ::std::option::Option<StepExecutionStartingRequest>) -> &'static ::protobuf::reflect::MessageDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
};
unsafe {
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor(
"currentExecutionInfo",
StepExecutionStartingRequest::has_currentExecutionInfo,
StepExecutionStartingRequest::get_currentExecutionInfo,
));
::protobuf::reflect::MessageDescriptor::new::<StepExecutionStartingRequest>(
"StepExecutionStartingRequest",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for StepExecutionStartingRequest {
fn clear(&mut self) {
self.clear_currentExecutionInfo();
self.unknown_fields.clear();
}
}
impl ::std::cmp::PartialEq for StepExecutionStartingRequest {
fn eq(&self, other: &StepExecutionStartingRequest) -> bool {
self.currentExecutionInfo == other.currentExecutionInfo &&
self.unknown_fields == other.unknown_fields
}
}
impl ::std::fmt::Debug for StepExecutionStartingRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
#[derive(Clone,Default)]
pub struct StepExecutionEndingRequest {
// message fields
currentExecutionInfo: ::protobuf::SingularPtrField<ExecutionInfo>,
// special fields
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::std::cell::Cell<u32>,
}
// see codegen.rs for the explanation why impl Sync explicitly
unsafe impl ::std::marker::Sync for StepExecutionEndingRequest {}
impl StepExecutionEndingRequest {
pub fn new() -> StepExecutionEndingRequest {
::std::default::Default::default()
}
pub fn default_instance() -> &'static StepExecutionEndingRequest {
static mut instance: ::protobuf::lazy::Lazy<StepExecutionEndingRequest> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const StepExecutionEndingRequest,
};
unsafe {
instance.get(|| {
StepExecutionEndingRequest {
currentExecutionInfo: ::protobuf::SingularPtrField::none(),
unknown_fields: ::protobuf::UnknownFields::new(),
cached_size: ::std::cell::Cell::new(0),
}
})
}
}
// optional .gauge.messages.ExecutionInfo currentExecutionInfo = 1;
pub fn clear_currentExecutionInfo(&mut self) {
self.currentExecutionInfo.clear();
}
pub fn has_currentExecutionInfo(&self) -> bool {
self.currentExecutionInfo.is_some()
}
// Param is passed by value, moved
pub fn set_currentExecutionInfo(&mut self, v: ExecutionInfo) {
self.currentExecutionInfo = ::protobuf::SingularPtrField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_currentExecutionInfo(&mut self) -> &mut ExecutionInfo {
if self.currentExecutionInfo.is_none() {
self.currentExecutionInfo.set_default();
};
self.currentExecutionInfo.as_mut().unwrap()
}
// Take field
pub fn take_currentExecutionInfo(&mut self) -> ExecutionInfo {
self.currentExecutionInfo.take().unwrap_or_else(|| ExecutionInfo::new())
}
pub fn get_currentExecutionInfo(&self) -> &ExecutionInfo {
self.currentExecutionInfo.as_ref().unwrap_or_else(|| ExecutionInfo::default_instance())
}
}
impl ::protobuf::Message for StepExecutionEndingRequest {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
while !try!(is.eof()) {
let (field_number, wire_type) = try!(is.read_tag_unpack());
match field_number {
1 => {
try!(::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.currentExecutionInfo));
},
_ => {
try!(::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields()));
},
};
}
::std::result::Result::Ok(())
}
// Compute sizes of nested messages
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
for value in &self.currentExecutionInfo {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
if let Some(v) = self.currentExecutionInfo.as_ref() {
try!(os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited));
try!(os.write_raw_varint32(v.get_cached_size()));
try!(v.write_to_with_cached_sizes(os));
};
try!(os.write_unknown_fields(self.get_unknown_fields()));
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn type_id(&self) -> ::std::any::TypeId {
::std::any::TypeId::of::<StepExecutionEndingRequest>()
}
fn as_any(&self) -> &::std::any::Any {
self as &::std::any::Any
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
::protobuf::MessageStatic::descriptor_static(None::<Self>)
}
}
impl ::protobuf::MessageStatic for StepExecutionEndingRequest {
fn new() -> StepExecutionEndingRequest {
StepExecutionEndingRequest::new()
}
fn descriptor_static(_: ::std::option::Option<StepExecutionEndingRequest>) -> &'static ::protobuf::reflect::MessageDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
};
unsafe {
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor(
"currentExecutionInfo",
StepExecutionEndingRequest::has_currentExecutionInfo,
StepExecutionEndingRequest::get_currentExecutionInfo,
));
::protobuf::reflect::MessageDescriptor::new::<StepExecutionEndingRequest>(
"StepExecutionEndingRequest",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for StepExecutionEndingRequest {
fn clear(&mut self) {
self.clear_currentExecutionInfo();
self.unknown_fields.clear();
}
}
impl ::std::cmp::PartialEq for StepExecutionEndingRequest {
fn eq(&self, other: &StepExecutionEndingRequest) -> bool {
self.currentExecutionInfo == other.currentExecutionInfo &&
self.unknown_fields == other.unknown_fields
}
}
impl ::std::fmt::Debug for StepExecutionEndingRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
#[derive(Clone,Default)]
pub struct ExecutionInfo {
// message fields
currentSpec: ::protobuf::SingularPtrField<SpecInfo>,
currentScenario: ::protobuf::SingularPtrField<ScenarioInfo>,
currentStep: ::protobuf::SingularPtrField<StepInfo>,
stacktrace: ::protobuf::SingularField<::std::string::String>,
// special fields
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::std::cell::Cell<u32>,
}
// see codegen.rs for the explanation why impl Sync explicitly
unsafe impl ::std::marker::Sync for ExecutionInfo {}
impl ExecutionInfo {
pub fn new() -> ExecutionInfo {
::std::default::Default::default()
}
pub fn default_instance() -> &'static ExecutionInfo {
static mut instance: ::protobuf::lazy::Lazy<ExecutionInfo> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ExecutionInfo,
};
unsafe {
instance.get(|| {
ExecutionInfo {
currentSpec: ::protobuf::SingularPtrField::none(),
currentScenario: ::protobuf::SingularPtrField::none(),
currentStep: ::protobuf::SingularPtrField::none(),
stacktrace: ::protobuf::SingularField::none(),
unknown_fields: ::protobuf::UnknownFields::new(),
cached_size: ::std::cell::Cell::new(0),
}
})
}
}
// optional .gauge.messages.SpecInfo currentSpec = 1;
pub fn clear_currentSpec(&mut self) {
self.currentSpec.clear();
}
pub fn has_currentSpec(&self) -> bool {
self.currentSpec.is_some()
}
// Param is passed by value, moved
pub fn set_currentSpec(&mut self, v: SpecInfo) {
self.currentSpec = ::protobuf::SingularPtrField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_currentSpec(&mut self) -> &mut SpecInfo {
if self.currentSpec.is_none() {
self.currentSpec.set_default();
};
self.currentSpec.as_mut().unwrap()
}
// Take field
pub fn take_currentSpec(&mut self) -> SpecInfo {
self.currentSpec.take().unwrap_or_else(|| SpecInfo::new())
}
pub fn get_currentSpec(&self) -> &SpecInfo {
self.currentSpec.as_ref().unwrap_or_else(|| SpecInfo::default_instance())
}
// optional .gauge.messages.ScenarioInfo currentScenario = 2;
pub fn clear_currentScenario(&mut self) {
self.currentScenario.clear();
}
pub fn has_currentScenario(&self) -> bool {
self.currentScenario.is_some()
}
// Param is passed by value, moved
pub fn set_currentScenario(&mut self, v: ScenarioInfo) {
self.currentScenario = ::protobuf::SingularPtrField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_currentScenario(&mut self) -> &mut ScenarioInfo {
if self.currentScenario.is_none() {
self.currentScenario.set_default();
};
self.currentScenario.as_mut().unwrap()
}
// Take field
pub fn take_currentScenario(&mut self) -> ScenarioInfo {
self.currentScenario.take().unwrap_or_else(|| ScenarioInfo::new())
}
pub fn get_currentScenario(&self) -> &ScenarioInfo {
self.currentScenario.as_ref().unwrap_or_else(|| ScenarioInfo::default_instance())
}
// optional .gauge.messages.StepInfo currentStep = 3;
pub fn clear_currentStep(&mut self) {
self.currentStep.clear();
}
pub fn has_currentStep(&self) -> bool {
self.currentStep.is_some()
}
// Param is passed by value, moved
pub fn set_currentStep(&mut self, v: StepInfo) {
self.currentStep = ::protobuf::SingularPtrField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_currentStep(&mut self) -> &mut StepInfo {
if self.currentStep.is_none() {
self.currentStep.set_default();
};
self.currentStep.as_mut().unwrap()
}
// Take field
pub fn take_currentStep(&mut self) -> StepInfo {
self.currentStep.take().unwrap_or_else(|| StepInfo::new())
}
pub fn get_currentStep(&self) -> &StepInfo {
self.currentStep.as_ref().unwrap_or_else(|| StepInfo::default_instance())
}
// optional string stacktrace = 4;
pub fn clear_stacktrace(&mut self) {
self.stacktrace.clear();
}
pub fn has_stacktrace(&self) -> bool {
self.stacktrace.is_some()
}
// Param is passed by value, moved
pub fn set_stacktrace(&mut self, v: ::std::string::String) {
self.stacktrace = ::protobuf::SingularField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_stacktrace(&mut self) -> &mut ::std::string::String {
if self.stacktrace.is_none() {
self.stacktrace.set_default();
};
self.stacktrace.as_mut().unwrap()
}
// Take field
pub fn take_stacktrace(&mut self) -> ::std::string::String {
self.stacktrace.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn get_stacktrace(&self) -> &str {
match self.stacktrace.as_ref() {
Some(v) => &v,
None => "",
}
}
}
impl ::protobuf::Message for ExecutionInfo {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
while !try!(is.eof()) {
let (field_number, wire_type) = try!(is.read_tag_unpack());
match field_number {
1 => {
try!(::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.currentSpec));
},
2 => {
try!(::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.currentScenario));
},
3 => {
try!(::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.currentStep));
},
4 => {
try!(::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.stacktrace));
},
_ => {
try!(::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields()));
},
};
}
::std::result::Result::Ok(())
}
// Compute sizes of nested messages
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
for value in &self.currentSpec {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
for value in &self.currentScenario {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
for value in &self.currentStep {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
for value in &self.stacktrace {
my_size += ::protobuf::rt::string_size(4, &value);
};
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
if let Some(v) = self.currentSpec.as_ref() {
try!(os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited));
try!(os.write_raw_varint32(v.get_cached_size()));
try!(v.write_to_with_cached_sizes(os));
};
if let Some(v) = self.currentScenario.as_ref() {
try!(os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited));
try!(os.write_raw_varint32(v.get_cached_size()));
try!(v.write_to_with_cached_sizes(os));
};
if let Some(v) = self.currentStep.as_ref() {
try!(os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited));
try!(os.write_raw_varint32(v.get_cached_size()));
try!(v.write_to_with_cached_sizes(os));
};
if let Some(v) = self.stacktrace.as_ref() {
try!(os.write_string(4, &v));
};
try!(os.write_unknown_fields(self.get_unknown_fields()));
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn type_id(&self) -> ::std::any::TypeId {
::std::any::TypeId::of::<ExecutionInfo>()
}
fn as_any(&self) -> &::std::any::Any {
self as &::std::any::Any
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
::protobuf::MessageStatic::descriptor_static(None::<Self>)
}
}
impl ::protobuf::MessageStatic for ExecutionInfo {
fn new() -> ExecutionInfo {
ExecutionInfo::new()
}
fn descriptor_static(_: ::std::option::Option<ExecutionInfo>) -> &'static ::protobuf::reflect::MessageDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
};
unsafe {
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor(
"currentSpec",
ExecutionInfo::has_currentSpec,
ExecutionInfo::get_currentSpec,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor(
"currentScenario",
ExecutionInfo::has_currentScenario,
ExecutionInfo::get_currentScenario,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor(
"currentStep",
ExecutionInfo::has_currentStep,
ExecutionInfo::get_currentStep,
));
fields.push(::protobuf::reflect::accessor::make_singular_string_accessor(
"stacktrace",
ExecutionInfo::has_stacktrace,
ExecutionInfo::get_stacktrace,
));
::protobuf::reflect::MessageDescriptor::new::<ExecutionInfo>(
"ExecutionInfo",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for ExecutionInfo {
fn clear(&mut self) {
self.clear_currentSpec();
self.clear_currentScenario();
self.clear_currentStep();
self.clear_stacktrace();
self.unknown_fields.clear();
}
}
impl ::std::cmp::PartialEq for ExecutionInfo {
fn eq(&self, other: &ExecutionInfo) -> bool {
self.currentSpec == other.currentSpec &&
self.currentScenario == other.currentScenario &&
self.currentStep == other.currentStep &&
self.stacktrace == other.stacktrace &&
self.unknown_fields == other.unknown_fields
}
}
impl ::std::fmt::Debug for ExecutionInfo {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
#[derive(Clone,Default)]
pub struct SpecInfo {
// message fields
name: ::protobuf::SingularField<::std::string::String>,
fileName: ::protobuf::SingularField<::std::string::String>,
isFailed: ::std::option::Option<bool>,
tags: ::protobuf::RepeatedField<::std::string::String>,
// special fields
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::std::cell::Cell<u32>,
}
// see codegen.rs for the explanation why impl Sync explicitly
unsafe impl ::std::marker::Sync for SpecInfo {}
impl SpecInfo {
pub fn new() -> SpecInfo {
::std::default::Default::default()
}
pub fn default_instance() -> &'static SpecInfo {
static mut instance: ::protobuf::lazy::Lazy<SpecInfo> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const SpecInfo,
};
unsafe {
instance.get(|| {
SpecInfo {
name: ::protobuf::SingularField::none(),
fileName: ::protobuf::SingularField::none(),
isFailed: ::std::option::Option::None,
tags: ::protobuf::RepeatedField::new(),
unknown_fields: ::protobuf::UnknownFields::new(),
cached_size: ::std::cell::Cell::new(0),
}
})
}
}
// required string name = 1;
pub fn clear_name(&mut self) {
self.name.clear();
}
pub fn has_name(&self) -> bool {
self.name.is_some()
}
// Param is passed by value, moved
pub fn set_name(&mut self, v: ::std::string::String) {
self.name = ::protobuf::SingularField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_name(&mut self) -> &mut ::std::string::String {
if self.name.is_none() {
self.name.set_default();
};
self.name.as_mut().unwrap()
}
// Take field
pub fn take_name(&mut self) -> ::std::string::String {
self.name.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn get_name(&self) -> &str {
match self.name.as_ref() {
Some(v) => &v,
None => "",
}
}
// required string fileName = 2;
pub fn clear_fileName(&mut self) {
self.fileName.clear();
}
pub fn has_fileName(&self) -> bool {
self.fileName.is_some()
}
// Param is passed by value, moved
pub fn set_fileName(&mut self, v: ::std::string::String) {
self.fileName = ::protobuf::SingularField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_fileName(&mut self) -> &mut ::std::string::String {
if self.fileName.is_none() {
self.fileName.set_default();
};
self.fileName.as_mut().unwrap()
}
// Take field
pub fn take_fileName(&mut self) -> ::std::string::String {
self.fileName.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn get_fileName(&self) -> &str {
match self.fileName.as_ref() {
Some(v) => &v,
None => "",
}
}
// required bool isFailed = 3;
pub fn clear_isFailed(&mut self) {
self.isFailed = ::std::option::Option::None;
}
pub fn has_isFailed(&self) -> bool {
self.isFailed.is_some()
}
// Param is passed by value, moved
pub fn set_isFailed(&mut self, v: bool) {
self.isFailed = ::std::option::Option::Some(v);
}
pub fn get_isFailed(&self) -> bool {
self.isFailed.unwrap_or(false)
}
// repeated string tags = 4;
pub fn clear_tags(&mut self) {
self.tags.clear();
}
// Param is passed by value, moved
pub fn set_tags(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) {
self.tags = v;
}
// Mutable pointer to the field.
pub fn mut_tags(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> {
&mut self.tags
}
// Take field
pub fn take_tags(&mut self) -> ::protobuf::RepeatedField<::std::string::String> {
::std::mem::replace(&mut self.tags, ::protobuf::RepeatedField::new())
}
pub fn get_tags(&self) -> &[::std::string::String] {
&self.tags
}
}
impl ::protobuf::Message for SpecInfo {
fn is_initialized(&self) -> bool {
if self.name.is_none() {
return false;
};
if self.fileName.is_none() {
return false;
};
if self.isFailed.is_none() {
return false;
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
while !try!(is.eof()) {
let (field_number, wire_type) = try!(is.read_tag_unpack());
match field_number {
1 => {
try!(::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.name));
},
2 => {
try!(::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.fileName));
},
3 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
};
let tmp = try!(is.read_bool());
self.isFailed = ::std::option::Option::Some(tmp);
},
4 => {
try!(::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.tags));
},
_ => {
try!(::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields()));
},
};
}
::std::result::Result::Ok(())
}
// Compute sizes of nested messages
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
for value in &self.name {
my_size += ::protobuf::rt::string_size(1, &value);
};
for value in &self.fileName {
my_size += ::protobuf::rt::string_size(2, &value);
};
if self.isFailed.is_some() {
my_size += 2;
};
for value in &self.tags {
my_size += ::protobuf::rt::string_size(4, &value);
};
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
if let Some(v) = self.name.as_ref() {
try!(os.write_string(1, &v));
};
if let Some(v) = self.fileName.as_ref() {
try!(os.write_string(2, &v));
};
if let Some(v) = self.isFailed {
try!(os.write_bool(3, v));
};
for v in &self.tags {
try!(os.write_string(4, &v));
};
try!(os.write_unknown_fields(self.get_unknown_fields()));
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn type_id(&self) -> ::std::any::TypeId {
::std::any::TypeId::of::<SpecInfo>()
}
fn as_any(&self) -> &::std::any::Any {
self as &::std::any::Any
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
::protobuf::MessageStatic::descriptor_static(None::<Self>)
}
}
impl ::protobuf::MessageStatic for SpecInfo {
fn new() -> SpecInfo {
SpecInfo::new()
}
fn descriptor_static(_: ::std::option::Option<SpecInfo>) -> &'static ::protobuf::reflect::MessageDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
};
unsafe {
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_string_accessor(
"name",
SpecInfo::has_name,
SpecInfo::get_name,
));
fields.push(::protobuf::reflect::accessor::make_singular_string_accessor(
"fileName",
SpecInfo::has_fileName,
SpecInfo::get_fileName,
));
fields.push(::protobuf::reflect::accessor::make_singular_bool_accessor(
"isFailed",
SpecInfo::has_isFailed,
SpecInfo::get_isFailed,
));
fields.push(::protobuf::reflect::accessor::make_repeated_string_accessor(
"tags",
SpecInfo::get_tags,
));
::protobuf::reflect::MessageDescriptor::new::<SpecInfo>(
"SpecInfo",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for SpecInfo {
fn clear(&mut self) {
self.clear_name();
self.clear_fileName();
self.clear_isFailed();
self.clear_tags();
self.unknown_fields.clear();
}
}
impl ::std::cmp::PartialEq for SpecInfo {
fn eq(&self, other: &SpecInfo) -> bool {
self.name == other.name &&
self.fileName == other.fileName &&
self.isFailed == other.isFailed &&
self.tags == other.tags &&
self.unknown_fields == other.unknown_fields
}
}
impl ::std::fmt::Debug for SpecInfo {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
#[derive(Clone,Default)]
pub struct ScenarioInfo {
// message fields
name: ::protobuf::SingularField<::std::string::String>,
isFailed: ::std::option::Option<bool>,
tags: ::protobuf::RepeatedField<::std::string::String>,
// special fields
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::std::cell::Cell<u32>,
}
// see codegen.rs for the explanation why impl Sync explicitly
unsafe impl ::std::marker::Sync for ScenarioInfo {}
impl ScenarioInfo {
pub fn new() -> ScenarioInfo {
::std::default::Default::default()
}
pub fn default_instance() -> &'static ScenarioInfo {
static mut instance: ::protobuf::lazy::Lazy<ScenarioInfo> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ScenarioInfo,
};
unsafe {
instance.get(|| {
ScenarioInfo {
name: ::protobuf::SingularField::none(),
isFailed: ::std::option::Option::None,
tags: ::protobuf::RepeatedField::new(),
unknown_fields: ::protobuf::UnknownFields::new(),
cached_size: ::std::cell::Cell::new(0),
}
})
}
}
// required string name = 1;
pub fn clear_name(&mut self) {
self.name.clear();
}
pub fn has_name(&self) -> bool {
self.name.is_some()
}
// Param is passed by value, moved
pub fn set_name(&mut self, v: ::std::string::String) {
self.name = ::protobuf::SingularField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_name(&mut self) -> &mut ::std::string::String {
if self.name.is_none() {
self.name.set_default();
};
self.name.as_mut().unwrap()
}
// Take field
pub fn take_name(&mut self) -> ::std::string::String {
self.name.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn get_name(&self) -> &str {
match self.name.as_ref() {
Some(v) => &v,
None => "",
}
}
// required bool isFailed = 2;
pub fn clear_isFailed(&mut self) {
self.isFailed = ::std::option::Option::None;
}
pub fn has_isFailed(&self) -> bool {
self.isFailed.is_some()
}
// Param is passed by value, moved
pub fn set_isFailed(&mut self, v: bool) {
self.isFailed = ::std::option::Option::Some(v);
}
pub fn get_isFailed(&self) -> bool {
self.isFailed.unwrap_or(false)
}
// repeated string tags = 3;
pub fn clear_tags(&mut self) {
self.tags.clear();
}
// Param is passed by value, moved
pub fn set_tags(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) {
self.tags = v;
}
// Mutable pointer to the field.
pub fn mut_tags(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> {
&mut self.tags
}
// Take field
pub fn take_tags(&mut self) -> ::protobuf::RepeatedField<::std::string::String> {
::std::mem::replace(&mut self.tags, ::protobuf::RepeatedField::new())
}
pub fn get_tags(&self) -> &[::std::string::String] {
&self.tags
}
}
impl ::protobuf::Message for ScenarioInfo {
fn is_initialized(&self) -> bool {
if self.name.is_none() {
return false;
};
if self.isFailed.is_none() {
return false;
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
while !try!(is.eof()) {
let (field_number, wire_type) = try!(is.read_tag_unpack());
match field_number {
1 => {
try!(::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.name));
},
2 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
};
let tmp = try!(is.read_bool());
self.isFailed = ::std::option::Option::Some(tmp);
},
3 => {
try!(::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.tags));
},
_ => {
try!(::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields()));
},
};
}
::std::result::Result::Ok(())
}
// Compute sizes of nested messages
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
for value in &self.name {
my_size += ::protobuf::rt::string_size(1, &value);
};
if self.isFailed.is_some() {
my_size += 2;
};
for value in &self.tags {
my_size += ::protobuf::rt::string_size(3, &value);
};
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
if let Some(v) = self.name.as_ref() {
try!(os.write_string(1, &v));
};
if let Some(v) = self.isFailed {
try!(os.write_bool(2, v));
};
for v in &self.tags {
try!(os.write_string(3, &v));
};
try!(os.write_unknown_fields(self.get_unknown_fields()));
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn type_id(&self) -> ::std::any::TypeId {
::std::any::TypeId::of::<ScenarioInfo>()
}
fn as_any(&self) -> &::std::any::Any {
self as &::std::any::Any
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
::protobuf::MessageStatic::descriptor_static(None::<Self>)
}
}
impl ::protobuf::MessageStatic for ScenarioInfo {
fn new() -> ScenarioInfo {
ScenarioInfo::new()
}
fn descriptor_static(_: ::std::option::Option<ScenarioInfo>) -> &'static ::protobuf::reflect::MessageDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
};
unsafe {
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_string_accessor(
"name",
ScenarioInfo::has_name,
ScenarioInfo::get_name,
));
fields.push(::protobuf::reflect::accessor::make_singular_bool_accessor(
"isFailed",
ScenarioInfo::has_isFailed,
ScenarioInfo::get_isFailed,
));
fields.push(::protobuf::reflect::accessor::make_repeated_string_accessor(
"tags",
ScenarioInfo::get_tags,
));
::protobuf::reflect::MessageDescriptor::new::<ScenarioInfo>(
"ScenarioInfo",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for ScenarioInfo {
fn clear(&mut self) {
self.clear_name();
self.clear_isFailed();
self.clear_tags();
self.unknown_fields.clear();
}
}
impl ::std::cmp::PartialEq for ScenarioInfo {
fn eq(&self, other: &ScenarioInfo) -> bool {
self.name == other.name &&
self.isFailed == other.isFailed &&
self.tags == other.tags &&
self.unknown_fields == other.unknown_fields
}
}
impl ::std::fmt::Debug for ScenarioInfo {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
#[derive(Clone,Default)]
pub struct StepInfo {
// message fields
step: ::protobuf::SingularPtrField<ExecuteStepRequest>,
isFailed: ::std::option::Option<bool>,
// special fields
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::std::cell::Cell<u32>,
}
// see codegen.rs for the explanation why impl Sync explicitly
unsafe impl ::std::marker::Sync for StepInfo {}
impl StepInfo {
pub fn new() -> StepInfo {
::std::default::Default::default()
}
pub fn default_instance() -> &'static StepInfo {
static mut instance: ::protobuf::lazy::Lazy<StepInfo> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const StepInfo,
};
unsafe {
instance.get(|| {
StepInfo {
step: ::protobuf::SingularPtrField::none(),
isFailed: ::std::option::Option::None,
unknown_fields: ::protobuf::UnknownFields::new(),
cached_size: ::std::cell::Cell::new(0),
}
})
}
}
// required .gauge.messages.ExecuteStepRequest step = 1;
pub fn clear_step(&mut self) {
self.step.clear();
}
pub fn has_step(&self) -> bool {
self.step.is_some()
}
// Param is passed by value, moved
pub fn set_step(&mut self, v: ExecuteStepRequest) {
self.step = ::protobuf::SingularPtrField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_step(&mut self) -> &mut ExecuteStepRequest {
if self.step.is_none() {
self.step.set_default();
};
self.step.as_mut().unwrap()
}
// Take field
pub fn take_step(&mut self) -> ExecuteStepRequest {
self.step.take().unwrap_or_else(|| ExecuteStepRequest::new())
}
pub fn get_step(&self) -> &ExecuteStepRequest {
self.step.as_ref().unwrap_or_else(|| ExecuteStepRequest::default_instance())
}
// required bool isFailed = 2;
pub fn clear_isFailed(&mut self) {
self.isFailed = ::std::option::Option::None;
}
pub fn has_isFailed(&self) -> bool {
self.isFailed.is_some()
}
// Param is passed by value, moved
pub fn set_isFailed(&mut self, v: bool) {
self.isFailed = ::std::option::Option::Some(v);
}
pub fn get_isFailed(&self) -> bool {
self.isFailed.unwrap_or(false)
}
}
impl ::protobuf::Message for StepInfo {
fn is_initialized(&self) -> bool {
if self.step.is_none() {
return false;
};
if self.isFailed.is_none() {
return false;
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
while !try!(is.eof()) {
let (field_number, wire_type) = try!(is.read_tag_unpack());
match field_number {
1 => {
try!(::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.step));
},
2 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
};
let tmp = try!(is.read_bool());
self.isFailed = ::std::option::Option::Some(tmp);
},
_ => {
try!(::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields()));
},
};
}
::std::result::Result::Ok(())
}
// Compute sizes of nested messages
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
for value in &self.step {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
if self.isFailed.is_some() {
my_size += 2;
};
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
if let Some(v) = self.step.as_ref() {
try!(os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited));
try!(os.write_raw_varint32(v.get_cached_size()));
try!(v.write_to_with_cached_sizes(os));
};
if let Some(v) = self.isFailed {
try!(os.write_bool(2, v));
};
try!(os.write_unknown_fields(self.get_unknown_fields()));
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn type_id(&self) -> ::std::any::TypeId {
::std::any::TypeId::of::<StepInfo>()
}
fn as_any(&self) -> &::std::any::Any {
self as &::std::any::Any
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
::protobuf::MessageStatic::descriptor_static(None::<Self>)
}
}
impl ::protobuf::MessageStatic for StepInfo {
fn new() -> StepInfo {
StepInfo::new()
}
fn descriptor_static(_: ::std::option::Option<StepInfo>) -> &'static ::protobuf::reflect::MessageDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
};
unsafe {
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor(
"step",
StepInfo::has_step,
StepInfo::get_step,
));
fields.push(::protobuf::reflect::accessor::make_singular_bool_accessor(
"isFailed",
StepInfo::has_isFailed,
StepInfo::get_isFailed,
));
::protobuf::reflect::MessageDescriptor::new::<StepInfo>(
"StepInfo",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for StepInfo {
fn clear(&mut self) {
self.clear_step();
self.clear_isFailed();
self.unknown_fields.clear();
}
}
impl ::std::cmp::PartialEq for StepInfo {
fn eq(&self, other: &StepInfo) -> bool {
self.step == other.step &&
self.isFailed == other.isFailed &&
self.unknown_fields == other.unknown_fields
}
}
impl ::std::fmt::Debug for StepInfo {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
#[derive(Clone,Default)]
pub struct ExecuteStepRequest {
// message fields
actualStepText: ::protobuf::SingularField<::std::string::String>,
parsedStepText: ::protobuf::SingularField<::std::string::String>,
scenarioFailing: ::std::option::Option<bool>,
parameters: ::protobuf::RepeatedField<super::spec::Parameter>,
// special fields
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::std::cell::Cell<u32>,
}
// see codegen.rs for the explanation why impl Sync explicitly
unsafe impl ::std::marker::Sync for ExecuteStepRequest {}
impl ExecuteStepRequest {
pub fn new() -> ExecuteStepRequest {
::std::default::Default::default()
}
pub fn default_instance() -> &'static ExecuteStepRequest {
static mut instance: ::protobuf::lazy::Lazy<ExecuteStepRequest> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ExecuteStepRequest,
};
unsafe {
instance.get(|| {
ExecuteStepRequest {
actualStepText: ::protobuf::SingularField::none(),
parsedStepText: ::protobuf::SingularField::none(),
scenarioFailing: ::std::option::Option::None,
parameters: ::protobuf::RepeatedField::new(),
unknown_fields: ::protobuf::UnknownFields::new(),
cached_size: ::std::cell::Cell::new(0),
}
})
}
}
// required string actualStepText = 1;
pub fn clear_actualStepText(&mut self) {
self.actualStepText.clear();
}
pub fn has_actualStepText(&self) -> bool {
self.actualStepText.is_some()
}
// Param is passed by value, moved
pub fn set_actualStepText(&mut self, v: ::std::string::String) {
self.actualStepText = ::protobuf::SingularField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_actualStepText(&mut self) -> &mut ::std::string::String {
if self.actualStepText.is_none() {
self.actualStepText.set_default();
};
self.actualStepText.as_mut().unwrap()
}
// Take field
pub fn take_actualStepText(&mut self) -> ::std::string::String {
self.actualStepText.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn get_actualStepText(&self) -> &str {
match self.actualStepText.as_ref() {
Some(v) => &v,
None => "",
}
}
// required string parsedStepText = 2;
pub fn clear_parsedStepText(&mut self) {
self.parsedStepText.clear();
}
pub fn has_parsedStepText(&self) -> bool {
self.parsedStepText.is_some()
}
// Param is passed by value, moved
pub fn set_parsedStepText(&mut self, v: ::std::string::String) {
self.parsedStepText = ::protobuf::SingularField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_parsedStepText(&mut self) -> &mut ::std::string::String {
if self.parsedStepText.is_none() {
self.parsedStepText.set_default();
};
self.parsedStepText.as_mut().unwrap()
}
// Take field
pub fn take_parsedStepText(&mut self) -> ::std::string::String {
self.parsedStepText.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn get_parsedStepText(&self) -> &str {
match self.parsedStepText.as_ref() {
Some(v) => &v,
None => "",
}
}
// optional bool scenarioFailing = 3;
pub fn clear_scenarioFailing(&mut self) {
self.scenarioFailing = ::std::option::Option::None;
}
pub fn has_scenarioFailing(&self) -> bool {
self.scenarioFailing.is_some()
}
// Param is passed by value, moved
pub fn set_scenarioFailing(&mut self, v: bool) {
self.scenarioFailing = ::std::option::Option::Some(v);
}
pub fn get_scenarioFailing(&self) -> bool {
self.scenarioFailing.unwrap_or(false)
}
// repeated .gauge.messages.Parameter parameters = 4;
pub fn clear_parameters(&mut self) {
self.parameters.clear();
}
// Param is passed by value, moved
pub fn set_parameters(&mut self, v: ::protobuf::RepeatedField<super::spec::Parameter>) {
self.parameters = v;
}
// Mutable pointer to the field.
pub fn mut_parameters(&mut self) -> &mut ::protobuf::RepeatedField<super::spec::Parameter> {
&mut self.parameters
}
// Take field
pub fn take_parameters(&mut self) -> ::protobuf::RepeatedField<super::spec::Parameter> {
::std::mem::replace(&mut self.parameters, ::protobuf::RepeatedField::new())
}
pub fn get_parameters(&self) -> &[super::spec::Parameter] {
&self.parameters
}
}
impl ::protobuf::Message for ExecuteStepRequest {
fn is_initialized(&self) -> bool {
if self.actualStepText.is_none() {
return false;
};
if self.parsedStepText.is_none() {
return false;
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
while !try!(is.eof()) {
let (field_number, wire_type) = try!(is.read_tag_unpack());
match field_number {
1 => {
try!(::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.actualStepText));
},
2 => {
try!(::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.parsedStepText));
},
3 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
};
let tmp = try!(is.read_bool());
self.scenarioFailing = ::std::option::Option::Some(tmp);
},
4 => {
try!(::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.parameters));
},
_ => {
try!(::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields()));
},
};
}
::std::result::Result::Ok(())
}
// Compute sizes of nested messages
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
for value in &self.actualStepText {
my_size += ::protobuf::rt::string_size(1, &value);
};
for value in &self.parsedStepText {
my_size += ::protobuf::rt::string_size(2, &value);
};
if self.scenarioFailing.is_some() {
my_size += 2;
};
for value in &self.parameters {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
if let Some(v) = self.actualStepText.as_ref() {
try!(os.write_string(1, &v));
};
if let Some(v) = self.parsedStepText.as_ref() {
try!(os.write_string(2, &v));
};
if let Some(v) = self.scenarioFailing {
try!(os.write_bool(3, v));
};
for v in &self.parameters {
try!(os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited));
try!(os.write_raw_varint32(v.get_cached_size()));
try!(v.write_to_with_cached_sizes(os));
};
try!(os.write_unknown_fields(self.get_unknown_fields()));
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn type_id(&self) -> ::std::any::TypeId {
::std::any::TypeId::of::<ExecuteStepRequest>()
}
fn as_any(&self) -> &::std::any::Any {
self as &::std::any::Any
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
::protobuf::MessageStatic::descriptor_static(None::<Self>)
}
}
impl ::protobuf::MessageStatic for ExecuteStepRequest {
fn new() -> ExecuteStepRequest {
ExecuteStepRequest::new()
}
fn descriptor_static(_: ::std::option::Option<ExecuteStepRequest>) -> &'static ::protobuf::reflect::MessageDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
};
unsafe {
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_string_accessor(
"actualStepText",
ExecuteStepRequest::has_actualStepText,
ExecuteStepRequest::get_actualStepText,
));
fields.push(::protobuf::reflect::accessor::make_singular_string_accessor(
"parsedStepText",
ExecuteStepRequest::has_parsedStepText,
ExecuteStepRequest::get_parsedStepText,
));
fields.push(::protobuf::reflect::accessor::make_singular_bool_accessor(
"scenarioFailing",
ExecuteStepRequest::has_scenarioFailing,
ExecuteStepRequest::get_scenarioFailing,
));
fields.push(::protobuf::reflect::accessor::make_repeated_message_accessor(
"parameters",
ExecuteStepRequest::get_parameters,
));
::protobuf::reflect::MessageDescriptor::new::<ExecuteStepRequest>(
"ExecuteStepRequest",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for ExecuteStepRequest {
fn clear(&mut self) {
self.clear_actualStepText();
self.clear_parsedStepText();
self.clear_scenarioFailing();
self.clear_parameters();
self.unknown_fields.clear();
}
}
impl ::std::cmp::PartialEq for ExecuteStepRequest {
fn eq(&self, other: &ExecuteStepRequest) -> bool {
self.actualStepText == other.actualStepText &&
self.parsedStepText == other.parsedStepText &&
self.scenarioFailing == other.scenarioFailing &&
self.parameters == other.parameters &&
self.unknown_fields == other.unknown_fields
}
}
impl ::std::fmt::Debug for ExecuteStepRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
#[derive(Clone,Default)]
pub struct StepValidateRequest {
// message fields
stepText: ::protobuf::SingularField<::std::string::String>,
numberOfParameters: ::std::option::Option<i32>,
// special fields
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::std::cell::Cell<u32>,
}
// see codegen.rs for the explanation why impl Sync explicitly
unsafe impl ::std::marker::Sync for StepValidateRequest {}
impl StepValidateRequest {
pub fn new() -> StepValidateRequest {
::std::default::Default::default()
}
pub fn default_instance() -> &'static StepValidateRequest {
static mut instance: ::protobuf::lazy::Lazy<StepValidateRequest> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const StepValidateRequest,
};
unsafe {
instance.get(|| {
StepValidateRequest {
stepText: ::protobuf::SingularField::none(),
numberOfParameters: ::std::option::Option::None,
unknown_fields: ::protobuf::UnknownFields::new(),
cached_size: ::std::cell::Cell::new(0),
}
})
}
}
// required string stepText = 1;
pub fn clear_stepText(&mut self) {
self.stepText.clear();
}
pub fn has_stepText(&self) -> bool {
self.stepText.is_some()
}
// Param is passed by value, moved
pub fn set_stepText(&mut self, v: ::std::string::String) {
self.stepText = ::protobuf::SingularField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_stepText(&mut self) -> &mut ::std::string::String {
if self.stepText.is_none() {
self.stepText.set_default();
};
self.stepText.as_mut().unwrap()
}
// Take field
pub fn take_stepText(&mut self) -> ::std::string::String {
self.stepText.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn get_stepText(&self) -> &str {
match self.stepText.as_ref() {
Some(v) => &v,
None => "",
}
}
// required int32 numberOfParameters = 2;
pub fn clear_numberOfParameters(&mut self) {
self.numberOfParameters = ::std::option::Option::None;
}
pub fn has_numberOfParameters(&self) -> bool {
self.numberOfParameters.is_some()
}
// Param is passed by value, moved
pub fn set_numberOfParameters(&mut self, v: i32) {
self.numberOfParameters = ::std::option::Option::Some(v);
}
pub fn get_numberOfParameters(&self) -> i32 {
self.numberOfParameters.unwrap_or(0)
}
}
impl ::protobuf::Message for StepValidateRequest {
fn is_initialized(&self) -> bool {
if self.stepText.is_none() {
return false;
};
if self.numberOfParameters.is_none() {
return false;
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
while !try!(is.eof()) {
let (field_number, wire_type) = try!(is.read_tag_unpack());
match field_number {
1 => {
try!(::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.stepText));
},
2 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
};
let tmp = try!(is.read_int32());
self.numberOfParameters = ::std::option::Option::Some(tmp);
},
_ => {
try!(::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields()));
},
};
}
::std::result::Result::Ok(())
}
// Compute sizes of nested messages
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
for value in &self.stepText {
my_size += ::protobuf::rt::string_size(1, &value);
};
for value in &self.numberOfParameters {
my_size += ::protobuf::rt::value_size(2, *value, ::protobuf::wire_format::WireTypeVarint);
};
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
if let Some(v) = self.stepText.as_ref() {
try!(os.write_string(1, &v));
};
if let Some(v) = self.numberOfParameters {
try!(os.write_int32(2, v));
};
try!(os.write_unknown_fields(self.get_unknown_fields()));
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn type_id(&self) -> ::std::any::TypeId {
::std::any::TypeId::of::<StepValidateRequest>()
}
fn as_any(&self) -> &::std::any::Any {
self as &::std::any::Any
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
::protobuf::MessageStatic::descriptor_static(None::<Self>)
}
}
impl ::protobuf::MessageStatic for StepValidateRequest {
fn new() -> StepValidateRequest {
StepValidateRequest::new()
}
fn descriptor_static(_: ::std::option::Option<StepValidateRequest>) -> &'static ::protobuf::reflect::MessageDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
};
unsafe {
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_string_accessor(
"stepText",
StepValidateRequest::has_stepText,
StepValidateRequest::get_stepText,
));
fields.push(::protobuf::reflect::accessor::make_singular_i32_accessor(
"numberOfParameters",
StepValidateRequest::has_numberOfParameters,
StepValidateRequest::get_numberOfParameters,
));
::protobuf::reflect::MessageDescriptor::new::<StepValidateRequest>(
"StepValidateRequest",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for StepValidateRequest {
fn clear(&mut self) {
self.clear_stepText();
self.clear_numberOfParameters();
self.unknown_fields.clear();
}
}
impl ::std::cmp::PartialEq for StepValidateRequest {
fn eq(&self, other: &StepValidateRequest) -> bool {
self.stepText == other.stepText &&
self.numberOfParameters == other.numberOfParameters &&
self.unknown_fields == other.unknown_fields
}
}
impl ::std::fmt::Debug for StepValidateRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
#[derive(Clone,Default)]
pub struct StepValidateResponse {
// message fields
isValid: ::std::option::Option<bool>,
errorMessage: ::protobuf::SingularField<::std::string::String>,
errorType: ::std::option::Option<StepValidateResponse_ErrorType>,
// special fields
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::std::cell::Cell<u32>,
}
// see codegen.rs for the explanation why impl Sync explicitly
unsafe impl ::std::marker::Sync for StepValidateResponse {}
impl StepValidateResponse {
pub fn new() -> StepValidateResponse {
::std::default::Default::default()
}
pub fn default_instance() -> &'static StepValidateResponse {
static mut instance: ::protobuf::lazy::Lazy<StepValidateResponse> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const StepValidateResponse,
};
unsafe {
instance.get(|| {
StepValidateResponse {
isValid: ::std::option::Option::None,
errorMessage: ::protobuf::SingularField::none(),
errorType: ::std::option::Option::None,
unknown_fields: ::protobuf::UnknownFields::new(),
cached_size: ::std::cell::Cell::new(0),
}
})
}
}
// required bool isValid = 1;
pub fn clear_isValid(&mut self) {
self.isValid = ::std::option::Option::None;
}
pub fn has_isValid(&self) -> bool {
self.isValid.is_some()
}
// Param is passed by value, moved
pub fn set_isValid(&mut self, v: bool) {
self.isValid = ::std::option::Option::Some(v);
}
pub fn get_isValid(&self) -> bool {
self.isValid.unwrap_or(false)
}
// optional string errorMessage = 2;
pub fn clear_errorMessage(&mut self) {
self.errorMessage.clear();
}
pub fn has_errorMessage(&self) -> bool {
self.errorMessage.is_some()
}
// Param is passed by value, moved
pub fn set_errorMessage(&mut self, v: ::std::string::String) {
self.errorMessage = ::protobuf::SingularField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_errorMessage(&mut self) -> &mut ::std::string::String {
if self.errorMessage.is_none() {
self.errorMessage.set_default();
};
self.errorMessage.as_mut().unwrap()
}
// Take field
pub fn take_errorMessage(&mut self) -> ::std::string::String {
self.errorMessage.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn get_errorMessage(&self) -> &str {
match self.errorMessage.as_ref() {
Some(v) => &v,
None => "",
}
}
// optional .gauge.messages.StepValidateResponse.ErrorType errorType = 3;
pub fn clear_errorType(&mut self) {
self.errorType = ::std::option::Option::None;
}
pub fn has_errorType(&self) -> bool {
self.errorType.is_some()
}
// Param is passed by value, moved
pub fn set_errorType(&mut self, v: StepValidateResponse_ErrorType) {
self.errorType = ::std::option::Option::Some(v);
}
pub fn get_errorType(&self) -> StepValidateResponse_ErrorType {
self.errorType.unwrap_or(StepValidateResponse_ErrorType::STEP_IMPLEMENTATION_NOT_FOUND)
}
}
impl ::protobuf::Message for StepValidateResponse {
fn is_initialized(&self) -> bool {
if self.isValid.is_none() {
return false;
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
while !try!(is.eof()) {
let (field_number, wire_type) = try!(is.read_tag_unpack());
match field_number {
1 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
};
let tmp = try!(is.read_bool());
self.isValid = ::std::option::Option::Some(tmp);
},
2 => {
try!(::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.errorMessage));
},
3 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
};
let tmp = try!(is.read_enum());
self.errorType = ::std::option::Option::Some(tmp);
},
_ => {
try!(::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields()));
},
};
}
::std::result::Result::Ok(())
}
// Compute sizes of nested messages
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if self.isValid.is_some() {
my_size += 2;
};
for value in &self.errorMessage {
my_size += ::protobuf::rt::string_size(2, &value);
};
for value in &self.errorType {
my_size += ::protobuf::rt::enum_size(3, *value);
};
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
if let Some(v) = self.isValid {
try!(os.write_bool(1, v));
};
if let Some(v) = self.errorMessage.as_ref() {
try!(os.write_string(2, &v));
};
if let Some(v) = self.errorType {
try!(os.write_enum(3, v.value()));
};
try!(os.write_unknown_fields(self.get_unknown_fields()));
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn type_id(&self) -> ::std::any::TypeId {
::std::any::TypeId::of::<StepValidateResponse>()
}
fn as_any(&self) -> &::std::any::Any {
self as &::std::any::Any
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
::protobuf::MessageStatic::descriptor_static(None::<Self>)
}
}
impl ::protobuf::MessageStatic for StepValidateResponse {
fn new() -> StepValidateResponse {
StepValidateResponse::new()
}
fn descriptor_static(_: ::std::option::Option<StepValidateResponse>) -> &'static ::protobuf::reflect::MessageDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
};
unsafe {
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_bool_accessor(
"isValid",
StepValidateResponse::has_isValid,
StepValidateResponse::get_isValid,
));
fields.push(::protobuf::reflect::accessor::make_singular_string_accessor(
"errorMessage",
StepValidateResponse::has_errorMessage,
StepValidateResponse::get_errorMessage,
));
fields.push(::protobuf::reflect::accessor::make_singular_enum_accessor(
"errorType",
StepValidateResponse::has_errorType,
StepValidateResponse::get_errorType,
));
::protobuf::reflect::MessageDescriptor::new::<StepValidateResponse>(
"StepValidateResponse",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for StepValidateResponse {
fn clear(&mut self) {
self.clear_isValid();
self.clear_errorMessage();
self.clear_errorType();
self.unknown_fields.clear();
}
}
impl ::std::cmp::PartialEq for StepValidateResponse {
fn eq(&self, other: &StepValidateResponse) -> bool {
self.isValid == other.isValid &&
self.errorMessage == other.errorMessage &&
self.errorType == other.errorType &&
self.unknown_fields == other.unknown_fields
}
}
impl ::std::fmt::Debug for StepValidateResponse {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
#[derive(Clone,PartialEq,Eq,Debug,Hash)]
pub enum StepValidateResponse_ErrorType {
STEP_IMPLEMENTATION_NOT_FOUND = 0,
DUPLICATE_STEP_IMPLEMENTATION = 1,
}
impl ::protobuf::ProtobufEnum for StepValidateResponse_ErrorType {
fn value(&self) -> i32 {
*self as i32
}
fn from_i32(value: i32) -> ::std::option::Option<StepValidateResponse_ErrorType> {
match value {
0 => ::std::option::Option::Some(StepValidateResponse_ErrorType::STEP_IMPLEMENTATION_NOT_FOUND),
1 => ::std::option::Option::Some(StepValidateResponse_ErrorType::DUPLICATE_STEP_IMPLEMENTATION),
_ => ::std::option::Option::None
}
}
fn values() -> &'static [Self] {
static values: &'static [StepValidateResponse_ErrorType] = &[
StepValidateResponse_ErrorType::STEP_IMPLEMENTATION_NOT_FOUND,
StepValidateResponse_ErrorType::DUPLICATE_STEP_IMPLEMENTATION,
];
values
}
fn enum_descriptor_static(_: Option<StepValidateResponse_ErrorType>) -> &'static ::protobuf::reflect::EnumDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ::protobuf::reflect::EnumDescriptor,
};
unsafe {
descriptor.get(|| {
::protobuf::reflect::EnumDescriptor::new("StepValidateResponse_ErrorType", file_descriptor_proto())
})
}
}
}
impl ::std::marker::Copy for StepValidateResponse_ErrorType {
}
#[derive(Clone,Default)]
pub struct SuiteExecutionResult {
// message fields
suiteResult: ::protobuf::SingularPtrField<super::spec::ProtoSuiteResult>,
// special fields
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::std::cell::Cell<u32>,
}
// see codegen.rs for the explanation why impl Sync explicitly
unsafe impl ::std::marker::Sync for SuiteExecutionResult {}
impl SuiteExecutionResult {
pub fn new() -> SuiteExecutionResult {
::std::default::Default::default()
}
pub fn default_instance() -> &'static SuiteExecutionResult {
static mut instance: ::protobuf::lazy::Lazy<SuiteExecutionResult> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const SuiteExecutionResult,
};
unsafe {
instance.get(|| {
SuiteExecutionResult {
suiteResult: ::protobuf::SingularPtrField::none(),
unknown_fields: ::protobuf::UnknownFields::new(),
cached_size: ::std::cell::Cell::new(0),
}
})
}
}
// required .gauge.messages.ProtoSuiteResult suiteResult = 1;
pub fn clear_suiteResult(&mut self) {
self.suiteResult.clear();
}
pub fn has_suiteResult(&self) -> bool {
self.suiteResult.is_some()
}
// Param is passed by value, moved
pub fn set_suiteResult(&mut self, v: super::spec::ProtoSuiteResult) {
self.suiteResult = ::protobuf::SingularPtrField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_suiteResult(&mut self) -> &mut super::spec::ProtoSuiteResult {
if self.suiteResult.is_none() {
self.suiteResult.set_default();
};
self.suiteResult.as_mut().unwrap()
}
// Take field
pub fn take_suiteResult(&mut self) -> super::spec::ProtoSuiteResult {
self.suiteResult.take().unwrap_or_else(|| super::spec::ProtoSuiteResult::new())
}
pub fn get_suiteResult(&self) -> &super::spec::ProtoSuiteResult {
self.suiteResult.as_ref().unwrap_or_else(|| super::spec::ProtoSuiteResult::default_instance())
}
}
impl ::protobuf::Message for SuiteExecutionResult {
fn is_initialized(&self) -> bool {
if self.suiteResult.is_none() {
return false;
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
while !try!(is.eof()) {
let (field_number, wire_type) = try!(is.read_tag_unpack());
match field_number {
1 => {
try!(::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.suiteResult));
},
_ => {
try!(::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields()));
},
};
}
::std::result::Result::Ok(())
}
// Compute sizes of nested messages
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
for value in &self.suiteResult {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
if let Some(v) = self.suiteResult.as_ref() {
try!(os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited));
try!(os.write_raw_varint32(v.get_cached_size()));
try!(v.write_to_with_cached_sizes(os));
};
try!(os.write_unknown_fields(self.get_unknown_fields()));
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn type_id(&self) -> ::std::any::TypeId {
::std::any::TypeId::of::<SuiteExecutionResult>()
}
fn as_any(&self) -> &::std::any::Any {
self as &::std::any::Any
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
::protobuf::MessageStatic::descriptor_static(None::<Self>)
}
}
impl ::protobuf::MessageStatic for SuiteExecutionResult {
fn new() -> SuiteExecutionResult {
SuiteExecutionResult::new()
}
fn descriptor_static(_: ::std::option::Option<SuiteExecutionResult>) -> &'static ::protobuf::reflect::MessageDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
};
unsafe {
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor(
"suiteResult",
SuiteExecutionResult::has_suiteResult,
SuiteExecutionResult::get_suiteResult,
));
::protobuf::reflect::MessageDescriptor::new::<SuiteExecutionResult>(
"SuiteExecutionResult",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for SuiteExecutionResult {
fn clear(&mut self) {
self.clear_suiteResult();
self.unknown_fields.clear();
}
}
impl ::std::cmp::PartialEq for SuiteExecutionResult {
fn eq(&self, other: &SuiteExecutionResult) -> bool {
self.suiteResult == other.suiteResult &&
self.unknown_fields == other.unknown_fields
}
}
impl ::std::fmt::Debug for SuiteExecutionResult {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
#[derive(Clone,Default)]
pub struct StepNamesRequest {
// special fields
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::std::cell::Cell<u32>,
}
// see codegen.rs for the explanation why impl Sync explicitly
unsafe impl ::std::marker::Sync for StepNamesRequest {}
impl StepNamesRequest {
pub fn new() -> StepNamesRequest {
::std::default::Default::default()
}
pub fn default_instance() -> &'static StepNamesRequest {
static mut instance: ::protobuf::lazy::Lazy<StepNamesRequest> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const StepNamesRequest,
};
unsafe {
instance.get(|| {
StepNamesRequest {
unknown_fields: ::protobuf::UnknownFields::new(),
cached_size: ::std::cell::Cell::new(0),
}
})
}
}
}
impl ::protobuf::Message for StepNamesRequest {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
while !try!(is.eof()) {
let (field_number, wire_type) = try!(is.read_tag_unpack());
match field_number {
_ => {
try!(::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields()));
},
};
}
::std::result::Result::Ok(())
}
// Compute sizes of nested messages
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
try!(os.write_unknown_fields(self.get_unknown_fields()));
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn type_id(&self) -> ::std::any::TypeId {
::std::any::TypeId::of::<StepNamesRequest>()
}
fn as_any(&self) -> &::std::any::Any {
self as &::std::any::Any
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
::protobuf::MessageStatic::descriptor_static(None::<Self>)
}
}
impl ::protobuf::MessageStatic for StepNamesRequest {
fn new() -> StepNamesRequest {
StepNamesRequest::new()
}
fn descriptor_static(_: ::std::option::Option<StepNamesRequest>) -> &'static ::protobuf::reflect::MessageDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
};
unsafe {
descriptor.get(|| {
let fields = ::std::vec::Vec::new();
::protobuf::reflect::MessageDescriptor::new::<StepNamesRequest>(
"StepNamesRequest",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for StepNamesRequest {
fn clear(&mut self) {
self.unknown_fields.clear();
}
}
impl ::std::cmp::PartialEq for StepNamesRequest {
fn eq(&self, other: &StepNamesRequest) -> bool {
self.unknown_fields == other.unknown_fields
}
}
impl ::std::fmt::Debug for StepNamesRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
#[derive(Clone,Default)]
pub struct StepNamesResponse {
// message fields
steps: ::protobuf::RepeatedField<::std::string::String>,
// special fields
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::std::cell::Cell<u32>,
}
// see codegen.rs for the explanation why impl Sync explicitly
unsafe impl ::std::marker::Sync for StepNamesResponse {}
impl StepNamesResponse {
pub fn new() -> StepNamesResponse {
::std::default::Default::default()
}
pub fn default_instance() -> &'static StepNamesResponse {
static mut instance: ::protobuf::lazy::Lazy<StepNamesResponse> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const StepNamesResponse,
};
unsafe {
instance.get(|| {
StepNamesResponse {
steps: ::protobuf::RepeatedField::new(),
unknown_fields: ::protobuf::UnknownFields::new(),
cached_size: ::std::cell::Cell::new(0),
}
})
}
}
// repeated string steps = 1;
pub fn clear_steps(&mut self) {
self.steps.clear();
}
// Param is passed by value, moved
pub fn set_steps(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) {
self.steps = v;
}
// Mutable pointer to the field.
pub fn mut_steps(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> {
&mut self.steps
}
// Take field
pub fn take_steps(&mut self) -> ::protobuf::RepeatedField<::std::string::String> {
::std::mem::replace(&mut self.steps, ::protobuf::RepeatedField::new())
}
pub fn get_steps(&self) -> &[::std::string::String] {
&self.steps
}
}
impl ::protobuf::Message for StepNamesResponse {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
while !try!(is.eof()) {
let (field_number, wire_type) = try!(is.read_tag_unpack());
match field_number {
1 => {
try!(::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.steps));
},
_ => {
try!(::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields()));
},
};
}
::std::result::Result::Ok(())
}
// Compute sizes of nested messages
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
for value in &self.steps {
my_size += ::protobuf::rt::string_size(1, &value);
};
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
for v in &self.steps {
try!(os.write_string(1, &v));
};
try!(os.write_unknown_fields(self.get_unknown_fields()));
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn type_id(&self) -> ::std::any::TypeId {
::std::any::TypeId::of::<StepNamesResponse>()
}
fn as_any(&self) -> &::std::any::Any {
self as &::std::any::Any
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
::protobuf::MessageStatic::descriptor_static(None::<Self>)
}
}
impl ::protobuf::MessageStatic for StepNamesResponse {
fn new() -> StepNamesResponse {
StepNamesResponse::new()
}
fn descriptor_static(_: ::std::option::Option<StepNamesResponse>) -> &'static ::protobuf::reflect::MessageDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
};
unsafe {
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_repeated_string_accessor(
"steps",
StepNamesResponse::get_steps,
));
::protobuf::reflect::MessageDescriptor::new::<StepNamesResponse>(
"StepNamesResponse",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for StepNamesResponse {
fn clear(&mut self) {
self.clear_steps();
self.unknown_fields.clear();
}
}
impl ::std::cmp::PartialEq for StepNamesResponse {
fn eq(&self, other: &StepNamesResponse) -> bool {
self.steps == other.steps &&
self.unknown_fields == other.unknown_fields
}
}
impl ::std::fmt::Debug for StepNamesResponse {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
#[derive(Clone,Default)]
pub struct ScenarioDataStoreInitRequest {
// special fields
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::std::cell::Cell<u32>,
}
// see codegen.rs for the explanation why impl Sync explicitly
unsafe impl ::std::marker::Sync for ScenarioDataStoreInitRequest {}
impl ScenarioDataStoreInitRequest {
pub fn new() -> ScenarioDataStoreInitRequest {
::std::default::Default::default()
}
pub fn default_instance() -> &'static ScenarioDataStoreInitRequest {
static mut instance: ::protobuf::lazy::Lazy<ScenarioDataStoreInitRequest> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ScenarioDataStoreInitRequest,
};
unsafe {
instance.get(|| {
ScenarioDataStoreInitRequest {
unknown_fields: ::protobuf::UnknownFields::new(),
cached_size: ::std::cell::Cell::new(0),
}
})
}
}
}
impl ::protobuf::Message for ScenarioDataStoreInitRequest {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
while !try!(is.eof()) {
let (field_number, wire_type) = try!(is.read_tag_unpack());
match field_number {
_ => {
try!(::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields()));
},
};
}
::std::result::Result::Ok(())
}
// Compute sizes of nested messages
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
try!(os.write_unknown_fields(self.get_unknown_fields()));
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn type_id(&self) -> ::std::any::TypeId {
::std::any::TypeId::of::<ScenarioDataStoreInitRequest>()
}
fn as_any(&self) -> &::std::any::Any {
self as &::std::any::Any
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
::protobuf::MessageStatic::descriptor_static(None::<Self>)
}
}
impl ::protobuf::MessageStatic for ScenarioDataStoreInitRequest {
fn new() -> ScenarioDataStoreInitRequest {
ScenarioDataStoreInitRequest::new()
}
fn descriptor_static(_: ::std::option::Option<ScenarioDataStoreInitRequest>) -> &'static ::protobuf::reflect::MessageDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
};
unsafe {
descriptor.get(|| {
let fields = ::std::vec::Vec::new();
::protobuf::reflect::MessageDescriptor::new::<ScenarioDataStoreInitRequest>(
"ScenarioDataStoreInitRequest",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for ScenarioDataStoreInitRequest {
fn clear(&mut self) {
self.unknown_fields.clear();
}
}
impl ::std::cmp::PartialEq for ScenarioDataStoreInitRequest {
fn eq(&self, other: &ScenarioDataStoreInitRequest) -> bool {
self.unknown_fields == other.unknown_fields
}
}
impl ::std::fmt::Debug for ScenarioDataStoreInitRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
#[derive(Clone,Default)]
pub struct SpecDataStoreInitRequest {
// special fields
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::std::cell::Cell<u32>,
}
// see codegen.rs for the explanation why impl Sync explicitly
unsafe impl ::std::marker::Sync for SpecDataStoreInitRequest {}
impl SpecDataStoreInitRequest {
pub fn new() -> SpecDataStoreInitRequest {
::std::default::Default::default()
}
pub fn default_instance() -> &'static SpecDataStoreInitRequest {
static mut instance: ::protobuf::lazy::Lazy<SpecDataStoreInitRequest> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const SpecDataStoreInitRequest,
};
unsafe {
instance.get(|| {
SpecDataStoreInitRequest {
unknown_fields: ::protobuf::UnknownFields::new(),
cached_size: ::std::cell::Cell::new(0),
}
})
}
}
}
impl ::protobuf::Message for SpecDataStoreInitRequest {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
while !try!(is.eof()) {
let (field_number, wire_type) = try!(is.read_tag_unpack());
match field_number {
_ => {
try!(::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields()));
},
};
}
::std::result::Result::Ok(())
}
// Compute sizes of nested messages
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
try!(os.write_unknown_fields(self.get_unknown_fields()));
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn type_id(&self) -> ::std::any::TypeId {
::std::any::TypeId::of::<SpecDataStoreInitRequest>()
}
fn as_any(&self) -> &::std::any::Any {
self as &::std::any::Any
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
::protobuf::MessageStatic::descriptor_static(None::<Self>)
}
}
impl ::protobuf::MessageStatic for SpecDataStoreInitRequest {
fn new() -> SpecDataStoreInitRequest {
SpecDataStoreInitRequest::new()
}
fn descriptor_static(_: ::std::option::Option<SpecDataStoreInitRequest>) -> &'static ::protobuf::reflect::MessageDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
};
unsafe {
descriptor.get(|| {
let fields = ::std::vec::Vec::new();
::protobuf::reflect::MessageDescriptor::new::<SpecDataStoreInitRequest>(
"SpecDataStoreInitRequest",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for SpecDataStoreInitRequest {
fn clear(&mut self) {
self.unknown_fields.clear();
}
}
impl ::std::cmp::PartialEq for SpecDataStoreInitRequest {
fn eq(&self, other: &SpecDataStoreInitRequest) -> bool {
self.unknown_fields == other.unknown_fields
}
}
impl ::std::fmt::Debug for SpecDataStoreInitRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
#[derive(Clone,Default)]
pub struct SuiteDataStoreInitRequest {
// special fields
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::std::cell::Cell<u32>,
}
// see codegen.rs for the explanation why impl Sync explicitly
unsafe impl ::std::marker::Sync for SuiteDataStoreInitRequest {}
impl SuiteDataStoreInitRequest {
pub fn new() -> SuiteDataStoreInitRequest {
::std::default::Default::default()
}
pub fn default_instance() -> &'static SuiteDataStoreInitRequest {
static mut instance: ::protobuf::lazy::Lazy<SuiteDataStoreInitRequest> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const SuiteDataStoreInitRequest,
};
unsafe {
instance.get(|| {
SuiteDataStoreInitRequest {
unknown_fields: ::protobuf::UnknownFields::new(),
cached_size: ::std::cell::Cell::new(0),
}
})
}
}
}
impl ::protobuf::Message for SuiteDataStoreInitRequest {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
while !try!(is.eof()) {
let (field_number, wire_type) = try!(is.read_tag_unpack());
match field_number {
_ => {
try!(::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields()));
},
};
}
::std::result::Result::Ok(())
}
// Compute sizes of nested messages
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
try!(os.write_unknown_fields(self.get_unknown_fields()));
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn type_id(&self) -> ::std::any::TypeId {
::std::any::TypeId::of::<SuiteDataStoreInitRequest>()
}
fn as_any(&self) -> &::std::any::Any {
self as &::std::any::Any
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
::protobuf::MessageStatic::descriptor_static(None::<Self>)
}
}
impl ::protobuf::MessageStatic for SuiteDataStoreInitRequest {
fn new() -> SuiteDataStoreInitRequest {
SuiteDataStoreInitRequest::new()
}
fn descriptor_static(_: ::std::option::Option<SuiteDataStoreInitRequest>) -> &'static ::protobuf::reflect::MessageDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
};
unsafe {
descriptor.get(|| {
let fields = ::std::vec::Vec::new();
::protobuf::reflect::MessageDescriptor::new::<SuiteDataStoreInitRequest>(
"SuiteDataStoreInitRequest",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for SuiteDataStoreInitRequest {
fn clear(&mut self) {
self.unknown_fields.clear();
}
}
impl ::std::cmp::PartialEq for SuiteDataStoreInitRequest {
fn eq(&self, other: &SuiteDataStoreInitRequest) -> bool {
self.unknown_fields == other.unknown_fields
}
}
impl ::std::fmt::Debug for SuiteDataStoreInitRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
#[derive(Clone,Default)]
pub struct ParameterPosition {
// message fields
oldPosition: ::std::option::Option<i32>,
newPosition: ::std::option::Option<i32>,
// special fields
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::std::cell::Cell<u32>,
}
// see codegen.rs for the explanation why impl Sync explicitly
unsafe impl ::std::marker::Sync for ParameterPosition {}
impl ParameterPosition {
pub fn new() -> ParameterPosition {
::std::default::Default::default()
}
pub fn default_instance() -> &'static ParameterPosition {
static mut instance: ::protobuf::lazy::Lazy<ParameterPosition> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ParameterPosition,
};
unsafe {
instance.get(|| {
ParameterPosition {
oldPosition: ::std::option::Option::None,
newPosition: ::std::option::Option::None,
unknown_fields: ::protobuf::UnknownFields::new(),
cached_size: ::std::cell::Cell::new(0),
}
})
}
}
// required int32 oldPosition = 1;
pub fn clear_oldPosition(&mut self) {
self.oldPosition = ::std::option::Option::None;
}
pub fn has_oldPosition(&self) -> bool {
self.oldPosition.is_some()
}
// Param is passed by value, moved
pub fn set_oldPosition(&mut self, v: i32) {
self.oldPosition = ::std::option::Option::Some(v);
}
pub fn get_oldPosition(&self) -> i32 {
self.oldPosition.unwrap_or(0)
}
// required int32 newPosition = 2;
pub fn clear_newPosition(&mut self) {
self.newPosition = ::std::option::Option::None;
}
pub fn has_newPosition(&self) -> bool {
self.newPosition.is_some()
}
// Param is passed by value, moved
pub fn set_newPosition(&mut self, v: i32) {
self.newPosition = ::std::option::Option::Some(v);
}
pub fn get_newPosition(&self) -> i32 {
self.newPosition.unwrap_or(0)
}
}
impl ::protobuf::Message for ParameterPosition {
fn is_initialized(&self) -> bool {
if self.oldPosition.is_none() {
return false;
};
if self.newPosition.is_none() {
return false;
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
while !try!(is.eof()) {
let (field_number, wire_type) = try!(is.read_tag_unpack());
match field_number {
1 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
};
let tmp = try!(is.read_int32());
self.oldPosition = ::std::option::Option::Some(tmp);
},
2 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
};
let tmp = try!(is.read_int32());
self.newPosition = ::std::option::Option::Some(tmp);
},
_ => {
try!(::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields()));
},
};
}
::std::result::Result::Ok(())
}
// Compute sizes of nested messages
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
for value in &self.oldPosition {
my_size += ::protobuf::rt::value_size(1, *value, ::protobuf::wire_format::WireTypeVarint);
};
for value in &self.newPosition {
my_size += ::protobuf::rt::value_size(2, *value, ::protobuf::wire_format::WireTypeVarint);
};
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
if let Some(v) = self.oldPosition {
try!(os.write_int32(1, v));
};
if let Some(v) = self.newPosition {
try!(os.write_int32(2, v));
};
try!(os.write_unknown_fields(self.get_unknown_fields()));
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn type_id(&self) -> ::std::any::TypeId {
::std::any::TypeId::of::<ParameterPosition>()
}
fn as_any(&self) -> &::std::any::Any {
self as &::std::any::Any
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
::protobuf::MessageStatic::descriptor_static(None::<Self>)
}
}
impl ::protobuf::MessageStatic for ParameterPosition {
fn new() -> ParameterPosition {
ParameterPosition::new()
}
fn descriptor_static(_: ::std::option::Option<ParameterPosition>) -> &'static ::protobuf::reflect::MessageDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
};
unsafe {
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_i32_accessor(
"oldPosition",
ParameterPosition::has_oldPosition,
ParameterPosition::get_oldPosition,
));
fields.push(::protobuf::reflect::accessor::make_singular_i32_accessor(
"newPosition",
ParameterPosition::has_newPosition,
ParameterPosition::get_newPosition,
));
::protobuf::reflect::MessageDescriptor::new::<ParameterPosition>(
"ParameterPosition",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for ParameterPosition {
fn clear(&mut self) {
self.clear_oldPosition();
self.clear_newPosition();
self.unknown_fields.clear();
}
}
impl ::std::cmp::PartialEq for ParameterPosition {
fn eq(&self, other: &ParameterPosition) -> bool {
self.oldPosition == other.oldPosition &&
self.newPosition == other.newPosition &&
self.unknown_fields == other.unknown_fields
}
}
impl ::std::fmt::Debug for ParameterPosition {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
#[derive(Clone,Default)]
pub struct RefactorRequest {
// message fields
oldStepValue: ::protobuf::SingularPtrField<super::spec::ProtoStepValue>,
newStepValue: ::protobuf::SingularPtrField<super::spec::ProtoStepValue>,
paramPositions: ::protobuf::RepeatedField<ParameterPosition>,
// special fields
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::std::cell::Cell<u32>,
}
// see codegen.rs for the explanation why impl Sync explicitly
unsafe impl ::std::marker::Sync for RefactorRequest {}
impl RefactorRequest {
pub fn new() -> RefactorRequest {
::std::default::Default::default()
}
pub fn default_instance() -> &'static RefactorRequest {
static mut instance: ::protobuf::lazy::Lazy<RefactorRequest> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const RefactorRequest,
};
unsafe {
instance.get(|| {
RefactorRequest {
oldStepValue: ::protobuf::SingularPtrField::none(),
newStepValue: ::protobuf::SingularPtrField::none(),
paramPositions: ::protobuf::RepeatedField::new(),
unknown_fields: ::protobuf::UnknownFields::new(),
cached_size: ::std::cell::Cell::new(0),
}
})
}
}
// required .gauge.messages.ProtoStepValue oldStepValue = 1;
pub fn clear_oldStepValue(&mut self) {
self.oldStepValue.clear();
}
pub fn has_oldStepValue(&self) -> bool {
self.oldStepValue.is_some()
}
// Param is passed by value, moved
pub fn set_oldStepValue(&mut self, v: super::spec::ProtoStepValue) {
self.oldStepValue = ::protobuf::SingularPtrField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_oldStepValue(&mut self) -> &mut super::spec::ProtoStepValue {
if self.oldStepValue.is_none() {
self.oldStepValue.set_default();
};
self.oldStepValue.as_mut().unwrap()
}
// Take field
pub fn take_oldStepValue(&mut self) -> super::spec::ProtoStepValue {
self.oldStepValue.take().unwrap_or_else(|| super::spec::ProtoStepValue::new())
}
pub fn get_oldStepValue(&self) -> &super::spec::ProtoStepValue {
self.oldStepValue.as_ref().unwrap_or_else(|| super::spec::ProtoStepValue::default_instance())
}
// required .gauge.messages.ProtoStepValue newStepValue = 2;
pub fn clear_newStepValue(&mut self) {
self.newStepValue.clear();
}
pub fn has_newStepValue(&self) -> bool {
self.newStepValue.is_some()
}
// Param is passed by value, moved
pub fn set_newStepValue(&mut self, v: super::spec::ProtoStepValue) {
self.newStepValue = ::protobuf::SingularPtrField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_newStepValue(&mut self) -> &mut super::spec::ProtoStepValue {
if self.newStepValue.is_none() {
self.newStepValue.set_default();
};
self.newStepValue.as_mut().unwrap()
}
// Take field
pub fn take_newStepValue(&mut self) -> super::spec::ProtoStepValue {
self.newStepValue.take().unwrap_or_else(|| super::spec::ProtoStepValue::new())
}
pub fn get_newStepValue(&self) -> &super::spec::ProtoStepValue {
self.newStepValue.as_ref().unwrap_or_else(|| super::spec::ProtoStepValue::default_instance())
}
// repeated .gauge.messages.ParameterPosition paramPositions = 3;
pub fn clear_paramPositions(&mut self) {
self.paramPositions.clear();
}
// Param is passed by value, moved
pub fn set_paramPositions(&mut self, v: ::protobuf::RepeatedField<ParameterPosition>) {
self.paramPositions = v;
}
// Mutable pointer to the field.
pub fn mut_paramPositions(&mut self) -> &mut ::protobuf::RepeatedField<ParameterPosition> {
&mut self.paramPositions
}
// Take field
pub fn take_paramPositions(&mut self) -> ::protobuf::RepeatedField<ParameterPosition> {
::std::mem::replace(&mut self.paramPositions, ::protobuf::RepeatedField::new())
}
pub fn get_paramPositions(&self) -> &[ParameterPosition] {
&self.paramPositions
}
}
impl ::protobuf::Message for RefactorRequest {
fn is_initialized(&self) -> bool {
if self.oldStepValue.is_none() {
return false;
};
if self.newStepValue.is_none() {
return false;
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
while !try!(is.eof()) {
let (field_number, wire_type) = try!(is.read_tag_unpack());
match field_number {
1 => {
try!(::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.oldStepValue));
},
2 => {
try!(::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.newStepValue));
},
3 => {
try!(::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.paramPositions));
},
_ => {
try!(::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields()));
},
};
}
::std::result::Result::Ok(())
}
// Compute sizes of nested messages
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
for value in &self.oldStepValue {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
for value in &self.newStepValue {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
for value in &self.paramPositions {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
if let Some(v) = self.oldStepValue.as_ref() {
try!(os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited));
try!(os.write_raw_varint32(v.get_cached_size()));
try!(v.write_to_with_cached_sizes(os));
};
if let Some(v) = self.newStepValue.as_ref() {
try!(os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited));
try!(os.write_raw_varint32(v.get_cached_size()));
try!(v.write_to_with_cached_sizes(os));
};
for v in &self.paramPositions {
try!(os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited));
try!(os.write_raw_varint32(v.get_cached_size()));
try!(v.write_to_with_cached_sizes(os));
};
try!(os.write_unknown_fields(self.get_unknown_fields()));
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn type_id(&self) -> ::std::any::TypeId {
::std::any::TypeId::of::<RefactorRequest>()
}
fn as_any(&self) -> &::std::any::Any {
self as &::std::any::Any
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
::protobuf::MessageStatic::descriptor_static(None::<Self>)
}
}
impl ::protobuf::MessageStatic for RefactorRequest {
fn new() -> RefactorRequest {
RefactorRequest::new()
}
fn descriptor_static(_: ::std::option::Option<RefactorRequest>) -> &'static ::protobuf::reflect::MessageDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
};
unsafe {
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor(
"oldStepValue",
RefactorRequest::has_oldStepValue,
RefactorRequest::get_oldStepValue,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor(
"newStepValue",
RefactorRequest::has_newStepValue,
RefactorRequest::get_newStepValue,
));
fields.push(::protobuf::reflect::accessor::make_repeated_message_accessor(
"paramPositions",
RefactorRequest::get_paramPositions,
));
::protobuf::reflect::MessageDescriptor::new::<RefactorRequest>(
"RefactorRequest",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for RefactorRequest {
fn clear(&mut self) {
self.clear_oldStepValue();
self.clear_newStepValue();
self.clear_paramPositions();
self.unknown_fields.clear();
}
}
impl ::std::cmp::PartialEq for RefactorRequest {
fn eq(&self, other: &RefactorRequest) -> bool {
self.oldStepValue == other.oldStepValue &&
self.newStepValue == other.newStepValue &&
self.paramPositions == other.paramPositions &&
self.unknown_fields == other.unknown_fields
}
}
impl ::std::fmt::Debug for RefactorRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
#[derive(Clone,Default)]
pub struct RefactorResponse {
// message fields
success: ::std::option::Option<bool>,
error: ::protobuf::SingularField<::std::string::String>,
filesChanged: ::protobuf::RepeatedField<::std::string::String>,
// special fields
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::std::cell::Cell<u32>,
}
// see codegen.rs for the explanation why impl Sync explicitly
unsafe impl ::std::marker::Sync for RefactorResponse {}
impl RefactorResponse {
pub fn new() -> RefactorResponse {
::std::default::Default::default()
}
pub fn default_instance() -> &'static RefactorResponse {
static mut instance: ::protobuf::lazy::Lazy<RefactorResponse> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const RefactorResponse,
};
unsafe {
instance.get(|| {
RefactorResponse {
success: ::std::option::Option::None,
error: ::protobuf::SingularField::none(),
filesChanged: ::protobuf::RepeatedField::new(),
unknown_fields: ::protobuf::UnknownFields::new(),
cached_size: ::std::cell::Cell::new(0),
}
})
}
}
// required bool success = 1;
pub fn clear_success(&mut self) {
self.success = ::std::option::Option::None;
}
pub fn has_success(&self) -> bool {
self.success.is_some()
}
// Param is passed by value, moved
pub fn set_success(&mut self, v: bool) {
self.success = ::std::option::Option::Some(v);
}
pub fn get_success(&self) -> bool {
self.success.unwrap_or(false)
}
// optional string error = 2;
pub fn clear_error(&mut self) {
self.error.clear();
}
pub fn has_error(&self) -> bool {
self.error.is_some()
}
// Param is passed by value, moved
pub fn set_error(&mut self, v: ::std::string::String) {
self.error = ::protobuf::SingularField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_error(&mut self) -> &mut ::std::string::String {
if self.error.is_none() {
self.error.set_default();
};
self.error.as_mut().unwrap()
}
// Take field
pub fn take_error(&mut self) -> ::std::string::String {
self.error.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn get_error(&self) -> &str {
match self.error.as_ref() {
Some(v) => &v,
None => "",
}
}
// repeated string filesChanged = 3;
pub fn clear_filesChanged(&mut self) {
self.filesChanged.clear();
}
// Param is passed by value, moved
pub fn set_filesChanged(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) {
self.filesChanged = v;
}
// Mutable pointer to the field.
pub fn mut_filesChanged(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> {
&mut self.filesChanged
}
// Take field
pub fn take_filesChanged(&mut self) -> ::protobuf::RepeatedField<::std::string::String> {
::std::mem::replace(&mut self.filesChanged, ::protobuf::RepeatedField::new())
}
pub fn get_filesChanged(&self) -> &[::std::string::String] {
&self.filesChanged
}
}
impl ::protobuf::Message for RefactorResponse {
fn is_initialized(&self) -> bool {
if self.success.is_none() {
return false;
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
while !try!(is.eof()) {
let (field_number, wire_type) = try!(is.read_tag_unpack());
match field_number {
1 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
};
let tmp = try!(is.read_bool());
self.success = ::std::option::Option::Some(tmp);
},
2 => {
try!(::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.error));
},
3 => {
try!(::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.filesChanged));
},
_ => {
try!(::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields()));
},
};
}
::std::result::Result::Ok(())
}
// Compute sizes of nested messages
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if self.success.is_some() {
my_size += 2;
};
for value in &self.error {
my_size += ::protobuf::rt::string_size(2, &value);
};
for value in &self.filesChanged {
my_size += ::protobuf::rt::string_size(3, &value);
};
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
if let Some(v) = self.success {
try!(os.write_bool(1, v));
};
if let Some(v) = self.error.as_ref() {
try!(os.write_string(2, &v));
};
for v in &self.filesChanged {
try!(os.write_string(3, &v));
};
try!(os.write_unknown_fields(self.get_unknown_fields()));
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn type_id(&self) -> ::std::any::TypeId {
::std::any::TypeId::of::<RefactorResponse>()
}
fn as_any(&self) -> &::std::any::Any {
self as &::std::any::Any
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
::protobuf::MessageStatic::descriptor_static(None::<Self>)
}
}
impl ::protobuf::MessageStatic for RefactorResponse {
fn new() -> RefactorResponse {
RefactorResponse::new()
}
fn descriptor_static(_: ::std::option::Option<RefactorResponse>) -> &'static ::protobuf::reflect::MessageDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
};
unsafe {
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_bool_accessor(
"success",
RefactorResponse::has_success,
RefactorResponse::get_success,
));
fields.push(::protobuf::reflect::accessor::make_singular_string_accessor(
"error",
RefactorResponse::has_error,
RefactorResponse::get_error,
));
fields.push(::protobuf::reflect::accessor::make_repeated_string_accessor(
"filesChanged",
RefactorResponse::get_filesChanged,
));
::protobuf::reflect::MessageDescriptor::new::<RefactorResponse>(
"RefactorResponse",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for RefactorResponse {
fn clear(&mut self) {
self.clear_success();
self.clear_error();
self.clear_filesChanged();
self.unknown_fields.clear();
}
}
impl ::std::cmp::PartialEq for RefactorResponse {
fn eq(&self, other: &RefactorResponse) -> bool {
self.success == other.success &&
self.error == other.error &&
self.filesChanged == other.filesChanged &&
self.unknown_fields == other.unknown_fields
}
}
impl ::std::fmt::Debug for RefactorResponse {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
#[derive(Clone,Default)]
pub struct StepNameRequest {
// message fields
stepValue: ::protobuf::SingularField<::std::string::String>,
// special fields
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::std::cell::Cell<u32>,
}
// see codegen.rs for the explanation why impl Sync explicitly
unsafe impl ::std::marker::Sync for StepNameRequest {}
impl StepNameRequest {
pub fn new() -> StepNameRequest {
::std::default::Default::default()
}
pub fn default_instance() -> &'static StepNameRequest {
static mut instance: ::protobuf::lazy::Lazy<StepNameRequest> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const StepNameRequest,
};
unsafe {
instance.get(|| {
StepNameRequest {
stepValue: ::protobuf::SingularField::none(),
unknown_fields: ::protobuf::UnknownFields::new(),
cached_size: ::std::cell::Cell::new(0),
}
})
}
}
// required string stepValue = 1;
pub fn clear_stepValue(&mut self) {
self.stepValue.clear();
}
pub fn has_stepValue(&self) -> bool {
self.stepValue.is_some()
}
// Param is passed by value, moved
pub fn set_stepValue(&mut self, v: ::std::string::String) {
self.stepValue = ::protobuf::SingularField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_stepValue(&mut self) -> &mut ::std::string::String {
if self.stepValue.is_none() {
self.stepValue.set_default();
};
self.stepValue.as_mut().unwrap()
}
// Take field
pub fn take_stepValue(&mut self) -> ::std::string::String {
self.stepValue.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn get_stepValue(&self) -> &str {
match self.stepValue.as_ref() {
Some(v) => &v,
None => "",
}
}
}
impl ::protobuf::Message for StepNameRequest {
fn is_initialized(&self) -> bool {
if self.stepValue.is_none() {
return false;
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
while !try!(is.eof()) {
let (field_number, wire_type) = try!(is.read_tag_unpack());
match field_number {
1 => {
try!(::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.stepValue));
},
_ => {
try!(::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields()));
},
};
}
::std::result::Result::Ok(())
}
// Compute sizes of nested messages
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
for value in &self.stepValue {
my_size += ::protobuf::rt::string_size(1, &value);
};
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
if let Some(v) = self.stepValue.as_ref() {
try!(os.write_string(1, &v));
};
try!(os.write_unknown_fields(self.get_unknown_fields()));
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn type_id(&self) -> ::std::any::TypeId {
::std::any::TypeId::of::<StepNameRequest>()
}
fn as_any(&self) -> &::std::any::Any {
self as &::std::any::Any
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
::protobuf::MessageStatic::descriptor_static(None::<Self>)
}
}
impl ::protobuf::MessageStatic for StepNameRequest {
fn new() -> StepNameRequest {
StepNameRequest::new()
}
fn descriptor_static(_: ::std::option::Option<StepNameRequest>) -> &'static ::protobuf::reflect::MessageDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
};
unsafe {
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_string_accessor(
"stepValue",
StepNameRequest::has_stepValue,
StepNameRequest::get_stepValue,
));
::protobuf::reflect::MessageDescriptor::new::<StepNameRequest>(
"StepNameRequest",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for StepNameRequest {
fn clear(&mut self) {
self.clear_stepValue();
self.unknown_fields.clear();
}
}
impl ::std::cmp::PartialEq for StepNameRequest {
fn eq(&self, other: &StepNameRequest) -> bool {
self.stepValue == other.stepValue &&
self.unknown_fields == other.unknown_fields
}
}
impl ::std::fmt::Debug for StepNameRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
#[derive(Clone,Default)]
pub struct StepNameResponse {
// message fields
isStepPresent: ::std::option::Option<bool>,
stepName: ::protobuf::RepeatedField<::std::string::String>,
hasAlias: ::std::option::Option<bool>,
// special fields
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::std::cell::Cell<u32>,
}
// see codegen.rs for the explanation why impl Sync explicitly
unsafe impl ::std::marker::Sync for StepNameResponse {}
impl StepNameResponse {
pub fn new() -> StepNameResponse {
::std::default::Default::default()
}
pub fn default_instance() -> &'static StepNameResponse {
static mut instance: ::protobuf::lazy::Lazy<StepNameResponse> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const StepNameResponse,
};
unsafe {
instance.get(|| {
StepNameResponse {
isStepPresent: ::std::option::Option::None,
stepName: ::protobuf::RepeatedField::new(),
hasAlias: ::std::option::Option::None,
unknown_fields: ::protobuf::UnknownFields::new(),
cached_size: ::std::cell::Cell::new(0),
}
})
}
}
// required bool isStepPresent = 1;
pub fn clear_isStepPresent(&mut self) {
self.isStepPresent = ::std::option::Option::None;
}
pub fn has_isStepPresent(&self) -> bool {
self.isStepPresent.is_some()
}
// Param is passed by value, moved
pub fn set_isStepPresent(&mut self, v: bool) {
self.isStepPresent = ::std::option::Option::Some(v);
}
pub fn get_isStepPresent(&self) -> bool {
self.isStepPresent.unwrap_or(false)
}
// repeated string stepName = 2;
pub fn clear_stepName(&mut self) {
self.stepName.clear();
}
// Param is passed by value, moved
pub fn set_stepName(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) {
self.stepName = v;
}
// Mutable pointer to the field.
pub fn mut_stepName(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> {
&mut self.stepName
}
// Take field
pub fn take_stepName(&mut self) -> ::protobuf::RepeatedField<::std::string::String> {
::std::mem::replace(&mut self.stepName, ::protobuf::RepeatedField::new())
}
pub fn get_stepName(&self) -> &[::std::string::String] {
&self.stepName
}
// required bool hasAlias = 3;
pub fn clear_hasAlias(&mut self) {
self.hasAlias = ::std::option::Option::None;
}
pub fn has_hasAlias(&self) -> bool {
self.hasAlias.is_some()
}
// Param is passed by value, moved
pub fn set_hasAlias(&mut self, v: bool) {
self.hasAlias = ::std::option::Option::Some(v);
}
pub fn get_hasAlias(&self) -> bool {
self.hasAlias.unwrap_or(false)
}
}
impl ::protobuf::Message for StepNameResponse {
fn is_initialized(&self) -> bool {
if self.isStepPresent.is_none() {
return false;
};
if self.hasAlias.is_none() {
return false;
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
while !try!(is.eof()) {
let (field_number, wire_type) = try!(is.read_tag_unpack());
match field_number {
1 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
};
let tmp = try!(is.read_bool());
self.isStepPresent = ::std::option::Option::Some(tmp);
},
2 => {
try!(::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.stepName));
},
3 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
};
let tmp = try!(is.read_bool());
self.hasAlias = ::std::option::Option::Some(tmp);
},
_ => {
try!(::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields()));
},
};
}
::std::result::Result::Ok(())
}
// Compute sizes of nested messages
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if self.isStepPresent.is_some() {
my_size += 2;
};
for value in &self.stepName {
my_size += ::protobuf::rt::string_size(2, &value);
};
if self.hasAlias.is_some() {
my_size += 2;
};
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
if let Some(v) = self.isStepPresent {
try!(os.write_bool(1, v));
};
for v in &self.stepName {
try!(os.write_string(2, &v));
};
if let Some(v) = self.hasAlias {
try!(os.write_bool(3, v));
};
try!(os.write_unknown_fields(self.get_unknown_fields()));
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn type_id(&self) -> ::std::any::TypeId {
::std::any::TypeId::of::<StepNameResponse>()
}
fn as_any(&self) -> &::std::any::Any {
self as &::std::any::Any
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
::protobuf::MessageStatic::descriptor_static(None::<Self>)
}
}
impl ::protobuf::MessageStatic for StepNameResponse {
fn new() -> StepNameResponse {
StepNameResponse::new()
}
fn descriptor_static(_: ::std::option::Option<StepNameResponse>) -> &'static ::protobuf::reflect::MessageDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
};
unsafe {
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_bool_accessor(
"isStepPresent",
StepNameResponse::has_isStepPresent,
StepNameResponse::get_isStepPresent,
));
fields.push(::protobuf::reflect::accessor::make_repeated_string_accessor(
"stepName",
StepNameResponse::get_stepName,
));
fields.push(::protobuf::reflect::accessor::make_singular_bool_accessor(
"hasAlias",
StepNameResponse::has_hasAlias,
StepNameResponse::get_hasAlias,
));
::protobuf::reflect::MessageDescriptor::new::<StepNameResponse>(
"StepNameResponse",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for StepNameResponse {
fn clear(&mut self) {
self.clear_isStepPresent();
self.clear_stepName();
self.clear_hasAlias();
self.unknown_fields.clear();
}
}
impl ::std::cmp::PartialEq for StepNameResponse {
fn eq(&self, other: &StepNameResponse) -> bool {
self.isStepPresent == other.isStepPresent &&
self.stepName == other.stepName &&
self.hasAlias == other.hasAlias &&
self.unknown_fields == other.unknown_fields
}
}
impl ::std::fmt::Debug for StepNameResponse {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
#[derive(Clone,Default)]
pub struct UnsupportedMessageResponse {
// message fields
message: ::protobuf::SingularField<::std::string::String>,
// special fields
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::std::cell::Cell<u32>,
}
// see codegen.rs for the explanation why impl Sync explicitly
unsafe impl ::std::marker::Sync for UnsupportedMessageResponse {}
impl UnsupportedMessageResponse {
pub fn new() -> UnsupportedMessageResponse {
::std::default::Default::default()
}
pub fn default_instance() -> &'static UnsupportedMessageResponse {
static mut instance: ::protobuf::lazy::Lazy<UnsupportedMessageResponse> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const UnsupportedMessageResponse,
};
unsafe {
instance.get(|| {
UnsupportedMessageResponse {
message: ::protobuf::SingularField::none(),
unknown_fields: ::protobuf::UnknownFields::new(),
cached_size: ::std::cell::Cell::new(0),
}
})
}
}
// optional string message = 1;
pub fn clear_message(&mut self) {
self.message.clear();
}
pub fn has_message(&self) -> bool {
self.message.is_some()
}
// Param is passed by value, moved
pub fn set_message(&mut self, v: ::std::string::String) {
self.message = ::protobuf::SingularField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_message(&mut self) -> &mut ::std::string::String {
if self.message.is_none() {
self.message.set_default();
};
self.message.as_mut().unwrap()
}
// Take field
pub fn take_message(&mut self) -> ::std::string::String {
self.message.take().unwrap_or_else(|| ::std::string::String::new())
}
pub fn get_message(&self) -> &str {
match self.message.as_ref() {
Some(v) => &v,
None => "",
}
}
}
impl ::protobuf::Message for UnsupportedMessageResponse {
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
while !try!(is.eof()) {
let (field_number, wire_type) = try!(is.read_tag_unpack());
match field_number {
1 => {
try!(::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.message));
},
_ => {
try!(::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields()));
},
};
}
::std::result::Result::Ok(())
}
// Compute sizes of nested messages
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
for value in &self.message {
my_size += ::protobuf::rt::string_size(1, &value);
};
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
if let Some(v) = self.message.as_ref() {
try!(os.write_string(1, &v));
};
try!(os.write_unknown_fields(self.get_unknown_fields()));
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn type_id(&self) -> ::std::any::TypeId {
::std::any::TypeId::of::<UnsupportedMessageResponse>()
}
fn as_any(&self) -> &::std::any::Any {
self as &::std::any::Any
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
::protobuf::MessageStatic::descriptor_static(None::<Self>)
}
}
impl ::protobuf::MessageStatic for UnsupportedMessageResponse {
fn new() -> UnsupportedMessageResponse {
UnsupportedMessageResponse::new()
}
fn descriptor_static(_: ::std::option::Option<UnsupportedMessageResponse>) -> &'static ::protobuf::reflect::MessageDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
};
unsafe {
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_string_accessor(
"message",
UnsupportedMessageResponse::has_message,
UnsupportedMessageResponse::get_message,
));
::protobuf::reflect::MessageDescriptor::new::<UnsupportedMessageResponse>(
"UnsupportedMessageResponse",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for UnsupportedMessageResponse {
fn clear(&mut self) {
self.clear_message();
self.unknown_fields.clear();
}
}
impl ::std::cmp::PartialEq for UnsupportedMessageResponse {
fn eq(&self, other: &UnsupportedMessageResponse) -> bool {
self.message == other.message &&
self.unknown_fields == other.unknown_fields
}
}
impl ::std::fmt::Debug for UnsupportedMessageResponse {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
#[derive(Clone,Default)]
pub struct Message {
// message fields
messageType: ::std::option::Option<Message_MessageType>,
messageId: ::std::option::Option<i64>,
executionStartingRequest: ::protobuf::SingularPtrField<ExecutionStartingRequest>,
specExecutionStartingRequest: ::protobuf::SingularPtrField<SpecExecutionStartingRequest>,
specExecutionEndingRequest: ::protobuf::SingularPtrField<SpecExecutionEndingRequest>,
scenarioExecutionStartingRequest: ::protobuf::SingularPtrField<ScenarioExecutionStartingRequest>,
scenarioExecutionEndingRequest: ::protobuf::SingularPtrField<ScenarioExecutionEndingRequest>,
stepExecutionStartingRequest: ::protobuf::SingularPtrField<StepExecutionStartingRequest>,
stepExecutionEndingRequest: ::protobuf::SingularPtrField<StepExecutionEndingRequest>,
executeStepRequest: ::protobuf::SingularPtrField<ExecuteStepRequest>,
executionEndingRequest: ::protobuf::SingularPtrField<ExecutionEndingRequest>,
stepValidateRequest: ::protobuf::SingularPtrField<StepValidateRequest>,
stepValidateResponse: ::protobuf::SingularPtrField<StepValidateResponse>,
executionStatusResponse: ::protobuf::SingularPtrField<ExecutionStatusResponse>,
stepNamesRequest: ::protobuf::SingularPtrField<StepNamesRequest>,
stepNamesResponse: ::protobuf::SingularPtrField<StepNamesResponse>,
suiteExecutionResult: ::protobuf::SingularPtrField<SuiteExecutionResult>,
killProcessRequest: ::protobuf::SingularPtrField<KillProcessRequest>,
scenarioDataStoreInitRequest: ::protobuf::SingularPtrField<ScenarioDataStoreInitRequest>,
specDataStoreInitRequest: ::protobuf::SingularPtrField<SpecDataStoreInitRequest>,
suiteDataStoreInitRequest: ::protobuf::SingularPtrField<SuiteDataStoreInitRequest>,
stepNameRequest: ::protobuf::SingularPtrField<StepNameRequest>,
stepNameResponse: ::protobuf::SingularPtrField<StepNameResponse>,
refactorRequest: ::protobuf::SingularPtrField<RefactorRequest>,
refactorResponse: ::protobuf::SingularPtrField<RefactorResponse>,
unsupportedMessageResponse: ::protobuf::SingularPtrField<UnsupportedMessageResponse>,
// special fields
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::std::cell::Cell<u32>,
}
// see codegen.rs for the explanation why impl Sync explicitly
unsafe impl ::std::marker::Sync for Message {}
impl Message {
pub fn new() -> Message {
::std::default::Default::default()
}
pub fn default_instance() -> &'static Message {
static mut instance: ::protobuf::lazy::Lazy<Message> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const Message,
};
unsafe {
instance.get(|| {
Message {
messageType: ::std::option::Option::None,
messageId: ::std::option::Option::None,
executionStartingRequest: ::protobuf::SingularPtrField::none(),
specExecutionStartingRequest: ::protobuf::SingularPtrField::none(),
specExecutionEndingRequest: ::protobuf::SingularPtrField::none(),
scenarioExecutionStartingRequest: ::protobuf::SingularPtrField::none(),
scenarioExecutionEndingRequest: ::protobuf::SingularPtrField::none(),
stepExecutionStartingRequest: ::protobuf::SingularPtrField::none(),
stepExecutionEndingRequest: ::protobuf::SingularPtrField::none(),
executeStepRequest: ::protobuf::SingularPtrField::none(),
executionEndingRequest: ::protobuf::SingularPtrField::none(),
stepValidateRequest: ::protobuf::SingularPtrField::none(),
stepValidateResponse: ::protobuf::SingularPtrField::none(),
executionStatusResponse: ::protobuf::SingularPtrField::none(),
stepNamesRequest: ::protobuf::SingularPtrField::none(),
stepNamesResponse: ::protobuf::SingularPtrField::none(),
suiteExecutionResult: ::protobuf::SingularPtrField::none(),
killProcessRequest: ::protobuf::SingularPtrField::none(),
scenarioDataStoreInitRequest: ::protobuf::SingularPtrField::none(),
specDataStoreInitRequest: ::protobuf::SingularPtrField::none(),
suiteDataStoreInitRequest: ::protobuf::SingularPtrField::none(),
stepNameRequest: ::protobuf::SingularPtrField::none(),
stepNameResponse: ::protobuf::SingularPtrField::none(),
refactorRequest: ::protobuf::SingularPtrField::none(),
refactorResponse: ::protobuf::SingularPtrField::none(),
unsupportedMessageResponse: ::protobuf::SingularPtrField::none(),
unknown_fields: ::protobuf::UnknownFields::new(),
cached_size: ::std::cell::Cell::new(0),
}
})
}
}
// required .gauge.messages.Message.MessageType messageType = 1;
pub fn clear_messageType(&mut self) {
self.messageType = ::std::option::Option::None;
}
pub fn has_messageType(&self) -> bool {
self.messageType.is_some()
}
// Param is passed by value, moved
pub fn set_messageType(&mut self, v: Message_MessageType) {
self.messageType = ::std::option::Option::Some(v);
}
pub fn get_messageType(&self) -> Message_MessageType {
self.messageType.unwrap_or(Message_MessageType::ExecutionStarting)
}
// required int64 messageId = 2;
pub fn clear_messageId(&mut self) {
self.messageId = ::std::option::Option::None;
}
pub fn has_messageId(&self) -> bool {
self.messageId.is_some()
}
// Param is passed by value, moved
pub fn set_messageId(&mut self, v: i64) {
self.messageId = ::std::option::Option::Some(v);
}
pub fn get_messageId(&self) -> i64 {
self.messageId.unwrap_or(0)
}
// optional .gauge.messages.ExecutionStartingRequest executionStartingRequest = 3;
pub fn clear_executionStartingRequest(&mut self) {
self.executionStartingRequest.clear();
}
pub fn has_executionStartingRequest(&self) -> bool {
self.executionStartingRequest.is_some()
}
// Param is passed by value, moved
pub fn set_executionStartingRequest(&mut self, v: ExecutionStartingRequest) {
self.executionStartingRequest = ::protobuf::SingularPtrField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_executionStartingRequest(&mut self) -> &mut ExecutionStartingRequest {
if self.executionStartingRequest.is_none() {
self.executionStartingRequest.set_default();
};
self.executionStartingRequest.as_mut().unwrap()
}
// Take field
pub fn take_executionStartingRequest(&mut self) -> ExecutionStartingRequest {
self.executionStartingRequest.take().unwrap_or_else(|| ExecutionStartingRequest::new())
}
pub fn get_executionStartingRequest(&self) -> &ExecutionStartingRequest {
self.executionStartingRequest.as_ref().unwrap_or_else(|| ExecutionStartingRequest::default_instance())
}
// optional .gauge.messages.SpecExecutionStartingRequest specExecutionStartingRequest = 4;
pub fn clear_specExecutionStartingRequest(&mut self) {
self.specExecutionStartingRequest.clear();
}
pub fn has_specExecutionStartingRequest(&self) -> bool {
self.specExecutionStartingRequest.is_some()
}
// Param is passed by value, moved
pub fn set_specExecutionStartingRequest(&mut self, v: SpecExecutionStartingRequest) {
self.specExecutionStartingRequest = ::protobuf::SingularPtrField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_specExecutionStartingRequest(&mut self) -> &mut SpecExecutionStartingRequest {
if self.specExecutionStartingRequest.is_none() {
self.specExecutionStartingRequest.set_default();
};
self.specExecutionStartingRequest.as_mut().unwrap()
}
// Take field
pub fn take_specExecutionStartingRequest(&mut self) -> SpecExecutionStartingRequest {
self.specExecutionStartingRequest.take().unwrap_or_else(|| SpecExecutionStartingRequest::new())
}
pub fn get_specExecutionStartingRequest(&self) -> &SpecExecutionStartingRequest {
self.specExecutionStartingRequest.as_ref().unwrap_or_else(|| SpecExecutionStartingRequest::default_instance())
}
// optional .gauge.messages.SpecExecutionEndingRequest specExecutionEndingRequest = 5;
pub fn clear_specExecutionEndingRequest(&mut self) {
self.specExecutionEndingRequest.clear();
}
pub fn has_specExecutionEndingRequest(&self) -> bool {
self.specExecutionEndingRequest.is_some()
}
// Param is passed by value, moved
pub fn set_specExecutionEndingRequest(&mut self, v: SpecExecutionEndingRequest) {
self.specExecutionEndingRequest = ::protobuf::SingularPtrField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_specExecutionEndingRequest(&mut self) -> &mut SpecExecutionEndingRequest {
if self.specExecutionEndingRequest.is_none() {
self.specExecutionEndingRequest.set_default();
};
self.specExecutionEndingRequest.as_mut().unwrap()
}
// Take field
pub fn take_specExecutionEndingRequest(&mut self) -> SpecExecutionEndingRequest {
self.specExecutionEndingRequest.take().unwrap_or_else(|| SpecExecutionEndingRequest::new())
}
pub fn get_specExecutionEndingRequest(&self) -> &SpecExecutionEndingRequest {
self.specExecutionEndingRequest.as_ref().unwrap_or_else(|| SpecExecutionEndingRequest::default_instance())
}
// optional .gauge.messages.ScenarioExecutionStartingRequest scenarioExecutionStartingRequest = 6;
pub fn clear_scenarioExecutionStartingRequest(&mut self) {
self.scenarioExecutionStartingRequest.clear();
}
pub fn has_scenarioExecutionStartingRequest(&self) -> bool {
self.scenarioExecutionStartingRequest.is_some()
}
// Param is passed by value, moved
pub fn set_scenarioExecutionStartingRequest(&mut self, v: ScenarioExecutionStartingRequest) {
self.scenarioExecutionStartingRequest = ::protobuf::SingularPtrField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_scenarioExecutionStartingRequest(&mut self) -> &mut ScenarioExecutionStartingRequest {
if self.scenarioExecutionStartingRequest.is_none() {
self.scenarioExecutionStartingRequest.set_default();
};
self.scenarioExecutionStartingRequest.as_mut().unwrap()
}
// Take field
pub fn take_scenarioExecutionStartingRequest(&mut self) -> ScenarioExecutionStartingRequest {
self.scenarioExecutionStartingRequest.take().unwrap_or_else(|| ScenarioExecutionStartingRequest::new())
}
pub fn get_scenarioExecutionStartingRequest(&self) -> &ScenarioExecutionStartingRequest {
self.scenarioExecutionStartingRequest.as_ref().unwrap_or_else(|| ScenarioExecutionStartingRequest::default_instance())
}
// optional .gauge.messages.ScenarioExecutionEndingRequest scenarioExecutionEndingRequest = 7;
pub fn clear_scenarioExecutionEndingRequest(&mut self) {
self.scenarioExecutionEndingRequest.clear();
}
pub fn has_scenarioExecutionEndingRequest(&self) -> bool {
self.scenarioExecutionEndingRequest.is_some()
}
// Param is passed by value, moved
pub fn set_scenarioExecutionEndingRequest(&mut self, v: ScenarioExecutionEndingRequest) {
self.scenarioExecutionEndingRequest = ::protobuf::SingularPtrField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_scenarioExecutionEndingRequest(&mut self) -> &mut ScenarioExecutionEndingRequest {
if self.scenarioExecutionEndingRequest.is_none() {
self.scenarioExecutionEndingRequest.set_default();
};
self.scenarioExecutionEndingRequest.as_mut().unwrap()
}
// Take field
pub fn take_scenarioExecutionEndingRequest(&mut self) -> ScenarioExecutionEndingRequest {
self.scenarioExecutionEndingRequest.take().unwrap_or_else(|| ScenarioExecutionEndingRequest::new())
}
pub fn get_scenarioExecutionEndingRequest(&self) -> &ScenarioExecutionEndingRequest {
self.scenarioExecutionEndingRequest.as_ref().unwrap_or_else(|| ScenarioExecutionEndingRequest::default_instance())
}
// optional .gauge.messages.StepExecutionStartingRequest stepExecutionStartingRequest = 8;
pub fn clear_stepExecutionStartingRequest(&mut self) {
self.stepExecutionStartingRequest.clear();
}
pub fn has_stepExecutionStartingRequest(&self) -> bool {
self.stepExecutionStartingRequest.is_some()
}
// Param is passed by value, moved
pub fn set_stepExecutionStartingRequest(&mut self, v: StepExecutionStartingRequest) {
self.stepExecutionStartingRequest = ::protobuf::SingularPtrField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_stepExecutionStartingRequest(&mut self) -> &mut StepExecutionStartingRequest {
if self.stepExecutionStartingRequest.is_none() {
self.stepExecutionStartingRequest.set_default();
};
self.stepExecutionStartingRequest.as_mut().unwrap()
}
// Take field
pub fn take_stepExecutionStartingRequest(&mut self) -> StepExecutionStartingRequest {
self.stepExecutionStartingRequest.take().unwrap_or_else(|| StepExecutionStartingRequest::new())
}
pub fn get_stepExecutionStartingRequest(&self) -> &StepExecutionStartingRequest {
self.stepExecutionStartingRequest.as_ref().unwrap_or_else(|| StepExecutionStartingRequest::default_instance())
}
// optional .gauge.messages.StepExecutionEndingRequest stepExecutionEndingRequest = 9;
pub fn clear_stepExecutionEndingRequest(&mut self) {
self.stepExecutionEndingRequest.clear();
}
pub fn has_stepExecutionEndingRequest(&self) -> bool {
self.stepExecutionEndingRequest.is_some()
}
// Param is passed by value, moved
pub fn set_stepExecutionEndingRequest(&mut self, v: StepExecutionEndingRequest) {
self.stepExecutionEndingRequest = ::protobuf::SingularPtrField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_stepExecutionEndingRequest(&mut self) -> &mut StepExecutionEndingRequest {
if self.stepExecutionEndingRequest.is_none() {
self.stepExecutionEndingRequest.set_default();
};
self.stepExecutionEndingRequest.as_mut().unwrap()
}
// Take field
pub fn take_stepExecutionEndingRequest(&mut self) -> StepExecutionEndingRequest {
self.stepExecutionEndingRequest.take().unwrap_or_else(|| StepExecutionEndingRequest::new())
}
pub fn get_stepExecutionEndingRequest(&self) -> &StepExecutionEndingRequest {
self.stepExecutionEndingRequest.as_ref().unwrap_or_else(|| StepExecutionEndingRequest::default_instance())
}
// optional .gauge.messages.ExecuteStepRequest executeStepRequest = 10;
pub fn clear_executeStepRequest(&mut self) {
self.executeStepRequest.clear();
}
pub fn has_executeStepRequest(&self) -> bool {
self.executeStepRequest.is_some()
}
// Param is passed by value, moved
pub fn set_executeStepRequest(&mut self, v: ExecuteStepRequest) {
self.executeStepRequest = ::protobuf::SingularPtrField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_executeStepRequest(&mut self) -> &mut ExecuteStepRequest {
if self.executeStepRequest.is_none() {
self.executeStepRequest.set_default();
};
self.executeStepRequest.as_mut().unwrap()
}
// Take field
pub fn take_executeStepRequest(&mut self) -> ExecuteStepRequest {
self.executeStepRequest.take().unwrap_or_else(|| ExecuteStepRequest::new())
}
pub fn get_executeStepRequest(&self) -> &ExecuteStepRequest {
self.executeStepRequest.as_ref().unwrap_or_else(|| ExecuteStepRequest::default_instance())
}
// optional .gauge.messages.ExecutionEndingRequest executionEndingRequest = 11;
pub fn clear_executionEndingRequest(&mut self) {
self.executionEndingRequest.clear();
}
pub fn has_executionEndingRequest(&self) -> bool {
self.executionEndingRequest.is_some()
}
// Param is passed by value, moved
pub fn set_executionEndingRequest(&mut self, v: ExecutionEndingRequest) {
self.executionEndingRequest = ::protobuf::SingularPtrField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_executionEndingRequest(&mut self) -> &mut ExecutionEndingRequest {
if self.executionEndingRequest.is_none() {
self.executionEndingRequest.set_default();
};
self.executionEndingRequest.as_mut().unwrap()
}
// Take field
pub fn take_executionEndingRequest(&mut self) -> ExecutionEndingRequest {
self.executionEndingRequest.take().unwrap_or_else(|| ExecutionEndingRequest::new())
}
pub fn get_executionEndingRequest(&self) -> &ExecutionEndingRequest {
self.executionEndingRequest.as_ref().unwrap_or_else(|| ExecutionEndingRequest::default_instance())
}
// optional .gauge.messages.StepValidateRequest stepValidateRequest = 12;
pub fn clear_stepValidateRequest(&mut self) {
self.stepValidateRequest.clear();
}
pub fn has_stepValidateRequest(&self) -> bool {
self.stepValidateRequest.is_some()
}
// Param is passed by value, moved
pub fn set_stepValidateRequest(&mut self, v: StepValidateRequest) {
self.stepValidateRequest = ::protobuf::SingularPtrField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_stepValidateRequest(&mut self) -> &mut StepValidateRequest {
if self.stepValidateRequest.is_none() {
self.stepValidateRequest.set_default();
};
self.stepValidateRequest.as_mut().unwrap()
}
// Take field
pub fn take_stepValidateRequest(&mut self) -> StepValidateRequest {
self.stepValidateRequest.take().unwrap_or_else(|| StepValidateRequest::new())
}
pub fn get_stepValidateRequest(&self) -> &StepValidateRequest {
self.stepValidateRequest.as_ref().unwrap_or_else(|| StepValidateRequest::default_instance())
}
// optional .gauge.messages.StepValidateResponse stepValidateResponse = 13;
pub fn clear_stepValidateResponse(&mut self) {
self.stepValidateResponse.clear();
}
pub fn has_stepValidateResponse(&self) -> bool {
self.stepValidateResponse.is_some()
}
// Param is passed by value, moved
pub fn set_stepValidateResponse(&mut self, v: StepValidateResponse) {
self.stepValidateResponse = ::protobuf::SingularPtrField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_stepValidateResponse(&mut self) -> &mut StepValidateResponse {
if self.stepValidateResponse.is_none() {
self.stepValidateResponse.set_default();
};
self.stepValidateResponse.as_mut().unwrap()
}
// Take field
pub fn take_stepValidateResponse(&mut self) -> StepValidateResponse {
self.stepValidateResponse.take().unwrap_or_else(|| StepValidateResponse::new())
}
pub fn get_stepValidateResponse(&self) -> &StepValidateResponse {
self.stepValidateResponse.as_ref().unwrap_or_else(|| StepValidateResponse::default_instance())
}
// optional .gauge.messages.ExecutionStatusResponse executionStatusResponse = 14;
pub fn clear_executionStatusResponse(&mut self) {
self.executionStatusResponse.clear();
}
pub fn has_executionStatusResponse(&self) -> bool {
self.executionStatusResponse.is_some()
}
// Param is passed by value, moved
pub fn set_executionStatusResponse(&mut self, v: ExecutionStatusResponse) {
self.executionStatusResponse = ::protobuf::SingularPtrField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_executionStatusResponse(&mut self) -> &mut ExecutionStatusResponse {
if self.executionStatusResponse.is_none() {
self.executionStatusResponse.set_default();
};
self.executionStatusResponse.as_mut().unwrap()
}
// Take field
pub fn take_executionStatusResponse(&mut self) -> ExecutionStatusResponse {
self.executionStatusResponse.take().unwrap_or_else(|| ExecutionStatusResponse::new())
}
pub fn get_executionStatusResponse(&self) -> &ExecutionStatusResponse {
self.executionStatusResponse.as_ref().unwrap_or_else(|| ExecutionStatusResponse::default_instance())
}
// optional .gauge.messages.StepNamesRequest stepNamesRequest = 15;
pub fn clear_stepNamesRequest(&mut self) {
self.stepNamesRequest.clear();
}
pub fn has_stepNamesRequest(&self) -> bool {
self.stepNamesRequest.is_some()
}
// Param is passed by value, moved
pub fn set_stepNamesRequest(&mut self, v: StepNamesRequest) {
self.stepNamesRequest = ::protobuf::SingularPtrField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_stepNamesRequest(&mut self) -> &mut StepNamesRequest {
if self.stepNamesRequest.is_none() {
self.stepNamesRequest.set_default();
};
self.stepNamesRequest.as_mut().unwrap()
}
// Take field
pub fn take_stepNamesRequest(&mut self) -> StepNamesRequest {
self.stepNamesRequest.take().unwrap_or_else(|| StepNamesRequest::new())
}
pub fn get_stepNamesRequest(&self) -> &StepNamesRequest {
self.stepNamesRequest.as_ref().unwrap_or_else(|| StepNamesRequest::default_instance())
}
// optional .gauge.messages.StepNamesResponse stepNamesResponse = 16;
pub fn clear_stepNamesResponse(&mut self) {
self.stepNamesResponse.clear();
}
pub fn has_stepNamesResponse(&self) -> bool {
self.stepNamesResponse.is_some()
}
// Param is passed by value, moved
pub fn set_stepNamesResponse(&mut self, v: StepNamesResponse) {
self.stepNamesResponse = ::protobuf::SingularPtrField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_stepNamesResponse(&mut self) -> &mut StepNamesResponse {
if self.stepNamesResponse.is_none() {
self.stepNamesResponse.set_default();
};
self.stepNamesResponse.as_mut().unwrap()
}
// Take field
pub fn take_stepNamesResponse(&mut self) -> StepNamesResponse {
self.stepNamesResponse.take().unwrap_or_else(|| StepNamesResponse::new())
}
pub fn get_stepNamesResponse(&self) -> &StepNamesResponse {
self.stepNamesResponse.as_ref().unwrap_or_else(|| StepNamesResponse::default_instance())
}
// optional .gauge.messages.SuiteExecutionResult suiteExecutionResult = 17;
pub fn clear_suiteExecutionResult(&mut self) {
self.suiteExecutionResult.clear();
}
pub fn has_suiteExecutionResult(&self) -> bool {
self.suiteExecutionResult.is_some()
}
// Param is passed by value, moved
pub fn set_suiteExecutionResult(&mut self, v: SuiteExecutionResult) {
self.suiteExecutionResult = ::protobuf::SingularPtrField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_suiteExecutionResult(&mut self) -> &mut SuiteExecutionResult {
if self.suiteExecutionResult.is_none() {
self.suiteExecutionResult.set_default();
};
self.suiteExecutionResult.as_mut().unwrap()
}
// Take field
pub fn take_suiteExecutionResult(&mut self) -> SuiteExecutionResult {
self.suiteExecutionResult.take().unwrap_or_else(|| SuiteExecutionResult::new())
}
pub fn get_suiteExecutionResult(&self) -> &SuiteExecutionResult {
self.suiteExecutionResult.as_ref().unwrap_or_else(|| SuiteExecutionResult::default_instance())
}
// optional .gauge.messages.KillProcessRequest killProcessRequest = 18;
pub fn clear_killProcessRequest(&mut self) {
self.killProcessRequest.clear();
}
pub fn has_killProcessRequest(&self) -> bool {
self.killProcessRequest.is_some()
}
// Param is passed by value, moved
pub fn set_killProcessRequest(&mut self, v: KillProcessRequest) {
self.killProcessRequest = ::protobuf::SingularPtrField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_killProcessRequest(&mut self) -> &mut KillProcessRequest {
if self.killProcessRequest.is_none() {
self.killProcessRequest.set_default();
};
self.killProcessRequest.as_mut().unwrap()
}
// Take field
pub fn take_killProcessRequest(&mut self) -> KillProcessRequest {
self.killProcessRequest.take().unwrap_or_else(|| KillProcessRequest::new())
}
pub fn get_killProcessRequest(&self) -> &KillProcessRequest {
self.killProcessRequest.as_ref().unwrap_or_else(|| KillProcessRequest::default_instance())
}
// optional .gauge.messages.ScenarioDataStoreInitRequest scenarioDataStoreInitRequest = 19;
pub fn clear_scenarioDataStoreInitRequest(&mut self) {
self.scenarioDataStoreInitRequest.clear();
}
pub fn has_scenarioDataStoreInitRequest(&self) -> bool {
self.scenarioDataStoreInitRequest.is_some()
}
// Param is passed by value, moved
pub fn set_scenarioDataStoreInitRequest(&mut self, v: ScenarioDataStoreInitRequest) {
self.scenarioDataStoreInitRequest = ::protobuf::SingularPtrField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_scenarioDataStoreInitRequest(&mut self) -> &mut ScenarioDataStoreInitRequest {
if self.scenarioDataStoreInitRequest.is_none() {
self.scenarioDataStoreInitRequest.set_default();
};
self.scenarioDataStoreInitRequest.as_mut().unwrap()
}
// Take field
pub fn take_scenarioDataStoreInitRequest(&mut self) -> ScenarioDataStoreInitRequest {
self.scenarioDataStoreInitRequest.take().unwrap_or_else(|| ScenarioDataStoreInitRequest::new())
}
pub fn get_scenarioDataStoreInitRequest(&self) -> &ScenarioDataStoreInitRequest {
self.scenarioDataStoreInitRequest.as_ref().unwrap_or_else(|| ScenarioDataStoreInitRequest::default_instance())
}
// optional .gauge.messages.SpecDataStoreInitRequest specDataStoreInitRequest = 20;
pub fn clear_specDataStoreInitRequest(&mut self) {
self.specDataStoreInitRequest.clear();
}
pub fn has_specDataStoreInitRequest(&self) -> bool {
self.specDataStoreInitRequest.is_some()
}
// Param is passed by value, moved
pub fn set_specDataStoreInitRequest(&mut self, v: SpecDataStoreInitRequest) {
self.specDataStoreInitRequest = ::protobuf::SingularPtrField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_specDataStoreInitRequest(&mut self) -> &mut SpecDataStoreInitRequest {
if self.specDataStoreInitRequest.is_none() {
self.specDataStoreInitRequest.set_default();
};
self.specDataStoreInitRequest.as_mut().unwrap()
}
// Take field
pub fn take_specDataStoreInitRequest(&mut self) -> SpecDataStoreInitRequest {
self.specDataStoreInitRequest.take().unwrap_or_else(|| SpecDataStoreInitRequest::new())
}
pub fn get_specDataStoreInitRequest(&self) -> &SpecDataStoreInitRequest {
self.specDataStoreInitRequest.as_ref().unwrap_or_else(|| SpecDataStoreInitRequest::default_instance())
}
// optional .gauge.messages.SuiteDataStoreInitRequest suiteDataStoreInitRequest = 21;
pub fn clear_suiteDataStoreInitRequest(&mut self) {
self.suiteDataStoreInitRequest.clear();
}
pub fn has_suiteDataStoreInitRequest(&self) -> bool {
self.suiteDataStoreInitRequest.is_some()
}
// Param is passed by value, moved
pub fn set_suiteDataStoreInitRequest(&mut self, v: SuiteDataStoreInitRequest) {
self.suiteDataStoreInitRequest = ::protobuf::SingularPtrField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_suiteDataStoreInitRequest(&mut self) -> &mut SuiteDataStoreInitRequest {
if self.suiteDataStoreInitRequest.is_none() {
self.suiteDataStoreInitRequest.set_default();
};
self.suiteDataStoreInitRequest.as_mut().unwrap()
}
// Take field
pub fn take_suiteDataStoreInitRequest(&mut self) -> SuiteDataStoreInitRequest {
self.suiteDataStoreInitRequest.take().unwrap_or_else(|| SuiteDataStoreInitRequest::new())
}
pub fn get_suiteDataStoreInitRequest(&self) -> &SuiteDataStoreInitRequest {
self.suiteDataStoreInitRequest.as_ref().unwrap_or_else(|| SuiteDataStoreInitRequest::default_instance())
}
// optional .gauge.messages.StepNameRequest stepNameRequest = 22;
pub fn clear_stepNameRequest(&mut self) {
self.stepNameRequest.clear();
}
pub fn has_stepNameRequest(&self) -> bool {
self.stepNameRequest.is_some()
}
// Param is passed by value, moved
pub fn set_stepNameRequest(&mut self, v: StepNameRequest) {
self.stepNameRequest = ::protobuf::SingularPtrField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_stepNameRequest(&mut self) -> &mut StepNameRequest {
if self.stepNameRequest.is_none() {
self.stepNameRequest.set_default();
};
self.stepNameRequest.as_mut().unwrap()
}
// Take field
pub fn take_stepNameRequest(&mut self) -> StepNameRequest {
self.stepNameRequest.take().unwrap_or_else(|| StepNameRequest::new())
}
pub fn get_stepNameRequest(&self) -> &StepNameRequest {
self.stepNameRequest.as_ref().unwrap_or_else(|| StepNameRequest::default_instance())
}
// optional .gauge.messages.StepNameResponse stepNameResponse = 23;
pub fn clear_stepNameResponse(&mut self) {
self.stepNameResponse.clear();
}
pub fn has_stepNameResponse(&self) -> bool {
self.stepNameResponse.is_some()
}
// Param is passed by value, moved
pub fn set_stepNameResponse(&mut self, v: StepNameResponse) {
self.stepNameResponse = ::protobuf::SingularPtrField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_stepNameResponse(&mut self) -> &mut StepNameResponse {
if self.stepNameResponse.is_none() {
self.stepNameResponse.set_default();
};
self.stepNameResponse.as_mut().unwrap()
}
// Take field
pub fn take_stepNameResponse(&mut self) -> StepNameResponse {
self.stepNameResponse.take().unwrap_or_else(|| StepNameResponse::new())
}
pub fn get_stepNameResponse(&self) -> &StepNameResponse {
self.stepNameResponse.as_ref().unwrap_or_else(|| StepNameResponse::default_instance())
}
// optional .gauge.messages.RefactorRequest refactorRequest = 24;
pub fn clear_refactorRequest(&mut self) {
self.refactorRequest.clear();
}
pub fn has_refactorRequest(&self) -> bool {
self.refactorRequest.is_some()
}
// Param is passed by value, moved
pub fn set_refactorRequest(&mut self, v: RefactorRequest) {
self.refactorRequest = ::protobuf::SingularPtrField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_refactorRequest(&mut self) -> &mut RefactorRequest {
if self.refactorRequest.is_none() {
self.refactorRequest.set_default();
};
self.refactorRequest.as_mut().unwrap()
}
// Take field
pub fn take_refactorRequest(&mut self) -> RefactorRequest {
self.refactorRequest.take().unwrap_or_else(|| RefactorRequest::new())
}
pub fn get_refactorRequest(&self) -> &RefactorRequest {
self.refactorRequest.as_ref().unwrap_or_else(|| RefactorRequest::default_instance())
}
// optional .gauge.messages.RefactorResponse refactorResponse = 25;
pub fn clear_refactorResponse(&mut self) {
self.refactorResponse.clear();
}
pub fn has_refactorResponse(&self) -> bool {
self.refactorResponse.is_some()
}
// Param is passed by value, moved
pub fn set_refactorResponse(&mut self, v: RefactorResponse) {
self.refactorResponse = ::protobuf::SingularPtrField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_refactorResponse(&mut self) -> &mut RefactorResponse {
if self.refactorResponse.is_none() {
self.refactorResponse.set_default();
};
self.refactorResponse.as_mut().unwrap()
}
// Take field
pub fn take_refactorResponse(&mut self) -> RefactorResponse {
self.refactorResponse.take().unwrap_or_else(|| RefactorResponse::new())
}
pub fn get_refactorResponse(&self) -> &RefactorResponse {
self.refactorResponse.as_ref().unwrap_or_else(|| RefactorResponse::default_instance())
}
// optional .gauge.messages.UnsupportedMessageResponse unsupportedMessageResponse = 26;
pub fn clear_unsupportedMessageResponse(&mut self) {
self.unsupportedMessageResponse.clear();
}
pub fn has_unsupportedMessageResponse(&self) -> bool {
self.unsupportedMessageResponse.is_some()
}
// Param is passed by value, moved
pub fn set_unsupportedMessageResponse(&mut self, v: UnsupportedMessageResponse) {
self.unsupportedMessageResponse = ::protobuf::SingularPtrField::some(v);
}
// Mutable pointer to the field.
// If field is not initialized, it is initialized with default value first.
pub fn mut_unsupportedMessageResponse(&mut self) -> &mut UnsupportedMessageResponse {
if self.unsupportedMessageResponse.is_none() {
self.unsupportedMessageResponse.set_default();
};
self.unsupportedMessageResponse.as_mut().unwrap()
}
// Take field
pub fn take_unsupportedMessageResponse(&mut self) -> UnsupportedMessageResponse {
self.unsupportedMessageResponse.take().unwrap_or_else(|| UnsupportedMessageResponse::new())
}
pub fn get_unsupportedMessageResponse(&self) -> &UnsupportedMessageResponse {
self.unsupportedMessageResponse.as_ref().unwrap_or_else(|| UnsupportedMessageResponse::default_instance())
}
}
impl ::protobuf::Message for Message {
fn is_initialized(&self) -> bool {
if self.messageType.is_none() {
return false;
};
if self.messageId.is_none() {
return false;
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
while !try!(is.eof()) {
let (field_number, wire_type) = try!(is.read_tag_unpack());
match field_number {
1 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
};
let tmp = try!(is.read_enum());
self.messageType = ::std::option::Option::Some(tmp);
},
2 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
};
let tmp = try!(is.read_int64());
self.messageId = ::std::option::Option::Some(tmp);
},
3 => {
try!(::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.executionStartingRequest));
},
4 => {
try!(::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.specExecutionStartingRequest));
},
5 => {
try!(::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.specExecutionEndingRequest));
},
6 => {
try!(::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.scenarioExecutionStartingRequest));
},
7 => {
try!(::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.scenarioExecutionEndingRequest));
},
8 => {
try!(::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.stepExecutionStartingRequest));
},
9 => {
try!(::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.stepExecutionEndingRequest));
},
10 => {
try!(::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.executeStepRequest));
},
11 => {
try!(::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.executionEndingRequest));
},
12 => {
try!(::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.stepValidateRequest));
},
13 => {
try!(::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.stepValidateResponse));
},
14 => {
try!(::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.executionStatusResponse));
},
15 => {
try!(::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.stepNamesRequest));
},
16 => {
try!(::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.stepNamesResponse));
},
17 => {
try!(::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.suiteExecutionResult));
},
18 => {
try!(::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.killProcessRequest));
},
19 => {
try!(::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.scenarioDataStoreInitRequest));
},
20 => {
try!(::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.specDataStoreInitRequest));
},
21 => {
try!(::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.suiteDataStoreInitRequest));
},
22 => {
try!(::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.stepNameRequest));
},
23 => {
try!(::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.stepNameResponse));
},
24 => {
try!(::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.refactorRequest));
},
25 => {
try!(::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.refactorResponse));
},
26 => {
try!(::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.unsupportedMessageResponse));
},
_ => {
try!(::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields()));
},
};
}
::std::result::Result::Ok(())
}
// Compute sizes of nested messages
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
for value in &self.messageType {
my_size += ::protobuf::rt::enum_size(1, *value);
};
for value in &self.messageId {
my_size += ::protobuf::rt::value_size(2, *value, ::protobuf::wire_format::WireTypeVarint);
};
for value in &self.executionStartingRequest {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
for value in &self.specExecutionStartingRequest {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
for value in &self.specExecutionEndingRequest {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
for value in &self.scenarioExecutionStartingRequest {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
for value in &self.scenarioExecutionEndingRequest {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
for value in &self.stepExecutionStartingRequest {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
for value in &self.stepExecutionEndingRequest {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
for value in &self.executeStepRequest {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
for value in &self.executionEndingRequest {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
for value in &self.stepValidateRequest {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
for value in &self.stepValidateResponse {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
for value in &self.executionStatusResponse {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
for value in &self.stepNamesRequest {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
for value in &self.stepNamesResponse {
let len = value.compute_size();
my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
for value in &self.suiteExecutionResult {
let len = value.compute_size();
my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
for value in &self.killProcessRequest {
let len = value.compute_size();
my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
for value in &self.scenarioDataStoreInitRequest {
let len = value.compute_size();
my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
for value in &self.specDataStoreInitRequest {
let len = value.compute_size();
my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
for value in &self.suiteDataStoreInitRequest {
let len = value.compute_size();
my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
for value in &self.stepNameRequest {
let len = value.compute_size();
my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
for value in &self.stepNameResponse {
let len = value.compute_size();
my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
for value in &self.refactorRequest {
let len = value.compute_size();
my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
for value in &self.refactorResponse {
let len = value.compute_size();
my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
for value in &self.unsupportedMessageResponse {
let len = value.compute_size();
my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
if let Some(v) = self.messageType {
try!(os.write_enum(1, v.value()));
};
if let Some(v) = self.messageId {
try!(os.write_int64(2, v));
};
if let Some(v) = self.executionStartingRequest.as_ref() {
try!(os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited));
try!(os.write_raw_varint32(v.get_cached_size()));
try!(v.write_to_with_cached_sizes(os));
};
if let Some(v) = self.specExecutionStartingRequest.as_ref() {
try!(os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited));
try!(os.write_raw_varint32(v.get_cached_size()));
try!(v.write_to_with_cached_sizes(os));
};
if let Some(v) = self.specExecutionEndingRequest.as_ref() {
try!(os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited));
try!(os.write_raw_varint32(v.get_cached_size()));
try!(v.write_to_with_cached_sizes(os));
};
if let Some(v) = self.scenarioExecutionStartingRequest.as_ref() {
try!(os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited));
try!(os.write_raw_varint32(v.get_cached_size()));
try!(v.write_to_with_cached_sizes(os));
};
if let Some(v) = self.scenarioExecutionEndingRequest.as_ref() {
try!(os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited));
try!(os.write_raw_varint32(v.get_cached_size()));
try!(v.write_to_with_cached_sizes(os));
};
if let Some(v) = self.stepExecutionStartingRequest.as_ref() {
try!(os.write_tag(8, ::protobuf::wire_format::WireTypeLengthDelimited));
try!(os.write_raw_varint32(v.get_cached_size()));
try!(v.write_to_with_cached_sizes(os));
};
if let Some(v) = self.stepExecutionEndingRequest.as_ref() {
try!(os.write_tag(9, ::protobuf::wire_format::WireTypeLengthDelimited));
try!(os.write_raw_varint32(v.get_cached_size()));
try!(v.write_to_with_cached_sizes(os));
};
if let Some(v) = self.executeStepRequest.as_ref() {
try!(os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited));
try!(os.write_raw_varint32(v.get_cached_size()));
try!(v.write_to_with_cached_sizes(os));
};
if let Some(v) = self.executionEndingRequest.as_ref() {
try!(os.write_tag(11, ::protobuf::wire_format::WireTypeLengthDelimited));
try!(os.write_raw_varint32(v.get_cached_size()));
try!(v.write_to_with_cached_sizes(os));
};
if let Some(v) = self.stepValidateRequest.as_ref() {
try!(os.write_tag(12, ::protobuf::wire_format::WireTypeLengthDelimited));
try!(os.write_raw_varint32(v.get_cached_size()));
try!(v.write_to_with_cached_sizes(os));
};
if let Some(v) = self.stepValidateResponse.as_ref() {
try!(os.write_tag(13, ::protobuf::wire_format::WireTypeLengthDelimited));
try!(os.write_raw_varint32(v.get_cached_size()));
try!(v.write_to_with_cached_sizes(os));
};
if let Some(v) = self.executionStatusResponse.as_ref() {
try!(os.write_tag(14, ::protobuf::wire_format::WireTypeLengthDelimited));
try!(os.write_raw_varint32(v.get_cached_size()));
try!(v.write_to_with_cached_sizes(os));
};
if let Some(v) = self.stepNamesRequest.as_ref() {
try!(os.write_tag(15, ::protobuf::wire_format::WireTypeLengthDelimited));
try!(os.write_raw_varint32(v.get_cached_size()));
try!(v.write_to_with_cached_sizes(os));
};
if let Some(v) = self.stepNamesResponse.as_ref() {
try!(os.write_tag(16, ::protobuf::wire_format::WireTypeLengthDelimited));
try!(os.write_raw_varint32(v.get_cached_size()));
try!(v.write_to_with_cached_sizes(os));
};
if let Some(v) = self.suiteExecutionResult.as_ref() {
try!(os.write_tag(17, ::protobuf::wire_format::WireTypeLengthDelimited));
try!(os.write_raw_varint32(v.get_cached_size()));
try!(v.write_to_with_cached_sizes(os));
};
if let Some(v) = self.killProcessRequest.as_ref() {
try!(os.write_tag(18, ::protobuf::wire_format::WireTypeLengthDelimited));
try!(os.write_raw_varint32(v.get_cached_size()));
try!(v.write_to_with_cached_sizes(os));
};
if let Some(v) = self.scenarioDataStoreInitRequest.as_ref() {
try!(os.write_tag(19, ::protobuf::wire_format::WireTypeLengthDelimited));
try!(os.write_raw_varint32(v.get_cached_size()));
try!(v.write_to_with_cached_sizes(os));
};
if let Some(v) = self.specDataStoreInitRequest.as_ref() {
try!(os.write_tag(20, ::protobuf::wire_format::WireTypeLengthDelimited));
try!(os.write_raw_varint32(v.get_cached_size()));
try!(v.write_to_with_cached_sizes(os));
};
if let Some(v) = self.suiteDataStoreInitRequest.as_ref() {
try!(os.write_tag(21, ::protobuf::wire_format::WireTypeLengthDelimited));
try!(os.write_raw_varint32(v.get_cached_size()));
try!(v.write_to_with_cached_sizes(os));
};
if let Some(v) = self.stepNameRequest.as_ref() {
try!(os.write_tag(22, ::protobuf::wire_format::WireTypeLengthDelimited));
try!(os.write_raw_varint32(v.get_cached_size()));
try!(v.write_to_with_cached_sizes(os));
};
if let Some(v) = self.stepNameResponse.as_ref() {
try!(os.write_tag(23, ::protobuf::wire_format::WireTypeLengthDelimited));
try!(os.write_raw_varint32(v.get_cached_size()));
try!(v.write_to_with_cached_sizes(os));
};
if let Some(v) = self.refactorRequest.as_ref() {
try!(os.write_tag(24, ::protobuf::wire_format::WireTypeLengthDelimited));
try!(os.write_raw_varint32(v.get_cached_size()));
try!(v.write_to_with_cached_sizes(os));
};
if let Some(v) = self.refactorResponse.as_ref() {
try!(os.write_tag(25, ::protobuf::wire_format::WireTypeLengthDelimited));
try!(os.write_raw_varint32(v.get_cached_size()));
try!(v.write_to_with_cached_sizes(os));
};
if let Some(v) = self.unsupportedMessageResponse.as_ref() {
try!(os.write_tag(26, ::protobuf::wire_format::WireTypeLengthDelimited));
try!(os.write_raw_varint32(v.get_cached_size()));
try!(v.write_to_with_cached_sizes(os));
};
try!(os.write_unknown_fields(self.get_unknown_fields()));
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn type_id(&self) -> ::std::any::TypeId {
::std::any::TypeId::of::<Message>()
}
fn as_any(&self) -> &::std::any::Any {
self as &::std::any::Any
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
::protobuf::MessageStatic::descriptor_static(None::<Self>)
}
}
impl ::protobuf::MessageStatic for Message {
fn new() -> Message {
Message::new()
}
fn descriptor_static(_: ::std::option::Option<Message>) -> &'static ::protobuf::reflect::MessageDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
};
unsafe {
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_enum_accessor(
"messageType",
Message::has_messageType,
Message::get_messageType,
));
fields.push(::protobuf::reflect::accessor::make_singular_i64_accessor(
"messageId",
Message::has_messageId,
Message::get_messageId,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor(
"executionStartingRequest",
Message::has_executionStartingRequest,
Message::get_executionStartingRequest,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor(
"specExecutionStartingRequest",
Message::has_specExecutionStartingRequest,
Message::get_specExecutionStartingRequest,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor(
"specExecutionEndingRequest",
Message::has_specExecutionEndingRequest,
Message::get_specExecutionEndingRequest,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor(
"scenarioExecutionStartingRequest",
Message::has_scenarioExecutionStartingRequest,
Message::get_scenarioExecutionStartingRequest,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor(
"scenarioExecutionEndingRequest",
Message::has_scenarioExecutionEndingRequest,
Message::get_scenarioExecutionEndingRequest,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor(
"stepExecutionStartingRequest",
Message::has_stepExecutionStartingRequest,
Message::get_stepExecutionStartingRequest,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor(
"stepExecutionEndingRequest",
Message::has_stepExecutionEndingRequest,
Message::get_stepExecutionEndingRequest,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor(
"executeStepRequest",
Message::has_executeStepRequest,
Message::get_executeStepRequest,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor(
"executionEndingRequest",
Message::has_executionEndingRequest,
Message::get_executionEndingRequest,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor(
"stepValidateRequest",
Message::has_stepValidateRequest,
Message::get_stepValidateRequest,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor(
"stepValidateResponse",
Message::has_stepValidateResponse,
Message::get_stepValidateResponse,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor(
"executionStatusResponse",
Message::has_executionStatusResponse,
Message::get_executionStatusResponse,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor(
"stepNamesRequest",
Message::has_stepNamesRequest,
Message::get_stepNamesRequest,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor(
"stepNamesResponse",
Message::has_stepNamesResponse,
Message::get_stepNamesResponse,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor(
"suiteExecutionResult",
Message::has_suiteExecutionResult,
Message::get_suiteExecutionResult,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor(
"killProcessRequest",
Message::has_killProcessRequest,
Message::get_killProcessRequest,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor(
"scenarioDataStoreInitRequest",
Message::has_scenarioDataStoreInitRequest,
Message::get_scenarioDataStoreInitRequest,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor(
"specDataStoreInitRequest",
Message::has_specDataStoreInitRequest,
Message::get_specDataStoreInitRequest,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor(
"suiteDataStoreInitRequest",
Message::has_suiteDataStoreInitRequest,
Message::get_suiteDataStoreInitRequest,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor(
"stepNameRequest",
Message::has_stepNameRequest,
Message::get_stepNameRequest,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor(
"stepNameResponse",
Message::has_stepNameResponse,
Message::get_stepNameResponse,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor(
"refactorRequest",
Message::has_refactorRequest,
Message::get_refactorRequest,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor(
"refactorResponse",
Message::has_refactorResponse,
Message::get_refactorResponse,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor(
"unsupportedMessageResponse",
Message::has_unsupportedMessageResponse,
Message::get_unsupportedMessageResponse,
));
::protobuf::reflect::MessageDescriptor::new::<Message>(
"Message",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for Message {
fn clear(&mut self) {
self.clear_messageType();
self.clear_messageId();
self.clear_executionStartingRequest();
self.clear_specExecutionStartingRequest();
self.clear_specExecutionEndingRequest();
self.clear_scenarioExecutionStartingRequest();
self.clear_scenarioExecutionEndingRequest();
self.clear_stepExecutionStartingRequest();
self.clear_stepExecutionEndingRequest();
self.clear_executeStepRequest();
self.clear_executionEndingRequest();
self.clear_stepValidateRequest();
self.clear_stepValidateResponse();
self.clear_executionStatusResponse();
self.clear_stepNamesRequest();
self.clear_stepNamesResponse();
self.clear_suiteExecutionResult();
self.clear_killProcessRequest();
self.clear_scenarioDataStoreInitRequest();
self.clear_specDataStoreInitRequest();
self.clear_suiteDataStoreInitRequest();
self.clear_stepNameRequest();
self.clear_stepNameResponse();
self.clear_refactorRequest();
self.clear_refactorResponse();
self.clear_unsupportedMessageResponse();
self.unknown_fields.clear();
}
}
impl ::std::cmp::PartialEq for Message {
fn eq(&self, other: &Message) -> bool {
self.messageType == other.messageType &&
self.messageId == other.messageId &&
self.executionStartingRequest == other.executionStartingRequest &&
self.specExecutionStartingRequest == other.specExecutionStartingRequest &&
self.specExecutionEndingRequest == other.specExecutionEndingRequest &&
self.scenarioExecutionStartingRequest == other.scenarioExecutionStartingRequest &&
self.scenarioExecutionEndingRequest == other.scenarioExecutionEndingRequest &&
self.stepExecutionStartingRequest == other.stepExecutionStartingRequest &&
self.stepExecutionEndingRequest == other.stepExecutionEndingRequest &&
self.executeStepRequest == other.executeStepRequest &&
self.executionEndingRequest == other.executionEndingRequest &&
self.stepValidateRequest == other.stepValidateRequest &&
self.stepValidateResponse == other.stepValidateResponse &&
self.executionStatusResponse == other.executionStatusResponse &&
self.stepNamesRequest == other.stepNamesRequest &&
self.stepNamesResponse == other.stepNamesResponse &&
self.suiteExecutionResult == other.suiteExecutionResult &&
self.killProcessRequest == other.killProcessRequest &&
self.scenarioDataStoreInitRequest == other.scenarioDataStoreInitRequest &&
self.specDataStoreInitRequest == other.specDataStoreInitRequest &&
self.suiteDataStoreInitRequest == other.suiteDataStoreInitRequest &&
self.stepNameRequest == other.stepNameRequest &&
self.stepNameResponse == other.stepNameResponse &&
self.refactorRequest == other.refactorRequest &&
self.refactorResponse == other.refactorResponse &&
self.unsupportedMessageResponse == other.unsupportedMessageResponse &&
self.unknown_fields == other.unknown_fields
}
}
impl ::std::fmt::Debug for Message {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
#[derive(Clone,PartialEq,Eq,Debug,Hash)]
pub enum Message_MessageType {
ExecutionStarting = 0,
SpecExecutionStarting = 1,
SpecExecutionEnding = 2,
ScenarioExecutionStarting = 3,
ScenarioExecutionEnding = 4,
StepExecutionStarting = 5,
StepExecutionEnding = 6,
ExecuteStep = 7,
ExecutionEnding = 8,
StepValidateRequest = 9,
StepValidateResponse = 10,
ExecutionStatusResponse = 11,
StepNamesRequest = 12,
StepNamesResponse = 13,
KillProcessRequest = 14,
SuiteExecutionResult = 15,
ScenarioDataStoreInit = 16,
SpecDataStoreInit = 17,
SuiteDataStoreInit = 18,
StepNameRequest = 19,
StepNameResponse = 20,
RefactorRequest = 21,
RefactorResponse = 22,
UnsupportedMessageResponse = 23,
}
impl ::protobuf::ProtobufEnum for Message_MessageType {
fn value(&self) -> i32 {
*self as i32
}
fn from_i32(value: i32) -> ::std::option::Option<Message_MessageType> {
match value {
0 => ::std::option::Option::Some(Message_MessageType::ExecutionStarting),
1 => ::std::option::Option::Some(Message_MessageType::SpecExecutionStarting),
2 => ::std::option::Option::Some(Message_MessageType::SpecExecutionEnding),
3 => ::std::option::Option::Some(Message_MessageType::ScenarioExecutionStarting),
4 => ::std::option::Option::Some(Message_MessageType::ScenarioExecutionEnding),
5 => ::std::option::Option::Some(Message_MessageType::StepExecutionStarting),
6 => ::std::option::Option::Some(Message_MessageType::StepExecutionEnding),
7 => ::std::option::Option::Some(Message_MessageType::ExecuteStep),
8 => ::std::option::Option::Some(Message_MessageType::ExecutionEnding),
9 => ::std::option::Option::Some(Message_MessageType::StepValidateRequest),
10 => ::std::option::Option::Some(Message_MessageType::StepValidateResponse),
11 => ::std::option::Option::Some(Message_MessageType::ExecutionStatusResponse),
12 => ::std::option::Option::Some(Message_MessageType::StepNamesRequest),
13 => ::std::option::Option::Some(Message_MessageType::StepNamesResponse),
14 => ::std::option::Option::Some(Message_MessageType::KillProcessRequest),
15 => ::std::option::Option::Some(Message_MessageType::SuiteExecutionResult),
16 => ::std::option::Option::Some(Message_MessageType::ScenarioDataStoreInit),
17 => ::std::option::Option::Some(Message_MessageType::SpecDataStoreInit),
18 => ::std::option::Option::Some(Message_MessageType::SuiteDataStoreInit),
19 => ::std::option::Option::Some(Message_MessageType::StepNameRequest),
20 => ::std::option::Option::Some(Message_MessageType::StepNameResponse),
21 => ::std::option::Option::Some(Message_MessageType::RefactorRequest),
22 => ::std::option::Option::Some(Message_MessageType::RefactorResponse),
23 => ::std::option::Option::Some(Message_MessageType::UnsupportedMessageResponse),
_ => ::std::option::Option::None
}
}
fn values() -> &'static [Self] {
static values: &'static [Message_MessageType] = &[
Message_MessageType::ExecutionStarting,
Message_MessageType::SpecExecutionStarting,
Message_MessageType::SpecExecutionEnding,
Message_MessageType::ScenarioExecutionStarting,
Message_MessageType::ScenarioExecutionEnding,
Message_MessageType::StepExecutionStarting,
Message_MessageType::StepExecutionEnding,
Message_MessageType::ExecuteStep,
Message_MessageType::ExecutionEnding,
Message_MessageType::StepValidateRequest,
Message_MessageType::StepValidateResponse,
Message_MessageType::ExecutionStatusResponse,
Message_MessageType::StepNamesRequest,
Message_MessageType::StepNamesResponse,
Message_MessageType::KillProcessRequest,
Message_MessageType::SuiteExecutionResult,
Message_MessageType::ScenarioDataStoreInit,
Message_MessageType::SpecDataStoreInit,
Message_MessageType::SuiteDataStoreInit,
Message_MessageType::StepNameRequest,
Message_MessageType::StepNameResponse,
Message_MessageType::RefactorRequest,
Message_MessageType::RefactorResponse,
Message_MessageType::UnsupportedMessageResponse,
];
values
}
fn enum_descriptor_static(_: Option<Message_MessageType>) -> &'static ::protobuf::reflect::EnumDescriptor {
static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ::protobuf::reflect::EnumDescriptor,
};
unsafe {
descriptor.get(|| {
::protobuf::reflect::EnumDescriptor::new("Message_MessageType", file_descriptor_proto())
})
}
}
}
impl ::std::marker::Copy for Message_MessageType {
}
static file_descriptor_proto_data: &'static [u8] = &[
0x0a, 0x0e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x12, 0x0e, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73,
0x1a, 0x0a, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x14, 0x0a, 0x12,
0x4b, 0x69, 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x22, 0x58, 0x0a, 0x17, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53,
0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a,
0x0f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74,
0x18, 0x01, 0x20, 0x02, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d,
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x45, 0x78, 0x65,
0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x57, 0x0a, 0x18,
0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x69, 0x6e,
0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x14, 0x63, 0x75, 0x72, 0x72,
0x65, 0x6e, 0x74, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f,
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d,
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f,
0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x55, 0x0a, 0x16, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69,
0x6f, 0x6e, 0x45, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x3b, 0x0a, 0x14, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74,
0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e,
0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x45,
0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x5b, 0x0a, 0x1c,
0x53, 0x70, 0x65, 0x63, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61,
0x72, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x14,
0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e,
0x49, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x61, 0x75,
0x67, 0x65, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x45, 0x78, 0x65, 0x63,
0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x59, 0x0a, 0x1a, 0x53, 0x70, 0x65,
0x63, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x64, 0x69, 0x6e, 0x67,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x14, 0x63, 0x75, 0x72, 0x72, 0x65,
0x6e, 0x74, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x18,
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65,
0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e,
0x49, 0x6e, 0x66, 0x6f, 0x22, 0x5f, 0x0a, 0x20, 0x53, 0x63, 0x65, 0x6e, 0x61, 0x72, 0x69, 0x6f,
0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x69, 0x6e,
0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x14, 0x63, 0x75, 0x72, 0x72,
0x65, 0x6e, 0x74, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f,
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d,
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f,
0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x5d, 0x0a, 0x1e, 0x53, 0x63, 0x65, 0x6e, 0x61, 0x72, 0x69,
0x6f, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x64, 0x69, 0x6e, 0x67,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x14, 0x63, 0x75, 0x72, 0x72, 0x65,
0x6e, 0x74, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x18,
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65,
0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e,
0x49, 0x6e, 0x66, 0x6f, 0x22, 0x5b, 0x0a, 0x1c, 0x53, 0x74, 0x65, 0x70, 0x45, 0x78, 0x65, 0x63,
0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x14, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x45,
0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61,
0x67, 0x65, 0x73, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66,
0x6f, 0x22, 0x59, 0x0a, 0x1a, 0x53, 0x74, 0x65, 0x70, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69,
0x6f, 0x6e, 0x45, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x3b, 0x0a, 0x14, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74,
0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e,
0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x45,
0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0xb8, 0x01, 0x0a,
0x0d, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x2d,
0x0a, 0x0b, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x70, 0x65, 0x63, 0x18, 0x01, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65, 0x73, 0x73,
0x61, 0x67, 0x65, 0x73, 0x2e, 0x53, 0x70, 0x65, 0x63, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x35, 0x0a,
0x0f, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x63, 0x65, 0x6e, 0x61, 0x72, 0x69, 0x6f,
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d,
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x53, 0x63, 0x65, 0x6e, 0x61, 0x72, 0x69, 0x6f,
0x49, 0x6e, 0x66, 0x6f, 0x12, 0x2d, 0x0a, 0x0b, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x53,
0x74, 0x65, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x61, 0x75, 0x67,
0x65, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x53, 0x74, 0x65, 0x70, 0x49,
0x6e, 0x66, 0x6f, 0x12, 0x12, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x74, 0x72, 0x61, 0x63,
0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x22, 0x4a, 0x0a, 0x08, 0x53, 0x70, 0x65, 0x63, 0x49,
0x6e, 0x66, 0x6f, 0x12, 0x0c, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x02, 0x28,
0x09, 0x12, 0x10, 0x0a, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20,
0x02, 0x28, 0x09, 0x12, 0x10, 0x0a, 0x08, 0x69, 0x73, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x18,
0x03, 0x20, 0x02, 0x28, 0x08, 0x12, 0x0c, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x04, 0x20,
0x03, 0x28, 0x09, 0x22, 0x3c, 0x0a, 0x0c, 0x53, 0x63, 0x65, 0x6e, 0x61, 0x72, 0x69, 0x6f, 0x49,
0x6e, 0x66, 0x6f, 0x12, 0x0c, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x02, 0x28,
0x09, 0x12, 0x10, 0x0a, 0x08, 0x69, 0x73, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x18, 0x02, 0x20,
0x02, 0x28, 0x08, 0x12, 0x0c, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28,
0x09, 0x22, 0x4e, 0x0a, 0x08, 0x53, 0x74, 0x65, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x30, 0x0a,
0x04, 0x73, 0x74, 0x65, 0x70, 0x18, 0x01, 0x20, 0x02, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x61,
0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x45, 0x78, 0x65,
0x63, 0x75, 0x74, 0x65, 0x53, 0x74, 0x65, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x10, 0x0a, 0x08, 0x69, 0x73, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x18, 0x02, 0x20, 0x02, 0x28,
0x08, 0x22, 0x8c, 0x01, 0x0a, 0x12, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x53, 0x74, 0x65,
0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x0e, 0x61, 0x63, 0x74, 0x75,
0x61, 0x6c, 0x53, 0x74, 0x65, 0x70, 0x54, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x02, 0x28, 0x09,
0x12, 0x16, 0x0a, 0x0e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, 0x53, 0x74, 0x65, 0x70, 0x54, 0x65,
0x78, 0x74, 0x18, 0x02, 0x20, 0x02, 0x28, 0x09, 0x12, 0x17, 0x0a, 0x0f, 0x73, 0x63, 0x65, 0x6e,
0x61, 0x72, 0x69, 0x6f, 0x46, 0x61, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28,
0x08, 0x12, 0x2d, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18,
0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65,
0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72,
0x22, 0x43, 0x0a, 0x13, 0x53, 0x74, 0x65, 0x70, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x08, 0x73, 0x74, 0x65, 0x70, 0x54,
0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x02, 0x28, 0x09, 0x12, 0x1a, 0x0a, 0x12, 0x6e, 0x75, 0x6d,
0x62, 0x65, 0x72, 0x4f, 0x66, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18,
0x02, 0x20, 0x02, 0x28, 0x05, 0x22, 0xd3, 0x01, 0x0a, 0x14, 0x53, 0x74, 0x65, 0x70, 0x56, 0x61,
0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0f,
0x0a, 0x07, 0x69, 0x73, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x18, 0x01, 0x20, 0x02, 0x28, 0x08, 0x12,
0x14, 0x0a, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18,
0x02, 0x20, 0x01, 0x28, 0x09, 0x12, 0x41, 0x0a, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x54, 0x79,
0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x67, 0x61, 0x75, 0x67, 0x65,
0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x53, 0x74, 0x65, 0x70, 0x56, 0x61,
0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x45,
0x72, 0x72, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x22, 0x51, 0x0a, 0x09, 0x45, 0x72, 0x72, 0x6f,
0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x21, 0x0a, 0x1d, 0x53, 0x54, 0x45, 0x50, 0x5f, 0x49, 0x4d,
0x50, 0x4c, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4e, 0x4f, 0x54,
0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x00, 0x12, 0x21, 0x0a, 0x1d, 0x44, 0x55, 0x50, 0x4c,
0x49, 0x43, 0x41, 0x54, 0x45, 0x5f, 0x53, 0x54, 0x45, 0x50, 0x5f, 0x49, 0x4d, 0x50, 0x4c, 0x45,
0x4d, 0x45, 0x4e, 0x54, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x01, 0x22, 0x4d, 0x0a, 0x14, 0x53,
0x75, 0x69, 0x74, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73,
0x75, 0x6c, 0x74, 0x12, 0x35, 0x0a, 0x0b, 0x73, 0x75, 0x69, 0x74, 0x65, 0x52, 0x65, 0x73, 0x75,
0x6c, 0x74, 0x18, 0x01, 0x20, 0x02, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x61, 0x75, 0x67, 0x65,
0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x53,
0x75, 0x69, 0x74, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x12, 0x0a, 0x10, 0x53, 0x74,
0x65, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x22,
0x0a, 0x11, 0x53, 0x74, 0x65, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x12, 0x0d, 0x0a, 0x05, 0x73, 0x74, 0x65, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03,
0x28, 0x09, 0x22, 0x1e, 0x0a, 0x1c, 0x53, 0x63, 0x65, 0x6e, 0x61, 0x72, 0x69, 0x6f, 0x44, 0x61,
0x74, 0x61, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x49, 0x6e, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x22, 0x1a, 0x0a, 0x18, 0x53, 0x70, 0x65, 0x63, 0x44, 0x61, 0x74, 0x61, 0x53, 0x74,
0x6f, 0x72, 0x65, 0x49, 0x6e, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x1b,
0x0a, 0x19, 0x53, 0x75, 0x69, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x74, 0x6f, 0x72, 0x65,
0x49, 0x6e, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x3d, 0x0a, 0x11, 0x50,
0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e,
0x12, 0x13, 0x0a, 0x0b, 0x6f, 0x6c, 0x64, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18,
0x01, 0x20, 0x02, 0x28, 0x05, 0x12, 0x13, 0x0a, 0x0b, 0x6e, 0x65, 0x77, 0x50, 0x6f, 0x73, 0x69,
0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x02, 0x28, 0x05, 0x22, 0xb8, 0x01, 0x0a, 0x0f, 0x52,
0x65, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x34,
0x0a, 0x0c, 0x6f, 0x6c, 0x64, 0x53, 0x74, 0x65, 0x70, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01,
0x20, 0x02, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65, 0x73,
0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x53, 0x74, 0x65, 0x70, 0x56,
0x61, 0x6c, 0x75, 0x65, 0x12, 0x34, 0x0a, 0x0c, 0x6e, 0x65, 0x77, 0x53, 0x74, 0x65, 0x70, 0x56,
0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x02, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x61, 0x75,
0x67, 0x65, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x50, 0x72, 0x6f, 0x74,
0x6f, 0x53, 0x74, 0x65, 0x70, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x39, 0x0a, 0x0e, 0x70, 0x61,
0x72, 0x61, 0x6d, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03,
0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61,
0x67, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x50, 0x6f, 0x73,
0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x48, 0x0a, 0x10, 0x52, 0x65, 0x66, 0x61, 0x63, 0x74, 0x6f,
0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0f, 0x0a, 0x07, 0x73, 0x75, 0x63,
0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x02, 0x28, 0x08, 0x12, 0x0d, 0x0a, 0x05, 0x65, 0x72,
0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x12, 0x14, 0x0a, 0x0c, 0x66, 0x69, 0x6c,
0x65, 0x73, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x22,
0x24, 0x0a, 0x0f, 0x53, 0x74, 0x65, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x12, 0x11, 0x0a, 0x09, 0x73, 0x74, 0x65, 0x70, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x18,
0x01, 0x20, 0x02, 0x28, 0x09, 0x22, 0x4d, 0x0a, 0x10, 0x53, 0x74, 0x65, 0x70, 0x4e, 0x61, 0x6d,
0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x15, 0x0a, 0x0d, 0x69, 0x73, 0x53,
0x74, 0x65, 0x70, 0x50, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x02, 0x28, 0x08,
0x12, 0x10, 0x0a, 0x08, 0x73, 0x74, 0x65, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x03,
0x28, 0x09, 0x12, 0x10, 0x0a, 0x08, 0x68, 0x61, 0x73, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x03,
0x20, 0x02, 0x28, 0x08, 0x22, 0x2d, 0x0a, 0x1a, 0x55, 0x6e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72,
0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x12, 0x0f, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20,
0x01, 0x28, 0x09, 0x22, 0xfe, 0x12, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12,
0x38, 0x0a, 0x0b, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01,
0x20, 0x02, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65, 0x73,
0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x65,
0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x11, 0x0a, 0x09, 0x6d, 0x65, 0x73,
0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x18, 0x02, 0x20, 0x02, 0x28, 0x03, 0x12, 0x4a, 0x0a, 0x18,
0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x69, 0x6e,
0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28,
0x2e, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e,
0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x69, 0x6e,
0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x52, 0x0a, 0x1c, 0x73, 0x70, 0x65, 0x63,
0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x69, 0x6e,
0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c,
0x2e, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e,
0x53, 0x70, 0x65, 0x63, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61,
0x72, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4e, 0x0a, 0x1a,
0x73, 0x70, 0x65, 0x63, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x64,
0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x2a, 0x2e, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
0x73, 0x2e, 0x53, 0x70, 0x65, 0x63, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45,
0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x5a, 0x0a, 0x20,
0x73, 0x63, 0x65, 0x6e, 0x61, 0x72, 0x69, 0x6f, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f,
0x6e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d,
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x53, 0x63, 0x65, 0x6e, 0x61, 0x72, 0x69, 0x6f,
0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x69, 0x6e,
0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x56, 0x0a, 0x1e, 0x73, 0x63, 0x65, 0x6e,
0x61, 0x72, 0x69, 0x6f, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x64,
0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x2e, 0x2e, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
0x73, 0x2e, 0x53, 0x63, 0x65, 0x6e, 0x61, 0x72, 0x69, 0x6f, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74,
0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x12, 0x52, 0x0a, 0x1c, 0x73, 0x74, 0x65, 0x70, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f,
0x6e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d,
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x53, 0x74, 0x65, 0x70, 0x45, 0x78, 0x65, 0x63,
0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x12, 0x4e, 0x0a, 0x1a, 0x73, 0x74, 0x65, 0x70, 0x45, 0x78, 0x65, 0x63,
0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x61, 0x75, 0x67, 0x65,
0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x53, 0x74, 0x65, 0x70, 0x45, 0x78,
0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x12, 0x3e, 0x0a, 0x12, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x53,
0x74, 0x65, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x22, 0x2e, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
0x73, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x53, 0x74, 0x65, 0x70, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x16, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f,
0x6e, 0x45, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x0b,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65, 0x73,
0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45,
0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x13,
0x73, 0x74, 0x65, 0x70, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x61, 0x75, 0x67,
0x65, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x53, 0x74, 0x65, 0x70, 0x56,
0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x42,
0x0a, 0x14, 0x73, 0x74, 0x65, 0x70, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67,
0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x53, 0x74,
0x65, 0x70, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x12, 0x48, 0x0a, 0x17, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53,
0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x0e, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65, 0x73, 0x73,
0x61, 0x67, 0x65, 0x73, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74,
0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x10,
0x73, 0x74, 0x65, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d,
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x53, 0x74, 0x65, 0x70, 0x4e, 0x61, 0x6d, 0x65,
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3c, 0x0a, 0x11, 0x73, 0x74, 0x65, 0x70,
0x4e, 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x10, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65, 0x73, 0x73,
0x61, 0x67, 0x65, 0x73, 0x2e, 0x53, 0x74, 0x65, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a, 0x14, 0x73, 0x75, 0x69, 0x74, 0x65, 0x45,
0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x11,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65, 0x73,
0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x53, 0x75, 0x69, 0x74, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75,
0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x3e, 0x0a, 0x12, 0x6b, 0x69,
0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x18, 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d,
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x4b, 0x69, 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x63,
0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x52, 0x0a, 0x1c, 0x73, 0x63,
0x65, 0x6e, 0x61, 0x72, 0x69, 0x6f, 0x44, 0x61, 0x74, 0x61, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x49,
0x6e, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x13, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x2c, 0x2e, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
0x73, 0x2e, 0x53, 0x63, 0x65, 0x6e, 0x61, 0x72, 0x69, 0x6f, 0x44, 0x61, 0x74, 0x61, 0x53, 0x74,
0x6f, 0x72, 0x65, 0x49, 0x6e, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4a,
0x0a, 0x18, 0x73, 0x70, 0x65, 0x63, 0x44, 0x61, 0x74, 0x61, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x49,
0x6e, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x28, 0x2e, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
0x73, 0x2e, 0x53, 0x70, 0x65, 0x63, 0x44, 0x61, 0x74, 0x61, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x49,
0x6e, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4c, 0x0a, 0x19, 0x73, 0x75,
0x69, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x49, 0x6e, 0x69, 0x74,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e,
0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x53,
0x75, 0x69, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x49, 0x6e, 0x69,
0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0f, 0x73, 0x74, 0x65, 0x70,
0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x16, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
0x65, 0x73, 0x2e, 0x53, 0x74, 0x65, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x12, 0x3a, 0x0a, 0x10, 0x73, 0x74, 0x65, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x17, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67,
0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x53, 0x74,
0x65, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38,
0x0a, 0x0f, 0x72, 0x65, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x18, 0x18, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e,
0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x66, 0x61, 0x63, 0x74, 0x6f,
0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x10, 0x72, 0x65, 0x66, 0x61,
0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x19, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61,
0x67, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4e, 0x0a, 0x1a, 0x75, 0x6e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72,
0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x61, 0x75, 0x67, 0x65,
0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x55, 0x6e, 0x73, 0x75, 0x70, 0x70,
0x6f, 0x72, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x22, 0xdd, 0x04, 0x0a, 0x0b, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
0x54, 0x79, 0x70, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f,
0x6e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x53,
0x70, 0x65, 0x63, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x72,
0x74, 0x69, 0x6e, 0x67, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x53, 0x70, 0x65, 0x63, 0x45, 0x78,
0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x10, 0x02, 0x12,
0x1d, 0x0a, 0x19, 0x53, 0x63, 0x65, 0x6e, 0x61, 0x72, 0x69, 0x6f, 0x45, 0x78, 0x65, 0x63, 0x75,
0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x10, 0x03, 0x12, 0x1b,
0x0a, 0x17, 0x53, 0x63, 0x65, 0x6e, 0x61, 0x72, 0x69, 0x6f, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74,
0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x10, 0x04, 0x12, 0x19, 0x0a, 0x15, 0x53,
0x74, 0x65, 0x70, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x72,
0x74, 0x69, 0x6e, 0x67, 0x10, 0x05, 0x12, 0x17, 0x0a, 0x13, 0x53, 0x74, 0x65, 0x70, 0x45, 0x78,
0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x10, 0x06, 0x12,
0x0f, 0x0a, 0x0b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x53, 0x74, 0x65, 0x70, 0x10, 0x07,
0x12, 0x13, 0x0a, 0x0f, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x64,
0x69, 0x6e, 0x67, 0x10, 0x08, 0x12, 0x17, 0x0a, 0x13, 0x53, 0x74, 0x65, 0x70, 0x56, 0x61, 0x6c,
0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x10, 0x09, 0x12, 0x18,
0x0a, 0x14, 0x53, 0x74, 0x65, 0x70, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x10, 0x0a, 0x12, 0x1b, 0x0a, 0x17, 0x45, 0x78, 0x65, 0x63,
0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x10, 0x0b, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x74, 0x65, 0x70, 0x4e, 0x61, 0x6d,
0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x10, 0x0c, 0x12, 0x15, 0x0a, 0x11, 0x53,
0x74, 0x65, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x10, 0x0d, 0x12, 0x16, 0x0a, 0x12, 0x4b, 0x69, 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73,
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x10, 0x0e, 0x12, 0x18, 0x0a, 0x14, 0x53, 0x75,
0x69, 0x74, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75,
0x6c, 0x74, 0x10, 0x0f, 0x12, 0x19, 0x0a, 0x15, 0x53, 0x63, 0x65, 0x6e, 0x61, 0x72, 0x69, 0x6f,
0x44, 0x61, 0x74, 0x61, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x49, 0x6e, 0x69, 0x74, 0x10, 0x10, 0x12,
0x15, 0x0a, 0x11, 0x53, 0x70, 0x65, 0x63, 0x44, 0x61, 0x74, 0x61, 0x53, 0x74, 0x6f, 0x72, 0x65,
0x49, 0x6e, 0x69, 0x74, 0x10, 0x11, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x75, 0x69, 0x74, 0x65, 0x44,
0x61, 0x74, 0x61, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x49, 0x6e, 0x69, 0x74, 0x10, 0x12, 0x12, 0x13,
0x0a, 0x0f, 0x53, 0x74, 0x65, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x10, 0x13, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x74, 0x65, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x10, 0x14, 0x12, 0x13, 0x0a, 0x0f, 0x52, 0x65, 0x66,
0x61, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x10, 0x15, 0x12, 0x14,
0x0a, 0x10, 0x52, 0x65, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x10, 0x16, 0x12, 0x1e, 0x0a, 0x1a, 0x55, 0x6e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72,
0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x10, 0x17, 0x4a, 0xa3, 0x6a, 0x0a, 0x07, 0x12, 0x05, 0x13, 0x00, 0xbf, 0x02, 0x01,
0x0a, 0x08, 0x0a, 0x01, 0x02, 0x12, 0x03, 0x14, 0x08, 0x16, 0x0a, 0x09, 0x0a, 0x02, 0x03, 0x00,
0x12, 0x03, 0x16, 0x07, 0x13, 0x0a, 0x3d, 0x0a, 0x02, 0x04, 0x00, 0x12, 0x04, 0x19, 0x00, 0x1a,
0x01, 0x1a, 0x31, 0x2f, 0x20, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x20, 0x72, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x2e, 0x20, 0x54, 0x65, 0x6c, 0x6c, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20,
0x72, 0x75, 0x6e, 0x6e, 0x65, 0x72, 0x20, 0x74, 0x6f, 0x20, 0x73, 0x68, 0x75, 0x74, 0x64, 0x6f,
0x77, 0x6e, 0x2e, 0x0a, 0x0a, 0x0a, 0x0a, 0x03, 0x04, 0x00, 0x01, 0x12, 0x03, 0x19, 0x08, 0x1a,
0x0a, 0x83, 0x01, 0x0a, 0x02, 0x04, 0x01, 0x12, 0x04, 0x1e, 0x00, 0x20, 0x01, 0x1a, 0x77, 0x2f,
0x20, 0x53, 0x65, 0x6e, 0x64, 0x73, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x6e, 0x79, 0x20, 0x72, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x6e, 0x65, 0x65, 0x64,
0x73, 0x20, 0x61, 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x73, 0x74,
0x61, 0x74, 0x75, 0x73, 0x20, 0x61, 0x73, 0x20, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x0a, 0x2f, 0x20, 0x75, 0x73, 0x75, 0x61, 0x6c, 0x6c, 0x79, 0x20, 0x73, 0x74, 0x65, 0x70, 0x20,
0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2c, 0x20, 0x68, 0x6f, 0x6f, 0x6b, 0x73,
0x20, 0x65, 0x74, 0x63, 0x20, 0x77, 0x69, 0x6c, 0x6c, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e,
0x20, 0x74, 0x68, 0x69, 0x73, 0x0a, 0x0a, 0x0a, 0x0a, 0x03, 0x04, 0x01, 0x01, 0x12, 0x03, 0x1e,
0x08, 0x1f, 0x0a, 0x0b, 0x0a, 0x04, 0x04, 0x01, 0x02, 0x00, 0x12, 0x03, 0x1f, 0x02, 0x43, 0x0a,
0x0c, 0x0a, 0x05, 0x04, 0x01, 0x02, 0x00, 0x04, 0x12, 0x03, 0x1f, 0x02, 0x0a, 0x0a, 0x0c, 0x0a,
0x05, 0x04, 0x01, 0x02, 0x00, 0x06, 0x12, 0x03, 0x1f, 0x0b, 0x2e, 0x0a, 0x0c, 0x0a, 0x05, 0x04,
0x01, 0x02, 0x00, 0x01, 0x12, 0x03, 0x1f, 0x2f, 0x3e, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x01, 0x02,
0x00, 0x03, 0x12, 0x03, 0x1f, 0x41, 0x42, 0x0a, 0x61, 0x0a, 0x02, 0x04, 0x02, 0x12, 0x04, 0x23,
0x00, 0x25, 0x01, 0x1a, 0x55, 0x2f, 0x20, 0x53, 0x65, 0x6e, 0x74, 0x20, 0x61, 0x74, 0x20, 0x73,
0x74, 0x61, 0x72, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x53, 0x75, 0x69, 0x74, 0x65, 0x20, 0x45, 0x78,
0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x20, 0x54, 0x65, 0x6c, 0x6c, 0x73, 0x20, 0x74,
0x68, 0x65, 0x20, 0x72, 0x75, 0x6e, 0x6e, 0x65, 0x72, 0x20, 0x74, 0x6f, 0x20, 0x65, 0x78, 0x65,
0x63, 0x75, 0x74, 0x65, 0x20, 0x60, 0x62, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x5f, 0x73, 0x75, 0x69,
0x74, 0x65, 0x60, 0x20, 0x68, 0x6f, 0x6f, 0x6b, 0x2e, 0x0a, 0x0a, 0x0a, 0x0a, 0x03, 0x04, 0x02,
0x01, 0x12, 0x03, 0x23, 0x08, 0x20, 0x0a, 0x0b, 0x0a, 0x04, 0x04, 0x02, 0x02, 0x00, 0x12, 0x03,
0x24, 0x04, 0x34, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x02, 0x02, 0x00, 0x04, 0x12, 0x03, 0x24, 0x04,
0x0c, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x02, 0x02, 0x00, 0x06, 0x12, 0x03, 0x24, 0x0d, 0x1a, 0x0a,
0x0c, 0x0a, 0x05, 0x04, 0x02, 0x02, 0x00, 0x01, 0x12, 0x03, 0x24, 0x1b, 0x2f, 0x0a, 0x0c, 0x0a,
0x05, 0x04, 0x02, 0x02, 0x00, 0x03, 0x12, 0x03, 0x24, 0x32, 0x33, 0x0a, 0x5e, 0x0a, 0x02, 0x04,
0x03, 0x12, 0x04, 0x28, 0x00, 0x2a, 0x01, 0x1a, 0x52, 0x2f, 0x20, 0x53, 0x65, 0x6e, 0x74, 0x20,
0x61, 0x74, 0x20, 0x65, 0x6e, 0x64, 0x20, 0x6f, 0x66, 0x20, 0x53, 0x75, 0x69, 0x74, 0x65, 0x20,
0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x20, 0x54, 0x65, 0x6c, 0x6c, 0x73,
0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x75, 0x6e, 0x6e, 0x65, 0x72, 0x20, 0x74, 0x6f, 0x20, 0x65,
0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x20, 0x60, 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x73, 0x75,
0x69, 0x74, 0x65, 0x60, 0x20, 0x68, 0x6f, 0x6f, 0x6b, 0x2e, 0x0a, 0x0a, 0x0a, 0x0a, 0x03, 0x04,
0x03, 0x01, 0x12, 0x03, 0x28, 0x08, 0x1e, 0x0a, 0x0b, 0x0a, 0x04, 0x04, 0x03, 0x02, 0x00, 0x12,
0x03, 0x29, 0x04, 0x34, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x03, 0x02, 0x00, 0x04, 0x12, 0x03, 0x29,
0x04, 0x0c, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x03, 0x02, 0x00, 0x06, 0x12, 0x03, 0x29, 0x0d, 0x1a,
0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x03, 0x02, 0x00, 0x01, 0x12, 0x03, 0x29, 0x1b, 0x2f, 0x0a, 0x0c,
0x0a, 0x05, 0x04, 0x03, 0x02, 0x00, 0x03, 0x12, 0x03, 0x29, 0x32, 0x33, 0x0a, 0x5f, 0x0a, 0x02,
0x04, 0x04, 0x12, 0x04, 0x2d, 0x00, 0x2f, 0x01, 0x1a, 0x53, 0x2f, 0x20, 0x53, 0x65, 0x6e, 0x74,
0x20, 0x61, 0x74, 0x20, 0x73, 0x74, 0x61, 0x72, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x53, 0x70, 0x65,
0x63, 0x20, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x20, 0x54, 0x65, 0x6c,
0x6c, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x75, 0x6e, 0x6e, 0x65, 0x72, 0x20, 0x74, 0x6f,
0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x20, 0x60, 0x62, 0x65, 0x66, 0x6f, 0x72, 0x65,
0x5f, 0x73, 0x70, 0x65, 0x63, 0x60, 0x20, 0x68, 0x6f, 0x6f, 0x6b, 0x2e, 0x0a, 0x0a, 0x0a, 0x0a,
0x03, 0x04, 0x04, 0x01, 0x12, 0x03, 0x2d, 0x08, 0x24, 0x0a, 0x0b, 0x0a, 0x04, 0x04, 0x04, 0x02,
0x00, 0x12, 0x03, 0x2e, 0x04, 0x34, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x04, 0x02, 0x00, 0x04, 0x12,
0x03, 0x2e, 0x04, 0x0c, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x04, 0x02, 0x00, 0x06, 0x12, 0x03, 0x2e,
0x0d, 0x1a, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x04, 0x02, 0x00, 0x01, 0x12, 0x03, 0x2e, 0x1b, 0x2f,
0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x04, 0x02, 0x00, 0x03, 0x12, 0x03, 0x2e, 0x32, 0x33, 0x0a, 0x5c,
0x0a, 0x02, 0x04, 0x05, 0x12, 0x04, 0x32, 0x00, 0x34, 0x01, 0x1a, 0x50, 0x2f, 0x20, 0x53, 0x65,
0x6e, 0x74, 0x20, 0x61, 0x74, 0x20, 0x65, 0x6e, 0x64, 0x20, 0x6f, 0x66, 0x20, 0x53, 0x70, 0x65,
0x63, 0x20, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x20, 0x54, 0x65, 0x6c,
0x6c, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x75, 0x6e, 0x6e, 0x65, 0x72, 0x20, 0x74, 0x6f,
0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x20, 0x60, 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f,
0x73, 0x70, 0x65, 0x63, 0x60, 0x20, 0x68, 0x6f, 0x6f, 0x6b, 0x2e, 0x0a, 0x0a, 0x0a, 0x0a, 0x03,
0x04, 0x05, 0x01, 0x12, 0x03, 0x32, 0x08, 0x22, 0x0a, 0x0b, 0x0a, 0x04, 0x04, 0x05, 0x02, 0x00,
0x12, 0x03, 0x33, 0x04, 0x34, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x05, 0x02, 0x00, 0x04, 0x12, 0x03,
0x33, 0x04, 0x0c, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x05, 0x02, 0x00, 0x06, 0x12, 0x03, 0x33, 0x0d,
0x1a, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x05, 0x02, 0x00, 0x01, 0x12, 0x03, 0x33, 0x1b, 0x2f, 0x0a,
0x0c, 0x0a, 0x05, 0x04, 0x05, 0x02, 0x00, 0x03, 0x12, 0x03, 0x33, 0x32, 0x33, 0x0a, 0x67, 0x0a,
0x02, 0x04, 0x06, 0x12, 0x04, 0x37, 0x00, 0x39, 0x01, 0x1a, 0x5b, 0x2f, 0x20, 0x53, 0x65, 0x6e,
0x74, 0x20, 0x61, 0x74, 0x20, 0x73, 0x74, 0x61, 0x72, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x53, 0x63,
0x65, 0x6e, 0x61, 0x72, 0x69, 0x6f, 0x20, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e,
0x2e, 0x20, 0x54, 0x65, 0x6c, 0x6c, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x75, 0x6e, 0x6e,
0x65, 0x72, 0x20, 0x74, 0x6f, 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x20, 0x60, 0x62,
0x65, 0x66, 0x6f, 0x72, 0x65, 0x5f, 0x73, 0x63, 0x65, 0x6e, 0x61, 0x72, 0x69, 0x6f, 0x60, 0x20,
0x68, 0x6f, 0x6f, 0x6b, 0x2e, 0x0a, 0x0a, 0x0a, 0x0a, 0x03, 0x04, 0x06, 0x01, 0x12, 0x03, 0x37,
0x08, 0x28, 0x0a, 0x0b, 0x0a, 0x04, 0x04, 0x06, 0x02, 0x00, 0x12, 0x03, 0x38, 0x04, 0x34, 0x0a,
0x0c, 0x0a, 0x05, 0x04, 0x06, 0x02, 0x00, 0x04, 0x12, 0x03, 0x38, 0x04, 0x0c, 0x0a, 0x0c, 0x0a,
0x05, 0x04, 0x06, 0x02, 0x00, 0x06, 0x12, 0x03, 0x38, 0x0d, 0x1a, 0x0a, 0x0c, 0x0a, 0x05, 0x04,
0x06, 0x02, 0x00, 0x01, 0x12, 0x03, 0x38, 0x1b, 0x2f, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x06, 0x02,
0x00, 0x03, 0x12, 0x03, 0x38, 0x32, 0x33, 0x0a, 0x64, 0x0a, 0x02, 0x04, 0x07, 0x12, 0x04, 0x3c,
0x00, 0x3e, 0x01, 0x1a, 0x58, 0x2f, 0x20, 0x53, 0x65, 0x6e, 0x74, 0x20, 0x61, 0x74, 0x20, 0x65,
0x6e, 0x64, 0x20, 0x6f, 0x66, 0x20, 0x53, 0x63, 0x65, 0x6e, 0x61, 0x72, 0x69, 0x6f, 0x20, 0x45,
0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x20, 0x54, 0x65, 0x6c, 0x6c, 0x73, 0x20,
0x74, 0x68, 0x65, 0x20, 0x72, 0x75, 0x6e, 0x6e, 0x65, 0x72, 0x20, 0x74, 0x6f, 0x20, 0x65, 0x78,
0x65, 0x63, 0x75, 0x74, 0x65, 0x20, 0x60, 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x73, 0x63, 0x65,
0x6e, 0x61, 0x72, 0x69, 0x6f, 0x60, 0x20, 0x68, 0x6f, 0x6f, 0x6b, 0x2e, 0x0a, 0x0a, 0x0a, 0x0a,
0x03, 0x04, 0x07, 0x01, 0x12, 0x03, 0x3c, 0x08, 0x26, 0x0a, 0x0b, 0x0a, 0x04, 0x04, 0x07, 0x02,
0x00, 0x12, 0x03, 0x3d, 0x04, 0x34, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x07, 0x02, 0x00, 0x04, 0x12,
0x03, 0x3d, 0x04, 0x0c, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x07, 0x02, 0x00, 0x06, 0x12, 0x03, 0x3d,
0x0d, 0x1a, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x07, 0x02, 0x00, 0x01, 0x12, 0x03, 0x3d, 0x1b, 0x2f,
0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x07, 0x02, 0x00, 0x03, 0x12, 0x03, 0x3d, 0x32, 0x33, 0x0a, 0x5f,
0x0a, 0x02, 0x04, 0x08, 0x12, 0x04, 0x41, 0x00, 0x43, 0x01, 0x1a, 0x53, 0x2f, 0x20, 0x53, 0x65,
0x6e, 0x74, 0x20, 0x61, 0x74, 0x20, 0x73, 0x74, 0x61, 0x72, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x53,
0x74, 0x65, 0x70, 0x20, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x20, 0x54,
0x65, 0x6c, 0x6c, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x75, 0x6e, 0x6e, 0x65, 0x72, 0x20,
0x74, 0x6f, 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x20, 0x60, 0x62, 0x65, 0x66, 0x6f,
0x72, 0x65, 0x5f, 0x73, 0x74, 0x65, 0x70, 0x60, 0x20, 0x68, 0x6f, 0x6f, 0x6b, 0x2e, 0x0a, 0x0a,
0x0a, 0x0a, 0x03, 0x04, 0x08, 0x01, 0x12, 0x03, 0x41, 0x08, 0x24, 0x0a, 0x0b, 0x0a, 0x04, 0x04,
0x08, 0x02, 0x00, 0x12, 0x03, 0x42, 0x04, 0x34, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x08, 0x02, 0x00,
0x04, 0x12, 0x03, 0x42, 0x04, 0x0c, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x08, 0x02, 0x00, 0x06, 0x12,
0x03, 0x42, 0x0d, 0x1a, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x08, 0x02, 0x00, 0x01, 0x12, 0x03, 0x42,
0x1b, 0x2f, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x08, 0x02, 0x00, 0x03, 0x12, 0x03, 0x42, 0x32, 0x33,
0x0a, 0x5c, 0x0a, 0x02, 0x04, 0x09, 0x12, 0x04, 0x46, 0x00, 0x48, 0x01, 0x1a, 0x50, 0x2f, 0x20,
0x53, 0x65, 0x6e, 0x74, 0x20, 0x61, 0x74, 0x20, 0x65, 0x6e, 0x64, 0x20, 0x6f, 0x66, 0x20, 0x53,
0x74, 0x65, 0x70, 0x20, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x20, 0x54,
0x65, 0x6c, 0x6c, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x75, 0x6e, 0x6e, 0x65, 0x72, 0x20,
0x74, 0x6f, 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x20, 0x60, 0x61, 0x66, 0x74, 0x65,
0x72, 0x5f, 0x73, 0x74, 0x65, 0x70, 0x60, 0x20, 0x68, 0x6f, 0x6f, 0x6b, 0x2e, 0x0a, 0x0a, 0x0a,
0x0a, 0x03, 0x04, 0x09, 0x01, 0x12, 0x03, 0x46, 0x08, 0x22, 0x0a, 0x0b, 0x0a, 0x04, 0x04, 0x09,
0x02, 0x00, 0x12, 0x03, 0x47, 0x04, 0x34, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x09, 0x02, 0x00, 0x04,
0x12, 0x03, 0x47, 0x04, 0x0c, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x09, 0x02, 0x00, 0x06, 0x12, 0x03,
0x47, 0x0d, 0x1a, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x09, 0x02, 0x00, 0x01, 0x12, 0x03, 0x47, 0x1b,
0x2f, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x09, 0x02, 0x00, 0x03, 0x12, 0x03, 0x47, 0x32, 0x33, 0x0a,
0x8e, 0x01, 0x0a, 0x02, 0x04, 0x0a, 0x12, 0x04, 0x4c, 0x00, 0x55, 0x01, 0x1a, 0x81, 0x01, 0x2f,
0x20, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x20, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c,
0x73, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69,
0x6f, 0x6e, 0x2e, 0x20, 0x0a, 0x2f, 0x20, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67,
0x20, 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x20,
0x28, 0x53, 0x74, 0x65, 0x70, 0x2c, 0x20, 0x53, 0x63, 0x65, 0x6e, 0x61, 0x72, 0x69, 0x6f, 0x2c,
0x20, 0x53, 0x70, 0x65, 0x63, 0x20, 0x6f, 0x72, 0x20, 0x53, 0x75, 0x69, 0x74, 0x65, 0x29, 0x2c,
0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x70, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x20,
0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x20, 0x61, 0x72, 0x65, 0x20, 0x73, 0x65, 0x74, 0x2e, 0x0a,
0x0a, 0x0a, 0x0a, 0x03, 0x04, 0x0a, 0x01, 0x12, 0x03, 0x4c, 0x08, 0x15, 0x0a, 0x5e, 0x0a, 0x04,
0x04, 0x0a, 0x02, 0x00, 0x12, 0x03, 0x4e, 0x04, 0x26, 0x1a, 0x51, 0x2f, 0x20, 0x48, 0x6f, 0x6c,
0x64, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x69, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69,
0x6f, 0x6e, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e,
0x74, 0x20, 0x53, 0x70, 0x65, 0x63, 0x2e, 0x20, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x20, 0x69, 0x6e,
0x20, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x53, 0x70, 0x65, 0x63,
0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x0a, 0x0a, 0x0c, 0x0a, 0x05,
0x04, 0x0a, 0x02, 0x00, 0x04, 0x12, 0x03, 0x4e, 0x04, 0x0c, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0a,
0x02, 0x00, 0x06, 0x12, 0x03, 0x4e, 0x0d, 0x15, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0a, 0x02, 0x00,
0x01, 0x12, 0x03, 0x4e, 0x16, 0x21, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0a, 0x02, 0x00, 0x03, 0x12,
0x03, 0x4e, 0x24, 0x25, 0x0a, 0x66, 0x0a, 0x04, 0x04, 0x0a, 0x02, 0x01, 0x12, 0x03, 0x50, 0x04,
0x2e, 0x1a, 0x59, 0x2f, 0x20, 0x48, 0x6f, 0x6c, 0x64, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x69,
0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68,
0x65, 0x20, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x20, 0x53, 0x63, 0x65, 0x6e, 0x61, 0x72,
0x69, 0x6f, 0x2e, 0x20, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x20, 0x69, 0x6e, 0x20, 0x63, 0x6f, 0x6e,
0x74, 0x65, 0x78, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x53, 0x63, 0x65, 0x6e, 0x61, 0x72, 0x69, 0x6f,
0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x0a, 0x0a, 0x0c, 0x0a, 0x05,
0x04, 0x0a, 0x02, 0x01, 0x04, 0x12, 0x03, 0x50, 0x04, 0x0c, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0a,
0x02, 0x01, 0x06, 0x12, 0x03, 0x50, 0x0d, 0x19, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0a, 0x02, 0x01,
0x01, 0x12, 0x03, 0x50, 0x1a, 0x29, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0a, 0x02, 0x01, 0x03, 0x12,
0x03, 0x50, 0x2c, 0x2d, 0x0a, 0x5e, 0x0a, 0x04, 0x04, 0x0a, 0x02, 0x02, 0x12, 0x03, 0x52, 0x04,
0x26, 0x1a, 0x51, 0x2f, 0x20, 0x48, 0x6f, 0x6c, 0x64, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x69,
0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68,
0x65, 0x20, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x20, 0x53, 0x74, 0x65, 0x70, 0x2e, 0x20,
0x56, 0x61, 0x6c, 0x69, 0x64, 0x20, 0x69, 0x6e, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74,
0x20, 0x6f, 0x66, 0x20, 0x53, 0x74, 0x65, 0x70, 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69,
0x6f, 0x6e, 0x2e, 0x0a, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0a, 0x02, 0x02, 0x04, 0x12, 0x03, 0x52,
0x04, 0x0c, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0a, 0x02, 0x02, 0x06, 0x12, 0x03, 0x52, 0x0d, 0x15,
0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0a, 0x02, 0x02, 0x01, 0x12, 0x03, 0x52, 0x16, 0x21, 0x0a, 0x0c,
0x0a, 0x05, 0x04, 0x0a, 0x02, 0x02, 0x03, 0x12, 0x03, 0x52, 0x24, 0x25, 0x0a, 0x5a, 0x0a, 0x04,
0x04, 0x0a, 0x02, 0x03, 0x12, 0x03, 0x54, 0x04, 0x23, 0x1a, 0x4d, 0x2f, 0x20, 0x53, 0x74, 0x61,
0x63, 0x6b, 0x74, 0x72, 0x61, 0x63, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x65,
0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x20, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x20,
0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x66, 0x20, 0x74, 0x68, 0x65, 0x72, 0x65, 0x20, 0x69, 0x73,
0x20, 0x61, 0x6e, 0x20, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x20, 0x69, 0x6e, 0x20, 0x65, 0x78, 0x65,
0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x0a, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0a, 0x02, 0x03,
0x04, 0x12, 0x03, 0x54, 0x04, 0x0c, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0a, 0x02, 0x03, 0x05, 0x12,
0x03, 0x54, 0x0d, 0x13, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0a, 0x02, 0x03, 0x01, 0x12, 0x03, 0x54,
0x14, 0x1e, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0a, 0x02, 0x03, 0x03, 0x12, 0x03, 0x54, 0x21, 0x22,
0x0a, 0x36, 0x0a, 0x02, 0x04, 0x0b, 0x12, 0x04, 0x58, 0x00, 0x61, 0x01, 0x1a, 0x2a, 0x2f, 0x20,
0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x20, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73,
0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x53, 0x70, 0x65, 0x63, 0x20, 0x65, 0x78, 0x65,
0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x0a, 0x0a, 0x0a, 0x0a, 0x03, 0x04, 0x0b, 0x01, 0x12,
0x03, 0x58, 0x08, 0x10, 0x0a, 0x38, 0x0a, 0x04, 0x04, 0x0b, 0x02, 0x00, 0x12, 0x03, 0x5a, 0x04,
0x1d, 0x1a, 0x2b, 0x2f, 0x20, 0x4e, 0x61, 0x6d, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65,
0x20, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x20, 0x53, 0x70, 0x65, 0x63, 0x20, 0x62, 0x65,
0x69, 0x6e, 0x67, 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x64, 0x2e, 0x0a, 0x0a, 0x0c,
0x0a, 0x05, 0x04, 0x0b, 0x02, 0x00, 0x04, 0x12, 0x03, 0x5a, 0x04, 0x0c, 0x0a, 0x0c, 0x0a, 0x05,
0x04, 0x0b, 0x02, 0x00, 0x05, 0x12, 0x03, 0x5a, 0x0d, 0x13, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0b,
0x02, 0x00, 0x01, 0x12, 0x03, 0x5a, 0x14, 0x18, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0b, 0x02, 0x00,
0x03, 0x12, 0x03, 0x5a, 0x1b, 0x1c, 0x0a, 0x4a, 0x0a, 0x04, 0x04, 0x0b, 0x02, 0x01, 0x12, 0x03,
0x5c, 0x04, 0x21, 0x1a, 0x3d, 0x2f, 0x20, 0x46, 0x75, 0x6c, 0x6c, 0x20, 0x46, 0x69, 0x6c, 0x65,
0x20, 0x70, 0x61, 0x74, 0x68, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67,
0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x20, 0x53, 0x70, 0x65,
0x63, 0x20, 0x62, 0x65, 0x69, 0x6e, 0x67, 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x64,
0x2e, 0x0a, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0b, 0x02, 0x01, 0x04, 0x12, 0x03, 0x5c, 0x04, 0x0c,
0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0b, 0x02, 0x01, 0x05, 0x12, 0x03, 0x5c, 0x0d, 0x13, 0x0a, 0x0c,
0x0a, 0x05, 0x04, 0x0b, 0x02, 0x01, 0x01, 0x12, 0x03, 0x5c, 0x14, 0x1c, 0x0a, 0x0c, 0x0a, 0x05,
0x04, 0x0b, 0x02, 0x01, 0x03, 0x12, 0x03, 0x5c, 0x1f, 0x20, 0x0a, 0x46, 0x0a, 0x04, 0x04, 0x0b,
0x02, 0x02, 0x12, 0x03, 0x5e, 0x04, 0x1f, 0x1a, 0x39, 0x2f, 0x20, 0x46, 0x6c, 0x61, 0x67, 0x20,
0x74, 0x6f, 0x20, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x20, 0x69, 0x66, 0x20, 0x74,
0x68, 0x65, 0x20, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x20, 0x53, 0x70, 0x65, 0x63, 0x20,
0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64,
0x2e, 0x0a, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0b, 0x02, 0x02, 0x04, 0x12, 0x03, 0x5e, 0x04, 0x0c,
0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0b, 0x02, 0x02, 0x05, 0x12, 0x03, 0x5e, 0x0d, 0x11, 0x0a, 0x0c,
0x0a, 0x05, 0x04, 0x0b, 0x02, 0x02, 0x01, 0x12, 0x03, 0x5e, 0x12, 0x1a, 0x0a, 0x0c, 0x0a, 0x05,
0x04, 0x0b, 0x02, 0x02, 0x03, 0x12, 0x03, 0x5e, 0x1d, 0x1e, 0x0a, 0x3c, 0x0a, 0x04, 0x04, 0x0b,
0x02, 0x03, 0x12, 0x03, 0x60, 0x04, 0x1e, 0x1a, 0x2f, 0x2f, 0x20, 0x54, 0x61, 0x67, 0x73, 0x20,
0x72, 0x65, 0x6c, 0x65, 0x76, 0x61, 0x6e, 0x74, 0x20, 0x74, 0x6f, 0x20, 0x74, 0x68, 0x65, 0x20,
0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x20, 0x53, 0x70, 0x65, 0x63, 0x20, 0x65, 0x78, 0x65,
0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x0a, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0b, 0x02, 0x03,
0x04, 0x12, 0x03, 0x60, 0x04, 0x0c, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0b, 0x02, 0x03, 0x05, 0x12,
0x03, 0x60, 0x0d, 0x13, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0b, 0x02, 0x03, 0x01, 0x12, 0x03, 0x60,
0x15, 0x19, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0b, 0x02, 0x03, 0x03, 0x12, 0x03, 0x60, 0x1c, 0x1d,
0x0a, 0x3a, 0x0a, 0x02, 0x04, 0x0c, 0x12, 0x04, 0x64, 0x00, 0x6b, 0x01, 0x1a, 0x2e, 0x2f, 0x20,
0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x20, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73,
0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x53, 0x63, 0x65, 0x6e, 0x61, 0x72, 0x69, 0x6f,
0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x0a, 0x0a, 0x0a, 0x0a, 0x03,
0x04, 0x0c, 0x01, 0x12, 0x03, 0x64, 0x08, 0x14, 0x0a, 0x3c, 0x0a, 0x04, 0x04, 0x0c, 0x02, 0x00,
0x12, 0x03, 0x66, 0x04, 0x1d, 0x1a, 0x2f, 0x2f, 0x20, 0x4e, 0x61, 0x6d, 0x65, 0x20, 0x6f, 0x66,
0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x20, 0x53, 0x63, 0x65,
0x6e, 0x61, 0x72, 0x69, 0x6f, 0x20, 0x62, 0x65, 0x69, 0x6e, 0x67, 0x20, 0x65, 0x78, 0x65, 0x63,
0x75, 0x74, 0x65, 0x64, 0x2e, 0x0a, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0c, 0x02, 0x00, 0x04, 0x12,
0x03, 0x66, 0x04, 0x0c, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0c, 0x02, 0x00, 0x05, 0x12, 0x03, 0x66,
0x0d, 0x13, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0c, 0x02, 0x00, 0x01, 0x12, 0x03, 0x66, 0x14, 0x18,
0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0c, 0x02, 0x00, 0x03, 0x12, 0x03, 0x66, 0x1b, 0x1c, 0x0a, 0x4a,
0x0a, 0x04, 0x04, 0x0c, 0x02, 0x01, 0x12, 0x03, 0x68, 0x04, 0x1f, 0x1a, 0x3d, 0x2f, 0x20, 0x46,
0x6c, 0x61, 0x67, 0x20, 0x74, 0x6f, 0x20, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x20,
0x69, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x20, 0x53,
0x63, 0x65, 0x6e, 0x61, 0x72, 0x69, 0x6f, 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f,
0x6e, 0x20, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x2e, 0x0a, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0c,
0x02, 0x01, 0x04, 0x12, 0x03, 0x68, 0x04, 0x0c, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0c, 0x02, 0x01,
0x05, 0x12, 0x03, 0x68, 0x0d, 0x11, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0c, 0x02, 0x01, 0x01, 0x12,
0x03, 0x68, 0x12, 0x1a, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0c, 0x02, 0x01, 0x03, 0x12, 0x03, 0x68,
0x1d, 0x1e, 0x0a, 0x40, 0x0a, 0x04, 0x04, 0x0c, 0x02, 0x02, 0x12, 0x03, 0x6a, 0x04, 0x1e, 0x1a,
0x33, 0x2f, 0x20, 0x54, 0x61, 0x67, 0x73, 0x20, 0x72, 0x65, 0x6c, 0x65, 0x76, 0x61, 0x6e, 0x74,
0x20, 0x74, 0x6f, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x20,
0x53, 0x63, 0x65, 0x6e, 0x61, 0x72, 0x69, 0x6f, 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69,
0x6f, 0x6e, 0x2e, 0x0a, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0c, 0x02, 0x02, 0x04, 0x12, 0x03, 0x6a,
0x04, 0x0c, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0c, 0x02, 0x02, 0x05, 0x12, 0x03, 0x6a, 0x0d, 0x13,
0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0c, 0x02, 0x02, 0x01, 0x12, 0x03, 0x6a, 0x15, 0x19, 0x0a, 0x0c,
0x0a, 0x05, 0x04, 0x0c, 0x02, 0x02, 0x03, 0x12, 0x03, 0x6a, 0x1c, 0x1d, 0x0a, 0x36, 0x0a, 0x02,
0x04, 0x0d, 0x12, 0x04, 0x6e, 0x00, 0x73, 0x01, 0x1a, 0x2a, 0x2f, 0x20, 0x43, 0x6f, 0x6e, 0x74,
0x61, 0x69, 0x6e, 0x73, 0x20, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x20, 0x6f, 0x66, 0x20,
0x74, 0x68, 0x65, 0x20, 0x53, 0x74, 0x65, 0x70, 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69,
0x6f, 0x6e, 0x2e, 0x0a, 0x0a, 0x0a, 0x0a, 0x03, 0x04, 0x0d, 0x01, 0x12, 0x03, 0x6e, 0x08, 0x10,
0x0a, 0x33, 0x0a, 0x04, 0x04, 0x0d, 0x02, 0x00, 0x12, 0x03, 0x70, 0x04, 0x29, 0x1a, 0x26, 0x2f,
0x20, 0x54, 0x68, 0x65, 0x20, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x20, 0x72, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x20, 0x74, 0x6f, 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x20,
0x53, 0x74, 0x65, 0x70, 0x0a, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0d, 0x02, 0x00, 0x04, 0x12, 0x03,
0x70, 0x04, 0x0c, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0d, 0x02, 0x00, 0x06, 0x12, 0x03, 0x70, 0x0d,
0x1f, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0d, 0x02, 0x00, 0x01, 0x12, 0x03, 0x70, 0x20, 0x24, 0x0a,
0x0c, 0x0a, 0x05, 0x04, 0x0d, 0x02, 0x00, 0x03, 0x12, 0x03, 0x70, 0x27, 0x28, 0x0a, 0x46, 0x0a,
0x04, 0x04, 0x0d, 0x02, 0x01, 0x12, 0x03, 0x72, 0x04, 0x1f, 0x1a, 0x39, 0x2f, 0x20, 0x46, 0x6c,
0x61, 0x67, 0x20, 0x74, 0x6f, 0x20, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x20, 0x69,
0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x20, 0x53, 0x74,
0x65, 0x70, 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x66, 0x61, 0x69,
0x6c, 0x65, 0x64, 0x2e, 0x0a, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0d, 0x02, 0x01, 0x04, 0x12, 0x03,
0x72, 0x04, 0x0c, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0d, 0x02, 0x01, 0x05, 0x12, 0x03, 0x72, 0x0d,
0x11, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0d, 0x02, 0x01, 0x01, 0x12, 0x03, 0x72, 0x12, 0x1a, 0x0a,
0x0c, 0x0a, 0x05, 0x04, 0x0d, 0x02, 0x01, 0x03, 0x12, 0x03, 0x72, 0x1d, 0x1e, 0x0a, 0x3c, 0x0a,
0x02, 0x04, 0x0e, 0x12, 0x05, 0x76, 0x00, 0x81, 0x01, 0x01, 0x1a, 0x2f, 0x2f, 0x20, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x20, 0x73, 0x65, 0x6e, 0x74, 0x20, 0x6f, 0x74, 0x20, 0x74, 0x68,
0x65, 0x20, 0x72, 0x75, 0x6e, 0x6e, 0x65, 0x72, 0x20, 0x74, 0x6f, 0x20, 0x45, 0x78, 0x65, 0x63,
0x75, 0x74, 0x65, 0x20, 0x61, 0x20, 0x53, 0x74, 0x65, 0x70, 0x0a, 0x0a, 0x0a, 0x0a, 0x03, 0x04,
0x0e, 0x01, 0x12, 0x03, 0x76, 0x08, 0x1a, 0x0a, 0x7c, 0x0a, 0x04, 0x04, 0x0e, 0x02, 0x00, 0x12,
0x03, 0x79, 0x02, 0x25, 0x1a, 0x6f, 0x2f, 0x20, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73,
0x20, 0x74, 0x68, 0x65, 0x20, 0x61, 0x63, 0x74, 0x75, 0x61, 0x6c, 0x20, 0x74, 0x65, 0x78, 0x74,
0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x53, 0x74, 0x65, 0x70, 0x20, 0x62, 0x65, 0x69,
0x6e, 0x67, 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x64, 0x2e, 0x20, 0x0a, 0x2f, 0x20,
0x54, 0x68, 0x69, 0x73, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x20, 0x74, 0x68,
0x65, 0x20, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x20, 0x61, 0x73, 0x20,
0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x53,
0x70, 0x65, 0x63, 0x2e, 0x0a, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0e, 0x02, 0x00, 0x04, 0x12, 0x03,
0x79, 0x02, 0x0a, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0e, 0x02, 0x00, 0x05, 0x12, 0x03, 0x79, 0x0b,
0x11, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0e, 0x02, 0x00, 0x01, 0x12, 0x03, 0x79, 0x12, 0x20, 0x0a,
0x0c, 0x0a, 0x05, 0x04, 0x0e, 0x02, 0x00, 0x03, 0x12, 0x03, 0x79, 0x23, 0x24, 0x0a, 0x75, 0x0a,
0x04, 0x04, 0x0e, 0x02, 0x01, 0x12, 0x03, 0x7c, 0x02, 0x25, 0x1a, 0x68, 0x2f, 0x20, 0x43, 0x6f,
0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x61, 0x72, 0x73, 0x65,
0x64, 0x20, 0x74, 0x65, 0x78, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x53, 0x74,
0x65, 0x70, 0x20, 0x62, 0x65, 0x69, 0x6e, 0x67, 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65,
0x64, 0x2e, 0x20, 0x0a, 0x2f, 0x20, 0x54, 0x68, 0x65, 0x20, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x74,
0x65, 0x72, 0x73, 0x20, 0x61, 0x72, 0x65, 0x20, 0x72, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x64,
0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x68, 0x6f, 0x6c, 0x64, 0x65,
0x72, 0x73, 0x2e, 0x0a, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0e, 0x02, 0x01, 0x04, 0x12, 0x03, 0x7c,
0x02, 0x0a, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0e, 0x02, 0x01, 0x05, 0x12, 0x03, 0x7c, 0x0b, 0x11,
0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0e, 0x02, 0x01, 0x01, 0x12, 0x03, 0x7c, 0x12, 0x20, 0x0a, 0x0c,
0x0a, 0x05, 0x04, 0x0e, 0x02, 0x01, 0x03, 0x12, 0x03, 0x7c, 0x23, 0x24, 0x0a, 0x67, 0x0a, 0x04,
0x04, 0x0e, 0x02, 0x02, 0x12, 0x03, 0x7e, 0x02, 0x24, 0x1a, 0x5a, 0x2f, 0x20, 0x46, 0x6c, 0x61,
0x67, 0x20, 0x74, 0x6f, 0x20, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x20, 0x69, 0x66,
0x20, 0x74, 0x68, 0x65, 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6f,
0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x53, 0x63, 0x65, 0x6e, 0x61, 0x72, 0x69, 0x6f, 0x2c, 0x20,
0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63,
0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x20, 0x53, 0x74, 0x65, 0x70, 0x2c, 0x20, 0x66, 0x61, 0x69,
0x6c, 0x65, 0x64, 0x2e, 0x0a, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0e, 0x02, 0x02, 0x04, 0x12, 0x03,
0x7e, 0x02, 0x0a, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0e, 0x02, 0x02, 0x05, 0x12, 0x03, 0x7e, 0x0b,
0x0f, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x0e, 0x02, 0x02, 0x01, 0x12, 0x03, 0x7e, 0x10, 0x1f, 0x0a,
0x0c, 0x0a, 0x05, 0x04, 0x0e, 0x02, 0x02, 0x03, 0x12, 0x03, 0x7e, 0x22, 0x23, 0x0a, 0x49, 0x0a,
0x04, 0x04, 0x0e, 0x02, 0x03, 0x12, 0x04, 0x80, 0x01, 0x02, 0x33, 0x1a, 0x3b, 0x2f, 0x20, 0x43,
0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x66, 0x20, 0x70, 0x61, 0x72,
0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x20, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x62,
0x6c, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e,
0x74, 0x20, 0x53, 0x74, 0x65, 0x70, 0x2e, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x0e, 0x02, 0x03,
0x04, 0x12, 0x04, 0x80, 0x01, 0x02, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x0e, 0x02, 0x03, 0x06,
0x12, 0x04, 0x80, 0x01, 0x0b, 0x23, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x0e, 0x02, 0x03, 0x01, 0x12,
0x04, 0x80, 0x01, 0x24, 0x2e, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x0e, 0x02, 0x03, 0x03, 0x12, 0x04,
0x80, 0x01, 0x31, 0x32, 0x0a, 0xa7, 0x01, 0x0a, 0x02, 0x04, 0x0f, 0x12, 0x06, 0x85, 0x01, 0x00,
0x8a, 0x01, 0x01, 0x1a, 0x98, 0x01, 0x2f, 0x20, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x20,
0x73, 0x65, 0x6e, 0x74, 0x20, 0x6f, 0x74, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x75, 0x6e, 0x6e,
0x65, 0x72, 0x20, 0x74, 0x6f, 0x20, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x20, 0x69, 0x66, 0x20, 0x67,
0x69, 0x76, 0x65, 0x6e, 0x20, 0x53, 0x74, 0x65, 0x70, 0x20, 0x69, 0x73, 0x20, 0x76, 0x61, 0x6c,
0x69, 0x64, 0x2e, 0x20, 0x0a, 0x2f, 0x20, 0x54, 0x68, 0x65, 0x20, 0x72, 0x75, 0x6e, 0x6e, 0x65,
0x72, 0x20, 0x73, 0x68, 0x6f, 0x75, 0x6c, 0x64, 0x20, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x20, 0x69,
0x66, 0x20, 0x74, 0x68, 0x65, 0x72, 0x65, 0x20, 0x69, 0x73, 0x20, 0x61, 0x6e, 0x20, 0x69, 0x6d,
0x70, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x64, 0x65, 0x66,
0x69, 0x6e, 0x65, 0x64, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x74, 0x68, 0x65, 0x20, 0x67, 0x69, 0x76,
0x65, 0x6e, 0x20, 0x53, 0x74, 0x65, 0x70, 0x20, 0x54, 0x65, 0x78, 0x74, 0x2e, 0x0a, 0x0a, 0x0b,
0x0a, 0x03, 0x04, 0x0f, 0x01, 0x12, 0x04, 0x85, 0x01, 0x08, 0x1b, 0x0a, 0x3f, 0x0a, 0x04, 0x04,
0x0f, 0x02, 0x00, 0x12, 0x04, 0x87, 0x01, 0x02, 0x1f, 0x1a, 0x31, 0x2f, 0x20, 0x54, 0x68, 0x65,
0x20, 0x74, 0x65, 0x78, 0x74, 0x20, 0x69, 0x73, 0x20, 0x75, 0x73, 0x65, 0x64, 0x20, 0x74, 0x6f,
0x20, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x20, 0x53, 0x74, 0x65, 0x70, 0x20, 0x69, 0x6d, 0x70,
0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x0a, 0x0a, 0x0d, 0x0a, 0x05,
0x04, 0x0f, 0x02, 0x00, 0x04, 0x12, 0x04, 0x87, 0x01, 0x02, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04,
0x0f, 0x02, 0x00, 0x05, 0x12, 0x04, 0x87, 0x01, 0x0b, 0x11, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x0f,
0x02, 0x00, 0x01, 0x12, 0x04, 0x87, 0x01, 0x12, 0x1a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x0f, 0x02,
0x00, 0x03, 0x12, 0x04, 0x87, 0x01, 0x1d, 0x1e, 0x0a, 0x34, 0x0a, 0x04, 0x04, 0x0f, 0x02, 0x01,
0x12, 0x04, 0x89, 0x01, 0x02, 0x28, 0x1a, 0x26, 0x2f, 0x20, 0x54, 0x68, 0x65, 0x20, 0x6e, 0x75,
0x6d, 0x62, 0x65, 0x72, 0x20, 0x6f, 0x66, 0x20, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x74, 0x65, 0x72,
0x73, 0x20, 0x69, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x53, 0x74, 0x65, 0x70, 0x0a, 0x0a, 0x0d,
0x0a, 0x05, 0x04, 0x0f, 0x02, 0x01, 0x04, 0x12, 0x04, 0x89, 0x01, 0x02, 0x0a, 0x0a, 0x0d, 0x0a,
0x05, 0x04, 0x0f, 0x02, 0x01, 0x05, 0x12, 0x04, 0x89, 0x01, 0x0b, 0x10, 0x0a, 0x0d, 0x0a, 0x05,
0x04, 0x0f, 0x02, 0x01, 0x01, 0x12, 0x04, 0x89, 0x01, 0x11, 0x23, 0x0a, 0x0d, 0x0a, 0x05, 0x04,
0x0f, 0x02, 0x01, 0x03, 0x12, 0x04, 0x89, 0x01, 0x26, 0x27, 0x0a, 0xd7, 0x01, 0x0a, 0x02, 0x04,
0x10, 0x12, 0x06, 0x90, 0x01, 0x00, 0x98, 0x01, 0x01, 0x1a, 0xc8, 0x01, 0x2f, 0x20, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x53, 0x74, 0x65, 0x70, 0x56, 0x61,
0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x0a, 0x2f,
0x20, 0x54, 0x68, 0x65, 0x20, 0x72, 0x75, 0x6e, 0x6e, 0x65, 0x72, 0x20, 0x74, 0x65, 0x6c, 0x6c,
0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x20, 0x69, 0x66, 0x20,
0x74, 0x68, 0x65, 0x20, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x20, 0x77, 0x61, 0x73, 0x20,
0x76, 0x61, 0x6c, 0x69, 0x64, 0x2c, 0x20, 0x0a, 0x2f, 0x20, 0x69, 0x2e, 0x65, 0x2e, 0x20, 0x61,
0x6e, 0x20, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x67, 0x69, 0x76, 0x65,
0x6e, 0x20, 0x53, 0x74, 0x65, 0x70, 0x20, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x0a, 0x2f, 0x20, 0x52,
0x65, 0x74, 0x75, 0x72, 0x6e, 0x73, 0x20, 0x61, 0x6e, 0x20, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x20,
0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x20, 0x69, 0x66, 0x20, 0x69, 0x74, 0x20, 0x69, 0x73,
0x20, 0x61, 0x6e, 0x20, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x20, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x2e, 0x0a, 0x0a, 0x0b, 0x0a, 0x03, 0x04, 0x10, 0x01, 0x12, 0x04, 0x90, 0x01, 0x08,
0x1c, 0x0a, 0x0e, 0x0a, 0x04, 0x04, 0x10, 0x04, 0x00, 0x12, 0x06, 0x91, 0x01, 0x04, 0x94, 0x01,
0x05, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x10, 0x04, 0x00, 0x01, 0x12, 0x04, 0x91, 0x01, 0x09, 0x12,
0x0a, 0x0e, 0x0a, 0x06, 0x04, 0x10, 0x04, 0x00, 0x02, 0x00, 0x12, 0x04, 0x92, 0x01, 0x08, 0x2a,
0x0a, 0x0f, 0x0a, 0x07, 0x04, 0x10, 0x04, 0x00, 0x02, 0x00, 0x01, 0x12, 0x04, 0x92, 0x01, 0x08,
0x25, 0x0a, 0x0f, 0x0a, 0x07, 0x04, 0x10, 0x04, 0x00, 0x02, 0x00, 0x02, 0x12, 0x04, 0x92, 0x01,
0x28, 0x29, 0x0a, 0x0e, 0x0a, 0x06, 0x04, 0x10, 0x04, 0x00, 0x02, 0x01, 0x12, 0x04, 0x93, 0x01,
0x08, 0x2a, 0x0a, 0x0f, 0x0a, 0x07, 0x04, 0x10, 0x04, 0x00, 0x02, 0x01, 0x01, 0x12, 0x04, 0x93,
0x01, 0x08, 0x25, 0x0a, 0x0f, 0x0a, 0x07, 0x04, 0x10, 0x04, 0x00, 0x02, 0x01, 0x02, 0x12, 0x04,
0x93, 0x01, 0x28, 0x29, 0x0a, 0x0c, 0x0a, 0x04, 0x04, 0x10, 0x02, 0x00, 0x12, 0x04, 0x95, 0x01,
0x04, 0x1e, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x10, 0x02, 0x00, 0x04, 0x12, 0x04, 0x95, 0x01, 0x04,
0x0c, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x10, 0x02, 0x00, 0x05, 0x12, 0x04, 0x95, 0x01, 0x0d, 0x11,
0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x10, 0x02, 0x00, 0x01, 0x12, 0x04, 0x95, 0x01, 0x12, 0x19, 0x0a,
0x0d, 0x0a, 0x05, 0x04, 0x10, 0x02, 0x00, 0x03, 0x12, 0x04, 0x95, 0x01, 0x1c, 0x1d, 0x0a, 0x0c,
0x0a, 0x04, 0x04, 0x10, 0x02, 0x01, 0x12, 0x04, 0x96, 0x01, 0x04, 0x25, 0x0a, 0x0d, 0x0a, 0x05,
0x04, 0x10, 0x02, 0x01, 0x04, 0x12, 0x04, 0x96, 0x01, 0x04, 0x0c, 0x0a, 0x0d, 0x0a, 0x05, 0x04,
0x10, 0x02, 0x01, 0x05, 0x12, 0x04, 0x96, 0x01, 0x0d, 0x13, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x10,
0x02, 0x01, 0x01, 0x12, 0x04, 0x96, 0x01, 0x14, 0x20, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x10, 0x02,
0x01, 0x03, 0x12, 0x04, 0x96, 0x01, 0x23, 0x24, 0x0a, 0x0c, 0x0a, 0x04, 0x04, 0x10, 0x02, 0x02,
0x12, 0x04, 0x97, 0x01, 0x04, 0x25, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x10, 0x02, 0x02, 0x04, 0x12,
0x04, 0x97, 0x01, 0x04, 0x0c, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x10, 0x02, 0x02, 0x06, 0x12, 0x04,
0x97, 0x01, 0x0d, 0x16, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x10, 0x02, 0x02, 0x01, 0x12, 0x04, 0x97,
0x01, 0x17, 0x20, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x10, 0x02, 0x02, 0x03, 0x12, 0x04, 0x97, 0x01,
0x23, 0x24, 0x0a, 0x2f, 0x0a, 0x02, 0x04, 0x11, 0x12, 0x06, 0x9b, 0x01, 0x00, 0x9d, 0x01, 0x01,
0x1a, 0x21, 0x2f, 0x20, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68,
0x65, 0x20, 0x53, 0x75, 0x69, 0x74, 0x65, 0x20, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f,
0x6e, 0x2e, 0x0a, 0x0a, 0x0b, 0x0a, 0x03, 0x04, 0x11, 0x01, 0x12, 0x04, 0x9b, 0x01, 0x08, 0x1c,
0x0a, 0x0c, 0x0a, 0x04, 0x04, 0x11, 0x02, 0x00, 0x12, 0x04, 0x9c, 0x01, 0x04, 0x3d, 0x0a, 0x0d,
0x0a, 0x05, 0x04, 0x11, 0x02, 0x00, 0x04, 0x12, 0x04, 0x9c, 0x01, 0x04, 0x0c, 0x0a, 0x0d, 0x0a,
0x05, 0x04, 0x11, 0x02, 0x00, 0x06, 0x12, 0x04, 0x9c, 0x01, 0x0d, 0x2c, 0x0a, 0x0d, 0x0a, 0x05,
0x04, 0x11, 0x02, 0x00, 0x01, 0x12, 0x04, 0x9c, 0x01, 0x2d, 0x38, 0x0a, 0x0d, 0x0a, 0x05, 0x04,
0x11, 0x02, 0x00, 0x03, 0x12, 0x04, 0x9c, 0x01, 0x3b, 0x3c, 0x0a, 0x37, 0x0a, 0x02, 0x04, 0x12,
0x12, 0x06, 0xa0, 0x01, 0x00, 0xa1, 0x01, 0x01, 0x1a, 0x29, 0x2f, 0x20, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x73, 0x20, 0x47, 0x61, 0x75, 0x67, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x67, 0x69,
0x76, 0x65, 0x20, 0x61, 0x6c, 0x6c, 0x20, 0x53, 0x74, 0x65, 0x70, 0x20, 0x4e, 0x61, 0x6d, 0x65,
0x73, 0x2e, 0x0a, 0x0a, 0x0b, 0x0a, 0x03, 0x04, 0x12, 0x01, 0x12, 0x04, 0xa0, 0x01, 0x08, 0x18,
0x0a, 0x2d, 0x0a, 0x02, 0x04, 0x13, 0x12, 0x06, 0xa5, 0x01, 0x00, 0xa8, 0x01, 0x01, 0x1a, 0x1f,
0x2f, 0x20, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x53, 0x74,
0x65, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x0a, 0x0a,
0x0b, 0x0a, 0x03, 0x04, 0x13, 0x01, 0x12, 0x04, 0xa5, 0x01, 0x08, 0x19, 0x0a, 0x43, 0x0a, 0x04,
0x04, 0x13, 0x02, 0x00, 0x12, 0x04, 0xa7, 0x01, 0x04, 0x1e, 0x1a, 0x35, 0x2f, 0x20, 0x43, 0x6f,
0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x66, 0x20, 0x73, 0x74, 0x72, 0x69,
0x6e, 0x67, 0x73, 0x20, 0x63, 0x6f, 0x72, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x69, 0x6e,
0x67, 0x20, 0x74, 0x6f, 0x20, 0x53, 0x74, 0x65, 0x70, 0x20, 0x74, 0x65, 0x78, 0x74, 0x73, 0x2e,
0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x13, 0x02, 0x00, 0x04, 0x12, 0x04, 0xa7, 0x01, 0x04, 0x0c,
0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x13, 0x02, 0x00, 0x05, 0x12, 0x04, 0xa7, 0x01, 0x0d, 0x13, 0x0a,
0x0d, 0x0a, 0x05, 0x04, 0x13, 0x02, 0x00, 0x01, 0x12, 0x04, 0xa7, 0x01, 0x14, 0x19, 0x0a, 0x0d,
0x0a, 0x05, 0x04, 0x13, 0x02, 0x00, 0x03, 0x12, 0x04, 0xa7, 0x01, 0x1c, 0x1d, 0x0a, 0x7e, 0x0a,
0x02, 0x04, 0x14, 0x12, 0x06, 0xac, 0x01, 0x00, 0xad, 0x01, 0x01, 0x1a, 0x70, 0x2f, 0x20, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x20, 0x72, 0x75, 0x6e, 0x6e, 0x65, 0x72, 0x20, 0x74, 0x6f,
0x20, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x20, 0x53, 0x63, 0x65, 0x6e,
0x61, 0x72, 0x69, 0x6f, 0x20, 0x44, 0x61, 0x74, 0x61, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x0a, 0x2f,
0x20, 0x53, 0x63, 0x65, 0x6e, 0x61, 0x72, 0x69, 0x6f, 0x20, 0x44, 0x61, 0x74, 0x61, 0x73, 0x74,
0x6f, 0x72, 0x65, 0x20, 0x69, 0x73, 0x20, 0x72, 0x65, 0x73, 0x65, 0x74, 0x20, 0x61, 0x66, 0x74,
0x65, 0x72, 0x20, 0x65, 0x76, 0x65, 0x72, 0x79, 0x20, 0x53, 0x63, 0x65, 0x6e, 0x61, 0x72, 0x69,
0x6f, 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x0a, 0x0a, 0x0b, 0x0a,
0x03, 0x04, 0x14, 0x01, 0x12, 0x04, 0xac, 0x01, 0x08, 0x24, 0x0a, 0x72, 0x0a, 0x02, 0x04, 0x15,
0x12, 0x06, 0xb1, 0x01, 0x00, 0xb2, 0x01, 0x01, 0x1a, 0x64, 0x2f, 0x20, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x20, 0x72, 0x75, 0x6e, 0x6e, 0x65, 0x72, 0x20, 0x74, 0x6f, 0x20, 0x69, 0x6e,
0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x20, 0x53, 0x70, 0x65, 0x63, 0x20, 0x44, 0x61,
0x74, 0x61, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x0a, 0x2f, 0x20, 0x53, 0x70, 0x65, 0x63, 0x20, 0x44,
0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x20, 0x69, 0x73, 0x20, 0x72, 0x65, 0x73, 0x65,
0x74, 0x20, 0x61, 0x66, 0x74, 0x65, 0x72, 0x20, 0x65, 0x76, 0x65, 0x72, 0x79, 0x20, 0x53, 0x70,
0x65, 0x63, 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x0a, 0x0a, 0x0b,
0x0a, 0x03, 0x04, 0x15, 0x01, 0x12, 0x04, 0xb1, 0x01, 0x08, 0x20, 0x0a, 0x75, 0x0a, 0x02, 0x04,
0x16, 0x12, 0x06, 0xb6, 0x01, 0x00, 0xb7, 0x01, 0x01, 0x1a, 0x67, 0x2f, 0x20, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x20, 0x72, 0x75, 0x6e, 0x6e, 0x65, 0x72, 0x20, 0x74, 0x6f, 0x20, 0x69,
0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x20, 0x53, 0x75, 0x69, 0x74, 0x65, 0x20,
0x44, 0x61, 0x74, 0x61, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x0a, 0x2f, 0x20, 0x53, 0x75, 0x69, 0x74,
0x65, 0x20, 0x44, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x20, 0x69, 0x73, 0x20, 0x72,
0x65, 0x73, 0x65, 0x74, 0x20, 0x61, 0x66, 0x74, 0x65, 0x72, 0x20, 0x65, 0x76, 0x65, 0x72, 0x79,
0x20, 0x53, 0x75, 0x69, 0x74, 0x65, 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e,
0x2e, 0x0a, 0x0a, 0x0b, 0x0a, 0x03, 0x04, 0x16, 0x01, 0x12, 0x04, 0xb6, 0x01, 0x08, 0x21, 0x0a,
0x60, 0x0a, 0x02, 0x04, 0x17, 0x12, 0x06, 0xbb, 0x01, 0x00, 0xbe, 0x01, 0x01, 0x1a, 0x52, 0x2f,
0x20, 0x48, 0x6f, 0x6c, 0x64, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6e, 0x65, 0x77, 0x20, 0x61,
0x6e, 0x64, 0x20, 0x6f, 0x6c, 0x64, 0x20, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73,
0x20, 0x6f, 0x66, 0x20, 0x61, 0x20, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x2e,
0x0a, 0x2f, 0x20, 0x55, 0x73, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x72, 0x65, 0x66,
0x61, 0x63, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x20, 0x61, 0x20, 0x53, 0x74, 0x65, 0x70, 0x2e,
0x0a, 0x0a, 0x0b, 0x0a, 0x03, 0x04, 0x17, 0x01, 0x12, 0x04, 0xbb, 0x01, 0x08, 0x19, 0x0a, 0x0c,
0x0a, 0x04, 0x04, 0x17, 0x02, 0x00, 0x12, 0x04, 0xbc, 0x01, 0x02, 0x21, 0x0a, 0x0d, 0x0a, 0x05,
0x04, 0x17, 0x02, 0x00, 0x04, 0x12, 0x04, 0xbc, 0x01, 0x02, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04,
0x17, 0x02, 0x00, 0x05, 0x12, 0x04, 0xbc, 0x01, 0x0b, 0x10, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x17,
0x02, 0x00, 0x01, 0x12, 0x04, 0xbc, 0x01, 0x11, 0x1c, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x17, 0x02,
0x00, 0x03, 0x12, 0x04, 0xbc, 0x01, 0x1f, 0x20, 0x0a, 0x0c, 0x0a, 0x04, 0x04, 0x17, 0x02, 0x01,
0x12, 0x04, 0xbd, 0x01, 0x02, 0x21, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x17, 0x02, 0x01, 0x04, 0x12,
0x04, 0xbd, 0x01, 0x02, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x17, 0x02, 0x01, 0x05, 0x12, 0x04,
0xbd, 0x01, 0x0b, 0x10, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x17, 0x02, 0x01, 0x01, 0x12, 0x04, 0xbd,
0x01, 0x11, 0x1c, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x17, 0x02, 0x01, 0x03, 0x12, 0x04, 0xbd, 0x01,
0x1f, 0x20, 0x0a, 0x41, 0x0a, 0x02, 0x04, 0x18, 0x12, 0x06, 0xc1, 0x01, 0x00, 0xc8, 0x01, 0x01,
0x1a, 0x33, 0x2f, 0x20, 0x54, 0x65, 0x6c, 0x6c, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x75,
0x6e, 0x6e, 0x65, 0x72, 0x20, 0x74, 0x6f, 0x20, 0x72, 0x65, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72,
0x20, 0x74, 0x68, 0x65, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x20, 0x53,
0x74, 0x65, 0x70, 0x2e, 0x0a, 0x0a, 0x0b, 0x0a, 0x03, 0x04, 0x18, 0x01, 0x12, 0x04, 0xc1, 0x01,
0x08, 0x17, 0x0a, 0x3b, 0x0a, 0x04, 0x04, 0x18, 0x02, 0x00, 0x12, 0x04, 0xc3, 0x01, 0x02, 0x3a,
0x1a, 0x2d, 0x2f, 0x20, 0x4f, 0x6c, 0x64, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2c, 0x20, 0x75,
0x73, 0x65, 0x64, 0x20, 0x74, 0x6f, 0x20, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x20, 0x53, 0x74,
0x65, 0x70, 0x20, 0x74, 0x6f, 0x20, 0x72, 0x65, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x0a, 0x0a,
0x0d, 0x0a, 0x05, 0x04, 0x18, 0x02, 0x00, 0x04, 0x12, 0x04, 0xc3, 0x01, 0x02, 0x0a, 0x0a, 0x0d,
0x0a, 0x05, 0x04, 0x18, 0x02, 0x00, 0x06, 0x12, 0x04, 0xc3, 0x01, 0x0b, 0x28, 0x0a, 0x0d, 0x0a,
0x05, 0x04, 0x18, 0x02, 0x00, 0x01, 0x12, 0x04, 0xc3, 0x01, 0x29, 0x35, 0x0a, 0x0d, 0x0a, 0x05,
0x04, 0x18, 0x02, 0x00, 0x03, 0x12, 0x04, 0xc3, 0x01, 0x38, 0x39, 0x0a, 0x45, 0x0a, 0x04, 0x04,
0x18, 0x02, 0x01, 0x12, 0x04, 0xc5, 0x01, 0x02, 0x3a, 0x1a, 0x37, 0x2f, 0x20, 0x4e, 0x65, 0x77,
0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2c, 0x20, 0x74, 0x68, 0x65, 0x20, 0x74, 0x6f, 0x2d, 0x62,
0x65, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x53, 0x74, 0x65, 0x70, 0x20,
0x62, 0x65, 0x69, 0x6e, 0x67, 0x20, 0x72, 0x65, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x65, 0x64,
0x2e, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x18, 0x02, 0x01, 0x04, 0x12, 0x04, 0xc5, 0x01, 0x02,
0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x18, 0x02, 0x01, 0x06, 0x12, 0x04, 0xc5, 0x01, 0x0b, 0x28,
0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x18, 0x02, 0x01, 0x01, 0x12, 0x04, 0xc5, 0x01, 0x29, 0x35, 0x0a,
0x0d, 0x0a, 0x05, 0x04, 0x18, 0x02, 0x01, 0x03, 0x12, 0x04, 0xc5, 0x01, 0x38, 0x39, 0x0a, 0x67,
0x0a, 0x04, 0x04, 0x18, 0x02, 0x02, 0x12, 0x04, 0xc7, 0x01, 0x02, 0x30, 0x1a, 0x59, 0x2f, 0x20,
0x48, 0x6f, 0x6c, 0x64, 0x73, 0x20, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x20,
0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x20, 0x6f, 0x66, 0x20, 0x61, 0x6c, 0x6c,
0x20, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x20, 0x43, 0x6f, 0x6e,
0x74, 0x61, 0x69, 0x6e, 0x73, 0x20, 0x6f, 0x6c, 0x64, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x6e, 0x65,
0x77, 0x20, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x20, 0x70, 0x6f, 0x73, 0x69,
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x18, 0x02, 0x02, 0x04,
0x12, 0x04, 0xc7, 0x01, 0x02, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x18, 0x02, 0x02, 0x06, 0x12,
0x04, 0xc7, 0x01, 0x0b, 0x1c, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x18, 0x02, 0x02, 0x01, 0x12, 0x04,
0xc7, 0x01, 0x1d, 0x2b, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x18, 0x02, 0x02, 0x03, 0x12, 0x04, 0xc7,
0x01, 0x2e, 0x2f, 0x0a, 0x2e, 0x0a, 0x02, 0x04, 0x19, 0x12, 0x06, 0xcb, 0x01, 0x00, 0xd2, 0x01,
0x01, 0x1a, 0x20, 0x2f, 0x20, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x20, 0x6f, 0x66,
0x20, 0x61, 0x20, 0x52, 0x65, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x0a, 0x0a, 0x0b, 0x0a, 0x03, 0x04, 0x19, 0x01, 0x12, 0x04, 0xcb, 0x01, 0x08, 0x18,
0x0a, 0x43, 0x0a, 0x04, 0x04, 0x19, 0x02, 0x00, 0x12, 0x04, 0xcd, 0x01, 0x02, 0x1c, 0x1a, 0x35,
0x2f, 0x20, 0x46, 0x6c, 0x61, 0x67, 0x20, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6e,
0x67, 0x20, 0x74, 0x68, 0x65, 0x20, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x20, 0x6f, 0x66,
0x20, 0x52, 0x65, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x20, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74,
0x69, 0x6f, 0x6e, 0x2e, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x19, 0x02, 0x00, 0x04, 0x12, 0x04,
0xcd, 0x01, 0x02, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x19, 0x02, 0x00, 0x05, 0x12, 0x04, 0xcd,
0x01, 0x0b, 0x0f, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x19, 0x02, 0x00, 0x01, 0x12, 0x04, 0xcd, 0x01,
0x10, 0x17, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x19, 0x02, 0x00, 0x03, 0x12, 0x04, 0xcd, 0x01, 0x1a,
0x1b, 0x0a, 0x48, 0x0a, 0x04, 0x04, 0x19, 0x02, 0x01, 0x12, 0x04, 0xcf, 0x01, 0x02, 0x1c, 0x1a,
0x3a, 0x2f, 0x20, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x20, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
0x2c, 0x20, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x20, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x69, 0x66, 0x20,
0x52, 0x65, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x20, 0x77, 0x61, 0x73, 0x6e, 0x27, 0x74, 0x20,
0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x66, 0x75, 0x6c, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04,
0x19, 0x02, 0x01, 0x04, 0x12, 0x04, 0xcf, 0x01, 0x02, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x19,
0x02, 0x01, 0x05, 0x12, 0x04, 0xcf, 0x01, 0x0b, 0x11, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x19, 0x02,
0x01, 0x01, 0x12, 0x04, 0xcf, 0x01, 0x12, 0x17, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x19, 0x02, 0x01,
0x03, 0x12, 0x04, 0xcf, 0x01, 0x1a, 0x1b, 0x0a, 0x4d, 0x0a, 0x04, 0x04, 0x19, 0x02, 0x02, 0x12,
0x04, 0xd1, 0x01, 0x02, 0x23, 0x1a, 0x3f, 0x2f, 0x20, 0x4c, 0x69, 0x73, 0x74, 0x20, 0x6f, 0x66,
0x20, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x77, 0x65, 0x72, 0x65,
0x20, 0x61, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x20, 0x62, 0x65, 0x63, 0x61, 0x75, 0x73,
0x65, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x66, 0x61, 0x63, 0x74, 0x6f,
0x72, 0x69, 0x6e, 0x67, 0x2e, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x19, 0x02, 0x02, 0x04, 0x12,
0x04, 0xd1, 0x01, 0x02, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x19, 0x02, 0x02, 0x05, 0x12, 0x04,
0xd1, 0x01, 0x0b, 0x11, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x19, 0x02, 0x02, 0x01, 0x12, 0x04, 0xd1,
0x01, 0x12, 0x1e, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x19, 0x02, 0x02, 0x03, 0x12, 0x04, 0xd1, 0x01,
0x21, 0x22, 0x0a, 0x36, 0x0a, 0x02, 0x04, 0x1a, 0x12, 0x06, 0xd5, 0x01, 0x00, 0xd9, 0x01, 0x01,
0x1a, 0x28, 0x2f, 0x20, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x20, 0x66, 0x6f, 0x72, 0x20,
0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x20, 0x6f, 0x6e, 0x20, 0x61, 0x20, 0x53, 0x69, 0x6e,
0x67, 0x6c, 0x65, 0x20, 0x53, 0x74, 0x65, 0x70, 0x2e, 0x0a, 0x0a, 0x0b, 0x0a, 0x03, 0x04, 0x1a,
0x01, 0x12, 0x04, 0xd5, 0x01, 0x08, 0x17, 0x0a, 0x77, 0x0a, 0x04, 0x04, 0x1a, 0x02, 0x00, 0x12,
0x04, 0xd8, 0x01, 0x02, 0x20, 0x1a, 0x69, 0x2f, 0x20, 0x53, 0x74, 0x65, 0x70, 0x20, 0x74, 0x65,
0x78, 0x74, 0x20, 0x74, 0x6f, 0x20, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x20, 0x74, 0x68, 0x65,
0x20, 0x53, 0x74, 0x65, 0x70, 0x2e, 0x20, 0x0a, 0x2f, 0x20, 0x54, 0x68, 0x69, 0x73, 0x20, 0x69,
0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, 0x20, 0x73, 0x74, 0x65,
0x70, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2c, 0x20, 0x69, 0x2e, 0x65, 0x2e, 0x20, 0x77, 0x69,
0x74, 0x68, 0x20, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x73, 0x20,
0x66, 0x6f, 0x72, 0x20, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x0a,
0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1a, 0x02, 0x00, 0x04, 0x12, 0x04, 0xd8, 0x01, 0x02, 0x0a, 0x0a,
0x0d, 0x0a, 0x05, 0x04, 0x1a, 0x02, 0x00, 0x05, 0x12, 0x04, 0xd8, 0x01, 0x0b, 0x11, 0x0a, 0x0d,
0x0a, 0x05, 0x04, 0x1a, 0x02, 0x00, 0x01, 0x12, 0x04, 0xd8, 0x01, 0x12, 0x1b, 0x0a, 0x0d, 0x0a,
0x05, 0x04, 0x1a, 0x02, 0x00, 0x03, 0x12, 0x04, 0xd8, 0x01, 0x1e, 0x1f, 0x0a, 0x2d, 0x0a, 0x02,
0x04, 0x1b, 0x12, 0x06, 0xdc, 0x01, 0x00, 0xe3, 0x01, 0x01, 0x1a, 0x1f, 0x2f, 0x20, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x53, 0x74, 0x65, 0x70, 0x4e, 0x61,
0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x0a, 0x0a, 0x0b, 0x0a, 0x03, 0x04,
0x1b, 0x01, 0x12, 0x04, 0xdc, 0x01, 0x08, 0x18, 0x0a, 0x4d, 0x0a, 0x04, 0x04, 0x1b, 0x02, 0x00,
0x12, 0x04, 0xde, 0x01, 0x02, 0x22, 0x1a, 0x3f, 0x2f, 0x20, 0x46, 0x6c, 0x61, 0x67, 0x20, 0x69,
0x6e, 0x64, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x20, 0x69, 0x66, 0x20, 0x74, 0x68, 0x65,
0x72, 0x65, 0x20, 0x69, 0x73, 0x20, 0x61, 0x20, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x20, 0x66, 0x6f,
0x72, 0x20, 0x74, 0x68, 0x65, 0x20, 0x67, 0x69, 0x76, 0x65, 0x6e, 0x20, 0x53, 0x74, 0x65, 0x70,
0x20, 0x54, 0x65, 0x78, 0x74, 0x2e, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1b, 0x02, 0x00, 0x04,
0x12, 0x04, 0xde, 0x01, 0x02, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1b, 0x02, 0x00, 0x05, 0x12,
0x04, 0xde, 0x01, 0x0b, 0x0f, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1b, 0x02, 0x00, 0x01, 0x12, 0x04,
0xde, 0x01, 0x10, 0x1d, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1b, 0x02, 0x00, 0x03, 0x12, 0x04, 0xde,
0x01, 0x20, 0x21, 0x0a, 0x32, 0x0a, 0x04, 0x04, 0x1b, 0x02, 0x01, 0x12, 0x04, 0xe0, 0x01, 0x02,
0x1f, 0x1a, 0x24, 0x2f, 0x20, 0x54, 0x68, 0x65, 0x20, 0x53, 0x74, 0x65, 0x70, 0x20, 0x6e, 0x61,
0x6d, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x67, 0x69, 0x76, 0x65, 0x6e, 0x20,
0x73, 0x74, 0x65, 0x70, 0x2e, 0x20, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1b, 0x02, 0x01, 0x04,
0x12, 0x04, 0xe0, 0x01, 0x02, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1b, 0x02, 0x01, 0x05, 0x12,
0x04, 0xe0, 0x01, 0x0b, 0x11, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1b, 0x02, 0x01, 0x01, 0x12, 0x04,
0xe0, 0x01, 0x12, 0x1a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1b, 0x02, 0x01, 0x03, 0x12, 0x04, 0xe0,
0x01, 0x1d, 0x1e, 0x0a, 0x3f, 0x0a, 0x04, 0x04, 0x1b, 0x02, 0x02, 0x12, 0x04, 0xe2, 0x01, 0x02,
0x1d, 0x1a, 0x31, 0x2f, 0x20, 0x46, 0x6c, 0x61, 0x67, 0x20, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x61,
0x74, 0x69, 0x6e, 0x67, 0x20, 0x69, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x67, 0x69, 0x76, 0x65,
0x6e, 0x20, 0x53, 0x74, 0x65, 0x70, 0x20, 0x69, 0x73, 0x20, 0x61, 0x6e, 0x20, 0x61, 0x6c, 0x69,
0x61, 0x73, 0x2e, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1b, 0x02, 0x02, 0x04, 0x12, 0x04, 0xe2,
0x01, 0x02, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1b, 0x02, 0x02, 0x05, 0x12, 0x04, 0xe2, 0x01,
0x0b, 0x0f, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1b, 0x02, 0x02, 0x01, 0x12, 0x04, 0xe2, 0x01, 0x10,
0x18, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1b, 0x02, 0x02, 0x03, 0x12, 0x04, 0xe2, 0x01, 0x1b, 0x1c,
0x0a, 0x45, 0x0a, 0x02, 0x04, 0x1c, 0x12, 0x06, 0xe6, 0x01, 0x00, 0xe8, 0x01, 0x01, 0x1a, 0x37,
0x2f, 0x20, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20,
0x61, 0x20, 0x75, 0x6e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x20, 0x6d, 0x65,
0x73, 0x73, 0x61, 0x67, 0x65, 0x20, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x20, 0x69, 0x73,
0x20, 0x73, 0x65, 0x6e, 0x74, 0x2e, 0x0a, 0x0a, 0x0b, 0x0a, 0x03, 0x04, 0x1c, 0x01, 0x12, 0x04,
0xe6, 0x01, 0x08, 0x22, 0x0a, 0x0c, 0x0a, 0x04, 0x04, 0x1c, 0x02, 0x00, 0x12, 0x04, 0xe7, 0x01,
0x04, 0x20, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1c, 0x02, 0x00, 0x04, 0x12, 0x04, 0xe7, 0x01, 0x04,
0x0c, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1c, 0x02, 0x00, 0x05, 0x12, 0x04, 0xe7, 0x01, 0x0d, 0x13,
0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1c, 0x02, 0x00, 0x01, 0x12, 0x04, 0xe7, 0x01, 0x14, 0x1b, 0x0a,
0x0d, 0x0a, 0x05, 0x04, 0x1c, 0x02, 0x00, 0x03, 0x12, 0x04, 0xe7, 0x01, 0x1e, 0x1f, 0x0a, 0xc0,
0x01, 0x0a, 0x02, 0x04, 0x1d, 0x12, 0x06, 0xed, 0x01, 0x00, 0xbf, 0x02, 0x01, 0x1a, 0xb1, 0x01,
0x2f, 0x20, 0x54, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6d, 0x65,
0x73, 0x73, 0x61, 0x67, 0x65, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x67, 0x65, 0x74, 0x73,
0x20, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x20, 0x61, 0x6c, 0x6c,
0x20, 0x74, 0x68, 0x65, 0x20, 0x74, 0x69, 0x6d, 0x65, 0x0a, 0x2f, 0x20, 0x77, 0x69, 0x74, 0x68,
0x20, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x20, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x20,
0x74, 0x79, 0x70, 0x65, 0x20, 0x73, 0x65, 0x74, 0x0a, 0x2f, 0x20, 0x4f, 0x6e, 0x65, 0x20, 0x6f,
0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2f, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x20, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x20, 0x77, 0x69,
0x6c, 0x6c, 0x20, 0x68, 0x61, 0x76, 0x65, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2c, 0x20, 0x64,
0x65, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x20, 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20,
0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x20, 0x73, 0x65, 0x74, 0x2e,
0x0a, 0x0a, 0x0b, 0x0a, 0x03, 0x04, 0x1d, 0x01, 0x12, 0x04, 0xed, 0x01, 0x08, 0x0f, 0x0a, 0x0e,
0x0a, 0x04, 0x04, 0x1d, 0x04, 0x00, 0x12, 0x06, 0xee, 0x01, 0x02, 0x87, 0x02, 0x03, 0x0a, 0x0d,
0x0a, 0x05, 0x04, 0x1d, 0x04, 0x00, 0x01, 0x12, 0x04, 0xee, 0x01, 0x07, 0x12, 0x0a, 0x0e, 0x0a,
0x06, 0x04, 0x1d, 0x04, 0x00, 0x02, 0x00, 0x12, 0x04, 0xef, 0x01, 0x06, 0x1c, 0x0a, 0x0f, 0x0a,
0x07, 0x04, 0x1d, 0x04, 0x00, 0x02, 0x00, 0x01, 0x12, 0x04, 0xef, 0x01, 0x06, 0x17, 0x0a, 0x0f,
0x0a, 0x07, 0x04, 0x1d, 0x04, 0x00, 0x02, 0x00, 0x02, 0x12, 0x04, 0xef, 0x01, 0x1a, 0x1b, 0x0a,
0x0e, 0x0a, 0x06, 0x04, 0x1d, 0x04, 0x00, 0x02, 0x01, 0x12, 0x04, 0xf0, 0x01, 0x06, 0x20, 0x0a,
0x0f, 0x0a, 0x07, 0x04, 0x1d, 0x04, 0x00, 0x02, 0x01, 0x01, 0x12, 0x04, 0xf0, 0x01, 0x06, 0x1b,
0x0a, 0x0f, 0x0a, 0x07, 0x04, 0x1d, 0x04, 0x00, 0x02, 0x01, 0x02, 0x12, 0x04, 0xf0, 0x01, 0x1e,
0x1f, 0x0a, 0x0e, 0x0a, 0x06, 0x04, 0x1d, 0x04, 0x00, 0x02, 0x02, 0x12, 0x04, 0xf1, 0x01, 0x06,
0x1e, 0x0a, 0x0f, 0x0a, 0x07, 0x04, 0x1d, 0x04, 0x00, 0x02, 0x02, 0x01, 0x12, 0x04, 0xf1, 0x01,
0x06, 0x19, 0x0a, 0x0f, 0x0a, 0x07, 0x04, 0x1d, 0x04, 0x00, 0x02, 0x02, 0x02, 0x12, 0x04, 0xf1,
0x01, 0x1c, 0x1d, 0x0a, 0x0e, 0x0a, 0x06, 0x04, 0x1d, 0x04, 0x00, 0x02, 0x03, 0x12, 0x04, 0xf2,
0x01, 0x06, 0x24, 0x0a, 0x0f, 0x0a, 0x07, 0x04, 0x1d, 0x04, 0x00, 0x02, 0x03, 0x01, 0x12, 0x04,
0xf2, 0x01, 0x06, 0x1f, 0x0a, 0x0f, 0x0a, 0x07, 0x04, 0x1d, 0x04, 0x00, 0x02, 0x03, 0x02, 0x12,
0x04, 0xf2, 0x01, 0x22, 0x23, 0x0a, 0x0e, 0x0a, 0x06, 0x04, 0x1d, 0x04, 0x00, 0x02, 0x04, 0x12,
0x04, 0xf3, 0x01, 0x06, 0x22, 0x0a, 0x0f, 0x0a, 0x07, 0x04, 0x1d, 0x04, 0x00, 0x02, 0x04, 0x01,
0x12, 0x04, 0xf3, 0x01, 0x06, 0x1d, 0x0a, 0x0f, 0x0a, 0x07, 0x04, 0x1d, 0x04, 0x00, 0x02, 0x04,
0x02, 0x12, 0x04, 0xf3, 0x01, 0x20, 0x21, 0x0a, 0x0e, 0x0a, 0x06, 0x04, 0x1d, 0x04, 0x00, 0x02,
0x05, 0x12, 0x04, 0xf4, 0x01, 0x06, 0x20, 0x0a, 0x0f, 0x0a, 0x07, 0x04, 0x1d, 0x04, 0x00, 0x02,
0x05, 0x01, 0x12, 0x04, 0xf4, 0x01, 0x06, 0x1b, 0x0a, 0x0f, 0x0a, 0x07, 0x04, 0x1d, 0x04, 0x00,
0x02, 0x05, 0x02, 0x12, 0x04, 0xf4, 0x01, 0x1e, 0x1f, 0x0a, 0x0e, 0x0a, 0x06, 0x04, 0x1d, 0x04,
0x00, 0x02, 0x06, 0x12, 0x04, 0xf5, 0x01, 0x06, 0x1e, 0x0a, 0x0f, 0x0a, 0x07, 0x04, 0x1d, 0x04,
0x00, 0x02, 0x06, 0x01, 0x12, 0x04, 0xf5, 0x01, 0x06, 0x19, 0x0a, 0x0f, 0x0a, 0x07, 0x04, 0x1d,
0x04, 0x00, 0x02, 0x06, 0x02, 0x12, 0x04, 0xf5, 0x01, 0x1c, 0x1d, 0x0a, 0x0e, 0x0a, 0x06, 0x04,
0x1d, 0x04, 0x00, 0x02, 0x07, 0x12, 0x04, 0xf6, 0x01, 0x06, 0x16, 0x0a, 0x0f, 0x0a, 0x07, 0x04,
0x1d, 0x04, 0x00, 0x02, 0x07, 0x01, 0x12, 0x04, 0xf6, 0x01, 0x06, 0x11, 0x0a, 0x0f, 0x0a, 0x07,
0x04, 0x1d, 0x04, 0x00, 0x02, 0x07, 0x02, 0x12, 0x04, 0xf6, 0x01, 0x14, 0x15, 0x0a, 0x0e, 0x0a,
0x06, 0x04, 0x1d, 0x04, 0x00, 0x02, 0x08, 0x12, 0x04, 0xf7, 0x01, 0x06, 0x1a, 0x0a, 0x0f, 0x0a,
0x07, 0x04, 0x1d, 0x04, 0x00, 0x02, 0x08, 0x01, 0x12, 0x04, 0xf7, 0x01, 0x06, 0x15, 0x0a, 0x0f,
0x0a, 0x07, 0x04, 0x1d, 0x04, 0x00, 0x02, 0x08, 0x02, 0x12, 0x04, 0xf7, 0x01, 0x18, 0x19, 0x0a,
0x0e, 0x0a, 0x06, 0x04, 0x1d, 0x04, 0x00, 0x02, 0x09, 0x12, 0x04, 0xf8, 0x01, 0x06, 0x1e, 0x0a,
0x0f, 0x0a, 0x07, 0x04, 0x1d, 0x04, 0x00, 0x02, 0x09, 0x01, 0x12, 0x04, 0xf8, 0x01, 0x06, 0x19,
0x0a, 0x0f, 0x0a, 0x07, 0x04, 0x1d, 0x04, 0x00, 0x02, 0x09, 0x02, 0x12, 0x04, 0xf8, 0x01, 0x1c,
0x1d, 0x0a, 0x0e, 0x0a, 0x06, 0x04, 0x1d, 0x04, 0x00, 0x02, 0x0a, 0x12, 0x04, 0xf9, 0x01, 0x06,
0x20, 0x0a, 0x0f, 0x0a, 0x07, 0x04, 0x1d, 0x04, 0x00, 0x02, 0x0a, 0x01, 0x12, 0x04, 0xf9, 0x01,
0x06, 0x1a, 0x0a, 0x0f, 0x0a, 0x07, 0x04, 0x1d, 0x04, 0x00, 0x02, 0x0a, 0x02, 0x12, 0x04, 0xf9,
0x01, 0x1d, 0x1f, 0x0a, 0x0e, 0x0a, 0x06, 0x04, 0x1d, 0x04, 0x00, 0x02, 0x0b, 0x12, 0x04, 0xfa,
0x01, 0x06, 0x23, 0x0a, 0x0f, 0x0a, 0x07, 0x04, 0x1d, 0x04, 0x00, 0x02, 0x0b, 0x01, 0x12, 0x04,
0xfa, 0x01, 0x06, 0x1d, 0x0a, 0x0f, 0x0a, 0x07, 0x04, 0x1d, 0x04, 0x00, 0x02, 0x0b, 0x02, 0x12,
0x04, 0xfa, 0x01, 0x20, 0x22, 0x0a, 0x0e, 0x0a, 0x06, 0x04, 0x1d, 0x04, 0x00, 0x02, 0x0c, 0x12,
0x04, 0xfb, 0x01, 0x06, 0x1c, 0x0a, 0x0f, 0x0a, 0x07, 0x04, 0x1d, 0x04, 0x00, 0x02, 0x0c, 0x01,
0x12, 0x04, 0xfb, 0x01, 0x06, 0x16, 0x0a, 0x0f, 0x0a, 0x07, 0x04, 0x1d, 0x04, 0x00, 0x02, 0x0c,
0x02, 0x12, 0x04, 0xfb, 0x01, 0x19, 0x1b, 0x0a, 0x0e, 0x0a, 0x06, 0x04, 0x1d, 0x04, 0x00, 0x02,
0x0d, 0x12, 0x04, 0xfc, 0x01, 0x06, 0x1d, 0x0a, 0x0f, 0x0a, 0x07, 0x04, 0x1d, 0x04, 0x00, 0x02,
0x0d, 0x01, 0x12, 0x04, 0xfc, 0x01, 0x06, 0x17, 0x0a, 0x0f, 0x0a, 0x07, 0x04, 0x1d, 0x04, 0x00,
0x02, 0x0d, 0x02, 0x12, 0x04, 0xfc, 0x01, 0x1a, 0x1c, 0x0a, 0x0e, 0x0a, 0x06, 0x04, 0x1d, 0x04,
0x00, 0x02, 0x0e, 0x12, 0x04, 0xfd, 0x01, 0x06, 0x1e, 0x0a, 0x0f, 0x0a, 0x07, 0x04, 0x1d, 0x04,
0x00, 0x02, 0x0e, 0x01, 0x12, 0x04, 0xfd, 0x01, 0x06, 0x18, 0x0a, 0x0f, 0x0a, 0x07, 0x04, 0x1d,
0x04, 0x00, 0x02, 0x0e, 0x02, 0x12, 0x04, 0xfd, 0x01, 0x1b, 0x1d, 0x0a, 0x0e, 0x0a, 0x06, 0x04,
0x1d, 0x04, 0x00, 0x02, 0x0f, 0x12, 0x04, 0xfe, 0x01, 0x06, 0x20, 0x0a, 0x0f, 0x0a, 0x07, 0x04,
0x1d, 0x04, 0x00, 0x02, 0x0f, 0x01, 0x12, 0x04, 0xfe, 0x01, 0x06, 0x1a, 0x0a, 0x0f, 0x0a, 0x07,
0x04, 0x1d, 0x04, 0x00, 0x02, 0x0f, 0x02, 0x12, 0x04, 0xfe, 0x01, 0x1d, 0x1f, 0x0a, 0x0e, 0x0a,
0x06, 0x04, 0x1d, 0x04, 0x00, 0x02, 0x10, 0x12, 0x04, 0xff, 0x01, 0x06, 0x21, 0x0a, 0x0f, 0x0a,
0x07, 0x04, 0x1d, 0x04, 0x00, 0x02, 0x10, 0x01, 0x12, 0x04, 0xff, 0x01, 0x06, 0x1b, 0x0a, 0x0f,
0x0a, 0x07, 0x04, 0x1d, 0x04, 0x00, 0x02, 0x10, 0x02, 0x12, 0x04, 0xff, 0x01, 0x1e, 0x20, 0x0a,
0x0e, 0x0a, 0x06, 0x04, 0x1d, 0x04, 0x00, 0x02, 0x11, 0x12, 0x04, 0x80, 0x02, 0x06, 0x1d, 0x0a,
0x0f, 0x0a, 0x07, 0x04, 0x1d, 0x04, 0x00, 0x02, 0x11, 0x01, 0x12, 0x04, 0x80, 0x02, 0x06, 0x17,
0x0a, 0x0f, 0x0a, 0x07, 0x04, 0x1d, 0x04, 0x00, 0x02, 0x11, 0x02, 0x12, 0x04, 0x80, 0x02, 0x1a,
0x1c, 0x0a, 0x0e, 0x0a, 0x06, 0x04, 0x1d, 0x04, 0x00, 0x02, 0x12, 0x12, 0x04, 0x81, 0x02, 0x06,
0x1e, 0x0a, 0x0f, 0x0a, 0x07, 0x04, 0x1d, 0x04, 0x00, 0x02, 0x12, 0x01, 0x12, 0x04, 0x81, 0x02,
0x06, 0x18, 0x0a, 0x0f, 0x0a, 0x07, 0x04, 0x1d, 0x04, 0x00, 0x02, 0x12, 0x02, 0x12, 0x04, 0x81,
0x02, 0x1b, 0x1d, 0x0a, 0x0e, 0x0a, 0x06, 0x04, 0x1d, 0x04, 0x00, 0x02, 0x13, 0x12, 0x04, 0x82,
0x02, 0x06, 0x1b, 0x0a, 0x0f, 0x0a, 0x07, 0x04, 0x1d, 0x04, 0x00, 0x02, 0x13, 0x01, 0x12, 0x04,
0x82, 0x02, 0x06, 0x15, 0x0a, 0x0f, 0x0a, 0x07, 0x04, 0x1d, 0x04, 0x00, 0x02, 0x13, 0x02, 0x12,
0x04, 0x82, 0x02, 0x18, 0x1a, 0x0a, 0x0e, 0x0a, 0x06, 0x04, 0x1d, 0x04, 0x00, 0x02, 0x14, 0x12,
0x04, 0x83, 0x02, 0x06, 0x1c, 0x0a, 0x0f, 0x0a, 0x07, 0x04, 0x1d, 0x04, 0x00, 0x02, 0x14, 0x01,
0x12, 0x04, 0x83, 0x02, 0x06, 0x16, 0x0a, 0x0f, 0x0a, 0x07, 0x04, 0x1d, 0x04, 0x00, 0x02, 0x14,
0x02, 0x12, 0x04, 0x83, 0x02, 0x19, 0x1b, 0x0a, 0x0e, 0x0a, 0x06, 0x04, 0x1d, 0x04, 0x00, 0x02,
0x15, 0x12, 0x04, 0x84, 0x02, 0x06, 0x1b, 0x0a, 0x0f, 0x0a, 0x07, 0x04, 0x1d, 0x04, 0x00, 0x02,
0x15, 0x01, 0x12, 0x04, 0x84, 0x02, 0x06, 0x15, 0x0a, 0x0f, 0x0a, 0x07, 0x04, 0x1d, 0x04, 0x00,
0x02, 0x15, 0x02, 0x12, 0x04, 0x84, 0x02, 0x18, 0x1a, 0x0a, 0x0e, 0x0a, 0x06, 0x04, 0x1d, 0x04,
0x00, 0x02, 0x16, 0x12, 0x04, 0x85, 0x02, 0x06, 0x1c, 0x0a, 0x0f, 0x0a, 0x07, 0x04, 0x1d, 0x04,
0x00, 0x02, 0x16, 0x01, 0x12, 0x04, 0x85, 0x02, 0x06, 0x16, 0x0a, 0x0f, 0x0a, 0x07, 0x04, 0x1d,
0x04, 0x00, 0x02, 0x16, 0x02, 0x12, 0x04, 0x85, 0x02, 0x19, 0x1b, 0x0a, 0x0e, 0x0a, 0x06, 0x04,
0x1d, 0x04, 0x00, 0x02, 0x17, 0x12, 0x04, 0x86, 0x02, 0x06, 0x26, 0x0a, 0x0f, 0x0a, 0x07, 0x04,
0x1d, 0x04, 0x00, 0x02, 0x17, 0x01, 0x12, 0x04, 0x86, 0x02, 0x06, 0x20, 0x0a, 0x0f, 0x0a, 0x07,
0x04, 0x1d, 0x04, 0x00, 0x02, 0x17, 0x02, 0x12, 0x04, 0x86, 0x02, 0x23, 0x25, 0x0a, 0x0c, 0x0a,
0x04, 0x04, 0x1d, 0x02, 0x00, 0x12, 0x04, 0x89, 0x02, 0x02, 0x27, 0x0a, 0x0d, 0x0a, 0x05, 0x04,
0x1d, 0x02, 0x00, 0x04, 0x12, 0x04, 0x89, 0x02, 0x02, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d,
0x02, 0x00, 0x06, 0x12, 0x04, 0x89, 0x02, 0x0b, 0x16, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02,
0x00, 0x01, 0x12, 0x04, 0x89, 0x02, 0x17, 0x22, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x00,
0x03, 0x12, 0x04, 0x89, 0x02, 0x25, 0x26, 0x0a, 0xa2, 0x01, 0x0a, 0x04, 0x04, 0x1d, 0x02, 0x01,
0x12, 0x04, 0x8d, 0x02, 0x02, 0x1f, 0x1a, 0x93, 0x01, 0x2f, 0x20, 0x41, 0x20, 0x75, 0x6e, 0x69,
0x71, 0x75, 0x65, 0x20, 0x69, 0x64, 0x20, 0x74, 0x6f, 0x20, 0x72, 0x65, 0x70, 0x72, 0x65, 0x73,
0x65, 0x6e, 0x74, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
0x2e, 0x20, 0x41, 0x20, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x20, 0x74, 0x6f, 0x20,
0x74, 0x68, 0x65, 0x20, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x20, 0x73, 0x68, 0x6f, 0x75,
0x6c, 0x64, 0x20, 0x63, 0x6f, 0x70, 0x79, 0x20, 0x6f, 0x76, 0x65, 0x72, 0x20, 0x74, 0x68, 0x69,
0x73, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2e, 0x0a, 0x2f, 0x20, 0x54, 0x68, 0x69, 0x73, 0x20,
0x69, 0x73, 0x20, 0x75, 0x73, 0x65, 0x64, 0x20, 0x74, 0x6f, 0x20, 0x73, 0x79, 0x6e, 0x63, 0x68,
0x72, 0x6f, 0x6e, 0x69, 0x7a, 0x65, 0x20, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x20,
0x26, 0x20, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x0a, 0x0a, 0x0d, 0x0a, 0x05,
0x04, 0x1d, 0x02, 0x01, 0x04, 0x12, 0x04, 0x8d, 0x02, 0x02, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04,
0x1d, 0x02, 0x01, 0x05, 0x12, 0x04, 0x8d, 0x02, 0x0b, 0x10, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d,
0x02, 0x01, 0x01, 0x12, 0x04, 0x8d, 0x02, 0x11, 0x1a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02,
0x01, 0x03, 0x12, 0x04, 0x8d, 0x02, 0x1d, 0x1e, 0x0a, 0x55, 0x0a, 0x04, 0x04, 0x1d, 0x02, 0x02,
0x12, 0x04, 0x90, 0x02, 0x02, 0x41, 0x1a, 0x47, 0x2f, 0x20, 0x5b, 0x45, 0x78, 0x65, 0x63, 0x75,
0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x5d, 0x28, 0x23, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65, 0x73, 0x73,
0x61, 0x67, 0x65, 0x73, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74,
0x61, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x29, 0x0a, 0x0a,
0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x02, 0x04, 0x12, 0x04, 0x90, 0x02, 0x02, 0x0a, 0x0a, 0x0d,
0x0a, 0x05, 0x04, 0x1d, 0x02, 0x02, 0x06, 0x12, 0x04, 0x90, 0x02, 0x0b, 0x23, 0x0a, 0x0d, 0x0a,
0x05, 0x04, 0x1d, 0x02, 0x02, 0x01, 0x12, 0x04, 0x90, 0x02, 0x24, 0x3c, 0x0a, 0x0d, 0x0a, 0x05,
0x04, 0x1d, 0x02, 0x02, 0x03, 0x12, 0x04, 0x90, 0x02, 0x3f, 0x40, 0x0a, 0x5d, 0x0a, 0x04, 0x04,
0x1d, 0x02, 0x03, 0x12, 0x04, 0x92, 0x02, 0x02, 0x49, 0x1a, 0x4f, 0x2f, 0x20, 0x5b, 0x53, 0x70,
0x65, 0x63, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x72, 0x74,
0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5d, 0x28, 0x23, 0x67, 0x61, 0x75,
0x67, 0x65, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x53, 0x70, 0x65, 0x63,
0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x69, 0x6e,
0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x29, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d,
0x02, 0x03, 0x04, 0x12, 0x04, 0x92, 0x02, 0x02, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02,
0x03, 0x06, 0x12, 0x04, 0x92, 0x02, 0x0b, 0x27, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x03,
0x01, 0x12, 0x04, 0x92, 0x02, 0x28, 0x44, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x03, 0x03,
0x12, 0x04, 0x92, 0x02, 0x47, 0x48, 0x0a, 0x59, 0x0a, 0x04, 0x04, 0x1d, 0x02, 0x04, 0x12, 0x04,
0x94, 0x02, 0x02, 0x45, 0x1a, 0x4b, 0x2f, 0x20, 0x5b, 0x53, 0x70, 0x65, 0x63, 0x45, 0x78, 0x65,
0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x5d, 0x28, 0x23, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65, 0x73, 0x73,
0x61, 0x67, 0x65, 0x73, 0x2e, 0x53, 0x70, 0x65, 0x63, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69,
0x6f, 0x6e, 0x45, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x29,
0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x04, 0x04, 0x12, 0x04, 0x94, 0x02, 0x02, 0x0a,
0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x04, 0x06, 0x12, 0x04, 0x94, 0x02, 0x0b, 0x25, 0x0a,
0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x04, 0x01, 0x12, 0x04, 0x94, 0x02, 0x26, 0x40, 0x0a, 0x0d,
0x0a, 0x05, 0x04, 0x1d, 0x02, 0x04, 0x03, 0x12, 0x04, 0x94, 0x02, 0x43, 0x44, 0x0a, 0x65, 0x0a,
0x04, 0x04, 0x1d, 0x02, 0x05, 0x12, 0x04, 0x96, 0x02, 0x02, 0x51, 0x1a, 0x57, 0x2f, 0x20, 0x5b,
0x53, 0x63, 0x65, 0x6e, 0x61, 0x72, 0x69, 0x6f, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f,
0x6e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x5d, 0x28, 0x23, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
0x73, 0x2e, 0x53, 0x63, 0x65, 0x6e, 0x61, 0x72, 0x69, 0x6f, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74,
0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x29, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x05, 0x04, 0x12, 0x04, 0x96,
0x02, 0x02, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x05, 0x06, 0x12, 0x04, 0x96, 0x02,
0x0b, 0x2b, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x05, 0x01, 0x12, 0x04, 0x96, 0x02, 0x2c,
0x4c, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x05, 0x03, 0x12, 0x04, 0x96, 0x02, 0x4f, 0x50,
0x0a, 0x61, 0x0a, 0x04, 0x04, 0x1d, 0x02, 0x06, 0x12, 0x04, 0x98, 0x02, 0x02, 0x4d, 0x1a, 0x53,
0x2f, 0x20, 0x5b, 0x53, 0x63, 0x65, 0x6e, 0x61, 0x72, 0x69, 0x6f, 0x45, 0x78, 0x65, 0x63, 0x75,
0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x5d, 0x28, 0x23, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
0x65, 0x73, 0x2e, 0x53, 0x63, 0x65, 0x6e, 0x61, 0x72, 0x69, 0x6f, 0x45, 0x78, 0x65, 0x63, 0x75,
0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x29, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x06, 0x04, 0x12, 0x04, 0x98, 0x02,
0x02, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x06, 0x06, 0x12, 0x04, 0x98, 0x02, 0x0b,
0x29, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x06, 0x01, 0x12, 0x04, 0x98, 0x02, 0x2a, 0x48,
0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x06, 0x03, 0x12, 0x04, 0x98, 0x02, 0x4b, 0x4c, 0x0a,
0x5d, 0x0a, 0x04, 0x04, 0x1d, 0x02, 0x07, 0x12, 0x04, 0x9a, 0x02, 0x02, 0x49, 0x1a, 0x4f, 0x2f,
0x20, 0x5b, 0x53, 0x74, 0x65, 0x70, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53,
0x74, 0x61, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5d, 0x28,
0x23, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e,
0x53, 0x74, 0x65, 0x70, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61,
0x72, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x29, 0x0a, 0x0a, 0x0d,
0x0a, 0x05, 0x04, 0x1d, 0x02, 0x07, 0x04, 0x12, 0x04, 0x9a, 0x02, 0x02, 0x0a, 0x0a, 0x0d, 0x0a,
0x05, 0x04, 0x1d, 0x02, 0x07, 0x06, 0x12, 0x04, 0x9a, 0x02, 0x0b, 0x27, 0x0a, 0x0d, 0x0a, 0x05,
0x04, 0x1d, 0x02, 0x07, 0x01, 0x12, 0x04, 0x9a, 0x02, 0x28, 0x44, 0x0a, 0x0d, 0x0a, 0x05, 0x04,
0x1d, 0x02, 0x07, 0x03, 0x12, 0x04, 0x9a, 0x02, 0x47, 0x48, 0x0a, 0x59, 0x0a, 0x04, 0x04, 0x1d,
0x02, 0x08, 0x12, 0x04, 0x9c, 0x02, 0x02, 0x45, 0x1a, 0x4b, 0x2f, 0x20, 0x5b, 0x53, 0x74, 0x65,
0x70, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x64, 0x69, 0x6e, 0x67,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5d, 0x28, 0x23, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e,
0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x53, 0x74, 0x65, 0x70, 0x45, 0x78, 0x65,
0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x29, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x08, 0x04, 0x12, 0x04,
0x9c, 0x02, 0x02, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x08, 0x06, 0x12, 0x04, 0x9c,
0x02, 0x0b, 0x25, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x08, 0x01, 0x12, 0x04, 0x9c, 0x02,
0x26, 0x40, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x08, 0x03, 0x12, 0x04, 0x9c, 0x02, 0x43,
0x44, 0x0a, 0x49, 0x0a, 0x04, 0x04, 0x1d, 0x02, 0x09, 0x12, 0x04, 0x9e, 0x02, 0x02, 0x36, 0x1a,
0x3b, 0x2f, 0x20, 0x5b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x53, 0x74, 0x65, 0x70, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5d, 0x28, 0x23, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d,
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x53,
0x74, 0x65, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x29, 0x0a, 0x0a, 0x0d, 0x0a, 0x05,
0x04, 0x1d, 0x02, 0x09, 0x04, 0x12, 0x04, 0x9e, 0x02, 0x02, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04,
0x1d, 0x02, 0x09, 0x06, 0x12, 0x04, 0x9e, 0x02, 0x0b, 0x1d, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d,
0x02, 0x09, 0x01, 0x12, 0x04, 0x9e, 0x02, 0x1e, 0x30, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02,
0x09, 0x03, 0x12, 0x04, 0x9e, 0x02, 0x33, 0x35, 0x0a, 0x51, 0x0a, 0x04, 0x04, 0x1d, 0x02, 0x0a,
0x12, 0x04, 0xa0, 0x02, 0x02, 0x3e, 0x1a, 0x43, 0x2f, 0x20, 0x5b, 0x45, 0x78, 0x65, 0x63, 0x75,
0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x5d, 0x28, 0x23, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
0x65, 0x73, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x64, 0x69,
0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x29, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04,
0x1d, 0x02, 0x0a, 0x04, 0x12, 0x04, 0xa0, 0x02, 0x02, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d,
0x02, 0x0a, 0x06, 0x12, 0x04, 0xa0, 0x02, 0x0b, 0x21, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02,
0x0a, 0x01, 0x12, 0x04, 0xa0, 0x02, 0x22, 0x38, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x0a,
0x03, 0x12, 0x04, 0xa0, 0x02, 0x3b, 0x3d, 0x0a, 0x4b, 0x0a, 0x04, 0x04, 0x1d, 0x02, 0x0b, 0x12,
0x04, 0xa2, 0x02, 0x02, 0x38, 0x1a, 0x3d, 0x2f, 0x20, 0x5b, 0x53, 0x74, 0x65, 0x70, 0x56, 0x61,
0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5d, 0x28, 0x23,
0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x53,
0x74, 0x65, 0x70, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x29, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x0b, 0x04, 0x12, 0x04, 0xa2,
0x02, 0x02, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x0b, 0x06, 0x12, 0x04, 0xa2, 0x02,
0x0b, 0x1e, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x0b, 0x01, 0x12, 0x04, 0xa2, 0x02, 0x1f,
0x32, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x0b, 0x03, 0x12, 0x04, 0xa2, 0x02, 0x35, 0x37,
0x0a, 0x4d, 0x0a, 0x04, 0x04, 0x1d, 0x02, 0x0c, 0x12, 0x04, 0xa4, 0x02, 0x02, 0x3a, 0x1a, 0x3f,
0x2f, 0x20, 0x5b, 0x53, 0x74, 0x65, 0x70, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5d, 0x28, 0x23, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e,
0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x53, 0x74, 0x65, 0x70, 0x56, 0x61, 0x6c,
0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x29, 0x0a, 0x0a,
0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x0c, 0x04, 0x12, 0x04, 0xa4, 0x02, 0x02, 0x0a, 0x0a, 0x0d,
0x0a, 0x05, 0x04, 0x1d, 0x02, 0x0c, 0x06, 0x12, 0x04, 0xa4, 0x02, 0x0b, 0x1f, 0x0a, 0x0d, 0x0a,
0x05, 0x04, 0x1d, 0x02, 0x0c, 0x01, 0x12, 0x04, 0xa4, 0x02, 0x20, 0x34, 0x0a, 0x0d, 0x0a, 0x05,
0x04, 0x1d, 0x02, 0x0c, 0x03, 0x12, 0x04, 0xa4, 0x02, 0x37, 0x39, 0x0a, 0x53, 0x0a, 0x04, 0x04,
0x1d, 0x02, 0x0d, 0x12, 0x04, 0xa6, 0x02, 0x02, 0x40, 0x1a, 0x45, 0x2f, 0x20, 0x5b, 0x45, 0x78,
0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5d, 0x28, 0x23, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65,
0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e,
0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x29, 0x0a,
0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x0d, 0x04, 0x12, 0x04, 0xa6, 0x02, 0x02, 0x0a, 0x0a,
0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x0d, 0x06, 0x12, 0x04, 0xa6, 0x02, 0x0b, 0x22, 0x0a, 0x0d,
0x0a, 0x05, 0x04, 0x1d, 0x02, 0x0d, 0x01, 0x12, 0x04, 0xa6, 0x02, 0x23, 0x3a, 0x0a, 0x0d, 0x0a,
0x05, 0x04, 0x1d, 0x02, 0x0d, 0x03, 0x12, 0x04, 0xa6, 0x02, 0x3d, 0x3f, 0x0a, 0x45, 0x0a, 0x04,
0x04, 0x1d, 0x02, 0x0e, 0x12, 0x04, 0xa8, 0x02, 0x02, 0x32, 0x1a, 0x37, 0x2f, 0x20, 0x5b, 0x53,
0x74, 0x65, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5d,
0x28, 0x23, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73,
0x2e, 0x53, 0x74, 0x65, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x29, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x0e, 0x04, 0x12, 0x04, 0xa8, 0x02,
0x02, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x0e, 0x06, 0x12, 0x04, 0xa8, 0x02, 0x0b,
0x1b, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x0e, 0x01, 0x12, 0x04, 0xa8, 0x02, 0x1c, 0x2c,
0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x0e, 0x03, 0x12, 0x04, 0xa8, 0x02, 0x2f, 0x31, 0x0a,
0x47, 0x0a, 0x04, 0x04, 0x1d, 0x02, 0x0f, 0x12, 0x04, 0xaa, 0x02, 0x02, 0x34, 0x1a, 0x39, 0x2f,
0x20, 0x5b, 0x53, 0x74, 0x65, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x5d, 0x28, 0x23, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65, 0x73, 0x73,
0x61, 0x67, 0x65, 0x73, 0x2e, 0x53, 0x74, 0x65, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x29, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x0f,
0x04, 0x12, 0x04, 0xaa, 0x02, 0x02, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x0f, 0x06,
0x12, 0x04, 0xaa, 0x02, 0x0b, 0x1c, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x0f, 0x01, 0x12,
0x04, 0xaa, 0x02, 0x1d, 0x2e, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x0f, 0x03, 0x12, 0x04,
0xaa, 0x02, 0x31, 0x33, 0x0a, 0x4f, 0x0a, 0x04, 0x04, 0x1d, 0x02, 0x10, 0x12, 0x04, 0xac, 0x02,
0x02, 0x3a, 0x1a, 0x41, 0x2f, 0x20, 0x5b, 0x53, 0x75, 0x69, 0x74, 0x65, 0x45, 0x78, 0x65, 0x63,
0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x20, 0x5d, 0x28, 0x23, 0x67,
0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x53, 0x75,
0x69, 0x74, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75,
0x6c, 0x74, 0x20, 0x29, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x10, 0x04, 0x12, 0x04,
0xac, 0x02, 0x02, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x10, 0x06, 0x12, 0x04, 0xac,
0x02, 0x0b, 0x1f, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x10, 0x01, 0x12, 0x04, 0xac, 0x02,
0x20, 0x34, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x10, 0x03, 0x12, 0x04, 0xac, 0x02, 0x37,
0x39, 0x0a, 0x49, 0x0a, 0x04, 0x04, 0x1d, 0x02, 0x11, 0x12, 0x04, 0xae, 0x02, 0x02, 0x36, 0x1a,
0x3b, 0x2f, 0x20, 0x5b, 0x4b, 0x69, 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5d, 0x28, 0x23, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d,
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x4b, 0x69, 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x63,
0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x29, 0x0a, 0x0a, 0x0d, 0x0a, 0x05,
0x04, 0x1d, 0x02, 0x11, 0x04, 0x12, 0x04, 0xae, 0x02, 0x02, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04,
0x1d, 0x02, 0x11, 0x06, 0x12, 0x04, 0xae, 0x02, 0x0b, 0x1d, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d,
0x02, 0x11, 0x01, 0x12, 0x04, 0xae, 0x02, 0x1e, 0x30, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02,
0x11, 0x03, 0x12, 0x04, 0xae, 0x02, 0x33, 0x35, 0x0a, 0x5d, 0x0a, 0x04, 0x04, 0x1d, 0x02, 0x12,
0x12, 0x04, 0xb0, 0x02, 0x02, 0x4a, 0x1a, 0x4f, 0x2f, 0x20, 0x5b, 0x53, 0x63, 0x65, 0x6e, 0x61,
0x72, 0x69, 0x6f, 0x44, 0x61, 0x74, 0x61, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x49, 0x6e, 0x69, 0x74,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5d, 0x28, 0x23, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e,
0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x53, 0x63, 0x65, 0x6e, 0x61, 0x72, 0x69,
0x6f, 0x44, 0x61, 0x74, 0x61, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x49, 0x6e, 0x69, 0x74, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x29, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x12, 0x04,
0x12, 0x04, 0xb0, 0x02, 0x02, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x12, 0x06, 0x12,
0x04, 0xb0, 0x02, 0x0b, 0x27, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x12, 0x01, 0x12, 0x04,
0xb0, 0x02, 0x28, 0x44, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x12, 0x03, 0x12, 0x04, 0xb0,
0x02, 0x47, 0x49, 0x0a, 0x55, 0x0a, 0x04, 0x04, 0x1d, 0x02, 0x13, 0x12, 0x04, 0xb2, 0x02, 0x02,
0x42, 0x1a, 0x47, 0x2f, 0x20, 0x5b, 0x53, 0x70, 0x65, 0x63, 0x44, 0x61, 0x74, 0x61, 0x53, 0x74,
0x6f, 0x72, 0x65, 0x49, 0x6e, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5d, 0x28,
0x23, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e,
0x53, 0x70, 0x65, 0x63, 0x44, 0x61, 0x74, 0x61, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x49, 0x6e, 0x69,
0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x29, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d,
0x02, 0x13, 0x04, 0x12, 0x04, 0xb2, 0x02, 0x02, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02,
0x13, 0x06, 0x12, 0x04, 0xb2, 0x02, 0x0b, 0x23, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x13,
0x01, 0x12, 0x04, 0xb2, 0x02, 0x24, 0x3c, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x13, 0x03,
0x12, 0x04, 0xb2, 0x02, 0x3f, 0x41, 0x0a, 0x57, 0x0a, 0x04, 0x04, 0x1d, 0x02, 0x14, 0x12, 0x04,
0xb4, 0x02, 0x02, 0x44, 0x1a, 0x49, 0x2f, 0x20, 0x5b, 0x53, 0x75, 0x69, 0x74, 0x65, 0x44, 0x61,
0x74, 0x61, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x49, 0x6e, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x5d, 0x28, 0x23, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61,
0x67, 0x65, 0x73, 0x2e, 0x53, 0x75, 0x69, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x74, 0x6f,
0x72, 0x65, 0x49, 0x6e, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x29, 0x0a, 0x0a,
0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x14, 0x04, 0x12, 0x04, 0xb4, 0x02, 0x02, 0x0a, 0x0a, 0x0d,
0x0a, 0x05, 0x04, 0x1d, 0x02, 0x14, 0x06, 0x12, 0x04, 0xb4, 0x02, 0x0b, 0x24, 0x0a, 0x0d, 0x0a,
0x05, 0x04, 0x1d, 0x02, 0x14, 0x01, 0x12, 0x04, 0xb4, 0x02, 0x25, 0x3e, 0x0a, 0x0d, 0x0a, 0x05,
0x04, 0x1d, 0x02, 0x14, 0x03, 0x12, 0x04, 0xb4, 0x02, 0x41, 0x43, 0x0a, 0x43, 0x0a, 0x04, 0x04,
0x1d, 0x02, 0x15, 0x12, 0x04, 0xb6, 0x02, 0x02, 0x2f, 0x1a, 0x35, 0x2f, 0x20, 0x5b, 0x53, 0x74,
0x65, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5d, 0x28, 0x23,
0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x53,
0x74, 0x65, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x29, 0x0a,
0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x15, 0x04, 0x12, 0x04, 0xb6, 0x02, 0x02, 0x0a, 0x0a,
0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x15, 0x06, 0x12, 0x04, 0xb6, 0x02, 0x0b, 0x1a, 0x0a, 0x0d,
0x0a, 0x05, 0x04, 0x1d, 0x02, 0x15, 0x01, 0x12, 0x04, 0xb6, 0x02, 0x1b, 0x2a, 0x0a, 0x0d, 0x0a,
0x05, 0x04, 0x1d, 0x02, 0x15, 0x03, 0x12, 0x04, 0xb6, 0x02, 0x2c, 0x2e, 0x0a, 0x45, 0x0a, 0x04,
0x04, 0x1d, 0x02, 0x16, 0x12, 0x04, 0xb8, 0x02, 0x02, 0x31, 0x1a, 0x37, 0x2f, 0x20, 0x5b, 0x53,
0x74, 0x65, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5d,
0x28, 0x23, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73,
0x2e, 0x53, 0x74, 0x65, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x29, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x16, 0x04, 0x12, 0x04, 0xb8, 0x02,
0x02, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x16, 0x06, 0x12, 0x04, 0xb8, 0x02, 0x0b,
0x1b, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x16, 0x01, 0x12, 0x04, 0xb8, 0x02, 0x1c, 0x2c,
0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x16, 0x03, 0x12, 0x04, 0xb8, 0x02, 0x2e, 0x30, 0x0a,
0x43, 0x0a, 0x04, 0x04, 0x1d, 0x02, 0x17, 0x12, 0x04, 0xba, 0x02, 0x02, 0x30, 0x1a, 0x35, 0x2f,
0x20, 0x5b, 0x52, 0x65, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x5d, 0x28, 0x23, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
0x65, 0x73, 0x2e, 0x52, 0x65, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x29, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x17, 0x04, 0x12, 0x04, 0xba,
0x02, 0x02, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x17, 0x06, 0x12, 0x04, 0xba, 0x02,
0x0b, 0x1a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x17, 0x01, 0x12, 0x04, 0xba, 0x02, 0x1b,
0x2a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x17, 0x03, 0x12, 0x04, 0xba, 0x02, 0x2d, 0x2f,
0x0a, 0x45, 0x0a, 0x04, 0x04, 0x1d, 0x02, 0x18, 0x12, 0x04, 0xbc, 0x02, 0x02, 0x32, 0x1a, 0x37,
0x2f, 0x20, 0x5b, 0x52, 0x65, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x5d, 0x28, 0x23, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65, 0x73, 0x73,
0x61, 0x67, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x29, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x18, 0x04,
0x12, 0x04, 0xbc, 0x02, 0x02, 0x0a, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x18, 0x06, 0x12,
0x04, 0xbc, 0x02, 0x0b, 0x1b, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x18, 0x01, 0x12, 0x04,
0xbc, 0x02, 0x1c, 0x2c, 0x0a, 0x0d, 0x0a, 0x05, 0x04, 0x1d, 0x02, 0x18, 0x03, 0x12, 0x04, 0xbc,
0x02, 0x2f, 0x31, 0x0a, 0x59, 0x0a, 0x04, 0x04, 0x1d, 0x02, 0x19, 0x12, 0x04, 0xbe, 0x02, 0x02,
0x46, 0x1a, 0x4b, 0x2f, 0x20, 0x5b, 0x55, 0x6e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65,
0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x5d, 0x28, 0x23, 0x67, 0x61, 0x75, 0x67, 0x65, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
0x73, 0x2e, 0x55, 0x6e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73,
0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x29, 0x0a, 0x0a, 0x0d,
0x0a, 0x05, 0x04, 0x1d, 0x02, 0x19, 0x04, 0x12, 0x04, 0xbe, 0x02, 0x02, 0x0a, 0x0a, 0x0d, 0x0a,
0x05, 0x04, 0x1d, 0x02, 0x19, 0x06, 0x12, 0x04, 0xbe, 0x02, 0x0b, 0x25, 0x0a, 0x0d, 0x0a, 0x05,
0x04, 0x1d, 0x02, 0x19, 0x01, 0x12, 0x04, 0xbe, 0x02, 0x26, 0x40, 0x0a, 0x0d, 0x0a, 0x05, 0x04,
0x1d, 0x02, 0x19, 0x03, 0x12, 0x04, 0xbe, 0x02, 0x43, 0x45,
];
static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ::protobuf::descriptor::FileDescriptorProto,
};
fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap()
}
pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
unsafe {
file_descriptor_proto_lazy.get(|| {
parse_descriptor_proto()
})
}
}
| 44.125869
| 137
| 0.610478
|
ddbc549fe5fb63f5d9d3d02efbc1a2fc0bc631c9
| 5,158
|
java
|
Java
|
src/test/java/com/amazon/aws/iot/greengrass/component/common/ComponentRecipeTest.java
|
Victor-C-Zhang/aws-greengrass-component-common
|
669fffedd49ee717f0219b727af2b0ce00dac1db
|
[
"Apache-2.0"
] | 2
|
2020-12-15T21:58:52.000Z
|
2021-06-15T13:59:41.000Z
|
src/test/java/com/amazon/aws/iot/greengrass/component/common/ComponentRecipeTest.java
|
Victor-C-Zhang/aws-greengrass-component-common
|
669fffedd49ee717f0219b727af2b0ce00dac1db
|
[
"Apache-2.0"
] | 1
|
2021-06-07T23:15:36.000Z
|
2021-06-07T23:45:14.000Z
|
src/test/java/com/amazon/aws/iot/greengrass/component/common/ComponentRecipeTest.java
|
Victor-C-Zhang/aws-greengrass-component-common
|
669fffedd49ee717f0219b727af2b0ce00dac1db
|
[
"Apache-2.0"
] | 2
|
2020-12-15T22:01:35.000Z
|
2021-07-19T22:58:32.000Z
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package com.amazon.aws.iot.greengrass.component.common;
import com.vdurmont.semver4j.Semver;
import org.hamcrest.core.Is;
import org.junit.jupiter.api.Test;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.containsString;
import static org.junit.jupiter.api.Assertions.assertThrows;
class ComponentRecipeTest {
@Test
void GIVEN_component_name_empty_WHEN_build_component_recipe_THEN_throw_illegal_argument_exception() {
Exception exception = assertThrows(IllegalArgumentException.class, () -> ComponentRecipe.builder()
.componentName("")
.componentVersion(new Semver("1.0.0"))
.build());
assertThat(exception.getMessage(), Is.is("Component name is empty"));
}
@Test
void GIVEN_long_component_name_WHEN_build_component_recipe_THEN_throw_illegal_argument_exception() {
Exception exception = assertThrows(IllegalArgumentException.class, () -> ComponentRecipe.builder()
.componentName(
"Long_component_name_exceed_limit_Long_component_name_exceed_limit_Long_component_name_exceed_limit_" +
"Long_component_name_exceed_limit_Long_component_name_exceed_limit_Long_component_name_exceed_limit")
.componentVersion(new Semver("1.0.0"))
.build());
assertThat(exception.getMessage(), containsString("Component name length exceeds"));
}
@Test
void GIVEN_component_name_contain_illegal_character_WHEN_build_component_recipe_THEN_throw_illegal_argument_exception() {
Exception exception = assertThrows(IllegalArgumentException.class, () -> ComponentRecipe.builder()
.componentName("component_name_with space") // space is illegal in component name
.componentVersion(new Semver("1.0.0"))
.build());
assertThat(exception.getMessage(), containsString("Component name could only include characters"));
}
@Test
void GIVEN_component_name_contain_legal_characters_WHEN_build_component_recipe_THEN_return_correct_model() {
ComponentRecipe recipe = ComponentRecipe.builder()
.recipeFormatVersion(RecipeFormatVersion.JAN_25_2020)
.componentName("aws.greengrass.foo-bar_baz")
.componentVersion(new Semver("1.0.0"))
.build();
assertThat(recipe.getComponentName(), Is.is("aws.greengrass.foo-bar_baz"));
}
@Test
void GIVEN_long_component_version_WHEN_build_component_recipe_THEN_throw_illegal_argument_exception() {
Exception exception = assertThrows(IllegalArgumentException.class, () -> ComponentRecipe.builder()
.componentName("foo")
.componentVersion(new Semver("1.0.0-alpha.beta.gamma.alpha.beta" +
".gamma+21AF26D3—-117B344092BD21AF26D3—-117B344092BD"))
.build());
assertThat(exception.getMessage(), containsString("Component version length exceeds"));
}
@Test
void GIVEN_component_major_version_over_limit_WHEN_build_component_recipe_THEN_throw_illegal_argument_exception() {
Exception exception = assertThrows(IllegalArgumentException.class, () -> ComponentRecipe.builder()
.componentName("foo")
.componentVersion(new Semver("1000000.0.0"))
.build());
assertThat(exception.getMessage(), Is.is("Component version major, minor, patch can't exceed 6 digits"));
}
@Test
void GIVEN_component_minor_version_over_limit_WHEN_build_component_recipe_THEN_throw_illegal_argument_exception() {
Exception exception = assertThrows(IllegalArgumentException.class, () -> ComponentRecipe.builder()
.componentName("foo")
.componentVersion(new Semver("1.1000000.0."))
.build());
assertThat(exception.getMessage(), Is.is("Component version major, minor, patch can't exceed 6 digits"));
}
@Test
void GIVEN_component_patch_version_over_limit_WHEN_build_component_recipe_THEN_throw_illegal_argument_exception() {
Exception exception = assertThrows(IllegalArgumentException.class, () -> ComponentRecipe.builder()
.componentName("foo")
.componentVersion(new Semver("1.1.1000000"))
.build());
assertThat(exception.getMessage(), Is.is("Component version major, minor, patch can't exceed 6 digits"));
}
@Test
void GIVEN_legal_component_version_WHEN_build_component_recipe_THEN_return_correct_model() {
ComponentRecipe recipe = ComponentRecipe.builder()
.recipeFormatVersion(RecipeFormatVersion.JAN_25_2020)
.componentName("foo")
.componentVersion(new Semver("1.0.0-alpha.beta.gamma+21AF26D3—-117B344092BD21A"))
.build();
assertThat(recipe.getComponentVersion().getValue(), Is.is("1.0.0-alpha.beta.gamma+21AF26D3—-117B344092BD21A"));
}
}
| 44.852174
| 127
| 0.694067
|
c9c4ba80ba046202eda8a5c5b4ed48152638dc18
| 1,017
|
tsx
|
TypeScript
|
src/brands-grey/BrandsGrey659.tsx
|
react-pakistan/react-icon-collection
|
8b6c293e1bce45b8a60a6b036b6c889b1efccc68
|
[
"MIT"
] | 5
|
2019-09-30T14:54:38.000Z
|
2020-10-19T23:10:40.000Z
|
src/brands-grey/BrandsGrey659.tsx
|
react-pakistan/react-icon-collection
|
8b6c293e1bce45b8a60a6b036b6c889b1efccc68
|
[
"MIT"
] | 1
|
2021-04-23T15:59:09.000Z
|
2021-04-24T15:03:55.000Z
|
src/brands-grey/BrandsGrey659.tsx
|
react-pakistan/react-icon-collection
|
8b6c293e1bce45b8a60a6b036b6c889b1efccc68
|
[
"MIT"
] | 1
|
2020-10-16T08:59:17.000Z
|
2020-10-16T08:59:17.000Z
|
import * as React from "react";
import { IIconProps } from "../styled";
const SvgBrandsGrey659 = (props: IIconProps) => (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
width="1em"
height="1em"
{...props}
>
<path d="M4.102 21.033A11.947 11.947 0 0012 24a11.96 11.96 0 007.902-2.967c1.877-1.912-4.316-8.709-7.902-11.417-3.582 2.708-9.779 9.505-7.898 11.417zm11.16-14.406c2.5 2.961 7.484 10.313 6.076 12.912A11.942 11.942 0 0024 12.004a11.95 11.95 0 00-3.57-8.536s-.027-.022-.082-.042a.824.824 0 00-.281-.045c-.592 0-1.985.434-4.805 3.246zM3.654 3.426c-.057.02-.082.041-.086.042A11.956 11.956 0 000 12.004c0 2.854.998 5.473 2.661 7.533-1.401-2.605 3.579-9.951 6.08-12.91-2.82-2.813-4.216-3.245-4.806-3.245a.725.725 0 00-.281.046v-.002zM12 3.551S9.055 1.828 6.755 1.746c-.903-.033-1.454.295-1.521.339C7.379.646 9.659 0 11.984 0H12c2.334 0 4.605.646 6.766 2.085-.068-.046-.615-.372-1.52-.339C14.946 1.828 12 3.545 12 3.545v.006z" />
</svg>
);
export default SvgBrandsGrey659;
| 59.823529
| 725
| 0.6647
|
dcf756abc1648f294b35ecc9779a1efb2a3d5cd0
| 828
|
rb
|
Ruby
|
app/models/audit_activity/business/add.rb
|
UKGovernmentBEIS/beis-psd
|
73dc8c43e3cea43ceff8a757526f34b8fd986d8c
|
[
"MIT"
] | 3
|
2019-10-07T12:55:11.000Z
|
2020-03-17T15:36:52.000Z
|
app/models/audit_activity/business/add.rb
|
UKGovernmentBEIS/beis-psd
|
73dc8c43e3cea43ceff8a757526f34b8fd986d8c
|
[
"MIT"
] | 1,227
|
2019-10-04T17:16:51.000Z
|
2022-03-31T21:12:20.000Z
|
app/models/audit_activity/business/add.rb
|
UKGovernmentBEIS/beis-psd
|
73dc8c43e3cea43ceff8a757526f34b8fd986d8c
|
[
"MIT"
] | 4
|
2020-11-24T07:15:57.000Z
|
2022-01-07T16:02:37.000Z
|
class AuditActivity::Business::Add < AuditActivity::Base
belongs_to :business, class_name: "::Business"
def self.build_metadata(business, business_investigation)
{ business: business.attributes, investigation_business: business_investigation.attributes }
end
def metadata
migrate_metadata_structure
end
private
def migrate_metadata_structure
metadata = self[:metadata]
return metadata if already_in_new_format?
JSON.parse({
"business" => business.attributes,
"investigation_business" => {
"relationship" => extract_relationship_from_body
}
}.to_json)
end
def extract_relationship_from_body
body.match(/Role: \*\*(?<relationship>.*)\*\*/)["relationship"].delete("\\")
end
def already_in_new_format?
self[:metadata]&.key?("business")
end
end
| 23.657143
| 96
| 0.71256
|
b305fa1f2faa59f0d2299691221737e474fb1463
| 3,794
|
dart
|
Dart
|
packages/flutter_app/test/commons/json_converter/timestamp_converter_test.dart
|
John-Thailand/flutter_app_template
|
d2bcf99982667f68b07cbec5d6a0e7ff8d95be49
|
[
"MIT"
] | 70
|
2021-08-23T23:59:28.000Z
|
2022-03-29T08:22:27.000Z
|
packages/flutter_app/test/commons/json_converter/timestamp_converter_test.dart
|
John-Thailand/flutter_app_template
|
d2bcf99982667f68b07cbec5d6a0e7ff8d95be49
|
[
"MIT"
] | 2
|
2021-08-24T00:01:03.000Z
|
2021-09-13T08:21:12.000Z
|
packages/flutter_app/test/commons/json_converter/timestamp_converter_test.dart
|
John-Thailand/flutter_app_template
|
d2bcf99982667f68b07cbec5d6a0e7ff8d95be49
|
[
"MIT"
] | 7
|
2021-11-20T03:00:23.000Z
|
2022-03-29T11:17:39.000Z
|
import 'dart:math';
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:flutter_app/commons/json_converter/timestamp_converter.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
final random = Random();
late int randomNumber;
setUp(() {
// テストごとにランダム値を書き換える
randomNumber = random.nextInt(1000);
});
group('TimestampConverter', () {
group('fromJson', () {
test('同じ値を引数に与えた時、TimestampからDateTimeへの変換が成功する', () {
final expectDate = DateTime.fromMillisecondsSinceEpoch(randomNumber);
const target = TimestampConverter();
final targetDate =
target.fromJson(Timestamp.fromMillisecondsSinceEpoch(randomNumber));
expect(targetDate, expectDate);
});
test('異なる値を引数に与えた時、TimestampからDateTimeへの変換が失敗する', () {
final expectDate = DateTime.fromMillisecondsSinceEpoch(1000);
const target = TimestampConverter();
final targetDate =
target.fromJson(Timestamp.fromMillisecondsSinceEpoch(999));
expect(targetDate, isNot(expectDate));
});
});
group('toJson', () {
test('同じ値を引数に与えた時、DateTimeからTimestampへの変換が成功する', () {
final expectTimestamp =
Timestamp.fromMillisecondsSinceEpoch(randomNumber);
const target = TimestampConverter();
final targetTimestamp =
target.toJson(DateTime.fromMillisecondsSinceEpoch(randomNumber));
expect(targetTimestamp, expectTimestamp);
});
test('異なる値を引数に与えた時、DateTimeからTimestampへの変換が成功する', () {
final expectTimestamp = Timestamp.fromMillisecondsSinceEpoch(1000);
const target = TimestampConverter();
final targetTimestamp =
target.toJson(DateTime.fromMillisecondsSinceEpoch(999));
expect(targetTimestamp, isNot(expectTimestamp));
});
});
});
group('TimestampOrNullConverter', () {
group('fromJson', () {
test('同じ値を引数に与えた時、TimestampからDateTimeへの変換が成功する', () {
final expectDate = DateTime.fromMillisecondsSinceEpoch(randomNumber);
const target = TimestampOrNullConverter();
final targetDate =
target.fromJson(Timestamp.fromMillisecondsSinceEpoch(randomNumber));
expect(targetDate, expectDate);
});
test('異なる値を引数に与えた時、TimestampからDateTimeへの変換が成功する', () {
final expectDate = DateTime.fromMillisecondsSinceEpoch(1000);
const target = TimestampOrNullConverter();
final targetDate =
target.fromJson(Timestamp.fromMillisecondsSinceEpoch(999));
expect(targetDate, isNot(expectDate));
});
test('引数がnullだった場合はnullが返る', () {
const target = TimestampOrNullConverter();
final targetDate = target.fromJson(null);
expect(targetDate, isNull);
});
});
group('toJson', () {
test('同じ値を引数に与えた時、DateTimeからTimestampへの変換が成功する', () {
final expectTimestamp =
Timestamp.fromMillisecondsSinceEpoch(randomNumber);
const target = TimestampOrNullConverter();
final targetTimestamp =
target.toJson(DateTime.fromMillisecondsSinceEpoch(randomNumber));
expect(targetTimestamp, expectTimestamp);
});
test('異なる値を引数に与えた時、DateTimeからTimestampへの変換が失敗する', () {
final expectTimestamp = Timestamp.fromMillisecondsSinceEpoch(1000);
const target = TimestampOrNullConverter();
final targetTimestamp =
target.toJson(DateTime.fromMillisecondsSinceEpoch(999));
expect(targetTimestamp, isNot(expectTimestamp));
});
test('引数がnullだった場合はnullが返る', () {
const target = TimestampOrNullConverter();
final targetDate = target.toJson(null);
expect(targetDate, isNull);
});
});
});
}
| 30.596774
| 80
| 0.664997
|
2fbe915a80390f7afb148243fa4d8319fd41bb32
| 6,814
|
py
|
Python
|
kilometri.py
|
liljaj/imneversorry
|
edc380da32590b7c44408500518358c46310b03f
|
[
"MIT"
] | null | null | null |
kilometri.py
|
liljaj/imneversorry
|
edc380da32590b7c44408500518358c46310b03f
|
[
"MIT"
] | null | null | null |
kilometri.py
|
liljaj/imneversorry
|
edc380da32590b7c44408500518358c46310b03f
|
[
"MIT"
] | null | null | null |
import collections
import math
import time
import telegram
import db
extract_uid = lambda update: update.message.from_user["id"]
extract_chatid = lambda update: update.message.chat_id
poista_skandit = lambda s: s.replace("ä", "a").replace("Ä", "A").replace("ö", "o").replace("Ö", "O")
class Kilometri:
Laji = collections.namedtuple("Laji", ("monikko", "kerroin"))
Laji.listauskasky = lambda self: poista_skandit(self.monikko)
lajit = {
"kavely": Laji("kävelyt", 1),
"juoksu": Laji("juoksut", 3),
"pyoraily": Laji("pyöräilyt", 0.4),
}
def __init__(self):
self.commands = {
'pisteet': self.pisteetHandler,
'kmstats': self.statsHandler,
'kmhelp': self.helpHandler,
}
for lajinnimi, laji in self.lajit.items():
db.lisaaUrheilulaji(lajinnimi, laji.kerroin)
listauskasky = laji.listauskasky()
lisaa, listaa = self.genLajiHandlerit(lajinnimi)
self.commands[lajinnimi] = lisaa
self.commands[listauskasky] = listaa
self.helptext = "Komennot, kokeile ilman parametria jos et ole varma:\n%s\n\nLajikohtaiset kertoimet:\n%s" % (
"\n".join("/%s" % s for s in self.commands.keys()),
"\n".join("%s: %.1f pistettä/km" % (nimi, laji.kerroin) for nimi, laji in self.lajit.items())
)
def getCommands(self):
return self.commands
def genLajiHandlerit(self, lajinnimi):
def urh(*args, **kwargs):
self.urheilinHandler(lajinnimi, *args, **kwargs)
def get(*args, **kwargs):
self.getStatHandler(lajinnimi, *args, **kwargs)
return (urh, get)
def userFromUid(self, bot, update, uid):
chat_id = extract_chatid(update)
return bot.get_chat_member(chat_id, uid).user
def nameFromUid(self, bot, update, uid):
try:
user = self.userFromUid(bot, update, uid)
if (user.username is None):
return "%s %s" % (str(user.first_name), str(user.last_name))
return user.username
except telegram.TelegramError:
return "(None)"
def parsiAikaLkm(self, args):
aikasuureet = {
"s": 1,
"sek": 1,
"m": 60,
"min": 60,
"h": 60 * 60,
"pv": 60 * 60 * 24,
"d": 60 * 60 * 24,
"kk": 60 * 60 * 24 * 30,
"mo": 60 * 60 * 24 * 30,
"v": 60 * 60 * 24 * 30 * 365,
"y": 60 * 60 * 24 * 30 * 365,
}
aika = 3 * aikasuureet["kk"]
aikanimi = "3kk"
lkm = 30
for arg in args:
try:
lkm = int(arg)
continue
except ValueError:
pass
for lyhenne, kerroin in aikasuureet.items():
if (arg.endswith(lyhenne)):
try:
aika = float(arg.rstrip(lyhenne)) * kerroin
aikanimi = arg
break
except ValueError:
pass
else:
raise ValueError("Unrecognized '%s' in args" % arg)
return (aika, aikanimi, lkm)
def urheilinHandler(self, lajinnimi, bot, update, args):
def printUsage():
usage = "Usage: /%s <km>" % lajinnimi
bot.sendMessage(chat_id=update.message.chat_id, text=usage)
invalidDistance = lambda km: math.isnan(km) or math.isinf(km)
if (len(args) != 1):
printUsage()
return
uid = extract_uid(update)
chatid = extract_chatid(update)
try:
km = float(args[0].rstrip("km"))
if (invalidDistance(km)):
raise ValueError("invalid distance %f" % km)
except ValueError:
printUsage()
return
now = int(time.time())
db.addUrheilu(uid, chatid, km, lajinnimi, now)
def getStatHandler(self, lajinnimi, bot, update, args):
def printUsage(komento):
usage = "Usage: /%s [lkm] [ajalta]" % komento
bot.sendMessage(chat_id=update.message.chat_id, text=usage)
laji = self.lajit[lajinnimi]
try:
aika, aikanimi, lkm = self.parsiAikaLkm(args)
except ValueError:
printUsage(laji.listauskasky())
return
alkaen = time.time() - aika
chatid = extract_chatid(update)
top_suoritukset = db.getTopUrheilut(chatid, lajinnimi, alkaen, lkm)
lista = "\n".join("%s: %.1f km" %
(self.nameFromUid(bot, update, uid), km)
for uid, km in top_suoritukset)
bot.sendMessage(chat_id=update.message.chat_id,
text="Top %i %s viimeisen %s aikana:\n\n%s" %
(lkm, laji.monikko, aikanimi, lista))
def pisteetHandler(self, bot, update, args=tuple()):
def usage():
bot.sendMessage(chat_id=update.message.chat_id,
text="Usage: /pisteet [ajalta]")
try:
aika, aikanimi, lkm = self.parsiAikaLkm(args)
except ValueError:
usage()
return
alkaen = time.time() - aika
chatid = extract_chatid(update)
pisteet = db.getPisteet(chatid, alkaen, lkm)
piste_str = "\n".join("%s: %.1f pistettä" %
(self.nameFromUid(bot, update, uid), p) for uid, p in pisteet)
msg = "Top %i pisteet viimeisen %s aikana:\n\n%s" % (
lkm, aikanimi, piste_str)
bot.sendMessage(chat_id=update.message.chat_id, text=msg)
def statsHandler(self, bot, update, args=tuple()):
def usage():
bot.sendMessage(chat_id=update.message.chat_id,
text="Usage: /kmstats [ajalta]")
try:
aika, aikanimi, _ = self.parsiAikaLkm(args)
except ValueError:
usage()
return
alkaen = time.time() - aika
uid = extract_uid(update)
chatid = extract_chatid(update)
name = self.nameFromUid(bot, update, uid)
stats = db.getKayttajanUrheilut(uid, chatid, alkaen)
lajikohtaiset = ((lajinnimi, km) for lajinnimi, km, _ in stats)
pisteet = sum(pisteet for _, _, pisteet in stats)
lajit_str = ", ".join("%s %.1f km" % ln_km for ln_km in lajikohtaiset)
stat_str = ("%s: Viimeisen %s aikana %.1f pistettä\n\n%s" %
(name, aikanimi, pisteet, lajit_str))
bot.sendMessage(chat_id=update.message.chat_id,
text=stat_str)
def helpHandler(self, bot, update, args=tuple()):
bot.sendMessage(chat_id=update.message.chat_id, text=self.helptext)
def messageHandler(self, bot, update):
return
| 32.759615
| 118
| 0.545201
|
af2866d77c5ffe407be5e8b87408afa63d167bf6
| 2,443
|
py
|
Python
|
test/test_models/test_rl/test_policy.py
|
lpraat/autoagent
|
0db7b581cdb55bff710097ab71fc94a328bddc6e
|
[
"MIT"
] | null | null | null |
test/test_models/test_rl/test_policy.py
|
lpraat/autoagent
|
0db7b581cdb55bff710097ab71fc94a328bddc6e
|
[
"MIT"
] | null | null | null |
test/test_models/test_rl/test_policy.py
|
lpraat/autoagent
|
0db7b581cdb55bff710097ab71fc94a328bddc6e
|
[
"MIT"
] | null | null | null |
import unittest
import numpy as np
import torch
from autoagent.models.rl.net import create_dense_net
from autoagent.models.rl.policy import CategoricalPolicy, GaussianPolicy, SquashedGaussianPolicy
class TestPolicy(unittest.TestCase):
def test_categorical_policy(self):
state_sizes = [np.random.randint(1, 20) for _ in range(5)]
action_sizes = [np.random.randint(1, 10) for _ in range(5)]
for s_size, a_size in zip(state_sizes, action_sizes):
d = create_dense_net(
input_size=s_size,
output_size=a_size
)
policy = CategoricalPolicy(d)
for _ in range(5):
s = torch.randn(size=(1, s_size))
a, log_p, _= policy(s, get_log_p=True)
np.testing.assert_almost_equal(
log_p.detach().numpy(),
policy.log_p(s, a)[0].detach().numpy()
)
def test_gaussian_policy(self):
state_sizes = [np.random.randint(1, 20) for _ in range(5)]
action_sizes = [np.random.randint(1, 10) for _ in range(5)]
for s_size, a_size in zip(state_sizes, action_sizes):
d = create_dense_net(
input_size=s_size,
output_size=a_size
)
policy = GaussianPolicy(d, a_size)
for _ in range(5):
s = torch.randn(size=(1, s_size))
a, log_p, _ = policy(s, get_log_p=True)
np.testing.assert_almost_equal(
log_p.detach().numpy(),
policy.log_p(s, a)[0].detach().numpy()
)
def test_squashed_gaussian_policy(self):
state_sizes = [np.random.randint(1, 20) for _ in range(5)]
action_sizes = [np.random.randint(1, 10) for _ in range(5)]
for s_size, a_size in zip(state_sizes, action_sizes):
d = create_dense_net(
input_size=s_size,
output_size=a_size*2
)
policy = SquashedGaussianPolicy(d, action_limit=np.random.randint(1, 10, a_size))
for _ in range(5):
s = torch.randn(size=(1, s_size))
a, log_p, _= policy(s, get_log_p=True)
np.testing.assert_almost_equal(
log_p.detach().numpy(),
policy.log_p(s, a)[0].detach().numpy(),
decimal=2
)
| 36.462687
| 96
| 0.548097
|
0d3ced4aeaaf9422177d86182f0896b33c159060
| 363
|
cs
|
C#
|
DataStore/Models/LoginCredentialsModel.cs
|
Amatsugu/Aoba
|
822e9eec0da34d2e644a7522c79800cfcc22d87b
|
[
"BSD-2-Clause"
] | 5
|
2019-10-21T20:08:15.000Z
|
2021-08-03T03:37:33.000Z
|
DataStore/Models/LoginCredentialsModel.cs
|
TheDarkVoid/Aoba
|
eb300679dfc483295c3f8653a501908beaa35770
|
[
"BSD-2-Clause"
] | null | null | null |
DataStore/Models/LoginCredentialsModel.cs
|
TheDarkVoid/Aoba
|
eb300679dfc483295c3f8653a501908beaa35770
|
[
"BSD-2-Clause"
] | 1
|
2019-10-21T20:07:59.000Z
|
2019-10-21T20:07:59.000Z
|
using System;
namespace LuminousVector.Aoba.Models
{
public enum AuthMode
{
Form,
API
}
public class LoginCredentialsModel
{
public string Username { get; set; }
public string Password { get; set; }
public AuthMode AuthMode { get; set; }
public override string ToString()
{
return $"{Username}|{Password}|{AuthMode.ToString()}";
}
}
}
| 15.782609
| 57
| 0.680441
|
a3d428182aad5145dfbc8a8359ecd856ddf4458e
| 1,628
|
java
|
Java
|
C2CRIBuildDir/projects/C2C-RI/src/NTCIP2306v01_69/src/org/fhwa/c2cri/ntcip2306v109/messaging/NTCIP2306MessageValidationException.java
|
OSADP/C2C-RI
|
802b498c8c63e25cf8ec3dd78ff78742d03998a8
|
[
"Apache-2.0"
] | null | null | null |
C2CRIBuildDir/projects/C2C-RI/src/NTCIP2306v01_69/src/org/fhwa/c2cri/ntcip2306v109/messaging/NTCIP2306MessageValidationException.java
|
OSADP/C2C-RI
|
802b498c8c63e25cf8ec3dd78ff78742d03998a8
|
[
"Apache-2.0"
] | null | null | null |
C2CRIBuildDir/projects/C2C-RI/src/NTCIP2306v01_69/src/org/fhwa/c2cri/ntcip2306v109/messaging/NTCIP2306MessageValidationException.java
|
OSADP/C2C-RI
|
802b498c8c63e25cf8ec3dd78ff78742d03998a8
|
[
"Apache-2.0"
] | null | null | null |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.fhwa.c2cri.ntcip2306v109.messaging;
/**
* The Class NTCIP2306MessageValidationException provides a mechanism to indicate that an exception is specifically related to the validation of an NTCIP 2306 message.
*
* @author TransCore ITS, LLC
* Last Updated: 1/8/2014
*/
public class NTCIP2306MessageValidationException extends Exception {
/** The message. */
private String message = null;
/**
* Instantiates a new NTCIP2306 message validation exception.
*
* Pre-Conditions: N/A
* Post-Conditions: N/A
*/
public NTCIP2306MessageValidationException() {
super();
}
/**
* Instantiates a new NTCIP2306 message validation exception.
*
* Pre-Conditions: N/A
* Post-Conditions: N/A
*
* @param message the message
*/
public NTCIP2306MessageValidationException(String message) {
super(message);
this.message = message;
}
/**
* Instantiates a new NTCIP2306 message validation exception.
*
* Pre-Conditions: N/A
* Post-Conditions: N/A
*
* @param cause the cause
*/
public NTCIP2306MessageValidationException(Throwable cause) {
super(cause);
}
/* (non-Javadoc)
* @see java.lang.Throwable#toString()
*/
@Override
public String toString() {
return message;
}
/* (non-Javadoc)
* @see java.lang.Throwable#getMessage()
*/
@Override
public String getMessage() {
return message;
}
}
| 23.257143
| 167
| 0.632064
|