3_1009(m, d) BOOST_PP_REPEAT_3_1008(m, d) m(4, 1008, d)
# define BOOST_PP_REPEAT_3_1010(m, d) BOOST_PP_REPEAT_3_1009(m, d) m(4, 1009, d)
# define BOOST_PP_REPEAT_3_1011(m, d) BOOST_PP_REPEAT_3_1010(m, d) m(4, 1010, d)
# define BOOST_PP_REPEAT_3_1012(m, d) BOOST_PP_REPEAT_3_1011(m, d) m(4, 1011, d)
# define BOOST_PP_REPEAT_3_1013(m, d) BOOST_PP_REPEAT_3_1012(m, d) m(4, 1012, d)
# define BOOST_PP_REPEAT_3_1014(m, d) BOOST_PP_REPEAT_3_1013(m, d) m(4, 1013, d)
# define BOOST_PP_REPEAT_3_1015(m, d) BOOST_PP_REPEAT_3_1014(m, d) m(4, 1014, d)
# define BOOST_PP_REPEAT_3_1016(m, d) BOOST_PP_REPEAT_3_1015(m, d) m(4, 1015, d)
# define BOOST_PP_REPEAT_3_1017(m, d) BOOST_PP_REPEAT_3_1016(m, d) m(4, 1016, d)
# define BOOST_PP_REPEAT_3_1018(m, d) BOOST_PP_REPEAT_3_1017(m, d) m(4, 1017, d)
# define BOOST_PP_REPEAT_3_1019(m, d) BOOST_PP_REPEAT_3_1018(m, d) m(4, 1018, d)
# define BOOST_PP_REPEAT_3_1020(m, d) BOOST_PP_REPEAT_3_1019(m, d) m(4, 1019, d)
# define BOOST_PP_REPEAT_3_1021(m, d) BOOST_PP_REPEAT_3_1020(m, d) m(4, 1020, d)
# define BOOST_PP_REPEAT_3_1022(m, d) BOOST_PP_REPEAT_3_1021(m, d) m(4, 1021, d)
# define BOOST_PP_REPEAT_3_1023(m, d) BOOST_PP_REPEAT_3_1022(m, d) m(4, 1022, d)
# define BOOST_PP_REPEAT_3_1024(m, d) BOOST_PP_REPEAT_3_1023(m, d) m(4, 1023, d)
#
# endif
# /* Copyright (C) 2001
#  * Housemarque Oy
#  * http://www.housemarque.com
#  *
#  * Distributed under the Boost Software License, Version 1.0. (See
#  * accompanying file LICENSE_1_0.txt or copy at
#  * http://www.boost.org/LICENSE_1_0.txt)
#  */
#
# /* Revised by Paul Mensonides (2002) */
# /* Revised by Edward Diener (2020) */
#
# /* See http://www.boost.org for most recent version. */
#
# ifndef BOOST_PREPROCESSOR_REPETITION_DETAIL_EDG_FOR_512_HPP
# define BOOST_PREPROCESSOR_REPETITION_DETAIL_EDG_FOR_512_HPP
#
# define BOOST_PP_FOR_257(s, p, o, m) BOOST_PP_FOR_257_I(s, p, o, m)
# define BOOST_PP_FOR_258(s, p, o, m) BOO


").concat(c, \", \").concat(d, \")\");\n};\nconst supportedWaapiEasing = {\n    linear: \"linear\",\n    ease: \"ease\",\n    easeIn: \"ease-in\",\n    easeOut: \"ease-out\",\n    easeInOut: \"ease-in-out\",\n    circIn: cubicBezierAsString([\n        0,\n        0.65,\n        0.55,\n        1\n    ]),\n    circOut: cubicBezierAsString([\n        0.55,\n        0,\n        1,\n        0.45\n    ]),\n    backIn: cubicBezierAsString([\n        0.31,\n        0.01,\n        0.66,\n        -0.59\n    ]),\n    backOut: cubicBezierAsString([\n        0.33,\n        1.53,\n        0.69,\n        0.99\n    ])\n};\nfunction mapEasingToNativeEasing(easing) {\n    if (!easing) return undefined;\n    return (0,_easing_utils_is_bezier_definition_mjs__WEBPACK_IMPORTED_MODULE_0__.isBezierDefinition)(easing) ? cubicBezierAsString(easing) : Array.isArray(easing) ? easing.map(mapEasingToNativeEasing) : supportedWaapiEasing[easing];\n}\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiKGFwcC1wYWdlcy1icm93c2VyKS8uL25vZGVfbW9kdWxlcy9mcmFtZXItbW90aW9uL2Rpc3QvZXMvYW5pbWF0aW9uL2FuaW1hdG9ycy93YWFwaS9lYXNpbmcubWpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7O0FBQW9GO0FBRXBGLFNBQVNDLHVCQUF1QkMsTUFBTTtJQUNsQyxPQUFPQyxRQUFRLENBQUNELFVBQ1gsT0FBT0EsV0FBVyxZQUFZRSxvQkFBb0IsQ0FBQ0YsT0FBTyxJQUMzREYsMEZBQWtCQSxDQUFDRSxXQUNsQkcsTUFBTUMsT0FBTyxDQUFDSixXQUFXQSxPQUFPSyxLQUFLLENBQUNOO0FBQy9DO0FBQ0EsTUFBTU8sc0JBQXNCO1FBQUMsQ0FBQ0MsR0FBR0MsR0FBR0MsR0FBR0MsRUFBRTtXQUFLLGdCQUFzQkYsT0FBTkQsR0FBRSxNQUFVRSxPQUFORCxHQUFFLE1BQVVFLE9BQU5ELEdBQUUsTUFBTSxPQUFGQyxHQUFFOztBQUNsRixNQUFNUix1QkFBdUI7SUFDekJTLFFBQVE7SUFDUkMsTUFBTTtJQUNOQyxRQUFRO0lBQ1


     type: 'original',
        fraction: 0.1,
        varient: 394100
      },
      {
        type: 'original',
        fraction: 0.2,
        varient: 124100
      },
      {
        type: 'original',
        fraction: 0.3,
        varient: 374100
      },
      {
        type: 'original',
        fraction: 0.4,
        varient: 324100
      },
    ]
    chart.updateVarients(missingnesses)
    expect(chart.option.series.length).toEqual(1)
    expect(chart.option.dataset.source).toEqual([
      ['Fraction', type],
      [0.1, 394100],
      [0.2, 124100],
      [0.3, 374100],
      [0.4, 324100],
    ])
  })

  it('should value change when update chart as filtered type', () => {
    type = 'filtered'
    chart = new MissingnessChart(type)
    const missingnesses: Missingness[] = [
      {
        type: 'filtered',
        fraction: 0.1,
        varient: 324120
      },
      {
        type: 'filtered',
        fraction: 0.2,
        varient: 264960
      },
      {
        type: 'filtered',
        fraction: 0.3,
        varient: 224500
      },
      {
        type: 'filtered',
        fraction: 0.4,
        varient: 194100
      },
    ]
    chart.updateVarients(missingnesses)
    expect(chart.option.series.length).toEqual(1)
    expect(chart.option.dataset.source).toEqual([
      ['Fraction', type],
      [0.1, 324120],
      [0.2, 264960],
      [0.3, 224500],
      [0.4, 194100],
    ])
  })
})
import {Component, EventEmitter, Output} from '@angular/core';

@Component({
  selector: 'rating',
  templateUrl: 'rating.html'
})
export class RatingComponent {

  @Output() voteSubmitted: EventEmitter<boolean>;

  private upVotes: number;
  private downVotes: number;

  constructor() {

    this.voteSubmitted = new EventEmitter<boolean>();

    this.upVotes = 0;
    this.downVotes = 0;
  }

  upVote() {

    this.upVotes++;
    this.voteSubmitted.emit(true);
  }

  downVote() {

    this.downVotes++;
    this.voteSubmitted.emit(false);
  }
}
import { countries, country } from './countries';
import express, {Express, Request, Response} from "express";
import cors from "cors";

const app: Express = express()

app.use(express.json())
app.use(cors())

// app.get('/test/hello', (req: Request, res: Response) => {
//     res.send(`Olá, mundo!`)
// })

// app.get('/test/:number/:name', (req: Request, res: Response) => {
//     res.send(`Oi ${req.params.name}! Seu número da sorte é ${Number(req.params.number) + 3}!`)
// })

app.get("/countries/all", (req: Request, res: Response)=>{
    const mappedCountries = countries.map(country => ({
        id: country.id,
        name: country.name
    }))
    res.status(200).send(mappedCountries)
})

