text
stringlengths
31
1.04M
; ACL2 Programming Language Library ; ; Copyright (C) 2020 Kestrel Institute (http://www.kestrel.edu) ; ; License: A 3-clause BSD license. See the LICENSE file distributed with ACL2. ; ; Author: Alessandro Coglio (coglio@kestrel.edu) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (ld "~/acl2-customization.lsp" :ld-missing-input-ok t) (ld "package.lsp") (reset-prehistory) (in-package "ACL2PL")
syntax = "proto3"; option java_multiple_files = true; option java_package = "org.dromara.hmily.demo.grpc.account.service"; option java_outer_classname = "InlineAccountServiceProto"; option objc_class_prefix = "HLW"; import "account_dto.proto"; service InlineAccountService { rpc testInline (AccountRequest) returns (AccountResponse); }
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateTaskUsersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('task_users', function(Blueprint $table) { $table->increments('id'); $table->integer('task_id')->unsigned(); $table->integer('user_id')->unsigned(); $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); $table->foreign('task_id')->references('id')->on('tasks')->onDelete('cascade'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('task_users'); } }
> module Typeclasses.IsString where > import Data.String.Type > class IsString a where > fromString :: String -> a
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r8 push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x169b, %rsi lea addresses_A_ht+0x146db, %rdi nop nop nop add %r12, %r12 mov $116, %rcx rep movsb nop nop nop nop and $31792, %r10 lea addresses_WT_ht+0x5493, %rdx clflush (%rdx) nop nop sub %r8, %r8 mov (%rdx), %di nop dec %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %r8 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r14 push %r15 push %rax push %rbx push %rdi push %rsi // Store lea addresses_WT+0x937b, %r14 nop nop and $20878, %rsi mov $0x5152535455565758, %rax movq %rax, %xmm2 movups %xmm2, (%r14) nop nop nop cmp %r14, %r14 // Store lea addresses_WT+0xaffb, %rsi nop nop nop nop cmp $53601, %r15 mov $0x5152535455565758, %r10 movq %r10, (%rsi) nop nop nop nop nop sub %r10, %r10 // Store lea addresses_US+0xe5fb, %rsi nop nop nop sub $26454, %rbx movl $0x51525354, (%rsi) and %rsi, %rsi // Store lea addresses_UC+0x1026f, %rdi clflush (%rdi) nop nop nop nop and $13744, %rbx mov $0x5152535455565758, %rsi movq %rsi, %xmm0 vmovntdq %ymm0, (%rdi) nop nop add $44434, %rsi // Store mov $0xbfb, %rax nop nop nop nop and %rsi, %rsi movl $0x51525354, (%rax) nop nop nop nop add %rax, %rax // Store lea addresses_A+0x175fb, %rbx nop nop nop nop add %rsi, %rsi movw $0x5152, (%rbx) add $7833, %r15 // Store lea addresses_D+0xdadb, %r15 nop nop cmp $11701, %rbx movw $0x5152, (%r15) nop nop and $34317, %rdi // Store lea addresses_PSE+0x8ffb, %rdi nop cmp %rbx, %rbx movw $0x5152, (%rdi) nop sub %r15, %r15 // Faulty Load lea addresses_US+0xe5fb, %r14 inc %rsi mov (%r14), %ebx lea oracles, %rax and $0xff, %rbx shlq $12, %rbx mov (%rax,%rbx,1), %rbx pop %rsi pop %rdi pop %rbx pop %rax pop %r15 pop %r14 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': True, 'same': False, 'congruent': 0, 'type': 'addresses_US', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_WT', 'AVXalign': False, 'size': 16}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_WT', 'AVXalign': False, 'size': 8}} {'OP': 'STOR', 'dst': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_US', 'AVXalign': False, 'size': 4}} {'OP': 'STOR', 'dst': {'NT': True, 'same': False, 'congruent': 2, 'type': 'addresses_UC', 'AVXalign': False, 'size': 32}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_P', 'AVXalign': False, 'size': 4}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_A', 'AVXalign': False, 'size': 2}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_D', 'AVXalign': False, 'size': 2}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_PSE', 'AVXalign': False, 'size': 2}} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_US', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 4, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 4, 'type': 'addresses_A_ht'}} {'src': {'NT': False, 'same': True, 'congruent': 1, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} {'52': 21114} 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 */
package cmd import ( "diamond/sshd" "github.com/spf13/cobra" ) var sshdCmd = &cobra.Command{ Use: "sshd", Short: "start sshd server[开启 sshd 服务器]", Run: func(cmd *cobra.Command, args []string) { sshd.Start() }, } func init() { RootCmd.AddCommand(sshdCmd) }
// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package software.aws.toolkits.jetbrains.uitests.fixtures import com.intellij.remoterobot.RemoteRobot import com.intellij.remoterobot.data.RemoteComponent import com.intellij.remoterobot.fixtures.ComponentFixture import com.intellij.remoterobot.fixtures.FixtureName import com.intellij.remoterobot.search.locators.byXpath import com.intellij.remoterobot.utils.waitFor fun IdeaFrame.actionMenu(text: String): ActionMenuFixture { val xpath = byXpath("text '$text'", "//div[@class='ActionMenu' and @text='$text']") waitFor { findAll<ActionMenuFixture>(xpath).isNotEmpty() } return findAll<ActionMenuFixture>(xpath).first() } fun IdeaFrame.actionMenuItem(text: String): ActionMenuItemFixture { val xpath = byXpath("text '$text'", "//div[@class='ActionMenuItem' and @text='$text']") waitFor { findAll<ActionMenuItemFixture>(xpath).isNotEmpty() } return findAll<ActionMenuItemFixture>(xpath).first() } @FixtureName("ActionMenu") class ActionMenuFixture(remoteRobot: RemoteRobot, remoteComponent: RemoteComponent) : ComponentFixture(remoteRobot, remoteComponent) @FixtureName("ActionMenuItem") class ActionMenuItemFixture(remoteRobot: RemoteRobot, remoteComponent: RemoteComponent) : ComponentFixture(remoteRobot, remoteComponent)
testing testRaiseDeprecationWarnings | case result | case := self class selector: #raiseDeprecationWarnings. result := case run. self assert: result defects asArray equals: (Array with: case). self assertForTestResult: result runCount: 1 passed: 0 failed: 1 errors: 0
/*------------------------------------------------------------------------------------------------*/ /* Author: Alfred Gerke (AGE) /* Date: 2019-03-01 /* Description: Es werden Constraints und Grants angelegt /* /*------------------------------------------------------------------------------------------------*/ /* - Das Script arbeitet mit Befehlen der SQL-Erweiterung für FB 3.0x /* - Das Script ist für die Ausführung im ISQL erstellt worden /* - Ein Datenbank-Connect wird vorausgesetzt /* /*------------------------------------------------------------------------------------------------*/ /* History: 2019-02-22 /* Script erstellen /* /*------------------------------------------------------------------------------------------------*/ /* Constraints -----------------------------------------------------------------------------------*/ select SUCCESS, LOG_MESSAGE from PKG_SDDL.SP_CREATE_ALL_CONSTRAINTS; COMMIT WORK; /* Grants ----------------------------------------------------------------------------------------*/ execute procedure PKG_SDDL.SP_GRANT_ALL; COMMIT WORK; /* PREFIX --------------------------------------------------------------------------------------*/ select HIT, OBJECT_NAME, FOUND_IN, MISSING_PREFIX from PKG_STYLEGUIDE.SP_CHECK_PREFIX; COMMIT WORK; /* KeyWords --------------------------------------------------------------------------------------*/ select HIT, RESERVED, FOUND_IN from PKG_STYLEGUIDE.SP_CHECK_RESERVED; COMMIT WORK; /* Styleguid -------------------------------------------------------------------------------------*/ select HIT, OBJECT_NAME, FOUND_IN, STYLE_GUIDE_KEYW, TO_DO from PKG_STYLEGUIDE.SP_CHECK; COMMIT WORK; /* Debugs ----------------------------------------------------------------------------------------*/ select CAPTION, DESCRIPTION from VW_HISTORY_DEBUG order by ID DESC; COMMIT WORK; /* Logs ------------------------------------------------------------------------------------------*/ select WARN_LEVEL, DESCRIPTION from VW_HISTORY_LOG order by ID DESC; COMMIT WORK; /* Logs ------------------------------------------------------------------------------------------*/ select MAJOR, MINOR, SCRIPT, DESCRIPTION from VW_HISTORY_UPDATE order by ID DESC; COMMIT WORK; /*------------------------------------------------------------------------------------------------*/ /*------------------------------------------------------------------------------------------------*/ /*------------------------------------------------------------------------------------------------*/
.avatarBase { font-family: 'poppins', Helvetica, Arial, sans-serif; border-radius: 50%; /* Position possible initials to the center of the component */ display: flex; align-items: center; justify-content: center; /* Colors */ background-image: linear-gradient( -180deg, var(--marketplaceColorLight) 0%, var(--marketplaceColor) 100% ); color: var(--matterColorLight); &:hover { text-decoration: none; } } /* Small Avatar */ .root { composes: avatarBase; /* Layout */ width: 40px; height: 40px; } .initials { font-size: 14px; font-weight: var(--fontWeightBold); } .avatarImage { width: 125%; height: 125%; border-radius: inherit; } /* Medium Avatar */ .mediumAvatar { composes: avatarBase; /* Fixed dimensions */ width: 60px; height: 60px; } .mediumAvatar .initials { font-size: 26px; font-weight: var(--fontWeightSemiBold); } /* Large Avatar */ .largeAvatar { composes: avatarBase; /* Fixed dimensions */ width: 96px; height: 96px; } .largeAvatar .initials { font-size: 30px; font-weight: var(--fontWeightSemiBold); } .bannedUserIcon { width: 100%; height: 100%; }
import styled from 'styled-components'; import ThumbnailPic from '../../assets/thumbnail.jpeg'; export const Container = styled.div` border: ${props => props.haveOnBasket ? '2px solid #21a453' : '1px solid #dedede'}; display: flex; justify-content: flex-start; &:hover { border: ${props => props.haveOnBasket ? '2px solid black' : '1px solid black'}; cursor: pointer; transition-duration: 400ms; } `; export const Description = styled.div` width: 240px; padding: 15px; @import url('https://fonts.googleapis.com/css?family=Raleway&display=swap'); font-family: 'Raleway', sans-serif; h2 { font-weight: 400; font-size: 16px; -webkit-line-clamp: 1; -webkit-box-orient: vertical; display: -webkit-box; overflow: hidden; margin-bottom: 5px; } .price { padding-top: 20px; } p { -webkit-line-clamp: 2; -webkit-box-orient: vertical; display: -webkit-box; overflow: hidden; font-size: 14px; color: #6e6e6e; } `; export const Thumbnail = styled.div` width: 170px; height: 150px; background: url(${props => `https://api.arthurcarvalho.info/food/files/${props.thumbnail}`}) no-repeat center center; background-size: cover; display: flex; justify-content: flex-end; `; export const BasketQuantity = styled.div ` display: ${props => props.haveOnBasket ? 'flex' : 'none'}; height: 30px; padding: 2px 10px; background-color: #21a453; color: white; @import url('https://fonts.googleapis.com/css?family=Raleway&display=swap'); font-family: 'Raleway', sans-serif; `;
import 'package:tekartik_prefs/prefs.dart'; import 'src/prefs.dart' as src; export 'package:tekartik_prefs/prefs.dart'; /// The prefs factory to user PrefsFactory get prefsFactory => src.prefsFactory; /// Support Windows and Linux desktop PrefsFactory getPrefsFactory({String? packageName}) => src.getPrefsFactory(packageName: packageName);
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Nilai extends CI_Controller { public function __construct() { parent::__construct(); $this->load->model('nilai_model'); $this->load->model('daftar_ulang_model'); ini_set('display_errors', 0); if ($this->session->userdata('level') == 4 OR $this->session->userdata('level') == 5 OR $this->session->userdata('level') == 2 OR $this->session->userdata('level') == 3) { redirect('login'); } } public function index() { if ($this->session->userdata('logged_in') == TRUE) { $data['nilai'] = $this->nilai_model->data_skala_nilai(); $data['drop_down_prodi'] = $this->daftar_ulang_model->getProdi(); $data['main_view'] = 'Nilai/data_skala_nilai_view'; $this->load->view('template', $data); } else { redirect('login'); } } public function detail_skala_nilai() { if ($this->session->userdata('logged_in') == TRUE) { $id_skala_nilai = $this->uri->segment(3); $data['nilai'] = $this->nilai_model->detail_skala_nilai($id_skala_nilai); $data['getProdi'] = $this->daftar_ulang_model->getProdi(); $data['main_view'] = 'Nilai/detail_skala_nilai_view'; $this->load->view('template', $data); } else { redirect('login'); } } public function lihat_skala_nilai() { if ($this->session->userdata('logged_in') == TRUE) { $id_skala_nilai = $this->uri->segment(3); $data['nilai'] = $this->nilai_model->detail_skala_nilai($id_skala_nilai); $data['getProdi'] = $this->daftar_ulang_model->getProdi(); $data['main_view'] = 'Nilai/lihat_skala_nilai_view'; $this->load->view('template', $data); } else { redirect('login'); } } public function tambah_skala_nilai() { if ($this->session->userdata('logged_in') == TRUE) { $data['drop_down_prodi'] = $this->daftar_ulang_model->getProdi(); $data['main_view'] = 'Nilai/tambah_skala_nilai_view'; $this->load->view('template', $data); } else { redirect('login'); } } public function save_skala_nilai() { if($this->nilai_model->save_skala_nilai() == TRUE){ $nama_du = $this->input->post('nama_prodi'); $this->session->set_flashdata('message', '<div class="alert alert-success alert-dismissible" style="margin-left: -20px;margin-right: -20px; margin-top: -15px"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button> <p><i class="icon fa fa-check"></i> Data skala nilai berhasil ditambahkan </p> </div><script> window.setTimeout(function() { $(".alert-success").fadeTo(500, 0).slideUp(500, function(){ $(this).remove(); }); }, 5000); </script>'); redirect('nilai'); } else{ $this->session->set_flashdata('message', '<div class="col-md-12 alert alert-danger"> Data '.$nama_pendaftar.' Sudah Ada </div>'); redirect('nilai/tambah_skala_nilai'); } } public function filter_nilai() { $data['drop_down_prodi'] = $this->daftar_ulang_model->getProdi(); $id_prodi=$this->input->get('id_prodi'); $data['nilai'] = $this->nilai_model->filter_nilai($id_prodi); $data['main_view'] = 'Nilai/data_skala_nilai_view'; $this->load->view('template', $data); } public function save_edit_skala_nilai() { $id_skala_nilai = $this->uri->segment(3); if($this->nilai_model->save_edit_skala_nilai($id_skala_nilai) == TRUE){ $nama_du = $this->input->post('nama_prodi'); $this->session->set_flashdata('message', '<div class="alert alert-success alert-dismissible" style="margin-left: -20px;margin-right: -20px; margin-top: -15px"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button> <p><i class="icon fa fa-check"></i> Data skala nilai berhasil diubah </p> </div><script> window.setTimeout(function() { $(".alert-success").fadeTo(500, 0).slideUp(500, function(){ $(this).remove(); }); }, 5000); </script>'); redirect('nilai'); } else{ $this->session->set_flashdata('message', '<div class="col-md-12 alert alert-danger"> Gagal </div>'); redirect('nilai'); } } public function hapus_skala_nilai($id_skala_nilai){ if ($this->nilai_model->hapus_skala_nilai($id_skala_nilai) == TRUE) { $this->session->set_flashdata('message', '<div class="alert alert-success alert-dismissible" style="margin-left: -20px;margin-right: -20px; margin-top: -15px"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button> <p><i class="icon fa fa-check"></i> Data skala nilai berhasil dihapus </p> </div><script> window.setTimeout(function() { $(".alert-success").fadeTo(500, 0).slideUp(500, function(){ $(this).remove(); }); }, 5000); </script>'); redirect('nilai'); } else { $this->session->set_flashdata('message', '<div class="col-md-12 alert alert-success"> Hapus Skala Nilai Gagal </div>'); redirect('nilai'); } } }
{*! * Fano Web Framework (https://fanoframework.github.io) * * @link https://github.com/fanoframework/fano * @copyright Copyright (c) 2018 - 2021 Zamrony P. Juhara * @license https://github.com/fanoframework/fano/blob/master/LICENSE (MIT) *} unit FcgiUnknownType; interface {$MODE OBJFPC} {$H+} uses StreamAdapterIntf, FcgiRecord; type (*!----------------------------------------------- * Unknown type record (FCGI_UNKNOWN_TYPE) * * @author Zamrony P. Juhara <zamronypj@yahoo.com> *-----------------------------------------------*) TFcgiUnknownType = class(TFcgiRecord) public constructor create( const aVersion : byte; const aType : byte; const aRequestId : word; const dataStream : IStreamAdapter; const unknownType : byte ); constructor create( const dataStream : IStreamAdapter; const requestId : word; const unknownType : byte ); end; implementation uses fastcgi; constructor TFcgiUnknownType.create( const aVersion : byte; const aType : byte; const aRequestId : word; const dataStream : IStreamAdapter; const unknownType : byte ); var reqBody : FCGI_UnknownTypeBody; begin inherited create(aVersion, aType, aRequestId, dataStream); reqBody._type := unknownType; reqBody.reserved[0] := 0; reqBody.reserved[1] := 0; reqBody.reserved[2] := 0; reqBody.reserved[3] := 0; reqBody.reserved[4] := 0; reqBody.reserved[5] := 0; reqBody.reserved[6] := 0; fContentData.writeBuffer(reqBody, sizeof(FCGI_UnknownTypeBody)); fContentData.seek(0); end; constructor TFcgiUnknownType.create( const dataStream : IStreamAdapter; const requestId : word; const unknownType : byte ); begin create(FCGI_VERSION_1, FCGI_UNKNOWN_TYPE, requestId, dataStream, unknownType); end; end.
data { int d_int; array[d_int] int d_int_array; real d_real; array[d_int] real d_real_array; vector[d_int] d_vector; row_vector[d_int] d_row_vector; } transformed data { real transformed_data_real; transformed_data_real = beta_lccdf(d_int| d_int, d_int); transformed_data_real = beta_lccdf(d_int| d_int, d_real); transformed_data_real = beta_lccdf(d_int| d_int, d_real_array); transformed_data_real = beta_lccdf(d_int| d_int, d_vector); transformed_data_real = beta_lccdf(d_int| d_int, d_row_vector); transformed_data_real = beta_lccdf(d_int| d_real, d_int); transformed_data_real = beta_lccdf(d_int| d_real, d_real); transformed_data_real = beta_lccdf(d_int| d_real, d_real_array); transformed_data_real = beta_lccdf(d_int| d_real, d_vector); transformed_data_real = beta_lccdf(d_int| d_real, d_row_vector); transformed_data_real = beta_lccdf(d_int| d_real_array, d_int); transformed_data_real = beta_lccdf(d_int| d_real_array, d_real); transformed_data_real = beta_lccdf(d_int| d_real_array, d_real_array); transformed_data_real = beta_lccdf(d_int| d_real_array, d_vector); transformed_data_real = beta_lccdf(d_int| d_real_array, d_row_vector); transformed_data_real = beta_lccdf(d_int| d_vector, d_int); transformed_data_real = beta_lccdf(d_int| d_vector, d_real); transformed_data_real = beta_lccdf(d_int| d_vector, d_real_array); transformed_data_real = beta_lccdf(d_int| d_vector, d_vector); transformed_data_real = beta_lccdf(d_int| d_vector, d_row_vector); transformed_data_real = beta_lccdf(d_int| d_row_vector, d_int); transformed_data_real = beta_lccdf(d_int| d_row_vector, d_real); transformed_data_real = beta_lccdf(d_int| d_row_vector, d_real_array); transformed_data_real = beta_lccdf(d_int| d_row_vector, d_vector); transformed_data_real = beta_lccdf(d_int| d_row_vector, d_row_vector); transformed_data_real = beta_lccdf(d_real| d_int, d_int); transformed_data_real = beta_lccdf(d_real| d_int, d_real); transformed_data_real = beta_lccdf(d_real| d_int, d_real_array); transformed_data_real = beta_lccdf(d_real| d_int, d_vector); transformed_data_real = beta_lccdf(d_real| d_int, d_row_vector); transformed_data_real = beta_lccdf(d_real| d_real, d_int); transformed_data_real = beta_lccdf(d_real| d_real, d_real); transformed_data_real = beta_lccdf(d_real| d_real, d_real_array); transformed_data_real = beta_lccdf(d_real| d_real, d_vector); transformed_data_real = beta_lccdf(d_real| d_real, d_row_vector); transformed_data_real = beta_lccdf(d_real| d_real_array, d_int); transformed_data_real = beta_lccdf(d_real| d_real_array, d_real); transformed_data_real = beta_lccdf(d_real| d_real_array, d_real_array); transformed_data_real = beta_lccdf(d_real| d_real_array, d_vector); transformed_data_real = beta_lccdf(d_real| d_real_array, d_row_vector); transformed_data_real = beta_lccdf(d_real| d_vector, d_int); transformed_data_real = beta_lccdf(d_real| d_vector, d_real); transformed_data_real = beta_lccdf(d_real| d_vector, d_real_array); transformed_data_real = beta_lccdf(d_real| d_vector, d_vector); transformed_data_real = beta_lccdf(d_real| d_vector, d_row_vector); transformed_data_real = beta_lccdf(d_real| d_row_vector, d_int); transformed_data_real = beta_lccdf(d_real| d_row_vector, d_real); transformed_data_real = beta_lccdf(d_real| d_row_vector, d_real_array); transformed_data_real = beta_lccdf(d_real| d_row_vector, d_vector); transformed_data_real = beta_lccdf(d_real| d_row_vector, d_row_vector); transformed_data_real = beta_lccdf(d_real_array| d_int, d_int); transformed_data_real = beta_lccdf(d_real_array| d_int, d_real); transformed_data_real = beta_lccdf(d_real_array| d_int, d_real_array); transformed_data_real = beta_lccdf(d_real_array| d_int, d_vector); transformed_data_real = beta_lccdf(d_real_array| d_int, d_row_vector); transformed_data_real = beta_lccdf(d_real_array| d_real, d_int); transformed_data_real = beta_lccdf(d_real_array| d_real, d_real); transformed_data_real = beta_lccdf(d_real_array| d_real, d_real_array); transformed_data_real = beta_lccdf(d_real_array| d_real, d_vector); transformed_data_real = beta_lccdf(d_real_array| d_real, d_row_vector); transformed_data_real = beta_lccdf(d_real_array| d_real_array, d_int); transformed_data_real = beta_lccdf(d_real_array| d_real_array, d_real); transformed_data_real = beta_lccdf(d_real_array| d_real_array, d_real_array); transformed_data_real = beta_lccdf(d_real_array| d_real_array, d_vector); transformed_data_real = beta_lccdf(d_real_array| d_real_array, d_row_vector); transformed_data_real = beta_lccdf(d_real_array| d_vector, d_int); transformed_data_real = beta_lccdf(d_real_array| d_vector, d_real); transformed_data_real = beta_lccdf(d_real_array| d_vector, d_real_array); transformed_data_real = beta_lccdf(d_real_array| d_vector, d_vector); transformed_data_real = beta_lccdf(d_real_array| d_vector, d_row_vector); transformed_data_real = beta_lccdf(d_real_array| d_row_vector, d_int); transformed_data_real = beta_lccdf(d_real_array| d_row_vector, d_real); transformed_data_real = beta_lccdf(d_real_array| d_row_vector, d_real_array); transformed_data_real = beta_lccdf(d_real_array| d_row_vector, d_vector); transformed_data_real = beta_lccdf(d_real_array| d_row_vector, d_row_vector); transformed_data_real = beta_lccdf(d_vector| d_int, d_int); transformed_data_real = beta_lccdf(d_vector| d_int, d_real); transformed_data_real = beta_lccdf(d_vector| d_int, d_real_array); transformed_data_real = beta_lccdf(d_vector| d_int, d_vector); transformed_data_real = beta_lccdf(d_vector| d_int, d_row_vector); transformed_data_real = beta_lccdf(d_vector| d_real, d_int); transformed_data_real = beta_lccdf(d_vector| d_real, d_real); transformed_data_real = beta_lccdf(d_vector| d_real, d_real_array); transformed_data_real = beta_lccdf(d_vector| d_real, d_vector); transformed_data_real = beta_lccdf(d_vector| d_real, d_row_vector); transformed_data_real = beta_lccdf(d_vector| d_real_array, d_int); transformed_data_real = beta_lccdf(d_vector| d_real_array, d_real); transformed_data_real = beta_lccdf(d_vector| d_real_array, d_real_array); transformed_data_real = beta_lccdf(d_vector| d_real_array, d_vector); transformed_data_real = beta_lccdf(d_vector| d_real_array, d_row_vector); transformed_data_real = beta_lccdf(d_vector| d_vector, d_int); transformed_data_real = beta_lccdf(d_vector| d_vector, d_real); transformed_data_real = beta_lccdf(d_vector| d_vector, d_real_array); transformed_data_real = beta_lccdf(d_vector| d_vector, d_vector); transformed_data_real = beta_lccdf(d_vector| d_vector, d_row_vector); transformed_data_real = beta_lccdf(d_vector| d_row_vector, d_int); transformed_data_real = beta_lccdf(d_vector| d_row_vector, d_real); transformed_data_real = beta_lccdf(d_vector| d_row_vector, d_real_array); transformed_data_real = beta_lccdf(d_vector| d_row_vector, d_vector); transformed_data_real = beta_lccdf(d_vector| d_row_vector, d_row_vector); transformed_data_real = beta_lccdf(d_row_vector| d_int, d_int); transformed_data_real = beta_lccdf(d_row_vector| d_int, d_real); transformed_data_real = beta_lccdf(d_row_vector| d_int, d_real_array); transformed_data_real = beta_lccdf(d_row_vector| d_int, d_vector); transformed_data_real = beta_lccdf(d_row_vector| d_int, d_row_vector); transformed_data_real = beta_lccdf(d_row_vector| d_real, d_int); transformed_data_real = beta_lccdf(d_row_vector| d_real, d_real); transformed_data_real = beta_lccdf(d_row_vector| d_real, d_real_array); transformed_data_real = beta_lccdf(d_row_vector| d_real, d_vector); transformed_data_real = beta_lccdf(d_row_vector| d_real, d_row_vector); transformed_data_real = beta_lccdf(d_row_vector| d_real_array, d_int); transformed_data_real = beta_lccdf(d_row_vector| d_real_array, d_real); transformed_data_real = beta_lccdf(d_row_vector| d_real_array, d_real_array); transformed_data_real = beta_lccdf(d_row_vector| d_real_array, d_vector); transformed_data_real = beta_lccdf(d_row_vector| d_real_array, d_row_vector); transformed_data_real = beta_lccdf(d_row_vector| d_vector, d_int); transformed_data_real = beta_lccdf(d_row_vector| d_vector, d_real); transformed_data_real = beta_lccdf(d_row_vector| d_vector, d_real_array); transformed_data_real = beta_lccdf(d_row_vector| d_vector, d_vector); transformed_data_real = beta_lccdf(d_row_vector| d_vector, d_row_vector); transformed_data_real = beta_lccdf(d_row_vector| d_row_vector, d_int); transformed_data_real = beta_lccdf(d_row_vector| d_row_vector, d_real); transformed_data_real = beta_lccdf(d_row_vector| d_row_vector, d_real_array); transformed_data_real = beta_lccdf(d_row_vector| d_row_vector, d_vector); transformed_data_real = beta_lccdf(d_row_vector| d_row_vector, d_row_vector); } parameters { real p_real; array[d_int] real p_real_array; vector[d_int] p_vector; row_vector[d_int] p_row_vector; real y_p; } transformed parameters { real transformed_param_real; transformed_param_real = beta_lccdf(d_int| d_int, d_int); transformed_param_real = beta_lccdf(d_int| d_int, d_real); transformed_param_real = beta_lccdf(d_int| d_int, d_real_array); transformed_param_real = beta_lccdf(d_int| d_int, d_vector); transformed_param_real = beta_lccdf(d_int| d_int, d_row_vector); transformed_param_real = beta_lccdf(d_int| d_int, p_real); transformed_param_real = beta_lccdf(d_int| d_int, p_real_array); transformed_param_real = beta_lccdf(d_int| d_int, p_vector); transformed_param_real = beta_lccdf(d_int| d_int, p_row_vector); transformed_param_real = beta_lccdf(d_int| d_real, d_int); transformed_param_real = beta_lccdf(d_int| d_real, d_real); transformed_param_real = beta_lccdf(d_int| d_real, d_real_array); transformed_param_real = beta_lccdf(d_int| d_real, d_vector); transformed_param_real = beta_lccdf(d_int| d_real, d_row_vector); transformed_param_real = beta_lccdf(d_int| d_real, p_real); transformed_param_real = beta_lccdf(d_int| d_real, p_real_array); transformed_param_real = beta_lccdf(d_int| d_real, p_vector); transformed_param_real = beta_lccdf(d_int| d_real, p_row_vector); transformed_param_real = beta_lccdf(d_int| d_real_array, d_int); transformed_param_real = beta_lccdf(d_int| d_real_array, d_real); transformed_param_real = beta_lccdf(d_int| d_real_array, d_real_array); transformed_param_real = beta_lccdf(d_int| d_real_array, d_vector); transformed_param_real = beta_lccdf(d_int| d_real_array, d_row_vector); transformed_param_real = beta_lccdf(d_int| d_real_array, p_real); transformed_param_real = beta_lccdf(d_int| d_real_array, p_real_array); transformed_param_real = beta_lccdf(d_int| d_real_array, p_vector); transformed_param_real = beta_lccdf(d_int| d_real_array, p_row_vector); transformed_param_real = beta_lccdf(d_int| d_vector, d_int); transformed_param_real = beta_lccdf(d_int| d_vector, d_real); transformed_param_real = beta_lccdf(d_int| d_vector, d_real_array); transformed_param_real = beta_lccdf(d_int| d_vector, d_vector); transformed_param_real = beta_lccdf(d_int| d_vector, d_row_vector); transformed_param_real = beta_lccdf(d_int| d_vector, p_real); transformed_param_real = beta_lccdf(d_int| d_vector, p_real_array); transformed_param_real = beta_lccdf(d_int| d_vector, p_vector); transformed_param_real = beta_lccdf(d_int| d_vector, p_row_vector); transformed_param_real = beta_lccdf(d_int| d_row_vector, d_int); transformed_param_real = beta_lccdf(d_int| d_row_vector, d_real); transformed_param_real = beta_lccdf(d_int| d_row_vector, d_real_array); transformed_param_real = beta_lccdf(d_int| d_row_vector, d_vector); transformed_param_real = beta_lccdf(d_int| d_row_vector, d_row_vector); transformed_param_real = beta_lccdf(d_int| d_row_vector, p_real); transformed_param_real = beta_lccdf(d_int| d_row_vector, p_real_array); transformed_param_real = beta_lccdf(d_int| d_row_vector, p_vector); transformed_param_real = beta_lccdf(d_int| d_row_vector, p_row_vector); transformed_param_real = beta_lccdf(d_int| p_real, d_int); transformed_param_real = beta_lccdf(d_int| p_real, d_real); transformed_param_real = beta_lccdf(d_int| p_real, d_real_array); transformed_param_real = beta_lccdf(d_int| p_real, d_vector); transformed_param_real = beta_lccdf(d_int| p_real, d_row_vector); transformed_param_real = beta_lccdf(d_int| p_real, p_real); transformed_param_real = beta_lccdf(d_int| p_real, p_real_array); transformed_param_real = beta_lccdf(d_int| p_real, p_vector); transformed_param_real = beta_lccdf(d_int| p_real, p_row_vector); transformed_param_real = beta_lccdf(d_int| p_real_array, d_int); transformed_param_real = beta_lccdf(d_int| p_real_array, d_real); transformed_param_real = beta_lccdf(d_int| p_real_array, d_real_array); transformed_param_real = beta_lccdf(d_int| p_real_array, d_vector); transformed_param_real = beta_lccdf(d_int| p_real_array, d_row_vector); transformed_param_real = beta_lccdf(d_int| p_real_array, p_real); transformed_param_real = beta_lccdf(d_int| p_real_array, p_real_array); transformed_param_real = beta_lccdf(d_int| p_real_array, p_vector); transformed_param_real = beta_lccdf(d_int| p_real_array, p_row_vector); transformed_param_real = beta_lccdf(d_int| p_vector, d_int); transformed_param_real = beta_lccdf(d_int| p_vector, d_real); transformed_param_real = beta_lccdf(d_int| p_vector, d_real_array); transformed_param_real = beta_lccdf(d_int| p_vector, d_vector); transformed_param_real = beta_lccdf(d_int| p_vector, d_row_vector); transformed_param_real = beta_lccdf(d_int| p_vector, p_real); transformed_param_real = beta_lccdf(d_int| p_vector, p_real_array); transformed_param_real = beta_lccdf(d_int| p_vector, p_vector); transformed_param_real = beta_lccdf(d_int| p_vector, p_row_vector); transformed_param_real = beta_lccdf(d_int| p_row_vector, d_int); transformed_param_real = beta_lccdf(d_int| p_row_vector, d_real); transformed_param_real = beta_lccdf(d_int| p_row_vector, d_real_array); transformed_param_real = beta_lccdf(d_int| p_row_vector, d_vector); transformed_param_real = beta_lccdf(d_int| p_row_vector, d_row_vector); transformed_param_real = beta_lccdf(d_int| p_row_vector, p_real); transformed_param_real = beta_lccdf(d_int| p_row_vector, p_real_array); transformed_param_real = beta_lccdf(d_int| p_row_vector, p_vector); transformed_param_real = beta_lccdf(d_int| p_row_vector, p_row_vector); transformed_param_real = beta_lccdf(d_real| d_int, d_int); transformed_param_real = beta_lccdf(d_real| d_int, d_real); transformed_param_real = beta_lccdf(d_real| d_int, d_real_array); transformed_param_real = beta_lccdf(d_real| d_int, d_vector); transformed_param_real = beta_lccdf(d_real| d_int, d_row_vector); transformed_param_real = beta_lccdf(d_real| d_int, p_real); transformed_param_real = beta_lccdf(d_real| d_int, p_real_array); transformed_param_real = beta_lccdf(d_real| d_int, p_vector); transformed_param_real = beta_lccdf(d_real| d_int, p_row_vector); transformed_param_real = beta_lccdf(d_real| d_real, d_int); transformed_param_real = beta_lccdf(d_real| d_real, d_real); transformed_param_real = beta_lccdf(d_real| d_real, d_real_array); transformed_param_real = beta_lccdf(d_real| d_real, d_vector); transformed_param_real = beta_lccdf(d_real| d_real, d_row_vector); transformed_param_real = beta_lccdf(d_real| d_real, p_real); transformed_param_real = beta_lccdf(d_real| d_real, p_real_array); transformed_param_real = beta_lccdf(d_real| d_real, p_vector); transformed_param_real = beta_lccdf(d_real| d_real, p_row_vector); transformed_param_real = beta_lccdf(d_real| d_real_array, d_int); transformed_param_real = beta_lccdf(d_real| d_real_array, d_real); transformed_param_real = beta_lccdf(d_real| d_real_array, d_real_array); transformed_param_real = beta_lccdf(d_real| d_real_array, d_vector); transformed_param_real = beta_lccdf(d_real| d_real_array, d_row_vector); transformed_param_real = beta_lccdf(d_real| d_real_array, p_real); transformed_param_real = beta_lccdf(d_real| d_real_array, p_real_array); transformed_param_real = beta_lccdf(d_real| d_real_array, p_vector); transformed_param_real = beta_lccdf(d_real| d_real_array, p_row_vector); transformed_param_real = beta_lccdf(d_real| d_vector, d_int); transformed_param_real = beta_lccdf(d_real| d_vector, d_real); transformed_param_real = beta_lccdf(d_real| d_vector, d_real_array); transformed_param_real = beta_lccdf(d_real| d_vector, d_vector); transformed_param_real = beta_lccdf(d_real| d_vector, d_row_vector); transformed_param_real = beta_lccdf(d_real| d_vector, p_real); transformed_param_real = beta_lccdf(d_real| d_vector, p_real_array); transformed_param_real = beta_lccdf(d_real| d_vector, p_vector); transformed_param_real = beta_lccdf(d_real| d_vector, p_row_vector); transformed_param_real = beta_lccdf(d_real| d_row_vector, d_int); transformed_param_real = beta_lccdf(d_real| d_row_vector, d_real); transformed_param_real = beta_lccdf(d_real| d_row_vector, d_real_array); transformed_param_real = beta_lccdf(d_real| d_row_vector, d_vector); transformed_param_real = beta_lccdf(d_real| d_row_vector, d_row_vector); transformed_param_real = beta_lccdf(d_real| d_row_vector, p_real); transformed_param_real = beta_lccdf(d_real| d_row_vector, p_real_array); transformed_param_real = beta_lccdf(d_real| d_row_vector, p_vector); transformed_param_real = beta_lccdf(d_real| d_row_vector, p_row_vector); transformed_param_real = beta_lccdf(d_real| p_real, d_int); transformed_param_real = beta_lccdf(d_real| p_real, d_real); transformed_param_real = beta_lccdf(d_real| p_real, d_real_array); transformed_param_real = beta_lccdf(d_real| p_real, d_vector); transformed_param_real = beta_lccdf(d_real| p_real, d_row_vector); transformed_param_real = beta_lccdf(d_real| p_real, p_real); transformed_param_real = beta_lccdf(d_real| p_real, p_real_array); transformed_param_real = beta_lccdf(d_real| p_real, p_vector); transformed_param_real = beta_lccdf(d_real| p_real, p_row_vector); transformed_param_real = beta_lccdf(d_real| p_real_array, d_int); transformed_param_real = beta_lccdf(d_real| p_real_array, d_real); transformed_param_real = beta_lccdf(d_real| p_real_array, d_real_array); transformed_param_real = beta_lccdf(d_real| p_real_array, d_vector); transformed_param_real = beta_lccdf(d_real| p_real_array, d_row_vector); transformed_param_real = beta_lccdf(d_real| p_real_array, p_real); transformed_param_real = beta_lccdf(d_real| p_real_array, p_real_array); transformed_param_real = beta_lccdf(d_real| p_real_array, p_vector); transformed_param_real = beta_lccdf(d_real| p_real_array, p_row_vector); transformed_param_real = beta_lccdf(d_real| p_vector, d_int); transformed_param_real = beta_lccdf(d_real| p_vector, d_real); transformed_param_real = beta_lccdf(d_real| p_vector, d_real_array); transformed_param_real = beta_lccdf(d_real| p_vector, d_vector); transformed_param_real = beta_lccdf(d_real| p_vector, d_row_vector); transformed_param_real = beta_lccdf(d_real| p_vector, p_real); transformed_param_real = beta_lccdf(d_real| p_vector, p_real_array); transformed_param_real = beta_lccdf(d_real| p_vector, p_vector); transformed_param_real = beta_lccdf(d_real| p_vector, p_row_vector); transformed_param_real = beta_lccdf(d_real| p_row_vector, d_int); transformed_param_real = beta_lccdf(d_real| p_row_vector, d_real); transformed_param_real = beta_lccdf(d_real| p_row_vector, d_real_array); transformed_param_real = beta_lccdf(d_real| p_row_vector, d_vector); transformed_param_real = beta_lccdf(d_real| p_row_vector, d_row_vector); transformed_param_real = beta_lccdf(d_real| p_row_vector, p_real); transformed_param_real = beta_lccdf(d_real| p_row_vector, p_real_array); transformed_param_real = beta_lccdf(d_real| p_row_vector, p_vector); transformed_param_real = beta_lccdf(d_real| p_row_vector, p_row_vector); transformed_param_real = beta_lccdf(d_real_array| d_int, d_int); transformed_param_real = beta_lccdf(d_real_array| d_int, d_real); transformed_param_real = beta_lccdf(d_real_array| d_int, d_real_array); transformed_param_real = beta_lccdf(d_real_array| d_int, d_vector); transformed_param_real = beta_lccdf(d_real_array| d_int, d_row_vector); transformed_param_real = beta_lccdf(d_real_array| d_int, p_real); transformed_param_real = beta_lccdf(d_real_array| d_int, p_real_array); transformed_param_real = beta_lccdf(d_real_array| d_int, p_vector); transformed_param_real = beta_lccdf(d_real_array| d_int, p_row_vector); transformed_param_real = beta_lccdf(d_real_array| d_real, d_int); transformed_param_real = beta_lccdf(d_real_array| d_real, d_real); transformed_param_real = beta_lccdf(d_real_array| d_real, d_real_array); transformed_param_real = beta_lccdf(d_real_array| d_real, d_vector); transformed_param_real = beta_lccdf(d_real_array| d_real, d_row_vector); transformed_param_real = beta_lccdf(d_real_array| d_real, p_real); transformed_param_real = beta_lccdf(d_real_array| d_real, p_real_array); transformed_param_real = beta_lccdf(d_real_array| d_real, p_vector); transformed_param_real = beta_lccdf(d_real_array| d_real, p_row_vector); transformed_param_real = beta_lccdf(d_real_array| d_real_array, d_int); transformed_param_real = beta_lccdf(d_real_array| d_real_array, d_real); transformed_param_real = beta_lccdf(d_real_array| d_real_array, d_real_array); transformed_param_real = beta_lccdf(d_real_array| d_real_array, d_vector); transformed_param_real = beta_lccdf(d_real_array| d_real_array, d_row_vector); transformed_param_real = beta_lccdf(d_real_array| d_real_array, p_real); transformed_param_real = beta_lccdf(d_real_array| d_real_array, p_real_array); transformed_param_real = beta_lccdf(d_real_array| d_real_array, p_vector); transformed_param_real = beta_lccdf(d_real_array| d_real_array, p_row_vector); transformed_param_real = beta_lccdf(d_real_array| d_vector, d_int); transformed_param_real = beta_lccdf(d_real_array| d_vector, d_real); transformed_param_real = beta_lccdf(d_real_array| d_vector, d_real_array); transformed_param_real = beta_lccdf(d_real_array| d_vector, d_vector); transformed_param_real = beta_lccdf(d_real_array| d_vector, d_row_vector); transformed_param_real = beta_lccdf(d_real_array| d_vector, p_real); transformed_param_real = beta_lccdf(d_real_array| d_vector, p_real_array); transformed_param_real = beta_lccdf(d_real_array| d_vector, p_vector); transformed_param_real = beta_lccdf(d_real_array| d_vector, p_row_vector); transformed_param_real = beta_lccdf(d_real_array| d_row_vector, d_int); transformed_param_real = beta_lccdf(d_real_array| d_row_vector, d_real); transformed_param_real = beta_lccdf(d_real_array| d_row_vector, d_real_array); transformed_param_real = beta_lccdf(d_real_array| d_row_vector, d_vector); transformed_param_real = beta_lccdf(d_real_array| d_row_vector, d_row_vector); transformed_param_real = beta_lccdf(d_real_array| d_row_vector, p_real); transformed_param_real = beta_lccdf(d_real_array| d_row_vector, p_real_array); transformed_param_real = beta_lccdf(d_real_array| d_row_vector, p_vector); transformed_param_real = beta_lccdf(d_real_array| d_row_vector, p_row_vector); transformed_param_real = beta_lccdf(d_real_array| p_real, d_int); transformed_param_real = beta_lccdf(d_real_array| p_real, d_real); transformed_param_real = beta_lccdf(d_real_array| p_real, d_real_array); transformed_param_real = beta_lccdf(d_real_array| p_real, d_vector); transformed_param_real = beta_lccdf(d_real_array| p_real, d_row_vector); transformed_param_real = beta_lccdf(d_real_array| p_real, p_real); transformed_param_real = beta_lccdf(d_real_array| p_real, p_real_array); transformed_param_real = beta_lccdf(d_real_array| p_real, p_vector); transformed_param_real = beta_lccdf(d_real_array| p_real, p_row_vector); transformed_param_real = beta_lccdf(d_real_array| p_real_array, d_int); transformed_param_real = beta_lccdf(d_real_array| p_real_array, d_real); transformed_param_real = beta_lccdf(d_real_array| p_real_array, d_real_array); transformed_param_real = beta_lccdf(d_real_array| p_real_array, d_vector); transformed_param_real = beta_lccdf(d_real_array| p_real_array, d_row_vector); transformed_param_real = beta_lccdf(d_real_array| p_real_array, p_real); transformed_param_real = beta_lccdf(d_real_array| p_real_array, p_real_array); transformed_param_real = beta_lccdf(d_real_array| p_real_array, p_vector); transformed_param_real = beta_lccdf(d_real_array| p_real_array, p_row_vector); transformed_param_real = beta_lccdf(d_real_array| p_vector, d_int); transformed_param_real = beta_lccdf(d_real_array| p_vector, d_real); transformed_param_real = beta_lccdf(d_real_array| p_vector, d_real_array); transformed_param_real = beta_lccdf(d_real_array| p_vector, d_vector); transformed_param_real = beta_lccdf(d_real_array| p_vector, d_row_vector); transformed_param_real = beta_lccdf(d_real_array| p_vector, p_real); transformed_param_real = beta_lccdf(d_real_array| p_vector, p_real_array); transformed_param_real = beta_lccdf(d_real_array| p_vector, p_vector); transformed_param_real = beta_lccdf(d_real_array| p_vector, p_row_vector); transformed_param_real = beta_lccdf(d_real_array| p_row_vector, d_int); transformed_param_real = beta_lccdf(d_real_array| p_row_vector, d_real); transformed_param_real = beta_lccdf(d_real_array| p_row_vector, d_real_array); transformed_param_real = beta_lccdf(d_real_array| p_row_vector, d_vector); transformed_param_real = beta_lccdf(d_real_array| p_row_vector, d_row_vector); transformed_param_real = beta_lccdf(d_real_array| p_row_vector, p_real); transformed_param_real = beta_lccdf(d_real_array| p_row_vector, p_real_array); transformed_param_real = beta_lccdf(d_real_array| p_row_vector, p_vector); transformed_param_real = beta_lccdf(d_real_array| p_row_vector, p_row_vector); transformed_param_real = beta_lccdf(d_vector| d_int, d_int); transformed_param_real = beta_lccdf(d_vector| d_int, d_real); transformed_param_real = beta_lccdf(d_vector| d_int, d_real_array); transformed_param_real = beta_lccdf(d_vector| d_int, d_vector); transformed_param_real = beta_lccdf(d_vector| d_int, d_row_vector); transformed_param_real = beta_lccdf(d_vector| d_int, p_real); transformed_param_real = beta_lccdf(d_vector| d_int, p_real_array); transformed_param_real = beta_lccdf(d_vector| d_int, p_vector); transformed_param_real = beta_lccdf(d_vector| d_int, p_row_vector); transformed_param_real = beta_lccdf(d_vector| d_real, d_int); transformed_param_real = beta_lccdf(d_vector| d_real, d_real); transformed_param_real = beta_lccdf(d_vector| d_real, d_real_array); transformed_param_real = beta_lccdf(d_vector| d_real, d_vector); transformed_param_real = beta_lccdf(d_vector| d_real, d_row_vector); transformed_param_real = beta_lccdf(d_vector| d_real, p_real); transformed_param_real = beta_lccdf(d_vector| d_real, p_real_array); transformed_param_real = beta_lccdf(d_vector| d_real, p_vector); transformed_param_real = beta_lccdf(d_vector| d_real, p_row_vector); transformed_param_real = beta_lccdf(d_vector| d_real_array, d_int); transformed_param_real = beta_lccdf(d_vector| d_real_array, d_real); transformed_param_real = beta_lccdf(d_vector| d_real_array, d_real_array); transformed_param_real = beta_lccdf(d_vector| d_real_array, d_vector); transformed_param_real = beta_lccdf(d_vector| d_real_array, d_row_vector); transformed_param_real = beta_lccdf(d_vector| d_real_array, p_real); transformed_param_real = beta_lccdf(d_vector| d_real_array, p_real_array); transformed_param_real = beta_lccdf(d_vector| d_real_array, p_vector); transformed_param_real = beta_lccdf(d_vector| d_real_array, p_row_vector); transformed_param_real = beta_lccdf(d_vector| d_vector, d_int); transformed_param_real = beta_lccdf(d_vector| d_vector, d_real); transformed_param_real = beta_lccdf(d_vector| d_vector, d_real_array); transformed_param_real = beta_lccdf(d_vector| d_vector, d_vector); transformed_param_real = beta_lccdf(d_vector| d_vector, d_row_vector); transformed_param_real = beta_lccdf(d_vector| d_vector, p_real); transformed_param_real = beta_lccdf(d_vector| d_vector, p_real_array); transformed_param_real = beta_lccdf(d_vector| d_vector, p_vector); transformed_param_real = beta_lccdf(d_vector| d_vector, p_row_vector); transformed_param_real = beta_lccdf(d_vector| d_row_vector, d_int); transformed_param_real = beta_lccdf(d_vector| d_row_vector, d_real); transformed_param_real = beta_lccdf(d_vector| d_row_vector, d_real_array); transformed_param_real = beta_lccdf(d_vector| d_row_vector, d_vector); transformed_param_real = beta_lccdf(d_vector| d_row_vector, d_row_vector); transformed_param_real = beta_lccdf(d_vector| d_row_vector, p_real); transformed_param_real = beta_lccdf(d_vector| d_row_vector, p_real_array); transformed_param_real = beta_lccdf(d_vector| d_row_vector, p_vector); transformed_param_real = beta_lccdf(d_vector| d_row_vector, p_row_vector); transformed_param_real = beta_lccdf(d_vector| p_real, d_int); transformed_param_real = beta_lccdf(d_vector| p_real, d_real); transformed_param_real = beta_lccdf(d_vector| p_real, d_real_array); transformed_param_real = beta_lccdf(d_vector| p_real, d_vector); transformed_param_real = beta_lccdf(d_vector| p_real, d_row_vector); transformed_param_real = beta_lccdf(d_vector| p_real, p_real); transformed_param_real = beta_lccdf(d_vector| p_real, p_real_array); transformed_param_real = beta_lccdf(d_vector| p_real, p_vector); transformed_param_real = beta_lccdf(d_vector| p_real, p_row_vector); transformed_param_real = beta_lccdf(d_vector| p_real_array, d_int); transformed_param_real = beta_lccdf(d_vector| p_real_array, d_real); transformed_param_real = beta_lccdf(d_vector| p_real_array, d_real_array); transformed_param_real = beta_lccdf(d_vector| p_real_array, d_vector); transformed_param_real = beta_lccdf(d_vector| p_real_array, d_row_vector); transformed_param_real = beta_lccdf(d_vector| p_real_array, p_real); transformed_param_real = beta_lccdf(d_vector| p_real_array, p_real_array); transformed_param_real = beta_lccdf(d_vector| p_real_array, p_vector); transformed_param_real = beta_lccdf(d_vector| p_real_array, p_row_vector); transformed_param_real = beta_lccdf(d_vector| p_vector, d_int); transformed_param_real = beta_lccdf(d_vector| p_vector, d_real); transformed_param_real = beta_lccdf(d_vector| p_vector, d_real_array); transformed_param_real = beta_lccdf(d_vector| p_vector, d_vector); transformed_param_real = beta_lccdf(d_vector| p_vector, d_row_vector); transformed_param_real = beta_lccdf(d_vector| p_vector, p_real); transformed_param_real = beta_lccdf(d_vector| p_vector, p_real_array); transformed_param_real = beta_lccdf(d_vector| p_vector, p_vector); transformed_param_real = beta_lccdf(d_vector| p_vector, p_row_vector); transformed_param_real = beta_lccdf(d_vector| p_row_vector, d_int); transformed_param_real = beta_lccdf(d_vector| p_row_vector, d_real); transformed_param_real = beta_lccdf(d_vector| p_row_vector, d_real_array); transformed_param_real = beta_lccdf(d_vector| p_row_vector, d_vector); transformed_param_real = beta_lccdf(d_vector| p_row_vector, d_row_vector); transformed_param_real = beta_lccdf(d_vector| p_row_vector, p_real); transformed_param_real = beta_lccdf(d_vector| p_row_vector, p_real_array); transformed_param_real = beta_lccdf(d_vector| p_row_vector, p_vector); transformed_param_real = beta_lccdf(d_vector| p_row_vector, p_row_vector); transformed_param_real = beta_lccdf(d_row_vector| d_int, d_int); transformed_param_real = beta_lccdf(d_row_vector| d_int, d_real); transformed_param_real = beta_lccdf(d_row_vector| d_int, d_real_array); transformed_param_real = beta_lccdf(d_row_vector| d_int, d_vector); transformed_param_real = beta_lccdf(d_row_vector| d_int, d_row_vector); transformed_param_real = beta_lccdf(d_row_vector| d_int, p_real); transformed_param_real = beta_lccdf(d_row_vector| d_int, p_real_array); transformed_param_real = beta_lccdf(d_row_vector| d_int, p_vector); transformed_param_real = beta_lccdf(d_row_vector| d_int, p_row_vector); transformed_param_real = beta_lccdf(d_row_vector| d_real, d_int); transformed_param_real = beta_lccdf(d_row_vector| d_real, d_real); transformed_param_real = beta_lccdf(d_row_vector| d_real, d_real_array); transformed_param_real = beta_lccdf(d_row_vector| d_real, d_vector); transformed_param_real = beta_lccdf(d_row_vector| d_real, d_row_vector); transformed_param_real = beta_lccdf(d_row_vector| d_real, p_real); transformed_param_real = beta_lccdf(d_row_vector| d_real, p_real_array); transformed_param_real = beta_lccdf(d_row_vector| d_real, p_vector); transformed_param_real = beta_lccdf(d_row_vector| d_real, p_row_vector); transformed_param_real = beta_lccdf(d_row_vector| d_real_array, d_int); transformed_param_real = beta_lccdf(d_row_vector| d_real_array, d_real); transformed_param_real = beta_lccdf(d_row_vector| d_real_array, d_real_array); transformed_param_real = beta_lccdf(d_row_vector| d_real_array, d_vector); transformed_param_real = beta_lccdf(d_row_vector| d_real_array, d_row_vector); transformed_param_real = beta_lccdf(d_row_vector| d_real_array, p_real); transformed_param_real = beta_lccdf(d_row_vector| d_real_array, p_real_array); transformed_param_real = beta_lccdf(d_row_vector| d_real_array, p_vector); transformed_param_real = beta_lccdf(d_row_vector| d_real_array, p_row_vector); transformed_param_real = beta_lccdf(d_row_vector| d_vector, d_int); transformed_param_real = beta_lccdf(d_row_vector| d_vector, d_real); transformed_param_real = beta_lccdf(d_row_vector| d_vector, d_real_array); transformed_param_real = beta_lccdf(d_row_vector| d_vector, d_vector); transformed_param_real = beta_lccdf(d_row_vector| d_vector, d_row_vector); transformed_param_real = beta_lccdf(d_row_vector| d_vector, p_real); transformed_param_real = beta_lccdf(d_row_vector| d_vector, p_real_array); transformed_param_real = beta_lccdf(d_row_vector| d_vector, p_vector); transformed_param_real = beta_lccdf(d_row_vector| d_vector, p_row_vector); transformed_param_real = beta_lccdf(d_row_vector| d_row_vector, d_int); transformed_param_real = beta_lccdf(d_row_vector| d_row_vector, d_real); transformed_param_real = beta_lccdf(d_row_vector| d_row_vector, d_real_array); transformed_param_real = beta_lccdf(d_row_vector| d_row_vector, d_vector); transformed_param_real = beta_lccdf(d_row_vector| d_row_vector, d_row_vector); transformed_param_real = beta_lccdf(d_row_vector| d_row_vector, p_real); transformed_param_real = beta_lccdf(d_row_vector| d_row_vector, p_real_array); transformed_param_real = beta_lccdf(d_row_vector| d_row_vector, p_vector); transformed_param_real = beta_lccdf(d_row_vector| d_row_vector, p_row_vector); transformed_param_real = beta_lccdf(d_row_vector| p_real, d_int); transformed_param_real = beta_lccdf(d_row_vector| p_real, d_real); transformed_param_real = beta_lccdf(d_row_vector| p_real, d_real_array); transformed_param_real = beta_lccdf(d_row_vector| p_real, d_vector); transformed_param_real = beta_lccdf(d_row_vector| p_real, d_row_vector); transformed_param_real = beta_lccdf(d_row_vector| p_real, p_real); transformed_param_real = beta_lccdf(d_row_vector| p_real, p_real_array); transformed_param_real = beta_lccdf(d_row_vector| p_real, p_vector); transformed_param_real = beta_lccdf(d_row_vector| p_real, p_row_vector); transformed_param_real = beta_lccdf(d_row_vector| p_real_array, d_int); transformed_param_real = beta_lccdf(d_row_vector| p_real_array, d_real); transformed_param_real = beta_lccdf(d_row_vector| p_real_array, d_real_array); transformed_param_real = beta_lccdf(d_row_vector| p_real_array, d_vector); transformed_param_real = beta_lccdf(d_row_vector| p_real_array, d_row_vector); transformed_param_real = beta_lccdf(d_row_vector| p_real_array, p_real); transformed_param_real = beta_lccdf(d_row_vector| p_real_array, p_real_array); transformed_param_real = beta_lccdf(d_row_vector| p_real_array, p_vector); transformed_param_real = beta_lccdf(d_row_vector| p_real_array, p_row_vector); transformed_param_real = beta_lccdf(d_row_vector| p_vector, d_int); transformed_param_real = beta_lccdf(d_row_vector| p_vector, d_real); transformed_param_real = beta_lccdf(d_row_vector| p_vector, d_real_array); transformed_param_real = beta_lccdf(d_row_vector| p_vector, d_vector); transformed_param_real = beta_lccdf(d_row_vector| p_vector, d_row_vector); transformed_param_real = beta_lccdf(d_row_vector| p_vector, p_real); transformed_param_real = beta_lccdf(d_row_vector| p_vector, p_real_array); transformed_param_real = beta_lccdf(d_row_vector| p_vector, p_vector); transformed_param_real = beta_lccdf(d_row_vector| p_vector, p_row_vector); transformed_param_real = beta_lccdf(d_row_vector| p_row_vector, d_int); transformed_param_real = beta_lccdf(d_row_vector| p_row_vector, d_real); transformed_param_real = beta_lccdf(d_row_vector| p_row_vector, d_real_array); transformed_param_real = beta_lccdf(d_row_vector| p_row_vector, d_vector); transformed_param_real = beta_lccdf(d_row_vector| p_row_vector, d_row_vector); transformed_param_real = beta_lccdf(d_row_vector| p_row_vector, p_real); transformed_param_real = beta_lccdf(d_row_vector| p_row_vector, p_real_array); transformed_param_real = beta_lccdf(d_row_vector| p_row_vector, p_vector); transformed_param_real = beta_lccdf(d_row_vector| p_row_vector, p_row_vector); transformed_param_real = beta_lccdf(p_real| d_int, d_int); transformed_param_real = beta_lccdf(p_real| d_int, d_real); transformed_param_real = beta_lccdf(p_real| d_int, d_real_array); transformed_param_real = beta_lccdf(p_real| d_int, d_vector); transformed_param_real = beta_lccdf(p_real| d_int, d_row_vector); transformed_param_real = beta_lccdf(p_real| d_int, p_real); transformed_param_real = beta_lccdf(p_real| d_int, p_real_array); transformed_param_real = beta_lccdf(p_real| d_int, p_vector); transformed_param_real = beta_lccdf(p_real| d_int, p_row_vector); transformed_param_real = beta_lccdf(p_real| d_real, d_int); transformed_param_real = beta_lccdf(p_real| d_real, d_real); transformed_param_real = beta_lccdf(p_real| d_real, d_real_array); transformed_param_real = beta_lccdf(p_real| d_real, d_vector); transformed_param_real = beta_lccdf(p_real| d_real, d_row_vector); transformed_param_real = beta_lccdf(p_real| d_real, p_real); transformed_param_real = beta_lccdf(p_real| d_real, p_real_array); transformed_param_real = beta_lccdf(p_real| d_real, p_vector); transformed_param_real = beta_lccdf(p_real| d_real, p_row_vector); transformed_param_real = beta_lccdf(p_real| d_real_array, d_int); transformed_param_real = beta_lccdf(p_real| d_real_array, d_real); transformed_param_real = beta_lccdf(p_real| d_real_array, d_real_array); transformed_param_real = beta_lccdf(p_real| d_real_array, d_vector); transformed_param_real = beta_lccdf(p_real| d_real_array, d_row_vector); transformed_param_real = beta_lccdf(p_real| d_real_array, p_real); transformed_param_real = beta_lccdf(p_real| d_real_array, p_real_array); transformed_param_real = beta_lccdf(p_real| d_real_array, p_vector); transformed_param_real = beta_lccdf(p_real| d_real_array, p_row_vector); transformed_param_real = beta_lccdf(p_real| d_vector, d_int); transformed_param_real = beta_lccdf(p_real| d_vector, d_real); transformed_param_real = beta_lccdf(p_real| d_vector, d_real_array); transformed_param_real = beta_lccdf(p_real| d_vector, d_vector); transformed_param_real = beta_lccdf(p_real| d_vector, d_row_vector); transformed_param_real = beta_lccdf(p_real| d_vector, p_real); transformed_param_real = beta_lccdf(p_real| d_vector, p_real_array); transformed_param_real = beta_lccdf(p_real| d_vector, p_vector); transformed_param_real = beta_lccdf(p_real| d_vector, p_row_vector); transformed_param_real = beta_lccdf(p_real| d_row_vector, d_int); transformed_param_real = beta_lccdf(p_real| d_row_vector, d_real); transformed_param_real = beta_lccdf(p_real| d_row_vector, d_real_array); transformed_param_real = beta_lccdf(p_real| d_row_vector, d_vector); transformed_param_real = beta_lccdf(p_real| d_row_vector, d_row_vector); transformed_param_real = beta_lccdf(p_real| d_row_vector, p_real); transformed_param_real = beta_lccdf(p_real| d_row_vector, p_real_array); transformed_param_real = beta_lccdf(p_real| d_row_vector, p_vector); transformed_param_real = beta_lccdf(p_real| d_row_vector, p_row_vector); transformed_param_real = beta_lccdf(p_real| p_real, d_int); transformed_param_real = beta_lccdf(p_real| p_real, d_real); transformed_param_real = beta_lccdf(p_real| p_real, d_real_array); transformed_param_real = beta_lccdf(p_real| p_real, d_vector); transformed_param_real = beta_lccdf(p_real| p_real, d_row_vector); transformed_param_real = beta_lccdf(p_real| p_real, p_real); transformed_param_real = beta_lccdf(p_real| p_real, p_real_array); transformed_param_real = beta_lccdf(p_real| p_real, p_vector); transformed_param_real = beta_lccdf(p_real| p_real, p_row_vector); transformed_param_real = beta_lccdf(p_real| p_real_array, d_int); transformed_param_real = beta_lccdf(p_real| p_real_array, d_real); transformed_param_real = beta_lccdf(p_real| p_real_array, d_real_array); transformed_param_real = beta_lccdf(p_real| p_real_array, d_vector); transformed_param_real = beta_lccdf(p_real| p_real_array, d_row_vector); transformed_param_real = beta_lccdf(p_real| p_real_array, p_real); transformed_param_real = beta_lccdf(p_real| p_real_array, p_real_array); transformed_param_real = beta_lccdf(p_real| p_real_array, p_vector); transformed_param_real = beta_lccdf(p_real| p_real_array, p_row_vector); transformed_param_real = beta_lccdf(p_real| p_vector, d_int); transformed_param_real = beta_lccdf(p_real| p_vector, d_real); transformed_param_real = beta_lccdf(p_real| p_vector, d_real_array); transformed_param_real = beta_lccdf(p_real| p_vector, d_vector); transformed_param_real = beta_lccdf(p_real| p_vector, d_row_vector); transformed_param_real = beta_lccdf(p_real| p_vector, p_real); transformed_param_real = beta_lccdf(p_real| p_vector, p_real_array); transformed_param_real = beta_lccdf(p_real| p_vector, p_vector); transformed_param_real = beta_lccdf(p_real| p_vector, p_row_vector); transformed_param_real = beta_lccdf(p_real| p_row_vector, d_int); transformed_param_real = beta_lccdf(p_real| p_row_vector, d_real); transformed_param_real = beta_lccdf(p_real| p_row_vector, d_real_array); transformed_param_real = beta_lccdf(p_real| p_row_vector, d_vector); transformed_param_real = beta_lccdf(p_real| p_row_vector, d_row_vector); transformed_param_real = beta_lccdf(p_real| p_row_vector, p_real); transformed_param_real = beta_lccdf(p_real| p_row_vector, p_real_array); transformed_param_real = beta_lccdf(p_real| p_row_vector, p_vector); transformed_param_real = beta_lccdf(p_real| p_row_vector, p_row_vector); transformed_param_real = beta_lccdf(p_real_array| d_int, d_int); transformed_param_real = beta_lccdf(p_real_array| d_int, d_real); transformed_param_real = beta_lccdf(p_real_array| d_int, d_real_array); transformed_param_real = beta_lccdf(p_real_array| d_int, d_vector); transformed_param_real = beta_lccdf(p_real_array| d_int, d_row_vector); transformed_param_real = beta_lccdf(p_real_array| d_int, p_real); transformed_param_real = beta_lccdf(p_real_array| d_int, p_real_array); transformed_param_real = beta_lccdf(p_real_array| d_int, p_vector); transformed_param_real = beta_lccdf(p_real_array| d_int, p_row_vector); transformed_param_real = beta_lccdf(p_real_array| d_real, d_int); transformed_param_real = beta_lccdf(p_real_array| d_real, d_real); transformed_param_real = beta_lccdf(p_real_array| d_real, d_real_array); transformed_param_real = beta_lccdf(p_real_array| d_real, d_vector); transformed_param_real = beta_lccdf(p_real_array| d_real, d_row_vector); transformed_param_real = beta_lccdf(p_real_array| d_real, p_real); transformed_param_real = beta_lccdf(p_real_array| d_real, p_real_array); transformed_param_real = beta_lccdf(p_real_array| d_real, p_vector); transformed_param_real = beta_lccdf(p_real_array| d_real, p_row_vector); transformed_param_real = beta_lccdf(p_real_array| d_real_array, d_int); transformed_param_real = beta_lccdf(p_real_array| d_real_array, d_real); transformed_param_real = beta_lccdf(p_real_array| d_real_array, d_real_array); transformed_param_real = beta_lccdf(p_real_array| d_real_array, d_vector); transformed_param_real = beta_lccdf(p_real_array| d_real_array, d_row_vector); transformed_param_real = beta_lccdf(p_real_array| d_real_array, p_real); transformed_param_real = beta_lccdf(p_real_array| d_real_array, p_real_array); transformed_param_real = beta_lccdf(p_real_array| d_real_array, p_vector); transformed_param_real = beta_lccdf(p_real_array| d_real_array, p_row_vector); transformed_param_real = beta_lccdf(p_real_array| d_vector, d_int); transformed_param_real = beta_lccdf(p_real_array| d_vector, d_real); transformed_param_real = beta_lccdf(p_real_array| d_vector, d_real_array); transformed_param_real = beta_lccdf(p_real_array| d_vector, d_vector); transformed_param_real = beta_lccdf(p_real_array| d_vector, d_row_vector); transformed_param_real = beta_lccdf(p_real_array| d_vector, p_real); transformed_param_real = beta_lccdf(p_real_array| d_vector, p_real_array); transformed_param_real = beta_lccdf(p_real_array| d_vector, p_vector); transformed_param_real = beta_lccdf(p_real_array| d_vector, p_row_vector); transformed_param_real = beta_lccdf(p_real_array| d_row_vector, d_int); transformed_param_real = beta_lccdf(p_real_array| d_row_vector, d_real); transformed_param_real = beta_lccdf(p_real_array| d_row_vector, d_real_array); transformed_param_real = beta_lccdf(p_real_array| d_row_vector, d_vector); transformed_param_real = beta_lccdf(p_real_array| d_row_vector, d_row_vector); transformed_param_real = beta_lccdf(p_real_array| d_row_vector, p_real); transformed_param_real = beta_lccdf(p_real_array| d_row_vector, p_real_array); transformed_param_real = beta_lccdf(p_real_array| d_row_vector, p_vector); transformed_param_real = beta_lccdf(p_real_array| d_row_vector, p_row_vector); transformed_param_real = beta_lccdf(p_real_array| p_real, d_int); transformed_param_real = beta_lccdf(p_real_array| p_real, d_real); transformed_param_real = beta_lccdf(p_real_array| p_real, d_real_array); transformed_param_real = beta_lccdf(p_real_array| p_real, d_vector); transformed_param_real = beta_lccdf(p_real_array| p_real, d_row_vector); transformed_param_real = beta_lccdf(p_real_array| p_real, p_real); transformed_param_real = beta_lccdf(p_real_array| p_real, p_real_array); transformed_param_real = beta_lccdf(p_real_array| p_real, p_vector); transformed_param_real = beta_lccdf(p_real_array| p_real, p_row_vector); transformed_param_real = beta_lccdf(p_real_array| p_real_array, d_int); transformed_param_real = beta_lccdf(p_real_array| p_real_array, d_real); transformed_param_real = beta_lccdf(p_real_array| p_real_array, d_real_array); transformed_param_real = beta_lccdf(p_real_array| p_real_array, d_vector); transformed_param_real = beta_lccdf(p_real_array| p_real_array, d_row_vector); transformed_param_real = beta_lccdf(p_real_array| p_real_array, p_real); transformed_param_real = beta_lccdf(p_real_array| p_real_array, p_real_array); transformed_param_real = beta_lccdf(p_real_array| p_real_array, p_vector); transformed_param_real = beta_lccdf(p_real_array| p_real_array, p_row_vector); transformed_param_real = beta_lccdf(p_real_array| p_vector, d_int); transformed_param_real = beta_lccdf(p_real_array| p_vector, d_real); transformed_param_real = beta_lccdf(p_real_array| p_vector, d_real_array); transformed_param_real = beta_lccdf(p_real_array| p_vector, d_vector); transformed_param_real = beta_lccdf(p_real_array| p_vector, d_row_vector); transformed_param_real = beta_lccdf(p_real_array| p_vector, p_real); transformed_param_real = beta_lccdf(p_real_array| p_vector, p_real_array); transformed_param_real = beta_lccdf(p_real_array| p_vector, p_vector); transformed_param_real = beta_lccdf(p_real_array| p_vector, p_row_vector); transformed_param_real = beta_lccdf(p_real_array| p_row_vector, d_int); transformed_param_real = beta_lccdf(p_real_array| p_row_vector, d_real); transformed_param_real = beta_lccdf(p_real_array| p_row_vector, d_real_array); transformed_param_real = beta_lccdf(p_real_array| p_row_vector, d_vector); transformed_param_real = beta_lccdf(p_real_array| p_row_vector, d_row_vector); transformed_param_real = beta_lccdf(p_real_array| p_row_vector, p_real); transformed_param_real = beta_lccdf(p_real_array| p_row_vector, p_real_array); transformed_param_real = beta_lccdf(p_real_array| p_row_vector, p_vector); transformed_param_real = beta_lccdf(p_real_array| p_row_vector, p_row_vector); transformed_param_real = beta_lccdf(p_vector| d_int, d_int); transformed_param_real = beta_lccdf(p_vector| d_int, d_real); transformed_param_real = beta_lccdf(p_vector| d_int, d_real_array); transformed_param_real = beta_lccdf(p_vector| d_int, d_vector); transformed_param_real = beta_lccdf(p_vector| d_int, d_row_vector); transformed_param_real = beta_lccdf(p_vector| d_int, p_real); transformed_param_real = beta_lccdf(p_vector| d_int, p_real_array); transformed_param_real = beta_lccdf(p_vector| d_int, p_vector); transformed_param_real = beta_lccdf(p_vector| d_int, p_row_vector); transformed_param_real = beta_lccdf(p_vector| d_real, d_int); transformed_param_real = beta_lccdf(p_vector| d_real, d_real); transformed_param_real = beta_lccdf(p_vector| d_real, d_real_array); transformed_param_real = beta_lccdf(p_vector| d_real, d_vector); transformed_param_real = beta_lccdf(p_vector| d_real, d_row_vector); transformed_param_real = beta_lccdf(p_vector| d_real, p_real); transformed_param_real = beta_lccdf(p_vector| d_real, p_real_array); transformed_param_real = beta_lccdf(p_vector| d_real, p_vector); transformed_param_real = beta_lccdf(p_vector| d_real, p_row_vector); transformed_param_real = beta_lccdf(p_vector| d_real_array, d_int); transformed_param_real = beta_lccdf(p_vector| d_real_array, d_real); transformed_param_real = beta_lccdf(p_vector| d_real_array, d_real_array); transformed_param_real = beta_lccdf(p_vector| d_real_array, d_vector); transformed_param_real = beta_lccdf(p_vector| d_real_array, d_row_vector); transformed_param_real = beta_lccdf(p_vector| d_real_array, p_real); transformed_param_real = beta_lccdf(p_vector| d_real_array, p_real_array); transformed_param_real = beta_lccdf(p_vector| d_real_array, p_vector); transformed_param_real = beta_lccdf(p_vector| d_real_array, p_row_vector); transformed_param_real = beta_lccdf(p_vector| d_vector, d_int); transformed_param_real = beta_lccdf(p_vector| d_vector, d_real); transformed_param_real = beta_lccdf(p_vector| d_vector, d_real_array); transformed_param_real = beta_lccdf(p_vector| d_vector, d_vector); transformed_param_real = beta_lccdf(p_vector| d_vector, d_row_vector); transformed_param_real = beta_lccdf(p_vector| d_vector, p_real); transformed_param_real = beta_lccdf(p_vector| d_vector, p_real_array); transformed_param_real = beta_lccdf(p_vector| d_vector, p_vector); transformed_param_real = beta_lccdf(p_vector| d_vector, p_row_vector); transformed_param_real = beta_lccdf(p_vector| d_row_vector, d_int); transformed_param_real = beta_lccdf(p_vector| d_row_vector, d_real); transformed_param_real = beta_lccdf(p_vector| d_row_vector, d_real_array); transformed_param_real = beta_lccdf(p_vector| d_row_vector, d_vector); transformed_param_real = beta_lccdf(p_vector| d_row_vector, d_row_vector); transformed_param_real = beta_lccdf(p_vector| d_row_vector, p_real); transformed_param_real = beta_lccdf(p_vector| d_row_vector, p_real_array); transformed_param_real = beta_lccdf(p_vector| d_row_vector, p_vector); transformed_param_real = beta_lccdf(p_vector| d_row_vector, p_row_vector); transformed_param_real = beta_lccdf(p_vector| p_real, d_int); transformed_param_real = beta_lccdf(p_vector| p_real, d_real); transformed_param_real = beta_lccdf(p_vector| p_real, d_real_array); transformed_param_real = beta_lccdf(p_vector| p_real, d_vector); transformed_param_real = beta_lccdf(p_vector| p_real, d_row_vector); transformed_param_real = beta_lccdf(p_vector| p_real, p_real); transformed_param_real = beta_lccdf(p_vector| p_real, p_real_array); transformed_param_real = beta_lccdf(p_vector| p_real, p_vector); transformed_param_real = beta_lccdf(p_vector| p_real, p_row_vector); transformed_param_real = beta_lccdf(p_vector| p_real_array, d_int); transformed_param_real = beta_lccdf(p_vector| p_real_array, d_real); transformed_param_real = beta_lccdf(p_vector| p_real_array, d_real_array); transformed_param_real = beta_lccdf(p_vector| p_real_array, d_vector); transformed_param_real = beta_lccdf(p_vector| p_real_array, d_row_vector); transformed_param_real = beta_lccdf(p_vector| p_real_array, p_real); transformed_param_real = beta_lccdf(p_vector| p_real_array, p_real_array); transformed_param_real = beta_lccdf(p_vector| p_real_array, p_vector); transformed_param_real = beta_lccdf(p_vector| p_real_array, p_row_vector); transformed_param_real = beta_lccdf(p_vector| p_vector, d_int); transformed_param_real = beta_lccdf(p_vector| p_vector, d_real); transformed_param_real = beta_lccdf(p_vector| p_vector, d_real_array); transformed_param_real = beta_lccdf(p_vector| p_vector, d_vector); transformed_param_real = beta_lccdf(p_vector| p_vector, d_row_vector); transformed_param_real = beta_lccdf(p_vector| p_vector, p_real); transformed_param_real = beta_lccdf(p_vector| p_vector, p_real_array); transformed_param_real = beta_lccdf(p_vector| p_vector, p_vector); transformed_param_real = beta_lccdf(p_vector| p_vector, p_row_vector); transformed_param_real = beta_lccdf(p_vector| p_row_vector, d_int); transformed_param_real = beta_lccdf(p_vector| p_row_vector, d_real); transformed_param_real = beta_lccdf(p_vector| p_row_vector, d_real_array); transformed_param_real = beta_lccdf(p_vector| p_row_vector, d_vector); transformed_param_real = beta_lccdf(p_vector| p_row_vector, d_row_vector); transformed_param_real = beta_lccdf(p_vector| p_row_vector, p_real); transformed_param_real = beta_lccdf(p_vector| p_row_vector, p_real_array); transformed_param_real = beta_lccdf(p_vector| p_row_vector, p_vector); transformed_param_real = beta_lccdf(p_vector| p_row_vector, p_row_vector); transformed_param_real = beta_lccdf(p_row_vector| d_int, d_int); transformed_param_real = beta_lccdf(p_row_vector| d_int, d_real); transformed_param_real = beta_lccdf(p_row_vector| d_int, d_real_array); transformed_param_real = beta_lccdf(p_row_vector| d_int, d_vector); transformed_param_real = beta_lccdf(p_row_vector| d_int, d_row_vector); transformed_param_real = beta_lccdf(p_row_vector| d_int, p_real); transformed_param_real = beta_lccdf(p_row_vector| d_int, p_real_array); transformed_param_real = beta_lccdf(p_row_vector| d_int, p_vector); transformed_param_real = beta_lccdf(p_row_vector| d_int, p_row_vector); transformed_param_real = beta_lccdf(p_row_vector| d_real, d_int); transformed_param_real = beta_lccdf(p_row_vector| d_real, d_real); transformed_param_real = beta_lccdf(p_row_vector| d_real, d_real_array); transformed_param_real = beta_lccdf(p_row_vector| d_real, d_vector); transformed_param_real = beta_lccdf(p_row_vector| d_real, d_row_vector); transformed_param_real = beta_lccdf(p_row_vector| d_real, p_real); transformed_param_real = beta_lccdf(p_row_vector| d_real, p_real_array); transformed_param_real = beta_lccdf(p_row_vector| d_real, p_vector); transformed_param_real = beta_lccdf(p_row_vector| d_real, p_row_vector); transformed_param_real = beta_lccdf(p_row_vector| d_real_array, d_int); transformed_param_real = beta_lccdf(p_row_vector| d_real_array, d_real); transformed_param_real = beta_lccdf(p_row_vector| d_real_array, d_real_array); transformed_param_real = beta_lccdf(p_row_vector| d_real_array, d_vector); transformed_param_real = beta_lccdf(p_row_vector| d_real_array, d_row_vector); transformed_param_real = beta_lccdf(p_row_vector| d_real_array, p_real); transformed_param_real = beta_lccdf(p_row_vector| d_real_array, p_real_array); transformed_param_real = beta_lccdf(p_row_vector| d_real_array, p_vector); transformed_param_real = beta_lccdf(p_row_vector| d_real_array, p_row_vector); transformed_param_real = beta_lccdf(p_row_vector| d_vector, d_int); transformed_param_real = beta_lccdf(p_row_vector| d_vector, d_real); transformed_param_real = beta_lccdf(p_row_vector| d_vector, d_real_array); transformed_param_real = beta_lccdf(p_row_vector| d_vector, d_vector); transformed_param_real = beta_lccdf(p_row_vector| d_vector, d_row_vector); transformed_param_real = beta_lccdf(p_row_vector| d_vector, p_real); transformed_param_real = beta_lccdf(p_row_vector| d_vector, p_real_array); transformed_param_real = beta_lccdf(p_row_vector| d_vector, p_vector); transformed_param_real = beta_lccdf(p_row_vector| d_vector, p_row_vector); transformed_param_real = beta_lccdf(p_row_vector| d_row_vector, d_int); transformed_param_real = beta_lccdf(p_row_vector| d_row_vector, d_real); transformed_param_real = beta_lccdf(p_row_vector| d_row_vector, d_real_array); transformed_param_real = beta_lccdf(p_row_vector| d_row_vector, d_vector); transformed_param_real = beta_lccdf(p_row_vector| d_row_vector, d_row_vector); transformed_param_real = beta_lccdf(p_row_vector| d_row_vector, p_real); transformed_param_real = beta_lccdf(p_row_vector| d_row_vector, p_real_array); transformed_param_real = beta_lccdf(p_row_vector| d_row_vector, p_vector); transformed_param_real = beta_lccdf(p_row_vector| d_row_vector, p_row_vector); transformed_param_real = beta_lccdf(p_row_vector| p_real, d_int); transformed_param_real = beta_lccdf(p_row_vector| p_real, d_real); transformed_param_real = beta_lccdf(p_row_vector| p_real, d_real_array); transformed_param_real = beta_lccdf(p_row_vector| p_real, d_vector); transformed_param_real = beta_lccdf(p_row_vector| p_real, d_row_vector); transformed_param_real = beta_lccdf(p_row_vector| p_real, p_real); transformed_param_real = beta_lccdf(p_row_vector| p_real, p_real_array); transformed_param_real = beta_lccdf(p_row_vector| p_real, p_vector); transformed_param_real = beta_lccdf(p_row_vector| p_real, p_row_vector); transformed_param_real = beta_lccdf(p_row_vector| p_real_array, d_int); transformed_param_real = beta_lccdf(p_row_vector| p_real_array, d_real); transformed_param_real = beta_lccdf(p_row_vector| p_real_array, d_real_array); transformed_param_real = beta_lccdf(p_row_vector| p_real_array, d_vector); transformed_param_real = beta_lccdf(p_row_vector| p_real_array, d_row_vector); transformed_param_real = beta_lccdf(p_row_vector| p_real_array, p_real); transformed_param_real = beta_lccdf(p_row_vector| p_real_array, p_real_array); transformed_param_real = beta_lccdf(p_row_vector| p_real_array, p_vector); transformed_param_real = beta_lccdf(p_row_vector| p_real_array, p_row_vector); transformed_param_real = beta_lccdf(p_row_vector| p_vector, d_int); transformed_param_real = beta_lccdf(p_row_vector| p_vector, d_real); transformed_param_real = beta_lccdf(p_row_vector| p_vector, d_real_array); transformed_param_real = beta_lccdf(p_row_vector| p_vector, d_vector); transformed_param_real = beta_lccdf(p_row_vector| p_vector, d_row_vector); transformed_param_real = beta_lccdf(p_row_vector| p_vector, p_real); transformed_param_real = beta_lccdf(p_row_vector| p_vector, p_real_array); transformed_param_real = beta_lccdf(p_row_vector| p_vector, p_vector); transformed_param_real = beta_lccdf(p_row_vector| p_vector, p_row_vector); transformed_param_real = beta_lccdf(p_row_vector| p_row_vector, d_int); transformed_param_real = beta_lccdf(p_row_vector| p_row_vector, d_real); transformed_param_real = beta_lccdf(p_row_vector| p_row_vector, d_real_array); transformed_param_real = beta_lccdf(p_row_vector| p_row_vector, d_vector); transformed_param_real = beta_lccdf(p_row_vector| p_row_vector, d_row_vector); transformed_param_real = beta_lccdf(p_row_vector| p_row_vector, p_real); transformed_param_real = beta_lccdf(p_row_vector| p_row_vector, p_real_array); transformed_param_real = beta_lccdf(p_row_vector| p_row_vector, p_vector); transformed_param_real = beta_lccdf(p_row_vector| p_row_vector, p_row_vector); } model { y_p ~ normal(0, 1); }
Class { #name : #MJFAMIXSessionBeanGroup, #superclass : #MJAbstractGroup, #category : #'Moose-JEE-Model' } { #category : #meta } MJFAMIXSessionBeanGroup class >> annotation [ <MSEClass: #MJFAMIXSessionBeanGroup super: #MJAbstractGroup> <package: #'Moose-JEE-Model'> ] { #category : #'as yet unclassified' } MJFAMIXSessionBeanGroup >> umlShape: aString [ | builder | builder := MOFormsBuilder new. builder column; fill. builder row; fill; row; fill. builder x: 1 y: 1 add: MORectangleShape new. builder x: 1 y: 1 add: (MOLabelShape new text: [:cls | aString]). builder x: 1 y: 2 add: MORectangleShape new. builder x: 1 y: 2 add: (MOLabelShape new text: [ :cls | cls methodDict keys inject: '' into: [ :sum :el | sum , el , String cr ] ]). ^ builder shape ] { #category : #'as yet unclassified' } MJFAMIXSessionBeanGroup >> viewApplicationByLayers [ "<menuItem: 'Application by Layers' category: 'JEAs Visualizations'>" | invoked view beans data logic map invocationsMap layerShape aBlock myShape allModelClasse | view := MOViewRenderer new. beans := self collect: #implementationClass. allModelClasse := beans first mooseModel allClasses. invoked := (beans flatCollect: #withDeepInvokedClasses) asSet asOrderedCollection reject: [:each | beans includes: each]. data := invoked select: #isADataLayerClass. logic := invoked reject: #isADataLayerClass. map := IdentityDictionary new. data do: [:each | map at: each mooseName put: 3]. logic do: [:each | map at: each mooseName put: 2]. beans do: [:each | map at: each mooseName put: 1]. invocationsMap := beans first mooseModel allClasses flatCollect: [:each | each invokedClasses collect: [:x | each -> x]]. view interaction nodraggable. view shape rectangle withBorder. view node: 'Service Layer' forIt:[ view interaction nodraggable. view shape rectangle text: 'Service Layer'; fontSize: 10; borderColor: Color transparent; textAlignment: #left. view node: 'Service Layer'. view interaction nodraggable. view shape rectangle withBorder. view node: 'Service Layer Content' forIt:[ view interaction nodraggable. view nodes: beans using: [view shape rectangle width: #numberOfAttributes; height: #numberOfMethods; linearFillColor: #numberOfLinesOfCode within: allModelClasse; withBorder ] ] ]. view open. ] { #category : #'as yet unclassified' } MJFAMIXSessionBeanGroup >> viewAsSelectionOnSystemComplexity [ <menuItem: 'As selection on System Complexity' category: 'JEAs Visualizations'> (FAMIXClassGroup withAll: (self collect: #implementationClass)) viewAsSelectionOnSystemComplexity. ] { #category : #'as yet unclassified' } MJFAMIXSessionBeanGroup >> viewLayerOn: view [ view shape umlClass. view interaction popupText. view nodes: self entities. view shape: MOOrthoVerticalLineShape new. view edgesFrom: #superclass. view treeLayout ] { #category : #'as yet unclassified' } MJFAMIXSessionBeanGroup >> viewLayers [ "<menuItem: 'Layers' category: 'JEAs Visualizations'>" | invoked view beans data logic map invocationsMap | view := MOViewRenderer new. beans := self collect: #implementationClass. invoked := (beans flatCollect: #withDeepInvokedClasses) asSet asOrderedCollection reject: [:each | beans includes: each]. data := invoked select: #isADataLayerClass. logic := invoked reject: #isADataLayerClass. map := IdentityDictionary new. data do: [:each | map at: each mooseName put: 3]. logic do: [:each | map at: each mooseName put: 2]. beans do: [:each | map at: each mooseName put: 1]. invocationsMap := beans first mooseModel allClasses flatCollect: [:each | each invokedClasses collect: [:x | each -> x]]. "view shape: (view umlShape: 'Service Layer')." view node: beans forIt: [ view nodes: beans using: ( MORectangleShape new width: #numberOfAttributes; height: #numberOfMethods; linearFillColor: #numberOfLinesOfCode within: beans first mooseModel allClasses; withBorder ). view horizontalLineLayout. ]. view shape: (view umlShape: 'Logic Layer'). view node: #logic forIt: [ view nodeShape: ( MORectangleShape new width: #numberOfAttributes; height: #numberOfMethods; linearFillColor: #numberOfLinesOfCode within: beans first mooseModel allClasses; withBorder ). view nodes: logic. view dominanceTreeLayout. ]. "view umlPackageShapeWithLabel: 'Data Layer'." view shape: (self umlShape: 'Data Layer'). view node: #data forIt: [ view nodeShape: ( MORectangleShape new width: #numberOfAttributes; height: #numberOfMethods; linearFillColor: #numberOfLinesOfCode within: beans first mooseModel allClasses; withBorder ). view nodes: data. view dominanceTreeLayout. ]. view shape curvedLine color: [:assoc | (map at: assoc key mooseName) = (map at: assoc value mooseName) ifTrue: [Color white] ifFalse: [ ((map at: assoc key mooseName) - (map at: assoc value mooseName)) abs < 2 ifTrue: [Color blue] ifFalse: [Color orange]] ]. "view edges: invocationsMap from: #key to: #value. view edges: beans first mooseModel allClasses from: #superclass to: #yourself. view verticalLineLayout verticalGap: 40." view open ]
sudo apt install libavdevice-dev libavfilter-dev libopus-dev libvpx-dev pkg-config libsrtp2-1 python3-pip sudo apt install libsrtp2-dev sudo apt install libffi-dev sudo pip3 install aiortc
-module(ebot_tasks_controller, [Req, SessionId]). -compile(export_all). index('GET', [], Context) -> Tasks = boss_db:find(task, []), {json, [{status, "ok"}, {tasks, Tasks}]}.
#! /bin/csh -f make clean make #run formal released case ./main ./clustering1.txt ./clustering_big.txt > ./ans1.log
# The package naming convention is <core_name>_xmdf package provide ddr3_ram_mig_7series_0_0_xmdf 1.0 # This includes some utilities that support common XMDF operations package require utilities_xmdf # Define a namespace for this package. The name of the name space # is <core_name>_xmdf namespace eval ::ddr3_ram_mig_7series_0_0_xmdf { # Use this to define any statics } # Function called by client to rebuild the params and port arrays # Optional when the use context does not require the param or ports # arrays to be available. proc ::ddr3_ram_mig_7series_0_0_xmdf::xmdfInit { instance } { # Variable containing name of library into which module is compiled # Recommendation: <module_name> # Required utilities_xmdf::xmdfSetData $instance Module Attributes Name ddr3_ram_mig_7series_0_0 } # ::ddr3_ram_mig_7series_0_0_xmdf::xmdfInit # Function called by client to fill in all the xmdf* data variables # based on the current settings of the parameters proc ::ddr3_ram_mig_7series_0_0_xmdf::xmdfApplyParams { instance } { set fcount 0 # Array containing libraries that are assumed to exist # Examples include unisim and xilinxcorelib # Optional # In this example, we assume that the unisim library will # be magically # available to the simulation and synthesis tool utilities_xmdf::xmdfSetData $instance FileSet $fcount type logical_library utilities_xmdf::xmdfSetData $instance FileSet $fcount logical_library unisim incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/ui/mig_7series_v4_2_ui_top.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/ui/mig_7series_v4_2_ui_rd_data.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/ui/mig_7series_v4_2_ui_wr_data.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/ui/mig_7series_v4_2_ui_cmd.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/ecc/mig_7series_v4_2_ecc_gen.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/ecc/mig_7series_v4_2_ecc_merge_enc.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/ecc/mig_7series_v4_2_fi_xor.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/ecc/mig_7series_v4_2_ecc_dec_fix.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/ecc/mig_7series_v4_2_ecc_buf.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/axi/mig_7series_v4_2_axi_mc.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/axi/mig_7series_v4_2_axi_mc_w_channel.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/axi/mig_7series_v4_2_axi_mc_b_channel.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/axi/mig_7series_v4_2_ddr_comparator_sel_static.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/axi/mig_7series_v4_2_ddr_axi_upsizer.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/axi/mig_7series_v4_2_ddr_carry_latch_and.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/axi/mig_7series_v4_2_ddr_command_fifo.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/axi/mig_7series_v4_2_ddr_axic_register_slice.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/axi/mig_7series_v4_2_axi_mc_ar_channel.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/axi/mig_7series_v4_2_ddr_comparator.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/axi/mig_7series_v4_2_axi_ctrl_write.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/axi/mig_7series_v4_2_axi_ctrl_read.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/axi/mig_7series_v4_2_axi_ctrl_top.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/axi/mig_7series_v4_2_axi_mc_cmd_translator.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/axi/mig_7series_v4_2_axi_ctrl_reg.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/axi/mig_7series_v4_2_axi_mc_r_channel.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/axi/mig_7series_v4_2_ddr_carry_and.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/axi/mig_7series_v4_2_axi_mc_wrap_cmd.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/axi/mig_7series_v4_2_axi_mc_fifo.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/axi/mig_7series_v4_2_axi_mc_incr_cmd.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/axi/mig_7series_v4_2_ddr_carry_or.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/axi/mig_7series_v4_2_axi_mc_wr_cmd_fsm.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/axi/mig_7series_v4_2_axi_mc_cmd_fsm.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/axi/mig_7series_v4_2_ddr_carry_latch_or.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/axi/mig_7series_v4_2_ddr_axi_register_slice.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/axi/mig_7series_v4_2_ddr_a_upsizer.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/axi/mig_7series_v4_2_ddr_comparator_sel.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/axi/mig_7series_v4_2_axi_mc_aw_channel.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/axi/mig_7series_v4_2_ddr_w_upsizer.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/axi/mig_7series_v4_2_axi_mc_simple_fifo.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/axi/mig_7series_v4_2_axi_ctrl_reg_bank.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/axi/mig_7series_v4_2_axi_ctrl_addr_decode.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/axi/mig_7series_v4_2_axi_mc_cmd_arbiter.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/axi/mig_7series_v4_2_ddr_r_upsizer.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/clocking/mig_7series_v4_2_clk_ibuf.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/clocking/mig_7series_v4_2_iodelay_ctrl.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/clocking/mig_7series_v4_2_tempmon.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/clocking/mig_7series_v4_2_infrastructure.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/ip_top/mig_7series_v4_2_memc_ui_top_axi.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/ip_top/mig_7series_v4_2_mem_intfc.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/ddr3_ram_mig_7series_0_0_mig.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/ddr3_ram_mig_7series_0_0.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/controller/mig_7series_v4_2_rank_mach.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/controller/mig_7series_v4_2_rank_common.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/controller/mig_7series_v4_2_arb_mux.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/controller/mig_7series_v4_2_bank_queue.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/controller/mig_7series_v4_2_bank_mach.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/controller/mig_7series_v4_2_bank_cntrl.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/controller/mig_7series_v4_2_arb_row_col.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/controller/mig_7series_v4_2_bank_common.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/controller/mig_7series_v4_2_bank_state.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/controller/mig_7series_v4_2_round_robin_arb.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/controller/mig_7series_v4_2_arb_select.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/controller/mig_7series_v4_2_mc.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/controller/mig_7series_v4_2_bank_compare.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/controller/mig_7series_v4_2_col_mach.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/controller/mig_7series_v4_2_rank_cntrl.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/phy/mig_7series_v4_2_poc_pd.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/phy/mig_7series_v4_2_ddr_calib_top.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/phy/mig_7series_v4_2_ddr_prbs_gen.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/phy/mig_7series_v4_2_ddr_skip_calib_tap.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/phy/mig_7series_v4_2_ddr_phy_ocd_po_cntlr.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/phy/mig_7series_v4_2_ddr_mc_phy.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/phy/mig_7series_v4_2_poc_cc.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/phy/mig_7series_v4_2_ddr_phy_top.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/phy/mig_7series_v4_2_ddr_phy_wrlvl.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/phy/mig_7series_v4_2_poc_meta.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/phy/mig_7series_v4_2_ddr_of_pre_fifo.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/phy/mig_7series_v4_2_ddr_phy_4lanes.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/phy/mig_7series_v4_2_ddr_phy_oclkdelay_cal.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/phy/mig_7series_v4_2_ddr_phy_dqs_found_cal_hr.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/phy/mig_7series_v4_2_ddr_phy_ck_addr_cmd_delay.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/phy/mig_7series_v4_2_ddr_phy_ocd_mux.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/phy/mig_7series_v4_2_ddr_phy_wrcal.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/phy/mig_7series_v4_2_ddr_phy_ocd_edge.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/phy/mig_7series_v4_2_ddr_phy_ocd_samp.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/phy/mig_7series_v4_2_ddr_phy_ocd_data.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/phy/mig_7series_v4_2_ddr_phy_tempmon.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/phy/mig_7series_v4_2_ddr_phy_dqs_found_cal.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/phy/mig_7series_v4_2_poc_edge_store.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/phy/mig_7series_v4_2_poc_top.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/phy/mig_7series_v4_2_ddr_byte_lane.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/phy/mig_7series_v4_2_ddr_phy_init.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/phy/mig_7series_v4_2_ddr_phy_rdlvl.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/phy/mig_7series_v4_2_poc_tap_base.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/phy/mig_7series_v4_2_ddr_phy_prbs_rdlvl.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/phy/mig_7series_v4_2_ddr_mc_phy_wrapper.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/phy/mig_7series_v4_2_ddr_phy_wrlvl_off_delay.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/phy/mig_7series_v4_2_ddr_if_post_fifo.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/phy/mig_7series_v4_2_ddr_phy_ocd_lim.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/phy/mig_7series_v4_2_ddr_byte_group_io.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/rtl/phy/mig_7series_v4_2_ddr_phy_ocd_cntlr.v utilities_xmdf::xmdfSetData $instance FileSet $fcount type verilog incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/constraints/ddr3_ram_mig_7series_0_0.ucf utilities_xmdf::xmdfSetData $instance FileSet $fcount type ucf utilities_xmdf::xmdfSetData $instance FileSet $fcount associated_module ddr3_ram_mig_7series_0_0 incr fcount utilities_xmdf::xmdfSetData $instance FileSet $fcount relative_path ddr3_ram_mig_7series_0_0/user_design/constraints/ddr3_ram_mig_7series_0_0.xdc utilities_xmdf::xmdfSetData $instance FileSet $fcount type xdc utilities_xmdf::xmdfSetData $instance FileSet $fcount associated_module ddr3_ram_mig_7series_0_0 incr fcount } # ::gen_comp_name_xmdf::xmdfApplyParams
#version 450 layout (constant_id = 0) const int NUM_TEXTURES = 1; layout (constant_id = 1) const int NUM_OBJECTS = 1; layout(binding = 0) uniform UniformBufferObject { mat4 model; mat4 view; mat4 projection; } ubo; layout(binding = 1) uniform ObjectsUniformBufferObject { mat4 model[NUM_OBJECTS]; } objects; layout(location = 0) in vec3 inPosition; layout(location = 1) in vec3 inNormal; layout(location = 2) in vec2 inTexCoord; layout(location = 1) out vec3 fragTexCoord; void main() { float increment = float(NUM_TEXTURES) / NUM_OBJECTS; fragTexCoord = vec3(inTexCoord, gl_InstanceIndex * increment - 0.2f); gl_Position = ubo.projection * ubo.view * ubo.model * objects.model[gl_InstanceIndex] * vec4(inPosition, 1.0); }
INSERT INTO DGB_BINARIES ( BIN_FILE_PATH, BIN_CONTENT) VALUES (?, ?)
Это helper для однаразового перехвата вызова метода module.exports = (object, method, done, checkFunc) -> throw new Error "Invalid argument 'object'" unless typeof object == 'object' && object != null throw new Error "Invalid argument 'method'" unless typeof method == 'string' && method.length > 0 throw new Error "Invalid argument 'done'" unless typeof done == 'function' throw new Error "Invalid argument 'checkFunc'" unless typeof checkFunc == 'function' || typeof checkFunc == 'undefined' throw new Error "Object has no method: #{method}" unless typeof object[method] == 'function' [originalFn, object[method]] = [object[method], -> checkFunc.apply @, arguments if checkFunc originalFn.apply @, arguments object[method] = originalFn done()]
Locales['br'] = { ['trunk_closed'] = 'Este Porta-Malas está fechado.', ['no_veh_nearby'] = 'Não há veículo nas proximidades.', ['trunk_in_use'] = 'Este Porta-Malas está em uso.', ['trunk_weight'] = 'Porta-Malas: g%s / %s kgw', ['trunk_full'] = 'Este Porta-Malas está cheio.', ['invalid_quantity'] = 'Quantidade inválida', ['cant_carry_more'] = 'Você não pode carregar mais.', ['trunk_closed'] = 'Este Porta-Malas está fechado.', ['no_veh_nearby'] = 'Não há veículo nas proximidades.', ['trunk_contents'] = 'Conteúdo do Porta-Malas.', ['quantity'] = 'Quantidade', ['deposit'] = 'Depósito', ['nacho_veh'] = 'Este não é seu veículo.', ['invalid_amount'] = '~r~Quantidade inválido', ['insufficient_space'] = '~r~Espaço insuficiente', ['dirty_money'] = 'Dinheiro Sujo $', ['measurement'] = ' kg', ['return'] = 'Voltar', }
unit BoldComConnection; interface uses ActiveX; const CATID_BoldServer: TGUID = '{E07B7DF1-77D2-11D2-B7E0-00600871B01B}'; const EVENT_DISCONNECT = 0; EVENT_SUBSCRIPTION = 1; function BoldComConnectionTypeLibrary: ITypeLib; // ----------------------------------------------------------------------------- // Type Library // ----------------------------------------------------------------------------- // *********************************************************************// // GUIDS declared in the TypeLibrary. Following prefixes are used: // Type Libraries : LIBID_xxxx // CoClasses : CLASS_xxxx // DISPInterfaces : DIID_xxxx // Non-DISP interfaces: IID_xxxx // *********************************************************************// const // TypeLibrary Major and minor versions BoldComConnectionMajorVersion = 1; BoldComConnectionMinorVersion = 0; LIBID_BoldComConnection: TGUID = '{E07B7DF2-77D2-11D2-B7E0-00600871B01B}'; IID_IBoldClient: TGUID = '{E07B7DF3-77D2-11D2-B7E0-00600871B01B}'; IID_IBoldServer: TGUID = '{E07B7DF4-77D2-11D2-B7E0-00600871B01B}'; IID_IBoldProvider: TGUID = '{E07B7DF5-77D2-11D2-B7E0-00600871B01B}'; type // *********************************************************************// // Forward declaration of types defined in TypeLibrary // *********************************************************************// IBoldClient = interface; IBoldClientDisp = dispinterface; IBoldServer = interface; IBoldServerDisp = dispinterface; IBoldProvider = interface; IBoldProviderDisp = dispinterface; // *********************************************************************// // Interface: IBoldClient // Flags: (4416) Dual OleAutomation Dispatchable // GUID: {E07B7DF3-77D2-11D2-B7E0-00600871B01B} // *********************************************************************// IBoldClient = interface(IDispatch) ['{E07B7DF3-77D2-11D2-B7E0-00600871B01B}'] function OnServerEvent(Event: Integer; Data: OleVariant): OleVariant; safecall; end; // *********************************************************************// // DispIntf: IBoldClientDisp // Flags: (4416) Dual OleAutomation Dispatchable // GUID: {E07B7DF3-77D2-11D2-B7E0-00600871B01B} // *********************************************************************// IBoldClientDisp = dispinterface ['{E07B7DF3-77D2-11D2-B7E0-00600871B01B}'] function OnServerEvent(Event: Integer; Data: OleVariant): OleVariant; dispid 1; end; // *********************************************************************// // Interface: IBoldServer // Flags: (4416) Dual OleAutomation Dispatchable // GUID: {E07B7DF4-77D2-11D2-B7E0-00600871B01B} // *********************************************************************// IBoldServer = interface(IDispatch) ['{E07B7DF4-77D2-11D2-B7E0-00600871B01B}'] function Connect(const ClientId: WideString; Flags: Integer; const Client: IBoldClient): WordBool; safecall; function Disconnect: WordBool; safecall; function Execute(const Name: WideString; Params: OleVariant): OleVariant; safecall; end; // *********************************************************************// // DispIntf: IBoldServerDisp // Flags: (4416) Dual OleAutomation Dispatchable // GUID: {E07B7DF4-77D2-11D2-B7E0-00600871B01B} // *********************************************************************// IBoldServerDisp = dispinterface ['{E07B7DF4-77D2-11D2-B7E0-00600871B01B}'] function Connect(const ClientId: WideString; Flags: Integer; const Client: IBoldClient): WordBool; dispid 1; function Disconnect: WordBool; dispid 2; function Execute(const Name: WideString; Params: OleVariant): OleVariant; dispid 3; end; // *********************************************************************// // Interface: IBoldProvider // Flags: (4416) Dual OleAutomation Dispatchable // GUID: {E07B7DF5-77D2-11D2-B7E0-00600871B01B} // *********************************************************************// IBoldProvider = interface(IDispatch) ['{E07B7DF5-77D2-11D2-B7E0-00600871B01B}'] function CreateObject(const ClassName: WideString): IUnknown; safecall; function GetObject(const ObjectName: WideString): IUnknown; safecall; function Get_ObjectInfo: OleVariant; safecall; property ObjectInfo: OleVariant read Get_ObjectInfo; end; // *********************************************************************// // DispIntf: IBoldProviderDisp // Flags: (4416) Dual OleAutomation Dispatchable // GUID: {E07B7DF5-77D2-11D2-B7E0-00600871B01B} // *********************************************************************// IBoldProviderDisp = dispinterface ['{E07B7DF5-77D2-11D2-B7E0-00600871B01B}'] function CreateObject(const ClassName: WideString): IUnknown; dispid 1; function GetObject(const ObjectName: WideString): IUnknown; dispid 2; property ObjectInfo: OleVariant readonly dispid 3; end; // ----------------------------------------------------------------------------- // Type Library End // ----------------------------------------------------------------------------- implementation uses SysUtils, BoldComConst, BoldComUtils; var G_TypeLibrary: ITypeLib = nil; function BoldComConnectionTypeLibrary: ITypeLib; begin if not Assigned(G_TypeLibrary) then begin if LoadRegTypeLib(LIBID_BoldComConnection,1,0,0,G_TypeLibrary) <> 0 then raise EBoldCom.Create(sUnableToLoadTypeLib); end; Result := G_TypeLibrary; end; end.
# VeloPayments::CurrenciesApi All URIs are relative to *https://api.sandbox.velopayments.com* | Method | HTTP request | Description | | ------ | ------------ | ----------- | | [**list_supported_currencies_v2**](CurrenciesApi.md#list_supported_currencies_v2) | **GET** /v2/currencies | List Supported Currencies | ## list_supported_currencies_v2 > <SupportedCurrencyResponseV2> list_supported_currencies_v2 List Supported Currencies List the supported currencies. ### Examples ```ruby require 'time' require 'velopayments' api_instance = VeloPayments::CurrenciesApi.new begin # List Supported Currencies result = api_instance.list_supported_currencies_v2 p result rescue VeloPayments::ApiError => e puts "Error when calling CurrenciesApi->list_supported_currencies_v2: #{e}" end ``` #### Using the list_supported_currencies_v2_with_http_info variant This returns an Array which contains the response data, status code and headers. > <Array(<SupportedCurrencyResponseV2>, Integer, Hash)> list_supported_currencies_v2_with_http_info ```ruby begin # List Supported Currencies data, status_code, headers = api_instance.list_supported_currencies_v2_with_http_info p status_code # => 2xx p headers # => { ... } p data # => <SupportedCurrencyResponseV2> rescue VeloPayments::ApiError => e puts "Error when calling CurrenciesApi->list_supported_currencies_v2_with_http_info: #{e}" end ``` ### Parameters This endpoint does not need any parameter. ### Return type [**SupportedCurrencyResponseV2**](SupportedCurrencyResponseV2.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json
open main pred idLshfhcsLwFFv5ZTLC_prop10 { always all p:Protected | p in Protected implies after always p in Protected } pred __repair { idLshfhcsLwFFv5ZTLC_prop10 } check __repair { idLshfhcsLwFFv5ZTLC_prop10 <=> prop10o }
open main pred id38jKjLqcagf7N4PGM_prop4 { all tk : Track | lone pos.tk :> Train } pred __repair { id38jKjLqcagf7N4PGM_prop4 } check __repair { id38jKjLqcagf7N4PGM_prop4 <=> prop4o }
defmodule IcdCode.ICDCode.Codes_R00 do alias IcdCode.ICDCode def _R000 do %ICDCode{full_code: "R000", category_code: "R00", short_code: "0", full_name: "Tachycardia, unspecified", short_name: "Tachycardia, unspecified", category_name: "Tachycardia, unspecified" } end def _R001 do %ICDCode{full_code: "R001", category_code: "R00", short_code: "1", full_name: "Bradycardia, unspecified", short_name: "Bradycardia, unspecified", category_name: "Bradycardia, unspecified" } end def _R002 do %ICDCode{full_code: "R002", category_code: "R00", short_code: "2", full_name: "Palpitations", short_name: "Palpitations", category_name: "Palpitations" } end def _R008 do %ICDCode{full_code: "R008", category_code: "R00", short_code: "8", full_name: "Other abnormalities of heart beat", short_name: "Other abnormalities of heart beat", category_name: "Other abnormalities of heart beat" } end def _R009 do %ICDCode{full_code: "R009", category_code: "R00", short_code: "9", full_name: "Unspecified abnormalities of heart beat", short_name: "Unspecified abnormalities of heart beat", category_name: "Unspecified abnormalities of heart beat" } end end
function New-ApiResponse { [CmdletBinding()] Param ( [Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)] [System.Nullable[Int32]] ${code}, [Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)] [String] ${type}, [Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)] [String] ${message} ) Process { 'Creating object: Org.OpenAPITools.Model.ApiResponse' | Write-Verbose $PSBoundParameters | Out-DebugParameter | Write-Debug New-Object -TypeName Org.OpenAPITools.Model.ApiResponse -ArgumentList @( ${code}, ${type}, ${message} ) } }
(* Name: GenericXMLRenderer Copyright: Copyright (C) SIL International. Documentation: Description: Create Date: 5 Dec 2006 Modified Date: 5 Dec 2006 Authors: mcdurdin Related Files: Dependencies: Bugs: Todo: Notes: History: 05 Dec 2006 - mcdurdin - Initial version *) unit GenericXMLRenderer; interface uses XMLRenderer, Windows; type TGenericXMLRenderer = class(TXMLRenderer) private FXML: WideString; protected function XMLData(FRefreshKeyman: Boolean): WideString; override; public constructor Create(AOwner: TXMLRenderers; const AXML: WideString = ''); end; implementation { TGenericXMLRenderer } constructor TGenericXMLRenderer.Create(AOwner: TXMLRenderers; const AXML: WideString); begin inherited Create(AOwner); FXML := AXML; end; function TGenericXMLRenderer.XMLData(FRefreshKeyman: Boolean): WideString; begin Result := FXML; end; end.
' System.Web.Services.Discovery.ContractReference ' The following example demonstrates the 'ContractReference' class . ' A new instance of 'ContractReference' class is obtained. The ' Contract reference object is added to the list of references ' contained within the discovery document and a '.disco' file is ' generated for the Webservice where the reference tags of ' ContractReference are reflected. ' <Snippet1> Imports System Imports System.Xml Imports System.IO Imports System.Web.Services.Discovery Public Class MyContractReference Shared Sub Main() Try ' Get a 'DiscoveryDocument' object. Dim myDiscoveryDocument As New DiscoveryDocument() ' Get a 'ContractReference' object. Dim myContractReference As New ContractReference() ' Set the URL to the referenced service description. myContractReference.Ref = "http://localhost/service1.asmx?wsdl" ' Set the URL for a XML Web service implementing the service ' description . myContractReference.DocRef = "http://localhost/service1.asmx" Dim myBinding As New SoapBinding() myBinding.Binding = New XmlQualifiedName("q1:Service1Soap") myBinding.Address = "http://localhost/service1.asmx" ' Add 'myContractReference' to the list of references contained ' within the discovery document. myDiscoveryDocument.References.Add(myContractReference) ' Add 'Binding' to referenceCollection. myDiscoveryDocument.References.Add(myBinding) ' Open or create a file for writing . Dim myFileStream As New FileStream("Service1.disco", FileMode.OpenOrCreate, FileAccess.Write) Dim myStreamWriter As New StreamWriter(myFileStream) ' Write 'myDiscoveryDocument' into the passed stream. myDiscoveryDocument.Write(myStreamWriter) Console.WriteLine("The 'Service1.disco' is generated.") Catch e As Exception Console.WriteLine("Error is" + e.Message) End Try End Sub 'Main End Class 'MyContractReference ' </Snippet1>
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.alibaba.rocketmq.common.protocol.header; import com.alibaba.rocketmq.remoting.CommandCustomHeader; import com.alibaba.rocketmq.remoting.annotation.CFNotNull; import com.alibaba.rocketmq.remoting.exception.RemotingCommandException; /** * @author manhong.yqd * */ public class GetTopicsByClusterRequestHeader implements CommandCustomHeader { @CFNotNull private String cluster; @Override public void checkFields() throws RemotingCommandException { } public String getCluster() { return cluster; } public void setCluster(String cluster) { this.cluster = cluster; } }
package com.netnovelreader.db import org.jetbrains.exposed.dao.EntityID import org.jetbrains.exposed.dao.IntEntity import org.jetbrains.exposed.dao.IntEntityClass class SitePreference(id: EntityID<Int>) : IntEntity(id) { companion object : IntEntityClass<SitePreference>(SitePreferences) var hostname by SitePreferences.hostname var catalog_selector by SitePreferences.catalog_selector var chapter_selector by SitePreferences.chapter_selector var catalog_filter by SitePreferences.catalog_filter var chapter_filter by SitePreferences.chapter_filter var search_url by SitePreferences.search_url var redirect_fileld by SitePreferences.redirect_fileld var redirect_url by SitePreferences.redirect_url var no_redirect_url by SitePreferences.no_redirect_url var redirect_name by SitePreferences.redirect_name var no_redirect_name by SitePreferences.no_redirect_name var redirect_image by SitePreferences.redirect_image var no_redirect_image by SitePreferences.no_redirect_image var charset by SitePreferences.charset }
module Make_via_parser (Parser : Transept.Specs.PARSER with type e = Lambe_lexer.Lexeme.t) (Kind : Entry.API with type t = Lambe_ast.Kind.t and type 'a p = 'a Parser.t) (Type : Entry.API with type t = Lambe_ast.Type.t and type 'a p = 'a Parser.t) (Term : Entry.API with type t = Lambe_ast.Term.t and type 'a p = 'a Parser.t) (Comment : Entry.API with type t = string and type 'a p = 'a Parser.t) = struct type t = Lambe_ast.Entity.t list type 'a p = 'a Parser.t open Lambe_lexer.Lexer.Token (Parser) open Parser open Lambe_ast.Entity (* open Lambe_ast.Entities *) let keywords = [ "kind" ; "type" ; "data" ; "sig" ; "def" ; "trait" ; "impl" ; "for" ; "with" ; "forall" ; "exists" ; "rec" ; "(" ; ")" ; "{" ; "}" ; "=" ; ":" ; ";" ; "|" ; "." ] let kind_name = ident <|> (kwd "(" &> (operator <|> kwd "->") <& kwd ")") let operator = operator <|> (do_try (kwd "(" &> kwd ")") <$> (fun _ -> "()")) let sig_name = ident <|> (kwd "(" &> (operator <|> kwd "=" <|> kwd "--") <& kwd ")") let type_param = kwd "(" &> (ident <|> kwd "_") <& kwd ":" <&> Kind.main <& kwd ")" <|> (ident <|> kwd "_" <$> (fun n -> n, Lambe_ast.Kind.Type)) let data_attributes = let data = ident <& kwd ":" <&> Type.main in to_list (data <&> optrep (kwd ";" &> data)) <|> return [] let data_entity = kwd "data" &> sig_name <&> optrep type_param <&> ( opt (kwd "{" &> data_attributes <& kwd "}") <$> (function None -> [] | Some l -> l) ) <$> (function (n, p), t -> Data (n, p, t)) let type_entity = kwd "type" &> sig_name <&> optrep type_param <& kwd "=" <&> to_list (Type.main <&> optrep (kwd "|" &> Type.main)) <$> function | (n, p), [ t ] -> Type (n, p, t) | (n, p), l -> Enum (n, p, l) let kind_entity = kwd "kind" &> kind_name <& kwd "=" <&> Kind.main <$> (function n, t -> Kind (n, t)) let for_directive = opt (kwd "for" &> Type.main) let with_directive = optrep (kwd "with" &> Type.main) let sig_entity = kwd "sig" &> sig_name <& kwd ":" <&> Type.main <&> for_directive <&> with_directive <$> (function ((n, t), f), w -> Sig (n, t, f, w)) let def_entity = kwd "def" &> sig_name <&> optrep (ident <|> kwd "_") <& kwd "=" <&> Term.main <$> function | (n, l), t -> Def (n, List.fold_right (fun e a -> Lambe_ast.Term.Abstraction (e, a)) l t) let comment = Comment.main <$> (fun s -> Comment s) let rec trait_entity () = kwd "trait" &> sig_name <&> optrep type_param <&> for_directive <&> with_directive <&> ( opt (kwd "{" &> optrep (do_lazy entity) <& kwd "}") <$> (function None -> [] | Some l -> l) ) <$> (function (((n, p), f), w), e -> Trait (n, p, f, w, e)) and impl_entity () = kwd "impl" &> ( opt (kwd "forall" &> optrep type_param <& kwd ".") <$> (function None -> [] | Some l -> l) ) <&> Type.main <&> for_directive <&> with_directive <&> ( opt (kwd "{" &> optrep (do_lazy entity) <& kwd "}") <$> (function None -> [] | Some l -> l) ) <$> (function (((p, t), f), w), e -> Impl (p, t, f, w, e)) and entity () = data_entity <|> type_entity <|> kind_entity <|> sig_entity <|> def_entity <|> comment <|> do_lazy trait_entity <|> do_lazy impl_entity let main = optrep (entity ()) end
package typingsSlinky.carbonIconsReact.components import org.scalajs.dom.raw.SVGSVGElement import typingsSlinky.carbonIconsReact.mod.CarbonIconProps import typingsSlinky.react.mod.RefAttributes import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} object TextFootnote16 { @JSImport("@carbon/icons-react", "TextFootnote16") @js.native val component: js.Object = js.native implicit def make(companion: TextFootnote16.type): SharedBuilder_CarbonIconPropsRefAttributes1348591536[SVGSVGElement] = new SharedBuilder_CarbonIconPropsRefAttributes1348591536[SVGSVGElement](js.Array(this.component, js.Dictionary.empty))() def withProps(p: CarbonIconProps with RefAttributes[SVGSVGElement]): SharedBuilder_CarbonIconPropsRefAttributes1348591536[SVGSVGElement] = new SharedBuilder_CarbonIconPropsRefAttributes1348591536[SVGSVGElement](js.Array(this.component, p.asInstanceOf[js.Any])) }
#[repr(simd)] //~ ERROR are experimental struct Weapon { name: String, damage: u32 } fn main() {}
package top; // Importing Frontend modules import fetch_decode::*; import dependency_resolver::*; // Importing compute modules import ws_array::*; import ws_pe::*; import compute_top::*; // Importing TensorALU modules import tensor_alu::*; // Importing Load / Store module import load_module::*; import store_module::*; // Importing buffers module import onchip_buffers::*; import isa::*; `include "top.defines" (*synthesize*) module mkfetch_decode_test(Ifc_fetch_decode#(`ADDR_WIDTH, `DATA_WIDTH)); let ifc(); mkfetch_decode inst1(ifc); return(ifc); endmodule (*synthesize*) module mkdependency_resolver_test(Ifc_dependency_resolver#(`IF_INDEX, `OF_INDEX, `WT_INDEX, `LD_PAD, `ST_PAD, `CP_PAD, `ALU_PAD)); let ifc(); mkdependency_resolver inst1(ifc); return(ifc); endmodule (*synthesize*) module mkws_array_test(Ifc_ws_array#(`NROW,`NCOL,`IN_WIDTH,`OUT_WIDTH)); let ifc(); mk_ws_array inst(ifc); return (ifc); endmodule (*synthesize*) module mkmac_test(Ifc_ws_pe#(`IN_WIDTH, `OUT_WIDTH)); Ifc_ws_pe#(`IN_WIDTH, `OUT_WIDTH) inst1 <- mk_ws_pe(0, 0, 0); return (inst1); endmodule (*synthesize*) module mkgemm_test(Ifc_compute_module#(`DRAM_ADDR_WIDTH,`SRAM_ADDR_WIDTH,`IN_WIDTH,`OUT_WIDTH,`NROW,`NCOL,`IF_INDEX,`WT_INDEX,`OF_INDEX,`CP_PAD)); let ifc(); mkgemm inst1(ifc); return (ifc); endmodule (*synthesize*) module mktensor_alu_test(Ifc_tensor_alu#(`ALU_WIDTH,`NCOL,`OF_INDEX,`ALU_PAD)); let ifc(); mk_tensor_alu inst1(ifc); return (ifc); endmodule (*synthesize*) module mkload_test(Ifc_load_Module#(`ADDR_WIDTH, `DATA_WIDTH, `SRAM_ADDR_WIDTH, `WT_INDEX, `WT_BANK, `WT_DATA, `IF_INDEX, `IF_BANK, `IF_DATA, `OF_INDEX, `OF_BANK, `OF_DATA, `MAX_INDEX, `MAX_BANK, `MAX_DATA, `MAX_WORDS)); let ifc(); mk_load_Module inst1(ifc); return (ifc); endmodule (*synthesize*) module mkstore_test(Ifc_col2im#(`ADDR_WIDTH, `DATA_WIDTH, `SRAM_ADDR_WIDTH, `OF_INDEX, `OF_BANK, `OF_DATA, `OF_VALUES, `ST_PAD)); let ifc(); mkcol2im inst1(ifc); return (ifc); endmodule (*synthesize*) module mkonchip_test(Ifc_onchip_buffers#(`SRAM_ADDR_WIDTH, `IF_INDEX, `IF_BANK, `IF_ENTRIES, `WT_INDEX, `WT_BANK, `WT_ENTRIES, `OF_INDEX, `OF_BANK, `OUT_ENTRIES, `IN_WIDTH, `OUT_WIDTH)); let ifc(); mkbuffers inst1(ifc); return (ifc); endmodule //(*synthesize*) //module mktop_tb(Ifc_accelerator#(32, 26, 128, 32768, 16, 32768, 16, 32768, 16, 16, 32, 16, 16)); // let ifc(); // mk_accelerator inst1(ifc); // return (ifc); //endmodule endpackage
// Adding a comment to the syntax will become the first // comment in the output source file. syntax = "proto3"; import "google/protobuf/struct.proto"; package simple; message SimpleStruct { google.protobuf.Struct simple_struct = 1; }
\lineskip 1pt \normallineskip 1pt \def\baselinestretch{1} \def\@normalsize{\@setsize\normalsize{12pt}\xpt\@xpt \abovedisplayskip 10pt plus2pt minus5pt \belowdisplayskip \abovedisplayskip \abovedisplayshortskip \z@ plus3pt \belowdisplayshortskip 6pt plus3pt minus3pt} \def\small{\@setsize\small{11pt}\ixpt\@ixpt \abovedisplayskip 8.5pt plus 3pt minus 4pt \belowdisplayskip \abovedisplayskip \abovedisplayshortskip \z@ plus2pt \belowdisplayshortskip 4pt plus2pt minus 2pt \def\@listi{\topsep 4pt plus 2pt minus 2pt\parsep 0pt plus 1pt \itemsep \parsep}} \def\footnotesize{\@setsize\footnotesize{9.5pt}\viiipt\@viiipt \abovedisplayskip 6pt plus 2pt minus 4pt \belowdisplayskip \abovedisplayskip \abovedisplayshortskip \z@ plus 1pt \belowdisplayshortskip 3pt plus 1pt minus 2pt \def\@listi{\topsep 3pt plus 1pt minus 1pt\parsep 0pt plus 1pt \itemsep \parsep}} \def\scriptsize{\@setsize\scriptsize{8pt}\viipt\@viipt} \def\tiny{\@setsize\tiny{6pt}\vpt\@vpt} \def\large{\@setsize\large{14pt}\xiipt\@xiipt} \def\Large{\@setsize\Large{18pt}\xivpt\@xivpt} \def\LARGE{\@setsize\LARGE{22pt}\xviipt\@xviipt} \def\huge{\@setsize\huge{25pt}\xxpt\@xxpt} \def\Huge{\@setsize\Huge{30pt}\xxvpt\@xxvpt} \normalsize \oddsidemargin 0\p@ \evensidemargin 0\p@ \marginparwidth .75in \marginparsep 7\p@ \topmargin .75in \headheight 12\p@ \headsep .25in \footheight 12\p@ \footskip.35in \textheight 49pc \textwidth 31pc \indentedwidth 26pc \columnsep 10\p@ \columnseprule 0\p@ \mathindent = 5pc \footnotesep 6.65\p@ \skip\footins 9\p@ plus 4\p@ minus 2\p@ \floatsep 12\p@ plus 2\p@ minus 2\p@ \textfloatsep 18\p@ plus 2\p@ minus 4\p@ \intextsep 12\p@ plus 2\p@ minus 2\p@ \@maxsep 20\p@ \dblfloatsep 12\p@ plus 2\p@ minus 2\p@ \dbltextfloatsep 18\p@ plus 2\p@ minus 4\p@ \@dblmaxsep 20\p@ \@fptop 0\p@ \@fpsep 8\p@ plus 1fil \@fpbot 0\p@ plus 1fil \@dblfptop 0\p@ \@dblfpsep 8\p@ plus 1fil \@dblfpbot 0\p@ \marginparpush 5\p@ \parskip 0\p@ \parindent 16\p@ \topsep 4\p@ plus 2\p@ minus 2\p@ \partopsep 2\p@ plus 1\p@ minus 1\p@ \itemsep 0\p@ plus 2\p@ \@lowpenalty 51 \@medpenalty 151 \@highpenalty 301 \@beginparpenalty -\@lowpenalty \@endparpenalty -\@lowpenalty \@itempenalty -\@lowpenalty \@noskipsecfalse % new version % \def\section{\@startsection{section}{1}{\z@}{-3.5ex plus -1ex minus -.2ex}{2.3ex plus .2ex}{\noindent\reset@font\normalsize\bf\raggedright}} \def\subsection{\@startsection{subsection}{2}{\z@}{-3.25ex plus -1ex minus -.2ex}{1.5ex plus .2ex}{\noindent\reset@font \normalsize\it\raggedright\nohyphens}} \def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-3.25ex plus -1ex minus -.2ex}{-1em}{\reset@font\normalsize\it\nohyphens}} \def\paragraph{\@startsection {paragraph}{4}{\z@}{3.25ex plus 1ex minus .2ex}{-1em}{\reset@font\normalsize\it}} \def\subparagraph{\@startsection {subparagraph}{4}{\parindent}{3.25ex plus 1ex minus .2ex}{-1em}{\reset@font\normalsize\it}} \def\@sect#1#2#3#4#5#6[#7]#8{\ifnum #2>\c@secnumdepth \let\@svsec\@empty\else \refstepcounter{#1}\edef\@svsec{\csname the#1\endcsname.\hskip 1em}\fi \@tempskipa #5\relax \ifdim \@tempskipa>\z@ \begingroup #6\relax \noindent{\hskip #3\relax\@svsec}{\interlinepenalty \@M #8\par}% \endgroup \csname #1mark\endcsname{#7}\addcontentsline {toc}{#1}{\ifnum #2>\c@secnumdepth \else \protect\numberline{\csname the#1\endcsname}\fi #7}\else \def\@svsechd{#6\hskip #3\relax %% \relax added 2 May 90 \@svsec #8\csname #1mark\endcsname {#7}\addcontentsline {toc}{#1}{\ifnum #2>\c@secnumdepth \else \protect\numberline{\csname the#1\endcsname}\fi #7}}\fi \@xsect{#5}} % \def\@ssect#1#2#3#4#5{\@tempskipa #3\relax \ifdim \@tempskipa>\z@ \begingroup #4\noindent{\hskip #1}{\interlinepenalty \@M #5\par}\endgroup \else \def\@svsechd{#4\hskip #1\relax #5}\fi \@xsect{#3}} \setcounter{secnumdepth}{3} \def\appendix{\@@par \setcounter{section}{0} \setcounter{subsection}{0} \setcounter{subsubsection}{0} \setcounter{equation}{0} \setcounter{figure}{0} \setcounter{table}{0} \def\thesection{Appendix \Alph{section}} \def\theequation{\ifnumbysec \Alph{section}.\arabic{equation}\else \Alph{section}\arabic{equation}\fi} \def\thetable{\ifnumbysec \Alph{section}\arabic{table}\else A\arabic{table}\fi} \def\thefigure{\ifnumbysec \Alph{section}\arabic{figure}\else A\arabic{figure}\fi}} \labelsep 4\p@ \leftmargini 20\p@ \leftmarginii 18\p@ \leftmarginiii 16\p@ \leftmarginiv 14\p@ \leftmarginv 10\p@ \leftmarginvi 10\p@ \leftmargin\leftmargini \labelwidth\leftmargini\advance\labelwidth-\labelsep \parsep 0\p@ plus 1\p@ \def\@listI{\leftmargin\leftmargini \parsep 4\p@ plus2\p@ minus\p@ \topsep 8\p@ plus2\p@ minus4\p@ \itemsep 4\p@ plus2\p@ minus\p@} \let\@listi\@listI \@listi \def\@listii{\leftmargin\leftmarginii \labelwidth\leftmarginii\advance\labelwidth-\labelsep \topsep 3\p@ plus 1\p@ minus 1\p@ \parsep 0\p@ plus 1\p@ \itemsep \parsep} \def\@listiii{\leftmargin\leftmarginiii \labelwidth\leftmarginiii\advance\labelwidth-\labelsep \topsep 2\p@ plus 1\p@ minus 1\p@ \parsep \z@ \partopsep 1\p@ plus 0\p@ minus 1\p@ \itemsep \topsep} \def\@listiv{\leftmargin\leftmarginiv \labelwidth\leftmarginiv\advance\labelwidth-\labelsep} \def\@listv{\leftmargin\leftmarginv \labelwidth\leftmarginv\advance\labelwidth-\labelsep} \def\@listvi{\leftmargin\leftmarginvi \labelwidth\leftmarginvi\advance\labelwidth-\labelsep}
package nghttp2 import ( "bytes" "crypto/tls" "encoding/json" "fmt" "golang.org/x/net/http2" "golang.org/x/net/http2/hpack" "io" "io/ioutil" "net/http" "regexp" "strings" "syscall" "testing" "time" ) // TestH2H1PlainGET tests whether simple HTTP/2 GET request works. func TestH2H1PlainGET(t *testing.T) { st := newServerTester(nil, t, noopHandler) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1PlainGET", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } want := 200 if res.status != want { t.Errorf("status = %v; want %v", res.status, want) } } // TestH2H1AddXfp tests that server appends :scheme to the existing // x-forwarded-proto header field. func TestH2H1AddXfp(t *testing.T) { st := newServerTester([]string{"--no-strip-incoming-x-forwarded-proto"}, t, func(w http.ResponseWriter, r *http.Request) { xfp := r.Header.Get("X-Forwarded-Proto") if got, want := xfp, "foo, http"; got != want { t.Errorf("X-Forwarded-Proto = %q; want %q", got, want) } }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1AddXfp", header: []hpack.HeaderField{ pair("x-forwarded-proto", "foo"), }, }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("status = %v; want %v", got, want) } } // TestH2H1NoAddXfp tests that server does not append :scheme to the // existing x-forwarded-proto header field. func TestH2H1NoAddXfp(t *testing.T) { st := newServerTester([]string{"--no-add-x-forwarded-proto", "--no-strip-incoming-x-forwarded-proto"}, t, func(w http.ResponseWriter, r *http.Request) { xfp := r.Header.Get("X-Forwarded-Proto") if got, want := xfp, "foo"; got != want { t.Errorf("X-Forwarded-Proto = %q; want %q", got, want) } }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1NoAddXfp", header: []hpack.HeaderField{ pair("x-forwarded-proto", "foo"), }, }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("status = %v; want %v", got, want) } } // TestH2H1StripXfp tests that server strips incoming // x-forwarded-proto header field. func TestH2H1StripXfp(t *testing.T) { st := newServerTester(nil, t, func(w http.ResponseWriter, r *http.Request) { xfp := r.Header.Get("X-Forwarded-Proto") if got, want := xfp, "http"; got != want { t.Errorf("X-Forwarded-Proto = %q; want %q", got, want) } }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1StripXfp", header: []hpack.HeaderField{ pair("x-forwarded-proto", "foo"), }, }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("status = %v; want %v", got, want) } } // TestH2H1StripNoAddXfp tests that server strips incoming // x-forwarded-proto header field, and does not add another. func TestH2H1StripNoAddXfp(t *testing.T) { st := newServerTester([]string{"--no-add-x-forwarded-proto"}, t, func(w http.ResponseWriter, r *http.Request) { if got, found := r.Header["X-Forwarded-Proto"]; found { t.Errorf("X-Forwarded-Proto = %q; want nothing", got) } }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1StripNoAddXfp", header: []hpack.HeaderField{ pair("x-forwarded-proto", "foo"), }, }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("status = %v; want %v", got, want) } } // TestH2H1AddXff tests that server generates X-Forwarded-For header // field when forwarding request to backend. func TestH2H1AddXff(t *testing.T) { st := newServerTester([]string{"--add-x-forwarded-for"}, t, func(w http.ResponseWriter, r *http.Request) { xff := r.Header.Get("X-Forwarded-For") want := "127.0.0.1" if xff != want { t.Errorf("X-Forwarded-For = %v; want %v", xff, want) } }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1AddXff", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("status = %v; want %v", got, want) } } // TestH2H1AddXff2 tests that server appends X-Forwarded-For header // field to existing one when forwarding request to backend. func TestH2H1AddXff2(t *testing.T) { st := newServerTester([]string{"--add-x-forwarded-for"}, t, func(w http.ResponseWriter, r *http.Request) { xff := r.Header.Get("X-Forwarded-For") want := "host, 127.0.0.1" if xff != want { t.Errorf("X-Forwarded-For = %v; want %v", xff, want) } }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1AddXff2", header: []hpack.HeaderField{ pair("x-forwarded-for", "host"), }, }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("status = %v; want %v", got, want) } } // TestH2H1StripXff tests that --strip-incoming-x-forwarded-for // option. func TestH2H1StripXff(t *testing.T) { st := newServerTester([]string{"--strip-incoming-x-forwarded-for"}, t, func(w http.ResponseWriter, r *http.Request) { if xff, found := r.Header["X-Forwarded-For"]; found { t.Errorf("X-Forwarded-For = %v; want nothing", xff) } }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1StripXff", header: []hpack.HeaderField{ pair("x-forwarded-for", "host"), }, }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("status = %v; want %v", got, want) } } // TestH2H1StripAddXff tests that --strip-incoming-x-forwarded-for and // --add-x-forwarded-for options. func TestH2H1StripAddXff(t *testing.T) { args := []string{ "--strip-incoming-x-forwarded-for", "--add-x-forwarded-for", } st := newServerTester(args, t, func(w http.ResponseWriter, r *http.Request) { xff := r.Header.Get("X-Forwarded-For") want := "127.0.0.1" if xff != want { t.Errorf("X-Forwarded-For = %v; want %v", xff, want) } }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1StripAddXff", header: []hpack.HeaderField{ pair("x-forwarded-for", "host"), }, }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("status = %v; want %v", got, want) } } // TestH2H1AddForwardedObfuscated tests that server generates // Forwarded header field with obfuscated "by" and "for" parameters. func TestH2H1AddForwardedObfuscated(t *testing.T) { st := newServerTester([]string{"--add-forwarded=by,for,host,proto"}, t, func(w http.ResponseWriter, r *http.Request) { pattern := fmt.Sprintf(`by=_[^;]+;for=_[^;]+;host="127\.0\.0\.1:%v";proto=http`, serverPort) validFwd := regexp.MustCompile(pattern) got := r.Header.Get("Forwarded") if !validFwd.MatchString(got) { t.Errorf("Forwarded = %v; want pattern %v", got, pattern) } }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1AddForwardedObfuscated", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("status: %v; want %v", got, want) } } // TestH2H1AddForwardedByIP tests that server generates Forwarded header // field with IP address in "by" parameter. func TestH2H1AddForwardedByIP(t *testing.T) { st := newServerTester([]string{"--add-forwarded=by,for", "--forwarded-by=ip"}, t, func(w http.ResponseWriter, r *http.Request) { pattern := fmt.Sprintf(`by="127\.0\.0\.1:%v";for=_[^;]+`, serverPort) validFwd := regexp.MustCompile(pattern) if got := r.Header.Get("Forwarded"); !validFwd.MatchString(got) { t.Errorf("Forwarded = %v; want pattern %v", got, pattern) } }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1AddForwardedByIP", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("status: %v; want %v", got, want) } } // TestH2H1AddForwardedForIP tests that server generates Forwarded header // field with IP address in "for" parameters. func TestH2H1AddForwardedForIP(t *testing.T) { st := newServerTester([]string{"--add-forwarded=by,for,host,proto", "--forwarded-by=_alpha", "--forwarded-for=ip"}, t, func(w http.ResponseWriter, r *http.Request) { want := fmt.Sprintf(`by=_alpha;for=127.0.0.1;host="127.0.0.1:%v";proto=http`, serverPort) if got := r.Header.Get("Forwarded"); got != want { t.Errorf("Forwarded = %v; want %v", got, want) } }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1AddForwardedForIP", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("status: %v; want %v", got, want) } } // TestH2H1AddForwardedMerge tests that server generates Forwarded // header field with IP address in "by" and "for" parameters. The // generated values must be appended to the existing value. func TestH2H1AddForwardedMerge(t *testing.T) { st := newServerTester([]string{"--add-forwarded=proto"}, t, func(w http.ResponseWriter, r *http.Request) { if got, want := r.Header.Get("Forwarded"), `host=foo, proto=http`; got != want { t.Errorf("Forwarded = %v; want %v", got, want) } }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1AddForwardedMerge", header: []hpack.HeaderField{ pair("forwarded", "host=foo"), }, }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("status: %v; want %v", got, want) } } // TestH2H1AddForwardedStrip tests that server generates Forwarded // header field with IP address in "by" and "for" parameters. The // generated values must not include the existing value. func TestH2H1AddForwardedStrip(t *testing.T) { st := newServerTester([]string{"--strip-incoming-forwarded", "--add-forwarded=proto"}, t, func(w http.ResponseWriter, r *http.Request) { if got, want := r.Header.Get("Forwarded"), `proto=http`; got != want { t.Errorf("Forwarded = %v; want %v", got, want) } }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1AddForwardedStrip", header: []hpack.HeaderField{ pair("forwarded", "host=foo"), }, }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("status: %v; want %v", got, want) } } // TestH2H1StripForwarded tests that server strips incoming Forwarded // header field. func TestH2H1StripForwarded(t *testing.T) { st := newServerTester([]string{"--strip-incoming-forwarded"}, t, func(w http.ResponseWriter, r *http.Request) { if got, found := r.Header["Forwarded"]; found { t.Errorf("Forwarded = %v; want nothing", got) } }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1StripForwarded", header: []hpack.HeaderField{ pair("forwarded", "host=foo"), }, }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("status: %v; want %v", got, want) } } // TestH2H1AddForwardedStatic tests that server generates Forwarded // header field with the given static obfuscated string for "by" // parameter. func TestH2H1AddForwardedStatic(t *testing.T) { st := newServerTester([]string{"--add-forwarded=by,for", "--forwarded-by=_alpha"}, t, func(w http.ResponseWriter, r *http.Request) { pattern := `by=_alpha;for=_[^;]+` validFwd := regexp.MustCompile(pattern) if got := r.Header.Get("Forwarded"); !validFwd.MatchString(got) { t.Errorf("Forwarded = %v; want pattern %v", got, pattern) } }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1AddForwardedStatic", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("status: %v; want %v", got, want) } } // TestH2H1GenerateVia tests that server generates Via header field to and // from backend server. func TestH2H1GenerateVia(t *testing.T) { st := newServerTester(nil, t, func(w http.ResponseWriter, r *http.Request) { if got, want := r.Header.Get("Via"), "2 nghttpx"; got != want { t.Errorf("Via: %v; want %v", got, want) } }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1GenerateVia", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.header.Get("Via"), "1.1 nghttpx"; got != want { t.Errorf("Via: %v; want %v", got, want) } } // TestH2H1AppendVia tests that server adds value to existing Via // header field to and from backend server. func TestH2H1AppendVia(t *testing.T) { st := newServerTester(nil, t, func(w http.ResponseWriter, r *http.Request) { if got, want := r.Header.Get("Via"), "foo, 2 nghttpx"; got != want { t.Errorf("Via: %v; want %v", got, want) } w.Header().Add("Via", "bar") }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1AppendVia", header: []hpack.HeaderField{ pair("via", "foo"), }, }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.header.Get("Via"), "bar, 1.1 nghttpx"; got != want { t.Errorf("Via: %v; want %v", got, want) } } // TestH2H1NoVia tests that server does not add value to existing Via // header field to and from backend server. func TestH2H1NoVia(t *testing.T) { st := newServerTester([]string{"--no-via"}, t, func(w http.ResponseWriter, r *http.Request) { if got, want := r.Header.Get("Via"), "foo"; got != want { t.Errorf("Via: %v; want %v", got, want) } w.Header().Add("Via", "bar") }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1NoVia", header: []hpack.HeaderField{ pair("via", "foo"), }, }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.header.Get("Via"), "bar"; got != want { t.Errorf("Via: %v; want %v", got, want) } } // TestH2H1HostRewrite tests that server rewrites host header field func TestH2H1HostRewrite(t *testing.T) { st := newServerTester([]string{"--host-rewrite"}, t, func(w http.ResponseWriter, r *http.Request) { w.Header().Add("request-host", r.Host) }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1HostRewrite", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("status: %v; want %v", got, want) } if got, want := res.header.Get("request-host"), st.backendHost; got != want { t.Errorf("request-host: %v; want %v", got, want) } } // TestH2H1NoHostRewrite tests that server does not rewrite host // header field func TestH2H1NoHostRewrite(t *testing.T) { st := newServerTester(nil, t, func(w http.ResponseWriter, r *http.Request) { w.Header().Add("request-host", r.Host) }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1NoHostRewrite", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("status: %v; want %v", got, want) } if got, want := res.header.Get("request-host"), st.frontendHost; got != want { t.Errorf("request-host: %v; want %v", got, want) } } // TestH2H1BadRequestCL tests that server rejects request whose // content-length header field value does not match its request body // size. func TestH2H1BadRequestCL(t *testing.T) { st := newServerTester(nil, t, noopHandler) defer st.Close() // we set content-length: 1024, but the actual request body is // 3 bytes. res, err := st.http2(requestParam{ name: "TestH2H1BadRequestCL", method: "POST", header: []hpack.HeaderField{ pair("content-length", "1024"), }, body: []byte("foo"), }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } want := http2.ErrCodeProtocol if res.errCode != want { t.Errorf("res.errCode = %v; want %v", res.errCode, want) } } // TestH2H1BadResponseCL tests that server returns error when // content-length response header field value does not match its // response body size. func TestH2H1BadResponseCL(t *testing.T) { st := newServerTester(nil, t, func(w http.ResponseWriter, r *http.Request) { // we set content-length: 1024, but only send 3 bytes. w.Header().Add("Content-Length", "1024") w.Write([]byte("foo")) }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1BadResponseCL", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } want := http2.ErrCodeProtocol if res.errCode != want { t.Errorf("res.errCode = %v; want %v", res.errCode, want) } } // TestH2H1LocationRewrite tests location header field rewriting // works. func TestH2H1LocationRewrite(t *testing.T) { st := newServerTester(nil, t, func(w http.ResponseWriter, r *http.Request) { // TODO we cannot get st.ts's port number here.. 8443 // is just a place holder. We ignore it on rewrite. w.Header().Add("Location", "http://127.0.0.1:8443/p/q?a=b#fragment") }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1LocationRewrite", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } want := fmt.Sprintf("http://127.0.0.1:%v/p/q?a=b#fragment", serverPort) if got := res.header.Get("Location"); got != want { t.Errorf("Location: %v; want %v", got, want) } } // TestH2H1ChunkedRequestBody tests that chunked request body works. func TestH2H1ChunkedRequestBody(t *testing.T) { st := newServerTester(nil, t, func(w http.ResponseWriter, r *http.Request) { want := "[chunked]" if got := fmt.Sprint(r.TransferEncoding); got != want { t.Errorf("Transfer-Encoding: %v; want %v", got, want) } body, err := ioutil.ReadAll(r.Body) if err != nil { t.Fatalf("Error reading r.body: %v", err) } want = "foo" if got := string(body); got != want { t.Errorf("body: %v; want %v", got, want) } }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1ChunkedRequestBody", method: "POST", body: []byte("foo"), }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("status = %v; want %v", got, want) } } // TestH2H1MultipleRequestCL tests that server rejects request with // multiple Content-Length request header fields. func TestH2H1MultipleRequestCL(t *testing.T) { st := newServerTester(nil, t, func(w http.ResponseWriter, r *http.Request) { t.Errorf("server should not forward bad request") }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1MultipleRequestCL", header: []hpack.HeaderField{ pair("content-length", "1"), pair("content-length", "1"), }, }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.errCode, http2.ErrCodeProtocol; got != want { t.Errorf("res.errCode: %v; want %v", got, want) } } // TestH2H1InvalidRequestCL tests that server rejects request with // Content-Length which cannot be parsed as a number. func TestH2H1InvalidRequestCL(t *testing.T) { st := newServerTester(nil, t, func(w http.ResponseWriter, r *http.Request) { t.Errorf("server should not forward bad request") }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1InvalidRequestCL", header: []hpack.HeaderField{ pair("content-length", ""), }, }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.errCode, http2.ErrCodeProtocol; got != want { t.Errorf("res.errCode: %v; want %v", got, want) } } // // TestH2H1ConnectFailure tests that server handles the situation that // // connection attempt to HTTP/1 backend failed. // func TestH2H1ConnectFailure(t *testing.T) { // st := newServerTester(nil, t, noopHandler) // defer st.Close() // // shutdown backend server to simulate backend connect failure // st.ts.Close() // res, err := st.http2(requestParam{ // name: "TestH2H1ConnectFailure", // }) // if err != nil { // t.Fatalf("Error st.http2() = %v", err) // } // want := 503 // if got := res.status; got != want { // t.Errorf("status: %v; want %v", got, want) // } // } // TestH2H1InvalidMethod tests that server rejects invalid method with // 501. func TestH2H1InvalidMethod(t *testing.T) { st := newServerTester(nil, t, func(w http.ResponseWriter, r *http.Request) { t.Errorf("server should not forward this request") }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1InvalidMethod", method: "get", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 501; got != want { t.Errorf("status: %v; want %v", got, want) } } // TestH2H1BadAuthority tests that server rejects request including // bad characters in :authority header field. func TestH2H1BadAuthority(t *testing.T) { st := newServerTester(nil, t, func(w http.ResponseWriter, r *http.Request) { t.Errorf("server should not forward this request") }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1BadAuthority", authority: `foo\bar`, }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.errCode, http2.ErrCodeProtocol; got != want { t.Errorf("res.errCode: %v; want %v", got, want) } } // TestH2H1BadScheme tests that server rejects request including // bad characters in :scheme header field. func TestH2H1BadScheme(t *testing.T) { st := newServerTester(nil, t, func(w http.ResponseWriter, r *http.Request) { t.Errorf("server should not forward this request") }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1BadScheme", scheme: "http*", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.errCode, http2.ErrCodeProtocol; got != want { t.Errorf("res.errCode: %v; want %v", got, want) } } // TestH2H1AssembleCookies tests that crumbled cookies in HTTP/2 // request is assembled into 1 when forwarding to HTTP/1 backend link. func TestH2H1AssembleCookies(t *testing.T) { st := newServerTester(nil, t, func(w http.ResponseWriter, r *http.Request) { if got, want := r.Header.Get("Cookie"), "alpha; bravo; charlie"; got != want { t.Errorf("Cookie: %v; want %v", got, want) } }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1AssembleCookies", header: []hpack.HeaderField{ pair("cookie", "alpha"), pair("cookie", "bravo"), pair("cookie", "charlie"), }, }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("status: %v; want %v", got, want) } } // TestH2H1TETrailers tests that server accepts TE request header // field if it has trailers only. func TestH2H1TETrailers(t *testing.T) { st := newServerTester(nil, t, noopHandler) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1TETrailers", header: []hpack.HeaderField{ pair("te", "trailers"), }, }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("status: %v; want %v", got, want) } } // TestH2H1TEGzip tests that server resets stream if TE request header // field contains gzip. func TestH2H1TEGzip(t *testing.T) { st := newServerTester(nil, t, func(w http.ResponseWriter, r *http.Request) { t.Error("server should not forward bad request") }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1TEGzip", header: []hpack.HeaderField{ pair("te", "gzip"), }, }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.errCode, http2.ErrCodeProtocol; got != want { t.Errorf("res.errCode = %v; want %v", res.errCode, want) } } // TestH2H1SNI tests server's TLS SNI extension feature. It must // choose appropriate certificate depending on the indicated // server_name from client. func TestH2H1SNI(t *testing.T) { st := newServerTesterTLSConfig([]string{"--subcert=" + testDir + "/alt-server.key:" + testDir + "/alt-server.crt"}, t, noopHandler, &tls.Config{ ServerName: "alt-domain", }) defer st.Close() tlsConn := st.conn.(*tls.Conn) connState := tlsConn.ConnectionState() cert := connState.PeerCertificates[0] if got, want := cert.Subject.CommonName, "alt-domain"; got != want { t.Errorf("CommonName: %v; want %v", got, want) } } // TestH2H1TLSXfp tests nghttpx sends x-forwarded-proto header field // with http value since :scheme is http, even if the frontend // connection is encrypted. func TestH2H1TLSXfp(t *testing.T) { st := newServerTesterTLS(nil, t, func(w http.ResponseWriter, r *http.Request) { if got, want := r.Header.Get("x-forwarded-proto"), "http"; got != want { t.Errorf("x-forwarded-proto: want %v; got %v", want, got) } }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1TLSXfp", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("res.status: %v; want %v", got, want) } } // TestH2H1ServerPush tests server push using Link header field from // backend server. func TestH2H1ServerPush(t *testing.T) { st := newServerTester(nil, t, func(w http.ResponseWriter, r *http.Request) { // only resources marked as rel=preload are pushed if !strings.HasPrefix(r.URL.Path, "/css/") { w.Header().Add("Link", "</css/main.css>; rel=preload, </foo>, </css/theme.css>; rel=preload") } }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1ServerPush", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("res.status: %v; want %v", got, want) } if got, want := len(res.pushResponse), 2; got != want { t.Fatalf("len(res.pushResponse): %v; want %v", got, want) } mainCSS := res.pushResponse[0] if got, want := mainCSS.status, 200; got != want { t.Errorf("mainCSS.status: %v; want %v", got, want) } themeCSS := res.pushResponse[1] if got, want := themeCSS.status, 200; got != want { t.Errorf("themeCSS.status: %v; want %v", got, want) } } // TestH2H1RequestTrailer tests request trailer part is forwarded to // backend. func TestH2H1RequestTrailer(t *testing.T) { st := newServerTester(nil, t, func(w http.ResponseWriter, r *http.Request) { buf := make([]byte, 4096) for { _, err := r.Body.Read(buf) if err == io.EOF { break } if err != nil { t.Fatalf("r.Body.Read() = %v", err) } } if got, want := r.Trailer.Get("foo"), "bar"; got != want { t.Errorf("r.Trailer.Get(foo): %v; want %v", got, want) } }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1RequestTrailer", body: []byte("1"), trailer: []hpack.HeaderField{ pair("foo", "bar"), }, }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("res.status: %v; want %v", got, want) } } // TestH2H1HeaderFieldBuffer tests that request with header fields // larger than configured buffer size is rejected. func TestH2H1HeaderFieldBuffer(t *testing.T) { st := newServerTester([]string{"--request-header-field-buffer=10"}, t, func(w http.ResponseWriter, r *http.Request) { t.Fatal("execution path should not be here") }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1HeaderFieldBuffer", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 431; got != want { t.Errorf("status: %v; want %v", got, want) } } // TestH2H1HeaderFields tests that request with header fields more // than configured number is rejected. func TestH2H1HeaderFields(t *testing.T) { st := newServerTester([]string{"--max-request-header-fields=1"}, t, func(w http.ResponseWriter, r *http.Request) { t.Fatal("execution path should not be here") }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1HeaderFields", // we have at least 4 pseudo-header fields sent, and // that ensures that buffer limit exceeds. }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 431; got != want { t.Errorf("status: %v; want %v", got, want) } } // TestH2H1ReqPhaseSetHeader tests mruby request phase hook // modifies request header fields. func TestH2H1ReqPhaseSetHeader(t *testing.T) { st := newServerTester([]string{"--mruby-file=" + testDir + "/req-set-header.rb"}, t, func(w http.ResponseWriter, r *http.Request) { if got, want := r.Header.Get("User-Agent"), "mruby"; got != want { t.Errorf("User-Agent = %v; want %v", got, want) } }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1ReqPhaseSetHeader", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("status = %v; want %v", got, want) } } // TestH2H1ReqPhaseReturn tests mruby request phase hook returns // custom response. func TestH2H1ReqPhaseReturn(t *testing.T) { st := newServerTester([]string{"--mruby-file=" + testDir + "/req-return.rb"}, t, func(w http.ResponseWriter, r *http.Request) { t.Fatalf("request should not be forwarded") }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1ReqPhaseReturn", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 404; got != want { t.Errorf("status = %v; want %v", got, want) } hdtests := []struct { k, v string }{ {"content-length", "20"}, {"from", "mruby"}, } for _, tt := range hdtests { if got, want := res.header.Get(tt.k), tt.v; got != want { t.Errorf("%v = %v; want %v", tt.k, got, want) } } if got, want := string(res.body), "Hello World from req"; got != want { t.Errorf("body = %v; want %v", got, want) } } // TestH2H1RespPhaseSetHeader tests mruby response phase hook modifies // response header fields. func TestH2H1RespPhaseSetHeader(t *testing.T) { st := newServerTester([]string{"--mruby-file=" + testDir + "/resp-set-header.rb"}, t, noopHandler) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1RespPhaseSetHeader", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("status = %v; want %v", got, want) } if got, want := res.header.Get("alpha"), "bravo"; got != want { t.Errorf("alpha = %v; want %v", got, want) } } // TestH2H1RespPhaseReturn tests mruby response phase hook returns // custom response. func TestH2H1RespPhaseReturn(t *testing.T) { st := newServerTester([]string{"--mruby-file=" + testDir + "/resp-return.rb"}, t, noopHandler) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1RespPhaseReturn", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 404; got != want { t.Errorf("status = %v; want %v", got, want) } hdtests := []struct { k, v string }{ {"content-length", "21"}, {"from", "mruby"}, } for _, tt := range hdtests { if got, want := res.header.Get(tt.k), tt.v; got != want { t.Errorf("%v = %v; want %v", tt.k, got, want) } } if got, want := string(res.body), "Hello World from resp"; got != want { t.Errorf("body = %v; want %v", got, want) } } // TestH2H1Upgrade tests HTTP Upgrade to HTTP/2 func TestH2H1Upgrade(t *testing.T) { st := newServerTester(nil, t, func(w http.ResponseWriter, r *http.Request) {}) defer st.Close() res, err := st.http1(requestParam{ name: "TestH2H1Upgrade", header: []hpack.HeaderField{ pair("Connection", "Upgrade, HTTP2-Settings"), pair("Upgrade", "h2c"), pair("HTTP2-Settings", "AAMAAABkAAQAAP__"), }, }) if err != nil { t.Fatalf("Error st.http1() = %v", err) } if got, want := res.status, 101; got != want { t.Errorf("res.status: %v; want %v", got, want) } res, err = st.http2(requestParam{ httpUpgrade: true, }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("res.status: %v; want %v", got, want) } } // TestH2H1ProxyProtocolV1TCP4 tests PROXY protocol version 1 // containing TCP4 entry is accepted and X-Forwarded-For contains // advertised src address. func TestH2H1ProxyProtocolV1TCP4(t *testing.T) { st := newServerTester([]string{"--accept-proxy-protocol", "--add-x-forwarded-for"}, t, func(w http.ResponseWriter, r *http.Request) { if got, want := r.Header.Get("X-Forwarded-For"), "192.168.0.2"; got != want { t.Errorf("X-Forwarded-For: %v; want %v", got, want) } }) defer st.Close() st.conn.Write([]byte("PROXY TCP4 192.168.0.2 192.168.0.100 12345 8080\r\n")) res, err := st.http2(requestParam{ name: "TestH2H1ProxyProtocolV1TCP4", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("res.status: %v; want %v", got, want) } } // TestH2H1ProxyProtocolV1TCP6 tests PROXY protocol version 1 // containing TCP6 entry is accepted and X-Forwarded-For contains // advertised src address. func TestH2H1ProxyProtocolV1TCP6(t *testing.T) { st := newServerTester([]string{"--accept-proxy-protocol", "--add-x-forwarded-for"}, t, func(w http.ResponseWriter, r *http.Request) { if got, want := r.Header.Get("X-Forwarded-For"), "2001:0db8:85a3:0000:0000:8a2e:0370:7334"; got != want { t.Errorf("X-Forwarded-For: %v; want %v", got, want) } }) defer st.Close() st.conn.Write([]byte("PROXY TCP6 2001:0db8:85a3:0000:0000:8a2e:0370:7334 ::1 12345 8080\r\n")) res, err := st.http2(requestParam{ name: "TestH2H1ProxyProtocolV1TCP6", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("res.status: %v; want %v", got, want) } } // TestH2H1ProxyProtocolV1Unknown tests PROXY protocol version 1 // containing UNKNOWN entry is accepted. func TestH2H1ProxyProtocolV1Unknown(t *testing.T) { st := newServerTester([]string{"--accept-proxy-protocol", "--add-x-forwarded-for"}, t, func(w http.ResponseWriter, r *http.Request) { if got, notWant := r.Header.Get("X-Forwarded-For"), "192.168.0.2"; got == notWant { t.Errorf("X-Forwarded-For: %v") } }) defer st.Close() st.conn.Write([]byte("PROXY UNKNOWN 192.168.0.2 192.168.0.100 12345 8080\r\n")) res, err := st.http2(requestParam{ name: "TestH2H1ProxyProtocolV1Unknown", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("res.status: %v; want %v", got, want) } } // TestH2H1ProxyProtocolV1JustUnknown tests PROXY protocol version 1 // containing only "PROXY UNKNOWN" is accepted. func TestH2H1ProxyProtocolV1JustUnknown(t *testing.T) { st := newServerTester([]string{"--accept-proxy-protocol", "--add-x-forwarded-for"}, t, noopHandler) defer st.Close() st.conn.Write([]byte("PROXY UNKNOWN\r\n")) res, err := st.http2(requestParam{ name: "TestH2H1ProxyProtocolV1JustUnknown", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("res.status: %v; want %v", got, want) } } // TestH2H1ProxyProtocolV1TooLongLine tests PROXY protocol version 1 // line longer than 107 bytes must be rejected func TestH2H1ProxyProtocolV1TooLongLine(t *testing.T) { st := newServerTester([]string{"--accept-proxy-protocol", "--add-x-forwarded-for"}, t, noopHandler) defer st.Close() st.conn.Write([]byte("PROXY UNKNOWN ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 65535 655350\r\n")) _, err := st.http2(requestParam{ name: "TestH2H1ProxyProtocolV1TooLongLine", }) if err == nil { t.Fatalf("connection was not terminated") } } // TestH2H1ProxyProtocolV1BadLineEnd tests that PROXY protocol version // 1 line ending without \r\n should be rejected. func TestH2H1ProxyProtocolV1BadLineEnd(t *testing.T) { st := newServerTester([]string{"--accept-proxy-protocol"}, t, noopHandler) defer st.Close() st.conn.Write([]byte("PROXY TCP6 ::1 ::1 12345 8080\r \n")) _, err := st.http2(requestParam{ name: "TestH2H1ProxyProtocolV1BadLineEnd", }) if err == nil { t.Fatalf("connection was not terminated") } } // TestH2H1ProxyProtocolV1NoEnd tests that PROXY protocol version 1 // line containing no \r\n should be rejected. func TestH2H1ProxyProtocolV1NoEnd(t *testing.T) { st := newServerTester([]string{"--accept-proxy-protocol"}, t, noopHandler) defer st.Close() st.conn.Write([]byte("PROXY TCP6 ::1 ::1 12345 8080")) _, err := st.http2(requestParam{ name: "TestH2H1ProxyProtocolV1NoEnd", }) if err == nil { t.Fatalf("connection was not terminated") } } // TestH2H1ProxyProtocolV1EmbeddedNULL tests that PROXY protocol // version 1 line containing NULL character should be rejected. func TestH2H1ProxyProtocolV1EmbeddedNULL(t *testing.T) { st := newServerTester([]string{"--accept-proxy-protocol"}, t, noopHandler) defer st.Close() b := []byte("PROXY TCP6 ::1*foo ::1 12345 8080\r\n") b[14] = 0 st.conn.Write(b) _, err := st.http2(requestParam{ name: "TestH2H1ProxyProtocolV1EmbeddedNULL", }) if err == nil { t.Fatalf("connection was not terminated") } } // TestH2H1ProxyProtocolV1MissingSrcPort tests that PROXY protocol // version 1 line without src port should be rejected. func TestH2H1ProxyProtocolV1MissingSrcPort(t *testing.T) { st := newServerTester([]string{"--accept-proxy-protocol"}, t, noopHandler) defer st.Close() st.conn.Write([]byte("PROXY TCP6 ::1 ::1 8080\r\n")) _, err := st.http2(requestParam{ name: "TestH2H1ProxyProtocolV1MissingSrcPort", }) if err == nil { t.Fatalf("connection was not terminated") } } // TestH2H1ProxyProtocolV1MissingDstPort tests that PROXY protocol // version 1 line without dst port should be rejected. func TestH2H1ProxyProtocolV1MissingDstPort(t *testing.T) { st := newServerTester([]string{"--accept-proxy-protocol"}, t, noopHandler) defer st.Close() st.conn.Write([]byte("PROXY TCP6 ::1 ::1 12345 \r\n")) _, err := st.http2(requestParam{ name: "TestH2H1ProxyProtocolV1MissingDstPort", }) if err == nil { t.Fatalf("connection was not terminated") } } // TestH2H1ProxyProtocolV1InvalidSrcPort tests that PROXY protocol // containing invalid src port should be rejected. func TestH2H1ProxyProtocolV1InvalidSrcPort(t *testing.T) { st := newServerTester([]string{"--accept-proxy-protocol"}, t, noopHandler) defer st.Close() st.conn.Write([]byte("PROXY TCP6 ::1 ::1 123x 8080\r\n")) _, err := st.http2(requestParam{ name: "TestH2H1ProxyProtocolV1InvalidSrcPort", }) if err == nil { t.Fatalf("connection was not terminated") } } // TestH2H1ProxyProtocolV1InvalidDstPort tests that PROXY protocol // containing invalid dst port should be rejected. func TestH2H1ProxyProtocolV1InvalidDstPort(t *testing.T) { st := newServerTester([]string{"--accept-proxy-protocol"}, t, noopHandler) defer st.Close() st.conn.Write([]byte("PROXY TCP6 ::1 ::1 123456 80x\r\n")) _, err := st.http2(requestParam{ name: "TestH2H1ProxyProtocolV1InvalidDstPort", }) if err == nil { t.Fatalf("connection was not terminated") } } // TestH2H1ProxyProtocolV1LeadingZeroPort tests that PROXY protocol // version 1 line with non zero port with leading zero should be // rejected. func TestH2H1ProxyProtocolV1LeadingZeroPort(t *testing.T) { st := newServerTester([]string{"--accept-proxy-protocol"}, t, noopHandler) defer st.Close() st.conn.Write([]byte("PROXY TCP6 ::1 ::1 03000 8080\r\n")) _, err := st.http2(requestParam{ name: "TestH2H1ProxyProtocolV1LeadingZeroPort", }) if err == nil { t.Fatalf("connection was not terminated") } } // TestH2H1ProxyProtocolV1TooLargeSrcPort tests that PROXY protocol // containing too large src port should be rejected. func TestH2H1ProxyProtocolV1TooLargeSrcPort(t *testing.T) { st := newServerTester([]string{"--accept-proxy-protocol"}, t, noopHandler) defer st.Close() st.conn.Write([]byte("PROXY TCP6 ::1 ::1 65536 8080\r\n")) _, err := st.http2(requestParam{ name: "TestH2H1ProxyProtocolV1TooLargeSrcPort", }) if err == nil { t.Fatalf("connection was not terminated") } } // TestH2H1ProxyProtocolV1TooLargeDstPort tests that PROXY protocol // containing too large dst port should be rejected. func TestH2H1ProxyProtocolV1TooLargeDstPort(t *testing.T) { st := newServerTester([]string{"--accept-proxy-protocol"}, t, noopHandler) defer st.Close() st.conn.Write([]byte("PROXY TCP6 ::1 ::1 12345 65536\r\n")) _, err := st.http2(requestParam{ name: "TestH2H1ProxyProtocolV1TooLargeDstPort", }) if err == nil { t.Fatalf("connection was not terminated") } } // TestH2H1ProxyProtocolV1InvalidSrcAddr tests that PROXY protocol // containing invalid src addr should be rejected. func TestH2H1ProxyProtocolV1InvalidSrcAddr(t *testing.T) { st := newServerTester([]string{"--accept-proxy-protocol"}, t, noopHandler) defer st.Close() st.conn.Write([]byte("PROXY TCP6 192.168.0.1 ::1 12345 8080\r\n")) _, err := st.http2(requestParam{ name: "TestH2H1ProxyProtocolV1InvalidSrcAddr", }) if err == nil { t.Fatalf("connection was not terminated") } } // TestH2H1ProxyProtocolV1InvalidDstAddr tests that PROXY protocol // containing invalid dst addr should be rejected. func TestH2H1ProxyProtocolV1InvalidDstAddr(t *testing.T) { st := newServerTester([]string{"--accept-proxy-protocol"}, t, noopHandler) defer st.Close() st.conn.Write([]byte("PROXY TCP6 ::1 192.168.0.1 12345 8080\r\n")) _, err := st.http2(requestParam{ name: "TestH2H1ProxyProtocolV1InvalidDstAddr", }) if err == nil { t.Fatalf("connection was not terminated") } } // TestH2H1ProxyProtocolV1InvalidProtoFamily tests that PROXY protocol // containing invalid protocol family should be rejected. func TestH2H1ProxyProtocolV1InvalidProtoFamily(t *testing.T) { st := newServerTester([]string{"--accept-proxy-protocol"}, t, noopHandler) defer st.Close() st.conn.Write([]byte("PROXY UNIX ::1 ::1 12345 8080\r\n")) _, err := st.http2(requestParam{ name: "TestH2H1ProxyProtocolV1InvalidProtoFamily", }) if err == nil { t.Fatalf("connection was not terminated") } } // TestH2H1ProxyProtocolV1InvalidID tests that PROXY protocol // containing invalid PROXY protocol version 1 ID should be rejected. func TestH2H1ProxyProtocolV1InvalidID(t *testing.T) { st := newServerTester([]string{"--accept-proxy-protocol"}, t, noopHandler) defer st.Close() st.conn.Write([]byte("PR0XY TCP6 ::1 ::1 12345 8080\r\n")) _, err := st.http2(requestParam{ name: "TestH2H1ProxyProtocolV1InvalidID", }) if err == nil { t.Fatalf("connection was not terminated") } } // TestH2H1ExternalDNS tests that DNS resolution using external DNS // with HTTP/1 backend works. func TestH2H1ExternalDNS(t *testing.T) { st := newServerTester([]string{"--external-dns"}, t, noopHandler) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1ExternalDNS", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("status = %v; want %v", got, want) } } // TestH2H1DNS tests that DNS resolution without external DNS with // HTTP/1 backend works. func TestH2H1DNS(t *testing.T) { st := newServerTester([]string{"--dns"}, t, noopHandler) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1DNS", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("status = %v; want %v", got, want) } } // TestH2H1HTTPSRedirect tests that the request to the backend which // requires TLS is redirected to https URI. func TestH2H1HTTPSRedirect(t *testing.T) { st := newServerTester([]string{"--redirect-if-not-tls"}, t, noopHandler) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1HTTPSRedirect", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 308; got != want { t.Errorf("status = %v; want %v", got, want) } if got, want := res.header.Get("location"), "https://127.0.0.1/"; got != want { t.Errorf("location: %v; want %v", got, want) } } // TestH2H1HTTPSRedirectPort tests that the request to the backend // which requires TLS is redirected to https URI with given port. func TestH2H1HTTPSRedirectPort(t *testing.T) { st := newServerTester([]string{"--redirect-if-not-tls", "--redirect-https-port=8443"}, t, noopHandler) defer st.Close() res, err := st.http2(requestParam{ path: "/foo?bar", name: "TestH2H1HTTPSRedirectPort", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 308; got != want { t.Errorf("status = %v; want %v", got, want) } if got, want := res.header.Get("location"), "https://127.0.0.1:8443/foo?bar"; got != want { t.Errorf("location: %v; want %v", got, want) } } // TestH2H1Code204 tests that 204 response without content-length, and // transfer-encoding is valid. func TestH2H1Code204(t *testing.T) { st := newServerTester(nil, t, func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusNoContent) }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1Code204", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 204; got != want { t.Errorf("status = %v; want %v", got, want) } } // TestH2H1Code204CL0 tests that 204 response with content-length: 0 // is allowed. func TestH2H1Code204CL0(t *testing.T) { st := newServerTester(nil, t, func(w http.ResponseWriter, r *http.Request) { hj, ok := w.(http.Hijacker) if !ok { http.Error(w, "Could not hijack the connection", http.StatusInternalServerError) return } conn, bufrw, err := hj.Hijack() if err != nil { http.Error(w, err.Error(), http.StatusInternalServerError) return } defer conn.Close() bufrw.WriteString("HTTP/1.1 204\r\nContent-Length: 0\r\n\r\n") bufrw.Flush() }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1Code204CL0", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 204; got != want { t.Errorf("status = %v; want %v", got, want) } if got, found := res.header["Content-Length"]; found { t.Errorf("Content-Length = %v, want nothing", got) } } // TestH2H1Code204CLNonzero tests that 204 response with nonzero // content-length is not allowed. func TestH2H1Code204CLNonzero(t *testing.T) { st := newServerTester(nil, t, func(w http.ResponseWriter, r *http.Request) { hj, ok := w.(http.Hijacker) if !ok { http.Error(w, "Could not hijack the connection", http.StatusInternalServerError) return } conn, bufrw, err := hj.Hijack() if err != nil { http.Error(w, err.Error(), http.StatusInternalServerError) return } defer conn.Close() bufrw.WriteString("HTTP/1.1 204\r\nContent-Length: 1\r\n\r\n") bufrw.Flush() }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1Code204CLNonzero", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 502; got != want { t.Errorf("status = %v; want %v", got, want) } } // TestH2H1Code204TE tests that 204 response with transfer-encoding is // not allowed. func TestH2H1Code204TE(t *testing.T) { st := newServerTester(nil, t, func(w http.ResponseWriter, r *http.Request) { hj, ok := w.(http.Hijacker) if !ok { http.Error(w, "Could not hijack the connection", http.StatusInternalServerError) return } conn, bufrw, err := hj.Hijack() if err != nil { http.Error(w, err.Error(), http.StatusInternalServerError) return } defer conn.Close() bufrw.WriteString("HTTP/1.1 204\r\nTransfer-Encoding: chunked\r\n\r\n") bufrw.Flush() }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H1Code204TE", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 502; got != want { t.Errorf("status = %v; want %v", got, want) } } // TestH2H1GracefulShutdown tests graceful shutdown. func TestH2H1GracefulShutdown(t *testing.T) { st := newServerTester(nil, t, noopHandler) defer st.Close() fmt.Fprint(st.conn, "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n") if err := st.fr.WriteSettings(); err != nil { t.Fatalf("st.fr.WriteSettings(): %v", err) } header := []hpack.HeaderField{ pair(":method", "GET"), pair(":scheme", "http"), pair(":authority", st.authority), pair(":path", "/"), } for _, h := range header { _ = st.enc.WriteField(h) } if err := st.fr.WriteHeaders(http2.HeadersFrameParam{ StreamID: 1, EndStream: false, EndHeaders: true, BlockFragment: st.headerBlkBuf.Bytes(), }); err != nil { t.Fatalf("st.fr.WriteHeaders(): %v", err) } // send SIGQUIT signal to nghttpx to perform graceful shutdown st.cmd.Process.Signal(syscall.SIGQUIT) time.Sleep(150 * time.Millisecond) // after signal, finish request body if err := st.fr.WriteData(1, true, nil); err != nil { t.Fatalf("st.fr.WriteData(): %v", err) } numGoAway := 0 for { fr, err := st.readFrame() if err != nil { if err == io.EOF { want := 2 if got := numGoAway; got != want { t.Fatalf("numGoAway: %v; want %v", got, want) } return } t.Fatalf("st.readFrame(): %v", err) } switch f := fr.(type) { case *http2.GoAwayFrame: numGoAway += 1 want := http2.ErrCodeNo if got := f.ErrCode; got != want { t.Fatalf("f.ErrCode(%v): %v; want %v", numGoAway, got, want) } switch numGoAway { case 1: want := (uint32(1) << 31) - 1 if got := f.LastStreamID; got != want { t.Fatalf("f.LastStreamID(%v): %v; want %v", numGoAway, got, want) } case 2: want := uint32(1) if got := f.LastStreamID; got != want { t.Fatalf("f.LastStreamID(%v): %v; want %v", numGoAway, got, want) } case 3: t.Fatalf("too many GOAWAYs received") } } } } // TestH2H2MultipleResponseCL tests that server returns error if // multiple Content-Length response header fields are received. func TestH2H2MultipleResponseCL(t *testing.T) { st := newServerTester([]string{"--http2-bridge"}, t, func(w http.ResponseWriter, r *http.Request) { w.Header().Add("content-length", "1") w.Header().Add("content-length", "1") }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H2MultipleResponseCL", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.errCode, http2.ErrCodeInternal; got != want { t.Errorf("res.errCode: %v; want %v", got, want) } } // TestH2H2InvalidResponseCL tests that server returns error if // Content-Length response header field value cannot be parsed as a // number. func TestH2H2InvalidResponseCL(t *testing.T) { st := newServerTester([]string{"--http2-bridge"}, t, func(w http.ResponseWriter, r *http.Request) { w.Header().Add("content-length", "") }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H2InvalidResponseCL", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.errCode, http2.ErrCodeInternal; got != want { t.Errorf("res.errCode: %v; want %v", got, want) } } // // TestH2H2ConnectFailure tests that server handles the situation that // // connection attempt to HTTP/2 backend failed. // func TestH2H2ConnectFailure(t *testing.T) { // st := newServerTester([]string{"--http2-bridge"}, t, noopHandler) // defer st.Close() // // simulate backend connect attempt failure // st.ts.Close() // res, err := st.http2(requestParam{ // name: "TestH2H2ConnectFailure", // }) // if err != nil { // t.Fatalf("Error st.http2() = %v", err) // } // want := 503 // if got := res.status; got != want { // t.Errorf("status: %v; want %v", got, want) // } // } // TestH2H2HostRewrite tests that server rewrites host header field func TestH2H2HostRewrite(t *testing.T) { st := newServerTester([]string{"--http2-bridge", "--host-rewrite"}, t, func(w http.ResponseWriter, r *http.Request) { w.Header().Add("request-host", r.Host) }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H2HostRewrite", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("status: %v; want %v", got, want) } if got, want := res.header.Get("request-host"), st.backendHost; got != want { t.Errorf("request-host: %v; want %v", got, want) } } // TestH2H2NoHostRewrite tests that server does not rewrite host // header field func TestH2H2NoHostRewrite(t *testing.T) { st := newServerTester([]string{"--http2-bridge"}, t, func(w http.ResponseWriter, r *http.Request) { w.Header().Add("request-host", r.Host) }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H2NoHostRewrite", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("status: %v; want %v", got, want) } if got, want := res.header.Get("request-host"), st.frontendHost; got != want { t.Errorf("request-host: %v; want %v", got, want) } } // TestH2H2TLSXfp tests nghttpx sends x-forwarded-proto header field // with http value since :scheme is http, even if the frontend // connection is encrypted. func TestH2H2TLSXfp(t *testing.T) { st := newServerTesterTLS([]string{"--http2-bridge"}, t, func(w http.ResponseWriter, r *http.Request) { if got, want := r.Header.Get("x-forwarded-proto"), "http"; got != want { t.Errorf("x-forwarded-proto: want %v; got %v", want, got) } }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H2TLSXfp", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("res.status: %v; want %v", got, want) } } // TestH2H2AddXfp tests that server appends :scheme to the existing // x-forwarded-proto header field. func TestH2H2AddXfp(t *testing.T) { st := newServerTesterTLS([]string{"--http2-bridge", "--no-strip-incoming-x-forwarded-proto"}, t, func(w http.ResponseWriter, r *http.Request) { xfp := r.Header.Get("X-Forwarded-Proto") if got, want := xfp, "foo, http"; got != want { t.Errorf("X-Forwarded-Proto = %q; want %q", got, want) } }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H2AddXfp", header: []hpack.HeaderField{ pair("x-forwarded-proto", "foo"), }, }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("status = %v; want %v", got, want) } } // TestH2H2NoAddXfp tests that server does not append :scheme to the // existing x-forwarded-proto header field. func TestH2H2NoAddXfp(t *testing.T) { st := newServerTesterTLS([]string{"--http2-bridge", "--no-add-x-forwarded-proto", "--no-strip-incoming-x-forwarded-proto"}, t, func(w http.ResponseWriter, r *http.Request) { xfp := r.Header.Get("X-Forwarded-Proto") if got, want := xfp, "foo"; got != want { t.Errorf("X-Forwarded-Proto = %q; want %q", got, want) } }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H2NoAddXfp", header: []hpack.HeaderField{ pair("x-forwarded-proto", "foo"), }, }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("status = %v; want %v", got, want) } } // TestH2H2StripXfp tests that server strips incoming // x-forwarded-proto header field. func TestH2H2StripXfp(t *testing.T) { st := newServerTesterTLS([]string{"--http2-bridge"}, t, func(w http.ResponseWriter, r *http.Request) { xfp := r.Header.Get("X-Forwarded-Proto") if got, want := xfp, "http"; got != want { t.Errorf("X-Forwarded-Proto = %q; want %q", got, want) } }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H2StripXfp", header: []hpack.HeaderField{ pair("x-forwarded-proto", "foo"), }, }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("status = %v; want %v", got, want) } } // TestH2H2StripNoAddXfp tests that server strips incoming // x-forwarded-proto header field, and does not add another. func TestH2H2StripNoAddXfp(t *testing.T) { st := newServerTesterTLS([]string{"--http2-bridge", "--no-add-x-forwarded-proto"}, t, func(w http.ResponseWriter, r *http.Request) { if got, found := r.Header["X-Forwarded-Proto"]; found { t.Errorf("X-Forwarded-Proto = %q; want nothing", got) } }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H2StripNoAddXfp", header: []hpack.HeaderField{ pair("x-forwarded-proto", "foo"), }, }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("status = %v; want %v", got, want) } } // TestH2H2AddXff tests that server generates X-Forwarded-For header // field when forwarding request to backend. func TestH2H2AddXff(t *testing.T) { st := newServerTesterTLS([]string{"--http2-bridge", "--add-x-forwarded-for"}, t, func(w http.ResponseWriter, r *http.Request) { xff := r.Header.Get("X-Forwarded-For") want := "127.0.0.1" if xff != want { t.Errorf("X-Forwarded-For = %v; want %v", xff, want) } }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H2AddXff", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("status = %v; want %v", got, want) } } // TestH2H2AddXff2 tests that server appends X-Forwarded-For header // field to existing one when forwarding request to backend. func TestH2H2AddXff2(t *testing.T) { st := newServerTesterTLS([]string{"--http2-bridge", "--add-x-forwarded-for"}, t, func(w http.ResponseWriter, r *http.Request) { xff := r.Header.Get("X-Forwarded-For") want := "host, 127.0.0.1" if xff != want { t.Errorf("X-Forwarded-For = %v; want %v", xff, want) } }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H2AddXff2", header: []hpack.HeaderField{ pair("x-forwarded-for", "host"), }, }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("status = %v; want %v", got, want) } } // TestH2H2StripXff tests that --strip-incoming-x-forwarded-for // option. func TestH2H2StripXff(t *testing.T) { st := newServerTesterTLS([]string{"--http2-bridge", "--strip-incoming-x-forwarded-for"}, t, func(w http.ResponseWriter, r *http.Request) { if xff, found := r.Header["X-Forwarded-For"]; found { t.Errorf("X-Forwarded-For = %v; want nothing", xff) } }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H2StripXff", header: []hpack.HeaderField{ pair("x-forwarded-for", "host"), }, }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("status = %v; want %v", got, want) } } // TestH2H2StripAddXff tests that --strip-incoming-x-forwarded-for and // --add-x-forwarded-for options. func TestH2H2StripAddXff(t *testing.T) { st := newServerTesterTLS([]string{"--http2-bridge", "--strip-incoming-x-forwarded-for", "--add-x-forwarded-for"}, t, func(w http.ResponseWriter, r *http.Request) { xff := r.Header.Get("X-Forwarded-For") want := "127.0.0.1" if xff != want { t.Errorf("X-Forwarded-For = %v; want %v", xff, want) } }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H2StripAddXff", header: []hpack.HeaderField{ pair("x-forwarded-for", "host"), }, }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("status = %v; want %v", got, want) } } // TestH2H2AddForwarded tests that server generates Forwarded header // field using static obfuscated "by" parameter. func TestH2H2AddForwarded(t *testing.T) { st := newServerTesterTLS([]string{"--http2-bridge", "--add-forwarded=by,for,host,proto", "--forwarded-by=_alpha"}, t, func(w http.ResponseWriter, r *http.Request) { pattern := fmt.Sprintf(`by=_alpha;for=_[^;]+;host="127\.0\.0\.1:%v";proto=https`, serverPort) validFwd := regexp.MustCompile(pattern) if got := r.Header.Get("Forwarded"); !validFwd.MatchString(got) { t.Errorf("Forwarded = %v; want pattern %v", got, pattern) } }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H2AddForwarded", scheme: "https", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("status: %v; want %v", got, want) } } // TestH2H2AddForwardedMerge tests that server generates Forwarded // header field using static obfuscated "by" parameter, and // existing Forwarded header field. func TestH2H2AddForwardedMerge(t *testing.T) { st := newServerTesterTLS([]string{"--http2-bridge", "--add-forwarded=by,host,proto", "--forwarded-by=_alpha"}, t, func(w http.ResponseWriter, r *http.Request) { want := fmt.Sprintf(`host=foo, by=_alpha;host="127.0.0.1:%v";proto=https`, serverPort) if got := r.Header.Get("Forwarded"); got != want { t.Errorf("Forwarded = %v; want %v", got, want) } }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H2AddForwardedMerge", scheme: "https", header: []hpack.HeaderField{ pair("forwarded", "host=foo"), }, }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("status: %v; want %v", got, want) } } // TestH2H2AddForwardedStrip tests that server generates Forwarded // header field using static obfuscated "by" parameter, and // existing Forwarded header field stripped. func TestH2H2AddForwardedStrip(t *testing.T) { st := newServerTesterTLS([]string{"--http2-bridge", "--strip-incoming-forwarded", "--add-forwarded=by,host,proto", "--forwarded-by=_alpha"}, t, func(w http.ResponseWriter, r *http.Request) { want := fmt.Sprintf(`by=_alpha;host="127.0.0.1:%v";proto=https`, serverPort) if got := r.Header.Get("Forwarded"); got != want { t.Errorf("Forwarded = %v; want %v", got, want) } }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H2AddForwardedStrip", scheme: "https", header: []hpack.HeaderField{ pair("forwarded", "host=foo"), }, }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("status: %v; want %v", got, want) } } // TestH2H2StripForwarded tests that server strips incoming Forwarded // header field. func TestH2H2StripForwarded(t *testing.T) { st := newServerTesterTLS([]string{"--http2-bridge", "--strip-incoming-forwarded"}, t, func(w http.ResponseWriter, r *http.Request) { if got, found := r.Header["Forwarded"]; found { t.Errorf("Forwarded = %v; want nothing", got) } }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H2StripForwarded", scheme: "https", header: []hpack.HeaderField{ pair("forwarded", "host=foo"), }, }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("status: %v; want %v", got, want) } } // TestH2H2ReqPhaseReturn tests mruby request phase hook returns // custom response. func TestH2H2ReqPhaseReturn(t *testing.T) { st := newServerTester([]string{"--http2-bridge", "--mruby-file=" + testDir + "/req-return.rb"}, t, func(w http.ResponseWriter, r *http.Request) { t.Fatalf("request should not be forwarded") }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H2ReqPhaseReturn", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 404; got != want { t.Errorf("status = %v; want %v", got, want) } hdtests := []struct { k, v string }{ {"content-length", "20"}, {"from", "mruby"}, } for _, tt := range hdtests { if got, want := res.header.Get(tt.k), tt.v; got != want { t.Errorf("%v = %v; want %v", tt.k, got, want) } } if got, want := string(res.body), "Hello World from req"; got != want { t.Errorf("body = %v; want %v", got, want) } } // TestH2H2RespPhaseReturn tests mruby response phase hook returns // custom response. func TestH2H2RespPhaseReturn(t *testing.T) { st := newServerTester([]string{"--http2-bridge", "--mruby-file=" + testDir + "/resp-return.rb"}, t, noopHandler) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H2RespPhaseReturn", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 404; got != want { t.Errorf("status = %v; want %v", got, want) } hdtests := []struct { k, v string }{ {"content-length", "21"}, {"from", "mruby"}, } for _, tt := range hdtests { if got, want := res.header.Get(tt.k), tt.v; got != want { t.Errorf("%v = %v; want %v", tt.k, got, want) } } if got, want := string(res.body), "Hello World from resp"; got != want { t.Errorf("body = %v; want %v", got, want) } } // TestH2H2ExternalDNS tests that DNS resolution using external DNS // with HTTP/2 backend works. func TestH2H2ExternalDNS(t *testing.T) { st := newServerTester([]string{"--http2-bridge", "--external-dns"}, t, noopHandler) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H2ExternalDNS", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("status = %v; want %v", got, want) } } // TestH2H2DNS tests that DNS resolution without external DNS with // HTTP/2 backend works. func TestH2H2DNS(t *testing.T) { st := newServerTester([]string{"--http2-bridge", "--dns"}, t, noopHandler) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H2DNS", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("status = %v; want %v", got, want) } } // TestH2H2Code204 tests that 204 response without content-length, and // transfer-encoding is valid. func TestH2H2Code204(t *testing.T) { st := newServerTester([]string{"--http2-bridge"}, t, func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusNoContent) }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2H2Code204", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 204; got != want { t.Errorf("status = %v; want %v", got, want) } } // TestH2APIBackendconfig exercise backendconfig API endpoint routine // for successful case. func TestH2APIBackendconfig(t *testing.T) { st := newServerTesterConnectPort([]string{"-f127.0.0.1,3010;api;no-tls"}, t, func(w http.ResponseWriter, r *http.Request) { t.Fatalf("request should not be forwarded") }, 3010) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2APIBackendconfig", path: "/api/v1beta1/backendconfig", method: "PUT", body: []byte(`# comment backend=127.0.0.1,3011 `), }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("res.status: %v; want %v", got, want) } var apiResp APIResponse err = json.Unmarshal(res.body, &apiResp) if err != nil { t.Fatalf("Error unmarshaling API response: %v", err) } if got, want := apiResp.Status, "Success"; got != want { t.Errorf("apiResp.Status: %v; want %v", got, want) } if got, want := apiResp.Code, 200; got != want { t.Errorf("apiResp.Status: %v; want %v", got, want) } } // TestH2APIBackendconfigQuery exercise backendconfig API endpoint // routine with query. func TestH2APIBackendconfigQuery(t *testing.T) { st := newServerTesterConnectPort([]string{"-f127.0.0.1,3010;api;no-tls"}, t, func(w http.ResponseWriter, r *http.Request) { t.Fatalf("request should not be forwarded") }, 3010) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2APIBackendconfigQuery", path: "/api/v1beta1/backendconfig?foo=bar", method: "PUT", body: []byte(`# comment backend=127.0.0.1,3011 `), }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("res.status: %v; want %v", got, want) } var apiResp APIResponse err = json.Unmarshal(res.body, &apiResp) if err != nil { t.Fatalf("Error unmarshaling API response: %v", err) } if got, want := apiResp.Status, "Success"; got != want { t.Errorf("apiResp.Status: %v; want %v", got, want) } if got, want := apiResp.Code, 200; got != want { t.Errorf("apiResp.Status: %v; want %v", got, want) } } // TestH2APIBackendconfigBadMethod exercise backendconfig API endpoint // routine with bad method. func TestH2APIBackendconfigBadMethod(t *testing.T) { st := newServerTesterConnectPort([]string{"-f127.0.0.1,3010;api;no-tls"}, t, func(w http.ResponseWriter, r *http.Request) { t.Fatalf("request should not be forwarded") }, 3010) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2APIBackendconfigBadMethod", path: "/api/v1beta1/backendconfig", method: "GET", body: []byte(`# comment backend=127.0.0.1,3011 `), }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 405; got != want { t.Errorf("res.status: %v; want %v", got, want) } var apiResp APIResponse err = json.Unmarshal(res.body, &apiResp) if err != nil { t.Fatalf("Error unmarshaling API response: %v", err) } if got, want := apiResp.Status, "Failure"; got != want { t.Errorf("apiResp.Status: %v; want %v", got, want) } if got, want := apiResp.Code, 405; got != want { t.Errorf("apiResp.Status: %v; want %v", got, want) } } // TestH2APIConfigrevision tests configrevision API. func TestH2APIConfigrevision(t *testing.T) { st := newServerTesterConnectPort([]string{"-f127.0.0.1,3010;api;no-tls"}, t, func(w http.ResponseWriter, r *http.Request) { t.Fatalf("request should not be forwarded") }, 3010) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2APIConfigrevision", path: "/api/v1beta1/configrevision", method: "GET", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("res.status: %v; want = %v", got, want) } var apiResp APIResponse d := json.NewDecoder(bytes.NewBuffer(res.body)) d.UseNumber() err = d.Decode(&apiResp) if err != nil { t.Fatalf("Error unmarshalling API response: %v", err) } if got, want := apiResp.Status, "Success"; got != want { t.Errorf("apiResp.Status: %v; want %v", got, want) } if got, want := apiResp.Code, 200; got != want { t.Errorf("apiResp.Status: %v; want %v", got, want) } if got, want := apiResp.Data["configRevision"], json.Number("0"); got != want { t.Errorf(`apiResp.Data["configRevision"]: %v %t; want %v`, got, got, want) } } // TestH2APINotFound exercise backendconfig API endpoint routine when // API endpoint is not found. func TestH2APINotFound(t *testing.T) { st := newServerTesterConnectPort([]string{"-f127.0.0.1,3010;api;no-tls"}, t, func(w http.ResponseWriter, r *http.Request) { t.Fatalf("request should not be forwarded") }, 3010) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2APINotFound", path: "/api/notfound", method: "GET", body: []byte(`# comment backend=127.0.0.1,3011 `), }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 404; got != want { t.Errorf("res.status: %v; want %v", got, want) } var apiResp APIResponse err = json.Unmarshal(res.body, &apiResp) if err != nil { t.Fatalf("Error unmarshaling API response: %v", err) } if got, want := apiResp.Status, "Failure"; got != want { t.Errorf("apiResp.Status: %v; want %v", got, want) } if got, want := apiResp.Code, 404; got != want { t.Errorf("apiResp.Status: %v; want %v", got, want) } } // TestH2Healthmon tests health monitor endpoint. func TestH2Healthmon(t *testing.T) { st := newServerTesterConnectPort([]string{"-f127.0.0.1,3011;healthmon;no-tls"}, t, func(w http.ResponseWriter, r *http.Request) { t.Fatalf("request should not be forwarded") }, 3011) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2Healthmon", path: "/alpha/bravo", }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 200; got != want { t.Errorf("res.status: %v; want %v", got, want) } } // TestH2ResponseBeforeRequestEnd tests the situation where response // ends before request body finishes. func TestH2ResponseBeforeRequestEnd(t *testing.T) { st := newServerTester([]string{"--mruby-file=" + testDir + "/req-return.rb"}, t, func(w http.ResponseWriter, r *http.Request) { t.Fatal("request should not be forwarded") }) defer st.Close() res, err := st.http2(requestParam{ name: "TestH2ResponseBeforeRequestEnd", noEndStream: true, }) if err != nil { t.Fatalf("Error st.http2() = %v", err) } if got, want := res.status, 404; got != want { t.Errorf("res.status: %v; want %v", got, want) } }
-- Test suite for testing interactions with API bindings local helpers = require('test.functional.helpers')(after_each) local Screen = require('test.functional.ui.screen') local funcs = helpers.funcs local meths = helpers.meths local command = helpers.command local insert = helpers.insert local clear = helpers.clear local eq = helpers.eq local ok = helpers.ok local eval = helpers.eval local feed = helpers.feed local pcall_err = helpers.pcall_err local exec_lua = helpers.exec_lua local matches = helpers.matches local exec = helpers.exec local NIL = helpers.NIL local retry = helpers.retry local next_msg = helpers.next_msg local remove_trace = helpers.remove_trace local mkdir_p = helpers.mkdir_p local rmdir = helpers.rmdir local write_file = helpers.write_file describe('lua stdlib', function() before_each(clear) -- İ: `tolower("İ")` is `i` which has length 1 while `İ` itself has -- length 2 (in bytes). -- Ⱥ: `tolower("Ⱥ")` is `ⱥ` which has length 2 while `Ⱥ` itself has -- length 3 (in bytes). -- -- Note: 'i' !=? 'İ' and 'ⱥ' !=? 'Ⱥ' on some systems. -- Note: Built-in Nvim comparison (on systems lacking `strcasecmp`) works -- only on ASCII characters. it('vim.stricmp', function() eq(0, funcs.luaeval('vim.stricmp("a", "A")')) eq(0, funcs.luaeval('vim.stricmp("A", "a")')) eq(0, funcs.luaeval('vim.stricmp("a", "a")')) eq(0, funcs.luaeval('vim.stricmp("A", "A")')) eq(0, funcs.luaeval('vim.stricmp("", "")')) eq(0, funcs.luaeval('vim.stricmp("\\0", "\\0")')) eq(0, funcs.luaeval('vim.stricmp("\\0\\0", "\\0\\0")')) eq(0, funcs.luaeval('vim.stricmp("\\0\\0\\0", "\\0\\0\\0")')) eq(0, funcs.luaeval('vim.stricmp("\\0\\0\\0A", "\\0\\0\\0a")')) eq(0, funcs.luaeval('vim.stricmp("\\0\\0\\0a", "\\0\\0\\0A")')) eq(0, funcs.luaeval('vim.stricmp("\\0\\0\\0a", "\\0\\0\\0a")')) eq(0, funcs.luaeval('vim.stricmp("a\\0", "A\\0")')) eq(0, funcs.luaeval('vim.stricmp("A\\0", "a\\0")')) eq(0, funcs.luaeval('vim.stricmp("a\\0", "a\\0")')) eq(0, funcs.luaeval('vim.stricmp("A\\0", "A\\0")')) eq(0, funcs.luaeval('vim.stricmp("\\0a", "\\0A")')) eq(0, funcs.luaeval('vim.stricmp("\\0A", "\\0a")')) eq(0, funcs.luaeval('vim.stricmp("\\0a", "\\0a")')) eq(0, funcs.luaeval('vim.stricmp("\\0A", "\\0A")')) eq(0, funcs.luaeval('vim.stricmp("\\0a\\0", "\\0A\\0")')) eq(0, funcs.luaeval('vim.stricmp("\\0A\\0", "\\0a\\0")')) eq(0, funcs.luaeval('vim.stricmp("\\0a\\0", "\\0a\\0")')) eq(0, funcs.luaeval('vim.stricmp("\\0A\\0", "\\0A\\0")')) eq(-1, funcs.luaeval('vim.stricmp("a", "B")')) eq(-1, funcs.luaeval('vim.stricmp("A", "b")')) eq(-1, funcs.luaeval('vim.stricmp("a", "b")')) eq(-1, funcs.luaeval('vim.stricmp("A", "B")')) eq(-1, funcs.luaeval('vim.stricmp("", "\\0")')) eq(-1, funcs.luaeval('vim.stricmp("\\0", "\\0\\0")')) eq(-1, funcs.luaeval('vim.stricmp("\\0\\0", "\\0\\0\\0")')) eq(-1, funcs.luaeval('vim.stricmp("\\0\\0\\0A", "\\0\\0\\0b")')) eq(-1, funcs.luaeval('vim.stricmp("\\0\\0\\0a", "\\0\\0\\0B")')) eq(-1, funcs.luaeval('vim.stricmp("\\0\\0\\0a", "\\0\\0\\0b")')) eq(-1, funcs.luaeval('vim.stricmp("a\\0", "B\\0")')) eq(-1, funcs.luaeval('vim.stricmp("A\\0", "b\\0")')) eq(-1, funcs.luaeval('vim.stricmp("a\\0", "b\\0")')) eq(-1, funcs.luaeval('vim.stricmp("A\\0", "B\\0")')) eq(-1, funcs.luaeval('vim.stricmp("\\0a", "\\0B")')) eq(-1, funcs.luaeval('vim.stricmp("\\0A", "\\0b")')) eq(-1, funcs.luaeval('vim.stricmp("\\0a", "\\0b")')) eq(-1, funcs.luaeval('vim.stricmp("\\0A", "\\0B")')) eq(-1, funcs.luaeval('vim.stricmp("\\0a\\0", "\\0B\\0")')) eq(-1, funcs.luaeval('vim.stricmp("\\0A\\0", "\\0b\\0")')) eq(-1, funcs.luaeval('vim.stricmp("\\0a\\0", "\\0b\\0")')) eq(-1, funcs.luaeval('vim.stricmp("\\0A\\0", "\\0B\\0")')) eq(1, funcs.luaeval('vim.stricmp("c", "B")')) eq(1, funcs.luaeval('vim.stricmp("C", "b")')) eq(1, funcs.luaeval('vim.stricmp("c", "b")')) eq(1, funcs.luaeval('vim.stricmp("C", "B")')) eq(1, funcs.luaeval('vim.stricmp("\\0", "")')) eq(1, funcs.luaeval('vim.stricmp("\\0\\0", "\\0")')) eq(1, funcs.luaeval('vim.stricmp("\\0\\0\\0", "\\0\\0")')) eq(1, funcs.luaeval('vim.stricmp("\\0\\0\\0\\0", "\\0\\0\\0")')) eq(1, funcs.luaeval('vim.stricmp("\\0\\0\\0C", "\\0\\0\\0b")')) eq(1, funcs.luaeval('vim.stricmp("\\0\\0\\0c", "\\0\\0\\0B")')) eq(1, funcs.luaeval('vim.stricmp("\\0\\0\\0c", "\\0\\0\\0b")')) eq(1, funcs.luaeval('vim.stricmp("c\\0", "B\\0")')) eq(1, funcs.luaeval('vim.stricmp("C\\0", "b\\0")')) eq(1, funcs.luaeval('vim.stricmp("c\\0", "b\\0")')) eq(1, funcs.luaeval('vim.stricmp("C\\0", "B\\0")')) eq(1, funcs.luaeval('vim.stricmp("c\\0", "B")')) eq(1, funcs.luaeval('vim.stricmp("C\\0", "b")')) eq(1, funcs.luaeval('vim.stricmp("c\\0", "b")')) eq(1, funcs.luaeval('vim.stricmp("C\\0", "B")')) eq(1, funcs.luaeval('vim.stricmp("\\0c", "\\0B")')) eq(1, funcs.luaeval('vim.stricmp("\\0C", "\\0b")')) eq(1, funcs.luaeval('vim.stricmp("\\0c", "\\0b")')) eq(1, funcs.luaeval('vim.stricmp("\\0C", "\\0B")')) eq(1, funcs.luaeval('vim.stricmp("\\0c\\0", "\\0B\\0")')) eq(1, funcs.luaeval('vim.stricmp("\\0C\\0", "\\0b\\0")')) eq(1, funcs.luaeval('vim.stricmp("\\0c\\0", "\\0b\\0")')) eq(1, funcs.luaeval('vim.stricmp("\\0C\\0", "\\0B\\0")')) end) it('vim.startswith', function() eq(true, funcs.luaeval('vim.startswith("123", "1")')) eq(true, funcs.luaeval('vim.startswith("123", "")')) eq(true, funcs.luaeval('vim.startswith("123", "123")')) eq(true, funcs.luaeval('vim.startswith("", "")')) eq(false, funcs.luaeval('vim.startswith("123", " ")')) eq(false, funcs.luaeval('vim.startswith("123", "2")')) eq(false, funcs.luaeval('vim.startswith("123", "1234")')) matches("prefix: expected string, got nil", pcall_err(exec_lua, 'return vim.startswith("123", nil)')) matches("s: expected string, got nil", pcall_err(exec_lua, 'return vim.startswith(nil, "123")')) end) it('vim.endswith', function() eq(true, funcs.luaeval('vim.endswith("123", "3")')) eq(true, funcs.luaeval('vim.endswith("123", "")')) eq(true, funcs.luaeval('vim.endswith("123", "123")')) eq(true, funcs.luaeval('vim.endswith("", "")')) eq(false, funcs.luaeval('vim.endswith("123", " ")')) eq(false, funcs.luaeval('vim.endswith("123", "2")')) eq(false, funcs.luaeval('vim.endswith("123", "1234")')) matches("suffix: expected string, got nil", pcall_err(exec_lua, 'return vim.endswith("123", nil)')) matches("s: expected string, got nil", pcall_err(exec_lua, 'return vim.endswith(nil, "123")')) end) it("vim.str_utfindex/str_byteindex", function() exec_lua([[_G.test_text = "xy åäö ɧ 汉语 ↥ 🤦x🦄 å بِيَّ"]]) local indicies32 = {[0]=0,1,2,3,5,7,9,10,12,13,16,19,20,23,24,28,29,33,34,35,37,38,40,42,44,46,48} local indicies16 = {[0]=0,1,2,3,5,7,9,10,12,13,16,19,20,23,24,28,28,29,33,33,34,35,37,38,40,42,44,46,48} for i,k in pairs(indicies32) do eq(k, exec_lua("return vim.str_byteindex(_G.test_text, ...)", i), i) end for i,k in pairs(indicies16) do eq(k, exec_lua("return vim.str_byteindex(_G.test_text, ..., true)", i), i) end local i32, i16 = 0, 0 for k = 0,48 do if indicies32[i32] < k then i32 = i32 + 1 end if indicies16[i16] < k then i16 = i16 + 1 if indicies16[i16+1] == indicies16[i16] then i16 = i16 + 1 end end eq({i32, i16}, exec_lua("return {vim.str_utfindex(_G.test_text, ...)}", k), k) end end) it("vim.str_utf_start", function() exec_lua([[_G.test_text = "xy åäö ɧ 汉语 ↥ 🤦x🦄 å بِيَّ"]]) local expected_positions = {0,0,0,0,-1,0,-1,0,-1,0,0,-1,0,0,-1,-2,0,-1,-2,0,0,-1,-2,0,0,-1,-2,-3,0,0,-1,-2,-3,0,0,0,-1,0,0,-1,0,-1,0,-1,0,-1,0,-1} eq(expected_positions, exec_lua([[ local start_codepoint_positions = {} for idx = 1, #_G.test_text do table.insert(start_codepoint_positions, vim.str_utf_start(_G.test_text, idx)) end return start_codepoint_positions ]])) end) it("vim.str_utf_end", function() exec_lua([[_G.test_text = "xy åäö ɧ 汉语 ↥ 🤦x🦄 å بِيَّ"]]) local expected_positions = {0,0,0,1,0,1,0,1,0,0,1,0,0,2,1,0,2,1,0,0,2,1,0,0,3,2,1,0,0,3,2,1,0,0,0,1,0,0,1,0,1,0,1,0,1,0,1,0 } eq(expected_positions, exec_lua([[ local end_codepoint_positions = {} for idx = 1, #_G.test_text do table.insert(end_codepoint_positions, vim.str_utf_end(_G.test_text, idx)) end return end_codepoint_positions ]])) end) it("vim.str_utf_pos", function() exec_lua([[_G.test_text = "xy åäö ɧ 汉语 ↥ 🤦x🦄 å بِيَّ"]]) local expected_positions = { 1,2,3,4,6,8,10,11,13,14,17,20,21,24,25,29,30,34,35,36,38,39,41,43,45,47 } eq(expected_positions, exec_lua("return vim.str_utf_pos(_G.test_text)")) end) it("vim.schedule", function() exec_lua([[ test_table = {} vim.schedule(function() table.insert(test_table, "xx") end) table.insert(test_table, "yy") ]]) eq({"yy","xx"}, exec_lua("return test_table")) -- Validates args. matches('vim.schedule: expected function', pcall_err(exec_lua, "vim.schedule('stringly')")) matches('vim.schedule: expected function', pcall_err(exec_lua, "vim.schedule()")) exec_lua([[ vim.schedule(function() error("big failure\nvery async") end) ]]) feed("<cr>") matches('big failure\nvery async', remove_trace(eval("v:errmsg"))) local screen = Screen.new(60,5) screen:set_default_attr_ids({ [1] = {bold = true, foreground = Screen.colors.Blue1}, [2] = {bold = true, reverse = true}, [3] = {foreground = Screen.colors.Grey100, background = Screen.colors.Red}, [4] = {bold = true, foreground = Screen.colors.SeaGreen4}, }) screen:attach() screen:expect{grid=[[ ^ | {1:~ }| {1:~ }| {1:~ }| | ]]} -- nvim_command causes a vimL exception, check that it is properly caught -- and propagated as an error message in async contexts.. #10809 exec_lua([[ vim.schedule(function() vim.api.nvim_command(":echo 'err") end) ]]) screen:expect{grid=[[ {3:stack traceback:} | {3: [C]: in function 'nvim_command'} | {3: [string "<nvim>"]:2: in function <[string "<nvim>"]:}| {3:1>} | {4:Press ENTER or type command to continue}^ | ]]} end) it("vim.split", function() local split = function(str, sep, kwargs) return exec_lua('return vim.split(...)', str, sep, kwargs) end local tests = { { "a,b", ",", false, false, { 'a', 'b' } }, { ":aa::bb:", ":", false, false, { '', 'aa', '', 'bb', '' } }, { ":aa::bb:", ":", false, true, { 'aa', '', 'bb' } }, { "::ee::ff:", ":", false, false, { '', '', 'ee', '', 'ff', '' } }, { "::ee::ff:", ":", false, true, { 'ee', '', 'ff' } }, { "ab", ".", false, false, { '', '', '' } }, { "a1b2c", "[0-9]", false, false, { 'a', 'b', 'c' } }, { "xy", "", false, false, { 'x', 'y' } }, { "here be dragons", " ", false, false, { "here", "be", "dragons"} }, { "axaby", "ab?", false, false, { '', 'x', 'y' } }, { "f v2v v3v w2w ", "([vw])2%1", false, false, { 'f ', ' v3v ', ' ' } }, { "", "", false, false, {} }, { "", "a", false, false, { '' } }, { "x*yz*oo*l", "*", true, false, { 'x', 'yz', 'oo', 'l' } }, } for _, t in ipairs(tests) do eq(t[5], split(t[1], t[2], {plain=t[3], trimempty=t[4]})) end -- Test old signature eq({'x', 'yz', 'oo', 'l'}, split("x*yz*oo*l", "*", true)) local loops = { { "abc", ".-" }, } for _, t in ipairs(loops) do matches("Infinite loop detected", pcall_err(split, t[1], t[2])) end -- Validates args. eq(true, pcall(split, 'string', 'string')) matches('s: expected string, got number', pcall_err(split, 1, 'string')) matches('sep: expected string, got number', pcall_err(split, 'string', 1)) matches('kwargs: expected table, got number', pcall_err(split, 'string', 'string', 1)) end) it('vim.trim', function() local trim = function(s) return exec_lua('return vim.trim(...)', s) end local trims = { { " a", "a" }, { " b ", "b" }, { "\tc" , "c" }, { "r\n", "r" }, } for _, t in ipairs(trims) do assert(t[2], trim(t[1])) end -- Validates args. matches('s: expected string, got number', pcall_err(trim, 2)) end) it('vim.inspect', function() -- just make sure it basically works, it has its own test suite local inspect = function(t, opts) return exec_lua('return vim.inspect(...)', t, opts) end eq('2', inspect(2)) eq('{+a = {+b = 1+}+}', inspect({ a = { b = 1 } }, { newline = '+', indent = '' })) -- special value vim.inspect.KEY works eq('{ KEY_a = "x", KEY_b = "y"}', exec_lua([[ return vim.inspect({a="x", b="y"}, {newline = '', process = function(item, path) if path[#path] == vim.inspect.KEY then return 'KEY_'..item end return item end}) ]])) end) it("vim.deepcopy", function() ok(exec_lua([[ local a = { x = { 1, 2 }, y = 5} local b = vim.deepcopy(a) return b.x[1] == 1 and b.x[2] == 2 and b.y == 5 and vim.tbl_count(b) == 2 and tostring(a) ~= tostring(b) ]])) ok(exec_lua([[ local a = {} local b = vim.deepcopy(a) return vim.tbl_islist(b) and vim.tbl_count(b) == 0 and tostring(a) ~= tostring(b) ]])) ok(exec_lua([[ local a = vim.empty_dict() local b = vim.deepcopy(a) return not vim.tbl_islist(b) and vim.tbl_count(b) == 0 ]])) ok(exec_lua([[ local a = {x = vim.empty_dict(), y = {}} local b = vim.deepcopy(a) return not vim.tbl_islist(b.x) and vim.tbl_islist(b.y) and vim.tbl_count(b) == 2 and tostring(a) ~= tostring(b) ]])) ok(exec_lua([[ local f1 = function() return 1 end local f2 = function() return 2 end local t1 = {f = f1} local t2 = vim.deepcopy(t1) t1.f = f2 return t1.f() ~= t2.f() ]])) ok(exec_lua([[ local t1 = {a = 5} t1.self = t1 local t2 = vim.deepcopy(t1) return t2.self == t2 and t2.self ~= t1 ]])) ok(exec_lua([[ local mt = {mt=true} local t1 = setmetatable({a = 5}, mt) local t2 = vim.deepcopy(t1) return getmetatable(t2) == mt ]])) matches('Cannot deepcopy object of type thread', pcall_err(exec_lua, [[ local thread = coroutine.create(function () return 0 end) local t = {thr = thread} vim.deepcopy(t) ]])) end) it('vim.pesc', function() eq('foo%-bar', exec_lua([[return vim.pesc('foo-bar')]])) eq('foo%%%-bar', exec_lua([[return vim.pesc(vim.pesc('foo-bar'))]])) -- Validates args. matches('s: expected string, got number', pcall_err(exec_lua, [[return vim.pesc(2)]])) end) it('vim.tbl_keys', function() eq({}, exec_lua("return vim.tbl_keys({})")) for _, v in pairs(exec_lua("return vim.tbl_keys({'a', 'b', 'c'})")) do eq(true, exec_lua("return vim.tbl_contains({ 1, 2, 3 }, ...)", v)) end for _, v in pairs(exec_lua("return vim.tbl_keys({a=1, b=2, c=3})")) do eq(true, exec_lua("return vim.tbl_contains({ 'a', 'b', 'c' }, ...)", v)) end end) it('vim.tbl_values', function() eq({}, exec_lua("return vim.tbl_values({})")) for _, v in pairs(exec_lua("return vim.tbl_values({'a', 'b', 'c'})")) do eq(true, exec_lua("return vim.tbl_contains({ 'a', 'b', 'c' }, ...)", v)) end for _, v in pairs(exec_lua("return vim.tbl_values({a=1, b=2, c=3})")) do eq(true, exec_lua("return vim.tbl_contains({ 1, 2, 3 }, ...)", v)) end end) it('vim.tbl_map', function() eq({}, exec_lua([[ return vim.tbl_map(function(v) return v * 2 end, {}) ]])) eq({2, 4, 6}, exec_lua([[ return vim.tbl_map(function(v) return v * 2 end, {1, 2, 3}) ]])) eq({{i=2}, {i=4}, {i=6}}, exec_lua([[ return vim.tbl_map(function(v) return { i = v.i * 2 } end, {{i=1}, {i=2}, {i=3}}) ]])) end) it('vim.tbl_filter', function() eq({}, exec_lua([[ return vim.tbl_filter(function(v) return (v % 2) == 0 end, {}) ]])) eq({2}, exec_lua([[ return vim.tbl_filter(function(v) return (v % 2) == 0 end, {1, 2, 3}) ]])) eq({{i=2}}, exec_lua([[ return vim.tbl_filter(function(v) return (v.i % 2) == 0 end, {{i=1}, {i=2}, {i=3}}) ]])) end) it('vim.tbl_islist', function() eq(true, exec_lua("return vim.tbl_islist({})")) eq(false, exec_lua("return vim.tbl_islist(vim.empty_dict())")) eq(true, exec_lua("return vim.tbl_islist({'a', 'b', 'c'})")) eq(false, exec_lua("return vim.tbl_islist({'a', '32', a='hello', b='baz'})")) eq(false, exec_lua("return vim.tbl_islist({1, a='hello', b='baz'})")) eq(false, exec_lua("return vim.tbl_islist({a='hello', b='baz', 1})")) eq(false, exec_lua("return vim.tbl_islist({1, 2, nil, a='hello'})")) end) it('vim.tbl_isempty', function() eq(true, exec_lua("return vim.tbl_isempty({})")) eq(false, exec_lua("return vim.tbl_isempty({ 1, 2, 3 })")) eq(false, exec_lua("return vim.tbl_isempty({a=1, b=2, c=3})")) end) it('vim.tbl_get', function() eq(true, exec_lua("return vim.tbl_get({ test = { nested_test = true }}, 'test', 'nested_test')")) eq(NIL, exec_lua("return vim.tbl_get({ unindexable = true }, 'unindexable', 'missing_key')")) eq(NIL, exec_lua("return vim.tbl_get({ unindexable = 1 }, 'unindexable', 'missing_key')")) eq(NIL, exec_lua("return vim.tbl_get({ unindexable = coroutine.create(function () end) }, 'unindexable', 'missing_key')")) eq(NIL, exec_lua("return vim.tbl_get({ unindexable = function () end }, 'unindexable', 'missing_key')")) eq(NIL, exec_lua("return vim.tbl_get({}, 'missing_key')")) eq(NIL, exec_lua("return vim.tbl_get({})")) end) it('vim.tbl_extend', function() ok(exec_lua([[ local a = {x = 1} local b = {y = 2} local c = vim.tbl_extend("keep", a, b) return c.x == 1 and b.y == 2 and vim.tbl_count(c) == 2 ]])) ok(exec_lua([[ local a = {x = 1} local b = {y = 2} local c = {z = 3} local d = vim.tbl_extend("keep", a, b, c) return d.x == 1 and d.y == 2 and d.z == 3 and vim.tbl_count(d) == 3 ]])) ok(exec_lua([[ local a = {x = 1} local b = {x = 3} local c = vim.tbl_extend("keep", a, b) return c.x == 1 and vim.tbl_count(c) == 1 ]])) ok(exec_lua([[ local a = {x = 1} local b = {x = 3} local c = vim.tbl_extend("force", a, b) return c.x == 3 and vim.tbl_count(c) == 1 ]])) ok(exec_lua([[ local a = vim.empty_dict() local b = {} local c = vim.tbl_extend("keep", a, b) return not vim.tbl_islist(c) and vim.tbl_count(c) == 0 ]])) ok(exec_lua([[ local a = {} local b = vim.empty_dict() local c = vim.tbl_extend("keep", a, b) return vim.tbl_islist(c) and vim.tbl_count(c) == 0 ]])) ok(exec_lua([[ local a = {x = {a = 1, b = 2}} local b = {x = {a = 2, c = {y = 3}}} local c = vim.tbl_extend("keep", a, b) local count = 0 for _ in pairs(c) do count = count + 1 end return c.x.a == 1 and c.x.b == 2 and c.x.c == nil and count == 1 ]])) matches('invalid "behavior": nil', pcall_err(exec_lua, [[ return vim.tbl_extend() ]]) ) matches('wrong number of arguments %(given 1, expected at least 3%)', pcall_err(exec_lua, [[ return vim.tbl_extend("keep") ]]) ) matches('wrong number of arguments %(given 2, expected at least 3%)', pcall_err(exec_lua, [[ return vim.tbl_extend("keep", {}) ]]) ) end) it('vim.tbl_deep_extend', function() ok(exec_lua([[ local a = {x = {a = 1, b = 2}} local b = {x = {a = 2, c = {y = 3}}} local c = vim.tbl_deep_extend("keep", a, b) local count = 0 for _ in pairs(c) do count = count + 1 end return c.x.a == 1 and c.x.b == 2 and c.x.c.y == 3 and count == 1 ]])) ok(exec_lua([[ local a = {x = {a = 1, b = 2}} local b = {x = {a = 2, c = {y = 3}}} local c = vim.tbl_deep_extend("force", a, b) local count = 0 for _ in pairs(c) do count = count + 1 end return c.x.a == 2 and c.x.b == 2 and c.x.c.y == 3 and count == 1 ]])) ok(exec_lua([[ local a = {x = {a = 1, b = 2}} local b = {x = {a = 2, c = {y = 3}}} local c = {x = {c = 4, d = {y = 4}}} local d = vim.tbl_deep_extend("keep", a, b, c) local count = 0 for _ in pairs(c) do count = count + 1 end return d.x.a == 1 and d.x.b == 2 and d.x.c.y == 3 and d.x.d.y == 4 and count == 1 ]])) ok(exec_lua([[ local a = {x = {a = 1, b = 2}} local b = {x = {a = 2, c = {y = 3}}} local c = {x = {c = 4, d = {y = 4}}} local d = vim.tbl_deep_extend("force", a, b, c) local count = 0 for _ in pairs(c) do count = count + 1 end return d.x.a == 2 and d.x.b == 2 and d.x.c == 4 and d.x.d.y == 4 and count == 1 ]])) ok(exec_lua([[ local a = vim.empty_dict() local b = {} local c = vim.tbl_deep_extend("keep", a, b) local count = 0 for _ in pairs(c) do count = count + 1 end return not vim.tbl_islist(c) and count == 0 ]])) ok(exec_lua([[ local a = {} local b = vim.empty_dict() local c = vim.tbl_deep_extend("keep", a, b) local count = 0 for _ in pairs(c) do count = count + 1 end return vim.tbl_islist(c) and count == 0 ]])) eq({a = {b = 1}}, exec_lua([[ local a = { a = { b = 1 } } local b = { a = {} } return vim.tbl_deep_extend("force", a, b) ]])) eq({a = {b = 1}}, exec_lua([[ local a = { a = 123 } local b = { a = { b = 1} } return vim.tbl_deep_extend("force", a, b) ]])) ok(exec_lua([[ local a = { a = {[2] = 3} } local b = { a = {[3] = 3} } local c = vim.tbl_deep_extend("force", a, b) return vim.deep_equal(c, {a = {[3] = 3}}) ]])) eq({a = 123}, exec_lua([[ local a = { a = { b = 1} } local b = { a = 123 } return vim.tbl_deep_extend("force", a, b) ]])) matches('invalid "behavior": nil', pcall_err(exec_lua, [[ return vim.tbl_deep_extend() ]]) ) matches('wrong number of arguments %(given 1, expected at least 3%)', pcall_err(exec_lua, [[ return vim.tbl_deep_extend("keep") ]]) ) matches('wrong number of arguments %(given 2, expected at least 3%)', pcall_err(exec_lua, [[ return vim.tbl_deep_extend("keep", {}) ]]) ) end) it('vim.tbl_count', function() eq(0, exec_lua [[ return vim.tbl_count({}) ]]) eq(0, exec_lua [[ return vim.tbl_count(vim.empty_dict()) ]]) eq(0, exec_lua [[ return vim.tbl_count({nil}) ]]) eq(0, exec_lua [[ return vim.tbl_count({a=nil}) ]]) eq(1, exec_lua [[ return vim.tbl_count({1}) ]]) eq(2, exec_lua [[ return vim.tbl_count({1, 2}) ]]) eq(2, exec_lua [[ return vim.tbl_count({1, nil, 3}) ]]) eq(1, exec_lua [[ return vim.tbl_count({a=1}) ]]) eq(2, exec_lua [[ return vim.tbl_count({a=1, b=2}) ]]) eq(2, exec_lua [[ return vim.tbl_count({a=1, b=nil, c=3}) ]]) end) it('vim.deep_equal', function() eq(true, exec_lua [[ return vim.deep_equal({a=1}, {a=1}) ]]) eq(true, exec_lua [[ return vim.deep_equal({a={b=1}}, {a={b=1}}) ]]) eq(true, exec_lua [[ return vim.deep_equal({a={b={nil}}}, {a={b={}}}) ]]) eq(true, exec_lua [[ return vim.deep_equal({a=1, [5]=5}, {nil,nil,nil,nil,5,a=1}) ]]) eq(false, exec_lua [[ return vim.deep_equal(1, {nil,nil,nil,nil,5,a=1}) ]]) eq(false, exec_lua [[ return vim.deep_equal(1, 3) ]]) eq(false, exec_lua [[ return vim.deep_equal(nil, 3) ]]) eq(false, exec_lua [[ return vim.deep_equal({a=1}, {a=2}) ]]) end) it('vim.list_extend', function() eq({1,2,3}, exec_lua [[ return vim.list_extend({1}, {2,3}) ]]) matches('src: expected table, got nil', pcall_err(exec_lua, [[ return vim.list_extend({1}, nil) ]])) eq({1,2}, exec_lua [[ return vim.list_extend({1}, {2;a=1}) ]]) eq(true, exec_lua [[ local a = {1} return vim.list_extend(a, {2;a=1}) == a ]]) eq({2}, exec_lua [[ return vim.list_extend({}, {2;a=1}, 1) ]]) eq({}, exec_lua [[ return vim.list_extend({}, {2;a=1}, 2) ]]) eq({}, exec_lua [[ return vim.list_extend({}, {2;a=1}, 1, -1) ]]) eq({2}, exec_lua [[ return vim.list_extend({}, {2;a=1}, -1, 2) ]]) end) it('vim.tbl_add_reverse_lookup', function() eq(true, exec_lua [[ local a = { A = 1 } vim.tbl_add_reverse_lookup(a) return vim.deep_equal(a, { A = 1; [1] = 'A'; }) ]]) -- Throw an error for trying to do it twice (run into an existing key) local code = [[ local res = {} local a = { A = 1 } vim.tbl_add_reverse_lookup(a) assert(vim.deep_equal(a, { A = 1; [1] = 'A'; })) vim.tbl_add_reverse_lookup(a) ]] matches('The reverse lookup found an existing value for "[1A]" while processing key "[1A]"$', pcall_err(exec_lua, code)) end) it('vim.call, vim.fn', function() eq(true, exec_lua([[return vim.call('sin', 0.0) == 0.0 ]])) eq(true, exec_lua([[return vim.fn.sin(0.0) == 0.0 ]])) -- compat: nvim_call_function uses "special" value for vimL float eq(false, exec_lua([[return vim.api.nvim_call_function('sin', {0.0}) == 0.0 ]])) exec([[ func! FooFunc(test) let g:test = a:test return {} endfunc func! VarArg(...) return a:000 endfunc func! Nilly() return [v:null, v:null] endfunc ]]) eq(true, exec_lua([[return next(vim.fn.FooFunc(3)) == nil ]])) eq(3, eval("g:test")) -- compat: nvim_call_function uses "special" value for empty dict eq(true, exec_lua([[return next(vim.api.nvim_call_function("FooFunc", {5})) == true ]])) eq(5, eval("g:test")) eq({2, "foo", true}, exec_lua([[return vim.fn.VarArg(2, "foo", true)]])) eq(true, exec_lua([[ local x = vim.fn.Nilly() return #x == 2 and x[1] == vim.NIL and x[2] == vim.NIL ]])) eq({NIL, NIL}, exec_lua([[return vim.fn.Nilly()]])) -- error handling eq({false, 'Vim:E897: List or Blob required'}, exec_lua([[return {pcall(vim.fn.add, "aa", "bb")}]])) -- conversion between LuaRef and Vim Funcref eq(true, exec_lua([[ local x = vim.fn.VarArg(function() return 'foo' end, function() return 'bar' end) return #x == 2 and x[1]() == 'foo' and x[2]() == 'bar' ]])) end) it('vim.fn should error when calling API function', function() matches('Tried to call API function with vim.fn: use vim.api.nvim_get_current_line instead', pcall_err(exec_lua, "vim.fn.nvim_get_current_line()")) end) it('vim.rpcrequest and vim.rpcnotify', function() exec_lua([[ chan = vim.fn.jobstart({'cat'}, {rpc=true}) vim.rpcrequest(chan, 'nvim_set_current_line', 'meow') ]]) eq('meow', meths.get_current_line()) command("let x = [3, 'aa', v:true, v:null]") eq(true, exec_lua([[ ret = vim.rpcrequest(chan, 'nvim_get_var', 'x') return #ret == 4 and ret[1] == 3 and ret[2] == 'aa' and ret[3] == true and ret[4] == vim.NIL ]])) eq({3, 'aa', true, NIL}, exec_lua([[return ret]])) eq({{}, {}, false, true}, exec_lua([[ vim.rpcrequest(chan, 'nvim_exec', 'let xx = {}\nlet yy = []', false) local dict = vim.rpcrequest(chan, 'nvim_eval', 'xx') local list = vim.rpcrequest(chan, 'nvim_eval', 'yy') return {dict, list, vim.tbl_islist(dict), vim.tbl_islist(list)} ]])) exec_lua([[ vim.rpcrequest(chan, 'nvim_set_var', 'aa', {}) vim.rpcrequest(chan, 'nvim_set_var', 'bb', vim.empty_dict()) ]]) eq({1, 1}, eval('[type(g:aa) == type([]), type(g:bb) == type({})]')) -- error handling eq({false, 'Invalid channel: 23'}, exec_lua([[return {pcall(vim.rpcrequest, 23, 'foo')}]])) eq({false, 'Invalid channel: 23'}, exec_lua([[return {pcall(vim.rpcnotify, 23, 'foo')}]])) eq({false, 'Vim:E121: Undefined variable: foobar'}, exec_lua([[return {pcall(vim.rpcrequest, chan, 'nvim_eval', "foobar")}]])) -- rpcnotify doesn't wait on request eq('meow', exec_lua([[ vim.rpcnotify(chan, 'nvim_set_current_line', 'foo') return vim.api.nvim_get_current_line() ]])) retry(10, nil, function() eq('foo', meths.get_current_line()) end) local screen = Screen.new(50,7) screen:set_default_attr_ids({ [1] = {bold = true, foreground = Screen.colors.Blue1}, [2] = {bold = true, reverse = true}, [3] = {foreground = Screen.colors.Grey100, background = Screen.colors.Red}, [4] = {bold = true, foreground = Screen.colors.SeaGreen4}, }) screen:attach() exec_lua([[ timer = vim.loop.new_timer() timer:start(20, 0, function () -- notify ok (executed later when safe) vim.rpcnotify(chan, 'nvim_set_var', 'yy', {3, vim.NIL}) -- rpcrequest an error vim.rpcrequest(chan, 'nvim_set_current_line', 'bork') end) ]]) screen:expect{grid=[[ {3:[string "<nvim>"]:6: E5560: rpcrequest must not be}| {3: called in a lua loop callback} | {3:stack traceback:} | {3: [C]: in function 'rpcrequest'} | {3: [string "<nvim>"]:6: in function <[string }| {3:"<nvim>"]:2>} | {4:Press ENTER or type command to continue}^ | ]]} feed('<cr>') eq({3, NIL}, meths.get_var('yy')) exec_lua([[timer:close()]]) end) it('vim.empty_dict()', function() eq({true, false, true, true}, exec_lua([[ vim.api.nvim_set_var('listy', {}) vim.api.nvim_set_var('dicty', vim.empty_dict()) local listy = vim.fn.eval("listy") local dicty = vim.fn.eval("dicty") return {vim.tbl_islist(listy), vim.tbl_islist(dicty), next(listy) == nil, next(dicty) == nil} ]])) -- vim.empty_dict() gives new value each time -- equality is not overriden (still by ref) -- non-empty table uses the usual heuristics (ignores the tag) eq({false, {"foo"}, {namey="bar"}}, exec_lua([[ local aa = vim.empty_dict() local bb = vim.empty_dict() local equally = (aa == bb) aa[1] = "foo" bb["namey"] = "bar" return {equally, aa, bb} ]])) eq("{ {}, vim.empty_dict() }", exec_lua("return vim.inspect({{}, vim.empty_dict()})")) eq('{}', exec_lua([[ return vim.fn.json_encode(vim.empty_dict()) ]])) eq('{"a": {}, "b": []}', exec_lua([[ return vim.fn.json_encode({a=vim.empty_dict(), b={}}) ]])) end) it('vim.validate', function() exec_lua("vim.validate{arg1={{}, 'table' }}") exec_lua("vim.validate{arg1={{}, 't' }}") exec_lua("vim.validate{arg1={nil, 't', true }}") exec_lua("vim.validate{arg1={{ foo='foo' }, 't' }}") exec_lua("vim.validate{arg1={{ 'foo' }, 't' }}") exec_lua("vim.validate{arg1={'foo', 'string' }}") exec_lua("vim.validate{arg1={'foo', 's' }}") exec_lua("vim.validate{arg1={'', 's' }}") exec_lua("vim.validate{arg1={nil, 's', true }}") exec_lua("vim.validate{arg1={1, 'number' }}") exec_lua("vim.validate{arg1={1, 'n' }}") exec_lua("vim.validate{arg1={0, 'n' }}") exec_lua("vim.validate{arg1={0.1, 'n' }}") exec_lua("vim.validate{arg1={nil, 'n', true }}") exec_lua("vim.validate{arg1={true, 'boolean' }}") exec_lua("vim.validate{arg1={true, 'b' }}") exec_lua("vim.validate{arg1={false, 'b' }}") exec_lua("vim.validate{arg1={nil, 'b', true }}") exec_lua("vim.validate{arg1={function()end, 'function' }}") exec_lua("vim.validate{arg1={function()end, 'f' }}") exec_lua("vim.validate{arg1={nil, 'f', true }}") exec_lua("vim.validate{arg1={nil, 'nil' }}") exec_lua("vim.validate{arg1={nil, 'nil', true }}") exec_lua("vim.validate{arg1={coroutine.create(function()end), 'thread' }}") exec_lua("vim.validate{arg1={nil, 'thread', true }}") exec_lua("vim.validate{arg1={{}, 't' }, arg2={ 'foo', 's' }}") exec_lua("vim.validate{arg1={2, function(a) return (a % 2) == 0 end, 'even number' }}") exec_lua("vim.validate{arg1={5, {'n', 's'} }, arg2={ 'foo', {'n', 's'} }}") matches('expected table, got number', pcall_err(exec_lua, "vim.validate{ 1, 'x' }")) matches('invalid type name: x', pcall_err(exec_lua, "vim.validate{ arg1={ 1, 'x' }}")) matches('invalid type name: 1', pcall_err(exec_lua, "vim.validate{ arg1={ 1, 1 }}")) matches('invalid type name: nil', pcall_err(exec_lua, "vim.validate{ arg1={ 1 }}")) -- Validated parameters are required by default. matches('arg1: expected string, got nil', pcall_err(exec_lua, "vim.validate{ arg1={ nil, 's' }}")) -- Explicitly required. matches('arg1: expected string, got nil', pcall_err(exec_lua, "vim.validate{ arg1={ nil, 's', false }}")) matches('arg1: expected table, got number', pcall_err(exec_lua, "vim.validate{arg1={1, 't'}}")) matches('arg2: expected string, got number', pcall_err(exec_lua, "vim.validate{arg1={{}, 't'}, arg2={1, 's'}}")) matches('arg2: expected string, got nil', pcall_err(exec_lua, "vim.validate{arg1={{}, 't'}, arg2={nil, 's'}}")) matches('arg2: expected string, got nil', pcall_err(exec_lua, "vim.validate{arg1={{}, 't'}, arg2={nil, 's'}}")) matches('arg1: expected even number, got 3', pcall_err(exec_lua, "vim.validate{arg1={3, function(a) return a == 1 end, 'even number'}}")) matches('arg1: expected %?, got 3', pcall_err(exec_lua, "vim.validate{arg1={3, function(a) return a == 1 end}}")) matches('arg1: expected number|string, got nil', pcall_err(exec_lua, "vim.validate{ arg1={ nil, {'n', 's'} }}")) -- Pass an additional message back. matches('arg1: expected %?, got 3. Info: TEST_MSG', pcall_err(exec_lua, "vim.validate{arg1={3, function(a) return a == 1, 'TEST_MSG' end}}")) end) it('vim.is_callable', function() eq(true, exec_lua("return vim.is_callable(function()end)")) eq(true, exec_lua([[ local meta = { __call = function()end } local function new_callable() return setmetatable({}, meta) end local callable = new_callable() return vim.is_callable(callable) ]])) eq(false, exec_lua("return vim.is_callable(1)")) eq(false, exec_lua("return vim.is_callable('foo')")) eq(false, exec_lua("return vim.is_callable({})")) end) it('vim.g', function() exec_lua [[ vim.api.nvim_set_var("testing", "hi") vim.api.nvim_set_var("other", 123) vim.api.nvim_set_var("floaty", 5120.1) vim.api.nvim_set_var("nullvar", vim.NIL) vim.api.nvim_set_var("to_delete", {hello="world"}) ]] eq('hi', funcs.luaeval "vim.g.testing") eq(123, funcs.luaeval "vim.g.other") eq(5120.1, funcs.luaeval "vim.g.floaty") eq(NIL, funcs.luaeval "vim.g.nonexistant") eq(NIL, funcs.luaeval "vim.g.nullvar") -- lost over RPC, so test locally: eq({false, true}, exec_lua [[ return {vim.g.nonexistant == vim.NIL, vim.g.nullvar == vim.NIL} ]]) eq({hello="world"}, funcs.luaeval "vim.g.to_delete") exec_lua [[ vim.g.to_delete = nil ]] eq(NIL, funcs.luaeval "vim.g.to_delete") matches([[attempt to index .* nil value]], pcall_err(exec_lua, 'return vim.g[0].testing')) exec_lua [[ local counter = 0 local function add_counter() counter = counter + 1 end local function get_counter() return counter end vim.g.AddCounter = add_counter vim.g.GetCounter = get_counter vim.g.funcs = {add = add_counter, get = get_counter} ]] eq(0, eval('g:GetCounter()')) eval('g:AddCounter()') eq(1, eval('g:GetCounter()')) eval('g:AddCounter()') eq(2, eval('g:GetCounter()')) exec_lua([[vim.g.AddCounter()]]) eq(3, exec_lua([[return vim.g.GetCounter()]])) exec_lua([[vim.api.nvim_get_var('AddCounter')()]]) eq(4, exec_lua([[return vim.api.nvim_get_var('GetCounter')()]])) exec_lua([[vim.g.funcs.add()]]) eq(5, exec_lua([[return vim.g.funcs.get()]])) exec_lua([[vim.api.nvim_get_var('funcs').add()]]) eq(6, exec_lua([[return vim.api.nvim_get_var('funcs').get()]])) exec_lua [[ local counter = 0 local function add_counter() counter = counter + 1 end local function get_counter() return counter end vim.api.nvim_set_var('AddCounter', add_counter) vim.api.nvim_set_var('GetCounter', get_counter) vim.api.nvim_set_var('funcs', {add = add_counter, get = get_counter}) ]] eq(0, eval('g:GetCounter()')) eval('g:AddCounter()') eq(1, eval('g:GetCounter()')) eval('g:AddCounter()') eq(2, eval('g:GetCounter()')) exec_lua([[vim.g.AddCounter()]]) eq(3, exec_lua([[return vim.g.GetCounter()]])) exec_lua([[vim.api.nvim_get_var('AddCounter')()]]) eq(4, exec_lua([[return vim.api.nvim_get_var('GetCounter')()]])) exec_lua([[vim.g.funcs.add()]]) eq(5, exec_lua([[return vim.g.funcs.get()]])) exec_lua([[vim.api.nvim_get_var('funcs').add()]]) eq(6, exec_lua([[return vim.api.nvim_get_var('funcs').get()]])) exec([[ function Test() endfunction function s:Test() endfunction let g:Unknown_func = function('Test') let g:Unknown_script_func = function('s:Test') ]]) eq(NIL, exec_lua([[return vim.g.Unknown_func]])) eq(NIL, exec_lua([[return vim.g.Unknown_script_func]])) -- Check if autoload works properly local pathsep = helpers.get_pathsep() local xconfig = 'Xhome' .. pathsep .. 'Xconfig' local xdata = 'Xhome' .. pathsep .. 'Xdata' local autoload_folder = table.concat({xconfig, 'nvim', 'autoload'}, pathsep) local autoload_file = table.concat({autoload_folder , 'testload.vim'}, pathsep) mkdir_p(autoload_folder) write_file(autoload_file , [[let testload#value = 2]]) clear{ args_rm={'-u'}, env={ XDG_CONFIG_HOME=xconfig, XDG_DATA_HOME=xdata } } eq(2, exec_lua("return vim.g['testload#value']")) rmdir('Xhome') end) it('vim.b', function() exec_lua [[ vim.api.nvim_buf_set_var(0, "testing", "hi") vim.api.nvim_buf_set_var(0, "other", 123) vim.api.nvim_buf_set_var(0, "floaty", 5120.1) vim.api.nvim_buf_set_var(0, "nullvar", vim.NIL) vim.api.nvim_buf_set_var(0, "to_delete", {hello="world"}) BUF = vim.api.nvim_create_buf(false, true) vim.api.nvim_buf_set_var(BUF, "testing", "bye") ]] eq('hi', funcs.luaeval "vim.b.testing") eq('bye', funcs.luaeval "vim.b[BUF].testing") eq(123, funcs.luaeval "vim.b.other") eq(5120.1, funcs.luaeval "vim.b.floaty") eq(NIL, funcs.luaeval "vim.b.nonexistant") eq(NIL, funcs.luaeval "vim.b[BUF].nonexistant") eq(NIL, funcs.luaeval "vim.b.nullvar") -- lost over RPC, so test locally: eq({false, true}, exec_lua [[ return {vim.b.nonexistant == vim.NIL, vim.b.nullvar == vim.NIL} ]]) matches([[attempt to index .* nil value]], pcall_err(exec_lua, 'return vim.b[BUF][0].testing')) eq({hello="world"}, funcs.luaeval "vim.b.to_delete") exec_lua [[ vim.b.to_delete = nil ]] eq(NIL, funcs.luaeval "vim.b.to_delete") exec_lua [[ local counter = 0 local function add_counter() counter = counter + 1 end local function get_counter() return counter end vim.b.AddCounter = add_counter vim.b.GetCounter = get_counter vim.b.funcs = {add = add_counter, get = get_counter} ]] eq(0, eval('b:GetCounter()')) eval('b:AddCounter()') eq(1, eval('b:GetCounter()')) eval('b:AddCounter()') eq(2, eval('b:GetCounter()')) exec_lua([[vim.b.AddCounter()]]) eq(3, exec_lua([[return vim.b.GetCounter()]])) exec_lua([[vim.api.nvim_buf_get_var(0, 'AddCounter')()]]) eq(4, exec_lua([[return vim.api.nvim_buf_get_var(0, 'GetCounter')()]])) exec_lua([[vim.b.funcs.add()]]) eq(5, exec_lua([[return vim.b.funcs.get()]])) exec_lua([[vim.api.nvim_buf_get_var(0, 'funcs').add()]]) eq(6, exec_lua([[return vim.api.nvim_buf_get_var(0, 'funcs').get()]])) exec_lua [[ local counter = 0 local function add_counter() counter = counter + 1 end local function get_counter() return counter end vim.api.nvim_buf_set_var(0, 'AddCounter', add_counter) vim.api.nvim_buf_set_var(0, 'GetCounter', get_counter) vim.api.nvim_buf_set_var(0, 'funcs', {add = add_counter, get = get_counter}) ]] eq(0, eval('b:GetCounter()')) eval('b:AddCounter()') eq(1, eval('b:GetCounter()')) eval('b:AddCounter()') eq(2, eval('b:GetCounter()')) exec_lua([[vim.b.AddCounter()]]) eq(3, exec_lua([[return vim.b.GetCounter()]])) exec_lua([[vim.api.nvim_buf_get_var(0, 'AddCounter')()]]) eq(4, exec_lua([[return vim.api.nvim_buf_get_var(0, 'GetCounter')()]])) exec_lua([[vim.b.funcs.add()]]) eq(5, exec_lua([[return vim.b.funcs.get()]])) exec_lua([[vim.api.nvim_buf_get_var(0, 'funcs').add()]]) eq(6, exec_lua([[return vim.api.nvim_buf_get_var(0, 'funcs').get()]])) exec([[ function Test() endfunction function s:Test() endfunction let b:Unknown_func = function('Test') let b:Unknown_script_func = function('s:Test') ]]) eq(NIL, exec_lua([[return vim.b.Unknown_func]])) eq(NIL, exec_lua([[return vim.b.Unknown_script_func]])) exec_lua [[ vim.cmd "vnew" ]] eq(NIL, funcs.luaeval "vim.b.testing") eq(NIL, funcs.luaeval "vim.b.other") eq(NIL, funcs.luaeval "vim.b.nonexistant") end) it('vim.w', function() exec_lua [[ vim.api.nvim_win_set_var(0, "testing", "hi") vim.api.nvim_win_set_var(0, "other", 123) vim.api.nvim_win_set_var(0, "to_delete", {hello="world"}) BUF = vim.api.nvim_create_buf(false, true) WIN = vim.api.nvim_open_win(BUF, false, { width=10, height=10, relative='win', row=0, col=0 }) vim.api.nvim_win_set_var(WIN, "testing", "bye") ]] eq('hi', funcs.luaeval "vim.w.testing") eq('bye', funcs.luaeval "vim.w[WIN].testing") eq(123, funcs.luaeval "vim.w.other") eq(NIL, funcs.luaeval "vim.w.nonexistant") eq(NIL, funcs.luaeval "vim.w[WIN].nonexistant") matches([[attempt to index .* nil value]], pcall_err(exec_lua, 'return vim.w[WIN][0].testing')) eq({hello="world"}, funcs.luaeval "vim.w.to_delete") exec_lua [[ vim.w.to_delete = nil ]] eq(NIL, funcs.luaeval "vim.w.to_delete") exec_lua [[ local counter = 0 local function add_counter() counter = counter + 1 end local function get_counter() return counter end vim.w.AddCounter = add_counter vim.w.GetCounter = get_counter vim.w.funcs = {add = add_counter, get = get_counter} ]] eq(0, eval('w:GetCounter()')) eval('w:AddCounter()') eq(1, eval('w:GetCounter()')) eval('w:AddCounter()') eq(2, eval('w:GetCounter()')) exec_lua([[vim.w.AddCounter()]]) eq(3, exec_lua([[return vim.w.GetCounter()]])) exec_lua([[vim.api.nvim_win_get_var(0, 'AddCounter')()]]) eq(4, exec_lua([[return vim.api.nvim_win_get_var(0, 'GetCounter')()]])) exec_lua([[vim.w.funcs.add()]]) eq(5, exec_lua([[return vim.w.funcs.get()]])) exec_lua([[vim.api.nvim_win_get_var(0, 'funcs').add()]]) eq(6, exec_lua([[return vim.api.nvim_win_get_var(0, 'funcs').get()]])) exec_lua [[ local counter = 0 local function add_counter() counter = counter + 1 end local function get_counter() return counter end vim.api.nvim_win_set_var(0, 'AddCounter', add_counter) vim.api.nvim_win_set_var(0, 'GetCounter', get_counter) vim.api.nvim_win_set_var(0, 'funcs', {add = add_counter, get = get_counter}) ]] eq(0, eval('w:GetCounter()')) eval('w:AddCounter()') eq(1, eval('w:GetCounter()')) eval('w:AddCounter()') eq(2, eval('w:GetCounter()')) exec_lua([[vim.w.AddCounter()]]) eq(3, exec_lua([[return vim.w.GetCounter()]])) exec_lua([[vim.api.nvim_win_get_var(0, 'AddCounter')()]]) eq(4, exec_lua([[return vim.api.nvim_win_get_var(0, 'GetCounter')()]])) exec_lua([[vim.w.funcs.add()]]) eq(5, exec_lua([[return vim.w.funcs.get()]])) exec_lua([[vim.api.nvim_win_get_var(0, 'funcs').add()]]) eq(6, exec_lua([[return vim.api.nvim_win_get_var(0, 'funcs').get()]])) exec([[ function Test() endfunction function s:Test() endfunction let w:Unknown_func = function('Test') let w:Unknown_script_func = function('s:Test') ]]) eq(NIL, exec_lua([[return vim.w.Unknown_func]])) eq(NIL, exec_lua([[return vim.w.Unknown_script_func]])) exec_lua [[ vim.cmd "vnew" ]] eq(NIL, funcs.luaeval "vim.w.testing") eq(NIL, funcs.luaeval "vim.w.other") eq(NIL, funcs.luaeval "vim.w.nonexistant") end) it('vim.t', function() exec_lua [[ vim.api.nvim_tabpage_set_var(0, "testing", "hi") vim.api.nvim_tabpage_set_var(0, "other", 123) vim.api.nvim_tabpage_set_var(0, "to_delete", {hello="world"}) ]] eq('hi', funcs.luaeval "vim.t.testing") eq(123, funcs.luaeval "vim.t.other") eq(NIL, funcs.luaeval "vim.t.nonexistant") eq('hi', funcs.luaeval "vim.t[0].testing") eq(123, funcs.luaeval "vim.t[0].other") eq(NIL, funcs.luaeval "vim.t[0].nonexistant") matches([[attempt to index .* nil value]], pcall_err(exec_lua, 'return vim.t[0][0].testing')) eq({hello="world"}, funcs.luaeval "vim.t.to_delete") exec_lua [[ vim.t.to_delete = nil ]] eq(NIL, funcs.luaeval "vim.t.to_delete") exec_lua [[ local counter = 0 local function add_counter() counter = counter + 1 end local function get_counter() return counter end vim.t.AddCounter = add_counter vim.t.GetCounter = get_counter vim.t.funcs = {add = add_counter, get = get_counter} ]] eq(0, eval('t:GetCounter()')) eval('t:AddCounter()') eq(1, eval('t:GetCounter()')) eval('t:AddCounter()') eq(2, eval('t:GetCounter()')) exec_lua([[vim.t.AddCounter()]]) eq(3, exec_lua([[return vim.t.GetCounter()]])) exec_lua([[vim.api.nvim_tabpage_get_var(0, 'AddCounter')()]]) eq(4, exec_lua([[return vim.api.nvim_tabpage_get_var(0, 'GetCounter')()]])) exec_lua([[vim.t.funcs.add()]]) eq(5, exec_lua([[return vim.t.funcs.get()]])) exec_lua([[vim.api.nvim_tabpage_get_var(0, 'funcs').add()]]) eq(6, exec_lua([[return vim.api.nvim_tabpage_get_var(0, 'funcs').get()]])) exec_lua [[ local counter = 0 local function add_counter() counter = counter + 1 end local function get_counter() return counter end vim.api.nvim_tabpage_set_var(0, 'AddCounter', add_counter) vim.api.nvim_tabpage_set_var(0, 'GetCounter', get_counter) vim.api.nvim_tabpage_set_var(0, 'funcs', {add = add_counter, get = get_counter}) ]] eq(0, eval('t:GetCounter()')) eval('t:AddCounter()') eq(1, eval('t:GetCounter()')) eval('t:AddCounter()') eq(2, eval('t:GetCounter()')) exec_lua([[vim.t.AddCounter()]]) eq(3, exec_lua([[return vim.t.GetCounter()]])) exec_lua([[vim.api.nvim_tabpage_get_var(0, 'AddCounter')()]]) eq(4, exec_lua([[return vim.api.nvim_tabpage_get_var(0, 'GetCounter')()]])) exec_lua([[vim.t.funcs.add()]]) eq(5, exec_lua([[return vim.t.funcs.get()]])) exec_lua([[vim.api.nvim_tabpage_get_var(0, 'funcs').add()]]) eq(6, exec_lua([[return vim.api.nvim_tabpage_get_var(0, 'funcs').get()]])) exec_lua [[ vim.cmd "tabnew" ]] eq(NIL, funcs.luaeval "vim.t.testing") eq(NIL, funcs.luaeval "vim.t.other") eq(NIL, funcs.luaeval "vim.t.nonexistant") end) it('vim.env', function() exec_lua [[ vim.fn.setenv("A", 123) ]] eq('123', funcs.luaeval "vim.env.A") eq(true, funcs.luaeval "vim.env.B == nil") end) it('vim.v', function() eq(funcs.luaeval "vim.api.nvim_get_vvar('progpath')", funcs.luaeval "vim.v.progpath") eq(false, funcs.luaeval "vim.v['false']") eq(NIL, funcs.luaeval "vim.v.null") matches([[attempt to index .* nil value]], pcall_err(exec_lua, 'return vim.v[0].progpath')) end) it('vim.bo', function() eq('', funcs.luaeval "vim.bo.filetype") exec_lua [[ vim.api.nvim_buf_set_option(0, "filetype", "markdown") BUF = vim.api.nvim_create_buf(false, true) vim.api.nvim_buf_set_option(BUF, "modifiable", false) ]] eq(false, funcs.luaeval "vim.bo.modified") eq('markdown', funcs.luaeval "vim.bo.filetype") eq(false, funcs.luaeval "vim.bo[BUF].modifiable") exec_lua [[ vim.bo.filetype = '' vim.bo[BUF].modifiable = true ]] eq('', funcs.luaeval "vim.bo.filetype") eq(true, funcs.luaeval "vim.bo[BUF].modifiable") matches("Invalid option name: 'nosuchopt'$", pcall_err(exec_lua, 'return vim.bo.nosuchopt')) matches("Expected lua string$", pcall_err(exec_lua, 'return vim.bo[0][0].autoread')) end) it('vim.wo', function() exec_lua [[ vim.api.nvim_win_set_option(0, "cole", 2) vim.cmd "split" vim.api.nvim_win_set_option(0, "cole", 2) ]] eq(2, funcs.luaeval "vim.wo.cole") exec_lua [[ vim.wo.conceallevel = 0 ]] eq(0, funcs.luaeval "vim.wo.cole") eq(0, funcs.luaeval "vim.wo[0].cole") eq(0, funcs.luaeval "vim.wo[1001].cole") matches("Invalid option name: 'notanopt'$", pcall_err(exec_lua, 'return vim.wo.notanopt')) matches("Expected lua string$", pcall_err(exec_lua, 'return vim.wo[0][0].list')) eq(2, funcs.luaeval "vim.wo[1000].cole") exec_lua [[ vim.wo[1000].cole = 0 ]] eq(0, funcs.luaeval "vim.wo[1000].cole") end) describe('vim.opt', function() -- TODO: We still need to write some tests for optlocal, opt and then getting the options -- Probably could also do some stuff with getting things from viml side as well to confirm behavior is the same. it('should allow setting number values', function() local scrolloff = exec_lua [[ vim.opt.scrolloff = 10 return vim.o.scrolloff ]] eq(scrolloff, 10) end) pending('should handle STUPID window things', function() local result = exec_lua [[ local result = {} table.insert(result, vim.api.nvim_get_option('scrolloff')) table.insert(result, vim.api.nvim_win_get_option(0, 'scrolloff')) return result ]] eq({}, result) end) it('should allow setting tables', function() local wildignore = exec_lua [[ vim.opt.wildignore = { 'hello', 'world' } return vim.o.wildignore ]] eq(wildignore, "hello,world") end) it('should allow setting tables with shortnames', function() local wildignore = exec_lua [[ vim.opt.wig = { 'hello', 'world' } return vim.o.wildignore ]] eq(wildignore, "hello,world") end) it('should error when you attempt to set string values to numeric options', function() local result = exec_lua [[ return { pcall(function() vim.opt.textwidth = 'hello world' end) } ]] eq(false, result[1]) end) it('should error when you attempt to setlocal a global value', function() local result = exec_lua [[ return pcall(function() vim.opt_local.clipboard = "hello" end) ]] eq(false, result) end) it('should allow you to set boolean values', function() eq({true, false, true}, exec_lua [[ local results = {} vim.opt.autoindent = true table.insert(results, vim.bo.autoindent) vim.opt.autoindent = false table.insert(results, vim.bo.autoindent) vim.opt.autoindent = not vim.opt.autoindent:get() table.insert(results, vim.bo.autoindent) return results ]]) end) it('should change current buffer values and defaults for global local values', function() local result = exec_lua [[ local result = {} vim.opt.makeprg = "global-local" table.insert(result, vim.api.nvim_get_option('makeprg')) table.insert(result, vim.api.nvim_buf_get_option(0, 'makeprg')) vim.opt_local.mp = "only-local" table.insert(result, vim.api.nvim_get_option('makeprg')) table.insert(result, vim.api.nvim_buf_get_option(0, 'makeprg')) vim.opt_global.makeprg = "only-global" table.insert(result, vim.api.nvim_get_option('makeprg')) table.insert(result, vim.api.nvim_buf_get_option(0, 'makeprg')) vim.opt.makeprg = "global-local" table.insert(result, vim.api.nvim_get_option('makeprg')) table.insert(result, vim.api.nvim_buf_get_option(0, 'makeprg')) return result ]] -- Set -> global & local eq("global-local", result[1]) eq("", result[2]) -- Setlocal -> only local eq("global-local", result[3]) eq("only-local", result[4]) -- Setglobal -> only global eq("only-global", result[5]) eq("only-local", result[6]) -- Set -> sets global value and resets local value eq("global-local", result[7]) eq("", result[8]) end) it('should allow you to retrieve window opts even if they have not been set', function() local result = exec_lua [[ local result = {} table.insert(result, vim.opt.number:get()) table.insert(result, vim.opt_local.number:get()) vim.opt_local.number = true table.insert(result, vim.opt.number:get()) table.insert(result, vim.opt_local.number:get()) return result ]] eq({false, false, true, true}, result) end) it('should allow all sorts of string manipulation', function() eq({'hello', 'hello world', 'start hello world'}, exec_lua [[ local results = {} vim.opt.makeprg = "hello" table.insert(results, vim.o.makeprg) vim.opt.makeprg = vim.opt.makeprg + " world" table.insert(results, vim.o.makeprg) vim.opt.makeprg = vim.opt.makeprg ^ "start " table.insert(results, vim.o.makeprg) return results ]]) end) describe('option:get()', function() it('should work for boolean values', function() eq(false, exec_lua [[ vim.opt.number = false return vim.opt.number:get() ]]) end) it('should work for number values', function() local tabstop = exec_lua[[ vim.opt.tabstop = 10 return vim.opt.tabstop:get() ]] eq(10, tabstop) end) it('should work for string values', function() eq("hello world", exec_lua [[ vim.opt.makeprg = "hello world" return vim.opt.makeprg:get() ]]) end) it('should work for set type flaglists', function() local formatoptions = exec_lua [[ vim.opt.formatoptions = 'tcro' return vim.opt.formatoptions:get() ]] eq(true, formatoptions.t) eq(true, not formatoptions.q) end) it('should work for set type flaglists', function() local formatoptions = exec_lua [[ vim.opt.formatoptions = { t = true, c = true, r = true, o = true } return vim.opt.formatoptions:get() ]] eq(true, formatoptions.t) eq(true, not formatoptions.q) end) it('should work for array list type options', function() local wildignore = exec_lua [[ vim.opt.wildignore = "*.c,*.o,__pycache__" return vim.opt.wildignore:get() ]] eq(3, #wildignore) eq("*.c", wildignore[1]) end) it('should work for options that are both commalist and flaglist', function() local result = exec_lua [[ vim.opt.whichwrap = "b,s" return vim.opt.whichwrap:get() ]] eq({b = true, s = true}, result) result = exec_lua [[ vim.opt.whichwrap = { b = true, s = false, h = true } return vim.opt.whichwrap:get() ]] eq({b = true, h = true}, result) end) it('should work for key-value pair options', function() local listchars = exec_lua [[ vim.opt.listchars = "tab:> ,space:_" return vim.opt.listchars:get() ]] eq({ tab = "> ", space = "_", }, listchars) end) it('should allow you to add numeric options', function() eq(16, exec_lua [[ vim.opt.tabstop = 12 vim.opt.tabstop = vim.opt.tabstop + 4 return vim.bo.tabstop ]]) end) it('should allow you to subtract numeric options', function() eq(2, exec_lua [[ vim.opt.tabstop = 4 vim.opt.tabstop = vim.opt.tabstop - 2 return vim.bo.tabstop ]]) end) end) describe('key:value style options', function() it('should handle dictionary style', function() local listchars = exec_lua [[ vim.opt.listchars = { eol = "~", space = ".", } return vim.o.listchars ]] eq("eol:~,space:.", listchars) end) it('should allow adding dictionary style', function() local listchars = exec_lua [[ vim.opt.listchars = { eol = "~", space = ".", } vim.opt.listchars = vim.opt.listchars + { space = "-" } return vim.o.listchars ]] eq("eol:~,space:-", listchars) end) it('should allow adding dictionary style', function() local listchars = exec_lua [[ vim.opt.listchars = { eol = "~", space = ".", } vim.opt.listchars = vim.opt.listchars + { space = "-" } + { space = "_" } return vim.o.listchars ]] eq("eol:~,space:_", listchars) end) it('should allow completely new keys', function() local listchars = exec_lua [[ vim.opt.listchars = { eol = "~", space = ".", } vim.opt.listchars = vim.opt.listchars + { tab = ">>>" } return vim.o.listchars ]] eq("eol:~,space:.,tab:>>>", listchars) end) it('should allow subtracting dictionary style', function() local listchars = exec_lua [[ vim.opt.listchars = { eol = "~", space = ".", } vim.opt.listchars = vim.opt.listchars - "space" return vim.o.listchars ]] eq("eol:~", listchars) end) it('should allow subtracting dictionary style', function() local listchars = exec_lua [[ vim.opt.listchars = { eol = "~", space = ".", } vim.opt.listchars = vim.opt.listchars - "space" - "eol" return vim.o.listchars ]] eq("", listchars) end) it('should allow subtracting dictionary style multiple times', function() local listchars = exec_lua [[ vim.opt.listchars = { eol = "~", space = ".", } vim.opt.listchars = vim.opt.listchars - "space" - "space" return vim.o.listchars ]] eq("eol:~", listchars) end) it('should allow adding a key:value string to a listchars', function() local listchars = exec_lua [[ vim.opt.listchars = { eol = "~", space = ".", } vim.opt.listchars = vim.opt.listchars + "tab:>~" return vim.o.listchars ]] eq("eol:~,space:.,tab:>~", listchars) end) it('should allow prepending a key:value string to a listchars', function() local listchars = exec_lua [[ vim.opt.listchars = { eol = "~", space = ".", } vim.opt.listchars = vim.opt.listchars ^ "tab:>~" return vim.o.listchars ]] eq("eol:~,space:.,tab:>~", listchars) end) end) it('should automatically set when calling remove', function() eq("foo,baz", exec_lua [[ vim.opt.wildignore = "foo,bar,baz" vim.opt.wildignore:remove("bar") return vim.o.wildignore ]]) end) it('should automatically set when calling remove with a table', function() eq("foo", exec_lua [[ vim.opt.wildignore = "foo,bar,baz" vim.opt.wildignore:remove { "bar", "baz" } return vim.o.wildignore ]]) end) it('should automatically set when calling append', function() eq("foo,bar,baz,bing", exec_lua [[ vim.opt.wildignore = "foo,bar,baz" vim.opt.wildignore:append("bing") return vim.o.wildignore ]]) end) it('should automatically set when calling append with a table', function() eq("foo,bar,baz,bing,zap", exec_lua [[ vim.opt.wildignore = "foo,bar,baz" vim.opt.wildignore:append { "bing", "zap" } return vim.o.wildignore ]]) end) it('should allow adding tables', function() local wildignore = exec_lua [[ vim.opt.wildignore = 'foo' return vim.o.wildignore ]] eq(wildignore, 'foo') wildignore = exec_lua [[ vim.opt.wildignore = vim.opt.wildignore + { 'bar', 'baz' } return vim.o.wildignore ]] eq(wildignore, 'foo,bar,baz') end) it('should handle adding duplicates', function() local wildignore = exec_lua [[ vim.opt.wildignore = 'foo' return vim.o.wildignore ]] eq(wildignore, 'foo') wildignore = exec_lua [[ vim.opt.wildignore = vim.opt.wildignore + { 'bar', 'baz' } return vim.o.wildignore ]] eq(wildignore, 'foo,bar,baz') wildignore = exec_lua [[ vim.opt.wildignore = vim.opt.wildignore + { 'bar', 'baz' } return vim.o.wildignore ]] eq(wildignore, 'foo,bar,baz') end) it('should allow adding multiple times', function() local wildignore = exec_lua [[ vim.opt.wildignore = 'foo' vim.opt.wildignore = vim.opt.wildignore + 'bar' + 'baz' return vim.o.wildignore ]] eq(wildignore, 'foo,bar,baz') end) it('should remove values when you use minus', function() local wildignore = exec_lua [[ vim.opt.wildignore = 'foo' return vim.o.wildignore ]] eq(wildignore, 'foo') wildignore = exec_lua [[ vim.opt.wildignore = vim.opt.wildignore + { 'bar', 'baz' } return vim.o.wildignore ]] eq(wildignore, 'foo,bar,baz') wildignore = exec_lua [[ vim.opt.wildignore = vim.opt.wildignore - 'bar' return vim.o.wildignore ]] eq(wildignore, 'foo,baz') end) it('should prepend values when using ^', function() local wildignore = exec_lua [[ vim.opt.wildignore = 'foo' vim.opt.wildignore = vim.opt.wildignore ^ 'first' return vim.o.wildignore ]] eq('first,foo', wildignore) wildignore = exec_lua [[ vim.opt.wildignore = vim.opt.wildignore ^ 'super_first' return vim.o.wildignore ]] eq(wildignore, 'super_first,first,foo') end) it('should not remove duplicates from wildmode: #14708', function() local wildmode = exec_lua [[ vim.opt.wildmode = {"full", "list", "full"} return vim.o.wildmode ]] eq(wildmode, 'full,list,full') end) describe('option types', function() it('should allow to set option with numeric value', function() eq(4, exec_lua [[ vim.opt.tabstop = 4 return vim.bo.tabstop ]]) matches("Invalid option type 'string' for 'tabstop'", pcall_err(exec_lua, [[ vim.opt.tabstop = '4' ]])) matches("Invalid option type 'boolean' for 'tabstop'", pcall_err(exec_lua, [[ vim.opt.tabstop = true ]])) matches("Invalid option type 'table' for 'tabstop'", pcall_err(exec_lua, [[ vim.opt.tabstop = {4, 2} ]])) matches("Invalid option type 'function' for 'tabstop'", pcall_err(exec_lua, [[ vim.opt.tabstop = function() return 4 end ]])) end) it('should allow to set option with boolean value', function() eq(true, exec_lua [[ vim.opt.undofile = true return vim.bo.undofile ]]) matches("Invalid option type 'number' for 'undofile'", pcall_err(exec_lua, [[ vim.opt.undofile = 0 ]])) matches("Invalid option type 'table' for 'undofile'", pcall_err(exec_lua, [[ vim.opt.undofile = {true} ]])) matches("Invalid option type 'string' for 'undofile'", pcall_err(exec_lua, [[ vim.opt.undofile = 'true' ]])) matches("Invalid option type 'function' for 'undofile'", pcall_err(exec_lua, [[ vim.opt.undofile = function() return true end ]])) end) it('should allow to set option with array or string value', function() eq('indent,eol,start', exec_lua [[ vim.opt.backspace = {'indent','eol','start'} return vim.go.backspace ]]) eq('indent,eol,start', exec_lua [[ vim.opt.backspace = 'indent,eol,start' return vim.go.backspace ]]) matches("Invalid option type 'boolean' for 'backspace'", pcall_err(exec_lua, [[ vim.opt.backspace = true ]])) matches("Invalid option type 'number' for 'backspace'", pcall_err(exec_lua, [[ vim.opt.backspace = 2 ]])) matches("Invalid option type 'function' for 'backspace'", pcall_err(exec_lua, [[ vim.opt.backspace = function() return 'indent,eol,start' end ]])) end) it('should allow set option with map or string value', function() eq("eol:~,space:.", exec_lua [[ vim.opt.listchars = { eol = "~", space = ".", } return vim.o.listchars ]]) eq("eol:~,space:.,tab:>~", exec_lua [[ vim.opt.listchars = "eol:~,space:.,tab:>~" return vim.o.listchars ]]) matches("Invalid option type 'boolean' for 'listchars'", pcall_err(exec_lua, [[ vim.opt.listchars = true ]])) matches("Invalid option type 'number' for 'listchars'", pcall_err(exec_lua, [[ vim.opt.listchars = 2 ]])) matches("Invalid option type 'function' for 'listchars'", pcall_err(exec_lua, [[ vim.opt.listchars = function() return "eol:~,space:.,tab:>~" end ]])) end) it('should allow set option with set or string value', function() local ww = exec_lua [[ vim.opt.whichwrap = { b = true, s = 1, } return vim.go.whichwrap ]] eq(ww, "b,s") eq("b,s,<,>,[,]", exec_lua [[ vim.opt.whichwrap = "b,s,<,>,[,]" return vim.go.whichwrap ]]) matches("Invalid option type 'boolean' for 'whichwrap'", pcall_err(exec_lua, [[ vim.opt.whichwrap = true ]])) matches("Invalid option type 'number' for 'whichwrap'", pcall_err(exec_lua, [[ vim.opt.whichwrap = 2 ]])) matches("Invalid option type 'function' for 'whichwrap'", pcall_err(exec_lua, [[ vim.opt.whichwrap = function() return "b,s,<,>,[,]" end ]])) end) end) -- isfname=a,b,c,,,d,e,f it('can handle isfname ,,,', function() local result = exec_lua [[ vim.opt.isfname = "a,b,,,c" return { vim.opt.isfname:get(), vim.api.nvim_get_option('isfname') } ]] eq({{",", "a", "b", "c"}, "a,b,,,c"}, result) end) -- isfname=a,b,c,^,,def it('can handle isfname ,^,,', function() local result = exec_lua [[ vim.opt.isfname = "a,b,^,,c" return { vim.opt.isfname:get(), vim.api.nvim_get_option('isfname') } ]] eq({{"^,", "a", "b", "c"}, "a,b,^,,c"}, result) end) describe('https://github.com/neovim/neovim/issues/14828', function() it('gives empty list when item is empty:array', function() eq({}, exec_lua [[ vim.cmd("set wildignore=") return vim.opt.wildignore:get() ]]) eq({}, exec_lua [[ vim.opt.wildignore = {} return vim.opt.wildignore:get() ]]) end) it('gives empty list when item is empty:set', function() eq({}, exec_lua [[ vim.cmd("set formatoptions=") return vim.opt.formatoptions:get() ]]) eq({}, exec_lua [[ vim.opt.formatoptions = {} return vim.opt.formatoptions:get() ]]) end) it('does not append to empty item', function() eq({"*.foo", "*.bar"}, exec_lua [[ vim.opt.wildignore = {} vim.opt.wildignore:append { "*.foo", "*.bar" } return vim.opt.wildignore:get() ]]) end) it('does not prepend to empty item', function() eq({"*.foo", "*.bar"}, exec_lua [[ vim.opt.wildignore = {} vim.opt.wildignore:prepend { "*.foo", "*.bar" } return vim.opt.wildignore:get() ]]) end) it('append to empty set', function() eq({ t = true }, exec_lua [[ vim.opt.formatoptions = {} vim.opt.formatoptions:append("t") return vim.opt.formatoptions:get() ]]) end) it('prepend to empty set', function() eq({ t = true }, exec_lua [[ vim.opt.formatoptions = {} vim.opt.formatoptions:prepend("t") return vim.opt.formatoptions:get() ]]) end) end) end) -- vim.opt it('vim.cmd', function() exec_lua [[ vim.cmd "autocmd BufNew * ++once lua BUF = vim.fn.expand('<abuf>')" vim.cmd "new" ]] eq('2', funcs.luaeval "BUF") eq(2, funcs.luaeval "#vim.api.nvim_list_bufs()") end) it('vim.regex', function() exec_lua [[ re1 = vim.regex"ab\\+c" vim.cmd "set nomagic ignorecase" re2 = vim.regex"xYz" ]] eq({}, exec_lua[[return {re1:match_str("x ac")}]]) eq({3,7}, exec_lua[[return {re1:match_str("ac abbc")}]]) meths.buf_set_lines(0, 0, -1, true, {"yy", "abc abbc"}) eq({}, exec_lua[[return {re1:match_line(0, 0)}]]) eq({0,3}, exec_lua[[return {re1:match_line(0, 1)}]]) eq({3,7}, exec_lua[[return {re1:match_line(0, 1, 1)}]]) eq({3,7}, exec_lua[[return {re1:match_line(0, 1, 1, 8)}]]) eq({}, exec_lua[[return {re1:match_line(0, 1, 1, 7)}]]) eq({0,3}, exec_lua[[return {re1:match_line(0, 1, 0, 7)}]]) end) it('vim.defer_fn', function() eq(false, exec_lua [[ vim.g.test = false vim.defer_fn(function() vim.g.test = true end, 150) return vim.g.test ]]) exec_lua [[vim.wait(1000, function() return vim.g.test end)]] eq(true, exec_lua[[return vim.g.test]]) end) it('vim.region', function() insert(helpers.dedent( [[ text tααt tααt text text tαxt txtα tex text tαxt tαxt ]])) eq({5,15}, exec_lua[[ return vim.region(0,{1,5},{1,14},'v',true)[1] ]]) end) describe('vim.on_key', function() it('tracks keystrokes', function() insert([[hello world ]]) exec_lua [[ keys = {} vim.on_key(function(buf) if buf:byte() == 27 then buf = "<ESC>" end table.insert(keys, buf) end) ]] insert([[next 🤦 lines å ]]) -- It has escape in the keys pressed eq('inext 🤦 lines å <ESC>', exec_lua [[return table.concat(keys, '')]]) end) it('allows removing on_key listeners', function() insert([[hello world]]) exec_lua [[ keys = {} return vim.on_key(function(buf) if buf:byte() == 27 then buf = "<ESC>" end table.insert(keys, buf) end, vim.api.nvim_create_namespace("logger")) ]] insert([[next lines]]) eq(1, exec_lua('return vim.on_key()')) exec_lua("vim.on_key(nil, vim.api.nvim_create_namespace('logger'))") eq(0, exec_lua('return vim.on_key()')) insert([[more lines]]) -- It has escape in the keys pressed eq('inext lines<ESC>', exec_lua [[return table.concat(keys, '')]]) end) it('skips any function that caused an error', function() insert([[hello world]]) exec_lua [[ keys = {} return vim.on_key(function(buf) if buf:byte() == 27 then buf = "<ESC>" end table.insert(keys, buf) if buf == 'l' then error("Dumb Error") end end) ]] insert([[next lines]]) insert([[more lines]]) -- Only the first letter gets added. After that we remove the callback eq('inext l', exec_lua [[ return table.concat(keys, '') ]]) end) it('processes mapped keys, not unmapped keys', function() exec_lua [[ keys = {} vim.cmd("inoremap hello world") vim.on_key(function(buf) if buf:byte() == 27 then buf = "<ESC>" end table.insert(keys, buf) end) ]] insert("hello") eq('iworld<ESC>', exec_lua[[return table.concat(keys, '')]]) end) end) describe('vim.wait', function() before_each(function() exec_lua[[ -- high precision timer get_time = function() return vim.fn.reltimefloat(vim.fn.reltime()) end ]] end) it('should run from lua', function() exec_lua[[vim.wait(100, function() return true end)]] end) it('should wait the expected time if false', function() eq({time = true, wait_result = {false, -1}}, exec_lua[[ start_time = get_time() wait_succeed, wait_fail_val = vim.wait(200, function() return false end) return { -- 150ms waiting or more results in true. Flaky tests are bad. time = (start_time + 0.15) < get_time(), wait_result = {wait_succeed, wait_fail_val} } ]]) end) it('should not block other events', function() eq({time = true, wait_result = true}, exec_lua[[ start_time = get_time() vim.g.timer_result = false timer = vim.loop.new_timer() timer:start(100, 0, vim.schedule_wrap(function() vim.g.timer_result = true end)) -- Would wait ten seconds if results blocked. wait_result = vim.wait(10000, function() return vim.g.timer_result end) timer:close() return { time = (start_time + 5) > get_time(), wait_result = wait_result, } ]]) end) it('should not process non-fast events when commanded', function() eq({wait_result = false}, exec_lua[[ start_time = get_time() vim.g.timer_result = false timer = vim.loop.new_timer() timer:start(100, 0, vim.schedule_wrap(function() vim.g.timer_result = true end)) wait_result = vim.wait(300, function() return vim.g.timer_result end, nil, true) timer:close() return { wait_result = wait_result, } ]]) end) it('should work with vim.defer_fn', function() eq({time = true, wait_result = true}, exec_lua[[ start_time = get_time() vim.defer_fn(function() vim.g.timer_result = true end, 100) wait_result = vim.wait(10000, function() return vim.g.timer_result end) return { time = (start_time + 5) > get_time(), wait_result = wait_result, } ]]) end) it('should not crash when callback errors', function() local result = exec_lua [[ return {pcall(function() vim.wait(1000, function() error("As Expected") end) end)} ]] eq({false, '[string "<nvim>"]:1: As Expected'}, {result[1], remove_trace(result[2])}) end) it('if callback is passed, it must be a function', function() eq({false, 'vim.wait: if passed, condition must be a function'}, exec_lua [[ return {pcall(function() vim.wait(1000, 13) end)} ]]) end) it('should allow waiting with no callback, explicit', function() eq(true, exec_lua [[ local start_time = vim.loop.hrtime() vim.wait(50, nil) return vim.loop.hrtime() - start_time > 25000 ]]) end) it('should allow waiting with no callback, implicit', function() eq(true, exec_lua [[ local start_time = vim.loop.hrtime() vim.wait(50) return vim.loop.hrtime() - start_time > 25000 ]]) end) it('should call callbacks exactly once if they return true immediately', function() eq(true, exec_lua [[ vim.g.wait_count = 0 vim.wait(1000, function() vim.g.wait_count = vim.g.wait_count + 1 return true end, 20) return vim.g.wait_count == 1 ]]) end) it('should call callbacks few times with large `interval`', function() eq(true, exec_lua [[ vim.g.wait_count = 0 vim.wait(50, function() vim.g.wait_count = vim.g.wait_count + 1 end, 200) return vim.g.wait_count < 5 ]]) end) it('should play nice with `not` when fails', function() eq(true, exec_lua [[ if not vim.wait(50, function() end) then return true end return false ]]) end) it('should play nice with `if` when success', function() eq(true, exec_lua [[ if vim.wait(50, function() return true end) then return true end return false ]]) end) it('should return immediately with false if timeout is 0', function() eq({false, -1}, exec_lua [[ return { vim.wait(0, function() return false end) } ]]) end) it('should work with tables with __call', function() eq(true, exec_lua [[ local t = setmetatable({}, {__call = function(...) return true end}) return vim.wait(100, t, 10) ]]) end) it('should work with tables with __call that change', function() eq(true, exec_lua [[ local t = {count = 0} setmetatable(t, { __call = function() t.count = t.count + 1 return t.count > 3 end }) return vim.wait(1000, t, 10) ]]) end) it('should not work with negative intervals', function() local pcall_result = exec_lua [[ return pcall(function() vim.wait(1000, function() return false end, -1) end) ]] eq(false, pcall_result) end) it('should not work with weird intervals', function() local pcall_result = exec_lua [[ return pcall(function() vim.wait(1000, function() return false end, 'a string value') end) ]] eq(false, pcall_result) end) end) it('vim.notify_once', function() local screen = Screen.new(60,5) screen:set_default_attr_ids({ [0] = {bold=true, foreground=Screen.colors.Blue}, [1] = {foreground=Screen.colors.Red}, }) screen:attach() screen:expect{grid=[[ ^ | {0:~ }| {0:~ }| {0:~ }| | ]]} exec_lua [[vim.notify_once("I'll only tell you this once...", vim.log.levels.WARN)]] screen:expect{grid=[[ ^ | {0:~ }| {0:~ }| {0:~ }| {1:I'll only tell you this once...} | ]]} feed('<C-l>') screen:expect{grid=[[ ^ | {0:~ }| {0:~ }| {0:~ }| | ]]} exec_lua [[vim.notify_once("I'll only tell you this once...")]] screen:expect_unchanged() end) describe('vim.schedule_wrap', function() it('preserves argument lists', function() exec_lua [[ local fun = vim.schedule_wrap(function(kling, klang, klonk) vim.rpcnotify(1, 'mayday_mayday', {a=kling, b=klang, c=klonk}) end) fun("BOB", nil, "MIKE") ]] eq({'notification', 'mayday_mayday', {{a='BOB', c='MIKE'}}}, next_msg()) -- let's gooooo exec_lua [[ vim.schedule_wrap(function(...) vim.rpcnotify(1, 'boogalo', select('#', ...)) end)(nil,nil,nil,nil) ]] eq({'notification', 'boogalo', {4}}, next_msg()) end) end) describe('vim.api.nvim_buf_call', function() it('can access buf options', function() local buf1 = meths.get_current_buf() local buf2 = exec_lua [[ buf2 = vim.api.nvim_create_buf(false, true) return buf2 ]] eq(false, meths.buf_get_option(buf1, 'autoindent')) eq(false, meths.buf_get_option(buf2, 'autoindent')) local val = exec_lua [[ return vim.api.nvim_buf_call(buf2, function() vim.cmd "set autoindent" return vim.api.nvim_get_current_buf() end) ]] eq(false, meths.buf_get_option(buf1, 'autoindent')) eq(true, meths.buf_get_option(buf2, 'autoindent')) eq(buf1, meths.get_current_buf()) eq(buf2, val) end) it('does not cause ml_get errors with invalid visual selection', function() -- Should be fixed by vim-patch:8.2.4028. exec_lua [[ local a = vim.api local t = function(s) return a.nvim_replace_termcodes(s, true, true, true) end a.nvim_buf_set_lines(0, 0, -1, true, {"a", "b", "c"}) a.nvim_feedkeys(t "G<C-V>", "txn", false) a.nvim_buf_call(a.nvim_create_buf(false, true), function() vim.cmd "redraw" end) ]] end) end) describe('vim.api.nvim_win_call', function() it('can access window options', function() command('vsplit') local win1 = meths.get_current_win() command('wincmd w') local win2 = exec_lua [[ win2 = vim.api.nvim_get_current_win() return win2 ]] command('wincmd p') eq('', meths.win_get_option(win1, 'winhighlight')) eq('', meths.win_get_option(win2, 'winhighlight')) local val = exec_lua [[ return vim.api.nvim_win_call(win2, function() vim.cmd "setlocal winhighlight=Normal:Normal" return vim.api.nvim_get_current_win() end) ]] eq('', meths.win_get_option(win1, 'winhighlight')) eq('Normal:Normal', meths.win_get_option(win2, 'winhighlight')) eq(win1, meths.get_current_win()) eq(win2, val) end) it('does not cause ml_get errors with invalid visual selection', function() -- Add lines to the current buffer and make another window looking into an empty buffer. exec_lua [[ _G.a = vim.api _G.t = function(s) return a.nvim_replace_termcodes(s, true, true, true) end _G.win_lines = a.nvim_get_current_win() vim.cmd "new" _G.win_empty = a.nvim_get_current_win() a.nvim_set_current_win(win_lines) a.nvim_buf_set_lines(0, 0, -1, true, {"a", "b", "c"}) ]] -- Start Visual in current window, redraw in other window with fewer lines. -- Should be fixed by vim-patch:8.2.4018. exec_lua [[ a.nvim_feedkeys(t "G<C-V>", "txn", false) a.nvim_win_call(win_empty, function() vim.cmd "redraw" end) ]] -- Start Visual in current window, extend it in other window with more lines. -- Fixed for win_execute by vim-patch:8.2.4026, but nvim_win_call should also not be affected. exec_lua [[ a.nvim_feedkeys(t "<Esc>gg", "txn", false) a.nvim_set_current_win(win_empty) a.nvim_feedkeys(t "gg<C-V>", "txn", false) a.nvim_win_call(win_lines, function() a.nvim_feedkeys(t "G<C-V>", "txn", false) end) vim.cmd "redraw" ]] end) it('updates ruler if cursor moved', function() -- Fixed for win_execute in vim-patch:8.1.2124, but should've applied to nvim_win_call too! local screen = Screen.new(30, 5) screen:set_default_attr_ids { [1] = {reverse = true}, [2] = {bold = true, reverse = true}, } screen:attach() exec_lua [[ _G.a = vim.api vim.opt.ruler = true local lines = {} for i = 0, 499 do lines[#lines + 1] = tostring(i) end a.nvim_buf_set_lines(0, 0, -1, true, lines) a.nvim_win_set_cursor(0, {20, 0}) vim.cmd "split" _G.win = a.nvim_get_current_win() vim.cmd "wincmd w | redraw" ]] screen:expect [[ 19 | {1:[No Name] [+] 20,1 3%}| ^19 | {2:[No Name] [+] 20,1 3%}| | ]] exec_lua [[ a.nvim_win_call(win, function() a.nvim_win_set_cursor(0, {100, 0}) end) vim.cmd "redraw" ]] screen:expect [[ 99 | {1:[No Name] [+] 100,1 19%}| ^19 | {2:[No Name] [+] 20,1 3%}| | ]] end) end) end) describe('lua: builtin modules', function() local function do_tests() eq(2, exec_lua[[return vim.tbl_count {x=1,y=2}]]) eq('{ 10, "spam" }', exec_lua[[return vim.inspect {10, 'spam'}]]) end it('works', function() clear() do_tests() end) it('works when disabled', function() clear('--luamod-dev') do_tests() end) it('works without runtime', function() clear{env={VIMRUNTIME='fixtures/a'}} do_tests() end) it('does not work when disabled without runtime', function() clear{args={'--luamod-dev'}, env={VIMRUNTIME='fixtures/a'}} -- error checking could be better here. just check that --luamod-dev -- does anything at all by breaking with missing runtime.. eq(nil, exec_lua[[return vim.tbl_count {x=1,y=2}]]) end) end) describe('lua: require("mod") from packages', function() before_each(function() clear('--cmd', 'set rtp+=test/functional/fixtures pp+=test/functional/fixtures') end) it('propagates syntax error', function() local syntax_error_msg = exec_lua [[ local _, err = pcall(require, "syntax_error") return err ]] matches("unexpected symbol", syntax_error_msg) end) it('uses the right order of mod.lua vs mod/init.lua', function() -- lua/fancy_x.lua takes precedence over lua/fancy_x/init.lua eq('I am fancy_x.lua', exec_lua [[ return require'fancy_x' ]]) -- but lua/fancy_y/init.lua takes precedence over after/lua/fancy_y.lua eq('I am init.lua of fancy_y!', exec_lua [[ return require'fancy_y' ]]) -- safety check: after/lua/fancy_z.lua is still loaded eq('I am fancy_z.lua', exec_lua [[ return require'fancy_z' ]]) end) end) describe('vim.keymap', function() before_each(clear) it('can make a mapping', function() eq(0, exec_lua [[ GlobalCount = 0 vim.keymap.set('n', 'asdf', function() GlobalCount = GlobalCount + 1 end) return GlobalCount ]]) feed('asdf\n') eq(1, exec_lua[[return GlobalCount]]) end) it('can make an expr mapping', function() exec_lua [[ vim.keymap.set('n', 'aa', function() return ':lua SomeValue = 99<cr>' end, {expr = true}) ]] feed('aa') eq(99, exec_lua[[return SomeValue]]) end) it('can overwrite a mapping', function() eq(0, exec_lua [[ GlobalCount = 0 vim.keymap.set('n', 'asdf', function() GlobalCount = GlobalCount + 1 end) return GlobalCount ]]) feed('asdf\n') eq(1, exec_lua[[return GlobalCount]]) exec_lua [[ vim.keymap.set('n', 'asdf', function() GlobalCount = GlobalCount - 1 end) ]] feed('asdf\n') eq(0, exec_lua[[return GlobalCount]]) end) it('can unmap a mapping', function() eq(0, exec_lua [[ GlobalCount = 0 vim.keymap.set('n', 'asdf', function() GlobalCount = GlobalCount + 1 end) return GlobalCount ]]) feed('asdf\n') eq(1, exec_lua[[return GlobalCount]]) exec_lua [[ vim.keymap.del('n', 'asdf') ]] feed('asdf\n') eq(1, exec_lua[[return GlobalCount]]) eq('\nNo mapping found', helpers.exec_capture('nmap asdf')) end) it('works with buffer-local mappings', function() eq(0, exec_lua [[ GlobalCount = 0 vim.keymap.set('n', 'asdf', function() GlobalCount = GlobalCount + 1 end, {buffer=true}) return GlobalCount ]]) feed('asdf\n') eq(1, exec_lua[[return GlobalCount]]) exec_lua [[ vim.keymap.del('n', 'asdf', {buffer=true}) ]] feed('asdf\n') eq(1, exec_lua[[return GlobalCount]]) eq('\nNo mapping found', helpers.exec_capture('nmap asdf')) end) it('does not mutate the opts parameter', function() eq(true, exec_lua [[ opts = {buffer=true} vim.keymap.set('n', 'asdf', function() end, opts) return opts.buffer ]]) eq(true, exec_lua [[ vim.keymap.del('n', 'asdf', opts) return opts.buffer ]]) end) it('can do <Plug> mappings', function() eq(0, exec_lua [[ GlobalCount = 0 vim.keymap.set('n', '<plug>(asdf)', function() GlobalCount = GlobalCount + 1 end) vim.keymap.set('n', 'ww', '<plug>(asdf)') return GlobalCount ]]) feed('ww\n') eq(1, exec_lua[[return GlobalCount]]) end) end)
#if 0 // // Generated by Microsoft (R) HLSL Shader Compiler 6.3.9600.16384 // // // Resource Bindings: // // Name Type Format Dim Slot Elements // ------------------------------ ---------- ------- ----------- ---- -------- // texture_settings sampler NA NA 0 1 // base texture float4 2d 0 1 // // // // Input signature: // // Name Index Mask Register SysValue Format Used // -------------------- ----- ------ -------- -------- ------- ------ // TEXCOORD 0 xy 0 NONE float xy // // // Output signature: // // Name Index Mask Register SysValue Format Used // -------------------- ----- ------ -------- -------- ------- ------ // SV_TARGET 0 xyzw 0 TARGET float xyzw // ps_4_0 dcl_sampler s0, mode_default dcl_resource_texture2d (float,float,float,float) t0 dcl_input_ps linear v0.xy dcl_output o0.xyzw // // Initial variable locations: // v0.x <- base_uv.x; v0.y <- base_uv.y; // o0.x <- <main return value>.x; o0.y <- <main return value>.y; o0.z <- <main return value>.z; o0.w <- <main return value>.w // #line 17 "F:\Users\Jake\GitHub\Game-Networking\projects\2.Suite Chat\RealTime\sprite_sheet_frag.hlsl" sample o0.xyzw, v0.xyxx, t0.xyzw, s0 ret // Approximately 2 instruction slots used #endif const BYTE sprite_sheet_frag[] = { 68, 88, 66, 67, 150, 229, 216, 176, 32, 237, 27, 230, 81, 114, 4, 189, 237, 145, 99, 36, 1, 0, 0, 0, 60, 56, 0, 0, 6, 0, 0, 0, 56, 0, 0, 0, 228, 0, 0, 0, 24, 1, 0, 0, 76, 1, 0, 0, 184, 1, 0, 0, 52, 2, 0, 0, 82, 68, 69, 70, 164, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 28, 0, 0, 0, 0, 4, 255, 255, 5, 1, 0, 0, 114, 0, 0, 0, 92, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 109, 0, 0, 0, 2, 0, 0, 0, 5, 0, 0, 0, 4, 0, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 1, 0, 0, 0, 13, 0, 0, 0, 116, 101, 120, 116, 117, 114, 101, 95, 115, 101, 116, 116, 105, 110, 103, 115, 0, 98, 97, 115, 101, 0, 77, 105, 99, 114, 111, 115, 111, 102, 116, 32, 40, 82, 41, 32, 72, 76, 83, 76, 32, 83, 104, 97, 100, 101, 114, 32, 67, 111, 109, 112, 105, 108, 101, 114, 32, 54, 46, 51, 46, 57, 54, 48, 48, 46, 49, 54, 51, 56, 52, 0, 73, 83, 71, 78, 44, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 192, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 56, 0, 0, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 5, 0, 0, 0, 32, 0, 0, 0, 60, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 6, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 102, 101, 114, 32, 86, 82, 65, 77, 32, 58, 32, 114, 101, 103, 105, 115, 116, 101, 114, 40, 32, 98, 48, 32, 41, 13, 10, 123, 13, 10, 9, 102, 108, 111, 97, 116, 50, 32, 107, 79, 102, 102, 115, 101, 116, 115, 59, 13, 10, 9, 102, 108, 111, 97, 116, 32, 107, 83, 105, 100, 101, 115, 59, 13, 10, 125, 59, 13, 10, 13, 10, 116, 101, 120, 116, 117, 114, 101, 50, 68, 32, 98, 97, 115, 101, 32, 58, 32, 114, 101, 103, 105, 115, 116, 101, 114, 40, 116, 48, 41, 59, 13, 10, 83, 97, 109, 112, 108, 101, 114, 83, 116, 97, 116, 101, 32, 116, 101, 120, 116, 117, 114, 101, 95, 115, 101, 116, 116, 105, 110, 103, 115, 91, 52, 93, 32, 58, 32, 114, 101, 103, 105, 115, 116, 101, 114, 40, 115, 48, 41, 59, 13, 10, 13, 10, 102, 108, 111, 97, 116, 32, 109, 111, 100, 40, 102, 108, 111, 97, 116, 32, 120, 44, 32, 102, 108, 111, 97, 116, 32, 121, 41, 13, 10, 123, 13, 10, 32, 32, 114, 101, 116, 117, 114, 110, 32, 120, 32, 45, 32, 121, 32, 42, 32, 102, 108, 111, 111, 114, 40, 120, 47, 121, 41, 59, 13, 10, 125, 13, 10, 13, 10, 102, 108, 111, 97, 116, 52, 32, 109, 97, 105, 110, 40, 102, 108, 111, 97, 116, 50, 32, 98, 97, 115, 101, 95, 117, 118, 32, 58, 32, 84, 69, 88, 67, 79, 79, 82, 68, 48, 41, 32, 58, 32, 83, 86, 95, 84, 65, 82, 71, 69, 84, 13, 10, 123, 13, 10, 9, 114, 101, 116, 117, 114, 110, 32, 98, 97, 115, 101, 46, 83, 97, 109, 112, 108, 101, 40, 116, 101, 120, 116, 117, 114, 101, 95, 115, 101, 116, 116, 105, 110, 103, 115, 91, 48, 93, 44, 32, 98, 97, 115, 101, 95, 117, 118, 41, 59, 13, 10, 125, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 254, 239, 254, 239, 1, 0, 0, 0, 8, 2, 0, 0, 0, 70, 58, 92, 85, 115, 101, 114, 115, 92, 74, 97, 107, 101, 92, 71, 105, 116, 72, 117, 98, 92, 71, 97, 109, 101, 45, 78, 101, 116, 119, 111, 114, 107, 105, 110, 103, 92, 112, 114, 111, 106, 101, 99, 116, 115, 92, 50, 46, 83, 117, 105, 116, 101, 32, 67, 104, 97, 116, 92, 82, 101, 97, 108, 84, 105, 109, 101, 92, 115, 112, 114, 105, 116, 101, 95, 115, 104, 101, 101, 116, 95, 102, 114, 97, 103, 46, 104, 108, 115, 108, 0, 0, 102, 58, 92, 117, 115, 101, 114, 115, 92, 106, 97, 107, 101, 92, 103, 105, 116, 104, 117, 98, 92, 103, 97, 109, 101, 45, 110, 101, 116, 119, 111, 114, 107, 105, 110, 103, 92, 112, 114, 111, 106, 101, 99, 116, 115, 92, 50, 46, 115, 117, 105, 116, 101, 32, 99, 104, 97, 116, 92, 114, 101, 97, 108, 116, 105, 109, 101, 92, 115, 112, 114, 105, 116, 101, 95, 115, 104, 101, 101, 116, 95, 102, 114, 97, 103, 46, 104, 108, 115, 108, 0, 99, 98, 117, 102, 102, 101, 114, 32, 86, 82, 65, 77, 32, 58, 32, 114, 101, 103, 105, 115, 116, 101, 114, 40, 32, 98, 48, 32, 41, 13, 10, 123, 13, 10, 9, 102, 108, 111, 97, 116, 50, 32, 107, 79, 102, 102, 115, 101, 116, 115, 59, 13, 10, 9, 102, 108, 111, 97, 116, 32, 107, 83, 105, 100, 101, 115, 59, 13, 10, 125, 59, 13, 10, 13, 10, 116, 101, 120, 116, 117, 114, 101, 50, 68, 32, 98, 97, 115, 101, 32, 58, 32, 114, 101, 103, 105, 115, 116, 101, 114, 40, 116, 48, 41, 59, 13, 10, 83, 97, 109, 112, 108, 101, 114, 83, 116, 97, 116, 101, 32, 116, 101, 120, 116, 117, 114, 101, 95, 115, 101, 116, 116, 105, 110, 103, 115, 91, 52, 93, 32, 58, 32, 114, 101, 103, 105, 115, 116, 101, 114, 40, 115, 48, 41, 59, 13, 10, 13, 10, 102, 108, 111, 97, 116, 32, 109, 111, 100, 40, 102, 108, 111, 97, 116, 32, 120, 44, 32, 102, 108, 111, 97, 116, 32, 121, 41, 13, 10, 123, 13, 10, 32, 32, 114, 101, 116, 117, 114, 110, 32, 120, 32, 45, 32, 121, 32, 42, 32, 102, 108, 111, 111, 114, 40, 120, 47, 121, 41, 59, 13, 10, 125, 13, 10, 13, 10, 102, 108, 111, 97, 116, 52, 32, 109, 97, 105, 110, 40, 102, 108, 111, 97, 116, 50, 32, 98, 97, 115, 101, 95, 117, 118, 32, 58, 32, 84, 69, 88, 67, 79, 79, 82, 68, 48, 41, 32, 58, 32, 83, 86, 95, 84, 65, 82, 71, 69, 84, 13, 10, 123, 13, 10, 9, 114, 101, 116, 117, 114, 110, 32, 98, 97, 115, 101, 46, 83, 97, 109, 112, 108, 101, 40, 116, 101, 120, 116, 117, 114, 101, 95, 115, 101, 116, 116, 105, 110, 27, 226, 48, 1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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 74, 0, 60, 17, 16, 1, 0, 0, 0, 1, 6, 0, 3, 0, 0, 64, 128, 37, 6, 0, 3, 0, 0, 64, 128, 37, 77, 105, 99, 114, 111, 115, 111, 102, 116, 32, 40, 82, 41, 32, 72, 76, 83, 76, 32, 83, 104, 97, 100, 101, 114, 32, 67, 111, 109, 112, 105, 108, 101, 114, 32, 54, 46, 51, 46, 57, 54, 48, 48, 46, 49, 54, 51, 56, 52, 0, 54, 0, 61, 17, 1, 104, 108, 115, 108, 70, 108, 97, 103, 115, 0, 48, 120, 53, 0, 104, 108, 115, 108, 84, 97, 114, 103, 101, 116, 0, 112, 115, 95, 52, 95, 48, 0, 104, 108, 115, 108, 69, 110, 116, 114, 121, 0, 109, 97, 105, 110, 0, 0, 0, 0, 0, 42, 0, 16, 17, 0, 0, 0, 0, 176, 1, 0, 0, 0, 0, 0, 0, 40, 0, 0, 0, 0, 0, 0, 0, 40, 0, 0, 0, 4, 16, 0, 0, 60, 0, 0, 0, 1, 0, 160, 109, 97, 105, 110, 0, 46, 0, 62, 17, 0, 16, 0, 0, 9, 0, 98, 97, 115, 101, 95, 117, 118, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 0, 80, 17, 1, 0, 5, 0, 0, 0, 4, 0, 60, 0, 0, 0, 1, 0, 40, 0, 0, 0, 0, 0, 22, 0, 80, 17, 1, 0, 5, 0, 4, 0, 4, 0, 60, 0, 0, 0, 1, 0, 40, 0, 4, 0, 0, 0, 58, 0, 62, 17, 3, 16, 0, 0, 136, 0, 60, 109, 97, 105, 110, 32, 114, 101, 116, 117, 114, 110, 32, 118, 97, 108, 117, 101, 62, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 0, 80, 17, 2, 0, 5, 0, 0, 0, 4, 0, 60, 0, 0, 0, 1, 0, 40, 0, 0, 0, 0, 0, 22, 0, 80, 17, 2, 0, 5, 0, 4, 0, 4, 0, 60, 0, 0, 0, 1, 0, 40, 0, 4, 0, 0, 0, 22, 0, 80, 17, 2, 0, 5, 0, 8, 0, 4, 0, 60, 0, 0, 0, 1, 0, 40, 0, 8, 0, 0, 0, 22, 0, 80, 17, 2, 0, 5, 0, 12, 0, 4, 0, 60, 0, 0, 0, 1, 0, 40, 0, 12, 0, 0, 0, 2, 0, 6, 0, 244, 0, 0, 0, 24, 0, 0, 0, 1, 0, 0, 0, 16, 1, 245, 156, 6, 118, 84, 99, 88, 101, 186, 59, 106, 235, 33, 226, 82, 181, 0, 0, 242, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 100, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 60, 0, 0, 0, 60, 0, 0, 0, 17, 0, 0, 128, 60, 0, 0, 0, 17, 0, 0, 0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2, 0, 7, 0, 0, 0, 0, 0, 1, 0, 255, 255, 255, 255, 0, 0, 0, 0, 100, 0, 0, 0, 8, 2, 0, 0, 0, 0, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 255, 255, 255, 255, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 70, 58, 92, 85, 115, 101, 114, 115, 92, 74, 97, 107, 101, 92, 71, 105, 116, 72, 117, 98, 92, 71, 97, 109, 101, 45, 78, 101, 116, 119, 111, 114, 107, 105, 110, 103, 92, 112, 114, 111, 106, 101, 99, 116, 115, 92, 50, 46, 83, 117, 105, 116, 101, 32, 67, 104, 97, 116, 92, 82, 101, 97, 108, 84, 105, 109, 101, 92, 115, 112, 114, 105, 116, 101, 95, 115, 104, 101, 101, 116, 95, 102, 114, 97, 103, 46, 104, 108, 115, 108, 0, 0, 254, 239, 254, 239, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 12, 0, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 103, 115, 91, 48, 93, 44, 32, 98, 97, 115, 101, 95, 117, 118, 41, 59, 13, 10, 125, 0, 7, 0, 0, 0, 1, 0, 0, 0, 92, 0, 0, 0, 93, 0, 0, 0, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 116, 115, 92, 50, 46, 83, 117, 105, 116, 101, 32, 67, 104, 97, 116, 92, 82, 101, 97, 108, 84, 105, 109, 101, 92, 115, 112, 114, 105, 116, 101, 95, 115, 104, 101, 101, 116, 95, 102, 114, 97, 103, 46, 104, 108, 115, 108, 0, 0, 102, 58, 92, 117, 115, 101, 114, 115, 92, 106, 97, 107, 101, 92, 103, 105, 116, 104, 117, 98, 92, 103, 97, 109, 101, 45, 110, 101, 116, 119, 111, 114, 107, 105, 110, 103, 92, 112, 114, 111, 106, 101, 99, 116, 115, 92, 50, 46, 115, 117, 105, 116, 101, 32, 99, 104, 97, 116, 92, 114, 101, 97, 108, 116, 105, 109, 101, 92, 115, 112, 114, 105, 116, 101, 95, 115, 104, 101, 101, 116, 95, 102, 114, 97, 103, 46, 104, 108, 115, 108, 0, 4, 0, 0, 0, 1, 0, 0, 0, 92, 0, 0, 0, 93, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 148, 46, 49, 1, 172, 77, 128, 91, 1, 0, 0, 0, 133, 173, 93, 39, 127, 251, 64, 69, 160, 175, 255, 131, 227, 1, 255, 145, 136, 0, 0, 0, 47, 76, 105, 110, 107, 73, 110, 102, 111, 0, 47, 110, 97, 109, 101, 115, 0, 47, 115, 114, 99, 47, 104, 101, 97, 100, 101, 114, 98, 108, 111, 99, 107, 0, 47, 115, 114, 99, 47, 102, 105, 108, 101, 115, 47, 102, 58, 92, 117, 115, 101, 114, 115, 92, 106, 97, 107, 101, 92, 103, 105, 116, 104, 117, 98, 92, 103, 97, 109, 101, 45, 110, 101, 116, 119, 111, 114, 107, 105, 110, 103, 92, 112, 114, 111, 106, 101, 99, 116, 115, 92, 50, 46, 115, 117, 105, 116, 101, 32, 99, 104, 97, 116, 92, 114, 101, 97, 108, 116, 105, 109, 101, 92, 115, 112, 114, 105, 116, 101, 95, 115, 104, 101, 101, 116, 95, 102, 114, 97, 103, 46, 104, 108, 115, 108, 0, 4, 0, 0, 0, 6, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
defmodule Ockam.Worker do @moduledoc false @callback setup(options :: Keyword.t(), initial_state :: %{}) :: {:ok, state :: %{}} | {:error, reason :: any()} @callback handle_message(message :: any(), state :: %{}) :: {:ok, state :: %{}} | {:error, reason :: any()} defmacro __using__(_options) do quote do # use GenServer, makes this module a GenServer. # # Among other things, it adds the `child_spec/1` function which returns a # specification to start this module under a supervisor. When this module is # added to a supervisor, the supervisor calls child_spec to figure out the # specification that should be used. # # See the "Child specification" section in the `Supervisor` module for more # detailed information. # # The `@doc` annotation immediately preceding `use GenServer` below # is attached to the generated `child_spec/1` function. Since we don't # want `child_spec/1` in our Transport module docs, `@doc false` is set here. @doc false use GenServer @behaviour Ockam.Worker alias Ockam.Node alias Ockam.Router alias Ockam.Telemetry defstruct [:address] @doc false def create(options) when is_list(options) do options = Keyword.put_new_lazy(options, :address, &Node.get_random_unregistered_address/0) case Node.start_supervised(__MODULE__, options) do {:ok, _pid, worker} -> {:ok, worker} error -> error end end @doc false def start_link(options) when is_list(options) do with {:ok, address} <- get_from_options(:address, options), {:ok, pid} <- start(address, options) do {:ok, pid, address} end end defp start(address, options) do GenServer.start_link(__MODULE__, options, name: {:via, Node.process_registry(), address}) end @doc false @impl true def init(options) do metadata = %{options: options} start_time = Telemetry.emit_start_event([__MODULE__, :init], metadata: metadata) with {:ok, address} <- get_from_options(:address, options) do return_value = setup(options, %{address: address}) metadata = Map.put(metadata, :return_value, return_value) Telemetry.emit_stop_event([__MODULE__, :init], start_time, metadata: metadata) return_value end end @doc false @impl true def handle_info(message, state) do metadata = %{message: message} start_time = Telemetry.emit_start_event([__MODULE__, :handle_message], metadata: metadata) return_value = handle_message(message, state) with {:ok, instruction, state} <- return_value, {:ok, state} <- handle_instruction(instruction, state) do metadata = Map.put(metadata, :return_value, return_value) Telemetry.emit_stop_event([__MODULE__, :handle_message], start_time, metadata: metadata) end {:noreply, state} end defp handle_instruction({:route, messages}, state) when is_list(messages) do Enum.map(messages, &send_to_router/1) end defp handle_instruction({:route, message}, state) do case send_to_router(message) do :ok -> {:ok, state} {:error, reason} -> {:error, reason} end end defp handle_instruction(nil, state), do: {:ok, state} defp handle_instruction(instruction, state), do: {:error, {:unknown_instruction, instruction}} defp send_to_router(message) do case Router.route(message) do :ok -> {:ok, message} {:error, reason} -> {:error, {:could_not_route, {message, reason}}} end end @doc false def get_from_options(key, options) do case Keyword.get(options, key) do nil -> {:error, {:option_is_nil, key}} value -> {:ok, value} end end @doc false def setup(_options, state), do: {:ok, state} @doc false def handle_message(message, state), do: {:ok, state} defoverridable setup: 2, handle_message: 2 end end end
--- title: "Stateless Spring msgpush: GCI On x Off" author: "Daniel Fireman" date: "Sept, 2018" output: pdf_document --- ```{r setup, include=FALSE} knitr::opts_chunk$set(echo=F) knitr::opts_chunk$set(warning=F) knitr::opts_chunk$set(cache=F) require(dplyr) require(ggplot2) ``` # Setup * num_vms = 4 * vcpus = 2 * ram_gb = 4 * java_version = "10.0.1" * gcc="5.4.0" # compiled the libgc.so * maven="3.3.9" # build all java project. * go_version = "go1.11 linux/amd64" # compiled the gci proxy binary. * nginx_version = "nginx/1.14.0 (Ubuntu)" * so_version = "Ubuntu 18.04 LTS" * kernel_version = "4.15.0-29-generic" # Tail Latency Comparison ```{r} read.al <- function(f) { df <- read.csv(f, sep = ";", col.names = c("ts", "status", "latency", "ups"), colClasses = c("ups"="character")) df$latency <- df$latency*1000 return(df) } al.gci <- rbind ( read.al("stateless/al_gci_java_1.csv") ) al.nogci <- rbind ( read.al("stateless/al_nogci_java_1.csv") ) al.cmp <- rbind( data.frame("latency"=al.nogci$latency, Type="GCI OFF"), data.frame("latency"=al.gci$latency, Type="GCI ON") ) ``` ```{r, fig.align="center"} gci.p99 <- quantile(al.gci$latency, 0.99) nogci.p99 <- quantile(al.nogci$latency, 0.99) gci.p999 <- quantile(al.gci$latency, 0.999) nogci.p999 <- quantile(al.nogci$latency, 0.999) ggplot(al.cmp, aes(latency, color=Type)) + stat_ecdf(size=0.8) + # P999 annotate(geom="text", x=nogci.p999+0.5, y=0.9906, label="99.999th", angle=90, color="red") + geom_vline(xintercept=nogci.p999, linetype="dotted", size=0.8, alpha=0.5, color="red") + annotate(geom="text", x=gci.p999-0.5, y=0.9906, label="99.999th", angle=90, color="blue") + geom_vline(xintercept=gci.p999, linetype="dotted", size=0.8, alpha=0.5, color="blue") + # P99 annotate(geom="text", x=nogci.p99+0.5, y=0.9902, label="99th", angle=90, col="red") + geom_vline(xintercept=nogci.p99, linetype="dotted", size=0.8, alpha=0.5, col="red") + annotate(geom="text", x=gci.p99-0.5, y=0.9902, label="99th", angle=90, color="blue") + geom_vline(xintercept=gci.p99, linetype="dotted", size=0.8, alpha=0.5, color="blue") + scale_x_continuous(breaks=seq(0, max(al.cmp$latency), 2)) + coord_cartesian(ylim = c(0.99, 1)) + theme(legend.position="top") + scale_color_manual(breaks = c("GCI OFF", "GCI ON"), values=c("red", "blue")) + theme_bw() + xlab("Latency(ms)") + ylab("ECDF at Tail") ggsave("stateless/ecdf_tail.png") ``` <!-- # Unavailability --> <!-- ```{r} --> <!-- read.pauses <- function(f) { --> <!-- return(read.csv(f,col.names = c("ts", "gen", "pause"))) --> <!-- } --> <!-- pause.gci <- rbind ( --> <!-- read.pauses("stateless/proxy_gci_go_1_10.11.4.231.out"), --> <!-- read.pauses("stateless/proxy_gci_go_1_10.11.4.251.out"), --> <!-- read.pauses("stateless/proxy_gci_go_1_10.11.5.1.out"), --> <!-- read.pauses("stateless/proxy_gci_go_1_10.11.5.24.out") --> <!-- ) --> <!-- pause.cmp <- rbind( --> <!-- data.frame(pause=pause.gci$pause, Type="GCI On") --> <!-- ) --> <!-- ``` --> <!-- ```{r, fig.align="center"} --> <!-- ggplot(pause.cmp, aes(Type, pause)) + --> <!-- geom_boxplot() + --> <!-- scale_y_continuous(breaks=seq(0,max(pause.cmp$pause), 10)) + --> <!-- ylab("Unavailability (ms)") + --> <!-- theme_bw() + --> <!-- theme(axis.title.x=element_blank()) --> <!-- ``` --> <!-- # Failures --> <!-- ```{r, echo=T} --> <!-- NROW(filter(al.gci, status == 503)) --> <!-- ``` -->
using System.Xml.Serialization; namespace CityMap.Types.OSM { [XmlType("member")] public class Member { [XmlAttribute("type")] public string Type { get; set; } [XmlAttribute("ref")] public ulong Reference { get; set; } [XmlAttribute("role")] public string Role { get; set; } } }
#ifndef VKLPUNREADCOUNT_H #define VKLPUNREADCOUNT_H #include "vklpabstract.h" class VKLPUnreadCount : public VKLPAbstract { Q_OBJECT public: explicit VKLPUnreadCount(VKStorage *storage, QObject *parent = 0); void fromLP(const QJsonArray &data); Q_INVOKABLE int count(); signals: public slots: private: int m_count; }; #endif // VKLPUNREADCOUNT_H
package ACCOUNT; use strict; use YAML::Syck; use Data::Dumper; use lib "/backend/lib"; require ZOOVY; require ZTOOLKIT; # note there is a spiffy compatibility mode for merchant profile stuff # # perl -e 'use lib "/backend/lib"; use ACCOUNT; my ($a) = ACCOUNT->new("brian","brianh"); tie my %ac, 'ACCOUNT', $a; use Data::Dumper; $ac{"zoovy:email"} = "brian"; $ac{"zoovy:email"} = "brianh"; print Dumper(\%ac,$a);' # perl -e 'use lib "/backend/lib"; use ACCOUNT; my ($a) = ACCOUNT->new("brian","brian"); use Data::Dumper; $a->set("bill.fullname","brian"); $a->set("bill.fullname","brianh"); print Dumper($a->get("bill.fullname"));' # ## ## only compatbile with TIE approach ## %ACCOUNT::LEGACY_PROFILE_COMPAT = ( 'zoovy:email'=>'bill.email', 'zoovy:firstname'=>'bill.firstname', 'zoovy:company_name','org.company', 'zoovy:firstname','org.firstname', 'zoovy:lastname'=>'org.lastname', 'zoovy:email'=>'org.email', 'zoovy:phone'=>'org.phone', 'zoovy:address1'=>'org.address1', 'zoovy:address2'=>'org.address2', 'zoovy:city'=>'org.city', 'zoovy:state'=>'org.region', 'zoovy:zip'=>'org.postal', 'zoovy:support_email'=>'tech.email', 'zoovy:support_phone'=>'tech.phone', ); %ACCOUNT::VALID_FIELDS = ( 'bill.email'=>'', 'bill.firstname'=>'', 'bill.lastname'=>'', 'bill.phone'=>'', 'bill.mobile'=>'', 'bill.newsletter'=>'', 'tech.email'=>'', 'tech.firstname'=>'', 'tech.lastname'=>'', 'tech.phone'=>'', 'tech.mobile'=>'', 'tech.newsletter'=>'', 'org.company'=>'', 'org.email'=>'', 'org.firstname'=>'', 'org.lastname'=>'', 'org.phone'=>'', 'org.mobile'=>'', 'org.city'=>'', 'org.region'=>'', 'org.postal'=>'', 'org.country'=>'', 'org.address1'=>'', 'org.address2'=>'', 'org.newsletter'=>'', 'org.type'=>'', 'org.ein'=>'', 'info.employees'=>'', 'info.founded'=>'', 'info.sales'=>'', ); sub DESTROY { my ($self) = @_; if ($self->{'_tied'}==0) { } else { $self->{'_tied'}--; } } ## ## you can tie one of these options. ## sub TIEHASH { my ($class, $ACCOUNT) = @_; my $self = $ACCOUNT; if ((not defined $self) || (ref($self) ne 'ACCOUNT')) { die("must pass valie ACCOUNT object to tie"); } $self->{'_tied'}++; return($self); } sub FETCH { my ($this,$key) = @_; if (defined $ACCOUNT::LEGACY_PROFILE_COMPAT{$key}) { $key = $ACCOUNT::LEGACY_PROFILE_COMPAT{$key}; } return($this->get($key)); } sub EXISTS { my ($this,$key) = @_; if (defined $ACCOUNT::LEGACY_PROFILE_COMPAT{$key}) { $key = $ACCOUNT::LEGACY_PROFILE_COMPAT{$key}; } return( (defined $this->get($key))?1:0 ); } sub DELETE { my ($this,$key) = @_; if (defined $ACCOUNT::LEGACY_PROFILE_COMPAT{$key}) { $key = $ACCOUNT::LEGACY_PROFILE_COMPAT{$key}; } $this->set($key,undef); return(0); } sub STORE { my ($this,$key,$value) = @_; if (defined $ACCOUNT::LEGACY_PROFILE_COMPAT{$key}) { $key = $ACCOUNT::LEGACY_PROFILE_COMPAT{$key}; } $this->set($key,$value); return(0); } sub CLEAR { my ($this) = @_; #foreach my $k (keys %{$this}) { # next if (substr($k,0,1) eq '_'); # delete $this->{$k}; # } return(0); } sub FIRSTKEY { my ($this) = @_; my @THEKEYS = (); foreach my $k (sort keys %{$this}) { next if (substr($k,0,1) eq '_'); next if (substr($k,0,1) eq '@'); if (ref($this->{$k}) eq '') { push @THEKEYS, "$k"; } elsif (ref($this->{$k}) eq 'HASH') { foreach my $k2 (sort keys %{$this->{$k}}) { push @THEKEYS, "$k.$k2"; } } } print Dumper(\@THEKEYS); $this->{'@'} = \@THEKEYS; return(pop @THEKEYS); } # # # sub NEXTKEY { my ($this) = @_; return(pop @{$this->{'@'}}); } # # # sub TO_JSON { my ($self) = @_; my %R = (); foreach my $k (keys %{$self}) { $R{$k} = $self->{$k}; } return(\%R); }; ## ## ## sub new { my ($class, $USERNAME, $LUSER, %params) = @_; my $self = undef; my ($path) = &ZOOVY::resolve_userpath($USERNAME); if (! -f "$path/contact.yaml") { $self = {}; $self->{'_USERNAME'} = $USERNAME; $self->{'_MID'} = &ZOOVY::resolve_mid($USERNAME); $self->{'_CREATED'} = &ZTOOLKIT::pretty_date(time(),3); $self->{'@log'} = []; } else { $self = YAML::Syck::LoadFile("$path/contact.yaml"); } $self->{'_LUSER'} = $LUSER; bless $self, 'ACCOUNT'; return($self); } ## ## ## sub username { return($_[0]->{'_USERNAME'}); } sub mid { return(int($_[0]->{'_MID'})); } sub luser { return($_[0]->{'_LUSER'}); } ## ## sub get { my ($self, $attr) = @_; my $ref = $self; my @parts = split(/\./,$attr); my $piece = pop @parts; foreach my $part (@parts) { $ref = $ref->{$part}; } # descend tree return($ref->{$piece}); } ## ## sub set { my ($self, $attr, $value) = @_; my $ref = $self; my @parts = split(/\./,$attr); my $piece = pop @parts; foreach my $part (@parts) { # descend tree if (not defined $ref->{$part}) { $ref->{$part} = {}; } $ref = $ref->{$part}; } if (not defined $value) { ## a delete if (not defined $ref->{$piece}) { ## it's okay, nothing to delete } else { $self->log("[d]\t$piece\t$ref->{$piece}"); } } elsif (not defined $ref->{$piece}) { ## initialized value $ref->{$piece} = $value; } elsif ($ref->{$piece} eq $value) { ## value is the same } else { $self->log("[u]\t$attr\t$ref->{$piece}"); $ref->{$piece} = $value; } return(); } ## ## sub log { my ($self,$msg) = @_; if (not defined $self->{'@log'}) { $self->{'@log'} = []; } push @{$self->{'@log'}}, ZTOOLKIT::pretty_date(time(),3)."\t".$self->luser()."\t$msg"; } ## ## sub save { my ($self) = @_; # $file can be an IO object, or a filename my $THEKEYS = $self->{'@'}; if (defined $THEKEYS) { delete $self->{'@'}; } my ($path) = &ZOOVY::resolve_userpath($self->username()); if (! -d $path) { warn "PATH: $path does not exist\n"; } else { YAML::Syck::DumpFile("$path/contact.yaml",$self); chmod 0666, "$path/contact.yaml"; } if (defined $THEKEYS) { $self->{'@'} = $THEKEYS; } } ## ## ## 1;
#!perl -T use utf8; use 5.006; use strict; use warnings; use Test::More; plan tests => 1; use Sidef; my $code = <<'EOT'; func curry(f, *args1) { func (*args2) { f(args1..., args2...); } } func add(a, b) { a + b } var adder = curry(add, 13); adder(29); EOT my $sidef = Sidef->new(name => 'currying'); my $result = $sidef->execute_code($code); is("$result", "42");
--!A cross-platform build utility based on Lua -- -- 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. -- -- Copyright (C) 2015 - 2019, TBOOX Open Source Group. -- -- @author ruki -- @file check_links.lua -- -- check links and add macro definition -- -- e.g. -- -- check_links("HAS_PTHREAD", "pthread") -- check_links("HAS_PTHREAD", {"pthread", "m", "dl"}) -- function check_links(definition, links, opt) opt = opt or {} local optname = "__" .. (opt.name or definition) option(optname) add_links(links) add_defines(definition) option_end() add_options(optname) end -- check links and add macro definition to the configuration files -- -- e.g. -- -- configvar_check_links("HAS_PTHREAD", "pthread") -- configvar_check_links("HAS_PTHREAD", {"pthread", "m", "dl"}) -- function configvar_check_links(definition, links, opt) opt = opt or {} local optname = "__" .. (opt.name or definition) local defname, defval = unpack(definition:split('=')) option(optname) add_links(links) set_configvar(defname, defval or 1) option_end() add_options(optname) end
grammar Alf; start : declaration #declarationStatement ; declaration : type VARIABLE EQ value #variableDeclaration ; type : INT #typeInt | FLOAT #typeFloat | STRING #typeString ; value : INT_NUMBER #valueInt | FLOAT_NUMBER #valueFloat | STRING_TEXT #valueString ; WS : (' ') -> skip; NEWLINE : ([\r\n]+) -> skip; VARIABLE : ('_'[a-zA-Z0-9]+); ADD : '+'; SUB : '-'; MUL : '*'; DIV : '/'; REM : '%'; INT : 'int'; FLOAT : 'float'; STRING : 'string'; LP : '('; RP : ')'; EQ : '='; SEMICOLON : ';'; INT_NUMBER : ([0-9]+); FLOAT_NUMBER: ([0-9]+'.'[0-9]+); STRING_TEXT : ('"'~["]+'"'|'\''~[']+'\'');
pragma solidity ^0.4.25; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } function sub(uint256 a, uint256 b) internal pure returns (uint256) { assert(b <= a); return a - b; } function add(uint256 a, uint256 b) internal pure returns (uint256 c) { c = a + b; assert(c >= a); return c; } } contract AltcoinToken { function balanceOf(address _owner) constant public returns (uint256); function transfer(address _to, uint256 _value) public returns (bool); } contract ERC20Basic { uint256 public totalSupply; function balanceOf(address who) public constant returns (uint256); function transfer(address to, uint256 value) public returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); } contract ERC20 is ERC20Basic { function allowance(address owner, address spender) public constant returns (uint256); function transferFrom(address from, address to, uint256 value) public returns (bool); function approve(address spender, uint256 value) public returns (bool); event Approval(address indexed owner, address indexed spender, uint256 value); } contract TESTToken is ERC20 { using SafeMath for uint256; address owner = msg.sender; mapping (address => uint256) balances; mapping (address => mapping (address => uint256)) allowed; string public constant name = "TEST Token"; string public constant symbol = "TT"; uint public constant decimals = 18; uint256 public totalSupply = 10000000000000000000000000000; uint256 public totalDistributed = 0; uint256 public tokensPerEth = 10000000000000000000000000; uint256 public constant minContribution = 1 ether / 100; event Transfer(address indexed _from, address indexed _to, uint256 _value); event Approval(address indexed _owner, address indexed _spender, uint256 _value); event Distr(address indexed to, uint256 amount); event DistrFinished(); //Enough Hard Cap to stop ico event Airdrop(address indexed _owner, uint _amount, uint _balance); event TokensPerEthUpdated(uint _tokensPerEth); event Burn(address indexed burner, uint256 value); bool public distributionFinished = false; modifier canDistr() { require(!distributionFinished); _; } modifier onlyOwner() { require(msg.sender == owner); _; } function TESTToken () public { owner = msg.sender; uint256 devTokens = 1000000000000000000000000000; distr(owner, devTokens); } function transferOwnership(address newOwner) onlyOwner public { if (newOwner != address(0)) { owner = newOwner; } } function finishDistribution() onlyOwner canDistr public returns (bool) { distributionFinished = true; emit DistrFinished(); return true; } function distr(address _to, uint256 _amount) canDistr private returns (bool) { totalDistributed = totalDistributed.add(_amount); balances[_to] = balances[_to].add(_amount); emit Distr(_to, _amount); emit Transfer(address(0), _to, _amount); return true; } function doAirdrop(address _participant, uint _amount) internal { require( _amount > 0 ); require( totalDistributed < totalSupply ); balances[_participant] = balances[_participant].add(_amount); totalDistributed = totalDistributed.add(_amount); if (totalDistributed >= totalSupply) { distributionFinished = true; } emit Airdrop(_participant, _amount, balances[_participant]); emit Transfer(address(0), _participant, _amount); } function adminClaimAirdrop(address _participant, uint _amount) public onlyOwner { doAirdrop(_participant, _amount); } function adminClaimAirdropMultiple(address[] _addresses, uint _amount) public onlyOwner { for (uint i = 0; i < _addresses.length; i++) doAirdrop(_addresses[i], _amount); } function updateTokensPerEth(uint _tokensPerEth) public onlyOwner { tokensPerEth = _tokensPerEth; emit TokensPerEthUpdated(_tokensPerEth); } function () external payable { getTokens(); } function getTokens() payable canDistr public { uint256 tokens = 0; require( msg.value >= minContribution ); require( msg.value > 0 ); tokens = tokensPerEth.mul(msg.value) / 1 ether; address investor = msg.sender; if (tokens > 0) { distr(investor, tokens); } if (totalDistributed >= totalSupply) { distributionFinished = true; } } function balanceOf(address _owner) constant public returns (uint256) { return balances[_owner]; } modifier onlyPayloadSize(uint size) { assert(msg.data.length >= size + 4); _; } function transfer(address _to, uint256 _amount) onlyPayloadSize(2 * 32) public returns (bool success) { require(_to != address(0)); require(_amount <= balances[msg.sender]); balances[msg.sender] = balances[msg.sender].sub(_amount); balances[_to] = balances[_to].add(_amount); emit Transfer(msg.sender, _to, _amount); return true; } function transferFrom(address _from, address _to, uint256 _amount) onlyPayloadSize(3 * 32) public returns (bool success) { require(_to != address(0)); require(_amount <= balances[_from]); require(_amount <= allowed[_from][msg.sender]); balances[_from] = balances[_from].sub(_amount); allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_amount); balances[_to] = balances[_to].add(_amount); emit Transfer(_from, _to, _amount); return true; } function approve(address _spender, uint256 _value) public returns (bool success) { // mitigates the ERC20 spend/approval race condition if (_value != 0 && allowed[msg.sender][_spender] != 0) { return false; } allowed[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return true; } function allowance(address _owner, address _spender) constant public returns (uint256) { return allowed[_owner][_spender]; } function getTokenBalance(address tokenAddress, address who) constant public returns (uint){ AltcoinToken t = AltcoinToken(tokenAddress); uint bal = t.balanceOf(who); return bal; } function withdraw() onlyOwner public { address myAddress = this; uint256 etherBalance = myAddress.balance; owner.transfer(etherBalance); } function burn(uint256 _value) onlyOwner public { require(_value <= balances[msg.sender]); address burner = msg.sender; balances[burner] = balances[burner].sub(_value); totalSupply = totalSupply.sub(_value); totalDistributed = totalDistributed.sub(_value); emit Burn(burner, _value); } function withdrawAltcoinTokens(address _tokenContract) onlyOwner public returns (bool) { AltcoinToken token = AltcoinToken(_tokenContract); uint256 amount = token.balanceOf(address(this)); return token.transfer(owner, amount); } }
lexer grammar VSLLexer; options { language = Java; } @header { package TP2; } WS : (' '|'\n'|'\t') -> skip ; COMMENT : '//' (~'\n')* -> skip ; fragment LETTER : 'a'..'z' ; fragment DIGIT : '0'..'9' ; fragment ASCII : ~('\n'|'"'); // keywords LP : '(' ; // Left parenthesis RP : ')' ; AL : '{' ; // accolade gauche AR : '}' ; CL : '[' ; // crochet gauche CR : ']' ; ADD : '+' ; SUB : '-' ; MUL : '*' ; DIV : '/' ; EQUAL : ':=' ; INT : 'INT' ; VOID : 'VOID' ; VIRGULE : ',' ; IF : 'IF' ; THEN : 'THEN' ; ELSE : 'ELSE' ; FI : 'FI' ; WHILE : 'WHILE' ; DO : 'DO' ; DONE : 'DONE' ; PROTO : 'PROTO' ; FUNC : 'FUNC' ; RETURN : 'RETURN' ; PRINT : 'PRINT' ; READ : 'READ' ; // TODO : other keywords // other tokens (no conflict with keywords in VSL) IDENT : LETTER (LETTER|DIGIT)*; TEXT : '"' (ASCII)* '"' { setText(getText().substring(1, getText().length() - 1)); }; INTEGER : (DIGIT)+ ;
module.exports = { createForm }; function createForm(){ var button = $('<button>').text('Add Beer').on('click', function() { // Add form to the page $('body').load('/public/project-form.html', function(){ // Override default form action $('form').on('submit', function(event){ event.preventDefault(); var data = new FormData($('form')[0]); $.post({ url: '/beers', data: data, contentType: 'multipart/form-data', processData: false }); }); }); }); return button; }
"{ Package: 'stx:goodies/xmlsuite/core' }" "{ NameSpace: XMLv2 }" Object subclass:#AbstractSAX2Handler instanceVariableNames:'' classVariableNames:'' poolDictionaries:'' category:'XML Suite-Support' ! AbstractSAX2Handler class instanceVariableNames:'EmptyHandler' " No other class instance variables are inherited by this class. " ! !AbstractSAX2Handler class methodsFor:'instance creation'! empty EmptyHandler ifNil:[EmptyHandler := self new]. ^EmptyHandler "Created: / 16-04-2005 / 21:10:34 / janfrog" ! ! !AbstractSAX2Handler class methodsFor:'documentation'! version ^ '$Header: /opt/data/cvs/stx/goodies/xmlsuite/XMLv2__AbstractSAX2Handler.st,v 1.1.1.1 2005-11-01 22:05:41 vranyj1 Exp $' ! version_SVN ^ '$Id$' ! !
/* * This header is generated by classdump-dyld 1.5 * on Wednesday, October 27, 2021 at 3:22:36 PM Mountain Standard Time * Operating System: Version 13.5.1 (Build 17F80) * Image Source: /System/Library/PrivateFrameworks/MetalTools.framework/MetalTools * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Limneos. Updated by Kevin Bradley. */ @class MTLResourceAllocationInfo; @protocol MTLResourceSPI <MTLResource> @property (assign) int responsibleProcess; @property (readonly) MTLResourceAllocationInfo * sharedAllocationInfo; @property (readonly) MTLResourceAllocationInfo * cachedAllocationInfo; @property (readonly) unsigned long long allocationID; @property (readonly) unsigned long long protectionOptions; @property (readonly) unsigned long long unfilteredResourceOptions; @required -(BOOL)isComplete; -(void)waitUntilComplete; -(unsigned long long)protectionOptions; -(BOOL)isPurgeable; -(BOOL)doesAliasAllResources:(const id*)arg1 count:(unsigned long long)arg2; -(BOOL)doesAliasAnyResources:(const id*)arg1 count:(unsigned long long)arg2; -(BOOL)doesAliasResource:(id)arg1; -(int)responsibleProcess; -(void)setResponsibleProcess:(int)arg1; -(MTLResourceAllocationInfo *)sharedAllocationInfo; -(MTLResourceAllocationInfo *)cachedAllocationInfo; -(unsigned long long)allocationID; -(unsigned long long)unfilteredResourceOptions; @end
[CmdletBinding()] param() # Arrange. . $PSScriptRoot\..\..\..\Tests\lib\Initialize-Test.ps1 $targetAzurePs = "4.1.0" Register-Mock Get-VstsInput { "FilePath" } -- -Name ScriptType -Require Register-Mock Get-VstsInput { "$PSScriptRoot/NativeCommandError_TargetScript.ps1" } -- -Name ScriptPath Register-Mock Get-VstsInput { $targetAzurePs } -- -Name TargetAzurePs Register-Mock Get-VstsInput { "stop" } -- -Name errorActionPreference Register-Mock Get-VstsInput { $false } -- -Name FailOnStandardError Register-Mock Update-PSModulePathForHostedAgent Register-Mock Initialize-Azure Register-Mock Remove-EndpointSecrets Register-Mock Disconnect-AzureAndClearContext # Act. $actual = @( & $PSScriptRoot\..\AzurePowerShell.ps1 ) $global:ErrorActionPreference = 'Stop' # Reset to stop. # Assert. Assert-AreEqual 4 $actual.Length Assert-AreEqual 'output 1' $actual[0] Assert-AreEqual 'NativeCommandError' $actual[1].FullyQualifiedErrorId Assert-AreEqual 'NativeCommandErrorMessage' $actual[2].FullyQualifiedErrorId Assert-AreEqual 'output 2' $actual[3]
;;; csv-nav-autoloads.el --- automatically extracted autoloads ;; ;;; Code: (add-to-list 'load-path (directory-file-name (or (file-name-directory #$) (car load-path)))) ;;;### (autoloads nil "csv-nav" "csv-nav.el" (22995 1714 597410 226000)) ;;; Generated autoloads from csv-nav.el (autoload 'csv-nav-mode "csv-nav" "\ Major mode for viewing and editing CSV files. \(fn)" t nil) ;;;*** ;; Local Variables: ;; version-control: never ;; no-byte-compile: t ;; no-update-autoloads: t ;; End: ;;; csv-nav-autoloads.el ends here
/* * File: Command.h * Author: Mauricio Matamoros * * Created on Aug 12, 2013 de 2013, 10:53 AM */ #pragma once #ifndef __COMMAND_H__ #define __COMMAND_H__ #include <string> #include <sstream> #include <iostream> #include <boost/regex.hpp> #include "MessageBase.h" class Response; class Command : public MessageBase { private: //static boost::regex commandParser; public: Command(const Command& command); Command(const std::string& commandName); Command(const std::string& commandName, const std::string& parameters); Command(const std::string& commandName, const std::string& parameters, const int& id); virtual ~Command(void); virtual std::string getStringToSend() const; static Command* parse(const std::string& s); bool isMatch(const Response& response) const; friend std::ostream& operator<<(std::ostream& os, const Command& command); friend std::ostream& operator<<(std::ostream& os, const Command*& command); }; #endif // __COMMAND_H__
event handling mouseMove: evt actWhen = #buttonDown ifTrue: [^ self]. (self containsPoint: evt cursorPoint) ifTrue: [self on] ifFalse: [self off].
--- layout: post author : "We club of Garima Bilwada" title: "Mediacal camp - Vaccine" date: 2021-08-28 categories: e2 hero_image: /assets/img/DISTRICT323E2/august2021/gaurav/IMG_20210901_190554 - we clubs of india.jpg image: /assets/img/DISTRICT323E2/august2021/gaurav/IMG_20210901_190554 - we clubs of india.jpg hero_height: is-medium hero_background_size : cover hero_darken: true published: true --- " We Club of Gaurav Bilwada Club organise the vaccination camp at paladi . We Manju Bafna explained the importance of vaccine . She visited door to door. Total 113 people got vaccinated" {% include image-gallery.html folder="/assets/img/DISTRICT323E2/august2021/gaurav" %}
--- layout: test --- # super header ## super mega header > quote <p id="naicuuu">test</p> {% include content.md %}
{ "id": "6dd4911a-ed14-4c9d-8f07-63ddfbe7d5ae", "modelName": "GMObject", "mvc": "1.0", "name": "mainGameObject", "eventList": [ { "id": "6ff3d2e8-caa0-4dc5-8874-e2c7867aee1e", "modelName": "GMEvent", "mvc": "1.0", "IsDnD": false, "collisionObjectId": "00000000-0000-0000-0000-000000000000", "enumb": 0, "eventtype": 0, "m_owner": "6dd4911a-ed14-4c9d-8f07-63ddfbe7d5ae" }, { "id": "7d1f56d9-9082-45e9-8799-b231c298d93d", "modelName": "GMEvent", "mvc": "1.0", "IsDnD": false, "collisionObjectId": "00000000-0000-0000-0000-000000000000", "enumb": 0, "eventtype": 3, "m_owner": "6dd4911a-ed14-4c9d-8f07-63ddfbe7d5ae" }, { "id": "87cfafca-38e5-4c5f-a7e4-156488e3e541", "modelName": "GMEvent", "mvc": "1.0", "IsDnD": false, "collisionObjectId": "00000000-0000-0000-0000-000000000000", "enumb": 54, "eventtype": 6, "m_owner": "6dd4911a-ed14-4c9d-8f07-63ddfbe7d5ae" }, { "id": "4a1a92ec-cd5e-4081-993c-06355af4fe97", "modelName": "GMEvent", "mvc": "1.0", "IsDnD": false, "collisionObjectId": "00000000-0000-0000-0000-000000000000", "enumb": 64, "eventtype": 8, "m_owner": "6dd4911a-ed14-4c9d-8f07-63ddfbe7d5ae" }, { "id": "b4b5ff13-7991-4701-8ae6-422bc137429f", "modelName": "GMEvent", "mvc": "1.0", "IsDnD": false, "collisionObjectId": "00000000-0000-0000-0000-000000000000", "enumb": 1, "eventtype": 2, "m_owner": "6dd4911a-ed14-4c9d-8f07-63ddfbe7d5ae" }, { "id": "b454b776-473f-4ff5-87c6-7cd24bdf2ee5", "modelName": "GMEvent", "mvc": "1.0", "IsDnD": false, "collisionObjectId": "00000000-0000-0000-0000-000000000000", "enumb": 53, "eventtype": 6, "m_owner": "6dd4911a-ed14-4c9d-8f07-63ddfbe7d5ae" }, { "id": "5ecb87dd-d841-4603-beb0-06eef7e0face", "modelName": "GMEvent", "mvc": "1.0", "IsDnD": false, "collisionObjectId": "00000000-0000-0000-0000-000000000000", "enumb": 18, "eventtype": 9, "m_owner": "6dd4911a-ed14-4c9d-8f07-63ddfbe7d5ae" }, { "id": "65a82d7e-1742-4df9-8274-99de6851b36b", "modelName": "GMEvent", "mvc": "1.0", "IsDnD": false, "collisionObjectId": "00000000-0000-0000-0000-000000000000", "enumb": 70, "eventtype": 9, "m_owner": "6dd4911a-ed14-4c9d-8f07-63ddfbe7d5ae" }, { "id": "8cc549f0-f32f-4aba-a687-af860b84eb29", "modelName": "GMEvent", "mvc": "1.0", "IsDnD": false, "collisionObjectId": "00000000-0000-0000-0000-000000000000", "enumb": 77, "eventtype": 8, "m_owner": "6dd4911a-ed14-4c9d-8f07-63ddfbe7d5ae" }, { "id": "b3561839-a78c-45db-8071-29e977858dcb", "modelName": "GMEvent", "mvc": "1.0", "IsDnD": false, "collisionObjectId": "00000000-0000-0000-0000-000000000000", "enumb": 0, "eventtype": 2, "m_owner": "6dd4911a-ed14-4c9d-8f07-63ddfbe7d5ae" }, { "id": "2c61fee9-901b-4536-b88a-a86b682b428a", "modelName": "GMEvent", "mvc": "1.0", "IsDnD": false, "collisionObjectId": "00000000-0000-0000-0000-000000000000", "enumb": 77, "eventtype": 9, "m_owner": "6dd4911a-ed14-4c9d-8f07-63ddfbe7d5ae" } ], "maskSpriteId": "00000000-0000-0000-0000-000000000000", "overriddenProperties": null, "parentObjectId": "00000000-0000-0000-0000-000000000000", "persistent": false, "physicsAngularDamping": 0.1, "physicsDensity": 0.5, "physicsFriction": 0.2, "physicsGroup": 0, "physicsKinematic": false, "physicsLinearDamping": 0.1, "physicsObject": false, "physicsRestitution": 0.1, "physicsSensor": false, "physicsShape": 1, "physicsShapePoints": null, "physicsStartAwake": true, "properties": [ { "id": "3cd8faea-db66-468f-a18b-9c328c1305f6", "modelName": "GMObjectProperty", "mvc": "1.0", "listItems": null, "multiselect": false, "rangeEnabled": false, "rangeMax": 10, "rangeMin": 0, "resourceFilter": 1023, "value": "0", "varName": "resource", "varType": 1 }, { "id": "dc6f7adf-3f89-428e-b559-7110fb799bde", "modelName": "GMObjectProperty", "mvc": "1.0", "listItems": null, "multiselect": false, "rangeEnabled": false, "rangeMax": 10, "rangeMin": 0, "resourceFilter": 1023, "value": "100", "varName": "cleaniness", "varType": 0 }, { "id": "b109987f-e324-4552-aea1-0fa107eaf512", "modelName": "GMObjectProperty", "mvc": "1.0", "listItems": null, "multiselect": false, "rangeEnabled": false, "rangeMax": 10, "rangeMin": 0, "resourceFilter": 1023, "value": "0", "varName": "max_fishes", "varType": 1 }, { "id": "ccbcfdb5-b97e-455e-8ad9-4156a65c09cb", "modelName": "GMObjectProperty", "mvc": "1.0", "listItems": null, "multiselect": false, "rangeEnabled": false, "rangeMax": 10, "rangeMin": 0, "resourceFilter": 1023, "value": "0", "varName": "cleaniness_cooldown", "varType": 1 }, { "id": "c7ce7115-42e2-41c1-9033-af93f1bedbca", "modelName": "GMObjectProperty", "mvc": "1.0", "listItems": null, "multiselect": false, "rangeEnabled": false, "rangeMax": 10, "rangeMin": 0, "resourceFilter": 1023, "value": "0", "varName": "food_cooldown", "varType": 1 } ], "solid": false, "spriteId": "00000000-0000-0000-0000-000000000000", "visible": true }
/* SQLyog Ultimate v13.1.1 (64 bit) MySQL - 8.0.20 : Database - ci4login ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; /*Table structure for table `m_pekerjaan` */ CREATE TABLE `m_pekerjaan` ( `ID` int NOT NULL AUTO_INCREMENT, `PEKERJAAN` varchar(30) DEFAULT NULL, PRIMARY KEY (`ID`) ) ENGINE=InnoDB AUTO_INCREMENT=92 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; /*Data for the table `m_pekerjaan` */ insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (1,'Belum/Tidak Bekerja'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (2,'Mengurus Rumah Tangga'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (3,'Pelajar/Mahasiswa'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (4,'Pensiunan'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (5,'Pegawai Negeri Sipil (PNS)'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (6,'Tentara Nasional Indonesia'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (7,'Kepolisian RI'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (8,'Perdagangan'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (9,'Petani/Pekebun'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (10,'Peternak'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (11,'Nelayan/Perikanan'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (12,'Industri'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (13,'Konstruksi'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (14,'Transportasi'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (15,'Karyawan Swasta'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (16,'Karyawan BUMN'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (17,'Karyawan BUMD'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (18,'Karyawan Honorer'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (19,'Buruh Harian Lepas'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (20,'Buruh Tani/Perkebunan'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (21,'Buruh Nelayan/Perikanan'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (22,'Buruh Peternakan'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (23,'Pembantu Rumah Tangga'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (24,'Tukang Cukur'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (25,'Tukang Listrik'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (26,'Tukang Batu'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (27,'Tukang Kayu'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (28,'Tukang Sol Sepatu'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (29,'Tukang Las/Pandai Besi'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (30,'Tukang Jahit'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (31,'Tukang Gigi'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (32,'Penata Rias'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (33,'Penata Busana'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (34,'Penata Rambut'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (35,'Mekanik'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (36,'Seniman'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (37,'Tabib'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (38,'Paraji'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (39,'Perancang Busana'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (40,'Penterjemah'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (41,'Imam Mesjid'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (42,'Pendeta'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (43,'Pastor'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (44,'Wartawan'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (45,'Ustadz/Mubaligh'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (46,'Juru Masak'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (47,'Promotor Acara'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (48,'Anggota DPR-RI'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (49,'Anggota DPD'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (50,'Anggota BPK'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (51,'Presiden'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (52,'Wakil Presiden'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (53,'Anggota Mahkamah Konstitusi'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (54,'Anggota Kabinet/Kementerian'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (55,'Duta Besar'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (56,'Gubernur'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (57,'Wakil Gubernur'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (58,'Bupati'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (59,'Wakil Bupati'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (60,'Walikota'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (61,'Wakil Walikota'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (62,'Anggota DPRD Provinsi'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (63,'Anggota DPRD Kabupaten/Kota'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (64,'Dosen'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (65,'Guru'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (66,'Pilot'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (67,'Pengacara'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (68,'Notaris'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (69,'Arsitek'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (70,'Akuntan'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (71,'Konsultan'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (72,'Dokter'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (73,'Bidan'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (74,'Perawat'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (75,'Apoteker'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (76,'Psikiater/Psikolog'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (77,'Penyiar Televisi'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (78,'Penyiar Radio'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (79,'Pelaut'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (80,'Peneliti'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (81,'Sopir'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (82,'Pialang'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (83,'Paranormal'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (84,'Pedagang'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (85,'Perangkat Desa'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (86,'Kepala Desa'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (87,'Biarawati'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (88,'Wiraswasta'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (89,'Lainnya'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (90,'Anggota DPRD'); insert into `m_pekerjaan`(`ID`,`PEKERJAAN`) values (91,'Mubalig'); /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
/**************************************************************************** * arch/z80/src/z80/z80_sigdeliver.c * * Copyright (C) 2007-2010, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. 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. * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * * 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 OWNER 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. * ****************************************************************************/ /**************************************************************************** * Included Files ****************************************************************************/ #include <nuttx/config.h> #include <sched.h> #include <debug.h> #include <nuttx/irq.h> #include <nuttx/arch.h> #include <nuttx/board.h> #include "chip/switch.h" #include "sched/sched.h" #include "up_internal.h" #ifndef CONFIG_DISABLE_SIGNALS /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ /**************************************************************************** * Private Data ****************************************************************************/ /**************************************************************************** * Private Functions ****************************************************************************/ /**************************************************************************** * Public Functions ****************************************************************************/ /**************************************************************************** * Name: up_sigdeliver * * Description: * This is the a signal handling trampoline. When a signal action was * posted. The task context was mucked with and forced to branch to this * location with interrupts disabled. * ****************************************************************************/ void up_sigdeliver(void) { #ifndef CONFIG_DISABLE_SIGNALS FAR struct tcb_s *rtcb = (struct tcb_s*)g_readytorun.head; chipreg_t regs[XCPTCONTEXT_REGS]; sig_deliver_t sigdeliver; /* Save the errno. This must be preserved throughout the signal handling * so that the user code final gets the correct errno value (probably * EINTR). */ int saved_errno = rtcb->pterrno; board_led_on(LED_SIGNAL); sdbg("rtcb=%p sigdeliver=%p sigpendactionq.head=%p\n", rtcb, rtcb->xcp.sigdeliver, rtcb->sigpendactionq.head); ASSERT(rtcb->xcp.sigdeliver != NULL); /* Save the real return state on the stack. */ z80_copystate(regs, rtcb->xcp.regs); regs[XCPT_PC] = rtcb->xcp.saved_pc; regs[XCPT_I] = rtcb->xcp.saved_i; /* Get a local copy of the sigdeliver function pointer. We do this so * that we can nullify the sigdeliver function pointer in the TCB and * accept more signal deliveries while processing the current pending * signals. */ sigdeliver = rtcb->xcp.sigdeliver; rtcb->xcp.sigdeliver = NULL; /* Then restore the task interrupt state. */ irqrestore(regs[XCPT_I]); /* Deliver the signals */ sigdeliver(rtcb); /* Output any debug messages BEFORE restoring errno (because they may * alter errno), then disable interrupts again and restore the original * errno that is needed by the user logic (it is probably EINTR). */ sdbg("Resuming\n"); (void)irqsave(); rtcb->pterrno = saved_errno; /* Then restore the correct state for this thread of execution. */ board_led_off(LED_SIGNAL); z80_restoreusercontext(regs); #endif } #endif /* CONFIG_DISABLE_SIGNALS */
ExUnit.start() <%= if ecto do %> <%= adapter_config[:test_setup_all] %> <% end %>
@echo off setlocal set FileUrl=%~1 set OutFile=%~2 set Message=Loading %FileUrl% start "%Message%" /WAIT bitsadmin.exe /transfer "%Message%" "%FileUrl%" "%OutFile%" endlocal
type t = Jq_null |Jq_bool of bool |Jq_number of float |Jq_string of string |Jq_array of t list |Jq_object of (string*t) list class map = Camlp4MapGenerator.generated class fold = Camlp4FoldGenerator.generated (** type t = | Jq_null | Jq_bool of bool | Jq_number of float | Jq_string of string | Jq_array of t list | Jq_object of (string * t) list class map = object ((o : 'self_type)) method string : string -> string = o#unknown method list : 'a 'a_out. ('self_type -> 'a -> 'a_out) -> 'a list -> 'a_out list = fun _f_a -> function | [] -> [] | _x :: _x_i1 -> let _x = _f_a o _x in let _x_i1 = o#list _f_a _x_i1 in _x :: _x_i1 method float : float -> float = o#unknown method bool : bool -> bool = function | false -> false | true -> true method t : t -> t = function | Jq_null -> Jq_null | Jq_bool _x -> let _x = o#bool _x in Jq_bool _x | Jq_number _x -> let _x = o#float _x in Jq_number _x | Jq_string _x -> let _x = o#string _x in Jq_string _x | Jq_array _x -> let _x = o#list (fun o -> o#t) _x in Jq_array _x | Jq_object _x -> let _x = o#list (fun o (_x, _x_i1) -> let _x = o#string _x in let _x_i1 = o#t _x_i1 in (_x, _x_i1)) _x in Jq_object _x method unknown : 'a. 'a -> 'a = fun x -> x end class fold = object ((o : 'self_type)) method string : string -> 'self_type = o#unknown method list : 'a. ('self_type -> 'a -> 'self_type) -> 'a list -> 'self_type = fun _f_a -> function | [] -> o | _x :: _x_i1 -> let o = _f_a o _x in let o = o#list _f_a _x_i1 in o method float : float -> 'self_type = o#unknown method bool : bool -> 'self_type = function | false -> o | true -> o method t : t -> 'self_type = function | Jq_null -> o | Jq_bool _x -> let o = o#bool _x in o | Jq_number _x -> let o = o#float _x in o | Jq_string _x -> let o = o#string _x in o | Jq_array _x -> let o = o#list (fun o -> o#t) _x in o | Jq_object _x -> let o = o#list (fun o (_x, _x_i1) -> let o = o#string _x in let o = o#t _x_i1 in o) _x in o method unknown : 'a. 'a -> 'self_type = fun _ -> o end *)
<master src="master"> <property name="page_title">@page_title;literal@</property> <property name="context_bar">@context_bar;literal@</property> <property name="change_locale">f</property> <property name="focus">category_form.name</property> <formtemplate id="category_form"></formtemplate>
function Get-PASRequest { <# .SYNOPSIS Gets requests .DESCRIPTION Gets Requests .PARAMETER RequestType Specify whether outgoing or incoming requests will be searched for .PARAMETER OnlyWaiting Only requests waiting for approval will be listed .PARAMETER Expired Expired requests will be included in the list .PARAMETER sessionToken Hashtable containing the session token returned from New-PASSession .PARAMETER WebSession WebRequestSession object returned from New-PASSession .PARAMETER BaseURI PVWA Web Address Do not include "/PasswordVault/" .PARAMETER PVWAAppName The name of the CyberArk PVWA Virtual Directory. Defaults to PasswordVault .PARAMETER ExternalVersion The External CyberArk Version, returned automatically from the New-PASSession function from version 9.7 onwards. If the minimum version requirement of this function is not satisfied, execution will be halted. Omitting a value for this parameter, or supplying a version of "0.0" will skip the version check. .EXAMPLE Get-PASRequest -RequestType IncomingRequests -OnlyWaiting $true -sessionToken $token -BaseURI $url Lists waiting incoming requests .EXAMPLE Get-PASRequest -RequestType MyRequests -Expired $false -sessionToken $token.sessiontoken -BaseURI $token.url Lists your none expired (outgoing) requests. .INPUTS All parameters can be piped by property name .OUTPUTS SessionToken, WebSession, BaseURI are passed through and contained in output object for inclusion in subsequent pipeline operations. Output format is defined via psPAS.Format.ps1xml. To force all output to be shown, pipe to Select-Object * .NOTES Minimum CyberArk Version 9.10 .LINK #> [CmdletBinding()] param( [parameter( Mandatory = $true, ValueFromPipelinebyPropertyName = $true )] [ValidateNotNullOrEmpty()] [ValidateSet("MyRequests", "IncomingRequests")] [string]$RequestType, [parameter( Mandatory = $true, ValueFromPipelinebyPropertyName = $true )] [boolean]$OnlyWaiting, [parameter( Mandatory = $true, ValueFromPipelinebyPropertyName = $true )] [boolean]$Expired, [parameter( Mandatory = $true, ValueFromPipelinebyPropertyName = $true )] [ValidateNotNullOrEmpty()] [hashtable]$sessionToken, [parameter( ValueFromPipelinebyPropertyName = $true )] [Microsoft.PowerShell.Commands.WebRequestSession]$WebSession, [parameter( Mandatory = $true, ValueFromPipelinebyPropertyName = $true )] [string]$BaseURI, [parameter( Mandatory = $false, ValueFromPipelinebyPropertyName = $true )] [string]$PVWAAppName = "PasswordVault", [parameter( Mandatory = $false, ValueFromPipelinebyPropertyName = $true )] [System.Version]$ExternalVersion = "0.0" ) BEGIN { $MinimumVersion = [System.Version]"9.10" }#begin PROCESS { Assert-VersionRequirement -ExternalVersion $ExternalVersion -RequiredVersion $MinimumVersion #Create URL for Request $URI = "$baseURI/$PVWAAppName/API/$($RequestType)?onlywaiting=$OnlyWaiting&expired=$Expired" #send request to PAS web service $result = Invoke-PASRestMethod -Uri $URI -Method GET -Headers $sessionToken -WebSession $WebSession If($result) { #Return Results $result.$RequestType | Add-ObjectDetail -typename psPAS.CyberArk.Vault.Request.Details -PropertyToAdd @{ "sessionToken" = $sessionToken "WebSession" = $WebSession "BaseURI" = $BaseURI "PVWAAppName" = $PVWAAppName "ExternalVersion" = $ExternalVersion } } }#process END {}#end }
unit KeyGen; interface function DecodeUName : string; procedure Start; implementation uses Windows, SysUtils, Classes, CryptCon, ElTools, ElStrUtils, IdeaUnit, MD5Unit; function DecodeUName : string; var Stream : TFileStream; FileName : string; MD5 : TMD5; MemStream : TStringStream; arr : array [1..17] of char; IDEA: TIDEA; begin result := ''; FileName := ExtractFilePath(ParamStr(0))+'ElKeeper.key.bin'; if not FileExists(FileName) then exit; MD5:=TMD5.Create; MD5.InputType:=SourceString; MD5.InputString := 'EldoS Keeper'; MD5.pOutputArray:= @arr; MD5.MD5_Hash; arr[17]:=#0; MD5.Free; try MemStream := nil; Stream := nil; IDEA := nil; try MemStream := TStringStream.Create(''); Stream :=TFileStream.Create(FileName, fmOpenRead or fmShareDenyWrite); IDEA := TIDEA.Create(nil); IDEA.InputType := SourceStream; IDEA.CipherMode := ECBMode; IDEA.IVector:='EldoS Keeper'; IDEA.Key:=StrPas(@arr); IDEA.InputStream:=Stream; IDEA.OutputStream:=MemStream; IDEA.DecipherData(False); MemStream.Seek(0, soFromBeginning); result := MemStream.DataString; finally IDEA.free; MemStream.Free; Stream.Free; end; except end; end; procedure Start; var UserName : string; var Stream : TStream; MD5 : TMD5; MemStream : TStringStream; arr : array [1..17] of char; IDEA: TIDEA; FileName : string; S : string; p : pointer; i : integer; begin UserName := ParamStr(1); FileName := ExtractFilePath(ParamStr(0))+'ElKeeper.key'; MD5:=TMD5.Create; MD5.InputType:=SourceString; MD5.InputString:='EldoS Keeper'; MD5.pOutputArray:=@arr; MD5.MD5_Hash; arr[17]:=#0; MD5.Free; MemStream := nil; Stream := nil; IDEA := nil; try MemStream := TStringStream.Create(UserName); MemStream.Seek(0, soFromBeginning); if FileExists(FileName) then DeleteFile(FileName); Stream := TDirectMemoryStream.Create; IDEA := TIDEA.Create(nil); try IDEA.InputType := SourceStream; IDEA.CipherMode := ECBMode; IDEA.IVector:='EldoS Keeper'; IDEA.Key:=StrPas(@arr); IDEA.InputStream := MemStream; IDEA.OutputStream := Stream; IDEA.EncipherData(False); S := Data2Str(TDirectMemoryStream(Stream).Memory, Stream.Size); Stream.Free; Stream := TFileStream.Create(Filename, fmCreate or fmShareDenyWrite); WriteTextToStream(Stream, S); Stream.Free; Str2Data(S, p, i); DeleteFile(FileName + '.bin'); Stream := TFileStream.Create(Filename + '.bin', fmCreate or fmShareDenyWrite); Stream.WriteBuffer(Pchar(p)^, i); Stream.Free; finally IDEA.free; MemStream.Free; writeln(output, 'The key was generated for ', DecodeUName); end; except writeln('Failed to create a key'); end; end; end.
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r15 push %r9 push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0x12b2f, %r12 nop nop nop cmp $14093, %r11 movb $0x61, (%r12) nop nop nop nop nop add $13332, %r15 lea addresses_UC_ht+0x13b2f, %rbx nop and %r11, %r11 movups (%rbx), %xmm2 vpextrq $1, %xmm2, %rcx cmp %r12, %r12 lea addresses_WC_ht+0x1292f, %rcx nop nop nop cmp $17261, %r15 movb (%rcx), %bl nop nop nop nop nop sub %r11, %r11 lea addresses_WT_ht+0x1132f, %rbx nop nop nop nop dec %r9 movl $0x61626364, (%rbx) nop cmp $50597, %r11 lea addresses_UC_ht+0x4d2f, %r12 nop nop nop sub $18583, %rdi mov (%r12), %r15 nop nop nop nop dec %rdi lea addresses_A_ht+0xac33, %rsi lea addresses_A_ht+0x121ef, %rdi nop nop cmp %r15, %r15 mov $28, %rcx rep movsw and $40812, %rsi lea addresses_normal_ht+0x72f, %r11 clflush (%r11) nop nop cmp %r12, %r12 movb (%r11), %r15b nop nop nop dec %r12 lea addresses_A_ht+0x1bd3f, %rsi lea addresses_WC_ht+0x118c7, %rdi and %r9, %r9 mov $49, %rcx rep movsw nop dec %r9 lea addresses_WC_ht+0x340f, %rsi lea addresses_WT_ht+0xe8b1, %rdi xor %r15, %r15 mov $18, %rcx rep movsq and %rdi, %rdi lea addresses_WT_ht+0x1c4eb, %rsi nop nop nop nop and %rcx, %rcx mov $0x6162636465666768, %r11 movq %r11, %xmm4 movups %xmm4, (%rsi) nop xor $50410, %r9 lea addresses_D_ht+0x11e6f, %rsi lea addresses_A_ht+0x1946f, %rdi nop nop nop nop nop xor $11229, %r9 mov $76, %rcx rep movsw and $51973, %rbx lea addresses_A_ht+0x1688f, %rsi lea addresses_normal_ht+0x133ff, %rdi and $22064, %r9 mov $29, %rcx rep movsl nop xor $6931, %rsi lea addresses_A_ht+0x16405, %r11 nop nop nop xor $31630, %r12 mov (%r11), %esi nop inc %r9 pop %rsi pop %rdi pop %rcx pop %rbx pop %r9 pop %r15 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r13 push %r15 push %r8 push %rbx push %rcx push %rdi push %rsi // Store lea addresses_PSE+0x5d07, %r8 nop nop nop nop sub %r10, %r10 movl $0x51525354, (%r8) inc %r12 // Store lea addresses_PSE+0x14b2f, %rdi nop add %r15, %r15 movw $0x5152, (%rdi) nop nop nop nop nop inc %rbx // Store lea addresses_A+0xb32f, %rdi nop xor $11527, %r13 mov $0x5152535455565758, %r15 movq %r15, %xmm4 vmovups %ymm4, (%rdi) nop nop nop nop sub $12848, %r8 // REPMOV mov $0x7150680000000b2f, %rsi lea addresses_WC+0x1cae7, %rdi nop nop sub %rbx, %rbx mov $42, %rcx rep movsb nop nop nop nop and %r10, %r10 // Faulty Load lea addresses_A+0xb32f, %rsi nop nop nop nop nop xor $49225, %r8 movb (%rsi), %r10b lea oracles, %rdi and $0xff, %r10 shlq $12, %r10 mov (%rdi,%r10,1), %r10 pop %rsi pop %rdi pop %rcx pop %rbx pop %r8 pop %r15 pop %r13 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_A', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 0}} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 11}} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': False, 'size': 32, 'NT': False, 'same': True, 'congruent': 0}} {'src': {'type': 'addresses_NC', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC', 'congruent': 3, 'same': False}} [Faulty Load] {'src': {'type': 'addresses_A', 'AVXalign': False, 'size': 1, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 10}} {'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': True, 'congruent': 10}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': True, 'congruent': 8}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 11}} {'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 8}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}} {'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 8}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': True}} {'src': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 0}} {'src': {'type': 'addresses_D_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 3, 'same': False}} {'src': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 3, 'same': False}} {'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 4, 'NT': True, 'same': False, 'congruent': 1}, 'OP': 'LOAD'} {'58': 24} 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
tell application "GeekTool Helper.app" --geeklets properties of «class gLet» id "87C7FBD3-61F7-4494-8A3A-9DC8D7B09C4F" set myps to first item of (every «class gLet» whose name is "myps") set position of myps to {-200, 400} --repeat with g in geeklets -- tell g -- name -- end tell --end repeat end tell
--- title: "XML Schemas" parent: "integration" --- An XML schema is defined in an XML Schema Definition (XSD) file and can be imported in your model. It describes what a certain XML document should look like. The schema can then be used in [Domain-to-XML Mappings](domain-to-xml-mappings) or [XML-to-Domain Mappings](xml-to-domain-mappings). ## General ### Name The name of the schema. ### Documentation Documentation that describes the schema. ## XSD File ### Original path The file path to the XSD file. After selecting an XSD file, hit 'Import XSD file'. ### Elements The elements of which the XML file is comprised. {{% alert type="info" %}} ![](attachments/819203/918225.png) A simple schema {{% /alert %}}
;;; Rails ;; ;; Rinari ;; (add-to-list 'load-path (expand-file-name "~/.emacs.d/vendor/rinari")) ;; (require 'rinari) ;; (defalias 'rake 'rinari-rake) ;; ;; rhtml-mode ;; (add-to-list 'load-path (expand-file-name "~/.emacs.d/vendor/rhtml")) ;; (require 'rhtml-mode) ;; (add-hook 'rhtml-mode-hook ;; (lambda () (rinari-launch))) ;; ;; Map .html.erb extension ;; (add-to-list 'auto-mode-alist '("\\.html\\.erb$" . rhtml-mode)) ;; ;; Rinari rhtml-mode color overrides ;; (set-face-background 'erb-face "gray9") ;; (set-face-background 'erb-delim-face "gray9") ;; (set-face-background 'erb-out-delim-face "gray9") (add-to-list 'load-path (expand-file-name "~/.emacs.d/vendor/emacs-rails-reloaded")) (require 'rails-autoload)
USER_NAME := drashna SRC += ../drashna/keymap.c include $(KEYBOARD_PATH_2)/keymaps/drashna/rules.mk
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! #include "config.h" #include "MIDIConnectionEventInit.h" namespace blink { MIDIConnectionEventInit::MIDIConnectionEventInit() { } DEFINE_TRACE(MIDIConnectionEventInit) { visitor->trace(m_port); EventInit::trace(visitor); } } // namespace blink
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _ Partial Class GameSettings Inherits System.Windows.Forms.Form 'Form overrides dispose to clean up the component list. <System.Diagnostics.DebuggerNonUserCode()> _ Protected Overrides Sub Dispose(ByVal disposing As Boolean) Try If disposing AndAlso components IsNot Nothing Then components.Dispose() End If Finally MyBase.Dispose(disposing) End Try End Sub 'Required by the Windows Form Designer Private components As System.ComponentModel.IContainer 'NOTE: The following procedure is required by the Windows Form Designer 'It can be modified using the Windows Form Designer. 'Do not modify it using the code editor. <System.Diagnostics.DebuggerStepThrough()> _ Private Sub InitializeComponent() Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(GameSettings)) Me.MainTabControl = New System.Windows.Forms.TabControl() Me.GeneralTabPage = New System.Windows.Forms.TabPage() Me.MidPointCheckBox = New System.Windows.Forms.CheckBox() Me.Label1 = New System.Windows.Forms.Label() Me.NitroFSCallCheckBox = New System.Windows.Forms.CheckBox() Me.FATCallCheckBox = New System.Windows.Forms.CheckBox() Me.StartingRoomDropper = New System.Windows.Forms.ComboBox() Me.StartingRoomLabel = New System.Windows.Forms.Label() Me.ProjectInfoTabPage = New System.Windows.Forms.TabPage() Me.BrowseButton = New System.Windows.Forms.Button() Me.IconFileTextbox = New System.Windows.Forms.TextBox() Me.Label2 = New System.Windows.Forms.Label() Me.ProjectInfoInfoLabel = New System.Windows.Forms.Label() Me.Text3TextBox = New System.Windows.Forms.TextBox() Me.Text3Label = New System.Windows.Forms.Label() Me.Text2TextBox = New System.Windows.Forms.TextBox() Me.Text2Label = New System.Windows.Forms.Label() Me.ProjectNameTextBox = New System.Windows.Forms.TextBox() Me.ProjectNameLabel = New System.Windows.Forms.Label() Me.ScoringTabPage = New System.Windows.Forms.TabPage() Me.HealthDropper = New System.Windows.Forms.NumericUpDown() Me.ScoreDropper = New System.Windows.Forms.NumericUpDown() Me.LivesDropper = New System.Windows.Forms.NumericUpDown() Me.HealthLabel = New System.Windows.Forms.Label() Me.LivesLabel = New System.Windows.Forms.Label() Me.ScoreLabel = New System.Windows.Forms.Label() Me.ScoringInfoLabel = New System.Windows.Forms.Label() Me.CodingTabPage = New System.Windows.Forms.TabPage() Me.NitroFSFilesControlPanel = New System.Windows.Forms.Panel() Me.DeleteNitroFSFileButton = New System.Windows.Forms.Button() Me.EditNitroFSFileButton = New System.Windows.Forms.Button() Me.AddNitroFSFileButton = New System.Windows.Forms.Button() Me.IncludeFilesControlPanel = New System.Windows.Forms.Panel() Me.DeleteIncludeFileButton = New System.Windows.Forms.Button() Me.EditIncludeFileButton = New System.Windows.Forms.Button() Me.AddIncludeFileButton = New System.Windows.Forms.Button() Me.NitroFSFilesLabel = New System.Windows.Forms.Label() Me.NitroFSFilesList = New System.Windows.Forms.ListBox() Me.IncludeFilesLabel = New System.Windows.Forms.Label() Me.IncludeFilesList = New System.Windows.Forms.ListBox() Me.IncludeWiFiLibChecker = New System.Windows.Forms.CheckBox() Me.DCancelButton = New System.Windows.Forms.Button() Me.DOkayButton = New System.Windows.Forms.Button() Me.IconOpenFileDialog = New System.Windows.Forms.OpenFileDialog() Me.MainTabControl.SuspendLayout() Me.GeneralTabPage.SuspendLayout() Me.ProjectInfoTabPage.SuspendLayout() Me.ScoringTabPage.SuspendLayout() CType(Me.HealthDropper, System.ComponentModel.ISupportInitialize).BeginInit() CType(Me.ScoreDropper, System.ComponentModel.ISupportInitialize).BeginInit() CType(Me.LivesDropper, System.ComponentModel.ISupportInitialize).BeginInit() Me.CodingTabPage.SuspendLayout() Me.NitroFSFilesControlPanel.SuspendLayout() Me.IncludeFilesControlPanel.SuspendLayout() Me.SuspendLayout() ' 'MainTabControl ' Me.MainTabControl.Controls.Add(Me.GeneralTabPage) Me.MainTabControl.Controls.Add(Me.ProjectInfoTabPage) Me.MainTabControl.Controls.Add(Me.ScoringTabPage) Me.MainTabControl.Controls.Add(Me.CodingTabPage) Me.MainTabControl.Location = New System.Drawing.Point(0, 0) Me.MainTabControl.Name = "MainTabControl" Me.MainTabControl.SelectedIndex = 0 Me.MainTabControl.Size = New System.Drawing.Size(284, 262) Me.MainTabControl.TabIndex = 0 ' 'GeneralTabPage ' Me.GeneralTabPage.Controls.Add(Me.MidPointCheckBox) Me.GeneralTabPage.Controls.Add(Me.Label1) Me.GeneralTabPage.Controls.Add(Me.NitroFSCallCheckBox) Me.GeneralTabPage.Controls.Add(Me.FATCallCheckBox) Me.GeneralTabPage.Controls.Add(Me.StartingRoomDropper) Me.GeneralTabPage.Controls.Add(Me.StartingRoomLabel) Me.GeneralTabPage.Location = New System.Drawing.Point(4, 22) Me.GeneralTabPage.Name = "GeneralTabPage" Me.GeneralTabPage.Padding = New System.Windows.Forms.Padding(3) Me.GeneralTabPage.Size = New System.Drawing.Size(276, 236) Me.GeneralTabPage.TabIndex = 0 Me.GeneralTabPage.Text = "General" Me.GeneralTabPage.UseVisualStyleBackColor = True ' 'MidPointCheckBox ' Me.MidPointCheckBox.AutoSize = True Me.MidPointCheckBox.Location = New System.Drawing.Point(20, 104) Me.MidPointCheckBox.Name = "MidPointCheckBox" Me.MidPointCheckBox.Size = New System.Drawing.Size(133, 17) Me.MidPointCheckBox.TabIndex = 8 Me.MidPointCheckBox.Text = "Use Midpoint Collisions" Me.MidPointCheckBox.UseVisualStyleBackColor = True ' 'Label1 ' Me.Label1.AutoSize = True Me.Label1.Font = New System.Drawing.Font("Tahoma", 8.25!, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.Label1.Location = New System.Drawing.Point(34, 88) Me.Label1.Name = "Label1" Me.Label1.Size = New System.Drawing.Size(151, 13) Me.Label1.TabIndex = 7 Me.Label1.Text = "Enables Sound and Filesystem" ' 'NitroFSCallCheckBox ' Me.NitroFSCallCheckBox.AutoSize = True Me.NitroFSCallCheckBox.Location = New System.Drawing.Point(20, 69) Me.NitroFSCallCheckBox.Name = "NitroFSCallCheckBox" Me.NitroFSCallCheckBox.Size = New System.Drawing.Size(162, 17) Me.NitroFSCallCheckBox.TabIndex = 3 Me.NitroFSCallCheckBox.Text = "Perform NitroFS Initialization" Me.NitroFSCallCheckBox.UseVisualStyleBackColor = True ' 'FATCallCheckBox ' Me.FATCallCheckBox.AutoSize = True Me.FATCallCheckBox.Location = New System.Drawing.Point(20, 46) Me.FATCallCheckBox.Name = "FATCallCheckBox" Me.FATCallCheckBox.Size = New System.Drawing.Size(185, 17) Me.FATCallCheckBox.TabIndex = 2 Me.FATCallCheckBox.Text = "Perform Generic FAT Initialization" Me.FATCallCheckBox.UseVisualStyleBackColor = True ' 'StartingRoomDropper ' Me.StartingRoomDropper.FormattingEnabled = True Me.StartingRoomDropper.Location = New System.Drawing.Point(119, 17) Me.StartingRoomDropper.Name = "StartingRoomDropper" Me.StartingRoomDropper.Size = New System.Drawing.Size(112, 21) Me.StartingRoomDropper.TabIndex = 1 ' 'StartingRoomLabel ' Me.StartingRoomLabel.AutoSize = True Me.StartingRoomLabel.Location = New System.Drawing.Point(20, 20) Me.StartingRoomLabel.Name = "StartingRoomLabel" Me.StartingRoomLabel.Size = New System.Drawing.Size(79, 13) Me.StartingRoomLabel.TabIndex = 0 Me.StartingRoomLabel.Text = "Starting Room:" ' 'ProjectInfoTabPage ' Me.ProjectInfoTabPage.Controls.Add(Me.BrowseButton) Me.ProjectInfoTabPage.Controls.Add(Me.IconFileTextbox) Me.ProjectInfoTabPage.Controls.Add(Me.Label2) Me.ProjectInfoTabPage.Controls.Add(Me.ProjectInfoInfoLabel) Me.ProjectInfoTabPage.Controls.Add(Me.Text3TextBox) Me.ProjectInfoTabPage.Controls.Add(Me.Text3Label) Me.ProjectInfoTabPage.Controls.Add(Me.Text2TextBox) Me.ProjectInfoTabPage.Controls.Add(Me.Text2Label) Me.ProjectInfoTabPage.Controls.Add(Me.ProjectNameTextBox) Me.ProjectInfoTabPage.Controls.Add(Me.ProjectNameLabel) Me.ProjectInfoTabPage.Location = New System.Drawing.Point(4, 22) Me.ProjectInfoTabPage.Name = "ProjectInfoTabPage" Me.ProjectInfoTabPage.Padding = New System.Windows.Forms.Padding(3) Me.ProjectInfoTabPage.Size = New System.Drawing.Size(276, 236) Me.ProjectInfoTabPage.TabIndex = 2 Me.ProjectInfoTabPage.Text = "Project Info." Me.ProjectInfoTabPage.UseVisualStyleBackColor = True ' 'BrowseButton ' Me.BrowseButton.Image = Global.DS_Game_Maker.My.Resources.Resources.FolderIcon Me.BrowseButton.Location = New System.Drawing.Point(232, 183) Me.BrowseButton.Name = "BrowseButton" Me.BrowseButton.Size = New System.Drawing.Size(24, 24) Me.BrowseButton.TabIndex = 15 Me.BrowseButton.UseVisualStyleBackColor = True ' 'IconFileTextbox ' Me.IconFileTextbox.Location = New System.Drawing.Point(119, 183) Me.IconFileTextbox.Name = "IconFileTextbox" Me.IconFileTextbox.Size = New System.Drawing.Size(107, 21) Me.IconFileTextbox.TabIndex = 14 ' 'Label2 ' Me.Label2.AutoSize = True Me.Label2.Location = New System.Drawing.Point(20, 186) Me.Label2.Name = "Label2" Me.Label2.Size = New System.Drawing.Size(32, 13) Me.Label2.TabIndex = 13 Me.Label2.Text = "Icon:" ' 'ProjectInfoInfoLabel ' Me.ProjectInfoInfoLabel.BackColor = System.Drawing.SystemColors.Control Me.ProjectInfoInfoLabel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D Me.ProjectInfoInfoLabel.Location = New System.Drawing.Point(20, 20) Me.ProjectInfoInfoLabel.Name = "ProjectInfoInfoLabel" Me.ProjectInfoInfoLabel.Padding = New System.Windows.Forms.Padding(8) Me.ProjectInfoInfoLabel.Size = New System.Drawing.Size(236, 72) Me.ProjectInfoInfoLabel.TabIndex = 12 Me.ProjectInfoInfoLabel.Text = "A game can have 3 lines of description texts that appear on the DS Homebrew Kit o" & _ "r other Flashcart. The Project Name is equivelant to the first thereof." Me.ProjectInfoInfoLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter ' 'Text3TextBox ' Me.Text3TextBox.Location = New System.Drawing.Point(119, 156) Me.Text3TextBox.MaxLength = 24 Me.Text3TextBox.Name = "Text3TextBox" Me.Text3TextBox.Size = New System.Drawing.Size(112, 21) Me.Text3TextBox.TabIndex = 11 ' 'Text3Label ' Me.Text3Label.AutoSize = True Me.Text3Label.Location = New System.Drawing.Point(20, 159) Me.Text3Label.Name = "Text3Label" Me.Text3Label.Size = New System.Drawing.Size(42, 13) Me.Text3Label.TabIndex = 10 Me.Text3Label.Text = "Text 3:" ' 'Text2TextBox ' Me.Text2TextBox.Location = New System.Drawing.Point(119, 129) Me.Text2TextBox.MaxLength = 24 Me.Text2TextBox.Name = "Text2TextBox" Me.Text2TextBox.Size = New System.Drawing.Size(112, 21) Me.Text2TextBox.TabIndex = 9 ' 'Text2Label ' Me.Text2Label.AutoSize = True Me.Text2Label.Location = New System.Drawing.Point(20, 132) Me.Text2Label.Name = "Text2Label" Me.Text2Label.Size = New System.Drawing.Size(42, 13) Me.Text2Label.TabIndex = 8 Me.Text2Label.Text = "Text 2:" ' 'ProjectNameTextBox ' Me.ProjectNameTextBox.Location = New System.Drawing.Point(119, 102) Me.ProjectNameTextBox.MaxLength = 24 Me.ProjectNameTextBox.Name = "ProjectNameTextBox" Me.ProjectNameTextBox.Size = New System.Drawing.Size(112, 21) Me.ProjectNameTextBox.TabIndex = 7 ' 'ProjectNameLabel ' Me.ProjectNameLabel.AutoSize = True Me.ProjectNameLabel.Location = New System.Drawing.Point(20, 105) Me.ProjectNameLabel.Name = "ProjectNameLabel" Me.ProjectNameLabel.Size = New System.Drawing.Size(75, 13) Me.ProjectNameLabel.TabIndex = 6 Me.ProjectNameLabel.Text = "Project Name:" ' 'ScoringTabPage ' Me.ScoringTabPage.Controls.Add(Me.HealthDropper) Me.ScoringTabPage.Controls.Add(Me.ScoreDropper) Me.ScoringTabPage.Controls.Add(Me.LivesDropper) Me.ScoringTabPage.Controls.Add(Me.HealthLabel) Me.ScoringTabPage.Controls.Add(Me.LivesLabel) Me.ScoringTabPage.Controls.Add(Me.ScoreLabel) Me.ScoringTabPage.Controls.Add(Me.ScoringInfoLabel) Me.ScoringTabPage.Location = New System.Drawing.Point(4, 22) Me.ScoringTabPage.Name = "ScoringTabPage" Me.ScoringTabPage.Padding = New System.Windows.Forms.Padding(3) Me.ScoringTabPage.Size = New System.Drawing.Size(276, 236) Me.ScoringTabPage.TabIndex = 1 Me.ScoringTabPage.Text = "Scoring" Me.ScoringTabPage.UseVisualStyleBackColor = True ' 'HealthDropper ' Me.HealthDropper.Location = New System.Drawing.Point(119, 144) Me.HealthDropper.Maximum = New Decimal(New Integer() {8192, 0, 0, 0}) Me.HealthDropper.Name = "HealthDropper" Me.HealthDropper.Size = New System.Drawing.Size(60, 21) Me.HealthDropper.TabIndex = 20 Me.HealthDropper.TextAlign = System.Windows.Forms.HorizontalAlignment.Center ' 'ScoreDropper ' Me.ScoreDropper.Location = New System.Drawing.Point(119, 90) Me.ScoreDropper.Maximum = New Decimal(New Integer() {8192, 0, 0, 0}) Me.ScoreDropper.Name = "ScoreDropper" Me.ScoreDropper.Size = New System.Drawing.Size(60, 21) Me.ScoreDropper.TabIndex = 19 Me.ScoreDropper.TextAlign = System.Windows.Forms.HorizontalAlignment.Center ' 'LivesDropper ' Me.LivesDropper.Location = New System.Drawing.Point(119, 117) Me.LivesDropper.Maximum = New Decimal(New Integer() {8192, 0, 0, 0}) Me.LivesDropper.Name = "LivesDropper" Me.LivesDropper.Size = New System.Drawing.Size(60, 21) Me.LivesDropper.TabIndex = 18 Me.LivesDropper.TextAlign = System.Windows.Forms.HorizontalAlignment.Center ' 'HealthLabel ' Me.HealthLabel.AutoSize = True Me.HealthLabel.Location = New System.Drawing.Point(20, 146) Me.HealthLabel.Name = "HealthLabel" Me.HealthLabel.Size = New System.Drawing.Size(42, 13) Me.HealthLabel.TabIndex = 16 Me.HealthLabel.Text = "Health:" ' 'LivesLabel ' Me.LivesLabel.AutoSize = True Me.LivesLabel.Location = New System.Drawing.Point(20, 119) Me.LivesLabel.Name = "LivesLabel" Me.LivesLabel.Size = New System.Drawing.Size(35, 13) Me.LivesLabel.TabIndex = 14 Me.LivesLabel.Text = "Lives:" ' 'ScoreLabel ' Me.ScoreLabel.AutoSize = True Me.ScoreLabel.Location = New System.Drawing.Point(20, 92) Me.ScoreLabel.Name = "ScoreLabel" Me.ScoreLabel.Size = New System.Drawing.Size(38, 13) Me.ScoreLabel.TabIndex = 12 Me.ScoreLabel.Text = "Score:" ' 'ScoringInfoLabel ' Me.ScoringInfoLabel.BackColor = System.Drawing.SystemColors.Control Me.ScoringInfoLabel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D Me.ScoringInfoLabel.Location = New System.Drawing.Point(20, 20) Me.ScoringInfoLabel.Name = "ScoringInfoLabel" Me.ScoringInfoLabel.Padding = New System.Windows.Forms.Padding(8) Me.ScoringInfoLabel.Size = New System.Drawing.Size(236, 57) Me.ScoringInfoLabel.TabIndex = 0 Me.ScoringInfoLabel.Text = "Here you may set the default values (values when the Game starts) of the built-in" & _ " lives, health and score variables." Me.ScoringInfoLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter ' 'CodingTabPage ' Me.CodingTabPage.Controls.Add(Me.NitroFSFilesControlPanel) Me.CodingTabPage.Controls.Add(Me.IncludeFilesControlPanel) Me.CodingTabPage.Controls.Add(Me.NitroFSFilesLabel) Me.CodingTabPage.Controls.Add(Me.NitroFSFilesList) Me.CodingTabPage.Controls.Add(Me.IncludeFilesLabel) Me.CodingTabPage.Controls.Add(Me.IncludeFilesList) Me.CodingTabPage.Controls.Add(Me.IncludeWiFiLibChecker) Me.CodingTabPage.Location = New System.Drawing.Point(4, 22) Me.CodingTabPage.Name = "CodingTabPage" Me.CodingTabPage.Padding = New System.Windows.Forms.Padding(3) Me.CodingTabPage.Size = New System.Drawing.Size(276, 236) Me.CodingTabPage.TabIndex = 3 Me.CodingTabPage.Text = "Coding" Me.CodingTabPage.UseVisualStyleBackColor = True ' 'NitroFSFilesControlPanel ' Me.NitroFSFilesControlPanel.BackColor = System.Drawing.Color.FromArgb(CType(CType(224, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(224, Byte), Integer)) Me.NitroFSFilesControlPanel.Controls.Add(Me.DeleteNitroFSFileButton) Me.NitroFSFilesControlPanel.Controls.Add(Me.EditNitroFSFileButton) Me.NitroFSFilesControlPanel.Controls.Add(Me.AddNitroFSFileButton) Me.NitroFSFilesControlPanel.Location = New System.Drawing.Point(143, 173) Me.NitroFSFilesControlPanel.Name = "NitroFSFilesControlPanel" Me.NitroFSFilesControlPanel.Size = New System.Drawing.Size(113, 30) Me.NitroFSFilesControlPanel.TabIndex = 7 ' 'DeleteNitroFSFileButton ' Me.DeleteNitroFSFileButton.AccessibleName = "Delete NitroFS File" Me.DeleteNitroFSFileButton.Image = Global.DS_Game_Maker.My.Resources.Resources.DeleteIcon Me.DeleteNitroFSFileButton.Location = New System.Drawing.Point(62, 2) Me.DeleteNitroFSFileButton.Name = "DeleteNitroFSFileButton" Me.DeleteNitroFSFileButton.Size = New System.Drawing.Size(30, 26) Me.DeleteNitroFSFileButton.TabIndex = 10 Me.DeleteNitroFSFileButton.UseVisualStyleBackColor = True ' 'EditNitroFSFileButton ' Me.EditNitroFSFileButton.AccessibleName = "Edit NitroFS File" Me.EditNitroFSFileButton.Image = Global.DS_Game_Maker.My.Resources.Resources.PencilIcon Me.EditNitroFSFileButton.Location = New System.Drawing.Point(32, 2) Me.EditNitroFSFileButton.Name = "EditNitroFSFileButton" Me.EditNitroFSFileButton.Size = New System.Drawing.Size(30, 26) Me.EditNitroFSFileButton.TabIndex = 9 Me.EditNitroFSFileButton.UseVisualStyleBackColor = True ' 'AddNitroFSFileButton ' Me.AddNitroFSFileButton.AccessibleName = "Add NitroFS File" Me.AddNitroFSFileButton.Image = Global.DS_Game_Maker.My.Resources.Resources.PlusIcon Me.AddNitroFSFileButton.Location = New System.Drawing.Point(2, 2) Me.AddNitroFSFileButton.Name = "AddNitroFSFileButton" Me.AddNitroFSFileButton.Size = New System.Drawing.Size(30, 26) Me.AddNitroFSFileButton.TabIndex = 8 Me.AddNitroFSFileButton.UseVisualStyleBackColor = True ' 'IncludeFilesControlPanel ' Me.IncludeFilesControlPanel.BackColor = System.Drawing.Color.FromArgb(CType(CType(224, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(224, Byte), Integer)) Me.IncludeFilesControlPanel.Controls.Add(Me.DeleteIncludeFileButton) Me.IncludeFilesControlPanel.Controls.Add(Me.EditIncludeFileButton) Me.IncludeFilesControlPanel.Controls.Add(Me.AddIncludeFileButton) Me.IncludeFilesControlPanel.Location = New System.Drawing.Point(20, 173) Me.IncludeFilesControlPanel.Name = "IncludeFilesControlPanel" Me.IncludeFilesControlPanel.Size = New System.Drawing.Size(113, 30) Me.IncludeFilesControlPanel.TabIndex = 6 ' 'DeleteIncludeFileButton ' Me.DeleteIncludeFileButton.AccessibleName = "Delete Include File" Me.DeleteIncludeFileButton.Image = Global.DS_Game_Maker.My.Resources.Resources.DeleteIcon Me.DeleteIncludeFileButton.Location = New System.Drawing.Point(62, 2) Me.DeleteIncludeFileButton.Name = "DeleteIncludeFileButton" Me.DeleteIncludeFileButton.Size = New System.Drawing.Size(30, 26) Me.DeleteIncludeFileButton.TabIndex = 7 Me.DeleteIncludeFileButton.UseVisualStyleBackColor = True ' 'EditIncludeFileButton ' Me.EditIncludeFileButton.AccessibleName = "Edit Include File" Me.EditIncludeFileButton.Image = Global.DS_Game_Maker.My.Resources.Resources.PencilIcon Me.EditIncludeFileButton.Location = New System.Drawing.Point(32, 2) Me.EditIncludeFileButton.Name = "EditIncludeFileButton" Me.EditIncludeFileButton.Size = New System.Drawing.Size(30, 26) Me.EditIncludeFileButton.TabIndex = 6 Me.EditIncludeFileButton.UseVisualStyleBackColor = True ' 'AddIncludeFileButton ' Me.AddIncludeFileButton.AccessibleName = "Add Include File" Me.AddIncludeFileButton.Image = Global.DS_Game_Maker.My.Resources.Resources.PlusIcon Me.AddIncludeFileButton.Location = New System.Drawing.Point(2, 2) Me.AddIncludeFileButton.Name = "AddIncludeFileButton" Me.AddIncludeFileButton.Size = New System.Drawing.Size(30, 26) Me.AddIncludeFileButton.TabIndex = 5 Me.AddIncludeFileButton.UseVisualStyleBackColor = True ' 'NitroFSFilesLabel ' Me.NitroFSFilesLabel.AutoSize = True Me.NitroFSFilesLabel.Location = New System.Drawing.Point(140, 46) Me.NitroFSFilesLabel.Name = "NitroFSFilesLabel" Me.NitroFSFilesLabel.Size = New System.Drawing.Size(70, 13) Me.NitroFSFilesLabel.TabIndex = 4 Me.NitroFSFilesLabel.Text = "NitroFS Files:" ' 'NitroFSFilesList ' Me.NitroFSFilesList.FormattingEnabled = True Me.NitroFSFilesList.Location = New System.Drawing.Point(143, 62) Me.NitroFSFilesList.Name = "NitroFSFilesList" Me.NitroFSFilesList.Size = New System.Drawing.Size(113, 108) Me.NitroFSFilesList.TabIndex = 3 ' 'IncludeFilesLabel ' Me.IncludeFilesLabel.AutoSize = True Me.IncludeFilesLabel.Location = New System.Drawing.Point(17, 46) Me.IncludeFilesLabel.Name = "IncludeFilesLabel" Me.IncludeFilesLabel.Size = New System.Drawing.Size(70, 13) Me.IncludeFilesLabel.TabIndex = 2 Me.IncludeFilesLabel.Text = "Include Files:" ' 'IncludeFilesList ' Me.IncludeFilesList.FormattingEnabled = True Me.IncludeFilesList.Location = New System.Drawing.Point(20, 62) Me.IncludeFilesList.Name = "IncludeFilesList" Me.IncludeFilesList.Size = New System.Drawing.Size(113, 108) Me.IncludeFilesList.TabIndex = 1 ' 'IncludeWiFiLibChecker ' Me.IncludeWiFiLibChecker.AutoSize = True Me.IncludeWiFiLibChecker.Location = New System.Drawing.Point(20, 20) Me.IncludeWiFiLibChecker.Name = "IncludeWiFiLibChecker" Me.IncludeWiFiLibChecker.Size = New System.Drawing.Size(102, 17) Me.IncludeWiFiLibChecker.TabIndex = 0 Me.IncludeWiFiLibChecker.Text = "Include WiFi Lib" Me.IncludeWiFiLibChecker.UseVisualStyleBackColor = True ' 'DCancelButton ' Me.DCancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel Me.DCancelButton.Location = New System.Drawing.Point(201, 267) Me.DCancelButton.Name = "DCancelButton" Me.DCancelButton.Size = New System.Drawing.Size(75, 28) Me.DCancelButton.TabIndex = 1 Me.DCancelButton.Text = "Cancel" Me.DCancelButton.UseVisualStyleBackColor = True ' 'DOkayButton ' Me.DOkayButton.Location = New System.Drawing.Point(123, 267) Me.DOkayButton.Name = "DOkayButton" Me.DOkayButton.Size = New System.Drawing.Size(75, 28) Me.DOkayButton.TabIndex = 2 Me.DOkayButton.Text = "OK" Me.DOkayButton.UseVisualStyleBackColor = True ' 'IconOpenFileDialog ' Me.IconOpenFileDialog.Filter = "BMP Images|*.bmp" Me.IconOpenFileDialog.Title = "Select your project's icon" ' 'GameSettings ' Me.AcceptButton = Me.DOkayButton Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!) Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font Me.CancelButton = Me.DCancelButton Me.ClientSize = New System.Drawing.Size(284, 302) Me.Controls.Add(Me.DOkayButton) Me.Controls.Add(Me.DCancelButton) Me.Controls.Add(Me.MainTabControl) Me.Font = New System.Drawing.Font("Tahoma", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon) Me.MaximizeBox = False Me.MaximumSize = New System.Drawing.Size(290, 330) Me.MinimizeBox = False Me.Name = "GameSettings" Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent Me.Text = "Game Settings" Me.MainTabControl.ResumeLayout(False) Me.GeneralTabPage.ResumeLayout(False) Me.GeneralTabPage.PerformLayout() Me.ProjectInfoTabPage.ResumeLayout(False) Me.ProjectInfoTabPage.PerformLayout() Me.ScoringTabPage.ResumeLayout(False) Me.ScoringTabPage.PerformLayout() CType(Me.HealthDropper, System.ComponentModel.ISupportInitialize).EndInit() CType(Me.ScoreDropper, System.ComponentModel.ISupportInitialize).EndInit() CType(Me.LivesDropper, System.ComponentModel.ISupportInitialize).EndInit() Me.CodingTabPage.ResumeLayout(False) Me.CodingTabPage.PerformLayout() Me.NitroFSFilesControlPanel.ResumeLayout(False) Me.IncludeFilesControlPanel.ResumeLayout(False) Me.ResumeLayout(False) End Sub Friend WithEvents MainTabControl As System.Windows.Forms.TabControl Friend WithEvents GeneralTabPage As System.Windows.Forms.TabPage Friend WithEvents ScoringTabPage As System.Windows.Forms.TabPage Friend WithEvents ProjectInfoTabPage As System.Windows.Forms.TabPage Friend WithEvents Text3TextBox As System.Windows.Forms.TextBox Friend WithEvents Text3Label As System.Windows.Forms.Label Friend WithEvents Text2TextBox As System.Windows.Forms.TextBox Friend WithEvents Text2Label As System.Windows.Forms.Label Friend WithEvents ProjectNameTextBox As System.Windows.Forms.TextBox Friend WithEvents ProjectNameLabel As System.Windows.Forms.Label Friend WithEvents DCancelButton As System.Windows.Forms.Button Friend WithEvents DOkayButton As System.Windows.Forms.Button Friend WithEvents StartingRoomLabel As System.Windows.Forms.Label Friend WithEvents StartingRoomDropper As System.Windows.Forms.ComboBox Friend WithEvents ScoringInfoLabel As System.Windows.Forms.Label Friend WithEvents HealthLabel As System.Windows.Forms.Label Friend WithEvents LivesLabel As System.Windows.Forms.Label Friend WithEvents ScoreLabel As System.Windows.Forms.Label Friend WithEvents HealthDropper As System.Windows.Forms.NumericUpDown Friend WithEvents ScoreDropper As System.Windows.Forms.NumericUpDown Friend WithEvents LivesDropper As System.Windows.Forms.NumericUpDown Friend WithEvents ProjectInfoInfoLabel As System.Windows.Forms.Label Friend WithEvents NitroFSCallCheckBox As System.Windows.Forms.CheckBox Friend WithEvents FATCallCheckBox As System.Windows.Forms.CheckBox Friend WithEvents Label1 As System.Windows.Forms.Label Friend WithEvents MidPointCheckBox As System.Windows.Forms.CheckBox Friend WithEvents CodingTabPage As System.Windows.Forms.TabPage Friend WithEvents IncludeWiFiLibChecker As System.Windows.Forms.CheckBox Friend WithEvents IncludeFilesLabel As System.Windows.Forms.Label Friend WithEvents IncludeFilesList As System.Windows.Forms.ListBox Friend WithEvents NitroFSFilesLabel As System.Windows.Forms.Label Friend WithEvents NitroFSFilesList As System.Windows.Forms.ListBox Friend WithEvents AddIncludeFileButton As System.Windows.Forms.Button Friend WithEvents NitroFSFilesControlPanel As System.Windows.Forms.Panel Friend WithEvents IncludeFilesControlPanel As System.Windows.Forms.Panel Friend WithEvents DeleteIncludeFileButton As System.Windows.Forms.Button Friend WithEvents EditIncludeFileButton As System.Windows.Forms.Button Friend WithEvents DeleteNitroFSFileButton As System.Windows.Forms.Button Friend WithEvents EditNitroFSFileButton As System.Windows.Forms.Button Friend WithEvents AddNitroFSFileButton As System.Windows.Forms.Button Friend WithEvents BrowseButton As System.Windows.Forms.Button Friend WithEvents IconFileTextbox As System.Windows.Forms.TextBox Friend WithEvents Label2 As System.Windows.Forms.Label Friend WithEvents IconOpenFileDialog As System.Windows.Forms.OpenFileDialog End Class
Query ========= .. automodule:: rayvision_api.operators.query :members: :undoc-members: :show-inheritance:
( "َ" u064Ep ) ( "ِ" u0650p ) ( "ا" u0627p ) ( "ْ" u0652p ) ( "ّ" u0651p ) ( "و" u0648p ) ( "ل" u0644p ) ( "ت" u062Ap ) ( "ُ" u064Fp ) ( "ي" u064Ap ) ( "ر" u0631p ) ( "-" let_hyphen ) ( "م" u0645p ) ( "س" u0633p ) ( "ن" u0646p ) ( "ص" u0635p ) ( "ب" u0628p ) ( "ع" u0639p ) ( "ة" u0629p ) ( "ف" u0641p ) ( "د" u062Fp ) ( "أ" u0623p ) ( "ه" u0647p ) ( "ق" u0642p ) ( "ٍ" u064Dp ) ( "ح" u062Dp ) ( "ك" u0643p ) ( "ج" u062Cp ) ( "ش" u0634p ) ( "ط" u0637p ) ( "ث" u062Bp ) ( "ٌ" u064Cp ) ( "خ" u062Ep ) ( "إ" u0625p ) ( "ض" u0636p ) ( "ز" u0632p ) ( "ذ" u0630p ) ( "ى" u0649p ) ( "ً" u064Bp ) ( "غ" u063Ap ) ( "ئ" u0626p ) ( "ظ" u0638p ) ( "ء" u0621p ) ( "ؤ" u0624p ) ( "آ" u0622p )
open main pred id6NeSfe7DJr2wNuPYs_prop12 { some f : File | always after f in Trash } pred __repair { id6NeSfe7DJr2wNuPYs_prop12 } check __repair { id6NeSfe7DJr2wNuPYs_prop12 <=> prop12o }
%% %% This is file `lscape.sty', %% generated with the docstrip utility. %% %% The original source files were: %% %% lscape.dtx (with options: `package') %% %% The source is maintained by the LaTeX Project team and bug %% reports for it can be opened at https://latex-project.org/bugs/ %% (but please observe conditions on bug reports sent to that address!) %% %% %% lscape.dtx Copyright (C) 1994 1999-2000 David Carlisle %% Copyright (C) 2000-2021 %% The LaTeX Project and any individual authors listed elsewhere %% in this file. %% %% This file is part of the Standard LaTeX `Graphics Bundle'. %% It may be distributed under the terms of the LaTeX Project Public %% License, as described in lppl.txt in the base LaTeX distribution. %% Either version 1.3c or, at your option, any later version. %% \NeedsTeXFormat{LaTeX2e}[1994/06/01] \ProvidesPackage{lscape} [2020/05/28 v3.02 Landscape Pages (DPC)] \newif\ifGin@pdftex \Gin@pdftexfalse \DeclareOption{pdftex}{% \PassOptionsToPackage\CurrentOption{graphics} \Gin@pdftextrue } \DeclareOption*{\PassOptionsToPackage\CurrentOption{graphics}} \ProcessOptions \RequirePackage{graphics} \def\LS@rot{% \setbox\@outputbox\vbox{\hbox{\rotatebox{90}{\box\@outputbox}}}} \def\landscape{% \let\LS@makecol=\@makecol \let\LS@makefcolumn=\@makefcolumn \clearpage \begingroup \vsize=\textwidth \hsize=\textheight \linewidth=\hsize \columnwidth=\hsize \@colroom=\vsize \textheight=\vsize \@colht=\vsize \def\@makecol{\LS@makecol\LS@rot}% \def\@makefcolumn##1{\LS@makefcolumn{##1}\LS@rot}} \def\endlandscape{% \ifGin@pdftex \pdfpageattr{/Rotate 90} \fi \clearpage \endgroup \global\@colht=\textheight \global\vsize=\textheight \global\@colroom=\textheight} \endinput %% %% End of file `lscape.sty'.
#include <stdlib.h> #include <stdio.h> #include <iostream> #include <fstream> #include <glpk.h> #include "YawOptimizer.h" #include "../thread/LoggerThread.h" #include "../functions/Timer.h" #include "../quad/parameters.h" string loc = "Results/"; string name = "simplex"; string currentsys = "_cmp"; string experiment = ""; string file = ".csv"; string fullfilename = ""; using namespace std; void RunAndLogSimplex(YawOptimizer *yaw_opt, string filename); void GetDefFile(); int main(void) { // gets a file defining the different status returns //GetDefFile(); // Sets up optimizer object YawOptimizer yaw_opt; // Nonstandard Form, Primal problem yaw_opt.makeModel(Bp_calc[0], Kp_calc[0], Lq_meas[0]); yaw_opt.useSimplexPrimal(); experiment = "_nonstd_primal"; fullfilename = loc + name + currentsys + experiment + file; RunAndLogSimplex(&yaw_opt, fullfilename); // Nonstandard Form, Dual Problem yaw_opt.makeModel(Bp_calc[0], Kp_calc[0], Lq_meas[0]); yaw_opt.useSimplexDual(); experiment = "_nonstd_dual"; fullfilename = loc + name + currentsys + experiment + file; RunAndLogSimplex(&yaw_opt, fullfilename); // Standard Form, Primal Problem yaw_opt.makeModelStd(Bp_calc[0], Kp_calc[0], Lq_meas[0]); yaw_opt.useSimplexPrimal(); experiment = "_std_primal"; fullfilename = loc + name + currentsys + experiment + file; RunAndLogSimplex(&yaw_opt, fullfilename); // Standard Form, Dual Problem yaw_opt.makeModel(Bp_calc[0], Kp_calc[0], Lq_meas[0]); yaw_opt.useSimplexDual(); experiment = "_std_dual"; fullfilename = loc + name + currentsys + experiment + file; RunAndLogSimplex(&yaw_opt, fullfilename); return 0; } void RunAndLogSimplex(YawOptimizer *yaw_opt, string filename) { // Logging-related objects LoggerThread logfile(filename); Timer maxtime, mintime; logfile.initialize(); // initialize and create column titles logfile.startThread(); logfile.addTextBlock("Thrust,Xtorque,Ytorque,Ztorque,"); logfile.addTextBlock("maxZtorque,maxMicros,maxFeas,maxStatus,maxIters,"); logfile.addTextBlock("minZtorque,minMicros,minFeas,minStatus,minIters"); logfile.newLine(); // Input location defintions const int Th = 0, Tx = 1, Ty = 2; // variable declaration double Uq[] = {5, 0, 0, 0}; long i = 0; // loops over all the thrust, X torque, and Y torque values for(Uq[Th] = 0; Uq[Th] <= 22; Uq[Th] += 1) { for(Uq[Tx] = -1.5; Uq[Tx] <= 1.5; Uq[Tx] += 0.125) { for(Uq[Ty] = -1.5; Uq[Ty] <= 1.5; Uq[Ty] += 0.125) { if((i%1000 == 0 ) && (i != 0)) cout << "Finished " << i << " Points\n"; yaw_opt->inputUpdate(Uq); //tz_max = -55; //tz_min = -55; // maximization maxtime.tic(); yaw_opt->findMax(); maxtime.toc(); // minimization mintime.tic(); yaw_opt->findMin(); mintime.toc(); // log results logfile.logDoubleArray(Uq,4,4); // log inputs logfile.logDouble(yaw_opt->getMax(),4); // max values logfile.logDouble(maxtime.micros(),6); logfile.logBool(yaw_opt->isValidMax()); logfile.logInt(yaw_opt->getMaxStatus()); logfile.logInt(yaw_opt->getMaxIters()); logfile.logDouble(yaw_opt->getMin(),4); // max values logfile.logDouble(mintime.micros(),6); logfile.logBool(yaw_opt->isValidMin()); logfile.logInt(yaw_opt->getMinStatus()); logfile.logInt(yaw_opt->getMinIters()); logfile.newLine(); // Increase evaluation point counter i++; } } } } void GetDefFile() { // log file setup ofstream deffile; deffile.open("lpSolverStatus.csv"); deffile << "GLP_OPT,GLP_FEAS,GLP_INFEAS," << "GLP_NOFEAS,GLP_UNBND,GLP_UNDEF" << GLP_OPT << "," << GLP_FEAS << "," << GLP_INFEAS << "," << GLP_NOFEAS << "," << GLP_UNBND << "," << GLP_UNDEF << "\n"; deffile.close(); }
Imports System.Data.OleDb Imports Aspose.Cells.GridWeb.Data Imports System.Drawing Namespace RowsAndColumns Public Class CreateSubtotal Inherits System.Web.UI.Page Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load If Not IsPostBack AndAlso Not GridWeb1.IsPostBack Then 'Load data against selected drop down value LoadData(ddlSort.SelectedItem.Value) End If End Sub Private Sub LoadData(sort As String) ' Loads data from access database. Dim ds As New DataSet() ' Create path to database file Dim path As String = TryCast(Me.Master, Site).GetDataDir() ' Create database connection object Dim conn As New OleDbConnection() ' Create connection string to database conn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + path + "\RowsAndColumns\Database\Northwind.mdb" ' Write select command Dim sql As String = "SELECT Products.ProductID, Categories.CategoryName, Suppliers.CompanyName, Products.ProductName, Products.QuantityPerUnit, Products.UnitPrice FROM Suppliers INNER JOIN (Categories INNER JOIN Products ON Categories.CategoryID = Products.CategoryID) ON Suppliers.SupplierID = Products.SupplierID" ' Create data adapter object Dim da As New OleDbDataAdapter(sql, conn) Try ' Connects to database and fetches data. da.Fill(ds, "Products") ' Sorting Dim productsView As New DataView(ds.Tables("Products"), "", sort, DataViewRowState.CurrentRows) ' Clear gridweb worksheet GridWeb1.WebWorksheets.Clear() ' Import data from dataview GridWeb1.WebWorksheets.ImportDataView(productsView, Nothing, Nothing) ' Sets column width. GridWeb1.WebWorksheets(0).Cells.SetColumnWidth(0, New Unit(108.75, UnitType.Point)) GridWeb1.WebWorksheets(0).Cells.SetColumnWidth(1, New Unit(74.25, UnitType.Point)) GridWeb1.WebWorksheets(0).Cells.SetColumnWidth(2, New Unit(181.5, UnitType.Point)) GridWeb1.WebWorksheets(0).Cells.SetColumnWidth(3, New Unit(155.25, UnitType.Point)) GridWeb1.WebWorksheets(0).Cells.SetColumnWidth(4, New Unit(96, UnitType.Point)) GridWeb1.WebWorksheets(0).Cells.SetColumnWidth(5, New Unit(47.25, UnitType.Point)) Finally ' Close database connection conn.Close() End Try End Sub Protected Sub ddlSort_SelectedIndexChanged(sender As Object, e As System.EventArgs) ' Reload data, sort by the select value. LoadData(ddlSort.SelectedItem.Value) End Sub Protected Sub btnCreate_Click(sender As Object, e As System.EventArgs) ' Fill web worksheet object Dim sheet As WebWorksheet = GridWeb1.WebWorksheets(0) ' Removes the created subtotal first. sheet.RemoveSubtotal() ' Creates the subtotal. Dim groupByIndex As Integer If ddlSort.SelectedItem.Value = "CategoryName" Then groupByIndex = 1 Else groupByIndex = 2 End If ' Creates GrandTotal and Subtotal style. Dim grandStyle As New Aspose.Cells.GridWeb.TableItemStyle() grandStyle.BackColor = Color.Gray grandStyle.ForeColor = Color.Black Dim subtotalStyle As New Aspose.Cells.GridWeb.TableItemStyle() subtotalStyle.BackColor = Color.SkyBlue subtotalStyle.ForeColor = Color.Black ' ExStart:CreateSubTotal sheet.CreateSubtotal(0, sheet.Cells.MaxRow, groupByIndex, CType(System.[Enum].Parse(GetType(SubtotalFunction), ddlFunction.SelectedItem.Value), SubtotalFunction), New Integer() {1, 2, 3, 4, 5}, ddlFunction.SelectedItem.Text, _ grandStyle, subtotalStyle, NumberType.General, Nothing) ' ExEnd:CreateSubTotal End Sub Protected Sub GridWeb1_SaveCommand(sender As Object, e As System.EventArgs) ' Generates a temporary file name. Dim filename As String = Session.SessionID + "_out_.xls" Dim path As String = TryCast(Me.Master, Site).GetDataDir() + "\RowsAndColumns\" ' Saves to the file. Me.GridWeb1.SaveToExcelFile(path + filename) ' Sents the file to browser. Response.ContentType = "application/vnd.ms-excel" Response.AddHeader("content-disposition", "attachment; filename=" + filename) Response.WriteFile(path + filename) Response.[End]() End Sub End Class End Namespace
copyright zengfr site:http://github.com/zengfr/romhack 00042A move.l D1, (A0)+ 00042C dbra D0, $42a 004892 movea.w (A4)+, A0 [base+6604] 004894 move.w A4, ($6604,A5) [base+6698, base+669E, base+66A0, base+66A2, base+66A4, base+66A6, base+66A8, base+66B0, base+66B2, base+66B4, base+66B6, base+66B8, base+66BA, base+66BC, base+66BE, base+66C0, base+66C2, base+66C4, base+66C6, base+66C8, base+66CA, base+66CC, base+66CE, base+66D0, base+66D2, base+66E4, base+66E6, base+66E8, base+66EA, base+66EC, base+66F2, base+66F4, base+66F6] 004968 move.w A6, -(A4) [base+6604] 00496A move.w A4, ($6604,A5) [base+6698, base+669E, base+66A0, base+66A2, base+66A4, base+66A6, base+66A8, base+66B0, base+66B2, base+66B4, base+66B6, base+66B8, base+66BA, base+66BC, base+66BE, base+66C0, base+66C2, base+66C4, base+66C6, base+66C8, base+66CA, base+66CC, base+66CE, base+66D0, base+66D2, base+66E4, base+66E6, base+66E8, base+66EA, base+66EC, base+66F2, base+66F4, base+66F6] 004CB6 move.w A0, -(A1) 004CB8 lea ($80,A0), A0 [base+6698, base+669E, base+66A0, base+66A2, base+66A4, base+66A6, base+66A8, base+66B0, base+66B2, base+66B4, base+66B6, base+66B8, base+66BA, base+66BC, base+66BE, base+66C0, base+66C2, base+66C4, base+66C6, base+66C8, base+66CA, base+66CC, base+66CE, base+66D0, base+66D2, base+66E4, base+66E6, base+66E8, base+66EA, base+66EC, base+66F2, base+66F4, base+66F6] 0AAACA move.l (A0), D2 0AAACC move.w D0, (A0) [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, base+6FFE, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1] 0AAACE move.w D0, ($2,A0) 0AAAD2 cmp.l (A0), D0 0AAAD4 bne $aaafc 0AAAD8 move.l D2, (A0)+ 0AAADA cmpa.l A0, A1 [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, base+6FFE, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1] 0AAAE6 move.l (A0), D2 0AAAE8 move.w D0, (A0) [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, base+6FFE, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1] 0AAAF4 move.l D2, (A0)+ 0AAAF6 cmpa.l A0, A1 [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, base+6FFE, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1] copyright zengfr site:http://github.com/zengfr/romhack
#version 310 es layout(std140) uniform UBO { layout(column_major) mat4 M1C; layout(row_major) mat4 M1R; layout(column_major) mat2x4 M2C; layout(row_major) mat2x4 M2R; }; layout(location = 0) out vec4 oA; layout(location = 1) out vec4 oB; layout(location = 2) out vec4 oC; layout(location = 3) out vec4 oD; layout(location = 4) out vec4 oE; void main() { gl_Position = vec4(0.0); oA = M1C[1]; oB = M1R[1]; oC = M2C[1]; oD = M2R[0]; oE = vec4(M1C[1][2], M1R[1][2], M2C[1][2], M2R[1][2]); }
unit DW.Androidapi.JNI.App; {*******************************************************} { } { Kastri } { } { Delphi Worlds Cross-Platform Library } { } { Copyright 2020-2021 Dave Nottage under MIT license } { which is located in the root folder of this library } { } {*******************************************************} {$I DW.GlobalDefines.inc} interface uses // Android AndroidAPI.JNIBridge, Androidapi.JNI.JavaTypes, Androidapi.JNI.Os, Androidapi.JNI.Net, Androidapi.JNI.Media, Androidapi.JNI.App, Androidapi.JNI.GraphicsContentViewText; type JKeyguardManager = interface; JKeyguardManager_KeyguardLock = interface; JKeyguardManager_OnKeyguardExitResult = interface; {$IF CompilerVersion < 33} JNotificationChannel = interface; JNotificationChannelGroup = interface; {$ENDIF} JKeyguardManagerClass = interface(JObjectClass) ['{44F9A483-0683-4391-94D1-F0BB6DB7340B}'] end; [JavaSignature('android/app/KeyguardManager')] JKeyguardManager = interface(JObject) ['{6AECC681-2C45-48B7-87D9-5A255840BDFA}'] function createConfirmDeviceCredentialIntent(title: JCharSequence; description: JCharSequence): JIntent; cdecl; procedure exitKeyguardSecurely(callback: JKeyguardManager_OnKeyguardExitResult); cdecl; function inKeyguardRestrictedInputMode: Boolean; cdecl; function isDeviceLocked: Boolean; cdecl; function isDeviceSecure: Boolean; cdecl; function isKeyguardLocked: Boolean; cdecl; function isKeyguardSecure: Boolean; cdecl; function newKeyguardLock(tag: JString): JKeyguardManager_KeyguardLock; cdecl; end; TJKeyguardManager = class(TJavaGenericImport<JKeyguardManagerClass, JKeyguardManager>) end; JKeyguardManager_KeyguardLockClass = interface(JObjectClass) ['{98306533-81FC-4498-91E6-19F58EA32BD7}'] {class} procedure disableKeyguard; cdecl; {class} procedure reenableKeyguard; cdecl; end; [JavaSignature('android/app/KeyguardManager$KeyguardLock')] JKeyguardManager_KeyguardLock = interface(JObject) ['{6061FAD3-A869-40A5-BEAB-CFC481B8EC0B}'] end; TJKeyguardManager_KeyguardLock = class(TJavaGenericImport<JKeyguardManager_KeyguardLockClass, JKeyguardManager_KeyguardLock>) end; JKeyguardManager_OnKeyguardExitResultClass = interface(IJavaClass) ['{40CF0367-E275-475B-8566-A6337DD56217}'] end; [JavaSignature('android/app/KeyguardManager$OnKeyguardExitResult')] JKeyguardManager_OnKeyguardExitResult = interface(IJavaInstance) ['{A2E86C9B-0384-4A3A-8E4B-823923FBD083}'] procedure onKeyguardExitResult(success: Boolean); cdecl; end; TJKeyguardManager_OnKeyguardExitResult = class(TJavaGenericImport<JKeyguardManager_OnKeyguardExitResultClass, JKeyguardManager_OnKeyguardExitResult>) end; {$IF CompilerVersion < 33} JNotificationChannelClass = interface(JObjectClass) ['{2C435911-AD3A-4461-8860-779ECA70D332}'] function _GetCREATOR: JParcelable_Creator; cdecl; function _GetDEFAULT_CHANNEL_ID: JString; cdecl; function init(id: JString; name: JCharSequence; importance: Integer): JNotificationChannel; cdecl; property CREATOR: JParcelable_Creator read _GetCREATOR; property DEFAULT_CHANNEL_ID: JString read _GetDEFAULT_CHANNEL_ID; end; [JavaSignature('android/app/NotificationChannel')] JNotificationChannel = interface(JObject) ['{3AA9585E-BF01-40A2-933E-73DFEB241BB9}'] function canBypassDnd: boolean; cdecl; function canShowBadge: boolean; cdecl; function describeContents: Integer; cdecl; procedure enableLights(lights: boolean); cdecl; procedure enableVibration(vibration: boolean); cdecl; function equals(o: JObject): boolean; cdecl; function getAudioAttributes: JAudioAttributes; cdecl; function getDescription: JString; cdecl; function getGroup: JString; cdecl; function getId: JString; cdecl; function getImportance: Integer; cdecl; function getLightColor: Integer; cdecl; function getLockscreenVisibility: Integer; cdecl; function getName: JCharSequence; cdecl; function getSound: Jnet_Uri; cdecl; function getVibrationPattern: TJavaArray<Int64>; cdecl; function hashCode: Integer; cdecl; procedure setBypassDnd(bypassDnd: boolean); cdecl; procedure setDescription(description: JString); cdecl; procedure setGroup(groupId: JString); cdecl; procedure setImportance(importance: Integer); cdecl; procedure setLightColor(argb: Integer); cdecl; procedure setLockscreenVisibility(lockscreenVisibility: Integer); cdecl; procedure setName(&name: JCharSequence); cdecl; procedure setShowBadge(showBadge: boolean); cdecl; procedure setSound(sound: Jnet_Uri; audioAttributes: JAudioAttributes); cdecl; procedure setVibrationPattern(vibrationPattern: TJavaArray<Int64>); cdecl; function shouldShowLights: boolean; cdecl; function shouldVibrate: boolean; cdecl; function toString: JString; cdecl; procedure writeToParcel(dest: JParcel; flags: Integer); cdecl; end; TJNotificationChannel = class(TJavaGenericImport<JNotificationChannelClass, JNotificationChannel>) end; JNotificationChannelGroupClass = interface(JObjectClass) ['{E62DA0EE-18A8-439E-BE8D-A9D0A89A2EF9}'] function _GetCREATOR : JParcelable_Creator; cdecl; function init(id : JString; &name : JCharSequence) : JNotificationChannelGroup; cdecl; property CREATOR : JParcelable_Creator read _GetCREATOR; end; [JavaSignature('android/app/NotificationChannelGroup')] JNotificationChannelGroup = interface(JObject) ['{CA4F183A-9CD3-4261-805A-A0CCBC9A5389}'] function clone: JNotificationChannelGroup; cdecl; function describeContents: Integer; cdecl; function equals(o: JObject): boolean; cdecl; function getChannels: JList; cdecl; function getDescription: JString; cdecl; function getId: JString; cdecl; function getName: JCharSequence; cdecl; function hashCode: Integer; cdecl; function isBlocked: Boolean; cdecl; procedure setDescription(description: JString); cdecl; function toString: JString; cdecl; procedure writeToParcel(dest: JParcel; flags: Integer); cdecl; end; TJNotificationChannelGroup = class(TJavaGenericImport<JNotificationChannelGroupClass, JNotificationChannelGroup>) end; JNotificationManagerClass = interface(JObjectClass) ['{66101C50-DAE9-4C81-8186-81A0A43A73BD}'] {class} function _GetACTION_INTERRUPTION_FILTER_CHANGED: JString; cdecl; {class} function _GetACTION_NOTIFICATION_POLICY_ACCESS_GRANTED_CHANGED: JString; cdecl; {class} function _GetACTION_NOTIFICATION_POLICY_CHANGED: JString; cdecl; {class} function _GetIMPORTANCE_DEFAULT: Integer; cdecl; {class} function _GetIMPORTANCE_HIGH: Integer; cdecl; {class} function _GetIMPORTANCE_LOW: Integer; cdecl; {class} function _GetIMPORTANCE_MAX: Integer; cdecl; {class} function _GetIMPORTANCE_MIN: Integer; cdecl; {class} function _GetIMPORTANCE_NONE: Integer; cdecl; {class} function _GetIMPORTANCE_UNSPECIFIED: Integer; cdecl; {class} function _GetINTERRUPTION_FILTER_ALARMS: Integer; cdecl; {class} function _GetINTERRUPTION_FILTER_ALL: Integer; cdecl; {class} function _GetINTERRUPTION_FILTER_NONE: Integer; cdecl; {class} function _GetINTERRUPTION_FILTER_PRIORITY: Integer; cdecl; {class} function _GetINTERRUPTION_FILTER_UNKNOWN: Integer; cdecl; {class} property ACTION_INTERRUPTION_FILTER_CHANGED: JString read _GetACTION_INTERRUPTION_FILTER_CHANGED; {class} property ACTION_NOTIFICATION_POLICY_ACCESS_GRANTED_CHANGED: JString read _GetACTION_NOTIFICATION_POLICY_ACCESS_GRANTED_CHANGED; {class} property ACTION_NOTIFICATION_POLICY_CHANGED: JString read _GetACTION_NOTIFICATION_POLICY_CHANGED; {class} property IMPORTANCE_DEFAULT: Integer read _GetIMPORTANCE_DEFAULT; {class} property IMPORTANCE_HIGH: Integer read _GetIMPORTANCE_HIGH; {class} property IMPORTANCE_LOW: Integer read _GetIMPORTANCE_LOW; {class} property IMPORTANCE_MAX: Integer read _GetIMPORTANCE_MAX; {class} property IMPORTANCE_MIN: Integer read _GetIMPORTANCE_MIN; {class} property IMPORTANCE_NONE: Integer read _GetIMPORTANCE_NONE; {class} property IMPORTANCE_UNSPECIFIED: Integer read _GetIMPORTANCE_UNSPECIFIED; {class} property INTERRUPTION_FILTER_ALARMS: Integer read _GetINTERRUPTION_FILTER_ALARMS; {class} property INTERRUPTION_FILTER_ALL: Integer read _GetINTERRUPTION_FILTER_ALL; {class} property INTERRUPTION_FILTER_NONE: Integer read _GetINTERRUPTION_FILTER_NONE; {class} property INTERRUPTION_FILTER_PRIORITY: Integer read _GetINTERRUPTION_FILTER_PRIORITY; {class} property INTERRUPTION_FILTER_UNKNOWN: Integer read _GetINTERRUPTION_FILTER_UNKNOWN; end; [JavaSignature('android/app/NotificationManager')] JNotificationManager = interface(Androidapi.JNI.App.JNotificationManager) ['{F2C96815-29C4-4A83-994A-4F49F30B8CF4}'] procedure createNotificationChannel(channel: JNotificationChannel); cdecl; procedure createNotificationChannelGroup(group: JNotificationChannelGroup); cdecl; procedure createNotificationChannelGroups(groups: JList); cdecl; procedure createNotificationChannels(channels: JList); cdecl; procedure deleteNotificationChannel(channelId: JString); cdecl; procedure deleteNotificationChannelGroup(groupId: JString); cdecl; end; TJNotificationManager = class(TJavaGenericImport<JNotificationManagerClass, JNotificationManager>) end; {$ENDIF} implementation end.
/* Quartus Prime Version 18.1.0 Build 625 09/12/2018 SJ Lite Edition */ JedecChain; FileRevision(JESD32A); DefaultMfr(6E); P ActionCode(Cfg) Device PartName(EP4CE115F29) Path("C:/Users/HP/Documents/Github/ECE-385/FinalProject/Final_Project_Project_Files/") File("finalproject.sof") MfrSpec(OpMask(1)); ChainEnd; AlteraBegin; ChainType(JTAG); AlteraEnd;
<?php namespace MailchimpTests\EcommerceStores\Carts; use MailchimpAPI\Resources\EcommerceStores; use MailchimpAPI\Resources\EcommerceStores\Carts; use MailchimpAPI\Resources\EcommerceStores\Carts\Lines; use MailchimpTests\MailChimpTestCase; /** * Class LinesTest * @package MailchimpTests\EcommerceStores\Carts */ class LinesTest extends MailChimpTestCase { /** * @throws \MailchimpAPI\MailchimpException */ public function testCollectionUrl() { $this->endpointUrlBuildTest( EcommerceStores::URL_COMPONENT . 1 . Carts::URL_COMPONENT . 1 . Lines::URL_COMPONENT, $this->mailchimp->ecommerceStores(1)->carts(1)->lines(), "The Lines collection endpoint should be constructed correctly" ); } /** * @throws \MailchimpAPI\MailchimpException */ public function testInstanceUrl() { $this->endpointUrlBuildTest( EcommerceStores::URL_COMPONENT . 1 . Carts::URL_COMPONENT . 1 . Lines::URL_COMPONENT . 1, $this->mailchimp->ecommerceStores(1)->carts(1)->lines(1), "The Lines instance endpoint should be constructed correctly" ); } }
websockets example ================== This is the Haskell implementation of the example for the WebSockets library. We implement a simple multi-user chat program. A live demo of the example is available [here](http://jaspervdj.be/websockets-example). In order to understand this example, keep the [reference](http://jaspervdj.be/websockets/reference) nearby to check out the functions we use. > {-# LANGUAGE OverloadedStrings #-} > import Data.Char (isPunctuation, isSpace) > import Data.Monoid (mappend) > import Data.Text (Text) > import Control.Exception (finally) > import Control.Monad (forM_, forever) > import Control.Concurrent (MVar, newMVar, modifyMVar_, modifyMVar, readMVar) > import Control.Monad.IO.Class (liftIO) > import qualified Data.Text as T > import qualified Data.Text.IO as T > import qualified Network.WebSockets as WS We represent a client by their username and a `WS.Connection`. We will see how we obtain this `WS.Connection` later on. > type Client = (Text, WS.Connection) The state kept on the server is simply a list of connected clients. We've added an alias and some utility functions, so it will be easier to extend this state later on. > type ServerState = [Client] Create a new, initial state: > newServerState :: ServerState > newServerState = [] Get the number of active clients: > numClients :: ServerState -> Int > numClients = length Check if a user already exists (based on username): > clientExists :: Client -> ServerState -> Bool > clientExists client = any ((== fst client) . fst) Add a client (this does not check if the client already exists, you should do this yourself using `clientExists`): > addClient :: Client -> ServerState -> ServerState > addClient client clients = client : clients Remove a client: > removeClient :: Client -> ServerState -> ServerState > removeClient client = filter ((/= fst client) . fst) Send a message to all clients, and log it on stdout: > broadcast :: Text -> ServerState -> IO () > broadcast message clients = do > T.putStrLn message > forM_ clients $ \(_, conn) -> WS.sendTextData conn message The main function first creates a new state for the server, then spawns the actual server. For this purpose, we use the simple server provided by `WS.runServer`. > main :: IO () > main = do > state <- newMVar newServerState > WS.runServer "0.0.0.0" 9160 $ application state Our main application has the type: > application :: MVar ServerState -> WS.ServerApp Note that `WS.ServerApp` is nothing but a type synonym for `WS.PendingConnection -> IO ()`. Our application starts by accepting the connection. In a more realistic application, you probably want to check the path and headers provided by the pending request. We also fork a pinging thread in the background. This will ensure the connection stays alive on some browsers. > application state pending = do > conn <- WS.acceptRequest pending > WS.forkPingThread conn 30 When a client is succesfully connected, we read the first message. This should be in the format of "Hi! I am Jasper", where Jasper is the requested username. > msg <- WS.receiveData conn > clients <- liftIO $ readMVar state > case msg of Check that the first message has the right format: > _ | not (prefix `T.isPrefixOf` msg) -> > WS.sendTextData conn ("Wrong announcement" :: Text) Check the validity of the username: > | any ($ fst client) > [T.null, T.any isPunctuation, T.any isSpace] -> > WS.sendTextData conn ("Name cannot " `mappend` > "contain punctuation or whitespace, and " `mappend` > "cannot be empty" :: Text) Check that the given username is not already taken: > | clientExists client clients -> > WS.sendTextData conn ("User already exists" :: Text) All is right! We're going to allow the client, but for safety reasons we *first* setup a `disconnect` function that will be run when the exception is closed. > | otherwise -> flip finally disconnect $ do We send a "Welcome!", according to our own little protocol. We add the client to the list and broadcast the fact that he has joined. Then, we give control to the 'talk' function. > liftIO $ modifyMVar_ state $ \s -> do > let s' = addClient client s > WS.sendTextData conn $ > "Welcome! Users: " `mappend` > T.intercalate ", " (map fst s) > broadcast (fst client `mappend` " joined") s' > return s' > talk conn state client > where > prefix = "Hi! I am " > client = (T.drop (T.length prefix) msg, conn) > disconnect = do > -- Remove client and return new state > s <- modifyMVar state $ \s -> > let s' = removeClient client s in return (s', s') > broadcast (fst client `mappend` " disconnected") s The talk function continues to read messages from a single client until he disconnects. All messages are broadcasted to the other clients. > talk :: WS.Connection -> MVar ServerState -> Client -> IO () > talk conn state (user, _) = forever $ do > msg <- WS.receiveData conn > liftIO $ readMVar state >>= broadcast > (user `mappend` ": " `mappend` msg)
; A037140: Convolution of natural numbers n >= 1 with Fibonacci numbers F(k), for k >= 5. ; 5,18,44,91,172,308,533,902,1504,2483,4072,6648,10821,17578,28516,46219,74868,121228,196245,317630,514040,831843,1346064,2178096,3524357,5702658,9227228,14930107,24157564,39087908,63245717,102333878,165579856,267914003,433494136,701408424,1134902853,1836311578,2971214740,4807526635,7778741700,12586268668,20365010709,32951279726,53316290792,86267570883,139583862048,225851433312,365435295749,591286729458,956722025612,1548008755483,2504730781516,4052739537428,6557470319381,10610209857254,17167680177088,27777890034803,44945570212360,72723460247640,117669030460485,190392490708618,308061521169604,498454011878731,806515533048852,1304969544928108,2111485077977493,3416454622906142,5527939700884184,8944394323790883 lpb $0,1 add $0,1 sub $3,$3 add $4,4 add $1,$4 add $2,3 add $3,1 sub $0,$3 sub $0,1 add $2,1 add $3,$1 mov $1,$2 add $2,$3 lpe add $1,$2 add $1,5
-- #exit open interactive tactic.interactive namespace tactic.interactive open lean.parser meta def tac (ls : parse lean.parser.list_include_var_names) : tactic unit := trace ls open interactive.types @[user_command] meta def tac_cmd (_ : parse $ tk "stuff") : lean.parser unit := with_local_scope $ do ls ← lean.parser.list_available_include_vars, trace ls, ls ← lean.parser.list_include_var_names, (n,t) ← brackets "(" ")" (prod.mk <$> (ident <* tk ":") <*> texpr), t ← tactic.to_expr t, v ← tactic.mk_local_def n t, lean.parser.add_local v, (n',t') ← brackets "(" ")" (prod.mk <$> (ident <* tk ":") <*> texpr), t' ← tactic.to_expr t', v ← tactic.mk_local_def n' t', lean.parser.add_local v, include_var v.local_pp_name, trace ls, ls ← tactic.local_context, trace ls, brackets "(" ")" texpr, ↑(ls.mmap' $ trace ∘ to_string) @[user_command] meta def add_var_cmd (_ : parse $ tk "add_var") : lean.parser unit := do (n,t) ← brackets "(" ")" (prod.mk <$> (ident <* tk ":") <*> texpr), t ← tactic.to_expr t, v ← tactic.mk_local_def n t, add_local_level `u, lean.parser.add_local v, include_var v.local_pp_name, (n',t') ← brackets "(" ")" (prod.mk <$> (ident <* tk ":") <*> texpr), t' ← tactic.to_expr t', v ← tactic.mk_local_def n' t', lean.parser.add_local v, include_var v.local_pp_name, omit_var v.local_pp_name, ls ← lean.parser.list_include_var_names, -- trace ls, trace_state end tactic.interactive variables (a b c : ℕ) include a b variables {α : Type} section stuff (β : Type) (γ : Type) (α × β × γ) def x := β def y := γ #check x section add_var (β : Type) (γ : Type u) def x' : β → β := id def y' : γ → γ := id end def x'' := β def y'' := γ #check x' #check y' section parameter δ : Type #print δ #print β end #print γ end example : c ≤ 3 := begin (do v ← tactic.get_local `a, trace $ v.local_pp_name ), tac end
-- {-# OPTIONS -v import:10 -v scope:10 #-} module Issue1078 where import Common.Level import Issue1078.A import Issue1078.B -- Was: weird scope error in Issue1078.B -- Should give error: -- You tried to load Issue1078/B.agda -- which defines the module Issue1078.A. However, according to the -- include path this module should be defined in Issue1078/A.agda.
/* * Copyright 2004,2016 agwlvssainokuni * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package cherry.elemental.paginate; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import java.util.Iterator; import org.junit.Test; public class RangeTest { @Test public void testRangeNew() { try { assertNotNull(new Range(1, 0)); } catch (IllegalStateException ex) { fail("Exception must not be thrown"); } } @Test public void testIterator1to1() { long number = 1; for (long i : new Range(1, 1)) { assertEquals(number++, i); } } @Test public void testIterator1to10() { int number = 1; for (long i : new Range(1, 10)) { assertEquals(number++, i); } } @Test public void testIteratorOver() { Iterator<Long> iter = (new Range(1, 10)).iterator(); for (long i = 1; i <= 10; i++) { assertTrue(iter.hasNext()); assertEquals(i, iter.next().longValue()); } assertFalse(iter.hasNext()); try { iter.next(); fail("Exception must be thrown"); } catch (IllegalStateException ex) { // OK } } @Test public void testIteratorRemove() { Iterator<Long> iter = (new Range(1, 1)).iterator(); try { iter.remove(); } catch (Exception ex) { fail("Exception must not be thrown"); } } @Test public void testToString() { Range range = new Range(1, 10); assertEquals("Range[from=1,to=10]", range.toString()); } }
# #################################################################################### # SE 201B: NONLINEAR STRUCTURAL ANALYSIS # NONLINEAR FIBER SECTION ANALYSIS # #################################################################################### #Always start with wipe; # Clear memory of all past model definitions model BasicBuilder -ndm 2 -ndf 3; # Define the model builder, ndm=#dimension, ndf=#dofs # ------------------------------------------------------------------------------------ # DEFINE NODES # ------------------------------------------------------------------------------------ set nodeTag1 1; set nodeTag2 2; node $nodeTag1 0. 0.; node $nodeTag2 0. 0.; puts $modelExportFileID "node $nodeTag1 0. 0.;" puts $modelExportFileID "node $nodeTag2 0. 0.;" # ------------------------------------------------------------------------------------ # DEFINE CONSTRAINTS # ------------------------------------------------------------------------------------ fix $nodeTag1 1 1 1; # Pin fix $nodeTag2 0 1 0; # Roller # ------------------------------------------------------------------------------------ # DEFINE MATERIAL # ------------------------------------------------------------------------------------ # Define unconfined concrete material parameters set fpc [expr -32.5*$MPa] set Ec [expr 27000.0*$MPa] set epsc0 [expr 2.0*$fpc/$Ec] set ft [expr 1.9*$MPa] set lambda 0.25 set Ets [expr 0.1*$Ec] set fpcU [expr 0.2*$fpc] set epsU -0.004 # Define confined concrete material parameters set fpcc [expr -47.9*$MPa] set Ecc [expr 27000.0*$MPa] set epscc0 [expr 2.0*$fpcc/$Ecc] set ftc [expr 1.9*$MPa] set lambdac 0.25 set Etsc [expr 0.1*$Ecc] set fpccU [expr 0.85*$fpcc] set epscU -0.0276 # Define steel material parameters set fy [expr 455.0*$MPa] set Es [expr 215000.0*$MPa] set b 0.01 set R0 20.0 set cR1 0.925 set cR2 0.15 set a1 0.0 set a2 1.0 set a3 0.0 set a4 1.0 set sigInit 0.0 set matTagConcCover 1 set matTagConcCore 2 set matTagSteel 3 set modelnum 2.0 # Unconfined concrete: uniaxialMaterial Concrete01 $matTagConcCover $fpc $epsc0 $fpcU $epsU # Confined concrete: uniaxialMaterial Concrete01 $matTagConcCore $fpcc $epscc0 $fpccU $epscU # Reinforcing steel: uniaxialMaterial Steel01 $matTagSteel $fy $Es $b $a1 $a2 $a3 $a4 puts $modelExportFileID "uniaxialMaterial Concrete01 $matTagConcCover $fpc $epsc0 $fpcU $epsU" puts $modelExportFileID "uniaxialMaterial Concrete01 $matTagConcCore $fpcc $epscc0 $fpccU $epscU" puts $modelExportFileID "uniaxialMaterial Steel01 $matTagSteel $fy $Es $b $a1 $a2 $a3 $a4" # ------------------------------------------------------------------------------------ # DEFINE SECTION # ------------------------------------------------------------------------------------ set colWidth [expr 400.*$mm] set colDepth [expr 400.*$mm] set colArea [expr $colWidth * $colDepth] set cover [expr 40.*$mm] set dB [expr 20.*$mm] set As [expr 314.*$mm2] set y1 [expr $colDepth/2.0] set z1 [expr $colWidth/2.0] set totNumBars 8 set secTag 3 set fiberA 20 set fiberB 5 set fiberC 20 section Fiber $secTag -GJ $Ubig { # ------------------------------------------------------------------------------------- # Create rectangular patches # ------------------------------------------------------------------------------------- # Cover concrete patch rect $matTagConcCover $fiberA 1 [expr $cover - $y1] [expr -$z1] [expr $y1 - $cover] [expr $cover - $z1] patch rect $matTagConcCover $fiberA 1 [expr $cover - $y1] [expr $z1 - $cover] [expr $y1 - $cover] [expr $z1] patch rect $matTagConcCover $fiberB 1 [expr -$y1] [expr -$z1] [expr $cover - $y1] [expr $z1] patch rect $matTagConcCover $fiberB 1 [expr $y1 - $cover] [expr -$z1] [expr $y1] [expr $z1] # Core concrete patch rect $matTagConcCore $fiberC 1 [expr $cover - $y1] [expr $cover - $z1] [expr $y1 - $cover] [expr $z1 - $cover] # ------------------------------------------------------------------------------------- # Create straight layers # ------------------------------------------------------------------------------------- # Reinforcing steel layer straight $matTagSteel 3 $As [expr $y1 - $cover] [expr $z1 - $cover] [expr $y1 - $cover] [expr $cover - $z1] layer straight $matTagSteel 2 $As 0 [expr $cover - $z1] 0 [expr $z1 - $cover] layer straight $matTagSteel 3 $As [expr $cover - $y1] [expr $cover - $z1] [expr $cover - $y1] [expr $z1 - $cover] } puts $modelExportFileID "section Fiber $secTag -GJ $Ubig { # ------------------------------------------------------------------------------------- # Create rectangular patches # ------------------------------------------------------------------------------------- # Cover concrete patch rect $matTagConcCover $fiberA 1 [expr $cover - $y1] [expr -$z1] [expr $y1 - $cover] [expr $cover - $z1] patch rect $matTagConcCover $fiberA 1 [expr $cover - $y1] [expr $z1 - $cover] [expr $y1 - $cover] [expr $z1] patch rect $matTagConcCover $fiberB 1 [expr -$y1] [expr -$z1] [expr $cover - $y1] [expr $z1] patch rect $matTagConcCover $fiberB 1 [expr $y1 - $cover] [expr -$z1] [expr $y1] [expr $z1] # Core concrete patch rect $matTagConcCore $fiberC 1 [expr $cover - $y1] [expr $cover - $z1] [expr $y1 - $cover] [expr $z1 - $cover] # ------------------------------------------------------------------------------------- # Create straight layers # ------------------------------------------------------------------------------------- # Reinforcing steel layer straight $matTagSteel 3 $As [expr $y1 - $cover] [expr $z1 - $cover] [expr $y1 - $cover] [expr $cover - $z1] layer straight $matTagSteel 2 $As 0 [expr $cover - $z1] 0 [expr $z1 - $cover] layer straight $matTagSteel 3 $As [expr $cover - $y1] [expr $cover - $z1] [expr $cover - $y1] [expr $z1 - $cover] }" # ------------------------------------------------------------------------------------ # DEFINE ELEMENT # ------------------------------------------------------------------------------------ set eleTag 1 set secTag 3 element zeroLengthSection $eleTag $nodeTag1 $nodeTag2 $secTag -orient 1 0 0 0 1 0 puts $modelExportFileID "element zeroLengthSection $eleTag $nodeTag1 $nodeTag2 $secTag -orient 1 0 0 0 1 0" close $modelExportFileID set controlNode $nodeTag2
; A026059: a(n) = (d(n)-r(n))/5, where d = A026057 and r is the periodic sequence with fundamental period (1,0,3,1,0). ; Submitted by Christian Krause ; 5,10,16,25,36,49,65,83,105,130,158,190,225,265,309,357,410,467,530,598,671,750,834,925,1022,1125,1235,1351,1475,1606,1744,1890,2043,2205,2375,2553,2740,2935,3140,3354,3577,3810,4052,4305,4568,4841,5125,5419,5725,6042,6370,6710,7061,7425,7801,8189,8590 sub $0,1 mov $2,-12 mul $2,$0 add $0,10 bin $0,3 add $2,$0 mov $0,$2 sub $0,39 div $0,5 sub $0,6
/******************************************************************* * SC_SID_2000_CHGS.SAS: * THE SAS CODE SHOWN BELOW WILL LOAD THE ASCII * INPATIENT STAY CHGS FILE INTO SAS *******************************************************************/ ***********************************************; * Create SAS informats for missing values ; ***********************************************; PROC FORMAT; INVALUE N2PF '-9' = . '-8' = .A '-6' = .C '-5' = .N OTHER = (|2.|) ; INVALUE N3PF '-99' = . '-88' = .A '-66' = .C OTHER = (|3.|) ; INVALUE N4PF '-999' = . '-888' = .A '-666' = .C OTHER = (|4.|) ; INVALUE N5PF '-9999' = . '-8888' = .A '-6666' = .C OTHER = (|5.|) ; INVALUE N6PF '-99999' = . '-88888' = .A '-66666' = .C OTHER = (|6.|) ; INVALUE N6P2F '-99.99' = . '-88.88' = .A '-66.66' = .C OTHER = (|6.2|) ; INVALUE N7P2F '-999.99' = . '-888.88' = .A '-666.66' = .C OTHER = (|7.2|) ; INVALUE N8PF '-9999999' = . '-8888888' = .A '-6666666' = .C OTHER = (|8.|) ; INVALUE N8P2F '-9999.99' = . '-8888.88' = .A '-6666.66' = .C OTHER = (|8.2|) ; INVALUE N10PF '-999999999' = . '-888888888' = .A '-666666666' = .C OTHER = (|10.|) ; INVALUE N10P4F '-9999.9999' = . '-8888.8888' = .A '-6666.6666' = .C OTHER = (|10.4|) ; INVALUE DATE10F '-999999999' = . '-888888888' = .A '-666666666' = .C OTHER = (|MMDDYY10.|) ; INVALUE N12P2F '-99999999.99' = . '-88888888.88' = .A '-66666666.66' = .C OTHER = (|12.2|) ; INVALUE N15P2F '-99999999999.99' = . '-88888888888.88' = .A '-66666666666.66' = .C OTHER = (|15.2|) ; RUN; *******************************; * Data Step *; *******************************; DATA SC_SIDC_2000_CHGS; INFILE 'SC_SIDC_2000_CHGS.ASC' LRECL = 1026; *** Variable attribute ***; ATTRIB KEY LENGTH=8 FORMAT=Z14. LABEL="HCUP record identifier" CHG1 LENGTH=6 LABEL="Detailed charges 1 (as received from source)" CHG2 LENGTH=6 LABEL="Detailed charges 2 (as received from source)" CHG3 LENGTH=6 LABEL="Detailed charges 3 (as received from source)" CHG4 LENGTH=6 LABEL="Detailed charges 4 (as received from source)" CHG5 LENGTH=6 LABEL="Detailed charges 5 (as received from source)" CHG6 LENGTH=6 LABEL="Detailed charges 6 (as received from source)" CHG7 LENGTH=6 LABEL="Detailed charges 7 (as received from source)" CHG8 LENGTH=6 LABEL="Detailed charges 8 (as received from source)" CHG9 LENGTH=6 LABEL="Detailed charges 9 (as received from source)" CHG10 LENGTH=6 LABEL="Detailed charges 10 (as received from source)" CHG11 LENGTH=6 LABEL="Detailed charges 11 (as received from source)" CHG12 LENGTH=6 LABEL="Detailed charges 12 (as received from source)" CHG13 LENGTH=6 LABEL="Detailed charges 13 (as received from source)" CHG14 LENGTH=6 LABEL="Detailed charges 14 (as received from source)" CHG15 LENGTH=6 LABEL="Detailed charges 15 (as received from source)" CHG16 LENGTH=6 LABEL="Detailed charges 16 (as received from source)" CHG17 LENGTH=6 LABEL="Detailed charges 17 (as received from source)" CHG18 LENGTH=6 LABEL="Detailed charges 18 (as received from source)" CHG19 LENGTH=6 LABEL="Detailed charges 19 (as received from source)" CHG20 LENGTH=6 LABEL="Detailed charges 20 (as received from source)" CHG21 LENGTH=6 LABEL="Detailed charges 21 (as received from source)" CHG22 LENGTH=6 LABEL="Detailed charges 22 (as received from source)" CHG23 LENGTH=6 LABEL="Detailed charges 23 (as received from source)" CHG24 LENGTH=6 LABEL="Detailed charges 24 (as received from source)" CHG25 LENGTH=6 LABEL="Detailed charges 25 (as received from source)" CHG26 LENGTH=6 LABEL="Detailed charges 26 (as received from source)" CHG27 LENGTH=6 LABEL="Detailed charges 27 (as received from source)" CHG28 LENGTH=6 LABEL="Detailed charges 28 (as received from source)" CHG29 LENGTH=6 LABEL="Detailed charges 29 (as received from source)" CHG30 LENGTH=6 LABEL="Detailed charges 30 (as received from source)" CHG31 LENGTH=6 LABEL="Detailed charges 31 (as received from source)" CHG32 LENGTH=6 LABEL="Detailed charges 32 (as received from source)" CHG33 LENGTH=6 LABEL="Detailed charges 33 (as received from source)" CHG34 LENGTH=6 LABEL="Detailed charges 34 (as received from source)" CHG35 LENGTH=6 LABEL="Detailed charges 35 (as received from source)" CHG36 LENGTH=6 LABEL="Detailed charges 36 (as received from source)" CHG37 LENGTH=6 LABEL="Detailed charges 37 (as received from source)" CHG38 LENGTH=6 LABEL="Detailed charges 38 (as received from source)" CHG39 LENGTH=6 LABEL="Detailed charges 39 (as received from source)" CHG40 LENGTH=6 LABEL="Detailed charges 40 (as received from source)" CHG41 LENGTH=6 LABEL="Detailed charges 41 (as received from source)" CHG42 LENGTH=6 LABEL="Detailed charges 42 (as received from source)" CHG43 LENGTH=6 LABEL="Detailed charges 43 (as received from source)" CHG44 LENGTH=6 LABEL="Detailed charges 44 (as received from source)" CHG45 LENGTH=6 LABEL="Detailed charges 45 (as received from source)" CHG46 LENGTH=6 LABEL="Detailed charges 46 (as received from source)" CHG47 LENGTH=6 LABEL="Detailed charges 47 (as received from source)" CHG48 LENGTH=6 LABEL="Detailed charges 48 (as received from source)" CHG49 LENGTH=6 LABEL="Detailed charges 49 (as received from source)" CHG50 LENGTH=6 LABEL="Detailed charges 50 (as received from source)" CHG51 LENGTH=6 LABEL="Detailed charges 51 (as received from source)" CHG52 LENGTH=6 LABEL="Detailed charges 52 (as received from source)" CHG53 LENGTH=6 LABEL="Detailed charges 53 (as received from source)" CHG54 LENGTH=6 LABEL="Detailed charges 54 (as received from source)" CHG55 LENGTH=6 LABEL="Detailed charges 55 (as received from source)" CHG56 LENGTH=6 LABEL="Detailed charges 56 (as received from source)" CHG57 LENGTH=6 LABEL="Detailed charges 57 (as received from source)" CHG58 LENGTH=6 LABEL="Detailed charges 58 (as received from source)" CHG59 LENGTH=6 LABEL="Detailed charges 59 (as received from source)" CHG60 LENGTH=6 LABEL="Detailed charges 60 (as received from source)" CHG61 LENGTH=6 LABEL="Detailed charges 61 (as received from source)" CHG62 LENGTH=6 LABEL="Detailed charges 62 (as received from source)" CHG63 LENGTH=6 LABEL="Detailed charges 63 (as received from source)" CHG64 LENGTH=6 LABEL="Detailed charges 64 (as received from source)" CHG65 LENGTH=6 LABEL="Detailed charges 65 (as received from source)" CHG66 LENGTH=6 LABEL="Detailed charges 66 (as received from source)" CHG67 LENGTH=6 LABEL="Detailed charges 67 (as received from source)" CHG68 LENGTH=6 LABEL="Detailed charges 68 (as received from source)" CHG69 LENGTH=6 LABEL="Detailed charges 69 (as received from source)" CHG70 LENGTH=6 LABEL="Detailed charges 70 (as received from source)" CHG71 LENGTH=6 LABEL="Detailed charges 71 (as received from source)" CHG72 LENGTH=6 LABEL="Detailed charges 72 (as received from source)" CHG73 LENGTH=6 LABEL="Detailed charges 73 (as received from source)" CHG74 LENGTH=6 LABEL="Detailed charges 74 (as received from source)" CHG75 LENGTH=6 LABEL="Detailed charges 75 (as received from source)" CHG76 LENGTH=6 LABEL="Detailed charges 76 (as received from source)" CHG77 LENGTH=6 LABEL="Detailed charges 77 (as received from source)" CHG78 LENGTH=6 LABEL="Detailed charges 78 (as received from source)" UNIT1 LENGTH=4 LABEL="Units of service 1 (as received from source)" UNIT2 LENGTH=4 LABEL="Units of service 2 (as received from source)" UNIT3 LENGTH=4 LABEL="Units of service 3 (as received from source)" UNIT4 LENGTH=4 LABEL="Units of service 4 (as received from source)" UNIT5 LENGTH=4 LABEL="Units of service 5 (as received from source)" UNIT6 LENGTH=4 LABEL="Units of service 6 (as received from source)" UNIT7 LENGTH=4 LABEL="Units of service 7 (as received from source)" UNIT8 LENGTH=4 LABEL="Units of service 8 (as received from source)" UNIT9 LENGTH=4 LABEL="Units of service 9 (as received from source)" UNIT10 LENGTH=4 LABEL="Units of service 10 (as received from source)" UNIT11 LENGTH=4 LABEL="Units of service 11 (as received from source)" UNIT12 LENGTH=4 LABEL="Units of service 12 (as received from source)" UNIT13 LENGTH=4 LABEL="Units of service 13 (as received from source)" UNIT14 LENGTH=4 LABEL="Units of service 14 (as received from source)" UNIT15 LENGTH=4 LABEL="Units of service 15 (as received from source)" UNIT16 LENGTH=4 LABEL="Units of service 16 (as received from source)" UNIT17 LENGTH=4 LABEL="Units of service 17 (as received from source)" UNIT18 LENGTH=4 LABEL="Units of service 18 (as received from source)" UNIT19 LENGTH=4 LABEL="Units of service 19 (as received from source)" ; *** Input the variables from the ASCII file ***; INPUT @1 KEY 14. @15 CHG1 N12P2F. @27 CHG2 N12P2F. @39 CHG3 N12P2F. @51 CHG4 N12P2F. @63 CHG5 N12P2F. @75 CHG6 N12P2F. @87 CHG7 N12P2F. @99 CHG8 N12P2F. @111 CHG9 N12P2F. @123 CHG10 N12P2F. @135 CHG11 N12P2F. @147 CHG12 N12P2F. @159 CHG13 N12P2F. @171 CHG14 N12P2F. @183 CHG15 N12P2F. @195 CHG16 N12P2F. @207 CHG17 N12P2F. @219 CHG18 N12P2F. @231 CHG19 N12P2F. @243 CHG20 N12P2F. @255 CHG21 N12P2F. @267 CHG22 N12P2F. @279 CHG23 N12P2F. @291 CHG24 N12P2F. @303 CHG25 N12P2F. @315 CHG26 N12P2F. @327 CHG27 N12P2F. @339 CHG28 N12P2F. @351 CHG29 N12P2F. @363 CHG30 N12P2F. @375 CHG31 N12P2F. @387 CHG32 N12P2F. @399 CHG33 N12P2F. @411 CHG34 N12P2F. @423 CHG35 N12P2F. @435 CHG36 N12P2F. @447 CHG37 N12P2F. @459 CHG38 N12P2F. @471 CHG39 N12P2F. @483 CHG40 N12P2F. @495 CHG41 N12P2F. @507 CHG42 N12P2F. @519 CHG43 N12P2F. @531 CHG44 N12P2F. @543 CHG45 N12P2F. @555 CHG46 N12P2F. @567 CHG47 N12P2F. @579 CHG48 N12P2F. @591 CHG49 N12P2F. @603 CHG50 N12P2F. @615 CHG51 N12P2F. @627 CHG52 N12P2F. @639 CHG53 N12P2F. @651 CHG54 N12P2F. @663 CHG55 N12P2F. @675 CHG56 N12P2F. @687 CHG57 N12P2F. @699 CHG58 N12P2F. @711 CHG59 N12P2F. @723 CHG60 N12P2F. @735 CHG61 N12P2F. @747 CHG62 N12P2F. @759 CHG63 N12P2F. @771 CHG64 N12P2F. @783 CHG65 N12P2F. @795 CHG66 N12P2F. @807 CHG67 N12P2F. @819 CHG68 N12P2F. @831 CHG69 N12P2F. @843 CHG70 N12P2F. @855 CHG71 N12P2F. @867 CHG72 N12P2F. @879 CHG73 N12P2F. @891 CHG74 N12P2F. @903 CHG75 N12P2F. @915 CHG76 N12P2F. @927 CHG77 N12P2F. @939 CHG78 N12P2F. @951 UNIT1 N4PF. @955 UNIT2 N4PF. @959 UNIT3 N4PF. @963 UNIT4 N4PF. @967 UNIT5 N4PF. @971 UNIT6 N4PF. @975 UNIT7 N4PF. @979 UNIT8 N4PF. @983 UNIT9 N4PF. @987 UNIT10 N4PF. @991 UNIT11 N4PF. @995 UNIT12 N4PF. @999 UNIT13 N4PF. @1003 UNIT14 N4PF. @1007 UNIT15 N4PF. @1011 UNIT16 N4PF. @1015 UNIT17 N4PF. @1019 UNIT18 N4PF. @1023 UNIT19 N4PF. ; RUN;
%{ // wordParser : ただ一つの単語をパースするパーサ。 // 受け取った文字列がただ一つの単語でない場合はすべてパースエラーとなる。 // 単語の切れ目は、 golang の scanner.Scanner クラスのデフォルトの挙動に依存する(深く考えてない)。 package main import ( "github.com/k0kubun/pp" "os" "text/scanner" "strings" ) type Result interface {} %} %union{ word string } // %union に列挙したフィールドと、「%xxx<yyy> の yyy」が対応しているようだ。 // つまり、ここでは word ルールの成果物(?)と、 // WORD トークンの成果物(?)はともに string であるということを宣言している? %type<word> word %token<word> WORD %% word : WORD { pp.Println($1) } %% // yyLexer インタフェースを実装したオブジェクトを作成する。 // こいつの Lex メソッドが、字句解析を担当する。 type Lexer struct { scanner.Scanner } // Lex : トークンを一つ読み進める。 // この実装では、スキャンした結果を何でもかんでも WORD として解釈する。 func (l *Lexer) Lex(lval *yySymType) int { token := int(l.Scan()) // EOF 以外はすべて WORD if token != scanner.EOF { // WORD は、yacc 宣言部で書いた token<xxx> のどれか token = WORD } // 解析結果を lval に詰める。 // この実装では、 WORD が string 型なので、実際の文字列を格納している。 lval.word = l.TokenText() // 解釈したトークンの種類を返却する return token } /* エラーはとりあえずパニック */ func (l *Lexer) Error(e string) { panic(e) } func main() { // 自作 Lexer 作成 l := new(Lexer) // 第一引数をパースするように設定 l.Init(strings.NewReader(os.Args[1])) // パース実行 yyParse(l) }
# paned1.tcl -- # # This demonstration script creates a toplevel window containing # a paned window that separates two windows horizontally. # # RCS: @(#) $Id: paned1.tcl,v 1.3 2004/12/21 11:56:35 dkf Exp $ if {![info exists widgetDemo]} { error "This script should be run from the \"widget\" demo." } package require Tk set w .paned1 catch {destroy $w} toplevel $w wm title $w "Horizontal Paned Window Demonstration" wm iconname $w "paned1" positionWindow $w label $w.msg -font $font -wraplength 4i -justify left -text "The sash between the two coloured windows below can be used to divide the area between them. Use the left mouse button to resize without redrawing by just moving the sash, and use the middle mouse button to resize opaquely (always redrawing the windows in each position.)" pack $w.msg -side top ## See Code / Dismiss buttons set btns [addSeeDismiss $w.buttons $w] pack $btns -side bottom -fill x panedwindow $w.pane pack $w.pane -side top -expand yes -fill both -pady 2 -padx 2m label $w.pane.left -text "This is the\nleft side" -bg yellow label $w.pane.right -text "This is the\nright side" -bg cyan $w.pane add $w.pane.left $w.pane.right
use springT; # --- # 设计账户表结构 drop table if exists `bankAccount`; create table `bankAccount`( `id` int(11) primary key auto_increment, `name` varchar(32) not null comment '账户名称', `money` float not null comment '账户余额' ) engine=InnoDB default charset=utf8; insert into bankAccount(name, money) values ('aaa', 1000), ('bbb', 2000), ('ccc', 3000); # ---