text
stringlengths 31
1.04M
|
---|
local ContextConvolution, parent = torch.class('onmt.ContextConvolution', 'onmt.Network')
--[[ Construct an encoder layer.
Parameters:
* `inputNetwork` - input module.
* `rnn` - recurrent module.
]]
function ContextConvolution:__init(inputNetwork, convNetwork, inputSize)
self.name = 'ContextConvolution'
self.inputNet = inputNetwork
self.convNet = convNetwork
self.args = {}
self.args.inputSize = inputSize
parent.__init(self, self:_buildModel())
end
--[[ Return a new Encoder using the serialized data `pretrained`. ]]
function ContextConvolution.load(pretrained)
local self = torch.factory('onmt.ContextConvolution')()
self.name = 'ContextConvolution'
self.args = pretrained.args
parent.__init(self, pretrained.modules[1])
return self
end
function ContextConvolution:serialize()
return {
name = 'ContextConvolution',
modules = self.modules,
args = self.args
}
end
function ContextConvolution:maskPadding()
self.maskPad = true
end
--[[ Build one time-step of an encoder
Returns: An nn-graph mapping
$${(c^1_{t-1}, h^1_{t-1}, .., c^L_{t-1}, h^L_{t-1}, x_t) =>
(c^1_{t}, h^1_{t}, .., c^L_{t}, h^L_{t})}$$
Where $$c^l$$ and $$h^l$$ are the hidden and cell states at each layer,
$$x_t$$ is a sparse word to lookup.
--]]
function ContextConvolution:_buildModel()
local inputs = {}
-- Input word.
local x = nn.Identity()() -- batchSize
table.insert(inputs, x)
-- Compute input network.
local wordEmb = self.inputNet(x)
local resizeEmb = nn.Unsqueeze(2)(wordEmb)
local output = self.convNet(resizeEmb)
return nn.gModule(inputs, { output })
end
--]]
--[[Compute the context representation of an input.
Parameters:
* `batch` - as defined in batch.lua.
Returns:
1. - final hidden states
2. - context matrix H
--]]
function ContextConvolution:forward(batch)
-- TODO: Change `batch` to `input`.
local input = batch.sourceInput:transpose(1,2)
self.input = input
local conv = self:get(1):forward(input)
return conv
--]]
end
--[[ Backward pass (only called during training)
--]]
function ContextConvolution:backward(batch, gradContextOutput)
-- TODO: change this to (input, gradOutput) as in nngraph.
--
local gradInput = self:get(1):backward(self.input, gradContextOutput)
return gradInput
end
|
<?hh
function f() {
return false;
}
class B {
var $a = 1;
static $b = array(1, 2, 3);
}
<<__EntryPoint>>
function main_684() {
if (f()) {
include '684-1.inc';
}
else {
include '684-2.inc';
}
$vars = get_class_vars('A');
asort(&$vars);
var_dump($vars);
A::$a = 1;
$vars = get_class_vars('A');
asort(&$vars);
var_dump($vars);
$vars = get_class_vars('B');
asort(&$vars);
var_dump($vars);
}
|
;------------------------------------------------------------------------------
;
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution. The full text of the license may be found at
; http://opensource.org/licenses/bsd-license.php
;
; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
;
; Module Name:
;
; WriteMm7.Asm
;
; Abstract:
;
; AsmWriteMm7 function
;
; Notes:
;
;------------------------------------------------------------------------------
.586
.model flat,C
.mmx
.code
;------------------------------------------------------------------------------
; VOID
; EFIAPI
; AsmWriteMm7 (
; IN UINT64 Value
; );
;------------------------------------------------------------------------------
AsmWriteMm7 PROC
movq mm7, [esp + 4]
ret
AsmWriteMm7 ENDP
END
|
.landing-container {
background-image: url('../../assets/backgrounds/Splash_Bg.png');
background-repeat: no-repeat;
background-size: cover;
background-position: center;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
overflow-x: hidden;
}
.slogan-wrapper {
background-image: url('../../assets/icons/Landing_Planet.png');
background-repeat: no-repeat;
background-size: contain;
background-position: center;
color: #000000;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
font-weight: bold;
width: 1300px;
height: 90vh;
transform: translate(0, -10%);
}
#sbuhacks-title {
font-size: 9rem;
text-shadow: 10px 10px #02111b;
color: #ffffff;
margin: 0;
font-family: 'Audiowide', cursive;
}
#sbuhacks-year {
font-size: 6rem;
text-shadow: 8px 8px #02111b;
color: #ffffff;
margin: 0;
font-family: 'Audiowide', cursive;
}
#landing-sponsor {
font-size: 3rem;
}
#sbuhacks-date,
#sbuhacks-slogan,
#landing-sponsor {
margin: 0;
}
.landing-sub {
position: absolute;
font-size: 1.5vw;
color: #ffffff;
top: 77.5vh;
}
.planet {
position: absolute;
display: flex;
color: #ffffff;
justify-content: center;
align-items: center;
transition: all 0.8s ease-in-out;
cursor: pointer;
z-index: 2;
background-size: contain;
background-repeat: no-repeat;
}
.planet .link {
width: 100%;
}
.planet:nth-child(1) {
background-image: url('../../assets/icons/About_Icon.png');
width: 9vw;
height: 9vw;
padding-right: 50px;
padding-bottom: 30px;
top: 0;
left: 0;
}
.planet:nth-child(2) {
background-image: url('../../assets/icons/FAQ_Icon.png');
width: 5.5vw;
height: 5.5vw;
top: 25%;
left: 1%;
}
.planet:nth-child(3) {
background-image: url('../../assets/icons/Schedule_Icon.png');
width: 10vw;
height: 10vw;
top: 34%;
left: 8%;
}
.planet:nth-child(4) {
background-image: url('../../assets/icons/Sponsors_Icon.png');
width: 9vw;
height: 9vw;
top: 55%;
left: 0%;
}
.planet:nth-child(5) {
background-image: url('../../assets/icons/Contact_Icon.png');
width: 11vw;
height: 11vw;
top: 80%;
left: 5%;
}
.planet:nth-child(6) {
background-image: url('../../assets/icons/Asteroid_Icon.png');
width: 5.5vw;
height: 5.5vw;
top: 48%;
left: 10%;
transform: rotate(160deg);
}
.planet:nth-child(7) {
background-image: url('../../assets/icons/Asteroid_Icon.png');
width: 3vw;
height: 3vw;
top: 78%;
left: 9%;
transform: rotate(30deg);
}
.planet:nth-child(8) {
background-image: url('../../assets/icons/Asteroid2_Icon.png');
width: 4.5vw;
height: 4.5vw;
top: 95%;
left: 2.5%;
}
.planet-title {
background-color: transparent;
color: #ffffff;
border: none;
font-size: 1.5vw;
cursor: pointer;
font-family: 'Audiowide', cursive;
text-shadow: 3.5px 3.5px #02111b;
width: 100%;
height: 100%;
}
.register-button {
position: absolute;
top: 87.5vh;
font-weight: bold;
font-size: 20px;
color: #ffffff;
padding-right: 10px;
cursor: pointer;
background-size: contain;
background-repeat: no-repeat;
}
@media screen and (max-width: 1600px) {
.slogan-wrapper {
width: 850px;
}
#sbuhacks-title {
font-size: 6rem;
}
#sbuhacks-year {
font-size: 4.5rem;
}
#landing-sponsor {
font-size: 2rem;
}
.landing-sub {
font-size: 1.5vw;
}
.planet:nth-child(1) {
width: 120px;
height: 120px;
}
.planet:nth-child(2) {
width: 90px;
height: 90px;
}
.planet:nth-child(3) {
width: 140px;
height: 140px;
}
.planet:nth-child(4) {
width: 140px;
height: 140px;
}
.planet:nth-child(5) {
width: 170px;
height: 170px;
}
.planet-title {
font-size: 24px;
}
}
@media screen and (max-width: 916px) {
.landing-container .planet {
left: -100%;
}
.slogan-wrapper {
width: 800px;
}
#sbuhacks-title {
font-size: 4.5rem;
}
#sbuhacks-year {
font-size: 3.5rem;
}
.landing-sub {
font-size: 3vw;
}
}
@media screen and (max-width: 500px) {
.slogan-wrapper {
width: 600px;
}
#sbuhacks-title {
font-size: 3rem;
text-shadow: none;
}
#sbuhacks-year {
font-size: 2rem;
text-shadow: none;
}
#sbuhacks-date,
#sbuhacks-slogan,
#landing-sponsor {
font-size: 4vw;
}
.landing-sub {
font-size: 4vw;
bottom: 20%;
}
.register-button {
bottom: 2%;
}
}
@media screen and (max-width: 320px) {
.slogan-wrapper {
padding: 0 0 70px 10px;
}
#sbuhacks-date,
#sbuhacks-slogan,
#landing-sponsor {
font-size: 5vw;
}
} |
---
title: "ee-palettes"
author: "Gennadii Donchyts, Fedor Baart & Justin Braaten"
output:
html_document:
self_contained: no
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
# About
*ee-palettes* is a module for generating color palettes in [Google Earth Engine](https://earthengine.google.com/) (EE) to be applied to mapped data.
# Add the module
Visit this [URL](https://code.earthengine.google.com/?accept_repo=users/gena/palettes) to add the module to the Reader repository of your EE account. After the module is added, you can find the source code in the Script Manager under: *Reader:users/gena/packages/palettes*.
# How to use
#### Load the module
You can access the ee-palettes through the `require()` function. Running the following line will make the palettes available to you through JavaScript (JS) object access notation. The returned variable will be a nested series of JS objects ending in lists of hex colors.
```
var palettes = require('users/gena/packages:palettes');
```
#### Find a palette
Find a palette you like from the list below. Each palette is defined by a group and a name, which are separated by a period (JS object dot notation), and a color level.
To retrieve a desired palette, use JS object notation to specify the group, name, and number of color levels. The number of colors available varies by palette, which are listed following the palette names below. Note that all non-ColorBrewer palettes have only 7 colors, so always use 7 as the 'color levels' property for these palettes.
```
print(palettes.colorbrewer.RdYlGn);
```
#### Define a palette
After determining the palette group, name, and color level, set the palette as a variable.
```
var palette = palettes.colorbrewer.RdYlGn[9];
```
#### Apply a palette
To apply the defined palette to map data, set the palette variable as the value for the `palette` key in the `visParams` object supplied to the `Map.addLayer()` function. It is also helpful to determine and define appropriate `min` and `max` values, to ensure a good stretch. Here is a complete working example for loading the *ee-palettes* module, defining a palette, and applying it to a MODIS NDVI image.
```
// Make a palette: a list of hex strings
var palettes = require('users/gena/packages:palettes');
var palette = palettes.colorbrewer.RdYlGn[9]
// Load a MODIS image
var img = ee.Image('MODIS/006/MOD09GA/2012_03_09');
// Calculate NDVI
var ndvi = img.normalizedDifference(['sur_refl_b02', 'sur_refl_b01']);
// Center the map
Map.setCenter(-120.7671, 40.8328, 7);
// Display NDVI with defined palette stretched between selected min and max
Map.addLayer(ndvi, {min: -0.3, max: 0.7, palette: palette}, 'NDVI');
```
# Palette manipulation
#### Palette reverse
Reverse a palette with the `reverse()` function.
```
var palette = palettes.colorbrewer.RdYlGn[9].reverse();
```
#### Palette subset
If you only want to use a section of a palette, you can subset the colors you want using the `slice()` function. For instance, if you only want the pink to yellow section of the *misc.gnuplot* palette, use the following palette definition.
```
var palette = palettes.misc.gnuplot[7].slice(3,7);
```
# Palettes
```{r pals, echo=FALSE, results='asis'}
files = list.files('../pals', '*.png', full.names=T)
bases = basename(files)
names = substr(bases, 1, nchar(bases)-4)
palInfo = read.csv("pals_info.csv", stringsAsFactors = F)
groups = unique(palInfo$group)
groups = c('ColorBrewer Sequential','ColorBrewer Diverging','ColorBrewer Qualitative',
'matplotlib', 'cmocean', 'Niccoli', 'Kovesi', 'Misc')
for(g in 1:length(groups)){
cat('\n\n###',groups[g],'\n\n')
these = which(palInfo$group == groups[g])
for(r in 1:length(these)){
thisOne = which(names == palInfo$jsName[these[r]])
pal = paste0('<img src="','./pals/', basename(files[thisOne]),'"> ',palInfo$figName[these[r]],' | ',gsub("|",",",palInfo$levels[these[r]], fixed=T),'<br/>')
cat(pal)
}
}
```
# References
Palettes were derived from the *pals* R library. Please see its [documentation](https://cran.r-project.org/web/packages/pals/pals.pdf) and [repository](https://github.com/kwstat/pals) for palette source information.
|
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.2;
import "./interfaces/IGravisPair.sol";
import "./interfaces/IGravisCallee.sol";
import "./interfaces/IGravisFactory.sol";
import "./GravisERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "./uniswapv2/libraries/Math.sol";
import "./uniswapv2/libraries/UQ112x112.sol";
contract GravisPair is IGravisPair, GravisERC20 {
using SafeMath for uint;
using UQ112x112 for uint224;
uint public constant override MINIMUM_LIQUIDITY = 10**3;
bytes4 private constant SELECTOR = bytes4(keccak256(bytes('transfer(address,uint256)')));
address public override factory;
address public override token0;
address public override token1;
uint112 private reserve0; // uses single storage slot, accessible via getReserves
uint112 private reserve1; // uses single storage slot, accessible via getReserves
uint32 private blockTimestampLast; // uses single storage slot, accessible via getReserves
uint public override price0CumulativeLast;
uint public override price1CumulativeLast;
uint public override kLast; // reserve0 * reserve1, as of immediately after the most recent liquidity event
uint private unlocked = 1;
modifier lock() {
require(unlocked == 1, 'Gravis: LOCKED');
unlocked = 0;
_;
unlocked = 1;
}
function getReserves() public view override returns (uint112 _reserve0, uint112 _reserve1, uint32 _blockTimestampLast) {
_reserve0 = reserve0;
_reserve1 = reserve1;
_blockTimestampLast = blockTimestampLast;
}
function _safeTransfer(address token, address to, uint value) private {
(bool success, bytes memory data) = token.call(abi.encodeWithSelector(SELECTOR, to, value));
require(success && (data.length == 0 || abi.decode(data, (bool))), 'Gravis: TRANSFER_FAILED');
}
event Mint(address indexed sender, uint amount0, uint amount1);
event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
event Swap(
address indexed sender,
uint amount0In,
uint amount1In,
uint amount0Out,
uint amount1Out,
address indexed to
);
event Sync(uint112 reserve0, uint112 reserve1);
constructor() public {
factory = msg.sender;
}
// called once by the factory at time of deployment
function initialize(address _token0, address _token1) external override {
require(msg.sender == factory, 'Gravis: FORBIDDEN'); // sufficient check
token0 = _token0;
token1 = _token1;
}
// update reserves and, on the first call per block, price accumulators
function _update(uint balance0, uint balance1, uint112 _reserve0, uint112 _reserve1) private {
require(balance0 <= uint112(-1) && balance1 <= uint112(-1), 'Gravis: OVERFLOW');
uint32 blockTimestamp = uint32(block.timestamp % 2**32);
uint32 timeElapsed = blockTimestamp - blockTimestampLast; // overflow is desired
if (timeElapsed > 0 && _reserve0 != 0 && _reserve1 != 0) {
// * never overflows, and + overflow is desired
price0CumulativeLast += uint(UQ112x112.encode(_reserve1).uqdiv(_reserve0)) * timeElapsed;
price1CumulativeLast += uint(UQ112x112.encode(_reserve0).uqdiv(_reserve1)) * timeElapsed;
}
reserve0 = uint112(balance0);
reserve1 = uint112(balance1);
blockTimestampLast = blockTimestamp;
emit Sync(reserve0, reserve1);
}
// if fee is on, mint liquidity equivalent to 1/6th of the growth in sqrt(k)
function _mintFee(uint112 _reserve0, uint112 _reserve1) private returns (bool feeOn) {
address feeTo = IGravisFactory(factory).feeTo();
feeOn = feeTo != address(0);
uint _kLast = kLast; // gas savings
if (feeOn) {
if (_kLast != 0) {
uint rootK = Math.sqrt(uint(_reserve0).mul(_reserve1));
uint rootKLast = Math.sqrt(_kLast);
if (rootK > rootKLast) {
uint numerator = totalSupply.mul(rootK.sub(rootKLast));
uint denominator = rootK.mul(3).add(rootKLast);
uint liquidity = numerator / denominator;
if (liquidity > 0) _mint(feeTo, liquidity);
}
}
} else if (_kLast != 0) {
kLast = 0;
}
}
// this low-level function should be called from a contract which performs important safety checks
function mint(address to) external lock override returns (uint liquidity) {
(uint112 _reserve0, uint112 _reserve1,) = getReserves(); // gas savings
uint balance0 = IERC20(token0).balanceOf(address(this));
uint balance1 = IERC20(token1).balanceOf(address(this));
uint amount0 = balance0.sub(_reserve0);
uint amount1 = balance1.sub(_reserve1);
bool feeOn = _mintFee(_reserve0, _reserve1);
uint _totalSupply = totalSupply; // gas savings, must be defined here since totalSupply can update in _mintFee
if (_totalSupply == 0) {
liquidity = Math.sqrt(amount0.mul(amount1)).sub(MINIMUM_LIQUIDITY);
_mint(address(0), MINIMUM_LIQUIDITY); // permanently lock the first MINIMUM_LIQUIDITY tokens
} else {
liquidity = Math.min(amount0.mul(_totalSupply) / _reserve0, amount1.mul(_totalSupply) / _reserve1);
}
require(liquidity > 0, 'Gravis: INSUFFICIENT_LIQUIDITY_MINTED');
_mint(to, liquidity);
_update(balance0, balance1, _reserve0, _reserve1);
if (feeOn) kLast = uint(reserve0).mul(reserve1); // reserve0 and reserve1 are up-to-date
emit Mint(msg.sender, amount0, amount1);
}
// this low-level function should be called from a contract which performs important safety checks
function burn(address to) external lock override returns (uint amount0, uint amount1) {
(uint112 _reserve0, uint112 _reserve1,) = getReserves(); // gas savings
address _token0 = token0; // gas savings
address _token1 = token1; // gas savings
uint balance0 = IERC20(_token0).balanceOf(address(this));
uint balance1 = IERC20(_token1).balanceOf(address(this));
uint liquidity = balanceOf[address(this)];
bool feeOn = _mintFee(_reserve0, _reserve1);
uint _totalSupply = totalSupply; // gas savings, must be defined here since totalSupply can update in _mintFee
amount0 = liquidity.mul(balance0) / _totalSupply; // using balances ensures pro-rata distribution
amount1 = liquidity.mul(balance1) / _totalSupply; // using balances ensures pro-rata distribution
require(amount0 > 0 && amount1 > 0, 'Gravis: INSUFFICIENT_LIQUIDITY_BURNED');
_burn(address(this), liquidity);
_safeTransfer(_token0, to, amount0);
_safeTransfer(_token1, to, amount1);
balance0 = IERC20(_token0).balanceOf(address(this));
balance1 = IERC20(_token1).balanceOf(address(this));
_update(balance0, balance1, _reserve0, _reserve1);
if (feeOn) kLast = uint(reserve0).mul(reserve1); // reserve0 and reserve1 are up-to-date
emit Burn(msg.sender, amount0, amount1, to);
}
// this low-level function should be called from a contract which performs important safety checks
function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external lock override {
require(amount0Out > 0 || amount1Out > 0, 'Gravis: INSUFFICIENT_OUTPUT_AMOUNT');
(uint112 _reserve0, uint112 _reserve1,) = getReserves(); // gas savings
require(amount0Out < _reserve0 && amount1Out < _reserve1, 'Gravis: INSUFFICIENT_LIQUIDITY');
uint balance0;
uint balance1;
{ // scope for _token{0,1}, avoids stack too deep errors
address _token0 = token0;
address _token1 = token1;
require(to != _token0 && to != _token1, 'Gravis: INVALID_TO');
if (amount0Out > 0) _safeTransfer(_token0, to, amount0Out); // optimistically transfer tokens
if (amount1Out > 0) _safeTransfer(_token1, to, amount1Out); // optimistically transfer tokens
if (data.length > 0) IGravisCallee(to).gravisCall(msg.sender, amount0Out, amount1Out, data);
balance0 = IERC20(_token0).balanceOf(address(this));
balance1 = IERC20(_token1).balanceOf(address(this));
}
uint amount0In = balance0 > _reserve0 - amount0Out ? balance0 - (_reserve0 - amount0Out) : 0;
uint amount1In = balance1 > _reserve1 - amount1Out ? balance1 - (_reserve1 - amount1Out) : 0;
require(amount0In > 0 || amount1In > 0, 'Gravis: INSUFFICIENT_INPUT_AMOUNT');
{ // scope for reserve{0,1}Adjusted, avoids stack too deep errors
uint balance0Adjusted = balance0.mul(1000).sub(amount0In.mul(2));
uint balance1Adjusted = balance1.mul(1000).sub(amount1In.mul(2));
require(balance0Adjusted.mul(balance1Adjusted) >= uint(_reserve0).mul(_reserve1).mul(1000**2), 'Gravis: K');
}
_update(balance0, balance1, _reserve0, _reserve1);
emit Swap(msg.sender, amount0In, amount1In, amount0Out, amount1Out, to);
}
// force balances to match reserves
function skim(address to) external lock override {
address _token0 = token0; // gas savings
address _token1 = token1; // gas savings
_safeTransfer(_token0, to, IERC20(_token0).balanceOf(address(this)).sub(reserve0));
_safeTransfer(_token1, to, IERC20(_token1).balanceOf(address(this)).sub(reserve1));
}
// force reserves to match balances
function sync() external lock override {
_update(IERC20(token0).balanceOf(address(this)), IERC20(token1).balanceOf(address(this)), reserve0, reserve1);
}
}
|
lexer grammar LTLLexer;
@lexer::header {
package owl.grammar;
}
// LOGIC
TRUE : 'tt' | 'true' | '1';
FALSE : 'ff' | 'false' | '0';
// Logical Unary
NOT : '!' | 'NOT';
// Logical Binary
IMP : '->' | '-->' | '=>' | '==>' | 'IMP';
BIIMP : '<->' | '<=>' | 'BIIMP';
XOR : '^' | 'XOR' | 'xor';
// Logical n-ary
AND : '&&' | '&' | 'AND' ;
OR : '||' | '|' | 'OR' ;
// Modal Unary
FINALLY : 'F';
GLOBALLY : 'G';
NEXT : 'X';
// Modal Binary
UNTIL : 'U';
WUNTIL : 'W';
RELEASE : 'R';
SRELEASE : 'M';
// MISC
LPAREN : '(';
RPAREN : ')';
LDQUOTE : '"' -> mode(DOUBLE_QUOTED);
LSQUOTE : '\'' -> mode(SINGLE_QUOTED);
// Need to be at the bottom because of precedence rules
// Include capital L for PRISM
VARIABLE : [a-zL_][a-zA-Z_0-9]*;
fragment
WHITESPACE : [ \t\n\r\f]+;
SKIP_DEF : WHITESPACE -> skip;
mode DOUBLE_QUOTED;
RDQUOTE : '"' -> mode(DEFAULT_MODE);
DOUBLE_QUOTED_VARIABLE : ~["]+;
mode SINGLE_QUOTED;
RSQUOTE : '\'' -> mode(DEFAULT_MODE);
SINGLE_QUOTED_VARIABLE : ~[']+;
mode DEFAULT_MODE;
ERROR : . ;
|
(reader defineClass: 'AbstractClassMapping' superclass: 'st.gravel.support.compiler.ast.AbstractMapping')
!
(reader addInstVar: 'classNode' type: 'ClassDescriptionNode')
!
(reader addMethod: 'As yet unclassified')
!
allInstVarsIn: aSystemMapping {SystemMapping} {^Arr[BoundVariableDeclarationNode]}
^self subclassResponsibility
!
(reader addMethod: 'accessing')
!
classNode {^ClassDescriptionNode}
^classNode
!
(reader addMethod: 'As yet unclassified')
!
identityClass {^JavaClass}
^self subclassResponsibility
!
(reader addMethod: 'accessing')
!
reference {^Reference}
^classNode reference
!
(reader addMethod: 'As yet unclassified')
!
superclassMappingIn: aSystemMapping {SystemMapping} {^AbstractClassMapping | Nil}
| superclassReference {Reference} |
superclassReference := self superclassReference.
superclassReference isNil ifTrue: [^nil].
^aSystemMapping classMappingAtReference: superclassReference
!
(reader addMethod: 'accessing')
!
superclassReference {^Reference}
^classNode superclassReference
!
|
pragma solidity ^0.5.6;
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be aplied to your functions to restrict their use to
* the owner.
*/
contract Ownable {
address payable private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
_owner = msg.sender;
emit OwnershipTransferred(address(0), _owner);
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view returns (address payable) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(isOwner(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Returns true if the caller is the current owner.
*/
function isOwner() public view returns (bool) {
return msg.sender == _owner;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* > Note: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address payable newOwner) public onlyOwner {
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
*/
function _transferOwnership(address payable newOwner) internal {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming languages.
* `SafeMath` restores this intuition by reverting the transaction when an
* operation overflows.
*
* Using this library instead of the unchecked operations eliminates an entire
* class of bugs, so it's recommended to use it always.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
* - Subtraction cannot overflow.
*
* _Available since v2.4.0._
*/
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
* - The divisor cannot be zero.
*
* _Available since v2.4.0._
*/
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
// Solidity only automatically asserts when dividing by 0
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
* - The divisor cannot be zero.
*
* _Available since v2.4.0._
*/
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
}
interface ICeik {
event Transfer(address indexed from, address indexed to, uint256 amount);
event Approval(address indexed owner, address indexed spender, uint256 amount);
function name() external pure returns (string memory);
function symbol() external pure returns (string memory);
function decimals() external pure returns (uint8);
function totalSupply() external pure returns (uint256);
function excluded(address user) external view returns (bool);
function _userInfo(address user) external view returns (uint256 lastBalance, uint256 lastMultiplier, uint256 resettingCount);
function balanceOf(address owner) external view returns (uint256 balance);
function transfer(address to, uint256 amount) external returns (bool success);
function transferFrom(address from, address to, uint256 amount) external returns (bool success);
function approve(address spender, uint256 amount) external returns (bool success);
function allowance(address owner, address spender) external view returns (uint256 remaining);
}
contract Airdrop is Ownable {
using SafeMath for uint256;
ICeik public ceik;
constructor(ICeik _ceik) public {
ceik = _ceik;
}
function airdrop(address[] calldata to, uint256 amount) payable external onlyOwner {
uint256 len = to.length;
for (uint256 i = 0; i < len; i = i.add(1)) {
ceik.transfer(to[i], amount);
}
}
} |
.. _sofa_chd_timing:
Timing Annotation
-----------------
.. _sofa_chd_timing_clb:
Configurable Logic Block
^^^^^^^^^^^^^^^^^^^^^^^^
The path delays in :numref:`fig_sofa_chd_fle_arch_timing` are listed in :numref:`table_sofa_chd_fle_arch_timing`.
.. _fig_sofa_chd_fle_arch_timing:
.. figure:: ./figures/sofa_chd_fle_arch_timing.svg
:width: 80%
:alt: Schematic of a logic element used in SOFA CHD FPGA
Schematic of a logic element used in SOFA CHD FPGA
.. _table_sofa_chd_fle_arch_timing:
.. table:: Path delays of logic element in the SOFA CHD FPGA
+-------------------------+------------------------------+
| Path / Delay | TT (unit: ns) |
+=========================+==============================+
| in0 -> LUT3_out[0] | 0.86 |
+-------------------------+------------------------------+
| in1 -> LUT3_out[0] | 0.58 |
+-------------------------+------------------------------+
| in2 -> B | 0.16 |
+-------------------------+------------------------------+
| B -> LUT3_out[0] | 0.32 |
+-------------------------+------------------------------+
| in0 -> LUT3_out[1] | 0.91 |
+-------------------------+------------------------------+
| in1 -> LUT3_out[1] | 0.63 |
+-------------------------+------------------------------+
| B -> LUT3_out[1] | 0.34 |
+-------------------------+------------------------------+
| in0 -> LUT4_out | 1.20 |
+-------------------------+------------------------------+
| in1 -> LUT4_out | 0.92 |
+-------------------------+------------------------------+
| in2 -> LUT4_out | 0.78 |
+-------------------------+------------------------------+
| in3 -> LUT4_out | 0.52 |
+-------------------------+------------------------------+
| LUT3_out[0] -> A | 0.17 |
+-------------------------+------------------------------+
| LUT4_out[0] -> A | 0.18 |
+-------------------------+------------------------------+
| A -> out[0] | 0.48 |
+-------------------------+------------------------------+
| A -> FF[0] | 0.15 |
+-------------------------+------------------------------+
| FF[0] -> out[0] | 0.48 |
+-------------------------+------------------------------+
| LUT3_out[1] -> out[1] | 0.47 |
+-------------------------+------------------------------+
| LUT3_out[1] -> FF[1] | 0.16 |
+-------------------------+------------------------------+
| FF[1] -> out[1] | 0.37 |
+-------------------------+------------------------------+
| regin -> FF[0] | 0.15 |
+-------------------------+------------------------------+
| FF[0] -> FF[1] | 0.16 |
+-------------------------+------------------------------+
.. _sofa_chd_timing_io:
I/O Block
^^^^^^^^^
The path delays of I/O blocks in SOFA CHD FPGA is same as the SOFA HD FPGA. See details in :ref:`sofa_hd_timing_io`.
.. _sofa_chd_timing_routing:
Routing Architecture
^^^^^^^^^^^^^^^^^^^^
The path delays in :numref:`fig_sofa_hd_routing_arch` are listed in :numref:`table_sofa_chd_routing_arch_timing`.
.. _table_sofa_chd_routing_arch_timing:
.. table:: Path delays of routing blocks in the SOFA CHD FPGA
+---------------------------+------------------------------+
| Path / Delay | TT (unit: ns) |
+===========================+==============================+
| A -> B | 0.81 |
+---------------------------+------------------------------+
| A -> C | 0.81 |
+---------------------------+------------------------------+
| A -> D | 0.81 |
+---------------------------+------------------------------+
| B -> E | 0.57 |
+---------------------------+------------------------------+
|
module NEXYS4_DDR
(
input CLK100MHZ
, input CPU_RESETN
, input BTNC
, input [15:0] SW
, output [15:0] LED
, input UART_TXD_IN
, output UART_RXD_OUT
);
wire clk_gen;
wire pll_locked;
sys_clk sys_clk
(
.clk_in1(CLK100MHZ)
, .reset(!CPU_RESETN)
, .clk_out1(clk_gen)
, .locked(pll_locked)
);
wire pss_arst;
assign pss_arst = !(CPU_RESETN & pll_locked);
sigma
#(
.CPU("riscv_1stage")
, .delay_test_flag(0)
, .mem_init("YES")
, .mem_type("hex")
, .mem_data("../sigma/sw/benchmarks/heartbeat_variable.riscv.hex")
, .mem_size(8192)
) sigma
(
.clk_i(clk_gen)
, .arst_i(pss_arst)
, .irq_btn_i(BTNC)
, .rx_i(UART_TXD_IN)
, .tx_o(UART_RXD_OUT)
, .gpio_bi({8'h0, SW, 8'h0})
, .gpio_bo(LED)
);
endmodule
|
set sha_type sha512
set sha_words 1
set sha_block_gap 4
set sha_i_bytes 8
set sha_o_bytes 8
set device_part xc7s50fgga484-2
set project_name [join [list $sha_type "_w" $sha_words "_g" $sha_block_gap "_i" [expr $sha_i_bytes * 8] "_o" [expr $sha_o_bytes * 8] ] ""]
|
---
description: SQLFetch(Visual FoxPro ODBC ๋๋ผ์ด๋ฒ)
title: SQLFetch (Visual FoxPro ODBC ๋๋ผ์ด๋ฒ) | Microsoft Docs
ms.custom: ''
ms.date: 01/19/2017
ms.prod: sql
ms.prod_service: connectivity
ms.reviewer: ''
ms.technology: connectivity
ms.topic: conceptual
helpviewer_keywords:
- SQLFetch function [ODBC], Visual FoxPro ODBC Driver
ms.assetid: 6198a006-6f25-4328-8403-2aba29b7041f
author: David-Engel
ms.author: v-daenge
ms.openlocfilehash: 7f5ea0c7919d9cdfa59a04750f5d22f16615d826
ms.sourcegitcommit: e700497f962e4c2274df16d9e651059b42ff1a10
ms.translationtype: MT
ms.contentlocale: ko-KR
ms.lasthandoff: 08/17/2020
ms.locfileid: "88500236"
---
# <a name="sqlfetch-visual-foxpro-odbc-driver"></a>SQLFetch(Visual FoxPro ODBC ๋๋ผ์ด๋ฒ)
> [!NOTE]
> ์ด ํญ๋ชฉ์๋ Visual FoxPro ODBC ๋๋ผ์ด๋ฒ ๊ด๋ จ ์ ๋ณด๊ฐ ํฌํจ ๋์ด ์์ต๋๋ค. ์ด ํจ์์ ๋ ํ ์ผ๋ฐ ์ ๋ณด๋ [ODBC API ์ฐธ์กฐ](../../odbc/reference/syntax/odbc-api-reference.md)์์ ์ ์ ํ ํญ๋ชฉ์ ์ฐธ์กฐ ํ์ธ์.
์ง์: ์ ์ฒด
ODBC API ๊ท์น: ์ฝ์ด ์์ค
๊ฒฐ๊ณผ ์งํฉ์ ํ ํ์ [SQLBindCol](../../odbc/microsoft/sqlbindcol-visual-foxpro-odbc-driver.md)์ ๋ ํ ์ด์ ํธ์ถ์์ ์ง์ ํ ์์น๋ก ๊ฒ์ ํฉ๋๋ค. ๋ฐ์ธ๋ฉ๋์ง ์์ ์ด์ ๋ ํ [SQLGetData](../../odbc/microsoft/sqlgetdata-visual-foxpro-odbc-driver.md) ํธ์ถ์ ์ํ ๋๋ผ์ด๋ฒ๋ฅผ ์ค๋น ํฉ๋๋ค.
์์ธํ ๋ด์ฉ์ *ODBC ํ๋ก๊ทธ๋๋จธ ์ฐธ์กฐ*์์ [sqlfetch](../../odbc/reference/syntax/sqlfetch-function.md) ๋ฅผ ์ฐธ์กฐ ํ์ธ์.
|
{-# LANGUAGE UnicodeSyntax #-}
module Perg
( perg )
where
-- base --------------------------------
import Control.Monad ( forever, when )
import Data.Function ( ($) )
import Data.List ( isInfixOf )
import Data.String ( String )
import System.IO ( IO, getLine, putStrLn )
--------------------------------------------------------------------------------
{-| read stdin forever, printing only lines that contain a given string -}
perg โท String -> IO ()
perg match = forever $ do
l <- getLine
when (match `isInfixOf` l) $ putStrLn l
-- that's all, folks! ----------------------------------------------------------
|
# This script is created by NSG2 beta1
# <http://wushoupong.googlepages.com/nsg>
#===================================
# Simulation parameters setup
#===================================
set val(stop) 10.0 ;# time of simulation end
#===================================
# Initialization
#===================================
#Create a ns simulator
set ns [new Simulator]
#Open the NS trace file
set tracefile [open ring.tr w]
$ns trace-all $tracefile
#Open the NAM trace file
set namfile [open ring.nam w]
$ns namtrace-all $namfile
#===================================
# Nodes Definition
#===================================
#Create 6 nodes
set n0 [$ns node]
set n1 [$ns node]
set n2 [$ns node]
set n3 [$ns node]
set n4 [$ns node]
set n5 [$ns node]
#===================================
# Links Definition
#===================================
#Createlinks between nodes
$ns duplex-link $n0 $n1 100.0Mb 10ms DropTail
$ns queue-limit $n0 $n1 50
$ns duplex-link $n2 $n1 100.0Mb 10ms DropTail
$ns queue-limit $n2 $n1 50
$ns duplex-link $n2 $n3 100.0Mb 10ms DropTail
$ns queue-limit $n2 $n3 50
$ns duplex-link $n4 $n3 100.0Mb 10ms DropTail
$ns queue-limit $n4 $n3 50
$ns duplex-link $n4 $n5 100.0Mb 10ms DropTail
$ns queue-limit $n4 $n5 50
$ns duplex-link $n5 $n0 100.0Mb 10ms DropTail
$ns queue-limit $n5 $n0 50
#Give node position (for NAM)
$ns duplex-link-op $n0 $n1 orient right-up
$ns duplex-link-op $n2 $n1 orient left-up
$ns duplex-link-op $n2 $n3 orient right-down
$ns duplex-link-op $n4 $n3 orient right-up
$ns duplex-link-op $n4 $n5 orient left
$ns duplex-link-op $n5 $n0 orient left-up
#===================================
# Agents Definition
#===================================
#Setup a TCP connection
set tcp0 [new Agent/TCP]
$ns attach-agent $n0 $tcp0
set sink3 [new Agent/TCPSink]
$ns attach-agent $n3 $sink3
$ns connect $tcp0 $sink3
$tcp0 set packetSize_ 1500
#===================================
# Applications Definition
#===================================
#Setup a FTP Application over TCP connection
set ftp0 [new Application/FTP]
$ftp0 attach-agent $tcp0
$ns at 0.0 "$ftp0 start"
$ns at 2.0 "$ftp0 stop"
#===================================
# Termination
#===================================
#Define a 'finish' procedure
proc finish {} {
global ns tracefile namfile
$ns flush-trace
close $tracefile
close $namfile
exec nam ring.nam &
exit 0
}
$ns at $val(stop) "$ns nam-end-wireless $val(stop)"
$ns at $val(stop) "finish"
$ns at $val(stop) "puts \"done\" ; $ns halt"
$ns run
|
--- Highlights terminal CSI ANSI color codes.
-- @module colorizer
local nvim = require 'colorizer/nvim'
local Trie = require 'colorizer/trie'
local bit = require 'bit'
local ffi = require 'ffi'
local nvim_buf_add_highlight = vim.api.nvim_buf_add_highlight
local nvim_buf_clear_namespace = vim.api.nvim_buf_clear_namespace
local nvim_buf_get_lines = vim.api.nvim_buf_get_lines
local nvim_get_current_buf = vim.api.nvim_get_current_buf
local band, lshift, bor, tohex = bit.band, bit.lshift, bit.bor, bit.tohex
local rshift = bit.rshift
local floor, min, max = math.floor, math.min, math.max
local COLOR_MAP
local COLOR_TRIE
local COLOR_NAME_MINLEN, COLOR_NAME_MAXLEN
local COLOR_NAME_SETTINGS = {
lowercase = false;
strip_digits = false;
}
--- Setup the COLOR_MAP and COLOR_TRIE
local function initialize_trie()
if not COLOR_TRIE then
COLOR_MAP = {}
COLOR_TRIE = Trie()
for k, v in pairs(nvim.get_color_map()) do
if not (COLOR_NAME_SETTINGS.strip_digits and k:match("%d+$")) then
COLOR_NAME_MINLEN = COLOR_NAME_MINLEN and min(#k, COLOR_NAME_MINLEN) or #k
COLOR_NAME_MAXLEN = COLOR_NAME_MAXLEN and max(#k, COLOR_NAME_MAXLEN) or #k
local rgb_hex = tohex(v, 6)
COLOR_MAP[k] = rgb_hex
COLOR_TRIE:insert(k)
if COLOR_NAME_SETTINGS.lowercase then
local lowercase = k:lower()
COLOR_MAP[lowercase] = rgb_hex
COLOR_TRIE:insert(lowercase)
end
end
end
end
end
local function merge(...)
local res = {}
for i = 1,select("#", ...) do
local o = select(i, ...)
for k,v in pairs(o) do
res[k] = v
end
end
return res
end
local DEFAULT_OPTIONS = {
RGB = true; -- #RGB hex codes
RRGGBB = true; -- #RRGGBB hex codes
names = true; -- "Name" codes like Blue
RRGGBBAA = false; -- #RRGGBBAA hex codes
rgb_fn = false; -- CSS rgb() and rgba() functions
hsl_fn = false; -- CSS hsl() and hsla() functions
css = false; -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB
css_fn = false; -- Enable all CSS *functions*: rgb_fn, hsl_fn
-- Available modes: foreground, background
mode = 'background'; -- Set the display mode.
}
-- -- TODO use rgb as the return value from the matcher functions
-- -- instead of the rgb_hex. Can be the highlight key as well
-- -- when you shift it left 8 bits. Use the lower 8 bits for
-- -- indicating which highlight mode to use.
-- ffi.cdef [[
-- typedef struct { uint8_t r, g, b; } colorizer_rgb;
-- ]]
-- local rgb_t = ffi.typeof 'colorizer_rgb'
-- Create a lookup table where the bottom 4 bits are used to indicate the
-- category and the top 4 bits are the hex value of the ASCII byte.
local BYTE_CATEGORY = ffi.new 'uint8_t[256]'
local CATEGORY_DIGIT = lshift(1, 0);
local CATEGORY_ALPHA = lshift(1, 1);
local CATEGORY_HEX = lshift(1, 2);
local CATEGORY_ALPHANUM = bor(CATEGORY_ALPHA, CATEGORY_DIGIT)
do
local b = string.byte
for i = 0, 255 do
local v = 0
-- Digit is bit 1
if i >= b'0' and i <= b'9' then
v = bor(v, lshift(1, 0))
v = bor(v, lshift(1, 2))
v = bor(v, lshift(i - b'0', 4))
end
local lowercase = bor(i, 0x20)
-- Alpha is bit 2
if lowercase >= b'a' and lowercase <= b'z' then
v = bor(v, lshift(1, 1))
if lowercase <= b'f' then
v = bor(v, lshift(1, 2))
v = bor(v, lshift(lowercase - b'a'+10, 4))
end
end
BYTE_CATEGORY[i] = v
end
end
local function byte_is_hex(byte)
return band(BYTE_CATEGORY[byte], CATEGORY_HEX) ~= 0
end
local function byte_is_alphanumeric(byte)
local category = BYTE_CATEGORY[byte]
return band(category, CATEGORY_ALPHANUM) ~= 0
end
local function parse_hex(b)
return rshift(BYTE_CATEGORY[b], 4)
end
local function percent_or_hex(v)
if v:sub(-1,-1) == "%" then
return tonumber(v:sub(1,-2))/100*255
end
local x = tonumber(v)
if x > 255 then return end
return x
end
--- Determine whether to use black or white text
-- Ref: https://stackoverflow.com/a/1855903/837964
-- https://stackoverflow.com/questions/596216/formula-to-determine-brightness-of-rgb-color
local function color_is_bright(r, g, b)
-- Counting the perceptive luminance - human eye favors green color
local luminance = (0.299*r + 0.587*g + 0.114*b)/255
if luminance > 0.5 then
return true -- Bright colors, black font
else
return false -- Dark colors, white font
end
end
-- https://gist.github.com/mjackson/5311256
local function hue_to_rgb(p, q, t)
if t < 0 then t = t + 1 end
if t > 1 then t = t - 1 end
if t < 1/6 then return p + (q - p) * 6 * t end
if t < 1/2 then return q end
if t < 2/3 then return p + (q - p) * (2/3 - t) * 6 end
return p
end
local function hsl_to_rgb(h, s, l)
if h > 1 or s > 1 or l > 1 then return end
if s == 0 then
local r = l * 255
return r, r, r
end
local q
if l < 0.5 then
q = l * (1 + s)
else
q = l + s - l * s
end
local p = 2 * l - q
return 255*hue_to_rgb(p, q, h + 1/3), 255*hue_to_rgb(p, q, h), 255*hue_to_rgb(p, q, h - 1/3)
end
local function color_name_parser(line, i)
if i > 1 and byte_is_alphanumeric(line:byte(i-1)) then
return
end
if #line < i + COLOR_NAME_MINLEN - 1 then return end
local prefix = COLOR_TRIE:longest_prefix(line, i)
if prefix then
-- Check if there is a letter here so as to disallow matching here.
-- Take the Blue out of Blueberry
-- Line end or non-letter.
local next_byte_index = i + #prefix
if #line >= next_byte_index and byte_is_alphanumeric(line:byte(next_byte_index)) then
return
end
return #prefix, COLOR_MAP[prefix]
end
end
local b_hash = ("#"):byte()
local function rgb_hex_parser(line, i, minlen, maxlen)
if i > 1 and byte_is_alphanumeric(line:byte(i-1)) then
return
end
if line:byte(i) ~= b_hash then
return
end
local j = i + 1
if #line < j + minlen - 1 then return end
local n = j + maxlen
local alpha
local v = 0
while j <= min(n, #line) do
local b = line:byte(j)
if not byte_is_hex(b) then break end
if j - i >= 7 then
alpha = parse_hex(b) + lshift(alpha or 0, 4)
else
v = parse_hex(b) + lshift(v, 4)
end
j = j + 1
end
if #line >= j and byte_is_alphanumeric(line:byte(j)) then
return
end
local length = j - i
if length ~= 4 and length ~= 7 and length ~= 9 then return end
if alpha then
alpha = tonumber(alpha)/255
local r = floor(band(v, 0xFF)*alpha)
local g = floor(band(rshift(v, 8), 0xFF)*alpha)
local b = floor(band(rshift(v, 16), 0xFF)*alpha)
v = bor(lshift(r, 16), lshift(g, 8), b)
return 9, tohex(v, 6)
end
return length, line:sub(i+1, i+length-1)
end
-- TODO consider removing the regexes here
-- TODO this might not be the best approach to alpha channel.
-- Things like pumblend might be useful here.
local css_fn = {}
do
local CSS_RGB_FN_MINIMUM_LENGTH = #'rgb(0,0,0)' - 1
local CSS_RGBA_FN_MINIMUM_LENGTH = #'rgba(0,0,0,0)' - 1
local CSS_HSL_FN_MINIMUM_LENGTH = #'hsl(0,0%,0%)' - 1
local CSS_HSLA_FN_MINIMUM_LENGTH = #'hsla(0,0%,0%,0)' - 1
function css_fn.rgb(line, i)
if #line < i + CSS_RGB_FN_MINIMUM_LENGTH then return end
local r, g, b, match_end = line:sub(i):match("^rgb%(%s*(%d+%%?)%s*,%s*(%d+%%?)%s*,%s*(%d+%%?)%s*%)()")
if not match_end then return end
r = percent_or_hex(r) if not r then return end
g = percent_or_hex(g) if not g then return end
b = percent_or_hex(b) if not b then return end
local rgb_hex = tohex(bor(lshift(r, 16), lshift(g, 8), b), 6)
return match_end - 1, rgb_hex
end
function css_fn.hsl(line, i)
if #line < i + CSS_HSL_FN_MINIMUM_LENGTH then return end
local h, s, l, match_end = line:sub(i):match("^hsl%(%s*(%d+)%s*,%s*(%d+)%%%s*,%s*(%d+)%%%s*%)()")
if not match_end then return end
h = tonumber(h) if h > 360 then return end
s = tonumber(s) if s > 100 then return end
l = tonumber(l) if l > 100 then return end
local r, g, b = hsl_to_rgb(h/360, s/100, l/100)
if r == nil or g == nil or b == nil then return end
local rgb_hex = tohex(bor(lshift(floor(r), 16), lshift(floor(g), 8), floor(b)), 6)
return match_end - 1, rgb_hex
end
function css_fn.rgba(line, i)
if #line < i + CSS_RGBA_FN_MINIMUM_LENGTH then return end
local r, g, b, a, match_end = line:sub(i):match("^rgba%(%s*(%d+%%?)%s*,%s*(%d+%%?)%s*,%s*(%d+%%?)%s*,%s*([.%d]+)%s*%)()")
if not match_end then return end
a = tonumber(a) if not a or a > 1 then return end
r = percent_or_hex(r) if not r then return end
g = percent_or_hex(g) if not g then return end
b = percent_or_hex(b) if not b then return end
local rgb_hex = tohex(bor(lshift(floor(r*a), 16), lshift(floor(g*a), 8), floor(b*a)), 6)
return match_end - 1, rgb_hex
end
function css_fn.hsla(line, i)
if #line < i + CSS_HSLA_FN_MINIMUM_LENGTH then return end
local h, s, l, a, match_end = line:sub(i):match("^hsla%(%s*(%d+)%s*,%s*(%d+)%%%s*,%s*(%d+)%%%s*,%s*([.%d]+)%s*%)()")
if not match_end then return end
a = tonumber(a) if not a or a > 1 then return end
h = tonumber(h) if h > 360 then return end
s = tonumber(s) if s > 100 then return end
l = tonumber(l) if l > 100 then return end
local r, g, b = hsl_to_rgb(h/360, s/100, l/100)
if r == nil or g == nil or b == nil then return end
local rgb_hex = tohex(bor(lshift(floor(r*a), 16), lshift(floor(g*a), 8), floor(b*a)), 6)
return match_end - 1, rgb_hex
end
end
local css_function_parser, rgb_function_parser, hsl_function_parser
do
local CSS_FUNCTION_TRIE = Trie {'rgb', 'rgba', 'hsl', 'hsla'}
local RGB_FUNCTION_TRIE = Trie {'rgb', 'rgba'}
local HSL_FUNCTION_TRIE = Trie {'hsl', 'hsla'}
css_function_parser = function(line, i)
local prefix = CSS_FUNCTION_TRIE:longest_prefix(line:sub(i))
if prefix then
return css_fn[prefix](line, i)
end
end
rgb_function_parser = function(line, i)
local prefix = RGB_FUNCTION_TRIE:longest_prefix(line:sub(i))
if prefix then
return css_fn[prefix](line, i)
end
end
hsl_function_parser = function(line, i)
local prefix = HSL_FUNCTION_TRIE:longest_prefix(line:sub(i))
if prefix then
return css_fn[prefix](line, i)
end
end
end
local function compile_matcher(matchers)
local parse_fn = matchers[1]
for j = 2, #matchers do
local old_parse_fn = parse_fn
local new_parse_fn = matchers[j]
parse_fn = function(line, i)
local length, rgb_hex = new_parse_fn(line, i)
if length then return length, rgb_hex end
return old_parse_fn(line, i)
end
end
return parse_fn
end
--- Default namespace used in `highlight_buffer` and `attach_to_buffer`.
-- The name is "terminal_highlight"
-- @see highlight_buffer
-- @see attach_to_buffer
local DEFAULT_NAMESPACE = nvim.create_namespace "colorizer"
local HIGHLIGHT_NAME_PREFIX = "colorizer"
local HIGHLIGHT_MODE_NAMES = {
background = "mb";
foreground = "mf";
}
local HIGHLIGHT_CACHE = {}
--- Make a deterministic name for a highlight given these attributes
local function make_highlight_name(rgb, mode)
return table.concat({HIGHLIGHT_NAME_PREFIX, HIGHLIGHT_MODE_NAMES[mode], rgb}, '_')
end
local function create_highlight(rgb_hex, options)
local mode = options.mode or 'background'
-- TODO validate rgb format?
rgb_hex = rgb_hex:lower()
local cache_key = table.concat({HIGHLIGHT_MODE_NAMES[mode], rgb_hex}, "_")
local highlight_name = HIGHLIGHT_CACHE[cache_key]
-- Look up in our cache.
if not highlight_name then
if #rgb_hex == 3 then
rgb_hex = table.concat {
rgb_hex:sub(1,1):rep(2);
rgb_hex:sub(2,2):rep(2);
rgb_hex:sub(3,3):rep(2);
}
end
-- Create the highlight
highlight_name = make_highlight_name(rgb_hex, mode)
if mode == 'foreground' then
nvim.ex.highlight(highlight_name, "guifg=#"..rgb_hex)
else
local r, g, b = rgb_hex:sub(1,2), rgb_hex:sub(3,4), rgb_hex:sub(5,6)
r, g, b = tonumber(r,16), tonumber(g,16), tonumber(b,16)
local fg_color
if color_is_bright(r,g,b) then
fg_color = "Black"
else
fg_color = "White"
end
nvim.ex.highlight(highlight_name, "guifg="..fg_color, "guibg=#"..rgb_hex)
end
HIGHLIGHT_CACHE[cache_key] = highlight_name
end
return highlight_name
end
local MATCHER_CACHE = {}
local function make_matcher(options)
local enable_names = options.css or options.names
local enable_RGB = options.css or options.RGB
local enable_RRGGBB = options.css or options.RRGGBB
local enable_RRGGBBAA = options.css or options.RRGGBBAA
local enable_rgb = options.css or options.css_fns or options.rgb_fn
local enable_hsl = options.css or options.css_fns or options.hsl_fn
local matcher_key = bor(
lshift(enable_names and 1 or 0, 0),
lshift(enable_RGB and 1 or 0, 1),
lshift(enable_RRGGBB and 1 or 0, 2),
lshift(enable_RRGGBBAA and 1 or 0, 3),
lshift(enable_rgb and 1 or 0, 4),
lshift(enable_hsl and 1 or 0, 5))
if matcher_key == 0 then return end
local loop_parse_fn = MATCHER_CACHE[matcher_key]
if loop_parse_fn then
return loop_parse_fn
end
local loop_matchers = {}
if enable_names then
table.insert(loop_matchers, color_name_parser)
end
do
local valid_lengths = {[3] = enable_RGB, [6] = enable_RRGGBB, [8] = enable_RRGGBBAA}
local minlen, maxlen
for k, v in pairs(valid_lengths) do
if v then
minlen = minlen and min(k, minlen) or k
maxlen = maxlen and max(k, maxlen) or k
end
end
if minlen then
table.insert(loop_matchers, function(line, i)
local length, rgb_hex = rgb_hex_parser(line, i, minlen, maxlen)
if length and valid_lengths[length-1] then
return length, rgb_hex
end
end)
end
end
if enable_rgb and enable_hsl then
table.insert(loop_matchers, css_function_parser)
elseif enable_rgb then
table.insert(loop_matchers, rgb_function_parser)
elseif enable_hsl then
table.insert(loop_matchers, hsl_function_parser)
end
loop_parse_fn = compile_matcher(loop_matchers)
MATCHER_CACHE[matcher_key] = loop_parse_fn
return loop_parse_fn
end
--[[-- Highlight the buffer region.
Highlight starting from `line_start` (0-indexed) for each line described by `lines` in the
buffer `buf` and attach it to the namespace `ns`.
@tparam integer buf buffer id.
@tparam[opt=DEFAULT_NAMESPACE] integer ns the namespace id. Create it with `vim.api.create_namespace`
@tparam {string,...} lines the lines to highlight from the buffer.
@tparam integer line_start should be 0-indexed
@param options Configuration options as described in `setup`
@see setup
]]
local function highlight_buffer(buf, ns, lines, line_start, options)
-- TODO do I have to put this here?
initialize_trie()
ns = ns or DEFAULT_NAMESPACE
local loop_parse_fn = make_matcher(options)
for current_linenum, line in ipairs(lines) do
current_linenum = current_linenum - 1 + line_start
-- Upvalues are options and current_linenum
local i = 1
while i < #line do
local length, rgb_hex = loop_parse_fn(line, i)
if length then
local highlight_name = create_highlight(rgb_hex, options)
nvim_buf_add_highlight(buf, ns, highlight_name, current_linenum, i-1, i+length-1)
i = i + length
else
i = i + 1
end
end
end
end
---
-- USER FACING FUNCTIONALITY
---
local SETUP_SETTINGS = {
exclusions = {};
default_options = DEFAULT_OPTIONS;
}
local BUFFER_OPTIONS = {}
local FILETYPE_OPTIONS = {}
local function rehighlight_buffer(buf, options)
local ns = DEFAULT_NAMESPACE
if buf == 0 or buf == nil then
buf = nvim_get_current_buf()
end
assert(options)
nvim_buf_clear_namespace(buf, ns, 0, -1)
local lines = nvim_buf_get_lines(buf, 0, -1, true)
highlight_buffer(buf, ns, lines, 0, options)
end
local function new_buffer_options(buf)
local filetype = nvim.buf_get_option(buf, 'filetype')
return FILETYPE_OPTIONS[filetype] or SETUP_SETTINGS.default_options
end
--- Attach to a buffer and continuously highlight changes.
-- @tparam[opt=0|nil] integer buf A value of 0 implies the current buffer.
-- @param[opt] options Configuration options as described in `setup`
-- @see setup
local function attach_to_buffer(buf, options)
if buf == 0 or buf == nil then
buf = nvim_get_current_buf()
end
local already_attached = BUFFER_OPTIONS[buf] ~= nil
local ns = DEFAULT_NAMESPACE
if not options then
options = new_buffer_options(buf)
end
BUFFER_OPTIONS[buf] = options
rehighlight_buffer(buf, options)
if already_attached then
return
end
-- send_buffer: true doesn't actually do anything in Lua (yet)
nvim.buf_attach(buf, false, {
on_lines = function(event_type, buf, changed_tick, firstline, lastline, new_lastline)
-- This is used to signal stopping the handler highlights
if not BUFFER_OPTIONS[buf] then
return true
end
nvim_buf_clear_namespace(buf, ns, firstline, new_lastline)
local lines = nvim_buf_get_lines(buf, firstline, new_lastline, true)
highlight_buffer(buf, ns, lines, firstline, BUFFER_OPTIONS[buf])
end;
on_detach = function()
BUFFER_OPTIONS[buf] = nil
end;
})
end
--- Stop highlighting the current buffer.
-- @tparam[opt=0|nil] integer buf A value of 0 or nil implies the current buffer.
-- @tparam[opt=DEFAULT_NAMESPACE] integer ns the namespace id.
local function detach_from_buffer(buf, ns)
if buf == 0 or buf == nil then
buf = nvim_get_current_buf()
end
nvim_buf_clear_namespace(buf, ns or DEFAULT_NAMESPACE, 0, -1)
BUFFER_OPTIONS[buf] = nil
end
--- Easy to use function if you want the full setup without fine grained control.
-- Setup an autocmd which enables colorizing for the filetypes and options specified.
--
-- By default highlights all FileTypes.
--
-- Example config:
-- ```
-- { 'scss', 'html', css = { rgb_fn = true; }, javascript = { no_names = true } }
-- ```
--
-- You can combine an array and more specific options.
-- Possible options:
-- - `no_names`: Don't highlight names like Blue
-- - `rgb_fn`: Highlight `rgb(...)` functions.
-- - `mode`: Highlight mode. Valid options: `foreground`,`background`
--
-- @param[opt={'*'}] filetypes A table/array of filetypes to selectively enable and/or customize. By default, enables all filetypes.
-- @tparam[opt] {[string]=string} default_options Default options to apply for the filetypes enable.
-- @usage require'colorizer'.setup()
local function setup(filetypes, user_default_options)
if not nvim.o.termguicolors then
nvim.err_writeln("&termguicolors must be set")
return
end
FILETYPE_OPTIONS = {}
SETUP_SETTINGS = {
exclusions = {};
default_options = merge(DEFAULT_OPTIONS, user_default_options or {});
}
-- Initialize this AFTER setting COLOR_NAME_SETTINGS
initialize_trie()
function COLORIZER_SETUP_HOOK()
local filetype = nvim.bo.filetype
if SETUP_SETTINGS.exclusions[filetype] then
return
end
local options = FILETYPE_OPTIONS[filetype] or SETUP_SETTINGS.default_options
attach_to_buffer(nvim_get_current_buf(), options)
end
nvim.ex.augroup("ColorizerSetup")
nvim.ex.autocmd_()
if not filetypes then
nvim.ex.autocmd("FileType * lua COLORIZER_SETUP_HOOK()")
else
for k, v in pairs(filetypes) do
local filetype
local options = SETUP_SETTINGS.default_options
if type(k) == 'string' then
filetype = k
if type(v) ~= 'table' then
nvim.err_writeln("colorizer: Invalid option type for filetype "..filetype)
else
options = merge(SETUP_SETTINGS.default_options, v)
assert(HIGHLIGHT_MODE_NAMES[options.mode or 'background'], "colorizer: Invalid mode: "..tostring(options.mode))
end
else
filetype = v
end
-- Exclude
if filetype:sub(1,1) == '!' then
SETUP_SETTINGS.exclusions[filetype:sub(2)] = true
else
FILETYPE_OPTIONS[filetype] = options
-- TODO What's the right mode for this? BufEnter?
nvim.ex.autocmd("FileType", filetype, "lua COLORIZER_SETUP_HOOK()")
end
end
end
nvim.ex.augroup("END")
end
--- Reload all of the currently active highlighted buffers.
local function reload_all_buffers()
for buf, buffer_options in pairs(BUFFER_OPTIONS) do
attach_to_buffer(buf)
end
end
--- Return the currently active buffer options.
-- @tparam[opt=0|nil] integer buf A value of 0 or nil implies the current buffer.
local function get_buffer_options(buf)
if buf == 0 or buf == nil then
buf = nvim_get_current_buf()
end
return merge({}, BUFFER_OPTIONS[buf])
end
--- @export
return {
DEFAULT_NAMESPACE = DEFAULT_NAMESPACE;
setup = setup;
attach_to_buffer = attach_to_buffer;
detach_from_buffer = detach_from_buffer;
highlight_buffer = highlight_buffer;
reload_all_buffers = reload_all_buffers;
get_buffer_options = get_buffer_options;
}
|
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
exclude-result-prefixes="doc"
version='1.0'>
<!--
Copyright 2002-2004 The Apache Software Foundation
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.
-->
<!--
<xsl:output method="html"
encoding="ISO-8859-1"
indent="no"/>
-->
<!--
********************************************************************
$Id$
********************************************************************
-->
<!-- ==================================================================== -->
<xsl:param name="refentry.separator" select="1"/>
<xsl:include href="/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/html/chunk.xsl"/>
<xsl:include href="rivet.xsl"/>
</xsl:stylesheet>
|
train.model.layerInfoTable.title=ะะฝัะพัะผะฐัะธั ะพ ัะปะพะต
train.model.activationsChart.title=ะะบัะธะฒะฐัะธะธ ัะปะพั
train.model.activationsChart.titleShort=ะะบัะธะฒะฐัะธะธ
train.model.lrChart.title=ะกะบะพัะพััั ะพะฑััะตะฝะธั (LR)
train.model.lrChart.titleShort=ะกะบะพัะพััั ะพะฑััะตะฝะธั
train.model.paramHistChart.title=ะะธััะพะณัะฐะผะผะฐ ะฟะฐัะฐะผะตััะพะฒ ัะปะพั
train.model.updateHistChart.title=ะะธััะพะณัะฐะผะผะฐ ะพะฑะฝะพะฒะปะตะฝะธะน ัะปะพั
train.model.meanmag.btn.ratio=Ratio
train.model.meanmag.btn.param=Param
train.model.meanmag.btn.update=Updates
train.model.layerinfotable.layerName=ะะผั ัะปะพั
train.model.layerinfotable.layerType=ะขะธะฟ ัะปะพั
train.model.layerinfotable.layerNIn=ะะพะป-ะฒะพ ะฒั
ะพะดะพะฒ
train.model.layerinfotable.layerSize=ะ ะฐะทะผะตั ัะปะพั
train.model.layerinfotable.layerNParams=ะะพะป-ะฒะพ ะฟะฐัะฐะผะตััะพะฒ
train.model.layerinfotable.layerActivationFn=ะคัะฝะบัะธั ะฐะบัะธะฒะฐัะธะธ
train.model.layerinfotable.layerWeightInit=ะะฝะธัะธะฐะปะธะทะฐัะธั ะฒะตัะพะฒ
train.model.layerinfotable.layerUpdater=ะะฟะดะตะนัะตั
train.model.layerinfotable.layerSubsamplingPoolingType=ะขะธะฟ ะฒัะฑะพัะบะธ
train.model.layerinfotable.layerCnnKernel=ะ ะฐะทะผะตั ัะดัะฐ
train.model.layerinfotable.layerCnnStride=ะจะฐะณ
train.model.layerinfotable.layerCnnPadding=ะััััะฟ |
package Mints::View::Text;
use base Mints::View;
use strict;
our $VERSION = '0.01';
1; |
package ffuf
import (
"net/http"
"net/url"
"time"
)
// Response struct holds the meaningful data returned from request and is meant for passing to filters
type Response struct {
StatusCode int64
Headers map[string][]string
Data []byte
ContentLength int64
ContentWords int64
ContentLines int64
ContentType string
Cancelled bool
Request *Request
Raw string
ResultFile string
Time time.Duration
}
// GetRedirectLocation returns the redirect location for a 3xx redirect HTTP response
func (resp *Response) GetRedirectLocation(absolute bool) string {
redirectLocation := ""
if resp.StatusCode >= 300 && resp.StatusCode <= 399 {
if loc, ok := resp.Headers["Location"]; ok {
if len(loc) > 0 {
redirectLocation = loc[0]
}
}
}
if absolute {
redirectUrl, err := url.Parse(redirectLocation)
if err != nil {
return redirectLocation
}
baseUrl, err := url.Parse(resp.Request.Url)
if err != nil {
return redirectLocation
}
if redirectUrl.IsAbs() && UrlEqual(redirectUrl, baseUrl) {
redirectLocation = redirectUrl.Scheme + "://" +
baseUrl.Host + redirectUrl.Path
} else {
redirectLocation = baseUrl.ResolveReference(redirectUrl).String()
}
}
return redirectLocation
}
func UrlEqual(url1, url2 *url.URL) bool {
if url1.Hostname() != url2.Hostname() {
return false
}
if url1.Scheme != url2.Scheme {
return false
}
p1, p2 := getUrlPort(url1), getUrlPort(url2)
if p1 != p2 {
return false
}
return true
}
func getUrlPort(url *url.URL) string {
var portMap = map[string]string{
"http": "80",
"https": "443",
}
p := url.Port()
if p == "" {
p = portMap[url.Scheme]
}
return p
}
func NewResponse(httpresp *http.Response, req *Request) Response {
var resp Response
resp.Request = req
resp.StatusCode = int64(httpresp.StatusCode)
resp.ContentType = httpresp.Header.Get("Content-Type")
resp.Headers = httpresp.Header
resp.Cancelled = false
resp.Raw = ""
resp.ResultFile = ""
return resp
}
|
LIBRARY IEEE;
USE IEEE.STD_LOGIC_1164.ALL;
USE IEEE.STD_LOGIC_UNSIGNED.ALL;
USE IEEE.NUMERIC_STD.ALL;
ENTITY BCD2BIN IS
PORT (
Input1, Input2 : IN STD_LOGIC_VECTOR (7 DOWNTO 0);
Output1, Output2 : OUT STD_LOGIC_VECTOR (7 DOWNTO 0);
Cout : OUT STD_LOGIC);
END BCD2BIN;
ARCHITECTURE Behavioral OF BCD2BIN IS
-- Defining Signals
SIGNAL Digit1Dec : INTEGER := 0;
SIGNAL Digit2Dec : INTEGER := 0;
SIGNAL Digit3Dec : INTEGER := 0;
SIGNAL Digit4Dec : INTEGER := 0;
SIGNAL DecNum : INTEGER := 0;
SIGNAL BinNum : STD_LOGIC_VECTOR (15 DOWNTO 0);
BEGIN
-- Extracting Each Digit
Digit1Dec <= conv_integer(Input1(3 DOWNTO 0));
Digit2Dec <= conv_integer(Input1(7 DOWNTO 4));
Digit3Dec <= conv_integer(Input2(3 DOWNTO 0));
Digit4Dec <= conv_integer(Input2(7 DOWNTO 4));
-- Calculating Decimal Number
DecNum <= Digit1Dec + (Digit2Dec * 10) + (Digit3Dec * 100) + (Digit4Dec * 1000);
-- Converting Decimal Number to Binary Number
BinNum <= STD_LOGIC_VECTOR(to_unsigned(DecNum, 16));
-- Slicing the Binary Number to Output1 and Output 2
Output1 <= BinNum(7 DOWNTO 0);
Output2 <= BinNum(15 DOWNTO 8);
-- Setting Cout with MSB
Cout <= BinNum(15);
END Behavioral; |
/**
* Copyright ${license.git.copyrightYears} the original author or authors.
*
* 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.
*/
/*
* when new flags are needed, take them from
*
* http://www.printableworldflags.com/flag-icon
*
* that are free for any kind of usage
*/
ul.i18n {list-style-type:none;}
li.en {background: url('../images/en.png') left no-repeat;padding-left: 32px; margin: 10px}
li.es {background: url('../images/es.png') left no-repeat;padding-left: 32px; margin: 10px}
li.ja {background: url('../images/ja.png') left no-repeat;padding-left: 32px; margin: 10px}
li.zh {background: url('../images/zh.png') left no-repeat;padding-left: 32px; margin: 10px}
li.ko {background: url('../images/ko.png') left no-repeat;padding-left: 32px; margin: 10px}
|
--[[
================================================================================================
Lua Module File: animationCalls.lua
Module Summary: Contains Button Cascading Animation Functions as reusable code.
Derived from the Defold Main Menu Example at: https://www.defold.com/tutorials/main-menu/
================================================================================================
]]
-- The table "M" contains the module
local M = {}
-- ---------------------------------------------------------------------------------------------
-- Window Animation Functions
function M.animateWindow2(self, node)
DEBUG_MESSAGE = "Animating Window"
-- Animates scale to 100%
local s = 1.0
gui.animate(node, gui.PROP_SCALE, vmath.vector4(s, s, s, 0), gui.EASING_INOUT, 0.4, 0)
end
function M.animateWindow1(node, d)
-- Change Scale to reduce size
local start_scale = 0.01
gui.set_scale(node, vmath.vector4(start_scale, start_scale, start_scale, 0))
-- Get the current color and set alpha to 0 as a basis for fading up
local from_color = gui.get_color(node)
local to_color = gui.get_color(node)
from_color.w = 0
gui.set_color(node, from_color)
-- Animate the alpha value from 0 to 1
gui.animate(node, gui.PROP_COLOR, to_color, gui.EASING_IN, 1.5, d)
-- Animate the scale up to 150%
local s = 1.5
gui.animate(node, gui.PROP_SCALE, vmath.vector4(s, s, s, 0), gui.EASING_IN, 1.2,
d, M.animateWindow2)
end
-- ---------------------------------------------------------------------------------------------
-- Button Animation Functions
function M.animateButton4(self, node)
-- animate scale to 100%
local s = 1
gui.animate(node, gui.PROP_SCALE, vmath.vector4(s, s, s, 0), gui.EASING_INOUT, 0.12, 0)
end
function M.animateButton3(self, node)
-- animate scale to 106%
local s = 1.06
gui.animate(node, gui.PROP_SCALE, vmath.vector4(s, s, s, 0), gui.EASING_INOUT, 0.12,
0, M.animateButton4)
end
function M.animateButton2(self, node)
-- animate scale to 98%
local s = 0.98
gui.animate(node, gui.PROP_SCALE, vmath.vector4(s, s, s, 0), gui.EASING_INOUT, 0.12,
0, M.animateButton3)
end
function M.animateButton1(node, d)
-- set scale to 70%
local start_scale = 0.7
gui.set_scale(node, vmath.vector4(start_scale, start_scale, start_scale, 0))
-- get current color and set alpha to 0 to fade up
local from_color = gui.get_color(node)
local to_color = gui.get_color(node)
from_color.w = 0
gui.set_color(node, from_color)
-- animate alpha value from 0 to 1
gui.animate(node, gui.PROP_COLOR, to_color, gui.EASING_IN, 0.2, d)
-- animate scale from %70 to 110%
local s = 1.1
gui.animate(node, gui.PROP_SCALE, vmath.vector4(s, s, s, 0), gui.EASING_IN, 0.2,
d, M.animateButton2)
end
function M.animateButtonPress(node, d)
DEBUG_MESSAGE2 = "Executing M.animateButtonPress"
-- get the current color and set alpha to 0.85 to fade the button
local from_color = gui.get_color(node)
local to_color = gui.get_color(node)
from_color.w = 0.85
gui.set_color(node, from_color)
-- animate alpha value from current to to_color
gui.animate(node, gui.PROP_COLOR, to_color, gui.EASING_IN, 0.1, d)
-- animate scale up to 95%
local s = 1.2
gui.animate(node, gui.PROP_SCALE, vmath.vector4(s, s, s, 0), gui.EASING_IN, 0.1, d)
end
function M.animateButtonRelease(node, d)
-- animate scale back to 100%
local s = 1.0
gui.animate(node, gui.PROP_SCALE, vmath.vector4(s, s, s, 0), gui.EASING_IN, 0.1, d)
end
return M |
package com.codebrig.arthur.observe.structure.filter.operator.relational.compare
import com.codebrig.arthur.ArthurTest
import com.codebrig.arthur.SourceLanguage
import com.codebrig.arthur.observe.structure.filter.FunctionFilter
import com.codebrig.arthur.observe.structure.filter.MultiFilter
import com.codebrig.arthur.observe.structure.filter.NameFilter
import gopkg.in.bblfsh.sdk.v1.protocol.generated.Encoding
import org.junit.Test
import static org.junit.Assert.*
class IsEqualTypeOperatorFilterTest extends ArthurTest {
@Test
void isEqualTypeOperator_Javascript() {
assertIsEqualTypeOperatorPresent(new File("src/test/resources/same/operators/Operators.js"))
}
@Test
void isEqualTypeOperator_Php() {
assertIsEqualTypeOperatorPresent(new File("src/test/resources/same/operators/Operators.php"))
}
@Test
void isEqualTypeOperator_Ruby() {
assertIsEqualTypeOperatorPresent(new File("src/test/resources/same/operators/Operators.rb"))
}
private static void assertIsEqualTypeOperatorPresent(File file) {
def language = SourceLanguage.getSourceLanguage(file)
def resp = client.parse(file.name, file.text, language.babelfishName, Encoding.UTF8$.MODULE$)
def foundEqualTypeOperator = false
def functionFilter = new FunctionFilter()
def nameFilter = new NameFilter("isEqualTypeOperator()")
MultiFilter.matchAll(functionFilter, nameFilter).getFilteredNodes(language, resp.uast).each {
assertEquals("isEqualTypeOperator()", it.name)
new IsEqualTypeOperatorFilter().getFilteredNodes(it).each {
assertFalse(foundEqualTypeOperator)
if (!it.token.isEmpty()) assertEquals("===", it.token)
foundEqualTypeOperator = true
}
}
assertTrue(foundEqualTypeOperator)
}
} |
#!/usr/bin/env -S bash -euET -o pipefail -O inherit_errexit
SCRIPT=$(readlink -f "$0") && cd $(dirname "$SCRIPT")
# --- Script Init ---
mkdir -p log
rm -R -f log/*
# --- Setup run dirs ---
find output -type f -not -name '*summary-info*' -not -name '*.json' -exec rm -R -f {} +
rm -R -f fifo/*
rm -R -f work/*
mkdir work/kat/
mkdir work/gul_S1_summaryleccalc
mkdir work/gul_S1_summaryaalcalc
mkdir work/gul_S2_summaryleccalc
mkdir work/gul_S2_summaryaalcalc
mkfifo fifo/gul_P2
mkfifo fifo/gul_S1_summary_P2
mkfifo fifo/gul_S1_summary_P2.idx
mkfifo fifo/gul_S1_eltcalc_P2
mkfifo fifo/gul_S1_summarycalc_P2
mkfifo fifo/gul_S1_pltcalc_P2
mkfifo fifo/gul_S2_summary_P2
mkfifo fifo/gul_S2_summary_P2.idx
mkfifo fifo/gul_S2_eltcalc_P2
mkfifo fifo/gul_S2_summarycalc_P2
mkfifo fifo/gul_S2_pltcalc_P2
# --- Do ground up loss computes ---
eltcalc -s < fifo/gul_S1_eltcalc_P2 > work/kat/gul_S1_eltcalc_P2 & pid1=$!
summarycalctocsv -s < fifo/gul_S1_summarycalc_P2 > work/kat/gul_S1_summarycalc_P2 & pid2=$!
pltcalc -s < fifo/gul_S1_pltcalc_P2 > work/kat/gul_S1_pltcalc_P2 & pid3=$!
eltcalc -s < fifo/gul_S2_eltcalc_P2 > work/kat/gul_S2_eltcalc_P2 & pid4=$!
summarycalctocsv -s < fifo/gul_S2_summarycalc_P2 > work/kat/gul_S2_summarycalc_P2 & pid5=$!
pltcalc -s < fifo/gul_S2_pltcalc_P2 > work/kat/gul_S2_pltcalc_P2 & pid6=$!
tee < fifo/gul_S1_summary_P2 fifo/gul_S1_eltcalc_P2 fifo/gul_S1_summarycalc_P2 fifo/gul_S1_pltcalc_P2 work/gul_S1_summaryaalcalc/P2.bin work/gul_S1_summaryleccalc/P2.bin > /dev/null & pid7=$!
tee < fifo/gul_S1_summary_P2.idx work/gul_S1_summaryleccalc/P2.idx > /dev/null & pid8=$!
tee < fifo/gul_S2_summary_P2 fifo/gul_S2_eltcalc_P2 fifo/gul_S2_summarycalc_P2 fifo/gul_S2_pltcalc_P2 work/gul_S2_summaryaalcalc/P2.bin work/gul_S2_summaryleccalc/P2.bin > /dev/null & pid9=$!
tee < fifo/gul_S2_summary_P2.idx work/gul_S2_summaryleccalc/P2.idx > /dev/null & pid10=$!
summarycalc -m -i -1 fifo/gul_S1_summary_P2 -2 fifo/gul_S2_summary_P2 < fifo/gul_P2 &
eve 2 2 | getmodel | gulcalc -S0 -L0 -r -a0 -i - > fifo/gul_P2 &
wait $pid1 $pid2 $pid3 $pid4 $pid5 $pid6 $pid7 $pid8 $pid9 $pid10
# --- Do ground up loss kats ---
kat -s work/kat/gul_S1_eltcalc_P2 > output/gul_S1_eltcalc.csv & kpid1=$!
kat work/kat/gul_S1_pltcalc_P2 > output/gul_S1_pltcalc.csv & kpid2=$!
kat work/kat/gul_S1_summarycalc_P2 > output/gul_S1_summarycalc.csv & kpid3=$!
kat -s work/kat/gul_S2_eltcalc_P2 > output/gul_S2_eltcalc.csv & kpid4=$!
kat work/kat/gul_S2_pltcalc_P2 > output/gul_S2_pltcalc.csv & kpid5=$!
kat work/kat/gul_S2_summarycalc_P2 > output/gul_S2_summarycalc.csv & kpid6=$!
wait $kpid1 $kpid2 $kpid3 $kpid4 $kpid5 $kpid6
|
/* Validation checks to determine if app set up is ready for machine learning training */
import { ColumnTypes } from "./constants.js";
import { getSelectedNumericalColumns } from "./redux.js";
// Checks to see if there is any data.
// @return {boolean}
export function datasetUploaded(state) {
return state.data.length > 0;
}
// Gets the names of each column in the dataset.
// @return {array} of {string} column names
export function getColumnNames(state) {
const columnNames = datasetUploaded(state) ? Object.keys(state.data[0]) : [];
return columnNames;
}
// Checks that each column is named.
// @return {boolean}
export function columnsNamed(state) {
const columnNames = getColumnNames(state);
return (
columnNames.length > 0 &&
!columnNames.includes("") &&
!columnNames.includes(undefined)
);
}
// Checks that each column is named, and that the names are unique.
// @return {boolean}
export function uniqueColumnNames(state) {
const columnNames = getColumnNames(state);
const uniqueColumnNames = columnNames.filter(
(value, index, self) => self.indexOf(value) === index
);
return columnsNamed(state) && columnNames.length === uniqueColumnNames.length;
}
/* Iterates through the data and tracks location of empty cells.
@return {array} of {objects} indicating where the empty cells are.
[
{
row: index,
column: columnName
}
]
*/
export function emptyCellFinder(state) {
let columns = getColumnNames(state);
let emptyCells = [];
state.data.forEach(function(row, i) {
columns.forEach(function(column) {
if (row[column] === "" || row[column] === undefined) {
emptyCells.push({ row: i + 1, column: column });
}
});
});
return emptyCells;
}
// Checks if there are any identified empty cells in dataset.
// @return {boolean}
export function noEmptyCells(state) {
return datasetUploaded(state) && emptyCellFinder(state).length === 0;
}
// Checks if at least one feature is selected.
// @return {boolean}
export function minOneFeatureSelected(state) {
return state.selectedFeatures.length !== 0;
}
// Checks if one label is selected.
// @return {boolean}
export function oneLabelSelected(state) {
return !!state.labelColumn;
}
// Checks that the same column is not selected as both a label and a feature.
// @return {boolean}
export function uniqLabelFeaturesSelected(state) {
return (
minOneFeatureSelected(state) &&
oneLabelSelected(state) &&
!state.selectedFeatures.includes(state.labelColumn)
);
}
// Check that each feature column and the label column contain numerical or
// categorical data, not "Other".
// @return {boolean}
export function selectedColumnsHaveDatatype(state) {
const selectedColumns = state.selectedFeatures
.concat(state.labelColumn)
.filter(column => column !== undefined && column !== "");
let columnTypesOk = true;
for (const column of selectedColumns) {
if (state.columnsByDataType[column] === ColumnTypes.OTHER) {
columnTypesOk = false;
return columnTypesOk;
}
}
return selectedColumns.length > 0 && columnTypesOk;
}
// Check that selected numerical columns only contain numbers.
// @return {boolean}
export function numericalColumnsHaveOnlyNumbers(state) {
const columns = getSelectedNumericalColumns(state);
let allNumbers = true;
state.data.forEach(function(row, i) {
for (const column of columns) {
if (isNaN(parseFloat(row[column]))) {
allNumbers = false;
return allNumbers;
}
}
});
return columns.length === 0 || allNumbers;
}
/* Checks that the model is named. */
export function namedModel(state) {
const name = state.trainedModelDetails.name;
return !!name;
}
|
syntax = "proto3";
package ibc.lightclients.localhost.v1;
import "gogoproto/gogo.proto";
import "ibc/core/client/v1/client.proto";
option go_package = "github.com/mydexchain/chain-sdk/x/ibc/light-clients/09-localhost/types";
// ClientState defines a loopback (localhost) client. It requires (read-only)
// access to keys outside the client prefix.
message ClientState {
option (gogoproto.goproto_getters) = false;
// self chain ID
string chain_id = 1 [(gogoproto.moretags) = "yaml:\"chain_id\""];
// self latest block height
ibc.core.client.v1.Height height = 2 [(gogoproto.nullable) = false];
}
|
//=======================================================================
// Copyright (c) 2013-2018 Baptiste Wicht.
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//=======================================================================
#pragma once
#include "pages/server_pages.hpp"
namespace budget {
// Wishes Pages
void wishes_list_page(const httplib::Request& req, httplib::Response& res);
void wishes_status_page(const httplib::Request& req, httplib::Response& res);
void wishes_estimate_page(const httplib::Request& req, httplib::Response& res);
void add_wishes_page(const httplib::Request& req, httplib::Response& res);
void edit_wishes_page(const httplib::Request& req, httplib::Response& res);
} //end of namespace budget
|
!This file is subject to the terms and conditions defined in
!file 'LICENSE.txt', which is part of this source code package.
TITLE
CAP_extensive_form_cap133_5000;
STOCHASTIC
DATA
I := DATAFILE("cap133_5000_SETS.dat");
J := DATAFILE("cap133_5000_SETS.dat");
K := DATAFILE("cap133_5000_SETS.dat"); ! - num scenarios
Q := I; ! - num 1st stage columns
T := I*J; ! - num 2nd stage columns
R := J+I; ! - num rows in T and W
SCENARIO
k := 1..K;
INDEX
FirstStCol := 1..Q;
SecondStCol := 1..T;
Row := 1..R;
PROBABILITIES
p[k] := ALLEQUAL;
RANDOM DATA
Vector_h[k, Row] := DATAFILE("cap133_5000_RANDOM.dat"); ! - rows are related to scenarios
DATA
Vector_c[FirstStCol] := DATAFILE("cap133_5000_DATA.dat");
Vector_d[SecondStCol] := DATAFILE("cap133_5000_DATA.dat");
Vector_b := DATAFILE("cap133_5000_DATA.dat"); ! - max sum of h over all scenarios
Matrix_A[FirstStCol] := DATAFILE("cap133_5000_DATA.dat");
Matrix_T[Row, FirstStCol] := DATAFILE("cap133_5000_DATA.dat");
Matrix_W[Row, SecondStCol] := DATAFILE("cap133_5000_DATA.dat");
x_ub[FirstStCol] := DATAFILE("cap133_5000_DATA.dat");
STAGE1 BINARY VARIABLES
x[FirstStCol];
STAGE2 VARIABLES
y[SecondStCol];
MACROS
StageFirst = sum(FirstStCol: Vector_c * x);
StageSecond = sum(SecondStCol: Vector_d * y);
MIN
Objective = StageFirst + StageSecond;
SUBJECT TO
FirstStCnstr: sum(FirstStCol: Matrix_A * x) >= Vector_b;
SecondStCnstr[Row]: sum(FirstStCol: Matrix_T * x) + sum(SecondStCol: Matrix_W * y) >= Vector_h;
BOUNDS
BinBounds[FirstStCol]: x <= x_ub; ! - why do we need it
END |
#version 420 core
#define POSITION 0
#define COLOR 3
#define TEXCOORD 4
#define FRAG_COLOR 0
#define TRANSFORM0 1
precision highp float;
precision highp int;
layout(std140, column_major) uniform;
layout(binding = TRANSFORM0) uniform transform
{
mat4 MVP;
} Transform;
layout(location = POSITION) in vec2 Position;
out gl_PerVertex
{
vec4 gl_Position;
};
void main()
{
gl_Position = Transform.MVP * vec4(Position.x - 1.0 + gl_InstanceID, Position.y, 0.0, 1.0);
}
|
object Form4: TForm4
Left = 457
Top = 270
BorderStyle = bsToolWindow
Caption = #1054#1087#1090#1080#1084#1080#1079#1072#1090#1086#1088' '#1088#1077#1077#1089#1090#1088#1072
ClientHeight = 132
ClientWidth = 213
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
OldCreateOrder = False
Position = poDesktopCenter
OnShow = FormShow
PixelsPerInch = 96
TextHeight = 13
object Button1: TButton
Left = 112
Top = 0
Width = 97
Height = 33
Hint = #1055#1088#1080#1089#1090#1091#1087#1080#1090#1100' '#1082' '#1072#1074#1090#1086#1084#1072#1090#1080#1095#1077#1089#1082#1086#1081' '#1086#1087#1090#1080#1084#1080#1079#1072#1094#1080#1080
Caption = #1054#1087#1090#1080#1084#1080#1079#1080#1088#1086#1074#1072#1090#1100
ParentShowHint = False
ShowHint = True
TabOrder = 0
OnClick = Button1Click
end
object CheckBox1: TCheckBox
Left = 8
Top = 96
Width = 113
Height = 17
Hint = #1042#1099#1074#1077#1089#1090#1080' '#1086#1090#1095#1077#1090' '#1087#1086' '#1080#1079#1084#1077#1085#1077#1085#1080#1103#1084
Caption = #1074#1099#1074#1086#1076#1080#1090#1100' '#1086#1090#1095#1077#1090
ParentShowHint = False
ShowHint = True
TabOrder = 1
end
object Button2: TButton
Left = 112
Top = 40
Width = 97
Height = 33
Hint = #1055#1077#1088#1077#1093#1086#1076' '#1085#1072' '#1088#1072#1089#1096#1080#1088#1077#1085#1085#1099#1081' '#1080#1085#1090#1077#1088#1092#1077#1081#1089' '#1087#1086#1083#1100#1079#1086#1074#1072#1090#1077#1083#1103
Caption = #1056#1072#1089#1096#1080#1088#1080#1090#1100
ParentShowHint = False
ShowHint = True
TabOrder = 2
OnClick = Button2Click
end
object TrackBar1: TTrackBar
Left = 16
Top = 8
Width = 41
Height = 81
Hint = #1042#1099#1073#1086#1088' '#1075#1083#1091#1073#1080#1085#1099' '#1086#1087#1090#1080#1084#1080#1079#1072#1094#1080#1080
Max = 2
Orientation = trVertical
ParentShowHint = False
ShowHint = True
TabOrder = 3
OnChange = TrackBar1Change
end
object StatusBar1: TStatusBar
Left = 0
Top = 115
Width = 213
Height = 17
Panels = <
item
Text = #1048#1079#1084#1077#1085#1077#1085#1080#1103
Width = 100
end
item
Text = #1052#1072#1082#1089#1080#1084#1072#1083#1100#1085#1099#1077
Width = 100
end>
end
object Button3: TButton
Left = 112
Top = 80
Width = 97
Height = 33
Hint = #1042#1086#1089#1089#1090#1072#1085#1086#1074#1080#1090#1100' '#1080#1079' '#1088#1077#1079#1077#1088#1074#1085#1086#1081' '#1082#1086#1087#1080#1080
Caption = #1042#1086#1089#1089#1090#1072#1085#1086#1074#1080#1090#1100
ParentShowHint = False
ShowHint = True
TabOrder = 5
OnClick = Button3Click
end
object XPManifest1: TXPManifest
Left = 280
end
end
|
// Copyright 2017 Monax Industries Limited
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package mock
import (
"github.com/tendermint/go-crypto"
acc "github.com/hyperledger/burrow/account"
. "github.com/hyperledger/burrow/client"
consensus_types "github.com/hyperledger/burrow/consensus/types"
core_types "github.com/hyperledger/burrow/core/types"
"github.com/hyperledger/burrow/logging/loggers"
"github.com/hyperledger/burrow/txs"
)
var _ NodeClient = (*MockNodeClient)(nil)
type MockNodeClient struct {
accounts map[string]*acc.Account
}
func NewMockNodeClient() *MockNodeClient {
return &MockNodeClient{
accounts: make(map[string]*acc.Account),
}
}
func (mock *MockNodeClient) Broadcast(transaction txs.Tx) (*txs.Receipt, error) {
// make zero transaction receipt
txReceipt := &txs.Receipt{
TxHash: make([]byte, 20, 20),
CreatesContract: 0,
ContractAddr: make([]byte, 20, 20),
}
return txReceipt, nil
}
func (mock *MockNodeClient) DeriveWebsocketClient() (nodeWsClient NodeWebsocketClient, err error) {
return nil, nil
}
func (mock *MockNodeClient) GetAccount(address []byte) (*acc.Account, error) {
// make zero account
var zero [32]byte
copyAddressBytes := make([]byte, len(address), len(address))
copy(copyAddressBytes, address)
account := &acc.Account{
Address: copyAddressBytes,
PubKey: crypto.PubKey(crypto.PubKeyEd25519(zero)),
Sequence: 0,
Balance: 0,
Code: make([]byte, 0),
StorageRoot: make([]byte, 0),
}
return account, nil
}
func (mock *MockNodeClient) MockAddAccount(account *acc.Account) {
addressString := string(account.Address[:])
mock.accounts[addressString] = account.Copy()
}
func (mock *MockNodeClient) Status() (ChainId []byte,
ValidatorPublicKey []byte, LatestBlockHash []byte,
BlockHeight int, LatestBlockTime int64, err error) {
// make zero account
var zero [32]byte
ed25519 := crypto.PubKeyEd25519(zero)
pub := crypto.PubKey(ed25519)
// fill return values
ChainId = make([]byte, 64)
LatestBlockHash = make([]byte, 64)
ValidatorPublicKey = pub.Bytes()
BlockHeight = 0
LatestBlockTime = 0
return
}
// QueryContract executes the contract code at address with the given data
func (mock *MockNodeClient) QueryContract(callerAddress, calleeAddress, data []byte) (ret []byte, gasUsed int64, err error) {
// return zero
ret = make([]byte, 0)
return ret, 0, nil
}
// QueryContractCode executes the contract code at address with the given data but with provided code
func (mock *MockNodeClient) QueryContractCode(address, code, data []byte) (ret []byte, gasUsed int64, err error) {
// return zero
ret = make([]byte, 0)
return ret, 0, nil
}
func (mock *MockNodeClient) DumpStorage(address []byte) (storage *core_types.Storage, err error) {
return nil, nil
}
func (mock *MockNodeClient) GetName(name string) (owner []byte, data string, expirationBlock int, err error) {
return nil, "", 0, nil
}
func (mock *MockNodeClient) ListValidators() (blockHeight int, bondedValidators, unbondingValidators []consensus_types.Validator, err error) {
return 0, nil, nil, nil
}
func (mock *MockNodeClient) Logger() loggers.InfoTraceLogger {
return loggers.NewNoopInfoTraceLogger()
}
|
<?php namespace Direco\Providers;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
class EventServiceProvider extends ServiceProvider {
/**
* The event handler mappings for the application.
*
* @var array
*/
protected $listen = [
'Direco\Events\UserWasRegistered' => [
'Direco\Handlers\Events\EmailRegistrationConfirmation',
],
];
}
|
package io.micronaut.docs.config.env
import io.kotlintest.specs.AnnotationSpec
import io.micronaut.context.ApplicationContext
import io.micronaut.context.env.Environment
import io.micronaut.context.env.PropertySource
import io.micronaut.core.util.CollectionUtils
import org.junit.Test
import org.junit.Assert.assertEquals
import org.junit.Assert.assertTrue
class EnvironmentTest: AnnotationSpec(){
@Test
fun testRunEnvironment() {
// tag::env[]
val applicationContext = ApplicationContext.run("test", "android")
val environment = applicationContext.environment
assertTrue(environment.activeNames.contains("test"))
assertTrue(environment.activeNames.contains("android"))
// end::env[]
}
@Test
fun testRunEnvironmentWithProperties() {
// tag::envProps[]
val applicationContext = ApplicationContext.run(
PropertySource.of(
"test",
mapOf(
"micronaut.server.host" to "foo",
"micronaut.server.port" to 8080
)
),
"test", "android")
val environment = applicationContext.environment
assertEquals(
"foo",
environment.getProperty("micronaut.server.host", String::class.java).orElse("localhost")
)
// end::envProps[]
}
}
|
var ints : array of Integer;
ints.Add(1);
ints.Add(2);
PrintLn('Integers');
PrintLn(0 in ints);
PrintLn(1 in ints);
PrintLn(2 in ints);
PrintLn(0 not in ints);
PrintLn(1 not in ints);
PrintLn(2 not in ints);
type
TRec = record
x : Integer;
y : String;
end;
var recs : array of TRec;
const r1 : TRec = (x: 1; y: 'one');
const r2 : TRec = (x: 2; y: 'two');
const r3 : TRec = (x: 2; y: 'twobis');
PrintLn('Records');
recs.Add(r1);
recs.Add(r2);
PrintLn(r1 in recs);
PrintLn(r2 in recs);
PrintLn(r3 in recs);
var objs : array of TObject;
var o := new TObject;
objs.Add(TObject.Create);
objs.Add(o);
PrintLn('Objects');
PrintLn(TObject.Create in objs);
PrintLn(o in objs); |
package command
// HelpCommand for string "/help"
func HelpCommand() CommandFunc {
return func() (string, error) {
return `Available commands: /help, /anecdot (/anekdot)`, nil
}
}
|
return PlaceObj("ModDef", {
"title", "Construction Sites Highlight Missing Resources",
"id", "ChoGGi_ConstructionSitesHighlightMissingResources",
"lua_revision", 1007000, -- Picard
"steam_id", "2260449876",
"pops_any_uuid", "16ff5d93-0aa5-41f2-b0f5-ef3a2a26312f",
"version", 1,
"version_major", 0,
"version_minor", 1,
"image", "Preview.jpg",
"author", "ChoGGi",
"code", {
"Code/Script.lua",
},
--~ "has_options", true,
"TagInterface", true,
"description", [[Sites that show 100/100 but in reality are 99.9/100 will have a different colour from 100/100.
Requested by entuland.]],
})
|
using DataFrames
using CSV
using StatsBase
using StableRNGs
# https://github.com/szilard/benchm-ml/blob/master/0-init/2-gendata.txt
# 2005 2006 2007
# 2005
url2005 = "https://dataverse.harvard.edu/api/access/datafile/:persistentId?persistentId=doi:10.7910/DVN/HG7NV7/JTFT25"
# 2006
url2006 = "https://dataverse.harvard.edu/api/access/datafile/:persistentId?persistentId=doi:10.7910/DVN/HG7NV7/EPIFFT"
# 2007
url2007 = "https://dataverse.harvard.edu/api/access/datafile/:persistentId?persistentId=doi:10.7910/DVN/HG7NV7/2BHLWK"
download(url2005, joinpath(@__DIR__, "data", "2005.csv.bz2"))
download(url2006, joinpath(@__DIR__, "data", "2006.csv.bz2"))
download(url2007, joinpath(@__DIR__, "data", "2007.csv.bz2"))
run(`bunzip2 ./data/2005.csv.bz2`)
run(`bunzip2 ./data/2006.csv.bz2`)
run(`bunzip2 ./data/2007.csv.bz2`)
df1 = CSV.file(joinpath(@__DIR__, "data", "2005.csv")) |> DataFrame;
df2 = CSV.file(joinpath(@__DIR__, "data", "2006.csv")) |> DataFrame;
df1 = df1[df1[!, :DepDelay] .!= "NA", :];
df2 = df2[df2[!, :DepDelay] .!= "NA", :];
df1[!, :dep_delayed_15min] = ifelse.(parse.(Int, df1[!, :DepDelay]) .>= 15, "Y", "N");
df2[!, :dep_delayed_15min] = ifelse.(parse.(Int, df2[!, :DepDelay]) .>= 15, "Y", "N");
cols = Symbol.(["Month", "DayofMonth", "DayOfWeek", "DepTime", "UniqueCarrier", "Origin", "Dest", "Distance","dep_delayed_15min"])
df1 = df1[!, cols];
df2 = df2[!, cols];
df = vcat(df1, df2);
for k in Symbol.(["Month", "DayofMonth", "DayOfWeek"])
df[!, k] .= "c-" .* string.(df[!, k])
end
df[!, :DepTime] .= parse.(Int, df[!, :DepTime]);
CSV.write(joinpath(@__DIR__, "data", "air-process.csv"), df)
# Sampling
rng = StableRNG(2020)
ids1k = sample(rng, 1:size(df, 1), 1000, replace = false);
ids10k = sample(rng, 1:size(df, 1), 10000, replace = false);
df1k = df[ids1k, :];
df10k = df[ids10k, :];
CSV.write(joinpath(@__DIR__, "data", "air-1k.csv"), df1k);
CSV.write(joinpath(@__DIR__, "data", "air-10k.csv"), df10k);
###################
test data
df = urldownload("https://s3.amazonaws.com/benchm-ml--main/test.csv", true) |> DataFrame
CSV.write(joinpath(@__DIR__, "data", "air-test.csv"), df)
df = urldownload("https://s3.amazonaws.com/benchm-ml--main/train-0.1m.csv", true) |> DataFrame
CSV.write(joinpath(@__DIR__, "data", "air-0.1m.csv"), df)
df = urldownload("https://s3.amazonaws.com/benchm-ml--main/train-1m.csv", true) |> DataFrame
CSV.write(joinpath(@__DIR__, "data", "air-1m.csv"), df)
# optional
df = urldownload("https://s3.amazonaws.com/benchm-ml--main/train-10m.csv", true) |> DataFrame
CSV.write(joinpath(@__DIR__, "data", "air-10m.csv"), df)
|
package io.chipotie.gifinder.di.components
import android.app.Application
import dagger.BindsInstance
import dagger.Component
import dagger.android.AndroidInjector
import dagger.android.DaggerApplication
import dagger.android.support.AndroidSupportInjectionModule
import io.chipotie.gifinder.di.annotations.PerActivity
import io.chipotie.gifinder.di.modules.ActivityModule
import io.chipotie.gifinder.di.modules.RetrofitModule
import io.chipotie.gifinder.di.modules.ViewModelModule
import javax.inject.Singleton
/*
* @author savirdev on 25/03/19
*/
@PerActivity
@Singleton
@Component(modules = [AndroidSupportInjectionModule::class, ActivityModule::class, RetrofitModule::class, ViewModelModule::class])
interface AppComponent: AndroidInjector<DaggerApplication> {
@Component.Builder
interface Builder{
@BindsInstance
fun application(application: Application): Builder
fun build() : AppComponent
}
} |
> {-# LANGUAGE OverloadedStrings #-}
> {-# LANGUAGE QuasiQuotes #-}
>
> module T1_sum_type_string_compare_no_type_level where
>
> import Control.Applicative ((<$>), (<*>))
> import Control.Monad (mzero)
> import Data.Aeson
> import qualified Data.Aeson as A
> import Data.ByteString
> import Data.Text as T
> import Test.HUnit (Counts, Test (TestList), runTestTT)
> import qualified Test.HUnit.Util as U (e, t, tt)
> import Text.RawString.QQ
goal
- dispatch on key in `type`
> -- | each constructor is associated with a JSON `type` field value
> data Payloads
> = One String
> | Two Int String
> | Three String String Int
> deriving (Eq, Show)
parse
- inspect `type` field value, dispatch accordingly
- forces keeping json keys in one place
- but loses generality
- not polymorphic
- working with specific constructors
- not an arbitrary, abstract container
- has expression problem
- add a new payload, add to dispatch and other places
> -- | dispatch on `type` field value
> instance FromJSON Payloads where
> parseJSON (Object o) = o .: "type" >>= handle
> where
> handle (A.String "one") =
> o .: "data" >>= \d -> One <$> d .: "msg"
>
> handle (A.String "two") =
> o .: "data" >>= \d -> Two <$> d .: "id" <*> d .: "msg"
>
> handle (A.String "three") =
> o .: "data" >>= \d -> Three <$> d .: "first"
> <*> d .: "last"
> <*> d .: "age"
> handle (A.String t) = error $ "unrecognized type: " ++ T.unpack t -- mzero
> parseJSON _ = error "no 'type' field" -- mzero
> t1j = [r|{ "type" : "three",
> "data" : { "first" : "harold",
> "last" : "carr",
> "age" : 45 } }|]
> t1jMissingType = [r|{ "data" : 0 } |]
> t1jUnrecognizedType = [r|{ "type" : "bad",
> "data" : 0 }|]
> t1e1 = U.t "t1e1"
> (eitherDecode t1j)
> (Right (Three "harold" "carr" 45))
TODO: why does t1e2 get a Left and t1e3 raise an error?
> t1e2 = U.t "t1e2"
> (eitherDecode t1jMissingType :: Either String Payloads)
> (Left "Error in $: key \"type\" not present")
> t1e3 = eitherDecode t1jUnrecognizedType :: Either String Payloads
t1_t3 gets:
unrecognized type: bad
CallStack (from HasCallStack):
...
------------------------------------------------------------------------------
> t1test =
> runTestTT $ TestList $ t1e1 ++ t1e2
|
FUN PUBLIC MitCurrentDevices() {
return([
['DC1394A', 'MitDevices'],
['DT196AO', 'MitDevices'],
['RETICON120', 'MitDevices'],
*]);
}
|
// Copyright 2020 New Relic Corporation. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package http
import (
"testing"
. "gopkg.in/check.v1"
)
func Test(t *testing.T) { TestingT(t) }
|
export * from './casemodel';
export * from './identconfig';
export * from './notifications';
export * from './userscripts';
|
(asdf:defsystem :uncursed
:description "Another TUI library, this time without curses."
:author "tianlin qu"
:license "BSD 3-Clause"
:defsystem-depends-on ("cffi-grovel")
:depends-on (:alexandria :cffi :terminfo :cl-setlocale)
:version "0.2.0"
:serial t
:components ((:file "package")
(:cffi-grovel-file "grovel")
(:cffi-wrapper-file "wrappers")
(:file "condition")
(:file "hacks")
(:file "util")
(:file "uncursed")))
|
#include <iostream>
#include "average.cuh"
#include "../blas2.h"
#include "typedefs.cuh"
const double lx = 2.*M_PI;
const double ly = M_PI;
double function( double x, double y) {return cos(x)*sin(y);}
double pol_average( double x, double y) {return cos(x)*2./M_PI;}
int main()
{
unsigned n, Nx, Ny;
std::cout << "Type n, Nx and Ny!\n";
std::cin >> n >> Nx >> Ny;
const dg::Grid2d g( 0, lx, 0, ly, n, Nx, Ny);
dg::HVec w2d = dg::create::weights( g);
dg::PoloidalAverage<dg::HVec, thrust::host_vector<int> > pol(g);
dg::HVec vector = dg::evaluate( function ,g), average_y( vector);
const dg::HVec solution = dg::evaluate( pol_average, g);
std::cout << "Averaging ... \n";
pol( vector, average_y);
dg::blas1::axpby( 1., solution, -1., average_y, vector);
std::cout << "Distance to solution is: "<<sqrt(dg::blas2::dot( vector, w2d, vector))<<std::endl;
return 0;
}
|
begin_version
3
end_version
begin_metric
0
end_metric
20
begin_variable
corner_0
-1
24
Atom at_and_rotated-towards(cubie_corner_0, location_0, directions_0)
Atom at_and_rotated-towards(cubie_corner_0, location_0, directions_1)
Atom at_and_rotated-towards(cubie_corner_0, location_0, directions_2)
Atom at_and_rotated-towards(cubie_corner_0, location_1, directions_0)
Atom at_and_rotated-towards(cubie_corner_0, location_1, directions_1)
Atom at_and_rotated-towards(cubie_corner_0, location_1, directions_2)
Atom at_and_rotated-towards(cubie_corner_0, location_2, directions_0)
Atom at_and_rotated-towards(cubie_corner_0, location_2, directions_1)
Atom at_and_rotated-towards(cubie_corner_0, location_2, directions_2)
Atom at_and_rotated-towards(cubie_corner_0, location_3, directions_0)
Atom at_and_rotated-towards(cubie_corner_0, location_3, directions_1)
Atom at_and_rotated-towards(cubie_corner_0, location_3, directions_2)
Atom at_and_rotated-towards(cubie_corner_0, location_4, directions_0)
Atom at_and_rotated-towards(cubie_corner_0, location_4, directions_1)
Atom at_and_rotated-towards(cubie_corner_0, location_4, directions_2)
Atom at_and_rotated-towards(cubie_corner_0, location_5, directions_0)
Atom at_and_rotated-towards(cubie_corner_0, location_5, directions_1)
Atom at_and_rotated-towards(cubie_corner_0, location_5, directions_2)
Atom at_and_rotated-towards(cubie_corner_0, location_6, directions_0)
Atom at_and_rotated-towards(cubie_corner_0, location_6, directions_1)
Atom at_and_rotated-towards(cubie_corner_0, location_6, directions_2)
Atom at_and_rotated-towards(cubie_corner_0, location_7, directions_0)
Atom at_and_rotated-towards(cubie_corner_0, location_7, directions_1)
Atom at_and_rotated-towards(cubie_corner_0, location_7, directions_2)
end_variable
begin_variable
corner_1
-1
24
Atom at_and_rotated-towards(cubie_corner_1, location_0, directions_0)
Atom at_and_rotated-towards(cubie_corner_1, location_0, directions_1)
Atom at_and_rotated-towards(cubie_corner_1, location_0, directions_2)
Atom at_and_rotated-towards(cubie_corner_1, location_1, directions_0)
Atom at_and_rotated-towards(cubie_corner_1, location_1, directions_1)
Atom at_and_rotated-towards(cubie_corner_1, location_1, directions_2)
Atom at_and_rotated-towards(cubie_corner_1, location_2, directions_0)
Atom at_and_rotated-towards(cubie_corner_1, location_2, directions_1)
Atom at_and_rotated-towards(cubie_corner_1, location_2, directions_2)
Atom at_and_rotated-towards(cubie_corner_1, location_3, directions_0)
Atom at_and_rotated-towards(cubie_corner_1, location_3, directions_1)
Atom at_and_rotated-towards(cubie_corner_1, location_3, directions_2)
Atom at_and_rotated-towards(cubie_corner_1, location_4, directions_0)
Atom at_and_rotated-towards(cubie_corner_1, location_4, directions_1)
Atom at_and_rotated-towards(cubie_corner_1, location_4, directions_2)
Atom at_and_rotated-towards(cubie_corner_1, location_5, directions_0)
Atom at_and_rotated-towards(cubie_corner_1, location_5, directions_1)
Atom at_and_rotated-towards(cubie_corner_1, location_5, directions_2)
Atom at_and_rotated-towards(cubie_corner_1, location_6, directions_0)
Atom at_and_rotated-towards(cubie_corner_1, location_6, directions_1)
Atom at_and_rotated-towards(cubie_corner_1, location_6, directions_2)
Atom at_and_rotated-towards(cubie_corner_1, location_7, directions_0)
Atom at_and_rotated-towards(cubie_corner_1, location_7, directions_1)
Atom at_and_rotated-towards(cubie_corner_1, location_7, directions_2)
end_variable
begin_variable
corner_2
-1
24
Atom at_and_rotated-towards(cubie_corner_2, location_0, directions_0)
Atom at_and_rotated-towards(cubie_corner_2, location_0, directions_1)
Atom at_and_rotated-towards(cubie_corner_2, location_0, directions_2)
Atom at_and_rotated-towards(cubie_corner_2, location_1, directions_0)
Atom at_and_rotated-towards(cubie_corner_2, location_1, directions_1)
Atom at_and_rotated-towards(cubie_corner_2, location_1, directions_2)
Atom at_and_rotated-towards(cubie_corner_2, location_2, directions_0)
Atom at_and_rotated-towards(cubie_corner_2, location_2, directions_1)
Atom at_and_rotated-towards(cubie_corner_2, location_2, directions_2)
Atom at_and_rotated-towards(cubie_corner_2, location_3, directions_0)
Atom at_and_rotated-towards(cubie_corner_2, location_3, directions_1)
Atom at_and_rotated-towards(cubie_corner_2, location_3, directions_2)
Atom at_and_rotated-towards(cubie_corner_2, location_4, directions_0)
Atom at_and_rotated-towards(cubie_corner_2, location_4, directions_1)
Atom at_and_rotated-towards(cubie_corner_2, location_4, directions_2)
Atom at_and_rotated-towards(cubie_corner_2, location_5, directions_0)
Atom at_and_rotated-towards(cubie_corner_2, location_5, directions_1)
Atom at_and_rotated-towards(cubie_corner_2, location_5, directions_2)
Atom at_and_rotated-towards(cubie_corner_2, location_6, directions_0)
Atom at_and_rotated-towards(cubie_corner_2, location_6, directions_1)
Atom at_and_rotated-towards(cubie_corner_2, location_6, directions_2)
Atom at_and_rotated-towards(cubie_corner_2, location_7, directions_0)
Atom at_and_rotated-towards(cubie_corner_2, location_7, directions_1)
Atom at_and_rotated-towards(cubie_corner_2, location_7, directions_2)
end_variable
begin_variable
corner_3
-1
24
Atom at_and_rotated-towards(cubie_corner_3, location_0, directions_0)
Atom at_and_rotated-towards(cubie_corner_3, location_0, directions_1)
Atom at_and_rotated-towards(cubie_corner_3, location_0, directions_2)
Atom at_and_rotated-towards(cubie_corner_3, location_1, directions_0)
Atom at_and_rotated-towards(cubie_corner_3, location_1, directions_1)
Atom at_and_rotated-towards(cubie_corner_3, location_1, directions_2)
Atom at_and_rotated-towards(cubie_corner_3, location_2, directions_0)
Atom at_and_rotated-towards(cubie_corner_3, location_2, directions_1)
Atom at_and_rotated-towards(cubie_corner_3, location_2, directions_2)
Atom at_and_rotated-towards(cubie_corner_3, location_3, directions_0)
Atom at_and_rotated-towards(cubie_corner_3, location_3, directions_1)
Atom at_and_rotated-towards(cubie_corner_3, location_3, directions_2)
Atom at_and_rotated-towards(cubie_corner_3, location_4, directions_0)
Atom at_and_rotated-towards(cubie_corner_3, location_4, directions_1)
Atom at_and_rotated-towards(cubie_corner_3, location_4, directions_2)
Atom at_and_rotated-towards(cubie_corner_3, location_5, directions_0)
Atom at_and_rotated-towards(cubie_corner_3, location_5, directions_1)
Atom at_and_rotated-towards(cubie_corner_3, location_5, directions_2)
Atom at_and_rotated-towards(cubie_corner_3, location_6, directions_0)
Atom at_and_rotated-towards(cubie_corner_3, location_6, directions_1)
Atom at_and_rotated-towards(cubie_corner_3, location_6, directions_2)
Atom at_and_rotated-towards(cubie_corner_3, location_7, directions_0)
Atom at_and_rotated-towards(cubie_corner_3, location_7, directions_1)
Atom at_and_rotated-towards(cubie_corner_3, location_7, directions_2)
end_variable
begin_variable
corner_4
-1
24
Atom at_and_rotated-towards(cubie_corner_4, location_0, directions_0)
Atom at_and_rotated-towards(cubie_corner_4, location_0, directions_1)
Atom at_and_rotated-towards(cubie_corner_4, location_0, directions_2)
Atom at_and_rotated-towards(cubie_corner_4, location_1, directions_0)
Atom at_and_rotated-towards(cubie_corner_4, location_1, directions_1)
Atom at_and_rotated-towards(cubie_corner_4, location_1, directions_2)
Atom at_and_rotated-towards(cubie_corner_4, location_2, directions_0)
Atom at_and_rotated-towards(cubie_corner_4, location_2, directions_1)
Atom at_and_rotated-towards(cubie_corner_4, location_2, directions_2)
Atom at_and_rotated-towards(cubie_corner_4, location_3, directions_0)
Atom at_and_rotated-towards(cubie_corner_4, location_3, directions_1)
Atom at_and_rotated-towards(cubie_corner_4, location_3, directions_2)
Atom at_and_rotated-towards(cubie_corner_4, location_4, directions_0)
Atom at_and_rotated-towards(cubie_corner_4, location_4, directions_1)
Atom at_and_rotated-towards(cubie_corner_4, location_4, directions_2)
Atom at_and_rotated-towards(cubie_corner_4, location_5, directions_0)
Atom at_and_rotated-towards(cubie_corner_4, location_5, directions_1)
Atom at_and_rotated-towards(cubie_corner_4, location_5, directions_2)
Atom at_and_rotated-towards(cubie_corner_4, location_6, directions_0)
Atom at_and_rotated-towards(cubie_corner_4, location_6, directions_1)
Atom at_and_rotated-towards(cubie_corner_4, location_6, directions_2)
Atom at_and_rotated-towards(cubie_corner_4, location_7, directions_0)
Atom at_and_rotated-towards(cubie_corner_4, location_7, directions_1)
Atom at_and_rotated-towards(cubie_corner_4, location_7, directions_2)
end_variable
begin_variable
corner_5
-1
24
Atom at_and_rotated-towards(cubie_corner_5, location_0, directions_0)
Atom at_and_rotated-towards(cubie_corner_5, location_0, directions_1)
Atom at_and_rotated-towards(cubie_corner_5, location_0, directions_2)
Atom at_and_rotated-towards(cubie_corner_5, location_1, directions_0)
Atom at_and_rotated-towards(cubie_corner_5, location_1, directions_1)
Atom at_and_rotated-towards(cubie_corner_5, location_1, directions_2)
Atom at_and_rotated-towards(cubie_corner_5, location_2, directions_0)
Atom at_and_rotated-towards(cubie_corner_5, location_2, directions_1)
Atom at_and_rotated-towards(cubie_corner_5, location_2, directions_2)
Atom at_and_rotated-towards(cubie_corner_5, location_3, directions_0)
Atom at_and_rotated-towards(cubie_corner_5, location_3, directions_1)
Atom at_and_rotated-towards(cubie_corner_5, location_3, directions_2)
Atom at_and_rotated-towards(cubie_corner_5, location_4, directions_0)
Atom at_and_rotated-towards(cubie_corner_5, location_4, directions_1)
Atom at_and_rotated-towards(cubie_corner_5, location_4, directions_2)
Atom at_and_rotated-towards(cubie_corner_5, location_5, directions_0)
Atom at_and_rotated-towards(cubie_corner_5, location_5, directions_1)
Atom at_and_rotated-towards(cubie_corner_5, location_5, directions_2)
Atom at_and_rotated-towards(cubie_corner_5, location_6, directions_0)
Atom at_and_rotated-towards(cubie_corner_5, location_6, directions_1)
Atom at_and_rotated-towards(cubie_corner_5, location_6, directions_2)
Atom at_and_rotated-towards(cubie_corner_5, location_7, directions_0)
Atom at_and_rotated-towards(cubie_corner_5, location_7, directions_1)
Atom at_and_rotated-towards(cubie_corner_5, location_7, directions_2)
end_variable
begin_variable
corner_6
-1
24
Atom at_and_rotated-towards(cubie_corner_6, location_0, directions_0)
Atom at_and_rotated-towards(cubie_corner_6, location_0, directions_1)
Atom at_and_rotated-towards(cubie_corner_6, location_0, directions_2)
Atom at_and_rotated-towards(cubie_corner_6, location_1, directions_0)
Atom at_and_rotated-towards(cubie_corner_6, location_1, directions_1)
Atom at_and_rotated-towards(cubie_corner_6, location_1, directions_2)
Atom at_and_rotated-towards(cubie_corner_6, location_2, directions_0)
Atom at_and_rotated-towards(cubie_corner_6, location_2, directions_1)
Atom at_and_rotated-towards(cubie_corner_6, location_2, directions_2)
Atom at_and_rotated-towards(cubie_corner_6, location_3, directions_0)
Atom at_and_rotated-towards(cubie_corner_6, location_3, directions_1)
Atom at_and_rotated-towards(cubie_corner_6, location_3, directions_2)
Atom at_and_rotated-towards(cubie_corner_6, location_4, directions_0)
Atom at_and_rotated-towards(cubie_corner_6, location_4, directions_1)
Atom at_and_rotated-towards(cubie_corner_6, location_4, directions_2)
Atom at_and_rotated-towards(cubie_corner_6, location_5, directions_0)
Atom at_and_rotated-towards(cubie_corner_6, location_5, directions_1)
Atom at_and_rotated-towards(cubie_corner_6, location_5, directions_2)
Atom at_and_rotated-towards(cubie_corner_6, location_6, directions_0)
Atom at_and_rotated-towards(cubie_corner_6, location_6, directions_1)
Atom at_and_rotated-towards(cubie_corner_6, location_6, directions_2)
Atom at_and_rotated-towards(cubie_corner_6, location_7, directions_0)
Atom at_and_rotated-towards(cubie_corner_6, location_7, directions_1)
Atom at_and_rotated-towards(cubie_corner_6, location_7, directions_2)
end_variable
begin_variable
corner_7
-1
24
Atom at_and_rotated-towards(cubie_corner_7, location_0, directions_0)
Atom at_and_rotated-towards(cubie_corner_7, location_0, directions_1)
Atom at_and_rotated-towards(cubie_corner_7, location_0, directions_2)
Atom at_and_rotated-towards(cubie_corner_7, location_1, directions_0)
Atom at_and_rotated-towards(cubie_corner_7, location_1, directions_1)
Atom at_and_rotated-towards(cubie_corner_7, location_1, directions_2)
Atom at_and_rotated-towards(cubie_corner_7, location_2, directions_0)
Atom at_and_rotated-towards(cubie_corner_7, location_2, directions_1)
Atom at_and_rotated-towards(cubie_corner_7, location_2, directions_2)
Atom at_and_rotated-towards(cubie_corner_7, location_3, directions_0)
Atom at_and_rotated-towards(cubie_corner_7, location_3, directions_1)
Atom at_and_rotated-towards(cubie_corner_7, location_3, directions_2)
Atom at_and_rotated-towards(cubie_corner_7, location_4, directions_0)
Atom at_and_rotated-towards(cubie_corner_7, location_4, directions_1)
Atom at_and_rotated-towards(cubie_corner_7, location_4, directions_2)
Atom at_and_rotated-towards(cubie_corner_7, location_5, directions_0)
Atom at_and_rotated-towards(cubie_corner_7, location_5, directions_1)
Atom at_and_rotated-towards(cubie_corner_7, location_5, directions_2)
Atom at_and_rotated-towards(cubie_corner_7, location_6, directions_0)
Atom at_and_rotated-towards(cubie_corner_7, location_6, directions_1)
Atom at_and_rotated-towards(cubie_corner_7, location_6, directions_2)
Atom at_and_rotated-towards(cubie_corner_7, location_7, directions_0)
Atom at_and_rotated-towards(cubie_corner_7, location_7, directions_1)
Atom at_and_rotated-towards(cubie_corner_7, location_7, directions_2)
end_variable
begin_variable
edge_0
-1
24
Atom at_and_rotated-towards(cubie_edge_0, location_0, directions_0)
Atom at_and_rotated-towards(cubie_edge_0, location_0, directions_1)
Atom at_and_rotated-towards(cubie_edge_0, location_1, directions_0)
Atom at_and_rotated-towards(cubie_edge_0, location_1, directions_1)
Atom at_and_rotated-towards(cubie_edge_0, location_2, directions_0)
Atom at_and_rotated-towards(cubie_edge_0, location_2, directions_1)
Atom at_and_rotated-towards(cubie_edge_0, location_3, directions_0)
Atom at_and_rotated-towards(cubie_edge_0, location_3, directions_1)
Atom at_and_rotated-towards(cubie_edge_0, location_4, directions_0)
Atom at_and_rotated-towards(cubie_edge_0, location_4, directions_1)
Atom at_and_rotated-towards(cubie_edge_0, location_5, directions_0)
Atom at_and_rotated-towards(cubie_edge_0, location_5, directions_1)
Atom at_and_rotated-towards(cubie_edge_0, location_6, directions_0)
Atom at_and_rotated-towards(cubie_edge_0, location_6, directions_1)
Atom at_and_rotated-towards(cubie_edge_0, location_7, directions_0)
Atom at_and_rotated-towards(cubie_edge_0, location_7, directions_1)
Atom at_and_rotated-towards(cubie_edge_0, location_8, directions_0)
Atom at_and_rotated-towards(cubie_edge_0, location_8, directions_1)
Atom at_and_rotated-towards(cubie_edge_0, location_9, directions_0)
Atom at_and_rotated-towards(cubie_edge_0, location_9, directions_1)
Atom at_and_rotated-towards(cubie_edge_0, location_10, directions_0)
Atom at_and_rotated-towards(cubie_edge_0, location_10, directions_1)
Atom at_and_rotated-towards(cubie_edge_0, location_11, directions_0)
Atom at_and_rotated-towards(cubie_edge_0, location_11, directions_1)
end_variable
begin_variable
edge_1
-1
24
Atom at_and_rotated-towards(cubie_edge_1, location_0, directions_0)
Atom at_and_rotated-towards(cubie_edge_1, location_0, directions_1)
Atom at_and_rotated-towards(cubie_edge_1, location_1, directions_0)
Atom at_and_rotated-towards(cubie_edge_1, location_1, directions_1)
Atom at_and_rotated-towards(cubie_edge_1, location_2, directions_0)
Atom at_and_rotated-towards(cubie_edge_1, location_2, directions_1)
Atom at_and_rotated-towards(cubie_edge_1, location_3, directions_0)
Atom at_and_rotated-towards(cubie_edge_1, location_3, directions_1)
Atom at_and_rotated-towards(cubie_edge_1, location_4, directions_0)
Atom at_and_rotated-towards(cubie_edge_1, location_4, directions_1)
Atom at_and_rotated-towards(cubie_edge_1, location_5, directions_0)
Atom at_and_rotated-towards(cubie_edge_1, location_5, directions_1)
Atom at_and_rotated-towards(cubie_edge_1, location_6, directions_0)
Atom at_and_rotated-towards(cubie_edge_1, location_6, directions_1)
Atom at_and_rotated-towards(cubie_edge_1, location_7, directions_0)
Atom at_and_rotated-towards(cubie_edge_1, location_7, directions_1)
Atom at_and_rotated-towards(cubie_edge_1, location_8, directions_0)
Atom at_and_rotated-towards(cubie_edge_1, location_8, directions_1)
Atom at_and_rotated-towards(cubie_edge_1, location_9, directions_0)
Atom at_and_rotated-towards(cubie_edge_1, location_9, directions_1)
Atom at_and_rotated-towards(cubie_edge_1, location_10, directions_0)
Atom at_and_rotated-towards(cubie_edge_1, location_10, directions_1)
Atom at_and_rotated-towards(cubie_edge_1, location_11, directions_0)
Atom at_and_rotated-towards(cubie_edge_1, location_11, directions_1)
end_variable
begin_variable
edge_2
-1
24
Atom at_and_rotated-towards(cubie_edge_2, location_0, directions_0)
Atom at_and_rotated-towards(cubie_edge_2, location_0, directions_1)
Atom at_and_rotated-towards(cubie_edge_2, location_1, directions_0)
Atom at_and_rotated-towards(cubie_edge_2, location_1, directions_1)
Atom at_and_rotated-towards(cubie_edge_2, location_2, directions_0)
Atom at_and_rotated-towards(cubie_edge_2, location_2, directions_1)
Atom at_and_rotated-towards(cubie_edge_2, location_3, directions_0)
Atom at_and_rotated-towards(cubie_edge_2, location_3, directions_1)
Atom at_and_rotated-towards(cubie_edge_2, location_4, directions_0)
Atom at_and_rotated-towards(cubie_edge_2, location_4, directions_1)
Atom at_and_rotated-towards(cubie_edge_2, location_5, directions_0)
Atom at_and_rotated-towards(cubie_edge_2, location_5, directions_1)
Atom at_and_rotated-towards(cubie_edge_2, location_6, directions_0)
Atom at_and_rotated-towards(cubie_edge_2, location_6, directions_1)
Atom at_and_rotated-towards(cubie_edge_2, location_7, directions_0)
Atom at_and_rotated-towards(cubie_edge_2, location_7, directions_1)
Atom at_and_rotated-towards(cubie_edge_2, location_8, directions_0)
Atom at_and_rotated-towards(cubie_edge_2, location_8, directions_1)
Atom at_and_rotated-towards(cubie_edge_2, location_9, directions_0)
Atom at_and_rotated-towards(cubie_edge_2, location_9, directions_1)
Atom at_and_rotated-towards(cubie_edge_2, location_10, directions_0)
Atom at_and_rotated-towards(cubie_edge_2, location_10, directions_1)
Atom at_and_rotated-towards(cubie_edge_2, location_11, directions_0)
Atom at_and_rotated-towards(cubie_edge_2, location_11, directions_1)
end_variable
begin_variable
edge_3
-1
24
Atom at_and_rotated-towards(cubie_edge_3, location_0, directions_0)
Atom at_and_rotated-towards(cubie_edge_3, location_0, directions_1)
Atom at_and_rotated-towards(cubie_edge_3, location_1, directions_0)
Atom at_and_rotated-towards(cubie_edge_3, location_1, directions_1)
Atom at_and_rotated-towards(cubie_edge_3, location_2, directions_0)
Atom at_and_rotated-towards(cubie_edge_3, location_2, directions_1)
Atom at_and_rotated-towards(cubie_edge_3, location_3, directions_0)
Atom at_and_rotated-towards(cubie_edge_3, location_3, directions_1)
Atom at_and_rotated-towards(cubie_edge_3, location_4, directions_0)
Atom at_and_rotated-towards(cubie_edge_3, location_4, directions_1)
Atom at_and_rotated-towards(cubie_edge_3, location_5, directions_0)
Atom at_and_rotated-towards(cubie_edge_3, location_5, directions_1)
Atom at_and_rotated-towards(cubie_edge_3, location_6, directions_0)
Atom at_and_rotated-towards(cubie_edge_3, location_6, directions_1)
Atom at_and_rotated-towards(cubie_edge_3, location_7, directions_0)
Atom at_and_rotated-towards(cubie_edge_3, location_7, directions_1)
Atom at_and_rotated-towards(cubie_edge_3, location_8, directions_0)
Atom at_and_rotated-towards(cubie_edge_3, location_8, directions_1)
Atom at_and_rotated-towards(cubie_edge_3, location_9, directions_0)
Atom at_and_rotated-towards(cubie_edge_3, location_9, directions_1)
Atom at_and_rotated-towards(cubie_edge_3, location_10, directions_0)
Atom at_and_rotated-towards(cubie_edge_3, location_10, directions_1)
Atom at_and_rotated-towards(cubie_edge_3, location_11, directions_0)
Atom at_and_rotated-towards(cubie_edge_3, location_11, directions_1)
end_variable
begin_variable
edge_4
-1
24
Atom at_and_rotated-towards(cubie_edge_4, location_0, directions_0)
Atom at_and_rotated-towards(cubie_edge_4, location_0, directions_1)
Atom at_and_rotated-towards(cubie_edge_4, location_1, directions_0)
Atom at_and_rotated-towards(cubie_edge_4, location_1, directions_1)
Atom at_and_rotated-towards(cubie_edge_4, location_2, directions_0)
Atom at_and_rotated-towards(cubie_edge_4, location_2, directions_1)
Atom at_and_rotated-towards(cubie_edge_4, location_3, directions_0)
Atom at_and_rotated-towards(cubie_edge_4, location_3, directions_1)
Atom at_and_rotated-towards(cubie_edge_4, location_4, directions_0)
Atom at_and_rotated-towards(cubie_edge_4, location_4, directions_1)
Atom at_and_rotated-towards(cubie_edge_4, location_5, directions_0)
Atom at_and_rotated-towards(cubie_edge_4, location_5, directions_1)
Atom at_and_rotated-towards(cubie_edge_4, location_6, directions_0)
Atom at_and_rotated-towards(cubie_edge_4, location_6, directions_1)
Atom at_and_rotated-towards(cubie_edge_4, location_7, directions_0)
Atom at_and_rotated-towards(cubie_edge_4, location_7, directions_1)
Atom at_and_rotated-towards(cubie_edge_4, location_8, directions_0)
Atom at_and_rotated-towards(cubie_edge_4, location_8, directions_1)
Atom at_and_rotated-towards(cubie_edge_4, location_9, directions_0)
Atom at_and_rotated-towards(cubie_edge_4, location_9, directions_1)
Atom at_and_rotated-towards(cubie_edge_4, location_10, directions_0)
Atom at_and_rotated-towards(cubie_edge_4, location_10, directions_1)
Atom at_and_rotated-towards(cubie_edge_4, location_11, directions_0)
Atom at_and_rotated-towards(cubie_edge_4, location_11, directions_1)
end_variable
begin_variable
edge_5
-1
24
Atom at_and_rotated-towards(cubie_edge_5, location_0, directions_0)
Atom at_and_rotated-towards(cubie_edge_5, location_0, directions_1)
Atom at_and_rotated-towards(cubie_edge_5, location_1, directions_0)
Atom at_and_rotated-towards(cubie_edge_5, location_1, directions_1)
Atom at_and_rotated-towards(cubie_edge_5, location_2, directions_0)
Atom at_and_rotated-towards(cubie_edge_5, location_2, directions_1)
Atom at_and_rotated-towards(cubie_edge_5, location_3, directions_0)
Atom at_and_rotated-towards(cubie_edge_5, location_3, directions_1)
Atom at_and_rotated-towards(cubie_edge_5, location_4, directions_0)
Atom at_and_rotated-towards(cubie_edge_5, location_4, directions_1)
Atom at_and_rotated-towards(cubie_edge_5, location_5, directions_0)
Atom at_and_rotated-towards(cubie_edge_5, location_5, directions_1)
Atom at_and_rotated-towards(cubie_edge_5, location_6, directions_0)
Atom at_and_rotated-towards(cubie_edge_5, location_6, directions_1)
Atom at_and_rotated-towards(cubie_edge_5, location_7, directions_0)
Atom at_and_rotated-towards(cubie_edge_5, location_7, directions_1)
Atom at_and_rotated-towards(cubie_edge_5, location_8, directions_0)
Atom at_and_rotated-towards(cubie_edge_5, location_8, directions_1)
Atom at_and_rotated-towards(cubie_edge_5, location_9, directions_0)
Atom at_and_rotated-towards(cubie_edge_5, location_9, directions_1)
Atom at_and_rotated-towards(cubie_edge_5, location_10, directions_0)
Atom at_and_rotated-towards(cubie_edge_5, location_10, directions_1)
Atom at_and_rotated-towards(cubie_edge_5, location_11, directions_0)
Atom at_and_rotated-towards(cubie_edge_5, location_11, directions_1)
end_variable
begin_variable
edge_6
-1
24
Atom at_and_rotated-towards(cubie_edge_6, location_0, directions_0)
Atom at_and_rotated-towards(cubie_edge_6, location_0, directions_1)
Atom at_and_rotated-towards(cubie_edge_6, location_1, directions_0)
Atom at_and_rotated-towards(cubie_edge_6, location_1, directions_1)
Atom at_and_rotated-towards(cubie_edge_6, location_2, directions_0)
Atom at_and_rotated-towards(cubie_edge_6, location_2, directions_1)
Atom at_and_rotated-towards(cubie_edge_6, location_3, directions_0)
Atom at_and_rotated-towards(cubie_edge_6, location_3, directions_1)
Atom at_and_rotated-towards(cubie_edge_6, location_4, directions_0)
Atom at_and_rotated-towards(cubie_edge_6, location_4, directions_1)
Atom at_and_rotated-towards(cubie_edge_6, location_5, directions_0)
Atom at_and_rotated-towards(cubie_edge_6, location_5, directions_1)
Atom at_and_rotated-towards(cubie_edge_6, location_6, directions_0)
Atom at_and_rotated-towards(cubie_edge_6, location_6, directions_1)
Atom at_and_rotated-towards(cubie_edge_6, location_7, directions_0)
Atom at_and_rotated-towards(cubie_edge_6, location_7, directions_1)
Atom at_and_rotated-towards(cubie_edge_6, location_8, directions_0)
Atom at_and_rotated-towards(cubie_edge_6, location_8, directions_1)
Atom at_and_rotated-towards(cubie_edge_6, location_9, directions_0)
Atom at_and_rotated-towards(cubie_edge_6, location_9, directions_1)
Atom at_and_rotated-towards(cubie_edge_6, location_10, directions_0)
Atom at_and_rotated-towards(cubie_edge_6, location_10, directions_1)
Atom at_and_rotated-towards(cubie_edge_6, location_11, directions_0)
Atom at_and_rotated-towards(cubie_edge_6, location_11, directions_1)
end_variable
begin_variable
edge_7
-1
24
Atom at_and_rotated-towards(cubie_edge_7, location_0, directions_0)
Atom at_and_rotated-towards(cubie_edge_7, location_0, directions_1)
Atom at_and_rotated-towards(cubie_edge_7, location_1, directions_0)
Atom at_and_rotated-towards(cubie_edge_7, location_1, directions_1)
Atom at_and_rotated-towards(cubie_edge_7, location_2, directions_0)
Atom at_and_rotated-towards(cubie_edge_7, location_2, directions_1)
Atom at_and_rotated-towards(cubie_edge_7, location_3, directions_0)
Atom at_and_rotated-towards(cubie_edge_7, location_3, directions_1)
Atom at_and_rotated-towards(cubie_edge_7, location_4, directions_0)
Atom at_and_rotated-towards(cubie_edge_7, location_4, directions_1)
Atom at_and_rotated-towards(cubie_edge_7, location_5, directions_0)
Atom at_and_rotated-towards(cubie_edge_7, location_5, directions_1)
Atom at_and_rotated-towards(cubie_edge_7, location_6, directions_0)
Atom at_and_rotated-towards(cubie_edge_7, location_6, directions_1)
Atom at_and_rotated-towards(cubie_edge_7, location_7, directions_0)
Atom at_and_rotated-towards(cubie_edge_7, location_7, directions_1)
Atom at_and_rotated-towards(cubie_edge_7, location_8, directions_0)
Atom at_and_rotated-towards(cubie_edge_7, location_8, directions_1)
Atom at_and_rotated-towards(cubie_edge_7, location_9, directions_0)
Atom at_and_rotated-towards(cubie_edge_7, location_9, directions_1)
Atom at_and_rotated-towards(cubie_edge_7, location_10, directions_0)
Atom at_and_rotated-towards(cubie_edge_7, location_10, directions_1)
Atom at_and_rotated-towards(cubie_edge_7, location_11, directions_0)
Atom at_and_rotated-towards(cubie_edge_7, location_11, directions_1)
end_variable
begin_variable
edge_8
-1
24
Atom at_and_rotated-towards(cubie_edge_8, location_0, directions_0)
Atom at_and_rotated-towards(cubie_edge_8, location_0, directions_1)
Atom at_and_rotated-towards(cubie_edge_8, location_1, directions_0)
Atom at_and_rotated-towards(cubie_edge_8, location_1, directions_1)
Atom at_and_rotated-towards(cubie_edge_8, location_2, directions_0)
Atom at_and_rotated-towards(cubie_edge_8, location_2, directions_1)
Atom at_and_rotated-towards(cubie_edge_8, location_3, directions_0)
Atom at_and_rotated-towards(cubie_edge_8, location_3, directions_1)
Atom at_and_rotated-towards(cubie_edge_8, location_4, directions_0)
Atom at_and_rotated-towards(cubie_edge_8, location_4, directions_1)
Atom at_and_rotated-towards(cubie_edge_8, location_5, directions_0)
Atom at_and_rotated-towards(cubie_edge_8, location_5, directions_1)
Atom at_and_rotated-towards(cubie_edge_8, location_6, directions_0)
Atom at_and_rotated-towards(cubie_edge_8, location_6, directions_1)
Atom at_and_rotated-towards(cubie_edge_8, location_7, directions_0)
Atom at_and_rotated-towards(cubie_edge_8, location_7, directions_1)
Atom at_and_rotated-towards(cubie_edge_8, location_8, directions_0)
Atom at_and_rotated-towards(cubie_edge_8, location_8, directions_1)
Atom at_and_rotated-towards(cubie_edge_8, location_9, directions_0)
Atom at_and_rotated-towards(cubie_edge_8, location_9, directions_1)
Atom at_and_rotated-towards(cubie_edge_8, location_10, directions_0)
Atom at_and_rotated-towards(cubie_edge_8, location_10, directions_1)
Atom at_and_rotated-towards(cubie_edge_8, location_11, directions_0)
Atom at_and_rotated-towards(cubie_edge_8, location_11, directions_1)
end_variable
begin_variable
edge_9
-1
24
Atom at_and_rotated-towards(cubie_edge_9, location_0, directions_0)
Atom at_and_rotated-towards(cubie_edge_9, location_0, directions_1)
Atom at_and_rotated-towards(cubie_edge_9, location_1, directions_0)
Atom at_and_rotated-towards(cubie_edge_9, location_1, directions_1)
Atom at_and_rotated-towards(cubie_edge_9, location_2, directions_0)
Atom at_and_rotated-towards(cubie_edge_9, location_2, directions_1)
Atom at_and_rotated-towards(cubie_edge_9, location_3, directions_0)
Atom at_and_rotated-towards(cubie_edge_9, location_3, directions_1)
Atom at_and_rotated-towards(cubie_edge_9, location_4, directions_0)
Atom at_and_rotated-towards(cubie_edge_9, location_4, directions_1)
Atom at_and_rotated-towards(cubie_edge_9, location_5, directions_0)
Atom at_and_rotated-towards(cubie_edge_9, location_5, directions_1)
Atom at_and_rotated-towards(cubie_edge_9, location_6, directions_0)
Atom at_and_rotated-towards(cubie_edge_9, location_6, directions_1)
Atom at_and_rotated-towards(cubie_edge_9, location_7, directions_0)
Atom at_and_rotated-towards(cubie_edge_9, location_7, directions_1)
Atom at_and_rotated-towards(cubie_edge_9, location_8, directions_0)
Atom at_and_rotated-towards(cubie_edge_9, location_8, directions_1)
Atom at_and_rotated-towards(cubie_edge_9, location_9, directions_0)
Atom at_and_rotated-towards(cubie_edge_9, location_9, directions_1)
Atom at_and_rotated-towards(cubie_edge_9, location_10, directions_0)
Atom at_and_rotated-towards(cubie_edge_9, location_10, directions_1)
Atom at_and_rotated-towards(cubie_edge_9, location_11, directions_0)
Atom at_and_rotated-towards(cubie_edge_9, location_11, directions_1)
end_variable
begin_variable
edge_10
-1
24
Atom at_and_rotated-towards(cubie_edge_10, location_0, directions_0)
Atom at_and_rotated-towards(cubie_edge_10, location_0, directions_1)
Atom at_and_rotated-towards(cubie_edge_10, location_1, directions_0)
Atom at_and_rotated-towards(cubie_edge_10, location_1, directions_1)
Atom at_and_rotated-towards(cubie_edge_10, location_2, directions_0)
Atom at_and_rotated-towards(cubie_edge_10, location_2, directions_1)
Atom at_and_rotated-towards(cubie_edge_10, location_3, directions_0)
Atom at_and_rotated-towards(cubie_edge_10, location_3, directions_1)
Atom at_and_rotated-towards(cubie_edge_10, location_4, directions_0)
Atom at_and_rotated-towards(cubie_edge_10, location_4, directions_1)
Atom at_and_rotated-towards(cubie_edge_10, location_5, directions_0)
Atom at_and_rotated-towards(cubie_edge_10, location_5, directions_1)
Atom at_and_rotated-towards(cubie_edge_10, location_6, directions_0)
Atom at_and_rotated-towards(cubie_edge_10, location_6, directions_1)
Atom at_and_rotated-towards(cubie_edge_10, location_7, directions_0)
Atom at_and_rotated-towards(cubie_edge_10, location_7, directions_1)
Atom at_and_rotated-towards(cubie_edge_10, location_8, directions_0)
Atom at_and_rotated-towards(cubie_edge_10, location_8, directions_1)
Atom at_and_rotated-towards(cubie_edge_10, location_9, directions_0)
Atom at_and_rotated-towards(cubie_edge_10, location_9, directions_1)
Atom at_and_rotated-towards(cubie_edge_10, location_10, directions_0)
Atom at_and_rotated-towards(cubie_edge_10, location_10, directions_1)
Atom at_and_rotated-towards(cubie_edge_10, location_11, directions_0)
Atom at_and_rotated-towards(cubie_edge_10, location_11, directions_1)
end_variable
begin_variable
edge_11
-1
24
Atom at_and_rotated-towards(cubie_edge_11, location_0, directions_0)
Atom at_and_rotated-towards(cubie_edge_11, location_0, directions_1)
Atom at_and_rotated-towards(cubie_edge_11, location_1, directions_0)
Atom at_and_rotated-towards(cubie_edge_11, location_1, directions_1)
Atom at_and_rotated-towards(cubie_edge_11, location_2, directions_0)
Atom at_and_rotated-towards(cubie_edge_11, location_2, directions_1)
Atom at_and_rotated-towards(cubie_edge_11, location_3, directions_0)
Atom at_and_rotated-towards(cubie_edge_11, location_3, directions_1)
Atom at_and_rotated-towards(cubie_edge_11, location_4, directions_0)
Atom at_and_rotated-towards(cubie_edge_11, location_4, directions_1)
Atom at_and_rotated-towards(cubie_edge_11, location_5, directions_0)
Atom at_and_rotated-towards(cubie_edge_11, location_5, directions_1)
Atom at_and_rotated-towards(cubie_edge_11, location_6, directions_0)
Atom at_and_rotated-towards(cubie_edge_11, location_6, directions_1)
Atom at_and_rotated-towards(cubie_edge_11, location_7, directions_0)
Atom at_and_rotated-towards(cubie_edge_11, location_7, directions_1)
Atom at_and_rotated-towards(cubie_edge_11, location_8, directions_0)
Atom at_and_rotated-towards(cubie_edge_11, location_8, directions_1)
Atom at_and_rotated-towards(cubie_edge_11, location_9, directions_0)
Atom at_and_rotated-towards(cubie_edge_11, location_9, directions_1)
Atom at_and_rotated-towards(cubie_edge_11, location_10, directions_0)
Atom at_and_rotated-towards(cubie_edge_11, location_10, directions_1)
Atom at_and_rotated-towards(cubie_edge_11, location_11, directions_0)
Atom at_and_rotated-towards(cubie_edge_11, location_11, directions_1)
end_variable
20
begin_mutex_group
24
0 0
0 1
0 2
1 0
1 1
1 2
2 0
2 1
2 2
3 0
3 1
3 2
4 0
4 1
4 2
5 0
5 1
5 2
6 0
6 1
6 2
7 0
7 1
7 2
end_mutex_group
begin_mutex_group
24
0 3
0 4
0 5
1 3
1 4
1 5
2 3
2 4
2 5
3 3
3 4
3 5
4 3
4 4
4 5
5 3
5 4
5 5
6 3
6 4
6 5
7 3
7 4
7 5
end_mutex_group
begin_mutex_group
24
0 6
0 7
0 8
1 6
1 7
1 8
2 6
2 7
2 8
3 6
3 7
3 8
4 6
4 7
4 8
5 6
5 7
5 8
6 6
6 7
6 8
7 6
7 7
7 8
end_mutex_group
begin_mutex_group
24
0 9
0 10
0 11
1 9
1 10
1 11
2 9
2 10
2 11
3 9
3 10
3 11
4 9
4 10
4 11
5 9
5 10
5 11
6 9
6 10
6 11
7 9
7 10
7 11
end_mutex_group
begin_mutex_group
24
0 12
0 13
0 14
1 12
1 13
1 14
2 12
2 13
2 14
3 12
3 13
3 14
4 12
4 13
4 14
5 12
5 13
5 14
6 12
6 13
6 14
7 12
7 13
7 14
end_mutex_group
begin_mutex_group
24
0 15
0 16
0 17
1 15
1 16
1 17
2 15
2 16
2 17
3 15
3 16
3 17
4 15
4 16
4 17
5 15
5 16
5 17
6 15
6 16
6 17
7 15
7 16
7 17
end_mutex_group
begin_mutex_group
24
0 18
0 19
0 20
1 18
1 19
1 20
2 18
2 19
2 20
3 18
3 19
3 20
4 18
4 19
4 20
5 18
5 19
5 20
6 18
6 19
6 20
7 18
7 19
7 20
end_mutex_group
begin_mutex_group
24
0 21
0 22
0 23
1 21
1 22
1 23
2 21
2 22
2 23
3 21
3 22
3 23
4 21
4 22
4 23
5 21
5 22
5 23
6 21
6 22
6 23
7 21
7 22
7 23
end_mutex_group
begin_mutex_group
24
8 0
8 1
9 0
9 1
10 0
10 1
11 0
11 1
12 0
12 1
13 0
13 1
14 0
14 1
15 0
15 1
16 0
16 1
17 0
17 1
18 0
18 1
19 0
19 1
end_mutex_group
begin_mutex_group
24
8 2
8 3
9 2
9 3
10 2
10 3
11 2
11 3
12 2
12 3
13 2
13 3
14 2
14 3
15 2
15 3
16 2
16 3
17 2
17 3
18 2
18 3
19 2
19 3
end_mutex_group
begin_mutex_group
24
8 4
8 5
9 4
9 5
10 4
10 5
11 4
11 5
12 4
12 5
13 4
13 5
14 4
14 5
15 4
15 5
16 4
16 5
17 4
17 5
18 4
18 5
19 4
19 5
end_mutex_group
begin_mutex_group
24
8 6
8 7
9 6
9 7
10 6
10 7
11 6
11 7
12 6
12 7
13 6
13 7
14 6
14 7
15 6
15 7
16 6
16 7
17 6
17 7
18 6
18 7
19 6
19 7
end_mutex_group
begin_mutex_group
24
8 8
8 9
9 8
9 9
10 8
10 9
11 8
11 9
12 8
12 9
13 8
13 9
14 8
14 9
15 8
15 9
16 8
16 9
17 8
17 9
18 8
18 9
19 8
19 9
end_mutex_group
begin_mutex_group
24
8 10
8 11
9 10
9 11
10 10
10 11
11 10
11 11
12 10
12 11
13 10
13 11
14 10
14 11
15 10
15 11
16 10
16 11
17 10
17 11
18 10
18 11
19 10
19 11
end_mutex_group
begin_mutex_group
24
8 12
8 13
9 12
9 13
10 12
10 13
11 12
11 13
12 12
12 13
13 12
13 13
14 12
14 13
15 12
15 13
16 12
16 13
17 12
17 13
18 12
18 13
19 12
19 13
end_mutex_group
begin_mutex_group
24
8 14
8 15
9 14
9 15
10 14
10 15
11 14
11 15
12 14
12 15
13 14
13 15
14 14
14 15
15 14
15 15
16 14
16 15
17 14
17 15
18 14
18 15
19 14
19 15
end_mutex_group
begin_mutex_group
24
8 16
8 17
9 16
9 17
10 16
10 17
11 16
11 17
12 16
12 17
13 16
13 17
14 16
14 17
15 16
15 17
16 16
16 17
17 16
17 17
18 16
18 17
19 16
19 17
end_mutex_group
begin_mutex_group
24
8 18
8 19
9 18
9 19
10 18
10 19
11 18
11 19
12 18
12 19
13 18
13 19
14 18
14 19
15 18
15 19
16 18
16 19
17 18
17 19
18 18
18 19
19 18
19 19
end_mutex_group
begin_mutex_group
24
8 20
8 21
9 20
9 21
10 20
10 21
11 20
11 21
12 20
12 21
13 20
13 21
14 20
14 21
15 20
15 21
16 20
16 21
17 20
17 21
18 20
18 21
19 20
19 21
end_mutex_group
begin_mutex_group
24
8 22
8 23
9 22
9 23
10 22
10 23
11 22
11 23
12 22
12 23
13 22
13 23
14 22
14 23
15 22
15 23
16 22
16 23
17 22
17 23
18 22
18 23
19 22
19 23
end_mutex_group
begin_state
15
23
5
19
1
8
11
14
4
3
6
13
22
16
1
8
10
15
18
20
end_state
begin_goal
20
0 0
1 3
2 6
3 9
4 12
5 15
6 18
7 21
8 0
9 2
10 4
11 6
12 8
13 10
14 12
15 14
16 16
17 18
18 20
19 22
end_goal
12
begin_operator
F_0
0
192
1 0 0 0 -1 6
1 0 1 0 -1 7
1 0 2 0 -1 8
1 1 0 1 -1 6
1 1 1 1 -1 7
1 1 2 1 -1 8
1 2 0 2 -1 6
1 2 1 2 -1 7
1 2 2 2 -1 8
1 3 0 3 -1 6
1 3 1 3 -1 7
1 3 2 3 -1 8
1 4 0 4 -1 6
1 4 1 4 -1 7
1 4 2 4 -1 8
1 5 0 5 -1 6
1 5 1 5 -1 7
1 5 2 5 -1 8
1 6 0 6 -1 6
1 6 1 6 -1 7
1 6 2 6 -1 8
1 7 0 7 -1 6
1 7 1 7 -1 7
1 7 2 7 -1 8
1 0 3 0 -1 0
1 0 5 0 -1 2
1 0 4 0 -1 1
1 1 3 1 -1 0
1 1 5 1 -1 2
1 1 4 1 -1 1
1 2 3 2 -1 0
1 2 5 2 -1 2
1 2 4 2 -1 1
1 3 3 3 -1 0
1 3 5 3 -1 2
1 3 4 3 -1 1
1 4 3 4 -1 0
1 4 5 4 -1 2
1 4 4 4 -1 1
1 5 3 5 -1 0
1 5 5 5 -1 2
1 5 4 5 -1 1
1 6 3 6 -1 0
1 6 5 6 -1 2
1 6 4 6 -1 1
1 7 3 7 -1 0
1 7 5 7 -1 2
1 7 4 7 -1 1
1 0 6 0 -1 9
1 0 8 0 -1 11
1 0 7 0 -1 10
1 1 6 1 -1 9
1 1 8 1 -1 11
1 1 7 1 -1 10
1 2 6 2 -1 9
1 2 8 2 -1 11
1 2 7 2 -1 10
1 3 6 3 -1 9
1 3 8 3 -1 11
1 3 7 3 -1 10
1 4 6 4 -1 9
1 4 8 4 -1 11
1 4 7 4 -1 10
1 5 6 5 -1 9
1 5 8 5 -1 11
1 5 7 5 -1 10
1 6 6 6 -1 9
1 6 8 6 -1 11
1 6 7 6 -1 10
1 7 6 7 -1 9
1 7 8 7 -1 11
1 7 7 7 -1 10
1 0 9 0 -1 3
1 0 10 0 -1 4
1 0 11 0 -1 5
1 1 9 1 -1 3
1 1 10 1 -1 4
1 1 11 1 -1 5
1 2 9 2 -1 3
1 2 10 2 -1 4
1 2 11 2 -1 5
1 3 9 3 -1 3
1 3 10 3 -1 4
1 3 11 3 -1 5
1 4 9 4 -1 3
1 4 10 4 -1 4
1 4 11 4 -1 5
1 5 9 5 -1 3
1 5 10 5 -1 4
1 5 11 5 -1 5
1 6 9 6 -1 3
1 6 10 6 -1 4
1 6 11 6 -1 5
1 7 9 7 -1 3
1 7 10 7 -1 4
1 7 11 7 -1 5
1 8 0 8 -1 2
1 8 1 8 -1 3
1 9 0 9 -1 2
1 9 1 9 -1 3
1 10 0 10 -1 2
1 10 1 10 -1 3
1 11 0 11 -1 2
1 11 1 11 -1 3
1 12 0 12 -1 2
1 12 1 12 -1 3
1 13 0 13 -1 2
1 13 1 13 -1 3
1 14 0 14 -1 2
1 14 1 14 -1 3
1 15 0 15 -1 2
1 15 1 15 -1 3
1 16 0 16 -1 2
1 16 1 16 -1 3
1 17 0 17 -1 2
1 17 1 17 -1 3
1 18 0 18 -1 2
1 18 1 18 -1 3
1 19 0 19 -1 2
1 19 1 19 -1 3
1 8 2 8 -1 6
1 8 3 8 -1 7
1 9 2 9 -1 6
1 9 3 9 -1 7
1 10 2 10 -1 6
1 10 3 10 -1 7
1 11 2 11 -1 6
1 11 3 11 -1 7
1 12 2 12 -1 6
1 12 3 12 -1 7
1 13 2 13 -1 6
1 13 3 13 -1 7
1 14 2 14 -1 6
1 14 3 14 -1 7
1 15 2 15 -1 6
1 15 3 15 -1 7
1 16 2 16 -1 6
1 16 3 16 -1 7
1 17 2 17 -1 6
1 17 3 17 -1 7
1 18 2 18 -1 6
1 18 3 18 -1 7
1 19 2 19 -1 6
1 19 3 19 -1 7
1 8 4 8 -1 0
1 8 5 8 -1 1
1 9 4 9 -1 0
1 9 5 9 -1 1
1 10 4 10 -1 0
1 10 5 10 -1 1
1 11 4 11 -1 0
1 11 5 11 -1 1
1 12 4 12 -1 0
1 12 5 12 -1 1
1 13 4 13 -1 0
1 13 5 13 -1 1
1 14 4 14 -1 0
1 14 5 14 -1 1
1 15 4 15 -1 0
1 15 5 15 -1 1
1 16 4 16 -1 0
1 16 5 16 -1 1
1 17 4 17 -1 0
1 17 5 17 -1 1
1 18 4 18 -1 0
1 18 5 18 -1 1
1 19 4 19 -1 0
1 19 5 19 -1 1
1 8 6 8 -1 4
1 8 7 8 -1 5
1 9 6 9 -1 4
1 9 7 9 -1 5
1 10 6 10 -1 4
1 10 7 10 -1 5
1 11 6 11 -1 4
1 11 7 11 -1 5
1 12 6 12 -1 4
1 12 7 12 -1 5
1 13 6 13 -1 4
1 13 7 13 -1 5
1 14 6 14 -1 4
1 14 7 14 -1 5
1 15 6 15 -1 4
1 15 7 15 -1 5
1 16 6 16 -1 4
1 16 7 16 -1 5
1 17 6 17 -1 4
1 17 7 17 -1 5
1 18 6 18 -1 4
1 18 7 18 -1 5
1 19 6 19 -1 4
1 19 7 19 -1 5
1
end_operator
begin_operator
F'_0
0
192
1 0 0 0 -1 3
1 0 1 0 -1 4
1 0 2 0 -1 5
1 1 0 1 -1 3
1 1 1 1 -1 4
1 1 2 1 -1 5
1 2 0 2 -1 3
1 2 1 2 -1 4
1 2 2 2 -1 5
1 3 0 3 -1 3
1 3 1 3 -1 4
1 3 2 3 -1 5
1 4 0 4 -1 3
1 4 1 4 -1 4
1 4 2 4 -1 5
1 5 0 5 -1 3
1 5 1 5 -1 4
1 5 2 5 -1 5
1 6 0 6 -1 3
1 6 1 6 -1 4
1 6 2 6 -1 5
1 7 0 7 -1 3
1 7 1 7 -1 4
1 7 2 7 -1 5
1 0 3 0 -1 9
1 0 5 0 -1 11
1 0 4 0 -1 10
1 1 3 1 -1 9
1 1 5 1 -1 11
1 1 4 1 -1 10
1 2 3 2 -1 9
1 2 5 2 -1 11
1 2 4 2 -1 10
1 3 3 3 -1 9
1 3 5 3 -1 11
1 3 4 3 -1 10
1 4 3 4 -1 9
1 4 5 4 -1 11
1 4 4 4 -1 10
1 5 3 5 -1 9
1 5 5 5 -1 11
1 5 4 5 -1 10
1 6 3 6 -1 9
1 6 5 6 -1 11
1 6 4 6 -1 10
1 7 3 7 -1 9
1 7 5 7 -1 11
1 7 4 7 -1 10
1 0 6 0 -1 0
1 0 8 0 -1 2
1 0 7 0 -1 1
1 1 6 1 -1 0
1 1 8 1 -1 2
1 1 7 1 -1 1
1 2 6 2 -1 0
1 2 8 2 -1 2
1 2 7 2 -1 1
1 3 6 3 -1 0
1 3 8 3 -1 2
1 3 7 3 -1 1
1 4 6 4 -1 0
1 4 8 4 -1 2
1 4 7 4 -1 1
1 5 6 5 -1 0
1 5 8 5 -1 2
1 5 7 5 -1 1
1 6 6 6 -1 0
1 6 8 6 -1 2
1 6 7 6 -1 1
1 7 6 7 -1 0
1 7 8 7 -1 2
1 7 7 7 -1 1
1 0 9 0 -1 6
1 0 10 0 -1 7
1 0 11 0 -1 8
1 1 9 1 -1 6
1 1 10 1 -1 7
1 1 11 1 -1 8
1 2 9 2 -1 6
1 2 10 2 -1 7
1 2 11 2 -1 8
1 3 9 3 -1 6
1 3 10 3 -1 7
1 3 11 3 -1 8
1 4 9 4 -1 6
1 4 10 4 -1 7
1 4 11 4 -1 8
1 5 9 5 -1 6
1 5 10 5 -1 7
1 5 11 5 -1 8
1 6 9 6 -1 6
1 6 10 6 -1 7
1 6 11 6 -1 8
1 7 9 7 -1 6
1 7 10 7 -1 7
1 7 11 7 -1 8
1 8 0 8 -1 4
1 8 1 8 -1 5
1 9 0 9 -1 4
1 9 1 9 -1 5
1 10 0 10 -1 4
1 10 1 10 -1 5
1 11 0 11 -1 4
1 11 1 11 -1 5
1 12 0 12 -1 4
1 12 1 12 -1 5
1 13 0 13 -1 4
1 13 1 13 -1 5
1 14 0 14 -1 4
1 14 1 14 -1 5
1 15 0 15 -1 4
1 15 1 15 -1 5
1 16 0 16 -1 4
1 16 1 16 -1 5
1 17 0 17 -1 4
1 17 1 17 -1 5
1 18 0 18 -1 4
1 18 1 18 -1 5
1 19 0 19 -1 4
1 19 1 19 -1 5
1 8 2 8 -1 0
1 8 3 8 -1 1
1 9 2 9 -1 0
1 9 3 9 -1 1
1 10 2 10 -1 0
1 10 3 10 -1 1
1 11 2 11 -1 0
1 11 3 11 -1 1
1 12 2 12 -1 0
1 12 3 12 -1 1
1 13 2 13 -1 0
1 13 3 13 -1 1
1 14 2 14 -1 0
1 14 3 14 -1 1
1 15 2 15 -1 0
1 15 3 15 -1 1
1 16 2 16 -1 0
1 16 3 16 -1 1
1 17 2 17 -1 0
1 17 3 17 -1 1
1 18 2 18 -1 0
1 18 3 18 -1 1
1 19 2 19 -1 0
1 19 3 19 -1 1
1 8 4 8 -1 6
1 8 5 8 -1 7
1 9 4 9 -1 6
1 9 5 9 -1 7
1 10 4 10 -1 6
1 10 5 10 -1 7
1 11 4 11 -1 6
1 11 5 11 -1 7
1 12 4 12 -1 6
1 12 5 12 -1 7
1 13 4 13 -1 6
1 13 5 13 -1 7
1 14 4 14 -1 6
1 14 5 14 -1 7
1 15 4 15 -1 6
1 15 5 15 -1 7
1 16 4 16 -1 6
1 16 5 16 -1 7
1 17 4 17 -1 6
1 17 5 17 -1 7
1 18 4 18 -1 6
1 18 5 18 -1 7
1 19 4 19 -1 6
1 19 5 19 -1 7
1 8 6 8 -1 2
1 8 7 8 -1 3
1 9 6 9 -1 2
1 9 7 9 -1 3
1 10 6 10 -1 2
1 10 7 10 -1 3
1 11 6 11 -1 2
1 11 7 11 -1 3
1 12 6 12 -1 2
1 12 7 12 -1 3
1 13 6 13 -1 2
1 13 7 13 -1 3
1 14 6 14 -1 2
1 14 7 14 -1 3
1 15 6 15 -1 2
1 15 7 15 -1 3
1 16 6 16 -1 2
1 16 7 16 -1 3
1 17 6 17 -1 2
1 17 7 17 -1 3
1 18 6 18 -1 2
1 18 7 18 -1 3
1 19 6 19 -1 2
1 19 7 19 -1 3
1
end_operator
begin_operator
B_0
0
192
1 0 12 0 -1 15
1 0 14 0 -1 17
1 0 13 0 -1 16
1 1 12 1 -1 15
1 1 14 1 -1 17
1 1 13 1 -1 16
1 2 12 2 -1 15
1 2 14 2 -1 17
1 2 13 2 -1 16
1 3 12 3 -1 15
1 3 14 3 -1 17
1 3 13 3 -1 16
1 4 12 4 -1 15
1 4 14 4 -1 17
1 4 13 4 -1 16
1 5 12 5 -1 15
1 5 14 5 -1 17
1 5 13 5 -1 16
1 6 12 6 -1 15
1 6 14 6 -1 17
1 6 13 6 -1 16
1 7 12 7 -1 15
1 7 14 7 -1 17
1 7 13 7 -1 16
1 0 15 0 -1 21
1 0 16 0 -1 22
1 0 17 0 -1 23
1 1 15 1 -1 21
1 1 16 1 -1 22
1 1 17 1 -1 23
1 2 15 2 -1 21
1 2 16 2 -1 22
1 2 17 2 -1 23
1 3 15 3 -1 21
1 3 16 3 -1 22
1 3 17 3 -1 23
1 4 15 4 -1 21
1 4 16 4 -1 22
1 4 17 4 -1 23
1 5 15 5 -1 21
1 5 16 5 -1 22
1 5 17 5 -1 23
1 6 15 6 -1 21
1 6 16 6 -1 22
1 6 17 6 -1 23
1 7 15 7 -1 21
1 7 16 7 -1 22
1 7 17 7 -1 23
1 0 18 0 -1 12
1 0 19 0 -1 13
1 0 20 0 -1 14
1 1 18 1 -1 12
1 1 19 1 -1 13
1 1 20 1 -1 14
1 2 18 2 -1 12
1 2 19 2 -1 13
1 2 20 2 -1 14
1 3 18 3 -1 12
1 3 19 3 -1 13
1 3 20 3 -1 14
1 4 18 4 -1 12
1 4 19 4 -1 13
1 4 20 4 -1 14
1 5 18 5 -1 12
1 5 19 5 -1 13
1 5 20 5 -1 14
1 6 18 6 -1 12
1 6 19 6 -1 13
1 6 20 6 -1 14
1 7 18 7 -1 12
1 7 19 7 -1 13
1 7 20 7 -1 14
1 0 21 0 -1 18
1 0 23 0 -1 20
1 0 22 0 -1 19
1 1 21 1 -1 18
1 1 23 1 -1 20
1 1 22 1 -1 19
1 2 21 2 -1 18
1 2 23 2 -1 20
1 2 22 2 -1 19
1 3 21 3 -1 18
1 3 23 3 -1 20
1 3 22 3 -1 19
1 4 21 4 -1 18
1 4 23 4 -1 20
1 4 22 4 -1 19
1 5 21 5 -1 18
1 5 23 5 -1 20
1 5 22 5 -1 19
1 6 21 6 -1 18
1 6 23 6 -1 20
1 6 22 6 -1 19
1 7 21 7 -1 18
1 7 23 7 -1 20
1 7 22 7 -1 19
1 8 16 8 -1 20
1 8 17 8 -1 21
1 9 16 9 -1 20
1 9 17 9 -1 21
1 10 16 10 -1 20
1 10 17 10 -1 21
1 11 16 11 -1 20
1 11 17 11 -1 21
1 12 16 12 -1 20
1 12 17 12 -1 21
1 13 16 13 -1 20
1 13 17 13 -1 21
1 14 16 14 -1 20
1 14 17 14 -1 21
1 15 16 15 -1 20
1 15 17 15 -1 21
1 16 16 16 -1 20
1 16 17 16 -1 21
1 17 16 17 -1 20
1 17 17 17 -1 21
1 18 16 18 -1 20
1 18 17 18 -1 21
1 19 16 19 -1 20
1 19 17 19 -1 21
1 8 18 8 -1 16
1 8 19 8 -1 17
1 9 18 9 -1 16
1 9 19 9 -1 17
1 10 18 10 -1 16
1 10 19 10 -1 17
1 11 18 11 -1 16
1 11 19 11 -1 17
1 12 18 12 -1 16
1 12 19 12 -1 17
1 13 18 13 -1 16
1 13 19 13 -1 17
1 14 18 14 -1 16
1 14 19 14 -1 17
1 15 18 15 -1 16
1 15 19 15 -1 17
1 16 18 16 -1 16
1 16 19 16 -1 17
1 17 18 17 -1 16
1 17 19 17 -1 17
1 18 18 18 -1 16
1 18 19 18 -1 17
1 19 18 19 -1 16
1 19 19 19 -1 17
1 8 20 8 -1 22
1 8 21 8 -1 23
1 9 20 9 -1 22
1 9 21 9 -1 23
1 10 20 10 -1 22
1 10 21 10 -1 23
1 11 20 11 -1 22
1 11 21 11 -1 23
1 12 20 12 -1 22
1 12 21 12 -1 23
1 13 20 13 -1 22
1 13 21 13 -1 23
1 14 20 14 -1 22
1 14 21 14 -1 23
1 15 20 15 -1 22
1 15 21 15 -1 23
1 16 20 16 -1 22
1 16 21 16 -1 23
1 17 20 17 -1 22
1 17 21 17 -1 23
1 18 20 18 -1 22
1 18 21 18 -1 23
1 19 20 19 -1 22
1 19 21 19 -1 23
1 8 22 8 -1 18
1 8 23 8 -1 19
1 9 22 9 -1 18
1 9 23 9 -1 19
1 10 22 10 -1 18
1 10 23 10 -1 19
1 11 22 11 -1 18
1 11 23 11 -1 19
1 12 22 12 -1 18
1 12 23 12 -1 19
1 13 22 13 -1 18
1 13 23 13 -1 19
1 14 22 14 -1 18
1 14 23 14 -1 19
1 15 22 15 -1 18
1 15 23 15 -1 19
1 16 22 16 -1 18
1 16 23 16 -1 19
1 17 22 17 -1 18
1 17 23 17 -1 19
1 18 22 18 -1 18
1 18 23 18 -1 19
1 19 22 19 -1 18
1 19 23 19 -1 19
1
end_operator
begin_operator
B'_0
0
192
1 0 12 0 -1 18
1 0 14 0 -1 20
1 0 13 0 -1 19
1 1 12 1 -1 18
1 1 14 1 -1 20
1 1 13 1 -1 19
1 2 12 2 -1 18
1 2 14 2 -1 20
1 2 13 2 -1 19
1 3 12 3 -1 18
1 3 14 3 -1 20
1 3 13 3 -1 19
1 4 12 4 -1 18
1 4 14 4 -1 20
1 4 13 4 -1 19
1 5 12 5 -1 18
1 5 14 5 -1 20
1 5 13 5 -1 19
1 6 12 6 -1 18
1 6 14 6 -1 20
1 6 13 6 -1 19
1 7 12 7 -1 18
1 7 14 7 -1 20
1 7 13 7 -1 19
1 0 15 0 -1 12
1 0 16 0 -1 13
1 0 17 0 -1 14
1 1 15 1 -1 12
1 1 16 1 -1 13
1 1 17 1 -1 14
1 2 15 2 -1 12
1 2 16 2 -1 13
1 2 17 2 -1 14
1 3 15 3 -1 12
1 3 16 3 -1 13
1 3 17 3 -1 14
1 4 15 4 -1 12
1 4 16 4 -1 13
1 4 17 4 -1 14
1 5 15 5 -1 12
1 5 16 5 -1 13
1 5 17 5 -1 14
1 6 15 6 -1 12
1 6 16 6 -1 13
1 6 17 6 -1 14
1 7 15 7 -1 12
1 7 16 7 -1 13
1 7 17 7 -1 14
1 0 18 0 -1 21
1 0 19 0 -1 22
1 0 20 0 -1 23
1 1 18 1 -1 21
1 1 19 1 -1 22
1 1 20 1 -1 23
1 2 18 2 -1 21
1 2 19 2 -1 22
1 2 20 2 -1 23
1 3 18 3 -1 21
1 3 19 3 -1 22
1 3 20 3 -1 23
1 4 18 4 -1 21
1 4 19 4 -1 22
1 4 20 4 -1 23
1 5 18 5 -1 21
1 5 19 5 -1 22
1 5 20 5 -1 23
1 6 18 6 -1 21
1 6 19 6 -1 22
1 6 20 6 -1 23
1 7 18 7 -1 21
1 7 19 7 -1 22
1 7 20 7 -1 23
1 0 21 0 -1 15
1 0 23 0 -1 17
1 0 22 0 -1 16
1 1 21 1 -1 15
1 1 23 1 -1 17
1 1 22 1 -1 16
1 2 21 2 -1 15
1 2 23 2 -1 17
1 2 22 2 -1 16
1 3 21 3 -1 15
1 3 23 3 -1 17
1 3 22 3 -1 16
1 4 21 4 -1 15
1 4 23 4 -1 17
1 4 22 4 -1 16
1 5 21 5 -1 15
1 5 23 5 -1 17
1 5 22 5 -1 16
1 6 21 6 -1 15
1 6 23 6 -1 17
1 6 22 6 -1 16
1 7 21 7 -1 15
1 7 23 7 -1 17
1 7 22 7 -1 16
1 8 16 8 -1 18
1 8 17 8 -1 19
1 9 16 9 -1 18
1 9 17 9 -1 19
1 10 16 10 -1 18
1 10 17 10 -1 19
1 11 16 11 -1 18
1 11 17 11 -1 19
1 12 16 12 -1 18
1 12 17 12 -1 19
1 13 16 13 -1 18
1 13 17 13 -1 19
1 14 16 14 -1 18
1 14 17 14 -1 19
1 15 16 15 -1 18
1 15 17 15 -1 19
1 16 16 16 -1 18
1 16 17 16 -1 19
1 17 16 17 -1 18
1 17 17 17 -1 19
1 18 16 18 -1 18
1 18 17 18 -1 19
1 19 16 19 -1 18
1 19 17 19 -1 19
1 8 18 8 -1 22
1 8 19 8 -1 23
1 9 18 9 -1 22
1 9 19 9 -1 23
1 10 18 10 -1 22
1 10 19 10 -1 23
1 11 18 11 -1 22
1 11 19 11 -1 23
1 12 18 12 -1 22
1 12 19 12 -1 23
1 13 18 13 -1 22
1 13 19 13 -1 23
1 14 18 14 -1 22
1 14 19 14 -1 23
1 15 18 15 -1 22
1 15 19 15 -1 23
1 16 18 16 -1 22
1 16 19 16 -1 23
1 17 18 17 -1 22
1 17 19 17 -1 23
1 18 18 18 -1 22
1 18 19 18 -1 23
1 19 18 19 -1 22
1 19 19 19 -1 23
1 8 20 8 -1 16
1 8 21 8 -1 17
1 9 20 9 -1 16
1 9 21 9 -1 17
1 10 20 10 -1 16
1 10 21 10 -1 17
1 11 20 11 -1 16
1 11 21 11 -1 17
1 12 20 12 -1 16
1 12 21 12 -1 17
1 13 20 13 -1 16
1 13 21 13 -1 17
1 14 20 14 -1 16
1 14 21 14 -1 17
1 15 20 15 -1 16
1 15 21 15 -1 17
1 16 20 16 -1 16
1 16 21 16 -1 17
1 17 20 17 -1 16
1 17 21 17 -1 17
1 18 20 18 -1 16
1 18 21 18 -1 17
1 19 20 19 -1 16
1 19 21 19 -1 17
1 8 22 8 -1 20
1 8 23 8 -1 21
1 9 22 9 -1 20
1 9 23 9 -1 21
1 10 22 10 -1 20
1 10 23 10 -1 21
1 11 22 11 -1 20
1 11 23 11 -1 21
1 12 22 12 -1 20
1 12 23 12 -1 21
1 13 22 13 -1 20
1 13 23 13 -1 21
1 14 22 14 -1 20
1 14 23 14 -1 21
1 15 22 15 -1 20
1 15 23 15 -1 21
1 16 22 16 -1 20
1 16 23 16 -1 21
1 17 22 17 -1 20
1 17 23 17 -1 21
1 18 22 18 -1 20
1 18 23 18 -1 21
1 19 22 19 -1 20
1 19 23 19 -1 21
1
end_operator
begin_operator
L_0
0
192
1 0 0 0 -1 5
1 0 1 0 -1 3
1 0 2 0 -1 4
1 1 0 1 -1 5
1 1 1 1 -1 3
1 1 2 1 -1 4
1 2 0 2 -1 5
1 2 1 2 -1 3
1 2 2 2 -1 4
1 3 0 3 -1 5
1 3 1 3 -1 3
1 3 2 3 -1 4
1 4 0 4 -1 5
1 4 1 4 -1 3
1 4 2 4 -1 4
1 5 0 5 -1 5
1 5 1 5 -1 3
1 5 2 5 -1 4
1 6 0 6 -1 5
1 6 1 6 -1 3
1 6 2 6 -1 4
1 7 0 7 -1 5
1 7 1 7 -1 3
1 7 2 7 -1 4
1 0 3 0 -1 16
1 0 5 0 -1 15
1 0 4 0 -1 17
1 1 3 1 -1 16
1 1 5 1 -1 15
1 1 4 1 -1 17
1 2 3 2 -1 16
1 2 5 2 -1 15
1 2 4 2 -1 17
1 3 3 3 -1 16
1 3 5 3 -1 15
1 3 4 3 -1 17
1 4 3 4 -1 16
1 4 5 4 -1 15
1 4 4 4 -1 17
1 5 3 5 -1 16
1 5 5 5 -1 15
1 5 4 5 -1 17
1 6 3 6 -1 16
1 6 5 6 -1 15
1 6 4 6 -1 17
1 7 3 7 -1 16
1 7 5 7 -1 15
1 7 4 7 -1 17
1 0 12 0 -1 1
1 0 14 0 -1 0
1 0 13 0 -1 2
1 1 12 1 -1 1
1 1 14 1 -1 0
1 1 13 1 -1 2
1 2 12 2 -1 1
1 2 14 2 -1 0
1 2 13 2 -1 2
1 3 12 3 -1 1
1 3 14 3 -1 0
1 3 13 3 -1 2
1 4 12 4 -1 1
1 4 14 4 -1 0
1 4 13 4 -1 2
1 5 12 5 -1 1
1 5 14 5 -1 0
1 5 13 5 -1 2
1 6 12 6 -1 1
1 6 14 6 -1 0
1 6 13 6 -1 2
1 7 12 7 -1 1
1 7 14 7 -1 0
1 7 13 7 -1 2
1 0 15 0 -1 14
1 0 16 0 -1 12
1 0 17 0 -1 13
1 1 15 1 -1 14
1 1 16 1 -1 12
1 1 17 1 -1 13
1 2 15 2 -1 14
1 2 16 2 -1 12
1 2 17 2 -1 13
1 3 15 3 -1 14
1 3 16 3 -1 12
1 3 17 3 -1 13
1 4 15 4 -1 14
1 4 16 4 -1 12
1 4 17 4 -1 13
1 5 15 5 -1 14
1 5 16 5 -1 12
1 5 17 5 -1 13
1 6 15 6 -1 14
1 6 16 6 -1 12
1 6 17 6 -1 13
1 7 15 7 -1 14
1 7 16 7 -1 12
1 7 17 7 -1 13
1 8 0 8 -1 11
1 8 1 8 -1 10
1 9 0 9 -1 11
1 9 1 9 -1 10
1 10 0 10 -1 11
1 10 1 10 -1 10
1 11 0 11 -1 11
1 11 1 11 -1 10
1 12 0 12 -1 11
1 12 1 12 -1 10
1 13 0 13 -1 11
1 13 1 13 -1 10
1 14 0 14 -1 11
1 14 1 14 -1 10
1 15 0 15 -1 11
1 15 1 15 -1 10
1 16 0 16 -1 11
1 16 1 16 -1 10
1 17 0 17 -1 11
1 17 1 17 -1 10
1 18 0 18 -1 11
1 18 1 18 -1 10
1 19 0 19 -1 11
1 19 1 19 -1 10
1 8 8 8 -1 1
1 8 9 8 -1 0
1 9 8 9 -1 1
1 9 9 9 -1 0
1 10 8 10 -1 1
1 10 9 10 -1 0
1 11 8 11 -1 1
1 11 9 11 -1 0
1 12 8 12 -1 1
1 12 9 12 -1 0
1 13 8 13 -1 1
1 13 9 13 -1 0
1 14 8 14 -1 1
1 14 9 14 -1 0
1 15 8 15 -1 1
1 15 9 15 -1 0
1 16 8 16 -1 1
1 16 9 16 -1 0
1 17 8 17 -1 1
1 17 9 17 -1 0
1 18 8 18 -1 1
1 18 9 18 -1 0
1 19 8 19 -1 1
1 19 9 19 -1 0
1 8 10 8 -1 17
1 8 11 8 -1 16
1 9 10 9 -1 17
1 9 11 9 -1 16
1 10 10 10 -1 17
1 10 11 10 -1 16
1 11 10 11 -1 17
1 11 11 11 -1 16
1 12 10 12 -1 17
1 12 11 12 -1 16
1 13 10 13 -1 17
1 13 11 13 -1 16
1 14 10 14 -1 17
1 14 11 14 -1 16
1 15 10 15 -1 17
1 15 11 15 -1 16
1 16 10 16 -1 17
1 16 11 16 -1 16
1 17 10 17 -1 17
1 17 11 17 -1 16
1 18 10 18 -1 17
1 18 11 18 -1 16
1 19 10 19 -1 17
1 19 11 19 -1 16
1 8 16 8 -1 9
1 8 17 8 -1 8
1 9 16 9 -1 9
1 9 17 9 -1 8
1 10 16 10 -1 9
1 10 17 10 -1 8
1 11 16 11 -1 9
1 11 17 11 -1 8
1 12 16 12 -1 9
1 12 17 12 -1 8
1 13 16 13 -1 9
1 13 17 13 -1 8
1 14 16 14 -1 9
1 14 17 14 -1 8
1 15 16 15 -1 9
1 15 17 15 -1 8
1 16 16 16 -1 9
1 16 17 16 -1 8
1 17 16 17 -1 9
1 17 17 17 -1 8
1 18 16 18 -1 9
1 18 17 18 -1 8
1 19 16 19 -1 9
1 19 17 19 -1 8
1
end_operator
begin_operator
L'_0
0
192
1 0 0 0 -1 14
1 0 1 0 -1 12
1 0 2 0 -1 13
1 1 0 1 -1 14
1 1 1 1 -1 12
1 1 2 1 -1 13
1 2 0 2 -1 14
1 2 1 2 -1 12
1 2 2 2 -1 13
1 3 0 3 -1 14
1 3 1 3 -1 12
1 3 2 3 -1 13
1 4 0 4 -1 14
1 4 1 4 -1 12
1 4 2 4 -1 13
1 5 0 5 -1 14
1 5 1 5 -1 12
1 5 2 5 -1 13
1 6 0 6 -1 14
1 6 1 6 -1 12
1 6 2 6 -1 13
1 7 0 7 -1 14
1 7 1 7 -1 12
1 7 2 7 -1 13
1 0 3 0 -1 1
1 0 5 0 -1 0
1 0 4 0 -1 2
1 1 3 1 -1 1
1 1 5 1 -1 0
1 1 4 1 -1 2
1 2 3 2 -1 1
1 2 5 2 -1 0
1 2 4 2 -1 2
1 3 3 3 -1 1
1 3 5 3 -1 0
1 3 4 3 -1 2
1 4 3 4 -1 1
1 4 5 4 -1 0
1 4 4 4 -1 2
1 5 3 5 -1 1
1 5 5 5 -1 0
1 5 4 5 -1 2
1 6 3 6 -1 1
1 6 5 6 -1 0
1 6 4 6 -1 2
1 7 3 7 -1 1
1 7 5 7 -1 0
1 7 4 7 -1 2
1 0 12 0 -1 16
1 0 14 0 -1 15
1 0 13 0 -1 17
1 1 12 1 -1 16
1 1 14 1 -1 15
1 1 13 1 -1 17
1 2 12 2 -1 16
1 2 14 2 -1 15
1 2 13 2 -1 17
1 3 12 3 -1 16
1 3 14 3 -1 15
1 3 13 3 -1 17
1 4 12 4 -1 16
1 4 14 4 -1 15
1 4 13 4 -1 17
1 5 12 5 -1 16
1 5 14 5 -1 15
1 5 13 5 -1 17
1 6 12 6 -1 16
1 6 14 6 -1 15
1 6 13 6 -1 17
1 7 12 7 -1 16
1 7 14 7 -1 15
1 7 13 7 -1 17
1 0 15 0 -1 5
1 0 16 0 -1 3
1 0 17 0 -1 4
1 1 15 1 -1 5
1 1 16 1 -1 3
1 1 17 1 -1 4
1 2 15 2 -1 5
1 2 16 2 -1 3
1 2 17 2 -1 4
1 3 15 3 -1 5
1 3 16 3 -1 3
1 3 17 3 -1 4
1 4 15 4 -1 5
1 4 16 4 -1 3
1 4 17 4 -1 4
1 5 15 5 -1 5
1 5 16 5 -1 3
1 5 17 5 -1 4
1 6 15 6 -1 5
1 6 16 6 -1 3
1 6 17 6 -1 4
1 7 15 7 -1 5
1 7 16 7 -1 3
1 7 17 7 -1 4
1 8 0 8 -1 9
1 8 1 8 -1 8
1 9 0 9 -1 9
1 9 1 9 -1 8
1 10 0 10 -1 9
1 10 1 10 -1 8
1 11 0 11 -1 9
1 11 1 11 -1 8
1 12 0 12 -1 9
1 12 1 12 -1 8
1 13 0 13 -1 9
1 13 1 13 -1 8
1 14 0 14 -1 9
1 14 1 14 -1 8
1 15 0 15 -1 9
1 15 1 15 -1 8
1 16 0 16 -1 9
1 16 1 16 -1 8
1 17 0 17 -1 9
1 17 1 17 -1 8
1 18 0 18 -1 9
1 18 1 18 -1 8
1 19 0 19 -1 9
1 19 1 19 -1 8
1 8 8 8 -1 17
1 8 9 8 -1 16
1 9 8 9 -1 17
1 9 9 9 -1 16
1 10 8 10 -1 17
1 10 9 10 -1 16
1 11 8 11 -1 17
1 11 9 11 -1 16
1 12 8 12 -1 17
1 12 9 12 -1 16
1 13 8 13 -1 17
1 13 9 13 -1 16
1 14 8 14 -1 17
1 14 9 14 -1 16
1 15 8 15 -1 17
1 15 9 15 -1 16
1 16 8 16 -1 17
1 16 9 16 -1 16
1 17 8 17 -1 17
1 17 9 17 -1 16
1 18 8 18 -1 17
1 18 9 18 -1 16
1 19 8 19 -1 17
1 19 9 19 -1 16
1 8 10 8 -1 1
1 8 11 8 -1 0
1 9 10 9 -1 1
1 9 11 9 -1 0
1 10 10 10 -1 1
1 10 11 10 -1 0
1 11 10 11 -1 1
1 11 11 11 -1 0
1 12 10 12 -1 1
1 12 11 12 -1 0
1 13 10 13 -1 1
1 13 11 13 -1 0
1 14 10 14 -1 1
1 14 11 14 -1 0
1 15 10 15 -1 1
1 15 11 15 -1 0
1 16 10 16 -1 1
1 16 11 16 -1 0
1 17 10 17 -1 1
1 17 11 17 -1 0
1 18 10 18 -1 1
1 18 11 18 -1 0
1 19 10 19 -1 1
1 19 11 19 -1 0
1 8 16 8 -1 11
1 8 17 8 -1 10
1 9 16 9 -1 11
1 9 17 9 -1 10
1 10 16 10 -1 11
1 10 17 10 -1 10
1 11 16 11 -1 11
1 11 17 11 -1 10
1 12 16 12 -1 11
1 12 17 12 -1 10
1 13 16 13 -1 11
1 13 17 13 -1 10
1 14 16 14 -1 11
1 14 17 14 -1 10
1 15 16 15 -1 11
1 15 17 15 -1 10
1 16 16 16 -1 11
1 16 17 16 -1 10
1 17 16 17 -1 11
1 17 17 17 -1 10
1 18 16 18 -1 11
1 18 17 18 -1 10
1 19 16 19 -1 11
1 19 17 19 -1 10
1
end_operator
begin_operator
R_0
0
192
1 0 6 0 -1 19
1 0 8 0 -1 18
1 0 7 0 -1 20
1 1 6 1 -1 19
1 1 8 1 -1 18
1 1 7 1 -1 20
1 2 6 2 -1 19
1 2 8 2 -1 18
1 2 7 2 -1 20
1 3 6 3 -1 19
1 3 8 3 -1 18
1 3 7 3 -1 20
1 4 6 4 -1 19
1 4 8 4 -1 18
1 4 7 4 -1 20
1 5 6 5 -1 19
1 5 8 5 -1 18
1 5 7 5 -1 20
1 6 6 6 -1 19
1 6 8 6 -1 18
1 6 7 6 -1 20
1 7 6 7 -1 19
1 7 8 7 -1 18
1 7 7 7 -1 20
1 0 9 0 -1 8
1 0 10 0 -1 6
1 0 11 0 -1 7
1 1 9 1 -1 8
1 1 10 1 -1 6
1 1 11 1 -1 7
1 2 9 2 -1 8
1 2 10 2 -1 6
1 2 11 2 -1 7
1 3 9 3 -1 8
1 3 10 3 -1 6
1 3 11 3 -1 7
1 4 9 4 -1 8
1 4 10 4 -1 6
1 4 11 4 -1 7
1 5 9 5 -1 8
1 5 10 5 -1 6
1 5 11 5 -1 7
1 6 9 6 -1 8
1 6 10 6 -1 6
1 6 11 6 -1 7
1 7 9 7 -1 8
1 7 10 7 -1 6
1 7 11 7 -1 7
1 0 18 0 -1 23
1 0 19 0 -1 21
1 0 20 0 -1 22
1 1 18 1 -1 23
1 1 19 1 -1 21
1 1 20 1 -1 22
1 2 18 2 -1 23
1 2 19 2 -1 21
1 2 20 2 -1 22
1 3 18 3 -1 23
1 3 19 3 -1 21
1 3 20 3 -1 22
1 4 18 4 -1 23
1 4 19 4 -1 21
1 4 20 4 -1 22
1 5 18 5 -1 23
1 5 19 5 -1 21
1 5 20 5 -1 22
1 6 18 6 -1 23
1 6 19 6 -1 21
1 6 20 6 -1 22
1 7 18 7 -1 23
1 7 19 7 -1 21
1 7 20 7 -1 22
1 0 21 0 -1 10
1 0 23 0 -1 9
1 0 22 0 -1 11
1 1 21 1 -1 10
1 1 23 1 -1 9
1 1 22 1 -1 11
1 2 21 2 -1 10
1 2 23 2 -1 9
1 2 22 2 -1 11
1 3 21 3 -1 10
1 3 23 3 -1 9
1 3 22 3 -1 11
1 4 21 4 -1 10
1 4 23 4 -1 9
1 4 22 4 -1 11
1 5 21 5 -1 10
1 5 23 5 -1 9
1 5 22 5 -1 11
1 6 21 6 -1 10
1 6 23 6 -1 9
1 6 22 6 -1 11
1 7 21 7 -1 10
1 7 23 7 -1 9
1 7 22 7 -1 11
1 8 6 8 -1 13
1 8 7 8 -1 12
1 9 6 9 -1 13
1 9 7 9 -1 12
1 10 6 10 -1 13
1 10 7 10 -1 12
1 11 6 11 -1 13
1 11 7 11 -1 12
1 12 6 12 -1 13
1 12 7 12 -1 12
1 13 6 13 -1 13
1 13 7 13 -1 12
1 14 6 14 -1 13
1 14 7 14 -1 12
1 15 6 15 -1 13
1 15 7 15 -1 12
1 16 6 16 -1 13
1 16 7 16 -1 12
1 17 6 17 -1 13
1 17 7 17 -1 12
1 18 6 18 -1 13
1 18 7 18 -1 12
1 19 6 19 -1 13
1 19 7 19 -1 12
1 8 12 8 -1 23
1 8 13 8 -1 22
1 9 12 9 -1 23
1 9 13 9 -1 22
1 10 12 10 -1 23
1 10 13 10 -1 22
1 11 12 11 -1 23
1 11 13 11 -1 22
1 12 12 12 -1 23
1 12 13 12 -1 22
1 13 12 13 -1 23
1 13 13 13 -1 22
1 14 12 14 -1 23
1 14 13 14 -1 22
1 15 12 15 -1 23
1 15 13 15 -1 22
1 16 12 16 -1 23
1 16 13 16 -1 22
1 17 12 17 -1 23
1 17 13 17 -1 22
1 18 12 18 -1 23
1 18 13 18 -1 22
1 19 12 19 -1 23
1 19 13 19 -1 22
1 8 14 8 -1 7
1 8 15 8 -1 6
1 9 14 9 -1 7
1 9 15 9 -1 6
1 10 14 10 -1 7
1 10 15 10 -1 6
1 11 14 11 -1 7
1 11 15 11 -1 6
1 12 14 12 -1 7
1 12 15 12 -1 6
1 13 14 13 -1 7
1 13 15 13 -1 6
1 14 14 14 -1 7
1 14 15 14 -1 6
1 15 14 15 -1 7
1 15 15 15 -1 6
1 16 14 16 -1 7
1 16 15 16 -1 6
1 17 14 17 -1 7
1 17 15 17 -1 6
1 18 14 18 -1 7
1 18 15 18 -1 6
1 19 14 19 -1 7
1 19 15 19 -1 6
1 8 22 8 -1 15
1 8 23 8 -1 14
1 9 22 9 -1 15
1 9 23 9 -1 14
1 10 22 10 -1 15
1 10 23 10 -1 14
1 11 22 11 -1 15
1 11 23 11 -1 14
1 12 22 12 -1 15
1 12 23 12 -1 14
1 13 22 13 -1 15
1 13 23 13 -1 14
1 14 22 14 -1 15
1 14 23 14 -1 14
1 15 22 15 -1 15
1 15 23 15 -1 14
1 16 22 16 -1 15
1 16 23 16 -1 14
1 17 22 17 -1 15
1 17 23 17 -1 14
1 18 22 18 -1 15
1 18 23 18 -1 14
1 19 22 19 -1 15
1 19 23 19 -1 14
1
end_operator
begin_operator
R'_0
0
192
1 0 6 0 -1 10
1 0 8 0 -1 9
1 0 7 0 -1 11
1 1 6 1 -1 10
1 1 8 1 -1 9
1 1 7 1 -1 11
1 2 6 2 -1 10
1 2 8 2 -1 9
1 2 7 2 -1 11
1 3 6 3 -1 10
1 3 8 3 -1 9
1 3 7 3 -1 11
1 4 6 4 -1 10
1 4 8 4 -1 9
1 4 7 4 -1 11
1 5 6 5 -1 10
1 5 8 5 -1 9
1 5 7 5 -1 11
1 6 6 6 -1 10
1 6 8 6 -1 9
1 6 7 6 -1 11
1 7 6 7 -1 10
1 7 8 7 -1 9
1 7 7 7 -1 11
1 0 9 0 -1 23
1 0 10 0 -1 21
1 0 11 0 -1 22
1 1 9 1 -1 23
1 1 10 1 -1 21
1 1 11 1 -1 22
1 2 9 2 -1 23
1 2 10 2 -1 21
1 2 11 2 -1 22
1 3 9 3 -1 23
1 3 10 3 -1 21
1 3 11 3 -1 22
1 4 9 4 -1 23
1 4 10 4 -1 21
1 4 11 4 -1 22
1 5 9 5 -1 23
1 5 10 5 -1 21
1 5 11 5 -1 22
1 6 9 6 -1 23
1 6 10 6 -1 21
1 6 11 6 -1 22
1 7 9 7 -1 23
1 7 10 7 -1 21
1 7 11 7 -1 22
1 0 18 0 -1 8
1 0 19 0 -1 6
1 0 20 0 -1 7
1 1 18 1 -1 8
1 1 19 1 -1 6
1 1 20 1 -1 7
1 2 18 2 -1 8
1 2 19 2 -1 6
1 2 20 2 -1 7
1 3 18 3 -1 8
1 3 19 3 -1 6
1 3 20 3 -1 7
1 4 18 4 -1 8
1 4 19 4 -1 6
1 4 20 4 -1 7
1 5 18 5 -1 8
1 5 19 5 -1 6
1 5 20 5 -1 7
1 6 18 6 -1 8
1 6 19 6 -1 6
1 6 20 6 -1 7
1 7 18 7 -1 8
1 7 19 7 -1 6
1 7 20 7 -1 7
1 0 21 0 -1 19
1 0 23 0 -1 18
1 0 22 0 -1 20
1 1 21 1 -1 19
1 1 23 1 -1 18
1 1 22 1 -1 20
1 2 21 2 -1 19
1 2 23 2 -1 18
1 2 22 2 -1 20
1 3 21 3 -1 19
1 3 23 3 -1 18
1 3 22 3 -1 20
1 4 21 4 -1 19
1 4 23 4 -1 18
1 4 22 4 -1 20
1 5 21 5 -1 19
1 5 23 5 -1 18
1 5 22 5 -1 20
1 6 21 6 -1 19
1 6 23 6 -1 18
1 6 22 6 -1 20
1 7 21 7 -1 19
1 7 23 7 -1 18
1 7 22 7 -1 20
1 8 6 8 -1 15
1 8 7 8 -1 14
1 9 6 9 -1 15
1 9 7 9 -1 14
1 10 6 10 -1 15
1 10 7 10 -1 14
1 11 6 11 -1 15
1 11 7 11 -1 14
1 12 6 12 -1 15
1 12 7 12 -1 14
1 13 6 13 -1 15
1 13 7 13 -1 14
1 14 6 14 -1 15
1 14 7 14 -1 14
1 15 6 15 -1 15
1 15 7 15 -1 14
1 16 6 16 -1 15
1 16 7 16 -1 14
1 17 6 17 -1 15
1 17 7 17 -1 14
1 18 6 18 -1 15
1 18 7 18 -1 14
1 19 6 19 -1 15
1 19 7 19 -1 14
1 8 12 8 -1 7
1 8 13 8 -1 6
1 9 12 9 -1 7
1 9 13 9 -1 6
1 10 12 10 -1 7
1 10 13 10 -1 6
1 11 12 11 -1 7
1 11 13 11 -1 6
1 12 12 12 -1 7
1 12 13 12 -1 6
1 13 12 13 -1 7
1 13 13 13 -1 6
1 14 12 14 -1 7
1 14 13 14 -1 6
1 15 12 15 -1 7
1 15 13 15 -1 6
1 16 12 16 -1 7
1 16 13 16 -1 6
1 17 12 17 -1 7
1 17 13 17 -1 6
1 18 12 18 -1 7
1 18 13 18 -1 6
1 19 12 19 -1 7
1 19 13 19 -1 6
1 8 14 8 -1 23
1 8 15 8 -1 22
1 9 14 9 -1 23
1 9 15 9 -1 22
1 10 14 10 -1 23
1 10 15 10 -1 22
1 11 14 11 -1 23
1 11 15 11 -1 22
1 12 14 12 -1 23
1 12 15 12 -1 22
1 13 14 13 -1 23
1 13 15 13 -1 22
1 14 14 14 -1 23
1 14 15 14 -1 22
1 15 14 15 -1 23
1 15 15 15 -1 22
1 16 14 16 -1 23
1 16 15 16 -1 22
1 17 14 17 -1 23
1 17 15 17 -1 22
1 18 14 18 -1 23
1 18 15 18 -1 22
1 19 14 19 -1 23
1 19 15 19 -1 22
1 8 22 8 -1 13
1 8 23 8 -1 12
1 9 22 9 -1 13
1 9 23 9 -1 12
1 10 22 10 -1 13
1 10 23 10 -1 12
1 11 22 11 -1 13
1 11 23 11 -1 12
1 12 22 12 -1 13
1 12 23 12 -1 12
1 13 22 13 -1 13
1 13 23 13 -1 12
1 14 22 14 -1 13
1 14 23 14 -1 12
1 15 22 15 -1 13
1 15 23 15 -1 12
1 16 22 16 -1 13
1 16 23 16 -1 12
1 17 22 17 -1 13
1 17 23 17 -1 12
1 18 22 18 -1 13
1 18 23 18 -1 12
1 19 22 19 -1 13
1 19 23 19 -1 12
1
end_operator
begin_operator
U_0
0
192
1 0 0 0 -1 13
1 0 1 0 -1 14
1 0 2 0 -1 12
1 1 0 1 -1 13
1 1 1 1 -1 14
1 1 2 1 -1 12
1 2 0 2 -1 13
1 2 1 2 -1 14
1 2 2 2 -1 12
1 3 0 3 -1 13
1 3 1 3 -1 14
1 3 2 3 -1 12
1 4 0 4 -1 13
1 4 1 4 -1 14
1 4 2 4 -1 12
1 5 0 5 -1 13
1 5 1 5 -1 14
1 5 2 5 -1 12
1 6 0 6 -1 13
1 6 1 6 -1 14
1 6 2 6 -1 12
1 7 0 7 -1 13
1 7 1 7 -1 14
1 7 2 7 -1 12
1 0 6 0 -1 2
1 0 8 0 -1 1
1 0 7 0 -1 0
1 1 6 1 -1 2
1 1 8 1 -1 1
1 1 7 1 -1 0
1 2 6 2 -1 2
1 2 8 2 -1 1
1 2 7 2 -1 0
1 3 6 3 -1 2
1 3 8 3 -1 1
1 3 7 3 -1 0
1 4 6 4 -1 2
1 4 8 4 -1 1
1 4 7 4 -1 0
1 5 6 5 -1 2
1 5 8 5 -1 1
1 5 7 5 -1 0
1 6 6 6 -1 2
1 6 8 6 -1 1
1 6 7 6 -1 0
1 7 6 7 -1 2
1 7 8 7 -1 1
1 7 7 7 -1 0
1 0 12 0 -1 20
1 0 14 0 -1 19
1 0 13 0 -1 18
1 1 12 1 -1 20
1 1 14 1 -1 19
1 1 13 1 -1 18
1 2 12 2 -1 20
1 2 14 2 -1 19
1 2 13 2 -1 18
1 3 12 3 -1 20
1 3 14 3 -1 19
1 3 13 3 -1 18
1 4 12 4 -1 20
1 4 14 4 -1 19
1 4 13 4 -1 18
1 5 12 5 -1 20
1 5 14 5 -1 19
1 5 13 5 -1 18
1 6 12 6 -1 20
1 6 14 6 -1 19
1 6 13 6 -1 18
1 7 12 7 -1 20
1 7 14 7 -1 19
1 7 13 7 -1 18
1 0 18 0 -1 7
1 0 19 0 -1 8
1 0 20 0 -1 6
1 1 18 1 -1 7
1 1 19 1 -1 8
1 1 20 1 -1 6
1 2 18 2 -1 7
1 2 19 2 -1 8
1 2 20 2 -1 6
1 3 18 3 -1 7
1 3 19 3 -1 8
1 3 20 3 -1 6
1 4 18 4 -1 7
1 4 19 4 -1 8
1 4 20 4 -1 6
1 5 18 5 -1 7
1 5 19 5 -1 8
1 5 20 5 -1 6
1 6 18 6 -1 7
1 6 19 6 -1 8
1 6 20 6 -1 6
1 7 18 7 -1 7
1 7 19 7 -1 8
1 7 20 7 -1 6
1 8 2 8 -1 8
1 8 3 8 -1 9
1 9 2 9 -1 8
1 9 3 9 -1 9
1 10 2 10 -1 8
1 10 3 10 -1 9
1 11 2 11 -1 8
1 11 3 11 -1 9
1 12 2 12 -1 8
1 12 3 12 -1 9
1 13 2 13 -1 8
1 13 3 13 -1 9
1 14 2 14 -1 8
1 14 3 14 -1 9
1 15 2 15 -1 8
1 15 3 15 -1 9
1 16 2 16 -1 8
1 16 3 16 -1 9
1 17 2 17 -1 8
1 17 3 17 -1 9
1 18 2 18 -1 8
1 18 3 18 -1 9
1 19 2 19 -1 8
1 19 3 19 -1 9
1 8 8 8 -1 18
1 8 9 8 -1 19
1 9 8 9 -1 18
1 9 9 9 -1 19
1 10 8 10 -1 18
1 10 9 10 -1 19
1 11 8 11 -1 18
1 11 9 11 -1 19
1 12 8 12 -1 18
1 12 9 12 -1 19
1 13 8 13 -1 18
1 13 9 13 -1 19
1 14 8 14 -1 18
1 14 9 14 -1 19
1 15 8 15 -1 18
1 15 9 15 -1 19
1 16 8 16 -1 18
1 16 9 16 -1 19
1 17 8 17 -1 18
1 17 9 17 -1 19
1 18 8 18 -1 18
1 18 9 18 -1 19
1 19 8 19 -1 18
1 19 9 19 -1 19
1 8 12 8 -1 2
1 8 13 8 -1 3
1 9 12 9 -1 2
1 9 13 9 -1 3
1 10 12 10 -1 2
1 10 13 10 -1 3
1 11 12 11 -1 2
1 11 13 11 -1 3
1 12 12 12 -1 2
1 12 13 12 -1 3
1 13 12 13 -1 2
1 13 13 13 -1 3
1 14 12 14 -1 2
1 14 13 14 -1 3
1 15 12 15 -1 2
1 15 13 15 -1 3
1 16 12 16 -1 2
1 16 13 16 -1 3
1 17 12 17 -1 2
1 17 13 17 -1 3
1 18 12 18 -1 2
1 18 13 18 -1 3
1 19 12 19 -1 2
1 19 13 19 -1 3
1 8 18 8 -1 12
1 8 19 8 -1 13
1 9 18 9 -1 12
1 9 19 9 -1 13
1 10 18 10 -1 12
1 10 19 10 -1 13
1 11 18 11 -1 12
1 11 19 11 -1 13
1 12 18 12 -1 12
1 12 19 12 -1 13
1 13 18 13 -1 12
1 13 19 13 -1 13
1 14 18 14 -1 12
1 14 19 14 -1 13
1 15 18 15 -1 12
1 15 19 15 -1 13
1 16 18 16 -1 12
1 16 19 16 -1 13
1 17 18 17 -1 12
1 17 19 17 -1 13
1 18 18 18 -1 12
1 18 19 18 -1 13
1 19 18 19 -1 12
1 19 19 19 -1 13
1
end_operator
begin_operator
U'_0
0
192
1 0 0 0 -1 7
1 0 1 0 -1 8
1 0 2 0 -1 6
1 1 0 1 -1 7
1 1 1 1 -1 8
1 1 2 1 -1 6
1 2 0 2 -1 7
1 2 1 2 -1 8
1 2 2 2 -1 6
1 3 0 3 -1 7
1 3 1 3 -1 8
1 3 2 3 -1 6
1 4 0 4 -1 7
1 4 1 4 -1 8
1 4 2 4 -1 6
1 5 0 5 -1 7
1 5 1 5 -1 8
1 5 2 5 -1 6
1 6 0 6 -1 7
1 6 1 6 -1 8
1 6 2 6 -1 6
1 7 0 7 -1 7
1 7 1 7 -1 8
1 7 2 7 -1 6
1 0 6 0 -1 20
1 0 8 0 -1 19
1 0 7 0 -1 18
1 1 6 1 -1 20
1 1 8 1 -1 19
1 1 7 1 -1 18
1 2 6 2 -1 20
1 2 8 2 -1 19
1 2 7 2 -1 18
1 3 6 3 -1 20
1 3 8 3 -1 19
1 3 7 3 -1 18
1 4 6 4 -1 20
1 4 8 4 -1 19
1 4 7 4 -1 18
1 5 6 5 -1 20
1 5 8 5 -1 19
1 5 7 5 -1 18
1 6 6 6 -1 20
1 6 8 6 -1 19
1 6 7 6 -1 18
1 7 6 7 -1 20
1 7 8 7 -1 19
1 7 7 7 -1 18
1 0 12 0 -1 2
1 0 14 0 -1 1
1 0 13 0 -1 0
1 1 12 1 -1 2
1 1 14 1 -1 1
1 1 13 1 -1 0
1 2 12 2 -1 2
1 2 14 2 -1 1
1 2 13 2 -1 0
1 3 12 3 -1 2
1 3 14 3 -1 1
1 3 13 3 -1 0
1 4 12 4 -1 2
1 4 14 4 -1 1
1 4 13 4 -1 0
1 5 12 5 -1 2
1 5 14 5 -1 1
1 5 13 5 -1 0
1 6 12 6 -1 2
1 6 14 6 -1 1
1 6 13 6 -1 0
1 7 12 7 -1 2
1 7 14 7 -1 1
1 7 13 7 -1 0
1 0 18 0 -1 13
1 0 19 0 -1 14
1 0 20 0 -1 12
1 1 18 1 -1 13
1 1 19 1 -1 14
1 1 20 1 -1 12
1 2 18 2 -1 13
1 2 19 2 -1 14
1 2 20 2 -1 12
1 3 18 3 -1 13
1 3 19 3 -1 14
1 3 20 3 -1 12
1 4 18 4 -1 13
1 4 19 4 -1 14
1 4 20 4 -1 12
1 5 18 5 -1 13
1 5 19 5 -1 14
1 5 20 5 -1 12
1 6 18 6 -1 13
1 6 19 6 -1 14
1 6 20 6 -1 12
1 7 18 7 -1 13
1 7 19 7 -1 14
1 7 20 7 -1 12
1 8 2 8 -1 12
1 8 3 8 -1 13
1 9 2 9 -1 12
1 9 3 9 -1 13
1 10 2 10 -1 12
1 10 3 10 -1 13
1 11 2 11 -1 12
1 11 3 11 -1 13
1 12 2 12 -1 12
1 12 3 12 -1 13
1 13 2 13 -1 12
1 13 3 13 -1 13
1 14 2 14 -1 12
1 14 3 14 -1 13
1 15 2 15 -1 12
1 15 3 15 -1 13
1 16 2 16 -1 12
1 16 3 16 -1 13
1 17 2 17 -1 12
1 17 3 17 -1 13
1 18 2 18 -1 12
1 18 3 18 -1 13
1 19 2 19 -1 12
1 19 3 19 -1 13
1 8 8 8 -1 2
1 8 9 8 -1 3
1 9 8 9 -1 2
1 9 9 9 -1 3
1 10 8 10 -1 2
1 10 9 10 -1 3
1 11 8 11 -1 2
1 11 9 11 -1 3
1 12 8 12 -1 2
1 12 9 12 -1 3
1 13 8 13 -1 2
1 13 9 13 -1 3
1 14 8 14 -1 2
1 14 9 14 -1 3
1 15 8 15 -1 2
1 15 9 15 -1 3
1 16 8 16 -1 2
1 16 9 16 -1 3
1 17 8 17 -1 2
1 17 9 17 -1 3
1 18 8 18 -1 2
1 18 9 18 -1 3
1 19 8 19 -1 2
1 19 9 19 -1 3
1 8 12 8 -1 18
1 8 13 8 -1 19
1 9 12 9 -1 18
1 9 13 9 -1 19
1 10 12 10 -1 18
1 10 13 10 -1 19
1 11 12 11 -1 18
1 11 13 11 -1 19
1 12 12 12 -1 18
1 12 13 12 -1 19
1 13 12 13 -1 18
1 13 13 13 -1 19
1 14 12 14 -1 18
1 14 13 14 -1 19
1 15 12 15 -1 18
1 15 13 15 -1 19
1 16 12 16 -1 18
1 16 13 16 -1 19
1 17 12 17 -1 18
1 17 13 17 -1 19
1 18 12 18 -1 18
1 18 13 18 -1 19
1 19 12 19 -1 18
1 19 13 19 -1 19
1 8 18 8 -1 8
1 8 19 8 -1 9
1 9 18 9 -1 8
1 9 19 9 -1 9
1 10 18 10 -1 8
1 10 19 10 -1 9
1 11 18 11 -1 8
1 11 19 11 -1 9
1 12 18 12 -1 8
1 12 19 12 -1 9
1 13 18 13 -1 8
1 13 19 13 -1 9
1 14 18 14 -1 8
1 14 19 14 -1 9
1 15 18 15 -1 8
1 15 19 15 -1 9
1 16 18 16 -1 8
1 16 19 16 -1 9
1 17 18 17 -1 8
1 17 19 17 -1 9
1 18 18 18 -1 8
1 18 19 18 -1 9
1 19 18 19 -1 8
1 19 19 19 -1 9
1
end_operator
begin_operator
D_0
0
192
1 0 3 0 -1 11
1 0 5 0 -1 10
1 0 4 0 -1 9
1 1 3 1 -1 11
1 1 5 1 -1 10
1 1 4 1 -1 9
1 2 3 2 -1 11
1 2 5 2 -1 10
1 2 4 2 -1 9
1 3 3 3 -1 11
1 3 5 3 -1 10
1 3 4 3 -1 9
1 4 3 4 -1 11
1 4 5 4 -1 10
1 4 4 4 -1 9
1 5 3 5 -1 11
1 5 5 5 -1 10
1 5 4 5 -1 9
1 6 3 6 -1 11
1 6 5 6 -1 10
1 6 4 6 -1 9
1 7 3 7 -1 11
1 7 5 7 -1 10
1 7 4 7 -1 9
1 0 9 0 -1 22
1 0 10 0 -1 23
1 0 11 0 -1 21
1 1 9 1 -1 22
1 1 10 1 -1 23
1 1 11 1 -1 21
1 2 9 2 -1 22
1 2 10 2 -1 23
1 2 11 2 -1 21
1 3 9 3 -1 22
1 3 10 3 -1 23
1 3 11 3 -1 21
1 4 9 4 -1 22
1 4 10 4 -1 23
1 4 11 4 -1 21
1 5 9 5 -1 22
1 5 10 5 -1 23
1 5 11 5 -1 21
1 6 9 6 -1 22
1 6 10 6 -1 23
1 6 11 6 -1 21
1 7 9 7 -1 22
1 7 10 7 -1 23
1 7 11 7 -1 21
1 0 15 0 -1 4
1 0 16 0 -1 5
1 0 17 0 -1 3
1 1 15 1 -1 4
1 1 16 1 -1 5
1 1 17 1 -1 3
1 2 15 2 -1 4
1 2 16 2 -1 5
1 2 17 2 -1 3
1 3 15 3 -1 4
1 3 16 3 -1 5
1 3 17 3 -1 3
1 4 15 4 -1 4
1 4 16 4 -1 5
1 4 17 4 -1 3
1 5 15 5 -1 4
1 5 16 5 -1 5
1 5 17 5 -1 3
1 6 15 6 -1 4
1 6 16 6 -1 5
1 6 17 6 -1 3
1 7 15 7 -1 4
1 7 16 7 -1 5
1 7 17 7 -1 3
1 0 21 0 -1 17
1 0 23 0 -1 16
1 0 22 0 -1 15
1 1 21 1 -1 17
1 1 23 1 -1 16
1 1 22 1 -1 15
1 2 21 2 -1 17
1 2 23 2 -1 16
1 2 22 2 -1 15
1 3 21 3 -1 17
1 3 23 3 -1 16
1 3 22 3 -1 15
1 4 21 4 -1 17
1 4 23 4 -1 16
1 4 22 4 -1 15
1 5 21 5 -1 17
1 5 23 5 -1 16
1 5 22 5 -1 15
1 6 21 6 -1 17
1 6 23 6 -1 16
1 6 22 6 -1 15
1 7 21 7 -1 17
1 7 23 7 -1 16
1 7 22 7 -1 15
1 8 4 8 -1 14
1 8 5 8 -1 15
1 9 4 9 -1 14
1 9 5 9 -1 15
1 10 4 10 -1 14
1 10 5 10 -1 15
1 11 4 11 -1 14
1 11 5 11 -1 15
1 12 4 12 -1 14
1 12 5 12 -1 15
1 13 4 13 -1 14
1 13 5 13 -1 15
1 14 4 14 -1 14
1 14 5 14 -1 15
1 15 4 15 -1 14
1 15 5 15 -1 15
1 16 4 16 -1 14
1 16 5 16 -1 15
1 17 4 17 -1 14
1 17 5 17 -1 15
1 18 4 18 -1 14
1 18 5 18 -1 15
1 19 4 19 -1 14
1 19 5 19 -1 15
1 8 10 8 -1 4
1 8 11 8 -1 5
1 9 10 9 -1 4
1 9 11 9 -1 5
1 10 10 10 -1 4
1 10 11 10 -1 5
1 11 10 11 -1 4
1 11 11 11 -1 5
1 12 10 12 -1 4
1 12 11 12 -1 5
1 13 10 13 -1 4
1 13 11 13 -1 5
1 14 10 14 -1 4
1 14 11 14 -1 5
1 15 10 15 -1 4
1 15 11 15 -1 5
1 16 10 16 -1 4
1 16 11 16 -1 5
1 17 10 17 -1 4
1 17 11 17 -1 5
1 18 10 18 -1 4
1 18 11 18 -1 5
1 19 10 19 -1 4
1 19 11 19 -1 5
1 8 14 8 -1 20
1 8 15 8 -1 21
1 9 14 9 -1 20
1 9 15 9 -1 21
1 10 14 10 -1 20
1 10 15 10 -1 21
1 11 14 11 -1 20
1 11 15 11 -1 21
1 12 14 12 -1 20
1 12 15 12 -1 21
1 13 14 13 -1 20
1 13 15 13 -1 21
1 14 14 14 -1 20
1 14 15 14 -1 21
1 15 14 15 -1 20
1 15 15 15 -1 21
1 16 14 16 -1 20
1 16 15 16 -1 21
1 17 14 17 -1 20
1 17 15 17 -1 21
1 18 14 18 -1 20
1 18 15 18 -1 21
1 19 14 19 -1 20
1 19 15 19 -1 21
1 8 20 8 -1 10
1 8 21 8 -1 11
1 9 20 9 -1 10
1 9 21 9 -1 11
1 10 20 10 -1 10
1 10 21 10 -1 11
1 11 20 11 -1 10
1 11 21 11 -1 11
1 12 20 12 -1 10
1 12 21 12 -1 11
1 13 20 13 -1 10
1 13 21 13 -1 11
1 14 20 14 -1 10
1 14 21 14 -1 11
1 15 20 15 -1 10
1 15 21 15 -1 11
1 16 20 16 -1 10
1 16 21 16 -1 11
1 17 20 17 -1 10
1 17 21 17 -1 11
1 18 20 18 -1 10
1 18 21 18 -1 11
1 19 20 19 -1 10
1 19 21 19 -1 11
1
end_operator
begin_operator
D'_0
0
192
1 0 3 0 -1 17
1 0 5 0 -1 16
1 0 4 0 -1 15
1 1 3 1 -1 17
1 1 5 1 -1 16
1 1 4 1 -1 15
1 2 3 2 -1 17
1 2 5 2 -1 16
1 2 4 2 -1 15
1 3 3 3 -1 17
1 3 5 3 -1 16
1 3 4 3 -1 15
1 4 3 4 -1 17
1 4 5 4 -1 16
1 4 4 4 -1 15
1 5 3 5 -1 17
1 5 5 5 -1 16
1 5 4 5 -1 15
1 6 3 6 -1 17
1 6 5 6 -1 16
1 6 4 6 -1 15
1 7 3 7 -1 17
1 7 5 7 -1 16
1 7 4 7 -1 15
1 0 9 0 -1 4
1 0 10 0 -1 5
1 0 11 0 -1 3
1 1 9 1 -1 4
1 1 10 1 -1 5
1 1 11 1 -1 3
1 2 9 2 -1 4
1 2 10 2 -1 5
1 2 11 2 -1 3
1 3 9 3 -1 4
1 3 10 3 -1 5
1 3 11 3 -1 3
1 4 9 4 -1 4
1 4 10 4 -1 5
1 4 11 4 -1 3
1 5 9 5 -1 4
1 5 10 5 -1 5
1 5 11 5 -1 3
1 6 9 6 -1 4
1 6 10 6 -1 5
1 6 11 6 -1 3
1 7 9 7 -1 4
1 7 10 7 -1 5
1 7 11 7 -1 3
1 0 15 0 -1 22
1 0 16 0 -1 23
1 0 17 0 -1 21
1 1 15 1 -1 22
1 1 16 1 -1 23
1 1 17 1 -1 21
1 2 15 2 -1 22
1 2 16 2 -1 23
1 2 17 2 -1 21
1 3 15 3 -1 22
1 3 16 3 -1 23
1 3 17 3 -1 21
1 4 15 4 -1 22
1 4 16 4 -1 23
1 4 17 4 -1 21
1 5 15 5 -1 22
1 5 16 5 -1 23
1 5 17 5 -1 21
1 6 15 6 -1 22
1 6 16 6 -1 23
1 6 17 6 -1 21
1 7 15 7 -1 22
1 7 16 7 -1 23
1 7 17 7 -1 21
1 0 21 0 -1 11
1 0 23 0 -1 10
1 0 22 0 -1 9
1 1 21 1 -1 11
1 1 23 1 -1 10
1 1 22 1 -1 9
1 2 21 2 -1 11
1 2 23 2 -1 10
1 2 22 2 -1 9
1 3 21 3 -1 11
1 3 23 3 -1 10
1 3 22 3 -1 9
1 4 21 4 -1 11
1 4 23 4 -1 10
1 4 22 4 -1 9
1 5 21 5 -1 11
1 5 23 5 -1 10
1 5 22 5 -1 9
1 6 21 6 -1 11
1 6 23 6 -1 10
1 6 22 6 -1 9
1 7 21 7 -1 11
1 7 23 7 -1 10
1 7 22 7 -1 9
1 8 4 8 -1 10
1 8 5 8 -1 11
1 9 4 9 -1 10
1 9 5 9 -1 11
1 10 4 10 -1 10
1 10 5 10 -1 11
1 11 4 11 -1 10
1 11 5 11 -1 11
1 12 4 12 -1 10
1 12 5 12 -1 11
1 13 4 13 -1 10
1 13 5 13 -1 11
1 14 4 14 -1 10
1 14 5 14 -1 11
1 15 4 15 -1 10
1 15 5 15 -1 11
1 16 4 16 -1 10
1 16 5 16 -1 11
1 17 4 17 -1 10
1 17 5 17 -1 11
1 18 4 18 -1 10
1 18 5 18 -1 11
1 19 4 19 -1 10
1 19 5 19 -1 11
1 8 10 8 -1 20
1 8 11 8 -1 21
1 9 10 9 -1 20
1 9 11 9 -1 21
1 10 10 10 -1 20
1 10 11 10 -1 21
1 11 10 11 -1 20
1 11 11 11 -1 21
1 12 10 12 -1 20
1 12 11 12 -1 21
1 13 10 13 -1 20
1 13 11 13 -1 21
1 14 10 14 -1 20
1 14 11 14 -1 21
1 15 10 15 -1 20
1 15 11 15 -1 21
1 16 10 16 -1 20
1 16 11 16 -1 21
1 17 10 17 -1 20
1 17 11 17 -1 21
1 18 10 18 -1 20
1 18 11 18 -1 21
1 19 10 19 -1 20
1 19 11 19 -1 21
1 8 14 8 -1 4
1 8 15 8 -1 5
1 9 14 9 -1 4
1 9 15 9 -1 5
1 10 14 10 -1 4
1 10 15 10 -1 5
1 11 14 11 -1 4
1 11 15 11 -1 5
1 12 14 12 -1 4
1 12 15 12 -1 5
1 13 14 13 -1 4
1 13 15 13 -1 5
1 14 14 14 -1 4
1 14 15 14 -1 5
1 15 14 15 -1 4
1 15 15 15 -1 5
1 16 14 16 -1 4
1 16 15 16 -1 5
1 17 14 17 -1 4
1 17 15 17 -1 5
1 18 14 18 -1 4
1 18 15 18 -1 5
1 19 14 19 -1 4
1 19 15 19 -1 5
1 8 20 8 -1 14
1 8 21 8 -1 15
1 9 20 9 -1 14
1 9 21 9 -1 15
1 10 20 10 -1 14
1 10 21 10 -1 15
1 11 20 11 -1 14
1 11 21 11 -1 15
1 12 20 12 -1 14
1 12 21 12 -1 15
1 13 20 13 -1 14
1 13 21 13 -1 15
1 14 20 14 -1 14
1 14 21 14 -1 15
1 15 20 15 -1 14
1 15 21 15 -1 15
1 16 20 16 -1 14
1 16 21 16 -1 15
1 17 20 17 -1 14
1 17 21 17 -1 15
1 18 20 18 -1 14
1 18 21 18 -1 15
1 19 20 19 -1 14
1 19 21 19 -1 15
1
end_operator
0
|
๏ปฟusing System;
using System.Collections.Generic;
using System.Xml.Serialization;
namespace Goliath.Models
{
[Serializable]
public class ViewExecutionInfo
{
/// <summary>
/// Gets or sets the state of the execution.
/// </summary>
/// <value>
/// The state of the execution.
/// </value>
public ViewExecutionState ExecutionState { get; set; }
/// <summary>
/// Gets or sets the message.
/// </summary>
/// <value>
/// The message.
/// </value>
public string Message { get; set; }
readonly Dictionary<string, ErrorInfo> errors = new Dictionary<string, ErrorInfo>();
/// <summary>
/// Gets the errors.
/// </summary>
/// <value>
/// The errors.
/// </value>
[XmlIgnore]
public Dictionary<string, ErrorInfo> Errors
{
get { return errors; }
}
}
} |
#!/bin/bash
echo "Compiling Okcash node: okcashd - from source on its latest version"
echo "This could take a minute, enjoy some coffee or water and come back soon..."
date
cd ../..
cd src
# Build okcashd node
make -j4 -f makefile.unix USE_UPNP=-
strip okcashd
# Install okcashd in the system
sudo cp okcashd /usr/local/bin
# end Client
echo "Done compiling + installing: okcashd > on its latest version for:"
uname -a
echo "okcashd node is now installed in your /usr/local/bin directory"
echo "remember to create your okcash.conf file before running okcashd"
echo "You are now empowered with Okcash!"
echo "enjoy your OK experience"
exit 0
|
var _ = require('lodash');
var fs = require('fs');
var os = require('os');
var path = require('path');
var semver = require('semver');
/*jshint -W079 */
var Filter = require('./filter');
var Parser = require('./parser');
var Worker = require('./worker');
var PluginLoader = require('./plugin_loader');
var FileError = require('./errors/file_error');
var ParserError = require('./errors/parser_error');
var WorkerError = require('./errors/worker_error');
// const
var SPECIFICATION_VERSION = '0.3.0';
var defaults = {
excludeFilters: [],
includeFilters: [ '.*\\.(clj|cls|coffee|cpp|cs|dart|erl|exs?|go|groovy|ino?|java|js|jsx|litcoffee|lua|p|php?|pl|pm|py|rb|scala|ts|vue)$' ],
src: path.join(__dirname, '../example/'),
filters: {},
languages: {},
parsers: {},
workers: {},
lineEnding: os.EOL,
encoding: 'utf8'
};
var app = {
options : {}, // see defaults
log : logger,
generator : {},
packageInfos: {},
markdownParser: false,
filters: {
apierror : './filters/api_error.js',
apiheader : './filters/api_header.js',
apiparam : './filters/api_param.js',
apisuccess : './filters/api_success.js'
},
languages: {
'.clj' : './languages/clj.js',
'.coffee' : './languages/coffee.js',
'.erl' : './languages/erl.js',
'.ex' : './languages/ex.js',
'.exs' : './languages/ex.js',
'.litcoffee' : './languages/coffee.js',
'.lua' : './languages/lua.js',
'.pl' : './languages/pm.js',
'.pm' : './languages/pm.js',
'.py' : './languages/py.js',
'.rb' : './languages/rb.js',
'default' : './languages/default.js'
},
parsers: {
api : './parsers/api.js',
apibody : './parsers/api_body.js',
apiquery : './parsers/api_query.js',
apidefine : './parsers/api_define.js',
apidescription : './parsers/api_description.js',
apierror : './parsers/api_error.js',
apierrorexample : './parsers/api_error_example.js',
apiexample : './parsers/api_example.js',
apiheader : './parsers/api_header.js',
apiheaderexample : './parsers/api_header_example.js',
apigroup : './parsers/api_group.js',
apiname : './parsers/api_name.js',
apiparam : './parsers/api_param.js',
apiparamexample : './parsers/api_param_example.js',
apipermission : './parsers/api_permission.js',
apisuccess : './parsers/api_success.js',
apisuccessexample : './parsers/api_success_example.js',
apiuse : './parsers/api_use.js',
apiversion : './parsers/api_version.js',
apisamplerequest : './parsers/api_sample_request.js',
apideprecated : './parsers/api_deprecated.js',
apiprivate : './parsers/api_private.js',
},
workers: {
apierrorstructure : './workers/api_error_structure.js',
apierrortitle : './workers/api_error_title.js',
apigroup : './workers/api_group.js',
apiheaderstructure : './workers/api_header_structure.js',
apiheadertitle : './workers/api_header_title.js',
apiname : './workers/api_name.js',
apiparamtitle : './workers/api_param_title.js',
apipermission : './workers/api_permission.js',
apisamplerequest : './workers/api_sample_request.js',
apistructure : './workers/api_structure.js',
apisuccessstructure : './workers/api_success_structure.js',
apisuccesstitle : './workers/api_success_title.js',
apiuse : './workers/api_use.js'
},
hooks: {},
addHook: addHook,
hook: applyHook
};
var defaultGenerator = {
name : 'apidoc',
time : new Date(),
url : 'https://apidocjs.com',
version: '0.0.0'
};
// TODO: find abetter name for PackageInfos (-> apidoc-conf)
var defaultPackageInfos = {
description: '',
name : '',
sampleUrl : false,
version : '0.0.0',
defaultVersion: '0.0.0'
};
// Simple logger interace
var logger = {
debug : function() { console.log(arguments); },
verbose: function() { console.log(arguments); },
info : function() { console.log(arguments); },
warn : function() { console.log(arguments); },
error : function() { console.log(arguments); }
};
/**
* Return the used specification version
*
* @returns {String}
*/
function getSpecificationVersion() {
return SPECIFICATION_VERSION;
}
/**
* Parser
*
* @param {Object} options Overwrite default options.
* @param {Object} logger Logger (with methods: debug, verbose, info, warn and error is necessary).
* @returns {Mixed} true = ok, but nothing todo | false = error | Object with parsed data and project-informations.
* {
* data : { ... }
* project: { ... }
* }
*/
function parse(options) {
try {
initApp(options);
options = app.options;
var parsedFiles = [];
var parsedFilenames = [];
// if input option for source is an array of folders,
// parse each folder in the order provided.
app.log.verbose('run parser');
if (options.src instanceof Array) {
options.src.forEach(function(folder) {
// Keep same options for each folder, but ensure the 'src' of options
// is the folder currently being processed.
var folderOptions = options;
folderOptions.src = path.join(folder, './');
app.parser.parseFiles(folderOptions, parsedFiles, parsedFilenames);
});
}
else {
// if the input option for source is a single folder, parse as usual.
options.src = path.join(options.src, './');
app.parser.parseFiles(options, parsedFiles, parsedFilenames);
}
if (parsedFiles.length > 0) {
// process transformations and assignments
app.log.verbose('run worker');
app.worker.process(parsedFiles, parsedFilenames, app.packageInfos);
// cleanup
app.log.verbose('run filter');
var blocks = app.filter.process(parsedFiles, parsedFilenames);
// sort by group ASC, name ASC, version DESC
blocks.sort(function(a, b) {
var nameA = a.group + a.name;
var nameB = b.group + b.name;
if (nameA === nameB) {
if (a.version === b.version)
return 0;
return (semver.gte(a.version, b.version)) ? -1 : 1;
}
return (nameA < nameB) ? -1 : 1;
});
// add apiDoc specification version
app.packageInfos.apidoc = SPECIFICATION_VERSION;
// add apiDoc specification version
app.packageInfos.generator = app.generator;
// api_data
var apiData = JSON.stringify(blocks, null, 2);
apiData = apiData.replace(/(\r\n|\n|\r)/g, app.options.lineEnding);
// api_project
var apiProject = JSON.stringify(app.packageInfos, null, 2);
apiProject = apiProject.replace(/(\r\n|\n|\r)/g, app.options.lineEnding);
return {
data : apiData,
project: apiProject
};
}
return true;
} catch(e) {
// display error by instance
var extra;
var meta = {};
if (e instanceof FileError) {
meta = { 'Path': e.path };
app.log.error(e.message, meta);
} else if (e instanceof ParserError) {
extra = e.extra;
if (e.source)
extra.unshift({ 'Source': e.source });
if (e.element)
extra.unshift({ 'Element': '@' + e.element });
if (e.block)
extra.unshift({ 'Block': e.block });
if (e.file)
extra.unshift({ 'File': e.file });
extra.forEach(function(obj) {
var key = Object.keys(obj)[0];
meta[key] = obj[key];
});
app.log.error(e.message, meta);
}
else if (e instanceof WorkerError) {
extra = e.extra;
if (e.definition)
extra.push({ 'Definition': e.definition });
if (e.example)
extra.push({ 'Example': e.example });
extra.unshift({ 'Element': '@' + e.element });
extra.unshift({ 'Block': e.block });
extra.unshift({ 'File': e.file });
extra.forEach(function(obj) {
var key = Object.keys(obj)[0];
meta[key] = obj[key];
});
app.log.error(e.message, meta);
}
else {
app.log.error(e.message);
if (e.stack)
app.log.debug(e.stack);
}
return false;
}
}
/**
* parseSource
*
* @param {string} source the source code string.
* @param {Object} options Overwrite default options.
*/
function parseSource(source, options) {
try {
initApp(options);
return app.parser.parseSource(source, app.options.encoding, app.options.filename);
} catch (e) {
app.log.error(e.message);
}
}
/**
* initApp
*
* @param {Object} options Overwrite default options.
*/
function initApp(options) {
options = _.defaults({}, options, defaults);
// extend with custom functions
app.filters = _.defaults({}, options.filters, app.filters);
app.languages = _.defaults({}, options.languages, app.languages);
app.parsers = _.defaults({}, options.parsers, app.parsers);
app.workers = _.defaults({}, options.workers, app.workers);
app.hooks = _.defaults({}, options.hooks, app.hooks);
// options
app.options = options;
// generator
app.generator = _.defaults({}, app.generator, defaultGenerator);
// packageInfos
app.packageInfos = _.defaults({}, app.packageInfos, defaultPackageInfos);
// Log version information
var filename = path.join(__dirname, '../', './package.json');
var packageJson = JSON.parse( fs.readFileSync( filename , 'utf8') );
app.log.verbose('apidoc-generator name: ' + app.generator.name);
app.log.verbose('apidoc-generator version: ' + app.generator.version);
app.log.verbose('apidoc-core version: ' + packageJson.version);
app.log.verbose('apidoc-spec version: ' + getSpecificationVersion());
new PluginLoader(app);
var parser = new Parser(app);
var worker = new Worker(app);
var filter = new Filter(app);
// Make them available for plugins
app.parser = parser;
app.worker = worker;
app.filter = filter;
}
/**
* Set generator informations.
*
* @param {Object} [generator] Generator informations.
* @param {String} [generator.name] Generator name (UI-Name).
* @param {String} [generator.time] Time for the generated doc
* @param {String} [generator.version] Version (semver) of the generator, e.g. 1.2.3
* @param {String} [generator.url] Url to the generators homepage
*/
function setGeneratorInfos(generator) {
app.generator = generator;
}
/**
* Set a logger.
*
* @param {Object} logger A Logger (@see https://github.com/flatiron/winston for details)
* Interface:
* debug(msg, meta)
* verbose(msg, meta)
* info(msg, meta)
* warn(msg, meta)
* error(msg, meta)
*/
function setLogger(logger) {
app.log = logger;
}
/**
* Set the markdown parser.
*
* @param {Object} [markdownParser] Markdown parser.
*/
function setMarkdownParser(markdownParser) {
app.markdownParser = markdownParser;
}
/**
* Set package infos.
*
* @param {Object} [packageInfos] Collected from apidoc.json / package.json.
* @param {String} [packageInfos.name] Project name.
* @param {String} [packageInfos.version] Version (semver) of the project, e.g. 1.0.27
* @param {String} [packageInfos.description] A short description.
* @param {String} [packageInfos.sampleUrl] @see https://apidocjs.com/#param-api-sample-request
*/
function setPackageInfos(packageInfos) {
app.packageInfos = packageInfos;
}
/**
* Register a hook function.
*
* @param {String} name Name of the hook. Hook overview: https://github.com/apidoc/apidoc-core/hooks.md
* @param {Function} func Callback function.
* @param {Integer} [priority=100] Hook priority. Lower value will be executed first.
* Same value overwrite a previously defined hook.
*/
function addHook(name, func, priority) {
priority = priority || 100;
if ( ! app.hooks[name])
app.hooks[name] = [];
app.log.debug('add hook: ' + name + ' [' + priority + ']');
// Find position and overwrite same priority
var replace = 0;
var pos = 0;
app.hooks[name].forEach( function(entry, index) {
if (priority === entry.priority) {
pos = index;
replace = 1;
} else if (priority > entry.priority) {
pos = index + 1;
}
});
app.hooks[name].splice(pos, replace, {
func: func,
priority: priority
});
}
/**
* Execute a hook.
*/
function applyHook(name /* , ...args */) {
if ( ! app.hooks[name])
return Array.prototype.slice.call(arguments, 1, 2)[0];
var args = Array.prototype.slice.call(arguments, 1);
app.hooks[name].forEach( function(hook) {
hook.func.apply(this, args);
});
return args[0];
}
module.exports = {
getSpecificationVersion: getSpecificationVersion,
parse : parse,
parseSource : parseSource,
setGeneratorInfos : setGeneratorInfos,
setLogger : setLogger,
setMarkdownParser : setMarkdownParser,
setPackageInfos : setPackageInfos
};
|
-- --------------------------------------------- --
-- -----------| Haskell Problem #34 -----------| --
-- --------------------------------------------- --
-- (**) Calculate Euler's totient function phi(m)
-- Prelude > phi 10
-- 4
coprime :: Int -> Int -> Bool
coprime x y = 1 == gcd x y
phi :: Int -> Int
phi m = length $ filter (coprime m) [1..(m - 1)] |
chr16 84827996 84828424 2 2 1 153 5 50
chr16 84828550 84831328 2 2 1 174 0 50
chr16 84831503 84834808 2 2 0 4 0 32
chr16 84831508 84834808 2 2 1 138 1 49
chr14 64123354 64210427 2 2 1 22 0 38
chr14 64210535 64233828 2 2 1 22 0 49
chr14 64233934 64285063 2 2 1 17 0 48
chr14 64285184 64313686 2 2 1 23 0 43
chr14 64313756 64440709 2 2 1 9 0 43
chr10 128491034 128491719 2 2 0 20 0 50
chr10 128491034 128492058 2 2 1 19 117 50
chr10 128491765 128492058 2 2 0 16 0 43
chr10 128492137 128492228 2 2 1 117 7 49
chr10 128492403 128492601 2 2 1 181 4 50
chr10 128492710 128496360 2 2 0 0 1 14
chr10 128492746 128492938 2 2 0 27 0 49
chr10 128492746 128493538 2 2 1 104 1 36
chr10 128493567 128493808 2 2 1 88 1 28
chr14 24490759 24491749 1 1 1 89 30 45
chr14 24491816 24491906 1 1 1 104 5 49
chr14 24492117 24493382 1 1 1 102 0 48
chr14 24493494 24495429 1 1 1 64 6 20
chr14 24495450 24495774 1 1 0 41 0 20
chr2 136713601 136756067 1 1 1 2108 106 50
chr2 136756202 136758310 1 1 1 2748 34 43
chr2 136756740 136781241 2 2 0 0 1 14
chr2 136758353 136763572 1 1 1 2742 126 44
chr2 136763622 136769742 1 1 1 923 128 50
chr2 136763622 136770056 1 1 1 1617 128 50
chr2 136769861 136773894 1 1 1 1079 97 50
chr2 136770175 136773894 1 1 1 1774 97 50
chr2 136774021 136777335 1 1 1 3431 11 50
chr2 136777481 136781074 1 1 1 3068 0 50
chr17 80201603 80202168 2 2 1 78 0 37
chr17 80201603 80202690 2 2 0 50 0 49
chr17 80202205 80202690 2 2 1 88 0 36
chr17 80202745 80204121 2 2 1 69 0 50
chr17 80202745 80204130 2 2 0 48 0 49
chr17 80202745 80204154 2 2 0 24 0 49
chr17 80204233 80204312 2 2 1 157 0 49
chr17 80204388 80204621 2 2 0 28 0 49
chr17 80204388 80205261 2 2 1 106 0 49
chr17 80205439 80205847 2 2 1 161 1 50
chr17 80206029 80207174 2 2 1 181 0 49
chr5 125386215 125387354 2 2 0 0 1 40
chr5 125386390 125387301 2 2 0 0 2 48
chr5 125386390 125388213 2 2 0 0 3 46
chr5 125386443 125387354 2 2 0 0 3 47
chr5 125386618 125387301 2 2 0 0 1 48
chr5 125386618 125387529 2 2 0 0 301 47
chr5 125386618 125388213 2 2 0 0 3 46
chr5 125386671 125387354 2 2 0 0 1 46
chr5 125386846 125387301 2 2 0 0 2 48
chr5 125386846 125388213 2 2 0 0 3 46
chr5 125386899 125387354 2 2 0 0 3 47
chr5 125387074 125387301 2 2 0 0 1 48
chr5 125387074 125387529 2 2 0 0 301 47
chr5 125387074 125388213 2 2 0 0 3 46
chr5 125387127 125387354 2 2 0 0 1 46
chr5 125387302 125387757 2 2 0 1 105 48
chr5 125387302 125387985 2 2 0 0 188 49
chr5 125387355 125387582 2 2 0 0 162 48
chr5 125387355 125387810 2 2 0 1 8 48
chr5 125387355 125388038 2 2 0 0 162 48
chr5 125387530 125387757 2 2 0 0 1 31
chr5 125387758 125388213 2 2 0 0 3 46
chr5 125387986 125388213 2 2 0 0 3 46
chr5 125388265 125389696 2 2 1 298 2 49
|
parser grammar HdesParser;
options { tokenVocab = HdesLexer; }
import DecisionTableParser, ExpressionParser, ServiceTaskParser, FlowParser;
hdesContent: hdesBody* EOF;
hdesBody: (
FLOW flowUnit
| DECISION_TABLE decisionTableUnit
| SERVICE_TASK serviceTaskUnit
| EXPRESSION '{' expressionUnit '}'); |
<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor xmlns:xlink='http://www.w3.org/1999/xlink' xmlns:gml='http://www.opengis.net/gml' xmlns:ogc='http://www.opengis.net/ogc' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' version='1.0.0' xsi:schemaLocation='http://www.opengis.net/sld StyledLayerDescriptor.xsd' xmlns='http://www.opengis.net/sld' >
<NamedLayer>
<Name><![CDATA[Dir_ecoul_surf]]></Name>
<UserStyle>
<FeatureTypeStyle>
<Rule>
<Name>Large</Name>
<MaxScaleDenominator>500000</MaxScaleDenominator>
<PointSymbolizer>
<Graphic>
<ExternalGraphic>
<OnlineResource xlink:type="simple" xlink:href="http://localhost:8080/geoserver/styles/icons/dir_ecoulement_png.png" ></OnlineResource>
<Format>image/png</Format>
</ExternalGraphic>
<Size>12</Size>
</Graphic>
</PointSymbolizer>
</Rule>
<Rule>
<Name>Medium</Name>
<MinScaleDenominator>500000</MinScaleDenominator>
<MaxScaleDenominator>9000000</MaxScaleDenominator>
<PointSymbolizer>
<Graphic>
<ExternalGraphic>
<OnlineResource xlink:type="simple" xlink:href="http://localhost:8080/geoserver/styles/icons/dir_ecoulement_png.png" ></OnlineResource>
<Format>image/png</Format>
</ExternalGraphic>
<Size>8</Size>
</Graphic>
</PointSymbolizer>
</Rule>
<Rule>
<Name>Small</Name>
<MinScaleDenominator>9000000</MinScaleDenominator>
<PointSymbolizer>
<Graphic>
<ExternalGraphic>
<OnlineResource xlink:type="simple" xlink:href="http://localhost:8080/geoserver/styles/icons/dir_ecoulement_png.png" ></OnlineResource>
<Format>image/png</Format>
</ExternalGraphic>
<Size>4</Size>
</Graphic>
</PointSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor> |
one sig Unit{ rain : one R }
abstract sig R{
sprinkler : one S,
-- Helper relation to store: sprinkler โฟ iden
spID : one RS
}
one sig Rain, NoRain extends R{}
abstract sig S, G{}
one sig On, Off extends S{}
one sig Wet, Dry extends G{}
// S x R
abstract sig RS{
grass : one G
}
one sig RainOff, RainOn, NoRainOff, NoRainOn extends RS{}
fact{
// rain
#(Unit.rain :> Rain) = div[2, 10]
//#(Unit.rain :> NoRain) = div[8, 10]
//sprinkler
//#(NoRain.sprinkler :> On) = div[4, 10]
//#(NoRain.sprinkler :> Off) = div[6, 10]
//#(Rain.sprinkler :> On) = div[1, 100]
//#(Rain.sprinkler :> Off) = div[99, 100]
// grass
one NoRainOff.grass :> Dry
//no NoRainOff.grass :> Wet
#(RainOff.grass :> Dry) = div[2, 10]
//#(RainOff.grass :> Wet) = div[8, 10]
#(NoRainOn.grass :> Dry) = div[1, 10]
//#(NoRainOn.grass :> Wet) = div[9, 10]
#(RainOn.grass :> Dry) = div[1, 100]
//#(RainOn.grass :> Wet) = div[99, 100]
// sprinkler โฟ id
#(Rain.spID :> RainOn) = #(Rain.sprinkler :> On)
#(Rain.spID :> RainOff) = #(Rain.sprinkler :> Off)
#(NoRain.spID :> NoRainOn) = #(NoRain.sprinkler :> On)
#(NoRain.spID :> NoRainOff) = #(NoRain.sprinkler :> Off)
}
fun grassWet : G {
//Unit.rain.(sprinkler โฟ iden).grass :> Wet
Unit.rain.spID.grass :> Wet
}
fun wetGrass : Unit { rain.spID.grass.Wet }
assert unknownSprinkler{ #wetGrass <= div[9, 10] }
check unknownSprinkler
|
/*
ado\gen_tail.ado
begun 7-21-2004
David Kantor
!version 1.0 7-21-2004
*/
program def gen_tail, byable(onecall)
version 8.2
/*
Given a quantity interpreted as a boolean, generate the "tail" of observaions
that are either indicated by that variable, or follow it within the by-group.
This was originally in psid016\prep007.do, but with some hard-coded variables
and without the byable.
We take nonzero values (including missing) in the input variable as "true".
Typically, you would call this via...
bysort varlist1 (varlist2): gen_tail ...
Hopefully, varlist1 (varlist2) will make for a unique sort order. If not,
you take a gamble, unless you pre-sort it by varlist1 (varlist2) and some
additional variable(s). (There is no such thing as a bysort..., stable.)
You can also call it without bysort.
*/
syntax varname, gen(name)
confirm new var `gen'
// assert ~mi(`varlist')
// disp "gen_tail; the byvars are `_byvars'"
gen byte `gen' = `varlist' ~= 0
if _by() {
local by "by `_byvars' :"
}
quietly `by' replace `gen' = 1 if _n>1 & `gen'[_n-1]
end // gen_tail
|
{
"id": "7d5932f0-abdc-4d72-ac8f-6751533499fb",
"modelName": "GMFolder",
"mvc": "1.1",
"name": "7d5932f0-abdc-4d72-ac8f-6751533499fb",
"children": [
],
"filterType": "GMIncludedFile",
"folderName": "datafiles",
"isDefaultView": false,
"localisedFolderName": "ResourceTree_IncludedFiles"
} |
suppressMessages(library(Seurat))
suppressMessages(library(dplyr))
suppressMessages(library(Matrix))
suppressMessages(library(methods))
suppressMessages(library(scales))
suppressMessages(library(ggplot2))
args=commandArgs(T);
#sample=as.character(args[1]);
sample=args[1];
setwd("./")
path_out="./"
data1=read.table(paste("data_ref/expr.txt",sep=""))
data2=read.table(paste("data_obj/",sample,".txt",sep=""))
gene1=read.table(paste("data_ref/gene.txt",sep=""))
data3=rbind(data1[,1:ncol(data1)],data2[,1:ncol(data2)])
data4=t(data3)
cell_all=nrow(data3)
colnames(data4) <- paste("cell",c(1:cell_all),sep="")
rownames(data4) <- gene1[,2]
suppressWarnings(suppressMessages(bmmc <- CreateSeuratObject(counts = data4, project = "test")))
suppressWarnings(suppressMessages(bmmc <- ScaleData(object = bmmc)))
suppressWarnings(suppressMessages(bmmc <- RunPCA(bmmc, features = rownames(bmmc), npcs = 30,weight.by.var = TRUE)))
write.table(bmmc@reductions$pca@cell.embeddings[,1:30],file=paste(path_out,"temp_out/s5_embedding_",sample,".txt",sep=""),sep = "\t",row.names=F,col.names=F)
|
extern m7_ippsECCPVerifyDSA:function
extern n8_ippsECCPVerifyDSA:function
extern y8_ippsECCPVerifyDSA:function
extern e9_ippsECCPVerifyDSA:function
extern l9_ippsECCPVerifyDSA:function
extern n0_ippsECCPVerifyDSA:function
extern k0_ippsECCPVerifyDSA:function
extern ippcpJumpIndexForMergedLibs
extern ippcpSafeInit:function
segment .data
align 8
dq .Lin_ippsECCPVerifyDSA
.Larraddr_ippsECCPVerifyDSA:
dq m7_ippsECCPVerifyDSA
dq n8_ippsECCPVerifyDSA
dq y8_ippsECCPVerifyDSA
dq e9_ippsECCPVerifyDSA
dq l9_ippsECCPVerifyDSA
dq n0_ippsECCPVerifyDSA
dq k0_ippsECCPVerifyDSA
segment .text
global ippsECCPVerifyDSA:function (ippsECCPVerifyDSA.LEndippsECCPVerifyDSA - ippsECCPVerifyDSA)
.Lin_ippsECCPVerifyDSA:
db 0xf3, 0x0f, 0x1e, 0xfa
call ippcpSafeInit wrt ..plt
align 16
ippsECCPVerifyDSA:
db 0xf3, 0x0f, 0x1e, 0xfa
mov rax, qword [rel ippcpJumpIndexForMergedLibs wrt ..gotpc]
movsxd rax, dword [rax]
lea r11, [rel .Larraddr_ippsECCPVerifyDSA]
mov r11, qword [r11+rax*8]
jmp r11
.LEndippsECCPVerifyDSA:
|
---
title: "Modรจles linรฉaires"
author: "Vincent Guillemot"
date: "Mercredi 24 septembre 2014"
output: pdf_document
---
# Rappels : vecteurs, matrices, tableaux et listes
## Dรฉclaration et indexation de vecteurs et de matrices
Dรฉclarons tout d'abord un vecteur `a` contenant les entiers pairs de 2 ร 20. Le tableau suivant prรฉsente quelques solutions qui permettent de gรฉnรฉrer un tel vecteur :
Solution 1 | Solution 2 | Solution 3
-------------------|------------|-----------------------
`seq(2, 20, by=2)` | `2*(1:10)` | `(1:20)[1:20 %% 2 ==0]`
Crรฉons ensuite un *facteur ordonnรฉ* `b` ร deux niveaux (`moins` et `plus` avec `moins` $<$ `plus`) :
```{r}
b <- factor( rep(c("moins", "plus"), 10), ordered=TRUE )
```
1. Utilisez la fonction `table` pour vรฉrifier que l'on a bien 10 `moins` et 10 `plus`.
2. Reprรฉsentez graphiquement le rรฉsultat de `table` avec la fonction `barplot`.
> Attention (rappel) ! L'ordre qui est utilisรฉ lors de la crรฉation de tels facteurs est l'ordre alphabรฉtique. Par exemple le facteur ordonnรฉ `factor(c("moins", "plus", "entre les deux"), ordered=TRUE)` n'est pas dans le bon ordre par dรฉfaut. Il faut utiliser l'argument `levels` pour contraindre l'ordre entre les diffรฉrents niveaux.
3. Comparez le rรฉsultat des deux commandes suivantes : `b[a]` et `b[b=="plus"]`. Est-ce que c'est normal ? On remarque que le rรฉsultat est un facteur, mais qu'il comporte des modalitรฉs inutiles ! Utilisez la fonction `droplevels` sur l'un des deux rรฉsultats prรฉcรฉdents pour รฉliminer les facteurs superflus.
Travaillons maintenant sur une matrice carrรฉe `A` ($4 \times 4$) contenant les entiers de 1 ร 16 arrangรฉs en lignes :
```{r}
A <- matrix(1:16, 4, 4, byrow = TRUE)
```
1. Extrayez la premiรจre ligne et la premiรจre colonne de cette matrice.
2. Extrayez la matrice $2 \times 2$ qui se trouve au centre des `A` et qui contient les valeurs 6, 7, 10 et 11.
### Proposition de solution
```{r}
a <- seq(2, 20, by=2)
b <- factor( rep(c("moins", "plus"), 10), ordered=TRUE )
table(b)
barplot(table(b), col="steelblue")
b[a]
b[b=="plus"]
droplevels(b[a])
A <- matrix(1:16, 4, 4, byrow = TRUE)
A[1,]
A[,1]
A[2:3, 2:3]
```
## Dรฉclaration et indexation de tableaux et de listes
Nous nous baserons pour cet exercice sur un exemple directement inspirรฉ des modรจles linรฉaires. On considรจre le modรจle linรฉaire suivant : on a deux mesures $x$ et $y$, et un modรจle qui les lie \[y = 2 x + \epsilon.\] $\epsilon$ est un terme de bruit, que nous allons considรฉrer pour cet exemple gaussien, de moyenne nulle et d'รฉcart-type unitaire.
Ce modรจle ne fait pas spรฉcialement d'hypothรจses sur les distributions sous-jacentes (celles ร l'origine des รฉchantillons $x$ et $y$). On peut dรฉcider, pour cet exemple, de concrรฉtiser un peu et de se dire que $x$ est une mesure de la "taille" d'individus (comprise uniformรฉment entre 150 et 200 cm) et que $y$ est une mesure du poids de ces mรชme individus. Sans bruit, le poids d'un individu est donc calculรฉ en multipliant sa taille par 2.
1. Gรฉnรฉrez un รฉchantillon de taille 100 pour $x$ ร l'aide de la fonction `runif`. Attention, pour respecter la philosophie de l'exemple, il faut spรฉcifier les bornes `min` et `max`.
2. Gรฉnรฉrez le bruit dans une variable `epsilon` avec la fonction `rnorm`.
3. Gรฉnรฉrez $y$ en respectant le modรจle spรฉcifiรฉ ci-dessus.
4. Placez $x$ et $y$ dans un objet de classe `data.frame`, appelรฉ `B`, avec la commande suivante : `B <- data.frame(x=x, y=y)`.
Pour reprรฉsenter graphiquement notre expรฉrience, nous pouvons utiliser un "biplot" :
```{r, eval=FALSE}
plot(B, xlab="Taille (cm)", ylab="Poids (kg)")
```
Avec des *formules*, on peut reproduire le mรชme graphique. Ce concept de formule est trรจs utile en R. Il faut bien faire attention ร la syntaxe : pour pouvoir interprรฉter une formule, R doit pouvoir interprรฉter chacun des termes. Le premier terme ร gauche du signe ~ reprรฉsente l'axe des ordonnรฉes (vertical), ou encore la variable ร expliquer (qui s'appelle trรจs souvent, par convention, $y$). A gauche du signe ~, se trouve le reste du modรจle, et donc l'ensemble des variables explicatives (ici, il n'y en a qu'une, $x$). Pour un graphe, il ne peut y avoir qu'une variable explicative, qui reprรฉsente l'axe des abscisses (horizontal).
> Moyen mnรฉmotechnique pour se souvenir du sens du signe ~ : quand vous lisez une formule, remplacez "~" par "en fonction de". Ainsi, "y~x" devient "y en *fonction de* x".
Voici deux exemples de commandes qui permettent de reproduire le graphe de *$y$ en fonction de $x$* :
```{r, eval=FALSE}
plot(B$y~B$x, xlab="Taille (cm)", ylab="Poids (kg)")
plot(y~x, data=B, xlab="Taille (cm)", ylab="Poids (kg)")
```
Pour la premiรจre commande, R sait ce que vaut chaque terme de la formule `B$y~B$x` : `B$y` existe bien, il s'agit de la colonne `y` qui se trouve dans `B` ; de mรชme pour `B$x`. En revanche, pour la deuxiรจme expression, R ne peut pas savoir qu'il s'agit des variables `x` et `y` contenues dans `B` qu'il faut lire au moment d'interprรฉter la formule `y~x`. Il faut donc lui prรฉciser grรขce ร l'argument `data=B`.
5. Stockez le rรฉsultat de la commande `cor.test(B$x, B$y)` dans la variable `res.test`. `res.test` est une liste ! Vรฉrifiez le avec la fonction `mode` ! Attention, la commande `class(res.test)` donnera un rรฉsultat diffรฉrent.
6. Quels sont les diffรฉrents รฉlรฉments qui composent cette liste ? Utilisez la fonction `names`. Rรฉcupรฉrez dans cette liste l'intervalle de confiance (`conf.int`) de la corrรฉlation.
### Proposition de solution
```{r}
x <- runif(100, 150, 200)
epsilon <- rnorm(100)
y <- 2*x + epsilon
B <- data.frame(x=x, y=y)
plot(B, xlab="Taille (cm)", ylab="Poids (kg)")
res.test <- cor.test(B$x, B$y)
c(mode(res.test), class(res.test))
names(res.test)
res.test$conf.int
```
### La rรฉgression simple
1. Importer dans une variable nommรฉe `X` le jeu de donnรฉ nommรฉ `appart.csv`. *Indice : `read.csv`*.
2. Tracer le graphe bivariรฉ de la surface sur le prix. Que constate-t-on ? *Indice : `plot`*.
3. Construire un modรจle linรฉaire reliant le prix ร la surface. *Indice : `lm`*.
4. Ajouter au graphe bivariรฉ construit ร la question 1, la droite de rรฉgression rรฉsultant du modรจle de la question 2. *Indice : `abline`*.
5. Donner les valeurs prรฉdites par le modรจle pour chacune des observations. *Indice : `predict`*.
6. Observer les rรฉsidus. *Indice : `...$residuals`*.
#### Proposition de correction.
On peut construire `X` en utilisant la fonction `read.csv` :
```{r}
X <- read.csv("appart.csv")
```
Obtenir le plot bivariรฉ s'obtient trรจs rapidement avec la fonction `plot` :
```{r}
plot(X)
```
On constate qu'il y a un lien fort, comme on pouvait s'y attendre, entre la surface et le prix d'un appartement.
En ajoutant le modรจle linรฉaire au graphe, on se rend compte qu'il modรฉlise trรจs bien le lien entre les deux variables.
```{r}
plot(surface~prix, data=X, pch=16)
abline(lm(surface~prix, data=X), col=2)
grid()
```
La prรฉdiction de la surface se fait avec la fonction `predict`. Il est important de rรฉaliser que cette fonction peut s'utiliser sur de nouvelles donnรฉes ! On peut donc prรฉdire, avec le modรจle construit, la surface d'un appartement quand on connaรฎt son prix.
```{r, eval=F}
res.lm <- lm(surface~prix, data=X)
predict(res.lm, data=X)
```
Enfin, les rรฉsidus sont calculรฉs en mรชme temps que le modรจle. On peut y accรฉder avec la commande suivante (quand le modรจle a รฉtรฉ attribuรฉ ร une variable s'appelant `res.lm`) :
```{r, eval=FALSE}
res.lm$residuals
```
### La rรฉgression multiple et la sรฉlection de variables
Reprenons l'exemple prรฉcรฉdent et rajoutons deux variables qui n'ont absolument rien ร voir avec le prix et la surface des appartements : une premiรจre variable `z1` constituรฉe alรฉatoirement de 0 et de 1 et une deuxiรจme variable `z2` constituรฉe de valeurs alรฉatoires rรฉparties uniformรฉment entre 0 et 1.
```{r}
n <- nrow(X)
X$z1 <- sample(0:1, n, replace=TRUE)
X$z2 <- runif(n)
```
Observons maintenant le rรฉsultat de l'ajustement d'un modรจle linรฉaire multiple (c'est ร dire contenant plus d'une variable) :
```{r}
summary(lm(surface ~ prix + z1 + z2, data=X))
```
On remarque que les coefficients associรฉs aux variables $z1$ et $z2$ ont des valeurs qui ne semblent pas proches de 0, et pourtant leur significativitรฉ dans le modรจle est faible ! Il est donc important de toujours utiliser la fonction `summary` pour mettre en perspective les valeurs des coefficients.
Enfin, il est possible d'utiliser la fonction `step` pour sรฉlectionner le modรจle permettant le mieux de dรฉcrire les relations entre les diffรฉrentes variables :
```{r}
step(lm(surface ~ prix + z1 + z2, data=X))
```
Pour cet exemple trรจs simple, les variables `z1` et `z2` ont รฉtรฉ รฉliminรฉes du modรจle initial, et on a convergรฉ vers un modรจle du type `surface ~ prix`. Il faut faire attention au fait que la mรฉthode utilisรฉe est trรจs sensible : le rรฉsultat dรฉpend du nombre de variables, du nombre d'individus, et pose des hypothรจses fortes sur la nature statistique des donnรฉes.
Par exemple, reprenons l'exemple prรฉcรฉdent aprรจs avoir rajoutรฉ 10 variables alรฉatoire sans rapport avec le prix ou la surface au jeu de donnรฉes `X`. *(ร faire en exercice)*
|
(in-package "ACL2")
(include-book "../../env")
(include-book "../../exec")
(include-book "../helper")
(defun mk-initial-env-divByZero ()
(mk-env
;; pc
0
;; rom
(mk-rom "6000600204600055")
;; stack
(mk-empty-stack)
;; mem
(mk-empty-memory)
;; storage
(mk-empty-storage)
;; halted
nil
;; gas
100000
;; context
(mk-context
;; ia
87579061662017136990230301793909925042452127430
;; io
1170859069521887415590932569929099639409724315265
;; ip
100000000000000
;; id
nil
;; is
1170859069521887415590932569929099639409724315265
;; iv
1000000000000000000
;; ih
(mk-block-header
;; ihc
244687034288125203496486448490407391986876152250
;; ihs
1
;; ihi
0
;; ihd
256
;; ihl
1000000)
;; ie
"<call/create stack height>"
;; iw
"<permission>")
;; substate
(mk-substate
;; suiside
nil
;; log
nil
;; touched
nil
;; refund
0)))
(defun env-with-pre-divByZero ()
(mk-initial-env-divByZero))
(defun env-with-post-divByZero ()
(env/set-halted (mk-initial-env-divByZero) (cons 'out-of-range "Halted: pc out of range.")))
(defthm expect-divByZero
(expected-env-p (env/exec (env-with-pre-divByZero))
(env-with-post-divByZero))) |
/*! Copyright jQuery Foundation and other contributors
* Includes:
* - normalize.css v1.0.1 | MIT License | git.io/normalize
* - Font Awesome - http://fortawesome.github.com/Font-Awesome - CC BY 3.0
*/
/* ==========================================================================
HTML5 display definitions
========================================================================== */
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
/*
* Corrects `block` display not defined in IE 6/7/8/9 and Firefox 3.
*/
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
nav,
section,
summary {
display: block;
}
/*
* Corrects `inline-block` display not defined in IE 6/7/8/9 and Firefox 3.
*/
audio,
canvas,
video {
display: inline-block;
*display: inline;
*zoom: 1;
}
/*
* Prevents modern browsers from displaying `audio` without controls.
* Remove excess height in iOS 5 devices.
*/
audio:not([controls]) {
display: none;
height: 0;
}
/* ==========================================================================
Base
========================================================================== */
/*
* 1. Corrects text resizing oddly in IE 6/7 when body `font-size` is set using
* `em` units.
* 2. Prevents iOS text size adjust after orientation change, without disabling
* user zoom.
*/
html {
font-size: 100%; /* 1 */
-webkit-text-size-adjust: 100%; /* 2 */
-ms-text-size-adjust: 100%; /* 2 */
}
/*
* Addresses `font-family` inconsistency between `textarea` and other form
* elements.
*/
html,
button,
input,
select,
textarea {
font-family: sans-serif;
color: #333;
}
/*
* Addresses margins handled incorrectly in IE 6/7.
*/
body {
margin: 0;
}
::-moz-selection {
background: #b3d4fc;
text-shadow: none;
}
::selection {
background: #b3d4fc;
text-shadow: none;
}
.chromeframe {
margin: 0.2em 0;
background: #ccc;
color: #000;
padding: 0.2em 0;
}
@font-face {
font-family: 'FontAwesome';
src: url('fonts/fontawesome-webfont.eot?v=3.0.2');
src: url('fonts/fontawesome-webfont.eot?#iefix&v=3.0.2') format('embedded-opentype'),
url('fonts/fontawesome-webfont.woff?v=3.0.2') format('woff'),
url('fonts/fontawesome-webfont.ttf?v=3.0.2') format('truetype');
font-weight: normal;
font-style: normal;
}
/* ==========================================================================
Links
========================================================================== */
/*
* Addresses `outline` inconsistency between Chrome and other browsers.
*/
a:focus {
outline: thin dotted;
}
/*
* Improves readability when focused and also mouse hovered in all browsers.
*/
a:active,
a:hover {
outline: 0;
}
/* ==========================================================================
Typography
========================================================================== */
/*
* Addresses font sizes and margins set differently in IE 6/7.
* Addresses font sizes within `section` and `article` in Firefox 4+, Safari 5,
* and Chrome.
*/
h1 {
font-size: 2em;
margin: 0 0 0.33em;
}
h2 {
font-size: 1.5em;
margin: 0 0 0.5em;
}
h3 {
font-size: 1.25em;
margin: 0 0 0.67em;
}
h4 {
font-size: 1em;
margin: 0 0 1em;
}
h5 {
font-size: 0.83em;
margin: 0 0 1.33em;
}
h6 {
font-size: 0.75em;
margin: 0 0 2em;
}
h1, h2, h3, h4, h5, h6 {
font-weight: 700;
font-family: "klavika-web", "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif !important;
}
/*
* Addresses styling not present in IE 7/8/9, Safari 5, and Chrome.
*/
abbr[title] {
border-bottom: 1px dotted;
}
/*
* Addresses style set to `bolder` in Firefox 3+, Safari 4/5, and Chrome.
*/
b,
strong {
font-weight: bold;
}
blockquote {
margin: 1em 40px;
}
/*
* Addresses styling not present in Safari 5 and Chrome.
*/
dfn {
font-style: italic;
}
/*
* Addresses styling not present in IE 6/7/8/9.
*/
mark {
background: #ff0;
color: #000;
}
/*
* Addresses margins set differently in IE 6/7.
*/
p,
pre {
margin: 1em 0;
}
/*
* Improves readability of pre-formatted text in all browsers.
*/
pre, code {
white-space: pre;
white-space: pre-wrap;
word-wrap: break-word;
word-spacing: 0;
font-size: 13px;
line-height: 16px;
}
code {
padding: 0 3px;
background-color: #eee; /* support: IE8 */;
background-color: rgba( 0, 0, 0, .1 );
border-radius: 3px;
}
pre code {
background-color: transparent;
font-size: 16px;
font-weight: bold;
white-space: pre;
word-wrap: normal;
}
/*
* Addresses CSS quotes not supported in IE 6/7.
*/
q {
quotes: none;
}
/*
* Addresses `quotes` property not supported in Safari 4.
*/
q:before,
q:after {
content: '';
content: none;
}
/*
* Prevents `sub` and `sup` affecting `line-height` in all browsers.
*/
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sup {
top: -0.5em;
}
sub {
bottom: -0.25em;
}
/* ==========================================================================
Lists
========================================================================== */
/*
* Addresses margins set differently in IE 6/7.
*/
dl,
menu,
ol,
ul {
margin: 0 0 1em;
}
dd {
margin: 0 0 0 40px;
}
/*
* Addresses paddings set differently in IE 6/7.
*/
menu,
ol,
ul {
padding: 0;
}
/*
* Corrects list images handled incorrectly in IE 7.
*/
nav ul,
nav ol {
list-style: none;
list-style-image: none;
}
/* ==========================================================================
Embedded content
========================================================================== */
/*
* 1. Removes border when inside `a` element in IE 6/7/8/9 and Firefox 3.
* 2. Improves image quality when scaled in IE 7.
*/
img {
border: 0; /* 1 */
-ms-interpolation-mode: bicubic; /* 2 */
vertical-align: middle;
max-width: 100%;
}
/* ==========================================================================
Figures
========================================================================== */
/*
* Addresses margin not present in IE 6/7/8/9, Safari 5, and Opera 11.
*/
figure {
margin: 0;
}
/* ==========================================================================
Forms
========================================================================== */
/*
* Corrects margin displayed oddly in IE 6/7.
*/
form {
margin: 0;
padding: 10px 0;
}
/*
* Define consistent border, margin, and padding.
*/
fieldset {
border: 0;
margin: 0;
padding: 0;
}
/*
* 1. Corrects color not being inherited in IE 6/7/8/9.
* 2. Corrects text not wrapping in Firefox 3.
* 3. Corrects alignment displayed oddly in IE 6/7.
*/
legend {
border: 0; /* 1 */
padding: 0;
white-space: normal; /* 2 */
*margin-left: -7px; /* 3 */
}
/*
* 1. Corrects font size not being inherited in all browsers.
* 2. Addresses margins set differently in IE 6/7, Firefox 3+, Safari 5,
* and Chrome.
* 3. Improves appearance and consistency in all browsers.
*/
button,
input,
select,
textarea {
font-size: 100%; /* 1 */
margin: 0; /* 2 */
vertical-align: baseline; /* 3 */
*vertical-align: middle; /* 3 */
}
/*
* Addresses Firefox 3+ setting `line-height` on `input` using `!important` in
* the UA stylesheet.
*/
button,
input {
line-height: normal;
}
/*
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
* and `video` controls.
* 2. Corrects inability to style clickable `input` types in iOS.
* 3. Improves usability and consistency of cursor style between image-type
* `input` and others.
* 4. Removes inner spacing in IE 7 without affecting normal text inputs.
* Known issue: inner spacing remains in IE 6.
*/
button,
html input[type="button"], /* 1 */
input[type="reset"],
input[type="submit"] {
-webkit-appearance: button; /* 2 */
cursor: pointer; /* 3 */
*overflow: visible; /* 4 */
}
/*
* Re-set default cursor for disabled elements.
*/
button[disabled],
input[disabled] {
cursor: default;
}
/*
* 1. Addresses box sizing set to content-box in IE 8/9.
* 2. Removes excess padding in IE 8/9.
* 3. Removes excess padding in IE 7.
* Known issue: excess padding remains in IE 6.
*/
input[type="checkbox"],
input[type="radio"] {
box-sizing: border-box; /* 1 */
padding: 0; /* 2 */
*height: 13px; /* 3 */
*width: 13px; /* 3 */
}
/*
* 1. Addresses `appearance` set to `searchfield` in Safari 5 and Chrome.
* 2. Addresses `box-sizing` set to `border-box` in Safari 5 and Chrome
* (include `-moz` to future-proof).
*/
input[type="search"] {
-webkit-appearance: textfield;
box-sizing: content-box;
}
/*
* Removes inner padding and search cancel button in Safari 5 and Chrome
* on OS X.
*/
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
/*
* Removes inner padding and border in Firefox 3+.
*/
button::-moz-focus-inner,
input::-moz-focus-inner {
border: 0;
padding: 0;
}
/*
* 1. Removes default vertical scrollbar in IE 6/7/8/9.
* 2. Improves readability and alignment in all browsers.
*/
textarea {
overflow: auto; /* 1 */
vertical-align: top; /* 2 */
min-height: 150px;
resize: vertical;
}
#content input[type="text"],
#content input[type="email"],
#content textarea {
color: #666;
width: 70%;
min-width: 300px;
margin: 5px 0 10px 0;
padding: 8px 12px;
background: rgba(245,245,245,0.37);
border: 1px solid rgba(192,192,192,0.49);
border-radius: 2px;
box-shadow: inset 0 1px 3px rgba(0,0,0,0.17);
}
/*
* 1. :-moz-placeholder has been deprecated in favor of ::-moz-placeholder.
* 2. Using :placeholder for completeness.
*/
::-webkit-input-placeholder {
color: #9a1B1E;
}
:-moz-placeholder { /* 1 */
color: #9a1B1E;
}
::-moz-placeholder {
color: #9a1B1E;
}
:-ms-placeholder {
color: #9a1B1E;
}
:placeholder { /* 2 */
color: #9a1B1E;
}
#content input:focus,
#content input[type="text"]:focus,
#content input[type="email"]:focus,
#content textarea:focus {
outline: none;
color: #333;
background: #fff;
border: 1px solid #b24926;
box-shadow: 0 0 6px rgba(23,138,156,0.5),
inset 0 1px 3px rgba(0,0,0,0.2);
}
/**
* Radio Buttons
*/
.radio {
margin: 15px 0;
}
#content .radio ul {
margin: 0;
padding: 0;
float: left;
}
#content .radio ul li {
margin: 0;
padding: 0;
background: none;
list-style-type: none;
}
.radio label {
margin: 5px 0;
}
input[type=radio] {
margin: 0 5px 0 0;
}
/**
* Checkboxes
*/
input[type="checkbox"] {
margin: 0 5px 0 0;
}
/**
* Submit Buttons
*/
form input[type="submit"] {
margin: 40px 0;
float: none;
}
/**
* Top aligned labels
*/
.top-labels label,
.top-labels .radio label,
.top-labels input[type="text"],
.top-labels input[type="email"],
.top-labels textarea {
display: block;
}
/**
* Left aligned labels
*/
.left-labels label {
padding: 5px 0 0 0;
display: block;
}
.left-labels span {
margin: 0 10px 0 0;
min-width: 100px;
float: left;
text-align: left;
}
.left-labels .radio span {
padding-top: 5px;
}
.left-labels .radio {
display: block;
}
.left-labels .radio li label {
margin: 0;
padding: 0 0 5px 0;
border: 0;
}
/**
* Label descriptions
*/
label .field-description {
font-size: 0.8em;
}
/* ==========================================================================
Tables
========================================================================== */
table {
border-collapse: collapse;
border-spacing: 0;
}
#content table {
margin: 1em 2em;
}
#content thead tr {
border-bottom: 2px solid #666;
}
#content tbody tr {
border-bottom: 1px solid #666;
}
#content tbody tr:hover {
background-color: #eee;
}
#content th {
font-family: "klavika-web", "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif;
}
#content th,
#content td {
padding: .5em;
}
/* ==========================================================================
Font Awesome
========================================================================== */
[class^="icon-"],
[class*=" icon-"] {
font-weight: normal;
font-style: normal;
text-decoration: inherit;
-webkit-font-smoothing: antialiased;
/* sprites.less reset */
display: inline;
width: auto;
height: auto;
line-height: normal;
vertical-align: baseline;
background-image: none;
background-position: 0 0;
background-repeat: repeat;
margin-top: 0;
}
/* more sprites.less reset*/
.icon-white,
.nav-pills > .active > a > [class^="icon-"],
.nav-pills > .active > a > [class*=" icon-"],
.nav-list > .active > a > [class^="icon-"],
.nav-list > .active > a > [class*=" icon-"],
.navbar-inverse .nav > .active > a > [class^="icon-"],
.navbar-inverse .nav > .active > a > [class*=" icon-"],
.dropdown-menu > li > a:hover > [class^="icon-"],
.dropdown-menu > li > a:hover > [class*=" icon-"],
.dropdown-menu > .active > a > [class^="icon-"],
.dropdown-menu > .active > a > [class*=" icon-"],
.dropdown-submenu:hover > a > [class^="icon-"],
.dropdown-submenu:hover > a > [class*=" icon-"] {
background-image: none;
}
[class^="icon-"]:before,
[class*=" icon-"]:before {
text-decoration: inherit;
display: inline-block;
speak: none;
}
/* makes sure icons active on rollover in links */
a [class^="icon-"],
a [class*=" icon-"] {
display: inline-block;
}
/* makes the font 33% larger relative to the icon container */
.icon-large:before {
vertical-align: -10%;
font-size: 1.3333333333333333em;
}
.btn [class^="icon-"],
.nav [class^="icon-"],
.btn [class*=" icon-"],
.nav [class*=" icon-"] {
display: inline;
/* keeps button heights with and without icons the same */
}
.btn [class^="icon-"].icon-large,
.nav [class^="icon-"].icon-large,
.btn [class*=" icon-"].icon-large,
.nav [class*=" icon-"].icon-large {
line-height: .9em;
}
.btn [class^="icon-"].icon-spin,
.nav [class^="icon-"].icon-spin,
.btn [class*=" icon-"].icon-spin,
.nav [class*=" icon-"].icon-spin {
display: inline-block;
}
.nav-tabs [class^="icon-"],
.nav-pills [class^="icon-"],
.nav-tabs [class*=" icon-"],
.nav-pills [class*=" icon-"],
.nav-tabs [class^="icon-"].icon-large,
.nav-pills [class^="icon-"].icon-large,
.nav-tabs [class*=" icon-"].icon-large,
.nav-pills [class*=" icon-"].icon-large {
line-height: .9em;
}
li [class^="icon-"],
.nav li [class^="icon-"],
li [class*=" icon-"],
.nav li [class*=" icon-"] {
display: inline-block;
width: 1.25em;
text-align: center;
}
li [class^="icon-"].icon-large,
.nav li [class^="icon-"].icon-large,
li [class*=" icon-"].icon-large,
.nav li [class*=" icon-"].icon-large {
/* increased font size for icon-large */
width: 1.5625em;
}
ul.icons {
list-style-type: none;
text-indent: -0.75em;
}
ul.icons li [class^="icon-"],
ul.icons li [class*=" icon-"] {
width: .75em;
}
.icon-muted {
color: #eee;
}
.icon-border {
border: solid 1px #eee;
padding: .2em .25em .15em;
border-radius: 3px;
}
.icon-2x {
font-size: 2em;
}
.icon-2x.icon-border {
border-width: 2px;
border-radius: 4px;
}
.icon-3x {
font-size: 3em;
}
.icon-3x.icon-border {
border-width: 3px;
border-radius: 5px;
}
.icon-4x {
font-size: 4em;
}
.icon-4x.icon-border {
border-width: 4px;
border-radius: 6px;
}
.pull-right {
float: right;
}
.pull-left {
float: left;
}
[class^="icon-"].pull-left,
[class*=" icon-"].pull-left {
margin-right: .3em;
}
[class^="icon-"].pull-right,
[class*=" icon-"].pull-right {
margin-left: .3em;
}
.btn [class^="icon-"].pull-left.icon-2x,
.btn [class*=" icon-"].pull-left.icon-2x,
.btn [class^="icon-"].pull-right.icon-2x,
.btn [class*=" icon-"].pull-right.icon-2x {
margin-top: .18em;
}
.btn [class^="icon-"].icon-spin.icon-large,
.btn [class*=" icon-"].icon-spin.icon-large {
line-height: .8em;
}
.btn.btn-small [class^="icon-"].pull-left.icon-2x,
.btn.btn-small [class*=" icon-"].pull-left.icon-2x,
.btn.btn-small [class^="icon-"].pull-right.icon-2x,
.btn.btn-small [class*=" icon-"].pull-right.icon-2x {
margin-top: .25em;
}
.btn.btn-large [class^="icon-"],
.btn.btn-large [class*=" icon-"] {
margin-top: 0;
}
.btn.btn-large [class^="icon-"].pull-left.icon-2x,
.btn.btn-large [class*=" icon-"].pull-left.icon-2x,
.btn.btn-large [class^="icon-"].pull-right.icon-2x,
.btn.btn-large [class*=" icon-"].pull-right.icon-2x {
margin-top: .05em;
}
.btn.btn-large [class^="icon-"].pull-left.icon-2x,
.btn.btn-large [class*=" icon-"].pull-left.icon-2x {
margin-right: .2em;
}
.btn.btn-large [class^="icon-"].pull-right.icon-2x,
.btn.btn-large [class*=" icon-"].pull-right.icon-2x {
margin-left: .2em;
}
.icon-spin {
display: inline-block;
-moz-animation: spin 2s infinite linear;
-o-animation: spin 2s infinite linear;
-webkit-animation: spin 2s infinite linear;
animation: spin 2s infinite linear;
}
@-webkit-keyframes spin {
0% { -webkit-transform: rotate(0deg); }
100% { -webkit-transform: rotate(359deg); }
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(359deg); }
}
@-moz-document url-prefix() {
.icon-spin {
height: .9em;
}
.btn .icon-spin {
height: auto;
}
.icon-spin.icon-large {
height: 1.25em;
}
.btn .icon-spin.icon-large {
height: .75em;
}
}
/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen
readers do not read off random characters that represent icons */
.icon-glass:before { content: "\f000"; }
.icon-music:before { content: "\f001"; }
.icon-search:before { content: "\f002"; }
.icon-envelope:before { content: "\f003"; }
.icon-heart:before { content: "\f004"; }
.icon-star:before { content: "\f005"; }
.icon-star-empty:before { content: "\f006"; }
.icon-user:before { content: "\f007"; }
.icon-film:before { content: "\f008"; }
.icon-th-large:before { content: "\f009"; }
.icon-th:before { content: "\f00a"; }
.icon-th-list:before { content: "\f00b"; }
.icon-ok:before { content: "\f00c"; }
.icon-remove:before { content: "\f00d"; }
.icon-zoom-in:before { content: "\f00e"; }
.icon-zoom-out:before { content: "\f010"; }
.icon-off:before { content: "\f011"; }
.icon-signal:before { content: "\f012"; }
.icon-cog:before { content: "\f013"; }
.icon-trash:before { content: "\f014"; }
.icon-home:before { content: "\f015"; }
.icon-file:before { content: "\f016"; }
.icon-time:before { content: "\f017"; }
.icon-road:before { content: "\f018"; }
.icon-download-alt:before { content: "\f019"; }
.icon-download:before { content: "\f01a"; }
.icon-upload:before { content: "\f01b"; }
.icon-inbox:before { content: "\f01c"; }
.icon-play-circle:before { content: "\f01d"; }
.icon-repeat:before { content: "\f01e"; }
/* \f020 doesn't work in Safari. all shifted one down */
.icon-refresh:before { content: "\f021"; }
.icon-list-alt:before { content: "\f022"; }
.icon-lock:before { content: "\f023"; }
.icon-flag:before { content: "\f024"; }
.icon-headphones:before { content: "\f025"; }
.icon-volume-off:before { content: "\f026"; }
.icon-volume-down:before { content: "\f027"; }
.icon-volume-up:before { content: "\f028"; }
.icon-qrcode:before { content: "\f029"; }
.icon-barcode:before { content: "\f02a"; }
.icon-tag:before { content: "\f02b"; }
.icon-tags:before { content: "\f02c"; }
.icon-book:before { content: "\f02d"; }
.icon-bookmark:before { content: "\f02e"; }
.icon-print:before { content: "\f02f"; }
.icon-camera:before { content: "\f030"; }
.icon-font:before { content: "\f031"; }
.icon-bold:before { content: "\f032"; }
.icon-italic:before { content: "\f033"; }
.icon-text-height:before { content: "\f034"; }
.icon-text-width:before { content: "\f035"; }
.icon-align-left:before { content: "\f036"; }
.icon-align-center:before { content: "\f037"; }
.icon-align-right:before { content: "\f038"; }
.icon-align-justify:before { content: "\f039"; }
.icon-list:before { content: "\f03a"; }
.icon-indent-left:before { content: "\f03b"; }
.icon-indent-right:before { content: "\f03c"; }
.icon-facetime-video:before { content: "\f03d"; }
.icon-picture:before { content: "\f03e"; }
.icon-pencil:before { content: "\f040"; }
.icon-map-marker:before { content: "\f041"; }
.icon-adjust:before { content: "\f042"; }
.icon-tint:before { content: "\f043"; }
.icon-edit:before { content: "\f044"; }
.icon-share:before { content: "\f045"; }
.icon-check:before { content: "\f046"; }
.icon-move:before { content: "\f047"; }
.icon-step-backward:before { content: "\f048"; }
.icon-fast-backward:before { content: "\f049"; }
.icon-backward:before { content: "\f04a"; }
.icon-play:before { content: "\f04b"; }
.icon-pause:before { content: "\f04c"; }
.icon-stop:before { content: "\f04d"; }
.icon-forward:before { content: "\f04e"; }
.icon-fast-forward:before { content: "\f050"; }
.icon-step-forward:before { content: "\f051"; }
.icon-eject:before { content: "\f052"; }
.icon-chevron-left:before { content: "\f053"; }
.icon-chevron-right:before { content: "\f054"; }
.icon-plus-sign:before { content: "\f055"; }
.icon-minus-sign:before { content: "\f056"; }
.icon-remove-sign:before { content: "\f057"; }
.icon-ok-sign:before { content: "\f058"; }
.icon-question-sign:before { content: "\f059"; }
.icon-info-sign:before { content: "\f05a"; }
.icon-screenshot:before { content: "\f05b"; }
.icon-remove-circle:before { content: "\f05c"; }
.icon-ok-circle:before { content: "\f05d"; }
.icon-ban-circle:before { content: "\f05e"; }
.icon-arrow-left:before { content: "\f060"; }
.icon-arrow-right:before { content: "\f061"; }
.icon-arrow-up:before { content: "\f062"; }
.icon-arrow-down:before { content: "\f063"; }
.icon-share-alt:before { content: "\f064"; }
.icon-resize-full:before { content: "\f065"; }
.icon-resize-small:before { content: "\f066"; }
.icon-plus:before { content: "\f067"; }
.icon-minus:before { content: "\f068"; }
.icon-asterisk:before { content: "\f069"; }
.icon-exclamation-sign:before { content: "\f06a"; }
.icon-gift:before { content: "\f06b"; }
.icon-leaf:before { content: "\f06c"; }
.icon-fire:before { content: "\f06d"; }
.icon-eye-open:before { content: "\f06e"; }
.icon-eye-close:before { content: "\f070"; }
.icon-warning-sign:before { content: "\f071"; }
.icon-plane:before { content: "\f072"; }
.icon-calendar:before { content: "\f073"; }
.icon-random:before { content: "\f074"; }
.icon-comment:before { content: "\f075"; }
.icon-magnet:before { content: "\f076"; }
.icon-chevron-up:before { content: "\f077"; }
.icon-chevron-down:before { content: "\f078"; }
.icon-retweet:before { content: "\f079"; }
.icon-shopping-cart:before { content: "\f07a"; }
.icon-folder-close:before { content: "\f07b"; }
.icon-folder-open:before { content: "\f07c"; }
.icon-resize-vertical:before { content: "\f07d"; }
.icon-resize-horizontal:before { content: "\f07e"; }
.icon-bar-chart:before { content: "\f080"; }
.icon-twitter-sign:before { content: "\f081"; }
.icon-facebook-sign:before { content: "\f082"; }
.icon-camera-retro:before { content: "\f083"; }
.icon-key:before { content: "\f084"; }
.icon-cogs:before { content: "\f085"; }
.icon-comments:before { content: "\f086"; }
.icon-thumbs-up:before { content: "\f087"; }
.icon-thumbs-down:before { content: "\f088"; }
.icon-star-half:before { content: "\f089"; }
.icon-heart-empty:before { content: "\f08a"; }
.icon-signout:before { content: "\f08b"; }
.icon-linkedin-sign:before { content: "\f08c"; }
.icon-pushpin:before { content: "\f08d"; }
.icon-external-link:before { content: "\f08e"; }
.icon-signin:before { content: "\f090"; }
.icon-trophy:before { content: "\f091"; }
.icon-github-sign:before { content: "\f092"; }
.icon-upload-alt:before { content: "\f093"; }
.icon-lemon:before { content: "\f094"; }
.icon-phone:before { content: "\f095"; }
.icon-check-empty:before { content: "\f096"; }
.icon-bookmark-empty:before { content: "\f097"; }
.icon-phone-sign:before { content: "\f098"; }
.icon-twitter:before { content: "\f099"; }
.icon-facebook:before { content: "\f09a"; }
.icon-github:before { content: "\f09b"; }
.icon-unlock:before { content: "\f09c"; }
.icon-credit-card:before { content: "\f09d"; }
.icon-rss:before { content: "\f09e"; }
.icon-hdd:before { content: "\f0a0"; }
.icon-bullhorn:before { content: "\f0a1"; }
.icon-bell:before { content: "\f0a2"; }
.icon-certificate:before { content: "\f0a3"; }
.icon-hand-right:before { content: "\f0a4"; }
.icon-hand-left:before { content: "\f0a5"; }
.icon-hand-up:before { content: "\f0a6"; }
.icon-hand-down:before { content: "\f0a7"; }
.icon-circle-arrow-left:before { content: "\f0a8"; }
.icon-circle-arrow-right:before { content: "\f0a9"; }
.icon-circle-arrow-up:before { content: "\f0aa"; }
.icon-circle-arrow-down:before { content: "\f0ab"; }
.icon-globe:before { content: "\f0ac"; }
.icon-wrench:before { content: "\f0ad"; }
.icon-tasks:before { content: "\f0ae"; }
.icon-filter:before { content: "\f0b0"; }
.icon-briefcase:before { content: "\f0b1"; }
.icon-fullscreen:before { content: "\f0b2"; }
.icon-group:before { content: "\f0c0"; }
.icon-link:before { content: "\f0c1"; }
.icon-cloud:before { content: "\f0c2"; }
.icon-beaker:before { content: "\f0c3"; }
.icon-cut:before { content: "\f0c4"; }
.icon-copy:before { content: "\f0c5"; }
.icon-paper-clip:before { content: "\f0c6"; }
.icon-save:before { content: "\f0c7"; }
.icon-sign-blank:before { content: "\f0c8"; }
.icon-reorder:before { content: "\f0c9"; }
.icon-list-ul:before { content: "\f0ca"; }
.icon-list-ol:before { content: "\f0cb"; }
.icon-strikethrough:before { content: "\f0cc"; }
.icon-underline:before { content: "\f0cd"; }
.icon-table:before { content: "\f0ce"; }
.icon-magic:before { content: "\f0d0"; }
.icon-truck:before { content: "\f0d1"; }
.icon-pinterest:before { content: "\f0d2"; }
.icon-pinterest-sign:before { content: "\f0d3"; }
.icon-google-plus-sign:before { content: "\f0d4"; }
.icon-google-plus:before { content: "\f0d5"; }
.icon-money:before { content: "\f0d6"; }
.icon-caret-down:before { content: "\f0d7"; }
.icon-caret-up:before { content: "\f0d8"; }
.icon-caret-left:before { content: "\f0d9"; }
.icon-caret-right:before { content: "\f0da"; }
.icon-columns:before { content: "\f0db"; }
.icon-sort:before { content: "\f0dc"; }
.icon-sort-down:before { content: "\f0dd"; }
.icon-sort-up:before { content: "\f0de"; }
.icon-envelope-alt:before { content: "\f0e0"; }
.icon-linkedin:before { content: "\f0e1"; }
.icon-undo:before { content: "\f0e2"; }
.icon-legal:before { content: "\f0e3"; }
.icon-dashboard:before { content: "\f0e4"; }
.icon-comment-alt:before { content: "\f0e5"; }
.icon-comments-alt:before { content: "\f0e6"; }
.icon-bolt:before { content: "\f0e7"; }
.icon-sitemap:before { content: "\f0e8"; }
.icon-umbrella:before { content: "\f0e9"; }
.icon-paste:before { content: "\f0ea"; }
.icon-lightbulb:before { content: "\f0eb"; }
.icon-exchange:before { content: "\f0ec"; }
.icon-cloud-download:before { content: "\f0ed"; }
.icon-cloud-upload:before { content: "\f0ee"; }
.icon-user-md:before { content: "\f0f0"; }
.icon-stethoscope:before { content: "\f0f1"; }
.icon-suitcase:before { content: "\f0f2"; }
.icon-bell-alt:before { content: "\f0f3"; }
.icon-coffee:before { content: "\f0f4"; }
.icon-food:before { content: "\f0f5"; }
.icon-file-alt:before { content: "\f0f6"; }
.icon-building:before { content: "\f0f7"; }
.icon-hospital:before { content: "\f0f8"; }
.icon-ambulance:before { content: "\f0f9"; }
.icon-medkit:before { content: "\f0fa"; }
.icon-fighter-jet:before { content: "\f0fb"; }
.icon-beer:before { content: "\f0fc"; }
.icon-h-sign:before { content: "\f0fd"; }
.icon-plus-sign-alt:before { content: "\f0fe"; }
.icon-double-angle-left:before { content: "\f100"; }
.icon-double-angle-right:before { content: "\f101"; }
.icon-double-angle-up:before { content: "\f102"; }
.icon-double-angle-down:before { content: "\f103"; }
.icon-angle-left:before { content: "\f104"; }
.icon-angle-right:before { content: "\f105"; }
.icon-angle-up:before { content: "\f106"; }
.icon-angle-down:before { content: "\f107"; }
.icon-desktop:before { content: "\f108"; }
.icon-laptop:before { content: "\f109"; }
.icon-tablet:before { content: "\f10a"; }
.icon-mobile-phone:before { content: "\f10b"; }
.icon-circle-blank:before { content: "\f10c"; }
.icon-quote-left:before { content: "\f10d"; }
.icon-quote-right:before { content: "\f10e"; }
.icon-spinner:before { content: "\f110"; }
.icon-circle:before { content: "\f111"; }
.icon-reply:before { content: "\f112"; }
.icon-github-alt:before { content: "\f113"; }
.icon-folder-close-alt:before { content: "\f114"; }
.icon-folder-open-alt:before { content: "\f115"; }
/* Manual Font Awesome Styles */
[class^="icon-"]::before, [class^="icon-"]::after,
[class*=" icon-"]::before, [class*=" icon-"]::after {
font-family: FontAwesome, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
#content ul li[class^="icon-"],
#content ul li[class*=" icon-"] {
background: none;
padding-left: 0;
}
h2 [class^="icon-"],
h2 [class*=" icon-"],
h3 [class^="icon-"],
h3 [class*=" icon-"] {
margin-right: 7px;
}
/* Global Structure
========================================================================== */
body {
-webkit-font-smoothing: antialiased;
color: #333;
font: 15px/22.5px "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif;
}
iframe {
border: 1px solid #bfbfbf;
padding: 1px;
}
#container {
background: #0769ad;
margin: 0 auto;
padding: 0 20px;
}
.jquery-ui #container {
background: #b24926;
}
.jquery-mobile #container {
background: #108040;
}
.sizzlejs #container {
background: #9a1B1E;
}
.qunitjs #container {
background: #390f39;
}
.jquery-foundation #container {
background: #333;
}
.jquery-learn #container {
background: url(../images/bg-body-learn.jpg) no-repeat center top #000;
}
#content-wrapper {
background-color: #fff;
box-shadow: -3px 0 5px -3px rgba(1, 1, 1, 0.87), 3px 0 5px -3px rgba(1, 1, 1, 0.87);
padding: 20px 0;
border-top: 1px solid #333;
border-radius: 0 0 10px 10px;
position: relative;
}
.jquery-ui #content-wrapper,
.sizzlejs #content-wrapper,
.qunitjs #content-wrapper,
.jquery-learn #content-wrapper,
.jquery-foundation #content-wrapper,
.jquery-ui #banner-secondary,
.sizzlejs #banner-secondary,
.qunitjs #banner-secondary,
.jquery-learn #banner-secondary,
.jquery-foundation #banner-secondary {
border-top-left-radius: 0;
border-top-right-radius: 0;
}
.no-boxshadow #content-wrapper {
border: 1px solid #333;
}
.constrain {
max-width: 1240px;
margin: 0 auto;
padding: 0 20px;
}
.lte8 .constrain {
max-width: 1198px; /* Accomodate for padding + 1px border */
}
#content {
float: left;
width: 71%;
}
.content-right #content {
float: right;
}
.content-full #content {
width: 100%;
padding-left: 10%;
padding-right: 10%;
}
.content-full.full-width #content {
padding-left: 0;
padding-right: 0;
}
#sidebar,
.sidebar-left,
.sidebar-right {
padding: 20px;
width: 29%;
}
#sidebar,
.sidebar-right {
float: right;
margin-right: -25px;
position: relative;
-webkit-border-image: -webkit-linear-gradient(#ffffff, #e7e7e7 15%, #e7e7e7 85%, #ffffff);
border-image: linear-gradient(#ffffff, #e7e7e7 15%, #e7e7e7 85%, #ffffff);
box-shadow: inset 15px 0 5px -16px #e7e7e7;
background-image: -webkit-radial-gradient(left, #f2f2f2, #ffffff 80%);
background-image: radial-gradient(left, #f2f2f2, #ffffff 80%);
border: 0;
border-left: 1px solid #efefef;
}
.content-right #sidebar,
.sidebar-left {
float: left;
border-left: 0;
border-right: 1px solid #e7e7e7;
margin: -20px 0 0 -25px;
-webkit-border-image: -webkit-linear-gradient(#ffffff, #e7e7e7 15%, #e7e7e7 85%, #ffffff);
border-image: linear-gradient(#ffffff, #e7e7e7 15%, #e7e7e7 85%, #ffffff);
box-shadow: inset 15px 0 5px -16px #e7e7e7;
background-image: -webkit-radial-gradient(right, #f2f2f2, #ffffff 80%);
background-image: radial-gradient(right, #f2f2f2, #ffffff 80%);
}
.entry-summary p {
margin: 0;
}
/* Global Nav
========================================================================== */
#global-nav {
background: url(../images/jq-global-nav.png) repeat-x 0 bottom #1b1b1b;
}
#global-nav nav {
height: 34px;
}
#global-nav nav ul {
text-align: left;
display: inline;
float: left;
margin: 0;
list-style: none;
border-right: 1px solid rgba(255, 255, 255, 0.0976562);
border-left: 1px solid rgba(0, 0, 0, 0.347656);
}
.tinynav-container { display: none; }
.tinynav { display: none; }
#global-nav nav ul.links {
float: right;
}
#global-nav nav ul li {
font: bold 13px/17px "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif;
display: inline-block;
float: left;
position: relative;
top: 1px;
cursor: pointer;
transition: all 0.2s;
text-shadow: 0 0 2px #000;
border-left: 1px solid rgba(255, 255, 255, 0.0976562);
border-right: 1px solid rgba(0, 0, 0, 0.347656);
}
.ie #global-nav nav ul li {
top: 2px;
}
#global-nav nav ul li:hover {
background: url(../images/bg-footer-noise.jpg) #000;
color: #fff;
}
#global-nav nav ul li i {
height: 1em;
}
#global-nav nav ul li a {
color: #e6e6e6;
font-weight: normal;
font-style: normal;
text-decoration: none;
display: block;
padding: 8px 12px;
}
#global-nav nav ul li ul {
padding: 0;
position: absolute;
top: 32px;
left: -2px;
width: 120px;
display: none;
opacity: 0;
visibility: hidden;
transition: opacity 0.2s;
box-shadow: 0 4px 5px rgba(0, 0, 0, 0.4);
z-index: 400;
}
#global-nav nav ul li ul.wide {
width: 260px;
}
#global-nav nav ul li ul li {
background: url(../images/bg-footer-noise.jpg) #000;
display: block;
color: #fff;
float: none;
}
#global-nav nav ul li ul li:hover { background: #000; }
#global-nav nav ul li:hover ul {
display: block;
opacity: 1;
visibility: visible;
}
#global-nav nav ul.projects li.project {
width: 42px;
padding: 0;
height: 33px;
text-indent: -9999px;
background: url(../images/jq-nav-icons.png) -6px 0;
z-index: 10;
}
#global-nav nav ul.projects li.project a {
display: block;
height: 33px;
}
#global-nav nav ul.projects li.jquery-ui {
background-position: -57px 0;
}
#global-nav nav ul.projects li.jquery-mobile {
background-position: -107px 0;
}
#global-nav nav ul.projects li.sizzlejs {
background-position: -155px 0;
}
#global-nav nav ul.projects li.qunitjs {
background-position: -204px 0;
}
.jquery #global-nav nav ul.projects li.jquery {
background-position: 0 bottom;
width: 52px;
position: relative;
margin-top:1px;
border: none;
}
.jquery #global-nav nav ul.projects {
border-left: none;
}
.jquery #global-nav nav ul.projects li.jquery-ui {
border-left: none;
background-position: -59px 0;
}
.jquery-ui #global-nav nav ul.projects li.jquery-ui {
background-position: -50px bottom;
width: 52px;
position: relative;
margin-top:1px;
border: none;
}
.jquery-ui #global-nav nav ul.projects li.jquery {
border-right: none;
background-position: -2px 0;
}
.jquery-ui #global-nav nav ul.projects li.jquery-mobile {
border-left: none;
}
.jquery-mobile #global-nav nav ul.projects li.jquery-mobile {
background-position: -100px bottom;
width: 52px;
position: relative;
margin-top:1px;
border: none;
}
.jquery-mobile #global-nav nav ul.projects li.jquery-ui {
border-right: none;
background-position: -53px 0;
}
.jquery-mobile #global-nav nav ul.projects li.jquery-mobile {
border-right: none;
}
.jquery-mobile #global-nav nav ul.projects li.sizzlejs{
border-left: none;
background-position: -157px 0;
}
.sizzlejs #global-nav nav ul.projects li.jquery-mobile {
border-right: none;
background-position: -102px 0;
}
.sizzlejs #global-nav nav ul.projects li.sizzlejs {
background-position: -148px bottom;
width: 52px;
position: relative;
margin-top:1px;
border: none;
}
.sizzlejs #global-nav nav ul.projects li.qunitjs{
border-left: none;
background-position: -206px 0;
}
.qunitjs #global-nav nav ul.projects li.sizzlejs {
border-right: none;
}
.qunitjs #global-nav nav ul.projects li.qunitjs {
background-position: -202px bottom;
width: 52px;
position: relative;
margin-top:1px;
border: none;
}
.qunitjs #global-nav nav ul.projects {
border-right: none;
}
#container,
footer {
border-top: 1px solid #7acef4;
}
.jquery-ui #container,
.jquery-ui footer {
border-top-color: #faa523;
}
.jquery-mobile #container,
.jquery-mobile footer {
border-top-color: #3eb249;
}
.sizzlejs #container,
.sizzlejs footer {
border-top-color: #faa523;
}
.qunitjs #container,
.qunitjs footer {
border-top-color: #9c3493;
}
.jquery-learn #container,
.jquery-learn footer {
border-top-color: #333;
}
/* Brand Colors for General Use
========================================================================== */
.color.black { background-color: #333; }
.color.primary-blue { background-color: #0769ad; }
.color.secondary-blue { background-color: #7acef4; }
.color.navy-blue { background-color: #131b28; }
.color.primary-orange { background-color: #faa523; }
.color.secondary-orange { background-color: #b24926; }
.color.primary-green { background-color: #3eb249; }
.color.secondary-green { background-color: #108040; }
.color.sizzle-orange { background-color: #faa523; }
.color.sizzle-red { background-color: #9a1B1E; }
.color.qunit-primary-purple { background-color: #9c3493; }
.color.qunit-secondary-purple { background-color: #390f39; }
.color.globalize-primary-aqua { background-color: #009b93; }
.color.globalize-secondary-aqua { background-color: #41586b; }
/* Logo & Navigation
========================================================================== */
#logo-events {
clear: both;
padding: 20px 0;
}
h2.logo {
float: left;
margin: 20px 0 0 0;
width: 243px;
}
h2.logo a {
float: left;
display: block;
height: 66px;
overflow: hidden;
text-indent: -1000px;
}
.jquery h2.logo a,
.jquery-learn h2.logo a {
width: 243px;
background: url(../images/logo-jquery.png) no-repeat;
}
.jquery-ui h2.logo a {
width: 253px;
background: url(../images/logo-jquery-ui.png) no-repeat;
}
.jquery-mobile h2.logo a {
width: 268px;
background: url(../images/logo-jquery-mobile.png) no-repeat;
}
.sizzlejs h2.logo a {
width: 243px;
background: url(../images/logo-sizzle.png) no-repeat;
}
.qunitjs h2.logo a {
width: 243px;
background: url(../images/logo-qunit.png) no-repeat;
}
.jquery-foundation h2.logo a {
width: 243px;
background: url(../images/logo-jquery-foundation.png) no-repeat;
}
.jquery-events.jquery-foundation h2.logo a {
width: 243px;
background: url(../images/logo-jquery-events.png) no-repeat;
}
.logo.small {
height: 30px;
background: url('../images/projectlogosfull-small.png') no-repeat;
}
.jquery.logo.small {
width:109px;
background-position: -0 0;
}
.jquery-foundation.logo.small {
width: 109px;
background-position: -109px 0;
}
.jquery-events.logo.small {
width: 109px;
background-position: -219px 0;
}
.jqueryui.logo.small {
width: 114px;
background-position: -327px 0;
}
.jquery-mobile.logo.small {
width: 122px;
background-position: -442px 0;
}
.qunitjs.logo.small {
width: 105px;
background-position: -564px 0;
}
.sizzlejs.logo.small {
width: 105px;
background-position: -669px 0;
}
#logo-events aside {
float: right;
}
nav#main {
background-color: rgba(0, 0, 0, 0.18);
border-radius: 10px 10px 0 0;
border-right: 1px solid rgba(2, 2, 2, 0.28);
border-left: 1px solid rgba(2, 2, 2, 0.28);
border-top: 1px solid rgba(250, 250, 250, 0.27);
box-shadow: rgba(255,255,255,0.3) 0 1px 0, rgba(0,0,0,0.3) 0 -1px 0;
box-shadow: 0 0 5px rgba(1, 1, 1, 0.7);
}
.jquery-ui nav#main,
.sizzlejs nav#main {
background-color: rgba(12, 12, 12, 0.06);
}
.qunitjs nav#main {
background-color: rgba(156, 52, 147, 0.5);
}
.jquery-learn nav#main {
background-color: rgba(0, 0, 0, 0.4);
}
.jquery-foundation nav#main {
background-color: rgba(102, 102, 102, 0.1);
}
.no-boxshadow nav#main {
border-top: 1px solid #333;
border-left: 1px solid #333;
border-right: 1px solid #333;
}
nav#main ul {
margin: 0;
float: left;
width: 70%;
padding-top: 10px;
padding-bottom: 10px;
}
nav#main li {
float: left;
font: normal normal 16px "klavika-web", "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif;
margin-right: 2px;
}
nav#main li a {
color: #fff;
text-decoration: none;
padding: 6px 10px;
display: block;
border: 1px solid transparent;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.76);
}
nav#main li a:hover,
nav#main li.current a,
nav#main .searchform {
background: none;
box-shadow: inset 0 0 5px rgba(0,0,0, 0.4), rgba(255,255,255,0.1) 0 1px 0;
border-radius: 4px;
border: 1px solid rgba(0,0,0,0.25);
color: #fff;
text-shadow: rgba(0, 0, 0, 0.796875) 0 -1px 0, rgba(255, 255, 255, 0.296875) 0 0 10px;
}
nav#main .searchform {
float: right;
width: 28%;
margin-top: 12px;
margin-bottom: 12px;
padding: 0;
border-radius: 20px;
position: relative;
}
nav#main .searchform input {
text-decoration: none;
font: 12px/12px "Lucida Grande", Lucida, Verdana, sans-serif;
padding: 5px 10px;
margin: 0;
background-color: transparent;
border-style: none;
color: #fff;
line-height: 1.3;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.76);
width: 85%;
box-shadow: none;
}
nav#main .searchform input:focus {
outline: none;
}
.no-boxshadow nav#main .searchform {
border: 1px solid #333;
}
.no-boxshadow nav#main .searchform input {
background: #fff;
color: #333;
}
/*
* 1. :-moz-placeholder has been deprecated in favor of ::-moz-placeholder.
* 2. Using :placeholder for completeness.
*/
nav#main .searchform input::-webkit-input-placeholder {
color: #fff;
}
nav#main .searchform input:-moz-placeholder { /* 1 */
color: #fff;
}
nav#main .searchform input::-moz-placeholder {
color: #fff;
}
nav#main .searchform input:-ms-input-placeholder {
color: #fff;
}
nav#main .searchform input:placeholder { /* 2 */
color: #fff;
}
nav#main .searchform .icon-search {
position: absolute;
right: 10px;
top: 3px;
bottom: 3px;
border-width: 0;
border-left: 1px solid rgba(7, 7, 7, 0.65);
background-color: transparent;
padding: 0 0 0 7px;
opacity: 0.33;
color: #fff;
}
#broadcast {
height: 100px;
}
#broadcast:empty {
display: none;
}
/* Typography & Global Styles
========================================================================== */
#content a {
text-decoration: underline;
}
#content a:hover {
text-decoration: none;
}
#sidebar a {
text-decoration: none;
}
#sidebar a:hover {
text-decoration: underline;
}
p {
margin-bottom: 15px;
margin-top: 0;
}
b, strong {
font-weight: bold;
color: #1a1a1a;
}
em, i {
color: #6d6d6d;
font-style: italic;
}
hr {
background-image: url(../images/gauze.png);
height: .75em;
border: none;
margin: .75em 0;
}
#content code a {
text-decoration: none;
}
pre strong,
pre b {
color: #fff;
font-weight: bold;
}
#content blockquote {
margin: 20px 0;
}
#content blockquote p {
font: italic normal 23px/26px "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif;
color: #828282;
margin-left: 0;
margin-bottom: 0;
padding: 20px 30px;
position: relative;
text-shadow: 0 1px 0 #ffffff;
background-color: #f2f2f2;
}
#content ol,
#content ul {
margin: 0 0 20px 20px;
}
#content ul ul {
margin-bottom: 0;
}
#content ul li {
padding-bottom: 5px;
padding-top: 5px;
padding-left: 20px;
line-height: 20px;
list-style-type: none;
background: url(../images/bullet.png) no-repeat 0 10px;
}
#content ul.block-grid li {
background: none;
}
#content ol {
counter-reset: li; /* Initiate a counter */
}
#content ol > li {
position: relative; /* Give each list item a left margin to make room for the numbers */
list-style: none;
padding-left: 10px;
margin-right: 0;
margin-top: 5px;
margin-left: 30px;
}
#content ol > li:before {
content: counter(li); /* Use the counter as content */
counter-increment: li; /* Increment the counter by 1 */
/* Position and style the number */
position: absolute;
top: 1px;
left: -25px;
box-sizing: border-box;
/* Some space between the number and the content in browsers that support
generated content but not positioning it */
color: #fff;
text-align: center;
background-color: #ababab;
height: 19px;
width: 19px;
padding-top: 0;
font: bold 11px/19px "klavika-web", "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif;
border-radius: 12px;
}
.lt-ie8 #content ol,
.lt-ie7 #content ol {
margin-left: 20px;
}
.lt-ie8 #content ol li,
.lt-ie7 #content ol li {
margin-left: 30px;
list-style-type: decimal;
padding-left: 0;
}
#content img.full,
#content figure.full {
display: block;
width: 100%;
max-width: 100%;
}
.lt-ie8 #content figure img {
position: relative;
}
.lt-ie7 #content figure.full,
.lt-ie8 #content figure.full {
width: 99%;
}
#content img.full,
#content img.left,
#content img.right,
#banner img.full {
box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.20);
}
#content img.noborder,
#content figure.noborder {
box-shadow: none;
border: none;
background: none;
}
#content img.full,
#content img.left,
#content img.right,
#content figure.full,
#content figure.left,
#content figure.right {
margin-bottom: 20px;
float: left;
}
#content img.right,
#content figure.right {
float: right;
margin-left: 15px;
}
.lt-ie8 #content img.right,
.lt-ie8 #content figure.right,
.lt-ie7 #content img.right,
.lt-ie7 #content figure.right {
float: left;
margin-left: 0;
margin-right: 15px;
}
#content img.left,
#content figure.left {
margin-right: 15px;
}
#content figure img {
margin: 0 !important;
}
#content figcaption {
box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.20);
font: italic 700 12px/20px "klavika-web", "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif;
padding: 10px 5px;
color: #737272;
clear: both;
margin-top: -10px;
background-color: #f2f2f2;
}
#content figure.noborder figcaption {
box-shadow: none;
background: none;
text-align: center;
}
#content .embed,
#content .embed_media {
position: relative;
padding-bottom: 56.25%; /* 16/9 ratio */
height: 0;
overflow: hidden;
box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.20);
margin-bottom: 20px;
}
#portfolio.media #banner .embed {
margin-bottom: 40px;
}
.embed iframe,
.embed_media iframe,
.embed object,
.embed_media object,
.embed embed,
.embed_media embed {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
#content h1 {
font-size: 36px;
line-height: 36px;
}
.content-full #content h1 {
text-align: center;
}
#content h2 {
font-size: 24px;
line-height: 24px;
color: #333;
margin-bottom: 10px;
}
#content h3 {
font-size: 20px;
line-height: 20px;
color: #666;
}
#content h1.block,
#content h2.block {
padding: 10px 2%;
background: url(../images/gauze.png) #ececec;
text-shadow: 0 1px 0 #ffffff;
}
p.author {
color: #ababab;
font-family: "klavika-web", "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif;
font-weight: 700;
margin-top: -20px;
}
p.author a {
color: #ababab;
}
.meta {
padding: 2%;
padding-bottom: .5%;
margin-bottom: 20px;
font: 700 "klavika-web", "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif;
color: #666;
background: url(../images-foundation/gauze.png) #f0f0f0;
text-shadow: 0 1px 0 #ffffff;
}
#banner-large-image {
text-align: center;
margin-bottom: 30px;
}
#banner-large-image .vertically-centered-black-bg {
height: 50%;
width: 100%;
margin-top: 24%;
display: block;
background-color: rgba(0, 0, 0, 0.68);
position: absolute;
padding-top: 3.5%;
}
#banner-large-image h1, #banner-large-image h2 {
font: bold 60px/60px "klavika-web", "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif;
margin-bottom: 0;
color: #fff;
text-shadow: 0 0 4px rgba(0, 0, 0, 0.85);
}
#banner-large-image p {
color: #cccccc;
font: 700 normal 24px/36px "klavika-web", "Helvetica Neue", sans-serif;
}
#banner-secondary {
background-image: url(../images/dark-grey-tile.png);
margin: -20px -25px 15px;
padding: 20px;
}
#banner-secondary h1,
#banner-secondary h2 {
margin-bottom: 0;
color: #fff;
text-shadow: 0 0 4px rgba(0, 0, 0, 0.85);
}
#banner-secondary h1 {
font-size: 48px;
line-height: 54px;
}
#banner-secondary h2 {
font-size: 36px;
line-height: 42px;
}
#banner-secondary p {
color: #ccc;
font: 22px/26px "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif;
padding-left: 15%;
padding-right: 15%;
}
#banner-secondary a,
#banner-secondary a:hover {
color: #7acef4;
}
#banner-secondary em,
#banner-secondary i {
color: #fff;
}
#banner-secondary.large-banner {
text-align: center;
padding-top: 30px;
padding-bottom: 30px;
}
#banner-secondary.large-banner h1,
#banner-secondary.large-banner h2 {
margin-bottom: 10px;
}
#banner-secondary.large-banner h1 {
font-size: 60px;
line-height: 60px;
}
#banner-secondary.large-banner h2 {
font-size: 48px;
line-height: 48px;
}
#banner-secondary.large-banner h3 {
font-size: 36px;
line-height: 36px;
}
#banner-blm {
background-image: url(../images/dark-grey-tile.png);
color: #fff;
text-align: center;
padding: 20px;
}
#banner-blm h2 {
font-size: 36px;
line-height: 42px;
}
#banner-blm p {
font: 22px/26px "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif;
padding-left: 15%;
padding-right: 15%;
}
.center-txt {
text-align: center !important;
}
.callout-block {
background-image: url(../images/gauze.png);
padding: 20px;
}
/* Buttons
========================================================================== */
a.button,
#content a.button,
.button,
input[type="submit"] {
border-radius: 5px;
border: 1px solid #999;
box-shadow:
0 0 5px rgba(0, 0, 0, 0.28),
inset 0 1px 0 rgba(255, 255, 255, 0.45),
inset 0 -1px 0 rgba(255, 255, 255, 0.45),
inset 1px 0 0 rgba(255, 255, 255, 0.45),
inset -1px 1px 0 rgba(255, 255, 255, 0.45);
text-decoration: none;
color: #fff !important;
text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.35);
padding: 8px 15px;
font: bold 16px/16px "klavika-web", "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif;
transition: all 0.2s;
background-color: #d18f4f;
float: left;
}
a.button:hover,
#content a.button:hover,
.button:hover,
input[type="submit"]:hover {
background-color: #cc8540;
}
a.button.large,
#content a.button.large,
button.large,
input[type="submit"].large {
font-size: 20px;
padding: 12px 20px;
}
a.button.dark,
#content a.button.dark,
.button.dark,
input[type="submit"].dark {
background-color: #666;
}
a.button.dark:hover,
#content a.button.dark:hover,
.button.dark:hover,
input[type="submit"].dark:hover {
background-color: #424141;
}
/* Sidebar
========================================================================== */
#sidebar h3 {
font: 20px/18px;
background-image: -webkit-linear-gradient(left, #efefef, #f3f3f3);
background-image: linear-gradient(to right, #efefef, #f3f3f3);
margin-left: -20px;
margin-right: -20px;
padding: 12px 20px;
text-shadow: 0 1px 0 #ffffff;
}
#sidebar li {
padding: 5px 0 5px 20px;
list-style-type: none;
background: url(../images/bullet.png) no-repeat 0 12px;
text-shadow: 0 1px 0 #ffffff;
}
#sidebar li a {
color: #4d4d4d;
text-decoration: none;
display: block;
}
#sidebar nav#secondary li {
background-image: none;
padding-left: 0;
}
#sidebar nav#secondary li.current {
background-color: #eee;
margin-left: -35px;
margin-right: -20px;
padding-left: 35px;
font-weight: bold;
}
/* == Footer
========================================================================== */
footer {
background: url(../images/bg-footer-noise.jpg) repeat;
margin-top: -20px;
padding-top: 40px;
}
footer.simple {
padding-top: 45px;
padding-bottom: 10px;
}
footer a,
footer strong {
color: #fff;
text-decoration: none;
}
footer .download {
text-align: center;
color: #fff;
padding: 10px 2% 15px 2%;
line-height: 140%;
}
footer .download strong { margin-right: 10px; }
footer .download > span { white-space: nowrap; }
footer .download a { margin: 0 10px; }
footer .download a em {
font-style: normal;
color: #aaa;
}
footer .download a:hover { border-bottom: solid 1px #888; }
footer .footer-icon-links li {
width: 22%;
margin-left: 11%;
float: left;
}
footer .footer-icon-links li a {
display: block;
line-height: inherit;
font-size: 18px;
float: left;
position: relative;
width: auto;
text-align: left;
padding-left: 10px;
}
footer .footer-icon-links li a:before {
position: absolute;
left: -35px;
top: 10px;
font-size: 2em;
color: #4d4d4d;
text-shadow: 0 -1px 0 #000000;
}
footer .footer-icon-links li small {
display: block;
font-size: 14px;
color: #777;
line-height: 120%;
}
footer .footer-icon-links li:hover a:before {
color: #d1d1d1;
}
.multiplebgs.cssgradients footer {
background-image: -webkit-linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.0)), url(../images/bg-footer-noise.jpg); /* Chrome 10+, Saf6 */
background-image: linear-gradient(to bottom, rgba(0,0,0,.3), rgba(0,0,0,0)), url(../images/bg-footer-noise.jpg); /* Firefox 16+, IE 10+, Opera 12.50+ */
background-repeat: repeat-x, repeat;
background-size: 100px 15px, 140px 140px;
}
.no-multiplebgs footer, .no-cssgradients footer {
background-image: url(../images/bg-footer-noise.jpg);
background-repeat: repeat;
}
footer h3 {
color: #777;
letter-spacing: normal;
text-transform: uppercase;
text-shadow: #000 0 1px 0;
border: solid 1px #000;
text-rendering: optimizeLegibility;
border-bottom: none;
border-radius: 4px 4px 0 0;
position: relative;
text-align: center;
height: 10px;
margin-top: 20px;
font-size: 16px;
}
footer h3 span {
display: inline-block;
padding: 3px 10px;
position: relative;
top: -0.8em;
background: url(../images/bg-footer-noise.jpg) repeat #212121;
z-index: 1;
}
footer h3:after {
content: "";
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
border: solid 1px #333;
border-bottom: none;
border-radius: 4px 4px 0 0;
}
.footer-site-links {
float: right;
padding: 10px 0 0 0;
width: 58%;
text-align: right;
}
footer p.copyright {
margin: 10px 0 0 0;
float: left;
width: 40%;
font-size: 11px;
line-height: 130%;
color: #777;
}
footer p.copyright a {
color: #aaa;
}
footer p.copyright a:hover {
color: #fff;
}
footer p.copyright span.sponsor-line {
display: block;
font-size: 10px;
margin-top: 1em;
}
footer p.copyright a.do-link {
background: url(../images/logo-do.png) left top no-repeat;
padding: 2px 0 2px 17px;
}
footer p.copyright a.sp-link {
background: url(../images/logo-sp.png) left top no-repeat;
padding: 2px 0 2px 19px;
}
.footer-site-links li {
position: relative;
background: none;
width: auto;
height: auto;
line-height: 20px;
margin: 0 0 10px 20px;
font-size: 13px;
}
.footer-site-links li:first-child {
margin-left: 0;
}
.footer-site-links li a {
position: relative;
color: #aaa;
display: block;
padding-left: 30px;
width: auto;
line-height: inherit;
}
.footer-site-links li a:before {
position: absolute;
font-size: 1.5em;
color: #4d4d4d;
text-shadow: 0 -1px 0 #000000;
left: 2px;
}
.footer-site-links li:hover a,
.footer-site-links li:hover a:before {
color: #e6e6e6;
}
.footer-site-links li {
display: inline-block;
}
footer ul li {
list-style: none;
padding: 0;
margin: 0;
line-height: 30px;
}
footer #legal {
margin-top: 1em;
border-top: solid 1px #333;
box-shadow: #000 0 -1px 0;
}
footer .books li {
float: left;
width: 30%;
min-width: 95px;
margin-left: 2.8%;
margin-bottom: 15px;
line-height: 130%;
font-size: 11px;
text-align: center;
}
footer .books li:first-child {
margin-left: 2%;
}
footer .books li a img {
display: block;
border-radius: 5px;
border: solid 1px rgba(255,255,255,0.2);
width: 92px;
height: 114px;
margin: 0 auto 5px;
}
footer .books li a:hover img {
border-color: #fff;
}
footer .books li a cite {
display: block;
font-style: normal;
font-size: 9px;
line-height: 1.5em;
color: #aaa;
}
/* General Styles
========================================================================== */
#content .entry-title a {
text-decoration: none;
}
.entry-meta {
color: #999;
font-size: 12px;
}
.toc-linked {
position: relative;
}
.toc-linked .toc-link {
position: absolute;
left: -1em;
text-decoration: none;
opacity: 0;
}
/* TODO: Remove (https://github.com/jquery/jquery-wp-content/issues/143) */
#content .toc-linked .toc-link {
text-decoration: none;
}
.toc-linked:hover .toc-link {
opacity: 1;
}
.post-heirarchy {
margin-bottom: 0.75em;
}
/* Listing Pages (categories, searches, etc.)
========================================================================== */
.listing .hentry {
padding: 10px 20px;
margin: 15px 0;
border: 1px solid rgba( 0, 0, 0, 0.2 );
border-radius: 5px;
background-color: #eee;
position: relative;
}
.listing #content .entry-title {
font-size: 1.3em;
margin-bottom: 0;
text-shadow: 0 1px 1px #fff;
}
.listing .entry-meta {
float: right;
}
.listing .entry-meta .category {
padding: 4px;
background-color: #ddd;
border-radius: 5px;
}
.listing #content .entry-meta .category a {
color: #888;
text-decoration: none;
}
.pagination {
text-align: center;
margin-top: 2em;
}
.page-numbers {
padding: 0 10px;
}
/* API Sites
========================================================================== */
.entry {
margin: 15px 0;
}
.entry-wrapper {
border: 1px solid #ccc;
border-top: 0;
padding: 10px;
border-radius: 0 0 5px 5px;
}
#content .section-title {
background: #333;
border: 1px solid #111;
padding: 8px 15px;
font-size: 16px;
color: white;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5);
letter-spacing: 0;
border-radius: 5px 5px 0 0;
font-weight: normal;
margin-bottom: 0;
overflow: hidden;
}
.returns {
float: right;
font-style: italic;
}
.api-item .returns {
font-size: 16px;
color: #333;
font-weight: normal;
}
.api-item .version-details {
display: block;
padding: 0.5em;
margin: 1em 0;
background: #fff3a5;
border-radius: 5px;
}
#content .signatures {
background: #eee;
border: 1px solid #ccc;
margin: 0 auto 15px;
max-width: 750px;
border-radius: 3px;
color: #333;
text-shadow: 0 1px 0 #fff;
}
#content .signatures li {
list-style: none;
background: none;
margin: 0;
padding: 10px;
}
#content .signatures > li {
padding-bottom: 0;
}
#content .signature > ul {
margin: 0;
}
.signatures h4 {
font-size: 16px;
letter-spacing: 0;
padding: 8px 10px;
margin: -10px -10px 0;
color: #fff;
text-shadow: 0 1px 0 #444;
}
.signature:first-child h4 {
border-radius: 3px 3px 0 0;
}
#content .signature h4 a {
color: inherit;
text-decoration: none;
}
.signature h4 .icon-link {
margin-right: 0.5em;
}
.signature .event-properties {
margin: 15px 0 0 0;
}
.argument {
margin-top: 1em;
}
#options, #methods, #extension-points, #events, #quick-nav {
border: 1px solid #ccc;
margin: 0 15px 15px;
padding: 10px;
overflow: auto;
}
#options header h2, #methods header h2, #extension-points header h2, #events header h2, #quick-nav h2 {
background: #cccccc; /* Old browsers */
background: -webkit-linear-gradient(top, #ffffff 0%,#eeeeee 17%,#cccccc 100%); /* Chrome10+,Safari5.1+ */
background: linear-gradient(to bottom, #ffffff 0%,#eeeeee 17%,#cccccc 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#cccccc',GradientType=0 ); /* IE6-9 */
margin: -10px -10px 10px -10px;
padding: 10px;
}
#quick-nav h2 a {
float: right;
font-size: 80%;
padding-left: 10px;
}
.quick-nav-section {
width: 33%;
float: left;
}
#methods .api-item li,
#extension-points .api-item li,
#events .api-item li {
margin-bottom: 1em;
}
#methods .api-item li ul,
#extension-points .api-item li ul,
#events .api-item li ul {
list-style: none;
}
.version-details {
font-weight: bold;
}
.section-title .version-details,
.name .version-details {
float: right;
clear: right;
font-size: 14px;
color: #fff;
}
.api-item {
padding: 20px 10px;
}
.signature li,
.api-item {
border-top: 1px solid #ccc;
}
.signature li:first-child,
.api-item.first-item {
border-top: none;
padding-top: 10px;
}
.option-type {
font-size: 16px;
font-weight: normal;
color: #333;
}
#options .default {
margin-bottom: 1em;
}
#options .default .syntaxhighlighter {
/* stick code to label; this is more important! */
margin-top: 0 !important;
}
.desc {
font-size: 16px;
padding: 5px 15px 0;
color: #666;
font-style: italic;
}
.desc strong {
color: #444;
font-style: normal;
}
.entry-summary p {
margin: 0;
}
.warning, .note {
padding: 0.5em 1em;
margin: 1em;
border-radius: 5px;
}
.warning {
background: #fff3a5;
}
.note {
background: #428bca;
color: #fff;
}
.note a {
color: #fff;
}
/* Media Queries
========================================================================== */
@media only screen and (max-width: 807px) {
#content-wrapper.row {
min-width: 0;
}
}
@media only screen and (max-width: 767px) {
#global-nav ul.projects li.toggle-projects {
display: none;
}
#sidebar,
.content-right #sidebar {
width: auto;
float: none;
clear: both;
margin: 0;
border-top: 1px solid #e7e7e7;
border-right: none;
border-image: none;
box-shadow: none;
background-image: none;
}
.content-full.full-width #content,
.content-right #content,
.content-left #content {
padding-left: 15px;
padding-right: 15px;
}
#content {
width: 100%;
float: none;
clear: both;
}
#banner-secondary {
margin-left: -15px !important;
margin-right: -15px !important;
}
footer p.copyright,
footer ul.footer-site-links {
width: 100%;
text-align: center;
margin: 0 0 10px 0;
}
}
@media only screen and (max-width: 700px) {
#global-nav ul.projects {
display: none;
}
#global-nav nav ul.links {
float: left;
}
#global-nav nav ul.links li {
font-size: 12px;
}
#logo-events {
padding-top: 20px;
padding-bottom: 10px;
}
#logo-events aside {
display: inline-block;
position: relative;
left: 50%;
margin-left: -200px;
float: none;
padding: 10px 0;
}
#logo-events h2.logo {
float: none;
margin-left: auto;
margin-right: auto;
}
nav#main {
background-color: rgba(0, 0, 0, 0.0);
border-radius: 10px 10px 0 0;
border-right: none;
border-left: none;
border-top: none;
box-shadow: none;
padding-top: 10px;
}
nav#main .searchform {
display: block;
float: none;
width: 100%;
margin: 15px auto;
clear:both;
}
nav#main ul{
width: auto !important;
text-align: left !important;
float: none;
margin: 0;
padding: 0;
}
nav#main ul li, nav#main ul li a {
display: block;
text-align: left !important;
float: left;
margin-right: 0;
padding: 0 4px 4px 0;
}
nav#main li a:hover,
nav#main li.current a {
background: none;
box-shadow: none;
border-radius: 4px;
border: 1px solid rgba(0,0,0,0.0);
}
nav#main li a {
font-size: 14px;
}
#content-wrapper {
border-top-left-radius: 10px;
border-top-right-radius: 10px;
}
.content-full.full-width #content,
.content-right #content,
.content-left #content {
padding-left: 10px;
padding-right: 10px;
}
#banner-secondary {
border-top-left-radius: 9px;
border-top-right-radius: 9px;
margin-left: -10px !important;
margin-right: -10px !important;
}
#banner-secondary h2 {
font-size: 35px;
line-height: 35px;
}
#content h1 {
font-size: 26px;
line-height: 26px;
}
#banner-secondary.large-banner h1,
#banner-secondary.large-banner h2 {
font-size: 36px;
line-height: 36px;
}
#banner-secondary.large-banner p {
font-size: 22px;
padding: 0;
}
footer .books li {
clear: both;
margin-bottom: 10px;
float: none;
margin-left: auto !important;
margin-right: auto;
text-align: center;
}
footer .books li span {
display: block;
margin-left: auto;
margin-right: auto;
}
}
@media only screen and (max-width: 480px) {
#global-nav {
display: none;
}
#logo-events aside {
width: 300px;
margin-left: -150px;
}
#container {
border-top: none !important;
}
.tinynav-container {
display: block;
}
#menu-top {
display: none;
}
.tinynav {
display: block;
width: 100%;
margin: 0 auto 15px;
position: relative;
top: 6px;
left: 0;
}
nav#main {
margin-top: 15px;
padding-top: 0;
}
nav#main .searchform {
display: block;
float: none;
width: 100%;
margin: 15px auto;
}
nav#main ul li, nav#main ul li a {
float: none;
padding: 6px 0 6px 8px;
}
.constrain,
#container {
padding-left: 10px;
padding-right: 10px;
}
.content-full #content,
.content-full.full-width #content,
.content-right #content,
.content-left #content {
padding-left: 0;
padding-right: 0;
}
#content-wrapper {
padding-left: 25px;
padding-right: 25px;
}
#content pre {
margin-left: -25px;
margin-right: -25px;
}
#content img.left,
#content figure.left,
#content img.right,
#content figure.right {
display: block;
width: 100%;
max-width: 100%;
margin-left: 0;
margin-right: 0;
}
#banner-secondary {
margin-left: -25px !important;
margin-right: -25px !important;
}
footer .footer-icon-links li a:before {
display: none;
}
footer .footer-icon-links li:first-child {
margin-left: 0;
}
footer .download > span {
white-space: normal;
}
}
@media only screen and (-webkit-device-pixel-ratio: 2){
.jquery h2.logo a {
background: url(../images/logo-jquery@2x.png) no-repeat;
background-size: 243px 66px;
}
.jquery-ui h2.logo a {
background: url(../images/logo-jquery-ui@2x.png) no-repeat;
background-size: 253px 66px;
}
.jquery-mobile h2.logo a {
background: url(../images/logo-jquery-mobile@2x.png) no-repeat;
background-size: 268px 66px;
}
.sizzlejs h2.logo a {
background: url(../images/logo-sizzle@2x.png) no-repeat;
background-size: 243px 66px;
}
.qunitjs h2.logo a {
background: url(../images/logo-qunit@2x.png) no-repeat;
background-size: 243px 66px;
}
.jquery-foundation h2.logo a {
background: url(../images/logo-jquery-foundation@2x.png) no-repeat;
background-size: 243px 66px;
}
.jquery-events.jquery-foundation h2.logo a {
background: url(../images/logo-jquery-events@2x.png) no-repeat;
background-size: 243px 66px;
}
}
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
only screen and (min-resolution: 144dpi) {
}
/* Helper classes
========================================================================== */
.ir {
background-color: transparent;
border: 0;
overflow: hidden;
*text-indent: -9999px;
}
.ir:before {
content: "";
display: block;
width: 0;
height: 100%;
}
.hidden {
display: none !important;
visibility: hidden;
}
.visuallyhidden {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
clip: auto;
height: auto;
margin: 0;
overflow: visible;
position: static;
width: auto;
}
.invisible {
visibility: hidden;
}
.clearfix:before,
.clearfix:after {
content: " ";
display: table;
}
.clearfix:after {
clear: both;
}
.clearfix {
*zoom: 1;
}
/* Print styles
========================================================================== */
@media print {
* {
background: transparent !important;
color: #000 !important; /* Black prints faster: h5bp.com/s */
box-shadow:none !important;
text-shadow: none !important;
}
a,
a:visited {
text-decoration: underline;
}
a[href]:after {
content: " (" attr(href) ")";
}
abbr[title]:after {
content: " (" attr(title) ")";
}
/*
* Don't show links for images, or javascript/internal links
*/
.ir a:after,
a[href^="javascript:"]:after,
a[href^="#"]:after {
content: "";
}
pre,
blockquote {
border: 1px solid #999;
page-break-inside: avoid;
}
thead {
display: table-header-group; /* h5bp.com/t */
}
tr,
img {
page-break-inside: avoid;
}
img {
max-width: 100% !important;
}
@page {
margin: 0.5cm;
}
p,
h2,
h3 {
orphans: 3;
widows: 3;
}
h2,
h3 {
page-break-after: avoid;
}
}
/* The Grid ----------------------
Based on Zurb Foundation's Grid
*/
.row { width: 1240px; max-width: 100%; min-width: 768px; margin: 0 auto; }
.row .row { width: auto; max-width: none; min-width: 0; margin: 0 -25px; }
.row.collapse .column, .row.collapse .columns { padding: 0; }
.row .row { width: auto; max-width: none; min-width: 0; margin: 0 -25px; }
.row .row.collapse { margin: 0; }
.column, .columns { float: left; min-height: 1px; padding: 0 25px; position: relative; }
.column.centered, .columns.centered { float: none; margin: 0 auto; }
[class*="column"] + [class*="column"]:last-child { float: right; }
[class*="column"] + [class*="column"].end { float: left; }
.one, .row .one { width: 8.33333%; }
.two, .row .two { width: 16.66667%; }
.three, .row .three { width: 25%; }
.four, .row .four { width: 33.33333%; }
.five, .row .five { width: 41.66667%; }
.six, .row .six { width: 50%; }
.seven, .row .seven { width: 58.33333%; }
.eight, .row .eight { width: 66.66667%; }
.nine, .row .nine { width: 75%; }
.ten, .row .ten { width: 83.33333%; }
.eleven, .row .eleven { width: 91.66667%; }
.twelve, .row .twelve { width: 100%; }
.row .offset-by-one { margin-left: 8.33333%; }
.row .offset-by-two { margin-left: 16.66667%; }
.row .offset-by-three { margin-left: 25%; }
.row .offset-by-four { margin-left: 33.33333%; }
.row .offset-by-five { margin-left: 41.66667%; }
.row .offset-by-six { margin-left: 50%; }
.row .offset-by-seven { margin-left: 58.33333%; }
.row .offset-by-eight { margin-left: 66.66667%; }
.row .offset-by-nine { margin-left: 75%; }
.row .offset-by-ten { margin-left: 83.33333%; }
.push-two { left: 16.66667%; }
.pull-two { right: 16.66667%; }
.push-three { left: 25%; }
.pull-three { right: 25%; }
.push-four { left: 33.33333%; }
.pull-four { right: 33.33333%; }
.push-five { left: 41.66667%; }
.pull-five { right: 41.66667%; }
.push-six { left: 50%; }
.pull-six { right: 50%; }
.push-seven { left: 58.33333%; }
.pull-seven { right: 58.33333%; }
.push-eight { left: 66.66667%; }
.pull-eight { right: 66.66667%; }
.push-nine { left: 75%; }
.pull-nine { right: 75%; }
.push-ten { left: 83.33333%; }
.pull-ten { right: 83.33333%; }
img, object, embed { max-width: 100%; height: auto; }
object, embed { height: 100%; }
img { -ms-interpolation-mode: bicubic; }
#map_canvas img, .map_canvas img { max-width: none!important; }
/* Nicolas Gallagher's micro clearfix */
.row { *zoom: 1; }
.row:before, .row:after { content: ""; display: table; }
.row:after { clear: both; }
/* Mobile Grid and Overrides ---------------------- */
@media only screen and (max-width: 767px) {
.row { width: auto; min-width: 0; margin-left: 0 !important; margin-right: 0 !important; }
.column, .columns { width: auto !important; float: none; padding-left: 0 !important; padding-right: 0 !important;
}
.column:last-child, .columns:last-child { float: none; }
[class*="column"] + [class*="column"]:last-child { float: none; }
.column:before, .columns:before, .column:after, .columns:after { content: ""; display: table; }
.column:after, .columns:after { clear: both; }
.offset-by-one, .offset-by-two, .offset-by-three, .offset-by-four, .offset-by-five, .offset-by-six, .offset-by-seven, .offset-by-eight, .offset-by-nine, .offset-by-ten { margin-left: 0 !important; }
.push-two, .push-three, .push-four, .push-five, .push-six, .push-seven, .push-eight, .push-nine, .push-ten { left: auto; }
.pull-two, .pull-three, .pull-four, .pull-five, .pull-six, .pull-seven, .pull-eight, .pull-nine, .pull-ten { right: auto; }
/* Mobile 4-column Grid */
.row .mobile-one { width: 25% !important; float: left; padding: 0 25px; }
.row .mobile-one:last-child { float: right; }
.row .mobile-one.end { float: left; }
.row.collapse .mobile-one { padding: 0; }
.row .mobile-two { width: 50% !important; float: left; padding: 0 25px; }
.row .mobile-two:last-child { float: right; }
.row .mobile-two.end { float: left; }
.row.collapse .mobile-two { padding: 0; }
.row .mobile-three { width: 75% !important; float: left; padding: 0 25px; }
.row .mobile-three:last-child { float: right; }
.row .mobile-three.end { float: left; }
.row.collapse .mobile-three { padding: 0; }
.row .mobile-four { width: 100% !important; float: left; padding: 0 25px; }
.row .mobile-four:last-child { float: right; }
.row .mobile-four.end { float: left; }
.row.collapse .mobile-four { padding: 0; }
.push-one-mobile { left: 25%; }
.pull-one-mobile { right: 25%; }
.push-two-mobile { left: 50%; }
.pull-two-mobile { right: 50%; }
.push-three-mobile { left: 75%; }
.pull-three-mobile { right: 75%; }
}
/* Block Grids ---------------------- */
/* These are 2-up, 3-up, 4-up and 5-up ULs, suited
for repeating blocks of content. Add 'mobile' to
them to switch them just like the layout grid
(one item per line) on phones
For IE7/8 compatibility block-grid items need to be
the same height. You can optionally uncomment the
lines below to support arbitrary height, but know
that IE7/8 do not support :nth-child.
-------------------------------------------------- */
.block-grid, #content .block-grid { display: block; overflow: hidden; padding: 0; }
.block-grid > li, #content .block-grid > li { display: block; height: auto; float: left; }
.block-grid.one-up, #content .block-grid.one-up { margin: 0; }
.block-grid.one-up > li, #content .block-grid.one-up > li { width: 100%; padding: 0 0 15px; }
.block-grid.two-up, #content .block-grid.two-up { margin: 0 -15px; }
.block-grid.two-up > li, #content .block-grid.two-up > li { width: 50%; padding: 0 15px 15px; }
.block-grid.two-up > li:nth-child(2n+1), #content .block-grid.two-up > li:nth-child(2n+1) { clear: both; }
.block-grid.three-up, #content .block-grid.three-up { margin: 0 -12px; }
.block-grid.three-up > li, #content .block-grid.three-up > li { width: 33.33%; padding: 0 12px 12px; }
.block-grid.three-up > li:nth-child(3n+1), #content .block-grid.three-up > li:nth-child(3n+1) { clear: both; }
.block-grid.four-up, #content .block-grid.four-up { margin: 0 -10px; }
.block-grid.four-up > li, #content .block-grid.four-up > li { width: 25%; padding: 0 10px 10px; }
.block-grid.four-up > li:nth-child(4n+1), #content .block-grid.four-up > li:nth-child(4n+1) { clear: both; }
.block-grid.five-up, #content .block-grid.five-up { margin: 0 -8px; }
.block-grid.five-up > li, #content .block-grid.five-up > li { width: 20%; padding: 0 8px 8px; }
.block-grid.five-up > li:nth-child(5n+1), #content .block-grid.five-up > li:nth-child(5n+1) { clear: both; }
/* Mobile Block Grids */
@media only screen and (max-width: 767px) {
.block-grid.mobile > li { float: none !important; width: 100% !important; margin-left: 0 !important; }
.block-grid > li { clear: none !important; }
.block-grid.mobile-two-up > li { width: 50% !important; }
.block-grid.mobile-two-up > li:nth-child(2n+1) { clear: both !important; }
.block-grid.mobile-three-up > li { width: 33.33% !important; }
.block-grid.mobile-three-up > li:nth-child(3n+1) { clear: both !important; }
.block-grid.mobile-four-up > li { width: 25% !important; }
.block-grid.mobile-four-up > li:nth-child(4n+1) { clear: both; }
.block-grid.mobile-five-up > li:nth-child(5n+1) { clear: both; }
}
/*
ColorBox Core Style:
The following CSS is consistent between example themes and should not be altered.
*/
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
#cboxOverlay{position:fixed; width:100%; height:100%;}
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
#cboxContent{position:relative;}
#cboxLoadedContent{overflow:auto;}
#cboxTitle{margin:0;}
#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;}
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
.cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none;}
.cboxIframe{width:100%; height:100%; display:block; border:0;}
#colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box;}
/*
User Style:
Change the following styles to modify the appearance of ColorBox. They are
ordered & tabbed in a way that represents the nesting of the generated HTML.
*/
#cboxOverlay{background:url(../images/colorbox/overlay.png) repeat 0 0;}
#cboxTopLeft{width:21px; height:21px; background:url(../images/colorbox/controls.png) no-repeat -101px 0;}
#cboxTopRight{width:21px; height:21px; background:url(../images/colorbox/controls.png) no-repeat -130px 0;}
#cboxBottomLeft{width:21px; height:21px; background:url(../images/colorbox/controls.png) no-repeat -101px -29px;}
#cboxBottomRight{width:21px; height:21px; background:url(../images/colorbox/controls.png) no-repeat -130px -29px;}
#cboxMiddleLeft{width:21px; background:url(../images/colorbox/controls.png) left top repeat-y;}
#cboxMiddleRight{width:21px; background:url(../images/colorbox/controls.png) right top repeat-y;}
#cboxTopCenter{height:21px; background:url(../images/colorbox/border.png) 0 0 repeat-x;}
#cboxBottomCenter{height:21px; background:url(../images/colorbox/border.png) 0 -29px repeat-x;}
#cboxContent{background:#fff; overflow:hidden;}
.cboxIframe{background:#fff;}
#cboxError{padding:50px; border:1px solid #ccc;}
#cboxLoadedContent{margin-bottom:28px;}
#cboxTitle{position:absolute; bottom:4px; left:0; text-align:center; width:100%; color:#949494;}
#cboxCurrent{position:absolute; bottom:4px; left:58px; color:#949494;}
#cboxSlideshow{position:absolute; bottom:4px; right:30px; color:#0092ef;}
#cboxPrevious{position:absolute; bottom:0; left:0; background:url(../images/colorbox/controls.png) no-repeat -75px 0; width:25px; height:25px; text-indent:-9999px;}
#cboxPrevious:hover{background-position:-75px -25px;}
#cboxNext{position:absolute; bottom:0; left:27px; background:url(../images/colorbox/controls.png) no-repeat -50px 0; width:25px; height:25px; text-indent:-9999px;}
#cboxNext:hover{background-position:-50px -25px;}
#cboxLoadingOverlay{background:url(../images/colorbox/loading_background.png) no-repeat center center;}
#cboxLoadingGraphic{background:url(../images/colorbox/loading.gif) no-repeat center center;}
#cboxClose{position:absolute; bottom:0; right:0; background:url(../images/colorbox/controls.png) no-repeat -25px 0; width:25px; height:25px; text-indent:-9999px;}
#cboxClose:hover{background-position:-25px -25px;}
/*
The following fixes a problem where IE7 and IE8 replace a PNG's alpha transparency with a black fill
when an alpha filter (opacity change) is set on the element or ancestor element. This style is not applied to or needed in IE9.
See: http://jacklmoore.com/notes/ie-transparency-problems/
*/
.cboxIE #cboxTopLeft,
.cboxIE #cboxTopCenter,
.cboxIE #cboxTopRight,
.cboxIE #cboxBottomLeft,
.cboxIE #cboxBottomCenter,
.cboxIE #cboxBottomRight,
.cboxIE #cboxMiddleLeft,
.cboxIE #cboxMiddleRight {
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#00ffffff,endColorstr=#00ffffff);
}
/* Syntax Highlighting ---------------------- */
pre, code {
font-family: "source-code-pro", Consolas, monospace !important;
word-spacing: 0;
}
pre code {
display: block; padding: 0.5em;
color: #333;
background: #f8f8ff
}
pre .comment,
pre .template_comment,
pre .diff .header,
pre .javadoc {
color: #998;
font-style: italic
}
pre .keyword,
pre .css .rule .keyword,
pre .winutils,
pre .javascript .title,
pre .nginx .title,
pre .subst,
pre .request,
pre .status {
color: #333;
font-weight: bold
}
pre .number,
pre .hexcolor,
pre .ruby .constant {
color: #099;
}
pre .string,
pre .tag .value,
pre .phpdoc,
pre .tex .formula {
color: #d14
}
pre .title,
pre .id {
color: #900;
font-weight: bold
}
pre .javascript .title,
pre .lisp .title,
pre .clojure .title,
pre .subst {
font-weight: normal
}
pre .class .title,
pre .haskell .type,
pre .vhdl .literal,
pre .tex .command {
color: #458;
font-weight: bold
}
pre .tag,
pre .tag .title,
pre .rules .property,
pre .django .tag .keyword {
color: #000080;
font-weight: normal
}
pre .attribute,
pre .variable,
pre .lisp .body {
color: #008080
}
pre .regexp {
color: #009926
}
pre .class {
color: #458;
font-weight: bold
}
pre .symbol,
pre .ruby .symbol .string,
pre .lisp .keyword,
pre .tex .special,
pre .prompt {
color: #990073
}
pre .built_in,
pre .lisp .title,
pre .clojure .built_in {
color: #0086b3
}
pre .preprocessor,
pre .pi,
pre .doctype,
pre .shebang,
pre .cdata {
color: #999;
font-weight: bold
}
pre .deletion {
background: #fdd
}
pre .addition {
background: #dfd
}
pre .diff .change {
background: #0086b3
}
pre .chunk {
color: #aaa
}
.syntaxhighlighter a,
.syntaxhighlighter div,
.syntaxhighlighter pre,
.syntaxhighlighter code,
.syntaxhighlighter table,
.syntaxhighlighter table td,
.syntaxhighlighter table tr,
.syntaxhighlighter table tbody,
.syntaxhighlighter table thead,
.syntaxhighlighter table caption,
.syntaxhighlighter textarea {
border-radius: 0 0 0 0 !important;
background: none !important;
bottom: auto !important;
float: none !important;
height: auto !important;
left: auto !important;
line-height: 1.1em !important;
margin: 0 !important;
outline: 0 !important;
overflow: visible !important;
padding: 0 !important;
position: static !important;
right: auto !important;
text-align: left !important;
top: auto !important;
vertical-align: baseline !important;
width: auto !important;
box-sizing: content-box !important;
font-family: "source-code-pro", Consolas, monospace !important;
font-weight: normal !important;
font-style: normal !important;
font-size: 1em !important;
min-height: auto !important;
}
.syntaxhighlighter {
width: 100% !important;
margin: 1em 0 1em 0 !important;
padding: 1em 0;
position: relative !important;
overflow: auto !important;
font-size: 1em !important;
background: #eee;
}
.syntaxhighlighter.source {
overflow: hidden !important;
}
.syntaxhighlighter .line {
white-space: pre !important;
}
.syntaxhighlighter table {
width: 100% !important;
}
.syntaxhighlighter table caption {
text-align: left !important;
padding: .5em 0 0.5em 1em !important;
}
.syntaxhighlighter table td.code {
width: 100% !important;
}
.syntaxhighlighter table td.code .container {
position: relative !important;
}
.syntaxhighlighter table td.code .container textarea {
box-sizing: border-box !important;
position: absolute !important;
left: 0 !important;
top: 0 !important;
width: 100% !important;
height: 100% !important;
border: none !important;
background: white !important;
padding-left: 1em !important;
overflow: hidden !important;
white-space: pre !important;
}
.syntaxhighlighter table td.gutter .line {
text-align: right !important;
padding: 0 0.5em 0 1em !important;
}
.syntaxhighlighter table td.code .line {
padding: 0 0.5em !important;
}
.syntaxhighlighter.nogutter td.code .container textarea,
.syntaxhighlighter.nogutter td.code .line {
padding-left: 1em !important;
}
.syntaxhighlighter table td.gutter {
border-right: 2px solid #999;
}
.syntaxhighlighter {
border-radius: 5px;
}
#content .syntaxhighlighter tr {
border-bottom: none;
} |
\documentclass{article}
\usepackage[pdftex,active,tightpage]{preview}
\setlength\PreviewBorder{2mm}
\usepackage{amsmath}
\usepackage{tikz}
\usetikzlibrary{shapes, calc, shapes, arrows, snakes}
\newcommand{\width}{0.2}
\begin{document}
\begin{preview}
\tikzset{sigmoid/.style={path picture= {
\begin{scope}[x=1pt,y=10pt]
\draw plot[domain=-7:7] (\x,{1/(1 + exp(-\x))-0.5});
\end{scope}
}
}
}
\tikzset{relu/.style={path picture= {
\begin{scope}[x=7pt,y=6pt]
\draw plot[domain=-1:0] (\x,0);
\draw plot[domain=0:1] (\x,\x);
\end{scope}
}
}
}
\tikzstyle{input}=[draw,fill=red!50,circle,minimum size=20pt,inner sep=0pt]
\tikzstyle{hidden}=[draw,fill=green!50,circle,minimum size=20pt,inner sep=0pt]
\tikzstyle{output}=[draw,fill=white,circle,minimum size=20pt,inner sep=0pt]
\tikzstyle{bias}=[draw,dashed,fill=gray!50,circle,minimum size=20pt,inner sep=0pt]
\tikzstyle{layer}=[fill=gray!70]
\tikzstyle{stateTransition}=[->, very thick]
\begin{tikzpicture}[scale=2]
\node (i0)[bias] at (0, 0) {1};
\node (i1)[input] at (0, 0.5) {};
\node (i2)[input] at (0, 1.0) {};
\node (i3)[input] at (0, 1.5) {};
\node (h1)[hidden] at (1, 2.0) {};
\node (h2)[hidden] at (2, 2.5) {};
\node (h3)[hidden] at (3, 3.0) {};
\node (o1)[output] at (4, 3.5) {};
\node (o2)[output] at (5, 3.5) {};
\draw[stateTransition] (i0) -- (6, 0);
\draw[stateTransition] (i1) -- (6, 0.5);
\draw[stateTransition] (i2) -- (6, 1.0);
\draw[stateTransition] (i3) -- (6, 1.5);
\draw[stateTransition] (h1) -- (6, 2.0);
\draw[stateTransition] (h2) -- (6, 2.5);
\draw[stateTransition] (h3) -- (6, 3.0);
\draw[stateTransition] (1, 0) -- (h1);
\draw[stateTransition] (2, 0) -- (h2);
\draw[stateTransition] (3, 0) -- (h3);
\draw[stateTransition] (4, 0) -- (o1);
\draw[stateTransition] (5, 0) -- (o2);
\foreach \x in {1,...,3} {
\pgfmathsetmacro{\limy}{(2+\x) / 2}
\foreach \y in {0, 0.5, ..., \limy} {
\node[rectangle,draw=black,fill=black,minimum size=12] (box) at (\x,\y) {};
}
}
\foreach \x in {4,...,5} {
\foreach \y in {0, ..., 6} {
\pgfmathsetmacro{\yn}{0.5*\y}
\node[rectangle,draw=black,fill=white,minimum size=12] (box) at (\x,\yn) {};
}
}
% \node (h11)[hidden, sigmoid] at (1, 1.5) {};
% \node (h12)[hidden, sigmoid] at (1, 0.5) {};
% \node[circle, inner sep=0] (h13) at (1,-0.5) {\vdots};
% \node (h14)[hidden, sigmoid] at (1,-1.5) {};
% \node (h21)[hidden, relu] at (2, 1.5) {};
% \node (h22)[hidden, relu] at (2, 0.5) {};
% \node[circle, inner sep=0] (h23) at (2,-0.5) {\vdots};
% \node (h24)[hidden, relu] at (2,-1.5) {};
% \node (o1)[output, sigmoid] at (3,0) {};
% \draw[stateTransition] (r) -- (h11) node [midway,above=-0.06cm] {};
% \draw[stateTransition] (r) -- (h12) node [midway,above=-0.06cm] {};
% \draw[stateTransition] (r) -- (h13) node [midway,above=-0.06cm] {};
% \draw[stateTransition] (r) -- (h14) node [midway,above=-0.06cm] {};
% \draw[stateTransition] (g) -- (h11) node [midway,above=-0.06cm] {};
% \draw[stateTransition] (g) -- (h12) node [midway,above=-0.06cm] {};
% \draw[stateTransition] (g) -- (h13) node [midway,above=-0.06cm] {};
% \draw[stateTransition] (g) -- (h14) node [midway,above=-0.06cm] {};
% \draw[stateTransition] (b) -- (h11) node [midway,above=-0.06cm] {};
% \draw[stateTransition] (b) -- (h12) node [midway,above=-0.06cm] {};
% \draw[stateTransition] (b) -- (h13) node [midway,above=-0.06cm] {};
% \draw[stateTransition] (b) -- (h11) node [midway,above=-0.06cm] {};
% \draw[stateTransition] (h11) -- (h21) node [midway,above=-0.06cm] {};
% \draw[stateTransition] (h11) -- (h22) node [midway,above=-0.06cm] {};
% \draw[stateTransition] (h11) -- (h23) node [midway,above=-0.06cm] {};
% \draw[stateTransition] (h11) -- (h24) node [midway,above=-0.06cm] {};
% \draw[stateTransition] (h12) -- (h21) node [midway,above=-0.06cm] {};
% \draw[stateTransition] (h12) -- (h22) node [midway,above=-0.06cm] {};
% \draw[stateTransition] (h12) -- (h23) node [midway,above=-0.06cm] {};
% \draw[stateTransition] (h12) -- (h24) node [midway,above=-0.06cm] {};
% \draw[stateTransition] (h13) -- (h21) node [midway,above=-0.06cm] {};
% \draw[stateTransition] (h13) -- (h22) node [midway,above=-0.06cm] {};
% \draw[stateTransition] (h13) -- (h23) node [midway,above=-0.06cm] {};
% \draw[stateTransition] (h13) -- (h24) node [midway,above=-0.06cm] {};
% \draw[stateTransition] (h14) -- (h21) node [midway,above=-0.06cm] {};
% \draw[stateTransition] (h14) -- (h22) node [midway,above=-0.06cm] {};
% \draw[stateTransition] (h14) -- (h23) node [midway,above=-0.06cm] {};
% \draw[stateTransition] (h14) -- (h21) node [midway,above=-0.06cm] {};
% \draw[stateTransition] (h21) -- (o1) node [midway,above=-0.06cm] {};
% \draw[stateTransition] (h22) -- (o1) node [midway,above=-0.10cm] {};
% \draw[stateTransition] (h23) -- (o1) node [midway,above=-0.06cm] {};
% \draw[stateTransition] (h24) -- (o1) node [midway,above=-0.06cm] {};
% \draw [
% thick,
% decoration={
% brace,
% mirror,
% raise=0.5cm
% },
% decorate
% ] (1+-\width, -1.8) -- (2+\width, -1.8)
% node [pos=0.5,anchor=north,yshift=-0.55cm] {50\% dropout};
\end{tikzpicture}
\end{preview}
\end{document}
|
adding
addAttributeAssociation: anAssociation
^ self
addAttributeName: anAssociation key
value: anAssociation value |
-- Copyright 1986-2019 Xilinx, Inc. All Rights Reserved.
-- --------------------------------------------------------------------------------
-- Tool Version: Vivado v.2019.1 (lin64) Build 2552052 Fri May 24 14:47:09 MDT 2019
-- Date : Thu Apr 30 11:00:32 2020
-- Host : zw-pc running 64-bit Ubuntu 16.04.6 LTS
-- Command : write_vhdl -force -mode synth_stub
-- /home/zw/share/ultra96/ultra96_design/ultra96_design/ultra96_design.srcs/design_1/ip/design_1_mipi_csi2_rx_subsyst_0_0/bd_0/ip/ip_2/bd_d10d_phy_0_stub.vhdl
-- Design : bd_d10d_phy_0
-- Purpose : Stub declaration of top-level module interface
-- Device : xczu3eg-sbva484-1-e
-- --------------------------------------------------------------------------------
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
entity bd_d10d_phy_0 is
Port (
core_clk : in STD_LOGIC;
core_rst : in STD_LOGIC;
rxbyteclkhs : out STD_LOGIC;
clkoutphy_out : out STD_LOGIC;
pll_lock_out : out STD_LOGIC;
system_rst_out : out STD_LOGIC;
init_done : out STD_LOGIC;
cl_rxclkactivehs : out STD_LOGIC;
cl_stopstate : out STD_LOGIC;
cl_enable : in STD_LOGIC;
cl_rxulpsclknot : out STD_LOGIC;
cl_ulpsactivenot : out STD_LOGIC;
dl0_rxdatahs : out STD_LOGIC_VECTOR ( 7 downto 0 );
dl0_rxvalidhs : out STD_LOGIC;
dl0_rxactivehs : out STD_LOGIC;
dl0_rxsynchs : out STD_LOGIC;
dl0_forcerxmode : in STD_LOGIC;
dl0_stopstate : out STD_LOGIC;
dl0_enable : in STD_LOGIC;
dl0_ulpsactivenot : out STD_LOGIC;
dl0_rxclkesc : out STD_LOGIC;
dl0_rxlpdtesc : out STD_LOGIC;
dl0_rxulpsesc : out STD_LOGIC;
dl0_rxtriggeresc : out STD_LOGIC_VECTOR ( 3 downto 0 );
dl0_rxdataesc : out STD_LOGIC_VECTOR ( 7 downto 0 );
dl0_rxvalidesc : out STD_LOGIC;
dl0_errsoths : out STD_LOGIC;
dl0_errsotsynchs : out STD_LOGIC;
dl0_erresc : out STD_LOGIC;
dl0_errsyncesc : out STD_LOGIC;
dl0_errcontrol : out STD_LOGIC;
dl1_rxdatahs : out STD_LOGIC_VECTOR ( 7 downto 0 );
dl1_rxvalidhs : out STD_LOGIC;
dl1_rxactivehs : out STD_LOGIC;
dl1_rxsynchs : out STD_LOGIC;
dl1_forcerxmode : in STD_LOGIC;
dl1_stopstate : out STD_LOGIC;
dl1_enable : in STD_LOGIC;
dl1_ulpsactivenot : out STD_LOGIC;
dl1_rxclkesc : out STD_LOGIC;
dl1_rxlpdtesc : out STD_LOGIC;
dl1_rxulpsesc : out STD_LOGIC;
dl1_rxtriggeresc : out STD_LOGIC_VECTOR ( 3 downto 0 );
dl1_rxdataesc : out STD_LOGIC_VECTOR ( 7 downto 0 );
dl1_rxvalidesc : out STD_LOGIC;
dl1_errsoths : out STD_LOGIC;
dl1_errsotsynchs : out STD_LOGIC;
dl1_erresc : out STD_LOGIC;
dl1_errsyncesc : out STD_LOGIC;
dl1_errcontrol : out STD_LOGIC;
clk_rxp : in STD_LOGIC;
clk_rxn : in STD_LOGIC;
data_rxp : in STD_LOGIC_VECTOR ( 1 downto 0 );
data_rxn : in STD_LOGIC_VECTOR ( 1 downto 0 )
);
end bd_d10d_phy_0;
architecture stub of bd_d10d_phy_0 is
attribute syn_black_box : boolean;
attribute black_box_pad_pin : string;
attribute syn_black_box of stub : architecture is true;
attribute black_box_pad_pin of stub : architecture is "core_clk,core_rst,rxbyteclkhs,clkoutphy_out,pll_lock_out,system_rst_out,init_done,cl_rxclkactivehs,cl_stopstate,cl_enable,cl_rxulpsclknot,cl_ulpsactivenot,dl0_rxdatahs[7:0],dl0_rxvalidhs,dl0_rxactivehs,dl0_rxsynchs,dl0_forcerxmode,dl0_stopstate,dl0_enable,dl0_ulpsactivenot,dl0_rxclkesc,dl0_rxlpdtesc,dl0_rxulpsesc,dl0_rxtriggeresc[3:0],dl0_rxdataesc[7:0],dl0_rxvalidesc,dl0_errsoths,dl0_errsotsynchs,dl0_erresc,dl0_errsyncesc,dl0_errcontrol,dl1_rxdatahs[7:0],dl1_rxvalidhs,dl1_rxactivehs,dl1_rxsynchs,dl1_forcerxmode,dl1_stopstate,dl1_enable,dl1_ulpsactivenot,dl1_rxclkesc,dl1_rxlpdtesc,dl1_rxulpsesc,dl1_rxtriggeresc[3:0],dl1_rxdataesc[7:0],dl1_rxvalidesc,dl1_errsoths,dl1_errsotsynchs,dl1_erresc,dl1_errsyncesc,dl1_errcontrol,clk_rxp,clk_rxn,data_rxp[1:0],data_rxn[1:0]";
begin
end;
|
(************************************************************************)
(* v * The Coq Proof Assistant / The Coq Development Team *)
(* <O___,, * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2015 *)
(* \VV/ **************************************************************)
(* // * This file is distributed under the terms of the *)
(* * GNU Lesser General Public License Version 2.1 *)
(************************************************************************)
open Term
open Declarations
open Environ
(** {6 Cooking the constants. } *)
type recipe = { from : constant_body; info : Opaqueproof.cooking_info }
type inline = bool
type result =
constant_def * constant_type * projection_body option *
bool * constant_universes * inline
* Context.section_context option
val cook_constant : env -> recipe -> result
val cook_constr : Opaqueproof.cooking_info -> Term.constr -> Term.constr
(** {6 Utility functions used in module [Discharge]. } *)
val expmod_constr : Opaqueproof.work_list -> constr -> constr
|
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{homework}
\usepackage[margin=1in]{geometry}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage[many]{tcolorbox}
\usepackage{mathtools,amsthm,amssymb,amsfonts,bm}
\usepackage{thmtools,amsmath}
\usepackage{marginnote,sidenotes}
\usepackage{fancyhdr}
\usepackage{titlesec}
\usepackage{setspace}
\usepackage{enumitem}
\usepackage{graphicx, svg}
\usepackage[bookmarks=true]{hyperref}
\usepackage{bookmark}
%% Constants %%
% Making epsilons look like epsilons...
\renewcommand{\epsilon}{\varepsilon}
\newcommand{\eps}{\epsilon}
\newcommand{\A}{\forall}
\newcommand{\E}{\exists}
\newcommand{\N}{\mathbb{N}}
\newcommand{\Q}{\mathbb{Q}}
\newcommand{\R}{\mathbb{R}}
\newcommand{\Z}{\mathbb{Z}}
%% Frequently-used snippets %%
\newcommand{\abs}[1]{\left| #1 \right|}
\newcommand{\absle}[1]{\abs{#1} < \eps}
\newcommand{\absld}[1]{\abs{#1} < \delta}
\newcommand{\integral}[2]{\int_{#1}^{#2}}
\newcommand{\intab}{\integral{a}{b}}
\newcommand{\func}[2][f]{#1 \colon #2 \to \R}
\newcommand{\fabr}{\func[f]{[a,b]}}
\newcommand{\fog}{f \circ g}
\newcommand{\gof}{g \circ f}
\newcommand{\set}[1]{\left\{ #1 \right\}}
\newcommand{\partition}[1][P]{#1 = \set{x_0,x_1,\ldots,x_n}}
\newcommand{\deltaxi}{\Delta x_{i}}
\newcommand{\deltaxk}{\Delta x_{k}}
\newcommand{\lowersum}[1][f]{L(#1,P) = \sum^n_{i=1} m_i\deltaxi}
\newcommand{\uppersum}[1][f]{U(#1,P) = \sum^n_{i=1} M_i\deltaxi}
%% Convenience Wrappers %%
\newcommand{\hint}[1]{
\begin{tcolorbox}[title=Hint]
#1
\end{tcolorbox}
}
%% Document Setup %%
\makeatletter
\let\Title\@title
\let\Author\@author
\let\Date\@date
\makeatother
%% \usepackage{graphicx, svg} %%
\graphicspath{{images/}}
\svgpath{{images/}}
%% \usepackage{fancyhdr} %%
\pagestyle{fancy}
\setlength{\headheight}{25pt}
\lhead{\Title}
\rhead{\Author}
%% \usepackage{hyperref} %%
\hypersetup{
pdfauthor={\Author},
pdftitle={\Title},
linktoc={all}
}
%% \usepackage{titlesec} %%
\titleformat{\subsection} % command
[runin] % shape
{\normalfont\bfseries} % format
{\thesubsection} % label
{1em} % sep
{}
\titleformat{\subsubsection} % command
[runin] % shape
{\normalfont\bfseries} % format
{\thesubsubsection} % label
{1em} % sep
{}
%% Spacing/Formatting %%
\setstretch{1.3}
\newcommand{\resetpar}{
\setlength{\parskip}{0.5em}
}
%% tcolorbox Environments %%
\renewenvironment{proof}
{{\sffamily\bfseries Proof. }\resetpar}
{\qed}
\tcbset{
boxrule=0pt,
sharp corners,
enhanced jigsaw,
drop fuzzy shadow,
breakable
}
\newtcolorbox{answer}{
beforeafter skip balanced=25pt,
colback={White!90!CornflowerBlue},
borderline west={3pt}{0pt}{NavyBlue!80!white}
}
\tcolorboxenvironment{proof}{
beforeafter skip balanced=25pt,
colback={White!90!CornflowerBlue},
borderline west={3pt}{0pt}{NavyBlue!80!white}
}
%% Show code and output %%
%% (From: https://tex.stackexchange.com/questions/194854/how-to-show-latex-commands-in-text-mode/392818) %%
\newcommand{\gfcb}[1]{%
\fcolorbox{white}{gray!10!}{\quad\strut #1\quad}
} % gfcb := gray fcolorbox
\newcommand{\cop}[1]{%
\gfcb{\texttt{\detokenize{#1}}}
\ensuremath{\quad \longrightarrow \quad & #1}
} % cop := code output |
source activate TFG
python ../mrcnn/train_coco_fcn.py \
--epochs 100 \
--steps_in_epoch 32 \
--last_epoch 2697 \
--batch_size 1 \
--lr 0.0001 \
--val_steps 8 \
--fcn_arch fcn8 \
--fcn_layers all \
--mrcnn_logs_dir train_mrcnn_coco \
--fcn_logs_dir train_fcn8_coco_adagrad \
--mrcnn_model last \
--fcn_model last \
--opt adagrad \
--sysout file \
## --new_log_folder
source deactivate
## --lr 0.0001 \
|
/*
* Copyright 2016-2020 Fraunhofer AISEC
*
* 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.
*
* $$\ $$\ $$\ $$\
* $$ | $$ |\__| $$ |
* $$$$$$$\ $$ | $$$$$$\ $$\ $$\ $$$$$$$ |$$\ $$$$$$\ $$$$$$\ $$$$$$\
* $$ _____|$$ |$$ __$$\ $$ | $$ |$$ __$$ |$$ |\_$$ _| $$ __$$\ $$ __$$\
* $$ / $$ |$$ / $$ |$$ | $$ |$$ / $$ |$$ | $$ | $$ / $$ |$$ | \__|
* $$ | $$ |$$ | $$ |$$ | $$ |$$ | $$ |$$ | $$ |$$\ $$ | $$ |$$ |
* \$$$$$$\ $$ |\$$$$$ |\$$$$$ |\$$$$$$ |$$ | \$$$ |\$$$$$ |$$ |
* \_______|\__| \______/ \______/ \_______|\__| \____/ \______/ \__|
*
* This file is part of Clouditor Community Edition.
*/
syntax = "proto3";
package clouditor;
import "google/api/annotations.proto";
option go_package = "api/auth";
service Authentication {
rpc Login(LoginRequest) returns(LoginResponse) {
option(google.api.http) = {
post : "/v1/auth/login" body : "*" response_body : "*"
};
};
}
/* A clouditor user */
message User {
string username = 1;
string password = 2;
string email = 3;
string full_name = 4;
bool shadow = 5;
}
message LoginRequest {
string username = 1;
string password = 2;
}
message LoginResponse { string token = 1; }
|
onbreak {quit -f}
onerror {quit -f}
vsim -t 1ps -lib xil_defaultlib blk_mem_gen_1_opt
do {wave.do}
view wave
view structure
view signals
do {blk_mem_gen_1.udo}
run -all
quit -force
|
---
title: 'Analysis of qrels'
geometry: margin=.75in
output:
html_document:
df_print: paged
pdf_document: default
header-includes:
- \usepackage{graphicx}
- \usepackage{color}
graphics: yes
fontsize: 14pt
---
```{r}
qrels <- read.csv('qrels_correctness.txt', sep=' ', header=F)
colnames(qrels) <- c('TID','QID','DOCID','REL','COR','CRE')
qrels_raw <- read.csv('qrels_raw.txt', sep=' ', header=F)
colnames(qrels_raw) <- c('TID','QID','DOCID','REL','EFF','CRE')
teff <- read.csv('topics_efficacy', sep=' ', header=F)
colnames(teff) <- c('TID','TEFF')
qrels_raw <- merge(qrels_raw, teff)
head(qrels)
topics <- read.csv('../topics.csv')[,-2]
colnames(topics) <- c('TID','query')
```
```{r}
library('tidyverse')
qrels <- subset(qrels, REL > 0 & COR >=0 & CRE >= 0)
qrels$REL <- as.factor(qrels$REL)
qrels$COR <- as.factor(qrels$COR)
qrels$CRE <- as.factor(qrels$CRE)
head(qrels)
qrels_raw <- subset(qrels_raw, REL > 0 & EFF >0 & CRE >= 0)
qrels_raw$REL <- as.factor(qrels_raw$REL)
qrels_raw$EFF <- as.factor(qrels_raw$EFF)
qrels_raw$CRE <- as.factor(qrels_raw$CRE)
qrels_raw$TEFF <- as.factor(qrels_raw$TEFF)
head(qrels_raw)
```
```{r}
temp <- qrels_raw %>% group_by(TEFF,TID,CRE, EFF) %>% summarise(n=n()) %>% spread(EFF, n) %>% replace_na(list('1'=0,'2'=0,'3'=0))
guess <- function(dst){
guess <- sapply(1:nrow(dst), function(i) which(max(dst[i,]) == dst[i,]))
guess <- sapply(guess, function(g) g[1])
consen <- unlist(sapply(1:nrow(dst), function(i) dst[i,guess[i]]/sum(dst[i , ])))
out <- cbind(guess, round(consen,2))
colnames(out) <- c('Guess', 'Consensus')
rownames(out) <- NULL
out[,1] <- out[,1]
out
}
temp <- data.frame(temp,guess(temp[,4:6]))
temp$Guess <- temp$Guess -2
temp <- merge(temp,topics) %>% subset(CRE==1) %>% arrange(TEFF) %>% select(1,3:6,2,7:9)
write.csv(temp, 'guess.csv')
```
```{r}
library('gridExtra')
qrels$CRE <- factor(qrels$CRE, levels=c(0,1))
g1 <- ggplot(qrels) +
geom_bar(aes(x=stat(count), y = COR, fill = CRE ), alpha=.9, position = 'fill') +
labs(y = 'Correctness', x = 'Proportion of relevant documents') +
theme_linedraw() +
ggtitle('Credibility and Correctness of Relevant Documents') +
scale_y_discrete(labels= c('Incorrect','Correct'), name='') +
scale_fill_grey(name ='', labels=c('Noncredible','Credible'))
g2 <- ggplot(qrels) +
geom_bar(aes(x=stat(count), y = COR,fill = CRE ), alpha=.9) +
labs(y = 'Correctness', x = 'Count among relevant documents') +
theme_linedraw() +
scale_y_discrete(labels= c('Incorrect','Correct'), name='') +
scale_fill_grey(name ='', labels=c('Noncredible','Credible'))
grid.arrange(g1,g2,ncol=1)
png('~/Documents/UWaterlooThesis/adds/cred_cor.png')
grid.arrange(g1,g2,ncol=1)
dev.off()
```
```{r}
library('viridis')
ggplot(qrels_raw) +
geom_bar(aes(y=stat(count), x = EFF, fill = CRE ), alpha=.8) +
theme_minimal() +
labs(x='Document Efficacy Claim',title = '# of Documents w.r.t Document Efficacy Claim' ) +
scale_x_discrete(labels= c('Unhelpful','Inconclusive','Helpful')) +
scale_fill_grey(name ='', labels=c('Non-credible','Credible'))
```
```{r}
pcases <- group_by(qrels_raw, TEFF) %>% summarise(ncases = n(), pcases = n()/nrow(qrels_raw))
g <- ggplot(count(qrels_raw, TEFF), aes(y=n, x = "", fill = TEFF)) +
geom_bar(alpha=.6, width=1, stat = 'identity') +
theme_void() +
labs(y='',x='') +
scale_fill_grey(name='', labels= c('Unhelpful','Inconclusive','Helpful')) +
theme(axis.text.x = element_blank()) +
geom_text(aes(y=c(3500,2200,800), x=c(1,1.1,1.1),label=paste0(round(pcases$pcases*100,1), ' %')), size=5) +
coord_polar("y", start=0) +
# geom_text(aes(y=c(100,3500,2000)[rank(cumsum(n))], x=c(1,1.4,1)[rank(cumsum(n))],label = paste0(round(n/nrow(qrels)*100,1), '%')), size=5) +
labs(title = 'Ideal Distribution of Documents by Efficacy Claim', subtitle = 'Adjusted by # of Docs per topic') +
theme(text = element_text(size=16))
g
png('~/Documents/UWaterlooThesis/adds/evendist.png')
g
dev.off()
```
```{r}
g <- group_by(qrels_raw, EFF) %>% summarise(ncases = n(), pcases = n()/nrow(qrels_raw)) %>%
ggplot(aes(y=ncases, x = "", fill = EFF)) +
geom_bar(alpha=.6, width=1, stat = 'identity') +
theme_void() +
labs(y='',x='') +
scale_fill_grey(name='', labels= c('Unhelpful','Inconclusive','Helpful')) +
theme(axis.text.x = element_blank()) +
coord_polar("y", start=0) +
geom_text(aes(y=c(4000,3500,2000)[rank(cumsum(ncases))], x=c(1.6,1.4,1)[rank(cumsum(ncases))],label = paste0(round(pcases*100,1), '%')), size=5) +
labs(title='Distribution of Documents by Document Efficacy Claim', subtitle=' ') +
theme(text = element_text(size=16))
g
png('~/Documents/UWaterlooThesis/adds/peff_dist.png')
g
dev.off()
```
```{r}
library('treemapify')
crecor <- count(qrels, COR, CRE)
crecor$COR <- c('Incorrect','Correct')[as.numeric(crecor$COR)]
crecor$CRE <- c('Noncredible','Credible')[as.numeric(crecor$CRE)]
crecor$n[2] <- crecor$n[2] + 0.01
g <- ggplot(crecor, aes(area=n, fill = COR,subgroup=COR, label = paste0(CRE, '\n', round(n/nrow(qrels) * 100,1), ' %'))) +
geom_treemap(colour = 'white', size=2,start = 'topright') +
scale_fill_grey(end =.7,name ='') +
geom_treemap_subgroup_text(place = 'topleft', colour='white', start = 'topright') +
geom_treemap_text(place = "centre", grow = F, colour =
"white", fontface = "bold", size = 14,start = 'topright') +
ggtitle('Distribution of Documents by Correctness & Credibility') +
theme(text = element_text(size=16))
# geom_treemap_text(colour = "white", place = "topleft", reflow = T)
g
png('~/Documents/UWaterlooThesis/adds/treemap.png')
g
dev.off()
```
```{r}
qrels <- merge(qrels, teff)
corDist <- subset(qrels, CRE %in% c(0,1) & COR %in% c(0,1)) %>% group_by(CRE) %>% summarize(ndocs = n(), pdocs=paste0(round(sum(as.numeric(as.character(COR)))/n()*100,1),' %'),)
overall <- subset(qrels, CRE %in% c(0,1) & COR %in% c(0,1)) %>% summarise(ndocs = n(), pdocs = paste0(round(sum(as.numeric(as.character(COR)))/n()*100,1),' %'),)
corDist <- rbind(corDist, c('Collection', as.matrix(overall)))
cor.by.cred <- subset(qrels, CRE %in% c(0,1) & COR %in% c(0,1)) %>% group_by(CRE, TEFF) %>% summarize( pdocs=paste0(round(sum(as.numeric(as.character(COR)))/n()*100,1),' %'),) %>% spread(CRE,pdocs) %>% select(c('1','0'))
temp <- subset(qrels, CRE %in% c(0,1) & COR %in% c(0,1)) %>% group_by(TEFF) %>% summarize( pdocs=paste0(round(sum(as.numeric(as.character(COR)))/n()*100,1),' %'),)
corDist <- rbind(cbind(data.frame(temp), cor.by.cred), c(NA,rev(corDist$pdocs)))
xtable(corDist)
```
```{r}
corCounts <- group_by(qrels, TID, COR) %>% summarise(ncor = n()) %>% subset(COR==1)
tids <- corCounts %>% subset(ncor>0)
tids <- tids$TID
tids
corDist <- subset(qrels, CRE %in% c(0,1) & COR %in% c(0,1) & TID %in% tids) %>% group_by(CRE) %>% summarize(ndocs = n(), pdocs=paste0(round(sum(as.numeric(as.character(COR)))/n()*100,1),' %'),)
overall <- subset(qrels, CRE %in% c(0,1) & COR %in% c(0,1) & TID %in% tids) %>% summarise(ndocs = n(), pdocs = paste0(round(sum(as.numeric(as.character(COR)))/n()*100,1),' %'),)
corDist <- rbind(corDist, c('Collection', as.matrix(overall)))
cor.by.cred <- subset(qrels, CRE %in% c(0,1) & COR %in% c(0,1) & TID %in% tids) %>% group_by(CRE, TEFF) %>% summarize( pdocs=paste0(round(sum(as.numeric(as.character(COR)))/n()*100,1),' %'),) %>% spread(CRE,pdocs) %>% select(c('1','0'))
temp <- subset(qrels, CRE %in% c(0,1) & COR %in% c(0,1) & TID %in% tids) %>% group_by(TEFF) %>% summarize( pdocs=paste0(round(sum(as.numeric(as.character(COR)))/n()*100,1),' %'),)
corDist <- rbind(cbind(data.frame(temp), cor.by.cred), c(NA,rev(corDist$pdocs)))
xtable(corDist)
```
```{r}
corCounts <- group_by(qrels, TID, COR) %>% summarise(ncor = n()) %>% subset(COR==1)
tids <- corCounts %>% subset(ncor>0)
tids <- tids$TID
tids
temp <- subset(qrels_raw, EFF %in% c(1,2,3) & CRE %in% c(0,1) & TID %in% tids) %>% group_by(CRE, TEFF, EFF) %>% summarise(ncases=n()) %>% spread(TEFF,ncases)
creds <- subset(temp,CRE==1)[,-1]
creds$Overall <- apply(creds[,-1],1,sum)
creds <- apply(creds[,-1],2, function(ser) c( paste0(round(ser/sum(ser)*100,1),'%'),sum(ser)))
colnames(creds) <- rownames(creds) <- c('Unhelpful','Inconclusive','Helpful','Overall')
ncreds <- subset(temp,CRE==0)[,-1]
ncreds$Overall <- apply(ncreds[,-1],1,sum)
ncreds <- apply(ncreds[,-1],2, function(ser) c( paste0(round(ser/sum(ser)*100,1),'%'),sum(ser)))
colnames(ncreds) <- rownames(ncreds) <- c('Unhelpful','Inconclusive','Helpful','Overall')
overall <- subset(qrels_raw, EFF %in% c(1,2,3) & CRE %in% c(0,1) & TID %in% tids) %>% group_by(TEFF, EFF) %>% summarise(ncases=n()) %>% spread(TEFF,ncases)
overall$Overall <- apply(overall[,-1],1,sum)
overall <- apply(overall[,-1],2, function(ser) c( paste0(round(ser/sum(ser)*100,1),'%'),sum(ser)))
colnames(overall) <- rownames(overall) <- c('Unhelpful','Inconclusive','Helpful','Overall')
```
## TREC EVAL
```{r}
cor <- readxl::read_excel('../overall_results.xlsx','cor')
cre <- readxl::read_excel('../overall_results.xlsx','cre')
rel <- readxl::read_excel('../overall_results.xlsx','rel')
all <- readxl::read_excel('../overall_results.xlsx','all')
cor.k <- readxl::read_excel('../overall_results.xlsx','cor_10fold')
cre.k <- readxl::read_excel('../overall_results.xlsx','cre_10fold')
rel.k <- readxl::read_excel('../overall_results.xlsx','rel_10fold')
all.k <- readxl::read_excel('../overall_results.xlsx','all_10fold')
```
```{r}
corCounts <- group_by(qrels, TID, TEFF, COR) %>% summarise(ncor = n()) %>% subset(COR==1)
tids <- corCounts %>% subset(ncor>=10)
tids <- tids$TID
tids
```
```{r}
library('xtable')
# imprMat <- imprs
# score <- map
put_stars <- function(pval) matrix(Reduce(paste0, lapply(c(.01,.05,.1), function(p) c(ifelse((pval <= p),'*','') ))), nrow(pval))
printer <- function(score, imprMat, pvals){
pvals <- put_stars(pvals)
imprMat[imprMat>0] <- paste0('+',imprMat[imprMat>0])
res <- sapply(1:ncol(score), function(i) paste0(round(score[,i],3), pvals[,i], ' (' ,imprMat[,i], '%)'))
res[nrow(res),] <- round(score[nrow(score),],3)
res <- cbind(paste0(c(rep('UWatMDS_',nrow(res)-1), 'UwaterMDS_'), rownames(score)), res)
colnames(res) <- c('Run', colnames(score))
rownames(res) <- c()
res
}
calc_pval <- function(dat) {apply(dat,2, function(ser) t.test(x = ser, y = dat$BM25, paired = T)$p.value)}
```
```{r}
map <- sapply(list(rel,cor,cre,all), function(d) d %>% subset(TID %in% tids & MEASURE == 'map') %>% select(-c(1:3)) %>% apply(2,mean))
colnames(map) <- c('Relevance','Correctness','Credibility','All')
map <- map[c(3,2,4:7,1),]
map
imprs <- round ( apply(map, 2, function(x) x[-length(x)] / x[length(x)] - 1) * 100, 2 )
```
```{r}
pvals <- sapply(list(rel,cor,cre,all), function(d) d %>% subset(TID %in% tids & MEASURE == 'map') %>% select(-c(1:3)) %>% calc_pval)
colnames(pvals) <- c('Relevance','Correctness','Credibility','All')
pvals <- round(pvals[c(3,2,4:7,1),],3)
pvals
# sink('~/Documents/UWaterlooThesis/clean_topics_map.tex')
print(xtable(printer(map, imprs, pvals)), include.rownames=F)
# sink()
```
```{r}
ndcg <- sapply(list(rel,cor,cre,all), function(d) d %>% subset(TID %in% tids & MEASURE == 'ndcg_cut_10') %>% select(-c(1:3)) %>% apply(2,mean))
colnames(ndcg) <- c('Relevance','Correctness','Credibility','All')
ndcg <- ndcg[c(3,2,4:7,1),]
ndcg
imprs <- round ( apply(ndcg, 2, function(x) x[-length(x)] / x[length(x)] - 1) * 100, 2 )
```
```{r}
pvals <- sapply(list(rel,cor,cre,all), function(d) d %>% subset(TID %in% tids & MEASURE == 'ndcg_cut_10') %>% select(-c(1:3)) %>% calc_pval)
colnames(pvals) <- c('Relevance','Correctness','Credibility','All')
pvals <- round(pvals[c(3,2,4:7,1),],3)
pvals
# sink('~/Documents/UWaterlooThesis/clean_topics_ndcg.tex')
print(xtable(printer(ndcg, imprs, pvals)), include.rownames=F)
# sink()
```
## Validation Results
```{r}
library('xtable')
# imprMat <- imprs
# score <- map
put_stars <- function(pval) matrix(Reduce(paste0, lapply(c(.01,.05,.1), function(p) c(ifelse((pval <= p),'*','') ))), nrow(pval))
printer <- function(score, imprMat, pvals){
pvals <- put_stars(pvals)
imprMat[imprMat>0] <- paste0('+',imprMat[imprMat>0])
res <- sapply(1:ncol(score), function(i) paste0(round(score[,i],3), pvals[,i], ' (' ,imprMat[,i], '%)'))
res[nrow(res),] <- round(score[nrow(score),],3)
res <- cbind(paste0(c(rep('UWatMDS_',nrow(res)-1), 'UwaterMDS_'), rownames(score)), res)
colnames(res) <- c('Run', colnames(score))
rownames(res) <- c()
res
}
calc_pval <- function(dat) {apply(dat,2, function(ser) t.test(x = ser, y = dat$bm25, paired = T)$p.value)}
```
```{r}
map.k <- sapply(list(rel.k,cor.k,cre.k,all.k), function(d) d %>% subset(TID %in% tids & MEASURE == 'map') %>% select(-c(1:2)) %>% apply(2,mean))
colnames(map.k) <- c('Relevance','Correctness','Credibility','All')
map.k <- map.k[c(2,4:7,3,1),]
map.k
imprs <- round ( apply(map.k, 2, function(x) x[-length(x)] / x[length(x)] - 1) * 100, 2 )
```
```{r}
pvals <- sapply(list(rel.k,cor.k,cre.k,all.k), function(d) d %>% subset(TID %in% tids & MEASURE == 'map') %>% select(-c(1:2)) %>% calc_pval)
colnames(pvals) <- c('Relevance','Correctness','Credibility','All')
pvals <- round(pvals[c(2,4:7,3,1),],2)
pvals
sink('~/Documents/UWaterlooThesis/clean_topics_map_kfold.tex')
print(xtable(printer(map.k, imprs, pvals)), include.rownames=F)
sink()
```
```{r}
ndcg.k <- sapply(list(rel.k,cor.k,cre.k,all.k), function(d) d %>% subset(TID %in% tids & MEASURE == 'ndcg_cut_10') %>% select(-c(1:2)) %>% apply(2,mean))
colnames(ndcg.k) <- c('Relevance','Correctness','Credibility','All')
ndcg.k <- ndcg.k[c(2,4:7,3,1),]
ndcg.k
imprs <- round ( apply(ndcg.k, 2, function(x) x[-length(x)] / x[length(x)] - 1) * 100, 2 )
```
```{r}
pvals <- sapply(list(rel.k,cor.k,cre.k,all.k), function(d) d %>% subset(TID %in% tids & MEASURE == 'ndcg_cut_10') %>% select(-c(1:2)) %>% calc_pval)
colnames(pvals) <- c('Relevance','Correctness','Credibility','All')
pvals <- round(pvals[c(2,4:7,3,1),],3)
pvals
# sink('~/Documents/UWaterlooThesis/clean_topics_ndcg_kfold.tex')
print(xtable(printer(ndcg.k, imprs, pvals)), include.rownames=F)
# sink()
```
## Analysis for 36 topics
```{r}
corCounts <- group_by(qrels, TID, COR, CRE) %>% summarise(ncor = n()) %>% subset(CRE==1 & COR==1)
tids <- corCounts %>% subset(ncor>=1)
tids <- tids$TID
tids
```
```{r}
library('xtable')
# imprMat <- imprs
# score <- map
put_stars <- function(pval) matrix(Reduce(paste0, lapply(c(.01,.05,.1), function(p) c(ifelse((pval <= p),'*','') ))), nrow(pval))
printer <- function(score, imprMat, pvals){
pvals <- put_stars(pvals)
imprMat[imprMat>0] <- paste0('+',imprMat[imprMat>0])
res <- sapply(1:ncol(score), function(i) paste0(round(score[,i],3), pvals[,i], ' (' ,imprMat[,i], '%)'))
res[nrow(res),] <- round(score[nrow(score),],3)
res <- cbind(paste0(c(rep('UWatMDS_',nrow(res)-1), 'UwaterMDS_'), rownames(score)), res)
colnames(res) <- c('Run', colnames(score))
rownames(res) <- c()
res
}
calc_pval <- function(dat) {apply(dat,2, function(ser) t.test(x = ser, y = dat$BM25, paired = T)$p.value)}
```
```{r}
ndcg <- sapply(list(rel,cor,cre,all), function(d) d %>% subset(TID %in% tids & MEASURE == 'ndcg_cut_10') %>% select(-c(1:3)) %>% apply(2,mean))
colnames(ndcg) <- c('Relevance','Correctness','Credibility','All')
ndcg <- ndcg[c(3,2,4:7,1),]
ndcg
imprs <- round ( apply(ndcg, 2, function(x) x[-length(x)] / x[length(x)] - 1) * 100, 2 )
```
```{r}
pvals <- sapply(list(rel,cor,cre,all), function(d) d %>% subset(TID %in% tids & MEASURE == 'ndcg_cut_10') %>% select(-c(1:3)) %>% calc_pval)
colnames(pvals) <- c('Relevance','Correctness','Credibility','All')
pvals <- round(pvals[c(3,2,4:7,1),],3)
pvals
# sink('~/Documents/UWaterlooThesis/clean_topics_ndcg.tex')
print(xtable(printer(ndcg, imprs, pvals)), include.rownames=F)
# sink()
```
## Validation Results
```{r}
library('xtable')
# imprMat <- imprs
# score <- map
put_stars <- function(pval) matrix(Reduce(paste0, lapply(c(.01,.05,.1), function(p) c(ifelse((pval <= p),'*','') ))), nrow(pval))
printer <- function(score, imprMat, pvals){
pvals <- put_stars(pvals)
imprMat[imprMat>0] <- paste0('+',imprMat[imprMat>0])
res <- sapply(1:ncol(score), function(i) paste0(round(score[,i],3), pvals[,i], ' (' ,imprMat[,i], '%)'))
res[nrow(res),] <- round(score[nrow(score),],3)
res <- cbind(paste0(c(rep('UWatMDS_',nrow(res)-1), 'UwaterMDS_'), rownames(score)), res)
colnames(res) <- c('Run', colnames(score))
rownames(res) <- c()
res
}
calc_pval <- function(dat) {apply(dat,2, function(ser) t.test(x = ser, y = dat$bm25, paired = T)$p.value)}
```
```{r}
ndcg.k <- sapply(list(rel.k,cor.k,cre.k,all.k), function(d) d %>% subset(TID %in% tids & MEASURE == 'ndcg_cut_10') %>% select(-c(1:2)) %>% apply(2,mean))
colnames(ndcg.k) <- c('Relevance','Correctness','Credibility','All')
ndcg.k <- ndcg.k[c(2,4:7,3,1),]
ndcg.k
imprs <- round ( apply(ndcg.k, 2, function(x) x[-length(x)] / x[length(x)] - 1) * 100, 2 )
```
```{r}
pvals <- sapply(list(rel.k,cor.k,cre.k,all.k), function(d) d %>% subset(TID %in% tids & MEASURE == 'ndcg_cut_10') %>% select(-c(1:2)) %>% calc_pval)
colnames(pvals) <- c('Relevance','Correctness','Credibility','All')
pvals <- round(pvals[c(2,4:7,3,1),],3)
pvals
# sink('~/Documents/UWaterlooThesis/clean_topics_ndcg_kfold.tex')
print(xtable(printer(ndcg.k, imprs, pvals)), include.rownames=F)
# sink()
```
# Analysis for All Topics
```{r}
library('xtable')
# imprMat <- imprs
# score <- map
put_stars <- function(pval) matrix(Reduce(paste0, lapply(c(.01,.05,.1), function(p) c(ifelse((pval < p),'*','') ))), nrow(pval))
printer <- function(score, imprMat, pvals){
pvals <- put_stars(pvals)
imprMat[imprMat>0] <- paste0('+',imprMat[imprMat>0])
res <- sapply(1:ncol(score), function(i) paste0(round(score[,i],3), pvals[,i], ' (' ,imprMat[,i], '%)'))
res[nrow(res),] <- round(score[nrow(score),],3)
res <- cbind(paste0(c(rep('UWatMDS_',nrow(res)-1), 'UwaterMDS_'), rownames(score)), res)
colnames(res) <- c('Run', colnames(score))
rownames(res) <- c()
res
}
calc_pval <- function(dat) {apply(dat,2, function(ser) t.test(x = ser, y = dat$BM25, paired = T)$p.value)}
```
```{r}
map <- sapply(list(rel,cor,cre,all), function(d) d %>% subset(MEASURE == 'map') %>% select(-c(1:3)) %>% apply(2,mean))
colnames(map) <- c('Relevance','Correctness','Credibility','All')
map <- map[c(3,2,4:7,1),]
map
imprs <- round ( apply(map, 2, function(x) x[-length(x)] / x[length(x)] - 1) * 100, 2 )
```
```{r}
pvals <- sapply(list(rel,cor,cre,all), function(d) d %>% subset(MEASURE == 'map') %>% select(-c(1:3)) %>% calc_pval)
colnames(pvals) <- c('Relevance','Correctness','Credibility','All')
pvals <- pvals[c(3,2,4:7,1),]
pvals
# sink('~/Documents/UWaterlooThesis/clean_topics_map.tex')
print(xtable(printer(map, imprs, pvals)), include.rownames=F)
# sink()
```
```{r}
ndcg <- sapply(list(rel,cor,cre,all), function(d) d %>% subset(MEASURE == 'ndcg_cut_10') %>% select(-c(1:3)) %>% apply(2,mean))
colnames(ndcg) <- c('Relevance','Correctness','Credibility','All')
ndcg <- ndcg[c(3,2,4:7,1),]
ndcg
imprs <- round ( apply(ndcg, 2, function(x) x[-length(x)] / x[length(x)] - 1) * 100, 2 )
```
```{r}
pvals <- sapply(list(rel,cor,cre,all), function(d) d %>% subset(MEASURE == 'ndcg_cut_10') %>% select(-c(1:3)) %>% calc_pval)
colnames(pvals) <- c('Relevance','Correctness','Credibility','All')
pvals <- pvals[c(3,2,4:7,1),]
pvals
# sink('~/Documents/UWaterlooThesis/clean_topics_ndcg.tex')
print(xtable(printer(ndcg, imprs, pvals)), include.rownames=F)
# sink()
```
## Validation Results
```{r}
library('xtable')
# imprMat <- imprs
# score <- map
put_stars <- function(pval) matrix(Reduce(paste0, lapply(c(.01,.05,.1), function(p) c(ifelse((pval <= p),'*','') ))), nrow(pval))
printer <- function(score, imprMat, pvals){
pvals <- put_stars(pvals)
imprMat[imprMat>0] <- paste0('+',imprMat[imprMat>0])
res <- sapply(1:ncol(score), function(i) paste0(round(score[,i],3), pvals[,i], ' (' ,imprMat[,i], '%)'))
res[nrow(res),] <- round(score[nrow(score),],3)
res <- cbind(paste0(c(rep('UWatMDS_',nrow(res)-1), 'UwaterMDS_'), rownames(score)), res)
colnames(res) <- c('Run', colnames(score))
rownames(res) <- c()
res
}
calc_pval <- function(dat) {apply(dat,2, function(ser) t.test(x = ser, y = dat$bm25, paired = T)$p.value)}
```
```{r}
map.k <- sapply(list(rel.k,cor.k,cre.k,all.k), function(d) d %>% subset(MEASURE == 'map') %>% select(-c(1:2)) %>% apply(2,mean))
colnames(map.k) <- c('Relevance','Correctness','Credibility','All')
map.k <- map.k[c(2,4:7,3,1),]
map.k
imprs <- round ( apply(map.k, 2, function(x) x[-length(x)] / x[length(x)] - 1) * 100, 2 )
```
```{r}
pvals <- sapply(list(rel.k,cor.k,cre.k,all.k), function(d) d %>% subset(MEASURE == 'map') %>% select(-c(1:2)) %>% calc_pval)
colnames(pvals) <- c('Relevance','Correctness','Credibility','All')
pvals <- pvals[c(2,4:7,3,1),]
pvals
# sink('~/Documents/UWaterlooThesis/clean_topics_map_kfold.tex')
print(xtable(printer(map.k, imprs, pvals)), include.rownames=F)
# sink()
```
```{r}
ndcg.k <- sapply(list(rel.k,cor.k,cre.k,all.k), function(d) d %>% subset(MEASURE == 'ndcg_cut_10') %>% select(-c(1:2)) %>% apply(2,mean))
colnames(ndcg.k) <- c('Relevance','Correctness','Credibility','All')
ndcg.k <- ndcg.k[c(2,4:7,3,1),]
ndcg.k
imprs <- round ( apply(ndcg.k, 2, function(x) x[-length(x)] / x[length(x)] - 1) * 100, 2 )
```
```{r}
pvals <- sapply(list(rel.k,cor.k,cre.k,all.k), function(d) d %>% subset(MEASURE == 'ndcg_cut_10') %>% select(-c(1:2)) %>% calc_pval)
colnames(pvals) <- c('Relevance','Correctness','Credibility','All')
pvals <- round(pvals[c(2,4:7,3,1),],3)
pvals
# sink('~/Documents/UWaterlooThesis/clean_topics_ndcg_kfold.tex')
print(xtable(printer(ndcg.k, imprs, pvals)), include.rownames=F)
# sink()
```
## Classifier Accuracy
```{r}
DIR <- '~/Documents/DecisionRUN/trec/scores/cred_scores/'
scores <- lapply(dir(DIR), function(d) read.csv(paste0(DIR, d))[,-1])
scores <- do.call(rbind,scores)
head(scores)
qrels <- merge(qrels,scores, all.x = T )
qrels <- na.omit(qrels)
dim(qrels)
qrels$CLASS <- apply(qrels[,c('NEG','NEU','POS')],1 , function(x) which(x==max(x)))
qrels <- qrels[qrels$CLASS!=2,]
dim(qrels)
qrels$CLASS <- ifelse(qrels$CLASS == 3,1,0)
table(qrels$CRE, qrels$CLASS)
```
```{r}
mean(qrels$CRE == qrels$CLASS)
```
## Kfold Accuracy
```{r}
DIR <- '/home/ludwig/Documents/Credibility/scores/'
scores <- lapply(dir(DIR), function(d) read.csv(paste0(DIR, d))[,-1])
scores <- do.call(rbind,scores)
head(scores)
qrels <- merge(qrels,scores, all.x = T )
dim(qrels)
qrels <- na.omit(qrels)
dim(qrels)
table(qrels$CRE, qrels$PREDS)
```
```{r}
mean(qrels$CRE == qrels$PREDS)
```
```{r}
tenf <- read.csv('/home/ludwig/Documents/Credibility/10fold_groups.txt')
colnames(tenf) <- c('GID','TID')
qrels %>% merge(tenf) %>% group_by(GID) %>% summarize(acc = mean(CRE==PREDS))
sd((qrels %>% merge(tenf) %>% group_by(GID) %>% summarize(acc = mean(CRE==PREDS)))$acc)
qrels %>% merge(tenf) %>% subset(GID==6)
```
|
๏ปฟ// Auto-Generated by FAKE; do not edit
namespace System
open System.Reflection
[<assembly: AssemblyTitleAttribute("FAKE - F# Make Running git commands")>]
[<assembly: AssemblyProductAttribute("FAKE - F# Make")>]
[<assembly: AssemblyVersionAttribute("5.0.0")>]
[<assembly: AssemblyInformationalVersionAttribute("5.0.0-beta025")>]
[<assembly: AssemblyFileVersionAttribute("5.0.0")>]
do ()
module internal AssemblyVersionInformation =
let [<Literal>] AssemblyTitle = "FAKE - F# Make Running git commands"
let [<Literal>] AssemblyProduct = "FAKE - F# Make"
let [<Literal>] AssemblyVersion = "5.0.0"
let [<Literal>] AssemblyInformationalVersion = "5.0.0-beta025"
let [<Literal>] AssemblyFileVersion = "5.0.0"
|
--
-- procedure Bi_Diagonalize
--
-- Transforms matrix A into bi-diagonal matrix B,
--
-- U' * A * V = B
--
-- The diagonal and superdiagonals of B are non-zero. All other elements
-- of B are zero.
--
-- U and V are orthogonal matrices - constructed from the products of 2 x 2
-- Givens rotation matrices. Here, U matrix has the same shape as A, and V
-- is a square matrix with the same number of columns a A. (V has the same
-- shape as A'*A = A_transpose * A.)
--
-- Can have more Rows than Columns, but not more Columns than Rows.
--
generic
type Real is digits <>;
type Col_Index is range <>;
type Row_Index is range <>;
-- Must have Col_Index'First = Row_Index'First. This is checked.
-- (Want the diagonal to be A(i, i).)
type A_Matrix is array(Row_Index, Col_Index) of Real;
type U_Matrix is array(Row_Index, Row_Index) of Real;
type V_Matrix is array(Col_Index, Col_Index) of Real;
package Bidiagonal is
function U_Identity return U_Matrix;
function V_Identity return V_Matrix;
-- Row_Index must contain Col_Index in its range:
pragma Assert (Row_Index (Col_Index'First) >= Row_Index'First);
pragma Assert (Row_Index (Col_Index'Last) <= Row_Index'Last);
-- A is the matrix to be transformed with a series of Givens rotations:
-- A = U * B * V'. U and V are orthogonal matrices.
--
-- The procedure only operates on square matrices, or matrices with more
-- rows than columns.
--
-- Procedure checks: pragma Assert (No_of_Rows >= No_of_Cols);
--
-- Initial_V_Matrix = Identity, unless you preprocessed A with an L*Q
-- transform, in which case Initial_V_Matrix = Q, and use L for argument A.
--
-- Starting_Row is set to Starting_Col:
procedure Bi_Diagonalize
(A : in out A_Matrix; -- A becomes the B in A = U * B * V'
V : out V_Matrix; -- Need to input Initial_V_Matrix below.
U : out U_Matrix; -- Initialized with Identity.
Initial_V_Matrix : in V_Matrix; -- Normally must use function V_Identity.
Initial_U_Matrix : in U_Matrix; -- Normally just use function U_Identity.
Starting_Col : in Col_Index := Col_Index'First;
Final_Col : in Col_Index := Col_Index'Last;
Final_Row : in Row_Index := Row_Index'Last;
Matrix_U_Desired : in Boolean := True;
Matrix_V_Desired : in Boolean := True);
procedure Zero_Shift_Bidiagonal_QR
(A : in out A_Matrix; -- A becomes the B in A = U * B * V'
V : in out V_Matrix; --
U : in out U_Matrix; -- Initialized with Identity
Starting_Col : in Col_Index := Col_Index'First;
Final_Col : in Col_Index := Col_Index'Last;
Final_Row : in Row_Index := Row_Index'Last;
Matrix_U_Desired : in Boolean := True;
Matrix_V_Desired : in Boolean := True);
end Bidiagonal;
|
<?xml version="1.0" encoding="ISO-8859-15"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="template.xslt"/>
<xsl:template name="page-title">404</xsl:template>
<xsl:template name="meta-description"></xsl:template>
</xsl:stylesheet>
|
with Interfaces;
package GESTE_Config is
type Color_Index is range 0 .. 2168;
subtype Output_Color is Interfaces.Unsigned_16;
Transparent : constant Output_Color := 0;
Tile_Size : constant := 16;
type Tile_Index is range 0 .. 151;
No_Tile : constant Tile_Index := 0;
end GESTE_Config;
|
<?php
namespace app\widgets\grid;
use app\models\contracts\LabeledModel;
use app\widgets\LabelModel;
use Closure;
class LabeledColumn extends DataColumn
{
public $format = 'raw';
/**
* @var null|Closure
*/
public $labeledModel = null;
/**
* @param LabeledModel $model
* @param mixed $key
* @param int $index
*
* @return string
* @throws \Exception
*/
public function getDataCellValue($model, $key, $index)
{
$value = parent::getDataCellValue($model, $key, $index);
$labeledModel = $this->labeledModel
? call_user_func($this->labeledModel, $model, $key, $index, $this)
: $model;
return LabelModel::widget([
'model' => $labeledModel,
'value' => $value,
]);
}
}
|
-- For help, bug reports, or feature suggestions, please visit https://github.com/samschloegel/qlab-scripts
-- Built for QLab 4. v211121-01
set userPatch to 1
tell application id "com.figure53.QLab.4" to tell front workspace
set theSelection to (selected as list)
set newCues to {}
repeat with eachCue in theSelection
set theQ to q number of eachCue
set selected to eachCue
make type "Start"
set newCue to last item of (selected as list)
set cue target of newCue to eachCue
set end of newCues to newCue
end repeat
if length of newCues is not 0 then
make type "Group"
set theGroup to last item of (selected as list)
repeat with eachCue in newCues
move cue id (uniqueID of eachCue) of parent of eachCue to end of theGroup
end repeat
end if
end tell |
package Control is
procedure Put_Line(S : String);
function Get_Line return String;
procedure Toggle_LedR;
procedure Toggle_LedL;
procedure Off_LedR;
procedure Off_LedL;
end Control;
|
local Spell = { }
Spell.LearnTime = 60
Spell.ApplyFireDelay = 0.4
Spell.Category = HpwRewrite.CategoryNames.Special
Spell.Description = [[
Recharges combine health
and armor stations.
]]
Spell.CanSelfCast = false
Spell.AccuracyDecreaseVal = 0
Spell.NodeOffset = Vector(191, -406, 0)
function Spell:OnFire(wand)
local ent = wand:HPWGetAimEntity(450)
local ef = EffectData()
ef:SetEntity(self.Owner)
local col = Color(255, 255, 255)
ef:SetStart(Vector(col.r, col.g, col.b))
ef:SetScale(0.23)
util.Effect("EffectHpwRewriteSparks", ef, true, true)
if IsValid(ent) then
if ent:GetClass() == "item_healthcharger" then
local new = ents.Create("item_healthcharger")
new:SetPos(ent:GetPos())
new:SetAngles(ent:GetAngles())
new:Spawn()
new:Activate()
new:EmitSound("items/suitchargeok1.wav")
undo.ReplaceEntity(ent, new)
cleanup.ReplaceEntity(ent, new)
ent:Remove()
elseif ent:GetClass() == "item_suitcharger" then
ent:Fire("Recharge")
end
end
end
HpwRewrite:AddSpell("Rechargio", Spell)
|
function global:deactivate ([switch]$NonDestructive) {
# Revert to original values
if (Test-Path function:_OLD_VIRTUAL_PROMPT) {
copy-item function:_OLD_VIRTUAL_PROMPT function:prompt
remove-item function:_OLD_VIRTUAL_PROMPT
}
if (Test-Path env:_OLD_VIRTUAL_PYTHONHOME) {
copy-item env:_OLD_VIRTUAL_PYTHONHOME env:PYTHONHOME
remove-item env:_OLD_VIRTUAL_PYTHONHOME
}
if (Test-Path env:_OLD_VIRTUAL_PATH) {
copy-item env:_OLD_VIRTUAL_PATH env:PATH
remove-item env:_OLD_VIRTUAL_PATH
}
if (Test-Path env:VIRTUAL_ENV) {
remove-item env:VIRTUAL_ENV
}
if (!$NonDestructive) {
# Self destruct!
remove-item function:deactivate
}
}
deactivate -nondestructive
$env:VIRTUAL_ENV="C:\Users\shudh\Desktop\Django-Twitter-Clone\env"
if (! $env:VIRTUAL_ENV_DISABLE_PROMPT) {
# Set the prompt to include the env name
# Make sure _OLD_VIRTUAL_PROMPT is global
function global:_OLD_VIRTUAL_PROMPT {""}
copy-item function:prompt function:_OLD_VIRTUAL_PROMPT
function global:prompt {
Write-Host -NoNewline -ForegroundColor Green '(env) '
_OLD_VIRTUAL_PROMPT
}
}
# Clear PYTHONHOME
if (Test-Path env:PYTHONHOME) {
copy-item env:PYTHONHOME env:_OLD_VIRTUAL_PYTHONHOME
remove-item env:PYTHONHOME
}
# Add the venv to the PATH
copy-item env:PATH env:_OLD_VIRTUAL_PATH
$env:PATH = "$env:VIRTUAL_ENV\Scripts;$env:PATH"
|
There was assertion error during parsing of this markdown file!
Some link [`name`](https://where.org/is/it=magrittr)-some text |
/* Generated by RuntimeBrowser
Image: /System/Library/PrivateFrameworks/GeoServices.framework/GeoServices
*/
@interface GEODataURLSessionTaskIdentifier : NSObject <NSCopying> {
unsigned long long _hash;
long long _sessionIdentity;
unsigned long long _taskIdentifier;
}
- (id)copyWithZone:(struct _NSZone { }*)arg1;
- (id)description;
- (unsigned long long)hash;
- (id)initWithSession:(id)arg1 task:(id)arg2;
- (bool)isEqual:(id)arg1;
@end
|
\begin{code}
module SampleVar
{-# DEPRECATED "SampleVar has moved to Control.Concurrent.SampleVar" #-}
(module Control.Concurrent.SampleVar) where
import Control.Concurrent.SampleVar
\end{code}
|
use std::time::Duration;
use futures::{channel::mpsc, SinkExt};
use tokio::{runtime::Runtime, time};
use zksync_config::ZkSyncConfig;
use zksync_core::eth_watch::{EthHttpClient, EthWatch, EthWatchRequest};
use zksync_eth_client::EthereumGateway;
fn main() {
let mut main_runtime = Runtime::new().expect("main runtime start");
let _sentry_guard = vlog::init();
vlog::info!("ETH watcher started");
let config = ZkSyncConfig::from_env();
let client = EthereumGateway::from_config(&config);
let (eth_req_sender, eth_req_receiver) = mpsc::channel(256);
let eth_client = EthHttpClient::new(client, config.contracts.contract_addr);
let watcher = EthWatch::new(eth_client, 0);
main_runtime.spawn(watcher.run(eth_req_receiver));
main_runtime.block_on(async move {
let mut timer = time::interval(Duration::from_secs(1));
loop {
timer.tick().await;
eth_req_sender
.clone()
.send(EthWatchRequest::PollETHNode)
.await
.expect("ETH watch receiver dropped");
}
});
}
|
"
I'm a font setting for Source Code Pro fonts.
"
Class {
#name : #SourceCodeFonts,
#superclass : #Object,
#category : #EmbeddedFreeType
}
{ #category : #accessing }
SourceCodeFonts class >> codeFontName [
^ 'Source Code Pro'
]
{ #category : #accessing }
SourceCodeFonts class >> defaultFontName [
^ 'Source Sans Pro'
]
{ #category : #accessing }
SourceCodeFonts class >> fontButton: aString size: size [
^ (Smalltalk ui theme
newButtonIn: World
for: self
getState: nil
action: #setSourceCodeFonts:
arguments: { size }
getEnabled: nil
getLabel: nil
help: 'Change font style to Source Code Pro' translated)
label: aString;
yourself
]
{ #category : #accessing }
SourceCodeFonts class >> fontName [
^ 'Source Code Pro'
]
{ #category : #settings }
SourceCodeFonts class >> fontSourceCodeRow [
| theme |
theme := Smalltalk ui theme.
^ theme newRowIn: World for: {
theme buttonLabelForText: 'Predefined styles: ' translated.
self fontButton: 'Small' size: self sizeSmall.
self fontButton: 'Medium' size: self sizeMedium.
self fontButton: 'Large' size: self sizeLarge.
self fontButton: 'Very Large' size: self sizeVeryLarge.
self fontButton: 'Huge' size: self sizeHuge }
]
{ #category : #'font registration' }
SourceCodeFonts class >> registerFonts: freeTypeFontManager [
{ SourceSansProRegular. SourceCodeProRegular } do: [ :each |
| font |
font := each new.
freeTypeFontManager
addFromFileContents: font fontContents
baseName: font originalFileName ]
]
{ #category : #settings }
SourceCodeFonts class >> setFontsToStyleNamed: aSymbol [
| pragma |
pragma := (Pragma allNamed: #styleName: in: SourceCodeFonts class) detect: [ :each | each arguments first = aSymbol ] ifNone: [ ^ self ].
self setSourceCodeFonts: (self perform: pragma method selector).
]
{ #category : #accessing }
SourceCodeFonts class >> setSourceCodeFonts: pointSize [
StandardFonts
setAllStandardFontsTo: (LogicalFont familyName: self defaultFontName pointSize: pointSize);
haloFont: (LogicalFont familyName: self defaultFontName pointSize: pointSize - 1);
balloonFont: (LogicalFont familyName: self defaultFontName pointSize: pointSize - 1);
windowTitleFont: (LogicalFont familyName: self defaultFontName pointSize: pointSize + 1);
listFont: (LogicalFont familyName: self defaultFontName pointSize: pointSize);
menuFont: (LogicalFont familyName: self defaultFontName pointSize: pointSize);
codeFont: (LogicalFont familyName: self fontName pointSize: pointSize)
]
{ #category : #accessing }
SourceCodeFonts class >> setSourceCodeFontsDefault [
self setSourceCodeFonts: self sizeSmall
]
{ #category : #settings }
SourceCodeFonts class >> settingsOn: aBuilder [
<systemsettings>
(aBuilder setting: #useSourceCode)
parent: #appearance;
order: 4;
target: self;
iconName: #smallConfigurationIcon;
label: 'Source Code Fonts';
description: 'Use Source Code Pro Fonts';
precondition: [ FT2Library current isAvailable not ];
dialog: [ self fontSourceCodeRow ]
]
{ #category : #accessing }
SourceCodeFonts class >> sizeHuge [
<styleName: #huge>
^ 22
]
{ #category : #accessing }
SourceCodeFonts class >> sizeLarge [
<styleName: #large>
^ 16
]
{ #category : #accessing }
SourceCodeFonts class >> sizeMedium [
<styleName: #medium>
^ 13
]
{ #category : #accessing }
SourceCodeFonts class >> sizeSmall [
<styleName: #small>
^ 10
]
{ #category : #accessing }
SourceCodeFonts class >> sizeSuperTiny [
<styleName: #superTiny>
^ 5
]
{ #category : #accessing }
SourceCodeFonts class >> sizeTiny [
<styleName: #tiny>
^ 8
]
{ #category : #accessing }
SourceCodeFonts class >> sizeVeryLarge [
<styleName: #veryLarge>
^ 18
]
{ #category : #accessing }
SourceCodeFonts class >> useSourceCode [
]
{ #category : #accessing }
SourceCodeFonts class >> useSourceCode: aBoolean [
]
{ #category : #notes }
SourceCodeFonts >> seeClassSide [
]
|
unit DW.Androidapi.JNI.Security;
{*******************************************************}
{ }
{ Kastri }
{ }
{ Delphi Worlds Cross-Platform Library }
{ }
{ Copyright 2020-2021 Dave Nottage under MIT license }
{ which is located in the root folder of this library }
{ }
{*******************************************************}
{$I DW.GlobalDefines.inc}
interface
uses
// Android
Androidapi.JNIBridge, Androidapi.JNI.JavaTypes, Androidapi.JNI.Java.Security;
type
JCipher = interface;
JExemptionMechanism = interface;
JKeyGenerator = interface;
JKeyGenParameterSpec_Builder = interface;
JKeyProperties = interface;
JMac = interface;
JSecretKey = interface;
JCipherClass = interface(JObjectClass)
['{F8374D1B-F939-4B8F-A356-FBD254F8ADA4}']
{class} function _GetDECRYPT_MODE: Integer; cdecl;
{class} function _GetENCRYPT_MODE: Integer; cdecl;
{class} function _GetPRIVATE_KEY: Integer; cdecl;
{class} function _GetPUBLIC_KEY: Integer; cdecl;
{class} function _GetSECRET_KEY: Integer; cdecl;
{class} function _GetUNWRAP_MODE: Integer; cdecl;
{class} function _GetWRAP_MODE: Integer; cdecl;
{class} function doFinal: TJavaArray<Byte>; cdecl; overload;
{class} function doFinal(output: TJavaArray<Byte>; outputOffset: Integer): Integer; cdecl; overload;
{class} function doFinal(input: TJavaArray<Byte>; inputOffset: Integer; inputLen: Integer; output: TJavaArray<Byte>;
outputOffset: Integer): Integer; cdecl; overload;
{class} function doFinal(input: JByteBuffer; output: JByteBuffer): Integer; cdecl; overload;
{class} function getAlgorithm: JString; cdecl;
{class} function getIV: TJavaArray<Byte>; cdecl;
{class} function getInstance(transformation: JString): JCipher; cdecl; overload;
{class} function getInstance(transformation: JString; provider: JString): JCipher; cdecl; overload;
{class} function getInstance(transformation: JString; provider: JProvider): JCipher; cdecl; overload;
{class} function getMaxAllowedKeyLength(transformation: JString): Integer; cdecl;
{class} function getMaxAllowedParameterSpec(transformation: JString): JAlgorithmParameterSpec; cdecl;
{class} function getOutputSize(inputLen: Integer): Integer; cdecl;
{class} function getParameters: JAlgorithmParameters; cdecl;
{class} function getProvider: JProvider; cdecl;
{class} function update(input: TJavaArray<Byte>): TJavaArray<Byte>; cdecl; overload;
{class} function update(input: TJavaArray<Byte>; inputOffset: Integer; inputLen: Integer): TJavaArray<Byte>; cdecl; overload;
{class} function update(input: TJavaArray<Byte>; inputOffset: Integer; inputLen: Integer; output: TJavaArray<Byte>): Integer; cdecl; overload;
{class} procedure updateAAD(input: TJavaArray<Byte>; inputOffset: Integer; inputLen: Integer); cdecl; overload;
{class} procedure updateAAD(input: JByteBuffer); cdecl; overload;
{class} function wrap(key: JKey): TJavaArray<Byte>; cdecl;
{class} property DECRYPT_MODE: Integer read _GetDECRYPT_MODE;
{class} property ENCRYPT_MODE: Integer read _GetENCRYPT_MODE;
{class} property PRIVATE_KEY: Integer read _GetPRIVATE_KEY;
{class} property PUBLIC_KEY: Integer read _GetPUBLIC_KEY;
{class} property SECRET_KEY: Integer read _GetSECRET_KEY;
{class} property UNWRAP_MODE: Integer read _GetUNWRAP_MODE;
{class} property WRAP_MODE: Integer read _GetWRAP_MODE;
end;
[JavaSignature('javax/crypto/Cipher')]
JCipher = interface(JObject)
['{AA09CFF6-B6F5-4D15-8596-69EE0434C739}']
function doFinal(input: TJavaArray<Byte>): TJavaArray<Byte>; cdecl; overload;
function doFinal(input: TJavaArray<Byte>; inputOffset: Integer; inputLen: Integer): TJavaArray<Byte>; cdecl; overload;
function doFinal(input: TJavaArray<Byte>; inputOffset: Integer; inputLen: Integer; output: TJavaArray<Byte>): Integer; cdecl; overload;
function getBlockSize: Integer; cdecl;
function getExemptionMechanism: JExemptionMechanism; cdecl;
procedure init(opmode: Integer; key: JKey); cdecl; overload;
procedure init(opmode: Integer; key: JKey; random: JSecureRandom); cdecl; overload;
procedure init(opmode: Integer; key: JKey; params: JAlgorithmParameterSpec); cdecl; overload;
procedure init(opmode: Integer; certificate: JCertificate); cdecl; overload;
procedure init(opmode: Integer; certificate: JCertificate; random: JSecureRandom); cdecl; overload;
function unwrap(wrappedKey: TJavaArray<Byte>; wrappedKeyAlgorithm: JString; wrappedKeyType: Integer): JKey; cdecl;
function update(input: TJavaArray<Byte>; inputOffset: Integer; inputLen: Integer; output: TJavaArray<Byte>;
outputOffset: Integer): Integer; cdecl; overload;
function update(input: JByteBuffer; output: JByteBuffer): Integer; cdecl; overload;
procedure updateAAD(input: TJavaArray<Byte>); cdecl; overload;
end;
TJCipher = class(TJavaGenericImport<JCipherClass, JCipher>) end;
JExemptionMechanismClass = interface(JObjectClass)
['{1B017172-84F9-4932-9D7A-49448CFB562F}']
{class} function genExemptionBlob(output: TJavaArray<Byte>): Integer; cdecl; overload;
{class} function genExemptionBlob(output: TJavaArray<Byte>; outputOffset: Integer): Integer; cdecl; overload;
{class} function getInstance(algorithm: JString): JExemptionMechanism; cdecl; overload;
{class} function getInstance(algorithm: JString; provider: JString): JExemptionMechanism; cdecl; overload;
{class} function getInstance(algorithm: JString; provider: JProvider): JExemptionMechanism; cdecl; overload;
{class} function getOutputSize(inputLen: Integer): Integer; cdecl;
{class} function getProvider: JProvider; cdecl;
end;
[JavaSignature('javax/crypto/ExemptionMechanism')]
JExemptionMechanism = interface(JObject)
['{16F7DF15-7CBA-4E4C-9003-51D68D12543E}']
function genExemptionBlob: TJavaArray<Byte>; cdecl; overload;
function getName: JString; cdecl;
procedure init(key: JKey; param: JAlgorithmParameters); cdecl; overload;
procedure init(key: JKey; param: JAlgorithmParameterSpec); cdecl; overload;
function isCryptoAllowed(key: JKey): Boolean; cdecl;
end;
TJExemptionMechanism = class(TJavaGenericImport<JExemptionMechanismClass, JExemptionMechanism>) end;
JKeyGeneratorClass = interface(JObjectClass)
['{36A39592-1D46-4092-993A-EFD454F1C1C7}']
{class} function getInstance(algorithm: JString): JKeyGenerator; cdecl; overload;
{class} function getInstance(algorithm: JString; provider: JString): JKeyGenerator; cdecl; overload;
{class} function getInstance(algorithm: JString; provider: JProvider): JKeyGenerator; cdecl; overload;
{class} function getProvider: JProvider; cdecl;
end;
[JavaSignature('javax/crypto/KeyGenerator')]
JKeyGenerator = interface(JObject)
['{1E62C8C9-ECA3-4F67-BD1F-8DD9CAECD2D6}']
function generateKey: JSecretKey; cdecl;
function getAlgorithm: JString; cdecl;
procedure init(params: JAlgorithmParameterSpec); cdecl; overload;
procedure init(params: JAlgorithmParameterSpec; random: JSecureRandom); cdecl; overload;
end;
TJKeyGenerator = class(TJavaGenericImport<JKeyGeneratorClass, JKeyGenerator>) end;
JKeyGenParameterSpecClass = interface(JAlgorithmParameterSpecClass)
['{31DF2C6A-50DC-4124-B934-7D3ABFD3C29E}']
end;
[JavaSignature('android/security/keystore/KeyGenParameterSpec')]
JKeyGenParameterSpec = interface(JAlgorithmParameterSpec)
['{5CC805D8-2687-4398-BD4D-D1909A1203F0}']
function getAlgorithmParameterSpec: JAlgorithmParameterSpec; cdecl;
function getAttestationChallenge: TJavaArray<Byte>; cdecl;
function getBlockModes: TJavaObjectArray<JString>; cdecl;
function getCertificateNotAfter: JDate; cdecl;
function getCertificateNotBefore: JDate; cdecl;
function getCertificateSerialNumber: JBigInteger; cdecl;
function getCertificateSubject: JX500Principal; cdecl;
function getDigests: TJavaObjectArray<JString>; cdecl;
function getEncryptionPaddings: TJavaObjectArray<JString>; cdecl;
function getKeySize: Integer; cdecl;
function getKeyValidityForConsumptionEnd: JDate; cdecl;
function getKeyValidityForOriginationEnd: JDate; cdecl;
function getKeyValidityStart: JDate; cdecl;
function getKeystoreAlias: JString; cdecl;
function getPurposes: Integer; cdecl;
function getSignaturePaddings: TJavaObjectArray<JString>; cdecl;
function getUserAuthenticationValidityDurationSeconds: Integer; cdecl;
function isDigestsSpecified: boolean; cdecl;
function isInvalidatedByBiometricEnrollment: boolean; cdecl;
function isRandomizedEncryptionRequired: boolean; cdecl;
function isStrongBoxBacked: boolean; cdecl;
function isUnlockedDeviceRequired: boolean; cdecl;
function isUserAuthenticationRequired: boolean; cdecl;
function isUserAuthenticationValidWhileOnBody: boolean; cdecl;
function isUserConfirmationRequired: boolean; cdecl;
function isUserPresenceRequired: boolean; cdecl;
end;
TJKeyGenParameterSpec = class(TJavaGenericImport<JKeyGenParameterSpecClass, JKeyGenParameterSpec>)
end;
JKeyGenParameterSpec_BuilderClass = interface(JObjectClass)
['{2FE0B6DC-E4E8-4AF1-B920-8AD15E2C1EF6}']
function init(keystoreAlias: JString; purposes: Integer): JKeyGenParameterSpec_Builder; cdecl;
end;
[JavaSignature('android/security/keystore/KeyGenParameterSpec$Builder')]
JKeyGenParameterSpec_Builder = interface(JObject)
['{5E75A8C8-D4C0-42B3-94B1-C372EAD135E7}']
function build: JKeyGenParameterSpec; cdecl;
function setAlgorithmParameterSpec(spec: JAlgorithmParameterSpec): JKeyGenParameterSpec_Builder; cdecl;
function setAttestationChallenge(attestationChallenge: TJavaArray<Byte>): JKeyGenParameterSpec_Builder; cdecl;
function setBlockModes(blockModes: TJavaObjectArray<JString>): JKeyGenParameterSpec_Builder; cdecl;
function setCertificateNotAfter(date: JDate): JKeyGenParameterSpec_Builder; cdecl;
function setCertificateNotBefore(date: JDate): JKeyGenParameterSpec_Builder; cdecl;
function setCertificateSerialNumber(serialNumber: JBigInteger): JKeyGenParameterSpec_Builder; cdecl;
function setCertificateSubject(subject: JX500Principal): JKeyGenParameterSpec_Builder; cdecl;
function setDigests(digests: TJavaObjectArray<JString>): JKeyGenParameterSpec_Builder; cdecl;
function setEncryptionPaddings(paddings: TJavaObjectArray<JString>): JKeyGenParameterSpec_Builder; cdecl;
function setInvalidatedByBiometricEnrollment(invalidateKey: boolean): JKeyGenParameterSpec_Builder; cdecl;
function setIsStrongBoxBacked(isStrongBoxBacked: boolean): JKeyGenParameterSpec_Builder; cdecl;
function setKeySize(keySize: Integer): JKeyGenParameterSpec_Builder; cdecl;
function setKeyValidityEnd(endDate: JDate): JKeyGenParameterSpec_Builder; cdecl;
function setKeyValidityForConsumptionEnd(endDate: JDate): JKeyGenParameterSpec_Builder; cdecl;
function setKeyValidityForOriginationEnd(endDate: JDate): JKeyGenParameterSpec_Builder; cdecl;
function setKeyValidityStart(startDate: JDate): JKeyGenParameterSpec_Builder; cdecl;
function setRandomizedEncryptionRequired(required: boolean): JKeyGenParameterSpec_Builder; cdecl;
function setSignaturePaddings(paddings: TJavaObjectArray<JString>): JKeyGenParameterSpec_Builder; cdecl;
function setUnlockedDeviceRequired(unlockedDeviceRequired: boolean): JKeyGenParameterSpec_Builder; cdecl;
function setUserAuthenticationRequired(required: boolean): JKeyGenParameterSpec_Builder; cdecl;
function setUserAuthenticationValidWhileOnBody(remainsValid: boolean): JKeyGenParameterSpec_Builder; cdecl;
function setUserAuthenticationValidityDurationSeconds(seconds: Integer): JKeyGenParameterSpec_Builder; cdecl;
function setUserConfirmationRequired(required: boolean): JKeyGenParameterSpec_Builder; cdecl;
function setUserPresenceRequired(required: boolean): JKeyGenParameterSpec_Builder; cdecl;
end;
TJKeyGenParameterSpec_Builder = class(TJavaGenericImport<JKeyGenParameterSpec_BuilderClass, JKeyGenParameterSpec_Builder>)
end;
JKeyPropertiesClass = interface(JObjectClass)
['{A61ABB04-D7BE-4279-B133-B739BA7CD910}']
{class} function _GetBLOCK_MODE_CBC: JString; cdecl;
{class} function _GetBLOCK_MODE_CTR: JString; cdecl;
{class} function _GetBLOCK_MODE_ECB: JString; cdecl;
{class} function _GetBLOCK_MODE_GCM: JString; cdecl;
{class} function _GetDIGEST_MD5: JString; cdecl;
{class} function _GetDIGEST_NONE: JString; cdecl;
{class} function _GetDIGEST_SHA1: JString; cdecl;
{class} function _GetDIGEST_SHA224: JString; cdecl;
{class} function _GetDIGEST_SHA256: JString; cdecl;
{class} function _GetDIGEST_SHA384: JString; cdecl;
{class} function _GetDIGEST_SHA512: JString; cdecl;
{class} function _GetENCRYPTION_PADDING_NONE: JString; cdecl;
{class} function _GetENCRYPTION_PADDING_PKCS7: JString; cdecl;
{class} function _GetENCRYPTION_PADDING_RSA_OAEP: JString; cdecl;
{class} function _GetENCRYPTION_PADDING_RSA_PKCS1: JString; cdecl;
{class} function _GetKEY_ALGORITHM_AES: JString; cdecl;
{class} function _GetKEY_ALGORITHM_EC: JString; cdecl;
{class} function _GetKEY_ALGORITHM_HMAC_SHA1: JString; cdecl;
{class} function _GetKEY_ALGORITHM_HMAC_SHA224: JString; cdecl;
{class} function _GetKEY_ALGORITHM_HMAC_SHA256: JString; cdecl;
{class} function _GetKEY_ALGORITHM_HMAC_SHA384: JString; cdecl;
{class} function _GetKEY_ALGORITHM_HMAC_SHA512: JString; cdecl;
{class} function _GetKEY_ALGORITHM_RSA: JString; cdecl;
{class} function _GetORIGIN_GENERATED: Integer; cdecl;
{class} function _GetORIGIN_IMPORTED: Integer; cdecl;
{class} function _GetORIGIN_UNKNOWN: Integer; cdecl;
{class} function _GetPURPOSE_DECRYPT: Integer; cdecl;
{class} function _GetPURPOSE_ENCRYPT: Integer; cdecl;
{class} function _GetPURPOSE_SIGN: Integer; cdecl;
{class} function _GetPURPOSE_VERIFY: Integer; cdecl;
{class} function _GetSIGNATURE_PADDING_RSA_PKCS1: JString; cdecl;
{class} function _GetSIGNATURE_PADDING_RSA_PSS: JString; cdecl;
{class} property BLOCK_MODE_CBC: JString read _GetBLOCK_MODE_CBC;
{class} property BLOCK_MODE_CTR: JString read _GetBLOCK_MODE_CTR;
{class} property BLOCK_MODE_ECB: JString read _GetBLOCK_MODE_ECB;
{class} property BLOCK_MODE_GCM: JString read _GetBLOCK_MODE_GCM;
{class} property DIGEST_MD5: JString read _GetDIGEST_MD5;
{class} property DIGEST_NONE: JString read _GetDIGEST_NONE;
{class} property DIGEST_SHA1: JString read _GetDIGEST_SHA1;
{class} property DIGEST_SHA224: JString read _GetDIGEST_SHA224;
{class} property DIGEST_SHA256: JString read _GetDIGEST_SHA256;
{class} property DIGEST_SHA384: JString read _GetDIGEST_SHA384;
{class} property DIGEST_SHA512: JString read _GetDIGEST_SHA512;
{class} property ENCRYPTION_PADDING_NONE: JString read _GetENCRYPTION_PADDING_NONE;
{class} property ENCRYPTION_PADDING_PKCS7: JString read _GetENCRYPTION_PADDING_PKCS7;
{class} property ENCRYPTION_PADDING_RSA_OAEP: JString read _GetENCRYPTION_PADDING_RSA_OAEP;
{class} property ENCRYPTION_PADDING_RSA_PKCS1: JString read _GetENCRYPTION_PADDING_RSA_PKCS1;
{class} property KEY_ALGORITHM_AES: JString read _GetKEY_ALGORITHM_AES;
{class} property KEY_ALGORITHM_EC: JString read _GetKEY_ALGORITHM_EC;
{class} property KEY_ALGORITHM_HMAC_SHA1: JString read _GetKEY_ALGORITHM_HMAC_SHA1;
{class} property KEY_ALGORITHM_HMAC_SHA224: JString read _GetKEY_ALGORITHM_HMAC_SHA224;
{class} property KEY_ALGORITHM_HMAC_SHA256: JString read _GetKEY_ALGORITHM_HMAC_SHA256;
{class} property KEY_ALGORITHM_HMAC_SHA384: JString read _GetKEY_ALGORITHM_HMAC_SHA384;
{class} property KEY_ALGORITHM_HMAC_SHA512: JString read _GetKEY_ALGORITHM_HMAC_SHA512;
{class} property KEY_ALGORITHM_RSA: JString read _GetKEY_ALGORITHM_RSA;
{class} property ORIGIN_GENERATED: Integer read _GetORIGIN_GENERATED;
{class} property ORIGIN_IMPORTED: Integer read _GetORIGIN_IMPORTED;
{class} property ORIGIN_UNKNOWN: Integer read _GetORIGIN_UNKNOWN;
{class} property PURPOSE_DECRYPT: Integer read _GetPURPOSE_DECRYPT;
{class} property PURPOSE_ENCRYPT: Integer read _GetPURPOSE_ENCRYPT;
{class} property PURPOSE_SIGN: Integer read _GetPURPOSE_SIGN;
{class} property PURPOSE_VERIFY: Integer read _GetPURPOSE_VERIFY;
{class} property SIGNATURE_PADDING_RSA_PKCS1: JString read _GetSIGNATURE_PADDING_RSA_PKCS1;
{class} property SIGNATURE_PADDING_RSA_PSS: JString read _GetSIGNATURE_PADDING_RSA_PSS;
end;
[JavaSignature('android/security/keystore/KeyProperties')]
JKeyProperties = interface(JObject)
['{63F347AF-ED22-424F-866B-60B040CA5C35}']
end;
TJKeyProperties = class(TJavaGenericImport<JKeyPropertiesClass, JKeyProperties>) end;
JMacClass = interface(JObjectClass)
['{2B12D705-6AA8-4626-A061-7010A7CC4E55}']
{class} function getInstance(algorithm: JString): JMac; cdecl; overload;
{class} function getInstance(algorithm: JString; provider: JString): JMac; cdecl; overload;
{class} function getInstance(algorithm: JString; provider: JProvider): JMac; cdecl; overload;
end;
[JavaSignature('javax/crypto/Mac')]
JMac = interface(JObject)
['{8A1FC6BF-A5D4-4E63-B611-028E71B251CC}']
function clone: JObject; cdecl;
function doFinal: TJavaArray<Byte>; cdecl; overload;
procedure doFinal(output: TJavaArray<Byte>; outOffset: Integer); cdecl; overload;
function doFinal(input: TJavaArray<Byte>): TJavaArray<Byte>; cdecl; overload;
function getAlgorithm: JString; cdecl;
function getMacLength: Integer; cdecl;
function getProvider: JProvider; cdecl;
procedure init(key: JKey; params: JAlgorithmParameterSpec); cdecl; overload;
procedure init(key: JKey); cdecl; overload;
procedure reset; cdecl;
procedure update(input: Byte); cdecl; overload;
procedure update(input: TJavaArray<Byte>); cdecl; overload;
procedure update(input: TJavaArray<Byte>; offset: Integer; len: Integer); cdecl; overload;
procedure update(input: JByteBuffer); cdecl; overload;
end;
TJMac = class(TJavaGenericImport<JMacClass, JMac>) end;
JSecretKeyClass = interface(JKeyClass)
['{631CE56D-D41C-4899-A6BF-BEE8992932BF}']
{class} function _GetserialVersionUID: Int64; cdecl;
{class} //serialVersionUID is defined in parent interface
end;
[JavaSignature('javax/crypto/SecretKey')]
JSecretKey = interface(JKey)
['{1F7C647E-EF1C-42D5-86F5-BCECB950241A}']
end;
TJSecretKey = class(TJavaGenericImport<JSecretKeyClass, JSecretKey>) end;
implementation
end.
|
Imports Microsoft.VisualBasic
Imports System
Imports System.Windows
Imports System.Windows.Controls
Imports System.Windows.Data
Imports System.Windows.Documents
Imports System.Windows.Media
Imports System.Windows.Navigation
Imports System.Windows.Shapes
Imports System.Windows.Media.Animation 'Clocks and Timelines
Namespace Microsoft.Samples.PerFrameAnimations
''' <summary>
''' Interaction logic for Page1.xaml
''' </summary>
End Namespace |
pragma solidity >=0.5.0;
contract Test {
function test(address addr) public pure returns (uint) {
uint addrInt = uint(addr);
int x2 = int(addr);
int32 x3 = int32(addr);
uint32 x4 = uint32(addr);
// x4 = uint32(addrInt); // unhandled between different int types
address y = address(x2);
return addrInt;
}
} |
-- --------------------------------------------------------------- [ Types.idr ]
-- Module : Types.idr
-- Copyright : (c) Jan de Muijnck-Hughes
-- License : see LICENSE
-- --------------------------------------------------------------------- [ EOH ]
module Frigg.Types
import Sif.Types
import Sif.Pattern
import Readability
import Readability.Process.XML
public export
data PEvalResult : Type where
ResSif : EvalResult -> PEvalResult
ResRead : ReadResult -> PEvalResult
ResWTA : Float -> PEvalResult
Show PEvalResult where
show (ResSif res) = show res
show (ResRead res) = show res
show (ResWTA res) = show res
-- --------------------------------------------------------------------- [ EOF ]
|
#include "matrix_multiply_cuda.cuh"
#include <stdio.h>
#define BLOCK_SIZE 4
__global__ void matrixMulCUDA(int *C, int *A, int *B, int wA, int wB,
int block_size [[maybe_unused]]) {
// Block index
int bx = blockIdx.x;
int by = blockIdx.y;
// Thread index
int tx = threadIdx.x;
int ty = threadIdx.y;
// Index of the first sub-matrix of A processed by the block
int aBegin = wA * BLOCK_SIZE * by;
// Index of the last sub-matrix of A processed by the block
int aEnd = aBegin + wA - 1;
// Step size used to iterate through the sub-matrices of A
int aStep = BLOCK_SIZE;
// Index of the first sub-matrix of B processed by the block
int bBegin = BLOCK_SIZE * bx;
// Step size used to iterate through the sub-matrices of B
int bStep = BLOCK_SIZE * wB;
// Csub is used to store the element of the block sub-matrix
// that is computed by the thread
float Csub = 0;
// Loop over all the sub-matrices of A and B
// required to compute the block sub-matrix
for (int a = aBegin, b = bBegin; a <= aEnd; a += aStep, b += bStep) {
// Declaration of the shared memory array As used to
// store the sub-matrix of A
__shared__ int As[BLOCK_SIZE][BLOCK_SIZE];
// Declaration of the shared memory array Bs used to
// store the sub-matrix of B
__shared__ int Bs[BLOCK_SIZE][BLOCK_SIZE];
// Load the matrices from device memory
// to shared memory; each thread loads
// one element of each matrix
As[ty][tx] = A[a + wA * ty + tx];
Bs[ty][tx] = B[b + wB * ty + tx];
// Synchronize to make sure the matrices are loaded
__syncthreads();
// Multiply the two matrices together;
// each thread computes one element
// of the block sub-matrix
for (int k = 0; k < BLOCK_SIZE; ++k) {
Csub += As[ty][k] * Bs[k][tx];
}
// Synchronize to make sure that the preceding
// computation is done before loading two new
// sub-matrices of A and B in the next iteration
__syncthreads();
}
// Write the block sub-matrix to device memory;
// each thread writes one element
int c = wB * BLOCK_SIZE * by + BLOCK_SIZE * bx;
C[c + wB * ty + tx] = Csub;
}
|
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage-istanbul-reporter'),
require('@angular-devkit/build-angular/plugins/karma')
],
client: {
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
coverageIstanbulReporter: {
dir: require('path').join(__dirname, './coverage/angular-video'),
reports: ['html', 'lcovonly', 'text-summary'],
fixWebpackSourcePaths: true
},
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false,
restartOnFileChange: true
});
};
|
@charset "utf-8";
/* body */
body {
background: #f2f2f2;
}
footer {
margin-top: 40px;
}
/* navbar */
.navbar {
background-color: #fff;
}
.navbar-header img {
margin-top: 5px;
height: 40px;
}
/* cover */
.cover {
margin-top: -20px;
margin-bottom: 20px;
width: 100%;
height: 300px;
background: url("/images/cover-bg.jpg") center center no-repeat;
background-size: cover;
}
.cover .cover-inner {
height: 100%;
margin: auto;
display: table;
}
.cover .cover-inner .cover-contents {
display: table-cell;
vertical-align: middle;
text-align: center;
position: relative;
}
.cover .cover-inner .cover-contents h1 {
margin: 0 0 20px 0;
color: #fff;
font-weight: bold;
letter-spacing: 0.15em;
}
.cover .btn-success {
background-color: #ed486f;
border-color: #ed486f;
}
/* search */
.search {
margin-bottom: 20px;
}
/* item */
.item .panel-body {
height: 120px;
}
.item .panel-heading {
height: 250px;
}
.item .panel-heading img {
height: 100%;
max-width: 100%;
}
.item .buttons form {
display: inline-block;
margin: 0 5px;
}
p.item-title {
/* ๆใฎ่กๆฐใ2่กใซไฟใกใๆๅพใซ...ใ่ฟฝๅ ใใในใฟใคใซ */
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
}
/* users */
.user-profile .name {
margin-bottom: 20px;
}
.user-profile .name h1 {
text-shadow: 1px 1px 1px #fff;
font-weight: bold;
}
.user-profile .status ul {
margin: 0 auto 10px;
padding: 0;
display: table;
}
.user-profile .status ul li {
width: 120px;
padding: 5px 0;
border-right: 1px solid #ddd;
display: table-cell;
vertical-align: middle;
text-align: center;
color: #777;
}
.user-profile .status ul li:last-child {
border: none;
}
.user-profile .status ul li .status-label {
font-size: 12px;
}
.user-profile .status ul li .status-value {
font-size: 18px;
} |
# Create resource group
New-AzureRmResourceGroup -Name applicationGroup -Location westcentralus
# Get ID of managed application definition
$appid=(Get-AzureRmManagedApplicationDefinition -ResourceGroupName appDefinitionGroup -Name ManagedStorage).ManagedApplicationDefinitionId
# Create the managed application
New-AzureRmManagedApplication `
-Name storageApp `
-Location westcentralus `
-Kind ServiceCatalog `
-ResourceGroupName applicationGroup `
-ManagedApplicationDefinitionId $appid `
-ManagedResourceGroupName "InfrastructureGroup" `
-Parameter "{`"storageAccountNamePrefix`": {`"value`": `"demostorage`"}, `"storageAccountType`": {`"value`": `"Standard_LRS`"}}" |
\contentsline {chapter}{\numberline {1}Introduction}{1}{chapter.1}
\contentsline {section}{\numberline {1.1}Problem}{1}{section.1.1}
\contentsline {section}{\numberline {1.2}Solution}{1}{section.1.2}
\contentsline {section}{\numberline {1.3}Technologies used}{2}{section.1.3}
\contentsline {chapter}{\numberline {2}Network module}{4}{chapter.2}
\contentsline {section}{\numberline {2.1}SFML features}{4}{section.2.1}
\contentsline {section}{\numberline {2.2}AutoSyncGen packets}{5}{section.2.2}
\contentsline {subsection}{\numberline {2.2.1}Packet types}{5}{subsection.2.2.1}
\contentsline {subsubsection}{CtoS enumeration}{5}{section*.2}
\contentsline {subsubsection}{StoC enumeration}{5}{section*.3}
\contentsline {subsection}{\numberline {2.2.2}Packet handling}{6}{subsection.2.2.2}
\contentsline {section}{\numberline {2.3}SessionHost}{6}{section.2.3}
\contentsline {subsection}{\numberline {2.3.1}SessionServer}{9}{subsection.2.3.1}
\contentsline {subsubsection}{ClientHandler}{9}{section*.4}
\contentsline {subsubsection}{ClientHandlerManager}{9}{section*.5}
\contentsline {subsection}{\numberline {2.3.2}SessionClient}{11}{subsection.2.3.2}
\contentsline {chapter}{\numberline {3}Synchronization module}{12}{chapter.3}
\contentsline {section}{\numberline {3.1}SyncObj}{12}{section.3.1}
\contentsline {subsection}{\numberline {3.1.1}Fields}{13}{subsection.3.1.1}
\contentsline {subsubsection}{Field tuple}{13}{section*.6}
\contentsline {subsubsection}{Field flags}{13}{section*.7}
\contentsline {subsubsection}{FieldProxy}{13}{section*.8}
\contentsline {section}{\numberline {3.2}Snapshot}{14}{section.3.2}
\contentsline {subsection}{\numberline {3.2.1}SnapshotTypeData}{15}{subsection.3.2.1}
\contentsline {subsubsection}{`items` map}{15}{section*.9}
\contentsline {section}{\numberline {3.3}Diff}{15}{section.3.3}
\contentsline {subsection}{\numberline {3.3.1}DiffTypeData}{15}{subsection.3.3.1}
\contentsline {subsubsection}{`toCreate` map}{16}{section*.10}
\contentsline {subsubsection}{`toUpdate` map}{16}{section*.11}
\contentsline {subsubsection}{`toRemove` vector}{16}{section*.12}
\contentsline {section}{\numberline {3.4}LifetimeManager}{16}{section.3.4}
\contentsline {section}{\numberline {3.5}SyncManager}{17}{section.3.5}
\contentsline {subsection}{\numberline {3.5.1}Lifetime managers tuple}{17}{subsection.3.5.1}
\contentsline {subsection}{\numberline {3.5.2}Handle maps tuple}{17}{subsection.3.5.2}
\contentsline {subsection}{\numberline {3.5.3}Object management functions}{17}{subsection.3.5.3}
\contentsline {chapter}{\numberline {4}Obtaining the library}{21}{chapter.4}
\contentsline {chapter}{\numberline {5}Example application: synchronized chat}{22}{chapter.5}
\contentsline {section}{\numberline {5.1}Data structures}{22}{section.5.1}
\contentsline {subsection}{\numberline {5.1.1}Message}{22}{subsection.5.1.1}
\contentsline {section}{\numberline {5.2}Lifetime manager specialization}{22}{section.5.2}
\contentsline {section}{\numberline {5.3}Application packet types}{23}{section.5.3}
\contentsline {section}{\numberline {5.4}ConsoleSessionController}{24}{section.5.4}
\contentsline {subsection}{\numberline {5.4.1}Server role}{24}{subsection.5.4.1}
\contentsline {subsection}{\numberline {5.4.2}Client role}{25}{subsection.5.4.2}
\contentsline {chapter}{\numberline {6}Conclusion}{26}{chapter.6}
\contentsline {section}{\numberline {6.1}Learning experience}{26}{section.6.1}
\contentsline {section}{\numberline {6.2}Future}{27}{section.6.2}
\contentsline {section}{\numberline {6.3}References}{27}{section.6.3}
|
//SPDX-License-Identifier: MIT
pragma solidity >=0.8.0 <0.9.0;
contract WorkflowEngine {
// ToDo: Can add indexes on up to three of these fields
// event ItemCreated(uint256 id, string itemType, string team, string status, bool checkedOut, address createUser, uint256 createTimestamp);
event ItemCreated(
uint256 id,
address itemType,
string team,
string status,
bool checkedOut,
address createUser,
uint256 createTimestamp
);
// Still considering an ItemUpdated event vs a ItemCheckIn & ItemChekOut event.
// event ItemUpdated(uint256 id, string itemType, string team, string status, bool checkedOut, address createUser, uint256 createTimestamp);
event ItemUpdated(
uint256 id,
address itemType,
string team,
string status,
bool checkedOut,
address createUser,
uint256 createTimestamp
);
struct WorkItem {
uint256 id;
string itemType;
address itemTypeAddr;
string team;
string status;
bool checkedOut;
address checkedOutBy; // Good for Granularity, may not be needed
//uint activeStep; // FromE
address createUser;
address updateUser;
uint256 createTimestamp;
uint256 updateTimestamp;
}
// Should not be public, need to lock down access
WorkItem[] public workItems;
address admin;
mapping(address => string) public contractAddressToFlowName;
mapping(string => address) public flowNameToContractAddress;
// TODO: allow an address to be part of more than one team
mapping(address => string) public addressToTeam;
// TODO: teams
// mapping(string => address[]) public teamToAddresses;
mapping(address => string) public addressToTwitterId;
mapping(string => address) public twitterIdToAddress;
constructor() {
admin = msg.sender;
}
function register(address contractAddr, string memory flowName) public {
require(msg.sender == admin, "Only Admin Can Register a Contract.");
contractAddressToFlowName[contractAddr] = flowName;
flowNameToContractAddress[flowName] = contractAddr;
}
function createNewItem(
string memory flowName,
string memory team,
string memory status
) external returns (uint256) {
require(
flowNameToContractAddress[flowName] == msg.sender,
"Can only be called by Contract Owner."
);
WorkItem memory item;
item.id = workItems.length;
item.itemType = flowName;
item.itemTypeAddr = msg.sender;
item.team = team;
item.status = status;
item.checkedOut = false;
item.createUser = msg.sender;
item.createTimestamp = block.timestamp;
workItems.push(item);
emit ItemCreated(
item.id,
item.itemTypeAddr,
item.team,
item.status,
item.checkedOut,
item.createUser,
item.createTimestamp
);
return item.id;
}
function getItems() public view returns (WorkItem[] memory) {
return workItems;
}
function getItem(uint256 itemNum) public view returns (WorkItem memory) {
require(workItems.length > itemNum, "This workitem does not exist");
return workItems[itemNum];
}
function setItem(uint256 itemNum, WorkItem memory item) public {
require(workItems.length > itemNum, "This workitem does not exist");
workItems[itemNum] = item;
}
function checkOut(uint256 itemNum, address userAddr) public {
require(workItems.length > itemNum, "This workitem does not exist");
require(
msg.sender == workItems[itemNum].itemTypeAddr,
"This workitem is not owned by this flow."
);
require(
!workItems[itemNum].checkedOut,
"This workitem is already checked out"
);
workItems[itemNum].checkedOut = true;
workItems[itemNum].checkedOutBy = userAddr; // Good for granularity, may not be needed
workItems[itemNum].updateUser = userAddr;
workItems[itemNum].updateTimestamp = block.timestamp;
// emit ItemUpdated(workItems[itemNum].id, workItems[itemNum].itemTypeAddr, workItems[itemNum].team, workItems[itemNum].status, workItems[itemNum].checkedOut, workItems[itemNum].createUser, workItems[itemNum].createTimestamp);
}
function checkIn(uint256 itemNum, address userAddr) public {
require(workItems.length > itemNum, "This workitem does not exist");
require(
workItems[itemNum].checkedOut,
"This workitem is not checked out"
);
require(
msg.sender == workItems[itemNum].itemTypeAddr,
"This workitem is not owned by this flow."
);
require(
workItems[itemNum].checkedOutBy == userAddr,
"This workitem is not checked out to you"
);
workItems[itemNum].checkedOut = false;
workItems[itemNum].updateUser = userAddr;
workItems[itemNum].updateTimestamp = block.timestamp;
workItems[itemNum].checkedOutBy = address(0); // Good for granularity, may not be needed
// emit ItemUpdated(workItems[itemNum].id, workItems[itemNum].itemTypeAddr, workItems[itemNum].team, workItems[itemNum].status, workItems[itemNum].checkedOut, workItems[itemNum].createUser, workItems[itemNum].createTimestamp);
}
function getOpenItems() public view returns (WorkItem[] memory) {
WorkItem[] memory openItems = new WorkItem[](workItems.length);
string memory bb = "Complete";
uint256 oiIdx = 0;
for (uint256 i = 0; i < workItems.length; i++) {
if (!strcmp(workItems[i].status, bb)) {
openItems[oiIdx] = workItems[i];
oiIdx++;
}
}
return openItems;
}
function getOpenItemsByTeam(string memory _team)
public
view
returns (WorkItem[] memory)
{
WorkItem[] memory openItems = new WorkItem[](workItems.length);
string memory bb = "Complete";
string memory cc = "Cancelled";
uint256 oiIdx = 0;
for (uint256 i = 0; i < workItems.length; i++) {
if (
!(strcmp(workItems[i].status, bb) ||
strcmp(workItems[i].status, cc))
) {
if (strcmp(workItems[i].team, _team)) {
openItems[oiIdx] = workItems[i];
oiIdx++;
}
}
}
return openItems;
}
function setTeam(string memory _team) public {
// TODO: only allow an admin or approved team member to call this function
addressToTeam[msg.sender] = _team;
}
function setTeamById(address userAddr, string memory _team) external {
// require(
// msg.sender == flowNameToContractAddress["AddUser"],
// "Only the AddUser contract may update social ids."
// );
addressToTeam[userAddr] = _team;
}
function getTeam() public view returns (string memory) {
return addressToTeam[msg.sender];
}
function setTwitterId(address userAddr, string memory _twitterId) public {
// TODO: restrict execution to AddUserFlowContract
// require(
// msg.sender == flowNameToContractAddress["AddUser"],
// "Only the AddUser contract may update social ids."
// );
addressToTwitterId[userAddr] = _twitterId;
twitterIdToAddress[_twitterId] = userAddr;
}
function getTwitterIdFromAddress(address userAddr)
public
view
returns (string memory)
{
return addressToTwitterId[userAddr];
}
function getAddressFromTwitterId(string memory _twitterId)
public
view
returns (address)
{
return twitterIdToAddress[_twitterId];
}
function strcmp(string memory a, string memory b)
internal
pure
returns (bool)
{
return memcmp(bytes(a), bytes(b));
}
function memcmp(bytes memory a, bytes memory b)
internal
pure
returns (bool)
{
return (a.length == b.length) && (keccak256(a) == keccak256(b));
}
}
|
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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.
*/
namespace cpp2 facebook.thrift.test
struct IncludedStruct {
}
|
import asyncio
from typing import Generator, Set
import pytest
from starlette.applications import Starlette
from starlette.testclient import TestClient
from uvicorn.config import Config # type: ignore
from uvicorn.server import Server as AppServer # type: ignore
from example.api_gateway.api_client import example_websockets_client
from example.api_gateway.server import Server, create_server
from rap.api_gateway.app import create_app
from rap.client import Client
from rap.common.utils import constant
@pytest.fixture()
def create_test_app() -> Generator[Starlette, None, None]:
client: Client = Client("test", [{"ip": "localhost", "port": "9000"}])
app: Starlette = create_app("/api", [client])
server: Server = create_server("test")
async def create_rap_server() -> None:
await server.create_server()
async def close_rap_server() -> None:
await server.shutdown()
app.router.on_startup.insert(0, create_rap_server)
app.router.on_shutdown.append(close_rap_server)
yield app
class TestApiGateWay:
def test_api_normal(self, create_test_app: Starlette) -> None:
with TestClient(create_test_app) as client:
resp = client.post(
"http://localhost:8000/api/normal",
json={
"server_name": "test",
"group": "default",
"func_name": "sync_sum",
"func_type": "normal",
"arg_list": [1, 2],
},
)
assert 3 == resp.json()["data"]
def test_api_channel(self) -> None:
"""starlette sync test client can not support other server"""
loop: asyncio.AbstractEventLoop = asyncio.get_event_loop()
async def main() -> None:
# start rap server
rap_server: Server = create_server("test")
await rap_server.create_server()
# start app server and until start
client: Client = Client("test", [{"ip": "localhost", "port": "9000"}])
app_server: AppServer = AppServer(Config(create_app("/api", [client])))
asyncio.ensure_future(app_server.serve())
while True:
if hasattr(app_server, "servers") and len(app_server.servers) > 0:
break
await asyncio.sleep(0.1)
# test api
await example_websockets_client("test")
# close servers...
app_server.should_exit = True
await rap_server.shutdown()
loop.run_until_complete(main())
def test_param_error(self, create_test_app: Starlette) -> None:
with TestClient(create_test_app) as client:
resp = client.post(
"http://localhost:8000/api/normal",
json={"server_name": "test", "group": "default", "func_type": "normal", "arg_list": [1, 2]},
)
assert {"code": 1, "msg": "param error:'func_name'"} == resp.json()
resp = client.post(
"http://localhost:8000/api/normal",
json={
"server_name": "test",
"group": "default",
"func_name": "sync_sum",
"func_type": "normal",
"arg_list": 1,
},
)
assert {"code": 1, "msg": "param error"} == resp.json()
def test_not_found(self) -> None:
group_set: Set[str] = set()
group_set.add(constant.DEFAULT_GROUP)
client: Client = Client("test", [{"ip": "localhost", "port": "9000"}])
app: Starlette = create_app("/api", [client], group_filter=group_set)
server: Server = create_server("test")
async def create_rap_server() -> None:
await server.create_server()
async def close_rap_server() -> None:
await server.shutdown()
app.router.on_startup.insert(0, create_rap_server)
app.router.on_shutdown.append(close_rap_server)
with TestClient(app) as test_client:
resp = test_client.post(
"http://localhost:8000/api/normal",
json={
"server_name": "test",
"group": "default",
"func_name": "sync_sum",
"func_type": "normal",
"arg_list": [1, 2],
},
)
assert {"code": 3, "msg": "Not Found"} == resp.json()
|
(defproject cam "0.1.0-SNAPSHOT"
:description "octoprint proxy cam server"
:url "https://github.com/andrewsuzuki/octoprint-proxy-dashboard"
:dependencies [[org.clojure/clojure "1.10.0"]
[org.clojure/tools.cli "0.4.2"]
[compojure "1.6.1"]
[ring/ring-core "1.7.1"]
[ring/ring-devel "1.7.1"]
[http-kit "2.3.0"]
[cheshire "5.9.0"]
[clj-time "0.15.2"]
[net.bramp.ffmpeg/ffmpeg "0.6.2"]
[javax.servlet/servlet-api "2.5"]]
:main cam.main
:profiles
{:uberjar {:aot :all}
:production {}
:dev {:dependencies [[ring/ring-mock "0.4.0"]]}})
|
$host.ui.RawUI.WindowTitle = 'DataSerVR'
$host.UI.RawUI.BackgroundColor='darkgray'
Clear-Host
#create virtual env in windows and activate it and install requirements.txt
py -3 -m venv venv
venv\Scripts\activate
#pip install flask_cors
#pip install pymysql
python -m pip install -r requirements.txt
$env:FLASK_ENV="development"
$env:FLASK_APP="app.py"
flask run --port 5000
#python app.py |
'<snippet1>
' This example demonstrates the System.Globalization.Culture-
' AndRegionInfoBuilder Register method.
' Compile this code example with a reference to sysglobl.dll.
Imports System
Imports System.Globalization
Class Sample
Public Shared Sub Main()
Dim cib As CultureAndRegionInfoBuilder = Nothing
Try
' Create a CultureAndRegionInfoBuilder object named "x-en-US-sample".
Console.WriteLine("Create and explore the CultureAndRegionInfoBuilder..." & vbCrLf)
cib = New CultureAndRegionInfoBuilder("x-en-US-sample", CultureAndRegionModifiers.None)
' Populate the new CultureAndRegionInfoBuilder object with culture information.
Dim ci As New CultureInfo("en-US")
cib.LoadDataFromCultureInfo(ci)
' Populate the new CultureAndRegionInfoBuilder object with region information.
Dim ri As New RegionInfo("US")
cib.LoadDataFromRegionInfo(ri)
' Display some of the properties of the CultureAndRegionInfoBuilder object.
Console.WriteLine("CultureName:. . . . . . . . . . {0}", cib.CultureName)
Console.WriteLine("CultureEnglishName: . . . . . . {0}", cib.CultureEnglishName)
Console.WriteLine("CultureNativeName:. . . . . . . {0}", cib.CultureNativeName)
Console.WriteLine("GeoId:. . . . . . . . . . . . . {0}", cib.GeoId)
Console.WriteLine("IsMetric: . . . . . . . . . . . {0}", cib.IsMetric)
Console.WriteLine("ISOCurrencySymbol:. . . . . . . {0}", cib.ISOCurrencySymbol)
Console.WriteLine("RegionEnglishName:. . . . . . . {0}", cib.RegionEnglishName)
Console.WriteLine("RegionName: . . . . . . . . . . {0}", cib.RegionName)
Console.WriteLine("RegionNativeName: . . . . . . . {0}", cib.RegionNativeName)
Console.WriteLine("ThreeLetterISOLanguageName: . . {0}", cib.ThreeLetterISOLanguageName)
Console.WriteLine("ThreeLetterISORegionName: . . . {0}", cib.ThreeLetterISORegionName)
Console.WriteLine("ThreeLetterWindowsLanguageName: {0}", cib.ThreeLetterWindowsLanguageName)
Console.WriteLine("ThreeLetterWindowsRegionName: . {0}", cib.ThreeLetterWindowsRegionName)
Console.WriteLine("TwoLetterISOLanguageName: . . . {0}", cib.TwoLetterISOLanguageName)
Console.WriteLine("TwoLetterISORegionName: . . . . {0}", cib.TwoLetterISORegionName)
Console.WriteLine()
' Register the custom culture.
Console.WriteLine("Register the custom culture...")
cib.Register()
' Display some of the properties of the custom culture.
Console.WriteLine("Create and explore the custom culture..." & vbCrLf)
ci = New CultureInfo("x-en-US-sample")
Console.WriteLine("Name: . . . . . . . . . . . . . {0}", ci.Name)
Console.WriteLine("EnglishName:. . . . . . . . . . {0}", ci.EnglishName)
Console.WriteLine("NativeName: . . . . . . . . . . {0}", ci.NativeName)
Console.WriteLine("TwoLetterISOLanguageName: . . . {0}", ci.TwoLetterISOLanguageName)
Console.WriteLine("ThreeLetterISOLanguageName: . . {0}", ci.ThreeLetterISOLanguageName)
Console.WriteLine("ThreeLetterWindowsLanguageName: {0}", ci.ThreeLetterWindowsLanguageName)
Console.WriteLine(vbCrLf & "Note:" & vbCrLf & "Use the example in the " & _
"Unregister method topic to remove the custom culture.")
Catch e As Exception
Console.WriteLine(e)
End Try
End Sub 'Main
End Class 'Sample
'This code example produces the following results:
'
'Create and explore the CultureAndRegionInfoBuilder...
'
'CultureName:. . . . . . . . . . x-en-US-sample
'CultureEnglishName: . . . . . . English (United States)
'CultureNativeName:. . . . . . . English (United States)
'GeoId:. . . . . . . . . . . . . 244
'IsMetric: . . . . . . . . . . . False
'ISOCurrencySymbol:. . . . . . . USD
'RegionEnglishName:. . . . . . . United States
'RegionName: . . . . . . . . . . x-en-US-sample
'RegionNativeName: . . . . . . . United States
'ThreeLetterISOLanguageName: . . eng
'ThreeLetterISORegionName: . . . USA
'ThreeLetterWindowsLanguageName: ENU
'ThreeLetterWindowsRegionName: . USA
'TwoLetterISOLanguageName: . . . en
'TwoLetterISORegionName: . . . . US
'
'Register the custom culture...
'Create and explore the custom culture...
'
'Name: . . . . . . . . . . . . . x-en-US-sample
'EnglishName:. . . . . . . . . . English (United States)
'NativeName: . . . . . . . . . . English (United States)
'TwoLetterISOLanguageName: . . . en
'ThreeLetterISOLanguageName: . . eng
'ThreeLetterWindowsLanguageName: ENU
'
'Note:
'Use the example in the Unregister method topic to remove the custom culture.
'
'</snippet1> |
๏ปฟnamespace FSharpKoans
open NUnit.Framework
(*
In functional programming, we often care about the "shape" of data, rather
than the data itself. For example, if we are trying to find the length of a list,
it doesn't matter whether we have a list-of-strings or a list-of-floats or a
list-of-something-elses. All that matters is that the data occurs in the shape
of a list. Similarly, if we are given a tuple of two items and we only look at
the second item, then the type of the first item doesn't matter to us - it
could be anything, and the meaning of the program wouldn't change at all!
But what if we are given a tuple of 4 items, and our function outputs the
third item? Now we have an interesting situation. We hope to be able to
take in a tuple of ANY four types, but output a value that has the type of
the third item. We can achieve this if we specify the type of the tuple
generically, as
'a * 'b * 'c * 'd
This gives each component of the tuple a "fake" type (indicated by the ' symbol
before the type-name). The function returns the third element, so we can
say that the type of the function is
'a * 'b * 'c * 'd -> 'c
...and now we have a perfectly generic function, which can be use with any
4-tuple, and which is also completely safe to use. And as a side-effect,
by looking at the function type, we can tell what the function does without
even looking at the code of the function! The function cannot know what
'a, 'b, 'c, or 'd types are, and it cannot know how to construct them. The
only way that it can get hold of a 'c value is by having it passed in. Since
we know this to be true, it must be the case that the function is returning
the third item in the tuple [0]!
The ability to look at the *shape* of data, and ignore unnecessarily-specific
types, is called "parametric polymorphism". The non-specific (or "generic")
types are given as 'a, 'b, 'c, and so on. We sometimes say that types which are
parametrically polymorphic are "generic types".
We may sometimes want to make our more structured types, like records
or discriminated unions, generic.
*)
module ``08: Parametric polymorphism`` =
(*
The next test demonstrates *type inference*.
Not all functional languages are typed. The first (and, arguably, the most powerful)
functional language was Lisp, and Lisp isn't strongly typed. Typing is something that tends
to work very well with functional programming, but isn't something that is essential to
functional programming. In the case of F#, typing often stops you from making "silly" errors.
F# uses type inference extensively. Type inference means that it tries to work out
(or "infer") what type a particular name is by looking at code around it. A readable, if
simplified, explanation of how this works can be found at:
http://fsharpforfunandprofit.com/posts/type-inference/
*)
[<Test>]
let ``01 The type of symbols in variable patterns is inferred`` () =
let x = 50
let y = "a string"
let z = -4.23
let a = false
let b = 't'
x |> should be ofType<int>
y |> should be ofType<string>
z |> should be ofType<float>
a |> should be ofType<bool>
b |> should be ofType<char>
[<Test>]
let ``02 id: the simplest built-in generic function`` () =
// `id` is the identify function: it takes an input ... and gives it back immediately.
id 8 |> should equal 8
id 7.6 |> should equal 7.6
id "wut!" |> should equal "wut!"
// id can be surprisingly useful. Remember it :).
[<Test>]
let ``03 Defining a generic function`` () =
let f x y = (x, y, y)
f 4 5 |> should equal (4, 5, 5)
f "k" 'p' |> should equal ("k", 'p', 'p')
type GenericDiscriminatedUnionExample<'a,'b> =
| Frist
| Secnod of 'a * 'b
| Thrid of ('a -> ('b * 'a * int)) // <-- this shouldn't look odd. Functions are first-class!
[<Test>]
let ``04 Creating a generic discriminated union (Part 1).`` () =
let a = Secnod (6.55, 7)
let b = Thrid (fun k -> true, k, 8)
// how do you write a generic type?
a |> should be ofType<GenericDiscriminatedUnionExample<float,int>>
b |> should be ofType<GenericDiscriminatedUnionExample<'a,bool>>
type MyDiscriminatedUnion<'a> =
| Furoth of 'a
| Fevi
| Sxi of 'a
[<Test>]
let ``05 Creating a generic discriminated union (Part 2).`` () =
// You need to edit the definition of MyDiscriminatedUnion first! It's just above this test.
let a = Furoth 7
let b = Sxi "bleh"
let c = Furoth 't'
let d = Sxi true
match a with
| Furoth n -> n |> should equal 7
| _ -> Assert.Fail ()
match b with
| Sxi x -> x |> should equal "bleh"
| _ -> Assert.Fail ()
match c with
| Furoth p -> p |> should equal 't'
| _ -> Assert.Fail ()
match d with
| Sxi y -> y |> should equal true
| _ -> Assert.Fail ()
|