app.get("/countries/search", (req: Request, res: Response)=>{
    let searchedCountry: country[] = countries
    let errorCode: number = 401
    try{
        if(
            !req.query.name &&
            !req.query.capital &&
            !req.query.continent
        ){
            errorCode = 406
            throw new Error("Huston, we have a problem! Bad parameters!")
        }
        if(req.query.name){
            searchedCountry = searchedCountry.filter (
                country => country.name.includes(req.query.name as string)
             )


lutionResult = pokemon.getPokemon().evolve();
        } catch (RequestFailedException e) {
            e.printStackTrace();
            return new BpmOperationResult(String.format(
                    erroEvolvingString,
                    pokemon.getSpecies(),
                    e.getMessage()),
                    OperationError.EVOLVE_FAIL);
        }

        if (!evolutionResult.isSuccessful()) {
            return new BpmOperationResult(String.format(
                    erroEvolvingString,
                    pokemon.getSpecies(),
                    evolutionResult.getResult().toString()),
                    OperationError.EVOLVE_FAIL);
        }

        final Pokemon poke = pokemon.getPokemon();
        final int candies = poke.getCandy();
        final int candiesToEvolve = poke.getCandiesToEvolve();
        final int cp = poke.getCp();
        final int hp = poke.getMaxStamina();

        final Pokemon newPoke = evolutionResult.getEvolvedPokemon();
        final int newCandies = newPoke.getCandy();
        final int newCp = newPoke.getCp();
        final int newHp = newPoke.getStamina();
        final int candyRefund = 1;

        pokemon.setPokemon(newPoke);

        final BpmOperationResult result = new BpmOperationResult();

        result.addSuccessMessage(String.format(
                "Evolving %s. Evolve result: %s",
                PokemonUtils.getLocalPokeName(poke),
                evolutionResult.getResult().toString()));

        result.addSuccessMessage(String.format(
                "Stat changes: "
                        + "(Candies: %d[%d-%d+%d], "
                        + "CP: %d[+%d], "
                        + "HP: %d[+%d])",
                        newCandies, candies, candiesToEvolve, candyRefund,
                        newCp, (newCp - cp),
                        newHp, (newHp - hp)));

        if (config.getBool(ConfigKey.TRANSFER_AFTER_EVOLVE)){
            result.setNextOperation(OperationId.TRANSFER);
        }

        return result;
    }

    @Override
    protected int getMaxDelay() {
        return config.getInt(ConfigKey.DELAY_EVOLVE_MAX);
    }

    @Override
    protected int getMinDelay() {
        return config.getInt(ConfigKey.DELAY_EVOLVE_MIN);
    }

    @Override
    public OperationId getOperationId() {
        return OperationId.EVOLVE;
    }

    @Override
    public BpmOperationResult validateOperation() {
        if (pokemon.isInGym()) {
            return new BpmOperationResult("Pokemon is in gym", OperationError.IN_GYM);
        }

        final int candies = pokemon.getCandies();
        final int candiesToEvolve = pokemon.getCandies2Evlv();

        if (candiesToEvolve == 0) {
            return new BpmOperationResult("Pokemon cannot be evolved", OperationError.NOT_EVOLVABLE);
        }

        if (candies < candiesToEvolve) {
            return new BpmOperationResult(String.format(
                    "Insufficent candies, needed %d but had %d ",
                    candiesToEvolve,
                    candies),
                    OperationError.INSUFFICENT_CANDIES);
        }

        return new BpmOperationResult();
    }
}
package me.corriekay.pokegoutil.gui.enums;

import java.util.HashMap;
import java.util.Map;

public enum OperationId {
    RENAME("Rename", "Renaming", "Renamed"),
    TRANSFER("Transfer", "Transfering", "Transfered"),
    POWERUP("Power Up", "Powering Up", "Powered Up"),
    EVOLVE("Evolve", "Evolving", "Evolved"),
    FAVORITE("Favorite", "Favoriting", "Favorited");

    private


47c000 <__PRETTY_FUNCTION__.12139+0x110>
  45c158:	90000101 	adrp	x1, 47c000 <__PRETTY_FUNCTION__.12139+0x110>
  45c15c:	90000100 	adrp	x0, 47c000 <__PRETTY_FUNCTION__.12139+0x110>
  45c160:	91200063 	add	x3, x3, #0x800
  45c164:	52807622 	mov	w2, #0x3b1                 	// #945
  45c168:	911f0021 	add	x1, x1, #0x7c0
  45c16c:	910e2000 	add	x0, x0, #0x388
  45c170:	97fe9322 	bl	400df8 <__assert_fail>
  45c174:	90000103 	adrp	x3, 47c000 <__PRETTY_FUNCTION__.12139+0x110>
  45c178:	90000101 	adrp	x1, 47c000 <__PRETTY_FUNCTION__.12139+0x110>
  45c17c:	90000100 	adrp	x0, 47c000 <__PRETTY_FUNCTION__.12139+0x110>
  45c180:	91200063 	add	x3, x3, #0x800
  45c184:	52807f82 	mov	w2, #0x3fc                 	// #1020
  45c188:	911f0021 	add	x1, x1, #0x7c0
  45c18c:	910fe000 	add	x0, x0, #0x3f8
  45c190:	97fe931a 	bl	400df8 <__assert_fail>
  45c194:	90000103 	adrp	x3, 47c000 <__PRETTY_FUNCTION__.12139+0x110>
  45c198:	90000101 	adrp	x1, 47c000 <__PRETTY_FUNCTION__.12139+0x110>
  45c19c:	90000100 	adrp	x0, 47c000 <__PRETTY_FUNCTION__.12139+0x110>
  45c1a0:	91200063 	add	x3, x3, #0x800
  45c1a4:	528073a2 	mov	w2, #0x39d                 	// #925
  45c1a8:	911f0021 	add	x1, x1, #0x7c0
  45c1ac:	910c4000 	add	x0, x0, #0x310
  45c1b0:	97fe9312 	bl	400df8 <__assert_fail>
  45c1b4:	90000103 	adrp	x3, 47c000 <__PRETTY_FUNCTION__.12139+0x110>
  45c1b8:	90000101 	adrp	x1, 47c000 <__PRETTY_FUNCTION__.12139+0x110>
  45c1bc:	90000100 	adrp	x0, 47c000 <__PRETTY_FUNCTION__.12139+0x110>
  45c1c0:	91200063 	add	x3, x3, #0x800
  45c1c4:	5280ab22 	mov	w2, #0x559                 	// #1369
  45c1c8:	911f0021 	add	x1, x1, #0x7c0
  45c1cc:	9116c000 	add	x0, x0, #0x5b0
  45c1d0:	97fe930a 	bl	400df8 <__assert_fail>
  45c1d4:	90000103 	adrp	x3, 47c000 <__PRETTY_FUNCTION__.12139+0x110>
  45c1d8:	90000101


 BrokerContext
	authContext   *SMExpect
	Context       BrokerUtilsContext
}

func (ctx *BrokerUtils) Cleanup(broker BrokerContext) {
	ctx.authContext.DELETE(web.ServiceBrokersURL + "/" + broker.ID).Expect()
	broker.BrokerServer.Close()
}
func (ctx *BrokerUtils) GetBrokerAsParams() (string, Object, *BrokerServer) {
	return ctx.Broker.ID, ctx.Broker.JSON, ctx.Broker.BrokerServer
}

func (ctx *BrokerUtils) SelectBroker(broker *BrokerContext) *BrokerUtils {
	ctx.Context.selected = broker
	return ctx
}

func (ctx *BrokerUtils) GetPlanCatalogId(service, plan int) string {
	catalog := string(ctx.Context.selected.GeneratedCatalog)
	return gjson.Get(catalog, fmt.Sprintf("services.%d.plans.%d.id", service, plan)).Str
}

func (ctx *BrokerUtils) GetBrokerOSBURL(brokerID string) string {
	return ctx.Context.selected.BrokerServer.URL() + "/v1/osb/" + brokerID
}

func (ctx *BrokerUtils) GetServiceCatalogId(service int) string {
	smBrokerServiceIdPlan := string(ctx.Context.selected.GeneratedCatalog)
	return gjson.Get(smBrokerServiceIdPlan, fmt.Sprintf("services.%d.id", service)).Str
}

func (ctx *BrokerUtils) RegisterPlatformToBroker(username, password, brokerID string) {
	passwordHash, err := bcrypt.GenerateFromPassword([]byte(password), bcrypt.DefaultCost)
	if err != nil {
		panic(err)
	}

	payload := map[string]interface{}{
		"broker_id":       brokerID,
		"username":        username,
		"password_hash":   string(passwordHash),
		"notification_id": "",
	}

	ctx.authContext.Request(http.MethodPut, web.BrokerPlatformCredentialsURL).
		WithJSON(payload).Expect().Status(http.StatusOK)
}

func (ctx *BrokerUtils) SetAuthContext(authContext *SMExpect) *BrokerUtils {
	ctx.authContext = authContext
	return ctx
}
func (ctx *BrokerUtils) GetServiceOfferings(brokerId string) *BrokerUtils {
	ctx.Context.value = ctx.authContext.ListWithQuery(web.ServiceOfferingsURL, fmt.Sprintf("fieldQuery=broker_id eq '%s'", brokerId))
	return ctx
}

func (ctx *BrokerUtils) AddPlanVisibilityForPlatform(planCatalogID string, platformID string, orgID string) *BrokerUtils {

	smPlanID := ctx.authContext.ListWithQuery(web.ServicePlansURL, "fieldQuery="+fmt.Sprintf("catalog_id eq '%s'", planCatalogID)).
		First().Object().Value("id").String().Raw()

	visibilityID := RegisterVisibilityForPlanAndPlatform(ctx.authContext, smPlanID, platformID)
	if orgID != "" {
		patchLabelsBody := make(map[string]interface{})
		patchLabels := []types.LabelChange{{
			Operation: types.AddLabelOperation,
			Key:       "organization_guid",
			Values:    []string{orgID},
		}}
		patchLabelsBody["labels"] = patchLabels

		ctx.authContext.PATCH(web.VisibilitiesURL + "/" + visibilityID).
			WithJSON(patchLabelsBody).
			Expect().
			Status(http.StatusOK)
	}

	return ctx
}

func (ctx *BrokerUtils) GetServicePlans(forOffering int, key string) *BrokerUtils {
	ctx.Context.value = ctx.authContext.ListWithQuery(web.ServicePlansURL, "fieldQuery="+fmt.Sprintf("service_offering_id eq '%s'", ctx.Context.value.Element(forOffering).Object().Value(key).String().Raw


{self, EpollEvent, EpollFlags, EpollOp};
use nix::sys::signal::{sigprocmask, SigmaskHow, Signal};
use nix::sys::signalfd::{SigSet, SignalFd};
use nix::sys::termios::{self, SetArg, Termios};
use nix::unistd::{close, read, write};
use nix::Result;

use libsystemd_sys::bus::*;

/// stdin fd
const STDIN: RawFd = libc::STDIN_FILENO;

/// stdout fd
const STDOUT: RawFd = libc::STDOUT_FILENO;

/// Init and get pty master fd
pub fn get_pty(user: &str) -> Result<RawFd> {
    // init pty peer
    let pty = openpty(None, None)?;
    let path = readlink(format!("/proc/self/fd/{}", pty.slave).as_str())?;
    close(pty.slave)?; // no longer used, close

    wait_dbus(user, path.to_str().unwrap())?;
    wait_master(pty.master)?;

    Ok(pty.master)
}

/// Wait systemd init
fn wait_dbus(user: &str, slave: &str) -> Result<()> {
    for _ in 0..10 {
        thread::sleep(Duration::from_millis(100));
        match unsafe { dbus(user, slave) } {
            Ok(_) => return Ok(()),
            Err(Errno::ECONNREFUSED) => continue,
            Err(e) => return Err(e),
        }
    }
    Err(Errno::ETIMEDOUT)
}

/// Wait master for readable
fn wait_master(master: RawFd) -> Result<()> {
    let mut buff = [0; 128];
    for _ in 0..10 {
        thread::sleep(Duration::from_millis(100));
        match read(master, &mut buff) {
            Ok(_) => return Ok(()),
            Err(Errno::EIO) => continue,
            Err(e) => return Err(e),
        }
    }
    Err(Errno::ETIMEDOUT)
}

pub struct PTYForward {
    epoll: RawFd,
    master_fd: RawFd,
    stdin_origin: Termios,
    stdout_origin: Termios,
    signal_fd: SignalFd,
}

impl PTYForward {
    /// Setup ptyforward event
    pub fn new(master_fd: RawFd) -> Result<PTYForward> {
        let mut sig_set = SigSet::empty();
        sig_set.add(Signal::SIGWINCH);
        sigprocmask(SigmaskHow::SIG_SETMASK, Some(&sig_set), None)?;
        let signal_fd = SignalFd::new(&sig_set)?;
        let sig_fd = signal_fd.as_raw_fd();

        let epoll = epoll::epoll_create()?;
        let mut stdin_event = EpollEvent::new(EpollFlags::EPOLLIN, 0);
        let mut master_event = EpollEvent::new(EpollFlags::EPOLLIN, 1);
        let mut sig_event = EpollEvent::new(EpollFlags::EPOLLIN, 2);
        epoll::epoll_ctl(epoll, EpollOp::EpollCtlAdd, STDIN, &mut stdin_event)?;
        epoll::epoll_ctl(epoll, EpollOp::EpollCtlAdd, master_fd, &mut master_event)?;
        epoll::epoll_ctl(epoll, EpollOp::EpollCtlAdd, sig_fd, &mut sig_event)?;

        let stdin_origin = Self::set_raw_termios(STDIN)?;
        let stdout_origin = Self::set_raw_termios(STDOUT)?;
        Self::set_nonblock(STDIN, true)?;
        Self::set_nonblock(master_fd, true)?;

        let f = PTYForward {
            epoll,
            master_fd,
            stdin_origin,
            stdout_origin,
            signal_fd,
        };
        f.window_resize()?;
        Ok(f)
    }

    /// Wait epoll event
    ///
    /// # Errors
    ///


path: &str) -> Surface {

    let err_msg: String = format!("Failed to load image bmp at path: {}", image_path);
    // .as_str() has some RFC convert warning
    Surface::load_bmp(&Path::new(image_path)).ok().expect(&err_msg)
}
#[cfg(not(feature = "number"))]
pub mod app;
#[cfg(not(feature = "number"))]
pub mod core;
pub mod number;
#[cfg(not(feature = "number"))]
pub mod util;
use anyhow::Result;
use image::{GrayImage, Luma};
use itertools::Itertools;
use std::path::PathBuf;

use self::parser::{parse, Fold, ParsedInput};

mod parser;

pub fn solve_puzzle() -> Result<()> {
    const INPUT: &str = include_str!("../assets/day13.txt");
    println!("Part1: {}", part1(parse_input(INPUT)?)?);
    part2(parse_input(INPUT)?)?;
    println!("Part2: it's an image!",);
    Ok(())
}

fn parse_input(input: &'static str) -> Result<ParsedInput> {
    let (_, parsed) = parse(input)?;
    Ok(parsed)
}

fn part1(mut input: ParsedInput) -> Result<usize> {
    follow_instructions(input.instructions.into_iter().take(1), &mut input.dots);

    // finalize
    Ok(input.dots.into_iter().unique().count())
}

fn part2(mut input: ParsedInput) -> Result<()> {
    follow_instructions(input.instructions.into_iter(), &mut input.dots);

    // finalize as an image
    let (max_x, max_y) = input
        .dots
        .iter()
        .fold((0, 0), |(x1, y1), (x2, y2)| (x1.max(*x2), y1.max(*y2)));
    let mut img = GrayImage::new(max_x + 1, max_y + 1);
    for (x, y) in input.dots.into_iter() {
        img.put_pixel(x, y, Luma([255]));
    }

    // save image
    let mut pb = PathBuf::from("assets_day13");
    if !pb.exists() {
        std::fs::create_dir(&pb)?;
    }
    pb.push("part2.png");

    #[cfg(feature = "visualize")]
    img.save(pb.as_path())?;

    Ok(())
}

fn follow_instructions(instructions: impl Iterator<Item = Fold>, dots: &mut Vec<(u32, u32)>) {
    for instr in instructions {
        match instr {
            Fold::AlongX(n) => dots.iter_mut().for_each(|(x, _)| {
                if *x > n {
                    *x -= 2 * (*x - n);
                }
            }),
            Fold::AlongY(n) => dots.iter_mut().for_each(|(_, y)| {
                if *y > n {
                    *y -= 2 * (*y - n);
                }
            }),
        }
    }
}

#[cfg(test)]
mod tests {
    use super::*;
    use indoc::indoc;

    const INPUT: &str = indoc! {"
        6,10
        0,14
        9,10
        0,3
        10,4
        4,11
        6,0
        6,12
        4,1
        0,13
        10,12
        3,4
        3,0
        8,4
        1,10
        2,14
        8,10
        9,0

        fold along y=7
        fold along x=5
    "};

    #[test]
    fn test_part1() -> Result<()> {
        assert_eq!(17, part1(parse_input(INPUT)?)?);
        Ok(())
    }

    #[test]
    fn test_part2() -> Result<()> {
        part2(parse_input(INPUT)?)
    }
}
#


ype bid)
    {
        return p_pool->invalidate(bid);
    }

    /*!
     * Reads block. If this block is cached block is not read but passed from
     * the cache.
     *
     * \param block block object, where data to be read to. If block was cached
     * \c block 's ownership goes to the pool and block from cache is returned
     * in \c block value.
     *
     * \param bid address of the block
     * \warning \c block parameter must be allocated dynamically using \c new .
     * \return request pointer object of read operation
     */
    request_ptr read(block_type*& block, bid_type bid)
    {
        return p_pool->read(block, bid, *w_pool);
    }

    //! Returns the request pointer for a hinted block, or an invalid NULL
    //! request in case it was not requested due to lack of prefetch buffers.
    request_ptr find_hint(bid_type bid)
    {
        return p_pool->find(bid);
    }

    //! Returns true if the blocks was hinted and the request is finished.
    bool poll_hint(bid_type bid)
    {
        return p_pool->poll(bid);
    }

    //! Add block to prefetch pool
    void add_prefetch(block_type*& block)
    {
        p_pool->add(block);
    }

    //! Take out a block from the prefetch pool, one unhinted free block must
    //! be available.
    //! \return pointer to the block. Ownership of the block goes to the caller.
    block_type * steal_prefetch()
    {
        return p_pool->steal();
    }

    //! Checks if a block is in the hinted block set.
    bool in_prefetching(bid_type bid)
    {
        return p_pool->in_prefetching(bid);
    }

    //! Returns the number of free prefetching blocks.
    unsigned_type free_size_prefetch() const
    {
        return p_pool->free_size();
    }

    //! Returns the number of busy prefetching blocks.
    unsigned_type busy_size_prefetch() const
    {
        return p_pool->busy_size();
    }
};

//! \}

STXXL_END_NAMESPACE

namespace std {

template <class BlockType>
void swap(stxxl::read_write_pool<BlockType>& a,
          stxxl::read_write_pool<BlockType>& b)
{
    a.swap(b);
}

} // namespace std

#endif // !STXXL_MNG_READ_WRITE_POOL_HEADER
// vim: et:ts=4:sw=4


 = "tag_id";
  static const tagName = "tag_name";

  static const emoticonsToTagsJoinTableName = "emoticon_to_tags";

  static const emoticonsOrderingTableName = "emoticons_ordering";
  static const emoticonsOrderingEmoticonId = "emoticon_id";
  static const emoticonsOrderingUserOrder = "emoticon_user_order";
  static const emoticonsOrderingUsageCount = "emoticon_usage_count";

  static const tagsOrderingTableName = "tags_ordering";
  static const tagsOrderingTagId = "tag_id";
  static const tagsOrderingUserOrder = "tag_user_order";
  static const tagsOrderingUsageCount = "tag_usage_count";
}
import 'package:flutter/material.dart';
import 'package:flutter_project/http/dao/person_dao.dart';
import 'package:flutter_project/navigator/f_navigatior.dart';
import 'package:flutter_project/utils/view_util.dart';

///个人中心Item组件
///包含icon和title
class SettingItem extends StatelessWidget {
  final String? iconPath;
  final String? title;
  final int? index;

  const SettingItem({Key? key, this.iconPath, this.title, this.index})
      : super(key: key);

  @override
  Widget build(BuildContext context) {
    return InkWell(
        onTap: () {
          switch (index) {
            case 0:
              //我的收藏
              FRouter.getInstance()!.onIntentTo(RouteStatus.collect);
              break;
            case 1:
              FRouter.getInstance()!.onIntentTo(RouteStatus.coinRank);
              break;
            case 2:
              //设置
              FRouter.getInstance()!.onIntentTo(RouteStatus.setting);
              break;
            case 3:
              //关于
              FRouter.getInstance()!.onIntentTo(RouteStatus.about);
              break;
          }
        },
        child: Container(
            margin: EdgeInsets.only(left: 20, right: 20),
            padding: EdgeInsets.only(top: 5, bottom: 5),
            height: 70,
            decoration: BoxDecoration(border: borderLine(context)),
            child: Column(
              mainAxisAlignment: MainAxisAlignment.center,
              children: [
                Row(
                  children: [
                    Image(
                      image: AssetImage(iconPath!),
                      height: 30,
                      width: 30,
                    ),
                    viewSpace(width: 30),
                    Text(title!, style: TextStyle(fontSize: 14)),
                  ],
                ),
              ],
            )));
  }
}
import 'package:cached_network_image/cached_network_image.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_project/model/project/project_model.dart';
import 'package:flutter_project/navigator/f_navigatior.dart';
import 'package:flutter_project/utils/cache_util.dart';
import 'package:flutter_project/utils/color.dart';

class CardView extends StatelessWidget {
  final ProjectInfo? projectInfo;

  const CardView({Key? key, this.projectInfo}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return InkWell(
      onTap: () {
        FRouter.getInstance()?.onIntentTo(RouteStatus.webview, args: {
          "article_path": projectInfo!.link!,
          "article_title": projectInfo!.title
        });
      },
      child: SizedBox(


/*
 * I needed a simple MJPEG Stream Decoder and I couldn't find one that worked for me.
 *
 * It reads a response stream and when there's a new frame it updates the render texture.
 * That's it. No authenication or options.
 * It's something stupid simple for readimg a video stream from an equally stupid simple Arduino.
 *
 * I fixed most of the large memory leaks, but there's at least one small one left.
 */

using System.IO;
using System.Threading;
using System.Collections;
using System.Collections.Generic;
using System.Net;
using UnityEngine;

public class MJPEGStreamDecoder : MonoBehaviour
{
    [SerializeField] bool tryOnStart = true;
    [SerializeField] string defaultStreamURL = "http://158.39.162.111:8080/video_feed/0";

    [SerializeField] RenderTexture renderTexture;

    float RETRY_DELAY = 5f;
    int MAX_RETRIES = 3;
    int retryCount = 0;

    byte[] nextFrame = null;

    Thread worker;
    int threadID = 0;

    static System.Random randu; // I use my own System.Random instead of the shared UnityEngine.Random to avoid collisions
    List<BufferedStream> trackedBuffers = new List<BufferedStream>();

    // Start is called before the first frame update
    void Start()
    {
        randu = new System.Random(Random.Range(0, 65536));
        if (tryOnStart)
            StartStream(defaultStreamURL);
    }

    private void Update()
    {
        if (nextFrame != null)
        {
            SendFrame(nextFrame);
            nextFrame = null;
        }
    }

    private void OnDestroy()
    {
        foreach (var b in trackedBuffers)
        {
            if (b != null)
                b.Close();
        }
    }

    public void StartStream(string url)
    {
        retryCount = 0;
        StopAllCoroutines();
        foreach (var b in trackedBuffers)
            b.Close();

        worker = new Thread(() => ReadMJPEGStreamWorker(threadID = randu.Next(65536), url));
        worker.Start();
    }

    void ReadMJPEGStreamWorker(int id, string url)
    {
        var webRequest = WebRequest.Create(url);
        webRequest.Method = "GET";
        List<byte> frameBuffer = new List<byte>();

        int lastByte = 0x00;
        bool addToBuffer = false;

        BufferedStream buffer = null;
        try
        {
            Stream stream = webRequest.GetResponse().GetResponseStream();
            buffer = new BufferedStream(stream);
            trackedBuffers.Add(buffer);
        }
        catch (System.Exception ex)
        {
            Debug.LogError(ex);
        }
        int newByte;
        while (buffer != null)
        {
            if (threadID != id) return; // We are no longer the active thread! stop doing things damnit!
            if (!buffer.CanRead)
            {
                Debug.LogError("Can't read buffer!");
                break;
            }

            newByte = -1;

            try
            {
                newByte = buffer.ReadByte();
            }
            catch
            {


et("sil_kvp", [])
    log.debug(f"[ISOLATION] SIL original do registro: {sil_list}")
    if isinstance(sil_list, list):
        sil = sil_list[0] if sil_list else None
    else:
        sil = sil_list
        sil_list = [sil] if sil is not None else []

    # TA (ACSD)
    ta_list = target_record.get("acsd_kv_rms", [])
    log.debug(f"[ISOLATION] TA original do registro: {ta_list}")
    if isinstance(ta_list, list):
        ta = ta_list[0] if ta_list else None
    else:
        ta = ta_list
        ta_list = [ta] if ta is not None else []

    # TI (ACLD)
    ti_list = target_record.get("acld_kv_rms", [])
    log.debug(f"[ISOLATION] TI original do registro: {ti_list}")
    if isinstance(ti_list, list):
        ti = ti_list[0] if ti_list else None
    else:
        ti = ti_list
        ti_list = [ti] if ti is not None else []

    # Calcular NBI do neutro (60% do NBI principal para conexões YN ou ZN)
    nbi_neutro = round(nbi * 0.60) if nbi is not None and conexao.upper().startswith(("YN", "ZN")) else None
    nbi_neutro_list = [round(n * 0.60) for n in nbi_list if n is not None] if conexao.upper().startswith(("YN", "ZN")) else []

    # Criar lista de opções para dropdown (compatibilidade com código existente)
    lista = [
        {
            "label": f"{nbi_val} kVp (SIL {sil_val or '-'})",
            "value": nbi_val,
        }
        for nbi_val, sil_val in zip(nbi_list, sil_list + [None] * (len(nbi_list) - len(sil_list)))
        if nbi_val is not None
    ]
    log.debug(f"[ISOLATION] Opções de dropdown criadas: {lista}")

    log.debug(f"[ISOLATION] Valores finais: NBI={nbi}, SIL/IM={sil}, TA={ta}, TI={ti}, NBI_NEUTRO={nbi_neutro}")
    log.debug(f"[ISOLATION] Listas de opções: NBI={nbi_list}, SIL/IM={sil_list}, TA={ta_list}, TI={ti_list}, NBI_NEUTRO={nbi_neutro_list}")

    result = {
        # Valores padrão (compatibilidade com código existente)
        "nbi": nbi,
        "sil_im": sil,
        "nbi_neutro": nbi_neutro,
        "tensao_aplicada": ta,
        "tensao_induzida": ti,
        # Listas de valores (para suportar múltiplas opções)
        "nbi_list": nbi_list,
        "sil_im_list": sil_list,
        "nbi_neutro_list": nbi_neutro_list,
        "tensao_aplicada_list": ta_list,
        "tensao_induzida_list": ti_list
    }
    log.debug(f"[ISOLATION] ============ FIM DA BUSCA (VALORES DA TABELA) ============")
    return result, lista


 = 1,
		award_choice = "",
		priority_type = 0,
		auto_commit = 0,
		next_task = "14066",
		visibility = 1,
		story_id = "",
		target_id_for_client = 0,
		id = 14065,
		target_num = 1,
		fix_task = 0,
		target_id = {
			1180004,
			1180014
		},
		open_need = {},
		award_display = {
			{
				1,
				2,
				500
			}
		}
	},
	[14066] = {
		is_head = 0,
		guild_coin_award = 0,
		award = 90386,
		type = 6,
		name = "『天城活动』B2/D2的3星",
		count_inherit = 0,
		desc = "B2かD2の作戦目標（星3つ）を全て達成！",
		target_id_2 = "",
		sub_type = 1021,
		added_tip = 0,
		story_icon = "",
		scene = "",
		quick_finish = 0,
		level = 1,
		award_choice = "",
		priority_type = 0,
		auto_commit = 0,
		next_task = "14067",
		visibility = 1,
		story_id = "",
		target_id_for_client = 0,
		id = 14066,
		target_num = 1,
		fix_task = 0,
		target_id = {
			1180005,
			1180015
		},
		open_need = {},
		award_display = {
			{
				4,
				100011,
				1
			}
		}
	},
	[14067] = {
		is_head = 0,
		guild_coin_award = 0,
		award = 90387,
		type = 6,
		name = "『天城活动』B3/D3的3星",
		count_inherit = 0,
		desc = "B3かD3の作戦目標（星3つ）を全て達成！",
		target_id_2 = "",
		sub_type = 1021,
		added_tip = 0,
		story_icon = "",
		scene = "",
		quick_finish = 0,
		level = 1,
		award_choice = "",
		priority_type = 0,
		auto_commit = 0,
		next_task = "0",
		visibility = 1,
		story_id = "",
		target_id_for_client = 0,
		id = 14067,
		target_num = 1,
		fix_task = 0,
		target_id = {
			1180006,
			1180016
		},
		open_need = {},
		award_display = {
			{
				2,
				18033,
				1
			}
		}
	},
	[14068] = {
		is_head = 1,
		guild_coin_award = 0,
		award = 90388,
		type = 36,
		name = "『天城活动』日常建造",
		count_inherit = 0,
		desc = "艦を3隻「建造」する",
		target_id_2 = "",
		sub_type = 30,
		added_tip = 0,
		story_icon = "",
		scene = "",
		quick_finish = 0,
		level = 1,
		award_choice = "",
		priority_type = 0,
		auto_commit = 0,
		next_task = "0",
		visibility = 1,
		story_id = "",
		target_id_for_client = 0,
		id = 14068,
		target_num = 3,
		fix_task = 0,
		target_id = "0",
		open_need = {},
		award_display = {
			{
				2


# Copyright (c) Megvii Inc. All rights reserved.
import torch
from torch.autograd import Function

from . import voxel_pooling_inference_ext

class VoxelPoolingInference(Function):

    @staticmethod
    def forward(ctx, geom_xyz: torch.Tensor, depth_features: torch.Tensor,
                context_features: torch.Tensor,
                voxel_num: torch.Tensor) -> torch.Tensor:
        """Forward function for `voxel pooling.

        Args:
            geom_xyz (Tensor): xyz coord for each voxel with the shape
                of [B, N, 3].
            input_features (Tensor): feature for each voxel with the
                shape of [B, N, C].
            voxel_num (Tensor): Number of voxels for each dim with the
                shape of [3].

        Returns:
            Tensor: (B, C, H, W) bev feature map.
        """
        assert geom_xyz.is_contiguous()
        assert depth_features.is_contiguous()
        assert context_features.is_contiguous()
        # no gradient for input_features and geom_feats
        ctx.mark_non_differentiable(geom_xyz)
        batch_size = geom_xyz.shape[0]
        num_cams = geom_xyz.shape[1]
        num_depth = geom_xyz.shape[2]
        num_height = geom_xyz.shape[3]
        num_width = geom_xyz.shape[4]
        num_channels = context_features.shape[1]
        output_features = depth_features.new_zeros(
            (batch_size, voxel_num[1], voxel_num[0], num_channels))
        voxel_pooling_inference_ext.voxel_pooling_inference_forward_wrapper(
            batch_size,
            num_cams,
            num_depth,
            num_height,
            num_width,
            num_channels,
            voxel_num[0],
            voxel_num[1],
            voxel_num[2],
            geom_xyz,
            depth_features,
            context_features,
            output_features,
        )
        return output_features.permute(0, 3, 1, 2)

voxel_pooling_inference = VoxelPoolingInference.apply


_
	//	*Args_Leaf_Add_Leaf_Joined_
	Style         isArgs_Leaf_Add_Leaf_Style `protobuf_oneof:"style"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *Args_Leaf_Add_Leaf) Reset() {
	*x = Args_Leaf_Add_Leaf{}
	mi := &file_bonanza_build_pkg_proto_model_analysis_analysis_proto_msgTypes[128]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *Args_Leaf_Add_Leaf) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*Args_Leaf_Add_Leaf) ProtoMessage() {}

func (x *Args_Leaf_Add_Leaf) ProtoReflect() protoreflect.Message {
	mi := &file_bonanza_build_pkg_proto_model_analysis_analysis_proto_msgTypes[128]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use Args_Leaf_Add_Leaf.ProtoReflect.Descriptor instead.
func (*Args_Leaf_Add_Leaf) Descriptor() ([]byte, []int) {
	return file_bonanza_build_pkg_proto_model_analysis_analysis_proto_rawDescGZIP(), []int{16, 1, 0, 1}
}

func (x *Args_Leaf_Add_Leaf) GetStartWith() *wrapperspb.StringValue {
	if x != nil {
		return x.StartWith
	}
	return nil
}

func (x *Args_Leaf_Add_Leaf) GetValues() *starlark.Value {
	if x != nil {
		return x.Values
	}
	return nil
}

func (x *Args_Leaf_Add_Leaf) GetExpandDirectories() bool {
	if x != nil {
		return x.ExpandDirectories
	}
	return false
}

func (x *Args_Leaf_Add_Leaf) GetMapEach() *starlark.Function {
	if x != nil {
		return x.MapEach
	}
	return nil
}

func (x *Args_Leaf_Add_Leaf) GetFormatEach() string {
	if x != nil {
		return x.FormatEach
	}
	return ""
}

func (x *Args_Leaf_Add_Leaf) GetOmitIfEmpty() bool {
	if x != nil {
		return x.OmitIfEmpty
	}
	return false
}

func (x *Args_Leaf_Add_Leaf) GetUniquify() bool {
	if x != nil {
		return x.Uniquify
	}
	return false
}

func (x *Args_Leaf_Add_Leaf) GetStyle() isArgs_Leaf_Add_Leaf_Style {
	if x != nil {
		return x.Style
	}
	return nil
}

func (x *Args_Leaf_Add_Leaf) GetSeparate() *Args_Leaf_Add_Leaf_Separate {
	if x != nil {
		if x, ok := x.Style.(*Args_Leaf_Add_Leaf_Separate_); ok {
			return x.Separate
		}
	}
	return nil
}

func (x *Args_Leaf_Add_Leaf) GetJoined() *Args_Leaf_Add_Leaf_Joined {
	if x != nil {
		if x, ok := x.Style.(*Args_Leaf_Add_Leaf_Joined_); ok {
			return x.Joined
		}
	}
	return nil
}

type isArgs_Leaf_Add_Leaf_Style interface {
	isArgs_Leaf_Add_Leaf_Style()
}

type Args_Leaf_Add_Leaf_Separate_ struct {
	S


#include <stdio.h>
#include "../wasmer.h"
#include <assert.h>
#include <stdint.h>
#include <string.h>

static const char *trap_error_message = "Hello";

void print_str(wasmer_instance_context_t *ctx, int32_t _ptr, int32_t _len)
{
    wasmer_trap(ctx, trap_error_message);
}

int main()
{
    wasmer_value_tag params_sig[] = {WASM_I32, WASM_I32};
    wasmer_value_tag returns_sig[] = {};

    printf("Creating new func\n");
    wasmer_import_func_t *func = wasmer_import_func_new((void (*)(void *)) print_str, params_sig, 2, returns_sig, 0);

    char *module_name = "env";
    wasmer_byte_array module_name_bytes = {
        .bytes = (const uint8_t *) module_name,
        .bytes_len = strlen(module_name),
    };

    char *import_name = "print_str";
    wasmer_byte_array import_name_bytes = {
        .bytes = (const uint8_t *) import_name,
        .bytes_len = strlen(import_name),
    };

    wasmer_import_t import = {
        .module_name = module_name_bytes,
        .import_name = import_name_bytes,
        .tag = WASM_FUNCTION,
        .value.func = func,
    };

    wasmer_import_t imports[] = {import};

    // Read the wasm file bytes
    FILE *file = fopen("assets/wasm_sample_app.wasm", "r");
    fseek(file, 0, SEEK_END);
    long len = ftell(file);
    uint8_t *bytes = malloc(len);
    fseek(file, 0, SEEK_SET);
    fread(bytes, 1, len, file);
    fclose(file);

    printf("Instantiating\n");
    wasmer_instance_t *instance = NULL;
    wasmer_result_t compile_result = wasmer_instantiate(&instance, bytes, len, imports, 1);
    printf("Compile result:  %d\n", compile_result);

    assert(compile_result == WASMER_OK);

    wasmer_value_t params[] = {};
    wasmer_value_t results[] = {};
    wasmer_result_t call_result = wasmer_instance_call(instance, "hello_wasm", params, 0, results, 0);
    printf("Call result:  %d\n", call_result);

    assert(call_result == WASMER_ERROR);

    int error_len = wasmer_last_error_length();
    printf("Error len: `%d`\n", error_len);
    char *error_str = malloc(error_len);
    wasmer_last_error_message(error_str, error_len);
    printf("Error str: `%s`\n", error_str);

    assert(0 == strcmp(error_str, "Call error: \"Hello\""));

    printf("Destroying func\n");
    wasmer_import_func_destroy(func);
    printf("Destroy instance\n");
    wasmer_instance_destroy(instance);

    return 0;
}


;">      0	        0	    0

80	Escola Superior de Agricultura &quot;Luiz de Queiroz&quot;	Vinicius Grillo                     	     0	   0	     0	         0	      1	        0	    0

81	Escola Superior de Agricultura &quot;Luiz de Queiroz&quot;	Vitor Mateus Pierobon               	     0	   0	     0	         0	      1	        0	    0

82	Escola Superior de Agricultura &quot;Luiz de Queiroz&quot;	Vitoria Carolini da Silva           	     0	   0	     0	         0	      1	        0	    0

83	Universidade de São Paulo                                 	Felipe José de Góes                 	     0	   0	     0	         0	      1	        0	    0

84	Universidade de São Paulo                                 	João Paulo Souto Veiga              	     1	   0	     0	         0	      0	        0	    0

 0	Total                                                     	-                                   	     8	  11	    12	         1	     50	        2	   14

MEST: dissertação; POS-DOC: pós doutoramento; TCC: trabalho conclusão de curso; IC: inciação científica; DOUT: tese;


// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// 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.

/**
 * @file RTPS_messages.h
 */

#ifndef RTPS_MESSAGES_H_
#define RTPS_MESSAGES_H_
#ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC
#include "../common/Types.h"
#include "../common/Guid.h"

#include <iostream>
 #include <bitset>
namespace eprosima{
namespace fastrtps{
namespace rtps{

// //!@brief Enumeration of the different Submessages types
#define PAD 0x01
#define ACKNACK 0x06
#define HEARTBEAT 0x07
#define GAP 0x08
#define INFO_TS 0x09
#define INFO_SRC 0x0c
#define INFO_REPLY_IP4 0x0d
#define INFO_DST 0x0e
#define INFO_REPLY 0x0f
#define NACK_FRAG 0x12
#define HEARTBEAT_FRAG 0x13
#define DATA 0x15
#define DATA_FRAG 0x16
#define SEC_PREFIX 0x31
#define SRTPS_PREFIX 0x33

//!@brief Structure Header_t, RTPS Message Header Structure.
//!@ingroup COMMON_MODULE
 struct Header_t{
     //!Protocol version
     ProtocolVersion_t version;
     //!Vendor ID
     VendorId_t vendorId;
     //!GUID prefix
     GuidPrefix_t guidPrefix;
     Header_t():
         version(c_ProtocolVersion)
     {
         set_VendorId_eProsima(vendorId);
     }
     ~Header_t(){
     }
 };

 /**
  * @param output
  * @param h
  * @return
  */
 inline std::ostream& operator<<(std::ostream& output,const Header_t& h){
     output << "RTPS HEADER of Version: " << (int)h.version.m_major << "." << (int)h.version.m_minor;
     output << "  || VendorId: " <<std::hex<< (int)h.vendorId[0] << "." <<(int)h.vendorId[1] << std::dec;
     output << "GuidPrefix: " << h.guidPrefix;
     return output;
 }

 //!@brief Structure SubmessageHeader_t, used to contain the header information of a submessage.
 struct SubmessageHeader_t{
     octet submessageId;
     uint16_t submessageLength;
     uint32_t submsgLengthLarger;
     SubmessageFlag flags;

     SubmessageHeader_t():
         submessageId(0),
         submessageLength(0),
         submsgLengthLarger(0),
         flags(0)
     {}
 };

 using std::cout;
 using std::endl;
 using std::bitset;

 /**
  * @param output
  * @param sh
  * @return
  */
 inline std::ostream& operator<<(std::ostream& output,const SubmessageHeader_t& sh){
     output << "Submessage Header, ID: " <<std::hex<< (int)sh.submessageId << std::dec;
     output << " length: " << (int)sh.submessageLength << " flags " << (bitset<8>) sh.flags;
     return output;
 }
}
}
}

#endif
#endif /* RTPS_MESSAGES_H_ */


]:after {
    content: " (" attr(title) ")";
  }

  /* line 493, ../node_modules/foundation-sites/scss/foundation/components/_type.scss */
  .ir a:after,
  a[href^="javascript:"]:after,
  a[href^="#"]:after {
    content: "";
  }

  /* line 497, ../node_modules/foundation-sites/scss/foundation/components/_type.scss */
  pre,
  blockquote {
    border: 1px solid #efefef;
    page-break-inside: avoid;
  }

  /* line 503, ../node_modules/foundation-sites/scss/foundation/components/_type.scss */
  thead {
    display: table-header-group;
    /* h5bp.com/t */
  }

  /* line 505, ../node_modules/foundation-sites/scss/foundation/components/_type.scss */
  tr,
  img {
    page-break-inside: avoid;
  }

  /* line 508, ../node_modules/foundation-sites/scss/foundation/components/_type.scss */
  img {
    max-width: 100% !important;
  }

  @page {
    margin: 0.34in;
  }
  /* line 512, ../node_modules/foundation-sites/scss/foundation/components/_type.scss */
  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  /* line 519, ../node_modules/foundation-sites/scss/foundation/components/_type.scss */
  h2,
  h3 {
    page-break-after: avoid;
  }
}
/* line 412, ../node_modules/foundation-sites/scss/foundation/components/_offcanvas.scss */
.off-canvas-wrap {
  -webkit-backface-visibility: hidden;
  position: relative;
  width: 100%;
  overflow: hidden;
}
/* line 149, ../node_modules/foundation-sites/scss/foundation/components/_offcanvas.scss */
.off-canvas-wrap.move-right, .off-canvas-wrap.move-left, .off-canvas-wrap.move-bottom, .off-canvas-wrap.move-top {
  min-height: 100%;
  -webkit-overflow-scrolling: touch;
}

/* line 413, ../node_modules/foundation-sites/scss/foundation/components/_offcanvas.scss */
.inner-wrap {
  position: relative;
  width: 100%;
  -webkit-transition: -webkit-transform 500ms ease;
  -moz-transition: -moz-transform 500ms ease;
  -ms-transition: -ms-transform 500ms ease;
  -o-transition: -o-transform 500ms ease;
  transition: transform 500ms ease;
}
/* line 239, ../node_modules/foundation-sites/scss/foundation/components/_global.scss */
.inner-wrap:before, .inner-wrap:after {
  content: " ";
  display: table;
}
/* line 240, ../node_modules/foundation-sites/scss/foundation/components/_global.scss */
.inner-wrap:after {
  clear: both;
}

/* line 415, ../node_modules/foundation-sites/scss/foundation/components/_offcanvas.scss */
.tab-bar {
  -webkit-backface-visibility: hidden;
  background: #333333;
  color: white;
  height: 2.8125rem;
  line-height: 2.8125rem;
  position: relative;
}
/* line 185, ../node_modules/foundation-sites/scss/foundation/components/_offcanvas.scss */
.tab-bar h1, .tab-bar


sOnSaleValues

    constructor(restService: RestService, router1: Router)              // DI
    {
        this.restService = restService;                 // Zuweisung RestService
        this.router = router1;                          // Zuweisung Router

    }

    ngOnInit(): void                            // OnInit Angular 2 lifecycle hook
    {
        this.getInformations();

    }

    /**
     * setze Url auf /deteil mit id= product.id.
     */
    redirectToDetail(): void
    {
        this.router.navigate(["/detail", this.product.id]);
    }

    /**
     * führe die einthaltenen Funktion aus, um die benötigten Information zu beschaffen.
     */
    getInformations(): void
    {
        this.getArtikelListenpreis();
        this.getArtikelurztext();
        this.getArtikelbild();
        this.getArtikelBeschreiung();

    }

    /**
     * hole den Preis vom RestService
     */
    getArtikelListenpreis(): void
    {
        var me = this;

        this.restService.getShowcaseArtikelPreisValueByProductId(me.product.id)
            .then((values: Values[]) => me.showcase_artikelListenpreisValues = values)

    }

    /**
     * hole die Beschreibung vom RestService
     */
    getArtikelBeschreiung()
    {
        var me = this;

        this.restService.getShowcaseArtikelbeschreibungsValueByProductId(me.product.id)
            .then((values: Values[]) => me.showcase_artikelBeschreibungValues = values)

    }

    /**
     * hole die Artikelbilden vom RestService
     */
    getArtikelbild()
    {
        var me = this;

        this.restService.getShowcaseArtikelbildValueByProductId(me.product.id)
            .then((values: Values[]) => me.showcase_artikelBildValues = values)

    }

    /**
     * hole den Namen des Produktes vom RestService
     */
    getArtikelurztext()
    {
        var me = this;

        this.restService.getShowcaseArtikelkurztextValueByProductId(me.product.id)
            .then((values: Values[]) => me.showcase_artikelKurztextValues = values)

    }

    /*   TODO  */
    getArtikelrating()
    {
        var me = this;

        this.restService.getShowcaseArtikelkurztextValueByProductId(me.product.id)
            .then((values: Values[]) => me.showcase_artikelRatingValues = values)

    }

    /*   TODO  */
    getArtikelAktionspreis()
    {
        var me = this;

        this.restService.getShowcaseArtikelPreisValueByProductId(me.product.id)
            .then((values: Values[]) => me.showcase_artikelAktionsPreisValues = values)

    }

}import {
  TreeViewAction,
  TreeActionType,
  TreeViewState,
  defaultState,
} from "components/TreeView/Redux/TreeViewReduxTypes";
import { StoreAction, StoreActionTypes } from "rootActions";

export const treeViewReducer = (
  state: TreeViewState = defaultState,
  action: StoreAction | TreeViewAction
): TreeViewState => {
  switch (action.type) {
    case TreeActionType.CLOSE_TREE:
      return { ...state, open: false };
    case TreeActionType.OPEN_TREE:
      return { ...state, open: true };
    case TreeActionType.RESET_TREE:
      return defaultState;
    case TreeActionType.SET_DOMAIN_LANGUAGE:
      if (!action.language) {
        throw new Error("Cannot set domain language to undefined.");
      }


宽度不少于三十米。

本条第一款第一项至四项规定属于旧城改造的，绿地率可以

降低五个百分点。

立体绿化可以按照规定折算绿地面积。

第十六条 编制城市绿地系统规划应当确定公园绿地、防护绿地等的绿线，报同级人民政府批准后向社会公布，接受公众监

督。

城市绿线确定后，不得擅自调整。确需调整的，应当在不减

少规划绿地总量的前提下，按照法定程序进行修改。

第十七条 市、县（市、区）人民政府应当注重对沿山绿地、沿河湿地、南水北调生态廊道、采煤塌陷地绿带等生态功能区的

保护与修复，构建城市绿色生态屏障。

第十八条 市、县（市、区）人民政府应当依托城市道路、水系、公园绿地、防护绿地等，建设连接公园、游园、历史古迹等的绿色廊道，为公众提供便捷舒适的慢行、健身、休闲空间。

第十九条 城市绿地的建设责任，按照下列规定确定：

（一）政府投资建设的公园绿地、防护绿地、道路绿地等，

由城市绿化行政主管部门或者有关单位负责；

（二）生产绿地、经营性的专类公园等，由城市绿化行政主

管部门或者经营单位负责；

（三）居住区绿地由开发建设单位负责；

（四）单位附属绿地由本单位负责；

（五）铁路、河道等用地范围内的绿地，由相关主管部门或

者有关单位负责。

建设责任主体不明确的，由市、县（市、区）人民政府根据

实际情况确定。

第二十条 公园绿地的建设，应当体现地域、历史、文化特

色，提升城市文化品位，打造精品公园。

第二十一条 行道树栽植应当选择适宜的树种，符合道路照

明、行车视线、行车净空和行人通行等要求。

高速公路、城市高架、城市桥梁等的出入口周边，应当按照道路绿化规划与设计规范实施绿化。

室外公共停车场、停车位具备绿化条


  , new XAttribute(XSessionMSBuildNames.AOutputType, outputType)
                , new XAttribute(XSessionMSBuildNames.AAssemblyName, assyName)
                // Parse the available configurations
                , from xpropGrp in xproj.Elements(XMSBuild03Names.PropertyGroup)
                  let grpCond = (string)xpropGrp.Attribute(XMSBuild03Names.ACondition)
                  where !String.IsNullOrWhiteSpace(grpCond)
                  where MSBuildProjectConfiguration.PropGrpConditionRegex.IsMatch(grpCond)
                  select MSBuildProjectConfiguration.ParseXProjectConfigurationFromMSBuild(xpropGrp)
                );

            return xsessionProj;
        }

        #endregion

        private MSBuildProjectConfiguration[] _configurations;

        public MSBuildProject(XElement xel)
            : base(xel)
        {
            // Since each instance is mutable, we create the objects for the configurations right now.
            _configurations = DataElement
                .Elements(XSessionMSBuildNames.ProjectConfiguration)
                .Select(x => new MSBuildProjectConfiguration(x))
                .ToArray();
        }

        /// <summary>Gets the full path to the project file.</summary>
        public string ProjectFilePath { get { return DataElement.Attribute(XSessionMSBuildNames.AProjectFilePath).Value; } }
        public string ProjectFolderPath { get { return Path.GetDirectoryName(ProjectFilePath); } }

        public string DefaultConfiguration { get { return DataElement.Attribute(XSessionMSBuildNames.ADefaultConfiguration).Value; } }
        public string DefaultPlatform { get { return DataElement.Attribute(XSessionMSBuildNames.ADefaultPlatform).Value; } }
        public string DefaultConfigurationKey { get { return MSBuildProjectConfiguration.CreateConfigurationKey(DefaultConfiguration, DefaultPlatform); } }

        public MSBuildProjectOutputType OutputType { get { return DataElement.Attribute(XSessionMSBuildNames.AOutputType).ParseXmlEnum<MSBuildProjectOutputType>().Value; } }
        public string AssemblyName { get { return DataElement.Attribute(XSessionMSBuildNames.AAssemblyName).Value; } }
        public string OutputFilename { get { return AssemblyName + GetOutputFileExtension(); } }

        private string GetOutputFileExtension()
        {
            switch (OutputType)
            {
                case MSBuildProjectOutputType.Library: return ".dll";
                case MSBuildProjectOutputType.Exe: return ".exe";

                case MSBuildProjectOutputType.Module: //return ".dll";
                case MSBuildProjectOutputType.Winexe: //return ".exe";
                default: throw new NotImplementedException("Unhandled output type: " + OutputType);
            }
        }

        public IEnumerable<MSBuildProjectConfiguration> Configurations { get { return _configurations; } }

    }
}


ymbols: Vec<SymbolRc>,
    include_guard: Option<IncludeGuard>,
    includes: Vec<(RcStr, Loc)>,
    scope: LocalScope,
    module_map: ModuleMap,
    deffunc_map: DefFuncMap,
    module_len: usize,
    deffunc_len: usize,
}

impl Ctx {
    fn privacy_scope_or_local(&self, privacy_opt: &Option<(PPrivacy, PToken)>) -> ImportMode {
        match privacy_opt {
            Some((PPrivacy::Global, _)) => ImportMode::Global,
            _ => ImportMode::Local,
        }
    }

    fn privacy_scope_or_global(&self, privacy_opt: &Option<(PPrivacy, PToken)>) -> ImportMode {
        match privacy_opt {
            Some((PPrivacy::Local, _)) => ImportMode::Local,
            _ => ImportMode::Global,
        }
    }

    fn add_symbol(
        &mut self,
        kind: HspSymbolKind,
        leader: &PToken,
        name: &PToken,
        def: ImportMode,
    ) -> SymbolRc {
        add_symbol(
            kind,
            leader,
            name,
            def,
            &self.scope,
            &self.module_map,
            &mut self.symbols,
        )
    }
}

fn add_symbol(
    kind: HspSymbolKind,
    // 構文ノードの先頭のトークン
    leader: &PToken,
    name: &PToken,
    def: ImportMode,
    local: &LocalScope,
    module_map: &ModuleMap,
    symbols: &mut Vec<SymbolRc>,
) -> SymbolRc {
    let NameScopeNsTriple {
        basename,
        scope_opt,
        ns_opt,
    } = resolve_name_scope_ns_for_def(&name.body.text, def, local, module_map);

    let symbol = DefInfo::Preproc {
        kind,
        basename,
        leader: leader.clone(),
        scope_opt,
        ns_opt,
        loc: name.body.loc,
    }
    .into_symbol();
    symbols.push(symbol.clone());
    symbol
}

fn on_block(block: &PBlock, ctx: &mut Ctx) {
    for stmt in &block.outer_stmts {
        on_stmt(stmt, ctx);
    }
    for stmt in &block.inner_stmts {
        on_stmt(stmt, ctx);
    }
}

fn on_stmt(stmt: &PStmt, ctx: &mut Ctx) {
    match stmt {
        PStmt::Label(PLabel { star, name_opt }) => {
            if let Some(name) = name_opt {
                ctx.add_symbol(HspSymbolKind::Label, star, name, ImportMode::Local);
            }
        }
        PStmt::Assign(_) | PStmt::Command(_) | PStmt::Invoke(_) => {}
        PStmt::If(stmt) => {
            on_block(&stmt.body, ctx);
            on_block(&stmt.alt, ctx);
        }
        PStmt::Const(PConstStmt {
            hash,
            privacy_opt,
            name_opt,
            ..
        }) => {
            if let Some(name) = name_opt {
                let scope = ctx.privacy_scope_or_local(privacy_opt);
                ctx.add_symbol(HspSymbolKind::Const, hash, name, scope);
            }
        }
        PStmt::Define(PDefineStmt {
            hash,
            privacy_opt,
            ctype_opt,
            name_opt,
            ..
        }) => {
            if ctx.include_guard.as_ref().map_or(false, |g| {
                g.loc.is_touched(hash.body.loc.doc, hash.body_pos16())
            }) {
                return;
            }

            if let Some(name) = name_opt {
                let scope = ctx.privacy_scope_or_local(privacy_opt);
                let ctype = ctype_opt.is_some();
                ctx.add_symbol(HspSymbolKind::Macro { ctype }, hash, name, scope);
            }
        }
        PStm


各界民主人士参加镇反工作，真正与闻其事，各地做得太少；很多地方畏首畏尾，不敢大张旗鼓杀反革命，这种情况必须立即改变。北京、天津两市最近两星期来大有进步，对镇反大张旗鼓，广泛宣传，普遍揭露，利用几十人、百馀人、几百人、几千人，乃至万馀人的会议；利用报纸和广播电台，利用展览会大肆宣传，使家喻户晓，使全体人民及各界民主人均参加镇反工作，粉碎了神秘主义、小手小脚、畏首畏尾的作用，收效非常之大。

   1951年3月30日

   中南局现亦发了指示扩大镇反宣传，可为各地参考。

   全区镇压反革命很有成绩，但由於宣传不够，就使斗争的政治效果减低，未能充分的争取群众、孤立敌人，现时必须强调：

   （一）应於最近召集各有关部门对宣传做一正式布置，与其他各种工作一起做通盘考虑，使其各种与各种工作（包括各种宣传工作）自然的结全起来，成为推动一切工作的真正动力，并根据“有计划、有重点地进行宣传工作”的方针，作出具体规定。宣传部协同社会部，统战部负责管理，并定期如今由各有关部门（如报社、广播台、工、青、妇委等）参加联席会议交换情况，充分调动与确定统一的工作步骤及宣传内容。

   （二）镇压反革命的宣传内容应包括：

   （1）阐明镇压反革命的必要性与正义性，有系统的揭露、蒋将务的阴谋破坏活动，美、蒋特务的阴谋破坏活动，美、蒋狼狈为奸破坏中国人民革命事业、残害中国人民生命财产的血腥罪恶，以提高人民群众对美、蒋特务、匪徒尤其对美帝国主义的仇恨心理。

   （2）揭露美、蒋特务造谣、挑拨、暗杀、放火等破坏阴谋，最好能组织一些被害者著文控诉匪特罪恶，以提高人民群众的政治警惕。

   （3）宣传镇压反革命的正确政策，划清界限，全面的阐明“镇压与宽大相结合”的方针，以稳定某些上层份子的清绪，分化敌人。

   （4）宣传我人民有强大力量足以镇压任何反革命活动。

   （三）中央关于举行展览会或巡回展览会的指示，各省委必须坚决执行，各中、小城市均可举行。选举其中富有教育意义者，组成一小型巡回展览会到小城镇及�


content: space-between;
  flex-direction: row;
  column-gap: 4px;
  margin-top: 12px;
}

.actionButtons svg {
  fill: rgb(83, 100, 113);
}

.commentButton,
.repostButton,
.heartButton {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.commentButton button,
.repostButton button,
.heartButton button {
  background: #ffffff;
  border: none;
  outline: none;
  display: flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 19px;
  cursor: pointer;
  transition-property: background-color;
  transition-duration: 0.2s;
  margin-right: 4px;
}
.actionButtons .count {
  font-size: 13px;
  color: rgb(83, 100, 113);
}

.commentButton button {
  background-color: rgba(29, 155, 240, 0.01);
}

.commentButton:hover button {
  background-color: rgba(29, 155, 240, 0.1);
}

.commentButton.commented svg,
.commentButton:hover svg {
  fill: rgb(29, 155, 240);
}

.commentButton.commented .count,
.commentButton:hover .count {
  color: rgb(29, 155, 240);
}

.repostButton button {
  background-color: rgba(0, 186, 124, 0.01);
}

.repostButton:hover button {
  background-color: rgba(0, 186, 124, 0.1);
}

.repostButton.reposted svg,
.repostButton:hover svg {
  fill: rgb(11, 175, 123);
}

.repostButton.reposted .count,
.repostButton:hover .count {
  color: rgb(11, 175, 123);
}

.heartButton button {
  background-color: rgba(249, 24, 128, 0.01);
}

.heartButton:hover button {
  background-color: rgba(249, 24, 128, 0.1);
}

.heartButton.liked svg,
.heartButton:hover svg {
  fill: rgb(228, 34, 126);
}

.heartButton.liked .count,
.heartButton:hover .count {
  color: rgb(228, 34, 126);
}
.o_event_full_page_ticket_footer {
    .o_event_full_page_ticket_powered_by {
        @include font-size(.8rem);
        line-height: 1rem;
    }
}

/* COMMON FOR FULL PAGE TICKET AND RESPONSIVE HTML VERSION */

.o_event_full_page_ticket_container {
    padding-top: 40px;

    .o_event_full_page_ticket_font_faded {
        color: #939393;
    }

    .o_event_full_page_ticket_details {
        background-color: white;
        border: solid 1px #939393;
        margin: 0px 8px;
        padding: 10px 3px;
        box-shadow: -3px 3px 9px 0px rgba(0,0,0,0.51);
    }

    .o_event_full_page_ticket_barcode {
        min-height: 300px;
    }
}

/* FULL PAGE TICKET - PDF REPORT */

.o_event_full_page_ticket {

    .o_event_full_page_left_details {
        width: 82%;
    }
    .o_event_full_page_ticket_barcode {
        width: 18%;
    }

    .o_event_full_page_extra_instructions {
        p {
            margin: 0px;  // to match editor style (.o_field_html p)
        }
    }
}

.o_event_full_page_ticket_container .o_event_full_page_ticket_barcode {
    border-left: dotted 2px #939393;
    .o_event_barcode {


QCSysCfg::ERmFuncs::Movies;
            pwndTar = m_pwndMovie;
        }
         else
        {
            eFunc = tCQCSysCfg::ERmFuncs::Music;
            pwndTar = m_pwndMusic;
        }

        // Build up a list of configured media objects
        tCIDLib::TKVPList colList;
        const tCIDLib::TCard4 c4Count = scfgEdit().c4QueryCfgList
        (
            tCQCSysCfg::ECfgLists::Media, colList
        );

        if (c4Count)
        {
            TKeyValuePair kvalSel;
            const tCIDLib::TBoolean bRes = facCIDWUtils().bKVPListSelect
            (
                *this, L"Select a Media Configuration", colList, kvalSel, kCIDLib::False
            );

            if (bRes)
            {
                pwndTar->strWndText(kvalSel.strKey());
                scriRoom().SetFuncId(eFunc, kvalSel.strValue());
            }
        }
         else
        {
            TOkBox msgbErr(L"No media devices have been configured");
            msgbErr.ShowIt(*this);
        }
    }
    return tCIDCtrls::EEvResponses::Handled;
}

// ---------------------------------------------------------------------------
//   CLASS: TCQCESCTRmModes
//  PREFIX: esct
// ---------------------------------------------------------------------------

// ---------------------------------------------------------------------------
//  TCQCESCTRmModes: Constructor and Destructor
// ---------------------------------------------------------------------------
TCQCESCTRmModes::TCQCESCTRmModes(TCQCSysCfg* const pscfgEdit, TCQCFldCache* const pcfcDevs) :

    TCQCESCTabBase(pscfgEdit, pcfcDevs, L"Modes")
    , m_pwndAddMode(nullptr)
    , m_pwndModeList(nullptr)
    , m_pwndDelMode(nullptr)
    , m_pwndDelParm(nullptr)
    , m_pwndDownParm(nullptr)
    , m_pwndParmList(nullptr)
    , m_pwndPath(nullptr)
    , m_pwndSelPath(nullptr)
    , m_pwndUpParm(nullptr)
{
}

TCQCESCTRmModes::~TCQCESCTRmModes()
{
}

// ---------------------------------------------------------------------------
//  TCQCESCTRmModes: Public, inherited methods
// ---------------------------------------------------------------------------

//
//  If the parameters, then we only allow column 1, 0 is the order number. For the
//  mode list, there is only a column 0
//
tCIDLib::TBoolean
TCQCESCTRmModes::bIPETestCanEdit( const   tCIDCtrls::TWndId widSrc
                                , const tCIDLib::TCard4     c4ColInd
                                ,       TAttrData&          adatEdit
                                ,       tCIDLib::TBoolean&)
{
    // There has to be a selected room mode entry either way
    if (m_pwndModeList->c4CurItem() == kCIDLib::c4MaxCard)
        return kCIDLib::False;

    if (widSrc == kCQCAdmin::ridTab_SysCfgRmMode_ParmList)
        return (c4ColInd == 1);

    return (c4ColInd == 0);
}

//
//  If's the mode list, make sure that it's not a dup of an existing one. We can find.
//  the index of the original, since the per-row user data is the unique id.
//
tCIDLib::TBoolean
TCQCESCTRmModes::bIPEValidate(  const   TString&            strSrc
                                ,


SASS ELements (based on LESS Elements 0.9 http://lesselements.com)
  -------------------------------- -------------------
    LESS ELEMENTS made by Dmitry Fadeyev (http://fadeyev.net)
    SASS port by Samuel Beek (http://samuelbeek.com)
  ---------------------------------------------------*/
/*------------------------
    Usage

  $color-white: hexToRGBString(#fff) => "255,255,255"
  $color-white: hexToRGBString(rgb(255,255,255)) => "255,255,255"
  $color-white: hexToRGBString(rgba(#fff,1)) => "255,255,255"

------------------------*/
/*------------------------
    Usage

    h1 {
      font-size: rem(32);
    }

    OR:

    h1 {
      font-size: rem(32px);
    }
------------------------*/
/*------------------------
  FADE IN
  e.g. @include fadeIn( 2s );
------------------------*/
/*------------------------
mixin that calculates if text needs to be light or dark
depending on the background color passed.

From this W3C document: http://www.webmasterworld.com/r.cgi?f=88&d=9769&url=http://www.w3.org/TR/AERT#color-contrast

usage:
@include text-contrast($bgcolor)

Color brightness is determined by the following formula:
((Red value X 299) + (Green value X 587) + (Blue value X 114)) / 1000
------------------------*/
/*------------------------
 color factory
  eg: contrast-ink($contrastvalue)
------------------------*/
/*------------------------
 color factory
  eg: @include paint($blue-grey-50, bg-blue-grey-50);
------------------------*/
/* backface visibility */
/* generate theme button */
/* #BASE - Base Variable file along with font library, and colors.
========================================================================== */
/*  THEME COLORs
========================================================================== */
/* Looks good on chrome default color profile */
/* We will manually convert these primary colors to rgb for the dark mode option of the theme */
/* looks good in sRGB but washed up on chrome default
$color-primary:						#826bb0;
$color-success:						#31cb55;
$color-info:						#5e93ec;
$color-warning:						#eec559;
$color-danger:						#dc4b92;
$color-fusion:						darken(desaturate(adjust-hue($color-primary, 5), 80%), 25%); */
/*  Color Polarity
========================================================================== */
/*  PAINTBUCKET MIXER
========================================================================== */
/* the grays */
/* the sapphires */
/* the emeralds */
/* the amethyths */
/* the topaz */
/* the rubies */
/* the graphites */
/*  Define universal border difition (div outlines, etc)
========================================================================== */
/*  MOBILE BREAKPOINT & GUTTERS (contains some bootstrap responsive overrides)
========================================================================== */
/* define when mobile menu activates, here we are declearing (lg) so it targets the one after it */
/* bootstrap reference xs: 0,  sm: 544px, md: 768px, lg: 992px, xl: 1200px*/
/* global var used for spacing*/
/* Uniform Padding variable */
/* Heads up! This is a global scoped variable - changing may impact the whole template */
/*   BOOTSTRAP OVERRIDES (bootstrap variables)
========================================================================== */
/* usage: theme-colors("primary"); */
/* forms */
/*$input-height:							calc(2.25rem + 1px); //I had to add this because the input gruops was having improper height for some reason... */
/* links */
/* checkbox */
/*$custom-file-height-inner:				calc(2.25rem - 1px);*/
/* not part of bootstrap variable */
/* custom checkbox */
/* custom range */
/* custom file */
/* badge */
/* cards */
/*border radius*/
/* alert */
/* toast */
/* breadcrumb */
/* i


forge.net/tracker/index.php?func=detail&aid=1082197&group_id=75348&atid=543653">SF
			BUG-1082197] On ASP, the bug in the browser detection system for Gecko browsers
			has been corrected. Thanks to Alex Varga.

Again on ASP, the browser detection for IE had some problems on servers that use
			comma for decimal separators on numbers. It has been corrected. Thanks to Agrotic.

No error is thrown now when non existing language is configured in the
			editor. The English language file is loaded in that case.

[SF
			BUG-1077747] The missing images on the Office2003 and Silver skins are now included
			in the package.

On some Gecko browsers, the dialog window was not loading correctly. I couldn't
			reproduce the problem, but a fix has been applied based on users tests.

[SF
			BUG-1004078] ColdFusion: The "config" structure/hash table with keys
			and values is in ColdFusion not(!) case sensitive. All keys returned by ColdFusion
			are in upper case format. Because the FCKeditor configuration keys must be case
			sensitive, we had to match all structure/hash keys with a list of the correct configuration
			names in mixed case. This has been added to the fckeditor.cfc and fckeditor.cfm.

[SF
			BUG-1075166] ColdFusion: The "fallback" variant of the texteditor
			(<textarea>) has a bug in the fckeditor.cfm. This has been fixed.

A typo in the Polish language file has been corrected. Thanks to Pawel Tomicki.

[SF
			BUG-1086370] A small coding type in the Link dialog window has been corrected.

		Version 2.0 RC1 (Release Candidate 1)

ASP support is now available (including the File Manager connector).

PHP support is now available (including the File Manager connector).

[SF
			Feature-1063217] The new advanced Style command is available
			in the toolbar: full preview, context sensitive, style definitions are loaded from
			a XML file (see documentation for more instructions).

The Font Format, Font Name and Font Size
			toolbar command now show a preview of the available options


ied', {'file': 'b'}));
}
// Copyright (c) 2014, Google Inc. Please see the AUTHORS file for details.
// All rights reserved. Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

library cde_common.tasks_test;

import 'dart:async';

import 'package:cde_common/tasks.dart';
import 'package:unittest/unittest.dart';

void defineTests() {
  group('tasks', () {
    test('simple', () {
      Task task = new Task((TaskStatus status) => new Future(() => 'foo'));
      return task.getTaskResult();
    });

    test('returns Future', () {
      TaskEntry taskFn = (((_) => 'foo') as TaskEntry);
      Task task = new Task(taskFn);
      return task.getTaskResult().then((_) {
        fail('exception expected');
      })
      .catchError((e) {
        expect(e, isNotNull);
      });
    });

    test('exception', () {
      Task task = new Task((TaskStatus status) => new Future.error('foo'));
      return task.getTaskResult().then((_) {
        fail('exception expected');
      })
      .catchError((e) {
        expect(e, isNotNull);
      });
    });

    test('cancelled', () {
      // TODO:

//      TaskStatus _status;
//
//      var cycle;
//      cycle = () {
//        if (_status.cancelled) TaskStatus.throwCancelled();
//        Timer.run(cycle);
//      };
//
//      Task task = new Task((TaskStatus status) {
//        _status = status;
//        cycle();
//      });
//
//      expect(task.getTaskResult(), throwsA(isUserCancelled));
//      _status.cancelled = true;
    });

    test('cancelled unresponsive', () {
      // TODO:

    });
  });
}

const Matcher isUserCancelled = const _IsUserCancelled();

class _IsUserCancelled extends TypeMatcher {
  const _IsUserCancelled() : super("UserCancelledException");
  bool matches(item, Map matchState) => item is UserCancelledException;
}
import 'dart:convert';
import 'dart:io';

import 'package:path/path.dart' as p;

const _assetPath = 'lib';

const _mapping = {
  'SERVICE_ACCOUNT_JSON': 'service_account.json',
  'CONFIG_DATA': 'config.json',
};

void main(List<String> args) {
  // make sure the working dir is the root of the project
  if (!File('pubspec.yaml').existsSync()) {
    throw StateError('Not in the root! - ${Directory.current}');
  }

  var samplePath = p.join(_assetPath, 'config.json.sample');
  if (!File(samplePath).existsSync()) {
    throw StateError("'$samplePath should exist");
  }

  if (args.contains('--dump')) {
    for (var entry in _mapping.entries) {
      final path = p.join(_assetPath, entry.value);
      final file = File(path);
      if (!file.existsSync()) {
        throw StateError('File should exist at $path');
      }

      final content = base64.encode(file.readAsBytesSync());
      print(entry.key);
      print(content);
    }
    return;
  }

  for (var entry in _mapping.entries) {
    if (!Platform.environment.containsKey(entry.key)) {
      throw StateError('Missing needed environment variable ${entry.key}');
    }
    final encodedValue = Platform.environment[entry.key] as String;
    if (encodedValue.isEmpty) {
      throw StateError('Environment variable ${entry.key} is empty!');
    }

    final path = p.join(_assetPath, entry.value);
    final file = File(path);
    if (file.existsSync()) {
      throw StateError('No file should exist at $


write %rax, %rdx

	VMSET(0x00002C02, $0x500) // host EFER

	VMSET(0x00004C00, $SEL_CS64) // Host IA32_SYSENTER_CS
	VMSET(0x00006C10, $0) // Host IA32_SYSENTER_ESP
	VMSET(0x00006C12, $0) // Host IA32_SYSENTER_EIP

	mov %cr0, %rax
	VMSET(0x00006C00, %rax) // host CR0
	mov %cr3, %rax
	VMSET(0x00006C02, %rax) // host CR3
	mov %cr4, %rax
	VMSET(0x00006C04, %rax) // host CR4

	VMSET(0x00006C06, $0) // host FS base
	VMSET(0x00006C08, $0) // host GS base
	VMSET(0x00006C0A, $ADDR_VAR_TSS64) // host TR base

	VMSET(0x00006C0C, $ADDR_GDT) // host GDTR base
	VMSET(0x00006C0E, $ADDR_VAR_IDT) // host IDTR base

	VMSET(0x00006C14, $0) // host RSP
	VMSET(0x00006C16, ADDR_VAR_VMEXIT_PTR) // host RIP

	VMSET(0x00000000, $1) // VPID
	VMSET(0x00000002, $0) // Posted-interrupt notification vector
	//VMSET(0x00000004, $0) // EPTP index

	VMSET(0x00002000, $0) // Address of I/O bitmap A
	VMSET(0x00002002, $0) // Address of I/O bitmap B
	VMSET(0x00002004, $0) // Address of MSR bitmaps
	VMSET(0x00002006, $0) // VM-exit MSR-store address

	mov $0x277, %rcx
	rdmsr
	shl $32, %rdx
	or %rdx, %rax
	VMSET(0x00002C00, %rax) // Host IA32_PAT

	VMSET(0x00004004, $0) // Exception bitmap
	VMSET(0x0000400A, $0) // CR3-target count
	VMSET(0x0000400E, $0) // VM-exit MSR-store count
	VMSET(0x00004010, $0) // VM-exit MSR-load count
	VMSET(0x00004016, $0) // VM-entry interruption-information field
	VMSET(0x00004014, $0) // VM-entry MSR-load count

	VMSET(0x00006000, $0xffffffffffffffff) // CR0 guest/host mask
	VMSET(0x00006002, $0xffffffffffffffff) // CR4 guest/host mask

	VMSET(0x0000201C, $0) // EOI-exit bitmap 0
	VMSET(0x0000201E, $0) // EOI-exit bitmap 1
	VMSET(0x00002020, $0) // EOI-exit bitmap 2
	VMSET(0x00002022, $0) // EOI-exit bitmap 3

	VMSET(0x00000800, $SEL_DS64) // Guest ES selector
	VMSET(0x00000802, $SEL_CS64) // Guest CS selector
	VMSET(0x00000804, $SEL_DS64) // Guest SS selector
	VMSET(0x00000806, $SEL_DS64) // Guest DS selector
	VMSET(0x00000808, $SEL_DS64) // Guest FS selector
	VMSET(0x0000080A, $SEL_DS64) // Guest GS selector
	VMSET(0x0000080C, $0) // Guest LDTR selector
	VMSET(0x0000080E, $SEL_TSS64) // Guest


3, 0
/* 8003202C 0002DC8C  41 82 01 74 */	beq lbl_800321A0
/* 80032030 0002DC90  80 03 01 04 */	lwz r0, 0x104(r3)
/* 80032034 0002DC94  C0 02 81 94 */	lfs f0, lbl_80640794-_SDA2_BASE_(r2)
/* 80032038 0002DC98  60 00 00 04 */	ori r0, r0, 4
/* 8003203C 0002DC9C  90 03 01 04 */	stw r0, 0x104(r3)
/* 80032040 0002DCA0  D0 03 01 10 */	stfs f0, 0x110(r3)
/* 80032044 0002DCA4  48 00 01 5C */	b lbl_800321A0
/* 80032048 0002DCA8  80 7F 00 40 */	lwz r3, 0x40(r31)
/* 8003204C 0002DCAC  2C 03 00 00 */	cmpwi r3, 0
/* 80032050 0002DCB0  41 82 00 40 */	beq lbl_80032090
/* 80032054 0002DCB4  80 03 01 04 */	lwz r0, 0x104(r3)
/* 80032058 0002DCB8  54 00 07 FF */	clrlwi. r0, r0, 0x1f
/* 8003205C 0002DCBC  41 82 00 0C */	beq lbl_80032068
/* 80032060 0002DCC0  38 60 00 01 */	li r3, 1
/* 80032064 0002DCC4  48 00 00 30 */	b lbl_80032094
lbl_80032068:
/* 80032068 0002DCC8  80 63 01 38 */	lwz r3, 0x138(r3)
/* 8003206C 0002DCCC  2C 03 00 00 */	cmpwi r3, 0
/* 80032070 0002DCD0  41 82 00 18 */	beq lbl_80032088
/* 80032074 0002DCD4  A0 03 01 48 */	lhz r0, 0x148(r3)
/* 80032078 0002DCD8  54 00 07 FF */	clrlwi. r0, r0, 0x1f
/* 8003207C 0002DCDC  41 82 00 0C */	beq lbl_80032088
/* 80032080 0002DCE0  38 60 00 01 */	li r3, 1
/* 80032084 0002DCE4  48 00 00 10 */	b lbl_80032094
lbl_80032088:
/* 80032088 0002DCE8  38 60 00 00 */	li r3, 0
/* 8003208C 0002DCEC  48 00 00 08 */	b lbl_80032094
lbl_80032090:
/* 80032090 0002DCF0  38 60 00 00 */	li r3, 0
lbl_80032094:
/* 80032094 0002DCF4  38 00 00 01 */	li r0, 1
/* 80032098 0002DCF8  90 7E 00 04 */	stw r3, 4(r30)
/* 8003209C 0002DCFC  B0 1E 00 00 */	sth r0, 0(r30)
/* 800320A0 0002DD00  48 00 01 00 */	b lbl_800321A0
/* 800320A4 0002DD04  A8 1D 00 08 */	lha r0, 8(r29)
/* 800320A8 0002DD08  2C 00 00 01 */	cmpwi r0, 1
/* 800320AC 0002DD0C  40 82 00 0C */	bne lbl_800320B8
/* 800320B0 0002DD10  80 9D 00 0C */	lwz r4, 0xc(r29)
/* 800320B4 0002DD14  48 00


//
//     Generated by class-dump 3.5 (64 bit).
//
//     class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//

#import "NSObject.h"

#import "NSFilePresenter.h"
#import "NSTableViewDataSource.h"
#import "NSTableViewDelegate.h"
#import "QLPreviewPanelDataSource.h"
#import "QLPreviewPanelDelegate.h"

@class NSArray, NSBox, NSButton, NSFileVersion, NSImageView, NSOperationQueue, NSPanel, NSString, NSTableView, NSURL, _NSDocumentConflictNonTableView;

__attribute__((visibility("hidden")))
@interface NSDocumentConflictPanelController : NSObject <NSTableViewDataSource, NSTableViewDelegate, QLPreviewPanelDelegate, QLPreviewPanelDataSource, NSFilePresenter>
{
    NSPanel *_panel;
    NSTableView *_tableView;
    NSButton *_keepButton;
    NSButton *_cancelButton;
    NSBox *_nonTableViewContainer;
    _NSDocumentConflictNonTableView *_nonTableView;
    NSURL *_url;
    NSArray *_conflicts;
    NSImageView *_clickedImageView;
    id _clickedConflict;
    BOOL _forceTableView;
    double _fullPanelHeight;
    double _staticHeight;
}

- (BOOL)previewPanel:(id)arg1 shouldShowShareButtonForItem:(id)arg2;
- (BOOL)previewPanel:(id)arg1 shouldOpenURL:(id)arg2 forPreviewItem:(id)arg3;
- (BOOL)previewPanel:(id)arg1 shouldShowOpenButtonForItem:(id)arg2;
- (struct CGRect)previewPanel:(id)arg1 sourceFrameOnScreenForPreviewItem:(id)arg2;
- (id)previewPanel:(id)arg1 previewItemAtIndex:(long long)arg2;
- (long long)numberOfPreviewItemsInPreviewPanel:(id)arg1;
- (void)endPreviewPanelControl:(id)arg1;
- (void)beginPreviewPanelControl:(id)arg1;
- (BOOL)acceptsPreviewPanelControl:(id)arg1;
- (void)_didClickOnImageView:(id)arg1 forConflict:(id)arg2;
- (void)accommodatePresentedItemDeletionWithCompletionHandler:(CDUnknownBlockType)arg1;
- (void)presentedItemDidResolveConflictVersion:(id)arg1;
- (void)presentedItemDidLoseVersion:(id)arg1;
- (void)presentedItemDidGainVersion:(id)arg1;
- (void)presentedItemDidChange;
- (void)presentedItemDidMoveToURL:(id)arg1;
@property(readonly, retain) NSOperationQueue *presentedItemOperationQueue;
@property(readonly, copy) NSURL *presentedItemURL;
- (void)_windowBackingDidChange:(id)arg1;
- (void)_startLoadingThumbnailForConflict:(id)arg1 force:(BOOL)arg2;
- (void)_reloadConflictsRefreshingAll:(BOOL)arg1;
- (void)_updateConflictDisplay;
- (void)_enumerateAllRowViewsUsingBlock:(CDUnknownBlockType)arg1;
- (double)_desiredHeightOfPanel;
- (BOOL)_shouldShowTableView;
- (void)_updateNonTableView;
- (id)tableView:(id)arg1 viewForTableColumn:(id)arg2 row:(long long)arg3;
- (id)_makeVersionView;
- (id)tableView:(id)arg1 objectValueForTableColumn:(id)arg2 row:(long long)arg3;
- (long long)numberOfRowsInTableView:(id)arg1;
- (void)_selectedConflictsChanged;
- (void)_updateButtons;
- (id)_keepButtonTitleForNumberOfSelectedVersions:(long long)arg1 totalNumber:(long long)arg2;
@property(readonly) NSArray *unselectedVersions;
@property(readonly) NSArray *selectedVersions;
@property(readonly) NSFileVersion *currentVersion;
- (id)_unselectedConflicts;
- (id)_selectedConflicts;
- (void)cancel:(id)arg1;
- (void)keep:(id)arg1;
- (id)_panel;
- (id)_conflictsForURL:(id)arg1;
- (void)beginConflictPanelForURL:(id)arg1 modalForWindow:(id)arg2 completionHandler:(CDUnknownBlockType)arg3;
- (void)_something:(id)arg1 wasPresentedWithResult:(long long)arg2 soContinue:(CDUnknownBlockType)arg3;
- (void)dealloc;

// Remaining properties
@property(readonly, copy) NSString *debugDescription;
@property(readonly, copy) NSString *description;
@property(readonly) unsigned long long hash;
@property(readonly, copy) NSURL *primaryPresentedItemURL;
@property(readonly) Class superclass;

@end


in tx.input.iter().enumerate() {
        if !has_prevout(txi) {
            continue;
        }
        let prev_txo = previous_txos_map
            .get(&txi.previous_output)
            .unwrap_or_else(|| panic!("missing previous txo {}", txi.previous_output));

        let history = TxHistoryRow::new(
            &prev_txo.script_pubkey,
            confirmed_height,
            TxHistoryInfo::Spending(SpendingInfo {
                txid,
                vin: txi_index as u16,
                prev_txid: full_hash(&txi.previous_output.txid[..]),
                prev_vout: txi.previous_output.vout as u16,
                value: prev_txo.value,
            }),
        );
        rows.push(history.into_row());

        let edge = TxEdgeRow::new(
            full_hash(&txi.previous_output.txid[..]),
            txi.previous_output.vout as u16,
            txid,
            txi_index as u16,
        );
        rows.push(edge.into_row());
    }

    // Index issued assets & native asset pegins/pegouts/burns
    #[cfg(feature = "liquid")]
    asset::index_confirmed_tx_assets(
        tx,
        confirmed_height,
        iconfig.network,
        iconfig.parent_network,
        rows,
    );
}

fn addr_search_row(spk: &Script, network: Network) -> Option<DBRow> {
    script_to_address(spk, network).map(|address| DBRow {
        key: [b"a", address.as_bytes()].concat(),
        value: vec![],
    })
}

fn addr_search_filter(prefix: &str) -> Bytes {
    [b"a", prefix.as_bytes()].concat()
}

// TODO: replace by a separate opaque type (similar to Sha256dHash, but without the "double")
pub type FullHash = [u8; 32]; // serialized SHA256 result

pub fn compute_script_hash(script: &Script) -> FullHash {
    let mut hash = FullHash::default();
    let mut sha2 = Sha256::new();
    sha2.input(script.as_bytes());
    sha2.result(&mut hash);
    hash
}

pub fn parse_hash(hash: &FullHash) -> Sha256dHash {
    deserialize(hash).expect("failed to parse Sha256dHash")
}

#[derive(Serialize, Deserialize)]
struct TxRowKey {
    code: u8,
    txid: FullHash,
}

struct TxRow {
    key: TxRowKey,
    value: Bytes, // raw transaction
}

impl TxRow {
    fn new(txn: &Transaction) -> TxRow {
        let txid = full_hash(&txn.txid()[..]);
        TxRow {
            key: TxRowKey { code: b'T', txid },
            value: serialize(txn),
        }
    }

    fn key(prefix: &[u8]) -> Bytes {
        [b"T", prefix].concat()
    }

    fn into_row(self) -> DBRow {
        let TxRow { key, value } = self;
        DBRow {
            key: bincode::serialize(&key).unwrap(),
            value,
        }
    }
}

#[derive(Serialize, Deserialize)]
struct TxConfKey {
    code: u8,
    txid: FullHash,
    blockhash: FullHash,
}

struct TxConfRow {
    key: TxConfKey,
}

impl TxConfRow {
    fn new(txn: &Transaction, blockhash: FullHash) -> TxConfRow {
        let txid = full_hash(&txn.txid()[..]);
        TxConfRow {
            key: TxConfKey {
                code: b'C',
                txid,
                blockhash,
            },
        }
    }

    fn


	{
				to:       testAddress,
				input:    data,
				gasLimit: 1_000_000_000,
				value:    common.Big0,
			},
		},
		contracts: []contractCode{
			{
				// https://github.com/Vectorized/solady/blob/3e8031b16417154dc2beae71b7b45f415d29566b/src/utils/SignatureCheckerLib.sol#L120
				code:    common.Hex2Bytes("608060405234801561001057600080fd5b506004361061002b5760003560e01c806340a35e2e14610030575b600080fd5b61004a60048036038101906100459190610263565b610060565b60405161005791906102f2565b60405180910390f35b60008460601b60601c945084156101585760405184600052604083036100cd576020840135601b8160ff1c0160205284356040528060011b60011c606052602060016080600060015afa805188183d15176100ca5760019350600060605282604052505050610158565b50505b6041830361011357604084013560001a602052604084604037602060016080600060015afa805187183d151761011157600192506000606052816040525050610158565b505b600060605280604052631626ba7e60e01b80825285600483015260248201604081528460448401528486606485013760208160648701858b5afa828251141693505050505b949350505050565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006101958261016a565b9050919050565b6101a58161018a565b81146101b057600080fd5b50565b6000813590506101c28161019c565b92915050565b6000819050919050565b6101db816101c8565b81146101e657600080fd5b50565b6000813590506101f8816101d2565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112610223576102226101fe565b5b8235905067ffffffffffffffff8111156102405761023f610203565b5b60208301915083600182028301111561025c5761025b610208565b5b9250929050565b6000806000806060858703121561027d5761027c610160565b5b600061028b878288016101b3565b945050602061029c878288016101e9565b935050604085013567ffffffffffffffff8111156102bd576102bc610165565b5b6102c98782880161020d565b925092505092959194509250565b60008115159050919050565b6102ec816102d7565b82525050565b600060208201905061030760008301846102e3565b9291505056fea2646970667358221220e7aef4256acfe8a66e69b3302343656c8356cc59568106cad36b4994886104ec64736f6c63430008120033"),
				address: testAddress,
			},
		},
	}

	benchmarkEVM(b, &suite)
}

func BenchmarkEvmMulticallErcTransfer(b *testing.B) {
	const contractCall = 100
	var (
		contracts         []contractCode
		setupTransactions []transaction
		benchTransactions []transaction
		fromAddress       = common.Address{0x1}
		transferAmount    = common.Big1
	)

	// https://github.com/OpenZeppelin/openzeppelin-contracts/blob/442886ed5ff8a0b


/* Unusual Devices File for SanDisk SDDR-55 SmartMedia reader
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the
 * Free Software Foundation; either version 2, or (at your option) any
 * later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write to the Free Software Foundation, Inc.,
 * 675 Mass Ave, Cambridge, MA 02139, USA.
 */

#if defined(CONFIG_USB_STORAGE_SDDR55) || \
		defined(CONFIG_USB_STORAGE_SDDR55_MODULE)

/* Contributed by Peter Waechtler */
UNUSUAL_DEV( 0x07c4, 0xa103, 0x0000, 0x9999,
		"Datafab",
		"MDSM-B reader",
		US_SC_SCSI, US_PR_SDDR55, NULL,
		US_FL_FIX_INQUIRY),

/* SM part - aeb <Andries.Brouwer@cwi.nl> */
UNUSUAL_DEV(  0x07c4, 0xa109, 0x0000, 0xffff,
		"Datafab Systems, Inc.",
		"USB to CF + SM Combo (LC1)",
		US_SC_SCSI, US_PR_SDDR55, NULL, 0),

UNUSUAL_DEV( 0x0c0b, 0xa109, 0x0000, 0xffff,
		"Acomdata",
		"SM",
		US_SC_SCSI, US_PR_SDDR55, NULL, 0),

UNUSUAL_DEV(  0x55aa, 0xa103, 0x0000, 0x9999,
		"Sandisk",
		"ImageMate SDDR55",
		US_SC_SCSI, US_PR_SDDR55, NULL, 0),

#endif /* defined(CONFIG_USB_STORAGE_SDDR55) || ... */


AAAWCAYAAADJqhx8AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3wYeFzI3XJ6V3QAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAAANklEQVQ4y+2RsQ0AIAzDav7/2VzQwoCY4iWbZSmo1QGoUgNMghvWaIejPQW/CrrNCylIwcOCDYfLNRcNer4SAAAAAElFTkSuQmCC" alt="." style="background-color: inherit" class="hierarchy"/> sequence 	Σ	0..1	string	Actual nucleotide sequence notation from 5' to 3' end using standard single letter codes. In addition to the base sequence, sugar and type of phosphate or non-phosphate linkage should also be captured

<img src="data: image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAWCAYAAAABxvaqAAAAC


 Is emited when asynchronous query is done.
	 */
	void execDone(const Database::AsyncQueryResult& result);
	/**
	 * @brief Is emited if asynchronous query running status changes.
	 */
	void busyChanged(bool busy);

private:
	typedef struct QueuedQuery {
		bool isPrepared;
		QString query;
		QMap <QString, QVariant> boundValues;
	} QueuedQuery;

	void startExecIntern();
	/* use only in locked area */
	void incTaskCount();
	void decTaskCount();

	// asynchronous callbacks
	// attention lives in the context of QRunable
	void taskCallback(const AsyncQueryResult& result);

private:
	QLoggingCategory logger;

	QWaitCondition _waitcondition;
	mutable QMutex _mutex;
	bool _deleteOnDone;
	ulong _delayMs;
	Mode _mode;
	int _taskCnt;

	AsyncQueryResult _result;
	QQueue <QueuedQuery> _ququ;
	QueuedQuery _curQuery;

};

}


.Ltail:
      mov r11, -1
      shlx r11, r11, rsi
      not r11
      kmovw k1, r11d
      vmovdqu8  xmmword ptr [r10]{k1}, xmm5
      vmovdqu8  xmmword ptr [r13]{k1}, xmm12
      vmovdqu8  xmmword ptr [rbx]{k1}, xmm14
      vmovdqu8  xmmword ptr [rbp]{k1}, xmm15
      vmovdqu8  xmmword ptr [r8]{k1}, xmm16

.Lreturn:
      add rsp, 448
      mov r13, [rsp]
      mov rsp, r13
      # Restore the callee saved registers.
      pop r12
      pop r13
      pop r14
      pop r15
      pop rbp
      pop rbx
      pop rsi
      pop rdi
      #if XNN_HAS_FEATURE(memory_sanitizer)
      jmp xnn_gemm_ukernel_msan_sizeof_c_4
      #else
      ret
      #end


"vs_pipeline"

        fun createEmpty(): ShipSavedData {
            return ShipSavedData().apply { pipeline = vsCore.newPipeline() }
        }

        @JvmStatic
        fun load(compoundTag: CompoundTag): ShipSavedData {
            val data = ShipSavedData()

            // Read bytes from the [CompoundTag]
            val queryableShipDataAsBytes = compoundTag.getByteArray(QUERYABLE_SHIP_DATA_NBT_KEY)
            val chunkAllocatorAsBytes = compoundTag.getByteArray(CHUNK_ALLOCATOR_NBT_KEY)
            val pipelineAsBytes = compoundTag.getByteArray(PIPELINE_NBT_KEY)

            try {
                if (pipelineAsBytes.isNotEmpty()) {
                    data.pipeline = vsCore.newPipeline(pipelineAsBytes)
                } else if (queryableShipDataAsBytes.isNotEmpty() && chunkAllocatorAsBytes.isNotEmpty()) {
                    data.pipeline = vsCore.newPipelineLegacyData(queryableShipDataAsBytes, chunkAllocatorAsBytes)
                } else {
                    throw IllegalStateException("Couldn't find serialized ship data")
                }
            } catch (ex: Exception) {
                data.loadingException = ex
            }
            return data
        }
    }

    lateinit var pipeline: VSPipeline

    var loadingException: Throwable? = null
        private set

    override fun save(compoundTag: CompoundTag): CompoundTag {
        compoundTag.putByteArray(PIPELINE_NBT_KEY, vsCore.serializePipeline(pipeline))

        return compoundTag
    }

    /**
     * This is not efficient, but it will work for now.
     */
    override fun isDirty(): Boolean {
        return true
    }
}
package org.valkyrienskies.mod.common

import com.google.common.collect.MapMaker
import net.minecraft.core.BlockPos
import net.minecraft.world.entity.player.Player
import net.minecraft.world.level.Level
import net.minecraft.world.phys.Vec3
import org.valkyrienskies.core.api.ships.LoadedShip
import org.valkyrienskies.mod.common.util.toJOML
import org.valkyrienskies.mod.common.util.toMinecraft
import org.valkyrienskies.mod.mixin.accessors.entity.EntityAccessor
import java.util.concurrent.ConcurrentMap
import kotlin.math.atan2
import kotlin.math.sqrt

object PlayerUtil {

    private val prevPosInfo: ConcurrentMap<Player, TempPlayerPosInfo> = MapMaker().weakKeys().makeMap()

    private data class TempPlayerPosInfo(val yaw: Float, val headYaw: Float, val pitch: Float, val pos: Vec3)

    @JvmStatic
    fun transformPlayerTemporarily(player: Player, world: Level, blockInShip: BlockPos) =
        transformPlayerTemporarily(player, world.getShipObjectManagingPos(blockInShip))

    @JvmStatic
    fun transformPlayerTemporarily(player: Player, ship: LoadedShip?) {
        if (ship == null) return
        // player is already in shipyard
        if (player.level().isBlockInShipyard(player.x, player.y, player.z)) {
            // player is already in shipyard
            return
        }

        prevPosInfo[player] = TempPlayerPosInfo(player.yRot, player.yHeadRot, player.xRot, player.position())

        val shipMatrix = ship.worldToShip

        val direction = shipMatrix.transformDirection(player.lookAngle.toJOML())
        val position = shipMatrix.transformPosition(player.position().toJOML())
        val yaw = -atan2(direction.x, direction.z)
        val pitch = -atan2(direction.y, sqrt((direction.x * direction.x) + (direction.z * direction.z)))

        player.yRot = (y


f
    }

#if UNITY_2017_2_OR_NEWER
    private static void HandlePlayModeState(PlayModeStateChange state)
    {
        if (state == PlayModeStateChange.EnteredPlayMode)
        {
            CAPI.SendEvent("load", CAPI.AvatarSDKVersion.ToString());
        }
    }
#endif

    private static string MakeTextBox(GUIContent label, string variable) {
        EditorGUILayout.BeginHorizontal();
        EditorGUILayout.LabelField(label);
        GUI.changed = false;
        var result = EditorGUILayout.TextField(variable);
        if (GUI.changed)
        {
            EditorUtility.SetDirty(OvrAvatarSettings.Instance);
            GUI.changed = false;
        }
        EditorGUILayout.EndHorizontal();
        return result;
    }
    public override void OnInspectorGUI()
    {
        EditorGUILayout.BeginVertical();
        OvrAvatarSettings.AppID =
            OvrAvatarSettingsEditor.MakeTextBox(appIDLabel, OvrAvatarSettings.AppID);
        OvrAvatarSettings.MobileAppID =
            OvrAvatarSettingsEditor.MakeTextBox(mobileAppIDLabel, OvrAvatarSettings.MobileAppID);
        EditorGUILayout.EndVertical();
    }
}
#endif


st

Reset command list.

### -field pfnDiscardResource

Discard resource.

### -field pfnSetMarker

Set marker.

### -field pfnSetPredication

Set predication.

### -field pfnBeginQuery

Begin query.

### -field pfnEndQuery

End query.

### -field pfnResolveQueryData

Resolve query data.

### -field pfnResourceBarrier

Resource barrier.

### -field pfnProcessFrame

Decode frame.

### -field pfnSetProtectedResourceSession

Set protected resource session.

### -field pfnWriteBufferImmediate

Write buffer immediate.

### -field pfnInitializeVideoExtensionCommand

Records a command to initialize or re-initialize a Video Extension Command into a command list.

### -field pfnExecuteVideoExtensionCommand

Records a command to execute a video extension command into a command list.

## -remarks

## -see-also

---
UID: NC:d3d12umddi.PFND3D12DDI_CHECKRESOURCEVIRTUALADDRESS
title: PFND3D12DDI_CHECKRESOURCEVIRTUALADDRESS (d3d12umddi.h)
description: Check resource virtual address.
ms.date: 10/19/2018
keywords: ["PFND3D12DDI_CHECKRESOURCEVIRTUALADDRESS callback function"]
req.header: d3d12umddi.h
req.include-header:
req.target-type:
req.target-min-winverclnt:
req.target-min-winversvr:
req.kmdf-ver:
req.umdf-ver:
req.lib:
req.dll:
req.irql:
req.ddi-compliance:
req.unicode-ansi:
req.idl:
req.max-support:
req.namespace:
req.assembly:
req.type-library:
targetos: Windows
tech.root: display
ms.custom: RS5
f1_keywords:
 - PFND3D12DDI_CHECKRESOURCEVIRTUALADDRESS
 - d3d12umddi/PFND3D12DDI_CHECKRESOURCEVIRTUALADDRESS
topic_type:
 - apiref
api_type:
 - UserDefined
api_location:
 - d3d12umddi.h
api_name:
 - PFND3D12DDI_CHECKRESOURCEVIRTUALADDRESS
dev_langs:
 - c++
---

# PFND3D12DDI_CHECKRESOURCEVIRTUALADDRESS callback function

## -description

Check resource virtual address.

## -parameters

### -param unnamedParam1

A handle to the display device (graphics context).

### -param unnamedParam2

## -returns

Returns D3D12DDI_GPU_VIRTUAL_ADDRESS.

## -prototype

```cpp
//Declaration

PFND3D12DDI_CHECKRESOURCEVIRTUALADDRESS Pfnd3d12ddiCheckresourcevirtualaddress;

// Definition

D3D12DDI_GPU_VIRTUAL_ADDRESS Pfnd3d12ddiCheckresourcevirtualaddress
(
	 D3D12DDI_HDEVICE
	 D3D12DDI_HRESOURCE
)
{...}

PFND3D12DDI_CHECKRESOURCEVIRTUALADDRESS

```

## -remarks

## -see-also

---
UID: NS:d3d12umddi.D3D12DDI_FEATURE_DATA_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_CONFIG_0095
tech.root: display
title: D3D12DDI_FEATURE_DATA_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_CONFIG_0095
ms.date: 05/14/2024
targetos: Windows
description: Learn more about the D3D12DDI_FEATURE_DATA_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_CONFIG_0095 structure.
prerelease: false
req.construct-type: structure
req.ddi-compliance:
req.dll:
req.header: d3d12umddi.h
req.include