text
stringlengths 31
1.04M
|
---|
/*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkScopeExit_DEFINED
# define SkScopeExit_DEFINED
# include "include/core/SkTypes.h"
# include "include/private/SkMacros.h"
# include <functional>
/** SkScopeExit calls a std:::function<void()> in its destructor. */
class SkScopeExit
{
public:
SkScopeExit();
SkScopeExit(std::function<void()> f)
: fFn(std::move(f))
{
}
SkScopeExit(SkScopeExit&& that)
: fFn(std::move(that.fFn))
{
}
~SkScopeExit()
{
if (fFn)
{
fFn();
}
}
void clear()
{
fFn = {};
}
SkScopeExit& operator=(SkScopeExit&& that)
{
fFn = std::move(that.fFn);
return *this;
}
private:
std::function<void()> fFn;
SkScopeExit(const SkScopeExit&) = delete;
SkScopeExit& operator=(const SkScopeExit&);
};
/**
* SK_AT_SCOPE_EXIT(stmt) evaluates stmt when the current scope ends.
*
* E.g.
* {
* int x = 5;
* {
* SK_AT_SCOPE_EXIT(x--);
* SkASSERT(x == 5);
* }
* SkASSERT(x == 4);
* }
*/
# define SK_AT_SCOPE_EXIT(stmt) \
SkScopeExit SK_MACRO_APPEND_LINE(at_scope_exit_)([&]() { stmt; })
#endif
|
uniform mat4 uProjectionMatrix;
uniform mat4 uViewMatrix;
uniform mat4 uModelMatrix;
uniform mat3 uNormalMatrix;
attribute vec3 aPosition;
attribute vec3 aNormal;
void main() {
gl_Position = uProjectionMatrix * uViewMatrix * uModelMatrix * vec4(aPosition, 1.0);
}
|
; A062880: Zero together with numbers which can be written as a sum of distinct odd powers of 2.
; 0,2,8,10,32,34,40,42,128,130,136,138,160,162,168,170,512,514,520,522,544,546,552,554,640,642,648,650,672,674,680,682,2048,2050,2056,2058,2080,2082,2088,2090,2176,2178,2184,2186,2208,2210,2216,2218,2560,2562,2568,2570,2592,2594,2600,2602,2688,2690,2696,2698,2720,2722,2728,2730,8192,8194,8200,8202,8224,8226,8232,8234,8320,8322,8328,8330,8352,8354,8360,8362,8704,8706,8712,8714,8736,8738,8744,8746,8832,8834,8840,8842,8864,8866,8872,8874,10240,10242,10248,10250
seq $0,98871 ; Sums of distinct powers of 4 plus 1.
mul $0,16
sub $0,15
div $0,8
|
((comment) @injection.content
(#set! injection.language "comment"))
([(shell_command) (shell_fragment)] @injection.content
(#set! injection.language "bash"))
|
package br.com.brasileiraoapp.mapper
import br.com.brasileiraoapp.result.BidResult
import org.junit.Test
import response.BidResponse
import kotlin.test.assertEquals
class BidResponseToBidResultMapperTest {
private val bidResultMapper = BidResponseToBidResultMapper()
@Test
fun mapFrom_BidResponse_shouldReturnBidResult() {
val expected = BidResult(10, "any", teamImg = "any")
val response = BidResponse(10, "any", teamImage = "any")
val actual = bidResultMapper.mapFrom(response)
assertEquals(expected, actual)
}
} |
1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -69.00
-1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -19.00
0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -80.00
0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -29.00
1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -69.00
-1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -93.00
0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -80.00
0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -6.00
1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -69.00
-1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -35.00
0.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 -80.00
0.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -27.00
1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -69.00
-1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -71.00
0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -80.00
0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -7.00
1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 -69.00
-1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -93.00
0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 -80.00
0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -94.00
0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -19.00
0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -93.00
0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -29.00
0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -6.00
0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -19.00
0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -35.00
0.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 -29.00
0.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -27.00
0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -19.00
0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -71.00
0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -29.00
0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -7.00
0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 -19.00
0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -93.00
0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 -29.00
0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -94.00
0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -93.00
0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -35.00
0.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 -6.00
0.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -27.00
0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -93.00
0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -71.00
0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -6.00
0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -7.00
0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 -93.00
0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -93.00
0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 -6.00
0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -94.00
0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 -35.00
0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 -71.00
0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 -27.00
0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 -7.00
0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 -35.00
0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 -93.00
0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 -27.00
0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 -94.00
0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 -71.00
0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 -93.00
0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 -7.00
0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 -94.00
1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 -69.00
0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 -19.00
0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 -93.00
0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 -35.00
0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 -71.00
0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 -93.00
-1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 42.00
0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 93.00
0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 116.00
0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00
0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 95.00
0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00
0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00
0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 115.00
0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00
0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00
0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 28.00
|
// SPDX-License-Identifier: MIT
pragma solidity 0.6.6;
interface IERC20Weth {
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender)
external
view
returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5,05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the value {ERC20} uses, unless this function is
* overridden;
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() external view returns (uint8);
/**
* @dev Deposit avaible eth inside the account
*/
function deposit() external payable;
/**
* @dev Withdraws avaible eth inside the account
*/
function withdraw(uint256) external;
}
|
flash = $('.flash')
flash.css('height', flash.outerHeight());
Bacon.once(flash)
.delay(2000)
.doAction -> flash.addClass('disappear')
.delay(10000)
.onValue -> flash.remove()
|
{
"spriteId": {
"name": "Sprite7",
"path": "sprites/Sprite7/Sprite7.yy",
},
"solid": false,
"visible": true,
"spriteMaskId": null,
"persistent": false,
"parentObjectId": null,
"physicsObject": false,
"physicsSensor": false,
"physicsShape": 1,
"physicsGroup": 1,
"physicsDensity": 0.5,
"physicsRestitution": 0.1,
"physicsLinearDamping": 0.1,
"physicsAngularDamping": 0.1,
"physicsFriction": 0.2,
"physicsStartAwake": true,
"physicsKinematic": false,
"physicsShapePoints": [],
"eventList": [
{"isDnD":false,"eventNum":66,"eventType":9,"collisionObjectId":null,"parent":{"name":"MenuBackground","path":"objects/MenuBackground/MenuBackground.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",},
],
"properties": [],
"overriddenProperties": [],
"parent": {
"name": "Dopobj",
"path": "folders/Objects/Dopobj.yy",
},
"resourceVersion": "1.0",
"name": "MenuBackground",
"tags": [],
"resourceType": "GMObject",
} |
Class {
#name : #SMarkTestSuiteWithBaseBenchmark,
#superclass : #SMarkTestSuite,
#category : 'SMark-Tests'
}
{ #category : #'as yet unclassified' }
SMarkTestSuiteWithBaseBenchmark >> baseBenchmark [
runner didRunBaseBenchmark.
]
|
from query_categorizer.errors import NotAllResultsException
from query_categorizer.utils import clean_results
import fastText
import numpy as np
class EmbeddingModel(object):
def __init__(self, path_to_model, label_prefix="__label__"):
"""
:param path_to_model:
:param label_prefix:
"""
self.label_prefix = label_prefix
self.path_to_model = path_to_model
self.model = fastText.load_model(self.path_to_model)
def get_feature_vector(self, query, results):
"""
Create Feature vector using query and web results
:param query:
:param results:
:return:
"""
if len(results) == 10:
all_res = [" ".join(elt.values()) for elt in clean_results(results)]
all_vector = [self.get_sentence_vector(elt) for elt in all_res] + [
self.get_sentence_vector(query)]
vector = np.concatenate(all_vector)
return vector
else:
raise NotAllResultsException("You must give 10 web results...")
def predict(self, text):
"""
Predict the label of text using pretrained model vector
:param text:
:return:
"""
return self.predictk(text=text, k=1)
def predictk(self, text, k):
"""
Return K multi labels prediction
:param text:
:param k:
:return:
"""
prediction = self.model.predict(text=text, k=k)
return [elt.replace(self.label_prefix, "") for elt in prediction[0]], [float(elt) for elt in prediction[1]]
def get_sentence_vector(self, text):
"""
Get sentence representation of text
:param text:
:return:
"""
return self.model.get_sentence_vector(text=text)
def train(self, file_name, epoch=10, word_n_gram=2, dimension=200):
"""
Train FastText supervised model
:param file_name:
:param epoch:
:param word_n_gram:
:param dimension:
:return:
"""
model = fastText.train_supervised(file_name,
epoch=epoch,
wordNgrams=word_n_gram,
dim=dimension, )
model.save_model(self.path_to_model)
return model
def load(self):
"""
:return: fast text model loaded
"""
return fastText.load_model(self.path_to_model)
|
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()>
Partial Class Form1
Inherits System.Windows.Forms.Form
'Form remplace la méthode Dispose pour nettoyer la liste des composants.
<System.Diagnostics.DebuggerNonUserCode()>
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
Try
If disposing AndAlso components IsNot Nothing Then
components.Dispose()
End If
Finally
MyBase.Dispose(disposing)
End Try
End Sub
'Requise par le Concepteur Windows Form
Private components As System.ComponentModel.IContainer
'REMARQUE : la procédure suivante est requise par le Concepteur Windows Form
'Elle peut être modifiée à l'aide du Concepteur Windows Form.
'Ne la modifiez pas à l'aide de l'éditeur de code.
<System.Diagnostics.DebuggerStepThrough()>
Private Sub InitializeComponent()
Me.components = New System.ComponentModel.Container()
Dim ChartArea1 As System.Windows.Forms.DataVisualization.Charting.ChartArea = New System.Windows.Forms.DataVisualization.Charting.ChartArea()
Dim Series1 As System.Windows.Forms.DataVisualization.Charting.Series = New System.Windows.Forms.DataVisualization.Charting.Series()
Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(Form1))
Me.GroupBox1 = New System.Windows.Forms.GroupBox()
Me.CheckBox2 = New System.Windows.Forms.CheckBox()
Me.CheckBox1 = New System.Windows.Forms.CheckBox()
Me.TextBox1 = New System.Windows.Forms.TextBox()
Me.GroupBox3 = New System.Windows.Forms.GroupBox()
Me.CheckBox22 = New System.Windows.Forms.CheckBox()
Me.CheckBox11 = New System.Windows.Forms.CheckBox()
Me.CheckBox10 = New System.Windows.Forms.CheckBox()
Me.CheckBox9 = New System.Windows.Forms.CheckBox()
Me.CheckBox8 = New System.Windows.Forms.CheckBox()
Me.GroupBox5 = New System.Windows.Forms.GroupBox()
Me.Label19 = New System.Windows.Forms.Label()
Me.TextBox19 = New System.Windows.Forms.TextBox()
Me.Label18 = New System.Windows.Forms.Label()
Me.TextBox18 = New System.Windows.Forms.TextBox()
Me.CheckBox21 = New System.Windows.Forms.CheckBox()
Me.CheckBox20 = New System.Windows.Forms.CheckBox()
Me.Label17 = New System.Windows.Forms.Label()
Me.Button12 = New System.Windows.Forms.Button()
Me.DataGridView2 = New System.Windows.Forms.DataGridView()
Me.DataGridViewTextBoxColumn1 = New System.Windows.Forms.DataGridViewTextBoxColumn()
Me.DataGridViewTextBoxColumn3 = New System.Windows.Forms.DataGridViewTextBoxColumn()
Me.Button3 = New System.Windows.Forms.Button()
Me.CheckBox18 = New System.Windows.Forms.CheckBox()
Me.Button2 = New System.Windows.Forms.Button()
Me.Label9 = New System.Windows.Forms.Label()
Me.Label4 = New System.Windows.Forms.Label()
Me.Label8 = New System.Windows.Forms.Label()
Me.CheckBox17 = New System.Windows.Forms.CheckBox()
Me.TextBox5 = New System.Windows.Forms.TextBox()
Me.TextBox4 = New System.Windows.Forms.TextBox()
Me.Label7 = New System.Windows.Forms.Label()
Me.CheckBox12 = New System.Windows.Forms.CheckBox()
Me.DataGridView1 = New System.Windows.Forms.DataGridView()
Me.Elt = New System.Windows.Forms.DataGridViewTextBoxColumn()
Me.Line = New System.Windows.Forms.DataGridViewTextBoxColumn()
Me.kratio = New System.Windows.Forms.DataGridViewTextBoxColumn()
Me.k_ratio_measured = New System.Windows.Forms.DataGridViewTextBoxColumn()
Me.Err_kratio = New System.Windows.Forms.DataGridViewTextBoxColumn()
Me.E = New System.Windows.Forms.DataGridViewTextBoxColumn()
Me.Std = New System.Windows.Forms.DataGridViewTextBoxColumn()
Me.ListBox1 = New System.Windows.Forms.ListBox()
Me.TextBox3 = New System.Windows.Forms.TextBox()
Me.Label6 = New System.Windows.Forms.Label()
Me.CheckBox15 = New System.Windows.Forms.CheckBox()
Me.CheckBox16 = New System.Windows.Forms.CheckBox()
Me.GroupBox6 = New System.Windows.Forms.GroupBox()
Me.Label3 = New System.Windows.Forms.Label()
Me.Chart1 = New System.Windows.Forms.DataVisualization.Charting.Chart()
Me.TextBox7 = New System.Windows.Forms.TextBox()
Me.TextBox8 = New System.Windows.Forms.TextBox()
Me.Label10 = New System.Windows.Forms.Label()
Me.Label11 = New System.Windows.Forms.Label()
Me.Label12 = New System.Windows.Forms.Label()
Me.Label13 = New System.Windows.Forms.Label()
Me.TextBox9 = New System.Windows.Forms.TextBox()
Me.TextBox10 = New System.Windows.Forms.TextBox()
Me.Button4 = New System.Windows.Forms.Button()
Me.Button6 = New System.Windows.Forms.Button()
Me.Button7 = New System.Windows.Forms.Button()
Me.TextBox12 = New System.Windows.Forms.TextBox()
Me.SaveFileDialog1 = New System.Windows.Forms.SaveFileDialog()
Me.Button8 = New System.Windows.Forms.Button()
Me.TextBox2 = New System.Windows.Forms.TextBox()
Me.TextBox6 = New System.Windows.Forms.TextBox()
Me.Button1 = New System.Windows.Forms.Button()
Me.Button5 = New System.Windows.Forms.Button()
Me.TextBox11 = New System.Windows.Forms.TextBox()
Me.Button9 = New System.Windows.Forms.Button()
Me.Button10 = New System.Windows.Forms.Button()
Me.Button11 = New System.Windows.Forms.Button()
Me.Button13 = New System.Windows.Forms.Button()
Me.Label1 = New System.Windows.Forms.Label()
Me.GroupBox4 = New System.Windows.Forms.GroupBox()
Me.GroupBox7 = New System.Windows.Forms.GroupBox()
Me.CheckBox19 = New System.Windows.Forms.CheckBox()
Me.CheckBox3 = New System.Windows.Forms.CheckBox()
Me.CheckBox4 = New System.Windows.Forms.CheckBox()
Me.CheckBox5 = New System.Windows.Forms.CheckBox()
Me.GroupBox8 = New System.Windows.Forms.GroupBox()
Me.CheckBox6 = New System.Windows.Forms.CheckBox()
Me.CheckBox7 = New System.Windows.Forms.CheckBox()
Me.Button14 = New System.Windows.Forms.Button()
Me.Button15 = New System.Windows.Forms.Button()
Me.Label2 = New System.Windows.Forms.Label()
Me.BackgroundWorker1 = New System.ComponentModel.BackgroundWorker()
Me.Button17 = New System.Windows.Forms.Button()
Me.TextBox13 = New System.Windows.Forms.TextBox()
Me.Button18 = New System.Windows.Forms.Button()
Me.Button19 = New System.Windows.Forms.Button()
Me.Button20 = New System.Windows.Forms.Button()
Me.Button21 = New System.Windows.Forms.Button()
Me.Button22 = New System.Windows.Forms.Button()
Me.Button23 = New System.Windows.Forms.Button()
Me.Button24 = New System.Windows.Forms.Button()
Me.GroupBox9 = New System.Windows.Forms.GroupBox()
Me.Label15 = New System.Windows.Forms.Label()
Me.TextBox16 = New System.Windows.Forms.TextBox()
Me.Label14 = New System.Windows.Forms.Label()
Me.Label16 = New System.Windows.Forms.Label()
Me.TextBox15 = New System.Windows.Forms.TextBox()
Me.TextBox14 = New System.Windows.Forms.TextBox()
Me.TextBox17 = New System.Windows.Forms.TextBox()
Me.CheckBox13 = New System.Windows.Forms.CheckBox()
Me.CheckBox14 = New System.Windows.Forms.CheckBox()
Me.Label5 = New System.Windows.Forms.Label()
Me.ToolTip1 = New System.Windows.Forms.ToolTip(Me.components)
Me.Button25 = New System.Windows.Forms.Button()
Me.Button26 = New System.Windows.Forms.Button()
Me.Element99 = New BadgerFilm.Class1.TestB()
Me.Element98 = New BadgerFilm.Class1.TestB()
Me.Element97 = New BadgerFilm.Class1.TestB()
Me.Element96 = New BadgerFilm.Class1.TestB()
Me.Element95 = New BadgerFilm.Class1.TestB()
Me.Element94 = New BadgerFilm.Class1.TestB()
Me.Element93 = New BadgerFilm.Class1.TestB()
Me.Element92 = New BadgerFilm.Class1.TestB()
Me.Element91 = New BadgerFilm.Class1.TestB()
Me.Element90 = New BadgerFilm.Class1.TestB()
Me.Element71 = New BadgerFilm.Class1.TestB()
Me.Element70 = New BadgerFilm.Class1.TestB()
Me.Element69 = New BadgerFilm.Class1.TestB()
Me.Element68 = New BadgerFilm.Class1.TestB()
Me.Element67 = New BadgerFilm.Class1.TestB()
Me.Element66 = New BadgerFilm.Class1.TestB()
Me.Element65 = New BadgerFilm.Class1.TestB()
Me.Element64 = New BadgerFilm.Class1.TestB()
Me.Element63 = New BadgerFilm.Class1.TestB()
Me.Element62 = New BadgerFilm.Class1.TestB()
Me.Element61 = New BadgerFilm.Class1.TestB()
Me.Element60 = New BadgerFilm.Class1.TestB()
Me.Element59 = New BadgerFilm.Class1.TestB()
Me.Element58 = New BadgerFilm.Class1.TestB()
Me.Element89 = New BadgerFilm.Class1.TestB()
Me.Element88 = New BadgerFilm.Class1.TestB()
Me.Element87 = New BadgerFilm.Class1.TestB()
Me.Element86 = New BadgerFilm.Class1.TestB()
Me.Element85 = New BadgerFilm.Class1.TestB()
Me.Element84 = New BadgerFilm.Class1.TestB()
Me.Element83 = New BadgerFilm.Class1.TestB()
Me.Element82 = New BadgerFilm.Class1.TestB()
Me.Element81 = New BadgerFilm.Class1.TestB()
Me.Element80 = New BadgerFilm.Class1.TestB()
Me.Element79 = New BadgerFilm.Class1.TestB()
Me.Element78 = New BadgerFilm.Class1.TestB()
Me.Element77 = New BadgerFilm.Class1.TestB()
Me.Element76 = New BadgerFilm.Class1.TestB()
Me.Element75 = New BadgerFilm.Class1.TestB()
Me.Element74 = New BadgerFilm.Class1.TestB()
Me.Element73 = New BadgerFilm.Class1.TestB()
Me.Element72 = New BadgerFilm.Class1.TestB()
Me.Element57 = New BadgerFilm.Class1.TestB()
Me.Element56 = New BadgerFilm.Class1.TestB()
Me.Element55 = New BadgerFilm.Class1.TestB()
Me.Element54 = New BadgerFilm.Class1.TestB()
Me.Element53 = New BadgerFilm.Class1.TestB()
Me.Element52 = New BadgerFilm.Class1.TestB()
Me.Element51 = New BadgerFilm.Class1.TestB()
Me.Element50 = New BadgerFilm.Class1.TestB()
Me.Element49 = New BadgerFilm.Class1.TestB()
Me.Element48 = New BadgerFilm.Class1.TestB()
Me.Element47 = New BadgerFilm.Class1.TestB()
Me.Element46 = New BadgerFilm.Class1.TestB()
Me.Element45 = New BadgerFilm.Class1.TestB()
Me.Element44 = New BadgerFilm.Class1.TestB()
Me.Element43 = New BadgerFilm.Class1.TestB()
Me.Element42 = New BadgerFilm.Class1.TestB()
Me.Element41 = New BadgerFilm.Class1.TestB()
Me.Element40 = New BadgerFilm.Class1.TestB()
Me.Element39 = New BadgerFilm.Class1.TestB()
Me.Element38 = New BadgerFilm.Class1.TestB()
Me.Element37 = New BadgerFilm.Class1.TestB()
Me.Element36 = New BadgerFilm.Class1.TestB()
Me.Element35 = New BadgerFilm.Class1.TestB()
Me.Element34 = New BadgerFilm.Class1.TestB()
Me.Element33 = New BadgerFilm.Class1.TestB()
Me.Element32 = New BadgerFilm.Class1.TestB()
Me.Element31 = New BadgerFilm.Class1.TestB()
Me.Element30 = New BadgerFilm.Class1.TestB()
Me.Element29 = New BadgerFilm.Class1.TestB()
Me.Element28 = New BadgerFilm.Class1.TestB()
Me.Element27 = New BadgerFilm.Class1.TestB()
Me.Element26 = New BadgerFilm.Class1.TestB()
Me.Element25 = New BadgerFilm.Class1.TestB()
Me.Element24 = New BadgerFilm.Class1.TestB()
Me.Element23 = New BadgerFilm.Class1.TestB()
Me.Element22 = New BadgerFilm.Class1.TestB()
Me.Element21 = New BadgerFilm.Class1.TestB()
Me.Element20 = New BadgerFilm.Class1.TestB()
Me.Element19 = New BadgerFilm.Class1.TestB()
Me.Element18 = New BadgerFilm.Class1.TestB()
Me.Element17 = New BadgerFilm.Class1.TestB()
Me.Element16 = New BadgerFilm.Class1.TestB()
Me.Element15 = New BadgerFilm.Class1.TestB()
Me.Element14 = New BadgerFilm.Class1.TestB()
Me.Element13 = New BadgerFilm.Class1.TestB()
Me.Element12 = New BadgerFilm.Class1.TestB()
Me.Element11 = New BadgerFilm.Class1.TestB()
Me.Element10 = New BadgerFilm.Class1.TestB()
Me.Element9 = New BadgerFilm.Class1.TestB()
Me.Element8 = New BadgerFilm.Class1.TestB()
Me.Element7 = New BadgerFilm.Class1.TestB()
Me.Element6 = New BadgerFilm.Class1.TestB()
Me.Element5 = New BadgerFilm.Class1.TestB()
Me.Element4 = New BadgerFilm.Class1.TestB()
Me.Element3 = New BadgerFilm.Class1.TestB()
Me.Element2 = New BadgerFilm.Class1.TestB()
Me.Element1 = New BadgerFilm.Class1.TestB()
Me.Button27 = New System.Windows.Forms.Button()
Me.GroupBox1.SuspendLayout()
Me.GroupBox3.SuspendLayout()
Me.GroupBox5.SuspendLayout()
CType(Me.DataGridView2, System.ComponentModel.ISupportInitialize).BeginInit()
CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).BeginInit()
Me.GroupBox6.SuspendLayout()
CType(Me.Chart1, System.ComponentModel.ISupportInitialize).BeginInit()
Me.GroupBox4.SuspendLayout()
Me.GroupBox7.SuspendLayout()
Me.GroupBox8.SuspendLayout()
Me.GroupBox9.SuspendLayout()
Me.SuspendLayout()
'
'GroupBox1
'
Me.GroupBox1.Controls.Add(Me.CheckBox2)
Me.GroupBox1.Controls.Add(Me.CheckBox1)
Me.GroupBox1.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.GroupBox1.Location = New System.Drawing.Point(4, 2)
Me.GroupBox1.Name = "GroupBox1"
Me.GroupBox1.Size = New System.Drawing.Size(229, 63)
Me.GroupBox1.TabIndex = 1
Me.GroupBox1.TabStop = False
Me.GroupBox1.Text = "Secondary fluorescence"
'
'CheckBox2
'
Me.CheckBox2.AutoSize = True
Me.CheckBox2.Checked = True
Me.CheckBox2.CheckState = System.Windows.Forms.CheckState.Checked
Me.CheckBox2.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.CheckBox2.Location = New System.Drawing.Point(6, 42)
Me.CheckBox2.Name = "CheckBox2"
Me.CheckBox2.Size = New System.Drawing.Size(159, 17)
Me.CheckBox2.TabIndex = 9
Me.CheckBox2.Text = "Bremsstrahlung fluorescence"
Me.CheckBox2.UseVisualStyleBackColor = True
'
'CheckBox1
'
Me.CheckBox1.AutoSize = True
Me.CheckBox1.Checked = True
Me.CheckBox1.CheckState = System.Windows.Forms.CheckState.Checked
Me.CheckBox1.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.CheckBox1.Location = New System.Drawing.Point(6, 19)
Me.CheckBox1.Name = "CheckBox1"
Me.CheckBox1.Size = New System.Drawing.Size(151, 17)
Me.CheckBox1.TabIndex = 8
Me.CheckBox1.Text = "Characteristic fluorescence"
Me.CheckBox1.UseVisualStyleBackColor = True
'
'TextBox1
'
Me.TextBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.TextBox1.Location = New System.Drawing.Point(123, 71)
Me.TextBox1.Name = "TextBox1"
Me.TextBox1.Size = New System.Drawing.Size(67, 20)
Me.TextBox1.TabIndex = 3
Me.TextBox1.Text = "40"
'
'GroupBox3
'
Me.GroupBox3.Controls.Add(Me.CheckBox22)
Me.GroupBox3.Controls.Add(Me.CheckBox11)
Me.GroupBox3.Controls.Add(Me.CheckBox10)
Me.GroupBox3.Controls.Add(Me.CheckBox9)
Me.GroupBox3.Controls.Add(Me.CheckBox8)
Me.GroupBox3.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.GroupBox3.Location = New System.Drawing.Point(4, 97)
Me.GroupBox3.Name = "GroupBox3"
Me.GroupBox3.Size = New System.Drawing.Size(229, 95)
Me.GroupBox3.TabIndex = 3
Me.GroupBox3.TabStop = False
Me.GroupBox3.Text = "φ(ρz) model"
'
'CheckBox22
'
Me.CheckBox22.AutoSize = True
Me.CheckBox22.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.CheckBox22.Location = New System.Drawing.Point(6, 75)
Me.CheckBox22.Name = "CheckBox22"
Me.CheckBox22.Size = New System.Drawing.Size(110, 17)
Me.CheckBox22.TabIndex = 9
Me.CheckBox22.Text = "XPP (only for bulk)"
Me.CheckBox22.UseVisualStyleBackColor = True
'
'CheckBox11
'
Me.CheckBox11.AutoSize = True
Me.CheckBox11.Enabled = False
Me.CheckBox11.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.CheckBox11.Location = New System.Drawing.Point(6, 61)
Me.CheckBox11.Name = "CheckBox11"
Me.CheckBox11.Size = New System.Drawing.Size(136, 17)
Me.CheckBox11.TabIndex = 8
Me.CheckBox11.Text = "Bastin et al. (PROZA96)"
Me.CheckBox11.UseVisualStyleBackColor = True
'
'CheckBox10
'
Me.CheckBox10.AutoSize = True
Me.CheckBox10.Checked = True
Me.CheckBox10.CheckState = System.Windows.Forms.CheckState.Checked
Me.CheckBox10.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.CheckBox10.Location = New System.Drawing.Point(6, 47)
Me.CheckBox10.Name = "CheckBox10"
Me.CheckBox10.Size = New System.Drawing.Size(221, 17)
Me.CheckBox10.TabIndex = 7
Me.CheckBox10.Text = "Pouchou && Pichoir (PAP) Scanning (1990)"
Me.CheckBox10.UseVisualStyleBackColor = True
'
'CheckBox9
'
Me.CheckBox9.AutoSize = True
Me.CheckBox9.Enabled = False
Me.CheckBox9.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.CheckBox9.Location = New System.Drawing.Point(6, 33)
Me.CheckBox9.Name = "CheckBox9"
Me.CheckBox9.Size = New System.Drawing.Size(85, 17)
Me.CheckBox9.TabIndex = 6
Me.CheckBox9.Text = "Merlet (2010)"
Me.CheckBox9.UseVisualStyleBackColor = True
'
'CheckBox8
'
Me.CheckBox8.AutoSize = True
Me.CheckBox8.Enabled = False
Me.CheckBox8.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.CheckBox8.Location = New System.Drawing.Point(6, 19)
Me.CheckBox8.Name = "CheckBox8"
Me.CheckBox8.Size = New System.Drawing.Size(143, 17)
Me.CheckBox8.TabIndex = 5
Me.CheckBox8.Text = "Bastin's Scanning (1986)"
Me.CheckBox8.UseVisualStyleBackColor = True
'
'GroupBox5
'
Me.GroupBox5.Controls.Add(Me.Label19)
Me.GroupBox5.Controls.Add(Me.TextBox19)
Me.GroupBox5.Controls.Add(Me.Label18)
Me.GroupBox5.Controls.Add(Me.TextBox18)
Me.GroupBox5.Controls.Add(Me.CheckBox21)
Me.GroupBox5.Controls.Add(Me.CheckBox20)
Me.GroupBox5.Controls.Add(Me.Label17)
Me.GroupBox5.Controls.Add(Me.Button12)
Me.GroupBox5.Controls.Add(Me.DataGridView2)
Me.GroupBox5.Controls.Add(Me.Button3)
Me.GroupBox5.Controls.Add(Me.CheckBox18)
Me.GroupBox5.Controls.Add(Me.Button2)
Me.GroupBox5.Controls.Add(Me.Label9)
Me.GroupBox5.Controls.Add(Me.Label4)
Me.GroupBox5.Controls.Add(Me.Label8)
Me.GroupBox5.Controls.Add(Me.CheckBox17)
Me.GroupBox5.Controls.Add(Me.TextBox5)
Me.GroupBox5.Controls.Add(Me.TextBox4)
Me.GroupBox5.Controls.Add(Me.Label7)
Me.GroupBox5.Controls.Add(Me.CheckBox12)
Me.GroupBox5.Controls.Add(Me.DataGridView1)
Me.GroupBox5.Controls.Add(Me.ListBox1)
Me.GroupBox5.Controls.Add(Me.TextBox3)
Me.GroupBox5.Controls.Add(Me.Label6)
Me.GroupBox5.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.GroupBox5.Location = New System.Drawing.Point(239, 2)
Me.GroupBox5.Name = "GroupBox5"
Me.GroupBox5.Size = New System.Drawing.Size(583, 394)
Me.GroupBox5.TabIndex = 5
Me.GroupBox5.TabStop = False
Me.GroupBox5.Text = "Layers definition"
'
'Label19
'
Me.Label19.AutoSize = True
Me.Label19.Location = New System.Drawing.Point(538, 371)
Me.Label19.Name = "Label19"
Me.Label19.Size = New System.Drawing.Size(27, 13)
Me.Label19.TabIndex = 168
Me.Label19.Text = "to O"
'
'TextBox19
'
Me.TextBox19.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.TextBox19.Enabled = False
Me.TextBox19.Location = New System.Drawing.Point(512, 367)
Me.TextBox19.Name = "TextBox19"
Me.TextBox19.Size = New System.Drawing.Size(24, 20)
Me.TextBox19.TabIndex = 167
Me.TextBox19.Text = "C"
'
'Label18
'
Me.Label18.AutoSize = True
Me.Label18.Location = New System.Drawing.Point(464, 371)
Me.Label18.Name = "Label18"
Me.Label18.Size = New System.Drawing.Size(47, 13)
Me.Label18.TabIndex = 166
Me.Label18.Text = "atoms of"
'
'TextBox18
'
Me.TextBox18.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.TextBox18.Enabled = False
Me.TextBox18.Location = New System.Drawing.Point(429, 367)
Me.TextBox18.Name = "TextBox18"
Me.TextBox18.Size = New System.Drawing.Size(35, 20)
Me.TextBox18.TabIndex = 165
Me.TextBox18.Text = "0.333"
'
'CheckBox21
'
Me.CheckBox21.AutoCheck = False
Me.CheckBox21.AutoSize = True
Me.CheckBox21.Enabled = False
Me.CheckBox21.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.CheckBox21.Location = New System.Drawing.Point(429, 351)
Me.CheckBox21.Name = "CheckBox21"
Me.CheckBox21.Size = New System.Drawing.Size(112, 17)
Me.CheckBox21.TabIndex = 164
Me.CheckBox21.Text = "Stoichiometry to O:"
Me.CheckBox21.UseVisualStyleBackColor = True
'
'CheckBox20
'
Me.CheckBox20.AutoCheck = False
Me.CheckBox20.AutoSize = True
Me.CheckBox20.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.CheckBox20.Location = New System.Drawing.Point(419, 331)
Me.CheckBox20.Name = "CheckBox20"
Me.CheckBox20.Size = New System.Drawing.Size(109, 17)
Me.CheckBox20.TabIndex = 163
Me.CheckBox20.Text = "O by stoichiometry"
Me.CheckBox20.UseVisualStyleBackColor = True
'
'Label17
'
Me.Label17.AutoSize = True
Me.Label17.Location = New System.Drawing.Point(42, 351)
Me.Label17.Name = "Label17"
Me.Label17.Size = New System.Drawing.Size(35, 13)
Me.Label17.TabIndex = 22
Me.Label17.Text = "g/cm³"
'
'Button12
'
Me.Button12.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Button12.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Button12.Location = New System.Drawing.Point(165, 11)
Me.Button12.Name = "Button12"
Me.Button12.Size = New System.Drawing.Size(154, 25)
Me.Button12.TabIndex = 21
Me.Button12.Text = "Add X-ray line to selected elt"
Me.Button12.UseVisualStyleBackColor = True
'
'DataGridView2
'
Me.DataGridView2.AllowUserToAddRows = False
Me.DataGridView2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
Me.DataGridView2.Columns.AddRange(New System.Windows.Forms.DataGridViewColumn() {Me.DataGridViewTextBoxColumn1, Me.DataGridViewTextBoxColumn3})
Me.DataGridView2.Location = New System.Drawing.Point(6, 152)
Me.DataGridView2.Name = "DataGridView2"
Me.DataGridView2.RowHeadersVisible = False
Me.DataGridView2.Size = New System.Drawing.Size(128, 177)
Me.DataGridView2.TabIndex = 20
'
'DataGridViewTextBoxColumn1
'
Me.DataGridViewTextBoxColumn1.HeaderText = "Elt"
Me.DataGridViewTextBoxColumn1.Name = "DataGridViewTextBoxColumn1"
Me.DataGridViewTextBoxColumn1.Width = 35
'
'DataGridViewTextBoxColumn3
'
Me.DataGridViewTextBoxColumn3.HeaderText = "Conc (wt.)"
Me.DataGridViewTextBoxColumn3.Name = "DataGridViewTextBoxColumn3"
Me.DataGridViewTextBoxColumn3.Width = 90
'
'Button3
'
Me.Button3.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Button3.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Button3.Location = New System.Drawing.Point(454, 11)
Me.Button3.Name = "Button3"
Me.Button3.Size = New System.Drawing.Size(81, 25)
Me.Button3.TabIndex = 19
Me.Button3.Text = "Remove row"
Me.Button3.UseVisualStyleBackColor = True
'
'CheckBox18
'
Me.CheckBox18.AutoSize = True
Me.CheckBox18.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.CheckBox18.Location = New System.Drawing.Point(102, 372)
Me.CheckBox18.Name = "CheckBox18"
Me.CheckBox18.Size = New System.Drawing.Size(96, 17)
Me.CheckBox18.TabIndex = 18
Me.CheckBox18.Text = "Fixed thickness"
Me.CheckBox18.UseVisualStyleBackColor = True
'
'Button2
'
Me.Button2.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Button2.Location = New System.Drawing.Point(325, 11)
Me.Button2.Name = "Button2"
Me.Button2.Size = New System.Drawing.Size(123, 25)
Me.Button2.TabIndex = 16
Me.Button2.Text = "Add kV to selected elt"
Me.Button2.UseVisualStyleBackColor = True
'
'Label9
'
Me.Label9.AutoSize = True
Me.Label9.Location = New System.Drawing.Point(213, 333)
Me.Label9.Name = "Label9"
Me.Label9.Size = New System.Drawing.Size(131, 13)
Me.Label9.TabIndex = 17
Me.Label9.Text = "Selected layer definied by:"
'
'Label4
'
Me.Label4.AutoSize = True
Me.Label4.Location = New System.Drawing.Point(156, 351)
Me.Label4.Name = "Label4"
Me.Label4.Size = New System.Drawing.Size(14, 13)
Me.Label4.TabIndex = 16
Me.Label4.Text = "Å"
'
'Label8
'
Me.Label8.AutoSize = True
Me.Label8.Location = New System.Drawing.Point(99, 333)
Me.Label8.Name = "Label8"
Me.Label8.Size = New System.Drawing.Size(59, 13)
Me.Label8.TabIndex = 15
Me.Label8.Text = "Thickness:"
'
'CheckBox17
'
Me.CheckBox17.AutoSize = True
Me.CheckBox17.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.CheckBox17.Location = New System.Drawing.Point(299, 348)
Me.CheckBox17.Name = "CheckBox17"
Me.CheckBox17.Size = New System.Drawing.Size(81, 17)
Me.CheckBox17.TabIndex = 13
Me.CheckBox17.Text = "atomic fract."
Me.CheckBox17.UseVisualStyleBackColor = True
'
'TextBox5
'
Me.TextBox5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.TextBox5.Location = New System.Drawing.Point(102, 349)
Me.TextBox5.Name = "TextBox5"
Me.TextBox5.Size = New System.Drawing.Size(51, 20)
Me.TextBox5.TabIndex = 12
Me.TextBox5.Text = "20"
'
'TextBox4
'
Me.TextBox4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.TextBox4.Location = New System.Drawing.Point(6, 349)
Me.TextBox4.Name = "TextBox4"
Me.TextBox4.Size = New System.Drawing.Size(36, 20)
Me.TextBox4.TabIndex = 10
Me.TextBox4.Text = "2.2"
'
'Label7
'
Me.Label7.AutoSize = True
Me.Label7.Location = New System.Drawing.Point(3, 333)
Me.Label7.Name = "Label7"
Me.Label7.Size = New System.Drawing.Size(72, 13)
Me.Label7.TabIndex = 9
Me.Label7.Text = "Layer density:"
'
'CheckBox12
'
Me.CheckBox12.AutoSize = True
Me.CheckBox12.Checked = True
Me.CheckBox12.CheckState = System.Windows.Forms.CheckState.Checked
Me.CheckBox12.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.CheckBox12.Location = New System.Drawing.Point(216, 348)
Me.CheckBox12.Name = "CheckBox12"
Me.CheckBox12.Size = New System.Drawing.Size(81, 17)
Me.CheckBox12.TabIndex = 8
Me.CheckBox12.Text = "weight fract."
Me.CheckBox12.UseVisualStyleBackColor = True
'
'DataGridView1
'
Me.DataGridView1.AllowUserToAddRows = False
Me.DataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
Me.DataGridView1.Columns.AddRange(New System.Windows.Forms.DataGridViewColumn() {Me.Elt, Me.Line, Me.kratio, Me.k_ratio_measured, Me.Err_kratio, Me.E, Me.Std})
Me.DataGridView1.Location = New System.Drawing.Point(136, 41)
Me.DataGridView1.Name = "DataGridView1"
Me.DataGridView1.RowHeadersVisible = False
Me.DataGridView1.Size = New System.Drawing.Size(441, 288)
Me.DataGridView1.TabIndex = 7
'
'Elt
'
Me.Elt.HeaderText = "Elt"
Me.Elt.Name = "Elt"
Me.Elt.Width = 33
'
'Line
'
Me.Line.HeaderText = "Line"
Me.Line.Name = "Line"
Me.Line.Width = 40
'
'kratio
'
Me.kratio.HeaderText = "k-ratio"
Me.kratio.Name = "kratio"
Me.kratio.Width = 55
'
'k_ratio_measured
'
Me.k_ratio_measured.HeaderText = "k-ratio exp."
Me.k_ratio_measured.Name = "k_ratio_measured"
Me.k_ratio_measured.Width = 85
'
'Err_kratio
'
Me.Err_kratio.HeaderText = "Err kratio"
Me.Err_kratio.Name = "Err_kratio"
Me.Err_kratio.Width = 75
'
'E
'
Me.E.HeaderText = "E (kV)"
Me.E.Name = "E"
Me.E.Width = 60
'
'Std
'
Me.Std.HeaderText = "Standard"
Me.Std.Name = "Std"
Me.Std.Width = 90
'
'ListBox1
'
Me.ListBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.ListBox1.FormattingEnabled = True
Me.ListBox1.Location = New System.Drawing.Point(6, 41)
Me.ListBox1.Name = "ListBox1"
Me.ListBox1.Size = New System.Drawing.Size(128, 106)
Me.ListBox1.TabIndex = 6
'
'TextBox3
'
Me.TextBox3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.TextBox3.Location = New System.Drawing.Point(95, 14)
Me.TextBox3.Name = "TextBox3"
Me.TextBox3.Size = New System.Drawing.Size(39, 20)
Me.TextBox3.TabIndex = 5
Me.TextBox3.Text = "1"
'
'Label6
'
Me.Label6.AutoSize = True
Me.Label6.Location = New System.Drawing.Point(3, 16)
Me.Label6.Name = "Label6"
Me.Label6.Size = New System.Drawing.Size(86, 13)
Me.Label6.TabIndex = 4
Me.Label6.Text = "Number of layers"
'
'CheckBox15
'
Me.CheckBox15.AutoSize = True
Me.CheckBox15.Checked = True
Me.CheckBox15.CheckState = System.Windows.Forms.CheckState.Checked
Me.CheckBox15.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.CheckBox15.Location = New System.Drawing.Point(6, 32)
Me.CheckBox15.Name = "CheckBox15"
Me.CheckBox15.Size = New System.Drawing.Size(67, 17)
Me.CheckBox15.TabIndex = 13
Me.CheckBox15.Text = "Angstrom"
Me.CheckBox15.UseVisualStyleBackColor = True
'
'CheckBox16
'
Me.CheckBox16.AutoSize = True
Me.CheckBox16.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.CheckBox16.Location = New System.Drawing.Point(79, 32)
Me.CheckBox16.Name = "CheckBox16"
Me.CheckBox16.Size = New System.Drawing.Size(57, 17)
Me.CheckBox16.TabIndex = 14
Me.CheckBox16.Text = "µg/cm²"
Me.CheckBox16.UseVisualStyleBackColor = True
'
'GroupBox6
'
Me.GroupBox6.Controls.Add(Me.Label3)
Me.GroupBox6.Controls.Add(Me.CheckBox15)
Me.GroupBox6.Controls.Add(Me.CheckBox16)
Me.GroupBox6.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.GroupBox6.Location = New System.Drawing.Point(4, 428)
Me.GroupBox6.Name = "GroupBox6"
Me.GroupBox6.Size = New System.Drawing.Size(229, 52)
Me.GroupBox6.TabIndex = 9
Me.GroupBox6.TabStop = False
Me.GroupBox6.Text = "Units"
'
'Label3
'
Me.Label3.AutoSize = True
Me.Label3.Location = New System.Drawing.Point(6, 16)
Me.Label3.Name = "Label3"
Me.Label3.Size = New System.Drawing.Size(119, 13)
Me.Label3.TabIndex = 2
Me.Label3.Text = "Thicknesses defined in:"
'
'Chart1
'
ChartArea1.Name = "ChartArea1"
Me.Chart1.ChartAreas.Add(ChartArea1)
Me.Chart1.Location = New System.Drawing.Point(826, 364)
Me.Chart1.Name = "Chart1"
Series1.ChartArea = "ChartArea1"
Series1.Name = "Series1"
Me.Chart1.Series.Add(Series1)
Me.Chart1.Size = New System.Drawing.Size(459, 259)
Me.Chart1.TabIndex = 16
Me.Chart1.Text = "Chart1"
'
'TextBox7
'
Me.TextBox7.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.TextBox7.Location = New System.Drawing.Point(860, 324)
Me.TextBox7.Name = "TextBox7"
Me.TextBox7.Size = New System.Drawing.Size(39, 20)
Me.TextBox7.TabIndex = 20
Me.TextBox7.Text = "0"
'
'TextBox8
'
Me.TextBox8.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.TextBox8.Location = New System.Drawing.Point(898, 324)
Me.TextBox8.Name = "TextBox8"
Me.TextBox8.Size = New System.Drawing.Size(39, 20)
Me.TextBox8.TabIndex = 21
Me.TextBox8.Text = "30"
'
'Label10
'
Me.Label10.AutoSize = True
Me.Label10.Location = New System.Drawing.Point(867, 311)
Me.Label10.Name = "Label10"
Me.Label10.Size = New System.Drawing.Size(24, 13)
Me.Label10.TabIndex = 22
Me.Label10.Text = "Min"
'
'Label11
'
Me.Label11.AutoSize = True
Me.Label11.Location = New System.Drawing.Point(902, 311)
Me.Label11.Name = "Label11"
Me.Label11.Size = New System.Drawing.Size(27, 13)
Me.Label11.TabIndex = 23
Me.Label11.Text = "Max"
'
'Label12
'
Me.Label12.AutoSize = True
Me.Label12.Location = New System.Drawing.Point(825, 326)
Me.Label12.Name = "Label12"
Me.Label12.Size = New System.Drawing.Size(35, 13)
Me.Label12.TabIndex = 24
Me.Label12.Text = "X axis"
'
'Label13
'
Me.Label13.AutoSize = True
Me.Label13.Location = New System.Drawing.Point(825, 345)
Me.Label13.Name = "Label13"
Me.Label13.Size = New System.Drawing.Size(35, 13)
Me.Label13.TabIndex = 29
Me.Label13.Text = "Y axis"
'
'TextBox9
'
Me.TextBox9.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.TextBox9.Location = New System.Drawing.Point(860, 343)
Me.TextBox9.Name = "TextBox9"
Me.TextBox9.Size = New System.Drawing.Size(39, 20)
Me.TextBox9.TabIndex = 26
Me.TextBox9.Text = "0"
'
'TextBox10
'
Me.TextBox10.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.TextBox10.Location = New System.Drawing.Point(898, 343)
Me.TextBox10.Name = "TextBox10"
Me.TextBox10.Size = New System.Drawing.Size(39, 20)
Me.TextBox10.TabIndex = 25
Me.TextBox10.Text = "1"
'
'Button4
'
Me.Button4.BackColor = System.Drawing.Color.White
Me.Button4.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Button4.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Button4.Location = New System.Drawing.Point(937, 324)
Me.Button4.Name = "Button4"
Me.Button4.Size = New System.Drawing.Size(49, 39)
Me.Button4.TabIndex = 20
Me.Button4.Text = "Plot"
Me.Button4.UseVisualStyleBackColor = False
'
'Button6
'
Me.Button6.BackColor = System.Drawing.Color.White
Me.Button6.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Button6.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Button6.Location = New System.Drawing.Point(4, 563)
Me.Button6.Name = "Button6"
Me.Button6.Size = New System.Drawing.Size(100, 38)
Me.Button6.TabIndex = 33
Me.Button6.Text = "Calculate"
Me.Button6.UseVisualStyleBackColor = False
'
'Button7
'
Me.Button7.BackColor = System.Drawing.Color.White
Me.Button7.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Button7.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Button7.Location = New System.Drawing.Point(133, 481)
Me.Button7.Name = "Button7"
Me.Button7.Size = New System.Drawing.Size(100, 38)
Me.Button7.TabIndex = 34
Me.Button7.Text = "Save"
Me.Button7.UseVisualStyleBackColor = False
'
'TextBox12
'
Me.TextBox12.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.TextBox12.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.TextBox12.Location = New System.Drawing.Point(239, 396)
Me.TextBox12.Multiline = True
Me.TextBox12.Name = "TextBox12"
Me.TextBox12.ScrollBars = System.Windows.Forms.ScrollBars.Vertical
Me.TextBox12.Size = New System.Drawing.Size(583, 227)
Me.TextBox12.TabIndex = 35
'
'Button8
'
Me.Button8.BackColor = System.Drawing.Color.White
Me.Button8.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Button8.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Button8.Location = New System.Drawing.Point(4, 481)
Me.Button8.Name = "Button8"
Me.Button8.Size = New System.Drawing.Size(100, 38)
Me.Button8.TabIndex = 36
Me.Button8.Text = "Load"
Me.Button8.UseVisualStyleBackColor = False
'
'TextBox2
'
Me.TextBox2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.TextBox2.Location = New System.Drawing.Point(166, 624)
Me.TextBox2.Name = "TextBox2"
Me.TextBox2.Size = New System.Drawing.Size(56, 20)
Me.TextBox2.TabIndex = 38
Me.TextBox2.Text = "1"
'
'TextBox6
'
Me.TextBox6.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.TextBox6.Location = New System.Drawing.Point(166, 642)
Me.TextBox6.Name = "TextBox6"
Me.TextBox6.Size = New System.Drawing.Size(56, 20)
Me.TextBox6.TabIndex = 39
Me.TextBox6.Text = "1"
'
'Button1
'
Me.Button1.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Button1.Location = New System.Drawing.Point(133, 663)
Me.Button1.Name = "Button1"
Me.Button1.Size = New System.Drawing.Size(100, 22)
Me.Button1.TabIndex = 42
Me.Button1.Text = "Fit brem fluo"
Me.Button1.UseVisualStyleBackColor = True
'
'Button5
'
Me.Button5.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Button5.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Button5.Location = New System.Drawing.Point(721, 631)
Me.Button5.Name = "Button5"
Me.Button5.Size = New System.Drawing.Size(68, 39)
Me.Button5.TabIndex = 43
Me.Button5.Text = "Fit coeff1"
Me.Button5.UseVisualStyleBackColor = True
'
'TextBox11
'
Me.TextBox11.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.TextBox11.Location = New System.Drawing.Point(239, 624)
Me.TextBox11.Multiline = True
Me.TextBox11.Name = "TextBox11"
Me.TextBox11.ScrollBars = System.Windows.Forms.ScrollBars.Vertical
Me.TextBox11.Size = New System.Drawing.Size(457, 201)
Me.TextBox11.TabIndex = 41
Me.TextBox11.Text = resources.GetString("TextBox11.Text")
'
'Button9
'
Me.Button9.BackColor = System.Drawing.Color.White
Me.Button9.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Button9.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Button9.Location = New System.Drawing.Point(133, 522)
Me.Button9.Name = "Button9"
Me.Button9.Size = New System.Drawing.Size(100, 38)
Me.Button9.TabIndex = 44
Me.Button9.Text = "Export data"
Me.Button9.UseVisualStyleBackColor = False
'
'Button10
'
Me.Button10.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Button10.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Button10.Location = New System.Drawing.Point(702, 676)
Me.Button10.Name = "Button10"
Me.Button10.Size = New System.Drawing.Size(100, 38)
Me.Button10.TabIndex = 45
Me.Button10.Text = "Crypt"
Me.Button10.UseVisualStyleBackColor = True
'
'Button11
'
Me.Button11.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Button11.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Button11.Location = New System.Drawing.Point(702, 720)
Me.Button11.Name = "Button11"
Me.Button11.Size = New System.Drawing.Size(100, 38)
Me.Button11.TabIndex = 46
Me.Button11.Text = "Decrypt"
Me.Button11.UseVisualStyleBackColor = True
'
'Button13
'
Me.Button13.BackColor = System.Drawing.Color.White
Me.Button13.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Button13.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Button13.Location = New System.Drawing.Point(9, 15)
Me.Button13.Name = "Button13"
Me.Button13.Size = New System.Drawing.Size(73, 39)
Me.Button13.TabIndex = 47
Me.Button13.Text = "Update BadgerFilm"
Me.Button13.UseVisualStyleBackColor = False
'
'Label1
'
Me.Label1.AutoSize = True
Me.Label1.Location = New System.Drawing.Point(2, 608)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(74, 13)
Me.Label1.TabIndex = 48
Me.Label1.Text = "Status: Ready"
'
'GroupBox4
'
Me.GroupBox4.Controls.Add(Me.Button13)
Me.GroupBox4.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.GroupBox4.Location = New System.Drawing.Point(1011, 305)
Me.GroupBox4.Name = "GroupBox4"
Me.GroupBox4.Size = New System.Drawing.Size(96, 58)
Me.GroupBox4.TabIndex = 49
Me.GroupBox4.TabStop = False
Me.GroupBox4.Text = "Options"
'
'GroupBox7
'
Me.GroupBox7.Controls.Add(Me.CheckBox19)
Me.GroupBox7.Controls.Add(Me.CheckBox3)
Me.GroupBox7.Controls.Add(Me.CheckBox4)
Me.GroupBox7.Controls.Add(Me.CheckBox5)
Me.GroupBox7.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.GroupBox7.Location = New System.Drawing.Point(5, 224)
Me.GroupBox7.Name = "GroupBox7"
Me.GroupBox7.Size = New System.Drawing.Size(229, 107)
Me.GroupBox7.TabIndex = 15
Me.GroupBox7.TabStop = False
Me.GroupBox7.Text = "MAC model"
'
'CheckBox19
'
Me.CheckBox19.AutoSize = True
Me.CheckBox19.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.CheckBox19.Location = New System.Drawing.Point(6, 87)
Me.CheckBox19.Name = "CheckBox19"
Me.CheckBox19.Size = New System.Drawing.Size(197, 17)
Me.CheckBox19.TabIndex = 17
Me.CheckBox19.Text = "Chantler 2005 (FFAST) [only up to U]"
Me.ToolTip1.SetToolTip(Me.CheckBox19, "FFAST MACs are available from H to U. For heavier elements, PENELOPE14 MACs are u" &
"sed.")
Me.CheckBox19.UseVisualStyleBackColor = True
'
'CheckBox3
'
Me.CheckBox3.AutoSize = True
Me.CheckBox3.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.CheckBox3.Location = New System.Drawing.Point(6, 42)
Me.CheckBox3.Name = "CheckBox3"
Me.CheckBox3.Size = New System.Drawing.Size(144, 17)
Me.CheckBox3.TabIndex = 16
Me.CheckBox3.Text = "EPDL (PENELOPE 2014)"
Me.CheckBox3.UseVisualStyleBackColor = True
'
'CheckBox4
'
Me.CheckBox4.AutoSize = True
Me.CheckBox4.Checked = True
Me.CheckBox4.CheckState = System.Windows.Forms.CheckState.Checked
Me.CheckBox4.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.CheckBox4.Location = New System.Drawing.Point(6, 19)
Me.CheckBox4.Name = "CheckBox4"
Me.CheckBox4.Size = New System.Drawing.Size(212, 17)
Me.CheckBox4.TabIndex = 13
Me.CheckBox4.Text = "Sabbatucci && Salvat 2016 (PENELOPE)"
Me.CheckBox4.UseVisualStyleBackColor = True
'
'CheckBox5
'
Me.CheckBox5.AutoSize = True
Me.CheckBox5.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.CheckBox5.Location = New System.Drawing.Point(6, 64)
Me.CheckBox5.Name = "CheckBox5"
Me.CheckBox5.Size = New System.Drawing.Size(133, 17)
Me.CheckBox5.TabIndex = 14
Me.CheckBox5.Text = "Heinrich 1986 (MAC30)"
Me.CheckBox5.UseVisualStyleBackColor = True
'
'GroupBox8
'
Me.GroupBox8.Controls.Add(Me.CheckBox6)
Me.GroupBox8.Controls.Add(Me.CheckBox7)
Me.GroupBox8.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.GroupBox8.Location = New System.Drawing.Point(4, 358)
Me.GroupBox8.Name = "GroupBox8"
Me.GroupBox8.Size = New System.Drawing.Size(229, 65)
Me.GroupBox8.TabIndex = 16
Me.GroupBox8.TabStop = False
Me.GroupBox8.Text = "Electron ionization cross section model"
'
'CheckBox6
'
Me.CheckBox6.AutoSize = True
Me.CheckBox6.Checked = True
Me.CheckBox6.CheckState = System.Windows.Forms.CheckState.Checked
Me.CheckBox6.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.CheckBox6.Location = New System.Drawing.Point(6, 19)
Me.CheckBox6.Name = "CheckBox6"
Me.CheckBox6.Size = New System.Drawing.Size(180, 17)
Me.CheckBox6.TabIndex = 13
Me.CheckBox6.Text = "Bote && Salvat 2008 (PENELOPE)"
Me.CheckBox6.UseVisualStyleBackColor = True
'
'CheckBox7
'
Me.CheckBox7.AutoSize = True
Me.CheckBox7.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.CheckBox7.Location = New System.Drawing.Point(6, 42)
Me.CheckBox7.Name = "CheckBox7"
Me.CheckBox7.Size = New System.Drawing.Size(158, 17)
Me.CheckBox7.TabIndex = 14
Me.CheckBox7.Text = "Original cross sections (PAP)"
Me.CheckBox7.UseVisualStyleBackColor = True
'
'Button14
'
Me.Button14.BackColor = System.Drawing.Color.White
Me.Button14.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Button14.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Button14.Location = New System.Drawing.Point(133, 563)
Me.Button14.Name = "Button14"
Me.Button14.Size = New System.Drawing.Size(100, 38)
Me.Button14.TabIndex = 50
Me.Button14.Text = "Export absolute intensities"
Me.Button14.UseVisualStyleBackColor = False
'
'Button15
'
Me.Button15.BackColor = System.Drawing.Color.White
Me.Button15.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Button15.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Button15.Location = New System.Drawing.Point(4, 522)
Me.Button15.Name = "Button15"
Me.Button15.Size = New System.Drawing.Size(100, 38)
Me.Button15.TabIndex = 51
Me.Button15.Text = "Import Stratagem files"
Me.Button15.UseVisualStyleBackColor = False
'
'Label2
'
Me.Label2.AutoSize = True
Me.Label2.Location = New System.Drawing.Point(1113, 348)
Me.Label2.Name = "Label2"
Me.Label2.Size = New System.Drawing.Size(90, 13)
Me.Label2.TabIndex = 22
Me.Label2.Text = "About BadgerFilm"
'
'BackgroundWorker1
'
'
'Button17
'
Me.Button17.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Button17.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Button17.Location = New System.Drawing.Point(133, 685)
Me.Button17.Name = "Button17"
Me.Button17.Size = New System.Drawing.Size(100, 42)
Me.Button17.TabIndex = 150
Me.Button17.Text = "Fit brem fluo batch Ka"
Me.Button17.UseVisualStyleBackColor = True
'
'TextBox13
'
Me.TextBox13.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.TextBox13.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.TextBox13.Location = New System.Drawing.Point(818, 629)
Me.TextBox13.Multiline = True
Me.TextBox13.Name = "TextBox13"
Me.TextBox13.ScrollBars = System.Windows.Forms.ScrollBars.Vertical
Me.TextBox13.Size = New System.Drawing.Size(467, 189)
Me.TextBox13.TabIndex = 151
'
'Button18
'
Me.Button18.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Button18.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Button18.Location = New System.Drawing.Point(29, 643)
Me.Button18.Name = "Button18"
Me.Button18.Size = New System.Drawing.Size(100, 42)
Me.Button18.TabIndex = 152
Me.Button18.Text = "Test on Pouchou and Pichoir data"
Me.Button18.UseVisualStyleBackColor = True
'
'Button19
'
Me.Button19.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Button19.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Button19.Location = New System.Drawing.Point(133, 726)
Me.Button19.Name = "Button19"
Me.Button19.Size = New System.Drawing.Size(100, 42)
Me.Button19.TabIndex = 153
Me.Button19.Text = "Fit brem fluo batch La"
Me.Button19.UseVisualStyleBackColor = True
'
'Button20
'
Me.Button20.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Button20.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Button20.Location = New System.Drawing.Point(29, 685)
Me.Button20.Name = "Button20"
Me.Button20.Size = New System.Drawing.Size(100, 42)
Me.Button20.TabIndex = 154
Me.Button20.Text = "Test on Bastin and Heijligers Al"
Me.Button20.UseVisualStyleBackColor = True
'
'Button21
'
Me.Button21.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Button21.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Button21.Location = New System.Drawing.Point(29, 726)
Me.Button21.Name = "Button21"
Me.Button21.Size = New System.Drawing.Size(100, 42)
Me.Button21.TabIndex = 155
Me.Button21.Text = "Test on Bastin and Heijligers Pd"
Me.Button21.UseVisualStyleBackColor = True
'
'Button22
'
Me.Button22.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Button22.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Button22.Location = New System.Drawing.Point(29, 767)
Me.Button22.Name = "Button22"
Me.Button22.Size = New System.Drawing.Size(100, 42)
Me.Button22.TabIndex = 156
Me.Button22.Text = "Test on Bastin and Heijligers Pd"
Me.Button22.UseVisualStyleBackColor = True
'
'Button23
'
Me.Button23.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Button23.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Button23.Location = New System.Drawing.Point(133, 767)
Me.Button23.Name = "Button23"
Me.Button23.Size = New System.Drawing.Size(100, 42)
Me.Button23.TabIndex = 157
Me.Button23.Text = "Fit brem fluo batch Ma"
Me.Button23.UseVisualStyleBackColor = True
'
'Button24
'
Me.Button24.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Button24.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Button24.Location = New System.Drawing.Point(29, 813)
Me.Button24.Name = "Button24"
Me.Button24.Size = New System.Drawing.Size(100, 42)
Me.Button24.TabIndex = 158
Me.Button24.Text = "Test on Heinrich data"
Me.Button24.UseVisualStyleBackColor = True
'
'GroupBox9
'
Me.GroupBox9.Controls.Add(Me.Label15)
Me.GroupBox9.Controls.Add(Me.TextBox16)
Me.GroupBox9.Controls.Add(Me.Label14)
Me.GroupBox9.Controls.Add(Me.Label16)
Me.GroupBox9.Controls.Add(Me.TextBox15)
Me.GroupBox9.Controls.Add(Me.TextBox14)
Me.GroupBox9.Controls.Add(Me.TextBox17)
Me.GroupBox9.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.GroupBox9.Location = New System.Drawing.Point(4, 358)
Me.GroupBox9.Name = "GroupBox9"
Me.GroupBox9.Size = New System.Drawing.Size(229, 65)
Me.GroupBox9.TabIndex = 159
Me.GroupBox9.TabStop = False
Me.GroupBox9.Text = "MAC fitting"
'
'Label15
'
Me.Label15.AutoSize = True
Me.Label15.Location = New System.Drawing.Point(85, 16)
Me.Label15.Name = "Label15"
Me.Label15.Size = New System.Drawing.Size(49, 13)
Me.Label15.TabIndex = 29
Me.Label15.Text = "Absorber"
'
'TextBox16
'
Me.TextBox16.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.TextBox16.Location = New System.Drawing.Point(85, 32)
Me.TextBox16.Name = "TextBox16"
Me.TextBox16.Size = New System.Drawing.Size(46, 20)
Me.TextBox16.TabIndex = 28
Me.TextBox16.Text = "U"
'
'Label14
'
Me.Label14.AutoSize = True
Me.Label14.Location = New System.Drawing.Point(140, 16)
Me.Label14.Name = "Label14"
Me.Label14.Size = New System.Drawing.Size(67, 13)
Me.Label14.TabIndex = 27
Me.Label14.Text = "MAC (cm²/g)"
'
'Label16
'
Me.Label16.AutoSize = True
Me.Label16.Location = New System.Drawing.Point(6, 16)
Me.Label16.Name = "Label16"
Me.Label16.Size = New System.Drawing.Size(52, 13)
Me.Label16.TabIndex = 25
Me.Label16.Text = "Radiation"
'
'TextBox15
'
Me.TextBox15.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.TextBox15.Location = New System.Drawing.Point(137, 32)
Me.TextBox15.Name = "TextBox15"
Me.TextBox15.Size = New System.Drawing.Size(70, 20)
Me.TextBox15.TabIndex = 24
Me.TextBox15.Text = "5000"
'
'TextBox14
'
Me.TextBox14.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.TextBox14.Location = New System.Drawing.Point(39, 32)
Me.TextBox14.Name = "TextBox14"
Me.TextBox14.Size = New System.Drawing.Size(40, 20)
Me.TextBox14.TabIndex = 23
Me.TextBox14.Text = "Ka"
'
'TextBox17
'
Me.TextBox17.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.TextBox17.Location = New System.Drawing.Point(9, 32)
Me.TextBox17.Name = "TextBox17"
Me.TextBox17.Size = New System.Drawing.Size(27, 20)
Me.TextBox17.TabIndex = 22
Me.TextBox17.Text = "O"
'
'CheckBox13
'
Me.CheckBox13.AutoSize = True
Me.CheckBox13.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.CheckBox13.Location = New System.Drawing.Point(10, 339)
Me.CheckBox13.Name = "CheckBox13"
Me.CheckBox13.Size = New System.Drawing.Size(77, 17)
Me.CheckBox13.TabIndex = 160
Me.CheckBox13.Text = "MAC Fitting"
Me.CheckBox13.UseVisualStyleBackColor = True
'
'CheckBox14
'
Me.CheckBox14.AutoSize = True
Me.CheckBox14.Location = New System.Drawing.Point(140, 826)
Me.CheckBox14.Name = "CheckBox14"
Me.CheckBox14.Size = New System.Drawing.Size(76, 17)
Me.CheckBox14.TabIndex = 161
Me.CheckBox14.Text = "No Sum=1"
Me.CheckBox14.UseVisualStyleBackColor = True
'
'Label5
'
Me.Label5.AutoSize = True
Me.Label5.Location = New System.Drawing.Point(2, 73)
Me.Label5.Name = "Label5"
Me.Label5.Size = New System.Drawing.Size(115, 13)
Me.Label5.TabIndex = 162
Me.Label5.Text = "Takeoff angle (degree)"
'
'Button25
'
Me.Button25.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Button25.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Button25.Location = New System.Drawing.Point(702, 764)
Me.Button25.Name = "Button25"
Me.Button25.Size = New System.Drawing.Size(100, 38)
Me.Button25.TabIndex = 163
Me.Button25.Text = "Matrix Inverse"
Me.Button25.UseVisualStyleBackColor = True
'
'Button26
'
Me.Button26.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Button26.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Button26.Location = New System.Drawing.Point(702, 808)
Me.Button26.Name = "Button26"
Me.Button26.Size = New System.Drawing.Size(100, 38)
Me.Button26.TabIndex = 164
Me.Button26.Text = "(1+TCK)"
Me.Button26.UseVisualStyleBackColor = True
'
'Element99
'
Me.Element99.BackColor = System.Drawing.Color.White
Me.Element99.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element99.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element99.Location = New System.Drawing.Point(1161, 265)
Me.Element99.Name = "Element99"
Me.Element99.Size = New System.Drawing.Size(24, 33)
Me.Element99.TabIndex = 149
Me.Element99.UseVisualStyleBackColor = False
'
'Element98
'
Me.Element98.BackColor = System.Drawing.Color.White
Me.Element98.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element98.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element98.Location = New System.Drawing.Point(1136, 265)
Me.Element98.Name = "Element98"
Me.Element98.Size = New System.Drawing.Size(24, 33)
Me.Element98.TabIndex = 148
Me.Element98.UseVisualStyleBackColor = False
'
'Element97
'
Me.Element97.BackColor = System.Drawing.Color.White
Me.Element97.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element97.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element97.Location = New System.Drawing.Point(1111, 265)
Me.Element97.Name = "Element97"
Me.Element97.Size = New System.Drawing.Size(24, 33)
Me.Element97.TabIndex = 147
Me.Element97.UseVisualStyleBackColor = False
'
'Element96
'
Me.Element96.BackColor = System.Drawing.Color.White
Me.Element96.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element96.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element96.Location = New System.Drawing.Point(1086, 265)
Me.Element96.Name = "Element96"
Me.Element96.Size = New System.Drawing.Size(24, 33)
Me.Element96.TabIndex = 146
Me.Element96.UseVisualStyleBackColor = False
'
'Element95
'
Me.Element95.BackColor = System.Drawing.Color.White
Me.Element95.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element95.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element95.Location = New System.Drawing.Point(1061, 265)
Me.Element95.Name = "Element95"
Me.Element95.Size = New System.Drawing.Size(24, 33)
Me.Element95.TabIndex = 145
Me.Element95.UseVisualStyleBackColor = False
'
'Element94
'
Me.Element94.BackColor = System.Drawing.Color.White
Me.Element94.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element94.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element94.Location = New System.Drawing.Point(1036, 265)
Me.Element94.Name = "Element94"
Me.Element94.Size = New System.Drawing.Size(24, 33)
Me.Element94.TabIndex = 144
Me.Element94.UseVisualStyleBackColor = False
'
'Element93
'
Me.Element93.BackColor = System.Drawing.Color.White
Me.Element93.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element93.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element93.Location = New System.Drawing.Point(1011, 265)
Me.Element93.Name = "Element93"
Me.Element93.Size = New System.Drawing.Size(24, 33)
Me.Element93.TabIndex = 143
Me.Element93.UseVisualStyleBackColor = False
'
'Element92
'
Me.Element92.BackColor = System.Drawing.Color.White
Me.Element92.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element92.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element92.Location = New System.Drawing.Point(986, 265)
Me.Element92.Name = "Element92"
Me.Element92.Size = New System.Drawing.Size(24, 33)
Me.Element92.TabIndex = 142
Me.Element92.UseVisualStyleBackColor = False
'
'Element91
'
Me.Element91.BackColor = System.Drawing.Color.White
Me.Element91.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element91.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element91.Location = New System.Drawing.Point(961, 265)
Me.Element91.Name = "Element91"
Me.Element91.Size = New System.Drawing.Size(24, 33)
Me.Element91.TabIndex = 141
Me.Element91.UseVisualStyleBackColor = False
'
'Element90
'
Me.Element90.BackColor = System.Drawing.Color.White
Me.Element90.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element90.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element90.Location = New System.Drawing.Point(936, 265)
Me.Element90.Name = "Element90"
Me.Element90.Size = New System.Drawing.Size(24, 33)
Me.Element90.TabIndex = 140
Me.Element90.UseVisualStyleBackColor = False
'
'Element71
'
Me.Element71.BackColor = System.Drawing.Color.White
Me.Element71.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element71.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element71.Location = New System.Drawing.Point(1261, 231)
Me.Element71.Name = "Element71"
Me.Element71.Size = New System.Drawing.Size(24, 33)
Me.Element71.TabIndex = 139
Me.Element71.UseVisualStyleBackColor = False
'
'Element70
'
Me.Element70.BackColor = System.Drawing.Color.White
Me.Element70.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element70.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element70.Location = New System.Drawing.Point(1236, 231)
Me.Element70.Name = "Element70"
Me.Element70.Size = New System.Drawing.Size(24, 33)
Me.Element70.TabIndex = 138
Me.Element70.UseVisualStyleBackColor = False
'
'Element69
'
Me.Element69.BackColor = System.Drawing.Color.White
Me.Element69.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element69.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element69.Location = New System.Drawing.Point(1211, 231)
Me.Element69.Name = "Element69"
Me.Element69.Size = New System.Drawing.Size(24, 33)
Me.Element69.TabIndex = 137
Me.Element69.UseVisualStyleBackColor = False
'
'Element68
'
Me.Element68.BackColor = System.Drawing.Color.White
Me.Element68.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element68.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element68.Location = New System.Drawing.Point(1186, 231)
Me.Element68.Name = "Element68"
Me.Element68.Size = New System.Drawing.Size(24, 33)
Me.Element68.TabIndex = 136
Me.Element68.UseVisualStyleBackColor = False
'
'Element67
'
Me.Element67.BackColor = System.Drawing.Color.White
Me.Element67.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element67.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element67.Location = New System.Drawing.Point(1161, 231)
Me.Element67.Name = "Element67"
Me.Element67.Size = New System.Drawing.Size(24, 33)
Me.Element67.TabIndex = 135
Me.Element67.UseVisualStyleBackColor = False
'
'Element66
'
Me.Element66.BackColor = System.Drawing.Color.White
Me.Element66.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element66.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element66.Location = New System.Drawing.Point(1136, 231)
Me.Element66.Name = "Element66"
Me.Element66.Size = New System.Drawing.Size(24, 33)
Me.Element66.TabIndex = 134
Me.Element66.UseVisualStyleBackColor = False
'
'Element65
'
Me.Element65.BackColor = System.Drawing.Color.White
Me.Element65.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element65.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element65.Location = New System.Drawing.Point(1111, 231)
Me.Element65.Name = "Element65"
Me.Element65.Size = New System.Drawing.Size(24, 33)
Me.Element65.TabIndex = 133
Me.Element65.UseVisualStyleBackColor = False
'
'Element64
'
Me.Element64.BackColor = System.Drawing.Color.White
Me.Element64.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element64.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element64.Location = New System.Drawing.Point(1086, 231)
Me.Element64.Name = "Element64"
Me.Element64.Size = New System.Drawing.Size(24, 33)
Me.Element64.TabIndex = 132
Me.Element64.UseVisualStyleBackColor = False
'
'Element63
'
Me.Element63.BackColor = System.Drawing.Color.White
Me.Element63.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element63.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element63.Location = New System.Drawing.Point(1061, 231)
Me.Element63.Name = "Element63"
Me.Element63.Size = New System.Drawing.Size(24, 33)
Me.Element63.TabIndex = 131
Me.Element63.UseVisualStyleBackColor = False
'
'Element62
'
Me.Element62.BackColor = System.Drawing.Color.White
Me.Element62.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element62.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element62.Location = New System.Drawing.Point(1036, 231)
Me.Element62.Name = "Element62"
Me.Element62.Size = New System.Drawing.Size(24, 33)
Me.Element62.TabIndex = 130
Me.Element62.UseVisualStyleBackColor = False
'
'Element61
'
Me.Element61.BackColor = System.Drawing.Color.White
Me.Element61.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element61.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element61.Location = New System.Drawing.Point(1011, 231)
Me.Element61.Name = "Element61"
Me.Element61.Size = New System.Drawing.Size(24, 33)
Me.Element61.TabIndex = 129
Me.Element61.UseVisualStyleBackColor = False
'
'Element60
'
Me.Element60.BackColor = System.Drawing.Color.White
Me.Element60.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element60.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element60.Location = New System.Drawing.Point(986, 231)
Me.Element60.Name = "Element60"
Me.Element60.Size = New System.Drawing.Size(24, 33)
Me.Element60.TabIndex = 128
Me.Element60.UseVisualStyleBackColor = False
'
'Element59
'
Me.Element59.BackColor = System.Drawing.Color.White
Me.Element59.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element59.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element59.Location = New System.Drawing.Point(961, 231)
Me.Element59.Name = "Element59"
Me.Element59.Size = New System.Drawing.Size(24, 33)
Me.Element59.TabIndex = 127
Me.Element59.UseVisualStyleBackColor = False
'
'Element58
'
Me.Element58.BackColor = System.Drawing.Color.White
Me.Element58.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element58.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element58.Location = New System.Drawing.Point(936, 231)
Me.Element58.Name = "Element58"
Me.Element58.Size = New System.Drawing.Size(24, 33)
Me.Element58.TabIndex = 126
Me.Element58.UseVisualStyleBackColor = False
'
'Element89
'
Me.Element89.BackColor = System.Drawing.Color.White
Me.Element89.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element89.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element89.Location = New System.Drawing.Point(886, 214)
Me.Element89.Name = "Element89"
Me.Element89.Size = New System.Drawing.Size(24, 33)
Me.Element89.TabIndex = 125
Me.Element89.UseVisualStyleBackColor = False
'
'Element88
'
Me.Element88.BackColor = System.Drawing.Color.White
Me.Element88.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element88.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element88.Location = New System.Drawing.Point(861, 214)
Me.Element88.Name = "Element88"
Me.Element88.Size = New System.Drawing.Size(24, 33)
Me.Element88.TabIndex = 124
Me.Element88.UseVisualStyleBackColor = False
'
'Element87
'
Me.Element87.BackColor = System.Drawing.Color.White
Me.Element87.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element87.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element87.Location = New System.Drawing.Point(836, 214)
Me.Element87.Name = "Element87"
Me.Element87.Size = New System.Drawing.Size(24, 33)
Me.Element87.TabIndex = 123
Me.Element87.UseVisualStyleBackColor = False
'
'Element86
'
Me.Element86.BackColor = System.Drawing.Color.White
Me.Element86.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element86.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element86.Location = New System.Drawing.Point(1261, 180)
Me.Element86.Name = "Element86"
Me.Element86.Size = New System.Drawing.Size(24, 33)
Me.Element86.TabIndex = 122
Me.Element86.UseVisualStyleBackColor = False
'
'Element85
'
Me.Element85.BackColor = System.Drawing.Color.White
Me.Element85.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element85.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element85.Location = New System.Drawing.Point(1236, 180)
Me.Element85.Name = "Element85"
Me.Element85.Size = New System.Drawing.Size(24, 33)
Me.Element85.TabIndex = 121
Me.Element85.UseVisualStyleBackColor = False
'
'Element84
'
Me.Element84.BackColor = System.Drawing.Color.White
Me.Element84.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element84.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element84.Location = New System.Drawing.Point(1211, 180)
Me.Element84.Name = "Element84"
Me.Element84.Size = New System.Drawing.Size(24, 33)
Me.Element84.TabIndex = 120
Me.Element84.UseVisualStyleBackColor = False
'
'Element83
'
Me.Element83.BackColor = System.Drawing.Color.White
Me.Element83.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element83.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element83.Location = New System.Drawing.Point(1186, 180)
Me.Element83.Name = "Element83"
Me.Element83.Size = New System.Drawing.Size(24, 33)
Me.Element83.TabIndex = 119
Me.Element83.UseVisualStyleBackColor = False
'
'Element82
'
Me.Element82.BackColor = System.Drawing.Color.White
Me.Element82.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element82.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element82.Location = New System.Drawing.Point(1161, 180)
Me.Element82.Name = "Element82"
Me.Element82.Size = New System.Drawing.Size(24, 33)
Me.Element82.TabIndex = 118
Me.Element82.UseVisualStyleBackColor = False
'
'Element81
'
Me.Element81.BackColor = System.Drawing.Color.White
Me.Element81.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element81.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element81.Location = New System.Drawing.Point(1136, 180)
Me.Element81.Name = "Element81"
Me.Element81.Size = New System.Drawing.Size(24, 33)
Me.Element81.TabIndex = 117
Me.Element81.UseVisualStyleBackColor = False
'
'Element80
'
Me.Element80.BackColor = System.Drawing.Color.White
Me.Element80.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element80.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element80.Location = New System.Drawing.Point(1111, 180)
Me.Element80.Name = "Element80"
Me.Element80.Size = New System.Drawing.Size(24, 33)
Me.Element80.TabIndex = 116
Me.Element80.UseVisualStyleBackColor = False
'
'Element79
'
Me.Element79.BackColor = System.Drawing.Color.White
Me.Element79.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element79.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element79.Location = New System.Drawing.Point(1086, 180)
Me.Element79.Name = "Element79"
Me.Element79.Size = New System.Drawing.Size(24, 33)
Me.Element79.TabIndex = 115
Me.Element79.UseVisualStyleBackColor = False
'
'Element78
'
Me.Element78.BackColor = System.Drawing.Color.White
Me.Element78.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element78.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element78.Location = New System.Drawing.Point(1061, 180)
Me.Element78.Name = "Element78"
Me.Element78.Size = New System.Drawing.Size(24, 33)
Me.Element78.TabIndex = 114
Me.Element78.UseVisualStyleBackColor = False
'
'Element77
'
Me.Element77.BackColor = System.Drawing.Color.White
Me.Element77.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element77.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element77.Location = New System.Drawing.Point(1036, 180)
Me.Element77.Name = "Element77"
Me.Element77.Size = New System.Drawing.Size(24, 33)
Me.Element77.TabIndex = 113
Me.Element77.UseVisualStyleBackColor = False
'
'Element76
'
Me.Element76.BackColor = System.Drawing.Color.White
Me.Element76.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element76.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element76.Location = New System.Drawing.Point(1011, 180)
Me.Element76.Name = "Element76"
Me.Element76.Size = New System.Drawing.Size(24, 33)
Me.Element76.TabIndex = 112
Me.Element76.UseVisualStyleBackColor = False
'
'Element75
'
Me.Element75.BackColor = System.Drawing.Color.White
Me.Element75.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element75.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element75.Location = New System.Drawing.Point(986, 180)
Me.Element75.Name = "Element75"
Me.Element75.Size = New System.Drawing.Size(24, 33)
Me.Element75.TabIndex = 111
Me.Element75.UseVisualStyleBackColor = False
'
'Element74
'
Me.Element74.BackColor = System.Drawing.Color.White
Me.Element74.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element74.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element74.Location = New System.Drawing.Point(961, 180)
Me.Element74.Name = "Element74"
Me.Element74.Size = New System.Drawing.Size(24, 33)
Me.Element74.TabIndex = 110
Me.Element74.UseVisualStyleBackColor = False
'
'Element73
'
Me.Element73.BackColor = System.Drawing.Color.White
Me.Element73.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element73.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element73.Location = New System.Drawing.Point(936, 180)
Me.Element73.Name = "Element73"
Me.Element73.Size = New System.Drawing.Size(24, 33)
Me.Element73.TabIndex = 109
Me.Element73.UseVisualStyleBackColor = False
'
'Element72
'
Me.Element72.BackColor = System.Drawing.Color.White
Me.Element72.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element72.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element72.Location = New System.Drawing.Point(911, 180)
Me.Element72.Name = "Element72"
Me.Element72.Size = New System.Drawing.Size(24, 33)
Me.Element72.TabIndex = 108
Me.Element72.UseVisualStyleBackColor = False
'
'Element57
'
Me.Element57.BackColor = System.Drawing.Color.White
Me.Element57.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element57.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element57.Location = New System.Drawing.Point(886, 180)
Me.Element57.Name = "Element57"
Me.Element57.Size = New System.Drawing.Size(24, 33)
Me.Element57.TabIndex = 107
Me.Element57.UseVisualStyleBackColor = False
'
'Element56
'
Me.Element56.BackColor = System.Drawing.Color.White
Me.Element56.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element56.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element56.Location = New System.Drawing.Point(861, 180)
Me.Element56.Name = "Element56"
Me.Element56.Size = New System.Drawing.Size(24, 33)
Me.Element56.TabIndex = 106
Me.Element56.UseVisualStyleBackColor = False
'
'Element55
'
Me.Element55.BackColor = System.Drawing.Color.White
Me.Element55.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element55.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element55.Location = New System.Drawing.Point(836, 180)
Me.Element55.Name = "Element55"
Me.Element55.Size = New System.Drawing.Size(24, 33)
Me.Element55.TabIndex = 105
Me.Element55.UseVisualStyleBackColor = False
'
'Element54
'
Me.Element54.BackColor = System.Drawing.Color.White
Me.Element54.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element54.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element54.Location = New System.Drawing.Point(1261, 146)
Me.Element54.Name = "Element54"
Me.Element54.Size = New System.Drawing.Size(24, 33)
Me.Element54.TabIndex = 104
Me.Element54.UseVisualStyleBackColor = False
'
'Element53
'
Me.Element53.BackColor = System.Drawing.Color.White
Me.Element53.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element53.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element53.Location = New System.Drawing.Point(1236, 146)
Me.Element53.Name = "Element53"
Me.Element53.Size = New System.Drawing.Size(24, 33)
Me.Element53.TabIndex = 103
Me.Element53.UseVisualStyleBackColor = False
'
'Element52
'
Me.Element52.BackColor = System.Drawing.Color.White
Me.Element52.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element52.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element52.Location = New System.Drawing.Point(1211, 146)
Me.Element52.Name = "Element52"
Me.Element52.Size = New System.Drawing.Size(24, 33)
Me.Element52.TabIndex = 102
Me.Element52.UseVisualStyleBackColor = False
'
'Element51
'
Me.Element51.BackColor = System.Drawing.Color.White
Me.Element51.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element51.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element51.Location = New System.Drawing.Point(1186, 146)
Me.Element51.Name = "Element51"
Me.Element51.Size = New System.Drawing.Size(24, 33)
Me.Element51.TabIndex = 101
Me.Element51.UseVisualStyleBackColor = False
'
'Element50
'
Me.Element50.BackColor = System.Drawing.Color.White
Me.Element50.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element50.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element50.Location = New System.Drawing.Point(1161, 146)
Me.Element50.Name = "Element50"
Me.Element50.Size = New System.Drawing.Size(24, 33)
Me.Element50.TabIndex = 100
Me.Element50.UseVisualStyleBackColor = False
'
'Element49
'
Me.Element49.BackColor = System.Drawing.Color.White
Me.Element49.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element49.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element49.Location = New System.Drawing.Point(1136, 146)
Me.Element49.Name = "Element49"
Me.Element49.Size = New System.Drawing.Size(24, 33)
Me.Element49.TabIndex = 99
Me.Element49.UseVisualStyleBackColor = False
'
'Element48
'
Me.Element48.BackColor = System.Drawing.Color.White
Me.Element48.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element48.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element48.Location = New System.Drawing.Point(1111, 146)
Me.Element48.Name = "Element48"
Me.Element48.Size = New System.Drawing.Size(24, 33)
Me.Element48.TabIndex = 98
Me.Element48.UseVisualStyleBackColor = False
'
'Element47
'
Me.Element47.BackColor = System.Drawing.Color.White
Me.Element47.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element47.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element47.Location = New System.Drawing.Point(1086, 146)
Me.Element47.Name = "Element47"
Me.Element47.Size = New System.Drawing.Size(24, 33)
Me.Element47.TabIndex = 97
Me.Element47.UseVisualStyleBackColor = False
'
'Element46
'
Me.Element46.BackColor = System.Drawing.Color.White
Me.Element46.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element46.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element46.Location = New System.Drawing.Point(1061, 146)
Me.Element46.Name = "Element46"
Me.Element46.Size = New System.Drawing.Size(24, 33)
Me.Element46.TabIndex = 96
Me.Element46.UseVisualStyleBackColor = False
'
'Element45
'
Me.Element45.BackColor = System.Drawing.Color.White
Me.Element45.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element45.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element45.Location = New System.Drawing.Point(1036, 146)
Me.Element45.Name = "Element45"
Me.Element45.Size = New System.Drawing.Size(24, 33)
Me.Element45.TabIndex = 95
Me.Element45.UseVisualStyleBackColor = False
'
'Element44
'
Me.Element44.BackColor = System.Drawing.Color.White
Me.Element44.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element44.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element44.Location = New System.Drawing.Point(1011, 146)
Me.Element44.Name = "Element44"
Me.Element44.Size = New System.Drawing.Size(24, 33)
Me.Element44.TabIndex = 94
Me.Element44.UseVisualStyleBackColor = False
'
'Element43
'
Me.Element43.BackColor = System.Drawing.Color.White
Me.Element43.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element43.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element43.Location = New System.Drawing.Point(986, 146)
Me.Element43.Name = "Element43"
Me.Element43.Size = New System.Drawing.Size(24, 33)
Me.Element43.TabIndex = 93
Me.Element43.UseVisualStyleBackColor = False
'
'Element42
'
Me.Element42.BackColor = System.Drawing.Color.White
Me.Element42.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element42.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element42.Location = New System.Drawing.Point(961, 146)
Me.Element42.Name = "Element42"
Me.Element42.Size = New System.Drawing.Size(24, 33)
Me.Element42.TabIndex = 92
Me.Element42.UseVisualStyleBackColor = False
'
'Element41
'
Me.Element41.BackColor = System.Drawing.Color.White
Me.Element41.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element41.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element41.Location = New System.Drawing.Point(936, 146)
Me.Element41.Name = "Element41"
Me.Element41.Size = New System.Drawing.Size(24, 33)
Me.Element41.TabIndex = 91
Me.Element41.UseVisualStyleBackColor = False
'
'Element40
'
Me.Element40.BackColor = System.Drawing.Color.White
Me.Element40.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element40.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element40.Location = New System.Drawing.Point(911, 146)
Me.Element40.Name = "Element40"
Me.Element40.Size = New System.Drawing.Size(24, 33)
Me.Element40.TabIndex = 90
Me.Element40.UseVisualStyleBackColor = False
'
'Element39
'
Me.Element39.BackColor = System.Drawing.Color.White
Me.Element39.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element39.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element39.Location = New System.Drawing.Point(886, 146)
Me.Element39.Name = "Element39"
Me.Element39.Size = New System.Drawing.Size(24, 33)
Me.Element39.TabIndex = 89
Me.Element39.UseVisualStyleBackColor = False
'
'Element38
'
Me.Element38.BackColor = System.Drawing.Color.White
Me.Element38.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element38.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element38.Location = New System.Drawing.Point(861, 146)
Me.Element38.Name = "Element38"
Me.Element38.Size = New System.Drawing.Size(24, 33)
Me.Element38.TabIndex = 88
Me.Element38.UseVisualStyleBackColor = False
'
'Element37
'
Me.Element37.BackColor = System.Drawing.Color.White
Me.Element37.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element37.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element37.Location = New System.Drawing.Point(836, 146)
Me.Element37.Name = "Element37"
Me.Element37.Size = New System.Drawing.Size(24, 33)
Me.Element37.TabIndex = 87
Me.Element37.UseVisualStyleBackColor = False
'
'Element36
'
Me.Element36.BackColor = System.Drawing.Color.White
Me.Element36.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element36.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element36.Location = New System.Drawing.Point(1261, 112)
Me.Element36.Name = "Element36"
Me.Element36.Size = New System.Drawing.Size(24, 33)
Me.Element36.TabIndex = 86
Me.Element36.UseVisualStyleBackColor = False
'
'Element35
'
Me.Element35.BackColor = System.Drawing.Color.White
Me.Element35.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element35.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element35.Location = New System.Drawing.Point(1236, 112)
Me.Element35.Name = "Element35"
Me.Element35.Size = New System.Drawing.Size(24, 33)
Me.Element35.TabIndex = 85
Me.Element35.UseVisualStyleBackColor = False
'
'Element34
'
Me.Element34.BackColor = System.Drawing.Color.White
Me.Element34.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element34.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element34.Location = New System.Drawing.Point(1211, 112)
Me.Element34.Name = "Element34"
Me.Element34.Size = New System.Drawing.Size(24, 33)
Me.Element34.TabIndex = 84
Me.Element34.UseVisualStyleBackColor = False
'
'Element33
'
Me.Element33.BackColor = System.Drawing.Color.White
Me.Element33.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element33.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element33.Location = New System.Drawing.Point(1186, 112)
Me.Element33.Name = "Element33"
Me.Element33.Size = New System.Drawing.Size(24, 33)
Me.Element33.TabIndex = 83
Me.Element33.UseVisualStyleBackColor = False
'
'Element32
'
Me.Element32.BackColor = System.Drawing.Color.White
Me.Element32.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element32.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element32.Location = New System.Drawing.Point(1161, 112)
Me.Element32.Name = "Element32"
Me.Element32.Size = New System.Drawing.Size(24, 33)
Me.Element32.TabIndex = 82
Me.Element32.UseVisualStyleBackColor = False
'
'Element31
'
Me.Element31.BackColor = System.Drawing.Color.White
Me.Element31.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element31.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element31.Location = New System.Drawing.Point(1136, 112)
Me.Element31.Name = "Element31"
Me.Element31.Size = New System.Drawing.Size(24, 33)
Me.Element31.TabIndex = 81
Me.Element31.UseVisualStyleBackColor = False
'
'Element30
'
Me.Element30.BackColor = System.Drawing.Color.White
Me.Element30.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element30.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element30.Location = New System.Drawing.Point(1111, 112)
Me.Element30.Name = "Element30"
Me.Element30.Size = New System.Drawing.Size(24, 33)
Me.Element30.TabIndex = 80
Me.Element30.UseVisualStyleBackColor = False
'
'Element29
'
Me.Element29.BackColor = System.Drawing.Color.White
Me.Element29.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element29.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element29.Location = New System.Drawing.Point(1086, 112)
Me.Element29.Name = "Element29"
Me.Element29.Size = New System.Drawing.Size(24, 33)
Me.Element29.TabIndex = 79
Me.Element29.UseVisualStyleBackColor = False
'
'Element28
'
Me.Element28.BackColor = System.Drawing.Color.White
Me.Element28.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element28.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element28.Location = New System.Drawing.Point(1061, 112)
Me.Element28.Name = "Element28"
Me.Element28.Size = New System.Drawing.Size(24, 33)
Me.Element28.TabIndex = 78
Me.Element28.UseVisualStyleBackColor = False
'
'Element27
'
Me.Element27.BackColor = System.Drawing.Color.White
Me.Element27.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element27.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element27.Location = New System.Drawing.Point(1036, 112)
Me.Element27.Name = "Element27"
Me.Element27.Size = New System.Drawing.Size(24, 33)
Me.Element27.TabIndex = 77
Me.Element27.UseVisualStyleBackColor = False
'
'Element26
'
Me.Element26.BackColor = System.Drawing.Color.White
Me.Element26.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element26.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element26.Location = New System.Drawing.Point(1011, 112)
Me.Element26.Name = "Element26"
Me.Element26.Size = New System.Drawing.Size(24, 33)
Me.Element26.TabIndex = 76
Me.Element26.UseVisualStyleBackColor = False
'
'Element25
'
Me.Element25.BackColor = System.Drawing.Color.White
Me.Element25.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element25.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element25.Location = New System.Drawing.Point(986, 112)
Me.Element25.Name = "Element25"
Me.Element25.Size = New System.Drawing.Size(24, 33)
Me.Element25.TabIndex = 75
Me.Element25.UseVisualStyleBackColor = False
'
'Element24
'
Me.Element24.BackColor = System.Drawing.Color.White
Me.Element24.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element24.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element24.Location = New System.Drawing.Point(961, 112)
Me.Element24.Name = "Element24"
Me.Element24.Size = New System.Drawing.Size(24, 33)
Me.Element24.TabIndex = 74
Me.Element24.UseVisualStyleBackColor = False
'
'Element23
'
Me.Element23.BackColor = System.Drawing.Color.White
Me.Element23.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element23.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element23.Location = New System.Drawing.Point(936, 112)
Me.Element23.Name = "Element23"
Me.Element23.Size = New System.Drawing.Size(24, 33)
Me.Element23.TabIndex = 73
Me.Element23.UseVisualStyleBackColor = False
'
'Element22
'
Me.Element22.BackColor = System.Drawing.Color.White
Me.Element22.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element22.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element22.Location = New System.Drawing.Point(911, 112)
Me.Element22.Name = "Element22"
Me.Element22.Size = New System.Drawing.Size(24, 33)
Me.Element22.TabIndex = 72
Me.Element22.UseVisualStyleBackColor = False
'
'Element21
'
Me.Element21.BackColor = System.Drawing.Color.White
Me.Element21.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element21.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element21.Location = New System.Drawing.Point(886, 112)
Me.Element21.Name = "Element21"
Me.Element21.Size = New System.Drawing.Size(24, 33)
Me.Element21.TabIndex = 71
Me.Element21.UseVisualStyleBackColor = False
'
'Element20
'
Me.Element20.BackColor = System.Drawing.Color.White
Me.Element20.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element20.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element20.Location = New System.Drawing.Point(861, 112)
Me.Element20.Name = "Element20"
Me.Element20.Size = New System.Drawing.Size(24, 33)
Me.Element20.TabIndex = 70
Me.Element20.UseVisualStyleBackColor = False
'
'Element19
'
Me.Element19.BackColor = System.Drawing.Color.White
Me.Element19.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element19.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element19.Location = New System.Drawing.Point(836, 112)
Me.Element19.Name = "Element19"
Me.Element19.Size = New System.Drawing.Size(24, 33)
Me.Element19.TabIndex = 69
Me.Element19.UseVisualStyleBackColor = False
'
'Element18
'
Me.Element18.BackColor = System.Drawing.Color.White
Me.Element18.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element18.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element18.Location = New System.Drawing.Point(1261, 78)
Me.Element18.Name = "Element18"
Me.Element18.Size = New System.Drawing.Size(24, 33)
Me.Element18.TabIndex = 68
Me.Element18.UseVisualStyleBackColor = False
'
'Element17
'
Me.Element17.BackColor = System.Drawing.Color.White
Me.Element17.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element17.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element17.Location = New System.Drawing.Point(1236, 78)
Me.Element17.Name = "Element17"
Me.Element17.Size = New System.Drawing.Size(24, 33)
Me.Element17.TabIndex = 67
Me.Element17.UseVisualStyleBackColor = False
'
'Element16
'
Me.Element16.BackColor = System.Drawing.Color.White
Me.Element16.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element16.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element16.Location = New System.Drawing.Point(1211, 78)
Me.Element16.Name = "Element16"
Me.Element16.Size = New System.Drawing.Size(24, 33)
Me.Element16.TabIndex = 66
Me.Element16.UseVisualStyleBackColor = False
'
'Element15
'
Me.Element15.BackColor = System.Drawing.Color.White
Me.Element15.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element15.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element15.Location = New System.Drawing.Point(1186, 78)
Me.Element15.Name = "Element15"
Me.Element15.Size = New System.Drawing.Size(24, 33)
Me.Element15.TabIndex = 65
Me.Element15.UseVisualStyleBackColor = False
'
'Element14
'
Me.Element14.BackColor = System.Drawing.Color.White
Me.Element14.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element14.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element14.Location = New System.Drawing.Point(1161, 78)
Me.Element14.Name = "Element14"
Me.Element14.Size = New System.Drawing.Size(24, 33)
Me.Element14.TabIndex = 64
Me.Element14.UseVisualStyleBackColor = False
'
'Element13
'
Me.Element13.BackColor = System.Drawing.Color.White
Me.Element13.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element13.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element13.Location = New System.Drawing.Point(1136, 78)
Me.Element13.Name = "Element13"
Me.Element13.Size = New System.Drawing.Size(24, 33)
Me.Element13.TabIndex = 63
Me.Element13.UseVisualStyleBackColor = False
'
'Element12
'
Me.Element12.BackColor = System.Drawing.Color.White
Me.Element12.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element12.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element12.Location = New System.Drawing.Point(861, 78)
Me.Element12.Name = "Element12"
Me.Element12.Size = New System.Drawing.Size(24, 33)
Me.Element12.TabIndex = 62
Me.Element12.UseVisualStyleBackColor = False
'
'Element11
'
Me.Element11.BackColor = System.Drawing.Color.White
Me.Element11.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element11.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element11.Location = New System.Drawing.Point(836, 78)
Me.Element11.Name = "Element11"
Me.Element11.Size = New System.Drawing.Size(24, 33)
Me.Element11.TabIndex = 61
Me.Element11.UseVisualStyleBackColor = False
'
'Element10
'
Me.Element10.BackColor = System.Drawing.Color.White
Me.Element10.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element10.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element10.Location = New System.Drawing.Point(1261, 44)
Me.Element10.Name = "Element10"
Me.Element10.Size = New System.Drawing.Size(24, 33)
Me.Element10.TabIndex = 60
Me.Element10.UseVisualStyleBackColor = False
'
'Element9
'
Me.Element9.BackColor = System.Drawing.Color.White
Me.Element9.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element9.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element9.Location = New System.Drawing.Point(1236, 44)
Me.Element9.Name = "Element9"
Me.Element9.Size = New System.Drawing.Size(24, 33)
Me.Element9.TabIndex = 59
Me.Element9.UseVisualStyleBackColor = False
'
'Element8
'
Me.Element8.BackColor = System.Drawing.Color.White
Me.Element8.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element8.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element8.Location = New System.Drawing.Point(1211, 44)
Me.Element8.Name = "Element8"
Me.Element8.Size = New System.Drawing.Size(24, 33)
Me.Element8.TabIndex = 58
Me.Element8.UseVisualStyleBackColor = False
'
'Element7
'
Me.Element7.BackColor = System.Drawing.Color.White
Me.Element7.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element7.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element7.Location = New System.Drawing.Point(1186, 44)
Me.Element7.Name = "Element7"
Me.Element7.Size = New System.Drawing.Size(24, 33)
Me.Element7.TabIndex = 57
Me.Element7.UseVisualStyleBackColor = False
'
'Element6
'
Me.Element6.BackColor = System.Drawing.Color.White
Me.Element6.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element6.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element6.Location = New System.Drawing.Point(1161, 44)
Me.Element6.Name = "Element6"
Me.Element6.Size = New System.Drawing.Size(24, 33)
Me.Element6.TabIndex = 56
Me.Element6.UseVisualStyleBackColor = False
'
'Element5
'
Me.Element5.BackColor = System.Drawing.Color.White
Me.Element5.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element5.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element5.Location = New System.Drawing.Point(1136, 44)
Me.Element5.Name = "Element5"
Me.Element5.Size = New System.Drawing.Size(24, 33)
Me.Element5.TabIndex = 55
Me.Element5.UseVisualStyleBackColor = False
'
'Element4
'
Me.Element4.BackColor = System.Drawing.Color.White
Me.Element4.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element4.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element4.Location = New System.Drawing.Point(861, 44)
Me.Element4.Name = "Element4"
Me.Element4.Size = New System.Drawing.Size(24, 33)
Me.Element4.TabIndex = 54
Me.Element4.UseVisualStyleBackColor = False
'
'Element3
'
Me.Element3.BackColor = System.Drawing.Color.White
Me.Element3.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element3.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element3.Location = New System.Drawing.Point(836, 44)
Me.Element3.Name = "Element3"
Me.Element3.Size = New System.Drawing.Size(24, 33)
Me.Element3.TabIndex = 53
Me.Element3.UseVisualStyleBackColor = False
'
'Element2
'
Me.Element2.BackColor = System.Drawing.Color.White
Me.Element2.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element2.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element2.Location = New System.Drawing.Point(1261, 10)
Me.Element2.Name = "Element2"
Me.Element2.Size = New System.Drawing.Size(24, 33)
Me.Element2.TabIndex = 52
Me.Element2.UseVisualStyleBackColor = False
'
'Element1
'
Me.Element1.BackColor = System.Drawing.Color.White
Me.Element1.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Element1.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Element1.Location = New System.Drawing.Point(836, 10)
Me.Element1.Name = "Element1"
Me.Element1.Size = New System.Drawing.Size(24, 33)
Me.Element1.TabIndex = 48
Me.Element1.UseVisualStyleBackColor = False
'
'Button27
'
Me.Button27.FlatAppearance.BorderColor = System.Drawing.Color.Silver
Me.Button27.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.Button27.Location = New System.Drawing.Point(239, 826)
Me.Button27.Name = "Button27"
Me.Button27.Size = New System.Drawing.Size(100, 38)
Me.Button27.TabIndex = 165
Me.Button27.Text = "MAC pure elts"
Me.Button27.UseVisualStyleBackColor = True
'
'Form1
'
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
Me.ClientSize = New System.Drawing.Size(1288, 624)
Me.Controls.Add(Me.Button27)
Me.Controls.Add(Me.Button26)
Me.Controls.Add(Me.Button25)
Me.Controls.Add(Me.Label5)
Me.Controls.Add(Me.TextBox1)
Me.Controls.Add(Me.CheckBox14)
Me.Controls.Add(Me.CheckBox13)
Me.Controls.Add(Me.GroupBox9)
Me.Controls.Add(Me.Button24)
Me.Controls.Add(Me.Button23)
Me.Controls.Add(Me.Button22)
Me.Controls.Add(Me.Button21)
Me.Controls.Add(Me.Button20)
Me.Controls.Add(Me.Button19)
Me.Controls.Add(Me.Button18)
Me.Controls.Add(Me.TextBox13)
Me.Controls.Add(Me.Button17)
Me.Controls.Add(Me.Element99)
Me.Controls.Add(Me.Element98)
Me.Controls.Add(Me.Element97)
Me.Controls.Add(Me.Element96)
Me.Controls.Add(Me.Element95)
Me.Controls.Add(Me.Element94)
Me.Controls.Add(Me.Element93)
Me.Controls.Add(Me.Element92)
Me.Controls.Add(Me.Element91)
Me.Controls.Add(Me.Element90)
Me.Controls.Add(Me.Element71)
Me.Controls.Add(Me.Element70)
Me.Controls.Add(Me.Element69)
Me.Controls.Add(Me.Element68)
Me.Controls.Add(Me.Element67)
Me.Controls.Add(Me.Element66)
Me.Controls.Add(Me.Element65)
Me.Controls.Add(Me.Element64)
Me.Controls.Add(Me.Element63)
Me.Controls.Add(Me.Element62)
Me.Controls.Add(Me.Element61)
Me.Controls.Add(Me.Element60)
Me.Controls.Add(Me.Element59)
Me.Controls.Add(Me.Element58)
Me.Controls.Add(Me.Element89)
Me.Controls.Add(Me.Element88)
Me.Controls.Add(Me.Element87)
Me.Controls.Add(Me.Element86)
Me.Controls.Add(Me.Element85)
Me.Controls.Add(Me.Element84)
Me.Controls.Add(Me.Element83)
Me.Controls.Add(Me.Element82)
Me.Controls.Add(Me.Element81)
Me.Controls.Add(Me.Element80)
Me.Controls.Add(Me.Element79)
Me.Controls.Add(Me.Element78)
Me.Controls.Add(Me.Element77)
Me.Controls.Add(Me.Element76)
Me.Controls.Add(Me.Element75)
Me.Controls.Add(Me.Element74)
Me.Controls.Add(Me.Element73)
Me.Controls.Add(Me.Element72)
Me.Controls.Add(Me.Element57)
Me.Controls.Add(Me.Element56)
Me.Controls.Add(Me.Element55)
Me.Controls.Add(Me.Element54)
Me.Controls.Add(Me.Element53)
Me.Controls.Add(Me.Element52)
Me.Controls.Add(Me.Element51)
Me.Controls.Add(Me.Element50)
Me.Controls.Add(Me.Element49)
Me.Controls.Add(Me.Element48)
Me.Controls.Add(Me.Element47)
Me.Controls.Add(Me.Element46)
Me.Controls.Add(Me.Element45)
Me.Controls.Add(Me.Element44)
Me.Controls.Add(Me.Element43)
Me.Controls.Add(Me.Element42)
Me.Controls.Add(Me.Element41)
Me.Controls.Add(Me.Element40)
Me.Controls.Add(Me.Element39)
Me.Controls.Add(Me.Element38)
Me.Controls.Add(Me.Element37)
Me.Controls.Add(Me.Element36)
Me.Controls.Add(Me.Element35)
Me.Controls.Add(Me.Element34)
Me.Controls.Add(Me.Element33)
Me.Controls.Add(Me.Element32)
Me.Controls.Add(Me.Element31)
Me.Controls.Add(Me.Element30)
Me.Controls.Add(Me.Element29)
Me.Controls.Add(Me.Element28)
Me.Controls.Add(Me.Element27)
Me.Controls.Add(Me.Element26)
Me.Controls.Add(Me.Element25)
Me.Controls.Add(Me.Element24)
Me.Controls.Add(Me.Element23)
Me.Controls.Add(Me.Element22)
Me.Controls.Add(Me.Element21)
Me.Controls.Add(Me.Element20)
Me.Controls.Add(Me.Element19)
Me.Controls.Add(Me.Element18)
Me.Controls.Add(Me.Element17)
Me.Controls.Add(Me.Element16)
Me.Controls.Add(Me.Element15)
Me.Controls.Add(Me.Element14)
Me.Controls.Add(Me.Element13)
Me.Controls.Add(Me.Element12)
Me.Controls.Add(Me.Element11)
Me.Controls.Add(Me.Element10)
Me.Controls.Add(Me.Element9)
Me.Controls.Add(Me.Element8)
Me.Controls.Add(Me.Element7)
Me.Controls.Add(Me.Element6)
Me.Controls.Add(Me.Element5)
Me.Controls.Add(Me.Element4)
Me.Controls.Add(Me.Element3)
Me.Controls.Add(Me.Element2)
Me.Controls.Add(Me.Element1)
Me.Controls.Add(Me.Label2)
Me.Controls.Add(Me.Button15)
Me.Controls.Add(Me.Button14)
Me.Controls.Add(Me.GroupBox8)
Me.Controls.Add(Me.GroupBox7)
Me.Controls.Add(Me.GroupBox4)
Me.Controls.Add(Me.Label1)
Me.Controls.Add(Me.Button11)
Me.Controls.Add(Me.Button10)
Me.Controls.Add(Me.Button9)
Me.Controls.Add(Me.Button5)
Me.Controls.Add(Me.Button1)
Me.Controls.Add(Me.TextBox6)
Me.Controls.Add(Me.TextBox2)
Me.Controls.Add(Me.Button8)
Me.Controls.Add(Me.Button7)
Me.Controls.Add(Me.Button6)
Me.Controls.Add(Me.Button4)
Me.Controls.Add(Me.Label13)
Me.Controls.Add(Me.TextBox9)
Me.Controls.Add(Me.TextBox10)
Me.Controls.Add(Me.Label12)
Me.Controls.Add(Me.Label11)
Me.Controls.Add(Me.Label10)
Me.Controls.Add(Me.Chart1)
Me.Controls.Add(Me.TextBox8)
Me.Controls.Add(Me.TextBox7)
Me.Controls.Add(Me.GroupBox6)
Me.Controls.Add(Me.GroupBox5)
Me.Controls.Add(Me.GroupBox3)
Me.Controls.Add(Me.GroupBox1)
Me.Controls.Add(Me.TextBox11)
Me.Controls.Add(Me.TextBox12)
Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon)
Me.Name = "Form1"
Me.Text = "Form1"
Me.GroupBox1.ResumeLayout(False)
Me.GroupBox1.PerformLayout()
Me.GroupBox3.ResumeLayout(False)
Me.GroupBox3.PerformLayout()
Me.GroupBox5.ResumeLayout(False)
Me.GroupBox5.PerformLayout()
CType(Me.DataGridView2, System.ComponentModel.ISupportInitialize).EndInit()
CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).EndInit()
Me.GroupBox6.ResumeLayout(False)
Me.GroupBox6.PerformLayout()
CType(Me.Chart1, System.ComponentModel.ISupportInitialize).EndInit()
Me.GroupBox4.ResumeLayout(False)
Me.GroupBox7.ResumeLayout(False)
Me.GroupBox7.PerformLayout()
Me.GroupBox8.ResumeLayout(False)
Me.GroupBox8.PerformLayout()
Me.GroupBox9.ResumeLayout(False)
Me.GroupBox9.PerformLayout()
Me.ResumeLayout(False)
Me.PerformLayout()
End Sub
Friend WithEvents GroupBox1 As GroupBox
Friend WithEvents TextBox1 As TextBox
Friend WithEvents GroupBox3 As GroupBox
Friend WithEvents CheckBox8 As CheckBox
Friend WithEvents CheckBox10 As CheckBox
Friend WithEvents CheckBox9 As CheckBox
Friend WithEvents CheckBox11 As CheckBox
Friend WithEvents GroupBox5 As GroupBox
Friend WithEvents TextBox3 As TextBox
Friend WithEvents Label6 As Label
Friend WithEvents ListBox1 As ListBox
Friend WithEvents DataGridView1 As DataGridView
Friend WithEvents CheckBox12 As CheckBox
Friend WithEvents TextBox4 As TextBox
Friend WithEvents Label7 As Label
Friend WithEvents CheckBox16 As CheckBox
Friend WithEvents CheckBox15 As CheckBox
Friend WithEvents TextBox5 As TextBox
Friend WithEvents CheckBox17 As CheckBox
Friend WithEvents Label4 As Label
Friend WithEvents Label8 As Label
Friend WithEvents GroupBox6 As GroupBox
Friend WithEvents Label3 As Label
Friend WithEvents Label9 As Label
Friend WithEvents Button2 As Button
Friend WithEvents Chart1 As DataVisualization.Charting.Chart
Friend WithEvents CheckBox18 As CheckBox
Friend WithEvents Button3 As Button
Friend WithEvents TextBox7 As TextBox
Friend WithEvents TextBox8 As TextBox
Friend WithEvents Label10 As Label
Friend WithEvents Label11 As Label
Friend WithEvents Label12 As Label
Friend WithEvents Label13 As Label
Friend WithEvents TextBox9 As TextBox
Friend WithEvents TextBox10 As TextBox
Friend WithEvents Button4 As Button
Friend WithEvents Button6 As Button
Friend WithEvents Button7 As Button
Friend WithEvents TextBox12 As TextBox
Friend WithEvents SaveFileDialog1 As SaveFileDialog
Friend WithEvents Button8 As Button
Friend WithEvents CheckBox2 As CheckBox
Friend WithEvents CheckBox1 As CheckBox
Friend WithEvents TextBox2 As TextBox
Friend WithEvents TextBox6 As TextBox
Friend WithEvents Button1 As Button
Friend WithEvents Button5 As Button
Friend WithEvents TextBox11 As TextBox
Friend WithEvents Button9 As Button
Friend WithEvents Button10 As Button
Friend WithEvents Button11 As Button
Friend WithEvents DataGridView2 As DataGridView
Friend WithEvents DataGridViewTextBoxColumn1 As DataGridViewTextBoxColumn
Friend WithEvents DataGridViewTextBoxColumn3 As DataGridViewTextBoxColumn
Friend WithEvents Button12 As Button
Friend WithEvents Button13 As Button
Friend WithEvents Label1 As Label
Friend WithEvents GroupBox4 As GroupBox
Friend WithEvents GroupBox7 As GroupBox
Friend WithEvents CheckBox4 As CheckBox
Friend WithEvents CheckBox5 As CheckBox
Friend WithEvents GroupBox8 As GroupBox
Friend WithEvents CheckBox6 As CheckBox
Friend WithEvents CheckBox7 As CheckBox
Friend WithEvents Button14 As Button
Friend WithEvents Button15 As Button
Friend WithEvents Elt As DataGridViewTextBoxColumn
Friend WithEvents Line As DataGridViewTextBoxColumn
Friend WithEvents kratio As DataGridViewTextBoxColumn
Friend WithEvents k_ratio_measured As DataGridViewTextBoxColumn
Friend WithEvents Err_kratio As DataGridViewTextBoxColumn
Friend WithEvents E As DataGridViewTextBoxColumn
Friend WithEvents Std As DataGridViewTextBoxColumn
Friend WithEvents Label2 As Label
Friend WithEvents BackgroundWorker1 As System.ComponentModel.BackgroundWorker
Friend WithEvents Button16 As Button
Friend Element1 As Class1.TestB
Friend Element2 As Class1.TestB
Friend Element3 As Class1.TestB
Friend Element4 As Class1.TestB
Friend Element5 As Class1.TestB
Friend Element6 As Class1.TestB
Friend Element7 As Class1.TestB
Friend Element8 As Class1.TestB
Friend Element9 As Class1.TestB
Friend Element10 As Class1.TestB
Friend Element11 As Class1.TestB
Friend Element12 As Class1.TestB
Friend Element13 As Class1.TestB
Friend Element14 As Class1.TestB
Friend Element15 As Class1.TestB
Friend Element16 As Class1.TestB
Friend Element17 As Class1.TestB
Friend Element18 As Class1.TestB
Friend Element19 As Class1.TestB
Friend Element20 As Class1.TestB
Friend Element21 As Class1.TestB
Friend Element22 As Class1.TestB
Friend Element23 As Class1.TestB
Friend Element24 As Class1.TestB
Friend Element25 As Class1.TestB
Friend Element26 As Class1.TestB
Friend Element27 As Class1.TestB
Friend Element28 As Class1.TestB
Friend Element29 As Class1.TestB
Friend Element30 As Class1.TestB
Friend Element31 As Class1.TestB
Friend Element32 As Class1.TestB
Friend Element33 As Class1.TestB
Friend Element34 As Class1.TestB
Friend Element35 As Class1.TestB
Friend Element36 As Class1.TestB
Friend Element37 As Class1.TestB
Friend Element38 As Class1.TestB
Friend Element39 As Class1.TestB
Friend Element40 As Class1.TestB
Friend Element41 As Class1.TestB
Friend Element42 As Class1.TestB
Friend Element43 As Class1.TestB
Friend Element44 As Class1.TestB
Friend Element45 As Class1.TestB
Friend Element46 As Class1.TestB
Friend Element47 As Class1.TestB
Friend Element48 As Class1.TestB
Friend Element49 As Class1.TestB
Friend Element50 As Class1.TestB
Friend Element51 As Class1.TestB
Friend Element52 As Class1.TestB
Friend Element53 As Class1.TestB
Friend Element54 As Class1.TestB
Friend Element55 As Class1.TestB
Friend Element56 As Class1.TestB
Friend Element57 As Class1.TestB
Friend Element72 As Class1.TestB
Friend Element73 As Class1.TestB
Friend Element74 As Class1.TestB
Friend Element75 As Class1.TestB
Friend Element76 As Class1.TestB
Friend Element77 As Class1.TestB
Friend Element78 As Class1.TestB
Friend Element79 As Class1.TestB
Friend Element80 As Class1.TestB
Friend Element81 As Class1.TestB
Friend Element82 As Class1.TestB
Friend Element83 As Class1.TestB
Friend Element84 As Class1.TestB
Friend Element85 As Class1.TestB
Friend Element86 As Class1.TestB
Friend Element87 As Class1.TestB
Friend Element88 As Class1.TestB
Friend Element89 As Class1.TestB
Friend Element58 As Class1.TestB
Friend Element59 As Class1.TestB
Friend Element60 As Class1.TestB
Friend Element61 As Class1.TestB
Friend Element62 As Class1.TestB
Friend Element63 As Class1.TestB
Friend Element64 As Class1.TestB
Friend Element65 As Class1.TestB
Friend Element66 As Class1.TestB
Friend Element67 As Class1.TestB
Friend Element68 As Class1.TestB
Friend Element69 As Class1.TestB
Friend Element70 As Class1.TestB
Friend Element71 As Class1.TestB
Friend Element90 As Class1.TestB
Friend Element91 As Class1.TestB
Friend Element92 As Class1.TestB
Friend Element93 As Class1.TestB
Friend Element94 As Class1.TestB
Friend Element95 As Class1.TestB
Friend Element96 As Class1.TestB
Friend Element97 As Class1.TestB
Friend Element98 As Class1.TestB
Friend Element99 As Class1.TestB
Friend WithEvents Button17 As Button
Friend WithEvents TextBox13 As TextBox
Friend WithEvents Button18 As Button
Friend WithEvents Button19 As Button
Friend WithEvents CheckBox3 As CheckBox
Friend WithEvents Button20 As Button
Friend WithEvents Button21 As Button
Friend WithEvents Button22 As Button
Friend WithEvents Button23 As Button
Friend WithEvents Button24 As Button
Friend WithEvents GroupBox9 As GroupBox
Friend WithEvents Label15 As Label
Friend WithEvents TextBox16 As TextBox
Friend WithEvents Label14 As Label
Friend WithEvents Label16 As Label
Friend WithEvents TextBox15 As TextBox
Friend WithEvents TextBox14 As TextBox
Friend WithEvents TextBox17 As TextBox
Friend WithEvents CheckBox13 As CheckBox
Friend WithEvents CheckBox14 As CheckBox
Friend WithEvents CheckBox19 As CheckBox
Friend WithEvents Label5 As Label
Friend WithEvents ToolTip1 As ToolTip
Friend WithEvents CheckBox20 As CheckBox
Friend WithEvents Label17 As Label
Friend WithEvents CheckBox21 As CheckBox
Friend WithEvents Label19 As Label
Friend WithEvents TextBox19 As TextBox
Friend WithEvents Label18 As Label
Friend WithEvents TextBox18 As TextBox
Friend WithEvents CheckBox22 As CheckBox
Friend WithEvents Button25 As Button
Friend WithEvents Button26 As Button
Friend WithEvents Button27 As Button
End Class
|
|
Module : Database.MSSqlServer.Test.Enumerator
Copyright : (c) 2004 Oleg Kiselyov, Alistair Bayley
License : BSD-style
Maintainer : oleg@pobox.com, alistair@abayley.org
Stability : experimental
Portability : non-portable
> {-# OPTIONS -fglasgow-exts -fallow-overlapping-instances #-}
> module Database.MSSqlServer.Test.Enumerator (runTest) where
> --import qualified Database.MSSqlServer.Enumerator as MSSql (connect, disconnect)
> import qualified Database.MSSqlServer.Test.MSSqlFunctions as Low
> import Database.Test.Enumerator as Enum
> import Database.Test.Performance as Perf
> import Database.Enumerator
> import Control.Monad (when)
> runTest :: Perf.ShouldRunTests -> [String] -> IO ()
> runTest runPerf args = catchDB ( do
> let [user, pswd, dbname ] = args
> Low.runTest args
> {-
> sess <- MSSql.connect user pswd dbname
> Enum.runTests dateMSSql sess
> when (runPerf == Perf.RunTests) (Perf.runTests sess)
> MSSql.disconnect sess
> -}
> ) basicDBExceptionReporter
|
Shader "LC/OC_vertex_light_Fx"
{
Properties
{
_DiffuseColor("_DiffuseColor", Color) = (1,0,0,1)
}
SubShader
{
Tags
{
"Queue"="Geometry"
"IgnoreProjector"="False"
"RenderType"="Opaque"
}
Cull Back
ZWrite On
ZTest LEqual
ColorMask RGBA
Fog{
}
CGPROGRAM
#pragma surface surf BlinnPhongEditor vertex:vert
#pragma target 2.0
float4 _DiffuseColor;
struct EditorSurfaceOutput {
half3 Albedo;
half3 Normal;
half3 Emission;
half3 Gloss;
half Specular;
half Alpha;
half4 Custom;
};
inline half4 LightingBlinnPhongEditor_PrePass (EditorSurfaceOutput s, half4 light)
{
half3 spec = light.a * s.Gloss;
half4 c;
c.rgb = (s.Albedo * light.rgb + light.rgb * spec);
c.a = s.Alpha;
return c;
}
inline half4 LightingBlinnPhongEditor (EditorSurfaceOutput s, half3 lightDir, half3 viewDir, half atten)
{
half3 h = normalize (lightDir + viewDir);
half diff = max (0, dot ( lightDir, s.Normal ));
float nh = max (0, dot (s.Normal, h));
float spec = pow (nh, s.Specular*128.0);
half4 res;
res.rgb = _LightColor0.rgb * diff;
res.w = spec * Luminance (_LightColor0.rgb);
res *= atten * 2.0;
return LightingBlinnPhongEditor_PrePass( s, res );
}
struct Input {
float4 color : COLOR;
};
void vert (inout appdata_full v, out Input o) {
UNITY_INITIALIZE_OUTPUT(Input,o);
float4 Splat0=_SinTime.w;
float4 Abs0=abs(Splat0);
float4 Multiply0=Abs0 * float4( v.normal.x, v.normal.y, v.normal.z, 1.0 );
float4 Add0=Multiply0 + v.vertex;
float4 VertexOutputMaster0_1_NoInput = float4(0,0,0,0);
float4 VertexOutputMaster0_2_NoInput = float4(0,0,0,0);
float4 VertexOutputMaster0_3_NoInput = float4(0,0,0,0);
v.vertex = Add0;
}
void surf (Input IN, inout EditorSurfaceOutput o) {
o.Normal = float3(0.0,0.0,1.0);
o.Alpha = 1.0;
o.Albedo = 0.0;
o.Emission = 0.0;
o.Gloss = 0.0;
o.Specular = 0.0;
o.Custom = 0.0;
float4 Master0_1_NoInput = float4(0,0,1,1);
float4 Master0_2_NoInput = float4(0,0,0,0);
float4 Master0_3_NoInput = float4(0,0,0,0);
float4 Master0_4_NoInput = float4(0,0,0,0);
float4 Master0_5_NoInput = float4(1,1,1,1);
float4 Master0_7_NoInput = float4(0,0,0,0);
float4 Master0_6_NoInput = float4(1,1,1,1);
o.Albedo = _DiffuseColor;
o.Normal = normalize(o.Normal);
}
ENDCG
}
Fallback "Diffuse"
} |
'use strict';
var request = require('supertest'),
assert = require('assert'),
config = require('../../../config/config'),
_ = require('lodash'),
jwt = require('jsonwebtoken'),
mongoose = require('mongoose'),
app = require('../../../config/express'),
Tvdscustomer = mongoose.model('Tvdscustomer');
var credentials,
token,
mockup;
describe('Tvdscustomer CRUD routes tests', function () {
before(function (done) {
mockup = {
title: 'นาย',
firstName: 'ประหยัด',
lastName: 'จันทร์อังคาร',
// displayName: 'ประหยัด จันทร์อังคาร',
persanalId: '1180233302547',
isShareHolder: false,
mobileNo1: '0965874123',
mobileNo2: '0567896521',
mobileNo3: '0874563219',
addressLine1: '26/1',
addressStreet: 'วงแหวนลำลูกกา',
addressSubDistrict: 'คูคต',
addressDistrict: 'ลำลูกกา',
addressProvince: 'ปทุมธานี',
addressPostCode: '12130',
lineUserId: 'lineuserid',
latitude: '15.50236541',
longitude: '100.45678968'
};
credentials = {
username: 'username',
password: 'password',
firstname: 'first name',
lastname: 'last name',
email: 'test@email.com',
roles: ['user']
};
token = jwt.sign(_.omit(credentials, 'password'), config.jwt.secret, {
expiresIn: 2 * 60 * 60 * 1000
});
done();
});
it('should be Tvdscustomer get use token', (done)=>{
request(app)
.get('/api/tvdscustomers')
.set('Authorization', 'Bearer ' + token)
.expect(200)
.end((err, res)=>{
if (err) {
return done(err);
}
var resp = res.body;
done();
});
});
it('should be Tvdscustomer get by id', function (done) {
request(app)
.post('/api/tvdscustomers')
.set('Authorization', 'Bearer ' + token)
.send(mockup)
.expect(200)
.end(function (err, res) {
if (err) {
return done(err);
}
var resp = res.body;
request(app)
.get('/api/tvdscustomers/' + resp.data._id)
.set('Authorization', 'Bearer ' + token)
.expect(200)
.end(function (err, res) {
if (err) {
return done(err);
}
var resp = res.body;
// console.log(resp.data)
assert.equal(resp.status, 200);
assert.equal(resp.data.title, mockup.title);
assert.equal(resp.data.firstName, mockup.firstName);
assert.equal(resp.data.lastName, mockup.lastName);
// assert.equal(resp.data.displayName, mockup.displayName);
assert.equal(resp.data.persanalId, mockup.persanalId);
assert.equal(resp.data.isShareHolder, mockup.isShareHolder);
assert.equal(resp.data.mobileNo1, mockup.mobileNo1);
assert.equal(resp.data.mobileNo2, mockup.mobileNo2);
assert.equal(resp.data.mobileNo3, mockup.mobileNo3);
assert.equal(resp.data.addressLine1, mockup.addressLine1);
assert.equal(resp.data.addressStreet, mockup.addressStreet);
assert.equal(resp.data.addressSubDistrict, mockup.addressSubDistrict);
assert.equal(resp.data.addressDistrict, mockup.addressDistrict);
assert.equal(resp.data.addressProvince, mockup.addressProvince);
assert.equal(resp.data.addressPostCode, mockup.addressPostCode);
assert.equal(resp.data.lineUserId, mockup.lineUserId);
assert.equal(resp.data.latitude, mockup.latitude);
assert.equal(resp.data.longitude, mockup.longitude);
done();
});
});
});
it('should be Tvdscustomer post use token', (done)=>{
request(app)
.post('/api/tvdscustomers')
.set('Authorization', 'Bearer ' + token)
.send(mockup)
.expect(200)
.end(function (err, res) {
if (err) {
return done(err);
}
var resp = res.body;
assert.equal(resp.data.title, mockup.title);
assert.equal(resp.data.firstName, mockup.firstName);
assert.equal(resp.data.lastName, mockup.lastName);
// assert.equal(resp.data.displayName, mockup.displayName);
assert.equal(resp.data.persanalId, mockup.persanalId);
assert.equal(resp.data.isShareHolder, mockup.isShareHolder);
assert.equal(resp.data.mobileNo1, mockup.mobileNo1);
assert.equal(resp.data.mobileNo2, mockup.mobileNo2);
assert.equal(resp.data.mobileNo3, mockup.mobileNo3);
assert.equal(resp.data.addressLine1, mockup.addressLine1);
assert.equal(resp.data.addressStreet, mockup.addressStreet);
assert.equal(resp.data.addressSubDistrict, mockup.addressSubDistrict);
assert.equal(resp.data.addressDistrict, mockup.addressDistrict);
assert.equal(resp.data.addressProvince, mockup.addressProvince);
assert.equal(resp.data.addressPostCode, mockup.addressPostCode);
assert.equal(resp.data.lineUserId, mockup.lineUserId);
assert.equal(resp.data.latitude, mockup.latitude);
assert.equal(resp.data.longitude, mockup.longitude);
done();
});
});
it('should be tvdscustomer put use token', function (done) {
request(app)
.post('/api/tvdscustomers')
.set('Authorization', 'Bearer ' + token)
.send(mockup)
.expect(200)
.end(function (err, res) {
if (err) {
return done(err);
}
var resp = res.body;
var update = {
title: 'นางสาว'
}
request(app)
.put('/api/tvdscustomers/' + resp.data._id)
.set('Authorization', 'Bearer ' + token)
.send(update)
.expect(200)
.end(function (err, res) {
if (err) {
return done(err);
}
var resp = res.body;
assert.equal(resp.data.title, update.title);
assert.equal(resp.data.firstName, mockup.firstName);
assert.equal(resp.data.lastName, mockup.lastName);
// assert.equal(resp.data.displayName, mockup.displayName);
assert.equal(resp.data.persanalId, mockup.persanalId);
assert.equal(resp.data.isShareHolder, mockup.isShareHolder);
assert.equal(resp.data.mobileNo1, mockup.mobileNo1);
assert.equal(resp.data.mobileNo2, mockup.mobileNo2);
assert.equal(resp.data.mobileNo3, mockup.mobileNo3);
assert.equal(resp.data.addressLine1, mockup.addressLine1);
assert.equal(resp.data.addressStreet, mockup.addressStreet);
assert.equal(resp.data.addressSubDistric, mockup.addressSubDistric);
assert.equal(resp.data.addressDistrict, mockup.addressDistrict);
assert.equal(resp.data.addressProvince, mockup.addressProvince);
assert.equal(resp.data.addressPostCode, mockup.addressPostCode);
assert.equal(resp.data.lineUserId, mockup.lineUserId);
assert.equal(resp.data.latitude, mockup.latitude);
assert.equal(resp.data.longitude, mockup.longitude);
done();
});
});
});
it('should be tvdscustomer delete use token', function (done) {
request(app)
.post('/api/tvdscustomers')
.set('Authorization', 'Bearer ' + token)
.send(mockup)
.expect(200)
.end(function (err, res) {
if (err) {
return done(err);
}
var resp = res.body;
request(app)
.delete('/api/tvdscustomers/' + resp.data._id)
.set('Authorization', 'Bearer ' + token)
.expect(200)
.end(done);
});
});
xit('should be tvdscustomer get not use token', (done)=>{
request(app)
.get('/api/tvdscustomers')
.expect(403)
.expect({
status: 403,
message: 'User is not authorized'
})
.end(done);
});
xit('should be tvdscustomer post not use token', function (done) {
request(app)
.post('/api/tvdscustomers')
.send(mockup)
.expect(403)
.expect({
status: 403,
message: 'User is not authorized'
})
.end(done);
});
xit('should be tvdscustomer put not use token', function (done) {
request(app)
.post('/api/tvdscustomers')
.set('Authorization', 'Bearer ' + token)
.send(mockup)
.expect(200)
.end(function (err, res) {
if (err) {
return done(err);
}
var resp = res.body;
var update = {
name: 'name update'
}
request(app)
.put('/api/tvdscustomers/' + resp.data._id)
.send(update)
.expect(403)
.expect({
status: 403,
message: 'User is not authorized'
})
.end(done);
});
});
xit('should be tvdscustomer delete not use token', function (done) {
request(app)
.post('/api/tvdscustomers')
.set('Authorization', 'Bearer ' + token)
.send(mockup)
.expect(200)
.end(function (err, res) {
if (err) {
return done(err);
}
var resp = res.body;
request(app)
.delete('/api/tvdscustomers/' + resp.data._id)
.expect(403)
.expect({
status: 403,
message: 'User is not authorized'
})
.end(done);
});
});
afterEach(function (done) {
Tvdscustomer.deleteMany().exec(done);
});
}); |
; A020112: Ceiling of GAMMA(n+4/9)/GAMMA(4/9).
; Submitted by Christian Krause
; 1,1,1,2,6,25,131,843,6275,52989,500443,5226842,59818301,744405516,10008118595,144561713038,2232675345795,36715105686391,640474621418149,11813198572823623,229701083360459335,4696111037591613053
mov $1,1
mov $3,1
lpb $0
mov $2,$0
sub $0,1
mul $2,18
sub $2,10
mul $1,$2
mul $3,18
lpe
add $3,1
div $1,$3
mov $0,$1
add $0,1
|
module par-swap.dpg-e-view where
open import par-swap
open import par-swap.properties
open import par-swap.confluent
open import par-swap.dpg-pot
open import utility
open import Esterel.Lang
open import Esterel.Lang.Binding
open import Esterel.Lang.Properties
open import Esterel.Lang.CanFunction
open import Esterel.Lang.CanFunction.Plug
open import Esterel.Environment as Env
open import Esterel.Context
open import Data.Product
open import Data.Sum
open import Data.Bool
open import Data.List using ([] ; [_] ; _∷_ ; List ; _++_)
open import Data.Empty
open import sn-calculus
open import context-properties -- get view, E-views
DPG-E-view :
∀ {E C r₁ r₂ p q θ θ' pin qin A A'} ->
(peq : p ≐ E ⟦ pin ⟧e) ->
(qeq : q ≐ E ⟦ qin ⟧e) ->
p ≐ C ⟦ r₁ ∥ r₂ ⟧c ->
(psn⟶₁q : ρ⟨ θ , A ⟩· p sn⟶₁ ρ⟨ θ' , A' ⟩· q) ->
->E-view psn⟶₁q peq qeq ->
Σ[ d ∈ Term ]
Σ[ sn⟶₁d ∈ ρ⟨ θ , A ⟩· C ⟦ r₂ ∥ r₁ ⟧c sn⟶₁ ρ⟨ θ' , A' ⟩· d ]
Σ[ ∥Rd ∈ q ∥R* d ]
Σ[ E′ ∈ List EvaluationContext1 ]
Σ[ pin′ ∈ Term ]
Σ[ qin′ ∈ Term ]
Σ[ peq′ ∈ C ⟦ r₂ ∥ r₁ ⟧c ≐ E′ ⟦ pin′ ⟧e ]
Σ[ qeq′ ∈ d ≐ E′ ⟦ qin′ ⟧e ]
->E-view sn⟶₁d peq′ qeq′
DPG-E-view dehole dehole dchole psn⟶₁q ()
DPG-E-view dehole dehole (dcpar₁ pC) psn⟶₁q ()
DPG-E-view dehole dehole (dcpar₂ pC) psn⟶₁q ()
DPG-E-view dehole dehole (dcseq₁ pC) psn⟶₁q ()
DPG-E-view dehole dehole (dcseq₂ pC) psn⟶₁q ()
DPG-E-view dehole dehole (dcsuspend pC) psn⟶₁q ()
DPG-E-view dehole dehole (dctrap pC) psn⟶₁q ()
DPG-E-view dehole dehole (dcsignl pC) psn⟶₁q ()
DPG-E-view dehole dehole (dcloop pC) psn⟶₁q ()
DPG-E-view dehole dehole (dcloopˢ₁ pC) psn⟶₁q ()
DPG-E-view dehole dehole (dcloopˢ₂ pC) psn⟶₁q ()
DPG-E-view dehole dehole (dcpresent₁ pC)
(ris-present S∈ s[θ]≡p dehole)
vis-present
= _ , ris-present S∈ s[θ]≡p dehole , ∥Rn (∥Rstep pC) ∥R0 ,
_ , _ , _ , dehole , dehole , vis-present
DPG-E-view dehole dehole (dcpresent₁ pC)
(ris-absent S∈ s[θ]≡p dehole)
vis-absent
= _ , ris-absent S∈ s[θ]≡p dehole , ∥R0 ,
_ , _ , _ , dehole , dehole , vis-absent
DPG-E-view dehole dehole (dcpresent₂ pC)
(ris-present S∈ s[θ]≡a dehole)
vis-present
= _ , ris-present S∈ s[θ]≡a dehole , ∥R0 ,
_ , _ , _ , dehole , dehole , vis-present
DPG-E-view dehole dehole (dcpresent₂ pC)
(ris-absent S∈ s[θ]≡a dehole)
vis-absent
= _ , ris-absent S∈ s[θ]≡a dehole , ∥Rn (∥Rstep pC) ∥R0 ,
_ , _ , _ , dehole , dehole , vis-absent
DPG-E-view dehole dehole (dcshared pC)
(rraise-shared allready dehole)
vraise-shared
= _ , rraise-shared allready dehole ,
Context1-∥R* (cenv _ _) (∥Rn (∥Rstep pC) ∥R0) ,
_ , _ , _ , dehole , dehole , vraise-shared
DPG-E-view dehole dehole (dcvar pC)
(rraise-var allready dehole)
vraise-var
= _ , rraise-var allready dehole ,
Context1-∥R* (cenv _ _) (∥Rn (∥Rstep pC) ∥R0) ,
_ , _ , _ , dehole , dehole , vraise-var
DPG-E-view dehole dehole (dcif₁ pC)
(rif-false x∈ x[θ]≡0 dehole)
vif-false
= _ , rif-false x∈ x[θ]≡0 dehole , ∥R0 ,
_ , _ , _ , dehole , dehole , vif-false
DPG-E-view dehole dehole (dcif₁ pC)
(rif-true x∈ x[θ]≡s dehole)
vif-true
= _ , rif-true x∈ x[θ]≡s dehole , ∥Rn (∥Rstep pC) ∥R0 ,
_ , _ , _ , dehole , dehole , vif-true
DPG-E-view dehole dehole (dcif₂ pC)
(rif-false x∈ x[θ]≡0 dehole)
vif-false
= _ , rif-false x∈ x[θ]≡0 dehole , ∥Rn (∥Rstep pC) ∥R0 ,
_ , _ , _ , dehole , dehole , vif-false
DPG-E-view dehole dehole (dcif₂ pC)
(rif-true x∈ x[θ]≡s dehole)
vif-true
= _ , rif-true x∈ x[θ]≡s dehole , ∥R0 ,
_ , _ , _ , dehole , dehole , vif-true
DPG-E-view dehole dehole (dcenv pC)
(rmerge dehole)
vmerge
= _ , rmerge dehole , ∥Rn (∥Rstep pC) ∥R0 ,
_ , _ , _ , dehole , dehole , vmerge
DPG-E-view (depar₁ pE) (depar₁ qE) dchole psn⟶₁q E-view
with unwrap-rho psn⟶₁q (depar₁ pE) (depar₁ qE) pE qE E-view
... | (redo-sub , E-view-sub)
with wrap-rho redo-sub pE qE E-view-sub
_ (depar₂ pE) (depar₂ qE)
... | (redo′ , E-view′)
= _ , redo′ , ∥Rn (∥Rstep dchole) ∥R0 ,
_ , _ , _ , depar₂ pE , depar₂ qE , E-view′
DPG-E-view (depar₂ pE) (depar₂ qE) dchole psn⟶₁q E-view
with unwrap-rho psn⟶₁q (depar₂ pE) (depar₂ qE) pE qE E-view
... | (redo-sub , E-view-sub)
with wrap-rho redo-sub pE qE E-view-sub
_ (depar₁ pE) (depar₁ qE)
... | (redo′ , E-view′)
= _ , redo′ , ∥Rn (∥Rstep dchole) ∥R0 ,
_ , _ , _ , depar₁ pE , depar₁ qE , E-view′
DPG-E-view {e ∷ _} (depar₁ pE) (depar₁ qE) (dcpar₁ pC) psn⟶₁q E-view
with unwrap-rho psn⟶₁q (depar₁ pE) (depar₁ qE) pE qE E-view
... | (redo-sub , E-view-sub)
with DPG-E-view pE qE pC redo-sub E-view-sub
... | (ds , pssn⟶₁ds , qs∥Rds , _ , _ , _ , pE′ , qE′ , E-view-sub′)
with wrap-rho pssn⟶₁ds pE′ qE′ E-view-sub′ _ (depar₁ pE′) (depar₁ qE′)
... | (redo , E-view′)
= _ , redo , Context1-∥R* (ceval e) qs∥Rds ,
_ , _ , _ , depar₁ pE′ , depar₁ qE′ , E-view′
DPG-E-view {e ∷ _} (depar₂ pE) (depar₂ qE) (dcpar₂ pC) psn⟶₁q E-view
with unwrap-rho psn⟶₁q (depar₂ pE) (depar₂ qE) pE qE E-view
... | (redo-sub , E-view-sub)
with DPG-E-view pE qE pC redo-sub E-view-sub
... | (ds , pssn⟶₁ds , qs∥Rds , _ , _ , _ , pE′ , qE′ , E-view-sub′)
with wrap-rho pssn⟶₁ds pE′ qE′ E-view-sub′ _ (depar₂ pE′) (depar₂ qE′)
... | (redo , E-view′)
= _ , redo , Context1-∥R* (ceval e) qs∥Rds ,
_ , _ , _ , depar₂ pE′ , depar₂ qE′ , E-view′
DPG-E-view {e ∷ _} (desuspend pE) (desuspend qE) (dcsuspend pC) psn⟶₁q E-view
with unwrap-rho psn⟶₁q (desuspend pE) (desuspend qE) pE qE E-view
... | (redo-sub , E-view-sub)
with DPG-E-view pE qE pC redo-sub E-view-sub
... | (ds , pssn⟶₁ds , qs∥Rds , _ , _ , _ , pE′ , qE′ , E-view-sub′)
with wrap-rho pssn⟶₁ds pE′ qE′ E-view-sub′ _ (desuspend pE′) (desuspend qE′)
... | (redo , E-view′)
= _ , redo , Context1-∥R* (ceval e) qs∥Rds ,
_ , _ , _ , desuspend pE′ , desuspend qE′ , E-view′
DPG-E-view {e ∷ _} (detrap pE) (detrap qE) (dctrap pC) psn⟶₁q E-view
with unwrap-rho psn⟶₁q (detrap pE) (detrap qE) pE qE E-view
... | (redo-sub , E-view-sub)
with DPG-E-view pE qE pC redo-sub E-view-sub
... | (ds , pssn⟶₁ds , qs∥Rds , _ , _ , _ , pE′ , qE′ , E-view-sub′)
with wrap-rho pssn⟶₁ds pE′ qE′ E-view-sub′ _ (detrap pE′) (detrap qE′)
... | (redo , E-view′)
= _ , redo , Context1-∥R* (ceval e) qs∥Rds ,
_ , _ , _ , detrap pE′ , detrap qE′ , E-view′
DPG-E-view {e ∷ _} (deseq pE) (deseq qE) (dcseq₁ pC) psn⟶₁q E-view
with unwrap-rho psn⟶₁q (deseq pE) (deseq qE) pE qE E-view
... | (redo-sub , E-view-sub)
with DPG-E-view pE qE pC redo-sub E-view-sub
... | (ds , pssn⟶₁ds , qs∥Rds , _ , _ , _ , pE′ , qE′ , E-view-sub′)
with wrap-rho pssn⟶₁ds pE′ qE′ E-view-sub′ _ (deseq pE′) (deseq qE′)
... | (redo , E-view′)
= _ , redo , Context1-∥R* (ceval e) qs∥Rds ,
_ , _ , _ , deseq pE′ , deseq qE′ , E-view′
DPG-E-view {e ∷ _} (deloopˢ pE) (deloopˢ qE) (dcloopˢ₁ pC) psn⟶₁q E-view
with unwrap-rho psn⟶₁q (deloopˢ pE) (deloopˢ qE) pE qE E-view
... | (redo-sub , E-view-sub)
with DPG-E-view pE qE pC redo-sub E-view-sub
... | (ds , pssn⟶₁ds , qs∥Rds , _ , _ , _ , pE′ , qE′ , E-view-sub′)
with wrap-rho pssn⟶₁ds pE′ qE′ E-view-sub′ _ (deloopˢ pE′) (deloopˢ qE′)
... | (redo , E-view′)
= _ , redo , Context1-∥R* (ceval e) qs∥Rds ,
_ , _ , _ , deloopˢ pE′ , deloopˢ qE′ , E-view′
DPG-E-view{_}{_}{r₁}{r₂} (depar₁ pE) (depar₁ qE) (dcpar₂{C = C} pC) psn⟶₁q E-view
with unwrap-rho psn⟶₁q (depar₁ pE) (depar₁ qE) pE qE E-view
... | (redo-sub , E-view-sub)
with wrap-rho redo-sub pE qE E-view-sub
(epar₁ (C ⟦ r₂ ∥ r₁ ⟧c))
(depar₁ pE) (depar₁ qE)
... | (redo′ , E-view′)
= _ , redo′ , ∥Rn (Context1-∥R (ceval (epar₂ _)) (∥Rstep pC)) ∥R0 ,
_ , _ , _ , depar₁ pE , depar₁ qE , E-view′
DPG-E-view{_}{_}{r₁}{r₂} (depar₂ pE) (depar₂ qE) (dcpar₁{C = C} pC) psn⟶₁q E-view
with unwrap-rho psn⟶₁q (depar₂ pE) (depar₂ qE) pE qE E-view
... | (redo-sub , E-view-sub)
with wrap-rho redo-sub pE qE E-view-sub
(epar₂ (C ⟦ r₂ ∥ r₁ ⟧c))
(depar₂ pE) (depar₂ qE)
... | (redo′ , E-view′)
= _ , redo′ , ∥Rn (Context1-∥R (ceval (epar₁ _)) (∥Rstep pC)) ∥R0 ,
_ , _ , _ , depar₂ pE , depar₂ qE , E-view′
DPG-E-view{_}{_}{r₁}{r₂} (deseq pE) (deseq qE) (dcseq₂{C = C} pC) psn⟶₁q E-view
with unwrap-rho psn⟶₁q (deseq pE) (deseq qE) pE qE E-view
... | (redo-sub , E-view-sub)
with wrap-rho redo-sub pE qE E-view-sub
(eseq (C ⟦ r₂ ∥ r₁ ⟧c))
(deseq pE) (deseq qE)
... | (redo′ , E-view′)
= _ , redo′ , ∥Rn (Context1-∥R (cseq₂ _) (∥Rstep pC)) ∥R0 ,
_ , _ , _ , deseq pE , deseq qE , E-view′
DPG-E-view{_}{_}{r₁}{r₂} (deloopˢ pE) (deloopˢ qE) (dcloopˢ₂{C = C} pC) psn⟶₁q E-view
with unwrap-rho psn⟶₁q (deloopˢ pE) (deloopˢ qE) pE qE E-view
... | (redo-sub , E-view-sub)
with wrap-rho redo-sub pE qE E-view-sub
(eloopˢ (C ⟦ r₂ ∥ r₁ ⟧c))
(deloopˢ pE) (deloopˢ qE)
... | (redo′ , E-view′)
= _ , redo′ , ∥Rn (Context1-∥R (cloopˢ₂ _) (∥Rstep pC)) ∥R0 ,
_ , _ , _ , deloopˢ pE , deloopˢ qE , E-view′
|
'<SNIPPET1>
Imports System.Security.Permissions
Imports System.Security.Cryptography
Imports System.Security.Cryptography.X509Certificates
Imports System.Security
Imports System.IO
<Assembly: StorePermissionAttribute(SecurityAction.RequestMinimum, Flags:=StorePermissionFlags.DeleteStore)>
Public Class X509store2
Public Shared Sub Main(ByVal args() As String)
'<Snippet2>
Console.WriteLine("Creating a permission with Flags = OpenStore.")
Dim sp As New System.Security.Permissions.StorePermission(StorePermissionFlags.OpenStore)
'</Snippet2>
'Create a new X509 store named teststore from the local certificate store.
'You must put in a valid path to a certificate in the following constructor.
Dim certificate As New X509Certificate2("c:\certificates\*****.cer")
' Deny the permission to open a store.
sp.Deny()
' The following code results in an exception due to an attempt to open a store.
AddToStore(certificate)
' Remove the deny for opening a store.
CodeAccessPermission.RevertDeny()
' The following code results in an exception due to an attempt to add a certificate.
' The exception is thrown due to a StorePermissionAttribute on the method denying AddToStore permission.
AddToStore(certificate)
' The current code is not affected by the attribute in the previously called method, so the following
' intructions execute without an exception.
Dim store As New X509Store("teststore", StoreLocation.CurrentUser)
store.Open(OpenFlags.ReadWrite)
store.Add(certificate)
' Demonstrate the behavior of the class members.
ShowMembers()
Console.WriteLine("Press the Enter key to exit.")
Console.ReadKey()
Return
End Sub
'<Snippet8>
'Deny the permission the ability to add to a store.
<StorePermission(SecurityAction.Deny, Flags:=StorePermissionFlags.AddToStore)> _
Private Shared Sub AddToStore(ByVal cert As X509Certificate2)
Try
Dim store As New X509Store("teststore", StoreLocation.CurrentUser)
store.Open(OpenFlags.ReadWrite)
' The following attempt to add a certificate results in an exception being thrown.
store.Add(cert)
Return
Catch e As SecurityException
Console.WriteLine("Security exception thrown when attempting: " + _
CType(e.FirstPermissionThatFailed, System.Security.Permissions.StorePermission).Flags)
Return
End Try
End Sub
'</Snippet8>
' The following method is intended to demonstrate only the behavior of
' StorePermission class members,and not their practical usage. Most properties
' and methods in this class are used for the resolution and enforcement of
' security policy by the security infrastructure code.
Private Shared Sub ShowMembers()
Console.WriteLine("Creating first permission with Flags = OpenStore.")
Dim sp1 As New System.Security.Permissions.StorePermission(StorePermissionFlags.OpenStore)
Console.WriteLine("Creating second permission with Flags = AllFlags.")
Dim sp2 As New System.Security.Permissions.StorePermission(StorePermissionFlags.AllFlags)
Console.WriteLine("Creating third permission as Unrestricted.")
'<Snippet9>
Dim sp3 As New System.Security.Permissions.StorePermission(PermissionState.Unrestricted)
'</Snippet9>
Console.WriteLine("Creating fourth permission with a permission state of none.")
Dim sp4 As New System.Security.Permissions.StorePermission(PermissionState.None)
'<Snippet3>
Dim rc As Boolean = sp2.IsSubsetOf(sp3)
Console.WriteLine("Is the permission with complete store access (AllFlags) a subset of " + _
vbLf + vbTab + "the permission with an Unrestricted permission state? " + _
IIf(rc, "Yes", "No"))
rc = sp1.IsSubsetOf(sp2)
Console.WriteLine("Is the permission with OpenStore access a subset of the permission with " + _
vbLf + vbTab + "complete store access (AllFlags)? " + IIf(rc, "Yes", "No"))
'</Snippet3>
'<Snippet4>
rc = sp3.IsUnrestricted()
Console.WriteLine("Is the third permission unrestricted? " + IIf(rc, "Yes", "No"))
'</Snippet4>
'<Snippet5>
Console.WriteLine("Copying the second permission to the fourth permission.")
sp4 = CType(sp2.Copy(), System.Security.Permissions.StorePermission)
rc = sp4.Equals(sp2)
Console.WriteLine("Is the fourth permission equal to the second permission? " + _
IIf(rc, "Yes", "No"))
'</Snippet5>
'<Snippet10>
Console.WriteLine("Creating the intersection of the second and first permissions.")
sp4 = CType(sp2.Intersect(sp1), System.Security.Permissions.StorePermission)
Console.WriteLine("Value of the Flags property is: " + sp4.Flags.ToString())
'</Snippet10>
'<Snippet6>
Console.WriteLine("Creating the union of the second and first permissions.")
sp4 = CType(sp2.Union(sp1), System.Security.Permissions.StorePermission)
Console.WriteLine("Result of the union of the second permission with the first: " + _
sp4.Flags)
'</Snippet6>
'<Snippet7>
Console.WriteLine("Using an XML roundtrip to reset the fourth permission.")
sp4.FromXml(sp2.ToXml())
rc = sp4.Equals(sp2)
Console.WriteLine("Does the XML roundtrip result equal the original permission? " + _
IIf(rc, "Yes", "No"))
'</Snippet7>
End Sub
End Class
'</Snippet1> |
\relax
\citation{achemso-control}
\providecommand{\mciteSetMaxWidth}[3]{\relax}
\providecommand{\mciteSetMaxCount}[3]{\relax}
\bibstyle{achemso}
\bibdata{acs-Example,Example}
|
running
checkClass: aClass
renrakuRule class checksClass ifFalse: [ ^ self ].
renrakuRule
check: aClass
forCritiquesDo: [ :crit |
result addClass: aClass.
self
addSearchStringFrom: crit
in: aClass definition.
^ self ] |
----------------------------------------
-- Sassilization
-- http://sassilization.com
-- By Sassafrass / Spacetech / LuaPineapple
----------------------------------------
function UNIT:GetAttackAnim()
return "fire"
end
function UNIT:GetReloadAnim()
return "reload"
end
function UNIT:GetMoveAnim()
return "idle"
end |
package rs.dusk.engine.tick.task
import kotlinx.coroutines.runBlocking
import rs.dusk.engine.event.priority
import rs.dusk.engine.event.then
import rs.dusk.engine.tick.TickUpdate
/**
* @author Greg Hibberd <greg@greghibberd.com>
* @since April 25, 2020
*/
@Deprecated("Use scripts instead")
abstract class EngineTask(priority: Int) : Runnable {
init {
TickUpdate priority priority then {
runBlocking {
run()
}
}
}
} |
use Test::More;
use Test::RequiresInternet;
BEGIN { plan tests => 2 }
use Net::Ping;
use LWP::UserAgent;
my $ping = Net::Ping->new();
isnt($ping->ping("nist.gov", 3), undef);
my $browser = LWP::UserAgent->new;
my $response = $browser->get("http://nist.gov");
ok($response->code == 200);
|
// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build !darwin !cgo internal
package cgotest
import "testing"
func test21897(t *testing.T) {
t.Skip("test runs only on darwin+cgo")
}
|
#
# Copyright 2021 Centreon (http://www.centreon.com/)
#
# Centreon is a full-fledged industry-strength solution that meets
# the needs in IT infrastructure and application monitoring for
# service performance.
#
# 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 network::versa::director::restapi::mode::listpaths;
use base qw(centreon::plugins::mode);
use strict;
use warnings;
sub new {
my ($class, %options) = @_;
my $self = $class->SUPER::new(package => __PACKAGE__, %options);
bless $self, $class;
$options{options}->add_options(arguments => {
'filter-device-name:s' => { name => 'filter_device_name' },
'filter-device-type:s' => { name => 'filter_device_type' }
});
return $self;
}
sub check_options {
my ($self, %options) = @_;
$self->SUPER::init(%options);
}
sub manage_selection {
my ($self, %options) = @_;
my $orgs = $options{custom}->get_organizations();
my $root_org_name = $options{custom}->find_root_organization_name(orgs => $orgs);
my $devices = $options{custom}->get_devices(org_name => $root_org_name);
my $results = {};
foreach my $device (values %{$devices->{entries}}) {
if (defined($self->{option_results}->{filter_device_name}) && $self->{option_results}->{filter_device_name} ne '' &&
$device->{name} !~ /$self->{option_results}->{filter_device_name}/) {
$self->{output}->output_add(long_msg => "skipping device '" . $device->{name} . "': no matching filter name.", debug => 1);
next;
}
if (defined($self->{option_results}->{filter_device_type}) && $self->{option_results}->{filter_device_type} ne '' &&
$device->{type} !~ /$self->{option_results}->{filter_device_type}/) {
$self->{output}->output_add(long_msg => "skipping device '" . $device->{name} . "': no matching filter type.", debug => 1);
next;
}
my $paths = $options{custom}->get_device_paths(
org_name => $root_org_name,
device_name => $device->{name}
);
my $i = 0;
foreach (@{$paths->{entries}}) {
$results->{ $device->{name} . ':' . $i } = {
device_name => $device->{name},
device_type => $device->{type},
remote_site_name => $_->{remoteSiteName},
local_wan_link => $_->{localWanLink},
remote_wan_link => $_->{remoteWanLink}
};
$i++;
}
}
return $results;
}
sub run {
my ($self, %options) = @_;
my $results = $self->manage_selection(%options);
foreach (values %$results) {
$self->{output}->output_add(
long_msg => sprintf(
'[device_name: %s][device_type: %s][remote_site_name: %s][local_wan_link: %s][remote_wan_link: %s]',
$_->{device_name},
$_->{device_type},
$_->{remote_site_name},
$_->{local_wan_link},
$_->{remote_wan_link}
)
);
}
$self->{output}->output_add(
severity => 'OK',
short_msg => 'List device paths:'
);
$self->{output}->display(nolabel => 1, force_ignore_perfdata => 1, force_long_output => 1);
$self->{output}->exit();
}
sub disco_format {
my ($self, %options) = @_;
$self->{output}->add_disco_format(elements => ['device_name', 'device_type', 'remote_site_name', 'local_wan_link', 'remote_wan_link']);
}
sub disco_show {
my ($self, %options) = @_;
my $results = $self->manage_selection(%options);
foreach (values %$results) {
$self->{output}->add_disco_entry(%$_);
}
}
1;
__END__
=head1 MODE
List paths by devices.
=over 8
=item B<--filter-device-name>
Filter device by name (Can be a regexp).
=item B<--filter-device-type>
Filter device by type (Can be a regexp).
=back
=cut
|
# hstream-broker-demo
## Introduction
本项目旨在快速原型 hstream-broker 的基本流程,
和熟悉相关库。
## Build
首先从 .proto 生成 .hs
**每次如果修改了 .proto 文件,都需要运行下面的命令重新生成对应的 .hs 文件**
```bash
cd proto3-suite
cabal run -- compile-proto-file --includeDir ../examples/hstream-broker-demo --proto hstreamBroker.proto --out ../examples/hstream-broker-demo
```
然后用 cabal build
```bash
cabal configure -f with-examples
cabal build --extra-lib-dirs=/home/wangbin/tmp/grpc-1.35.0-install/lib
```
最后执行 broker-server 和 broker-client
```bash
## 启动 broker-server
cabal run --extra-lib-dirs=/home/wangbin/tmp/grpc-1.35.0-install/lib broker-server
## 启动 broker-client
cabal run --extra-lib-dirs=/home/wangbin/tmp/grpc-1.35.0-install/lib broker-client
```
|
*! 用于chinafin运行之后翻译变量名
*! 程振兴 2018年7月15日
cap program drop en2cn
program define en2cn
version 12.0
if c(stata_version) < 14{
di "你的Stata版本过低,无法使用中文变量名!"
}
if c(stata_version) >= 14{
label var stkcd "股票代码"
label var date "日期"
label var A001 "货币资金"
label var A002 "交易性金融资产"
label var A003 "应收票据"
label var A004 "应收账款"
label var A005 "预付款项"
label var A006 "其他应收款"
label var A007 "应收关联公司款"
label var A008 "应收利息"
label var A009 "应收股利"
label var A010 "存货"
label var A011 "消耗性生物资产"
label var A012 "一年内到期的非流动资产"
label var A013 "其他流动资产"
label var A014 "流动资产合计"
label var A015 "可供出售金融资产"
label var A016 "持有至到期投资"
label var A017 "长期应收款"
label var A018 "长期股权投资"
label var A019 "投资性房地产"
label var A020 "固定资产"
label var A021 "在建工程"
label var A022 "工程物资"
label var A023 "固定资产清理"
label var A024 "生产性生物资产"
label var A025 "油气资产"
label var A026 "无形资产"
label var A027 "开发支出"
label var A028 "商誉"
label var A029 "长期待摊费用"
label var A030 "递延所得税资产"
label var A031 "其他非流动资产"
label var A032 "非流动资产合计"
label var A033 "资产总计"
label var A034 "短期借款"
label var A035 "交易性金融负债"
label var A036 "应付票据"
label var A037 "应付账款"
label var A038 "预收款项"
label var A039 "应付职工薪酬"
label var A040 "应交税费"
label var A041 "应付利息"
label var A042 "应付股利"
label var A043 "其他应付款"
label var A044 "应付关联公司款"
label var A045 "一年内到期的非流动负债"
label var A046 "其他流动负债"
label var A047 "流动负债合计"
label var A048 "长期借款"
label var A049 "应付债券"
label var A050 "长期应付款"
label var A051 "专项应付款"
label var A052 "预计负债"
label var A053 "递延所得税负债"
label var A054 "其他非流动负债"
label var A055 "非流动负债合计"
label var A056 "负债合计"
label var A057 "实收资本(或股本)"
label var A058 "资本公积"
label var A059 "盈余公积"
label var A060 "库存股"
label var A061 "未分配利润"
label var A062 "少数股东权益"
label var A063 "外币报表折算价差"
label var A064 "非正常经营项目收益调整"
label var A065 "归属母公司所有者权益(或股东权益)"
label var A066 "所有者权益(或股东权益)合计"
label var P001 "营业收入"
label var P002 "营业成本"
label var P003 "营业税金及附加"
label var P004 "销售费用"
label var P005 "管理费用"
label var P006 "勘探费用"
label var P007 "财务费用"
label var P008 "资产减值损失"
label var P009 "公允价值变动净收益"
label var P010 "投资收益"
label var P011 "对联营企业和合营企业的投资收益"
label var P012 "影响营业利润的其他科目"
label var P013 "营业利润"
label var P014 "补贴收入"
label var P015 "营业外收入"
label var P016 "营业外支出"
label var P017 "非流动资产处置净损失"
label var P018 "影响利润总额的其他科目"
label var P019 "利润总额"
label var P020 "所得税"
label var P021 "影响净利润的其他科目"
label var P022 "净利润"
label var P023 "归属于母公司所有者的净利润"
label var P024 "少数股东损益"
label var P025 "每股收益"
label var P026 "基本每股收益"
label var C001 "经营活动产生的现金流量"
label var C002 "销售商品、提供劳务收到的现金"
label var C003 "收到的税费返还"
label var C004 "收到其他与经营活动有关的现金"
label var C005 "经营活动现金流入小计"
label var C006 "购买商品、接受劳务支付的现金"
label var C007 "支付给职工以及为职工支付的现金"
label var C008 "支付的各项税费"
label var C009 "支付其他与经营活动有关的现金"
label var C010 "经营活动现金流出小计"
label var C011 "经营活动产生的现金流量净额"
label var C012 "投资活动产生的现金流量"
label var C013 "收回投资收到的现金"
label var C014 "取得投资收益收到的现金"
label var C015 "处置固定资产、无形资产和其他长期资产收回的现金净额"
label var C016 "处置子公司及其他营业单位收到的现金净额"
label var C017 "收到其他与投资活动有关的现金"
label var C018 "投资活动现金流入小计"
label var C019 "购建固定资产、无形资产和其他长期资产支付的现金"
label var C020 "投资支付的现金"
label var C021 "取得子公司及其他营业单位支付的现金净额"
label var C022 "支付其他与投资活动有关的现金"
label var C023 "投资活动现金流出小计"
label var C024 "投资活动产生的现金流量净额"
label var C025 "筹资活动产生的现金流量"
label var C026 "吸收投资收到的现金"
label var C027 "取得借款收到的现金"
label var C028 "收到其他与筹资活动有关的现金"
label var C029 "筹资活动现金流入小计"
label var C030 "偿还债务支付的现金"
label var C031 "分配股利、利润或偿付利息支付的现金"
label var C032 "支付其他与筹资活动有关的现金"
label var C033 "筹资活动现金流出小计"
label var C034 "筹资活动产生的现金流量净额"
label var C035 "汇率变动对现金的影响"
label var C036 "其他原因对现金的影响"
label var C037 "现金及现金等价物净增加额"
label var C038 "期初现金及现金等价物余额"
label var C039 "期末现金及现金等价物余额"
label var C040 "将净利润调节为经营活动现金流量"
label var C041 "净利润"
label var C042 "资产减值准备"
label var C043 "固定资产折旧、油气资产折耗、生产性生物资产折旧"
label var C044 "无形资产摊销"
label var C045 "长期待摊费用摊销"
label var C046 "处置固定资产、无形资产和其他长期资产的损失"
label var C047 "固定资产报废损失"
label var C048 "公允价值变动损失"
label var C049 "财务费用2"
label var C050 "投资损失"
label var C051 "递延所得税资产减少"
label var C052 "递延所得税负债增加"
label var C053 "存货的减少"
label var C054 "经营性应收项目的减少"
label var C055 "经营性应付项目的增加"
label var C056 "其他"
label var C057 "经营活动产生的现金流量净额2"
label var C058 "不涉及现金收支的重大投资和筹资活动"
label var C059 "债务转为资本"
label var C060 "一年内到期的可转换公司债券"
label var C061 "融资租入固定资产"
label var C062 "现金及现金等价物净变动情况"
label var C063 "现金的期末余额"
label var C064 "现金的期初余额"
label var C065 "现金等价物的期末余额"
label var C066 "现金等价物的期初余额"
label var C067 "其他原因对现金的影响2"
label var A067 "现金及存放同业款项"
label var A068 "客户资金存款"
label var A069 "存放中央银行款项"
label var A070 "结算备付金"
label var A071 "客户备付金"
label var A072 "贵金属"
label var A073 "拆出资金"
label var A074 "衍生金融资产"
label var A075 "买入返售金融资产"
label var A076 "应收保费"
label var A077 "应收代位追偿款"
label var A078 "应收分保帐款"
label var A079 "应收分保未到期责任准备金"
label var A080 "应收分保未决赔款准备金"
label var A081 "应收分保寿险责任准备金"
label var A082 "应收分保长期健康险责任准备金"
label var A083 "保户质押贷款"
label var A084 "定期存款"
label var A085 "发放贷款及垫款"
label var A086 "存出保证金"
label var A087 "代理业务资产"
label var A088 "交易席位费"
label var A089 "独立帐户资产"
label var A090 "向中央银行借款"
label var A091 "同业及其他金融机构存放款项"
label var A092 "质押借款"
label var A093 "拆入资金"
label var A094 "衍生金融负债"
label var A095 "卖出回购金融资产款"
label var A096 "吸收存款"
label var A097 "代理买卖证券款"
label var A098 "代理承销证券款"
label var A099 "预收保费"
label var A100 "代理业务负债"
label var A101 "应付保单红利"
label var A102 "保户储金及投资款"
label var A103 "未到期责任准备金"
label var A104 "未决赔款准备金"
label var A105 "寿险责任准备金"
label var A106 "长期健康险责任准备金"
label var A107 "独立帐户负债"
label var A108 "一般风险准备"
label var P027 "利息净收入"
label var P028 "利息收入"
label var P029 "利息支出"
label var P030 "手续费及佣金净收入"
label var P031 "手续费及佣金收入"
label var P032 "代理买卖证券业务净收入"
label var P033 "证券承销业务净收入"
label var P034 "委托客户管理资产业务净收入"
label var P035 "已赚保费"
label var P036 "保险业务收入"
label var P037 "分保费收入"
label var P038 "分出保费"
label var P039 "提取未到期责任准备金"
label var P040 "退保金"
label var P041 "赔付支出"
label var P042 "摊回赔付支出"
label var P043 "提取保险责任准备金"
label var P044 "摊回保险责任准备金"
label var P045 "保单红利支出"
label var P046 "分保费用"
label var P047 "业务及管理费"
label var P048 "摊回分保费用"
label var C068 "客户存款和同业存放款项净增加额"
label var C069 "向中央银行借款净增加额"
label var C070 "向其他金融机构拆入资金净增加额"
label var C071 "收取利息、手续费及佣金的现金"
label var C072 "处置交易性金融资产净增加额"
label var C073 "拆入资金净增加额"
label var C074 "回购业务资金净增加额"
label var C075 "收到原保险合同保费取得的现金"
label var C076 "收到再保业务现金净额"
label var C077 "保户储金及投资款净增加额"
label var C078 "客户贷款及垫款净增加额"
label var C079 "存放中央银行和同业款项净增加额"
label var C080 "支付的手续费及佣金的现金"
label var C081 "支付原保险合同赔付款项的现金"
label var C082 "支付保单红利的现金"
label var C083 "质押贷款净增加额"
rename stkcd 股票代码
rename date 日期
rename A001 A货币资金
rename A002 A交易性金融资产
rename A003 A应收票据
rename A004 A应收账款
rename A005 A预付款项
rename A006 A其他应收款
rename A007 A应收关联公司款
rename A008 A应收利息
rename A009 A应收股利
rename A010 A存货
rename A011 A消耗性生物资产
rename A012 A一年内到期的非流动资产
rename A013 A其他流动资产
rename A014 A流动资产合计
rename A015 A可供出售金融资产
rename A016 A持有至到期投资
rename A017 A长期应收款
rename A018 A长期股权投资
rename A019 A投资性房地产
rename A020 A固定资产
rename A021 A在建工程
rename A022 A工程物资
rename A023 A固定资产清理
rename A024 A生产性生物资产
rename A025 A油气资产
rename A026 A无形资产
rename A027 A开发支出
rename A028 A商誉
rename A029 A长期待摊费用
rename A030 A递延所得税资产
rename A031 A其他非流动资产
rename A032 A非流动资产合计
rename A033 A资产总计
rename A034 A短期借款
rename A035 A交易性金融负债
rename A036 A应付票据
rename A037 A应付账款
rename A038 A预收款项
rename A039 A应付职工薪酬
rename A040 A应交税费
rename A041 A应付利息
rename A042 A应付股利
rename A043 A其他应付款
rename A044 A应付关联公司款
rename A045 A一年内到期的非流动负债
rename A046 A其他流动负债
rename A047 A流动负债合计
rename A048 A长期借款
rename A049 A应付债券
rename A050 A长期应付款
rename A051 A专项应付款
rename A052 A预计负债
rename A053 A递延所得税负债
rename A054 A其他非流动负债
rename A055 A非流动负债合计
rename A056 A负债合计
rename A057 A实收资本(或股本)
rename A058 A资本公积
rename A059 A盈余公积
rename A060 A库存股
rename A061 A未分配利润
rename A062 A少数股东权益
rename A063 A外币报表折算价差
rename A064 A非正常经营项目收益调整
rename A065 A归属母公司所有者权益(或股东权益)
rename A066 A所有者权益(或股东权益)合计
rename P001 P营业收入
rename P002 P营业成本
rename P003 P营业税金及附加
rename P004 P销售费用
rename P005 P管理费用
rename P006 P勘探费用
rename P007 P财务费用1
rename P008 P资产减值损失
rename P009 P公允价值变动净收益
rename P010 P投资收益
rename P011 P对联营企业和合营企业的投资收益
rename P012 P影响营业利润的其他科目
rename P013 P营业利润
rename P014 P补贴收入
rename P015 P营业外收入
rename P016 P营业外支出
rename P017 P非流动资产处置净损失
rename P018 P影响利润总额的其他科目
rename P019 P利润总额
rename P020 P所得税
rename P021 P影响净利润的其他科目
rename P022 P净利润
rename P023 P归属于母公司所有者的净利润
rename P024 P少数股东损益
rename P025 P每股收益
rename P026 P基本每股收益
rename C001 C经营活动产生的现金流量
rename C002 C销售商品、提供劳务收到的现金
rename C003 C收到的税费返还
rename C004 C收到其他与经营活动有关的现金
rename C005 C经营活动现金流入小计
rename C006 C购买商品、接受劳务支付的现金
rename C007 C支付给职工以及为职工支付的现金
rename C008 C支付的各项税费
rename C009 C支付其他与经营活动有关的现金
rename C010 C经营活动现金流出小计
rename C011 C经营活动产生的现金流量净额
rename C012 C投资活动产生的现金流量
rename C013 C收回投资收到的现金
rename C014 C取得投资收益收到的现金
rename C015 C处置固定资产、无形资产和其他长期资产收回的现金净额
rename C016 C处置子公司及其他营业单位收到的现金净额
rename C017 C收到其他与投资活动有关的现金
rename C018 C投资活动现金流入小计
rename C019 C购建固定资产、无形资产和其他长期资产支付的现金
rename C020 C投资支付的现金
rename C021 C取得子公司及其他营业单位支付的现金净额
rename C022 C支付其他与投资活动有关的现金
rename C023 C投资活动现金流出小计
rename C024 C投资活动产生的现金流量净额
rename C025 C筹资活动产生的现金流量
rename C026 C吸收投资收到的现金
rename C027 C取得借款收到的现金
rename C028 C收到其他与筹资活动有关的现金
rename C029 C筹资活动现金流入小计
rename C030 C偿还债务支付的现金
rename C031 C分配股利、利润或偿付利息支付的现金
rename C032 C支付其他与筹资活动有关的现金
rename C033 C筹资活动现金流出小计
rename C034 C筹资活动产生的现金流量净额
rename C035 C汇率变动对现金的影响
rename C036 C其他原因对现金的影响
rename C037 C现金及现金等价物净增加额
rename C038 C期初现金及现金等价物余额
rename C039 C期末现金及现金等价物余额
rename C040 C将净利润调节为经营活动现金流量
rename C041 C净利润2
rename C042 C资产减值准备
rename C043 C固定资产折旧、油气资产折耗、生产性生物资产折旧
rename C044 C无形资产摊销
rename C045 C长期待摊费用摊销
rename C046 C处置固定资产、无形资产和其他长期资产的损失
rename C047 C固定资产报废损失
rename C048 C公允价值变动损失
rename C049 C财务费用
rename C050 C投资损失
rename C051 C递延所得税资产减少
rename C052 C递延所得税负债增加
rename C053 C存货的减少
rename C054 C经营性应收项目的减少
rename C055 C经营性应付项目的增加
rename C056 C其他
rename C057 C经营活动产生的现金流量净额2
rename C058 C不涉及现金收支的重大投资和筹资活动
rename C059 C债务转为资本
rename C060 C一年内到期的可转换公司债券
rename C061 C融资租入固定资产
rename C062 C现金及现金等价物净变动情况
rename C063 C现金的期末余额
rename C064 C现金的期初余额
rename C065 C现金等价物的期末余额
rename C066 C现金等价物的期初余额
rename C067 C其他原因对现金的影响2
rename A067 A现金及存放同业款项
rename A068 A客户资金存款
rename A069 A存放中央银行款项
rename A070 A结算备付金
rename A071 A客户备付金
rename A072 A贵金属
rename A073 A拆出资金
rename A074 A衍生金融资产
rename A075 A买入返售金融资产
rename A076 A应收保费
rename A077 A应收代位追偿款
rename A078 A应收分保帐款
rename A079 A应收分保未到期责任准备金
rename A080 A应收分保未决赔款准备金
rename A081 A应收分保寿险责任准备金
rename A082 A应收分保长期健康险责任准备金
rename A083 A保户质押贷款
rename A084 A定期存款
rename A085 A发放贷款及垫款
rename A086 A存出保证金
rename A087 A代理业务资产
rename A088 A交易席位费
rename A089 A独立帐户资产
rename A090 A向中央银行借款
rename A091 A同业及其他金融机构存放款项
rename A092 A质押借款
rename A093 A拆入资金
rename A094 A衍生金融负债
rename A095 A卖出回购金融资产款
rename A096 A吸收存款
rename A097 A代理买卖证券款
rename A098 A代理承销证券款
rename A099 A预收保费
rename A100 A代理业务负债
rename A101 A应付保单红利
rename A102 A保户储金及投资款
rename A103 A未到期责任准备金
rename A104 A未决赔款准备金
rename A105 A寿险责任准备金
rename A106 A长期健康险责任准备金
rename A107 A独立帐户负债
rename A108 A一般风险准备
rename P027 P利息净收入
rename P028 P利息收入
rename P029 P利息支出
rename P030 P手续费及佣金净收入
rename P031 P手续费及佣金收入
rename P032 P代理买卖证券业务净收入
rename P033 P证券承销业务净收入
rename P034 P委托客户管理资产业务净收入
rename P035 P已赚保费
rename P036 P保险业务收入
rename P037 P分保费收入
rename P038 P分出保费
rename P039 P提取未到期责任准备金
rename P040 P退保金
rename P041 P赔付支出
rename P042 P摊回赔付支出
rename P043 P提取保险责任准备金
rename P044 P摊回保险责任准备金
rename P045 P保单红利支出
rename P046 P分保费用
rename P047 P业务及管理费
rename P048 P摊回分保费用
rename C068 C客户存款和同业存放款项净增加额
rename C069 C向中央银行借款净增加额
rename C070 C向其他金融机构拆入资金净增加额
rename C071 C收取利息、手续费及佣金的现金
rename C072 C处置交易性金融资产净增加额
rename C073 C拆入资金净增加额
rename C074 C回购业务资金净增加额
rename C075 C收到原保险合同保费取得的现金
rename C076 C收到再保业务现金净额
rename C077 C保户储金及投资款净增加额
rename C078 C客户贷款及垫款净增加额
rename C079 C存放中央银行和同业款项净增加额
rename C080 C支付的手续费及佣金的现金
rename C081 C支付原保险合同赔付款项的现金
rename C082 C支付保单红利的现金
rename C083 C质押贷款净增加额
}
end
|
# load midwest data
data("midwest")
# Scatter plot of total population versus known poverty population
ggplot(midwest, aes(x = poptotal, y = poppovertyknown, color = state)) + geom_point(size=5) + scale_color_brewer(palette = 'Accent')
# ?mean - this opens help file
# getwd()
# View(diamonds)
diamondsSubset <- diamonds[diamonds$color=="E", ]
head(diamondsSubset, 2)
dim(diamondsSubset)
data(mtcars)
str(mtcars)
subset(mtcars, mpg >= 30 | hp < 60)
mtcars[mtcars$mpg >= 30 | mtcars$hp < 60, ]
reddit <- read.csv('reddit.csv')
table(reddit$employment.status)
str(reddit)
levels(reddit$age.range)
qplot(data = reddit, x = age.range)
qplot(data = reddit, x = income.range)
# QUIZ
levels(reddit$age.range)
reddit$age.range <- ordered(reddit$age.range, levels = c("Under 18", "18-24", "35-44", "45-54", "55-64", "65 or Above"))
qplot(data = reddit, x = age.range)
read.delim('pseudo_facebook.tsv')
list.files()
pf <- read.csv('pseudo_facebook.tsv', sep = "\t") # tsv - tab seperated values file
pf <- read.delim('pseudo_facebook.tsv') # read.delim() function defaults to the tab character as the separator between values and the period as the decimal character.
names(pf)
qplot(x = dob_day, data = pf)
install.packages('ggthemes', dependencies = TRUE)
library(ggthemes)
ggplot(aes(x = dob_day), data = pf) +
geom_histogram(binwidth = 1) +
scale_x_continuous(breaks = 1:31) +
facet_wrap(~dob_month, ncol = 3)
ggplot(aes(x = friend_count), data = subset(pf, !is.na(gender))) +
geom_histogram(binwidth = 25) +
scale_x_continuous(limits = c(0, 1000), breaks = seq(0,1000,50))+
facet_wrap(~gender)
qplot(x = friend_count, data = pf, xlim = c(0, 1000))
table(pf$gender)
by(pf$friend_count, pf$gender, summary)
qplot(x = tenure, data = pf, color = I('black'), fill = I('#FF9429'))
qplot(x = tenure/365, data = pf, binwidth = .25, color = I('white'), fill = I('#FF9429')) +
scale_x_continuous(breaks = seq(1, 7, 1), limits = c(0, 7)) +
xlab('Number of years using Facebook') +
ylab('Number of users in sample')
ggplot(aes(x = tenure), data = pf) +
geom_histogram(binwidth = 30, color = 'black', fill = 'skyblue')
ggplot(aes(x = tenure/365), data = pf) +
geom_histogram(binwidth = .25, color = 'white', fill = 'lightblue')
summary(pf$age)
ggplot(aes(x = age), data = pf) +
geom_histogram(binwidth = 1, color = 'white', fill = '#7760AB') +
scale_x_continuous(breaks = seq(0, 113, 5)) +
xlab('Facebook users age') +
ylab('Number of users in sample')
# TRANSFORMING DATA
# ===============================
install.packages('gridExtra')
summary(pf$friend_count)
summary(log10(pf$friend_count + 1))
summary(sqrt(pf$friend_count))
library(gridExtra)
# scale_x_log10() to adjust the x-axis
plot1 <- qplot(x = friend_count, data = pf)
plot2 <- qplot(x = log10(friend_count + 1), data = pf)
plot3 <- qplot(x = sqrt(friend_count), data = pf)
grid.arrange(plot1, plot2, plot3, ncol = 1)
plot4 <- ggplot(aes(x = friend_count), data = pf) +
geom_histogram()
plot5 <- plot1 <- ggplot(aes(x = friend_count), data = pf) +
geom_histogram() + scale_x_log10()
plot6 <- plot1 <- ggplot(aes(x = friend_count), data = pf) +
geom_histogram() + scale_x_sqrt()
grid.arrange(plot4, plot5, plot6, ncol = 1)
## ADDING A SCALE LAYER
logScale <- qplot(x = log10(friend_count), data = pf)
countScale <- ggplot(aes(x = friend_count), data = pf) +
geom_histogram() +
scale_x_log10()
grid.arrange(logScale, countScale, ncol = 2)
## FREQUENCY POLYGONS
qplot(x = friend_count, data = subset(pf, !is.na(gender)),
binwidth = 10) +
scale_x_continuous(lim = c(0, 1000), breaks = seq(0, 1000, 50)) +
facet_wrap(~gender)
qplot(x = friend_count, y = ..count../sum(..count..),
data = subset(pf, !is.na(gender)),
xlab = 'Friend Count',
ylab = 'Proportion of Users with that of friend count',
binwidth = 10, geom = 'freqpoly', color = gender) +
scale_x_continuous(lim = c(0, 1000), breaks = seq(0, 1000, 50))
ggplot(aes(x = friend_count, y = ..count../sum(..count..)),
data = subset(pf, !is.na(gender))) +
geom_freqpoly(aes(color = gender), binwidth=10) +
scale_x_continuous(limits = c(0, 1000),
breaks = seq(0, 1000, 50)) +
xlab('Friend Count') +
ylab('Proportion of users with that friend count')
qplot(x = www_likes, data = subset(pf, !is.na(gender)),
geom = 'freqpoly', color = gender) +
scale_x_log10()
ggplot(aes(x = www_likes), data = subset(pf, !is.na(gender))) +
geom_freqpoly(aes(color = gender)) +
scale_x_log10()
## LIKES ON THE WEB
by(pf$www_likes, pf$gender, sum)
## BOX PLOTS
qplot(x = gender, y = friend_count,
data = subset(pf, !is.na(gender)),
geom = 'boxplot',ylim = c(0, 1000))
qplot(x = gender, y = friend_count,
data = subset(pf, !is.na(gender)),
geom = 'boxplot',
xlab = 'Gender',
ylab = 'Friend Count') +
scale_y_continuous(limits = c(0, 1000))
qplot(x = gender, y = friend_count,
data = subset(pf, !is.na(gender)),
geom = 'boxplot',
xlab = 'Gender',
ylab = 'Friend Count') +
coord_cartesian(ylim = c(0, 1000))
## BOX PLOTS, QUARTILES, AND FRIEND REQUESTS
qplot(x = gender, y = friend_count,
data = subset(pf, !is.na(gender)),
geom = 'boxplot',
xlab = 'Gender',
ylab = 'Friend Count') +
coord_cartesian(ylim = c(0, 250))
by(pf$friend_count, pf$gender, summary)
qplot(x = gender, y = friendships_initiated,
data = subset(pf, !is.na(gender)),
geom = 'boxplot',
xlab = 'Gender',
ylab = 'Friendship Initiated') +
coord_cartesian(ylim = c(0, 250))
by(pf$friendships_initiated, pf$gender, summary)
# GETTING LOGICAL
summary(pf$mobile_likes > 0)
mobile_check_in <- NA
pf$mobile_check_in <- ifelse(pf$mobile_likes > 0, 1, 0)
pf$mobile_check_in <- factor(pf$mobile_check_in)
summary(pf$mobile_check_in)
sum(pf$mobile_check_in == 1)/length(pf$mobile_check_in) * 100
# =========== LESSON 4 ================ #
# QUIZ 1
dim(diamonds) # Number of observations and variables
str(diamonds) # ordered factors
str(diamonds$color) # best diamond color
# QUIZ 2
ggplot(diamonds) +
geom_histogram(aes(x=price), binwidth = 100,
color = "coral", fill = "red") +
xlab("Price")+
ylab("Diamonds Count") +
ggtitle("Diamonds Price Plot")
# QUIZ 3
summary(diamonds$price)
# The shape of the graph depicts a right-skewed distribution of diamonds price with a median price of 2401 and a mean price of 3933.
# QUIZ 4
nrow(subset(diamonds, price < 500)) # numberof diamonds < $500
nrow(subset(diamonds, price < 250))
nrow(subset(diamonds, price > 15000 | price == 15000))
# QUIZ 5
ggplot(diamonds) +
geom_histogram(aes(x=price), binwidth = 15, color = "coral",
fill = "red") +
xlab("Price")+
ylab("Diamonds Count") +
ggtitle("Diamonds Price Histogram between $0 and $1000.") +
coord_cartesian(xlim=c(0,1000)) +
ggsave("/plots/priceHistogram.png")
# QUIZ 6
ggplot(diamonds) +
geom_histogram(aes(x=price), binwidth = 100, color = "coral",
fill = "red") +
xlab("Price")+
ylab("Diamonds Count") +
ggtitle("Price ~ Cut Histogram") +
facet_grid(~cut) +
ggsave("/plots/priceCutHistogram.png")
# QUIZ 7
# Price by cut
diamonds[which.max(diamonds$price),] # highest diamond price
tapply(diamonds$price, diamonds$cut, min) # lowest diamond price
by(diamonds$price,diamonds$cut,summary) # least median
# QUIZ 8
# Scales and Multiple Histograms
qplot(x = price, data = diamonds) + facet_wrap(~cut)
by(diamonds$price, diamonds$cut, summary)
ggplot(aes(x=price), data=diamonds) +
geom_histogram(binwidth=100, color='coral', fill='red') +
facet_wrap(~cut, scales="free")
# QUIZ 9
# Price per Carat by Cut
ggplot(aes(x=price/carat), data=diamonds) +
geom_histogram(binwidth=0.03, color='coral', fill='red') +
ggtitle("Price per Carat by Cut") +
xlab("Price per Carat") +
scale_x_log10() +
facet_wrap(~cut)
# QUIZ 10
# Price Box Plots
ggplot(aes(x = cut, y = price), data=diamonds) +
geom_boxplot() +
ggtitle("Price by box plots") +
ggsave("/plots/priceBoxPlots.png")
by(diamonds$price, diamonds$cut, summary)
#==============
# CORE
#==============
setwd("/var/www/example.com/public_html/Data-Science-All")
load("//var/www/example.com/public_html/Data-Science-All/workspace.RData")
save.image("/var/www/example.com/public_html/Data-Science-All/workspace.RData")
# ggplot2 comes default
library(ggplot2)
# install RColorBrewer
library(RColorBrewer)
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %r9
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x8660, %rsi
lea addresses_D_ht+0x111e0, %rdi
nop
nop
nop
add $50269, %r14
mov $75, %rcx
rep movsq
nop
nop
nop
nop
sub $1668, %r9
lea addresses_UC_ht+0xa9a0, %rsi
lea addresses_WC_ht+0xd2e0, %rdi
nop
nop
nop
nop
nop
dec %r11
mov $124, %rcx
rep movsl
nop
nop
nop
nop
sub $61002, %r14
lea addresses_normal_ht+0x19a50, %rsi
lea addresses_A_ht+0x160c8, %rdi
xor %rax, %rax
mov $82, %rcx
rep movsb
nop
nop
nop
lfence
lea addresses_WT_ht+0xe9e0, %rsi
lea addresses_WC_ht+0x1c4a2, %rdi
nop
and $3294, %r11
mov $16, %rcx
rep movsw
cmp $5452, %rax
lea addresses_D_ht+0x5506, %rsi
lea addresses_UC_ht+0x3880, %rdi
nop
sub $38678, %rdx
mov $127, %rcx
rep movsw
add $29124, %r11
lea addresses_A_ht+0x65e0, %rsi
lea addresses_D_ht+0x400, %rdi
nop
inc %rdx
mov $111, %rcx
rep movsw
nop
dec %r14
lea addresses_WC_ht+0x798e, %r11
nop
nop
nop
nop
nop
add $2508, %rdx
and $0xffffffffffffffc0, %r11
movaps (%r11), %xmm1
vpextrq $0, %xmm1, %r9
nop
dec %r9
lea addresses_WT_ht+0x146c0, %r11
nop
nop
and %r9, %r9
mov (%r11), %ax
nop
nop
nop
nop
sub %r9, %r9
lea addresses_A_ht+0xc9e0, %r14
nop
nop
nop
nop
add %rcx, %rcx
movl $0x61626364, (%r14)
nop
nop
nop
sub %r14, %r14
lea addresses_UC_ht+0x17842, %rdi
nop
nop
nop
sub $15190, %r9
mov (%rdi), %edx
nop
nop
and $12676, %rsi
lea addresses_D_ht+0x15220, %rax
nop
add %r9, %r9
mov (%rax), %r14w
nop
nop
xor %rdx, %rdx
lea addresses_D_ht+0x10de0, %rsi
lea addresses_WC_ht+0x19540, %rdi
nop
nop
nop
nop
cmp $14479, %rdx
mov $80, %rcx
rep movsl
nop
nop
nop
nop
nop
cmp %r11, %r11
lea addresses_WC_ht+0x6a60, %r14
nop
sub %r9, %r9
movb $0x61, (%r14)
nop
nop
nop
sub $29283, %r9
lea addresses_UC_ht+0x19e0, %rsi
lea addresses_normal_ht+0x1caf8, %rdi
clflush (%rdi)
nop
nop
nop
nop
nop
cmp $16638, %r9
mov $3, %rcx
rep movsl
nop
nop
nop
sub $18983, %rax
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rax
pop %r9
pop %r14
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r13
push %r8
push %r9
push %rbp
push %rdi
// Store
lea addresses_A+0x4e45, %rdi
nop
nop
nop
nop
xor %r12, %r12
movw $0x5152, (%rdi)
nop
and $34237, %r12
// Store
mov $0x9e0, %rbp
nop
nop
nop
nop
nop
cmp %r8, %r8
movl $0x51525354, (%rbp)
nop
inc %rdi
// Store
lea addresses_UC+0x1066b, %r8
nop
nop
nop
nop
xor $56159, %r10
mov $0x5152535455565758, %rbp
movq %rbp, %xmm3
vmovups %ymm3, (%r8)
nop
nop
nop
dec %rdi
// Faulty Load
lea addresses_UC+0x69e0, %r13
nop
nop
add $56544, %rbp
movb (%r13), %r12b
lea oracles, %r10
and $0xff, %r12
shlq $12, %r12
mov (%r10,%r12,1), %r12
pop %rdi
pop %rbp
pop %r9
pop %r8
pop %r13
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_UC', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_A', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_P', 'same': False, 'AVXalign': False, 'congruent': 11}}
{'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_UC', 'same': True, 'AVXalign': False, 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_UC', 'same': True, 'AVXalign': False, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 7}, 'dst': {'same': False, 'type': 'addresses_D_ht', 'congruent': 11}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 6}, 'dst': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 7}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 4}, 'dst': {'same': False, 'type': 'addresses_A_ht', 'congruent': 3}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 11}, 'dst': {'same': True, 'type': 'addresses_WC_ht', 'congruent': 1}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_D_ht', 'congruent': 1}, 'dst': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 2}}
{'OP': 'REPM', 'src': {'same': True, 'type': 'addresses_A_ht', 'congruent': 9}, 'dst': {'same': False, 'type': 'addresses_D_ht', 'congruent': 5}}
{'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': True, 'congruent': 1}}
{'OP': 'LOAD', 'src': {'size': 2, 'NT': True, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 5}}
{'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 9}}
{'OP': 'LOAD', 'src': {'size': 4, 'NT': True, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 1}}
{'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 6}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_D_ht', 'congruent': 10}, 'dst': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 3}}
{'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': True, 'congruent': 7}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 11}, 'dst': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 3}}
{'54': 21829}
54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54
*/
|
{
"id": "168230d1-25e9-4380-bfe0-837a7b62d4ce",
"modelName": "GMObject",
"mvc": "1.0",
"name": "obj_zne_ss_loop3",
"eventList": [
],
"maskSpriteId": "00000000-0000-0000-0000-000000000000",
"overriddenProperties": null,
"parentObjectId": "57d96a06-6e8b-41a9-a8e7-f36e14efaf67",
"persistent": false,
"physicsAngularDamping": 0.1,
"physicsDensity": 0.5,
"physicsFriction": 0.2,
"physicsGroup": 0,
"physicsKinematic": false,
"physicsLinearDamping": 0.1,
"physicsObject": false,
"physicsRestitution": 0.1,
"physicsSensor": false,
"physicsShape": 1,
"physicsShapePoints": null,
"physicsStartAwake": true,
"properties": null,
"solid": false,
"spriteId": "676ec582-9c7c-4a93-a938-419c3faed789",
"visible": true
} |
%%% Generated by codegen/genop.py
-module(asm_genop).
-export([arity/1, name/1, opcode/1]).
arity('label') -> 1;
arity('func_info') -> 3;
arity('int_code_end') -> 0;
arity('call') -> 2;
arity('call_last') -> 3;
arity('call_only') -> 2;
arity('call_ext') -> 2;
arity('call_ext_last') -> 3;
arity('bif0') -> 2;
arity('bif1') -> 4;
arity('bif2') -> 5;
arity('allocate') -> 2;
arity('allocate_heap') -> 3;
arity('allocate_zero') -> 2;
arity('allocate_heap_zero') -> 3;
arity('test_heap') -> 2;
arity('init') -> 1;
arity('deallocate') -> 1;
arity('return') -> 0;
arity('send') -> 0;
arity('remove_message') -> 0;
arity('timeout') -> 0;
arity('loop_rec') -> 2;
arity('loop_rec_end') -> 1;
arity('wait') -> 1;
arity('wait_timeout') -> 2;
arity('m_plus') -> 4;
arity('m_minus') -> 4;
arity('m_times') -> 4;
arity('m_div') -> 4;
arity('int_div') -> 4;
arity('int_rem') -> 4;
arity('int_band') -> 4;
arity('int_bor') -> 4;
arity('int_bxor') -> 4;
arity('int_bsl') -> 4;
arity('int_bsr') -> 4;
arity('int_bnot') -> 3;
arity('is_lt') -> 3;
arity('is_ge') -> 3;
arity('is_eq') -> 3;
arity('is_ne') -> 3;
arity('is_eq_exact') -> 3;
arity('is_ne_exact') -> 3;
arity('is_integer') -> 2;
arity('is_float') -> 2;
arity('is_number') -> 2;
arity('is_atom') -> 2;
arity('is_pid') -> 2;
arity('is_reference') -> 2;
arity('is_port') -> 2;
arity('is_nil') -> 2;
arity('is_binary') -> 2;
arity('is_constant') -> 2;
arity('is_list') -> 2;
arity('is_nonempty_list') -> 2;
arity('is_tuple') -> 2;
arity('test_arity') -> 3;
arity('select_val') -> 3;
arity('select_tuple_arity') -> 3;
arity('jump') -> 1;
arity('catch') -> 2;
arity('catch_end') -> 1;
arity('move') -> 2;
arity('get_list') -> 3;
arity('get_tuple_element') -> 3;
arity('set_tuple_element') -> 3;
arity('put_string') -> 3;
arity('put_list') -> 3;
arity('put_tuple') -> 2;
arity('put') -> 1;
arity('badmatch') -> 1;
arity('if_end') -> 0;
arity('case_end') -> 1;
arity('call_fun') -> 1;
arity('make_fun') -> 3;
arity('is_function') -> 2;
arity('call_ext_only') -> 2;
arity('bs_start_match') -> 2;
arity('bs_get_integer') -> 5;
arity('bs_get_float') -> 5;
arity('bs_get_binary') -> 5;
arity('bs_skip_bits') -> 4;
arity('bs_test_tail') -> 2;
arity('bs_save') -> 1;
arity('bs_restore') -> 1;
arity('bs_init') -> 2;
arity('bs_final') -> 2;
arity('bs_put_integer') -> 5;
arity('bs_put_binary') -> 5;
arity('bs_put_float') -> 5;
arity('bs_put_string') -> 2;
arity('bs_need_buf') -> 1;
arity('fclearerror') -> 0;
arity('fcheckerror') -> 1;
arity('fmove') -> 2;
arity('fconv') -> 2;
arity('fadd') -> 4;
arity('fsub') -> 4;
arity('fmul') -> 4;
arity('fdiv') -> 4;
arity('fnegate') -> 3;
arity('make_fun2') -> 1;
arity('try') -> 2;
arity('try_end') -> 1;
arity('try_case') -> 1;
arity('try_case_end') -> 1;
arity('raise') -> 2;
arity('bs_init2') -> 6;
arity('bs_bits_to_bytes') -> 3;
arity('bs_add') -> 5;
arity('apply') -> 1;
arity('apply_last') -> 2;
arity('is_boolean') -> 2;
arity('is_function2') -> 3;
arity('bs_start_match2') -> 5;
arity('bs_get_integer2') -> 7;
arity('bs_get_float2') -> 7;
arity('bs_get_binary2') -> 7;
arity('bs_skip_bits2') -> 5;
arity('bs_test_tail2') -> 3;
arity('bs_save2') -> 2;
arity('bs_restore2') -> 2;
arity('gc_bif1') -> 5;
arity('gc_bif2') -> 6;
arity('bs_final2') -> 2;
arity('bs_bits_to_bytes2') -> 2;
arity('put_literal') -> 2;
arity('is_bitstr') -> 2;
arity('bs_context_to_binary') -> 1;
arity('bs_test_unit') -> 3;
arity('bs_match_string') -> 4;
arity('bs_init_writable') -> 0;
arity('bs_append') -> 8;
arity('bs_private_append') -> 6;
arity('trim') -> 2;
arity('bs_init_bits') -> 6;
arity('bs_get_utf8') -> 5;
arity('bs_skip_utf8') -> 4;
arity('bs_get_utf16') -> 5;
arity('bs_skip_utf16') -> 4;
arity('bs_get_utf32') -> 5;
arity('bs_skip_utf32') -> 4;
arity('bs_utf8_size') -> 3;
arity('bs_put_utf8') -> 3;
arity('bs_utf16_size') -> 3;
arity('bs_put_utf16') -> 3;
arity('bs_put_utf32') -> 3;
arity('on_load') -> 0;
arity('recv_mark') -> 1;
arity('recv_set') -> 1;
arity('gc_bif3') -> 7;
arity('line') -> 1;
arity('put_map_assoc') -> 5;
arity('put_map_exact') -> 5;
arity('is_map') -> 2;
arity('has_map_fields') -> 3;
arity('get_map_elements') -> 3;
arity(X) -> erlang:error({bad_arity, X}).
name(1) -> 'label';
name(2) -> 'func_info';
name(3) -> 'int_code_end';
name(4) -> 'call';
name(5) -> 'call_last';
name(6) -> 'call_only';
name(7) -> 'call_ext';
name(8) -> 'call_ext_last';
name(9) -> 'bif0';
name(10) -> 'bif1';
name(11) -> 'bif2';
name(12) -> 'allocate';
name(13) -> 'allocate_heap';
name(14) -> 'allocate_zero';
name(15) -> 'allocate_heap_zero';
name(16) -> 'test_heap';
name(17) -> 'init';
name(18) -> 'deallocate';
name(19) -> 'return';
name(20) -> 'send';
name(21) -> 'remove_message';
name(22) -> 'timeout';
name(23) -> 'loop_rec';
name(24) -> 'loop_rec_end';
name(25) -> 'wait';
name(26) -> 'wait_timeout';
name(27) -> 'm_plus';
name(28) -> 'm_minus';
name(29) -> 'm_times';
name(30) -> 'm_div';
name(31) -> 'int_div';
name(32) -> 'int_rem';
name(33) -> 'int_band';
name(34) -> 'int_bor';
name(35) -> 'int_bxor';
name(36) -> 'int_bsl';
name(37) -> 'int_bsr';
name(38) -> 'int_bnot';
name(39) -> 'is_lt';
name(40) -> 'is_ge';
name(41) -> 'is_eq';
name(42) -> 'is_ne';
name(43) -> 'is_eq_exact';
name(44) -> 'is_ne_exact';
name(45) -> 'is_integer';
name(46) -> 'is_float';
name(47) -> 'is_number';
name(48) -> 'is_atom';
name(49) -> 'is_pid';
name(50) -> 'is_reference';
name(51) -> 'is_port';
name(52) -> 'is_nil';
name(53) -> 'is_binary';
name(54) -> 'is_constant';
name(55) -> 'is_list';
name(56) -> 'is_nonempty_list';
name(57) -> 'is_tuple';
name(58) -> 'test_arity';
name(59) -> 'select_val';
name(60) -> 'select_tuple_arity';
name(61) -> 'jump';
name(62) -> 'catch';
name(63) -> 'catch_end';
name(64) -> 'move';
name(65) -> 'get_list';
name(66) -> 'get_tuple_element';
name(67) -> 'set_tuple_element';
name(68) -> 'put_string';
name(69) -> 'put_list';
name(70) -> 'put_tuple';
name(71) -> 'put';
name(72) -> 'badmatch';
name(73) -> 'if_end';
name(74) -> 'case_end';
name(75) -> 'call_fun';
name(76) -> 'make_fun';
name(77) -> 'is_function';
name(78) -> 'call_ext_only';
name(79) -> 'bs_start_match';
name(80) -> 'bs_get_integer';
name(81) -> 'bs_get_float';
name(82) -> 'bs_get_binary';
name(83) -> 'bs_skip_bits';
name(84) -> 'bs_test_tail';
name(85) -> 'bs_save';
name(86) -> 'bs_restore';
name(87) -> 'bs_init';
name(88) -> 'bs_final';
name(89) -> 'bs_put_integer';
name(90) -> 'bs_put_binary';
name(91) -> 'bs_put_float';
name(92) -> 'bs_put_string';
name(93) -> 'bs_need_buf';
name(94) -> 'fclearerror';
name(95) -> 'fcheckerror';
name(96) -> 'fmove';
name(97) -> 'fconv';
name(98) -> 'fadd';
name(99) -> 'fsub';
name(100) -> 'fmul';
name(101) -> 'fdiv';
name(102) -> 'fnegate';
name(103) -> 'make_fun2';
name(104) -> 'try';
name(105) -> 'try_end';
name(106) -> 'try_case';
name(107) -> 'try_case_end';
name(108) -> 'raise';
name(109) -> 'bs_init2';
name(110) -> 'bs_bits_to_bytes';
name(111) -> 'bs_add';
name(112) -> 'apply';
name(113) -> 'apply_last';
name(114) -> 'is_boolean';
name(115) -> 'is_function2';
name(116) -> 'bs_start_match2';
name(117) -> 'bs_get_integer2';
name(118) -> 'bs_get_float2';
name(119) -> 'bs_get_binary2';
name(120) -> 'bs_skip_bits2';
name(121) -> 'bs_test_tail2';
name(122) -> 'bs_save2';
name(123) -> 'bs_restore2';
name(124) -> 'gc_bif1';
name(125) -> 'gc_bif2';
name(126) -> 'bs_final2';
name(127) -> 'bs_bits_to_bytes2';
name(128) -> 'put_literal';
name(129) -> 'is_bitstr';
name(130) -> 'bs_context_to_binary';
name(131) -> 'bs_test_unit';
name(132) -> 'bs_match_string';
name(133) -> 'bs_init_writable';
name(134) -> 'bs_append';
name(135) -> 'bs_private_append';
name(136) -> 'trim';
name(137) -> 'bs_init_bits';
name(138) -> 'bs_get_utf8';
name(139) -> 'bs_skip_utf8';
name(140) -> 'bs_get_utf16';
name(141) -> 'bs_skip_utf16';
name(142) -> 'bs_get_utf32';
name(143) -> 'bs_skip_utf32';
name(144) -> 'bs_utf8_size';
name(145) -> 'bs_put_utf8';
name(146) -> 'bs_utf16_size';
name(147) -> 'bs_put_utf16';
name(148) -> 'bs_put_utf32';
name(149) -> 'on_load';
name(150) -> 'recv_mark';
name(151) -> 'recv_set';
name(152) -> 'gc_bif3';
name(153) -> 'line';
name(154) -> 'put_map_assoc';
name(155) -> 'put_map_exact';
name(156) -> 'is_map';
name(157) -> 'has_map_fields';
name(158) -> 'get_map_elements';
name(X) -> erlang:error({bad_name, X}).
opcode('label') -> 1;
opcode('func_info') -> 2;
opcode('int_code_end') -> 3;
opcode('call') -> 4;
opcode('call_last') -> 5;
opcode('call_only') -> 6;
opcode('call_ext') -> 7;
opcode('call_ext_last') -> 8;
opcode('bif0') -> 9;
opcode('bif1') -> 10;
opcode('bif2') -> 11;
opcode('allocate') -> 12;
opcode('allocate_heap') -> 13;
opcode('allocate_zero') -> 14;
opcode('allocate_heap_zero') -> 15;
opcode('test_heap') -> 16;
opcode('init') -> 17;
opcode('deallocate') -> 18;
opcode('return') -> 19;
opcode('send') -> 20;
opcode('remove_message') -> 21;
opcode('timeout') -> 22;
opcode('loop_rec') -> 23;
opcode('loop_rec_end') -> 24;
opcode('wait') -> 25;
opcode('wait_timeout') -> 26;
opcode('m_plus') -> 27;
opcode('m_minus') -> 28;
opcode('m_times') -> 29;
opcode('m_div') -> 30;
opcode('int_div') -> 31;
opcode('int_rem') -> 32;
opcode('int_band') -> 33;
opcode('int_bor') -> 34;
opcode('int_bxor') -> 35;
opcode('int_bsl') -> 36;
opcode('int_bsr') -> 37;
opcode('int_bnot') -> 38;
opcode('is_lt') -> 39;
opcode('is_ge') -> 40;
opcode('is_eq') -> 41;
opcode('is_ne') -> 42;
opcode('is_eq_exact') -> 43;
opcode('is_ne_exact') -> 44;
opcode('is_integer') -> 45;
opcode('is_float') -> 46;
opcode('is_number') -> 47;
opcode('is_atom') -> 48;
opcode('is_pid') -> 49;
opcode('is_reference') -> 50;
opcode('is_port') -> 51;
opcode('is_nil') -> 52;
opcode('is_binary') -> 53;
opcode('is_constant') -> 54;
opcode('is_list') -> 55;
opcode('is_nonempty_list') -> 56;
opcode('is_tuple') -> 57;
opcode('test_arity') -> 58;
opcode('select_val') -> 59;
opcode('select_tuple_arity') -> 60;
opcode('jump') -> 61;
opcode('catch') -> 62;
opcode('catch_end') -> 63;
opcode('move') -> 64;
opcode('get_list') -> 65;
opcode('get_tuple_element') -> 66;
opcode('set_tuple_element') -> 67;
opcode('put_string') -> 68;
opcode('put_list') -> 69;
opcode('put_tuple') -> 70;
opcode('put') -> 71;
opcode('badmatch') -> 72;
opcode('if_end') -> 73;
opcode('case_end') -> 74;
opcode('call_fun') -> 75;
opcode('make_fun') -> 76;
opcode('is_function') -> 77;
opcode('call_ext_only') -> 78;
opcode('bs_start_match') -> 79;
opcode('bs_get_integer') -> 80;
opcode('bs_get_float') -> 81;
opcode('bs_get_binary') -> 82;
opcode('bs_skip_bits') -> 83;
opcode('bs_test_tail') -> 84;
opcode('bs_save') -> 85;
opcode('bs_restore') -> 86;
opcode('bs_init') -> 87;
opcode('bs_final') -> 88;
opcode('bs_put_integer') -> 89;
opcode('bs_put_binary') -> 90;
opcode('bs_put_float') -> 91;
opcode('bs_put_string') -> 92;
opcode('bs_need_buf') -> 93;
opcode('fclearerror') -> 94;
opcode('fcheckerror') -> 95;
opcode('fmove') -> 96;
opcode('fconv') -> 97;
opcode('fadd') -> 98;
opcode('fsub') -> 99;
opcode('fmul') -> 100;
opcode('fdiv') -> 101;
opcode('fnegate') -> 102;
opcode('make_fun2') -> 103;
opcode('try') -> 104;
opcode('try_end') -> 105;
opcode('try_case') -> 106;
opcode('try_case_end') -> 107;
opcode('raise') -> 108;
opcode('bs_init2') -> 109;
opcode('bs_bits_to_bytes') -> 110;
opcode('bs_add') -> 111;
opcode('apply') -> 112;
opcode('apply_last') -> 113;
opcode('is_boolean') -> 114;
opcode('is_function2') -> 115;
opcode('bs_start_match2') -> 116;
opcode('bs_get_integer2') -> 117;
opcode('bs_get_float2') -> 118;
opcode('bs_get_binary2') -> 119;
opcode('bs_skip_bits2') -> 120;
opcode('bs_test_tail2') -> 121;
opcode('bs_save2') -> 122;
opcode('bs_restore2') -> 123;
opcode('gc_bif1') -> 124;
opcode('gc_bif2') -> 125;
opcode('bs_final2') -> 126;
opcode('bs_bits_to_bytes2') -> 127;
opcode('put_literal') -> 128;
opcode('is_bitstr') -> 129;
opcode('bs_context_to_binary') -> 130;
opcode('bs_test_unit') -> 131;
opcode('bs_match_string') -> 132;
opcode('bs_init_writable') -> 133;
opcode('bs_append') -> 134;
opcode('bs_private_append') -> 135;
opcode('trim') -> 136;
opcode('bs_init_bits') -> 137;
opcode('bs_get_utf8') -> 138;
opcode('bs_skip_utf8') -> 139;
opcode('bs_get_utf16') -> 140;
opcode('bs_skip_utf16') -> 141;
opcode('bs_get_utf32') -> 142;
opcode('bs_skip_utf32') -> 143;
opcode('bs_utf8_size') -> 144;
opcode('bs_put_utf8') -> 145;
opcode('bs_utf16_size') -> 146;
opcode('bs_put_utf16') -> 147;
opcode('bs_put_utf32') -> 148;
opcode('on_load') -> 149;
opcode('recv_mark') -> 150;
opcode('recv_set') -> 151;
opcode('gc_bif3') -> 152;
opcode('line') -> 153;
opcode('put_map_assoc') -> 154;
opcode('put_map_exact') -> 155;
opcode('is_map') -> 156;
opcode('has_map_fields') -> 157;
opcode('get_map_elements') -> 158;
opcode(X) -> erlang:error({bad_opcode, X}).
|
LIBRARY ieee;
USE ieee.std_logic_1164.all;
ENTITY reg32_avalon_interface IS
PORT ( clock, resetn : IN STD_LOGIC;
read, write, chipselect : IN STD_LOGIC;
writedata : IN STD_LOGIC_VECTOR(31 DOWNTO 0);
byteenable : IN STD_LOGIC_VECTOR(3 DOWNTO 0);
readdata : OUT STD_LOGIC_VECTOR(31 DOWNTO 0);
Q_export : OUT STD_LOGIC_VECTOR(31 DOWNTO 0) );
END reg32_avalon_interface;
ARCHITECTURE Structure OF reg32_avalon_interface IS
SIGNAL local_byteenable : STD_LOGIC_VECTOR(3 DOWNTO 0);
SIGNAL to_reg, from_reg : STD_LOGIC_VECTOR(31 DOWNTO 0);
COMPONENT reg32
PORT ( clock, resetn : IN STD_LOGIC;
D : IN STD_LOGIC_VECTOR(31 DOWNTO 0);
byteenable : IN STD_LOGIC_VECTOR(3 DOWNTO 0);
Q : OUT STD_LOGIC_VECTOR(31 DOWNTO 0) );
END COMPONENT;
BEGIN
to_reg <= writedata;
WITH (chipselect AND write) SELECT
local_byteenable <= byteenable WHEN '1', "0000" WHEN OTHERS;
reg_instance: reg32 PORT MAP (clock, resetn, to_reg, local_byteenable, from_reg);
readdata <= from_reg;
Q_export <= from_reg;
END Structure; |
/*
* AboutAction.java
* Copyright © 1993-2020, The Avail Foundation, LLC.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* * Neither the name of the copyright holder nor the names of the contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
package com.avail.environment.actions
import com.avail.AvailRuntimeConfiguration
import com.avail.environment.AvailWorkbench
import com.avail.environment.AvailWorkbench.AdaptiveColor
import java.awt.BorderLayout
import java.awt.Color
import java.awt.Dialog.ModalityType
import java.awt.event.ActionEvent
import java.awt.event.ActionListener
import javax.swing.Action
import javax.swing.ImageIcon
import javax.swing.JDialog
import javax.swing.JLabel
import javax.swing.JPanel
import javax.swing.SwingConstants
import javax.swing.border.EmptyBorder
/**
* An `AboutAction` presents the "About Avail" dialog.
*
* @constructor
* Construct a new `AboutAction`.
*
* @param workbench
* The owning [AvailWorkbench].
*/
class AboutAction constructor(workbench: AvailWorkbench)
: AbstractWorkbenchAction(workbench, "About Avail…")
{
override fun actionPerformed(event: ActionEvent?)
{
showDialog()
}
/**
* Actually show the About dialog. This is provided separately from the
* usual [ActionListener.actionPerformed] mechanism so that we can invoke it
* directly whenever we want, without having to synthesize an [ActionEvent].
*/
fun showDialog()
{
val panel = JPanel(BorderLayout(20, 20))
panel.border = EmptyBorder(30, 50, 30, 50)
val logo = ImageIcon(
this.javaClass.getResource(
AvailWorkbench.resource("Avail-logo-about.png")))
panel.add(JLabel(logo))
val builder = StringBuilder(200)
builder.append("<html><center>")
builder.append("<font size=+2>The Avail Workbench</font><br>")
builder.append("<font size=-1>Supported Versions:</font>")
for (version in AvailRuntimeConfiguration.activeVersions)
{
builder.append("<br><font size=-2>")
builder.append(version)
builder.append("</font>")
}
builder.append("<br><br>")
builder.append(
"Copyright \u00A9 1993-2020 The Avail Foundation, LLC.<br>")
builder.append("All rights reserved.<br><br>")
val siteColor = AdaptiveColor(
light = Color(16, 16, 192),
dark = Color(128, 160, 255))
val site = "www.availlang.org"
builder.append("<font color=${siteColor.hex}>$site</font><br><br><br>")
builder.append("</center></html>")
panel.add(
JLabel(
builder.toString(),
SwingConstants.CENTER),
BorderLayout.SOUTH)
val aboutBox = JDialog(workbench, "About")
aboutBox.modalityType = ModalityType.APPLICATION_MODAL
aboutBox.contentPane.add(panel)
aboutBox.isResizable = false
aboutBox.pack()
val topLeft = workbench.location
aboutBox.setLocation(
topLeft.getX().toInt() + 22, topLeft.getY().toInt() + 22)
aboutBox.isVisible = true
}
init
{
putValue(
Action.SHORT_DESCRIPTION,
"About Avail")
}
}
|
// hierarchical model with non-centered parameterization of mu
data {
int<lower=1> N;
array[N] int<lower=0> complaints;
vector<lower=0>[N] traps;
vector[N] log_sq_foot;
int<lower=0> J; //Number of buildings
int<lower=0> K; //Number of building level predictors
array[N] int<lower=1, upper=J> building_idx;
matrix[J,K] building_data;
}
parameters {
real alpha;
real beta;
real<lower=0> inv_phi;
vector[J] mu_raw;
vector[K] zeta;
real<lower=0> sigma_mu;
}
transformed parameters {
// shift mu_raw by the mean of mu and scale it by the standard deviation
vector[J] mu = (alpha + building_data * zeta) + sigma_mu * mu_raw;
vector[N] eta = mu[building_idx] + beta * traps + log_sq_foot;
real phi = 1 / inv_phi;
}
model {
complaints ~ neg_binomial_2_log(eta, phi);
mu_raw ~ normal(0, 1); // implies mu ~ normal(alpha + building_data * zeta, sigma_mu);
alpha ~ normal(log(7), 1);
beta ~ normal(-0.25, 0.5);
inv_phi ~ normal(0, 1);
zeta ~ normal(0,1);
sigma_mu ~ normal(0,1);
}
generated quantities {
array[N] int y_rep = neg_binomial_2_log_rng(eta, phi);
}
|
package model
import (
"encoding/json"
"strings"
)
// Response Object
type DeleteGeoipRuleResponse struct {
// 规则id
Id *string `json:"id,omitempty"`
// 策略id
Policyid *string `json:"policyid,omitempty"`
// 地理位置封禁区域
Geoip *string `json:"geoip,omitempty"`
// 放行或者拦截(0拦截,1放行)
White *int32 `json:"white,omitempty"`
// 描述
Description *string `json:"description,omitempty"`
// 创建规则时间戳
Timestamp *int64 `json:"timestamp,omitempty"`
HttpStatusCode int `json:"-"`
}
func (o DeleteGeoipRuleResponse) String() string {
data, err := json.Marshal(o)
if err != nil {
return "DeleteGeoipRuleResponse struct{}"
}
return strings.Join([]string{"DeleteGeoipRuleResponse", string(data)}, " ")
}
|
object_tangible_tcg_series1_wearable_imperial_flightsuit = object_tangible_tcg_series1_shared_wearable_imperial_flightsuit:new {
playerRaces = { "object/creature/player/abyssin_male.iff",
"object/creature/player/abyssin_female.iff",
"object/mobile/vendor/abyssin_male.iff",
"object/mobile/vendor/abyssin_female.iff",
"object/creature/player/aqualish_male.iff",
"object/creature/player/aqualish_female.iff",
"object/mobile/vendor/aqualish_male.iff",
"object/mobile/vendor/aqualish_female.iff",
"object/creature/player/arcona_male.iff",
"object/creature/player/arcona_female.iff",
"object/mobile/vendor/arcona_male.iff",
"object/mobile/vendor/arcona_female.iff",
"object/creature/player/bith_male.iff",
"object/creature/player/bith_female.iff",
"object/mobile/vendor/bith_male.iff",
"object/mobile/vendor/bith_female.iff",
"object/creature/player/bothan_male.iff",
"object/creature/player/bothan_female.iff",
"object/mobile/vendor/bothan_male.iff",
"object/mobile/vendor/bothan_female.iff",
"object/creature/player/cerean_male.iff",
"object/creature/player/cerean_female.iff",
"object/mobile/vendor/cerean_male.iff",
"object/mobile/vendor/cerean_female.iff",
"object/creature/player/chadra_fan_male.iff",
"object/creature/player/chadra_fan_female.iff",
"object/mobile/vendor/chadra_fan_male.iff",
"object/mobile/vendor/chadra_fan_female.iff",
"object/creature/player/chiss_male.iff",
"object/creature/player/chiss_female.iff",
"object/mobile/vendor/chiss_male.iff",
"object/mobile/vendor/chiss_female.iff",
"object/creature/player/devaronian_male.iff",
"object/creature/player/devaronian_female.iff",
"object/mobile/vendor/devaronian_male.iff",
"object/mobile/vendor/devaronian_female.iff",
"object/creature/player/droid_male.iff",
"object/creature/player/droid_female.iff",
"object/mobile/vendor/droid_male.iff",
"object/mobile/vendor/droid_female.iff",
"object/creature/player/dug_male.iff",
"object/creature/player/dug_female.iff",
"object/mobile/vendor/dug_male.iff",
"object/mobile/vendor/dug_female.iff",
"object/creature/player/duros_male.iff",
"object/creature/player/duros_female.iff",
"object/mobile/vendor/duros_male.iff",
"object/mobile/vendor/duros_female.iff",
"object/creature/player/ewok_male.iff",
"object/creature/player/ewok_female.iff",
"object/mobile/vendor/ewok_male.iff",
"object/mobile/vendor/ewok_female.iff",
"object/creature/player/feeorin_male.iff",
"object/creature/player/feeorin_female.iff",
"object/mobile/vendor/feeorin_male.iff",
"object/mobile/vendor/feeorin_female.iff",
"object/creature/player/geonosian_male.iff",
"object/creature/player/geonosian_female.iff",
"object/mobile/vendor/geonosian_male.iff",
"object/mobile/vendor/geonosian_female.iff",
"object/creature/player/gotal_male.iff",
"object/creature/player/gotal_female.iff",
"object/mobile/vendor/gotal_male.iff",
"object/mobile/vendor/gotal_female.iff",
"object/creature/player/gran_male.iff",
"object/creature/player/gran_female.iff",
"object/mobile/vendor/gran_male.iff",
"object/mobile/vendor/gran_female.iff",
"object/creature/player/gungan_male.iff",
"object/creature/player/gungan_female.iff",
"object/mobile/vendor/gungan_male.iff",
"object/mobile/vendor/gungan_female.iff",
"object/creature/player/human_male.iff",
"object/creature/player/human_female.iff",
"object/mobile/vendor/human_male.iff",
"object/mobile/vendor/human_female.iff",
"object/creature/player/hutt_male.iff",
"object/creature/player/hutt_female.iff",
"object/mobile/vendor/hutt_male.iff",
"object/mobile/vendor/hutt_female.iff",
"object/creature/player/iktotchi_male.iff",
"object/creature/player/iktotchi_female.iff",
"object/mobile/vendor/iktotchi_male.iff",
"object/mobile/vendor/iktotchi_female.iff",
"object/creature/player/ishi_tib_male.iff",
"object/creature/player/ishi_tib_female.iff",
"object/mobile/vendor/ishi_tib_male.iff",
"object/mobile/vendor/ishi_tib_female.iff",
"object/creature/player/ithorian_male.iff",
"object/creature/player/ithorian_female.iff",
"object/mobile/vendor/ithorian_male.iff",
"object/mobile/vendor/ithorian_female.iff",
"object/creature/player/jenet_male.iff",
"object/creature/player/jenet_female.iff",
"object/mobile/vendor/jenet_male.iff",
"object/mobile/vendor/jenet_female.iff",
"object/creature/player/kel_dor_male.iff",
"object/creature/player/kel_dor_female.iff",
"object/mobile/vendor/kel_dor_male.iff",
"object/mobile/vendor/kel_dor_female.iff",
"object/creature/player/kubaz_male.iff",
"object/creature/player/kubaz_female.iff",
"object/mobile/vendor/kubaz_male.iff",
"object/mobile/vendor/kubaz_female.iff",
"object/creature/player/moncal_male.iff",
"object/creature/player/moncal_female.iff",
"object/mobile/vendor/moncal_male.iff",
"object/mobile/vendor/moncal_female.iff",
"object/creature/player/nautolan_male.iff",
"object/creature/player/nautolan_female.iff",
"object/mobile/vendor/nautolan_male.iff",
"object/mobile/vendor/nautolan_female.iff",
"object/creature/player/nightsister_male.iff",
"object/creature/player/nightsister_female.iff",
"object/mobile/vendor/nightsister_male.iff",
"object/mobile/vendor/nightsister_female.iff",
"object/creature/player/nikto_male.iff",
"object/creature/player/nikto_female.iff",
"object/mobile/vendor/nikto_male.iff",
"object/mobile/vendor/nikto_female.iff",
"object/creature/player/ortolan_male.iff",
"object/creature/player/ortolan_female.iff",
"object/mobile/vendor/ortolan_male.iff",
"object/mobile/vendor/ortolan_female.iff",
"object/creature/player/quarren_male.iff",
"object/creature/player/quarren_female.iff",
"object/mobile/vendor/quarren_male.iff",
"object/mobile/vendor/quarren_female.iff",
"object/creature/player/rodian_male.iff",
"object/creature/player/rodian_female.iff",
"object/mobile/vendor/rodian_male.iff",
"object/mobile/vendor/rodian_female.iff",
"object/creature/player/sanyassan_male.iff",
"object/creature/player/sanyassan_female.iff",
"object/mobile/vendor/sanyassan_male.iff",
"object/mobile/vendor/sanyassan_female.iff",
"object/creature/player/smc_male.iff",
"object/creature/player/smc_female.iff",
"object/mobile/vendor/smc_male.iff",
"object/mobile/vendor/smc_female.iff",
"object/creature/player/sullustan_male.iff",
"object/creature/player/sullustan_female.iff",
"object/mobile/vendor/sullustan_male.iff",
"object/mobile/vendor/sullustan_female.iff",
"object/creature/player/talz_male.iff",
"object/creature/player/talz_female.iff",
"object/mobile/vendor/talz_male.iff",
"object/mobile/vendor/talz_female.iff",
"object/creature/player/togorian_male.iff",
"object/creature/player/togorian_female.iff",
"object/mobile/vendor/togorian_male.iff",
"object/mobile/vendor/togorian_female.iff",
"object/creature/player/togruta_male.iff",
"object/creature/player/togruta_female.iff",
"object/mobile/vendor/togruta_male.iff",
"object/mobile/vendor/togruta_female.iff",
"object/creature/player/toydarian_male.iff",
"object/creature/player/toydarian_female.iff",
"object/mobile/vendor/toydarian_male.iff",
"object/mobile/vendor/toydarian_female.iff",
"object/creature/player/trandoshan_male.iff",
"object/creature/player/trandoshan_female.iff",
"object/mobile/vendor/trandoshan_male.iff",
"object/mobile/vendor/trandoshan_female.iff",
"object/creature/player/twilek_male.iff",
"object/creature/player/twilek_female.iff",
"object/mobile/vendor/twilek_male.iff",
"object/mobile/vendor/twilek_female.iff",
"object/creature/player/weequay_male.iff",
"object/creature/player/weequay_female.iff",
"object/mobile/vendor/weequay_male.iff",
"object/mobile/vendor/weequay_female.iff",
"object/creature/player/wookiee_male.iff",
"object/creature/player/wookiee_female.iff",
"object/mobile/vendor/wookiee_male.iff",
"object/mobile/vendor/wookiee_female.iff",
"object/creature/player/zabrak_male.iff",
"object/creature/player/zabrak_female.iff" ,
"object/mobile/vendor/zabrak_male.iff",
"object/mobile/vendor/zabrak_female.iff" },
numberExperimentalProperties = {1, 1, 1, 1},
experimentalProperties = {"XX", "XX", "XX", "XX"},
experimentalWeights = {1, 1, 1, 1},
experimentalGroupTitles = {"null", "null", "null", "null"},
experimentalSubGroupTitles = {"null", "null", "sockets", "hitpoints"},
experimentalMin = {0, 0, 0, 1000},
experimentalMax = {0, 0, 0, 1000},
experimentalPrecision = {0, 0, 0, 0},
experimentalCombineType = {0, 0, 4, 4},
}
ObjectTemplates:addTemplate(object_tangible_tcg_series1_wearable_imperial_flightsuit, "object/tangible/tcg/series1/wearable_imperial_flightsuit.iff")
|
Imports System.Net
Imports System.Windows.Shell
Imports System.Reflection
Class Application
' Application-level events, such as Startup, Exit, and DispatcherUnhandledException
' can be handled in this file.
Private Sub Application_Startup(ByVal sender As Object, ByVal e As System.Windows.StartupEventArgs) Handles Me.Startup
ServicePointManager.SecurityProtocol = ServicePointManager.SecurityProtocol Or SecurityProtocolType.Tls12
Dim jumpList = New JumpList
jumpList.SetJumpList(Application.Current, jumpList)
Dim task = New JumpTask With {
.Title = "MISAO Project Site on CodePlex",
.CustomCategory = "Web Sites",
.ApplicationPath = "http://misao.codeplex.com",
.Description = "Go to http://misao.codeplex.com",
.IconResourcePath = Assembly.GetExecutingAssembly.Location}
jumpList.JumpItems.Add(task)
jumpList.Apply()
Dim engine = New PresentationEngine
engine.Run()
End Sub
End Class
|
@import url(font-awesome.min.css);
@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,300i,400,400i");
/*
Story by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
*/
/* Reset */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after, q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
body {
-webkit-text-size-adjust: none;
}
/* Box Model */
*, *:before, *:after {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
/* Grid */
.row {
border-bottom: solid 1px transparent;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.row > * {
float: left;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.row:after, .row:before {
content: '';
display: block;
clear: both;
height: 0;
}
.row.uniform > * > :first-child {
margin-top: 0;
}
.row.uniform > * > :last-child {
margin-bottom: 0;
}
.row.\30 \25 > * {
padding: 0 0 0 0rem;
}
.row.\30 \25 {
margin: 0 0 -1px 0rem;
}
.row.uniform.\30 \25 > * {
padding: 0rem 0 0 0rem;
}
.row.uniform.\30 \25 {
margin: 0rem 0 -1px 0rem;
}
.row > * {
padding: 0 0 0 2rem;
}
.row {
margin: 0 0 -1px -2rem;
}
.row.uniform > * {
padding: 2rem 0 0 2rem;
}
.row.uniform {
margin: -2rem 0 -1px -2rem;
}
.row.\32 00\25 > * {
padding: 0 0 0 4rem;
}
.row.\32 00\25 {
margin: 0 0 -1px -4rem;
}
.row.uniform.\32 00\25 > * {
padding: 4rem 0 0 4rem;
}
.row.uniform.\32 00\25 {
margin: -4rem 0 -1px -4rem;
}
.row.\31 50\25 > * {
padding: 0 0 0 3rem;
}
.row.\31 50\25 {
margin: 0 0 -1px -3rem;
}
.row.uniform.\31 50\25 > * {
padding: 3rem 0 0 3rem;
}
.row.uniform.\31 50\25 {
margin: -3rem 0 -1px -3rem;
}
.row.\35 0\25 > * {
padding: 0 0 0 1rem;
}
.row.\35 0\25 {
margin: 0 0 -1px -1rem;
}
.row.uniform.\35 0\25 > * {
padding: 1rem 0 0 1rem;
}
.row.uniform.\35 0\25 {
margin: -1rem 0 -1px -1rem;
}
.row.\32 5\25 > * {
padding: 0 0 0 0.5rem;
}
.row.\32 5\25 {
margin: 0 0 -1px -0.5rem;
}
.row.uniform.\32 5\25 > * {
padding: 0.5rem 0 0 0.5rem;
}
.row.uniform.\32 5\25 {
margin: -0.5rem 0 -1px -0.5rem;
}
.\31 2u, .\31 2u\24 {
width: 100%;
clear: none;
margin-left: 0;
}
.\31 1u, .\31 1u\24 {
width: 91.6666666667%;
clear: none;
margin-left: 0;
}
.\31 0u, .\31 0u\24 {
width: 83.3333333333%;
clear: none;
margin-left: 0;
}
.\39 u, .\39 u\24 {
width: 75%;
clear: none;
margin-left: 0;
}
.\38 u, .\38 u\24 {
width: 66.6666666667%;
clear: none;
margin-left: 0;
}
.\37 u, .\37 u\24 {
width: 58.3333333333%;
clear: none;
margin-left: 0;
}
.\36 u, .\36 u\24 {
width: 50%;
clear: none;
margin-left: 0;
}
.\35 u, .\35 u\24 {
width: 41.6666666667%;
clear: none;
margin-left: 0;
}
.\34 u, .\34 u\24 {
width: 33.3333333333%;
clear: none;
margin-left: 0;
}
.\33 u, .\33 u\24 {
width: 25%;
clear: none;
margin-left: 0;
}
.\32 u, .\32 u\24 {
width: 16.6666666667%;
clear: none;
margin-left: 0;
}
.\31 u, .\31 u\24 {
width: 8.3333333333%;
clear: none;
margin-left: 0;
}
.\31 2u\24 + *,
.\31 1u\24 + *,
.\31 0u\24 + *,
.\39 u\24 + *,
.\38 u\24 + *,
.\37 u\24 + *,
.\36 u\24 + *,
.\35 u\24 + *,
.\34 u\24 + *,
.\33 u\24 + *,
.\32 u\24 + *,
.\31 u\24 + * {
clear: left;
}
.\-11u {
margin-left: 91.66667%;
}
.\-10u {
margin-left: 83.33333%;
}
.\-9u {
margin-left: 75%;
}
.\-8u {
margin-left: 66.66667%;
}
.\-7u {
margin-left: 58.33333%;
}
.\-6u {
margin-left: 50%;
}
.\-5u {
margin-left: 41.66667%;
}
.\-4u {
margin-left: 33.33333%;
}
.\-3u {
margin-left: 25%;
}
.\-2u {
margin-left: 16.66667%;
}
.\-1u {
margin-left: 8.33333%;
}
@media screen and (max-width: 1680px) {
.row > * {
padding: 0 0 0 2rem;
}
.row {
margin: 0 0 -1px -2rem;
}
.row.uniform > * {
padding: 2rem 0 0 2rem;
}
.row.uniform {
margin: -2rem 0 -1px -2rem;
}
.row.\32 00\25 > * {
padding: 0 0 0 4rem;
}
.row.\32 00\25 {
margin: 0 0 -1px -4rem;
}
.row.uniform.\32 00\25 > * {
padding: 4rem 0 0 4rem;
}
.row.uniform.\32 00\25 {
margin: -4rem 0 -1px -4rem;
}
.row.\31 50\25 > * {
padding: 0 0 0 3rem;
}
.row.\31 50\25 {
margin: 0 0 -1px -3rem;
}
.row.uniform.\31 50\25 > * {
padding: 3rem 0 0 3rem;
}
.row.uniform.\31 50\25 {
margin: -3rem 0 -1px -3rem;
}
.row.\35 0\25 > * {
padding: 0 0 0 1rem;
}
.row.\35 0\25 {
margin: 0 0 -1px -1rem;
}
.row.uniform.\35 0\25 > * {
padding: 1rem 0 0 1rem;
}
.row.uniform.\35 0\25 {
margin: -1rem 0 -1px -1rem;
}
.row.\32 5\25 > * {
padding: 0 0 0 0.5rem;
}
.row.\32 5\25 {
margin: 0 0 -1px -0.5rem;
}
.row.uniform.\32 5\25 > * {
padding: 0.5rem 0 0 0.5rem;
}
.row.uniform.\32 5\25 {
margin: -0.5rem 0 -1px -0.5rem;
}
.\31 2u\28xlarge\29, .\31 2u\24\28xlarge\29 {
width: 100%;
clear: none;
margin-left: 0;
}
.\31 1u\28xlarge\29, .\31 1u\24\28xlarge\29 {
width: 91.6666666667%;
clear: none;
margin-left: 0;
}
.\31 0u\28xlarge\29, .\31 0u\24\28xlarge\29 {
width: 83.3333333333%;
clear: none;
margin-left: 0;
}
.\39 u\28xlarge\29, .\39 u\24\28xlarge\29 {
width: 75%;
clear: none;
margin-left: 0;
}
.\38 u\28xlarge\29, .\38 u\24\28xlarge\29 {
width: 66.6666666667%;
clear: none;
margin-left: 0;
}
.\37 u\28xlarge\29, .\37 u\24\28xlarge\29 {
width: 58.3333333333%;
clear: none;
margin-left: 0;
}
.\36 u\28xlarge\29, .\36 u\24\28xlarge\29 {
width: 50%;
clear: none;
margin-left: 0;
}
.\35 u\28xlarge\29, .\35 u\24\28xlarge\29 {
width: 41.6666666667%;
clear: none;
margin-left: 0;
}
.\34 u\28xlarge\29, .\34 u\24\28xlarge\29 {
width: 33.3333333333%;
clear: none;
margin-left: 0;
}
.\33 u\28xlarge\29, .\33 u\24\28xlarge\29 {
width: 25%;
clear: none;
margin-left: 0;
}
.\32 u\28xlarge\29, .\32 u\24\28xlarge\29 {
width: 16.6666666667%;
clear: none;
margin-left: 0;
}
.\31 u\28xlarge\29, .\31 u\24\28xlarge\29 {
width: 8.3333333333%;
clear: none;
margin-left: 0;
}
.\31 2u\24\28xlarge\29 + *,
.\31 1u\24\28xlarge\29 + *,
.\31 0u\24\28xlarge\29 + *,
.\39 u\24\28xlarge\29 + *,
.\38 u\24\28xlarge\29 + *,
.\37 u\24\28xlarge\29 + *,
.\36 u\24\28xlarge\29 + *,
.\35 u\24\28xlarge\29 + *,
.\34 u\24\28xlarge\29 + *,
.\33 u\24\28xlarge\29 + *,
.\32 u\24\28xlarge\29 + *,
.\31 u\24\28xlarge\29 + * {
clear: left;
}
.\-11u\28xlarge\29 {
margin-left: 91.66667%;
}
.\-10u\28xlarge\29 {
margin-left: 83.33333%;
}
.\-9u\28xlarge\29 {
margin-left: 75%;
}
.\-8u\28xlarge\29 {
margin-left: 66.66667%;
}
.\-7u\28xlarge\29 {
margin-left: 58.33333%;
}
.\-6u\28xlarge\29 {
margin-left: 50%;
}
.\-5u\28xlarge\29 {
margin-left: 41.66667%;
}
.\-4u\28xlarge\29 {
margin-left: 33.33333%;
}
.\-3u\28xlarge\29 {
margin-left: 25%;
}
.\-2u\28xlarge\29 {
margin-left: 16.66667%;
}
.\-1u\28xlarge\29 {
margin-left: 8.33333%;
}
}
@media screen and (max-width: 1280px) {
.row > * {
padding: 0 0 0 2rem;
}
.row {
margin: 0 0 -1px -2rem;
}
.row.uniform > * {
padding: 2rem 0 0 2rem;
}
.row.uniform {
margin: -2rem 0 -1px -2rem;
}
.row.\32 00\25 > * {
padding: 0 0 0 4rem;
}
.row.\32 00\25 {
margin: 0 0 -1px -4rem;
}
.row.uniform.\32 00\25 > * {
padding: 4rem 0 0 4rem;
}
.row.uniform.\32 00\25 {
margin: -4rem 0 -1px -4rem;
}
.row.\31 50\25 > * {
padding: 0 0 0 3rem;
}
.row.\31 50\25 {
margin: 0 0 -1px -3rem;
}
.row.uniform.\31 50\25 > * {
padding: 3rem 0 0 3rem;
}
.row.uniform.\31 50\25 {
margin: -3rem 0 -1px -3rem;
}
.row.\35 0\25 > * {
padding: 0 0 0 1rem;
}
.row.\35 0\25 {
margin: 0 0 -1px -1rem;
}
.row.uniform.\35 0\25 > * {
padding: 1rem 0 0 1rem;
}
.row.uniform.\35 0\25 {
margin: -1rem 0 -1px -1rem;
}
.row.\32 5\25 > * {
padding: 0 0 0 0.5rem;
}
.row.\32 5\25 {
margin: 0 0 -1px -0.5rem;
}
.row.uniform.\32 5\25 > * {
padding: 0.5rem 0 0 0.5rem;
}
.row.uniform.\32 5\25 {
margin: -0.5rem 0 -1px -0.5rem;
}
.\31 2u\28large\29, .\31 2u\24\28large\29 {
width: 100%;
clear: none;
margin-left: 0;
}
.\31 1u\28large\29, .\31 1u\24\28large\29 {
width: 91.6666666667%;
clear: none;
margin-left: 0;
}
.\31 0u\28large\29, .\31 0u\24\28large\29 {
width: 83.3333333333%;
clear: none;
margin-left: 0;
}
.\39 u\28large\29, .\39 u\24\28large\29 {
width: 75%;
clear: none;
margin-left: 0;
}
.\38 u\28large\29, .\38 u\24\28large\29 {
width: 66.6666666667%;
clear: none;
margin-left: 0;
}
.\37 u\28large\29, .\37 u\24\28large\29 {
width: 58.3333333333%;
clear: none;
margin-left: 0;
}
.\36 u\28large\29, .\36 u\24\28large\29 {
width: 50%;
clear: none;
margin-left: 0;
}
.\35 u\28large\29, .\35 u\24\28large\29 {
width: 41.6666666667%;
clear: none;
margin-left: 0;
}
.\34 u\28large\29, .\34 u\24\28large\29 {
width: 33.3333333333%;
clear: none;
margin-left: 0;
}
.\33 u\28large\29, .\33 u\24\28large\29 {
width: 25%;
clear: none;
margin-left: 0;
}
.\32 u\28large\29, .\32 u\24\28large\29 {
width: 16.6666666667%;
clear: none;
margin-left: 0;
}
.\31 u\28large\29, .\31 u\24\28large\29 {
width: 8.3333333333%;
clear: none;
margin-left: 0;
}
.\31 2u\24\28large\29 + *,
.\31 1u\24\28large\29 + *,
.\31 0u\24\28large\29 + *,
.\39 u\24\28large\29 + *,
.\38 u\24\28large\29 + *,
.\37 u\24\28large\29 + *,
.\36 u\24\28large\29 + *,
.\35 u\24\28large\29 + *,
.\34 u\24\28large\29 + *,
.\33 u\24\28large\29 + *,
.\32 u\24\28large\29 + *,
.\31 u\24\28large\29 + * {
clear: left;
}
.\-11u\28large\29 {
margin-left: 91.66667%;
}
.\-10u\28large\29 {
margin-left: 83.33333%;
}
.\-9u\28large\29 {
margin-left: 75%;
}
.\-8u\28large\29 {
margin-left: 66.66667%;
}
.\-7u\28large\29 {
margin-left: 58.33333%;
}
.\-6u\28large\29 {
margin-left: 50%;
}
.\-5u\28large\29 {
margin-left: 41.66667%;
}
.\-4u\28large\29 {
margin-left: 33.33333%;
}
.\-3u\28large\29 {
margin-left: 25%;
}
.\-2u\28large\29 {
margin-left: 16.66667%;
}
.\-1u\28large\29 {
margin-left: 8.33333%;
}
}
@media screen and (max-width: 980px) {
.row > * {
padding: 0 0 0 2rem;
}
.row {
margin: 0 0 -1px -2rem;
}
.row.uniform > * {
padding: 2rem 0 0 2rem;
}
.row.uniform {
margin: -2rem 0 -1px -2rem;
}
.row.\32 00\25 > * {
padding: 0 0 0 4rem;
}
.row.\32 00\25 {
margin: 0 0 -1px -4rem;
}
.row.uniform.\32 00\25 > * {
padding: 4rem 0 0 4rem;
}
.row.uniform.\32 00\25 {
margin: -4rem 0 -1px -4rem;
}
.row.\31 50\25 > * {
padding: 0 0 0 3rem;
}
.row.\31 50\25 {
margin: 0 0 -1px -3rem;
}
.row.uniform.\31 50\25 > * {
padding: 3rem 0 0 3rem;
}
.row.uniform.\31 50\25 {
margin: -3rem 0 -1px -3rem;
}
.row.\35 0\25 > * {
padding: 0 0 0 1rem;
}
.row.\35 0\25 {
margin: 0 0 -1px -1rem;
}
.row.uniform.\35 0\25 > * {
padding: 1rem 0 0 1rem;
}
.row.uniform.\35 0\25 {
margin: -1rem 0 -1px -1rem;
}
.row.\32 5\25 > * {
padding: 0 0 0 0.5rem;
}
.row.\32 5\25 {
margin: 0 0 -1px -0.5rem;
}
.row.uniform.\32 5\25 > * {
padding: 0.5rem 0 0 0.5rem;
}
.row.uniform.\32 5\25 {
margin: -0.5rem 0 -1px -0.5rem;
}
.\31 2u\28medium\29, .\31 2u\24\28medium\29 {
width: 100%;
clear: none;
margin-left: 0;
}
.\31 1u\28medium\29, .\31 1u\24\28medium\29 {
width: 91.6666666667%;
clear: none;
margin-left: 0;
}
.\31 0u\28medium\29, .\31 0u\24\28medium\29 {
width: 83.3333333333%;
clear: none;
margin-left: 0;
}
.\39 u\28medium\29, .\39 u\24\28medium\29 {
width: 75%;
clear: none;
margin-left: 0;
}
.\38 u\28medium\29, .\38 u\24\28medium\29 {
width: 66.6666666667%;
clear: none;
margin-left: 0;
}
.\37 u\28medium\29, .\37 u\24\28medium\29 {
width: 58.3333333333%;
clear: none;
margin-left: 0;
}
.\36 u\28medium\29, .\36 u\24\28medium\29 {
width: 50%;
clear: none;
margin-left: 0;
}
.\35 u\28medium\29, .\35 u\24\28medium\29 {
width: 41.6666666667%;
clear: none;
margin-left: 0;
}
.\34 u\28medium\29, .\34 u\24\28medium\29 {
width: 33.3333333333%;
clear: none;
margin-left: 0;
}
.\33 u\28medium\29, .\33 u\24\28medium\29 {
width: 25%;
clear: none;
margin-left: 0;
}
.\32 u\28medium\29, .\32 u\24\28medium\29 {
width: 16.6666666667%;
clear: none;
margin-left: 0;
}
.\31 u\28medium\29, .\31 u\24\28medium\29 {
width: 8.3333333333%;
clear: none;
margin-left: 0;
}
.\31 2u\24\28medium\29 + *,
.\31 1u\24\28medium\29 + *,
.\31 0u\24\28medium\29 + *,
.\39 u\24\28medium\29 + *,
.\38 u\24\28medium\29 + *,
.\37 u\24\28medium\29 + *,
.\36 u\24\28medium\29 + *,
.\35 u\24\28medium\29 + *,
.\34 u\24\28medium\29 + *,
.\33 u\24\28medium\29 + *,
.\32 u\24\28medium\29 + *,
.\31 u\24\28medium\29 + * {
clear: left;
}
.\-11u\28medium\29 {
margin-left: 91.66667%;
}
.\-10u\28medium\29 {
margin-left: 83.33333%;
}
.\-9u\28medium\29 {
margin-left: 75%;
}
.\-8u\28medium\29 {
margin-left: 66.66667%;
}
.\-7u\28medium\29 {
margin-left: 58.33333%;
}
.\-6u\28medium\29 {
margin-left: 50%;
}
.\-5u\28medium\29 {
margin-left: 41.66667%;
}
.\-4u\28medium\29 {
margin-left: 33.33333%;
}
.\-3u\28medium\29 {
margin-left: 25%;
}
.\-2u\28medium\29 {
margin-left: 16.66667%;
}
.\-1u\28medium\29 {
margin-left: 8.33333%;
}
}
@media screen and (max-width: 736px) {
.row > * {
padding: 0 0 0 2rem;
}
.row {
margin: 0 0 -1px -2rem;
}
.row.uniform > * {
padding: 2rem 0 0 2rem;
}
.row.uniform {
margin: -2rem 0 -1px -2rem;
}
.row.\32 00\25 > * {
padding: 0 0 0 4rem;
}
.row.\32 00\25 {
margin: 0 0 -1px -4rem;
}
.row.uniform.\32 00\25 > * {
padding: 4rem 0 0 4rem;
}
.row.uniform.\32 00\25 {
margin: -4rem 0 -1px -4rem;
}
.row.\31 50\25 > * {
padding: 0 0 0 3rem;
}
.row.\31 50\25 {
margin: 0 0 -1px -3rem;
}
.row.uniform.\31 50\25 > * {
padding: 3rem 0 0 3rem;
}
.row.uniform.\31 50\25 {
margin: -3rem 0 -1px -3rem;
}
.row.\35 0\25 > * {
padding: 0 0 0 1rem;
}
.row.\35 0\25 {
margin: 0 0 -1px -1rem;
}
.row.uniform.\35 0\25 > * {
padding: 1rem 0 0 1rem;
}
.row.uniform.\35 0\25 {
margin: -1rem 0 -1px -1rem;
}
.row.\32 5\25 > * {
padding: 0 0 0 0.5rem;
}
.row.\32 5\25 {
margin: 0 0 -1px -0.5rem;
}
.row.uniform.\32 5\25 > * {
padding: 0.5rem 0 0 0.5rem;
}
.row.uniform.\32 5\25 {
margin: -0.5rem 0 -1px -0.5rem;
}
.\31 2u\28small\29, .\31 2u\24\28small\29 {
width: 100%;
clear: none;
margin-left: 0;
}
.\31 1u\28small\29, .\31 1u\24\28small\29 {
width: 91.6666666667%;
clear: none;
margin-left: 0;
}
.\31 0u\28small\29, .\31 0u\24\28small\29 {
width: 83.3333333333%;
clear: none;
margin-left: 0;
}
.\39 u\28small\29, .\39 u\24\28small\29 {
width: 75%;
clear: none;
margin-left: 0;
}
.\38 u\28small\29, .\38 u\24\28small\29 {
width: 66.6666666667%;
clear: none;
margin-left: 0;
}
.\37 u\28small\29, .\37 u\24\28small\29 {
width: 58.3333333333%;
clear: none;
margin-left: 0;
}
.\36 u\28small\29, .\36 u\24\28small\29 {
width: 50%;
clear: none;
margin-left: 0;
}
.\35 u\28small\29, .\35 u\24\28small\29 {
width: 41.6666666667%;
clear: none;
margin-left: 0;
}
.\34 u\28small\29, .\34 u\24\28small\29 {
width: 33.3333333333%;
clear: none;
margin-left: 0;
}
.\33 u\28small\29, .\33 u\24\28small\29 {
width: 25%;
clear: none;
margin-left: 0;
}
.\32 u\28small\29, .\32 u\24\28small\29 {
width: 16.6666666667%;
clear: none;
margin-left: 0;
}
.\31 u\28small\29, .\31 u\24\28small\29 {
width: 8.3333333333%;
clear: none;
margin-left: 0;
}
.\31 2u\24\28small\29 + *,
.\31 1u\24\28small\29 + *,
.\31 0u\24\28small\29 + *,
.\39 u\24\28small\29 + *,
.\38 u\24\28small\29 + *,
.\37 u\24\28small\29 + *,
.\36 u\24\28small\29 + *,
.\35 u\24\28small\29 + *,
.\34 u\24\28small\29 + *,
.\33 u\24\28small\29 + *,
.\32 u\24\28small\29 + *,
.\31 u\24\28small\29 + * {
clear: left;
}
.\-11u\28small\29 {
margin-left: 91.66667%;
}
.\-10u\28small\29 {
margin-left: 83.33333%;
}
.\-9u\28small\29 {
margin-left: 75%;
}
.\-8u\28small\29 {
margin-left: 66.66667%;
}
.\-7u\28small\29 {
margin-left: 58.33333%;
}
.\-6u\28small\29 {
margin-left: 50%;
}
.\-5u\28small\29 {
margin-left: 41.66667%;
}
.\-4u\28small\29 {
margin-left: 33.33333%;
}
.\-3u\28small\29 {
margin-left: 25%;
}
.\-2u\28small\29 {
margin-left: 16.66667%;
}
.\-1u\28small\29 {
margin-left: 8.33333%;
}
}
@media screen and (max-width: 480px) {
.row > * {
padding: 0 0 0 2rem;
}
.row {
margin: 0 0 -1px -2rem;
}
.row.uniform > * {
padding: 2rem 0 0 2rem;
}
.row.uniform {
margin: -2rem 0 -1px -2rem;
}
.row.\32 00\25 > * {
padding: 0 0 0 4rem;
}
.row.\32 00\25 {
margin: 0 0 -1px -4rem;
}
.row.uniform.\32 00\25 > * {
padding: 4rem 0 0 4rem;
}
.row.uniform.\32 00\25 {
margin: -4rem 0 -1px -4rem;
}
.row.\31 50\25 > * {
padding: 0 0 0 3rem;
}
.row.\31 50\25 {
margin: 0 0 -1px -3rem;
}
.row.uniform.\31 50\25 > * {
padding: 3rem 0 0 3rem;
}
.row.uniform.\31 50\25 {
margin: -3rem 0 -1px -3rem;
}
.row.\35 0\25 > * {
padding: 0 0 0 1rem;
}
.row.\35 0\25 {
margin: 0 0 -1px -1rem;
}
.row.uniform.\35 0\25 > * {
padding: 1rem 0 0 1rem;
}
.row.uniform.\35 0\25 {
margin: -1rem 0 -1px -1rem;
}
.row.\32 5\25 > * {
padding: 0 0 0 0.5rem;
}
.row.\32 5\25 {
margin: 0 0 -1px -0.5rem;
}
.row.uniform.\32 5\25 > * {
padding: 0.5rem 0 0 0.5rem;
}
.row.uniform.\32 5\25 {
margin: -0.5rem 0 -1px -0.5rem;
}
.\31 2u\28xsmall\29, .\31 2u\24\28xsmall\29 {
width: 100%;
clear: none;
margin-left: 0;
}
.\31 1u\28xsmall\29, .\31 1u\24\28xsmall\29 {
width: 91.6666666667%;
clear: none;
margin-left: 0;
}
.\31 0u\28xsmall\29, .\31 0u\24\28xsmall\29 {
width: 83.3333333333%;
clear: none;
margin-left: 0;
}
.\39 u\28xsmall\29, .\39 u\24\28xsmall\29 {
width: 75%;
clear: none;
margin-left: 0;
}
.\38 u\28xsmall\29, .\38 u\24\28xsmall\29 {
width: 66.6666666667%;
clear: none;
margin-left: 0;
}
.\37 u\28xsmall\29, .\37 u\24\28xsmall\29 {
width: 58.3333333333%;
clear: none;
margin-left: 0;
}
.\36 u\28xsmall\29, .\36 u\24\28xsmall\29 {
width: 50%;
clear: none;
margin-left: 0;
}
.\35 u\28xsmall\29, .\35 u\24\28xsmall\29 {
width: 41.6666666667%;
clear: none;
margin-left: 0;
}
.\34 u\28xsmall\29, .\34 u\24\28xsmall\29 {
width: 33.3333333333%;
clear: none;
margin-left: 0;
}
.\33 u\28xsmall\29, .\33 u\24\28xsmall\29 {
width: 25%;
clear: none;
margin-left: 0;
}
.\32 u\28xsmall\29, .\32 u\24\28xsmall\29 {
width: 16.6666666667%;
clear: none;
margin-left: 0;
}
.\31 u\28xsmall\29, .\31 u\24\28xsmall\29 {
width: 8.3333333333%;
clear: none;
margin-left: 0;
}
.\31 2u\24\28xsmall\29 + *,
.\31 1u\24\28xsmall\29 + *,
.\31 0u\24\28xsmall\29 + *,
.\39 u\24\28xsmall\29 + *,
.\38 u\24\28xsmall\29 + *,
.\37 u\24\28xsmall\29 + *,
.\36 u\24\28xsmall\29 + *,
.\35 u\24\28xsmall\29 + *,
.\34 u\24\28xsmall\29 + *,
.\33 u\24\28xsmall\29 + *,
.\32 u\24\28xsmall\29 + *,
.\31 u\24\28xsmall\29 + * {
clear: left;
}
.\-11u\28xsmall\29 {
margin-left: 91.66667%;
}
.\-10u\28xsmall\29 {
margin-left: 83.33333%;
}
.\-9u\28xsmall\29 {
margin-left: 75%;
}
.\-8u\28xsmall\29 {
margin-left: 66.66667%;
}
.\-7u\28xsmall\29 {
margin-left: 58.33333%;
}
.\-6u\28xsmall\29 {
margin-left: 50%;
}
.\-5u\28xsmall\29 {
margin-left: 41.66667%;
}
.\-4u\28xsmall\29 {
margin-left: 33.33333%;
}
.\-3u\28xsmall\29 {
margin-left: 25%;
}
.\-2u\28xsmall\29 {
margin-left: 16.66667%;
}
.\-1u\28xsmall\29 {
margin-left: 8.33333%;
}
}
@media screen and (max-width: 360px) {
.row > * {
padding: 0 0 0 2rem;
}
.row {
margin: 0 0 -1px -2rem;
}
.row.uniform > * {
padding: 2rem 0 0 2rem;
}
.row.uniform {
margin: -2rem 0 -1px -2rem;
}
.row.\32 00\25 > * {
padding: 0 0 0 4rem;
}
.row.\32 00\25 {
margin: 0 0 -1px -4rem;
}
.row.uniform.\32 00\25 > * {
padding: 4rem 0 0 4rem;
}
.row.uniform.\32 00\25 {
margin: -4rem 0 -1px -4rem;
}
.row.\31 50\25 > * {
padding: 0 0 0 3rem;
}
.row.\31 50\25 {
margin: 0 0 -1px -3rem;
}
.row.uniform.\31 50\25 > * {
padding: 3rem 0 0 3rem;
}
.row.uniform.\31 50\25 {
margin: -3rem 0 -1px -3rem;
}
.row.\35 0\25 > * {
padding: 0 0 0 1rem;
}
.row.\35 0\25 {
margin: 0 0 -1px -1rem;
}
.row.uniform.\35 0\25 > * {
padding: 1rem 0 0 1rem;
}
.row.uniform.\35 0\25 {
margin: -1rem 0 -1px -1rem;
}
.row.\32 5\25 > * {
padding: 0 0 0 0.5rem;
}
.row.\32 5\25 {
margin: 0 0 -1px -0.5rem;
}
.row.uniform.\32 5\25 > * {
padding: 0.5rem 0 0 0.5rem;
}
.row.uniform.\32 5\25 {
margin: -0.5rem 0 -1px -0.5rem;
}
.\31 2u\28xxsmall\29, .\31 2u\24\28xxsmall\29 {
width: 100%;
clear: none;
margin-left: 0;
}
.\31 1u\28xxsmall\29, .\31 1u\24\28xxsmall\29 {
width: 91.6666666667%;
clear: none;
margin-left: 0;
}
.\31 0u\28xxsmall\29, .\31 0u\24\28xxsmall\29 {
width: 83.3333333333%;
clear: none;
margin-left: 0;
}
.\39 u\28xxsmall\29, .\39 u\24\28xxsmall\29 {
width: 75%;
clear: none;
margin-left: 0;
}
.\38 u\28xxsmall\29, .\38 u\24\28xxsmall\29 {
width: 66.6666666667%;
clear: none;
margin-left: 0;
}
.\37 u\28xxsmall\29, .\37 u\24\28xxsmall\29 {
width: 58.3333333333%;
clear: none;
margin-left: 0;
}
.\36 u\28xxsmall\29, .\36 u\24\28xxsmall\29 {
width: 50%;
clear: none;
margin-left: 0;
}
.\35 u\28xxsmall\29, .\35 u\24\28xxsmall\29 {
width: 41.6666666667%;
clear: none;
margin-left: 0;
}
.\34 u\28xxsmall\29, .\34 u\24\28xxsmall\29 {
width: 33.3333333333%;
clear: none;
margin-left: 0;
}
.\33 u\28xxsmall\29, .\33 u\24\28xxsmall\29 {
width: 25%;
clear: none;
margin-left: 0;
}
.\32 u\28xxsmall\29, .\32 u\24\28xxsmall\29 {
width: 16.6666666667%;
clear: none;
margin-left: 0;
}
.\31 u\28xxsmall\29, .\31 u\24\28xxsmall\29 {
width: 8.3333333333%;
clear: none;
margin-left: 0;
}
.\31 2u\24\28xxsmall\29 + *,
.\31 1u\24\28xxsmall\29 + *,
.\31 0u\24\28xxsmall\29 + *,
.\39 u\24\28xxsmall\29 + *,
.\38 u\24\28xxsmall\29 + *,
.\37 u\24\28xxsmall\29 + *,
.\36 u\24\28xxsmall\29 + *,
.\35 u\24\28xxsmall\29 + *,
.\34 u\24\28xxsmall\29 + *,
.\33 u\24\28xxsmall\29 + *,
.\32 u\24\28xxsmall\29 + *,
.\31 u\24\28xxsmall\29 + * {
clear: left;
}
.\-11u\28xxsmall\29 {
margin-left: 91.66667%;
}
.\-10u\28xxsmall\29 {
margin-left: 83.33333%;
}
.\-9u\28xxsmall\29 {
margin-left: 75%;
}
.\-8u\28xxsmall\29 {
margin-left: 66.66667%;
}
.\-7u\28xxsmall\29 {
margin-left: 58.33333%;
}
.\-6u\28xxsmall\29 {
margin-left: 50%;
}
.\-5u\28xxsmall\29 {
margin-left: 41.66667%;
}
.\-4u\28xxsmall\29 {
margin-left: 33.33333%;
}
.\-3u\28xxsmall\29 {
margin-left: 25%;
}
.\-2u\28xxsmall\29 {
margin-left: 16.66667%;
}
.\-1u\28xxsmall\29 {
margin-left: 8.33333%;
}
}
/* Basic */
@-ms-viewport {
width: device-width;
}
body {
-ms-overflow-style: scrollbar;
}
@media screen and (max-width: 480px) {
html, body {
min-width: 320px;
}
}
body {
background: #ffffff;
}
body.is-loading *, body.is-loading *:before, body.is-loading *:after {
-moz-animation: none !important;
-webkit-animation: none !important;
-ms-animation: none !important;
animation: none !important;
-moz-transition: none !important;
-webkit-transition: none !important;
-ms-transition: none !important;
transition: none !important;
}
/* Type */
html {
font-size: 18pt;
}
@media screen and (max-width: 1680px) {
html {
font-size: 14pt;
}
}
@media screen and (max-width: 1280px) {
html {
font-size: 12pt;
}
}
@media screen and (max-width: 736px) {
html {
font-size: 11pt;
}
}
@media screen and (max-width: 360px) {
html {
font-size: 10pt;
}
}
body {
background-color: #ffffff;
color: #000000;
}
body, input, select, textarea {
font-family: "Source Sans Pro", Helvetica, sans-serif;
font-size: 1rem;
font-weight: 300;
line-height: 1.65;
}
a {
-moz-transition: color 0.2s ease-in-out;
-webkit-transition: color 0.2s ease-in-out;
-ms-transition: color 0.2s ease-in-out;
transition: color 0.2s ease-in-out;
text-decoration: underline;
}
a:hover {
text-decoration: none;
}
strong, b {
font-weight: 400;
}
em, i {
font-style: italic;
}
p {
margin: 0 0 2rem 0;
}
p.major {
font-size: 1.25rem;
}
h1, h2, h3, h4, h5, h6 {
font-weight: 300;
line-height: 1.375;
letter-spacing: -0.05em;
margin: 0 0 1rem 0;
}
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
color: inherit;
text-decoration: none;
}
h1 {
font-size: 3.5rem;
line-height: 1.2;
}
h2 {
font-size: 2.25rem;
}
h3 {
font-size: 1.5rem;
}
h4 {
font-size: 1.1rem;
}
h5 {
font-size: 0.9rem;
}
h6 {
font-size: 0.7rem;
}
sub {
font-size: 0.8rem;
position: relative;
top: 0.5rem;
}
sup {
font-size: 0.8rem;
position: relative;
top: -0.5rem;
}
blockquote {
border-left: solid 4px;
font-style: italic;
margin: 0 0 2rem 0;
padding: 0.5rem 0 0.5rem 2rem;
}
code {
border-radius: 4px;
font-family: "Courier New", monospace;
font-size: 0.9em;
margin: 0 0.25rem;
padding: 0.25rem 0.325rem;
}
pre {
-webkit-overflow-scrolling: touch;
font-family: "Courier New", monospace;
font-size: 0.9em;
margin: 0 0 2rem 0;
}
pre code {
display: block;
line-height: 1.5;
padding: 0.75rem 1rem;
overflow-x: auto;
}
hr {
border: 0;
border-bottom: solid 1px;
margin: 2.5rem 0;
}
hr.major {
margin: 3.5rem 0;
}
.align-left {
text-align: left;
}
.align-center {
text-align: center;
}
.align-right {
text-align: right;
}
@media screen and (max-width: 736px) {
p.major {
font-size: 1.1rem;
}
h1 {
font-size: 2.5rem;
}
h2 {
font-size: 2rem;
}
h3 {
font-size: 1.25rem;
}
h4 {
font-size: 1rem;
}
}
input, select, textarea {
color: #000000;
}
a {
color: #000000;
}
a:hover {
color: #47D3E5;
}
strong, b {
color: #000000;
}
h1, h2, h3, h4, h5, h6 {
color: #000000;
}
blockquote {
border-left-color: rgba(0, 0, 0, 0.2);
}
code {
background: rgba(0, 0, 0, 0.05);
border-color: rgba(0, 0, 0, 0.2);
}
hr {
border-bottom-color: rgba(0, 0, 0, 0.2);
}
/* Box */
.box {
border-radius: 4px;
border: solid 1px;
margin-bottom: 2rem;
padding: 1.5rem;
}
.box > :last-child,
.box > :last-child > :last-child,
.box > :last-child > :last-child > :last-child {
margin-bottom: 0;
}
.box.alt {
border: 0;
border-radius: 0;
padding: 0;
}
.box {
border-color: rgba(0, 0, 0, 0.2);
}
/* Button */
input[type="submit"],
input[type="reset"],
input[type="button"],
button,
.button {
-moz-appearance: none;
-webkit-appearance: none;
-ms-appearance: none;
appearance: none;
-moz-transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out, color 0.2s ease-in-out;
-webkit-transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out, color 0.2s ease-in-out;
-ms-transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out, color 0.2s ease-in-out;
transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out, color 0.2s ease-in-out;
border: 0;
cursor: pointer;
display: inline-block;
font-weight: 400;
letter-spacing: 0.125em;
text-align: center;
text-decoration: none;
text-transform: uppercase;
white-space: nowrap;
font-size: 0.75rem;
max-width: 20rem;
height: 3.75em;
line-height: 3.75em;
border-radius: 3.75em;
padding: 0 2.5em;
text-overflow: ellipsis;
overflow: hidden;
}
input[type="submit"].icon:before,
input[type="reset"].icon:before,
input[type="button"].icon:before,
button.icon:before,
.button.icon:before {
margin-right: 0.5rem;
}
input[type="submit"].fit,
input[type="reset"].fit,
input[type="button"].fit,
button.fit,
.button.fit {
display: block;
margin: 0 0 1rem 0;
width: 100%;
}
input[type="submit"].small,
input[type="reset"].small,
input[type="button"].small,
button.small,
.button.small {
font-size: 0.6rem;
height: 3.325em;
line-height: 3.325em;
border-radius: 3.325em;
padding: 0 2em;
}
input[type="submit"].big,
input[type="reset"].big,
input[type="button"].big,
button.big,
.button.big {
font-size: 0.8rem;
height: 4em;
line-height: 4em;
border-radius: 4em;
padding: 0 3em;
}
input[type="submit"].wide,
input[type="reset"].wide,
input[type="button"].wide,
button.wide,
.button.wide {
min-width: 14em;
}
input[type="submit"].disabled, input[type="submit"]:disabled,
input[type="reset"].disabled,
input[type="reset"]:disabled,
input[type="button"].disabled,
input[type="button"]:disabled,
button.disabled,
button:disabled,
.button.disabled,
.button:disabled {
-moz-pointer-events: none;
-webkit-pointer-events: none;
-ms-pointer-events: none;
pointer-events: none;
opacity: 0.25;
}
input[type="submit"],
input[type="reset"],
input[type="button"],
button,
.button {
background-color: transparent;
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
color: #000000 !important;
}
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
button:hover,
.button:hover {
box-shadow: inset 0 0 0 1px #47D3E5;
color: #47D3E5 !important;
}
input[type="submit"]:active,
input[type="reset"]:active,
input[type="button"]:active,
button:active,
.button:active {
background-color: rgba(71, 211, 229, 0.2);
box-shadow: inset 0 0 0 1px #47D3E5;
color: #47D3E5 !important;
}
input[type="submit"].special,
input[type="reset"].special,
input[type="button"].special,
button.special,
.button.special {
background-color: #000000;
box-shadow: none;
color: #ffffff !important;
}
input[type="submit"].special:hover,
input[type="reset"].special:hover,
input[type="button"].special:hover,
button.special:hover,
.button.special:hover {
background-color: #47D3E5;
}
input[type="submit"].special:active,
input[type="reset"].special:active,
input[type="button"].special:active,
button.special:active,
.button.special:active {
background-color: #1ebdd1;
}
/* Form */
form {
margin: 0 0 2rem 0;
}
form .field {
margin: 0 0 1.5rem 0;
clear: both;
}
form .field.half {
clear: none;
width: 50%;
float: left;
padding: 0 0 0 0.75rem;
}
form .field.half.first {
padding: 0 0.75rem 0 0;
}
form .field.third {
clear: none;
width: 33.33333%;
float: left;
padding: 0 0 0 0.75rem;
}
form .field.third.first {
padding: 0 0.75rem 0 0;
}
form > .actions {
clear: both;
margin: 1.875rem 0 0 0 !important;
}
@media screen and (max-width: 736px) {
form .field {
margin: 0 0 1.125rem 0;
}
form .field.half {
padding: 0 0 0 0.5625rem;
}
form .field.half.first {
padding: 0 0.5625rem 0 0;
}
form > .actions {
margin: 1.5rem 0 0 0 !important;
}
}
@media screen and (max-width: 480px) {
form .field.half {
width: 100%;
float: none;
padding: 0;
}
form .field.half.first {
padding: 0;
}
form .field.third {
width: 100%;
float: none;
padding: 0;
}
form .field.third.first {
padding: 0;
}
}
label {
display: block;
font-size: 0.9rem;
font-weight: 400;
margin: 0 0 1rem 0;
}
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="url"],
select,
textarea {
-moz-appearance: none;
-webkit-appearance: none;
-ms-appearance: none;
appearance: none;
background-color: transparent;
border-radius: 4px;
border: none;
border: solid 1px;
color: inherit;
display: block;
outline: 0;
padding: 0 0.825rem;
text-decoration: none;
width: 100%;
}
input[type="text"]:invalid,
input[type="password"]:invalid,
input[type="email"]:invalid,
input[type="tel"]:invalid,
input[type="search"]:invalid,
input[type="url"]:invalid,
select:invalid,
textarea:invalid {
box-shadow: none;
}
.select-wrapper {
text-decoration: none;
display: block;
position: relative;
}
.select-wrapper:before {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
text-transform: none !important;
}
.select-wrapper:before {
content: '\f078';
display: block;
height: 2.75rem;
line-height: 2.75rem;
pointer-events: none;
position: absolute;
right: 0;
text-align: center;
top: 0;
width: 2.75rem;
}
.select-wrapper select::-ms-expand {
display: none;
}
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="url"],
select {
height: 2.75rem;
}
textarea {
padding: 0.75rem 1rem;
}
input[type="checkbox"],
input[type="radio"] {
-moz-appearance: none;
-webkit-appearance: none;
-ms-appearance: none;
appearance: none;
display: block;
float: left;
margin-right: -2rem;
opacity: 0;
width: 1rem;
z-index: -1;
}
input[type="checkbox"] + label,
input[type="radio"] + label {
text-decoration: none;
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
cursor: pointer;
display: inline-block;
font-size: 1rem;
font-weight: 300;
padding-left: 2.4rem;
padding-right: 0.75rem;
position: relative;
margin-bottom: 0;
}
input[type="checkbox"] + label:before,
input[type="radio"] + label:before {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
text-transform: none !important;
}
input[type="checkbox"] + label:before,
input[type="radio"] + label:before {
border-radius: 4px;
border: solid 1px;
content: '';
display: inline-block;
height: 1.65rem;
left: 0;
line-height: 1.58125rem;
position: absolute;
text-align: center;
top: 0;
width: 1.65rem;
}
input[type="checkbox"]:checked + label:before,
input[type="radio"]:checked + label:before {
content: '\f00c';
}
input[type="checkbox"] + label:before {
border-radius: 4px;
}
input[type="radio"] + label:before {
border-radius: 100%;
}
::-webkit-input-placeholder {
opacity: 1.0;
}
:-moz-placeholder {
opacity: 1.0;
}
::-moz-placeholder {
opacity: 1.0;
}
:-ms-input-placeholder {
opacity: 1.0;
}
.formerize-placeholder {
opacity: 1.0;
}
label {
color: #000000;
}
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="url"],
select,
textarea {
border-color: rgba(0, 0, 0, 0.2);
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
border-color: #47D3E5;
box-shadow: 0 0 0 1px #47D3E5;
}
.select-wrapper:before {
color: rgba(0, 0, 0, 0.2);
}
input[type="checkbox"] + label,
input[type="radio"] + label {
color: #000000;
}
input[type="checkbox"] + label:before,
input[type="radio"] + label:before {
border-color: rgba(0, 0, 0, 0.2);
}
input[type="checkbox"]:checked + label:before,
input[type="radio"]:checked + label:before {
background-color: #000000;
border-color: #000000;
color: #ffffff;
}
input[type="checkbox"]:focus + label:before,
input[type="radio"]:focus + label:before {
border-color: #47D3E5;
box-shadow: 0 0 0 1px #47D3E5;
}
::-webkit-input-placeholder {
color: rgba(0, 0, 0, 0.75) !important;
}
:-moz-placeholder {
color: rgba(0, 0, 0, 0.75) !important;
}
::-moz-placeholder {
color: rgba(0, 0, 0, 0.75) !important;
}
:-ms-input-placeholder {
color: rgba(0, 0, 0, 0.75) !important;
}
.formerize-placeholder {
color: rgba(0, 0, 0, 0.75) !important;
}
/* Icon */
.icon {
text-decoration: none;
border-bottom: none;
position: relative;
text-align: center;
}
.icon:before {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
text-transform: none !important;
}
.icon > .label {
display: none;
}
.icon.style2:before {
border-radius: 2.75em;
display: inline-block;
height: 2.75em;
line-height: 2.75em;
width: 2.75em;
}
.icon.major {
display: block;
margin: 0 0 1rem 0;
}
.icon.major:before {
font-size: 1.25rem;
}
a.icon.style2:before {
-moz-transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out, color 0.2s ease-in-out;
-webkit-transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out, color 0.2s ease-in-out;
-ms-transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out, color 0.2s ease-in-out;
transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out, color 0.2s ease-in-out;
}
.icon.style2:before {
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}
a.icon.style2:hover:before {
box-shadow: inset 0 0 0 1px #47D3E5;
color: #47D3E5;
}
a.icon.style2:active:before {
background-color: rgba(71, 211, 229, 0.1);
box-shadow: inset 0 0 0 1px #47D3E5;
color: #47D3E5;
}
/* Image */
.image {
border: 0;
border-radius: 4px;
display: inline-block;
position: relative;
}
.image img {
display: block;
border-radius: 4px;
}
.image.left, .image.right {
width: 40%;
max-width: 10rem;
}
.image.left img, .image.right img {
width: 100%;
}
.image.left {
float: left;
margin: 0 1.5rem 1rem 0;
top: 0.25rem;
}
.image.right {
float: right;
margin: 0 0 1rem 1.5rem;
top: 0.25rem;
}
.image.fit {
display: block;
margin: 0 0 2rem 0;
width: 100%;
}
.image.fit img {
width: 100%;
}
.image.main {
display: block;
margin: 0 0 3rem 0;
width: 100%;
}
.image.main img {
width: 100%;
}
/* List */
ol {
list-style: decimal;
margin: 0 0 2rem 0;
padding-left: 1.25rem;
}
ol li {
padding-left: 0.25rem;
}
ul {
list-style: disc;
margin: 0 0 2rem 0;
padding-left: 1rem;
}
ul li {
padding-left: 0.5rem;
}
ul.alt {
list-style: none;
padding-left: 0;
}
ul.alt li {
border-top: solid 1px;
padding: 0.5rem 0;
}
ul.alt li:first-child {
border-top: 0;
padding-top: 0;
}
ul.icons {
cursor: default;
list-style: none;
padding-left: 0;
}
ul.icons li {
display: inline-block;
padding: 0 0.75rem 0 0;
}
ul.icons li:last-child {
padding-right: 0;
}
ul.actions {
cursor: default;
list-style: none;
padding-left: 0;
}
ul.actions li {
display: inline-block;
padding: 0 1rem 0 0;
vertical-align: middle;
}
ul.actions li:last-child {
padding-right: 0;
}
ul.actions.small li {
padding: 0 0.5rem 0 0;
}
ul.actions.vertical li {
display: block;
padding: 1rem 0 0 0;
}
ul.actions.vertical li:first-child {
padding-top: 0;
}
ul.actions.vertical li > * {
margin-bottom: 0;
}
ul.actions.vertical.small li {
padding: 0.5rem 0 0 0;
}
ul.actions.vertical.small li:first-child {
padding-top: 0;
}
ul.actions.fit {
display: table;
margin-left: -1rem;
padding: 0;
table-layout: fixed;
width: calc(100% + 1rem);
}
ul.actions.fit li {
display: table-cell;
padding: 0 0 0 1rem;
}
ul.actions.fit li > * {
margin-bottom: 0;
}
ul.actions.fit.small {
margin-left: -0.5rem;
width: calc(100% + 0.5rem);
}
ul.actions.fit.small li {
padding: 0 0 0 0.5rem;
}
@media screen and (max-width: 480px) {
ul.actions {
margin: 0 0 2rem 0;
}
ul.actions li {
padding: 1rem 0 0 0;
display: block;
text-align: center;
width: 100%;
}
ul.actions li:first-child {
padding-top: 0;
}
ul.actions li > * {
width: 100%;
margin: 0 !important;
}
ul.actions li > *.icon:before {
margin-left: -2rem;
}
ul.actions.small li {
padding: 0.5rem 0 0 0;
}
ul.actions.small li:first-child {
padding-top: 0;
}
}
dl {
margin: 0 0 2rem 0;
}
dl dt {
display: block;
font-weight: 400;
margin: 0 0 1rem 0;
}
dl dd {
margin-left: 2rem;
}
dl.style2 dt {
width: 25%;
float: left;
}
dl.style2 dd {
width: 70%;
float: left;
}
dl.style2:after {
content: '';
display: block;
clear: both;
}
ul.alt li {
border-top-color: rgba(0, 0, 0, 0.2);
}
/* Section/Article */
section.special, article.special {
text-align: center;
}
header p {
position: relative;
margin: -0.65rem 0 1.5rem 0;
font-style: italic;
}
header h1 + p {
font-size: 1.375rem;
}
header h2 + p {
font-size: 1.25rem;
}
header h3 + p {
font-size: 1.1rem;
}
header h4 + p,
header h5 + p,
header h6 + p {
font-size: 0.9rem;
}
header p {
color: rgba(0, 0, 0, 0.75);
}
/* Table */
.table-wrapper {
-webkit-overflow-scrolling: touch;
margin: 0 0 2rem 0;
overflow-x: auto;
}
.table-wrapper > table {
margin-bottom: 0;
}
table {
margin: 0 0 2rem 0;
width: 100%;
}
table tbody tr {
border: solid 1px;
border-left: 0;
border-right: 0;
}
table td {
padding: 0.75rem 0.75rem;
}
table th {
font-size: 0.9rem;
font-weight: 400;
padding: 0 0.75rem 0.75rem 0.75rem;
text-align: left;
}
table thead {
border-bottom: solid 2px;
}
table tfoot {
border-top: solid 2px;
}
table.alt {
border-collapse: separate;
}
table.alt tbody tr td {
border: solid 1px;
border-left-width: 0;
border-top-width: 0;
}
table.alt tbody tr td:first-child {
border-left-width: 1px;
}
table.alt tbody tr:first-child td {
border-top-width: 1px;
}
table.alt thead {
border-bottom: 0;
}
table.alt tfoot {
border-top: 0;
}
table.fixed {
table-layout: fixed;
}
table tbody tr {
border-color: rgba(0, 0, 0, 0.2);
}
table tbody tr:nth-child(2n + 1) {
background-color: rgba(0, 0, 0, 0.05);
}
table tbody tr.alt {
background-color: rgba(0, 0, 0, 0.05) !important;
}
table th {
color: #000000;
}
table thead {
border-bottom-color: rgba(0, 0, 0, 0.2);
}
table tfoot {
border-top-color: rgba(0, 0, 0, 0.2);
}
table.alt tbody tr td {
border-color: rgba(0, 0, 0, 0.2);
}
table.uniform tbody tr:nth-child(2n + 1) {
background-color: transparent;
}
/* Banner (transitions) */
.banner.onload-content-fade-up .content {
-moz-transition: opacity 0.75s ease-in-out, -moz-transform 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out, -webkit-transform 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out, -ms-transform 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out, transform 0.75s ease-in-out;
}
body.is-loading .banner.onload-content-fade-up .content {
-moz-transform: translateY(1rem);
-webkit-transform: translateY(1rem);
-ms-transform: translateY(1rem);
transform: translateY(1rem);
opacity: 0;
}
.banner.onload-content-fade-down .content {
-moz-transition: opacity 0.75s ease-in-out, -moz-transform 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out, -webkit-transform 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out, -ms-transform 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out, transform 0.75s ease-in-out;
}
body.is-loading .banner.onload-content-fade-down .content {
-moz-transform: translateY(-1rem);
-webkit-transform: translateY(-1rem);
-ms-transform: translateY(-1rem);
transform: translateY(-1rem);
opacity: 0;
}
.banner.onload-content-fade-left .content {
-moz-transition: opacity 0.75s ease-in-out, -moz-transform 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out, -webkit-transform 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out, -ms-transform 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out, transform 0.75s ease-in-out;
}
body.is-loading .banner.onload-content-fade-left .content {
-moz-transform: translateX(1rem);
-webkit-transform: translateX(1rem);
-ms-transform: translateX(1rem);
transform: translateX(1rem);
opacity: 0;
}
.banner.onload-content-fade-right .content {
-moz-transition: opacity 0.75s ease-in-out, -moz-transform 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out, -webkit-transform 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out, -ms-transform 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out, transform 0.75s ease-in-out;
}
body.is-loading .banner.onload-content-fade-right .content {
-moz-transform: translateX(-1rem);
-webkit-transform: translateX(-1rem);
-ms-transform: translateX(-1rem);
transform: translateX(-1rem);
opacity: 0;
}
.banner.onload-content-fade-in .content {
-moz-transition: opacity 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out;
}
body.is-loading .banner.onload-content-fade-in .content {
opacity: 0;
}
.banner.onload-image-fade-up .image {
-moz-transition: opacity 0.75s ease-in-out, -moz-transform 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out, -webkit-transform 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out, -ms-transform 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out, transform 0.75s ease-in-out;
}
.banner.onload-image-fade-up .image img {
-moz-transition: opacity 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out;
-moz-transition-delay: 0.5625s;
-webkit-transition-delay: 0.5625s;
-ms-transition-delay: 0.5625s;
transition-delay: 0.5625s;
}
body.is-loading .banner.onload-image-fade-up .image {
-moz-transform: translateY(1rem);
-webkit-transform: translateY(1rem);
-ms-transform: translateY(1rem);
transform: translateY(1rem);
opacity: 0;
}
body.is-loading .banner.onload-image-fade-up .image img {
opacity: 0;
}
.banner.onload-image-fade-down .image {
-moz-transition: opacity 0.75s ease-in-out, -moz-transform 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out, -webkit-transform 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out, -ms-transform 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out, transform 0.75s ease-in-out;
}
.banner.onload-image-fade-down .image img {
-moz-transition: opacity 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out;
-moz-transition-delay: 0.5625s;
-webkit-transition-delay: 0.5625s;
-ms-transition-delay: 0.5625s;
transition-delay: 0.5625s;
}
body.is-loading .banner.onload-image-fade-down .image {
-moz-transform: translateY(-1rem);
-webkit-transform: translateY(-1rem);
-ms-transform: translateY(-1rem);
transform: translateY(-1rem);
opacity: 0;
}
body.is-loading .banner.onload-image-fade-down .image img {
opacity: 0;
}
.banner.onload-image-fade-left .image {
-moz-transition: opacity 0.75s ease-in-out, -moz-transform 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out, -webkit-transform 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out, -ms-transform 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out, transform 0.75s ease-in-out;
}
.banner.onload-image-fade-left .image img {
-moz-transition: opacity 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out;
-moz-transition-delay: 0.5625s;
-webkit-transition-delay: 0.5625s;
-ms-transition-delay: 0.5625s;
transition-delay: 0.5625s;
}
body.is-loading .banner.onload-image-fade-left .image {
-moz-transform: translateX(1rem);
-webkit-transform: translateX(1rem);
-ms-transform: translateX(1rem);
transform: translateX(1rem);
opacity: 0;
}
body.is-loading .banner.onload-image-fade-left .image img {
opacity: 0;
}
.banner.onload-image-fade-right .image {
-moz-transition: opacity 0.75s ease-in-out, -moz-transform 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out, -webkit-transform 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out, -ms-transform 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out, transform 0.75s ease-in-out;
}
.banner.onload-image-fade-right .image img {
-moz-transition: opacity 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out;
-moz-transition-delay: 0.5625s;
-webkit-transition-delay: 0.5625s;
-ms-transition-delay: 0.5625s;
transition-delay: 0.5625s;
}
body.is-loading .banner.onload-image-fade-right .image {
-moz-transform: translateX(-1rem);
-webkit-transform: translateX(-1rem);
-ms-transform: translateX(-1rem);
transform: translateX(-1rem);
opacity: 0;
}
body.is-loading .banner.onload-image-fade-right .image img {
opacity: 0;
}
.banner.onload-image-fade-in .image img {
-moz-transition: opacity 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out;
}
body.is-loading .banner.onload-image-fade-in .image img {
opacity: 0;
}
.banner.onscroll-content-fade-up .content {
-moz-transition: opacity 0.75s ease-in-out, -moz-transform 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out, -webkit-transform 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out, -ms-transform 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out, transform 0.75s ease-in-out;
}
.banner.onscroll-content-fade-up.is-inactive .content {
-moz-transform: translateY(1rem);
-webkit-transform: translateY(1rem);
-ms-transform: translateY(1rem);
transform: translateY(1rem);
opacity: 0;
}
.banner.onscroll-content-fade-down .content {
-moz-transition: opacity 0.75s ease-in-out, -moz-transform 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out, -webkit-transform 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out, -ms-transform 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out, transform 0.75s ease-in-out;
}
.banner.onscroll-content-fade-down.is-inactive .content {
-moz-transform: translateY(-1rem);
-webkit-transform: translateY(-1rem);
-ms-transform: translateY(-1rem);
transform: translateY(-1rem);
opacity: 0;
}
.banner.onscroll-content-fade-left .content {
-moz-transition: opacity 0.75s ease-in-out, -moz-transform 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out, -webkit-transform 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out, -ms-transform 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out, transform 0.75s ease-in-out;
}
.banner.onscroll-content-fade-left.is-inactive .content {
-moz-transform: translateX(1rem);
-webkit-transform: translateX(1rem);
-ms-transform: translateX(1rem);
transform: translateX(1rem);
opacity: 0;
}
.banner.onscroll-content-fade-right .content {
-moz-transition: opacity 0.75s ease-in-out, -moz-transform 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out, -webkit-transform 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out, -ms-transform 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out, transform 0.75s ease-in-out;
}
.banner.onscroll-content-fade-right.is-inactive .content {
-moz-transform: translateX(-1rem);
-webkit-transform: translateX(-1rem);
-ms-transform: translateX(-1rem);
transform: translateX(-1rem);
opacity: 0;
}
.banner.onscroll-content-fade-in .content {
-moz-transition: opacity 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out;
}
.banner.onscroll-content-fade-in.is-inactive .content {
opacity: 0;
}
.banner.onscroll-image-fade-up .image {
-moz-transition: opacity 0.75s ease-in-out, -moz-transform 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out, -webkit-transform 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out, -ms-transform 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out, transform 0.75s ease-in-out;
}
.banner.onscroll-image-fade-up .image img {
-moz-transition: opacity 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out;
-moz-transition-delay: 0.5625s;
-webkit-transition-delay: 0.5625s;
-ms-transition-delay: 0.5625s;
transition-delay: 0.5625s;
}
.banner.onscroll-image-fade-up.is-inactive .image {
-moz-transform: translateY(1rem);
-webkit-transform: translateY(1rem);
-ms-transform: translateY(1rem);
transform: translateY(1rem);
opacity: 0;
}
.banner.onscroll-image-fade-up.is-inactive .image img {
opacity: 0;
}
.banner.onscroll-image-fade-down .image {
-moz-transition: opacity 0.75s ease-in-out, -moz-transform 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out, -webkit-transform 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out, -ms-transform 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out, transform 0.75s ease-in-out;
}
.banner.onscroll-image-fade-down .image img {
-moz-transition: opacity 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out;
-moz-transition-delay: 0.5625s;
-webkit-transition-delay: 0.5625s;
-ms-transition-delay: 0.5625s;
transition-delay: 0.5625s;
}
.banner.onscroll-image-fade-down.is-inactive .image {
-moz-transform: translateY(-1rem);
-webkit-transform: translateY(-1rem);
-ms-transform: translateY(-1rem);
transform: translateY(-1rem);
opacity: 0;
}
.banner.onscroll-image-fade-down.is-inactive .image img {
opacity: 0;
}
.banner.onscroll-image-fade-left .image {
-moz-transition: opacity 0.75s ease-in-out, -moz-transform 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out, -webkit-transform 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out, -ms-transform 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out, transform 0.75s ease-in-out;
}
.banner.onscroll-image-fade-left .image img {
-moz-transition: opacity 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out;
-moz-transition-delay: 0.5625s;
-webkit-transition-delay: 0.5625s;
-ms-transition-delay: 0.5625s;
transition-delay: 0.5625s;
}
.banner.onscroll-image-fade-left.is-inactive .image {
-moz-transform: translateX(1rem);
-webkit-transform: translateX(1rem);
-ms-transform: translateX(1rem);
transform: translateX(1rem);
opacity: 0;
}
.banner.onscroll-image-fade-left.is-inactive .image img {
opacity: 0;
}
.banner.onscroll-image-fade-right .image {
-moz-transition: opacity 0.75s ease-in-out, -moz-transform 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out, -webkit-transform 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out, -ms-transform 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out, transform 0.75s ease-in-out;
}
.banner.onscroll-image-fade-right .image img {
-moz-transition: opacity 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out;
-moz-transition-delay: 0.5625s;
-webkit-transition-delay: 0.5625s;
-ms-transition-delay: 0.5625s;
transition-delay: 0.5625s;
}
.banner.onscroll-image-fade-right.is-inactive .image {
-moz-transform: translateX(-1rem);
-webkit-transform: translateX(-1rem);
-ms-transform: translateX(-1rem);
transform: translateX(-1rem);
opacity: 0;
}
.banner.onscroll-image-fade-right.is-inactive .image img {
opacity: 0;
}
.banner.onscroll-image-fade-in .image img {
-moz-transition: opacity 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out;
}
.banner.onscroll-image-fade-in.is-inactive .image img {
opacity: 0;
}
/* Banner (style1) */
.banner.style1 {
-moz-align-items: stretch;
-webkit-align-items: stretch;
-ms-align-items: stretch;
align-items: stretch;
display: -moz-flex;
display: -webkit-flex;
display: -ms-flex;
display: flex;
-moz-flex-direction: row;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-moz-justify-content: -moz-flex-end;
-webkit-justify-content: -webkit-flex-end;
-ms-justify-content: -ms-flex-end;
justify-content: flex-end;
position: relative;
text-align: left;
overflow-x: hidden;
}
.banner.style1 .content {
padding: 7rem 7rem 5rem 7rem ;
-moz-align-self: center;
-webkit-align-self: center;
-ms-align-self: center;
align-self: center;
-moz-flex-grow: 1;
-webkit-flex-grow: 1;
-ms-flex-grow: 1;
flex-grow: 1;
-moz-flex-shrink: 1;
-webkit-flex-shrink: 1;
-ms-flex-shrink: 1;
flex-shrink: 1;
width: 50%;
max-width: 48rem;
margin: 0 auto;
}
.banner.style1 .image {
-moz-flex-grow: 0;
-webkit-flex-grow: 0;
-ms-flex-grow: 0;
flex-grow: 0;
-moz-flex-shrink: 0;
-webkit-flex-shrink: 0;
-ms-flex-shrink: 0;
flex-shrink: 0;
border-radius: 0;
width: 50%;
}
.banner.style1 .image img {
-moz-object-fit: cover;
-webkit-object-fit: cover;
-ms-object-fit: cover;
object-fit: cover;
-moz-object-position: center;
-webkit-object-position: center;
-ms-object-position: center;
object-position: center;
display: block;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 0;
}
@media screen and (max-width: 1680px) {
.banner.style1 .content {
padding: 5rem 5rem 3rem 5rem ;
}
}
@media screen and (max-width: 1280px) {
.banner.style1 .content {
padding: 4rem 4rem 2rem 4rem ;
}
}
@media screen and (max-width: 980px) {
.banner.style1 .content {
padding: 3.75rem 3rem 1.75rem 3rem ;
}
}
@media screen and (max-width: 736px) {
.banner.style1 .content {
padding: 2.5rem 2rem 0.5rem 2rem ;
}
}
@media screen and (orientation: portrait) {
.banner.style1 {
-moz-flex-direction: column-reverse;
-webkit-flex-direction: column-reverse;
-ms-flex-direction: column-reverse;
flex-direction: column-reverse;
text-align: center;
}
.banner.style1 .content {
display: -moz-flex;
display: -webkit-flex;
display: -ms-flex;
display: flex;
-moz-flex-direction: column;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
-moz-justify-content: center;
-webkit-justify-content: center;
-ms-justify-content: center;
justify-content: center;
width: 100%;
max-width: 100%;
}
.banner.style1 .image {
width: 100%;
max-width: 100%;
height: 45vh;
}
}
.banner.style1.fullscreen {
min-height: 100vh;
}
@media screen and (orientation: portrait) {
.banner.style1.fullscreen .content {
min-height: 50vh;
}
.banner.style1.fullscreen .image {
height: 50vh;
}
}
.banner.style1.orient-right {
-moz-flex-direction: row-reverse;
-webkit-flex-direction: row-reverse;
-ms-flex-direction: row-reverse;
flex-direction: row-reverse;
}
@media screen and (orientation: portrait) {
.banner.style1.orient-right {
-moz-flex-direction: column-reverse;
-webkit-flex-direction: column-reverse;
-ms-flex-direction: column-reverse;
flex-direction: column-reverse;
}
}
.banner.style1.content-align-center {
text-align: center;
}
.banner.style1.content-align-right {
text-align: right;
}
@media screen and (orientation: portrait) {
.banner.style1.content-align-right {
text-align: center;
}
}
.banner.style1.image-position-left .image img {
-moz-object-position: left;
-webkit-object-position: left;
-ms-object-position: left;
object-position: left;
}
.banner.style1.image-position-right .image img {
-moz-object-position: center;
-webkit-object-position: center;
-ms-object-position: center;
object-position: center;
}
/* Banner (style2) */
.banner.style2 {
padding: 5.25rem 5.25rem 3.25rem 5.25rem ;
-moz-align-items: center;
-webkit-align-items: center;
-ms-align-items: center;
align-items: center;
display: -moz-flex;
display: -webkit-flex;
display: -ms-flex;
display: flex;
-moz-justify-content: center;
-webkit-justify-content: center;
-ms-justify-content: center;
justify-content: center;
background-color: inherit;
position: relative;
text-align: center;
overflow-x: hidden;
}
.banner.style2 .content {
padding: 5.25rem 5.25rem 3.25rem 5.25rem ;
position: relative;
width: 40rem;
max-width: 100%;
background-color: inherit;
border-radius: 0.5rem;
margin-bottom: 2rem;
z-index: 1;
}
.banner.style2 .image {
-moz-flex-grow: 0;
-webkit-flex-grow: 0;
-ms-flex-grow: 0;
flex-grow: 0;
-moz-flex-shrink: 0;
-webkit-flex-shrink: 0;
-ms-flex-shrink: 0;
flex-shrink: 0;
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
border-radius: 0;
}
.banner.style2 .image img {
-moz-object-fit: cover;
-webkit-object-fit: cover;
-ms-object-fit: cover;
object-fit: cover;
-moz-object-position: center;
-webkit-object-position: center;
-ms-object-position: center;
object-position: center;
display: block;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 0;
}
@media screen and (max-width: 1680px) {
.banner.style2 {
padding: 3.75rem 3.75rem 1.75rem 3.75rem ;
}
.banner.style2 .content {
padding: 3.75rem 3.75rem 1.75rem 3.75rem ;
}
}
@media screen and (max-width: 1280px) {
.banner.style2 {
padding: 4rem 3rem 2rem 3rem ;
}
.banner.style2 .content {
padding: 4rem 3rem 2rem 3rem ;
}
}
@media screen and (max-width: 980px) {
.banner.style2 {
padding: 3rem 3rem 1rem 3rem ;
}
.banner.style2 .content {
padding: 3.75rem 2.25rem 1.75rem 2.25rem ;
}
}
@media screen and (max-width: 736px) {
.banner.style2 {
padding: 2rem 2rem 0.1rem 2rem ;
}
.banner.style2 .content {
padding: 2.5rem 1.5rem 0.5rem 1.5rem ;
}
}
.banner.style2.fullscreen {
min-height: 100vh;
}
.banner.style2.orient-left {
-moz-justify-content: -moz-flex-start;
-webkit-justify-content: -webkit-flex-start;
-ms-justify-content: -ms-flex-start;
justify-content: flex-start;
padding-left: 0;
}
.banner.style2.orient-left .content {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
.banner.style2.orient-right {
-moz-justify-content: -moz-flex-end;
-webkit-justify-content: -webkit-flex-end;
-ms-justify-content: -ms-flex-end;
justify-content: flex-end;
padding-right: 0;
}
.banner.style2.orient-right .content {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
.banner.style2.content-align-left {
text-align: left;
}
.banner.style2.content-align-right {
text-align: right;
}
.banner.style2.image-position-left .image img {
-moz-object-position: left;
-webkit-object-position: left;
-ms-object-position: left;
object-position: left;
}
.banner.style2.image-position-right .image img {
-moz-object-position: right;
-webkit-object-position: right;
-ms-object-position: right;
object-position: right;
}
/* Banner (style3) */
.banner.style3 {
padding: 7rem 7rem 5rem 7rem ;
-moz-align-items: center;
-webkit-align-items: center;
-ms-align-items: center;
align-items: center;
display: -moz-flex;
display: -webkit-flex;
display: -ms-flex;
display: flex;
-moz-flex-direction: row-reverse;
-webkit-flex-direction: row-reverse;
-ms-flex-direction: row-reverse;
flex-direction: row-reverse;
-moz-justify-content: center;
-webkit-justify-content: center;
-ms-justify-content: center;
justify-content: center;
position: relative;
text-align: left;
overflow-x: hidden;
}
.banner.style3 .content {
width: 31.5rem;
max-width: 100%;
}
.banner.style3 .image {
-moz-flex-grow: 0;
-webkit-flex-grow: 0;
-ms-flex-grow: 0;
flex-grow: 0;
-moz-flex-shrink: 0;
-webkit-flex-shrink: 0;
-ms-flex-shrink: 0;
flex-shrink: 0;
width: 21rem;
height: 21rem;
border-radius: 100%;
margin: 0 3.5rem 2rem 0;
}
.banner.style3 .image img {
-moz-object-fit: cover;
-webkit-object-fit: cover;
-ms-object-fit: cover;
object-fit: cover;
-moz-object-position: center;
-webkit-object-position: center;
-ms-object-position: center;
object-position: center;
display: block;
width: 100%;
height: 100%;
border-radius: 100%;
}
@media screen and (max-width: 1680px) {
.banner.style3 {
padding: 5rem 5rem 3rem 5rem ;
}
}
@media screen and (max-width: 1280px) {
.banner.style3 {
padding: 4rem 4rem 2rem 4rem ;
}
}
@media screen and (max-width: 980px) {
.banner.style3 {
padding: 3.75rem 3rem 1.75rem 3rem ;
}
.banner.style3 .image {
width: 18.375rem;
height: 18.375rem;
}
}
@media screen and (max-width: 736px) {
.banner.style3 {
padding: 2.5rem 2rem 0.5rem 2rem ;
-moz-align-items: -moz-flex-start;
-webkit-align-items: -webkit-flex-start;
-ms-align-items: -ms-flex-start;
align-items: flex-start;
}
.banner.style3 .image {
width: 15.75rem;
height: 15.75rem;
margin: 0 2rem 2rem 0;
}
}
@media screen and (orientation: portrait) {
.banner.style3 {
-moz-align-items: center;
-webkit-align-items: center;
-ms-align-items: center;
align-items: center;
-moz-flex-direction: column-reverse;
-webkit-flex-direction: column-reverse;
-ms-flex-direction: column-reverse;
flex-direction: column-reverse;
text-align: center;
}
.banner.style3 .content {
width: 34rem;
max-width: 100%;
}
.banner.style3 .image {
margin-right: 0;
}
}
.banner.style3.fullscreen {
min-height: 100vh;
}
.banner.style3.orient-left {
-moz-flex-direction: row;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
}
.banner.style3.orient-left .image {
margin: 0 0 2rem 3.5rem;
}
@media screen and (max-width: 736px) {
.banner.style3.orient-left .image {
margin: 0 0 2rem 2rem;
}
}
@media screen and (orientation: portrait) {
.banner.style3.orient-left {
-moz-flex-direction: column-reverse;
-webkit-flex-direction: column-reverse;
-ms-flex-direction: column-reverse;
flex-direction: column-reverse;
}
.banner.style3.orient-left .image {
margin-left: 0;
}
}
.banner.style3.content-align-center {
text-align: center;
}
.banner.style3.content-align-right {
text-align: right;
}
.banner.style3.image-position-left .image img {
-moz-object-position: left;
-webkit-object-position: left;
-ms-object-position: left;
object-position: left;
}
.banner.style3.image-position-right .image img {
-moz-object-position: right;
-webkit-object-position: right;
-ms-object-position: right;
object-position: right;
}
/* Banner (style4) */
.banner.style4 {
padding: 7rem 7rem 5rem 7rem ;
-moz-align-items: center;
-webkit-align-items: center;
-ms-align-items: center;
align-items: center;
display: -moz-flex;
display: -webkit-flex;
display: -ms-flex;
display: flex;
-moz-flex-direction: row-reverse;
-webkit-flex-direction: row-reverse;
-ms-flex-direction: row-reverse;
flex-direction: row-reverse;
-moz-justify-content: center;
-webkit-justify-content: center;
-ms-justify-content: center;
justify-content: center;
position: relative;
text-align: left;
overflow-x: hidden;
}
.banner.style4 .content {
width: 31.5rem;
max-width: 100%;
}
.banner.style4 .image {
-moz-flex-grow: 0;
-webkit-flex-grow: 0;
-ms-flex-grow: 0;
flex-grow: 0;
-moz-flex-shrink: 0;
-webkit-flex-shrink: 0;
-ms-flex-shrink: 0;
flex-shrink: 0;
border-radius: 0;
border: solid 1px;
width: 13rem;
height: 23.11111rem;
margin-top: 2.5rem;
margin-bottom: 5rem;
margin-right: 3.5rem;
}
.banner.style4 .image img {
-moz-object-fit: cover;
-webkit-object-fit: cover;
-ms-object-fit: cover;
object-fit: cover;
-moz-object-position: center;
-webkit-object-position: center;
-ms-object-position: center;
object-position: center;
display: block;
width: 100%;
height: 100%;
border-radius: 0;
}
.banner.style4 .image:before {
content: '';
display: block;
background-position: center;
background-repeat: no-repeat;
border: solid 1px;
border-bottom: 0;
}
.banner.style4 .image:after {
content: '';
display: block;
background-position: center;
background-repeat: no-repeat;
border: solid 1px;
border-top: 0;
}
.banner.style4 .image:before {
height: 2.5rem;
background-size: 64px 32px;
margin-top: -2.5rem;
border-radius: 1rem 1rem 0 0;
}
.banner.style4 .image:after {
height: 3rem;
background-size: 64px 32px;
margin-bottom: -3rem;
border-radius: 0 0 1rem 1rem;
}
@media screen and (max-width: 1680px) {
.banner.style4 {
padding: 5rem 5rem 3rem 5rem ;
}
}
@media screen and (max-width: 1280px) {
.banner.style4 {
padding: 4rem 4rem 2rem 4rem ;
}
}
@media screen and (max-width: 980px) {
.banner.style4 {
padding: 3.75rem 3rem 1.75rem 3rem ;
}
.banner.style4 .image {
width: 11.375rem;
height: 20.22222rem;
margin-top: 2.1875rem;
margin-bottom: 4.625rem;
}
.banner.style4 .image:before {
height: 2.1875rem;
background-size: 56px 28px;
margin-top: -2.1875rem;
border-radius: 0.875rem 0.875rem 0 0;
}
.banner.style4 .image:after {
height: 2.625rem;
background-size: 56px 28px;
margin-bottom: -2.625rem;
border-radius: 0 0 0.875rem 0.875rem;
}
}
@media screen and (max-width: 736px) {
.banner.style4 {
padding: 2.5rem 2rem 0.5rem 2rem ;
-moz-align-items: -moz-flex-start;
-webkit-align-items: -webkit-flex-start;
-ms-align-items: -ms-flex-start;
align-items: flex-start;
}
.banner.style4 .image {
width: 8.125rem;
height: 14.44444rem;
margin-top: 1.5625rem;
margin-bottom: 3.875rem;
}
.banner.style4 .image:before {
height: 1.5625rem;
background-size: 40px 20px;
margin-top: -1.5625rem;
border-radius: 0.625rem 0.625rem 0 0;
}
.banner.style4 .image:after {
height: 1.875rem;
background-size: 40px 20px;
margin-bottom: -1.875rem;
border-radius: 0 0 0.625rem 0.625rem;
}
}
@media screen and (orientation: portrait) {
.banner.style4 {
-moz-align-items: center;
-webkit-align-items: center;
-ms-align-items: center;
align-items: center;
-moz-flex-direction: column-reverse;
-webkit-flex-direction: column-reverse;
-ms-flex-direction: column-reverse;
flex-direction: column-reverse;
text-align: center;
}
.banner.style4 .content {
width: 34rem;
max-width: 100%;
}
.banner.style4 .image {
margin-right: 0;
margin-left: 0;
}
}
.banner.style4.fullscreen {
min-height: 100vh;
}
.banner.style4.orient-left {
-moz-flex-direction: row;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
}
.banner.style4.orient-left .image {
margin-right: 0;
margin-left: 3.5rem;
}
@media screen and (orientation: portrait) {
.banner.style4.orient-left {
-moz-flex-direction: column-reverse;
-webkit-flex-direction: column-reverse;
-ms-flex-direction: column-reverse;
flex-direction: column-reverse;
}
.banner.style4.orient-left .image {
margin-right: 0;
margin-left: 0;
}
}
.banner.style4.content-align-center {
text-align: center;
}
.banner.style4.content-align-right {
text-align: right;
}
.banner.style4.image-position-left .image img {
-moz-object-position: left;
-webkit-object-position: left;
-ms-object-position: left;
object-position: left;
}
.banner.style4.image-position-right .image img {
-moz-object-position: right;
-webkit-object-position: right;
-ms-object-position: right;
object-position: right;
}
/* Banner (style5) */
.banner.style5 {
padding: 7rem 7rem 5rem 7rem ;
-moz-align-items: center;
-webkit-align-items: center;
-ms-align-items: center;
align-items: center;
display: -moz-flex;
display: -webkit-flex;
display: -ms-flex;
display: flex;
-moz-justify-content: center;
-webkit-justify-content: center;
-ms-justify-content: center;
justify-content: center;
background-color: inherit;
position: relative;
text-align: center;
overflow-x: hidden;
}
.banner.style5 .content {
position: relative;
width: 40rem;
max-width: 100%;
margin-bottom: 2rem;
z-index: 1;
}
.banner.style5 .image {
-moz-flex-grow: 0;
-webkit-flex-grow: 0;
-ms-flex-grow: 0;
flex-grow: 0;
-moz-flex-shrink: 0;
-webkit-flex-shrink: 0;
-ms-flex-shrink: 0;
flex-shrink: 0;
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
border-radius: 0;
opacity: 0.5;
}
.banner.style5 .image img {
-moz-object-fit: cover;
-webkit-object-fit: cover;
-ms-object-fit: cover;
object-fit: cover;
-moz-object-position: center;
-webkit-object-position: center;
-ms-object-position: center;
object-position: center;
display: block;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 0;
}
@media screen and (max-width: 1680px) {
.banner.style5 {
padding: 5rem 5rem 3rem 5rem ;
}
}
@media screen and (max-width: 1280px) {
.banner.style5 {
padding: 4rem 4rem 2rem 4rem ;
}
}
@media screen and (max-width: 980px) {
.banner.style5 {
padding: 3.75rem 3rem 1.75rem 3rem ;
}
}
@media screen and (max-width: 736px) {
.banner.style5 {
padding: 2.5rem 2rem 0.5rem 2rem ;
}
}
.banner.style5.fullscreen {
min-height: 100vh;
}
.banner.style5.content-align-left {
text-align: left;
}
.banner.style5.content-align-right {
text-align: right;
}
.banner.style5.image-position-left .image img {
-moz-object-position: left;
-webkit-object-position: left;
-ms-object-position: left;
object-position: left;
}
.banner.style5.image-position-right .image img {
-moz-object-position: right;
-webkit-object-position: right;
-ms-object-position: right;
object-position: right;
}
.banner .image {
background-color: rgba(0, 0, 0, 0.125);
}
.banner.invert .image {
background-color: rgba(255, 255, 255, 0.125);
}
.banner.style4 .image {
border-color: rgba(0, 0, 0, 0.2);
background-color: rgba(0, 0, 0, 0.2);
border-width: 0;
}
.banner.style4 .image:before {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='64px' height='32px' viewBox='0 0 64 32' zoomAndPan='disable'%3E%3Cstyle%3Erect %7Bfill: transparent%3B stroke: rgba(0, 0, 0, 0.2)%3B stroke-width: 1px%3B %7D%3C/style%3E%3Crect rx='4' ry='4' x='11' y='12' width='42' height='8' vector-effect='non-scaling-stroke' /%3E%3C/svg%3E");
border-color: rgba(0, 0, 0, 0.2);
width: 100%;
}
.banner.style4 .image:after {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='64px' height='32px' viewBox='0 0 64 32' zoomAndPan='disable'%3E%3Cstyle%3Ecircle %7Bfill: transparent%3B stroke: rgba(0, 0, 0, 0.2)%3B stroke-width: 1px%3B %7D%3C/style%3E%3Ccircle cx='32' cy='16' r='14' vector-effect='non-scaling-stroke' /%3E%3C/svg%3E");
border-color: rgba(0, 0, 0, 0.2);
width: 100%;
}
.banner.style4.android .image:after {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='64px' height='32px' viewBox='0 0 64 32' zoomAndPan='disable'%3E%3Cstyle%3Erect %7Bfill: transparent%3B stroke: rgba(0, 0, 0, 0.2)%3B stroke-width: 1px%3B %7D%3C/style%3E%3Crect rx='4' ry='4' x='6' y='4' width='52' height='24' vector-effect='non-scaling-stroke' /%3E%3C/svg%3E");
}
.banner.style4.invert .image {
border-color: white;
background-color: white;
border-width: 1px;
}
.banner.style4.invert .image:before {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='64px' height='32px' viewBox='0 0 64 32' zoomAndPan='disable'%3E%3Cstyle%3Erect %7Bfill: transparent%3B stroke: white%3B stroke-width: 1px%3B %7D%3C/style%3E%3Crect rx='4' ry='4' x='11' y='12' width='42' height='8' vector-effect='non-scaling-stroke' /%3E%3C/svg%3E");
border-color: white;
width: calc(100% + 2px);
margin-left: -1px;
}
.banner.style4.invert .image:after {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='64px' height='32px' viewBox='0 0 64 32' zoomAndPan='disable'%3E%3Cstyle%3Ecircle %7Bfill: transparent%3B stroke: white%3B stroke-width: 1px%3B %7D%3C/style%3E%3Ccircle cx='32' cy='16' r='14' vector-effect='non-scaling-stroke' /%3E%3C/svg%3E");
border-color: white;
width: calc(100% + 2px);
margin-left: -1px;
}
.banner.style4.invert.android .image:after {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='64px' height='32px' viewBox='0 0 64 32' zoomAndPan='disable'%3E%3Cstyle%3Erect %7Bfill: transparent%3B stroke: white%3B stroke-width: 1px%3B %7D%3C/style%3E%3Crect rx='4' ry='4' x='6' y='4' width='52' height='24' vector-effect='non-scaling-stroke' /%3E%3C/svg%3E");
}
/* Spotlight (transitions) */
.spotlight.onload-content-fade-up .content {
-moz-transition: opacity 0.75s ease-in-out, -moz-transform 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out, -webkit-transform 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out, -ms-transform 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out, transform 0.75s ease-in-out;
}
body.is-loading .spotlight.onload-content-fade-up .content {
-moz-transform: translateY(1rem);
-webkit-transform: translateY(1rem);
-ms-transform: translateY(1rem);
transform: translateY(1rem);
opacity: 0;
}
.spotlight.onload-content-fade-down .content {
-moz-transition: opacity 0.75s ease-in-out, -moz-transform 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out, -webkit-transform 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out, -ms-transform 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out, transform 0.75s ease-in-out;
}
body.is-loading .spotlight.onload-content-fade-down .content {
-moz-transform: translateY(-1rem);
-webkit-transform: translateY(-1rem);
-ms-transform: translateY(-1rem);
transform: translateY(-1rem);
opacity: 0;
}
.spotlight.onload-content-fade-left .content {
-moz-transition: opacity 0.75s ease-in-out, -moz-transform 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out, -webkit-transform 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out, -ms-transform 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out, transform 0.75s ease-in-out;
}
body.is-loading .spotlight.onload-content-fade-left .content {
-moz-transform: translateX(1rem);
-webkit-transform: translateX(1rem);
-ms-transform: translateX(1rem);
transform: translateX(1rem);
opacity: 0;
}
.spotlight.onload-content-fade-right .content {
-moz-transition: opacity 0.75s ease-in-out, -moz-transform 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out, -webkit-transform 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out, -ms-transform 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out, transform 0.75s ease-in-out;
}
body.is-loading .spotlight.onload-content-fade-right .content {
-moz-transform: translateX(-1rem);
-webkit-transform: translateX(-1rem);
-ms-transform: translateX(-1rem);
transform: translateX(-1rem);
opacity: 0;
}
.spotlight.onload-content-fade-in .content {
-moz-transition: opacity 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out;
}
body.is-loading .spotlight.onload-content-fade-in .content {
opacity: 0;
}
.spotlight.onload-image-fade-up .image {
-moz-transition: opacity 0.75s ease-in-out, -moz-transform 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out, -webkit-transform 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out, -ms-transform 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out, transform 0.75s ease-in-out;
}
.spotlight.onload-image-fade-up .image img {
-moz-transition: opacity 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out;
-moz-transition-delay: 0.5625s;
-webkit-transition-delay: 0.5625s;
-ms-transition-delay: 0.5625s;
transition-delay: 0.5625s;
}
body.is-loading .spotlight.onload-image-fade-up .image {
-moz-transform: translateY(1rem);
-webkit-transform: translateY(1rem);
-ms-transform: translateY(1rem);
transform: translateY(1rem);
opacity: 0;
}
body.is-loading .spotlight.onload-image-fade-up .image img {
opacity: 0;
}
.spotlight.onload-image-fade-down .image {
-moz-transition: opacity 0.75s ease-in-out, -moz-transform 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out, -webkit-transform 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out, -ms-transform 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out, transform 0.75s ease-in-out;
}
.spotlight.onload-image-fade-down .image img {
-moz-transition: opacity 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out;
-moz-transition-delay: 0.5625s;
-webkit-transition-delay: 0.5625s;
-ms-transition-delay: 0.5625s;
transition-delay: 0.5625s;
}
body.is-loading .spotlight.onload-image-fade-down .image {
-moz-transform: translateY(-1rem);
-webkit-transform: translateY(-1rem);
-ms-transform: translateY(-1rem);
transform: translateY(-1rem);
opacity: 0;
}
body.is-loading .spotlight.onload-image-fade-down .image img {
opacity: 0;
}
.spotlight.onload-image-fade-left .image {
-moz-transition: opacity 0.75s ease-in-out, -moz-transform 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out, -webkit-transform 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out, -ms-transform 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out, transform 0.75s ease-in-out;
}
.spotlight.onload-image-fade-left .image img {
-moz-transition: opacity 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out;
-moz-transition-delay: 0.5625s;
-webkit-transition-delay: 0.5625s;
-ms-transition-delay: 0.5625s;
transition-delay: 0.5625s;
}
body.is-loading .spotlight.onload-image-fade-left .image {
-moz-transform: translateX(1rem);
-webkit-transform: translateX(1rem);
-ms-transform: translateX(1rem);
transform: translateX(1rem);
opacity: 0;
}
body.is-loading .spotlight.onload-image-fade-left .image img {
opacity: 0;
}
.spotlight.onload-image-fade-right .image {
-moz-transition: opacity 0.75s ease-in-out, -moz-transform 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out, -webkit-transform 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out, -ms-transform 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out, transform 0.75s ease-in-out;
}
.spotlight.onload-image-fade-right .image img {
-moz-transition: opacity 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out;
-moz-transition-delay: 0.5625s;
-webkit-transition-delay: 0.5625s;
-ms-transition-delay: 0.5625s;
transition-delay: 0.5625s;
}
body.is-loading .spotlight.onload-image-fade-right .image {
-moz-transform: translateX(-1rem);
-webkit-transform: translateX(-1rem);
-ms-transform: translateX(-1rem);
transform: translateX(-1rem);
opacity: 0;
}
body.is-loading .spotlight.onload-image-fade-right .image img {
opacity: 0;
}
.spotlight.onload-image-fade-in .image img {
-moz-transition: opacity 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out;
}
body.is-loading .spotlight.onload-image-fade-in .image img {
opacity: 0;
}
.spotlight.onscroll-content-fade-up .content {
-moz-transition: opacity 0.75s ease-in-out, -moz-transform 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out, -webkit-transform 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out, -ms-transform 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out, transform 0.75s ease-in-out;
}
.spotlight.onscroll-content-fade-up.is-inactive .content {
-moz-transform: translateY(1rem);
-webkit-transform: translateY(1rem);
-ms-transform: translateY(1rem);
transform: translateY(1rem);
opacity: 0;
}
.spotlight.onscroll-content-fade-down .content {
-moz-transition: opacity 0.75s ease-in-out, -moz-transform 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out, -webkit-transform 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out, -ms-transform 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out, transform 0.75s ease-in-out;
}
.spotlight.onscroll-content-fade-down.is-inactive .content {
-moz-transform: translateY(-1rem);
-webkit-transform: translateY(-1rem);
-ms-transform: translateY(-1rem);
transform: translateY(-1rem);
opacity: 0;
}
.spotlight.onscroll-content-fade-left .content {
-moz-transition: opacity 0.75s ease-in-out, -moz-transform 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out, -webkit-transform 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out, -ms-transform 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out, transform 0.75s ease-in-out;
}
.spotlight.onscroll-content-fade-left.is-inactive .content {
-moz-transform: translateX(1rem);
-webkit-transform: translateX(1rem);
-ms-transform: translateX(1rem);
transform: translateX(1rem);
opacity: 0;
}
.spotlight.onscroll-content-fade-right .content {
-moz-transition: opacity 0.75s ease-in-out, -moz-transform 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out, -webkit-transform 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out, -ms-transform 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out, transform 0.75s ease-in-out;
}
.spotlight.onscroll-content-fade-right.is-inactive .content {
-moz-transform: translateX(-1rem);
-webkit-transform: translateX(-1rem);
-ms-transform: translateX(-1rem);
transform: translateX(-1rem);
opacity: 0;
}
.spotlight.onscroll-content-fade-in .content {
-moz-transition: opacity 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out;
}
.spotlight.onscroll-content-fade-in.is-inactive .content {
opacity: 0;
}
.spotlight.onscroll-image-fade-up .image {
-moz-transition: opacity 0.75s ease-in-out, -moz-transform 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out, -webkit-transform 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out, -ms-transform 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out, transform 0.75s ease-in-out;
}
.spotlight.onscroll-image-fade-up .image img {
-moz-transition: opacity 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out;
-moz-transition-delay: 0.5625s;
-webkit-transition-delay: 0.5625s;
-ms-transition-delay: 0.5625s;
transition-delay: 0.5625s;
}
.spotlight.onscroll-image-fade-up.is-inactive .image {
-moz-transform: translateY(1rem);
-webkit-transform: translateY(1rem);
-ms-transform: translateY(1rem);
transform: translateY(1rem);
opacity: 0;
}
.spotlight.onscroll-image-fade-up.is-inactive .image img {
opacity: 0;
}
.spotlight.onscroll-image-fade-down .image {
-moz-transition: opacity 0.75s ease-in-out, -moz-transform 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out, -webkit-transform 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out, -ms-transform 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out, transform 0.75s ease-in-out;
}
.spotlight.onscroll-image-fade-down .image img {
-moz-transition: opacity 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out;
-moz-transition-delay: 0.5625s;
-webkit-transition-delay: 0.5625s;
-ms-transition-delay: 0.5625s;
transition-delay: 0.5625s;
}
.spotlight.onscroll-image-fade-down.is-inactive .image {
-moz-transform: translateY(-1rem);
-webkit-transform: translateY(-1rem);
-ms-transform: translateY(-1rem);
transform: translateY(-1rem);
opacity: 0;
}
.spotlight.onscroll-image-fade-down.is-inactive .image img {
opacity: 0;
}
.spotlight.onscroll-image-fade-left .image {
-moz-transition: opacity 0.75s ease-in-out, -moz-transform 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out, -webkit-transform 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out, -ms-transform 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out, transform 0.75s ease-in-out;
}
.spotlight.onscroll-image-fade-left .image img {
-moz-transition: opacity 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out;
-moz-transition-delay: 0.5625s;
-webkit-transition-delay: 0.5625s;
-ms-transition-delay: 0.5625s;
transition-delay: 0.5625s;
}
.spotlight.onscroll-image-fade-left.is-inactive .image {
-moz-transform: translateX(1rem);
-webkit-transform: translateX(1rem);
-ms-transform: translateX(1rem);
transform: translateX(1rem);
opacity: 0;
}
.spotlight.onscroll-image-fade-left.is-inactive .image img {
opacity: 0;
}
.spotlight.onscroll-image-fade-right .image {
-moz-transition: opacity 0.75s ease-in-out, -moz-transform 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out, -webkit-transform 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out, -ms-transform 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out, transform 0.75s ease-in-out;
}
.spotlight.onscroll-image-fade-right .image img {
-moz-transition: opacity 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out;
-moz-transition-delay: 0.5625s;
-webkit-transition-delay: 0.5625s;
-ms-transition-delay: 0.5625s;
transition-delay: 0.5625s;
}
.spotlight.onscroll-image-fade-right.is-inactive .image {
-moz-transform: translateX(-1rem);
-webkit-transform: translateX(-1rem);
-ms-transform: translateX(-1rem);
transform: translateX(-1rem);
opacity: 0;
}
.spotlight.onscroll-image-fade-right.is-inactive .image img {
opacity: 0;
}
.spotlight.onscroll-image-fade-in .image img {
-moz-transition: opacity 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out;
}
.spotlight.onscroll-image-fade-in.is-inactive .image img {
opacity: 0;
}
/* Spotlight (style1) */
.spotlight.style1 {
-moz-align-items: stretch;
-webkit-align-items: stretch;
-ms-align-items: stretch;
align-items: stretch;
display: -moz-flex;
display: -webkit-flex;
display: -ms-flex;
display: flex;
-moz-flex-direction: row;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-moz-justify-content: -moz-flex-end;
-webkit-justify-content: -webkit-flex-end;
-ms-justify-content: -ms-flex-end;
justify-content: flex-end;
position: relative;
overflow-x: hidden;
text-align: left;
}
.spotlight.style1 .content {
padding: 7rem 7rem 5rem 7rem ;
-moz-align-self: center;
-webkit-align-self: center;
-ms-align-self: center;
align-self: center;
-moz-flex-grow: 1;
-webkit-flex-grow: 1;
-ms-flex-grow: 1;
flex-grow: 1;
-moz-flex-shrink: 1;
-webkit-flex-shrink: 1;
-ms-flex-shrink: 1;
flex-shrink: 1;
width: 65%;
max-width: 64rem;
margin: 0 auto;
}
.spotlight.style1 .image {
-moz-flex-grow: 0;
-webkit-flex-grow: 0;
-ms-flex-grow: 0;
flex-grow: 0;
-moz-flex-shrink: 0;
-webkit-flex-shrink: 0;
-ms-flex-shrink: 0;
flex-shrink: 0;
width: 35%;
min-width: 25rem;
border-radius: 0;
}
.spotlight.style1 .image img {
-moz-object-fit: cover;
-webkit-object-fit: cover;
-ms-object-fit: cover;
object-fit: cover;
-moz-object-position: center;
-webkit-object-position: center;
-ms-object-position: center;
object-position: center;
display: block;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 0;
}
@media screen and (max-width: 1680px) {
.spotlight.style1 .content {
padding: 5rem 5rem 3rem 5rem ;
}
}
@media screen and (max-width: 1280px) {
.spotlight.style1 .content {
padding: 4rem 4rem 2rem 4rem ;
}
}
@media screen and (max-width: 980px) {
.spotlight.style1 .content {
padding: 3.75rem 3rem 1.75rem 3rem ;
width: 50%;
min-width: 0;
}
.spotlight.style1 .image {
width: 50%;
min-width: 0;
}
}
@media screen and (max-width: 736px) {
.spotlight.style1 .content {
padding: 2.5rem 2rem 0.5rem 2rem ;
}
}
@media screen and (max-width: 736px) and (orientation: portrait) {
.spotlight.style1 {
-moz-flex-direction: column-reverse;
-webkit-flex-direction: column-reverse;
-ms-flex-direction: column-reverse;
flex-direction: column-reverse;
text-align: center !important;
}
.spotlight.style1 .content {
width: 100%;
}
.spotlight.style1 .image {
width: 100%;
}
.spotlight.style1 .image img {
position: relative;
}
}
.spotlight.style1.orient-right {
-moz-flex-direction: row-reverse;
-webkit-flex-direction: row-reverse;
-ms-flex-direction: row-reverse;
flex-direction: row-reverse;
}
@media screen and (max-width: 736px) and (orientation: portrait) {
.spotlight.style1.orient-right {
-moz-flex-direction: column-reverse;
-webkit-flex-direction: column-reverse;
-ms-flex-direction: column-reverse;
flex-direction: column-reverse;
}
}
.spotlight.style1.content-align-center {
text-align: center;
}
.spotlight.style1.content-align-right {
text-align: right;
}
.spotlight.style1.image-position-left .image img {
-moz-object-position: left;
-webkit-object-position: left;
-ms-object-position: left;
object-position: left;
}
.spotlight.style1.image-position-right .image img {
-moz-object-position: right;
-webkit-object-position: right;
-ms-object-position: right;
object-position: right;
}
/* Spotlight (style2) */
.spotlight.style2 {
padding: 7rem 7rem 5rem 7rem ;
-moz-align-items: center;
-webkit-align-items: center;
-ms-align-items: center;
align-items: center;
display: -moz-flex;
display: -webkit-flex;
display: -ms-flex;
display: flex;
-moz-flex-direction: row-reverse;
-webkit-flex-direction: row-reverse;
-ms-flex-direction: row-reverse;
flex-direction: row-reverse;
-moz-justify-content: center;
-webkit-justify-content: center;
-ms-justify-content: center;
justify-content: center;
position: relative;
overflow-x: hidden;
text-align: left;
}
.spotlight.style2 .content {
width: 44.5rem;
max-width: 100%;
}
.spotlight.style2 .image {
-moz-flex-grow: 0;
-webkit-flex-grow: 0;
-ms-flex-grow: 0;
flex-grow: 0;
-moz-flex-shrink: 0;
-webkit-flex-shrink: 0;
-ms-flex-shrink: 0;
flex-shrink: 0;
width: 21rem;
height: 21rem;
border-radius: 100%;
margin: 0 3.5rem 2rem 0;
}
.spotlight.style2 .image img {
-moz-object-fit: cover;
-webkit-object-fit: cover;
-ms-object-fit: cover;
object-fit: cover;
-moz-object-position: center;
-webkit-object-position: center;
-ms-object-position: center;
object-position: center;
display: block;
width: 100%;
height: 100%;
border-radius: 100%;
}
@media screen and (max-width: 1680px) {
.spotlight.style2 {
padding: 5rem 5rem 3rem 5rem ;
}
}
@media screen and (max-width: 1280px) {
.spotlight.style2 {
padding: 4rem 4rem 2rem 4rem ;
}
}
@media screen and (max-width: 980px) {
.spotlight.style2 {
padding: 3.75rem 3rem 1.75rem 3rem ;
}
.spotlight.style2 .image {
width: 18.375rem;
height: 18.375rem;
}
}
@media screen and (max-width: 736px) {
.spotlight.style2 {
padding: 2.5rem 2rem 0.5rem 2rem ;
-moz-align-items: -moz-flex-start;
-webkit-align-items: -webkit-flex-start;
-ms-align-items: -ms-flex-start;
align-items: flex-start;
}
.spotlight.style2 .image {
width: 15.75rem;
height: 15.75rem;
margin: 0 2rem 2rem 0;
}
}
@media screen and (orientation: portrait) {
.spotlight.style2 {
-moz-align-items: center;
-webkit-align-items: center;
-ms-align-items: center;
align-items: center;
-moz-flex-direction: column-reverse;
-webkit-flex-direction: column-reverse;
-ms-flex-direction: column-reverse;
flex-direction: column-reverse;
text-align: center !important;
}
.spotlight.style2 .content {
width: 34rem;
max-width: 100%;
}
.spotlight.style2 .image {
margin-right: 0;
}
}
.spotlight.style2.orient-left {
-moz-flex-direction: row;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
}
.spotlight.style2.orient-left .image {
margin: 0 0 2rem 3.5rem;
}
@media screen and (max-width: 736px) {
.spotlight.style2.orient-left .image {
margin: 0 0 2rem 2rem;
}
}
@media screen and (orientation: portrait) {
.spotlight.style2.orient-left {
-moz-flex-direction: column-reverse;
-webkit-flex-direction: column-reverse;
-ms-flex-direction: column-reverse;
flex-direction: column-reverse;
}
.spotlight.style2.orient-left .image {
margin-left: 0;
}
}
.spotlight.style2.content-align-center {
text-align: center;
}
.spotlight.style2.content-align-right {
text-align: right;
}
.spotlight.style2.image-position-left .image img {
-moz-object-position: left;
-webkit-object-position: left;
-ms-object-position: left;
object-position: left;
}
.spotlight.style2.image-position-right .image img {
-moz-object-position: right;
-webkit-object-position: right;
-ms-object-position: right;
object-position: right;
}
/* Spotlight (style3) */
.spotlight.style3 {
padding: 7rem 7rem 5rem 7rem ;
-moz-align-items: center;
-webkit-align-items: center;
-ms-align-items: center;
align-items: center;
display: -moz-flex;
display: -webkit-flex;
display: -ms-flex;
display: flex;
-moz-flex-direction: row-reverse;
-webkit-flex-direction: row-reverse;
-ms-flex-direction: row-reverse;
flex-direction: row-reverse;
-moz-justify-content: center;
-webkit-justify-content: center;
-ms-justify-content: center;
justify-content: center;
position: relative;
overflow-x: hidden;
text-align: left;
}
.spotlight.style3 .content {
width: 44.5rem;
max-width: 100%;
}
.spotlight.style3 .image {
-moz-flex-grow: 0;
-webkit-flex-grow: 0;
-ms-flex-grow: 0;
flex-grow: 0;
-moz-flex-shrink: 0;
-webkit-flex-shrink: 0;
-ms-flex-shrink: 0;
flex-shrink: 0;
border-radius: 0;
border: solid 1px;
width: 13rem;
height: 23.11111rem;
margin-top: 2.5rem;
margin-bottom: 5rem;
margin-right: 3.5rem;
}
.spotlight.style3 .image img {
-moz-object-fit: cover;
-webkit-object-fit: cover;
-ms-object-fit: cover;
object-fit: cover;
-moz-object-position: center;
-webkit-object-position: center;
-ms-object-position: center;
object-position: center;
display: block;
width: 100%;
height: 100%;
border-radius: 0;
}
.spotlight.style3 .image:before {
content: '';
display: block;
background-position: center;
background-repeat: no-repeat;
border: solid 1px;
border-bottom: 0;
}
.spotlight.style3 .image:after {
content: '';
display: block;
background-position: center;
background-repeat: no-repeat;
border: solid 1px;
border-top: 0;
}
.spotlight.style3 .image:before {
height: 2.5rem;
background-size: 64px 32px;
margin-top: -2.5rem;
border-radius: 1rem 1rem 0 0;
}
.spotlight.style3 .image:after {
height: 3rem;
background-size: 64px 32px;
margin-bottom: -3rem;
border-radius: 0 0 1rem 1rem;
}
@media screen and (max-width: 1680px) {
.spotlight.style3 {
padding: 5rem 5rem 3rem 5rem ;
}
}
@media screen and (max-width: 1280px) {
.spotlight.style3 {
padding: 4rem 4rem 2rem 4rem ;
}
}
@media screen and (max-width: 980px) {
.spotlight.style3 {
padding: 3.75rem 3rem 1.75rem 3rem ;
}
.spotlight.style3 .image {
width: 11.375rem;
height: 20.22222rem;
margin-top: 2.1875rem;
margin-bottom: 4.625rem;
}
.spotlight.style3 .image:before {
height: 2.1875rem;
background-size: 56px 28px;
margin-top: -2.1875rem;
border-radius: 0.875rem 0.875rem 0 0;
}
.spotlight.style3 .image:after {
height: 2.625rem;
background-size: 56px 28px;
margin-bottom: -2.625rem;
border-radius: 0 0 0.875rem 0.875rem;
}
}
@media screen and (max-width: 736px) {
.spotlight.style3 {
padding: 2.5rem 2rem 0.5rem 2rem ;
-moz-align-items: -moz-flex-start;
-webkit-align-items: -webkit-flex-start;
-ms-align-items: -ms-flex-start;
align-items: flex-start;
}
.spotlight.style3 .image {
width: 8.125rem;
height: 14.44444rem;
margin-top: 1.5625rem;
margin-bottom: 3.875rem;
}
.spotlight.style3 .image:before {
height: 1.5625rem;
background-size: 40px 20px;
margin-top: -1.5625rem;
border-radius: 0.625rem 0.625rem 0 0;
}
.spotlight.style3 .image:after {
height: 1.875rem;
background-size: 40px 20px;
margin-bottom: -1.875rem;
border-radius: 0 0 0.625rem 0.625rem;
}
}
@media screen and (orientation: portrait) {
.spotlight.style3 {
-moz-align-items: center;
-webkit-align-items: center;
-ms-align-items: center;
align-items: center;
-moz-flex-direction: column-reverse;
-webkit-flex-direction: column-reverse;
-ms-flex-direction: column-reverse;
flex-direction: column-reverse;
text-align: center !important;
}
.spotlight.style3 .content {
width: 34rem;
max-width: 100%;
}
.spotlight.style3 .image {
margin-right: 0;
margin-left: 0;
}
}
.spotlight.style3.orient-left {
-moz-flex-direction: row;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
}
.spotlight.style3.orient-left .image {
margin-right: 0;
margin-left: 3.5rem;
}
@media screen and (orientation: portrait) {
.spotlight.style3.orient-left {
-moz-flex-direction: column-reverse;
-webkit-flex-direction: column-reverse;
-ms-flex-direction: column-reverse;
flex-direction: column-reverse;
}
.spotlight.style3.orient-left .image {
margin-right: 0;
margin-left: 0;
}
}
.spotlight.style3.content-align-center {
text-align: center;
}
.spotlight.style3.content-align-right {
text-align: right;
}
.spotlight.style3.image-position-left .image img {
-moz-object-position: left;
-webkit-object-position: left;
-ms-object-position: left;
object-position: left;
}
.spotlight.style3.image-position-right .image img {
-moz-object-position: right;
-webkit-object-position: right;
-ms-object-position: right;
object-position: right;
}
/* Spotlight (style4) */
.spotlight.style4 {
padding: 7rem 5.25rem 5rem 5.25rem ;
-moz-align-items: center;
-webkit-align-items: center;
-ms-align-items: center;
align-items: center;
display: -moz-flex;
display: -webkit-flex;
display: -ms-flex;
display: flex;
-moz-justify-content: center;
-webkit-justify-content: center;
-ms-justify-content: center;
justify-content: center;
background-color: inherit;
position: relative;
overflow-x: hidden;
text-align: center;
}
.spotlight.style4 .content {
padding: 3.5rem 3.5rem 1.5rem 3.5rem ;
position: relative;
width: 40rem;
max-width: 50%;
background-color: inherit;
border-radius: 0.5rem;
margin-bottom: 2rem;
z-index: 1;
}
.spotlight.style4 .image {
-moz-flex-grow: 0;
-webkit-flex-grow: 0;
-ms-flex-grow: 0;
flex-grow: 0;
-moz-flex-shrink: 0;
-webkit-flex-shrink: 0;
-ms-flex-shrink: 0;
flex-shrink: 0;
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
border-radius: 0;
}
.spotlight.style4 .image img {
-moz-object-fit: cover;
-webkit-object-fit: cover;
-ms-object-fit: cover;
object-fit: cover;
-moz-object-position: center;
-webkit-object-position: center;
-ms-object-position: center;
object-position: center;
display: block;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 0;
}
@media screen and (max-width: 1680px) {
.spotlight.style4 {
padding: 5rem 3.75rem 3rem 3.75rem ;
}
.spotlight.style4 .content {
padding: 2.5rem 2.5rem 0.5rem 2.5rem ;
}
}
@media screen and (max-width: 1280px) {
.spotlight.style4 {
padding: 4rem 3rem 2rem 3rem ;
}
.spotlight.style4 .content {
padding: 3rem 3rem 1rem 3rem ;
}
}
@media screen and (max-width: 980px) {
.spotlight.style4 {
padding: 3rem 2.25rem 1rem 2.25rem ;
}
.spotlight.style4 .content {
padding: 2.25rem 2.25rem 0.25rem 2.25rem ;
}
}
@media screen and (max-width: 736px) {
.spotlight.style4 {
padding: 2rem 1.5rem 0.1rem 1.5rem ;
}
.spotlight.style4 .content {
padding: 1.5rem 1.5rem 0.1rem 1.5rem ;
}
}
@media screen and (max-width: 480px) {
.spotlight.style4 .content {
max-width: 80%;
}
}
.spotlight.style4.fullscreen {
min-height: 100vh;
}
.spotlight.style4.halfscreen {
min-height: 50vh;
}
.spotlight.style4.orient-left {
-moz-justify-content: -moz-flex-start;
-webkit-justify-content: -webkit-flex-start;
-ms-justify-content: -ms-flex-start;
justify-content: flex-start;
padding-left: 0;
}
.spotlight.style4.orient-left .content {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
.spotlight.style4.orient-right {
-moz-justify-content: -moz-flex-end;
-webkit-justify-content: -webkit-flex-end;
-ms-justify-content: -ms-flex-end;
justify-content: flex-end;
padding-right: 0;
}
.spotlight.style4.orient-right .content {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
.spotlight.style4.content-align-left {
text-align: left;
}
.spotlight.style4.content-align-right {
text-align: right;
}
.spotlight.style4.image-position-left .image img {
-moz-object-position: left;
-webkit-object-position: left;
-ms-object-position: left;
object-position: left;
}
.spotlight.style4.image-position-right .image img {
-moz-object-position: right;
-webkit-object-position: right;
-ms-object-position: right;
object-position: right;
}
/* Spotlight (style5) */
.spotlight.style5 {
padding: 7rem 5.25rem 5rem 5.25rem ;
-moz-align-items: center;
-webkit-align-items: center;
-ms-align-items: center;
align-items: center;
display: -moz-flex;
display: -webkit-flex;
display: -ms-flex;
display: flex;
-moz-justify-content: center;
-webkit-justify-content: center;
-ms-justify-content: center;
justify-content: center;
background-color: inherit;
position: relative;
overflow-x: hidden;
text-align: center;
}
.spotlight.style5 .content {
padding: 3.5rem 3.5rem 1.5rem 3.5rem ;
position: relative;
width: 40rem;
max-width: 52.5%;
background-color: inherit;
border-radius: 0.5rem;
margin-bottom: 2rem;
z-index: 1;
}
.spotlight.style5 .image {
-moz-flex-grow: 0;
-webkit-flex-grow: 0;
-ms-flex-grow: 0;
flex-grow: 0;
-moz-flex-shrink: 0;
-webkit-flex-shrink: 0;
-ms-flex-shrink: 0;
flex-shrink: 0;
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
border-radius: 0;
}
.spotlight.style5 .image img {
-moz-object-fit: cover;
-webkit-object-fit: cover;
-ms-object-fit: cover;
object-fit: cover;
-moz-object-position: center;
-webkit-object-position: center;
-ms-object-position: center;
object-position: center;
display: block;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 0;
}
@media screen and (max-width: 1680px) {
.spotlight.style5 {
padding: 5rem 3.75rem 3rem 3.75rem ;
}
.spotlight.style5 .content {
padding: 2.5rem 2.5rem 0.5rem 2.5rem ;
}
}
@media screen and (max-width: 1280px) {
.spotlight.style5 {
padding: 4rem 3rem 2rem 3rem ;
}
.spotlight.style5 .content {
padding: 3rem 3rem 1rem 3rem ;
}
}
@media screen and (max-width: 980px) {
.spotlight.style5 {
padding: 3rem 2.25rem 1rem 2.25rem ;
}
.spotlight.style5 .content {
padding: 2.25rem 2.25rem 0.25rem 2.25rem ;
}
}
@media screen and (max-width: 736px) {
.spotlight.style5 {
padding: 2rem 1.5rem 0.1rem 1.5rem ;
}
.spotlight.style5 .content {
padding: 1.5rem 1.5rem 0.1rem 1.5rem ;
}
}
@media screen and (max-width: 480px) {
.spotlight.style5 .content {
max-width: 80%;
}
}
.spotlight.style5.fullscreen {
min-height: 100vh;
}
.spotlight.style5.halfscreen {
min-height: 50vh;
}
.spotlight.style5.orient-left {
-moz-justify-content: -moz-flex-start;
-webkit-justify-content: -webkit-flex-start;
-ms-justify-content: -ms-flex-start;
justify-content: flex-start;
}
.spotlight.style5.orient-right {
-moz-justify-content: -moz-flex-end;
-webkit-justify-content: -webkit-flex-end;
-ms-justify-content: -ms-flex-end;
justify-content: flex-end;
}
.spotlight.style5.content-align-left {
text-align: left;
}
.spotlight.style5.content-align-right {
text-align: right;
}
.spotlight.style5.image-position-left .image img {
-moz-object-position: left;
-webkit-object-position: left;
-ms-object-position: left;
object-position: left;
}
.spotlight.style5.image-position-right .image img {
-moz-object-position: right;
-webkit-object-position: right;
-ms-object-position: right;
object-position: right;
}
.spotlight .image {
background-color: rgba(0, 0, 0, 0.125);
}
.spotlight.invert .image {
background-color: rgba(255, 255, 255, 0.125);
}
.spotlight.style3 .image {
border-color: rgba(0, 0, 0, 0.2);
background-color: rgba(0, 0, 0, 0.2);
border-width: 0;
}
.spotlight.style3 .image:before {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='64px' height='32px' viewBox='0 0 64 32' zoomAndPan='disable'%3E%3Cstyle%3Erect %7Bfill: transparent%3B stroke: rgba(0, 0, 0, 0.2)%3B stroke-width: 1px%3B %7D%3C/style%3E%3Crect rx='4' ry='4' x='11' y='12' width='42' height='8' vector-effect='non-scaling-stroke' /%3E%3C/svg%3E");
border-color: rgba(0, 0, 0, 0.2);
width: 100%;
}
.spotlight.style3 .image:after {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='64px' height='32px' viewBox='0 0 64 32' zoomAndPan='disable'%3E%3Cstyle%3Ecircle %7Bfill: transparent%3B stroke: rgba(0, 0, 0, 0.2)%3B stroke-width: 1px%3B %7D%3C/style%3E%3Ccircle cx='32' cy='16' r='14' vector-effect='non-scaling-stroke' /%3E%3C/svg%3E");
border-color: rgba(0, 0, 0, 0.2);
width: 100%;
}
.spotlight.style3.android .image:after {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='64px' height='32px' viewBox='0 0 64 32' zoomAndPan='disable'%3E%3Cstyle%3Erect %7Bfill: transparent%3B stroke: rgba(0, 0, 0, 0.2)%3B stroke-width: 1px%3B %7D%3C/style%3E%3Crect rx='4' ry='4' x='6' y='4' width='52' height='24' vector-effect='non-scaling-stroke' /%3E%3C/svg%3E");
}
.spotlight.style3.invert .image {
border-color: white;
background-color: white;
border-width: 1px;
}
.spotlight.style3.invert .image:before {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='64px' height='32px' viewBox='0 0 64 32' zoomAndPan='disable'%3E%3Cstyle%3Erect %7Bfill: transparent%3B stroke: white%3B stroke-width: 1px%3B %7D%3C/style%3E%3Crect rx='4' ry='4' x='11' y='12' width='42' height='8' vector-effect='non-scaling-stroke' /%3E%3C/svg%3E");
border-color: white;
width: calc(100% + 2px);
margin-left: -1px;
}
.spotlight.style3.invert .image:after {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='64px' height='32px' viewBox='0 0 64 32' zoomAndPan='disable'%3E%3Cstyle%3Ecircle %7Bfill: transparent%3B stroke: white%3B stroke-width: 1px%3B %7D%3C/style%3E%3Ccircle cx='32' cy='16' r='14' vector-effect='non-scaling-stroke' /%3E%3C/svg%3E");
border-color: white;
width: calc(100% + 2px);
margin-left: -1px;
}
.spotlight.style3.invert.android .image:after {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='64px' height='32px' viewBox='0 0 64 32' zoomAndPan='disable'%3E%3Cstyle%3Erect %7Bfill: transparent%3B stroke: white%3B stroke-width: 1px%3B %7D%3C/style%3E%3Crect rx='4' ry='4' x='6' y='4' width='52' height='24' vector-effect='non-scaling-stroke' /%3E%3C/svg%3E");
}
/* Gallery (transitions) */
.gallery.onload-fade-in article .image img {
-moz-transition: opacity 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out;
-moz-transition-delay: 4.8s;
-webkit-transition-delay: 4.8s;
-ms-transition-delay: 4.8s;
transition-delay: 4.8s;
}
.gallery.onload-fade-in article:nth-child(1) .image img {
-moz-transition-delay: 0s;
-webkit-transition-delay: 0s;
-ms-transition-delay: 0s;
transition-delay: 0s;
}
.gallery.onload-fade-in article:nth-child(2) .image img {
-moz-transition-delay: 0.15s;
-webkit-transition-delay: 0.15s;
-ms-transition-delay: 0.15s;
transition-delay: 0.15s;
}
.gallery.onload-fade-in article:nth-child(3) .image img {
-moz-transition-delay: 0.3s;
-webkit-transition-delay: 0.3s;
-ms-transition-delay: 0.3s;
transition-delay: 0.3s;
}
.gallery.onload-fade-in article:nth-child(4) .image img {
-moz-transition-delay: 0.45s;
-webkit-transition-delay: 0.45s;
-ms-transition-delay: 0.45s;
transition-delay: 0.45s;
}
.gallery.onload-fade-in article:nth-child(5) .image img {
-moz-transition-delay: 0.6s;
-webkit-transition-delay: 0.6s;
-ms-transition-delay: 0.6s;
transition-delay: 0.6s;
}
.gallery.onload-fade-in article:nth-child(6) .image img {
-moz-transition-delay: 0.75s;
-webkit-transition-delay: 0.75s;
-ms-transition-delay: 0.75s;
transition-delay: 0.75s;
}
.gallery.onload-fade-in article:nth-child(7) .image img {
-moz-transition-delay: 0.9s;
-webkit-transition-delay: 0.9s;
-ms-transition-delay: 0.9s;
transition-delay: 0.9s;
}
.gallery.onload-fade-in article:nth-child(8) .image img {
-moz-transition-delay: 1.05s;
-webkit-transition-delay: 1.05s;
-ms-transition-delay: 1.05s;
transition-delay: 1.05s;
}
.gallery.onload-fade-in article:nth-child(9) .image img {
-moz-transition-delay: 1.2s;
-webkit-transition-delay: 1.2s;
-ms-transition-delay: 1.2s;
transition-delay: 1.2s;
}
.gallery.onload-fade-in article:nth-child(10) .image img {
-moz-transition-delay: 1.35s;
-webkit-transition-delay: 1.35s;
-ms-transition-delay: 1.35s;
transition-delay: 1.35s;
}
.gallery.onload-fade-in article:nth-child(11) .image img {
-moz-transition-delay: 1.5s;
-webkit-transition-delay: 1.5s;
-ms-transition-delay: 1.5s;
transition-delay: 1.5s;
}
.gallery.onload-fade-in article:nth-child(12) .image img {
-moz-transition-delay: 1.65s;
-webkit-transition-delay: 1.65s;
-ms-transition-delay: 1.65s;
transition-delay: 1.65s;
}
.gallery.onload-fade-in article:nth-child(13) .image img {
-moz-transition-delay: 1.8s;
-webkit-transition-delay: 1.8s;
-ms-transition-delay: 1.8s;
transition-delay: 1.8s;
}
.gallery.onload-fade-in article:nth-child(14) .image img {
-moz-transition-delay: 1.95s;
-webkit-transition-delay: 1.95s;
-ms-transition-delay: 1.95s;
transition-delay: 1.95s;
}
.gallery.onload-fade-in article:nth-child(15) .image img {
-moz-transition-delay: 2.1s;
-webkit-transition-delay: 2.1s;
-ms-transition-delay: 2.1s;
transition-delay: 2.1s;
}
.gallery.onload-fade-in article:nth-child(16) .image img {
-moz-transition-delay: 2.25s;
-webkit-transition-delay: 2.25s;
-ms-transition-delay: 2.25s;
transition-delay: 2.25s;
}
.gallery.onload-fade-in article:nth-child(17) .image img {
-moz-transition-delay: 2.4s;
-webkit-transition-delay: 2.4s;
-ms-transition-delay: 2.4s;
transition-delay: 2.4s;
}
.gallery.onload-fade-in article:nth-child(18) .image img {
-moz-transition-delay: 2.55s;
-webkit-transition-delay: 2.55s;
-ms-transition-delay: 2.55s;
transition-delay: 2.55s;
}
.gallery.onload-fade-in article:nth-child(19) .image img {
-moz-transition-delay: 2.7s;
-webkit-transition-delay: 2.7s;
-ms-transition-delay: 2.7s;
transition-delay: 2.7s;
}
.gallery.onload-fade-in article:nth-child(20) .image img {
-moz-transition-delay: 2.85s;
-webkit-transition-delay: 2.85s;
-ms-transition-delay: 2.85s;
transition-delay: 2.85s;
}
.gallery.onload-fade-in article:nth-child(21) .image img {
-moz-transition-delay: 3s;
-webkit-transition-delay: 3s;
-ms-transition-delay: 3s;
transition-delay: 3s;
}
.gallery.onload-fade-in article:nth-child(22) .image img {
-moz-transition-delay: 3.15s;
-webkit-transition-delay: 3.15s;
-ms-transition-delay: 3.15s;
transition-delay: 3.15s;
}
.gallery.onload-fade-in article:nth-child(23) .image img {
-moz-transition-delay: 3.3s;
-webkit-transition-delay: 3.3s;
-ms-transition-delay: 3.3s;
transition-delay: 3.3s;
}
.gallery.onload-fade-in article:nth-child(24) .image img {
-moz-transition-delay: 3.45s;
-webkit-transition-delay: 3.45s;
-ms-transition-delay: 3.45s;
transition-delay: 3.45s;
}
.gallery.onload-fade-in article:nth-child(25) .image img {
-moz-transition-delay: 3.6s;
-webkit-transition-delay: 3.6s;
-ms-transition-delay: 3.6s;
transition-delay: 3.6s;
}
.gallery.onload-fade-in article:nth-child(26) .image img {
-moz-transition-delay: 3.75s;
-webkit-transition-delay: 3.75s;
-ms-transition-delay: 3.75s;
transition-delay: 3.75s;
}
.gallery.onload-fade-in article:nth-child(27) .image img {
-moz-transition-delay: 3.9s;
-webkit-transition-delay: 3.9s;
-ms-transition-delay: 3.9s;
transition-delay: 3.9s;
}
.gallery.onload-fade-in article:nth-child(28) .image img {
-moz-transition-delay: 4.05s;
-webkit-transition-delay: 4.05s;
-ms-transition-delay: 4.05s;
transition-delay: 4.05s;
}
.gallery.onload-fade-in article:nth-child(29) .image img {
-moz-transition-delay: 4.2s;
-webkit-transition-delay: 4.2s;
-ms-transition-delay: 4.2s;
transition-delay: 4.2s;
}
.gallery.onload-fade-in article:nth-child(30) .image img {
-moz-transition-delay: 4.35s;
-webkit-transition-delay: 4.35s;
-ms-transition-delay: 4.35s;
transition-delay: 4.35s;
}
.gallery.onload-fade-in article:nth-child(31) .image img {
-moz-transition-delay: 4.5s;
-webkit-transition-delay: 4.5s;
-ms-transition-delay: 4.5s;
transition-delay: 4.5s;
}
.gallery.onload-fade-in article:nth-child(32) .image img {
-moz-transition-delay: 4.65s;
-webkit-transition-delay: 4.65s;
-ms-transition-delay: 4.65s;
transition-delay: 4.65s;
}
.gallery.onload-fade-in article:nth-child(33) .image img {
-moz-transition-delay: 4.8s;
-webkit-transition-delay: 4.8s;
-ms-transition-delay: 4.8s;
transition-delay: 4.8s;
}
body.is-loading .gallery.onload-fade-in article .image img {
opacity: 0;
}
.gallery.onscroll-fade-in article .image img {
-moz-transition: opacity 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out;
-moz-transition-delay: 4.8s;
-webkit-transition-delay: 4.8s;
-ms-transition-delay: 4.8s;
transition-delay: 4.8s;
}
.gallery.onscroll-fade-in article:nth-child(1) .image img {
-moz-transition-delay: 0s;
-webkit-transition-delay: 0s;
-ms-transition-delay: 0s;
transition-delay: 0s;
}
.gallery.onscroll-fade-in article:nth-child(2) .image img {
-moz-transition-delay: 0.15s;
-webkit-transition-delay: 0.15s;
-ms-transition-delay: 0.15s;
transition-delay: 0.15s;
}
.gallery.onscroll-fade-in article:nth-child(3) .image img {
-moz-transition-delay: 0.3s;
-webkit-transition-delay: 0.3s;
-ms-transition-delay: 0.3s;
transition-delay: 0.3s;
}
.gallery.onscroll-fade-in article:nth-child(4) .image img {
-moz-transition-delay: 0.45s;
-webkit-transition-delay: 0.45s;
-ms-transition-delay: 0.45s;
transition-delay: 0.45s;
}
.gallery.onscroll-fade-in article:nth-child(5) .image img {
-moz-transition-delay: 0.6s;
-webkit-transition-delay: 0.6s;
-ms-transition-delay: 0.6s;
transition-delay: 0.6s;
}
.gallery.onscroll-fade-in article:nth-child(6) .image img {
-moz-transition-delay: 0.75s;
-webkit-transition-delay: 0.75s;
-ms-transition-delay: 0.75s;
transition-delay: 0.75s;
}
.gallery.onscroll-fade-in article:nth-child(7) .image img {
-moz-transition-delay: 0.9s;
-webkit-transition-delay: 0.9s;
-ms-transition-delay: 0.9s;
transition-delay: 0.9s;
}
.gallery.onscroll-fade-in article:nth-child(8) .image img {
-moz-transition-delay: 1.05s;
-webkit-transition-delay: 1.05s;
-ms-transition-delay: 1.05s;
transition-delay: 1.05s;
}
.gallery.onscroll-fade-in article:nth-child(9) .image img {
-moz-transition-delay: 1.2s;
-webkit-transition-delay: 1.2s;
-ms-transition-delay: 1.2s;
transition-delay: 1.2s;
}
.gallery.onscroll-fade-in article:nth-child(10) .image img {
-moz-transition-delay: 1.35s;
-webkit-transition-delay: 1.35s;
-ms-transition-delay: 1.35s;
transition-delay: 1.35s;
}
.gallery.onscroll-fade-in article:nth-child(11) .image img {
-moz-transition-delay: 1.5s;
-webkit-transition-delay: 1.5s;
-ms-transition-delay: 1.5s;
transition-delay: 1.5s;
}
.gallery.onscroll-fade-in article:nth-child(12) .image img {
-moz-transition-delay: 1.65s;
-webkit-transition-delay: 1.65s;
-ms-transition-delay: 1.65s;
transition-delay: 1.65s;
}
.gallery.onscroll-fade-in article:nth-child(13) .image img {
-moz-transition-delay: 1.8s;
-webkit-transition-delay: 1.8s;
-ms-transition-delay: 1.8s;
transition-delay: 1.8s;
}
.gallery.onscroll-fade-in article:nth-child(14) .image img {
-moz-transition-delay: 1.95s;
-webkit-transition-delay: 1.95s;
-ms-transition-delay: 1.95s;
transition-delay: 1.95s;
}
.gallery.onscroll-fade-in article:nth-child(15) .image img {
-moz-transition-delay: 2.1s;
-webkit-transition-delay: 2.1s;
-ms-transition-delay: 2.1s;
transition-delay: 2.1s;
}
.gallery.onscroll-fade-in article:nth-child(16) .image img {
-moz-transition-delay: 2.25s;
-webkit-transition-delay: 2.25s;
-ms-transition-delay: 2.25s;
transition-delay: 2.25s;
}
.gallery.onscroll-fade-in article:nth-child(17) .image img {
-moz-transition-delay: 2.4s;
-webkit-transition-delay: 2.4s;
-ms-transition-delay: 2.4s;
transition-delay: 2.4s;
}
.gallery.onscroll-fade-in article:nth-child(18) .image img {
-moz-transition-delay: 2.55s;
-webkit-transition-delay: 2.55s;
-ms-transition-delay: 2.55s;
transition-delay: 2.55s;
}
.gallery.onscroll-fade-in article:nth-child(19) .image img {
-moz-transition-delay: 2.7s;
-webkit-transition-delay: 2.7s;
-ms-transition-delay: 2.7s;
transition-delay: 2.7s;
}
.gallery.onscroll-fade-in article:nth-child(20) .image img {
-moz-transition-delay: 2.85s;
-webkit-transition-delay: 2.85s;
-ms-transition-delay: 2.85s;
transition-delay: 2.85s;
}
.gallery.onscroll-fade-in article:nth-child(21) .image img {
-moz-transition-delay: 3s;
-webkit-transition-delay: 3s;
-ms-transition-delay: 3s;
transition-delay: 3s;
}
.gallery.onscroll-fade-in article:nth-child(22) .image img {
-moz-transition-delay: 3.15s;
-webkit-transition-delay: 3.15s;
-ms-transition-delay: 3.15s;
transition-delay: 3.15s;
}
.gallery.onscroll-fade-in article:nth-child(23) .image img {
-moz-transition-delay: 3.3s;
-webkit-transition-delay: 3.3s;
-ms-transition-delay: 3.3s;
transition-delay: 3.3s;
}
.gallery.onscroll-fade-in article:nth-child(24) .image img {
-moz-transition-delay: 3.45s;
-webkit-transition-delay: 3.45s;
-ms-transition-delay: 3.45s;
transition-delay: 3.45s;
}
.gallery.onscroll-fade-in article:nth-child(25) .image img {
-moz-transition-delay: 3.6s;
-webkit-transition-delay: 3.6s;
-ms-transition-delay: 3.6s;
transition-delay: 3.6s;
}
.gallery.onscroll-fade-in article:nth-child(26) .image img {
-moz-transition-delay: 3.75s;
-webkit-transition-delay: 3.75s;
-ms-transition-delay: 3.75s;
transition-delay: 3.75s;
}
.gallery.onscroll-fade-in article:nth-child(27) .image img {
-moz-transition-delay: 3.9s;
-webkit-transition-delay: 3.9s;
-ms-transition-delay: 3.9s;
transition-delay: 3.9s;
}
.gallery.onscroll-fade-in article:nth-child(28) .image img {
-moz-transition-delay: 4.05s;
-webkit-transition-delay: 4.05s;
-ms-transition-delay: 4.05s;
transition-delay: 4.05s;
}
.gallery.onscroll-fade-in article:nth-child(29) .image img {
-moz-transition-delay: 4.2s;
-webkit-transition-delay: 4.2s;
-ms-transition-delay: 4.2s;
transition-delay: 4.2s;
}
.gallery.onscroll-fade-in article:nth-child(30) .image img {
-moz-transition-delay: 4.35s;
-webkit-transition-delay: 4.35s;
-ms-transition-delay: 4.35s;
transition-delay: 4.35s;
}
.gallery.onscroll-fade-in article:nth-child(31) .image img {
-moz-transition-delay: 4.5s;
-webkit-transition-delay: 4.5s;
-ms-transition-delay: 4.5s;
transition-delay: 4.5s;
}
.gallery.onscroll-fade-in article:nth-child(32) .image img {
-moz-transition-delay: 4.65s;
-webkit-transition-delay: 4.65s;
-ms-transition-delay: 4.65s;
transition-delay: 4.65s;
}
.gallery.onscroll-fade-in article:nth-child(33) .image img {
-moz-transition-delay: 4.8s;
-webkit-transition-delay: 4.8s;
-ms-transition-delay: 4.8s;
transition-delay: 4.8s;
}
.gallery.onscroll-fade-in.is-inactive article .image img {
opacity: 0;
}
/* Gallery (style1) */
.gallery.style1 {
background-color: #000000;
color: #ffffff;
-moz-align-items: center;
-webkit-align-items: center;
-ms-align-items: center;
align-items: center;
display: -moz-flex;
display: -webkit-flex;
display: -ms-flex;
display: flex;
-moz-flex-wrap: wrap;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-moz-justify-content: center;
-webkit-justify-content: center;
-ms-justify-content: center;
justify-content: center;
position: relative;
width: 100%;
background-color: transparent;
}
.gallery.style1 input, .gallery.style1 select, .gallery.style1 textarea {
color: #ffffff;
}
.gallery.style1 a {
color: #ffffff;
}
.gallery.style1 a:hover {
color: #47D3E5;
}
.gallery.style1 strong, .gallery.style1 b {
color: #ffffff;
}
.gallery.style1 h1, .gallery.style1 h2, .gallery.style1 h3, .gallery.style1 h4, .gallery.style1 h5, .gallery.style1 h6 {
color: #ffffff;
}
.gallery.style1 blockquote {
border-left-color: white;
}
.gallery.style1 code {
background: rgba(255, 255, 255, 0.125);
border-color: white;
}
.gallery.style1 hr {
border-bottom-color: white;
}
.gallery.style1 input[type="submit"],
.gallery.style1 input[type="reset"],
.gallery.style1 input[type="button"],
.gallery.style1 button,
.gallery.style1 .button {
background-color: transparent;
box-shadow: inset 0 0 0 1px white;
color: #ffffff !important;
}
.gallery.style1 input[type="submit"]:hover,
.gallery.style1 input[type="reset"]:hover,
.gallery.style1 input[type="button"]:hover,
.gallery.style1 button:hover,
.gallery.style1 .button:hover {
box-shadow: inset 0 0 0 1px #47D3E5;
color: #47D3E5 !important;
}
.gallery.style1 input[type="submit"]:active,
.gallery.style1 input[type="reset"]:active,
.gallery.style1 input[type="button"]:active,
.gallery.style1 button:active,
.gallery.style1 .button:active {
background-color: rgba(71, 211, 229, 0.2);
box-shadow: inset 0 0 0 1px #47D3E5;
color: #47D3E5 !important;
}
.gallery.style1 input[type="submit"].special,
.gallery.style1 input[type="reset"].special,
.gallery.style1 input[type="button"].special,
.gallery.style1 button.special,
.gallery.style1 .button.special {
background-color: #ffffff;
box-shadow: none;
color: #000000 !important;
}
.gallery.style1 input[type="submit"].special:hover,
.gallery.style1 input[type="reset"].special:hover,
.gallery.style1 input[type="button"].special:hover,
.gallery.style1 button.special:hover,
.gallery.style1 .button.special:hover {
background-color: #47D3E5;
}
.gallery.style1 input[type="submit"].special:active,
.gallery.style1 input[type="reset"].special:active,
.gallery.style1 input[type="button"].special:active,
.gallery.style1 button.special:active,
.gallery.style1 .button.special:active {
background-color: #1ebdd1;
}
.gallery.style1 > .forward, .gallery.style1 > .backward {
display: none;
}
.gallery.style1 > .inner {
-moz-align-items: inherit;
-webkit-align-items: inherit;
-ms-align-items: inherit;
align-items: inherit;
display: inherit;
-moz-flex-wrap: inherit;
-webkit-flex-wrap: inherit;
-ms-flex-wrap: inherit;
flex-wrap: inherit;
-moz-justify-content: inherit;
-webkit-justify-content: inherit;
-ms-justify-content: inherit;
justify-content: inherit;
}
.gallery.style1 article {
overflow: hidden;
position: relative;
width: 25%;
}
.gallery.style1 article .image {
-moz-transition: opacity 0.2s ease-in-out;
-webkit-transition: opacity 0.2s ease-in-out;
-ms-transition: opacity 0.2s ease-in-out;
transition: opacity 0.2s ease-in-out;
display: block;
width: 100%;
border-radius: 0;
}
.gallery.style1 article .image img {
display: block;
width: 100%;
border-radius: 0;
}
.gallery.style1 article .caption {
-moz-align-items: center;
-webkit-align-items: center;
-ms-align-items: center;
align-items: center;
display: -moz-flex;
display: -webkit-flex;
display: -ms-flex;
display: flex;
-moz-flex-direction: column;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
-moz-justify-content: center;
-webkit-justify-content: center;
-ms-justify-content: center;
justify-content: center;
-moz-pointer-events: none;
-webkit-pointer-events: none;
-ms-pointer-events: none;
pointer-events: none;
-moz-transition: opacity 0.2s ease-in-out;
-webkit-transition: opacity 0.2s ease-in-out;
-ms-transition: opacity 0.2s ease-in-out;
transition: opacity 0.2s ease-in-out;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
opacity: 0;
padding: 2rem;
z-index: 1;
font-size: 0.8rem;
}
.gallery.style1 article .caption a {
-moz-pointer-events: auto;
-webkit-pointer-events: auto;
-ms-pointer-events: auto;
pointer-events: auto;
}
.gallery.style1 article .caption h2, .gallery.style1 article .caption h3, .gallery.style1 article .caption h4, .gallery.style1 article .caption h5, .gallery.style1 article .caption h6 {
font-size: 1.25rem;
margin-bottom: 0.25rem;
}
.gallery.style1 article .caption > * {
max-width: 100%;
margin-bottom: 1rem;
}
.gallery.style1 article .caption > :last-child {
margin-bottom: 0;
}
.gallery.style1 article:hover .caption {
opacity: 1;
}
@media screen and (max-width: 1280px) {
.gallery.style1 article {
width: 33.33333%;
}
.gallery.style1 article .caption {
padding: 1rem;
}
}
@media screen and (max-width: 980px) {
.gallery.style1 article {
width: 50%;
}
.gallery.style1 article .caption {
padding: 1rem;
}
}
@media screen and (max-width: 480px) {
.gallery.style1 article {
width: 100%;
}
.gallery.style1 article .caption {
padding: 1rem;
}
}
.gallery.style1.small article {
width: 20%;
}
.gallery.style1.small article .caption {
padding: 1rem;
}
@media screen and (max-width: 1280px) {
.gallery.style1.small article {
width: 25%;
}
.gallery.style1.small article .caption {
padding: 1rem;
}
}
@media screen and (max-width: 980px) {
.gallery.style1.small article {
width: 33.33333%;
}
.gallery.style1.small article .caption {
padding: 1rem;
}
}
@media screen and (max-width: 480px) {
.gallery.style1.small article {
width: 50%;
}
.gallery.style1.small article .caption {
padding: 1rem;
}
}
.gallery.style1.big article {
width: 33.33333%;
}
.gallery.style1.big article .caption {
padding: 3rem;
}
@media screen and (max-width: 1280px) {
.gallery.style1.big article {
width: 50%;
}
.gallery.style1.big article .caption {
padding: 2rem;
}
}
@media screen and (max-width: 980px) {
.gallery.style1.big article {
width: 50%;
}
.gallery.style1.big article .caption {
padding: 2rem;
}
}
@media screen and (max-width: 480px) {
.gallery.style1.big article {
width: 100%;
}
.gallery.style1.big article .caption {
padding: 1rem;
}
}
/* Gallery (style2) */
.gallery.style2 {
background-color: #000000;
color: #ffffff;
display: -moz-flex;
display: -webkit-flex;
display: -ms-flex;
display: flex;
-webkit-overflow-scrolling: touch;
position: relative;
background-color: transparent;
}
.gallery.style2 input, .gallery.style2 select, .gallery.style2 textarea {
color: #ffffff;
}
.gallery.style2 a {
color: #ffffff;
}
.gallery.style2 a:hover {
color: #47D3E5;
}
.gallery.style2 strong, .gallery.style2 b {
color: #ffffff;
}
.gallery.style2 h1, .gallery.style2 h2, .gallery.style2 h3, .gallery.style2 h4, .gallery.style2 h5, .gallery.style2 h6 {
color: #ffffff;
}
.gallery.style2 blockquote {
border-left-color: white;
}
.gallery.style2 code {
background: rgba(255, 255, 255, 0.125);
border-color: white;
}
.gallery.style2 hr {
border-bottom-color: white;
}
.gallery.style2 input[type="submit"],
.gallery.style2 input[type="reset"],
.gallery.style2 input[type="button"],
.gallery.style2 button,
.gallery.style2 .button {
background-color: transparent;
box-shadow: inset 0 0 0 1px white;
color: #ffffff !important;
}
.gallery.style2 input[type="submit"]:hover,
.gallery.style2 input[type="reset"]:hover,
.gallery.style2 input[type="button"]:hover,
.gallery.style2 button:hover,
.gallery.style2 .button:hover {
box-shadow: inset 0 0 0 1px #47D3E5;
color: #47D3E5 !important;
}
.gallery.style2 input[type="submit"]:active,
.gallery.style2 input[type="reset"]:active,
.gallery.style2 input[type="button"]:active,
.gallery.style2 button:active,
.gallery.style2 .button:active {
background-color: rgba(71, 211, 229, 0.2);
box-shadow: inset 0 0 0 1px #47D3E5;
color: #47D3E5 !important;
}
.gallery.style2 input[type="submit"].special,
.gallery.style2 input[type="reset"].special,
.gallery.style2 input[type="button"].special,
.gallery.style2 button.special,
.gallery.style2 .button.special {
background-color: #ffffff;
box-shadow: none;
color: #000000 !important;
}
.gallery.style2 input[type="submit"].special:hover,
.gallery.style2 input[type="reset"].special:hover,
.gallery.style2 input[type="button"].special:hover,
.gallery.style2 button.special:hover,
.gallery.style2 .button.special:hover {
background-color: #47D3E5;
}
.gallery.style2 input[type="submit"].special:active,
.gallery.style2 input[type="reset"].special:active,
.gallery.style2 input[type="button"].special:active,
.gallery.style2 button.special:active,
.gallery.style2 .button.special:active {
background-color: #1ebdd1;
}
.gallery.style2 > .forward, .gallery.style2 > .backward {
text-decoration: none;
-moz-transition: opacity 0.2s ease-in-out;
-webkit-transition: opacity 0.2s ease-in-out;
-ms-transition: opacity 0.2s ease-in-out;
transition: opacity 0.2s ease-in-out;
position: absolute;
top: 0;
width: 5rem;
height: 100%;
cursor: pointer;
opacity: 0;
z-index: 2;
}
.gallery.style2 > .forward:before, .gallery.style2 > .backward:before {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
text-transform: none !important;
}
.gallery.style2 > .forward:before, .gallery.style2 > .backward:before {
display: block;
top: calc(50% - 1.5rem);
width: 4rem;
height: 3rem;
line-height: 1em;
font-size: 3rem;
position: absolute;
text-align: center;
}
.gallery.style2:hover > .forward, .gallery.style2:hover > .backward {
opacity: 1;
}
.gallery.style2 > .forward {
right: 0;
background-image: linear-gradient(to left, rgba(0, 0, 0, 0.25) 15%, transparent);
}
.gallery.style2 > .forward:before {
content: '\f105';
right: 0;
}
.gallery.style2 > .backward {
left: 0;
background-image: linear-gradient(to right, rgba(0, 0, 0, 0.25) 15%, transparent);
}
.gallery.style2 > .backward:before {
content: '\f104';
left: 0;
}
.gallery.style2 > .inner {
display: inherit;
overflow-x: auto;
overflow-y: hidden;
position: relative;
width: 100%;
}
.gallery.style2 article {
-moz-flex-grow: 0;
-webkit-flex-grow: 0;
-ms-flex-grow: 0;
flex-grow: 0;
-moz-flex-shrink: 0;
-webkit-flex-shrink: 0;
-ms-flex-shrink: 0;
flex-shrink: 0;
display: block;
position: relative;
overflow: hidden;
width: 22.5rem;
max-width: 75vw;
}
.gallery.style2 article .image {
display: block;
width: 100%;
border-radius: 0;
}
.gallery.style2 article .image img {
display: block;
width: 100%;
border-radius: 0;
}
.gallery.style2 article .caption {
-moz-align-items: center;
-webkit-align-items: center;
-ms-align-items: center;
align-items: center;
display: -moz-flex;
display: -webkit-flex;
display: -ms-flex;
display: flex;
-moz-flex-direction: column;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
-moz-justify-content: center;
-webkit-justify-content: center;
-ms-justify-content: center;
justify-content: center;
-moz-pointer-events: none;
-webkit-pointer-events: none;
-ms-pointer-events: none;
pointer-events: none;
-moz-transition: opacity 0.2s ease-in-out;
-webkit-transition: opacity 0.2s ease-in-out;
-ms-transition: opacity 0.2s ease-in-out;
transition: opacity 0.2s ease-in-out;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
opacity: 0;
padding: 3rem;
z-index: 1;
font-size: 0.8rem;
}
.gallery.style2 article .caption a {
-moz-pointer-events: auto;
-webkit-pointer-events: auto;
-ms-pointer-events: auto;
pointer-events: auto;
}
.gallery.style2 article .caption h2, .gallery.style2 article .caption h3, .gallery.style2 article .caption h4, .gallery.style2 article .caption h5, .gallery.style2 article .caption h6 {
font-size: 1.25rem;
margin-bottom: 0.25rem;
}
.gallery.style2 article .caption > * {
max-width: 100%;
margin-bottom: 1rem;
}
.gallery.style2 article .caption > :last-child {
margin-bottom: 0;
}
.gallery.style2 article:hover .caption {
opacity: 1;
}
@media screen and (max-width: 980px) {
.gallery.style2 article .caption {
padding: 2rem;
}
}
@media screen and (max-width: 736px) {
.gallery.style2 article .caption {
padding: 2rem;
}
}
.gallery.style2.small article {
width: 17.5rem;
}
.gallery.style2.small article .caption {
padding: 2rem;
}
@media screen and (max-width: 980px) {
.gallery.style2.small article .caption {
padding: 2rem;
}
}
@media screen and (max-width: 736px) {
.gallery.style2.small article .caption {
padding: 2rem;
}
}
.gallery.style2.big article {
width: 30rem;
}
.gallery.style2.big article .caption {
padding: 4rem;
}
@media screen and (max-width: 980px) {
.gallery.style2.big article .caption {
padding: 3rem;
}
}
@media screen and (max-width: 736px) {
.gallery.style2.big article .caption {
padding: 2rem;
}
}
/* Gallery (lightbox) */
@-moz-keyframes gallery-modal-spinner {
0% {
-moz-transform: rotate(0deg);
-webkit-transform: rotate(0deg);
-ms-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-moz-transform: rotate(360deg);
-webkit-transform: rotate(360deg);
-ms-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@-webkit-keyframes gallery-modal-spinner {
0% {
-moz-transform: rotate(0deg);
-webkit-transform: rotate(0deg);
-ms-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-moz-transform: rotate(360deg);
-webkit-transform: rotate(360deg);
-ms-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@-ms-keyframes gallery-modal-spinner {
0% {
-moz-transform: rotate(0deg);
-webkit-transform: rotate(0deg);
-ms-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-moz-transform: rotate(360deg);
-webkit-transform: rotate(360deg);
-ms-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes gallery-modal-spinner {
0% {
-moz-transform: rotate(0deg);
-webkit-transform: rotate(0deg);
-ms-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-moz-transform: rotate(360deg);
-webkit-transform: rotate(360deg);
-ms-transform: rotate(360deg);
transform: rotate(360deg);
}
}
.gallery.lightbox .modal {
display: -moz-flex;
display: -webkit-flex;
display: -ms-flex;
display: flex;
-moz-align-items: center;
-webkit-align-items: center;
-ms-align-items: center;
align-items: center;
-moz-justify-content: center;
-webkit-justify-content: center;
-ms-justify-content: center;
justify-content: center;
-moz-pointer-events: none;
-webkit-pointer-events: none;
-ms-pointer-events: none;
pointer-events: none;
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
-moz-transition: opacity 0.5s ease, visibility 0.5s, z-index 0.5s;
-webkit-transition: opacity 0.5s ease, visibility 0.5s, z-index 0.5s;
-ms-transition: opacity 0.5s ease, visibility 0.5s, z-index 0.5s;
transition: opacity 0.5s ease, visibility 0.5s, z-index 0.5s;
-webkit-tap-highlight-color: transparent;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
outline: 0;
background-color: rgba(0, 0, 0, 0.75);
visibility: none;
opacity: 0;
z-index: 0;
}
.gallery.lightbox .modal:before {
-moz-animation: gallery-modal-spinner 1s infinite linear;
-webkit-animation: gallery-modal-spinner 1s infinite linear;
-ms-animation: gallery-modal-spinner 1s infinite linear;
animation: gallery-modal-spinner 1s infinite linear;
-moz-transition: opacity 0.25s ease;
-webkit-transition: opacity 0.25s ease;
-ms-transition: opacity 0.25s ease;
transition: opacity 0.25s ease;
-moz-transition-delay: 0.5s;
-webkit-transition-delay: 0.5s;
-ms-transition-delay: 0.5s;
transition-delay: 0.5s;
content: '';
display: block;
position: absolute;
top: 50%;
left: 50%;
width: 4rem;
height: 4rem;
margin: -2rem 0 0 -2rem;
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='96px' height='96px' viewBox='0 0 96 96' zoomAndPan='disable'%3E%3Cstyle%3Ecircle %7Bfill: transparent%3B stroke: %23ffffff%3B stroke-width: 1.5px%3B %7D%3C/style%3E%3Cdefs%3E%3CclipPath id='corner'%3E%3Cpolygon points='0,0 48,0 48,48 96,48 96,96 0,96' /%3E%3C/clipPath%3E%3C/defs%3E%3Cg clip-path='url(%23corner)'%3E%3Ccircle cx='48' cy='48' r='32'/%3E%3C/g%3E%3C/svg%3E");
background-position: center;
background-repeat: no-repeat;
background-size: 4rem;
opacity: 0;
}
.gallery.lightbox .modal:after {
content: '';
display: block;
position: absolute;
top: 0.5rem;
right: 0.5rem;
width: 4rem;
height: 4rem;
cursor: pointer;
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='64px' height='64px' viewBox='0 0 64 64' zoomAndPan='disable'%3E%3Cstyle%3Eline %7Bstroke: %23ffffff%3Bstroke-width: 1.5px%3B%7D%3C/style%3E%3Cline x1='20' y1='20' x2='44' y2='44' /%3E%3Cline x1='20' y1='44' x2='44' y2='20' /%3E%3C/svg%3E");
background-position: center;
background-repeat: no-repeat;
background-size: 3rem;
}
.gallery.lightbox .modal .inner {
-moz-transform: translateY(0.75rem);
-webkit-transform: translateY(0.75rem);
-ms-transform: translateY(0.75rem);
transform: translateY(0.75rem);
-moz-transition: opacity 0.25s ease, -moz-transform 0.25s ease;
-webkit-transition: opacity 0.25s ease, -webkit-transform 0.25s ease;
-ms-transition: opacity 0.25s ease, -ms-transform 0.25s ease;
transition: opacity 0.25s ease, transform 0.25s ease;
opacity: 0;
}
.gallery.lightbox .modal .inner img {
display: block;
max-width: 90vw;
max-height: 85vh;
box-shadow: 0 1rem 3rem 0 rgba(0, 0, 0, 0.35);
}
.gallery.lightbox .modal.visible {
-moz-pointer-events: auto;
-webkit-pointer-events: auto;
-ms-pointer-events: auto;
pointer-events: auto;
visibility: visible;
opacity: 1;
z-index: 10001;
}
.gallery.lightbox .modal.visible:before {
opacity: 1;
}
.gallery.lightbox .modal.loaded .inner {
-moz-transform: translateY(0);
-webkit-transform: translateY(0);
-ms-transform: translateY(0);
transform: translateY(0);
-moz-transition: opacity 0.5s ease, -moz-transform 0.5s ease;
-webkit-transition: opacity 0.5s ease, -webkit-transform 0.5s ease;
-ms-transition: opacity 0.5s ease, -ms-transform 0.5s ease;
transition: opacity 0.5s ease, transform 0.5s ease;
opacity: 1;
}
.gallery.lightbox .modal.loaded:before {
-moz-transition-delay: 0s;
-webkit-transition-delay: 0s;
-ms-transition-delay: 0s;
transition-delay: 0s;
opacity: 0;
}
@media screen and (max-width: 980px) {
.gallery.lightbox .modal .inner img {
max-width: 100vw;
}
}
.gallery article .image {
background-color: rgba(0, 0, 0, 0.125);
}
/* Wrapper (style1) */
.wrapper.style1 > .inner {
padding: 7rem 3.5rem 5rem 3.5rem ;
margin: 0 auto;
max-width: 100%;
width: 64rem;
}
.wrapper.style1 > .inner.medium {
width: 48rem;
}
.wrapper.style1 > .inner.small {
width: 32rem;
}
@media screen and (max-width: 1680px) {
.wrapper.style1 > .inner {
padding: 5rem 2.5rem 3rem 2.5rem ;
}
}
@media screen and (max-width: 1280px) {
.wrapper.style1 > .inner {
padding: 4rem 4rem 2rem 4rem ;
}
}
@media screen and (max-width: 980px) {
.wrapper.style1 > .inner {
padding: 4.5rem 3rem 2.5rem 3rem ;
}
}
@media screen and (max-width: 736px) {
.wrapper.style1 > .inner {
padding: 3rem 2rem 1rem 2rem ;
}
}
/* Wrapper (style2) */
.wrapper.style2 {
padding: 7rem;
background-color: #eeeeee;
}
.wrapper.style2 > .inner {
padding: 5.25rem 3.5rem 3.25rem 3.5rem ;
background-color: #ffffff;
border-radius: 0.5rem;
margin: 0 auto;
max-width: 100%;
position: relative;
width: 64rem;
z-index: 1;
}
.wrapper.style2 > .inner.medium {
width: 48rem;
}
.wrapper.style2 > .inner.small {
width: 32rem;
}
@media screen and (max-width: 1680px) {
.wrapper.style2 {
padding: 5rem;
}
.wrapper.style2 > .inner {
padding: 3.75rem 2.5rem 1.75rem 2.5rem ;
}
}
@media screen and (max-width: 1280px) {
.wrapper.style2 {
padding: 4rem;
}
.wrapper.style2 > .inner {
padding: 3rem 2rem 1rem 2rem ;
}
}
@media screen and (max-width: 980px) {
.wrapper.style2 {
padding: 2.25rem;
}
.wrapper.style2 > .inner {
padding: 3rem 2.25rem 1rem 2.25rem ;
}
}
@media screen and (max-width: 736px) {
.wrapper.style2 {
padding: 1.5rem;
}
.wrapper.style2 > .inner {
padding: 2rem 1.5rem 0.1rem 1.5rem ;
}
}
#wrapper > .wrapper.style2.invert:not(.color1):not(.color2):not(.color3):not(.color4):not(.color5):not(.color6):not(.color7) {
background-color: #222222;
}
#wrapper > .wrapper.style2.invert > .inner {
background-color: #000000;
}
/* Items (transitions) */
.items.onload-fade-in > * > .inner {
-moz-transition: opacity 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out;
-moz-transition-delay: 2.4s;
-webkit-transition-delay: 2.4s;
-ms-transition-delay: 2.4s;
transition-delay: 2.4s;
}
.items.onload-fade-in > *:nth-child(1) > .inner {
-moz-transition-delay: 0s;
-webkit-transition-delay: 0s;
-ms-transition-delay: 0s;
transition-delay: 0s;
}
.items.onload-fade-in > *:nth-child(2) > .inner {
-moz-transition-delay: 0.15s;
-webkit-transition-delay: 0.15s;
-ms-transition-delay: 0.15s;
transition-delay: 0.15s;
}
.items.onload-fade-in > *:nth-child(3) > .inner {
-moz-transition-delay: 0.3s;
-webkit-transition-delay: 0.3s;
-ms-transition-delay: 0.3s;
transition-delay: 0.3s;
}
.items.onload-fade-in > *:nth-child(4) > .inner {
-moz-transition-delay: 0.45s;
-webkit-transition-delay: 0.45s;
-ms-transition-delay: 0.45s;
transition-delay: 0.45s;
}
.items.onload-fade-in > *:nth-child(5) > .inner {
-moz-transition-delay: 0.6s;
-webkit-transition-delay: 0.6s;
-ms-transition-delay: 0.6s;
transition-delay: 0.6s;
}
.items.onload-fade-in > *:nth-child(6) > .inner {
-moz-transition-delay: 0.75s;
-webkit-transition-delay: 0.75s;
-ms-transition-delay: 0.75s;
transition-delay: 0.75s;
}
.items.onload-fade-in > *:nth-child(7) > .inner {
-moz-transition-delay: 0.9s;
-webkit-transition-delay: 0.9s;
-ms-transition-delay: 0.9s;
transition-delay: 0.9s;
}
.items.onload-fade-in > *:nth-child(8) > .inner {
-moz-transition-delay: 1.05s;
-webkit-transition-delay: 1.05s;
-ms-transition-delay: 1.05s;
transition-delay: 1.05s;
}
.items.onload-fade-in > *:nth-child(9) > .inner {
-moz-transition-delay: 1.2s;
-webkit-transition-delay: 1.2s;
-ms-transition-delay: 1.2s;
transition-delay: 1.2s;
}
.items.onload-fade-in > *:nth-child(10) > .inner {
-moz-transition-delay: 1.35s;
-webkit-transition-delay: 1.35s;
-ms-transition-delay: 1.35s;
transition-delay: 1.35s;
}
.items.onload-fade-in > *:nth-child(11) > .inner {
-moz-transition-delay: 1.5s;
-webkit-transition-delay: 1.5s;
-ms-transition-delay: 1.5s;
transition-delay: 1.5s;
}
.items.onload-fade-in > *:nth-child(12) > .inner {
-moz-transition-delay: 1.65s;
-webkit-transition-delay: 1.65s;
-ms-transition-delay: 1.65s;
transition-delay: 1.65s;
}
.items.onload-fade-in > *:nth-child(13) > .inner {
-moz-transition-delay: 1.8s;
-webkit-transition-delay: 1.8s;
-ms-transition-delay: 1.8s;
transition-delay: 1.8s;
}
.items.onload-fade-in > *:nth-child(14) > .inner {
-moz-transition-delay: 1.95s;
-webkit-transition-delay: 1.95s;
-ms-transition-delay: 1.95s;
transition-delay: 1.95s;
}
.items.onload-fade-in > *:nth-child(15) > .inner {
-moz-transition-delay: 2.1s;
-webkit-transition-delay: 2.1s;
-ms-transition-delay: 2.1s;
transition-delay: 2.1s;
}
.items.onload-fade-in > *:nth-child(16) > .inner {
-moz-transition-delay: 2.25s;
-webkit-transition-delay: 2.25s;
-ms-transition-delay: 2.25s;
transition-delay: 2.25s;
}
.items.onload-fade-in > *:nth-child(17) > .inner {
-moz-transition-delay: 2.4s;
-webkit-transition-delay: 2.4s;
-ms-transition-delay: 2.4s;
transition-delay: 2.4s;
}
body.is-loading .items.onload-fade-in > * > .inner {
opacity: 0;
}
.items.onscroll-fade-in > * > .inner {
-moz-transition: opacity 0.75s ease-in-out;
-webkit-transition: opacity 0.75s ease-in-out;
-ms-transition: opacity 0.75s ease-in-out;
transition: opacity 0.75s ease-in-out;
-moz-transition-delay: 2.4s;
-webkit-transition-delay: 2.4s;
-ms-transition-delay: 2.4s;
transition-delay: 2.4s;
}
.items.onscroll-fade-in > *:nth-child(1) > .inner {
-moz-transition-delay: 0s;
-webkit-transition-delay: 0s;
-ms-transition-delay: 0s;
transition-delay: 0s;
}
.items.onscroll-fade-in > *:nth-child(2) > .inner {
-moz-transition-delay: 0.15s;
-webkit-transition-delay: 0.15s;
-ms-transition-delay: 0.15s;
transition-delay: 0.15s;
}
.items.onscroll-fade-in > *:nth-child(3) > .inner {
-moz-transition-delay: 0.3s;
-webkit-transition-delay: 0.3s;
-ms-transition-delay: 0.3s;
transition-delay: 0.3s;
}
.items.onscroll-fade-in > *:nth-child(4) > .inner {
-moz-transition-delay: 0.45s;
-webkit-transition-delay: 0.45s;
-ms-transition-delay: 0.45s;
transition-delay: 0.45s;
}
.items.onscroll-fade-in > *:nth-child(5) > .inner {
-moz-transition-delay: 0.6s;
-webkit-transition-delay: 0.6s;
-ms-transition-delay: 0.6s;
transition-delay: 0.6s;
}
.items.onscroll-fade-in > *:nth-child(6) > .inner {
-moz-transition-delay: 0.75s;
-webkit-transition-delay: 0.75s;
-ms-transition-delay: 0.75s;
transition-delay: 0.75s;
}
.items.onscroll-fade-in > *:nth-child(7) > .inner {
-moz-transition-delay: 0.9s;
-webkit-transition-delay: 0.9s;
-ms-transition-delay: 0.9s;
transition-delay: 0.9s;
}
.items.onscroll-fade-in > *:nth-child(8) > .inner {
-moz-transition-delay: 1.05s;
-webkit-transition-delay: 1.05s;
-ms-transition-delay: 1.05s;
transition-delay: 1.05s;
}
.items.onscroll-fade-in > *:nth-child(9) > .inner {
-moz-transition-delay: 1.2s;
-webkit-transition-delay: 1.2s;
-ms-transition-delay: 1.2s;
transition-delay: 1.2s;
}
.items.onscroll-fade-in > *:nth-child(10) > .inner {
-moz-transition-delay: 1.35s;
-webkit-transition-delay: 1.35s;
-ms-transition-delay: 1.35s;
transition-delay: 1.35s;
}
.items.onscroll-fade-in > *:nth-child(11) > .inner {
-moz-transition-delay: 1.5s;
-webkit-transition-delay: 1.5s;
-ms-transition-delay: 1.5s;
transition-delay: 1.5s;
}
.items.onscroll-fade-in > *:nth-child(12) > .inner {
-moz-transition-delay: 1.65s;
-webkit-transition-delay: 1.65s;
-ms-transition-delay: 1.65s;
transition-delay: 1.65s;
}
.items.onscroll-fade-in > *:nth-child(13) > .inner {
-moz-transition-delay: 1.8s;
-webkit-transition-delay: 1.8s;
-ms-transition-delay: 1.8s;
transition-delay: 1.8s;
}
.items.onscroll-fade-in > *:nth-child(14) > .inner {
-moz-transition-delay: 1.95s;
-webkit-transition-delay: 1.95s;
-ms-transition-delay: 1.95s;
transition-delay: 1.95s;
}
.items.onscroll-fade-in > *:nth-child(15) > .inner {
-moz-transition-delay: 2.1s;
-webkit-transition-delay: 2.1s;
-ms-transition-delay: 2.1s;
transition-delay: 2.1s;
}
.items.onscroll-fade-in > *:nth-child(16) > .inner {
-moz-transition-delay: 2.25s;
-webkit-transition-delay: 2.25s;
-ms-transition-delay: 2.25s;
transition-delay: 2.25s;
}
.items.onscroll-fade-in > *:nth-child(17) > .inner {
-moz-transition-delay: 2.4s;
-webkit-transition-delay: 2.4s;
-ms-transition-delay: 2.4s;
transition-delay: 2.4s;
}
.items.onscroll-fade-in.is-inactive > * > .inner {
opacity: 0;
}
/* Items (style1) */
.items.style1 {
display: -moz-flex;
display: -webkit-flex;
display: -ms-flex;
display: flex;
-moz-flex-wrap: wrap;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-moz-justify-content: center;
-webkit-justify-content: center;
-ms-justify-content: center;
justify-content: center;
margin: 3rem 0;
position: relative;
}
.items.style1 > * {
-moz-flex-grow: 0;
-webkit-flex-grow: 0;
-ms-flex-grow: 0;
flex-grow: 0;
-moz-flex-shrink: 0;
-webkit-flex-shrink: 0;
-ms-flex-shrink: 0;
flex-shrink: 0;
border-style: solid;
border-left-width: 1px;
border-top-width: 1px;
}
.items.style1.big > * {
padding: 3.5rem 3.5rem 1.5rem 3.5rem ;
width: 50%;
}
.items.style1.big > *:nth-child(-n + 2) {
border-top-width: 0;
}
.items.style1.big > *:nth-child(2n + 1) {
border-left-width: 0;
}
.items.style1.medium > * {
padding: 2.1875rem 2.1875rem 0.1875rem 2.1875rem ;
width: 33.33333%;
}
.items.style1.medium > *:nth-child(-n + 3) {
border-top-width: 0;
}
.items.style1.medium > *:nth-child(3n + 1) {
border-left-width: 0;
}
.items.style1.small > * {
padding: 1.3125rem 1.3125rem 0.1rem 1.3125rem ;
width: 25%;
}
.items.style1.small > *:nth-child(-n + 4) {
border-top-width: 0;
}
.items.style1.small > *:nth-child(4n + 1) {
border-left-width: 0;
}
@media screen and (max-width: 1280px) {
.items.style1.small > *:nth-child(-n + 4) {
border-top-width: 1px;
}
.items.style1.small > *:nth-child(4n + 1) {
border-left-width: 1px;
}
.items.style1.small > * {
padding: 2.1875rem 2.1875rem 0.1875rem 2.1875rem ;
width: 33.33333%;
}
.items.style1.small > *:nth-child(-n + 3) {
border-top-width: 0;
}
.items.style1.small > *:nth-child(3n + 1) {
border-left-width: 0;
}
}
@media screen and (max-width: 980px) {
.items.style1.medium > *:nth-child(-n + 3) {
border-top-width: 1px;
}
.items.style1.medium > *:nth-child(3n + 1) {
border-left-width: 1px;
}
.items.style1.medium > * {
padding: 3.5rem 3.5rem 1.5rem 3.5rem ;
width: 50%;
}
.items.style1.medium > *:nth-child(-n + 2) {
border-top-width: 0;
}
.items.style1.medium > *:nth-child(2n + 1) {
border-left-width: 0;
}
.items.style1.small > *:nth-child(-n + 3) {
border-top-width: 1px;
}
.items.style1.small > *:nth-child(3n + 1) {
border-left-width: 1px;
}
.items.style1.small > * {
padding: 3.5rem 3.5rem 1.5rem 3.5rem ;
width: 50%;
}
.items.style1.small > *:nth-child(-n + 2) {
border-top-width: 0;
}
.items.style1.small > *:nth-child(2n + 1) {
border-left-width: 0;
}
}
@media screen and (max-width: 480px) {
.items.style1.big > *:nth-child(-n + 2) {
border-top-width: 1px;
}
.items.style1.big > *:nth-child(2n + 1) {
border-left-width: 1px;
}
.items.style1.big > * {
padding: 2.625rem 2.625rem 0.625rem 2.625rem ;
width: 100%;
}
.items.style1.big > *:nth-child(-n + 1) {
border-top-width: 0;
}
.items.style1.big > *:nth-child(1n + 1) {
border-left-width: 0;
}
.items.style1.medium > *:nth-child(-n + 2) {
border-top-width: 1px;
}
.items.style1.medium > *:nth-child(2n + 1) {
border-left-width: 1px;
}
.items.style1.medium > * {
padding: 2.625rem 2.625rem 0.625rem 2.625rem ;
width: 100%;
}
.items.style1.medium > *:nth-child(-n + 1) {
border-top-width: 0;
}
.items.style1.medium > *:nth-child(1n + 1) {
border-left-width: 0;
}
.items.style1.small > *:nth-child(-n + 2) {
border-top-width: 1px;
}
.items.style1.small > *:nth-child(2n + 1) {
border-left-width: 1px;
}
.items.style1.small > * {
padding: 2.625rem 2.625rem 0.625rem 2.625rem ;
width: 100%;
}
.items.style1.small > *:nth-child(-n + 1) {
border-top-width: 0;
}
.items.style1.small > *:nth-child(1n + 1) {
border-left-width: 0;
}
.items.style1.big > *, .items.style1.medium > *, .items.style1.small > * {
padding-left: 0;
padding-right: 0;
}
.items.style1.big > :first-child, .items.style1.medium > :first-child, .items.style1.small > :first-child {
padding-top: 0;
}
.items.style1.big > :last-child, .items.style1.medium > :last-child, .items.style1.small > :last-child {
padding-bottom: 0;
}
.items.style1.big > :last-child > .inner > :last-child, .items.style1.medium > :last-child > .inner > :last-child, .items.style1.small > :last-child > .inner > :last-child {
margin-bottom: 0;
}
}
/* Items (style2) */
.items.style2 {
display: -moz-flex;
display: -webkit-flex;
display: -ms-flex;
display: flex;
-moz-flex-wrap: wrap;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-moz-justify-content: center;
-webkit-justify-content: center;
-ms-justify-content: center;
justify-content: center;
margin: 3rem 0;
position: relative;
border: solid 1px;
border-radius: 4px;
}
.items.style2 > * {
-moz-flex-grow: 0;
-webkit-flex-grow: 0;
-ms-flex-grow: 0;
flex-grow: 0;
-moz-flex-shrink: 0;
-webkit-flex-shrink: 0;
-ms-flex-shrink: 0;
flex-shrink: 0;
border-style: solid;
border-left-width: 1px;
border-top-width: 1px;
}
.items.style2.big > * {
padding: 3.5rem 3.5rem 1.5rem 3.5rem ;
width: 50%;
}
.items.style2.big > *:nth-child(-n + 2) {
border-top-width: 0;
}
.items.style2.big > *:nth-child(2n + 1) {
border-left-width: 0;
}
.items.style2.medium > * {
padding: 2.1875rem 2.1875rem 0.1875rem 2.1875rem ;
width: 33.33333%;
}
.items.style2.medium > *:nth-child(-n + 3) {
border-top-width: 0;
}
.items.style2.medium > *:nth-child(3n + 1) {
border-left-width: 0;
}
.items.style2.small > * {
padding: 1.3125rem 1.3125rem 0.1rem 1.3125rem ;
width: 25%;
}
.items.style2.small > *:nth-child(-n + 4) {
border-top-width: 0;
}
.items.style2.small > *:nth-child(4n + 1) {
border-left-width: 0;
}
@media screen and (max-width: 1280px) {
.items.style2.small > *:nth-child(-n + 4) {
border-top-width: 1px;
}
.items.style2.small > *:nth-child(4n + 1) {
border-left-width: 1px;
}
.items.style2.small > * {
padding: 2.1875rem 2.1875rem 0.1875rem 2.1875rem ;
width: 33.33333%;
}
.items.style2.small > *:nth-child(-n + 3) {
border-top-width: 0;
}
.items.style2.small > *:nth-child(3n + 1) {
border-left-width: 0;
}
}
@media screen and (max-width: 980px) {
.items.style2.medium > *:nth-child(-n + 3) {
border-top-width: 1px;
}
.items.style2.medium > *:nth-child(3n + 1) {
border-left-width: 1px;
}
.items.style2.medium > * {
padding: 3.5rem 3.5rem 1.5rem 3.5rem ;
width: 50%;
}
.items.style2.medium > *:nth-child(-n + 2) {
border-top-width: 0;
}
.items.style2.medium > *:nth-child(2n + 1) {
border-left-width: 0;
}
.items.style2.small > *:nth-child(-n + 3) {
border-top-width: 1px;
}
.items.style2.small > *:nth-child(3n + 1) {
border-left-width: 1px;
}
.items.style2.small > * {
padding: 3.5rem 3.5rem 1.5rem 3.5rem ;
width: 50%;
}
.items.style2.small > *:nth-child(-n + 2) {
border-top-width: 0;
}
.items.style2.small > *:nth-child(2n + 1) {
border-left-width: 0;
}
}
@media screen and (max-width: 480px) {
.items.style2.big > *:nth-child(-n + 2) {
border-top-width: 1px;
}
.items.style2.big > *:nth-child(2n + 1) {
border-left-width: 1px;
}
.items.style2.big > * {
padding: 2.625rem 2.625rem 0.625rem 2.625rem ;
width: 100%;
}
.items.style2.big > *:nth-child(-n + 1) {
border-top-width: 0;
}
.items.style2.big > *:nth-child(1n + 1) {
border-left-width: 0;
}
.items.style2.medium > *:nth-child(-n + 2) {
border-top-width: 1px;
}
.items.style2.medium > *:nth-child(2n + 1) {
border-left-width: 1px;
}
.items.style2.medium > * {
padding: 2.625rem 2.625rem 0.625rem 2.625rem ;
width: 100%;
}
.items.style2.medium > *:nth-child(-n + 1) {
border-top-width: 0;
}
.items.style2.medium > *:nth-child(1n + 1) {
border-left-width: 0;
}
.items.style2.small > *:nth-child(-n + 2) {
border-top-width: 1px;
}
.items.style2.small > *:nth-child(2n + 1) {
border-left-width: 1px;
}
.items.style2.small > * {
padding: 2.625rem 2.625rem 0.625rem 2.625rem ;
width: 100%;
}
.items.style2.small > *:nth-child(-n + 1) {
border-top-width: 0;
}
.items.style2.small > *:nth-child(1n + 1) {
border-left-width: 0;
}
}
/* Items (style3) */
.items.style3 {
display: -moz-flex;
display: -webkit-flex;
display: -ms-flex;
display: flex;
-moz-flex-wrap: wrap;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-moz-justify-content: center;
-webkit-justify-content: center;
-ms-justify-content: center;
justify-content: center;
margin: 3rem 0;
position: relative;
}
.items.style3 > * {
-moz-flex-grow: 0;
-webkit-flex-grow: 0;
-ms-flex-grow: 0;
flex-grow: 0;
-moz-flex-shrink: 0;
-webkit-flex-shrink: 0;
-ms-flex-shrink: 0;
flex-shrink: 0;
}
.items.style3.big > * {
padding: 1.75rem 1.75rem 0.1rem 1.75rem ;
width: 50%;
}
.items.style3.medium > * {
padding: 1.09375rem 1.09375rem 0.1rem 1.09375rem ;
width: 33.33333%;
}
.items.style3.small > * {
padding: 0.65625rem 0.65625rem 0.1rem 0.65625rem ;
width: 25%;
}
@media screen and (max-width: 1280px) {
.items.style3.small > * {
padding: 1.09375rem 1.09375rem 0.1rem 1.09375rem ;
width: 33.33333%;
}
}
@media screen and (max-width: 980px) {
.items.style3.medium > * {
padding: 1.75rem 1.75rem 0.1rem 1.75rem ;
width: 50%;
}
.items.style3.small > * {
padding: 1.75rem 1.75rem 0.1rem 1.75rem ;
width: 50%;
}
}
@media screen and (max-width: 736px) {
.items.style3 {
margin: 2rem 0;
}
}
@media screen and (max-width: 480px) {
.items.style3.big > * {
padding: 1.3125rem 1.3125rem 0.1rem 1.3125rem ;
width: 100%;
}
.items.style3.medium > * {
padding: 1.3125rem 1.3125rem 0.1rem 1.3125rem ;
width: 100%;
}
.items.style3.small > * {
padding: 1.3125rem 1.3125rem 0.1rem 1.3125rem ;
width: 100%;
}
.items.style3.big > *, .items.style3.medium > *, .items.style3.small > * {
padding-left: 0;
padding-right: 0;
}
.items.style3.big > :first-child, .items.style3.medium > :first-child, .items.style3.small > :first-child {
padding-top: 0;
}
.items.style3.big > :last-child, .items.style3.medium > :last-child, .items.style3.small > :last-child {
padding-bottom: 0;
}
.items.style3.big > :last-child > .inner > :last-child, .items.style3.medium > :last-child > .inner > :last-child, .items.style3.small > :last-child > .inner > :last-child {
margin-bottom: 0;
}
}
.items.style1 > * {
border-color: rgba(0, 0, 0, 0.2);
}
.items.style2 {
border-color: rgba(0, 0, 0, 0.2);
}
.items.style2 > * {
border-color: rgba(0, 0, 0, 0.2);
}
/* Index */
.index > * {
padding: 3rem 0 1rem 0 ;
display: -moz-flex;
display: -webkit-flex;
display: -ms-flex;
display: flex;
border-top: solid 1px;
}
.index > * > header {
-moz-flex-grow: 0;
-webkit-flex-grow: 0;
-ms-flex-grow: 0;
flex-grow: 0;
-moz-flex-shrink: 0;
-webkit-flex-shrink: 0;
-ms-flex-shrink: 0;
flex-shrink: 0;
width: 15rem;
}
.index > * > .content {
-moz-flex-grow: 1;
-webkit-flex-grow: 1;
-ms-flex-grow: 1;
flex-grow: 1;
-moz-flex-shrink: 1;
-webkit-flex-shrink: 1;
-ms-flex-shrink: 1;
flex-shrink: 1;
}
.index > :first-child {
border-top: 0;
}
@media screen and (max-width: 980px) {
.index > * > header {
width: 11rem;
}
}
@media screen and (max-width: 736px) {
.index > * > header {
width: 10rem;
}
}
@media screen and (max-width: 480px) {
.index > * {
-moz-flex-direction: column;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
}
.index > * > header {
width: 100%;
}
}
.index > * {
border-top-color: rgba(0, 0, 0, 0.2);
}
/* Wrapper */
#wrapper {
background-color: inherit;
width: 100%;
overflow-x: hidden;
}
#wrapper > .invert {
background-color: #000000;
color: #ffffff;
}
#wrapper > .invert input, #wrapper > .invert select, #wrapper > .invert textarea {
color: #ffffff;
}
#wrapper > .invert a {
color: #ffffff;
}
#wrapper > .invert a:hover {
color: #47D3E5;
}
#wrapper > .invert strong, #wrapper > .invert b {
color: #ffffff;
}
#wrapper > .invert h1, #wrapper > .invert h2, #wrapper > .invert h3, #wrapper > .invert h4, #wrapper > .invert h5, #wrapper > .invert h6 {
color: #ffffff;
}
#wrapper > .invert blockquote {
border-left-color: white;
}
#wrapper > .invert code {
background: rgba(255, 255, 255, 0.125);
border-color: white;
}
#wrapper > .invert hr {
border-bottom-color: white;
}
#wrapper > .invert .box {
border-color: white;
}
#wrapper > .invert input[type="submit"],
#wrapper > .invert input[type="reset"],
#wrapper > .invert input[type="button"],
#wrapper > .invert button,
#wrapper > .invert .button {
background-color: transparent;
box-shadow: inset 0 0 0 1px white;
color: #ffffff !important;
}
#wrapper > .invert input[type="submit"]:hover,
#wrapper > .invert input[type="reset"]:hover,
#wrapper > .invert input[type="button"]:hover,
#wrapper > .invert button:hover,
#wrapper > .invert .button:hover {
box-shadow: inset 0 0 0 1px #47D3E5;
color: #47D3E5 !important;
}
#wrapper > .invert input[type="submit"]:active,
#wrapper > .invert input[type="reset"]:active,
#wrapper > .invert input[type="button"]:active,
#wrapper > .invert button:active,
#wrapper > .invert .button:active {
background-color: rgba(71, 211, 229, 0.2);
box-shadow: inset 0 0 0 1px #47D3E5;
color: #47D3E5 !important;
}
#wrapper > .invert input[type="submit"].special,
#wrapper > .invert input[type="reset"].special,
#wrapper > .invert input[type="button"].special,
#wrapper > .invert button.special,
#wrapper > .invert .button.special {
background-color: #ffffff;
box-shadow: none;
color: #000000 !important;
}
#wrapper > .invert input[type="submit"].special:hover,
#wrapper > .invert input[type="reset"].special:hover,
#wrapper > .invert input[type="button"].special:hover,
#wrapper > .invert button.special:hover,
#wrapper > .invert .button.special:hover {
background-color: #47D3E5;
}
#wrapper > .invert input[type="submit"].special:active,
#wrapper > .invert input[type="reset"].special:active,
#wrapper > .invert input[type="button"].special:active,
#wrapper > .invert button.special:active,
#wrapper > .invert .button.special:active {
background-color: #1ebdd1;
}
#wrapper > .invert label {
color: #ffffff;
}
#wrapper > .invert input[type="text"],
#wrapper > .invert input[type="password"],
#wrapper > .invert input[type="email"],
#wrapper > .invert input[type="tel"],
#wrapper > .invert input[type="search"],
#wrapper > .invert input[type="url"],
#wrapper > .invert select,
#wrapper > .invert textarea {
border-color: white;
}
#wrapper > .invert input[type="text"]:focus,
#wrapper > .invert input[type="password"]:focus,
#wrapper > .invert input[type="email"]:focus,
#wrapper > .invert input[type="tel"]:focus,
#wrapper > .invert input[type="search"]:focus,
#wrapper > .invert input[type="url"]:focus,
#wrapper > .invert select:focus,
#wrapper > .invert textarea:focus {
border-color: #47D3E5;
box-shadow: 0 0 0 1px #47D3E5;
}
#wrapper > .invert .select-wrapper:before {
color: white;
}
#wrapper > .invert input[type="checkbox"] + label,
#wrapper > .invert input[type="radio"] + label {
color: #ffffff;
}
#wrapper > .invert input[type="checkbox"] + label:before,
#wrapper > .invert input[type="radio"] + label:before {
border-color: white;
}
#wrapper > .invert input[type="checkbox"]:checked + label:before,
#wrapper > .invert input[type="radio"]:checked + label:before {
background-color: #ffffff;
border-color: #ffffff;
color: #000000;
}
#wrapper > .invert input[type="checkbox"]:focus + label:before,
#wrapper > .invert input[type="radio"]:focus + label:before {
border-color: #47D3E5;
box-shadow: 0 0 0 1px #47D3E5;
}
#wrapper > .invert ::-webkit-input-placeholder {
color: #ffffff !important;
}
#wrapper > .invert :-moz-placeholder {
color: #ffffff !important;
}
#wrapper > .invert ::-moz-placeholder {
color: #ffffff !important;
}
#wrapper > .invert :-ms-input-placeholder {
color: #ffffff !important;
}
#wrapper > .invert .formerize-placeholder {
color: #ffffff !important;
}
#wrapper > .invert .icon.style2:before {
box-shadow: inset 0 0 0 1px white;
}
#wrapper > .invert a.icon.style2:hover:before {
box-shadow: inset 0 0 0 1px #47D3E5;
color: #47D3E5;
}
#wrapper > .invert a.icon.style2:active:before {
background-color: rgba(71, 211, 229, 0.1);
box-shadow: inset 0 0 0 1px #47D3E5;
color: #47D3E5;
}
#wrapper > .invert ul.alt li {
border-top-color: white;
}
#wrapper > .invert header p {
color: #ffffff;
}
#wrapper > .invert table tbody tr {
border-color: white;
}
#wrapper > .invert table tbody tr:nth-child(2n + 1) {
background-color: rgba(255, 255, 255, 0.125);
}
#wrapper > .invert table tbody tr.alt {
background-color: rgba(255, 255, 255, 0.125) !important;
}
#wrapper > .invert table th {
color: #ffffff;
}
#wrapper > .invert table thead {
border-bottom-color: white;
}
#wrapper > .invert table tfoot {
border-top-color: white;
}
#wrapper > .invert table.alt tbody tr td {
border-color: white;
}
#wrapper > .invert table.uniform tbody tr:nth-child(2n + 1) {
background-color: transparent;
}
#wrapper > .invert .banner .image {
background-color: rgba(255, 255, 255, 0.125);
}
#wrapper > .invert .banner.style4 .image {
border-color: white;
background-color: white;
border-width: 1px;
}
#wrapper > .invert .banner.style4 .image:before {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='64px' height='32px' viewBox='0 0 64 32' zoomAndPan='disable'%3E%3Cstyle%3Erect %7Bfill: transparent%3B stroke: white%3B stroke-width: 1px%3B %7D%3C/style%3E%3Crect rx='4' ry='4' x='11' y='12' width='42' height='8' vector-effect='non-scaling-stroke' /%3E%3C/svg%3E");
border-color: white;
width: calc(100% + 2px);
margin-left: -1px;
}
#wrapper > .invert .banner.style4 .image:after {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='64px' height='32px' viewBox='0 0 64 32' zoomAndPan='disable'%3E%3Cstyle%3Ecircle %7Bfill: transparent%3B stroke: white%3B stroke-width: 1px%3B %7D%3C/style%3E%3Ccircle cx='32' cy='16' r='14' vector-effect='non-scaling-stroke' /%3E%3C/svg%3E");
border-color: white;
width: calc(100% + 2px);
margin-left: -1px;
}
#wrapper > .invert .banner.style4.android .image:after {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='64px' height='32px' viewBox='0 0 64 32' zoomAndPan='disable'%3E%3Cstyle%3Erect %7Bfill: transparent%3B stroke: white%3B stroke-width: 1px%3B %7D%3C/style%3E%3Crect rx='4' ry='4' x='6' y='4' width='52' height='24' vector-effect='non-scaling-stroke' /%3E%3C/svg%3E");
}
#wrapper > .invert .spotlight .image {
background-color: rgba(255, 255, 255, 0.125);
}
#wrapper > .invert .spotlight.style3 .image {
border-color: white;
background-color: white;
border-width: 1px;
}
#wrapper > .invert .spotlight.style3 .image:before {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='64px' height='32px' viewBox='0 0 64 32' zoomAndPan='disable'%3E%3Cstyle%3Erect %7Bfill: transparent%3B stroke: white%3B stroke-width: 1px%3B %7D%3C/style%3E%3Crect rx='4' ry='4' x='11' y='12' width='42' height='8' vector-effect='non-scaling-stroke' /%3E%3C/svg%3E");
border-color: white;
width: calc(100% + 2px);
margin-left: -1px;
}
#wrapper > .invert .spotlight.style3 .image:after {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='64px' height='32px' viewBox='0 0 64 32' zoomAndPan='disable'%3E%3Cstyle%3Ecircle %7Bfill: transparent%3B stroke: white%3B stroke-width: 1px%3B %7D%3C/style%3E%3Ccircle cx='32' cy='16' r='14' vector-effect='non-scaling-stroke' /%3E%3C/svg%3E");
border-color: white;
width: calc(100% + 2px);
margin-left: -1px;
}
#wrapper > .invert .spotlight.style3.android .image:after {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='64px' height='32px' viewBox='0 0 64 32' zoomAndPan='disable'%3E%3Cstyle%3Erect %7Bfill: transparent%3B stroke: white%3B stroke-width: 1px%3B %7D%3C/style%3E%3Crect rx='4' ry='4' x='6' y='4' width='52' height='24' vector-effect='non-scaling-stroke' /%3E%3C/svg%3E");
}
#wrapper > .invert .gallery article .image {
background-color: rgba(255, 255, 255, 0.125);
}
#wrapper > .invert .items.style1 > * {
border-color: white;
}
#wrapper > .invert .items.style2 {
border-color: white;
}
#wrapper > .invert .items.style2 > * {
border-color: white;
}
#wrapper > .invert .index > * {
border-top-color: white;
}
#wrapper > .color1 {
background-color: #30363d;
}
#wrapper > .color2 {
background-color: #db8992;
}
#wrapper > .color3 {
background-color: #ab7aad;
}
#wrapper > .color4 {
background-color: #897cad;
}
#wrapper > .color5 {
background-color: #7794ce;
}
#wrapper > .color6 {
background-color: #64abb4;
}
#wrapper > .color7 {
background-color: #6ba78c;
}
#wrapper.divided > * {
box-shadow: inset 0 1px 0 0 rgba(0, 0, 0, 0.075);
}
#wrapper.divided > *:first-child {
box-shadow: none !important;
}
#wrapper.divided > .invert {
box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.125);
}
#wrapper.divided > .invert:first-child {
box-shadow: none !important;
} |
; A054974: Number of nonnegative integer 2 X 2 matrices with no zero rows or columns and with sum of elements equal to n, up to row and column permutation.
; 1,2,6,9,17,23,36,46,65,80,106,127,161,189,232,268,321,366,430,485,561,627,716,794,897,988,1106,1211,1345,1465,1616,1752,1921,2074,2262,2433,2641,2831,3060,3270,3521,3752,4026,4279,4577,4853,5176,5476,5825,6150,6526,6877,7281,7659,8092,8498,8961,9396,9890,10355,10881,11377,11936,12464,13057,13618,14246,14841,15505,16135,16836,17502,18241,18944,19722,20463,21281,22061,22920,23740,24641,25502,26446,27349,28337,29283,30316,31306,32385,33420,34546,35627,36801,37929,39152,40328,41601,42826,44150,45425
mov $3,$0
add $3,1
mov $5,$0
lpb $3
mov $0,$5
sub $3,1
sub $0,$3
mov $2,$0
mov $4,0
lpb $2
sub $0,5
sub $2,2
sub $4,$0
lpe
add $4,1
add $1,$4
lpe
mov $0,$1
|
chapter \<open>Generated by Lem from \<open>function_extra.lem\<close>.\<close>
theory "Lem_function_extra"
imports
Main
"Lem_maybe"
"Lem_bool"
"Lem_basic_classes"
"Lem_num"
"Lem_function"
"Lem"
begin
\<comment> \<open>\<open>open import Maybe Bool Basic_classes Num Function\<close>\<close>
\<comment> \<open>\<open>open import {hol} `lemTheory`\<close>\<close>
\<comment> \<open>\<open>open import {isabelle} `$LIB_DIR/Lem`\<close>\<close>
\<comment> \<open>\<open> ----------------------- \<close>\<close>
\<comment> \<open>\<open> getting a unique value \<close>\<close>
\<comment> \<open>\<open> ----------------------- \<close>\<close>
\<comment> \<open>\<open>val THE : forall 'a. ('a -> bool) -> maybe 'a\<close>\<close>
end
|
# Uvoz s spletne strani
library(XML)
# Najprej za moške, to je tabela podatkov o povprečnem številu delovnih ur na teden
# Vrne vektor nizov z odstranjenimi začetnimi in končnimi "prazninami" (whitespace)
# iz vozlišč, ki ustrezajo podani poti.
stripByPath <- function(x, path) {
unlist(xpathApply(x, path,
function(y) gsub("^\\s*(.*?)\\s*$", "\\1", xmlValue(y))))
}
uvozi.podatkim <- function() {
url.podatkim <- "podatki/Povprecnodelo_moski.html"
doc.podatkim <- htmlTreeParse(url.podatkim, useInternalNodes=TRUE)
# Poiščemo vse tabele v dokumentu
tabelem <- getNodeSet(doc.podatkim, "//table")
# Iz druge tabele dobimo seznam vrstic (<tr>) neposredno pod
# trenutnim vozliščem
vrsticem <- getNodeSet(tabelem[[1]], ".//tr")
# Seznam vrstic pretvorimo v seznam (znakovnih) vektorjev
# s porezanimi vsebinami celic (<td>) neposredno pod trenutnim vozliščem
seznamm <- lapply(vrsticem[1:length(vrsticem)-1], stripByPath, "./td")
# Iz seznama vrstic naredimo matriko
matrikam <- matrix(unlist(seznamm), nrow=length(seznamm), byrow=TRUE)
# Imena stolpcev matrike dobimo iz celic (<th>) glave (prve vrstice) prve tabele
colnames(matrikam) <- gsub("\n", " ", stripByPath(vrsticem[[length(vrsticem)]], ".//th"))
# Podatke iz matrike spravimo v razpredelnico
return(data.frame(apply(gsub("\\(.*$", "",matrikam[,2:7]),
2, as.numeric), row.names=matrikam[,1]))
}
#Še za ženske:
uvozi.podatkiz <- function() {
url.podatkiz <- "podatki/Povprecnodelo_zenske.html"
doc.podatkiz <- htmlTreeParse(url.podatkiz, useInternalNodes=TRUE)
tabelez <- getNodeSet(doc.podatkiz, "//table")
vrsticez <- getNodeSet(tabelez[[1]], ".//tr")
seznamz <- lapply(vrsticez[1:length(vrsticez)-1], stripByPath, "./td")
matrikaz <- matrix(unlist(seznamz), nrow=length(seznamz), byrow=TRUE)
colnames(matrikaz) <- gsub("\n", " ", stripByPath(vrsticez[[length(vrsticez)]], ".//th"))
return(data.frame(apply(gsub("\\(.*$", "",matrikaz[,2:7]),
2, as.numeric), row.names=matrikaz[,1]))
}
|
"""empty message
Revision ID: ae7cac779f95
Revises: 02409ae15405
Create Date: 2021-06-05 00:06:25.521434
"""
from alembic import op
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = "ae7cac779f95"
down_revision = "02409ae15405"
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.alter_column("role", "practice_id", existing_type=postgresql.UUID(), nullable=True)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.alter_column("role", "practice_id", existing_type=postgresql.UUID(), nullable=False)
# ### end Alembic commands ###
|
(*
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*
*)
module Test = Integration_test_base
let foo_name = "foo.php"
let foo_contents =
Printf.sprintf "<?hh // strict
/* HH_FIXME[4336] */
function foo() : %s {
}
"
let foo_returns_int = foo_contents "int"
let foo_returns_string = foo_contents "string"
let bar_name = "bar.php"
let bar_contents = "<?hh // strict
function test(): int {
return foo();
}
"
let bar_diagnostics =
"
/bar.php:
File \"/bar.php\", line 5, characters 10-14:
Invalid return type (Typing[4110])
File \"/bar.php\", line 4, characters 18-20:
Expected `int`
File \"/foo.php\", line 4, characters 18-23:
But got `string`
"
let bar_clear = "
/bar.php:
"
let root = "/"
let hhconfig_filename = Filename.concat root ".hhconfig"
let hhconfig_contents =
"
allowed_fixme_codes_strict = 4336
allowed_decl_fixme_codes = 4336
"
let test () =
Relative_path.set_path_prefix Relative_path.Root (Path.make root);
TestDisk.set hhconfig_filename hhconfig_contents;
let hhconfig_path =
Relative_path.create Relative_path.Root hhconfig_filename
in
let options = ServerArgs.default_options ~root in
let (custom_config, _) =
ServerConfig.load ~silent:false hhconfig_path options
in
let env = Test.setup_server ~custom_config () in
let env =
Test.setup_disk env [(foo_name, foo_returns_int); (bar_name, bar_contents)]
in
let env = Test.connect_persistent_client env in
let env = Test.subscribe_diagnostic env in
let (env, loop_output) = Test.(run_loop_once env default_loop_input) in
Test.assert_no_errors env;
Test.assert_no_diagnostics loop_output;
(* Open both files and make an edit to foo that reslts in errors in bar *)
let env = Test.open_file env foo_name in
let env = Test.open_file env bar_name in
let (env, _) = Test.edit_file env foo_name foo_returns_string in
let env = Test.wait env in
let (env, loop_output) = Test.(run_loop_once env default_loop_input) in
Test.assert_diagnostics loop_output bar_diagnostics;
(* Close bar, make sure that errors is still there, not cleared *)
let (env, _) = Test.close_file env bar_name in
let env = Test.wait env in
let (env, loop_output) = Test.(run_loop_once env default_loop_input) in
Test.assert_no_diagnostics loop_output;
(* Fix foo, check that the error in bar was cleared - even though the
* file is not currently open in IDE *)
let (env, _) = Test.edit_file env foo_name foo_returns_int in
let env = Test.wait env in
let (_, loop_output) = Test.(run_loop_once env default_loop_input) in
Test.assert_diagnostics loop_output bar_clear
|
magni.cs.phase_transition._data module
======================================
.. automodule:: magni.cs.phase_transition._data
:members:
:private-members:
:special-members:
:show-inheritance:
|
db 0 ; species ID placeholder
db 40, 40, 70, 40, 70, 45
; hp atk def spd sat sdf
db GRASS, GRASS ; type
db 140 ; catch rate
db 85 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F50 ; gender ratio
db 20 ; step cycles to hatch
INCBIN "gfx/pokemon/tangtrip/front.dimensions"
db GROWTH_MEDIUM_FAST ; growth rate
dn EGG_NONE, EGG_NONE ; egg groups
db 70 ; happiness
; tm/hm learnset
tmhm
; end
|
package org.rebeam.icons
import japgolly.scalajs.react._
import scalajs.js
import scalajs.js.annotation.JSImport
object ViewArray {
@JSImport("@material-ui/icons/ViewArray", JSImport.Default)
@js.native
object ViewArrayJS extends js.Object
val jsFnComponent = JsFnComponent[Null, Children.None](ViewArrayJS)
def apply() = jsFnComponent()
}
|
; A273407: First differences of number of active (ON,black) cells in n-th stage of growth of two-dimensional cellular automaton defined by "Rule 673", based on the 5-celled von Neumann neighborhood.
; 3,17,23,33,39,49,55,65,71,81,87,97,103,113,119,129,135,145,151,161,167,177,183,193,199,209,215,225,231,241,247,257,263,273,279,289,295,305,311,321,327,337,343,353,359,369,375,385,391,401,407,417,423,433,439,449,455,465,471,481,487,497,503,513,519,529,535,545,551,561,567,577,583,593,599,609,615,625,631,641,647,657,663,673,679,689,695,705,711,721,727,737,743,753,759,769,775,785,791,801
mov $1,$0
div $1,2
sub $1,$0
mul $0,3
mov $2,$1
cmp $2,0
add $1,$2
mul $1,2
sub $0,$1
add $0,2
mul $0,2
add $0,3
|
$session = New-Object Microsoft.PowerShell.Commands.WebRequestSession
$session.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36"
Invoke-WebRequest -UseBasicParsing -Uri "http://172.16.3.10/ess/commonauth" `
-Method "POST" `
-WebSession $session `
-Headers @{
"Cache-Control"="max-age=0"
"Origin"="http://172.16.3.10"
"Upgrade-Insecure-Requests"="1"
"DNT"="1"
"Accept"="text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9"
"Referer"="http://172.16.3.10/ess/commonauth"
"Accept-Encoding"="gzip, deflate"
"Accept-Language"="zh-CN,zh;q=0.9"
"sec-gpc"="1"
} `
-ContentType "application/x-www-form-urlencoded" `
-Body "kind=logout&loginUniqueCodeForOnline=8f5005c3e067b3b76a952a5799d4ec54&userId=temp&nickName=&mac=342EB798DFCD&port=0&urlBeforeLogon=http%3A%2F%2F1.1.1.32%2F&vid=&ssid=NTZX&apmac=&userIp=10.66.26.151&t=wireless-v2&nasIp=172.16.3.18&secZoneName=&isMessageExist=&isPatchExist=&ssoUrl=&urlBeforeLogin=http%3A%2F%2F1.1.1.32%2F&loginPublishUrl=&enableCookie=&logoutCode=1&onlineTime=11&isRedirectModify=true&userIndex=10012&pswProtectionUrl=.%2Fpasswordprotectionservlet%3Fkind%3DtoPswProtectionConfigFromWeb%26urlBeforeLogin%3Dhttp%3A%2F%2F1.1.1.32%2F%26isFromSuccessPage%3Dtrue%26userIp%3D10.66.26.151&isFirstLogin=false&broadcastUrl=&onlineInfoShowEnable=false" |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateTodosTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('todos', function (Blueprint $table) {
$table->id();
$table->timestamps();
$table->string('todo');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('todos');
}
} |
@echo off
haxe different-versions.hxml
if ERRORLEVEL 1 goto :pause
goto :done
:pause
pause
:done
|
-- salman rahman
-- 27853815
LIBRARY IEEE;
USE IEEE.std_logic_1164.ALL;
-- USE IEEE.std_logic_unsigned.ALL;
USE IEEE.std_logic_signed.ALL;
ENTITY cpu IS
PORT (
reset : IN std_logic;
clk : IN std_logic;
rs_out, rt_out : OUT std_logic_vector(3 DOWNTO 0);
-- output ports from the register file
pc_out : OUT std_logic_vector(3 DOWNTO 0);
overflow, zero : OUT std_logic
);
END cpu;
ARCHITECTURE cpu_arch OF cpu IS
COMPONENT datapath
PORT (
reset : IN std_logic;
clk : IN std_logic;
pc_sel : IN std_logic_vector(1 DOWNTO 0) := "00";
branch_type : IN std_logic_vector(1 DOWNTO 0) := "00";
reg_dst : IN std_logic := '0';
reg_write : IN std_logic := '0';
alu_src : IN std_logic := '0';
add_sub : IN std_logic := '0';
logic_func : IN std_logic_vector(1 DOWNTO 0) := "00";
func : IN std_logic_vector(1 DOWNTO 0) := "00";
overflow : OUT std_logic;
zero : OUT std_logic;
data_write : IN std_logic := '0';
reg_in_src : IN std_logic := '0';
instruction_out : OUT std_logic_vector(31 DOWNTO 0) := "00000000000000000000000000000000";
rs_out : OUT std_logic_vector(31 DOWNTO 0):= "00000000000000000000000000000000";
rt_out : OUT std_logic_vector(31 DOWNTO 0):= "00000000000000000000000000000000";
pc_out : OUT std_logic_vector(31 DOWNTO 0):= "00000000000000000000000000000000"
);
END COMPONENT;
COMPONENT controller
PORT (
pc_sel : OUT std_logic_vector(1 DOWNTO 0) :="00";
branch_type : OUT std_logic_vector(1 DOWNTO 0) :="00";
reg_dst : OUT std_logic :='0';
reg_write : OUT std_logic :='0';
alu_src : OUT std_logic :='0';
add_sub : OUT std_logic :='0' ;
logic_func : OUT std_logic_vector(1 DOWNTO 0):="00";
func : OUT std_logic_vector(1 DOWNTO 0) :="00";
data_write : OUT std_logic :='0';
reg_in_src : OUT std_logic :='0';
instruction_in : IN std_logic_vector(31 DOWNTO 0) := (OTHERS => '0')
);
END COMPONENT;
-- datapath outputs
SIGNAL overflow_out : std_logic;
SIGNAL zero_out : std_logic;
SIGNAL instruction_out : std_logic_vector(31 DOWNTO 0);
SIGNAL pc_output : std_logic_vector(31 DOWNTO 0);
SIGNAL rs_output : std_logic_vector(31 DOWNTO 0);
SIGNAL rt_output : std_logic_vector(31 DOWNTO 0);
-- control outputs
SIGNAL pc_sel : std_logic_vector(1 DOWNTO 0);
SIGNAL branch_type : std_logic_vector(1 DOWNTO 0);
SIGNAL reg_dst : std_logic;
SIGNAL reg_write : std_logic;
SIGNAL alu_src : std_logic;
SIGNAL add_sub : std_logic;
SIGNAL logic_func : std_logic_vector(1 DOWNTO 0);
SIGNAL func : std_logic_vector(1 DOWNTO 0);
SIGNAL data_write : std_logic;
SIGNAL reg_in_src : std_logic;
BEGIN
ctrl : controller PORT MAP(
pc_sel => pc_sel,
branch_type => branch_type,
reg_dst => reg_dst,
reg_write => reg_write,
alu_src => alu_src,
add_sub => add_sub,
logic_func => logic_func,
func => func,
data_write => data_write,
reg_in_src => reg_in_src,
instruction_in => instruction_out
);
dp : datapath PORT MAP(
reset => reset,
clk => clk,
pc_sel => pc_sel,
branch_type => branch_type,
reg_dst => reg_dst,
reg_write => reg_write,
alu_src => alu_src,
add_sub => add_sub,
logic_func => logic_func,
func => func,
overflow => overflow_out,
zero => zero_out,
data_write => data_write,
reg_in_src => reg_in_src,
instruction_out => instruction_out,
rs_out => rs_output,
rt_out => rt_output,
pc_out => pc_output
);
rs_out <= rs_output(3 downto 0);
rt_out <= rt_output(3 downto 0);
pc_out <= pc_output(3 downto 0);
overflow <= overflow_out;
zero <= zero_out;
-- rs_out <= not rs_output(3 downto 0);
-- rt_out <= not rt_output(3 downto 0);
-- pc_out <= not pc_output(3 downto 0);
--overflow <= not overflow_out;
--zero <= not zero_out;
END cpu_arch; |
-- Idris2
import System
import System.Concurrency
-- Test `conditionBroadcast` wakes the child with 1 main and 1 child thread
main : IO ()
main =
do cvMutex <- makeMutex
cv <- makeCondition
t <- fork $ do mutexAcquire cvMutex
conditionWait cv cvMutex
putStrLn "Hello mother"
putStrLn "Hello child"
sleep 1
conditionBroadcast cv
threadWait t
|
/*
* Copyright 2015 Pivotal, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.netflix.spinnaker.clouddriver.cf.deploy.converters
import com.fasterxml.jackson.databind.ObjectMapper
import com.netflix.spinnaker.clouddriver.cf.security.CloudFoundryAccountCredentials
import com.netflix.spinnaker.clouddriver.security.AccountCredentialsProvider
import com.netflix.spinnaker.clouddriver.cf.deploy.description.DestroyCloudFoundryServerGroupDescription
import com.netflix.spinnaker.clouddriver.cf.deploy.ops.DestroyCloudFoundryServerGroupAtomicOperation
import spock.lang.Shared
import spock.lang.Specification
class DestroyCloudFoundryServerGroupAtomicOperationConverterSpec extends Specification {
@Shared
ObjectMapper mapper = new ObjectMapper()
@Shared
DestroyCloudFoundryServerGroupAtomicOperationConverter converter
def setupSpec() {
def accountCredentialsProvider = Stub(AccountCredentialsProvider) {
getCredentials('test') >> Stub(CloudFoundryAccountCredentials)
}
converter = new DestroyCloudFoundryServerGroupAtomicOperationConverter(objectMapper: mapper,
accountCredentialsProvider: accountCredentialsProvider
)
}
def "should return DestroyCloudFoundryServerGroupDescription and DestroyCloudFoundryServerGroupAtomicOperation"() {
setup:
def input = [serverGroupName: 'demo-staging-v001', region: 'some-region',
credentials: 'test']
when:
def description = converter.convertDescription(input)
then:
description instanceof DestroyCloudFoundryServerGroupDescription
when:
def operation = converter.convertOperation(input)
then:
operation instanceof DestroyCloudFoundryServerGroupAtomicOperation
}
void "should not fail to serialize unknown properties"() {
setup:
def serverGroup = "demo-staging-v001"
def region = 'some-region'
def input = [serverGroupName: serverGroup, region: region,
unknownProp: "this",
credentials: 'test']
when:
def description = converter.convertDescription(input)
then:
description.serverGroupName == serverGroup
description.region == region
}
}
|
/*
** Copyright (c) 2021 Oracle and/or its affiliates.
**
** The Universal Permissive License (UPL), Version 1.0
**
** Subject to the condition set forth below, permission is hereby granted to any
** person obtaining a copy of this software, associated documentation and/or data
** (collectively the "Software"), free of charge and under any and all copyright
** rights in the Software, and any and all patent rights owned or freely
** licensable by each licensor hereunder covering either (i) the unmodified
** Software as contributed to or provided by such licensor, or (ii) the Larger
** Works (as defined below), to deal in both
**
** (a) the Software, and
** (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if
** one is included with the Software (each a "Larger Work" to which the Software
** is contributed by such licensors),
**
** without restriction, including without limitation the rights to copy, create
** derivative works of, display, perform, and distribute the Software and make,
** use, sell, offer for sale, import, export, have made, and have sold the
** Software and the Larger Work(s), and to sublicense the foregoing rights on
** either these or other terms.
**
** This license is subject to the following condition:
** The above copyright notice and either this complete permission notice or at
** a minimum a reference to the UPL must be included in all copies or
** substantial portions of the Software.
**
** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
** IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
** FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
** AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
** LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
** OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
** SOFTWARE.
*/
package commons
import (
"context"
databasev1alpha1 "github.com/oracle/oracle-database-operator/apis/database/v1alpha1"
"reflect"
"strconv"
"github.com/go-logr/logr"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/resource"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/client"
)
func buildLabelsForShard(instance *databasev1alpha1.ShardingDatabase, label string) map[string]string {
return map[string]string{
"app": "OracleSharding",
"type": "Shard",
"oralabel": getLabelForShard(instance),
}
}
func getLabelForShard(instance *databasev1alpha1.ShardingDatabase) string {
// if len(OraShardSpex.Label) !=0 {
// return OraShardSpex.Label
// }
return instance.Name
}
func BuildStatefulSetForShard(instance *databasev1alpha1.ShardingDatabase, OraShardSpex databasev1alpha1.ShardSpec) *appsv1.StatefulSet {
sfset := &appsv1.StatefulSet{
TypeMeta: buildTypeMetaForShard(),
ObjectMeta: builObjectMetaForShard(instance, OraShardSpex),
Spec: *buildStatefulSpecForShard(instance, OraShardSpex),
}
return sfset
}
// Function to build TypeMeta
func buildTypeMetaForShard() metav1.TypeMeta {
// building TypeMeta
typeMeta := metav1.TypeMeta{
Kind: "StatefulSet",
APIVersion: "apps/v1",
}
return typeMeta
}
// Function to build ObjectMeta
func builObjectMetaForShard(instance *databasev1alpha1.ShardingDatabase, OraShardSpex databasev1alpha1.ShardSpec) metav1.ObjectMeta {
// building objectMeta
objmeta := metav1.ObjectMeta{
Name: OraShardSpex.Name,
Namespace: instance.Spec.Namespace,
OwnerReferences: getOwnerRef(instance),
Labels: buildLabelsForShard(instance, "sharding"),
}
return objmeta
}
// Function to build Stateful Specs
func buildStatefulSpecForShard(instance *databasev1alpha1.ShardingDatabase, OraShardSpex databasev1alpha1.ShardSpec) *appsv1.StatefulSetSpec {
// building Stateful set Specs
var size int32
size = 1
sfsetspec := &appsv1.StatefulSetSpec{
ServiceName: OraShardSpex.Name,
Selector: &metav1.LabelSelector{
MatchLabels: buildLabelsForShard(instance, "sharding"),
},
Template: corev1.PodTemplateSpec{
ObjectMeta: metav1.ObjectMeta{
Labels: buildLabelsForShard(instance, "sharding"),
},
Spec: *buildPodSpecForShard(instance, OraShardSpex),
},
VolumeClaimTemplates: volumeClaimTemplatesForShard(instance, OraShardSpex),
}
// if OraShardSpex.OraShardSize == 0 {
// OraShardSpex.OraShardSize = 1
sfsetspec.Replicas = &size
// } else {
// sfsetspec.Replicas = &OraShardSpex.OraShardSize
// }
return sfsetspec
}
// Function to build PodSpec
func buildPodSpecForShard(instance *databasev1alpha1.ShardingDatabase, OraShardSpex databasev1alpha1.ShardSpec) *corev1.PodSpec {
user := oraRunAsUser
group := oraFsGroup
spec := &corev1.PodSpec{
SecurityContext: &corev1.PodSecurityContext{
RunAsUser: &user,
FSGroup: &group,
},
InitContainers: buildInitContainerSpecForShard(instance, OraShardSpex),
Containers: buildContainerSpecForShard(instance, OraShardSpex),
Volumes: buildVolumeSpecForShard(instance, OraShardSpex),
}
if len(instance.Spec.DbImagePullSecret) > 0 {
spec.ImagePullSecrets = []corev1.LocalObjectReference{
{
Name: instance.Spec.DbImagePullSecret,
},
}
}
if len(OraShardSpex.NodeSelector) > 0 {
spec.NodeSelector = make(map[string]string)
for key, value := range OraShardSpex.NodeSelector {
spec.NodeSelector[key] = value
}
}
return spec
}
// Function to build Volume Spec
func buildVolumeSpecForShard(instance *databasev1alpha1.ShardingDatabase, OraShardSpex databasev1alpha1.ShardSpec) []corev1.Volume {
var result []corev1.Volume
result = []corev1.Volume{
{
Name: OraShardSpex.Name + "secretmap-vol3",
VolumeSource: corev1.VolumeSource{
Secret: &corev1.SecretVolumeSource{
SecretName: instance.Spec.Secret,
},
},
},
{
Name: OraShardSpex.Name + "orascript-vol5",
VolumeSource: corev1.VolumeSource{
EmptyDir: &corev1.EmptyDirVolumeSource{},
},
},
{
Name: OraShardSpex.Name + "oradshm-vol6",
VolumeSource: corev1.VolumeSource{
EmptyDir: &corev1.EmptyDirVolumeSource{},
},
},
}
if len(OraShardSpex.PvcName) != 0 {
result = append(result, corev1.Volume{Name: OraShardSpex.Name + "oradata-vol4", VolumeSource: corev1.VolumeSource{PersistentVolumeClaim: &corev1.PersistentVolumeClaimVolumeSource{ClaimName: OraShardSpex.PvcName}}})
}
if len(instance.Spec.StagePvcName) != 0 {
result = append(result, corev1.Volume{Name: OraShardSpex.Name + "orastage-vol7", VolumeSource: corev1.VolumeSource{PersistentVolumeClaim: &corev1.PersistentVolumeClaimVolumeSource{ClaimName: instance.Spec.StagePvcName}}})
}
return result
}
// Function to build the container Specification
func buildContainerSpecForShard(instance *databasev1alpha1.ShardingDatabase, OraShardSpex databasev1alpha1.ShardSpec) []corev1.Container {
// building Continer spec
var result []corev1.Container
containerSpec := corev1.Container{
Name: OraShardSpex.Name,
Image: instance.Spec.DbImage,
SecurityContext: &corev1.SecurityContext{
Capabilities: &corev1.Capabilities{
Add: []corev1.Capability{"NET_RAW"},
},
},
Resources: corev1.ResourceRequirements{
Requests: make(map[corev1.ResourceName]resource.Quantity),
},
VolumeMounts: buildVolumeMountSpecForShard(instance, OraShardSpex),
LivenessProbe: &corev1.Probe{
// TODO: Investigate if it's ok to call status every 10 seconds
FailureThreshold: int32(30),
PeriodSeconds: int32(240),
InitialDelaySeconds: int32(300),
TimeoutSeconds: int32(120),
Handler: corev1.Handler{
Exec: &corev1.ExecAction{
Command: getLivenessCmd("SHARD"),
},
},
},
/**
// Disabling this because ping stop working and sharding topologu never gets configured.
StartupProbe: &corev1.Probe{
FailureThreshold: int32(30),
PeriodSeconds: int32(180),
Handler: corev1.Handler{
Exec: &corev1.ExecAction{
Command: getLivenessCmd("SHARD"),
},
},
},
**/
Env: buildEnvVarsSpec(instance, OraShardSpex.EnvVars, OraShardSpex.Name, "SHARD", false, "NONE"),
}
if instance.Spec.IsClone {
containerSpec.Command = []string{orainitCmd3}
}
if OraShardSpex.Resources != nil {
containerSpec.Resources = *OraShardSpex.Resources
}
// building Complete Container Spec
result = []corev1.Container{
containerSpec,
}
return result
}
//Function to build the init Container Spec
func buildInitContainerSpecForShard(instance *databasev1alpha1.ShardingDatabase, OraShardSpex databasev1alpha1.ShardSpec) []corev1.Container {
var result []corev1.Container
privFlag := true
var uid int64 = 0
// building the init Container Spec
var scriptLoc string
if len(instance.Spec.ScriptsLocation) != 0 {
scriptLoc = instance.Spec.ScriptsLocation
} else {
scriptLoc = "WEB"
}
init1spec := corev1.Container{
Name: OraShardSpex.Name + "-init1",
Image: instance.Spec.DbImage,
SecurityContext: &corev1.SecurityContext{
Privileged: &privFlag,
RunAsUser: &uid,
},
Command: []string{
"/bin/bash",
"-c",
getInitContainerCmd(scriptLoc, instance.Name),
},
VolumeMounts: buildVolumeMountSpecForShard(instance, OraShardSpex),
}
// building Complete Init Container Spec
if OraShardSpex.ImagePulllPolicy != nil {
init1spec.ImagePullPolicy = *OraShardSpex.ImagePulllPolicy
}
result = []corev1.Container{
init1spec,
}
return result
}
func buildVolumeMountSpecForShard(instance *databasev1alpha1.ShardingDatabase, OraShardSpex databasev1alpha1.ShardSpec) []corev1.VolumeMount {
var result []corev1.VolumeMount
result = append(result, corev1.VolumeMount{Name: OraShardSpex.Name + "secretmap-vol3", MountPath: oraSecretMount, ReadOnly: true})
result = append(result, corev1.VolumeMount{Name: OraShardSpex.Name + "-oradata-vol4", MountPath: oraDataMount})
result = append(result, corev1.VolumeMount{Name: OraShardSpex.Name + "orascript-vol5", MountPath: oraScriptMount})
result = append(result, corev1.VolumeMount{Name: OraShardSpex.Name + "oradshm-vol6", MountPath: oraShm})
if len(instance.Spec.StagePvcName) != 0 {
result = append(result, corev1.VolumeMount{Name: OraShardSpex.Name + "orastage-vol7", MountPath: oraStage})
}
return result
}
func volumeClaimTemplatesForShard(instance *databasev1alpha1.ShardingDatabase, OraShardSpex databasev1alpha1.ShardSpec) []corev1.PersistentVolumeClaim {
var claims []corev1.PersistentVolumeClaim
if len(OraShardSpex.PvcName) != 0 {
return claims
}
claims = []corev1.PersistentVolumeClaim{
{
ObjectMeta: metav1.ObjectMeta{
Name: OraShardSpex.Name + "-oradata-vol4",
Namespace: instance.Spec.Namespace,
OwnerReferences: getOwnerRef(instance),
Labels: buildLabelsForShard(instance, "sharding"),
},
Spec: corev1.PersistentVolumeClaimSpec{
AccessModes: []corev1.PersistentVolumeAccessMode{
corev1.ReadWriteOnce,
},
StorageClassName: &instance.Spec.StorageClass,
Resources: corev1.ResourceRequirements{
Requests: corev1.ResourceList{
corev1.ResourceStorage: resource.MustParse(strconv.FormatInt(int64(OraShardSpex.StorageSizeInGb), 10) + "Gi"),
},
},
},
},
}
if len(OraShardSpex.PvAnnotations) > 0 {
claims[0].ObjectMeta.Annotations = make(map[string]string)
for key, value := range OraShardSpex.PvAnnotations {
claims[0].ObjectMeta.Annotations[key] = value
}
}
if len(OraShardSpex.PvMatchLabels) > 0 {
claims[0].Spec.Selector = &metav1.LabelSelector{MatchLabels: OraShardSpex.PvMatchLabels}
}
return claims
}
func BuildServiceDefForShard(instance *databasev1alpha1.ShardingDatabase, replicaCount int32, OraShardSpex databasev1alpha1.ShardSpec, svctype string) *corev1.Service {
service := &corev1.Service{}
service = &corev1.Service{
ObjectMeta: buildSvcObjectMetaForShard(instance, replicaCount, OraShardSpex, svctype),
Spec: corev1.ServiceSpec{},
}
// Check if user want External Svc on each replica pod
if svctype == "external" {
service.Spec.Type = corev1.ServiceTypeLoadBalancer
service.Spec.Selector = getSvcLabelsForShard(replicaCount, OraShardSpex)
}
if svctype == "local" {
service.Spec.ClusterIP = corev1.ClusterIPNone
service.Spec.Selector = buildLabelsForShard(instance, "sharding")
}
// build Service Ports Specs to be exposed. If the PortMappings is not set then default ports will be exposed.
service.Spec.Ports = buildSvcPortsDef(instance, "SHARD")
return service
}
// Function to build Service ObjectMeta
func buildSvcObjectMetaForShard(instance *databasev1alpha1.ShardingDatabase, replicaCount int32, OraShardSpex databasev1alpha1.ShardSpec, svctype string) metav1.ObjectMeta {
// building objectMeta
var svcName string
if svctype == "local" {
svcName = OraShardSpex.Name
}
if svctype == "external" {
svcName = OraShardSpex.Name + strconv.FormatInt(int64(replicaCount), 10) + "-svc"
}
objmeta := metav1.ObjectMeta{
Name: svcName,
Namespace: instance.Spec.Namespace,
Labels: buildLabelsForShard(instance, "sharding"),
OwnerReferences: getOwnerRef(instance),
}
return objmeta
}
func getSvcLabelsForShard(replicaCount int32, OraShardSpex databasev1alpha1.ShardSpec) map[string]string {
var labelStr map[string]string
labelStr = make(map[string]string)
if replicaCount == -1 {
labelStr["statefulset.kubernetes.io/pod-name"] = OraShardSpex.Name + "-0"
} else {
labelStr["statefulset.kubernetes.io/pod-name"] = OraShardSpex.Name + "-" + strconv.FormatInt(int64(replicaCount), 10)
}
// fmt.Println("Service Selector String Specification", labelStr)
return labelStr
}
// ======================== Update Section ========================
func UpdateProvForShard(instance *databasev1alpha1.ShardingDatabase, OraShardSpex databasev1alpha1.ShardSpec, kClient client.Client, sfSet *appsv1.StatefulSet, shardPod *corev1.Pod, logger logr.Logger,
) (ctrl.Result, error) {
var msg string
var size int32
size = 1
var isUpdate bool = false
var err error
var i int
// Ensure deployment replicas match the desired state
if sfSet.Spec.Replicas != nil {
if *sfSet.Spec.Replicas != size {
msg = "Current StatefulSet replicas do not match configured Shard Replicas. Shard is configured with only 1 but current replicas is set with " + strconv.FormatInt(int64(*sfSet.Spec.Replicas), 10)
LogMessages("DEBUG", msg, nil, instance, logger)
isUpdate = true
}
}
// Memory Check
//resources := corev1.Pod.Spec.Containers
for i = 0; i < len(shardPod.Spec.Containers); i++ {
if shardPod.Spec.Containers[i].Name == sfSet.Name {
shardContaineRes := shardPod.Spec.Containers[i].Resources
oraSpexRes := OraShardSpex.Resources
if !reflect.DeepEqual(shardContaineRes, oraSpexRes) {
isUpdate = true
}
}
}
/**
for i = 0; i < len(sfSet.Spec.VolumeClaimTemplates); i++ {
if sfSet.Spec.VolumeClaimTemplates[i].Name == OraShardSpex.Name+"-oradata-vol4" {
volResource := sfSet.Spec.VolumeClaimTemplates[i].Spec.Resources
volumeSize := volResource.Requests.Storage()
sSize := volumeSize.
if sSize != int(OraShardSpex.StorageSizeInGb) {
isUpdate = true
}
}
}
**/
if isUpdate {
err = kClient.Update(context.Background(), BuildStatefulSetForShard(instance, OraShardSpex))
if err != nil {
msg = "Failed to update Shard StatefulSet " + "StatefulSet.Name : " + sfSet.Name
LogMessages("Error", msg, nil, instance, logger)
return ctrl.Result{}, err
}
}
return ctrl.Result{}, nil
}
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>XINU: lib/strncmp.c File Reference</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">XINU
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('../../',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="../../dir_97aefd0d527b934f1d99a682da8fe6a9.html">lib</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">strncmp.c File Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>二つの文字列を最大N byteまで比較し、その結果を返す。
<a href="#details">More...</a></p>
<p><a href="../../d3/d27/strncmp_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ac49d194e06bfaf92cbb60cf002c710d4"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d27/strncmp_8c.html#ac49d194e06bfaf92cbb60cf002c710d4">strncmp</a> (char *s1, char *s2, int n)</td></tr>
<tr class="memdesc:ac49d194e06bfaf92cbb60cf002c710d4"><td class="mdescLeft"> </td><td class="mdescRight">二つの文字列を最大N byteまで比較し、その結果を返す。 <a href="#ac49d194e06bfaf92cbb60cf002c710d4">More...</a><br /></td></tr>
<tr class="separator:ac49d194e06bfaf92cbb60cf002c710d4"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>二つの文字列を最大N byteまで比較し、その結果を返す。 </p>
<p class="definition">Definition in file <a class="el" href="../../d3/d27/strncmp_8c_source.html">strncmp.c</a>.</p>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="ac49d194e06bfaf92cbb60cf002c710d4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac49d194e06bfaf92cbb60cf002c710d4">◆ </a></span>strncmp()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int strncmp </td>
<td>(</td>
<td class="paramtype">char * </td>
<td class="paramname"><em>s1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char * </td>
<td class="paramname"><em>s2</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>n</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>二つの文字列を最大N byteまで比較し、その結果を返す。 </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">s1</td><td>比較対象の文字列その1 </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">s2</td><td>比較対象の文字列その2 </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">n</td><td>比較するByte数(最大Byte) </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>s1 > s2の場合は0より大きい値、s1 = s2の場合は0、s1 < s2の場合は0より小さい値を返す。 </dd></dl>
<p class="definition">Definition at line <a class="el" href="../../d3/d27/strncmp_8c_source.html#l00013">13</a> of file <a class="el" href="../../d3/d27/strncmp_8c_source.html">strncmp.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> {</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> </div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  <span class="keywordflow">while</span> (--n >= 0 && *s1 == *s2++)</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>  {</div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  <span class="keywordflow">if</span> (*s1++ == <span class="charliteral">'\0'</span>)</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  {</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  }</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  }</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  <span class="keywordflow">return</span> (n < 0 ? 0 : *s1 - *--s2);</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> }</div></div><!-- fragment -->
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
|
open main
pred idJDq85JQySFYLScu3m_prop10 {
(all f:File&Protected | always after f in Protected)
}
pred __repair { idJDq85JQySFYLScu3m_prop10 }
check __repair { idJDq85JQySFYLScu3m_prop10 <=> prop10o } |
{$mode delphi}
{$modeswitch objectivec1}
{$modeswitch cvar}
unit DefinedClassesHomeKit;
interface
type
HMAccessory = objcclass external;
HMAccessoryBrowser = objcclass external;
HMAction = objcclass external;
HMActionSet = objcclass external;
HMCharacteristic = objcclass external;
HMCharacteristicMetadata = objcclass external;
HMCharacteristicWriteAction = objcclass external;
HMHome = objcclass external;
HMHomeManager = objcclass external;
HMRoom = objcclass external;
HMService = objcclass external;
HMServiceGroup = objcclass external;
HMTimerTrigger = objcclass external;
HMTrigger = objcclass external;
HMUser = objcclass external;
HMZone = objcclass external;
HMAccessoryBrowserDelegateProtocol = objcprotocol external name 'HMAccessoryBrowserDelegate';
HMAccessoryDelegateProtocol = objcprotocol external name 'HMAccessoryDelegate';
HMHomeDelegateProtocol = objcprotocol external name 'HMHomeDelegate';
HMHomeManagerDelegateProtocol = objcprotocol external name 'HMHomeManagerDelegate';
implementation
end.
|
# TCL File Generated by Component Editor 9.1sp1
# Fri Feb 26 13:49:35 CST 2010
# DO NOT MODIFY
# +-----------------------------------
# |
# | SEG7_IF "SEG7_IF" v1.0
# | null 2010.02.26.13:49:35
# |
# |
# | D:/svn/de2_115_golden_sopc/ip/TERASIC_SEG7/SEG7_IF.v
# |
# | ./SEG7_IF.v syn
# |
# +-----------------------------------
# +-----------------------------------
# | request TCL package from ACDS 9.1
# |
package require -exact sopc 9.1
# |
# +-----------------------------------
# +-----------------------------------
# | module SEG7_IF
# |
set_module_property DESCRIPTION ""
set_module_property NAME SEG7_IF
set_module_property VERSION 1.0
set_module_property INTERNAL false
set_module_property GROUP "Terasic Technologies Inc./DE2_115"
set_module_property DISPLAY_NAME SEG7_IF
set_module_property TOP_LEVEL_HDL_FILE SEG7_IF.v
set_module_property TOP_LEVEL_HDL_MODULE SEG7_IF
set_module_property INSTANTIATE_IN_SYSTEM_MODULE true
set_module_property EDITABLE true
set_module_property ANALYZE_HDL TRUE
# |
# +-----------------------------------
# +-----------------------------------
# | files
# |
add_file SEG7_IF.v SYNTHESIS
# |
# +-----------------------------------
# +-----------------------------------
# | parameters
# |
add_parameter SEG7_NUM INTEGER 8 ""
set_parameter_property SEG7_NUM DEFAULT_VALUE 8
set_parameter_property SEG7_NUM DISPLAY_NAME SEG7_NUM
set_parameter_property SEG7_NUM UNITS None
set_parameter_property SEG7_NUM ALLOWED_RANGES -2147483648:2147483647
set_parameter_property SEG7_NUM DESCRIPTION ""
set_parameter_property SEG7_NUM DISPLAY_HINT ""
set_parameter_property SEG7_NUM AFFECTS_GENERATION false
set_parameter_property SEG7_NUM HDL_PARAMETER true
add_parameter ADDR_WIDTH INTEGER 3 ""
set_parameter_property ADDR_WIDTH DEFAULT_VALUE 3
set_parameter_property ADDR_WIDTH DISPLAY_NAME ADDR_WIDTH
set_parameter_property ADDR_WIDTH UNITS None
set_parameter_property ADDR_WIDTH ALLOWED_RANGES -2147483648:2147483647
set_parameter_property ADDR_WIDTH DESCRIPTION ""
set_parameter_property ADDR_WIDTH DISPLAY_HINT ""
set_parameter_property ADDR_WIDTH AFFECTS_GENERATION false
set_parameter_property ADDR_WIDTH HDL_PARAMETER true
add_parameter DEFAULT_ACTIVE INTEGER 1 ""
set_parameter_property DEFAULT_ACTIVE DEFAULT_VALUE 1
set_parameter_property DEFAULT_ACTIVE DISPLAY_NAME DEFAULT_ACTIVE
set_parameter_property DEFAULT_ACTIVE UNITS None
set_parameter_property DEFAULT_ACTIVE ALLOWED_RANGES -2147483648:2147483647
set_parameter_property DEFAULT_ACTIVE DESCRIPTION ""
set_parameter_property DEFAULT_ACTIVE DISPLAY_HINT ""
set_parameter_property DEFAULT_ACTIVE AFFECTS_GENERATION false
set_parameter_property DEFAULT_ACTIVE HDL_PARAMETER true
add_parameter LOW_ACTIVE INTEGER 1 ""
set_parameter_property LOW_ACTIVE DEFAULT_VALUE 1
set_parameter_property LOW_ACTIVE DISPLAY_NAME LOW_ACTIVE
set_parameter_property LOW_ACTIVE UNITS None
set_parameter_property LOW_ACTIVE ALLOWED_RANGES -2147483648:2147483647
set_parameter_property LOW_ACTIVE DESCRIPTION ""
set_parameter_property LOW_ACTIVE DISPLAY_HINT ""
set_parameter_property LOW_ACTIVE AFFECTS_GENERATION false
set_parameter_property LOW_ACTIVE HDL_PARAMETER true
# |
# +-----------------------------------
# +-----------------------------------
# | display items
# |
# |
# +-----------------------------------
# +-----------------------------------
# | connection point avalon_slave
# |
add_interface avalon_slave avalon end
set_interface_property avalon_slave addressAlignment NATIVE
set_interface_property avalon_slave associatedClock clock_sink
set_interface_property avalon_slave burstOnBurstBoundariesOnly false
set_interface_property avalon_slave explicitAddressSpan 0
set_interface_property avalon_slave holdTime 0
set_interface_property avalon_slave isMemoryDevice false
set_interface_property avalon_slave isNonVolatileStorage false
set_interface_property avalon_slave linewrapBursts false
set_interface_property avalon_slave maximumPendingReadTransactions 0
set_interface_property avalon_slave printableDevice false
set_interface_property avalon_slave readLatency 0
set_interface_property avalon_slave readWaitStates 0
set_interface_property avalon_slave readWaitTime 0
set_interface_property avalon_slave setupTime 0
set_interface_property avalon_slave timingUnits Cycles
set_interface_property avalon_slave writeWaitTime 0
set_interface_property avalon_slave ASSOCIATED_CLOCK clock_sink
set_interface_property avalon_slave ENABLED true
add_interface_port avalon_slave s_address address Input ADDR_WIDTH
add_interface_port avalon_slave s_read read Input 1
add_interface_port avalon_slave s_readdata readdata Output 8
add_interface_port avalon_slave s_write write Input 1
add_interface_port avalon_slave s_writedata writedata Input 8
# |
# +-----------------------------------
# +-----------------------------------
# | connection point conduit_end
# |
add_interface conduit_end conduit end
set_interface_property conduit_end ENABLED true
add_interface_port conduit_end SEG7 export Output SEG7_NUM*8
# |
# +-----------------------------------
# +-----------------------------------
# | connection point clock_sink
# |
add_interface clock_sink clock end
set_interface_property clock_sink ENABLED true
add_interface_port clock_sink s_reset reset Input 1
add_interface_port clock_sink s_clk clk Input 1
# |
# +-----------------------------------
|
pragma solidity ^0.4.0;
import "./DataContract.sol";
contract ControlContract {
DataContract dataContract;
// mapping (address => uint256) public balanceOf;
function aaa(address _dataContractAddr) public {
dataContract = DataContract(_dataContractAddr);
}
function addTen(address addr) public {
dataContract.setBlance(addr, dataContract.balanceOf(addr) + 22);
}
function look(address addr) public returns (uint) {
return dataContract.balanceOf(addr);
}
} |
# See the file LICENSE for redistribution information.
#
# Copyright (c) 1996, 2013 Oracle and/or its affiliates. All rights reserved.
#
# $Id$
#
# TEST txn009
# TEST Test of wraparound txnids (txn003)
proc txn009 { } {
source ./include.tcl
global txn_curid
global txn_maxid
set orig_curid $txn_curid
set orig_maxid $txn_maxid
puts "\tTxn009.1: wraparound txnids"
set txn_curid [expr $txn_maxid - 2]
txn003 "009.1"
puts "\tTxn009.2: closer wraparound txnids"
set txn_curid [expr $txn_maxid - 3]
set txn_maxid [expr $txn_maxid - 2]
txn003 "009.2"
puts "\tTxn009.3: test wraparound txnids"
txn_idwrap_check $testdir
set txn_curid $orig_curid
set txn_maxid $orig_maxid
return
}
|
\documentstyle[11pt,grasp]{article}
% \setcounter{secnumdepth}{0} % No section numbering for SPE
% Special symbols
\newcommand{\curlyL}{${\cal L}$}
\begin{document}
\title{A modular fully-lazy lambda lifter in \Haskell{}}
\author{Simon L Peyton Jones \\
Department of Computing Science, University of Glasgow, G12 8QQ
\and David Lester \\
Department of Computer Science, University of Manchester, M13 9PL}
\maketitle
\begin{abstract}
An important step in many compilers for functional languages is
{\em lambda lifting}. In his thesis, Hughes showed that by doing lambda
lifting in a particular way, a useful property called {\em full laziness}
can be preserved.[.hughes thesis.]
Full laziness has been seen as intertwined with
lambda lifting ever since.
We show that, on the contrary, full laziness can be regarded as a completely
separate process to lambda lifting, thus making it easy to use different
lambda lifters following a full-laziness transformation, or to use
the full-laziness transformation in compilers which do not require lambda
lifting.
On the way, we present the complete code for our modular fully-lazy
lambda lifter, written in the \Haskell{} functional programming language.
\end{abstract}
\section{Introduction}
Lambda lifting and full laziness are part of the folk lore
of functional programming, yet the few published descriptions of
fully-lazy lambda lifting have been either informal or
hard to understand, with the notable exception of
Bird.[.bird supercombinator.]
Our treatment differs from earlier work in the following ways:
\begin{itemize}
\item
The main technical contribution is to show how full
laziness can be separated from lambda lifting, so that
the two transformations can be carried out independently. This
makes each transformation easier to understand and
improves the modularity of the compiler.
\item
Our treatment deals with a language including let- and letrec-expressions.
Not only is this essential for efficient compilation in the later stages
of most compilers, but we also show that
eliminating let(rec) expressions, by translating them into
lambda abstractions, loses full laziness.
To our knowledge, this has not previously been realised.
\item
We show how to decompose each of the transformations further
into a composition of simple steps,
each of which is very easy to program, thus further improving modularity.
\item
We have developed an elegant use of parameterised data types, which
allows the type system to help express the purpose of each pass.
\end{itemize}
We present the complete source code for our solution, and we
document some of the experience we gained in developing it; indeed
the paper can be read as an exercise in functional programming.
The code is presented in the functional programming language \Haskell{},
and the source text for the paper is an executable literate \Haskell{} program.
Lines of code are distinguished by a leading @>@ sign, the rest of
the text being commentary.
We introduce all the notation and background that is required to understand
the paper. The first three sections
introduce the language to be compiled, the
\Haskell{} language, and the main data types to be used.
Following these preliminaries we develop a non-fully-lazy lambda lifter
and then refine it into a fully lazy one.
The paper concludes with some optimisations to the fully-lazy lambda lifter.
\section{The language}
We begin by defining a small language, \curlyL, on which our compiler will
operate.
The abstract syntax of the language is given by the following productions:
$$\begin{array}{lcll}
expression & ::= & name \\
& | & constant & \mbox{Literals and built-in functions} \\
& | & expression_1\ expression_2 & \mbox{Application}\\
& | & @let@\ defns\ @in@\ expression
& \mbox{Non-recursive definitions}\\
& | & @letrec@\ defns\ @in@\ expression
& \mbox{Recursive definitions}\\
& | & \lambda\ name @->@ expression
& \mbox{Lambda abstraction}\\
\\
defns & ::= & def_1 \ldots def_n \qquad (n>0) \\
\\
def & ::= & name\ @=@\ expression
\end{array}$$
The concrete syntax is conventional: parentheses are used to disambiguate;
application associates to the left and binds more tightly than any other
operator; the body of a lambda abstraction
extends as far to the right as possible; the usual infix operators are
permitted; and definitions are delimited using layout.
Notice that the bindings in let(rec) expressions are all {\em simple}; that
is, the left hand side of the binding is always just a variable.
(Functions are defined by binding variables to lambda abstractions.)
Here is an example to illustrate these points:
\begin{verbatim}
letrec
fac = \n -> if (n == 0) 1 (n * factorial (n-1))
in
fac 100
\end{verbatim}
An important feature of this language is that any pure high-level
functional programming language can be translated into it without loss
of expressiveness or efficiency. This process is described in some detail
by Peyton Jones.[.peyton book.]
Notice that let(rec)-expressions are retained, despite the fact that they
are responsible for many of the subtleties in the rest of the paper.
They can certainly be transformed into applications of lambda abstractions and
the @Y@ combinator, but doing so straightforwardly may result in
a serious loss of efficiency.[.peyton book <, Chapter 14>.]
For example, eliminating a let-expression introduces a new
lambda abstraction, which will (under the compilation scheme described
in this paper) be lambda-lifted, and thereby decompose
execution into smaller steps.
Similarly, a naive treatment of mutual local recursion using
@Y@ involves much packing and unpacking of
tuples, which can easily be avoided
if the letrec-expression is handled explicitly.
Finally, later on we show that laziness
can be lost if let-expressions are not handled specially%
%(Section \ref{fully-lazy-letrecs})%
.
\section{\Haskell{}}
\Haskell{} is a recently-designed common non-strict pure functional
language.[.Haskell{} report.] For the purposes of this paper it is fairly
similar to SML or Miranda\footnote{Miranda is a trade mark of Research
Software Ltd}, except in its treatment of abstract data types and modules.
We make little use of Haskell{}'s major technical innovation,
namely systematic overloading using type classes.
Haskell{} modules begin with a declaration naming the module, and
importing any modules it requires:
> module LambdaLift where
>
>
> import Utilities
Here, the module we will be defining is called @LambdaLift@, and it imports
an auxiliary module called @Utilities@, whose interface is given in
the Appendix.
\section{A data type for compilation}
Every compiler has a data type which represents the abstract syntax
tree of the program being compiled. The definition of this data type has
a substantial impact on the clarity and efficiency of the compiler, so
it merits careful thought.
\subsection{First failed attempt}
As a first attempt, the language described in the previous
section can translated directly into the
following \Haskell{} {\em algebraic data type} declaration\footnote{%
Notice that data constructors, such as @EVar@ and @ELam@,
and type constructors, such as @Expresssion@ and @Name@,
must both begin with capital letter in \Haskell{}.
}:
1> data Expression
1> = EConst Constant
1> | EVar Name
1> | EAp Expression Expression
1> | ELam [Name] Expression
1> | ELet IsRec [Definition] Expression
We choose to represent names simply by their character string, using
a {\em type synonym} declaration.
> type Name = [Char]
Constants may be numbers, booleans, the names of global functions, and
so on:
> data Constant = CNum Integer | CBool Bool | CFun Name
% deriving(Text)
The definition of the @Constant@ type can be changed without affecting
any of the rest of this paper.
As an example of the @Expression@ type,
the \curlyL-expression @a+3@ would be represented by
the \Haskell{} expression
\begin{verbatim}
EAp (EAp (EConst (CFun "+")) (EVar "a")) (EConst (CNum 3))
\end{verbatim}
Let-expressions can usually be treated in the same manner
as letrec-expressions, so the two are given a common constructor, and
distinguished by a flag of type @IsRec@. It is convenient to use
a boolean for this flag:
> type IsRec = Bool
> recursive = True
> nonRecursive = False
Each definition in the definition list of
an @ELet@ construction is just a pair:
1> type Definition = (Name, Expression)
\subsection{Second failed attempt}
It does not take long to discover that this is an insufficiently flexible
data type. Many compiler passes add information to the abstract syntax
tree, and we need a systematic way to represent this information.
Examples of analyses which generate this sort of information are:
free-variable analysis,
binding level analysis,
type inference,
strictness analysis,
and sharing analysis.
The most obvious way to add such information is to add a new constructor
for annotations to the @Expr@ data type, thus:
1> data Expression
1> = EVar Name
1> | ...
1> | EAnnot Annotation Expression
together with an auxiliary data type for annotations, which can be
extended as required%
\footnote{The type @Set a@ is a standard abstract data type for sets,
whose interface is given
in the Appendix, but whose implementation is not further defined.}%
:
1> data Annotation = FreeVars (Set Name)
1> | Level Integer
This allows annotations to appear freely throughout the syntax tree,
which appears admirably flexible. In practice, it suffers from two
major disadvantages
\begin{itemize}
\item
It is easy enough to {\em add} annotation information in the form
just described,
but writing a compiler
pass which {\em uses} information placed there by a previous pass is downright
awkward.
Suppose, for example, that a pass wishes to use the free-variable
information left at every node of the tree by a previous pass. Presumably
this information is attached immediately above every node, but the
data type would permit several annotation nodes to appear above each node,
and worse still none (or more than one) might have a free-variable annotation.
Even if the programmer is prepared to certify that there is exactly one
annotation node above every tree node, and that it is a free-variable
annotation, the implementation will still perform pattern-matching to
check these assertions when extracting the annotation.
Both of these problems, namely the requirement for uncheckable programmer
assertions, and some implementation overhead, are directly attributable to
the fact that every annotated tree has the rather uninformative type
@Expression@, which says nothing about which annotations are present.
\item
The second major problem is that further experimentation reveals that
{\em two} distinct forms of annotation are required.
The first annotates
expressions as above, but the second annotates the binding occurrences of
variables; that is, the occurrences on the left-hand sides of definitions,
and the bound variable in a lambda abstraction.
We will call these occurrences {\em binders}.
An example of the need for the latter comes in type inference, where it
the compiler infers a type for each binder, as well as for each sub-expression.
It is possible to use the expression-annotation to annotate binders,
but it is clumsy and inconvenient to do so.
\end{itemize}
\subsection{A happy ending}
We will address the second problem first, since it has an easy solution.
All we need do is parameterise the @Expression@ type with respect to the type
of binders, thus:
> data Expr binder
> = EConst Constant
> | EVar Name
> | EAp (Expr binder) (Expr binder)
> | ELam [binder] (Expr binder)
> | ELet IsRec [Defn binder] (Expr binder)
>
> type Defn binder = (binder, Expr binder)
%> deriving(Text)
@binder@ is a type variable, which in \Haskell{}
must begin with a lower-case letter.
We can easily recover a definition of our original @Expression@ type, in
which a binder is represented by a @Name@, using a type synonym declaration,
thus:
> type Expression = Expr Name
Alternatively, a data type in which binders are names annotated with a type
can be defined thus:
1> type TypedExpression = Expr (Name, TypeExpr)
where @TypeExpr@ is a data type representing type expressions.
Returning to annotations on expressions, we can re-use the same technique by
parameterising the data type of expressions with repect
to the annotation type.
We want to have an annotation on every node of the tree, so one possibility
would be to add an extra field to every constructor with the annotation
information. This is inconvenient if, for example, you simply want to
extract the free-variable information at the top of a given expression
without performing case analysis on the root node. This leads to the
following idea: each level of the tree is a pair, whose first component
is the annotation, and whose second component is the abstract syntax tree
node. Here are the corresponding \Haskell{} data type definitions:
> type AnnExpr binder annot = (annot, AnnExpr' binder annot)
>
> data AnnExpr' binder annot
> = AConst Constant
> | AVar Name
> | AAp (AnnExpr binder annot) (AnnExpr binder annot)
> | ALam [binder] (AnnExpr binder annot)
> | ALet IsRec [AnnDefn binder annot] (AnnExpr binder annot)
>
> type AnnDefn binder annot = (binder, AnnExpr binder annot)
Notice the way that the mutual recursion between @AnnExpr@ and @AnnExpr'@
ensures that every node in the tree carries an annotation.
The sort of annotations carried by an expression are now manifested
in the type of the expression. For example, an expression annotated
with free variables has type @AnnExpr Name (Set Name)@.
It is a real annoyance that @AnnExpr'@ and @Expr@ have to define two
essentially identical sets of constructors. There appears to be no way
around this within the Hindley-Milner type system.
It would be possible to abandon the @Expr@ type altogether, because
the @Expr a@ is nearly isomorphic to @AnnExpr a ()@, but
there are two reasons why we chose not to do this.
Firstly, the two types
are not quite isomorphic, because the latter distinguishes $@((),@\perp@)@$
from $\perp$ while the former does not. Secondly (and more seriously),
it is very tiresome to write all the @()@'s when building and pattern-matching
on trees of type @AnnExpr a ()@.
Finally, we define two useful functions, @bindersOf@ and @rhssOf@
(right-hand-sides of),
which each take the
list of definitions in an @ELet@,
and pick out the list of variables bound by the let(rec), and list of
right-hand sides to which they are bound, respectively:
> bindersOf :: [(binder,rhs)] -> [binder]
> bindersOf defns = [name | (name, rhs) <- defns]
>
> rhssOf :: [(binder,rhs)] -> [rhs]
> rhssOf defns = [rhs | (name,rhs) <- defns]
This definition illustrates the use of a {\em type signature} to express the
type of the function to be defined; and of
a {\em list comprehension} in the right hand side of @bindersOf@, which
may be read ``the list of all @name@s, where the pair @(name,rhs)@ is
drawn from the list @defns@''.
Both of these are now conventional features of functional programming
languages.
This completes our development of the central data type. The discussion
has revealed some of the strengths, and a weakness, of the
algebraic data types provided by all modern functional programming languages.
\section{Lambda lifting}
\label{lambda-lift}
Any implementation of a lexically-scoped
programming language has to cope with the fact that a function
may have free variables. Unless these are removed in some way, an
environment-based implementation has to manipulate linked environment
frames, and a reduction-based system is made significantly more complex
by the need to perform $\alpha$-renaming during substitution.
A popular way of avoiding these problems, especially in graph reduction
implementations, is to eliminate all free variables from function
definitions by means of a
transformation known as {\em lambda lifting}.
Lambda lifting is a term coined by Johnsson,[.johnsson lambda lifting.] but
the transformation was independently developed by Hughes.[.hughes thesis.]
A tutorial treatment is given by Peyton Jones.[.peyton book.]
The lambda-lifting issue is not restricted to functional languages.
For example, Pascal allows a function to be declared locally within another
function, and the inner function may have free variables bound by the
outer scope.
On the other hand, the C language does not permit such local definitions.
In the absence of side effects, it
is simple to make a local function definition into a global one: all
we need do is add the free variables as extra parameters, and add these
parameters to every call.
This is exactly what lambda lifting does.
In a functional-language context,
lambda lifting transforms an {\em expression} into a {\em set of
supercombinator definitions}, each of which defines a function of zero
or more arguments, and whose body contains no embedded lambda
abstractions. In this paper we will use the convention that
the value of the set of
definitions is the value of the supercombinator @$main@; this artifice
avoids the need to speak of ``a set of supercombinator definitions
together with an expression to be evaluated''.
To take a simple example, consider the program
\begin{verbatim}
let
f = \x -> let g = \y -> x*x + y in (g 3 + g 4)
in
f 6
\end{verbatim}
Here, @x@ is free in the abstraction @\y -> x*x + y@. The free variable can be
removed by defining a new function @$g@ which takes @x@ as an extra parameter,
but whose body is the offending abstraction,
and redefining @g@ in terms of @$g@, giving the following set of supercombinator
definitions:
\begin{verbatim}
$g x y = x*x + y
f x = let g = $g x in (g 3 + g 4)
$main = f 6
\end{verbatim}
(To stress the fact that this program is a set of supercombinator
definitions, we permit ourselves to write the arguments of the supercombinator
on the left of the @=@ sign.)
Matters are no more complicated when recursion is involved. Suppose that
@g@ was recursive, thus:
\begin{verbatim}
let
f = \x -> letrec g = \y -> cons (x*y) (g y) in g 3
in
f 6
\end{verbatim}
Now @x@ and @g@ are both free in the @\y@-abstraction, so the lambda lifter
will produce the following set of supercombinators:
\begin{verbatim}
$g g x y = cons (x*y) (g y)
f x = letrec g = $g g x in g 3
$main = f 6
\end{verbatim}
Notice that the definition of @g@ is still recursive, but the lambda lifter
has eliminated the local lambda abstraction. The program is now directly
implementable by most compiler back ends.
This is not the only way to handle local recursive function definitions.
The main alternative is
described by Johnsson,[.johnsson thesis.] who generates directly-recursive
supercombinators from locally-recursive function definitions; in our example,
@$g@ would be directly recursive rather than calling its parameter @g@, thus:
\begin{verbatim}
$g x y = cons (x*y) ($g x y)
f x = $g x 3
$main = f 6
\end{verbatim}
The lambda lifter he describes is
much more complex than the one we develop here. For Johnsson it is worth the
extra work, because the back end of his compiler can produce better code from
directly-recursive supercombinators, but it is not clear that this applies
universally to all implementations.
At all events, we will stick to the simple lambda lifter here, since our main
concern is the interaction with full laziness.
\subsection{Implementing a simple lambda lifter}
\label{simple-lambdalift}
We are now ready to develop a simple lambda lifter.
It will take an expression and deliver a list of supercombinator definitions,
so this is its type:
> lambdaLift :: Expression -> [SCDefn]
Each supercombinator definition consists of the name of the supercombinator,
the list of its arguments, and its body:
> type SCDefn = (Name, [Name], Expression)
It should be the case that there are no @ELam@ constructors
anywhere in the third component of
the triple.
Unfortunately, there is no way to express (and hence enforce)
this constraint in the type,
except by declaring yet another new variant of @Expr@ lacking
such a constructor. This is really another shortcoming of the type system:
there is no means of expressing this sort of subtyping relationship.
The lambda lifter works in three passes:
\begin{itemize}
\item
First, we annotate every node in the expression with its free variables.
This is used by the following pass to decide which extra parameters
to add to a lambda abstraction. The @freeVars@ function has type
> freeVars :: Expression -> AnnExpr Name (Set Name)
\item
Second, the function @abstract@ abstracts the free variables
from each lambda abstraction, replacing the lambda abstraction with the
application of the new abstraction (now a supercombinator) to the free
variables. For example, the lambda abstraction
\begin{verbatim}
(\x -> y*x + y*z)
\end{verbatim}
would be transformed to
\begin{verbatim}
(\y -> \z -> \x -> y*x + y*z) y z
\end{verbatim}
@abstract@ has the type signature:
> abstract :: AnnExpr Name (Set Name) -> Expression
Notice, from the type signature, that @abstract@ removes the free variable
information, which is no longer required.
\item
Finally, @collectSCs@ gives a unique name to each supercombinator,
collects all the supercombinator definitions into a single list, and
introduces the @$main@ supercombinator definition.
> collectSCs :: Expression -> [SCDefn]
\end{itemize}
The compiler itself is the composition of these three functions\footnote{%
Infix ``@.@'' denotes function composition.
}:
> lambdaLift = collectSCs . abstract . freeVars
It would of course be possible to do all the work in a single pass,
but the modularity provided by separating them has a number of advantages:
each individual pass is easier to understand, the passes may be reusable
(for example, we reuse @freeVars@ below), and modularity makes it easier
to change the algorithm somewhat.
As an example of the final point, the
\Haskell{} compiler under development at Glasgow
will be able to generate better code by omitting
the @collectSCs@ pass, because more is then known about the context in which
the supercombinator is applied.
For example, consider the expression, which might be produced by the
@abstract@ pass:
\begin{verbatim}
let f = (\v.\x. v-x) v
in ...f...f...
\end{verbatim}
Here @abstract@ has removed @v@ as a free variable from the @\x@-abstraction.
Rather than compiling the supercombinator independently of its context,
our compiler constructs a closure for @f@, whose code accesses @v@ directly
from the closure and @x@ from the stack. The calls to @f@ thus do not have
to move @v@ onto the stack.
The more free variables there are the more
beneficial this becomes.
Nor do the calls to @f@ become less efficient
because the definition is a local one; the compiler can see the binding
for @f@ and can jump directly to its code.
\subsection{Free variables}
We begin by giving the code for the free-variable pass, not because it
is particularly subtle, but because it serves to illustrate {\sc Haskell}
language notation.
> freeVars (EConst k) = (setEmpty, AConst k)
> freeVars (EVar v) = (setSingleton v, AVar v)
> freeVars (EAp e1 e2) =
> (setUnion (freeVarsOf e1') (freeVarsOf e2'), AAp e1' e2')
> where
> e1' = freeVars e1
> e2' = freeVars e2
> freeVars (ELam args body) =
> (setDifference (freeVarsOf body') (setFromList args), ALam args body')
> where
> body' = freeVars body
> freeVars (ELet isRec defns body) =
> (setUnion defnsFree bodyFree, ALet isRec (zip binders rhss') body')
> where
> binders = bindersOf defns
> binderSet = setFromList binders
> rhss' = map freeVars (rhssOf defns)
> freeInRhss = setUnionList (map freeVarsOf rhss')
> defnsFree | isRec = setDifference freeInRhss binderSet
> | not isRec = freeInRhss
> body' = freeVars body
> bodyFree = setDifference (freeVarsOf body') binderSet
> freeVarsOf :: AnnExpr Name (Set Name) -> Set Name
> freeVarsOf (free_vars, expr) = free_vars
In the definition of @defnsFree@, the boolean condition between the
vertical bar and the equals sign is a {\em guard}, which serves to
select the appropriate right-hand side.
The function @zip@ in the definition of @defns'@ is a standard function which
takes two lists and returns a list consisting of pairs of corresponding
elements of the argument lists.
The set operations @setUnion@, @setDifference@, and so on, are defined in
the utilities module, whose interface is given in the Appendix%
% ~\ref{utilities}%
.
Otherwise the code should be self-explanatory.
\subsection{Generating supercombinators}
\label{abstract}
The next pass merely replaces each lambda abstraction, which is
now annotated with its free variables, with a new abstraction
(the supercombinator) applied
to its free variables.
The full definition is given in the Appendix%
%~\ref{omitted}%
; and the only interesting
equation is that dealing with lambda abstractions:
1> abstract (free, ALam args body) =
1> foldl EAp sc (map EVar fvList)
1> where
1> fvList = setToList free
1> sc = ELam (fvList ++ args) (abstract body)
The function @foldl@ is a standard function; given a dyadic function
$\oplus$, a value $b$, and a list $xs\ =\ [x_1,...,x_n]$,
$@foldl@\ \oplus\ b\ xs$
computes $( \ldots ((b~ \oplus~ x_1)~ \oplus~ x_2)~ \oplus~ \ldots x_n)$.
Notice the way that the free-variable information is discarded by the pass,
since it is no longer required.
We also observe that @abstract@ treats the two expressions
@ELam args1 (ELam args2 body))@ and
@(ELam (args1++args2) body)@ differently.
In the former case, the two abstractions
will be treated separately, generating two supercombinators, while in the
latter only one supercombinator is produced.
It is clearly advantageous to merge directly-nested @ELam@s before
performing lambda lifting. This is equivalent to the $\eta$-abstraction
optimisation noted by Hughes.[.hughes thesis.]
\subsection{Collecting supercombinators}
Finally, we have to name the supercombinators and collect them together.
To generate new names, the main function
has to carry around a {\em name supply};
in particular, it must take the
name supply as an argument and return a depleted supply as a result.
In addition, it must return the collection of supercombinators it has found,
and the transformed expression.
Because of these auxiliary arguments and results,
we define a function @collectSCs_e@
which does all the work, with @collectSCs@ being defined in terms of it:
> collectSCs_e :: NameSupply -> Expression
> -> (NameSupply, Bag SCDefn, Expression)
> collectSCs e = [("$main", [], e')] ++ bagToList scs
> where
> (_, scs, e') = collectSCs_e initialNameSupply e
The name supply is
represented by an abstract data type @NameSupply@, whose interface is
given in the Appendix%
%~\ref{utilities}%
, but in which we take no further interest.
The collection of supercombinators is a {\em bag}, represented by the
abstract data type of @Bag@, which has similar operations defined on it
as those for @Set@.
The ``@_@'' in the last line of @collectSCs@ is a {\em wildcard} which
signals the fact that we are not interested in the depleted name supply
resulting from transforming the whole program.
The code is now easy to write.
> collectSCs_e ns (EConst k) = (ns, bagEmpty, EConst k)
> collectSCs_e ns (EVar v) = (ns, bagEmpty, EVar v)
> collectSCs_e ns (EAp e1 e2) =
> (ns2, bagUnion scs1 scs2, EAp e1' e2')
> where
> (ns1, scs1, e1') = collectSCs_e ns e1
> (ns2, scs2, e2') = collectSCs_e ns1 e2
In the case of lambda abstractions we replace the abstraction by a name,
and add a supercombinator to the result.
> collectSCs_e ns (ELam args body) =
> (ns2, bagInsert (name, args, body') bodySCs, EConst (CFun name))
> where
> (ns1, bodySCs, body') = collectSCs_e ns body
> (ns2, name) = newName ns1 "SC"
A common paradigm occurs in the case for let(rec):
> collectSCs_e ns (ELet isRec defns body) =
> (ns2, scs, ELet isRec defns' body')
> where
> (ns1, bodySCs, body') = collectSCs_e ns body
> ((ns2, scs), defns') = mapAccuml collectSCs_d (ns1, bodySCs) defns
>
> collectSCs_d (ns, scs) (name, rhs) =
> ((ns1, bagUnion scs scs'), (name, rhs'))
> where
> (ns1, scs', rhs') = collectSCs_e ns rhs
When processing a list of definitions, we need to generate a new list
of definitions, threading the name supply through each.
This is done by a new
higher-order function @mapAccuml@, which behaves like a combination
of @map@ and @foldl@;
it applies a function to each element of a list, passing an accumulating
parameter from left to right, and returning a final value of this
accumulator together with the new list. @mapAccuml@
is defined in the Appendix%
% ~\ref{omitted}%
.
\label{mapaccum}
This completes the definition of the simple lambda lifter.
We now turn our attention to full laziness.
\section{Separating full laziness from lambda lifting}
Previous accounts of full laziness have invariably linked it to
lambda lifting,
by describing ``fully-lazy lambda lifting'', which turns out to be
rather a complex process.
Hughes
gives an algorithm but it is extremely subtle
and does not handle let(rec) expressions.[.hughes thesis.]
On the other hand, Peyton Jones
does cover let(rec) expressions, but
the description is only informal and no algorithm is given.[.peyton book.]
In this section we show how full laziness and lambda lifting can
be cleanly separated.
This is done by means of a transformation involving let-expressions.
Lest it be supposed that we have simplified things in one way only
by complicating them in another, we also show that performing fully-lazy lambda
lifting without let(rec) expressions risks an unexpected loss of laziness.
Furthermore, much more efficient code can be generated for let(rec) expressions
in later phases of most compilers than for their equivalent lambda expressions.
\subsection{A review of full laziness}
We begin by briefly reviewing the concept of full laziness.
Consider again the example given earlier.
%in Section~\ref{lambda-lift}.
\begin{verbatim}
let
f = \x -> let g = \y -> x*x + y in (g 3 + g 4)
in
f 6
\end{verbatim}
The simple lambda lifter generates the program:
\begin{verbatim}
$g x y = x*x + y
f x = let g = $g x in (g 3 + g 4)
$main = f 6
\end{verbatim}
In the body of @f@ there are two calls to @g@ and hence to @$g@.
But @($g x)@ is not a reducible expression, so @x*x@ will
be computed twice. But @x@ is fixed in the body of @f@, so some work is being
duplicated. It would be better to share the calculation of @x*x@ between
the two calls to @$g@. This can be achieved as follows: instead of making @x@ a
parameter to @$g@, we make @x*x@ into a parameter, like this:
\begin{verbatim}
$g p y = p + y
f x = let g = $g (x*x) in (g 3 + g 4)
\end{verbatim}
(we omit the definition of @$main@ from now on, since it does not change).
So a fully-lazy lambda lifter will make each {\em maximal
free sub-expresssion} (rather than each {\em free variable})
of a lambda abstraction into an argument of the
corresponding supercombinator.
A maximal free expression (or MFE) of a lambda abstraction is an expression
which contains no occurrences of the variable bound by the abstraction, and is
not a sub-expression of a larger expression with this property.
Full laziness corresponds precisely to moving a loop-invariant
expression outside the loop, so that it is computed just once at the
beginning rather than once for each loop iteration.
How important is full laziness for ``real'' programs?
No serious studies have yet been made of this question, though we plan to
do so.
However, recent work by Holst
suggests that the importance of full laziness may be greater than
might at first be supposed.[.Holst improving full laziness.]
He shows how to perform a transformation which automatically enhances the
effect of full laziness, to the point where the optimisations obtained
compare favourably with those gained by partial
evaluation,[.mix jones sestoft.]
though with much less effort.
\subsection{Full-lazy lambda lifting in the presence of let(rec)s}
\label{fully-lazy-letrecs}
Writing a fully-lazy lambda lifter, as outlined in the previous section, is
somewhat subtle. Our language, which includes let(rec) expressions, appears
to make this worse by introducing a new language construct.
For example, suppose the definition of @g@ in our running example was slightly
more complex, thus:
\begin{verbatim}
g = \y -> let z = x*x
in let p = z*z
in p + y
\end{verbatim}
Now, the sub-expression @x*x@ is a MFE of the @\y@-abstraction,
but sub-expression @z*z@ is not since @z@ is bound inside the @\y@-abstraction.
Yet it is clear that @p@ depends only on @x@ (albeit indirectly), and so
we should ensure that @z*z@ should only be computed once.
Does a fully-lazy lambda lifter spot this if let-expressions are coded as
lambda applications? No, it does not. The definition of @g@ would become
\begin{verbatim}
g = \y -> (\z -> (\p -> p+y) (z*z)) (x*x)
\end{verbatim}
Now, @x*x@ is free as before, but @z*z@ is not. In other words, {\em
if the compiler does not treat let(rec)-expressions specially, it may
lose full laziness which the programmer might reasonably expect to
be preserved}.
Fortunately, there is a straightforward way to handle let(rec)-expressions,
as described by Peyton Jones,
namely to ``float'' each let(rec)
definition outward until it is outside any lambda abstraction in which
it is free.[.peyton book <, Chapter 15>.]
For example, all we need do is
transform the definition of @g@ to the following:
\begin{verbatim}
g = let z = x*x
in let p = z*z
in \y -> p + y
\end{verbatim}
Now @x*x@ and @z*z@ will each be computed only once.
Notice that this property should hold
{\em for any implementation of the language},
not merely for one based on lambda lifting and graph reduction.
This is a clue that full laziness and lambda lifting are not as closely related
as at first appears, a topic to which we will return in the next section.
Meanwhile, how can we decide how far out to float a definition?
It is most easily done by using
{\em lexical level numbers} (or {\em de Bruijn numbers}).
There are three steps:
\begin{itemize}
\item
First, assign to each lambda-bound variable a level number, which
says how many lambdas enclose it. Thus in our example,
@x@ would be assigned level number 1, and @y@ level number 2.
\item
Now, assign a level number to each let(rec)-bound variable (outermost first),
which is the maximum of the level numbers of its free variables, or zero
if there are none.
In our example, both @p@ and @z@ would be assigned level number 1.
Some care needs to be taken to handle letrecs correctly.
\item
Finally, float each definition (whose binder has level $n$, say)
outward, until it is outside
the lambda abstraction whose binder has level $n+1$, but still inside
the level-$n$ abstraction.
There is some freedom in this step about exactly where between the
two the definition should be placed.
\end{itemize}
Each mutually-recursive set of definitions defined in a letrec
should be floated out together,
because they depend on each other and must remain in a single letrec.
If, in fact, the definitions are {\em not} mutually recursive despite
appearing in the same letrec, this policy might lose laziness by
retaining in an inner scope a definition which could otherwise be
floated further outwards.
The standard solution is to perform {\em dependency analysis} on the definitions
in each letrec expression, to break each group of definitions into its
minimal subgroups. We take no further interest in this optimisation,
which is discussed in Chapter 6 of Peyton Jones.[.peyton book.]
Finally, a renaming pass should be carried out before the floating operation,
so that there is no risk that the bindings will be altered by the movement
of the let(rec) definitions. For example, the expression
\begin{verbatim}
\y -> let y = x*x in y
\end{verbatim}
is obviously not equivalent to
\begin{verbatim}
let y = x*x in \y->y
\end{verbatim}
All that is required is to give every binder a unique name to eliminate the
name clash.
\subsection{Full laziness without lambda lifting}
At first it appears that the requirement to float let(rec)s outward
in order to preserve full laziness merely further complicates the already
subtle fully lazy lambda lifting algorithm suggested by Hughes.
However, a simple transformation allows {\em all} the full laziness
to be achieved by let(rec) floating, while lambda lifting is performed
by the original simple lambda lifter.
The transformation is this: {\em before floating let(rec) definitions,
replace each MFE $e$ with the expression @let v = @$e$@ in v@}. This
transformation both gives a name to the MFE and makes it accessible to
the let(rec) floating transformation, which can now float out the new
definitions. Ordinary lambda lifting can then be performed.
For example, consider the original definition of @g@:
\begin{verbatim}
let
f = \x -> let g = \y -> x*x + y
in (g 3 + g 4)
in
f 6
\end{verbatim}
The subexpression @x*x@ is an MFE, so it
is replaced by a trivial let-expression:
\begin{verbatim}
let
f = \x -> let g = \y -> (let v = x*x in v) + y
in (g 3 + g 4)
in
f 6
\end{verbatim}
Now the let-expression is floated outward:
\begin{verbatim}
let
f = \x -> let g = let v = x*x in \y -> v + y
in (g 3 + g 4)
in
f 6
\end{verbatim}
Finally, ordinary lambda lifting will discover that @v@ is free in the
@\y@-expression, and the resulting program becomes:
\begin{verbatim}
$g v y = v + y
f x = let g = let v = x*x in $g v
in (g 3 + g 4)
$main = f 6
\end{verbatim}
A few points should be noted here.
Firstly, the original definition of a maximal free expression
was relative to a {\em particular} lambda abstraction.
The new algorithm we have just developed transforms certain expressions
into trivial let-expresssions.
Which expressions are so transformed? Just the ones which are MFEs of
{\em any} enclosing lambda abstraction. For example, in the expression:
\begin{verbatim}
\y -> \z -> (y + (x*x)) / z
\end{verbatim}
two MFEs are identified: @(x*x)@, since it is an MFE of the @\y@-abstraction,
and @(y + (x*x))@, since it is an MFE of the @\z@-abstraction.
After introducing the trivial let-bindings, the expression becomes
\begin{verbatim}
\y -> \z -> (let v1 = y + (let v2 = x*x in v2) in v1) / z
\end{verbatim}
Secondly, the
newly-introduced variable @v@ must either be unique, or the expression
must be uniquely renamed after the MFE-identification pass.
Thirdly, in the final form of the program @v@ is only referenced once,
so it would be sensible to replace the reference by the right-hand-side
of the definition and eliminate the definition, yielding exactly the
program we obtained using Hughes's algorithm. This is a straightforward
transformation, and we will not discuss it further here, except to note that
this property will hold
for all let-definitions which are floated out past a lambda.
In any case, many compiler back ends will generate the same code
regardless of whether or not the transformation is performed.
\subsection{A fully lazy lambda lifter}
Now we are ready to define the fully lazy lambda lifter. It can be decomposed
into the following stages:
\begin{itemize}
\item
First we must make sure that all @ELam@ constructors bind only a single
variable, because the fully-lazy lambda lifter must treat each lambda
individually.
It would be possible to encode this in later phases of the algorithm,
by dealing with a list of arguments, but it turns out that we can
express an important optimisation by altering this pass alone.
> separateLams :: Expression -> Expression
\item
First we annotate all binders and expressions with level numbers, which
we represent by natural numbers starting with zero:
> type Level = Int
> addLevels :: Expression -> AnnExpr (Name, Level) Level
\item
Next we identify all MFEs, by replacing them with trivial let-expressions.
Level numbers are no longer required on every sub-expression, only on
binders.
> identifyMFEs :: AnnExpr (Name, Level) Level -> Expr (Name, Level)
\item
A renaming pass makes all binders unique, so that floating does not
cause name-capture errors. This must be done after @identifyMFEs@, which
introduces new bindings.
> rename :: Expr (Name, a) -> Expr (Name, a)
\item
Now the let(rec) definitions can be floated outwards. The level numbers
are not required any further.
> float :: Expr (Name, Level) -> Expression
\item
Finally, ordinary lambda lifting can be carried out, using @lambdaLift@ from
% Section~\ref{simple-lambdalift}.
the section dealing with simple lambda lifting.
\end{itemize}
The fully lazy lambda lifter is just the composition of these passes:
> fullyLazyLift = lambdaLift . float . rename .
> identifyMFEs . addLevels . separateLams
\subsection{Separating the lambdas}
\label{separatelams}
The first pass, which separates lambdas so that each @ELam@ only
binds a single argument,
is completely straightforward.
The only interesting equation
is that which handles abstractions, which we give here:
1> separateLams (ELam args body) = foldr mkLam (separateLams body) args
1> where
1> mkLam arg body = ELam [arg] body
The other equations are given in the Appendix.
\subsection{Adding level numbers}
\label{levels}
There are a couple of complications concerning annotating an expression
with level-numbers.
At first it looks as though it is sufficient to write a function which
returns an expresssion annotated with level numbers; then for an
application, for example, one simply takes the maximum of the levels
of the two sub-expressions. Unfortunately, this approach loses too
much information, because there is no way of mapping the level-number
of the {\em body} of a lambda abstraction to the level number of the
abstraction {\em itself}. The easiest solution is first to annotate
the expression with its free variables, and then use a mapping
@freeSetToLevel@ from variables to level-numbers, to convert the
free-variable annotations to level numbers.
> freeSetToLevel :: Set Name -> Assn Name Level -> Level
> freeSetToLevel free_vars env =
> maximum (0 : map (assLookup env) (setToList free_vars))
> -- If there are no free variables, return level zero
The second complication concerns letrec expressions.
What is the correct level number to attribute to the newly-introduced variables?
The right thing to do is to take the maximum of the levels of the
free variables of all the
right-hand sides {\em without} the recursive variables, or equivalently
map the recursive variables to level zero when taking this maximum.
This level should be attributed to each of the new variables.
Let-expressions are much simpler: just attribute to each new variable the
level number of its right-hand side.
Now we are ready to define @addLevels@. It is the composition of two
passes, the first of which annotates the expression with its free variables,
while the second uses this information to generate level-number annotations.
> addLevels = freeToLevel . freeVars
We have defined the @freeVars@ function already, so it remains to
define @freeToLevel@. The main function will need to carry around the
current level, and a
mapping from variables to level numbers, so as usual we define @freeToLevel@
in terms of @freeToLevel_e@ which does all the work.
> freeToLevel_e :: Level -- Level of context
> -> Assn Name Level -- Level of in-scope names
> -> AnnExpr Name (Set Name) -- Input expression
> -> AnnExpr (Name, Level) Level -- Result expression
> freeToLevel e = freeToLevel_e 0 [] e
We represent the name-to-level mapping as an association list, with type
@Assn Name Level@. The interface of association lists is given in
the Appendix%
% ~\ref{utilities}%
.
but notice that it is {\em not} abstract. It is so convenient
to use all the standard functions on lists, and notation for lists,
rather than to invent their
analogues for associations, that we have compromised the abstraction.
For constants, variables and applications, it is simpler and more efficient
to ignore the free-variable information and calculate the level number
directly.
> freeToLevel_e level env (_, AConst k) = (0, AConst k)
> freeToLevel_e level env (_, AVar v) = (assLookup env v, AVar v)
> freeToLevel_e level env (_, AAp e1 e2) =
> (max (levelOf e1') (levelOf e2'), AAp e1' e2')
> where
> e1' = freeToLevel_e level env e1
> e2' = freeToLevel_e level env e2
This cannot be done for lambda abstractions, so we compute the level
number of the abstraction using @freeSetToLevel@.
We also assign a level number to each variable
in the argument list. At present we expect there to be only one such
variable, but
we will allow there to be several and assign them all the same level number.
This works correctly now, and turns out to be just what is needed to support
a useful optimisation later%
%(Section~\ref{redundant})%
.
> freeToLevel_e level env (free, ALam args body) =
> (freeSetToLevel free env, ALam args' body')
> where
> body' = freeToLevel_e (level + 1) (args' ++ env) body
> args' = zip args (repeat (level+1))
Let(rec)-expressions follow the scheme outlined at the beginning of this
section.
> freeToLevel_e level env (free, ALet isRec defns body) =
> (levelOf body', ALet isRec defns' body')
> where
> binders = bindersOf defns
> freeRhsVars = setUnionList [free | (free, _) <- rhssOf defns]
> maxRhsLevel = freeSetToLevel freeRhsVars
> ([(name,0) | name <- binders] ++ env)
> defns' = map freeToLevel_d defns
> body' = freeToLevel_e level (bindersOf defns' ++ env) body
>
> freeToLevel_d (name, rhs) = ((name, levelOf rhs'), rhs')
> where rhs' = freeToLevel_e level envRhs rhs
> envRhs | isRec = [(name,maxRhsLevel) | name <- binders] ++ env
> | not isRec = env
Notice that the level of the whole let(rec) expression is that of the body.
This is valid provided the body refers to all the binders directly or
indirectly. If any definition is unused, we might assign a level number
to the letrec which would cause it to be floated outside the scope of some
variable mentioned in the unused definition. This is easily fixed, but
it is simpler to assume that the expression contains no redundant
definitions\footnote{%
The dependency analysis phase referred to earlier could
eliminate such definitions.}.
Finally the auxillary function @levelOf@ extracts the level from an
expression:
> levelOf :: AnnExpr a Level -> Level
> levelOf (level, e) = level
\subsection{Identifying MFEs}
\label{identifyMFEs}
It is simple to identify MFEs, by comparing the level number of an
expression with the level of its context.
This requires an auxiliary
parameter to give the level of the context.
%
%> float = error "help"
%> identifyMFEs = error "help"
%
%> {-
%
> identifyMFEs_e :: Level -> AnnExpr (Name, Level) Level -> Expr (Name, Level)
> identifyMFEs e = identifyMFEs_e 0 e
Once an MFE $e$ has been identified, our strategy is to wrap it in a
trivial let-expression of the form $@let v = @e@ in v@$; but not all
MFEs deserve special treatment in this way. For example, it would be
a waste of time to wrap such a let-expression around an MFE consisting
of a single variable or constant. Other examples are given below, in
the section on redundant full laziness.
%Section~\ref{redundant}.
We encode this knowledge of which MFEs
deserve special treatment in a function @notMFECandidate@.
> notMFECandidate (AConst k) = True
> notMFECandidate (AVar v) = True
> notMFECandidate _ = False -- For now, everything else is a candidate
@identifyMFEs_e@ works by comparing the level number of the expression with
that of its context. If they are the same, or for some other reason the
expression is not a candidate for special treatment, the expression is left
unchanged, except that @identifyMFEs_e1@ is used to apply @identifyMFEs_e@
to its subexpressions; otherwise we use @transformMFE@ to perform the
appropriate transformation.
> identifyMFEs_e cxt (level, e) =
> if (level == cxt || notMFECandidate e)
> then e'
> else transformMFE level e'
> where
> e' = identifyMFEs_e1 level e
> transformMFE level e = ELet nonRecursive [(("v",level), e)] (EVar "v")
@identifyMFEs_e1@ applies @identifyMFEs_e@ to the components of the expression.
Its definition is straightforward, and is given in the Appendix%
%~\ref{omitted}%
.
\subsection{Renaming and floating}
\label{rename}
\label{float}
The renaming pass is entirely straightforward, involving plumbing
a name supply in a similar manner to @collectSCs@.
The final pass, which floats let(rec) expressions out to the appropriate
level, is also fairly easy.
Complete definitions for @rename@ and @float@ are given in
the Appendix%
%~\ref{omitted}%
.
\section{Avoiding redundant full laziness}
\label{redundant}
Full laziness does not come for free. It has two main negative effects:
\begin{itemize}
\item
Multiple lambda abstractions, such as @\x->\y->E@ turn into one
supercombinator under the simple scheme, but two under the fully lazy
scheme. Two reductions instead of one are therefore required to apply it
to two arguments, which may well be more expensive.
\item
Lifting out MFEs removes subexpressions from their context, and thereby
reduces opportunities for a compiler to perform optimisations. Such
optimisations might be partially restored by an interprocedural analysis
which figured out the contexts again, but it is better still to avoid
creating the problem.
\end{itemize}
These points are elaborated by Fairbairn [.fairbairn redundant.]
and Goldberg.[.goldberg thesis.]
Furthermore, they point out that often no benefit arises from
lifting out {\em every} MFE from
{\em every} lambda abstraction. In particular,
\begin{itemize}
\item
If no partial applications of a multiple abstraction can be shared, then
nothing is gained by floating MFEs out to {\em between} the
nested abstractions.
\item
Very little is gained by lifting out an MFE that is not a
reducible expression.
No work is shared thereby, though there may be some saving in storage
because the closure need only be constructed once.
This is more than outweighed by the loss of compiler optimisations
caused by removing the expression from its context.
\item
Lifting out an MFE which is a constant expression (ie level 0),
thereby adding an extra parameter
to pass in, is inefficient. It would be better to make the constant
expression into a supercombinator.
\end{itemize}
These observations suggest some improvements to the fully lazy lambda
lifter, and they turn out to be quite easy to incorporate:
\begin{itemize}
\item
If a multiple abstraction is {\em not} separated into separate @ELam@
constructors by the @separateLam@ pass, then all the variables bound by
it will be given the {\em same} level number. It follows that no MFE
will be identified which is free in the inner abstraction but not the
outer one. This ensures that no MFEs will be floated out to between
two abstractions represented by a single @ELam@ constructor.
All that is required is to modify the @separateLams@ pass to keep in
a single @ELam@ constructor each multiple abstraction of which partial
applications cannot be shared. This sharing information is not trivial
to deduce, but at least we have an elegant way to use its results
by modifying only a small part of our algorithm.
This is one reason why we chose to allow @ELam@ constructors to
take a list of binders.
\item
@identifyMFEs@ uses a predicate @notMFECandidate@ to decide whether to
identify a particular subexpression as an MFE. This provides a convenient
place to add extra conditions to exclude from consideration expressions
which are not redexes.
This condition, too, is undecidable in general, but a good approximation
can be made in many cases; for example @(+ 3)@ is obviously not a redex.
\item
When identifying MFEs it is easy to spot those that are constant expressions,
because their level numbers are zero.
We can rather neatly ensure that it is turned
into a supercombinator by the subsequent
lambda-lifting pass,
by making it into a lambda abstraction {\em with an empty
argument list}.
This was the other reason why we decided to make the @ELam@ constructor take
a list of arguments.
The modification affects only @identifyMFEs_e@, thus:
1> identifyMFEs_e cxt (level, e) =
1> if (level == cxt || notMFECandidate e) then
1> e'
1> else if (level > 0) then
1> ELet nonRecursive [(("v",level), e')] (EVar "v")
1> else
1> ELam [] e'
1> where
1> e' = identifyMFEs_e1 level e
\end{itemize}
\section{Retrospective and comparison with other work}
It is interesting to compare our approach with Bird's
very nice paper
[.bird supercombinator compiler.] which addresses a similar problem.
Bird's objective is to give a formal development of an efficient
fully lazy lambda lifter, by successive transformation of an initial
specification.
The resulting algorithm is rather complex, and would be hard to write
down directly, thus fully justifying the effort of a formal development.
In contrast, we have expressed our algorithm as a
composition of a number of very simple phases, each of which can readily
be specified and
written down directly. The resulting program has a constant-factor
inefficiency, because it makes many traversals of the expression.
This is easily removed by folding together successive passes into
a single function, eliminating the intermediate data structure.
Unlike Bird's transformations, this is a straightforward process.
Our approach has the major advantage that is is {\em modular}.
This allows changes to be made more easily.
For example,
it would be a simple matter to replace the lambda lifter with one which
performed lambda-lifting in the way suggested by Johnsson
,[.johnsson lambda lifting.]
whereas doing the same for Bird's algorithm would be
a major exercise. Similarly, it proved rather easy to modify the
algorithm to be more selective about where full laziness is introduced%
%(Section \ref{redundant})%
.
The main disadvantage of our approach is that we are unable to take
advantage of one optimisation suggested by Hughes, namely ordering the
parameters to a supercombinator to reduce the number of MFEs.
The reason for this is that the optimisation absolutely requires that
lambda lifting be entwined with the process of MFE identification, while
we have carefully separated these activities!
Happily for us, the larger MFEs created by this optimisation
are always partial applications, which should probably {\em not} be
identified as MFEs because no work is shared thereby%
% (Section \ref{redundant})%
.
Even so, matters might not have fallen out so fortuitously, and
our separation of concerns has certainly made some sorts of transformation
rather difficult.
\section*{Acknowledgements}
We owe our thanks to John Robson and Kevin Hammond, and two anonymous
referees for their useful comments on a draft of this paper.
\section*{References}
.[]
\pagebreak % Prevents last reference from becoming detached
\appendix
\section{Appendix: Omitted code}
\label{omitted}
This appendix contains the definitions of functions omitted from the
main paper.
\subsection{@abstract@}
We begin with the function @abstract@.
% from Section~\ref{abstract}%
> abstract (_, AConst k) = EConst k
> abstract (_, AVar v) = EVar v
> abstract (_, AAp e1 e2) = EAp (abstract e1) (abstract e2)
> abstract (free, ALam args body) =
> foldl EAp sc (map EVar fvList)
> where
> fvList = setToList free
> sc = ELam (fvList ++ args) (abstract body)
> abstract (_, ALet isRec defns body) =
> ELet isRec [(name, abstract body) | (name, body) <- defns] (abstract body)
\subsection{@separateLams@}
Next comes the code for @separateLams@.
%from Section~\ref{separatelams}%
> separateLams (EConst k) = EConst k
> separateLams (EVar v) = EVar v
> separateLams (EAp e1 e2) = EAp (separateLams e1) (separateLams e2)
> separateLams (ELam args body) = foldr mkLam (separateLams body) args
> where
> mkLam arg body = ELam [arg] body
> separateLams (ELet isRec defns body) =
> ELet isRec [(name, separateLams rhs) | (name,rhs) <- defns]
> (separateLams body)
\subsection{@identifyMFEs_e1@}
@identifyMFEs_e1@ applies @identifyMFEs_e@ to the components of the expresion.
%(see Section~\ref{identifyMFEs})%
> identifyMFEs_e1 :: Level -> AnnExpr' (Name, Level) Level -> Expr (Name, Level)
> identifyMFEs_e1 level (AConst k) = EConst k
> identifyMFEs_e1 level (AVar v) = EVar v
> identifyMFEs_e1 level (AAp e1 e2) =
> EAp (identifyMFEs_e level e1) (identifyMFEs_e level e2)
When it encounters a binder it changes the ``context'' level
number carried down as its first argument.
> identifyMFEs_e1 level (ALam args body) =
> ELam args (identifyMFEs_e argLevel body)
> where
> (_, argLevel) = head args
>
> identifyMFEs_e1 level (ALet isRec defns body) =
> ELet isRec defns' body'
> where
> body' = identifyMFEs_e level body
> defns' = [ ((name,rhsLevel),identifyMFEs_e rhsLevel rhs)
> | ((name,rhsLevel),rhs) <- defns]
\subsection{@rename@}
The function @rename@ gives unique names
to the variables in an expression.
% from Section~\ref{rename}.
We need an auxiliary function @rename_e@ to do all
the work:
> rename e = e' where (_, e') = rename_e [] initialNameSupply e
> rename_e :: Assn Name Name -> NameSupply -> Expr (Name,a)
> -> (NameSupply, Expr (Name,a))
> rename_e env ns (EConst k) = (ns, EConst k)
> rename_e env ns (EVar v) = (ns, EVar (assLookup env v))
> rename_e env ns (EAp e1 e2) =
> (ns2, EAp e1' e2')
> where
> (ns1, e1') = rename_e env ns e1
> (ns2, e2') = rename_e env ns1 e2
> rename_e env ns (ELam args body) =
> (ns1, ELam args' body')
> where
> (ns1, args') = mapAccuml newBinder ns args
> (ns2, body') = rename_e (assocBinders args args' ++ env) ns1 body
> rename_e env ns (ELet isRec defns body) =
> (ns3, ELet isRec (zip binders' rhss') body')
> where
> (ns1, body') = rename_e env' ns body
> binders = bindersOf defns
> (ns2, binders') = mapAccuml newBinder ns1 binders
> env' = assocBinders binders binders' ++ env
> (ns3, rhss') = mapAccuml (rename_e rhsEnv) ns2 (rhssOf defns)
> rhsEnv | isRec = env'
> | not isRec = env
@newBinder@ is just like @newName@, but works over @(Name,a)@ binders.
> newBinder ns (name, info) =
> (ns1, (name', info)) where (ns1, name') = newName ns name
@assocBinders@ builds an assocation list between the names inside two lists
of @(Name,a)@ binders.
> assocBinders :: [(Name,a)] -> [(Name,a)] -> Assn Name Name
> assocBinders binders binders' = zip (map fst binders) (map fst binders')
\subsection{@float@}
The final pass floats let(rec) expressions out to the appropriate level%
% (Section~\ref{float})%
.
The main function has to return an expression together with a
list of definitions which should be floated outside the expression.
> float_e :: Expr (Name, Level) -> (FloatedDefns, Expression)
The top-level function @float@ uses @float_e@ to do the main work, but
if any definitions are floated out to the top level, @float@ had better
install them at this level, thus:
> float e = install floatedDefns e' where (floatedDefns, e') = float_e e
There are many possible representations for the @FloatedDefns@ type, and
we will choose a simple one, by representing the definitions being floated
as a list, each element of which represents a group of definitions,
identified by its level, and together with its @IsRec@ flag.
> type FloatedDefns = [(Level, IsRec, [Defn Name])]
Since the definitions in the list may depend on one another, we add the
following constraint: a definition group may depend only on
definition groups appearing {\em earlier} in the @FloatedDefns@ list.
It is now possible to define @install@, which wraps an expression
in a nested set of let(rec)s containing the specified definitions.
> install :: FloatedDefns -> Expression -> Expression
> install defnGroups e =
> foldr installGroup e defnGroups
> where
> installGroup (level, isRec, defns) e = ELet isRec defns e
We can now proceed to a definition of @float_e@. The cases for
variables, constants and applications are straightforward.
> float_e (EConst k) = ([], EConst k)
> float_e (EVar v) = ([], EVar v)
> float_e (EAp e1 e2) = (fd1 ++ fd2, EAp e1' e2')
> where
> (fd1, e1') = float_e e1
> (fd2, e2') = float_e e2
How far out should a definition be floated? There is more than
one possible choice, but here we choose to install a definition
just inside the innermost lambda which binds one its
free variables\footnote{
Recall
%from Section~\ref{levels}
that all variables bound by a single
@ELam@ construct are given the same level.}.
> float_e (ELam args body) =
> (outerLevelDefns, ELam args' (install thisLevelDefns body'))
> where
> args' = [arg | (arg,level) <- args]
> (_,thisLevel) = head args -- Extract level of abstraction
> (floatedDefns, body') = float_e body
> thisLevelDefns = filter groupIsThisLevel floatedDefns
> outerLevelDefns = filter (not.groupIsThisLevel) floatedDefns
> groupIsThisLevel (level,isRec,defns) = level >= thisLevel
The case for a let(rec) expression adds its definition group
to those
floated out from its body, and from its right-hand sides.
The latter must come first, since the new definition group may depend on them.
> float_e (ELet isRec defns body) =
> (rhsFloatDefns ++ [thisGroup] ++ bodyFloatDefns, body')
> where
> (bodyFloatDefns, body') = float_e body
> (rhsFloatDefns, defns') = mapAccuml float_defn [] defns
> thisGroup = (thisLevel, isRec, defns')
> (_,thisLevel) = head (bindersOf defns)
>
> float_defn floatedDefns ((name,level), rhs) =
> (rhsFloatDefns ++ floatedDefns, (name, rhs'))
> where
> (rhsFloatDefns, rhs') = float_e rhs
\subsection{@mapAccuml@}
Finally, here is the full definition of utility function @mapAccuml@.
% introduced in Section~\ref{mapaccum}
1> mapAccuml :: (b -> a -> (b, c)) -- Function of element of input list
1> -- and accumulator, returning new
1> -- accumulator and element of result list
1> -> b -- Initial accumulator
1> -> [a] -- Input list
1> -> (b, [c]) -- Final accumulator and result list
1>
1> mapAccuml f b [] = (b, [])
1> mapAccuml f b (x:xs) = (b2, x':xs') where (b1, x') = f b x
1> (b2, xs') = mapAccuml f b1 xs
%> readExpr :: Text a => String -> Expr a
%> readExpr s = read s
\section{Appendix: Interface to @Utilities@ module}
\label{utilities}
This is the text of the @interface@ for the @Utilities@ module.
This interface is imported by the
line @import Utilities@ in the @LambdaLift@ module.
The interface can be deduced by the compiler from the text of the
@Utilities@ module; indeed the interface below is exactly that produced
by the compiler, modulo some reordering and comments.
The first line introduces and names the interface.
1> interface Utilities where
Next we have declarations for the @Set@ type. Notice that
the data type @Set@ is given with an abbreviated @data@ declaration,
which omits the constructor(s). This makes the @Set@ type {\em abstract}
since the importing module can only build sets and take them apart using
the functions provided in the interface.
1> data Set a
1> setDifference :: (Ord a) => (Set a) -> (Set a) -> Set a
1> setIntersect :: (Ord a) => (Set a) -> (Set a) -> Set a
1> setUnion :: (Ord a) => (Set a) -> (Set a) -> Set a
1> setUnionList :: (Ord a) => [Set a] -> Set a
1> setToList :: (Set a) -> [a]
1> setSingleton :: a -> Set a
1> setEmpty :: Set a
1> setFromList :: (Ord a) => [a] -> Set a
Bags, association lists and the name supply follow similarly.
Notice that association lists are declared with a type synonym, so they
are not abstract.
1> data Bag a
1> bagUnion :: (Bag a) -> (Bag a) -> Bag a
1> bagInsert :: a -> (Bag a) -> Bag a
1> bagToList :: (Bag a) -> [a]
1> bagFromList :: [a] -> Bag a
1> bagSingleton :: a -> Bag a
1> bagEmpty :: Bag a
1> type Assn a b = [(a, b)]
1> assLookup :: (Eq a) => [(a, b)] -> a -> b
1> data NameSupply
1> initialNameSupply :: NameSupply
1> newName :: NameSupply -> [Char] -> (NameSupply, [Char])
\end{document}
|
#!/usr/bin/awk -f
# Author: Vladimir Dinev
# vld.dinev@gmail.com
# 2021-06-05
# <script>
function SCRIPT_NAME() {return "rdpg-opt.awk"}
function SCRIPT_VERSION() {return "1.1"}
# </script>
# <input>
function INPUT_SEP() {return "\n"}
function func_new(fname) {_B_fnames[++_B_fnames_count] = fname}
function func_get_count() {return _B_fnames_count}
function func_get_name(n) {return _B_fnames[n]}
function func_get_code(fname) {return _B_functions[fname]}
function func_split(fcode, arr_out) {return split(fcode, arr_out, INPUT_SEP())}
function func_rewrite_full(fname, code) {_B_functions[fname] = code}
function func_remove(fname) {delete _B_functions[fname]}
function func_write_line(fname, str) {
sub("^[[:space:]]+", "", str)
str = (str INPUT_SEP())
_B_functions[fname] = (_B_functions[fname] str)
}
function arr_to_str(arr, len, sep, _i, _ret, _str) {
if (!sep)
sep = INPUT_SEP()
for (_i = 1; _i <= len; ++_i) {
_str = arr[_i]
if (_str)
_ret = (_ret _str sep)
}
return _ret
}
# </input>
# <output>
function tabs_inc() {++_B_tabs}
function tabs_dec() {--_B_tabs}
function tabs_out( _i) {
for (_i = 1; _i <= _B_tabs; ++_i)
printf("\t")
}
function emit_comment(str) {print sprintf("%s %s", IR_COMMENT(), str)}
function print_out( _i, _end, _arr, _len, _j) {
emit_comment(sprintf("optimized by %s %s %s=%d",
SCRIPT_NAME(), SCRIPT_VERSION(), "Olvl", Olvl))
_end = func_get_count()
for (_i = 1; _i <= _end; ++_i) {
_len = split(func_get_code(func_get_name(_i)), _arr, INPUT_SEP())
for (_j = 1; _j <= _len; ++_j)
line_out(_arr[_j])
}
}
function line_out(str) {
if (!str)
return
if (match(str, IR_COMMENT())) {
print str
return
}
if (match(str, IR_BLOCK_CLOSE()))
tabs_dec()
tabs_out()
print str
if (match(str, IR_BLOCK_OPEN()))
tabs_inc()
}
function print_stderr(msg) {print msg > "/dev/stderr"}
function error_raise() {_B_error = 1}
function error_happened() {return _B_error}
function error(msg) {
print_stderr(sprintf("%s: error: %s", SCRIPT_NAME(), msg))
error_raise()
exit(1)
}
function skip_end_set() {_B_dont_end = 1}
function skip_end_get() {return _B_dont_end}
function exit_skip_end() {
skip_end_set()
exit(0)
}
# <user_messages>
function RDPG_IR() {return "rdpg_ir.awk"}
function use_str() {
return sprintf("Use: awk -f %s -f %s <input-file>",
RDPG_IR(), SCRIPT_NAME())
}
function print_version() {
print sprintf("%s %s", SCRIPT_NAME(), SCRIPT_VERSION())
exit_skip_end()
}
function RDPG() {return "rdpg"}
function print_help() {
print sprintf("--- %s %s ---", SCRIPT_NAME(), SCRIPT_VERSION())
print sprintf("The %s optimizer.", RDPG())
print ""
print "Use:"
print sprintf("... | awk -f %s -f %s [opts...]", RDPG_IR(), SCRIPT_NAME())
print ""
print "Options:"
print sprintf("-vOlvl=<num> - optimization level; range is %d - %d",
olvl_min(), olvl_max())
print "-vInlineLength=<num> - functions with > <num> number of lines won't inline"
print "-vHelp=1 - print this screen"
print "-vVersion=1 - print version"
print ""
print "Five levels of optimization are supported, excluding level 0:"
print "0 - no optimization. Prints a warning to stderr."
print "1 - if-else return optimization. Translates"
print "'if (foo()) {return true} else {return false}' to 'return foo()',"
print "'if (foo()) {return true} else {return true}' to 'foo(); return true'"
print "2 - redundant else removal. Translates"
print "'if (foo()) {if (bar()) {...} else {return false}} else {return false}' to"
print "'if (foo()) {if (bar()) {...}}; return false'"
print "3 - remove unreachable code. Translates"
print "'if (foo()) {... return <value> ...}' to"
print "'if (foo()) {... return <value>}'"
print "4 - tail call optimization. Translates"
print "'foo() {... {return foo()} ... {return foo()}}' to"
print "'foo() {while (1) {... continue ... continue}}'"
print "5 - inline functions no longer than InlineLength number of lines. " _INLINE_DEFAULT_FLENGTH()
print "by default. Translates"
print "'bar() {<bar-code>} foo() {... {return bar()} ...}' to"
print "'foo() {... {<bar-code>} ...}'"
exit_skip_end()
}
# </user_messages>
# </output>
# <awk_rules>
FNR == 1 && $1 == IR_COMMENT() {print $0}
$1 == IR_FUNC() {func_new($2)}
function current_func() {return func_get_name(func_get_count())}
{func_write_line(current_func(), $0)}
function init() {
if (Help)
print_help()
if (Version)
print_version()
if (InlineLength)
inline_set_limit(InlineLength)
Olvl = (Olvl) ? Olvl : ""
}
BEGIN {
init()
}
function olvl_min() {return 0}
function olvl_max() {return 5}
END {
if (!skip_end_get()) {
if (!Olvl)
print_stderr(sprintf("%s: warning: no Olvl", SCRIPT_NAME()))
else if (Olvl < olvl_min() || Olvl > olvl_max()) {
error(sprintf("bad Olvl value '%d'; range is %d to %d",
Olvl, olvl_min(), olvl_max()))
}
if (!error_happened()) {
optimize(Olvl)
print_out()
}
}
}
# </awk_rules>
# <misc>
function is(a, b) {return (a == b)}
function get_field(str, n, _arr) {
split(str, _arr)
return _arr[n]
}
function get_first_field(str) {
return get_field(str, 1)
}
function is_if(str) {return is(IR_IF(), get_first_field(str))}
function is_else(str) {return is(IR_ELSE(), get_first_field(str))}
function is_else_if(str) {return is(IR_ELSE_IF(), get_first_field(str))}
function is_return(str) {return is(IR_RETURN(), get_first_field(str))}
function is_return_const(str, _rval) {
if (is_return(str)) {
_rval = get_field(str, 2)
return (IR_TRUE() == _rval || IR_FALSE() == _rval)
}
return 0
}
function is_block_open(str) {return is(IR_BLOCK_OPEN(), get_first_field(str))}
function is_block_close(str) {return is(IR_BLOCK_CLOSE(), get_first_field(str))}
function is_func_end(str) {return is(IR_FUNC_END(), get_first_field(str))}
function is_func(str) {return is(IR_FUNC(), get_first_field(str))}
function is_comment(str) {return is(IR_COMMENT(), get_first_field(str))}
# </misc>
# <code_search>
function get_func_end(arr, len, _i) {
for (_i = 1; _i <= len; ++_i) {
if (is_func_end(arr[_i]))
return _i
}
return 0
}
function get_prev_f1(arr, len, start, what, _i) {
for (_i = start; _i >= 1; --_i) {
if (is(what, get_first_field(arr[_i])))
return _i
}
return 0
}
function get_next(arr, len, start, what, _i) {
for (_i = start; _i <= len; ++_i) {
if (is(what, arr[_i]))
return _i
}
return 0
}
function get_last_return(arr, len, _i) {
_i = get_func_end(arr, len)
return get_prev_f1(arr, len, _i, IR_RETURN())
}
function get_block_open_up(arr, len, start, _i) {
return get_prev_f1(arr, len, start, IR_BLOCK_OPEN())
}
# </code_search>
# <if_call_returns_only>
function if_call_ret_call(fname) {
return sprintf("%s %s %s", IR_RETURN(), IR_CALL(), fname)
}
function if_call_call(fname) {
return sprintf("%s %s", IR_CALL(), fname)
}
function if_call_ret(ret_val) {
return sprintf("%s %s", IR_RETURN(), ret_val)
}
function if_call_return_only_do_else_if(arr, len, where,
_step, _r1, _r2, _called, _str) {
if (!_step)
_step = 1
_str = arr[where]
if (is(1, _step) && is_else_if(_str)) {
_step = 2
_called = get_field(_str, 3)
} else if (is(2, _step) && is_block_open(_str)) {
_step = 3
} else if (is(3, _step) && is_return_const(_str)) {
_step = 4
_r1 = get_field(_str, 2)
} else if (is(4, _step) && is_block_close(_str)) {
_step = 5
} else if (is(5, _step) && is_else(_str)) {
_step = 6
} else if (is(6, _step) && is_block_open(_str)) {
_step = 7
} else if (is(7, _step) && is_return_const(_str)) {
_step = 8
_r2 = get_field(_str, 2)
} else if (is(8, _step) && is_block_close(_str)) {
arr[where-7] = IR_ELSE()
#arr[where-6] = "" # block_open
arr[where-5] = ""
arr[where-3] = arr[where-4] # block_close
arr[where-4] = ""
arr[where-2] = ""
arr[where-1] = ""
arr[where] = ""
if (is(IR_TRUE(), _r1) && is(IR_FALSE(), _r2)) {
arr[where-5] = if_call_ret_call(_called)
} else {
arr[where-5] = if_call_call(_called)
arr[where-4] = if_call_ret(_r1)
}
return
} else {
return
}
if_call_return_only_do_else_if(arr, len, where+1, _step, _r1, _r2, _called)
}
function if_call_return_only_do_if(arr, len, where,
_step, _r1, _r2, _called, _str) {
if (!_step)
_step = 1
_str = arr[where]
if (is(1, _step) && is_if(_str)) {
_step = 2
_called = get_field(_str, 3)
} else if (is(2, _step) && is_block_open(_str)) {
_step = 3
} else if (is(3, _step) && is_return_const(_str)) {
_step = 4
_r1 = get_field(_str, 2)
} else if (is(4, _step) && is_block_close(_str)) {
_step = 5
} else if (is(5, _step) && is_else(_str)) {
_step = 6
} else if (is(6, _step) && is_block_open(_str)) {
_step = 7
} else if (is(7, _step) && is_return_const(_str)) {
_step = 8
_r2 = get_field(_str, 2)
} else if (is(8, _step) && is_block_close(_str)) {
_step = 0
arr[where-7] = ""
arr[where-6] = ""
arr[where-5] = ""
arr[where-4] = ""
arr[where-3] = ""
arr[where-2] = ""
arr[where-1] = ""
arr[where] = ""
if (is(IR_TRUE(), _r1) && is(IR_FALSE(), _r2)) {
arr[where-7] = if_call_ret_call(_called)
} else {
arr[where-7] = if_call_call(_called)
arr[where-6] = if_call_ret(_r1)
}
return
} else {
return
}
if_call_return_only_do_if(arr, len, where+1, _step, _r1, _r2, _called)
}
function if_call_returns_only(arr, len, _i) {
# if (foo()) {return true} else {return false}
# becomes
# return foo()
#
# if (foo()) {return true} else {return true}
# becomes
# foo()
# return true
#
# else if (foo()) {return true} else {return false}
# becomes
# else { return foo() }
# etc.
for (_i = 1; _i <= len; ++_i) {
if_call_return_only_do_if(arr, len, _i)
if_call_return_only_do_else_if(arr, len, _i)
}
}
# </if_call_returns_only>
# <drop_redundant_else>
function drop_redundant_else_remove_empty_elses(arr, where, _step, _str) {
if (!_step)
_step = 1
_str = arr[where]
if (is(1, _step) && is_else(_str)) {
_step = 2
} else if (is(2, _step) && is_block_open(_str)) {
_step = 3
} else if (is(3, _step) && is_block_close(_str)) {
arr[where] = arr[where-1] = arr[where-2] = ""
return
} else {
return
}
drop_redundant_else_remove_empty_elses(arr, where+1, _step)
}
function drop_redundant_else_swap_remove_returns(arr, len, where, ret,
_step, _str, _i) {
if (!_step)
_step = 1
_str = arr[where]
if (is(1, _step) && is_else(_str)) {
_step = 2
} else if (is(2, _step) && is_block_open(_str)) {
_i = get_next(arr, len, where,
sprintf("%s %s", IR_BLOCK_CLOSE(), get_field(_str, 2)))
_str = arr[_i-1]
if (is_return_const(_str) && is(ret, get_field(_str, 2))) {
arr[_i-1] = arr[_i]
arr[_i] = ""
}
return
} else {
return
}
drop_redundant_else_swap_remove_returns(arr, len, where+1, ret, _step)
}
function drop_redundant_else_swap_out_last_ret(arr, ret_pos, _str) {
if (is_block_close(arr[ret_pos+1])) {
_str = arr[ret_pos]
arr[ret_pos] = arr[ret_pos+1]
arr[ret_pos+1] = _str
}
}
function drop_redundant_else(arr, len, _i, _ret, _has_else) {
# if (foo())
# if (bar())
# return true
# else
# return false
# else
# return false
# becomes
# if (foo())
# if(bar())
# return true
# return false
# there actually needs to be an else
for (_i = 1; _i <= len; ++_i) {
if (is_else(arr[_i])) {
_has_else = 1
break
}
}
if (!_has_else)
return
_i = get_last_return(arr, len)
if (is_return_const(arr[_i])) {
_ret = get_field(arr[_i], 2)
drop_redundant_else_swap_out_last_ret(arr, _i)
for (_i = 1; _i <= len; ++_i)
drop_redundant_else_swap_remove_returns(arr, len, _i, _ret)
for (_i = 1; _i <= len; ++_i)
drop_redundant_else_remove_empty_elses(arr, _i)
}
}
# </drop_redundant_else>
# <opt_tail_calls>
function opt_tail_calls_find_call(fname, arr, where,
_step, _str) {
if (!_step)
_step = 1
_str = arr[where]
if (is(1, _step) &&
is_return(_str) &&
is("call", get_field(_str, 2)) &&
is(fname, get_field(_str, 3))) {
_step = 2
} else if (is(2, _step) && is_block_close(_str)) {
return where-1
} else {
return 0
}
return opt_tail_calls_find_call(fname, arr, where+1, _step)
}
function opt_tail_calls_check_call_returns(fname, arr, len, _i, _where) {
for (_i = 1; _i <= len; ++_i) {
if (_where = opt_tail_calls_find_call(fname, arr, _i))
return _where
}
return 0
}
function opt_tail_calls_is_tail_rec(fname, arr, len) {
return opt_tail_calls_check_call_returns(fname, arr, len)
}
function opt_tail_calls_opt_calls(fname, arr, len,
_i, _where, _is_looped, _tmp) {
_is_looped = 0
for (_i = 1; _i <= len; ++_i) {
if (_where = opt_tail_calls_find_call(fname, arr, _i)) {
arr[_where] = IR_CONTINUE()
if (!_is_looped) {
_tmp = get_prev_f1(arr, len, _where, IR_COMMENT())
arr[_tmp] = sprintf("%s\n%s\n%s %s_0",
arr[_tmp], IR_LOOP_START(), IR_BLOCK_OPEN(), fname)
_tmp = get_func_end(arr, len)
_tmp -= 2
arr[_tmp] = sprintf("%s\n%s %s_0\n%s",
arr[_tmp], IR_BLOCK_CLOSE(), fname, IR_LOOP_END())
_is_looped = 1
}
}
}
}
function opt_tail_calls(fname, arr, len, _i) {
# foo()
# {
# ...
# {
# ...
# return foo()
# }
# ...
# }
# becomes
# foo()
# {
# while (1)
# {
# ...
# {
# ...
# continue // where return foo() was
# }
# ...
# }
# }
if (opt_tail_calls_is_tail_rec(fname, arr, len))
opt_tail_calls_opt_calls(fname, arr, len)
}
# </opt_tail_calls>
# <remove_unreachable_code>
function remove_unreachable_delete_past_return(arr, len, where,
_step, _str) {
if (!_step)
_step = 1
_str = arr[where]
if (is(1, _step) && is_return(_str)) {
_step = 2
} else if (is(2, _step) && !is_block_close(_str)) {
arr[where] = ""
} else {
return
}
remove_unreachable_delete_past_return(arr, len, where+1, _step)
}
function remove_unreachable_code(arr, len, _i) {
# {
# ...
# return foo()
# ...
# }
# becomes
# {
# ...
# return foo()
# }
for (_i = 1; _i <= len; ++_i)
remove_unreachable_delete_past_return(arr, len, _i)
}
# </remove_unreachable_code>
# <inline>
function _INLINE_DEFAULT_FLENGTH() {return 25}
function inline_set_limit(nlines) {_B_inline_limit = nlines}
function inline_get_limit() {
return ((_B_inline_limit) ? _B_inline_limit : _INLINE_DEFAULT_FLENGTH())
}
function inline_has_any_ref(fname, arr, _n, _str) {
_str = sprintf("%s %s[[:space:]]", IR_CALL(), fname)
for (_n in arr) {
if (match(arr[_n], _str))
return 1
}
return 0
}
function inline_arr_remove(arr, len, rexp, _i) {
for (_i = 1; _i <= len; ++_i) {
if (match(arr[_i], rexp))
arr[_i] = ""
}
}
function inline_sanitize_for_inline(fname, fcode, _arr, _len, _tmp) {
_len = func_split(fcode, _arr)
inline_arr_remove(_arr, _len, sprintf("^%s ",IR_FUNC()))
inline_arr_remove(_arr, _len, sprintf("%s %s_1", IR_BLOCK_OPEN(), fname))
inline_arr_remove(_arr, _len, sprintf("^%s", IR_COMMENT()))
inline_arr_remove(_arr, _len, sprintf("%s %s_1", IR_BLOCK_CLOSE(), fname))
inline_arr_remove(_arr, _len, sprintf("^%s", IR_FUNC_END()))
return arr_to_str(_arr, _len)
}
function inline_f_in_f(fname, arr_allf, arr_fcode, fc_len,
_i, _str, _inlined) {
_inlined = 0
for (_i = 1; _i <= fc_len; ++_i) {
_str = arr_fcode[_i]
if (is(IR_RETURN(), get_field(_str, 1)) &&
is(IR_CALL(), get_field(_str, 2)) &&
is(fname, get_field(_str, 3))) {
arr_fcode[_i] = inline_sanitize_for_inline(fname, arr_allf[fname])
_inlined = 1
}
}
return _inlined
}
function inline_rewrite_func(fname, arr, _farr, _n, _len, _inlined) {
_inlined = 0
for (_n in arr) {
_len = func_split(arr[_n], _farr)
if (inline_f_in_f(fname , arr, _farr, _len)) {
func_rewrite_full(_n, arr_to_str(_farr, _len))
_inlined = 1
}
}
return _inlined
}
function inline_get_next_smallest(arr, arr_seen,
_arr_tmp, _fname, _biggest, _flen, _ret) {
_ret = ""
_biggest = 0
for (_fname in arr) {
if (!(_fname in arr_seen)) {
_flen = func_split(arr[_fname], _arr_tmp)
if (_flen <= inline_get_limit()) {
if (!_biggest || (_biggest > _flen)) {
_biggest = _flen
_ret = _fname
}
}
}
}
if (_ret)
arr_seen[_ret] = 1
return _ret
}
function inline_copy_allf(arr_out, _fname, _i, _end) {
_end = func_get_count()
for (_i = 1; _i <= _end; ++_i) {
_fname = func_get_name(_i)
arr_out[_fname] = func_get_code(_fname)
}
}
function inline( _arr_allf, _fnext, _arr_seen, _n, _arr_inlined) {
# {
# ...
# return foo()
# }
# becomes
# {
# ...
# <actual-code-of-foo>
# }
# only if the code of foo() is <= inline_get_limit()
inline_copy_allf(_arr_allf)
while (_fnext = inline_get_next_smallest(_arr_allf, _arr_seen)) {
if (inline_rewrite_func(_fnext, _arr_allf)) {
inline_copy_allf(_arr_allf)
if (!inline_has_any_ref(_fnext, _arr_allf))
func_remove(_fnext)
inline_copy_allf(_arr_allf)
}
}
}
# </inline>
# <opt_lvls>
function optimize_lvl1( _i, _end, _arr, _len, _fname) {
_end = func_get_count()
for (_i = 1; _i <= _end; ++_i) {
_fname = func_get_name(_i)
_len = func_split(func_get_code(_fname), _arr)
remove_unreachable_code(_arr, _len)
func_rewrite_full(_fname, arr_to_str(_arr, _len))
}
}
function optimize_lvl2( _i, _end, _arr, _len, _fname) {
_end = func_get_count()
for (_i = 1; _i <= _end; ++_i) {
_fname = func_get_name(_i)
_len = func_split(func_get_code(_fname), _arr)
if_call_returns_only(_arr, _len)
func_rewrite_full(_fname, arr_to_str(_arr, _len))
}
}
function optimize_lvl3( _i, _end, _arr, _len, _fname) {
_end = func_get_count()
for (_i = 1; _i <= _end; ++_i) {
_fname = func_get_name(_i)
_len = func_split(func_get_code(_fname), _arr)
drop_redundant_else(_arr, _len)
func_rewrite_full(_fname, arr_to_str(_arr, _len))
}
}
function optimize_lvl4( _i, _end, _arr, _len, _fname) {
_end = func_get_count()
for (_i = 1; _i <= _end; ++_i) {
_fname = func_get_name(_i)
_len = func_split(func_get_code(_fname), _arr)
opt_tail_calls(_fname, _arr, _len)
func_rewrite_full(_fname, arr_to_str(_arr, _len))
}
}
function optimize_lvl5() {
inline()
}
function optimize(lvl) {
if (lvl >= 1)
optimize_lvl1()
if (lvl >= 2)
optimize_lvl2()
if (lvl >= 3)
optimize_lvl3()
if (lvl >= 4)
optimize_lvl4()
if (lvl >= 5)
optimize_lvl5()
}
# </opt_lvls>
|
<?php
use yii\helpers\Html;
use yii\grid\GridView;
use yii\widgets\Pjax;
/* @var $this yii\web\View */
/* @var $searchModel backend\models\IndikatorSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Indikator Rasio Murid Guru';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="indikator-index">
<!-- <h1><?= Html::encode($this->title) ?></h1> -->
<?php // echo $this->render('_search', ['model' => $searchModel]); ?>
<!-- <p>
<?= Html::a('Create Indikator', ['create'], ['class' => 'btn btn-success']) ?>
</p> -->
<?php Pjax::begin(); ?>
<?= GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
// 'nama',
[
'attribute'=>'Kota /Kabupaten',
'value'=>'idKota.nama',
],
//'jumlah_murid_sma',
//'jumlah_penduduk_usia_sma',
[
'label' => 'Rasio Murid Guru',
'value' => function($model){
return round($model->indikator->rasio_murid_guru, 3);
}
],
// 'apk',
// 'rasio_murid_guru',
// 'rasio_murid_sekolah',
// 'rasio_murid_kelas',
// 'rasio_kelas_ruang_kelas',
// 'ruang_kelas_baik',
// 'guru_layak_mengajar',
// 'angka_melanjutkan',
// 'angka_lulusan',
// 'angka_putus_sekolah',
// 'angka_mengulang',
// 'rasio_input_output',
//['class' => 'yii\grid\ActionColumn'],
],
]); ?>
<?php Pjax::end(); ?></div>
|
-module(queen_attack).
-export([can_attack/2]).
can_attack(_WhiteQueen, _BlackQueen) -> undefined.
|
unit PngComponentEditors;
{$I ..\Include\Thany.inc}
interface
uses
Windows, SysUtils, Forms, Classes, Controls, PngImageList, TypInfo,
{$IFDEF THANY_COMPILER_6_UP} DesignIntf, DesignEditors, ColnEdit {$ELSE} DsgnIntf {$ENDIF};
type
{$IFNDEF THANY_COMPILER_6_UP}
IProperty = TPropertyEditor;
IDesignerSelections = TDesignerSelectionList;
IDesigner = IFormDesigner;
TThanyComponentEditor = class(TComponentEditor)
public
function GetComponent: TComponent;
end;
{$ELSE}
TThanyComponentEditor = TComponentEditor;
{$ENDIF}
TPngImageListEditor = class(TThanyComponentEditor)
public
function GetVerbCount: Integer; override;
function GetVerb(Index: Integer): string; override;
procedure ExecuteVerb(Index: Integer); override;
procedure Edit; override;
end;
TPngImageCollectionEditor = class(TThanyComponentEditor)
public
procedure Edit; override;
function GetVerbCount: Integer; override;
function GetVerb(Index: Integer): string; override;
procedure ExecuteVerb(Index: Integer); override;
end;
TPngButtonEditor = class(TThanyComponentEditor)
public
function GetVerbCount: Integer; override;
function GetVerb(Index: Integer): string; override;
procedure ExecuteVerb(Index: Integer); override;
procedure Edit; override;
end;
TPngImageListImagesEditor = class(TStringProperty)
public
function GetValue: string; override;
function GetAttributes: TPropertyAttributes; override;
procedure Edit; override;
end;
TPngImageCollectionItemsEditor = class(TPngImageListImagesEditor)
public
procedure Edit; override;
end;
TEditProperty = class
private
FPropery: string;
procedure EnumProperty({$IFDEF THANY_COMPILER_6_UP}const{$ENDIF} Prop: IProperty);
public
constructor Create(Component: TComponent; const Prop: string; Designer: IDesigner);
end;
implementation
uses PngImageListEditor;
//This type is neccesary to be able to call CopyPngs without having to make it
//public in the TPngImageList class.
type
TPngImageListAccess = class(TPngImageList)
public
procedure CopyPngs; override;
end;
procedure EditProperty(Component: TComponent; const Prop: string; Designer: IDesigner);
begin
TEditProperty.Create(Component, Prop, Designer).Free;
end;
{ TPngImageListAccess }
procedure TPngImageListAccess.CopyPngs;
begin
inherited CopyPngs;
end;
{ TPngImageListEditor }
procedure TPngImageListEditor.Edit;
var
Component: TPngImageList;
begin
Component := GetComponent as TPngImageList;
EditProperty(Component, 'PngImages', Designer);
end;
procedure TPngImageListEditor.ExecuteVerb(Index: Integer);
begin
case Index of
0: Edit;
1: begin
TPngImageListAccess(GetComponent).CopyPngs;
MessageBox(0, 'The PNG objects have been copied to the internal imagelist.', PChar(string(GetComponent.ClassName)), MB_ICONINFORMATION or MB_OK);
end;
end;
end;
function TPngImageListEditor.GetVerb(Index: Integer): string;
begin
case Index of
0: Result := '&Edit images...';
1: Result := '&Recreate images...';
end;
end;
function TPngImageListEditor.GetVerbCount: Integer;
begin
Result := 2;
end;
{ TPngImageCollectionEditor }
procedure TPngImageCollectionEditor.Edit;
var
Component: TPngImageCollection;
begin
Component := GetComponent as TPngImageCollection;
EditProperty(Component, 'Items', Designer);
end;
procedure TPngImageCollectionEditor.ExecuteVerb(Index: Integer);
begin
Edit;
end;
function TPngImageCollectionEditor.GetVerb(Index: Integer): string;
begin
Result := '&Edit images...';
end;
function TPngImageCollectionEditor.GetVerbCount: Integer;
begin
Result := 1;
end;
{ TPngButtonEditor }
procedure TPngButtonEditor.ExecuteVerb(Index: Integer);
begin
EditProperty(GetComponent, 'PngImage', Designer);
end;
function TPngButtonEditor.GetVerb(Index: Integer): string;
begin
Result := '&Edit image...';
end;
function TPngButtonEditor.GetVerbCount: Integer;
begin
Result := 1;
end;
procedure TPngButtonEditor.Edit;
begin
EditProperty(GetComponent, 'OnClick', Designer);
end;
{ TD5ComponentEditor }
{$IFNDEF THANY_COMPILER_6_UP}
function TThanyComponentEditor.GetComponent: TComponent;
begin
Result := Component;
end;
{$ENDIF}
{ TEditProperty }
{$IFDEF THANY_COMPILER_6_UP}
constructor TEditProperty.Create(Component: TComponent; const Prop: string; Designer: IDesigner);
var
Components: IDesignerSelections;
begin
inherited Create;
FPropery := Prop;
Components := TDesignerSelections.Create;
Components.Add(Component);
GetComponentProperties(Components, tkAny, Designer, EnumProperty);
end;
{$ELSE}
constructor TEditProperty.Create(Component: TComponent; const Prop: string; Designer: IDesigner);
var
Components: TDesignerSelectionList;
begin
inherited Create;
FPropery := Prop;
Components := TDesignerSelectionList.Create;
try
Components.Add(Component);
GetComponentProperties(Components, tkAny, Designer, EnumProperty);
finally
Components.Free;
end;
end;
{$ENDIF}
procedure TEditProperty.EnumProperty({$IFDEF THANY_COMPILER_6_UP}const{$ENDIF} Prop: IProperty);
begin
if Prop.GetName = FPropery
then Prop.Edit;
end;
{ TPngImageListImagesEditor }
procedure TPngImageListImagesEditor.Edit;
var
ImageList: TPngImageList;
begin
with TPngImageListEditorDlg.Create(nil)
do begin
ImageList := TPngImageList(Self.GetComponent(0));
Caption := 'Editing ' + ImageList.Name + '.' + Self.GetName;
Images.Items.Assign(ImageList.PngImages);
ImageWidth := ImageList.Width;
ImageHeight := ImageList.Height;
if ShowModal = mrOK
then begin
ImageList.PngImages.Assign(Images.Items);
Self.Designer.Modified;
end;
end;
end;
function TPngImageListImagesEditor.GetAttributes: TPropertyAttributes;
begin
Result := inherited GetAttributes + [paDialog, paReadOnly];
end;
function TPngImageListImagesEditor.GetValue: string;
begin
Result := '(PNG images)';
end;
{ TPngImageCollectionItemsEditor }
procedure TPngImageCollectionItemsEditor.Edit;
var
Collection: TPngImageCollection;
begin
with TPngImageListEditorDlg.Create(nil)
do begin
Collection := TPngImageCollection(Self.GetComponent(0));
Caption := 'Editing ' + Collection.Name + '.' + Self.GetName;
Images.Items.Assign(Collection.Items);
if ShowModal = mrOK
then begin
Collection.Items.Assign(Images.Items);
Self.Designer.Modified;
end;
end;
end;
end.
|
package restic
import (
"context"
"fmt"
"os"
"os/signal"
"os/user"
"sync"
"syscall"
"testing"
"time"
"github.com/restic/restic/lib/errors"
"github.com/restic/restic/lib/debug"
)
// Lock represents a process locking the repository for an operation.
//
// There are two types of locks: exclusive and non-exclusive. There may be many
// different non-exclusive locks, but at most one exclusive lock, which can
// only be acquired while no non-exclusive lock is held.
//
// A lock must be refreshed regularly to not be considered stale, this must be
// triggered by regularly calling Refresh.
type Lock struct {
Time time.Time `json:"time"`
Exclusive bool `json:"exclusive"`
Hostname string `json:"hostname"`
Username string `json:"username"`
PID int `json:"pid"`
UID uint32 `json:"uid,omitempty"`
GID uint32 `json:"gid,omitempty"`
repo Repository
lockID *ID
}
// ErrAlreadyLocked is returned when NewLock or NewExclusiveLock are unable to
// acquire the desired lock.
type ErrAlreadyLocked struct {
otherLock *Lock
}
func (e ErrAlreadyLocked) Error() string {
s := ""
if e.otherLock.Exclusive {
s = "exclusively "
}
return fmt.Sprintf("repository is already locked %sby %v", s, e.otherLock)
}
// IsAlreadyLocked returns true iff err is an instance of ErrAlreadyLocked.
func IsAlreadyLocked(err error) bool {
if _, ok := errors.Cause(err).(ErrAlreadyLocked); ok {
return true
}
return false
}
// NewLock returns a new, non-exclusive lock for the repository. If an
// exclusive lock is already held by another process, ErrAlreadyLocked is
// returned.
func NewLock(ctx context.Context, repo Repository) (*Lock, error) {
return newLock(ctx, repo, false)
}
// NewExclusiveLock returns a new, exclusive lock for the repository. If
// another lock (normal and exclusive) is already held by another process,
// ErrAlreadyLocked is returned.
func NewExclusiveLock(ctx context.Context, repo Repository) (*Lock, error) {
return newLock(ctx, repo, true)
}
var waitBeforeLockCheck = 200 * time.Millisecond
// TestSetLockTimeout can be used to reduce the lock wait timeout for tests.
func TestSetLockTimeout(t testing.TB, d time.Duration) {
t.Logf("setting lock timeout to %v", d)
waitBeforeLockCheck = d
}
func newLock(ctx context.Context, repo Repository, excl bool) (*Lock, error) {
lock := &Lock{
Time: time.Now(),
PID: os.Getpid(),
Exclusive: excl,
repo: repo,
}
hn, err := os.Hostname()
if err == nil {
lock.Hostname = hn
}
if err = lock.fillUserInfo(); err != nil {
return nil, err
}
if err = lock.checkForOtherLocks(ctx); err != nil {
return nil, err
}
lockID, err := lock.createLock(ctx)
if err != nil {
return nil, err
}
lock.lockID = &lockID
time.Sleep(waitBeforeLockCheck)
if err = lock.checkForOtherLocks(ctx); err != nil {
_ = lock.Unlock()
return nil, err
}
return lock, nil
}
func (l *Lock) fillUserInfo() error {
usr, err := user.Current()
if err != nil {
return nil
}
l.Username = usr.Username
l.UID, l.GID, err = uidGidInt(*usr)
return err
}
// checkForOtherLocks looks for other locks that currently exist in the repository.
//
// If an exclusive lock is to be created, checkForOtherLocks returns an error
// if there are any other locks, regardless if exclusive or not. If a
// non-exclusive lock is to be created, an error is only returned when an
// exclusive lock is found.
func (l *Lock) checkForOtherLocks(ctx context.Context) error {
return l.repo.List(ctx, LockFile, func(id ID, size int64) error {
if l.lockID != nil && id.Equal(*l.lockID) {
return nil
}
lock, err := LoadLock(ctx, l.repo, id)
if err != nil {
// ignore locks that cannot be loaded
debug.Log("ignore lock %v: %v", id, err)
return nil
}
if l.Exclusive {
return ErrAlreadyLocked{otherLock: lock}
}
if !l.Exclusive && lock.Exclusive {
return ErrAlreadyLocked{otherLock: lock}
}
return nil
})
}
// createLock acquires the lock by creating a file in the repository.
func (l *Lock) createLock(ctx context.Context) (ID, error) {
id, err := l.repo.SaveJSONUnpacked(ctx, LockFile, l)
if err != nil {
return ID{}, err
}
return id, nil
}
// Unlock removes the lock from the repository.
func (l *Lock) Unlock() error {
if l == nil || l.lockID == nil {
return nil
}
return l.repo.Backend().Remove(context.TODO(), Handle{Type: LockFile, Name: l.lockID.String()})
}
var staleTimeout = 30 * time.Minute
// Stale returns true if the lock is stale. A lock is stale if the timestamp is
// older than 30 minutes or if it was created on the current machine and the
// process isn't alive any more.
func (l *Lock) Stale() bool {
debug.Log("testing if lock %v for process %d is stale", l, l.PID)
if time.Since(l.Time) > staleTimeout {
debug.Log("lock is stale, timestamp is too old: %v\n", l.Time)
return true
}
hn, err := os.Hostname()
if err != nil {
debug.Log("unable to find current hostname: %v", err)
// since we cannot find the current hostname, assume that the lock is
// not stale.
return false
}
if hn != l.Hostname {
// lock was created on a different host, assume the lock is not stale.
return false
}
// check if we can reach the process retaining the lock
exists := l.processExists()
if !exists {
debug.Log("could not reach process, %d, lock is probably stale\n", l.PID)
return true
}
debug.Log("lock not stale\n")
return false
}
// Refresh refreshes the lock by creating a new file in the backend with a new
// timestamp. Afterwards the old lock is removed.
func (l *Lock) Refresh(ctx context.Context) error {
debug.Log("refreshing lock %v", l.lockID)
l.Time = time.Now()
id, err := l.createLock(ctx)
if err != nil {
return err
}
err = l.repo.Backend().Remove(context.TODO(), Handle{Type: LockFile, Name: l.lockID.String()})
if err != nil {
return err
}
debug.Log("new lock ID %v", id)
l.lockID = &id
return nil
}
func (l Lock) String() string {
text := fmt.Sprintf("PID %d on %s by %s (UID %d, GID %d)\nlock was created at %s (%s ago)\nstorage ID %v",
l.PID, l.Hostname, l.Username, l.UID, l.GID,
l.Time.Format("2006-01-02 15:04:05"), time.Since(l.Time),
l.lockID.Str())
return text
}
// listen for incoming SIGHUP and ignore
var ignoreSIGHUP sync.Once
func init() {
ignoreSIGHUP.Do(func() {
go func() {
c := make(chan os.Signal, 1)
signal.Notify(c, syscall.SIGHUP)
for s := range c {
debug.Log("Signal received: %v\n", s)
}
}()
})
}
// LoadLock loads and unserializes a lock from a repository.
func LoadLock(ctx context.Context, repo Repository, id ID) (*Lock, error) {
lock := &Lock{}
if err := repo.LoadJSONUnpacked(ctx, LockFile, id, lock); err != nil {
return nil, err
}
lock.lockID = &id
return lock, nil
}
// RemoveStaleLocks deletes all locks detected as stale from the repository.
func RemoveStaleLocks(ctx context.Context, repo Repository) error {
return repo.List(ctx, LockFile, func(id ID, size int64) error {
lock, err := LoadLock(ctx, repo, id)
if err != nil {
// ignore locks that cannot be loaded
debug.Log("ignore lock %v: %v", id, err)
return nil
}
if lock.Stale() {
return repo.Backend().Remove(ctx, Handle{Type: LockFile, Name: id.String()})
}
return nil
})
}
// RemoveAllLocks removes all locks forcefully.
func RemoveAllLocks(ctx context.Context, repo Repository) error {
return repo.List(ctx, LockFile, func(id ID, size int64) error {
return repo.Backend().Remove(ctx, Handle{Type: LockFile, Name: id.String()})
})
}
|
onerror {resume}
quietly WaveActivateNextPane {} 0
add wave -noupdate /ise_DRAM_tb/status
add wave -noupdate /ise_DRAM_tb/ise_DRAM_synth_inst/bmg_port/CLKA
add wave -noupdate /ise_DRAM_tb/ise_DRAM_synth_inst/bmg_port/ADDRA
add wave -noupdate /ise_DRAM_tb/ise_DRAM_synth_inst/bmg_port/DINA
add wave -noupdate /ise_DRAM_tb/ise_DRAM_synth_inst/bmg_port/WEA
add wave -noupdate /ise_DRAM_tb/ise_DRAM_synth_inst/bmg_port/ENA
add wave -noupdate /ise_DRAM_tb/ise_DRAM_synth_inst/bmg_port/DOUTA
add wave -noupdate /ise_DRAM_tb/ise_DRAM_synth_inst/bmg_port/CLKB
add wave -noupdate /ise_DRAM_tb/ise_DRAM_synth_inst/bmg_port/ADDRB
add wave -noupdate /ise_DRAM_tb/ise_DRAM_synth_inst/bmg_port/ENB
add wave -noupdate /ise_DRAM_tb/ise_DRAM_synth_inst/bmg_port/DINB
add wave -noupdate /ise_DRAM_tb/ise_DRAM_synth_inst/bmg_port/WEB
add wave -noupdate /ise_DRAM_tb/ise_DRAM_synth_inst/bmg_port/DOUTB
TreeUpdate [SetDefaultTree]
WaveRestoreCursors {{Cursor 1} {0 ps} 0}
configure wave -namecolwidth 150
configure wave -valuecolwidth 100
configure wave -justifyvalue left
configure wave -signalnamewidth 1
configure wave -snapdistance 10
configure wave -datasetprefix 0
configure wave -rowmargin 4
configure wave -childrowmargin 2
configure wave -gridoffset 0
configure wave -gridperiod 1
configure wave -griddelta 40
configure wave -timeline 0
configure wave -timelineunits ps
update
WaveRestoreZoom {0 ps} {9464063 ps}
|
package cloud.osasoft.jkaDiscordBot.parser
import cloud.osasoft.jkaDiscordBot.dto.discord.DiscordAuthor
import cloud.osasoft.jkaDiscordBot.dto.discord.DiscordEmbed
import cloud.osasoft.jkaDiscordBot.parser.LogParser
import groovy.transform.CompileStatic
import groovy.util.logging.Slf4j
import javax.inject.Singleton
@Singleton
@Slf4j
@CompileStatic
class AdminCmdParser implements LogParser {
@Override
boolean matches(String line) {
return line ==~ /^ADMIN CMD EXECUTED : .*/
}
@Override
DiscordEmbed parse(String line) {
return new DiscordEmbed(
author: new DiscordAuthor(name: "Server"),
description: line
)
}
}
|
# Building and Testing images
IBM HTTP Server images can be built and verified using the test scripts provided.
## Build and Test image
1. Clone this repository.
2. Move to the directory `test`.
3. Build and Test image using:
```bash
sh buildAndverify.sh <image-name> <dockerfile-location> <URL>`
```
Parameter values for building IHS ILAN images:
* image-name - ilan
* dockerfile-location - ../ilan
* URL - URL where the binaries are placed
Parameter values for building IHS production images:
* image-name - production
* dockerfile-location - ../production
* URL - URL where the binaries are placed
|
// SPDX-License-Identifier: MIT
pragma solidity >=0.5.0;
import "./IBeacon.sol";
import "../../access/Ownable.sol";
import "../../utils/Address.sol";
/**
* @dev This contract is used in conjunction with one or more instances of {BeaconProxy} to determine their
* implementation contract, which is where they will delegate all function calls.
*
* An owner is able to change the implementation the beacon points to, thus upgrading the proxies that use this beacon.
*/
contract UpgradeableBeacon is IBeacon, Ownable {
address private _implementation;
/**
* @dev Emitted when the implementation returned by the beacon is changed.
*/
event Upgraded(address indexed implementation);
/**
* @dev Sets the address of the initial implementation, and the deployer account as the owner who can upgrade the
* beacon.
*/
constructor(address implementation_) {
_setImplementation(implementation_);
}
/**
* @dev Returns the current implementation address.
*/
function implementation() public view virtual override returns (address) {
return _implementation;
}
/**
* @dev Upgrades the beacon to a new implementation.
*
* Emits an {Upgraded} event.
*
* Requirements:
*
* - msg.sender must be the owner of the contract.
* - `newImplementation` must be a contract.
*/
function upgradeTo(address newImplementation) public virtual onlyOwner {
_setImplementation(newImplementation);
emit Upgraded(newImplementation);
}
/**
* @dev Sets the implementation contract address for this beacon
*
* Requirements:
*
* - `newImplementation` must be a contract.
*/
function _setImplementation(address newImplementation) private {
require(Address.isContract(newImplementation), "UpgradeableBeacon: implementation is not a contract");
_implementation = newImplementation;
}
}
|
module Day25
( day25a
, day25b
)
where
day25a :: String -> String
day25a = id
day25b :: String -> String
day25b = id
|
port module SoundFont.Ports exposing (..)
import SoundFont.Types exposing (..)
-- outgoing ports (for commands to javascript)
{-| request the AudioContext
-}
port initialiseAudioContext : () -> Cmd msg
{-| ask if the browser supports the OGG format
-}
port requestIsOggEnabled : () -> Cmd msg
{-| request that the default piano fonts are loaded from the local resource
under the given directory. By local we mean that the soundfonts are
housed on the same server as the requesting code
-}
port requestLoadPianoFonts : String -> Cmd msg
{-| request that the font for the named instrument is loaded from the
remote gleitz github server (i.e. where they are maintained).
This will take longer to load than the local resource above.
-}
port requestLoadRemoteFonts : String -> Cmd msg
{-| request that the note is played through the soundfont via web-audio
-}
port requestPlayNote : MidiNote -> Cmd msg
{-| request that the sequence of notes is played through the soundfont via web-audio
-}
port requestPlayNoteSequence : MidiNotes -> Cmd msg
-- incoming ports (for subscriptions from javascript)
{-| get the audio context.
Probably not much use because it is incomplete and cannot be passed back to javascript
-}
port getAudioContext : (AudioContext -> msg) -> Sub msg
{-| does the browser support the Ogg-Vorbis standard?
-}
port oggEnabled : (Bool -> msg) -> Sub msg
{-| Have the soundfonts been loaded OK?
-}
port fontsLoaded : (Bool -> msg) -> Sub msg
{-| Have we played the individual note?
-}
port playedNote : (Bool -> msg) -> Sub msg
{-| Have we started to play the note sequence?
-}
port playSequenceStarted : (Bool -> msg) -> Sub msg
|
@echo off
echo *** %~n0 ...
echo *** %1
echo.
call %~dp0\_init.bat %1 %2 %3
SET PixelSize=0.6
gdalwarp %TiffOpts% -r average -tr %PixelSize% %PixelSize% %1 %~dpn1-%PixelSize%m.tif
echo.
echo %~n0 finished.
timeout 30 |
/*
*
* Copyright 2017 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package com.netflix.metacat.main.manager
import com.google.common.collect.ImmutableMap
import com.google.common.collect.Maps
import com.netflix.metacat.common.server.properties.Config
import com.netflix.metacat.common.server.spi.MetacatCatalogConfig
import com.netflix.spectator.api.Registry
import org.assertj.core.util.Sets
import org.springframework.boot.actuate.health.Status
import spock.lang.Specification
/**
* Specifications for the CatalogManager class.
*
* @author tgianos
* @since 1.1.0
*/
class CatalogManagerSpec extends Specification {
def "can report health accurately based on whether catalogs are loaded or not"() {
def connectorManager = Mock(ConnectorManager) {
2 * getCatalogConfigs() >>> [
[],
[
MetacatCatalogConfig.createFromMapAndRemoveProperties("hive", "testhive", Maps.newHashMap()),
MetacatCatalogConfig.createFromMapAndRemoveProperties("hive", "prodhive", Maps.newHashMap()),
MetacatCatalogConfig.createFromMapAndRemoveProperties("mysql", "finance", Maps.newHashMap())
]
]
}
def config = Mock(Config) {
1 * getPluginConfigLocation() >> File.createTempFile("not", ".aDirectory").getAbsolutePath()
}
def registry = Mock(Registry)
def catalogManager = new CatalogManager(connectorManager, config, registry)
when:
def health = catalogManager.health()
then:
health.getStatus() == Status.OUT_OF_SERVICE
health.getDetails().size() == 0
when:
catalogManager.loadCatalogs()
health = catalogManager.health()
then:
health.getStatus() == Status.UP
health.getDetails().size() == 3
health.getDetails().get("testhive") == "hive"
health.getDetails().get("prodhive") == "hive"
health.getDetails().get("finance") == "mysql"
}
}
|
---
layout: slide
title: "Welcome to our second slide again!"
---
This is my new slide :tada:
Something witty
|
package in.dragonbra.steamlanguagegen.parser.node
import in.dragonbra.steamlanguagegen.parser.symbol.Symbol
class ClassNode extends Node {
Symbol ident
Symbol parent
boolean emit
}
|
/* NSC -- new Scala compiler
* Copyright 2005-2013 LAMP/EPFL
* @author Martin Odersky
*/
package scala
package reflect
package internal
import scala.language.implicitConversions
import java.security.MessageDigest
import Chars.isOperatorPart
import scala.annotation.switch
import scala.collection.immutable
import scala.io.Codec
trait StdNames {
self: SymbolTable =>
def encode(str: String): TermName = newTermNameCached(NameTransformer.encode(str))
/** Tensions: would like the keywords to be the very first names entered into the names
* storage so their ids count from 0, which simplifies the parser. Switched to abstract
* classes to avoid all the indirection which is generated with implementation-containing
* traits. Since all these classes use eager vals, that means the constructor with the
* keywords must run first. If it's the top in the superclass chain, then CommonNames
* must inherit from it, which means TypeNames would inherit keywords as well.
*
* Solution: Keywords extends CommonNames and uses early defs to beat the
* CommonNames constructor out of the starting gate. This is its builder.
*/
private class KeywordSetBuilder {
private var kws: Set[TermName] = Set()
def apply(s: String): TermName = {
val result = newTermNameCached(s)
kws = kws + result
result
}
def result: Set[TermName] = try kws finally kws = null
}
private[reflect] def compactifyName(orig: String): String = compactify(orig)
private final object compactify extends (String => String) {
val md5 = MessageDigest.getInstance("MD5")
/**
* COMPACTIFY
*
* The hashed name has the form (prefix + marker + md5 + marker + suffix), where
* - prefix/suffix.length = MaxNameLength / 4
* - md5.length = 32
*
* We obtain the formula:
*
* FileNameLength = 2*(MaxNameLength / 4) + 2.marker.length + 32 + suffixLength
*
* (+suffixLength for ".class" and potential module class suffix that is added *after* this transform).
*
* MaxNameLength can therefore be computed as follows:
*/
val marker = "$$$$"
val maxSuffixLength = "$.class".length + 1 // potential module class suffix and file extension
val MaxNameLength = math.min(
settings.maxClassfileName.value - maxSuffixLength,
2 * (settings.maxClassfileName.value - maxSuffixLength - 2*marker.length - 32)
)
def toMD5(s: String, edge: Int): String = {
val prefix = s take edge
val suffix = s takeRight edge
val cs = s.toArray
val bytes = Codec.toUTF8(new scala.runtime.ArrayCharSequence(cs, 0, cs.length))
md5 update bytes
val md5chars = (md5.digest() map (b => (b & 0xFF).toHexString)).mkString
prefix + marker + md5chars + marker + suffix
}
def apply(s: String): String = (
if (s.length <= MaxNameLength) s
else toMD5(s, MaxNameLength / 4)
)
}
abstract class CommonNames extends NamesApi {
type NameType >: Null <: Name
// Masking some implicits so as to allow our targeted => NameType.
protected val stringToTermName = null
protected val stringToTypeName = null
protected implicit def createNameType(name: String): NameType
def flattenedName(segments: Name*): NameType =
compactify(segments mkString NAME_JOIN_STRING)
// TODO: what is the purpose of all this duplication!?!?!
// I made these constants because we cannot change them without bumping our major version anyway.
final val NAME_JOIN_STRING = NameTransformer.NAME_JOIN_STRING
final val MODULE_SUFFIX_STRING = NameTransformer.MODULE_SUFFIX_STRING
final val MODULE_VAR_SUFFIX_STRING = NameTransformer.MODULE_VAR_SUFFIX_STRING
final val LOCAL_SUFFIX_STRING = NameTransformer.LOCAL_SUFFIX_STRING
final val LAZY_LOCAL_SUFFIX_STRING = NameTransformer.LAZY_LOCAL_SUFFIX_STRING
final val TRAIT_SETTER_SEPARATOR_STRING = NameTransformer.TRAIT_SETTER_SEPARATOR_STRING
final val SINGLETON_SUFFIX = ".type"
val ANON_CLASS_NAME: NameType = "$anon"
val DELAMBDAFY_LAMBDA_CLASS_NAME: NameType = "$lambda"
val ANON_FUN_NAME: NameType = "$anonfun"
val EMPTY: NameType = ""
val EMPTY_PACKAGE_NAME: NameType = "<empty>"
val IMPORT: NameType = "<import>"
val MODULE_SUFFIX_NAME: NameType = MODULE_SUFFIX_STRING
val MODULE_VAR_SUFFIX: NameType = MODULE_VAR_SUFFIX_STRING
val PACKAGE: NameType = "package"
val ROOT: NameType = "<root>"
val SPECIALIZED_SUFFIX: NameType = "$sp"
val CASE_ACCESSOR: NameType = "$access"
val NESTED_IN: String = "$nestedIn"
val NESTED_IN_ANON_CLASS: String = NESTED_IN + ANON_CLASS_NAME.toString.replace("$", "")
val NESTED_IN_ANON_FUN: String = NESTED_IN + ANON_FUN_NAME.toString.replace("$", "")
val NESTED_IN_LAMBDA: String = NESTED_IN + DELAMBDAFY_LAMBDA_CLASS_NAME.toString.replace("$", "")
/**
* Ensures that name mangling does not accidentally make a class respond `true` to any of
* isAnonymousClass, isAnonymousFunction, isDelambdafyFunction, e.g. by introducing "$anon".
*/
def ensureNonAnon(name: String) = {
name
.replace(nme.ANON_CLASS_NAME.toString, NESTED_IN_ANON_CLASS)
.replace(nme.ANON_FUN_NAME.toString, NESTED_IN_ANON_FUN)
.replace(nme.DELAMBDAFY_LAMBDA_CLASS_NAME.toString, NESTED_IN_LAMBDA)
}
// value types (and AnyRef) are all used as terms as well
// as (at least) arguments to the @specialize annotation.
final val Boolean: NameType = "Boolean"
final val Byte: NameType = "Byte"
final val Char: NameType = "Char"
final val Double: NameType = "Double"
final val Float: NameType = "Float"
final val Int: NameType = "Int"
final val Long: NameType = "Long"
final val Short: NameType = "Short"
final val Unit: NameType = "Unit"
// some types whose companions we utilize
final val AnyRef: NameType = "AnyRef"
final val Array: NameType = "Array"
final val List: NameType = "List"
final val Option: NameType = "Option"
final val Seq: NameType = "Seq"
final val Symbol: NameType = "Symbol"
final val WeakTypeTag: NameType = "WeakTypeTag"
final val TypeTag : NameType = "TypeTag"
final val Expr: NameType = "Expr"
final val String: NameType = "String"
final val StringContext: NameType = "StringContext"
// fictions we use as both types and terms
final val ERROR: NameType = "<error>"
final val NO_NAME: NameType = "<none>" // formerly NOSYMBOL
final val WILDCARD: NameType = "_"
}
/** This should be the first trait in the linearization. */
// abstract class Keywords extends CommonNames {
abstract class Keywords extends {
private val kw = new KeywordSetBuilder
final val ABSTRACTkw: TermName = kw("abstract")
final val CASEkw: TermName = kw("case")
final val CLASSkw: TermName = kw("class")
final val CATCHkw: TermName = kw("catch")
final val DEFkw: TermName = kw("def")
final val DOkw: TermName = kw("do")
final val ELSEkw: TermName = kw("else")
final val EXTENDSkw: TermName = kw("extends")
final val FALSEkw: TermName = kw("false")
final val FINALkw: TermName = kw("final")
final val FINALLYkw: TermName = kw("finally")
final val FORkw: TermName = kw("for")
final val FORSOMEkw: TermName = kw("forSome")
final val IFkw: TermName = kw("if")
final val IMPLICITkw: TermName = kw("implicit")
final val IMPORTkw: TermName = kw("import")
final val LAZYkw: TermName = kw("lazy")
final val MACROkw: TermName = kw("macro")
final val MATCHkw: TermName = kw("match")
final val NEWkw: TermName = kw("new")
final val NULLkw: TermName = kw("null")
final val OBJECTkw: TermName = kw("object")
final val OVERRIDEkw: TermName = kw("override")
final val PACKAGEkw: TermName = kw("package")
final val PRIVATEkw: TermName = kw("private")
final val PROTECTEDkw: TermName = kw("protected")
final val RETURNkw: TermName = kw("return")
final val SEALEDkw: TermName = kw("sealed")
final val SUPERkw: TermName = kw("super")
final val THENkw: TermName = kw("then")
final val THISkw: TermName = kw("this")
final val THROWkw: TermName = kw("throw")
final val TRAITkw: TermName = kw("trait")
final val TRUEkw: TermName = kw("true")
final val TRYkw: TermName = kw("try")
final val TYPEkw: TermName = kw("type")
final val VALkw: TermName = kw("val")
final val VARkw: TermName = kw("var")
final val WITHkw: TermName = kw("with")
final val WHILEkw: TermName = kw("while")
final val YIELDkw: TermName = kw("yield")
final val DOTkw: TermName = kw(".")
final val USCOREkw: TermName = kw("_")
final val COLONkw: TermName = kw(":")
final val EQUALSkw: TermName = kw("=")
final val ARROWkw: TermName = kw("=>")
final val LARROWkw: TermName = kw("<-")
final val SUBTYPEkw: TermName = kw("<:")
final val VIEWBOUNDkw: TermName = kw("<%")
final val SUPERTYPEkw: TermName = kw(">:")
final val HASHkw: TermName = kw("#")
final val ATkw: TermName = kw("@")
final val keywords = kw.result
} with CommonNames {
final val javaKeywords = new JavaKeywords()
}
abstract class TypeNames extends Keywords with TypeNamesApi {
override type NameType = TypeName
protected implicit def createNameType(name: String): TypeName = newTypeNameCached(name)
final val BYNAME_PARAM_CLASS_NAME: NameType = "<byname>"
final val JAVA_REPEATED_PARAM_CLASS_NAME: NameType = "<repeated...>"
final val LOCAL_CHILD: NameType = "<local child>"
final val REFINE_CLASS_NAME: NameType = "<refinement>"
final val REPEATED_PARAM_CLASS_NAME: NameType = "<repeated>"
final val WILDCARD_STAR: NameType = "_*"
final val REIFY_TREECREATOR_PREFIX: NameType = "$treecreator"
final val REIFY_TYPECREATOR_PREFIX: NameType = "$typecreator"
final val MACRO_BUNDLE_SUFFIX: NameType = "$Bundle"
final val Any: NameType = "Any"
final val AnyVal: NameType = "AnyVal"
final val App: NameType = "App"
final val FlagSet: NameType = "FlagSet"
final val Mirror: NameType = "Mirror"
final val Modifiers: NameType = "Modifiers"
final val Nothing: NameType = "Nothing"
final val Null: NameType = "Null"
final val Object: NameType = "Object"
final val PrefixType: NameType = "PrefixType"
final val Product: NameType = "Product"
final val Serializable: NameType = "Serializable"
final val Singleton: NameType = "Singleton"
final val Throwable: NameType = "Throwable"
final val unchecked: NameType = "unchecked"
final val api: NameType = "api"
final val Annotation: NameType = "Annotation"
final val CaseDef: NameType = "CaseDef"
final val ClassfileAnnotation: NameType = "ClassfileAnnotation"
final val ClassManifest: NameType = "ClassManifest"
final val Enum: NameType = "Enum"
final val Group: NameType = "Group"
final val implicitNotFound: NameType = "implicitNotFound"
final val Liftable: NameType = "Liftable"
final val Unliftable: NameType = "Unliftable"
final val Name: NameType = "Name"
final val Tree: NameType = "Tree"
final val Text: NameType = "Text"
final val TermName: NameType = "TermName"
final val Type : NameType = "Type"
final val TypeName: NameType = "TypeName"
final val TypeDef: NameType = "TypeDef"
final val Quasiquote: NameType = "Quasiquote"
// quasiquote-specific names
final val QUASIQUOTE_FUNCTION: NameType = "$quasiquote$function$"
final val QUASIQUOTE_MODS: NameType = "$quasiquote$mods$"
final val QUASIQUOTE_TUPLE: NameType = "$quasiquote$tuple$"
// Annotation simple names, used in Namer
final val BeanPropertyAnnot: NameType = "BeanProperty"
final val BooleanBeanPropertyAnnot: NameType = "BooleanBeanProperty"
final val bridgeAnnot: NameType = "bridge"
// Classfile Attributes
final val AnnotationDefaultATTR: NameType = "AnnotationDefault"
final val BridgeATTR: NameType = "Bridge"
final val CodeATTR: NameType = "Code"
final val ConstantValueATTR: NameType = "ConstantValue"
final val DeprecatedATTR: NameType = "Deprecated"
final val ExceptionsATTR: NameType = "Exceptions"
final val InnerClassesATTR: NameType = "InnerClasses"
final val MethodParametersATTR: NameType = "MethodParameters"
final val RuntimeAnnotationATTR: NameType = "RuntimeVisibleAnnotations" // RetentionPolicy.RUNTIME
final val ScalaATTR: NameType = "Scala"
final val ScalaSignatureATTR: NameType = "ScalaSig"
final val SignatureATTR: NameType = "Signature"
final val SourceFileATTR: NameType = "SourceFile"
final val SyntheticATTR: NameType = "Synthetic"
final val scala_ : NameType = "scala"
def dropSingletonName(name: Name): TypeName = (name dropRight SINGLETON_SUFFIX.length).toTypeName
def singletonName(name: Name): TypeName = (name append SINGLETON_SUFFIX).toTypeName
}
abstract class TermNames extends Keywords with TermNamesApi {
override type NameType = TermName
protected implicit def createNameType(name: String): TermName = newTermNameCached(name)
/** Base strings from which synthetic names are derived. */
val BITMAP_PREFIX = "bitmap$"
val CHECK_IF_REFUTABLE_STRING = "check$ifrefutable$"
val DEFAULT_GETTER_STRING = "$default$"
val DEFAULT_GETTER_INIT_STRING = NameTransformer.encode("<init>") + DEFAULT_GETTER_STRING
val DO_WHILE_PREFIX = "doWhile$"
val EVIDENCE_PARAM_PREFIX = "evidence$"
val EXCEPTION_RESULT_PREFIX = "exceptionResult"
val EXPAND_SEPARATOR_STRING = "$$"
val FRESH_TERM_NAME_PREFIX = "x$"
val INTERPRETER_IMPORT_WRAPPER = "$iw"
val LOCALDUMMY_PREFIX = "<local " // owner of local blocks
val PROTECTED_PREFIX = "protected$"
val PROTECTED_SET_PREFIX = PROTECTED_PREFIX + "set"
val SUPER_PREFIX_STRING = "super$"
val WHILE_PREFIX = "while$"
val FRESH_PREFIX = "fresh"
val FRESH_SUFFIX = "macro$" // uses a keyword to avoid collisions with mangled names
val QUAL_PREFIX = "qual$"
val NAMEDARG_PREFIX = "x$"
// Compiler internal names
val ANYname: NameType = "<anyname>"
val CONSTRUCTOR: NameType = "<init>"
val DEFAULT_CASE: NameType = "defaultCase$"
val EQEQ_LOCAL_VAR: NameType = "eqEqTemp$"
val FAKE_LOCAL_THIS: NameType = "this$"
val LAZY_SLOW_SUFFIX: NameType = "$lzycompute"
val UNIVERSE_BUILD_PREFIX: NameType = "$u.internal.reificationSupport."
val UNIVERSE_PREFIX: NameType = "$u."
val UNIVERSE_SHORT: NameType = "$u"
val MIRROR_PREFIX: NameType = "$m."
val MIRROR_SHORT: NameType = "$m"
val MIRROR_UNTYPED: NameType = "$m$untyped"
val REIFY_FREE_PREFIX: NameType = "free$"
val REIFY_FREE_THIS_SUFFIX: NameType = "$this"
val REIFY_FREE_VALUE_SUFFIX: NameType = "$value"
val REIFY_SYMDEF_PREFIX: NameType = "symdef$"
val QUASIQUOTE_CASE: NameType = "$quasiquote$case$"
val QUASIQUOTE_EARLY_DEF: NameType = "$quasiquote$early$def$"
val QUASIQUOTE_FILE: String = "<quasiquote>"
val QUASIQUOTE_FOR_ENUM: NameType = "$quasiquote$for$enum$"
val QUASIQUOTE_NAME_PREFIX: String = "nn$"
val QUASIQUOTE_PACKAGE_STAT: NameType = "$quasiquote$package$stat$"
val QUASIQUOTE_PARAM: NameType = "$quasiquote$param$"
val QUASIQUOTE_PAT_DEF: NameType = "$quasiquote$pat$def$"
val QUASIQUOTE_PREFIX: String = "qq$"
val QUASIQUOTE_REFINE_STAT: NameType = "$quasiquote$refine$stat$"
val QUASIQUOTE_TUPLE: NameType = "$quasiquote$tuple$"
val QUASIQUOTE_UNLIFT_HELPER: String = "$quasiquote$unlift$helper$"
val MIXIN_CONSTRUCTOR: NameType = "$init$"
val MODULE_INSTANCE_FIELD: NameType = NameTransformer.MODULE_INSTANCE_NAME // "MODULE$"
val OUTER: NameType = "$outer"
val OUTER_LOCAL: NameType = OUTER.localName
val OUTER_ARG: NameType = "arg" + OUTER
val OUTER_SYNTH: NameType = "<outer>" // emitted by virtual pattern matcher, replaced by outer accessor in explicitouter
val ROOTPKG: NameType = "_root_"
val SELECTOR_DUMMY: NameType = "<unapply-selector>"
val SELF: NameType = "$this"
val SETTER_SUFFIX: NameType = NameTransformer.SETTER_SUFFIX_STRING
val SPECIALIZED_INSTANCE: NameType = "specInstance$"
val STAR: NameType = "*"
val THIS: NameType = "_$this"
def isConstructorName(name: Name) = name == CONSTRUCTOR || name == MIXIN_CONSTRUCTOR
def isExceptionResultName(name: Name) = name startsWith EXCEPTION_RESULT_PREFIX
def isLocalDummyName(name: Name) = name startsWith LOCALDUMMY_PREFIX
def isLocalName(name: Name) = name endsWith LOCAL_SUFFIX_STRING
def isLoopHeaderLabel(name: Name) = (name startsWith WHILE_PREFIX) || (name startsWith DO_WHILE_PREFIX)
def isProtectedAccessorName(name: Name) = name startsWith PROTECTED_PREFIX
def isReplWrapperName(name: Name) = name containsName INTERPRETER_IMPORT_WRAPPER
def isSetterName(name: Name) = name endsWith SETTER_SUFFIX
def isTraitSetterName(name: Name) = isSetterName(name) && (name containsName TRAIT_SETTER_SEPARATOR_STRING)
def isSingletonName(name: Name) = name endsWith SINGLETON_SUFFIX
def isModuleName(name: Name) = name endsWith MODULE_SUFFIX_NAME
/** Is name a variable name? */
def isVariableName(name: Name): Boolean = {
val first = name.startChar
( ((first.isLower && first.isLetter) || first == '_')
&& (name != nme.false_)
&& (name != nme.true_)
&& (name != nme.null_)
)
}
def isOpAssignmentName(name: Name) = name match {
case raw.NE | raw.LE | raw.GE | EMPTY => false
case _ =>
name.endChar == '=' && name.startChar != '=' && isOperatorPart(name.startChar)
}
private def expandedNameInternal(name: TermName, base: Symbol, separator: String): TermName =
newTermNameCached(base.fullName('$') + separator + name)
/** The expanded name of `name` relative to this class `base`
*/
def expandedName(name: TermName, base: Symbol) = expandedNameInternal(name, base, EXPAND_SEPARATOR_STRING)
/** The expanded setter name of `name` relative to this class `base`
*/
def expandedSetterName(name: TermName, base: Symbol) = expandedNameInternal(name, base, TRAIT_SETTER_SEPARATOR_STRING)
/** If `name` is an expandedName name, the original (unexpanded) name.
* Otherwise `name` itself.
* Look backward from the end of the string for "$$", and take the
* part of the string after that; but if the string is "$$$" or longer,
* be sure to retain the extra dollars.
*/
def unexpandedName(name: Name): Name = name lastIndexOf "$$" match {
case 0 | -1 => name
case idx0 =>
// Sketchville - We've found $$ but if it's part of $$$ or $$$$
// or something we need to keep the bonus dollars, so e.g. foo$$$outer
// has an original name of $outer.
var idx = idx0
while (idx > 0 && name.charAt(idx - 1) == '$')
idx -= 1
name drop idx + 2
}
@deprecated("use unexpandedName", "2.11.0") def originalName(name: Name): Name = unexpandedName(name)
@deprecated("use Name#dropModule", "2.11.0") def stripModuleSuffix(name: Name): Name = name.dropModule
@deprecated("use Name#dropLocal", "2.11.0") def localToGetter(name: TermName): TermName = name.dropLocal
@deprecated("use Name#dropLocal", "2.11.0") def dropLocalSuffix(name: Name): TermName = name.dropLocal
@deprecated("use Name#localName", "2.11.0") def getterToLocal(name: TermName): TermName = name.localName
@deprecated("use Name#setterName", "2.11.0") def getterToSetter(name: TermName): TermName = name.setterName
@deprecated("use Name#getterName", "2.11.0") def getterName(name: TermName): TermName = name.getterName
@deprecated("use Name#getterName", "2.11.0") def setterToGetter(name: TermName): TermName = name.getterName
/**
* Convert `Tuple2$mcII` to `Tuple2`, or `T1$sp` to `T1`.
*/
def unspecializedName(name: Name): Name = (
// DUPLICATED LOGIC WITH `splitSpecializedName`
if (name endsWith SPECIALIZED_SUFFIX)
name.subName(0, name.lastIndexOf('m') - 1)
else name
)
/** Return the original name and the types on which this name
* is specialized. For example,
* {{{
* splitSpecializedName("foo$mIcD$sp") == ('foo', "D", "I")
* }}}
* `foo$mIcD$sp` is the name of a method specialized on two type
* parameters, the first one belonging to the method itself, on Int,
* and another one belonging to the enclosing class, on Double.
*
* @return (unspecializedName, class tparam specializations, method tparam specializations)
*/
def splitSpecializedName(name: Name): (Name, String, String) =
// DUPLICATED LOGIC WITH `unspecializedName`
if (name endsWith SPECIALIZED_SUFFIX) {
val name1 = name dropRight SPECIALIZED_SUFFIX.length
val idxC = name1 lastIndexOf 'c'
val idxM = name1 lastIndexOf 'm'
(name1.subName(0, idxM - 1),
name1.subName(idxC + 1, name1.length).toString,
name1.subName(idxM + 1, idxC).toString)
} else
(name, "", "")
// Nominally, name$default$N, encoded for <init>
def defaultGetterName(name: Name, pos: Int): TermName = (
if (isConstructorName(name))
DEFAULT_GETTER_INIT_STRING + pos
else
name + DEFAULT_GETTER_STRING + pos
)
// Nominally, name from name$default$N, CONSTRUCTOR for <init>
def defaultGetterToMethod(name: Name): TermName = (
if (name startsWith DEFAULT_GETTER_INIT_STRING)
nme.CONSTRUCTOR
else name indexOf DEFAULT_GETTER_STRING match {
case -1 => name.toTermName
case idx => name.toTermName take idx
}
)
def localDummyName(clazz: Symbol): TermName = newTermName(LOCALDUMMY_PREFIX + clazz.name + ">")
def superName(name: Name, mix: Name = EMPTY): TermName = newTermName(SUPER_PREFIX_STRING + name + (if (mix.isEmpty) "" else "$" + mix))
/** The name of an accessor for protected symbols. */
def protName(name: Name): TermName = newTermName(PROTECTED_PREFIX + name)
/** The name of a setter for protected symbols. Used for inherited Java fields. */
def protSetterName(name: Name): TermName = newTermName(PROTECTED_SET_PREFIX + name)
final val Nil: NameType = "Nil"
final val Predef: NameType = "Predef"
val _1 : NameType = "_1"
val _2 : NameType = "_2"
val _3 : NameType = "_3"
val _4 : NameType = "_4"
val _5 : NameType = "_5"
val _6 : NameType = "_6"
val _7 : NameType = "_7"
val _8 : NameType = "_8"
val _9 : NameType = "_9"
val _10 : NameType = "_10"
val _11 : NameType = "_11"
val _12 : NameType = "_12"
val _13 : NameType = "_13"
val _14 : NameType = "_14"
val _15 : NameType = "_15"
val _16 : NameType = "_16"
val _17 : NameType = "_17"
val _18 : NameType = "_18"
val _19 : NameType = "_19"
val _20 : NameType = "_20"
val _21 : NameType = "_21"
val _22 : NameType = "_22"
val x_0 : NameType = "x$0"
val x_1 : NameType = "x$1"
val x_2 : NameType = "x$2"
val x_3 : NameType = "x$3"
val x_4 : NameType = "x$4"
val x_5 : NameType = "x$5"
val x_6 : NameType = "x$6"
val x_7 : NameType = "x$7"
val x_8 : NameType = "x$8"
val x_9 : NameType = "x$9"
def syntheticParamName(i: Int): TermName = (i: @switch) match {
case 0 => nme.x_0
case 1 => nme.x_1
case 2 => nme.x_2
case 3 => nme.x_3
case 4 => nme.x_4
case 5 => nme.x_5
case 6 => nme.x_6
case 7 => nme.x_7
case 8 => nme.x_8
case 9 => nme.x_9
case _ => newTermName("x$" + i)
}
def productAccessorName(j: Int): TermName = (j: @switch) match {
case 1 => nme._1
case 2 => nme._2
case 3 => nme._3
case 4 => nme._4
case 5 => nme._5
case 6 => nme._6
case 7 => nme._7
case 8 => nme._8
case 9 => nme._9
case 10 => nme._10
case 11 => nme._11
case 12 => nme._12
case 13 => nme._13
case 14 => nme._14
case 15 => nme._15
case 16 => nme._16
case 17 => nme._17
case 18 => nme._18
case 19 => nme._19
case 20 => nme._20
case 21 => nme._21
case 22 => nme._22
case _ => newTermName("_" + j)
}
val ??? = encode("???")
val wrapRefArray: NameType = "wrapRefArray"
val wrapByteArray: NameType = "wrapByteArray"
val wrapShortArray: NameType = "wrapShortArray"
val wrapCharArray: NameType = "wrapCharArray"
val wrapIntArray: NameType = "wrapIntArray"
val wrapLongArray: NameType = "wrapLongArray"
val wrapFloatArray: NameType = "wrapFloatArray"
val wrapDoubleArray: NameType = "wrapDoubleArray"
val wrapBooleanArray: NameType = "wrapBooleanArray"
val wrapUnitArray: NameType = "wrapUnitArray"
val genericWrapArray: NameType = "genericWrapArray"
// Compiler utilized names
val AnnotatedType: NameType = "AnnotatedType"
val Annotation: NameType = "Annotation"
val Any: NameType = "Any"
val AnyVal: NameType = "AnyVal"
val Apply: NameType = "Apply"
val ArrayAnnotArg: NameType = "ArrayAnnotArg"
val CaseDef: NameType = "CaseDef"
val ClassInfoType: NameType = "ClassInfoType"
val ConstantType: NameType = "ConstantType"
val EmptyPackage: NameType = "EmptyPackage"
val EmptyPackageClass: NameType = "EmptyPackageClass"
val ExistentialType: NameType = "ExistentialType"
val Flag : NameType = "Flag"
val FlagsRepr: NameType = "FlagsRepr"
val Ident: NameType = "Ident"
val ImplicitParams: NameType = "ImplicitParams"
val Import: NameType = "Import"
val Literal: NameType = "Literal"
val LiteralAnnotArg: NameType = "LiteralAnnotArg"
val MethodType: NameType = "MethodType"
val Modifiers: NameType = "Modifiers"
val NestedAnnotArg: NameType = "NestedAnnotArg"
val New: NameType = "New"
val NoFlags: NameType = "NoFlags"
val NoSymbol: NameType = "NoSymbol"
val NoMods: NameType = "NoMods"
val Nothing: NameType = "Nothing"
val Null: NameType = "Null"
val NullaryMethodType: NameType = "NullaryMethodType"
val Object: NameType = "Object"
val PolyType: NameType = "PolyType"
val RefinedType: NameType = "RefinedType"
val RootPackage: NameType = "RootPackage"
val RootClass: NameType = "RootClass"
val Select: NameType = "Select"
val SelectFromTypeTree: NameType = "SelectFromTypeTree"
val SingleType: NameType = "SingleType"
val SuperType: NameType = "SuperType"
val This: NameType = "This"
val ThisType: NameType = "ThisType"
val Tuple2: NameType = "Tuple2"
val TYPE_ : NameType = "TYPE"
val TypeBounds: NameType = "TypeBounds"
val TypeRef: NameType = "TypeRef"
val TypeTree: NameType = "TypeTree"
val UNIT : NameType = "UNIT"
val accessor: NameType = "accessor"
val add_ : NameType = "add"
val annotation: NameType = "annotation"
val anyHash: NameType = "anyHash"
val anyValClass: NameType = "anyValClass"
val apply: NameType = "apply"
val applyDynamic: NameType = "applyDynamic"
val applyDynamicNamed: NameType = "applyDynamicNamed"
val applyOrElse: NameType = "applyOrElse"
val args : NameType = "args"
val arrayClass: NameType = "arrayClass"
val array_apply : NameType = "array_apply"
val array_clone : NameType = "array_clone"
val array_length : NameType = "array_length"
val array_update : NameType = "array_update"
val asModule: NameType = "asModule"
val asType: NameType = "asType"
val asInstanceOf_ : NameType = "asInstanceOf"
val asInstanceOf_Ob : NameType = "$asInstanceOf"
val box: NameType = "box"
val bytes: NameType = "bytes"
val c: NameType = "c"
val canEqual_ : NameType = "canEqual"
val classOf: NameType = "classOf"
val clone_ : NameType = "clone"
val collection: NameType = "collection"
val conforms: NameType = "$conforms" // dollar prefix to avoid accidental shadowing
val copy: NameType = "copy"
val create: NameType = "create"
val currentMirror: NameType = "currentMirror"
val delayedInit: NameType = "delayedInit"
val delayedInitArg: NameType = "delayedInit$body"
val dollarScope: NameType = "$scope"
val doubleHash: NameType = "doubleHash"
val drop: NameType = "drop"
val elem: NameType = "elem"
val noSelfType: NameType = "noSelfType"
val ensureAccessible : NameType = "ensureAccessible"
val eq: NameType = "eq"
val equalsNumChar : NameType = "equalsNumChar"
val equalsNumNum : NameType = "equalsNumNum"
val equalsNumObject : NameType = "equalsNumObject"
val equals_ : NameType = "equals"
val error: NameType = "error"
val ex: NameType = "ex"
val experimental: NameType = "experimental"
val f: NameType = "f"
val false_ : NameType = "false"
val filter: NameType = "filter"
val finalize_ : NameType = "finalize"
val find_ : NameType = "find"
val flatMap: NameType = "flatMap"
val floatHash: NameType = "floatHash"
val foreach: NameType = "foreach"
val freshTermName: NameType = "freshTermName"
val freshTypeName: NameType = "freshTypeName"
val get: NameType = "get"
val parameterTypes: NameType = "parameterTypes"
val hashCode_ : NameType = "hashCode"
val head : NameType = "head"
val immutable: NameType = "immutable"
val implicitly: NameType = "implicitly"
val in: NameType = "in"
val initialize : NameType = "initialize"
val initialized : NameType = "initialized"
val internal: NameType = "internal"
val inlinedEquals: NameType = "inlinedEquals"
val isArray: NameType = "isArray"
val isDefinedAt: NameType = "isDefinedAt"
val isEmpty: NameType = "isEmpty"
val isInstanceOf_ : NameType = "isInstanceOf"
val isInstanceOf_Ob : NameType = "$isInstanceOf"
val java: NameType = "java"
val key: NameType = "key"
val lang: NameType = "lang"
val length: NameType = "length"
val lengthCompare: NameType = "lengthCompare"
val longHash: NameType = "longHash"
val macroContext : NameType = "c"
val main: NameType = "main"
val manifestToTypeTag: NameType = "manifestToTypeTag"
val map: NameType = "map"
val materializeClassTag: NameType = "materializeClassTag"
val materializeWeakTypeTag: NameType = "materializeWeakTypeTag"
val materializeTypeTag: NameType = "materializeTypeTag"
val moduleClass : NameType = "moduleClass"
val mkAnnotation: NameType = "mkAnnotation"
val mkEarlyDef: NameType = "mkEarlyDef"
val mkIdent: NameType = "mkIdent"
val mkPackageStat: NameType = "mkPackageStat"
val mkRefineStat: NameType = "mkRefineStat"
val mkRefTree: NameType = "mkRefTree"
val mkSelect: NameType = "mkSelect"
val mkThis: NameType = "mkThis"
val mkTypeTree: NameType = "mkTypeTree"
val ne: NameType = "ne"
val newArray: NameType = "newArray"
val newFreeTerm: NameType = "newFreeTerm"
val newFreeType: NameType = "newFreeType"
val newNestedSymbol: NameType = "newNestedSymbol"
val newScopeWith: NameType = "newScopeWith"
val notifyAll_ : NameType = "notifyAll"
val notify_ : NameType = "notify"
val null_ : NameType = "null"
val pendingSuperCall: NameType = "pendingSuperCall"
val prefix : NameType = "prefix"
val productArity: NameType = "productArity"
val productElement: NameType = "productElement"
val productIterator: NameType = "productIterator"
val productPrefix: NameType = "productPrefix"
val readResolve: NameType = "readResolve"
val reify : NameType = "reify"
val reificationSupport : NameType = "reificationSupport"
val rootMirror : NameType = "rootMirror"
val runtime: NameType = "runtime"
val runtimeClass: NameType = "runtimeClass"
val runtimeMirror: NameType = "runtimeMirror"
val scala_ : NameType = "scala"
val selectDynamic: NameType = "selectDynamic"
val selectOverloadedMethod: NameType = "selectOverloadedMethod"
val selectTerm: NameType = "selectTerm"
val selectType: NameType = "selectType"
val self: NameType = "self"
val setAnnotations: NameType = "setAnnotations"
val setInfo: NameType = "setInfo"
val setSymbol: NameType = "setSymbol"
val setType: NameType = "setType"
val splice: NameType = "splice"
val staticClass : NameType = "staticClass"
val staticModule : NameType = "staticModule"
val staticPackage : NameType = "staticPackage"
val synchronized_ : NameType = "synchronized"
val ScalaDot: NameType = "ScalaDot"
val TermName: NameType = "TermName"
val this_ : NameType = "this"
val thisPrefix : NameType = "thisPrefix"
val toArray: NameType = "toArray"
val toList: NameType = "toList"
val toObjectArray : NameType = "toObjectArray"
val toStats: NameType = "toStats"
val TopScope: NameType = "TopScope"
val toString_ : NameType = "toString"
val toTypeConstructor: NameType = "toTypeConstructor"
val tpe : NameType = "tpe"
val tree : NameType = "tree"
val true_ : NameType = "true"
val typedProductIterator: NameType = "typedProductIterator"
val TypeName: NameType = "TypeName"
val typeTagToManifest: NameType = "typeTagToManifest"
val unapply: NameType = "unapply"
val unapplySeq: NameType = "unapplySeq"
val unbox: NameType = "unbox"
val universe: NameType = "universe"
val UnliftListElementwise: NameType = "UnliftListElementwise"
val UnliftListOfListsElementwise: NameType = "UnliftListOfListsElementwise"
val update: NameType = "update"
val updateDynamic: NameType = "updateDynamic"
val value: NameType = "value"
val valueOf : NameType = "valueOf"
val values : NameType = "values"
val wait_ : NameType = "wait"
val withFilter: NameType = "withFilter"
val xml: NameType = "xml"
val zero: NameType = "zero"
// quasiquote interpolators:
val q: NameType = "q"
val tq: NameType = "tq"
val cq: NameType = "cq"
val pq: NameType = "pq"
val fq: NameType = "fq"
// quasiquote's syntactic combinators
val SyntacticAnnotatedType: NameType = "SyntacticAnnotatedType"
val SyntacticApplied: NameType = "SyntacticApplied"
val SyntacticAppliedType: NameType = "SyntacticAppliedType"
val SyntacticAssign: NameType = "SyntacticAssign"
val SyntacticBlock: NameType = "SyntacticBlock"
val SyntacticClassDef: NameType = "SyntacticClassDef"
val SyntacticCompoundType: NameType = "SyntacticCompoundType"
val SyntacticDefDef: NameType = "SyntacticDefDef"
val SyntacticEmptyTypeTree: NameType = "SyntacticEmptyTypeTree"
val SyntacticExistentialType: NameType = "SyntacticExistentialType"
val SyntacticFilter: NameType = "SyntacticFilter"
val SyntacticFor: NameType = "SyntacticFor"
val SyntacticForYield: NameType = "SyntacticForYield"
val SyntacticFunction: NameType = "SyntacticFunction"
val SyntacticFunctionType: NameType = "SyntacticFunctionType"
val SyntacticImport: NameType = "SyntacticImport"
val SyntacticMatch: NameType = "SyntacticMatch"
val SyntacticNew: NameType = "SyntacticNew"
val SyntacticObjectDef: NameType = "SyntacticObjectDef"
val SyntacticPackageObjectDef: NameType = "SyntacticPackageObjectDef"
val SyntacticPartialFunction: NameType = "SyntacticPartialFunction"
val SyntacticPatDef: NameType = "SyntacticPatDef"
val SyntacticSelectTerm: NameType = "SyntacticSelectTerm"
val SyntacticSelectType: NameType = "SyntacticSelectType"
val SyntacticSingletonType: NameType = "SyntacticSingletonType"
val SyntacticTermIdent: NameType = "SyntacticTermIdent"
val SyntacticTraitDef: NameType = "SyntacticTraitDef"
val SyntacticTry: NameType = "SyntacticTry"
val SyntacticTuple: NameType = "SyntacticTuple"
val SyntacticTupleType: NameType = "SyntacticTupleType"
val SyntacticTypeApplied: NameType = "SyntacticTypeApplied"
val SyntacticTypeIdent: NameType = "SyntacticTypeIdent"
val SyntacticTypeProjection: NameType = "SyntacticTypeProjection"
val SyntacticValDef: NameType = "SyntacticValDef"
val SyntacticValEq: NameType = "SyntacticValEq"
val SyntacticValFrom: NameType = "SyntacticValFrom"
val SyntacticVarDef: NameType = "SyntacticVarDef"
// unencoded operators
object raw {
final val BANG : NameType = "!"
final val BAR : NameType = "|"
final val DOLLAR: NameType = "$"
final val GE: NameType = ">="
final val LE: NameType = "<="
final val MINUS: NameType = "-"
final val NE: NameType = "!="
final val PLUS : NameType = "+"
final val STAR : NameType = "*"
final val TILDE: NameType = "~"
final val isUnary: Set[Name] = Set(MINUS, PLUS, TILDE, BANG)
}
// value-conversion methods
val toByte: NameType = "toByte"
val toShort: NameType = "toShort"
val toChar: NameType = "toChar"
val toInt: NameType = "toInt"
val toLong: NameType = "toLong"
val toFloat: NameType = "toFloat"
val toDouble: NameType = "toDouble"
// primitive operation methods for structural types mostly
// overlap with the above, but not for these two.
val toCharacter: NameType = "toCharacter"
val toInteger: NameType = "toInteger"
def newLazyValSlowComputeName(lzyValName: Name) = (lzyValName stripSuffix MODULE_VAR_SUFFIX append LAZY_SLOW_SUFFIX).toTermName
// ASCII names for operators
val ADD = encode("+")
val AND = encode("&")
val ASR = encode(">>")
val CONS = encode("::")
val COLONPLUS = encode(":+")
val DIV = encode("/")
val EQ = encode("==")
val EQL = encode("=")
val GE = encode(">=")
val GT = encode(">")
val HASHHASH = encode("##")
val LE = encode("<=")
val LSL = encode("<<")
val LSR = encode(">>>")
val LT = encode("<")
val MINUS = encode("-")
val MINGT = encode("->")
val MOD = encode("%")
val MUL = encode("*")
val NE = encode("!=")
val OR = encode("|")
val PLUS = ADD // technically redundant, but ADD looks funny with MINUS
val PLUSPLUS = encode("++")
val SUB = MINUS // ... as does SUB with PLUS
val XOR = encode("^")
val ZAND = encode("&&")
val ZOR = encode("||")
// unary operators
val UNARY_~ = encode("unary_~")
val UNARY_+ = encode("unary_+")
val UNARY_- = encode("unary_-")
val UNARY_! = encode("unary_!")
// Grouped here so Cleanup knows what tests to perform.
val CommonOpNames = Set[Name](OR, XOR, AND, EQ, NE)
val BooleanOpNames = Set[Name](ZOR, ZAND, UNARY_!) ++ CommonOpNames
val add: NameType = "add"
val complement: NameType = "complement"
val divide: NameType = "divide"
val multiply: NameType = "multiply"
val negate: NameType = "negate"
val positive: NameType = "positive"
val shiftLogicalRight: NameType = "shiftLogicalRight"
val shiftSignedLeft: NameType = "shiftSignedLeft"
val shiftSignedRight: NameType = "shiftSignedRight"
val subtract: NameType = "subtract"
val takeAnd: NameType = "takeAnd"
val takeConditionalAnd: NameType = "takeConditionalAnd"
val takeConditionalOr: NameType = "takeConditionalOr"
val takeModulo: NameType = "takeModulo"
val takeNot: NameType = "takeNot"
val takeOr: NameType = "takeOr"
val takeXor: NameType = "takeXor"
val testEqual: NameType = "testEqual"
val testGreaterOrEqualThan: NameType = "testGreaterOrEqualThan"
val testGreaterThan: NameType = "testGreaterThan"
val testLessOrEqualThan: NameType = "testLessOrEqualThan"
val testLessThan: NameType = "testLessThan"
val testNotEqual: NameType = "testNotEqual"
def toUnaryName(name: TermName): TermName = name match {
case raw.MINUS => UNARY_-
case raw.PLUS => UNARY_+
case raw.TILDE => UNARY_~
case raw.BANG => UNARY_!
case _ => name
}
/** The name of a method which stands in for a primitive operation
* during structural type dispatch.
*/
def primitiveInfixMethodName(name: Name): TermName = name match {
case OR => takeOr
case XOR => takeXor
case AND => takeAnd
case EQ => testEqual
case NE => testNotEqual
case ADD => add
case SUB => subtract
case MUL => multiply
case DIV => divide
case MOD => takeModulo
case LSL => shiftSignedLeft
case LSR => shiftLogicalRight
case ASR => shiftSignedRight
case LT => testLessThan
case LE => testLessOrEqualThan
case GE => testGreaterOrEqualThan
case GT => testGreaterThan
case ZOR => takeConditionalOr
case ZAND => takeConditionalAnd
case _ => NO_NAME
}
/** Postfix/prefix, really.
*/
def primitivePostfixMethodName(name: Name): TermName = name match {
case UNARY_! => takeNot
case UNARY_+ => positive
case UNARY_- => negate
case UNARY_~ => complement
case `toByte` => toByte
case `toShort` => toShort
case `toChar` => toCharacter
case `toInt` => toInteger
case `toLong` => toLong
case `toFloat` => toFloat
case `toDouble` => toDouble
case _ => NO_NAME
}
def primitiveMethodName(name: Name): TermName =
primitiveInfixMethodName(name) match {
case NO_NAME => primitivePostfixMethodName(name)
case name => name
}
/** Translate a String into a list of simple TypeNames and TermNames.
* In all segments before the last, type/term is determined by whether
* the following separator char is '.' or '#'. In the last segment,
* the argument "assumeTerm" determines it. Examples:
*
* package foo {
* object Lorax { object Wog ; class Wog }
* class Lorax { object Zax ; class Zax }
* }
*
* f("foo.Lorax", true) == List("foo": Term, "Lorax": Term) // object Lorax
* f("foo.Lorax", false) == List("foo": Term, "Lorax": Type) // class Lorax
* f("Lorax.Wog", true) == List("Lorax": Term, "Wog": Term) // object Wog
* f("Lorax.Wog", false) == List("Lorax": Term, "Wog": Type) // class Wog
* f("Lorax#Zax", true) == List("Lorax": Type, "Zax": Term) // object Zax
* f("Lorax#Zax", false) == List("Lorax": Type, "Zax": Type) // class Zax
*
* Note that in actual scala syntax you cannot refer to object Zax without an
* instance of Lorax, so Lorax#Zax could only mean the type. One might think
* that Lorax#Zax.type would work, but this is not accepted by the parser.
* For the purposes of referencing that object, the syntax is allowed.
*/
def segments(name: String, assumeTerm: Boolean): List[Name] = {
def mkName(str: String, term: Boolean): Name =
if (term) newTermName(str) else newTypeName(str)
name.indexWhere(ch => ch == '.' || ch == '#') match {
// it's the last segment: the parameter tells us whether type or term
case -1 => if (name == "") scala.Nil else scala.List(mkName(name, assumeTerm))
// otherwise, we can tell based on whether '#' or '.' is the following char.
case idx =>
val (simple, div, rest) = (name take idx, name charAt idx, name drop idx + 1)
mkName(simple, div == '.') :: segments(rest, assumeTerm)
}
}
def newBitmapName(bitmapPrefix: Name, n: Int) = bitmapPrefix append ("" + n)
def isTransientBitmap(name: Name) = name == nme.BITMAP_TRANSIENT || name == nme.BITMAP_CHECKINIT_TRANSIENT
val BITMAP_NORMAL: NameType = BITMAP_PREFIX + "" // initialization bitmap for public/protected lazy vals
val BITMAP_TRANSIENT: NameType = BITMAP_PREFIX + "trans$" // initialization bitmap for transient lazy vals
val BITMAP_CHECKINIT: NameType = BITMAP_PREFIX + "init$" // initialization bitmap for checkinit values
val BITMAP_CHECKINIT_TRANSIENT: NameType = BITMAP_PREFIX + "inittrans$" // initialization bitmap for transient checkinit values
}
lazy val typeNames: tpnme.type = tpnme
object tpnme extends TypeNames { }
/** For fully qualified type names.
*/
object fulltpnme extends TypeNames {
val RuntimeNothing: NameType = "scala.runtime.Nothing$"
val RuntimeNull: NameType = "scala.runtime.Null$"
}
/** Java binary names, like scala/runtime/Nothing$.
*/
object binarynme {
def toBinary(name: Name) = name mapName (_.replace('.', '/'))
val RuntimeNothing = toBinary(fulltpnme.RuntimeNothing).toTypeName
val RuntimeNull = toBinary(fulltpnme.RuntimeNull).toTypeName
}
val javanme = nme.javaKeywords
lazy val termNames: nme.type = nme
object nme extends TermNames {
def moduleVarName(name: TermName): TermName =
newTermNameCached("" + name + MODULE_VAR_SUFFIX)
def getCause = sn.GetCause
def getClass_ = sn.GetClass
def getMethod_ = sn.GetMethod
def invoke_ = sn.Invoke
val isBoxedNumberOrBoolean: NameType = "isBoxedNumberOrBoolean"
val isBoxedNumber: NameType = "isBoxedNumber"
val reflPolyCacheName: NameType = "reflPoly$Cache"
val reflParamsCacheName: NameType = "reflParams$Cache"
val reflMethodName: NameType = "reflMethod$Method"
val argument: NameType = "<argument>"
}
class JavaKeywords {
private val kw = new KeywordSetBuilder
final val ABSTRACTkw: TermName = kw("abstract")
final val ASSERTkw: TermName = kw("assert")
final val BOOLEANkw: TermName = kw("boolean")
final val BREAKkw: TermName = kw("break")
final val BYTEkw: TermName = kw("byte")
final val CASEkw: TermName = kw("case")
final val CATCHkw: TermName = kw("catch")
final val CHARkw: TermName = kw("char")
final val CLASSkw: TermName = kw("class")
final val CONSTkw: TermName = kw("const")
final val CONTINUEkw: TermName = kw("continue")
final val DEFAULTkw: TermName = kw("default")
final val DOkw: TermName = kw("do")
final val DOUBLEkw: TermName = kw("double")
final val ELSEkw: TermName = kw("else")
final val ENUMkw: TermName = kw("enum")
final val EXTENDSkw: TermName = kw("extends")
final val FALSEkw: TermName = kw("false")
final val FINALkw: TermName = kw("final")
final val FINALLYkw: TermName = kw("finally")
final val FLOATkw: TermName = kw("float")
final val FORkw: TermName = kw("for")
final val IFkw: TermName = kw("if")
final val GOTOkw: TermName = kw("goto")
final val IMPLEMENTSkw: TermName = kw("implements")
final val IMPORTkw: TermName = kw("import")
final val INSTANCEOFkw: TermName = kw("instanceof")
final val INTkw: TermName = kw("int")
final val INTERFACEkw: TermName = kw("interface")
final val LONGkw: TermName = kw("long")
final val NATIVEkw: TermName = kw("native")
final val NEWkw: TermName = kw("new")
final val PACKAGEkw: TermName = kw("package")
final val PRIVATEkw: TermName = kw("private")
final val PROTECTEDkw: TermName = kw("protected")
final val PUBLICkw: TermName = kw("public")
final val RETURNkw: TermName = kw("return")
final val SHORTkw: TermName = kw("short")
final val STATICkw: TermName = kw("static")
final val STRICTFPkw: TermName = kw("strictfp")
final val SUPERkw: TermName = kw("super")
final val SWITCHkw: TermName = kw("switch")
final val SYNCHRONIZEDkw: TermName = kw("synchronized")
final val THISkw: TermName = kw("this")
final val THROWkw: TermName = kw("throw")
final val THROWSkw: TermName = kw("throws")
final val TRANSIENTkw: TermName = kw("transient")
final val TRUEkw: TermName = kw("true")
final val TRYkw: TermName = kw("try")
final val VOIDkw: TermName = kw("void")
final val VOLATILEkw: TermName = kw("volatile")
final val WHILEkw: TermName = kw("while")
final val keywords = kw.result
}
sealed abstract class SymbolNames {
protected val stringToTermName = null
protected val stringToTypeName = null
protected implicit def createNameType(s: String): TypeName = newTypeNameCached(s)
final val BoxedBoolean: TypeName = "java.lang.Boolean"
final val BoxedByte: TypeName = "java.lang.Byte"
final val BoxedCharacter: TypeName = "java.lang.Character"
final val BoxedDouble: TypeName = "java.lang.Double"
final val BoxedFloat: TypeName = "java.lang.Float"
final val BoxedInteger: TypeName = "java.lang.Integer"
final val BoxedLong: TypeName = "java.lang.Long"
final val BoxedNumber: TypeName = "java.lang.Number"
final val BoxedShort: TypeName = "java.lang.Short"
final val IOOBException: TypeName = "java.lang.IndexOutOfBoundsException"
final val InvTargetException: TypeName = "java.lang.reflect.InvocationTargetException"
final val MethodAsObject: TypeName = "java.lang.reflect.Method"
final val NPException: TypeName = "java.lang.NullPointerException"
final val Object: TypeName = "java.lang.Object"
final val Throwable: TypeName = "java.lang.Throwable"
final val GetCause: TermName = newTermName("getCause")
final val GetClass: TermName = newTermName("getClass")
final val GetClassLoader: TermName = newTermName("getClassLoader")
final val GetMethod: TermName = newTermName("getMethod")
final val Invoke: TermName = newTermName("invoke")
final val InvokeExact: TermName = newTermName("invokeExact")
final val Metafactory: TermName = newTermName("metafactory")
final val AltMetafactory: TermName = newTermName("altMetafactory")
final val Bootstrap: TermName = newTermName("bootstrap")
val Boxed = immutable.Map[TypeName, TypeName](
tpnme.Boolean -> BoxedBoolean,
tpnme.Byte -> BoxedByte,
tpnme.Char -> BoxedCharacter,
tpnme.Short -> BoxedShort,
tpnme.Int -> BoxedInteger,
tpnme.Long -> BoxedLong,
tpnme.Float -> BoxedFloat,
tpnme.Double -> BoxedDouble
)
}
lazy val sn: SymbolNames = new SymbolNames { }
}
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.publishLast = void 0;
var AsyncSubject_1 = require("../AsyncSubject");
var ConnectableObservable_1 = require("../observable/ConnectableObservable");
function publishLast() {
var subject = new AsyncSubject_1.AsyncSubject();
return function (source) { return new ConnectableObservable_1.ConnectableObservable(source, function () { return subject; }); };
}
exports.publishLast = publishLast;
//# sourceMappingURL=publishLast.js.map |
return {
["in-ipv6-bytes"] = 1046,
["in-ipv6-frag-reassembly-unneeded"] = 1,
["in-ipv6-packets"] = 1,
["memuse-ipv4-frag-reassembly-buffer"] = 728203264,
["memuse-ipv6-frag-reassembly-buffer"] = 728203264,
["out-ipv4-bytes"] = 1006,
["out-ipv4-frag"] = 2,
["out-ipv4-packets"] = 1,
}
|
package me.biocomp.hubitat_ci.api.device_api.zwave.commands.associationgrpinfov3
trait AssociationGroupNameReport {
abstract java.lang.String format()
abstract java.lang.String getCMD()
abstract java.lang.Short getCommandClassId()
abstract java.lang.Short getCommandId()
abstract java.lang.Short getGroupingIdentifier()
abstract java.lang.Short getLengthOfName()
abstract java.util.List getName()
abstract java.util.List getPayload()
abstract void setGroupingIdentifier(java.lang.Short a)
abstract void setLengthOfName(java.lang.Short a)
abstract void setName(java.util.List a)
}
|
#!/bin/tcsh
set nl=10
set Dim=4000
echo nl=$nl
echo Dim=$Dim
#compile mvt
chpl --fast mvt.chpl -o mvt
echo 'Cyclic (C)'
./mvt -nl $nl --dist=C --Dim=$Dim --messages
./mvt -nl $nl --dist=C --Dim=$Dim --timeit
echo 'Cyclic with modulo unrolling (CM)'
./mvt -nl $nl --dist=CM --Dim=$Dim --correct
./mvt -nl $nl --dist=CM --Dim=$Dim --messages
./mvt -nl $nl --dist=CM --Dim=$Dim --timeit
echo 'Block (B)'
./mvt -nl $nl --dist=B --Dim=$Dim --messages
./mvt -nl $nl --dist=B --Dim=$Dim --timeit
echo 'No distribution (NONE)'
./mvt -nl $nl --dist=NONE --Dim=$Dim --timeit
|
/* Example from
https://documentation.sas.com/?docsetId=proc&docsetTarget=n0ihaaujg5q5hen1ag5nl7wpvuvf.htm&docsetVersion=9.4&locale=en
*/
%let hz_loc = /folders/myfolders/haziris-sas;
%include "&hz_loc./macros/haziris_google.sas";
data piesales;
input Bakery $ 1-8 Flavor $ 10-19 Year PiesSold;
datalines;
Samford apple 2005 234
Samford apple 2006 288
Samford blueberry 2005 103
Samford blueberry 2006 143
Samford cherry 2005 173
Samford cherry 2006 195
Samford rhubarb 2005 26
Samford rhubarb 2006 28
Oak apple 2005 219
Oak apple 2006 371
Oak blueberry 2005 174
Oak blueberry 2006 206
Oak cherry 2005 226
Oak cherry 2006 311
Oak rhubarb 2005 51
Oak rhubarb 2006 56
Clyde apple 2005 213
Clyde apple 2006 415
Clyde blueberry 2005 177
Clyde blueberry 2006 201
Clyde cherry 2005 230
Clyde cherry 2006 328
Clyde rhubarb 2005 60
Clyde rhubarb 2006 59
;
proc sql;
create table temp as
select
Bakery,
Flavor,
SUM(PiesSold) AS TotalPiesSold
from piesales
group by
Bakery,
Flavor
order by
Bakery,
Flavor
;
quit;
proc transpose data=temp out=salesbybakery(drop=_name_);
by Bakery;
id Flavor;
var TotalPiesSold;
run;
data options;
o = "{isStacked: true}"; output;
run;
%hz_gg_column(
intable = salesbybakery,
outfile = "&hz_loc./examples/hz_gg_column_piesales_stacked.html",
options = options
);
|
@testset "NoneSelector" begin
st = Date(2019, 1, 1)
ed = Date(2019, 2, 1)
date_range = st:Day(1):ed
selector = NoneSelector()
@test selector isa DateSelector
validation, holdout = partition(date_range, selector)
@test validation == date_range
@test isempty(holdout)
end
|
module Main exposing (..)
{- A multi-line comment.
Imports should appear *above* multi-line comments.
-}
main =
text LibraryA.avril14th
|
library(dplyr)
library(readr)
library(tidyr)
library(caret)
library(caTools)
library(caretEnsemble)
data_train <- read.csv('./data/processed/processed_train.csv')
data_test <- read.csv('./data/processed/processed_test.csv')
data_pred <- read.csv('./data/processed/processed_pred.csv')
data_clean <- read.csv('./data/clean/clean_train_predict.csv')
# combining the train data
data <- bind_rows(data_train, data_test)
# splitting the cleaned data
data_clean_missing <- filter(data_clean, predict == 1)
data_clean_nomissing <- filter(data_clean, predict == 0)
# Create custom indices
my_folds <- createMultiFolds(y = data$brand, k = 10, times = 3)
# Create reusable trainControl object: myControl
fitControl <- trainControl(
summaryFunction = twoClassSummary,
classProbs = TRUE,
verboseIter = TRUE,
savePredictions = 'final',
index = my_folds
)
target <- 'brand'
predictors <- names(data)[!names(data) %in% target]
fit_c5 <- train(
data[, predictors],
data[, target],
trControl = fitControl,
method = 'C5.0',
metric = 'ROC'
)
saveRDS(fit_c5, './models/C5.0_full.rds')
|
(ns tiltontec.tag.gen
(:require [tiltontec.model.core :refer [make] :as md]
[#?(:cljs cljs.pprint :clj clojure.pprint) :refer [pprint]]))
(def on-event-attr-template
"(function () { ~a(event~{,~s~})})()")
(defmacro on-event [fname & cb-args]
`(let [fn-name# (str/replace
(str/replace (name '~fname)
\- \_) \/ \.)]
;;;(println :on-event-calling fn-name# (string? fn-name#))
(pp/cl-format nil on-event-attr-template fn-name# (list ~@cb-args))))
(defmacro oex [fname & cb-args]
`(let [fn-name# (str/replace
(str/replace (name '~fname)
\- \_) \/ \.)]
;;;(println :on-event-calling fn-name# (string? fn-name#))
(pp/cl-format nil on-event-attr-template fn-name# (list ~@cb-args))))
#_
(defmacro on-eventx [[fname & cb-args]]
;(println :oex!!!!! fname)
;(println :oex!!! (type fname))
`(println :himom))
; (let [fn-name# ,(str/replace
; (str/replace (name fname)
; \- \_) \/ \.)]
;;(println :on-eventx-calling fn-name# (string? fn-name#))
; (pp/cl-format nil on-event-attr-template fn-name# (list ~@cb-args))))
(def tag-dom-sid (atom -1))
(def id-js (atom {}))
(defn dom-tag [dom]
(let [tag (get @id-js (.-id dom))]
;;(println :tags (keys @id-js))
(assert tag (str "dom-tag did not find js for id " (.-id dom)
" of dom " dom))
tag))
(defn make-tag [tag attrs c?kids]
;; (println :mtag (count attrs))
(let [dom-sid (swap! tag-dom-sid inc)
js-obj (apply make
:type :tiltontec.tag.html/tag
:tag tag
(conj attrs
:id dom-sid
:kids c?kids))]
;; (println :storing-id-js dom-sid tag)
(swap! id-js assoc (str dom-sid) js-obj)
js-obj))
(defmacro deftag [tag]
(let [kids-sym (gensym "kids")
tag-name (str tag)
attrs-sym (gensym "attrs")]
`(defmacro ~tag [[& ~attrs-sym] & ~kids-sym]
`(tiltontec.tag.gen/make-tag ~~tag-name [~@~attrs-sym]
(tiltontec.model.core/c?kids ~@~kids-sym)))))
(declare section label header footer h1 input img p span a ul li div button)
(deftag section)
(deftag header)
(deftag span)
(deftag footer)
(deftag h1)
(deftag button)
(deftag div)
(deftag label)
(deftag img)
(deftag input)
(deftag p)
(deftag a)
(deftag ul)
(deftag li)
|
<%--
Created by IntelliJ IDEA.
User: qianl
Date: 6/18/2016
Time: 12:03 AM
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>${title}</title>
</head>
<body>
${posts}
</body>
</html>
|
(ns reagent-talk.core
(:require [reagent.core :as reagent :refer [atom]]
[reagent.session :as session]
[secretary.core :as secretary :include-macros true]
[goog.events :as events]
[goog.history.EventType :as EventType]
[cljsjs.react :as react])
(:import goog.History))
;; -------------------------
;; Model
;; -------------------------
;; Views
(defn timer-component
([] (timer-component 0))
([init-value]
(let [seconds-elapsed (atom init-value)] ;; setup, and local state
(fn [] ;; inner, render function is returned
(js/setTimeout #(swap! seconds-elapsed inc) 1000)
[:div "Seconds Elapsed: " @seconds-elapsed]))))
(defn counter-component []
(let [click-count (atom 0)]
(fn []
[:div
"The atom " [:code "click-count"] " has value : "
@click-count ". "
[:input {:type "button" :value "Click me!"
:on-click #(swap! click-count inc)}]])))
(defn home-page []
[:div [:h2 "Reagent Talk"]
[:ol
[:li [:a {:href "#/cljs"} "ClojureScript"]]
[:li [:a {:href "#/react"} "react.js concepts"]]
[:li [:a {:href "#/atom"} "atom"]]
[:li [:a {:href "#/reagent"} "reagent"]]
[:li [:a {:href "#/others"} "other libraries"]]
[:li "play time! / demo time"]]])
(defn out-link [link text]
[:a {:href link :target "_blank"} text]
)
(defn react-page []
[:div [:h2 (out-link "https://facebook.github.io/react/"
"React.js") " by Facebook"]
[:ul [:li "virtual DOM"]
[:li "one-way data flow " [:br]
[:code "State->Component"]]
[:li "re-render, don't mutate"]]
])
(defn clojurescript-page []
[:div [:h2 "ClojureScript"]
[:ul
[:li "Clojure compiled to javascript"]
[:li "Using " (out-link "https://developers.google.com/closure" "Google Closure Tools/Library")]
[:li "Source map available"]
[:li "Figwheel"]]])
(defn atom-page []
[:div [:h2 "Atoms"]
(out-link "http://clojure.org/atoms" "Atoms")
" provide a way to manage share, synchronous, independent state (not coordinated)."
[:ol
[:li "create atom: "
(out-link "http://clojuredocs.org/clojure.core/atom"
"atom") [:br]
" example: " [:code "(def counter (atom 0))"]]
[:li "acces state: "
(out-link "http://clojuredocs.org/clojure.core/deref"
"@ / deref") [:br]
" example: " [:code "@counter"]]
[:li "change value: "
(out-link "http://clojuredocs.org/clojure.core/swap!"
"!swap") [:br]
" example: " [:code "(swap! counter inc)"]]]])
(defn reagent-page []
[:div [:h2 "Reagent by Dan Holmsand"]
[:ol
[:li "components: cljs functions & data that describe the
UI with a Hiccup-like syntax"]
[:li "state: atoms"]
[:li "bootstrap: " [:code "reagent.core/render-component"]
[:li [:a {:href "http://reagent-project.github.io/"
:target "_blank"}
"the docs & examples"
]]
[counter-component]
[timer-component]]]
"Get started >> "[:code "lein new reagent my-cool-spa"]])
(defn others-page []
[:div [:h2 "Other cljs libraries for SPAs."]
[:ul
[:li "core/async " (out-link "https://github.com/cognitect/async-webinar/blob/master/src/webinar/core.cljs" "(examples)")]
[:li (out-link "https://github.com/gf3/secretary"
"Secretary")
" client-site router"]
[:li [:a {:href "https://github.com/JulianBirch/cljs-ajax" :target "_blank"}
"cljs-ajax"]
" simple Ajax client"]
[:li [:a {:href "https://github.com/ptaoussanis/tower" :target "_blank"}
"Tower"]
" i18n and l10n library"]
[:li "..."]]
[:h2 [:a {:href "http://www.luminusweb.net/" :target "_blank"} "Luminus"]]
" a micro-framework that uses all the above (version 2)"]
)
(defn current-page []
[:div [(session/get :current-page)]])
;; -------------------------
;; Routes
(secretary/set-config! :prefix "#")
(secretary/defroute "/" []
(session/put! :current-page #'home-page))
(secretary/defroute "/react" []
(session/put! :current-page #'react-page))
(secretary/defroute "/cljs" []
(session/put! :current-page #'clojurescript-page))
(secretary/defroute "/reagent" []
(session/put! :current-page #'reagent-page))
(secretary/defroute "/atom" []
(session/put! :current-page #'atom-page))
(secretary/defroute "/others" []
(session/put! :current-page #'others-page))
;; -------------------------
;; History
;; must be called after routes have been defined
(defn hook-browser-navigation! []
(doto (History.)
(events/listen
EventType/NAVIGATE
(fn [event]
(secretary/dispatch! (.-token event))))
(.setEnabled true)))
;; -------------------------
;; Initialize app
(defn mount-root []
(reagent/render [current-page] (.getElementById js/document "app")))
(defn init! []
(hook-browser-navigation!)
(mount-root))
|
95.1
# This WEPP soil input file was made using USDA-SCS Soil-5 (1992) data
# base. Assumptions: soil albedo=0.23, initial sat.=0.75. If you have
# any question, please contact Reza Savabi, Ph: (317)-494-5051
# Soil Name: KEWAUNEE Rec. ID: WI8093 Tex.:silt loam
1 1
'KEWAUNEE' 'SIL' 4 .23 .75 5417800.00 .020228 3.50 4.58
203.2 27.4 11.5 2.50 10.2 2.8
279.4 37.8 22.5 .83 11.3 2.9
635.0 26.8 47.5 .28 23.8 7.9
939.8 26.8 47.5 .09 23.8 8.2
|
require "bundler/gem_helper"
module Geminabox
module RakeTasks
def self.patch
Bundler::GemHelper.prepend(self)
end
def install
super
Rake.application.instance_variable_get("@tasks").delete("release")
desc "Create tag #{version_tag} and build and push #{name}-#{version}.gem to your gem in a box server"
task 'release' => ['build', 'release:guard_clean',
'release:source_control_push', 'release:rubygem_push'] do
end
end
protected
def rubygem_push(path)
Bundler.with_clean_env do
sh("bundle exec gem inabox '#{path}'")
Bundler.ui.confirm "Pushed #{name} #{version}"
end
end
end
end
Geminabox::RakeTasks.patch
require "bundler/gem_tasks"
|
{
"id": "093815b3-2fb7-43d0-84fc-3490447cd1ef",
"modelName": "GMFolder",
"mvc": "1.1",
"name": "093815b3-2fb7-43d0-84fc-3490447cd1ef",
"children": [
],
"filterType": "GMTileSet",
"folderName": "tilesets",
"isDefaultView": false,
"localisedFolderName": "ResourceTree_Tilesets"
} |
package config
import (
"fmt"
"math/big"
"net/url"
"os"
"path/filepath"
"reflect"
"regexp"
"sync"
"time"
"github.com/gin-gonic/contrib/sessions"
"github.com/multiformats/go-multiaddr"
"github.com/pkg/errors"
uuid "github.com/satori/go.uuid"
"github.com/spf13/viper"
"go.uber.org/zap/zapcore"
"github.com/smartcontractkit/chainlink/core/assets"
"github.com/smartcontractkit/chainlink/core/chains"
"github.com/smartcontractkit/chainlink/core/config/envvar"
"github.com/smartcontractkit/chainlink/core/config/parse"
"github.com/smartcontractkit/chainlink/core/logger"
"github.com/smartcontractkit/chainlink/core/static"
"github.com/smartcontractkit/chainlink/core/store/dialects"
"github.com/smartcontractkit/chainlink/core/store/models"
"github.com/smartcontractkit/chainlink/core/utils"
)
//go:generate mockery --name GeneralConfig --output ./mocks/ --case=underscore
// this permission grants read / write access to file owners only
const readWritePerms = os.FileMode(0600)
var (
ErrUnset = errors.New("env var unset")
ErrInvalid = errors.New("env var invalid")
configFileNotFoundError = reflect.TypeOf(viper.ConfigFileNotFoundError{})
)
// FeatureFlags contains bools that toggle various features or chains
// TODO: document the new ones
type FeatureFlags interface {
FeatureExternalInitiators() bool
FeatureFeedsManager() bool
FeatureOffchainReporting() bool
FeatureOffchainReporting2() bool
FeatureUICSAKeys() bool
AutoPprofEnabled() bool
EVMEnabled() bool
EVMRPCEnabled() bool
KeeperCheckUpkeepGasPriceFeatureEnabled() bool
P2PEnabled() bool
SolanaEnabled() bool
TerraEnabled() bool
}
type GeneralOnlyConfig interface {
Validate() error
SetLogLevel(lvl zapcore.Level) error
SetLogSQL(logSQL bool)
FeatureFlags
AdminCredentialsFile() string
AdvisoryLockCheckInterval() time.Duration
AdvisoryLockID() int64
AllowOrigins() string
AppID() uuid.UUID
AuthenticatedRateLimit() int64
AuthenticatedRateLimitPeriod() models.Duration
AutoPprofBlockProfileRate() int
AutoPprofCPUProfileRate() int
AutoPprofGatherDuration() models.Duration
AutoPprofGatherTraceDuration() models.Duration
AutoPprofGoroutineThreshold() int
AutoPprofMaxProfileSize() utils.FileSize
AutoPprofMemProfileRate() int
AutoPprofMemThreshold() utils.FileSize
AutoPprofMutexProfileFraction() int
AutoPprofPollInterval() models.Duration
AutoPprofProfileRoot() string
BlockBackfillDepth() uint64
BlockBackfillSkip() bool
BridgeResponseURL() *url.URL
CertFile() string
ClientNodeURL() string
DatabaseBackupDir() string
DatabaseBackupFrequency() time.Duration
DatabaseBackupMode() DatabaseBackupMode
DatabaseBackupOnVersionUpgrade() bool
DatabaseBackupURL() *url.URL
DatabaseListenerMaxReconnectDuration() time.Duration
DatabaseListenerMinReconnectInterval() time.Duration
DatabaseLockingMode() string
DatabaseURL() url.URL
DefaultChainID() *big.Int
DefaultHTTPAllowUnrestrictedNetworkAccess() bool
DefaultHTTPLimit() int64
DefaultHTTPTimeout() models.Duration
DefaultLogLevel() zapcore.Level
Dev() bool
ShutdownGracePeriod() time.Duration
EthereumHTTPURL() *url.URL
EthereumSecondaryURLs() []url.URL
EthereumURL() string
ExplorerAccessKey() string
ExplorerSecret() string
ExplorerURL() *url.URL
FMDefaultTransactionQueueDepth() uint32
FMSimulateTransactions() bool
GetAdvisoryLockIDConfiguredOrDefault() int64
GetDatabaseDialectConfiguredOrDefault() dialects.DialectName
HTTPServerWriteTimeout() time.Duration
InsecureFastScrypt() bool
InsecureSkipVerify() bool
JSONConsole() bool
JobPipelineMaxRunDuration() time.Duration
JobPipelineReaperInterval() time.Duration
JobPipelineReaperThreshold() time.Duration
JobPipelineResultWriteQueueDepth() uint64
KeeperDefaultTransactionQueueDepth() uint32
KeeperGasPriceBufferPercent() uint32
KeeperGasTipCapBufferPercent() uint32
KeeperMaximumGracePeriod() int64
KeeperRegistryCheckGasOverhead() uint64
KeeperRegistryPerformGasOverhead() uint64
KeeperRegistrySyncInterval() time.Duration
KeeperRegistrySyncUpkeepQueueSize() uint32
KeyFile() string
LeaseLockDuration() time.Duration
LeaseLockRefreshInterval() time.Duration
LogFileDir() string
LogLevel() zapcore.Level
LogSQL() bool
LogToDisk() bool
LogUnixTimestamps() bool
MigrateDatabase() bool
ORMMaxIdleConns() int
ORMMaxOpenConns() int
Port() uint16
RPID() string
RPOrigin() string
ReaperExpiration() models.Duration
RootDir() string
SecureCookies() bool
SessionOptions() sessions.Options
SessionSecret() ([]byte, error)
SessionTimeout() models.Duration
TLSCertPath() string
TLSDir() string
TLSHost() string
TLSKeyPath() string
TLSPort() uint16
TLSRedirect() bool
TelemetryIngressLogging() bool
TelemetryIngressServerPubKey() string
TelemetryIngressURL() *url.URL
TelemetryIngressBufferSize() uint
TelemetryIngressMaxBatchSize() uint
TelemetryIngressSendInterval() time.Duration
TelemetryIngressUseBatchSend() bool
TriggerFallbackDBPollInterval() time.Duration
UnAuthenticatedRateLimit() int64
UnAuthenticatedRateLimitPeriod() models.Duration
}
// GlobalConfig holds global ENV overrides for EVM chains
// If set the global ENV will override everything
// The second bool indicates if it is set or not
type GlobalConfig interface {
GlobalBalanceMonitorEnabled() (bool, bool)
GlobalBlockEmissionIdleWarningThreshold() (time.Duration, bool)
GlobalBlockHistoryEstimatorBatchSize() (uint32, bool)
GlobalBlockHistoryEstimatorBlockDelay() (uint16, bool)
GlobalBlockHistoryEstimatorBlockHistorySize() (uint16, bool)
GlobalBlockHistoryEstimatorEIP1559FeeCapBufferBlocks() (uint16, bool)
GlobalBlockHistoryEstimatorTransactionPercentile() (uint16, bool)
GlobalChainType() (string, bool)
GlobalEthTxReaperInterval() (time.Duration, bool)
GlobalEthTxReaperThreshold() (time.Duration, bool)
GlobalEthTxResendAfterThreshold() (time.Duration, bool)
GlobalEvmDefaultBatchSize() (uint32, bool)
GlobalEvmEIP1559DynamicFees() (bool, bool)
GlobalEvmFinalityDepth() (uint32, bool)
GlobalEvmGasBumpPercent() (uint16, bool)
GlobalEvmGasBumpThreshold() (uint64, bool)
GlobalEvmGasBumpTxDepth() (uint16, bool)
GlobalEvmGasBumpWei() (*big.Int, bool)
GlobalEvmGasFeeCapDefault() (*big.Int, bool)
GlobalEvmGasLimitDefault() (uint64, bool)
GlobalEvmGasLimitMultiplier() (float32, bool)
GlobalEvmGasLimitTransfer() (uint64, bool)
GlobalEvmGasPriceDefault() (*big.Int, bool)
GlobalEvmGasTipCapDefault() (*big.Int, bool)
GlobalEvmGasTipCapMinimum() (*big.Int, bool)
GlobalEvmHeadTrackerHistoryDepth() (uint32, bool)
GlobalEvmHeadTrackerMaxBufferSize() (uint32, bool)
GlobalEvmHeadTrackerSamplingInterval() (time.Duration, bool)
GlobalEvmLogBackfillBatchSize() (uint32, bool)
GlobalEvmMaxGasPriceWei() (*big.Int, bool)
GlobalEvmMaxInFlightTransactions() (uint32, bool)
GlobalEvmMaxQueuedTransactions() (uint64, bool)
GlobalEvmMinGasPriceWei() (*big.Int, bool)
GlobalEvmNonceAutoSync() (bool, bool)
GlobalEvmRPCDefaultBatchSize() (uint32, bool)
GlobalFlagsContractAddress() (string, bool)
GlobalGasEstimatorMode() (string, bool)
GlobalLinkContractAddress() (string, bool)
GlobalMinIncomingConfirmations() (uint32, bool)
GlobalMinRequiredOutgoingConfirmations() (uint64, bool)
GlobalMinimumContractPayment() (*assets.Link, bool)
OCR1Config
OCR2Config
P2PNetworking
P2PV1Networking
P2PV2Networking
}
type GeneralConfig interface {
GeneralOnlyConfig
GlobalConfig
}
// generalConfig holds parameters used by the application which can be overridden by
// setting environment variables.
//
// If you add an entry here which does not contain sensitive information, you
// should also update presenters.ConfigWhitelist and cmd_test.TestClient_RunNodeShowsEnv.
type generalConfig struct {
lggr logger.Logger
viper *viper.Viper
secretGenerator SecretGenerator
randomP2PPort uint16
randomP2PPortMtx sync.RWMutex
dialect dialects.DialectName
advisoryLockID int64
logLevel zapcore.Level
defaultLogLevel zapcore.Level
logSQL bool
logMutex sync.RWMutex
genAppID sync.Once
appID uuid.UUID
}
// NewGeneralConfig returns the config with the environment variables set to their
// respective fields, or their defaults if environment variables are not set.
func NewGeneralConfig(lggr logger.Logger) GeneralConfig {
v := viper.New()
c := newGeneralConfigWithViper(v, lggr.Named("GeneralConfig"))
c.secretGenerator = FilePersistedSecretGenerator{}
c.dialect = dialects.Postgres
return c
}
func newGeneralConfigWithViper(v *viper.Viper, lggr logger.Logger) (config *generalConfig) {
schemaT := reflect.TypeOf(envvar.ConfigSchema{})
for index := 0; index < schemaT.NumField(); index++ {
item := schemaT.FieldByIndex([]int{index})
name := item.Tag.Get("env")
def, exists := item.Tag.Lookup("default")
if exists {
v.SetDefault(name, def)
}
_ = v.BindEnv(name, name)
}
config = &generalConfig{
lggr: lggr,
viper: v,
}
if err := utils.EnsureDirAndMaxPerms(config.RootDir(), os.FileMode(0700)); err != nil {
lggr.Fatalf(`Error creating root directory "%s": %+v`, config.RootDir(), err)
}
v.SetConfigName("chainlink")
v.AddConfigPath(config.RootDir())
err := v.ReadInConfig()
if err != nil && reflect.TypeOf(err) != configFileNotFoundError {
lggr.Warnf("Unable to load config file: %v\n", err)
}
ll, invalid := envvar.LogLevel.ParseLogLevel()
if invalid != "" {
lggr.Error(invalid)
}
config.defaultLogLevel = ll
config.logLevel = config.defaultLogLevel
config.logSQL = viper.GetBool(envvar.Name("LogSQL"))
return
}
// Validate performs basic sanity checks on config and returns error if any
// misconfiguration would be fatal to the application
func (c *generalConfig) Validate() error {
if c.P2PAnnouncePort() != 0 && c.P2PAnnounceIP() == nil {
return errors.Errorf("P2P_ANNOUNCE_PORT was given as %v but P2P_ANNOUNCE_IP was unset. You must also set P2P_ANNOUNCE_IP if P2P_ANNOUNCE_PORT is set", c.P2PAnnouncePort())
}
if _, exists := os.LookupEnv("MINIMUM_CONTRACT_PAYMENT"); exists {
return errors.Errorf("MINIMUM_CONTRACT_PAYMENT is deprecated, use MINIMUM_CONTRACT_PAYMENT_LINK_JUELS instead.")
}
if _, exists := os.LookupEnv("ETH_DISABLED"); exists {
c.lggr.Warn(`DEPRECATION WARNING: ETH_DISABLED has been deprecated.
This warning will become a fatal error in a future release. Please switch to using one of the two options below instead:
- EVM_ENABLED=false - set this if you wish to completely disable all EVM chains and jobs and prevent them from ever loading (this is probably the one you want).
- EVM_RPC_ENABLED=false - set this if you wish to load all EVM chains and jobs, but prevent any RPC calls to the eth node (the old behaviour).
`)
}
if _, exists := os.LookupEnv("EVM_DISABLED"); exists {
c.lggr.Warn(`DEPRECATION WARNING: EVM_DISABLED has been deprecated and superceded by EVM_ENABLED.
This warning will become a fatal error in a future release. Please use the following instead to disable EVM chains:
EVM_ENABLED=false
`)
}
if _, err := c.OCRKeyBundleID(); errors.Cause(err) == ErrInvalid {
return err
}
if _, err := c.OCRTransmitterAddress(); errors.Cause(err) == ErrInvalid {
return err
}
if peers, err := c.P2PBootstrapPeers(); err == nil {
for i := range peers {
if _, err := multiaddr.NewMultiaddr(peers[i]); err != nil {
return errors.Errorf("p2p bootstrap peer %d is invalid: err %v", i, err)
}
}
}
if me := c.OCRMonitoringEndpoint(); me != "" {
if _, err := url.Parse(me); err != nil {
return errors.Wrapf(err, "invalid monitoring url: %s", me)
}
}
if ct, set := c.GlobalChainType(); set && !chains.ChainType(ct).IsValid() {
return errors.Errorf("CHAIN_TYPE is invalid: %s", ct)
}
if c.EthereumURL() == "" {
if c.EthereumHTTPURL() != nil {
c.lggr.Warn("ETH_HTTP_URL has no effect when ETH_URL is not set")
}
if len(c.EthereumSecondaryURLs()) > 0 {
c.lggr.Warn("ETH_SECONDARY_URL/ETH_SECONDARY_URLS have no effect when ETH_URL is not set")
}
}
// Warn on legacy OCR env vars
if c.OCRDHTLookupInterval() != 0 {
c.lggr.Warn("OCR_DHT_LOOKUP_INTERVAL is deprecated, use P2P_DHT_LOOKUP_INTERVAL instead")
}
if c.OCRBootstrapCheckInterval() != 0 {
c.lggr.Warn("OCR_BOOTSTRAP_CHECK_INTERVAL is deprecated, use P2P_BOOTSTRAP_CHECK_INTERVAL instead")
}
if c.OCRIncomingMessageBufferSize() != 0 {
c.lggr.Warn("OCR_INCOMING_MESSAGE_BUFFER_SIZE is deprecated, use P2P_INCOMING_MESSAGE_BUFFER_SIZE instead")
}
if c.OCROutgoingMessageBufferSize() != 0 {
c.lggr.Warn("OCR_OUTGOING_MESSAGE_BUFFER_SIZE is deprecated, use P2P_OUTGOING_MESSAGE_BUFFER_SIZE instead")
}
if c.OCRNewStreamTimeout() != 0 {
c.lggr.Warn("OCR_NEW_STREAM_TIMEOUT is deprecated, use P2P_NEW_STREAM_TIMEOUT instead")
}
switch c.DatabaseLockingMode() {
case "dual", "lease", "advisorylock", "none":
default:
return errors.Errorf("unrecognised value for DATABASE_LOCKING_MODE: %s (valid options are 'dual', 'lease', 'advisorylock' or 'none')", c.DatabaseLockingMode())
}
if c.LeaseLockRefreshInterval() > c.LeaseLockDuration()/2 {
return errors.Errorf("LEASE_LOCK_REFRESH_INTERVAL must be less than or equal to half of LEASE_LOCK_DURATION (got LEASE_LOCK_REFRESH_INTERVAL=%s, LEASE_LOCK_DURATION=%s)", c.LeaseLockRefreshInterval().String(), c.LeaseLockDuration().String())
}
if c.viper.GetString(envvar.Name("LogFileDir")) != "" && !c.LogToDisk() {
c.lggr.Warn("LOG_FILE_DIR is ignored and has no effect when LOG_TO_DISK is not enabled")
}
return nil
}
func (c *generalConfig) GetAdvisoryLockIDConfiguredOrDefault() int64 {
return c.advisoryLockID
}
func (c *generalConfig) GetDatabaseDialectConfiguredOrDefault() dialects.DialectName {
return c.dialect
}
// AllowOrigins returns the CORS hosts used by the frontend.
func (c *generalConfig) AllowOrigins() string {
return c.viper.GetString(envvar.Name("AllowOrigins"))
}
func (c *generalConfig) AppID() uuid.UUID {
c.genAppID.Do(func() {
c.appID = uuid.NewV4()
})
return c.appID
}
// AdminCredentialsFile points to text file containing admin credentials for logging in
func (c *generalConfig) AdminCredentialsFile() string {
fieldName := "AdminCredentialsFile"
file := c.viper.GetString(envvar.Name(fieldName))
defaultValue, _ := envvar.DefaultValue(fieldName)
if file == defaultValue {
return filepath.Join(c.RootDir(), "apicredentials")
}
return file
}
// AuthenticatedRateLimit defines the threshold to which authenticated requests
// get limited. More than this many requests per AuthenticatedRateLimitPeriod will be rejected.
func (c *generalConfig) AuthenticatedRateLimit() int64 {
return c.viper.GetInt64(envvar.Name("AuthenticatedRateLimit"))
}
// AuthenticatedRateLimitPeriod defines the period to which authenticated requests get limited
func (c *generalConfig) AuthenticatedRateLimitPeriod() models.Duration {
return models.MustMakeDuration(c.getWithFallback("AuthenticatedRateLimitPeriod", parse.Duration).(time.Duration))
}
func (c *generalConfig) AutoPprofEnabled() bool {
return c.viper.GetBool(envvar.Name("AutoPprofEnabled"))
}
func (c *generalConfig) AutoPprofProfileRoot() string {
root := c.viper.GetString(envvar.Name("AutoPprofProfileRoot"))
if root == "" {
return c.RootDir()
}
return root
}
func (c *generalConfig) AutoPprofPollInterval() models.Duration {
return models.MustMakeDuration(c.getWithFallback("AutoPprofPollInterval", parse.Duration).(time.Duration))
}
func (c *generalConfig) AutoPprofGatherDuration() models.Duration {
return models.MustMakeDuration(c.getWithFallback("AutoPprofGatherDuration", parse.Duration).(time.Duration))
}
func (c *generalConfig) AutoPprofGatherTraceDuration() models.Duration {
return models.MustMakeDuration(c.getWithFallback("AutoPprofGatherTraceDuration", parse.Duration).(time.Duration))
}
func (c *generalConfig) AutoPprofMaxProfileSize() utils.FileSize {
return c.getWithFallback("AutoPprofMaxProfileSize", parse.FileSize).(utils.FileSize)
}
func (c *generalConfig) AutoPprofCPUProfileRate() int {
return c.viper.GetInt(envvar.Name("AutoPprofCPUProfileRate"))
}
func (c *generalConfig) AutoPprofMemProfileRate() int {
return c.viper.GetInt(envvar.Name("AutoPprofMemProfileRate"))
}
func (c *generalConfig) AutoPprofBlockProfileRate() int {
return c.viper.GetInt(envvar.Name("AutoPprofBlockProfileRate"))
}
func (c *generalConfig) AutoPprofMutexProfileFraction() int {
return c.viper.GetInt(envvar.Name("AutoPprofMutexProfileFraction"))
}
func (c *generalConfig) AutoPprofMemThreshold() utils.FileSize {
return c.getWithFallback("AutoPprofMemThreshold", parse.FileSize).(utils.FileSize)
}
func (c *generalConfig) AutoPprofGoroutineThreshold() int {
return c.viper.GetInt(envvar.Name("AutoPprofGoroutineThreshold"))
}
// BlockBackfillDepth specifies the number of blocks before the current HEAD that the
// log broadcaster will try to re-consume logs from
func (c *generalConfig) BlockBackfillDepth() uint64 {
return c.getWithFallback("BlockBackfillDepth", parse.Uint64).(uint64)
}
// BlockBackfillSkip enables skipping of very long log backfills
func (c *generalConfig) BlockBackfillSkip() bool {
return c.getWithFallback("BlockBackfillSkip", parse.Bool).(bool)
}
// BridgeResponseURL represents the URL for bridges to send a response to.
func (c *generalConfig) BridgeResponseURL() *url.URL {
return c.getWithFallback("BridgeResponseURL", parse.URL).(*url.URL)
}
// ClientNodeURL is the URL of the Ethereum node this Chainlink node should connect to.
func (c *generalConfig) ClientNodeURL() string {
return c.viper.GetString(envvar.Name("ClientNodeURL"))
}
// FeatureUICSAKeys enables the CSA Keys UI Feature.
func (c *generalConfig) FeatureUICSAKeys() bool {
return c.getWithFallback("FeatureUICSAKeys", parse.Bool).(bool)
}
func (c *generalConfig) DatabaseListenerMinReconnectInterval() time.Duration {
return c.getWithFallback("DatabaseListenerMinReconnectInterval", parse.Duration).(time.Duration)
}
func (c *generalConfig) DatabaseListenerMaxReconnectDuration() time.Duration {
return c.getWithFallback("DatabaseListenerMaxReconnectDuration", parse.Duration).(time.Duration)
}
// DatabaseBackupMode sets the database backup mode
func (c *generalConfig) DatabaseBackupMode() DatabaseBackupMode {
return c.getWithFallback("DatabaseBackupMode", parseDatabaseBackupMode).(DatabaseBackupMode)
}
// DatabaseBackupFrequency turns on the periodic database backup if set to a positive value
// DatabaseBackupMode must be then set to a value other than "none"
func (c *generalConfig) DatabaseBackupFrequency() time.Duration {
return c.getWithFallback("DatabaseBackupFrequency", parse.Duration).(time.Duration)
}
// DatabaseBackupURL configures the URL for the database to backup, if it's to be different from the main on
func (c *generalConfig) DatabaseBackupURL() *url.URL {
s := c.viper.GetString(envvar.Name("DatabaseBackupURL"))
if s == "" {
return nil
}
uri, err := url.Parse(s)
if err != nil {
c.lggr.Errorf("Invalid database backup url %s", s)
return nil
}
return uri
}
// DatabaseBackupOnVersionUpgrade controls whether an automatic backup will be
// taken before migrations are run, if the node version has been bumped
func (c *generalConfig) DatabaseBackupOnVersionUpgrade() bool {
return c.getWithFallback("DatabaseBackupOnVersionUpgrade", parse.Bool).(bool)
}
// DatabaseBackupDir configures the directory for saving the backup file, if it's to be different from default one located in the RootDir
func (c *generalConfig) DatabaseBackupDir() string {
return c.viper.GetString(envvar.Name("DatabaseBackupDir"))
}
// DatabaseURL configures the URL for chainlink to connect to. This must be
// a properly formatted URL, with a valid scheme (postgres://)
func (c *generalConfig) DatabaseURL() url.URL {
s := c.viper.GetString(envvar.Name("DatabaseURL"))
uri, err := url.Parse(s)
if err != nil {
c.lggr.Error("invalid database url %s", s)
return url.URL{}
}
if uri.String() == "" {
return *uri
}
static.SetConsumerName(uri, "Default", nil)
return *uri
}
// MigrateDatabase determines whether the database will be automatically
// migrated on application startup if set to true
func (c *generalConfig) MigrateDatabase() bool {
return c.viper.GetBool(envvar.Name("MigrateDatabase"))
}
// DefaultHTTPLimit defines the size limit for HTTP requests and responses
func (c *generalConfig) DefaultHTTPLimit() int64 {
return c.viper.GetInt64(envvar.Name("DefaultHTTPLimit"))
}
// DefaultHTTPTimeout defines the default timeout for http requests
func (c *generalConfig) DefaultHTTPTimeout() models.Duration {
return models.MustMakeDuration(c.getWithFallback("DefaultHTTPTimeout", parse.Duration).(time.Duration))
}
// DefaultHTTPAllowUnrestrictedNetworkAccess controls whether http requests are unrestricted by default
// It is recommended that this be left disabled
func (c *generalConfig) DefaultHTTPAllowUnrestrictedNetworkAccess() bool {
return c.viper.GetBool(envvar.Name("DefaultHTTPAllowUnrestrictedNetworkAccess"))
}
// Dev configures "development" mode for chainlink.
func (c *generalConfig) Dev() bool {
return c.viper.GetBool(envvar.Name("Dev"))
}
// ShutdownGracePeriod is the maximum duration of graceful application shutdown.
// If exceeded, it will try closing DB lock and connection and exit immediately to avoid SIGKILL.
func (c *generalConfig) ShutdownGracePeriod() time.Duration {
return c.getWithFallback("ShutdownGracePeriod", parse.Duration).(time.Duration)
}
// FeatureExternalInitiators enables the External Initiator feature.
func (c *generalConfig) FeatureExternalInitiators() bool {
return c.viper.GetBool(envvar.Name("FeatureExternalInitiators"))
}
// FeatureFeedsManager enables the feeds manager
func (c *generalConfig) FeatureFeedsManager() bool {
return c.viper.GetBool(envvar.Name("FeatureFeedsManager"))
}
// FeatureOffchainReporting enables the OCR job type.
func (c *generalConfig) FeatureOffchainReporting() bool {
return c.getWithFallback("FeatureOffchainReporting", parse.Bool).(bool)
}
// FeatureOffchainReporting2 enables the OCR2 job type.
func (c *generalConfig) FeatureOffchainReporting2() bool {
return c.getWithFallback("FeatureOffchainReporting2", parse.Bool).(bool)
}
// FMDefaultTransactionQueueDepth controls the queue size for DropOldestStrategy in Flux Monitor
// Set to 0 to use SendEvery strategy instead
func (c *generalConfig) FMDefaultTransactionQueueDepth() uint32 {
return c.viper.GetUint32(envvar.Name("FMDefaultTransactionQueueDepth"))
}
// FMSimulateTransactions enables using eth_call transaction simulation before
// sending when set to true
func (c *generalConfig) FMSimulateTransactions() bool {
return c.viper.GetBool(envvar.Name("FMSimulateTransactions"))
}
// EthereumURL represents the URL of the Ethereum node to connect Chainlink to.
func (c *generalConfig) EthereumURL() string {
return c.viper.GetString(envvar.Name("EthereumURL"))
}
// EthereumHTTPURL is an optional but recommended url that points to the HTTP port of the primary node
func (c *generalConfig) EthereumHTTPURL() (uri *url.URL) {
urlStr := c.viper.GetString(envvar.Name("EthereumHTTPURL"))
if urlStr == "" {
return nil
}
var err error
uri, err = url.Parse(urlStr)
if err != nil || !(uri.Scheme == "http" || uri.Scheme == "https") {
c.lggr.Fatalf("Invalid Ethereum HTTP URL: %s, got error: %s", urlStr, err)
}
return
}
// EthereumSecondaryURLs is an optional backup RPC URL
// Must be http(s) format
// If specified, transactions will also be broadcast to this ethereum node
func (c *generalConfig) EthereumSecondaryURLs() []url.URL {
oldConfig := c.viper.GetString(envvar.Name("EthereumSecondaryURL"))
newConfig := c.viper.GetString(envvar.Name("EthereumSecondaryURLs"))
config := ""
if newConfig != "" {
config = newConfig
} else if oldConfig != "" {
config = oldConfig
}
urlStrings := regexp.MustCompile(`\s*[;,]\s*`).Split(config, -1)
var urls []url.URL
for _, urlString := range urlStrings {
if urlString == "" {
continue
}
url, err := url.Parse(urlString)
if err != nil {
c.lggr.Fatalf("Invalid Secondary Ethereum URL: %s, got error: %v", urlString, err)
}
urls = append(urls, *url)
}
return urls
}
// EVMRPCEnabled if false prevents any calls to any EVM-based chain RPC node
func (c *generalConfig) EVMRPCEnabled() bool {
if ethDisabled, exists := os.LookupEnv("ETH_DISABLED"); exists {
res, err := parse.Bool(ethDisabled)
if err == nil {
return !res.(bool)
}
c.lggr.Warnw("Failed to parse value for ETH_DISABLED", "err", err)
}
rpcEnabled := c.viper.GetBool(envvar.Name("EVMRPCEnabled"))
return rpcEnabled
}
// EVMEnabled allows EVM chains to be used
func (c *generalConfig) EVMEnabled() bool {
if evmDisabled, exists := os.LookupEnv("EVM_DISABLED"); exists {
res, err := parse.Bool(evmDisabled)
if err == nil {
return res.(bool)
}
c.lggr.Warnw("Failed to parse value for EVM_DISABLED", "err", err)
}
return c.viper.GetBool(envvar.Name("EVMEnabled"))
}
// SolanaEnabled allows Solana to be used
func (c *generalConfig) SolanaEnabled() bool {
return c.viper.GetBool(envvar.Name("SolanaEnabled"))
}
// TerraEnabled allows Terra to be used
func (c *generalConfig) TerraEnabled() bool {
return c.viper.GetBool(envvar.Name("TerraEnabled"))
}
// P2PEnabled controls whether Chainlink will run as a P2P peer for OCR protocol
func (c *generalConfig) P2PEnabled() bool {
// We need p2p networking if either ocr1 or ocr2 is enabled
return c.P2PListenPort() > 0 || c.FeatureOffchainReporting() || c.FeatureOffchainReporting2()
}
// InsecureFastScrypt causes all key stores to encrypt using "fast" scrypt params instead
// This is insecure and only useful for local testing. DO NOT SET THIS IN PRODUCTION
func (c *generalConfig) InsecureFastScrypt() bool {
return c.viper.GetBool(envvar.Name("InsecureFastScrypt"))
}
// InsecureSkipVerify disables SSL certificate verification when connection to
// a chainlink client using the remote client, i.e. when executing most remote
// commands in the CLI.
//
// This is mostly useful for people who want to use TLS on localhost.
func (c *generalConfig) InsecureSkipVerify() bool {
return c.viper.GetBool(envvar.Name("InsecureSkipVerify"))
}
func (c *generalConfig) TriggerFallbackDBPollInterval() time.Duration {
return c.getWithFallback("TriggerFallbackDBPollInterval", parse.Duration).(time.Duration)
}
// JobPipelineMaxRunDuration is the maximum time that a job run may take
func (c *generalConfig) JobPipelineMaxRunDuration() time.Duration {
return c.getWithFallback("JobPipelineMaxRunDuration", parse.Duration).(time.Duration)
}
func (c *generalConfig) JobPipelineResultWriteQueueDepth() uint64 {
return c.getWithFallback("JobPipelineResultWriteQueueDepth", parse.Uint64).(uint64)
}
func (c *generalConfig) JobPipelineReaperInterval() time.Duration {
return c.getWithFallback("JobPipelineReaperInterval", parse.Duration).(time.Duration)
}
func (c *generalConfig) JobPipelineReaperThreshold() time.Duration {
return c.getWithFallback("JobPipelineReaperThreshold", parse.Duration).(time.Duration)
}
// KeeperRegistryCheckGasOverhead is the amount of extra gas to provide checkUpkeep() calls
// to account for the gas consumed by the keeper registry
func (c *generalConfig) KeeperRegistryCheckGasOverhead() uint64 {
return c.getWithFallback("KeeperRegistryCheckGasOverhead", parse.Uint64).(uint64)
}
// KeeperRegistryPerformGasOverhead is the amount of extra gas to provide performUpkeep() calls
// to account for the gas consumed by the keeper registry
func (c *generalConfig) KeeperRegistryPerformGasOverhead() uint64 {
return c.getWithFallback("KeeperRegistryPerformGasOverhead", parse.Uint64).(uint64)
}
// KeeperDefaultTransactionQueueDepth controls the queue size for DropOldestStrategy in Keeper
// Set to 0 to use SendEvery strategy instead
func (c *generalConfig) KeeperDefaultTransactionQueueDepth() uint32 {
return c.viper.GetUint32(envvar.Name("KeeperDefaultTransactionQueueDepth"))
}
// KeeperGasPriceBufferPercent adds the specified percentage to the gas price
// used for checking whether to perform an upkeep. Only applies in legacy mode.
func (c *generalConfig) KeeperGasPriceBufferPercent() uint32 {
return c.viper.GetUint32(envvar.Name("KeeperGasPriceBufferPercent"))
}
// KeeperGasTipCapBufferPercent adds the specified percentage to the gas price
// used for checking whether to perform an upkeep. Only applies in EIP-1559 mode.
func (c *generalConfig) KeeperGasTipCapBufferPercent() uint32 {
return c.viper.GetUint32(envvar.Name("KeeperGasTipCapBufferPercent"))
}
// KeeperRegistrySyncInterval is the interval in which the RegistrySynchronizer performs a full
// sync of the keeper registry contract it is tracking
func (c *generalConfig) KeeperRegistrySyncInterval() time.Duration {
return c.getWithFallback("KeeperRegistrySyncInterval", parse.Duration).(time.Duration)
}
// KeeperMaximumGracePeriod is the maximum number of blocks that a keeper will wait after performing
// an upkeep before it resumes checking that upkeep
func (c *generalConfig) KeeperMaximumGracePeriod() int64 {
return c.viper.GetInt64(envvar.Name("KeeperMaximumGracePeriod"))
}
// KeeperRegistrySyncUpkeepQueueSize represents the maximum number of upkeeps that can be synced in parallel
func (c *generalConfig) KeeperRegistrySyncUpkeepQueueSize() uint32 {
return c.getWithFallback("KeeperRegistrySyncUpkeepQueueSize", parse.Uint32).(uint32)
}
// KeeperCheckUpkeepGasPriceFeatureEnabled enables keepers to include a gas price when running checkUpkeep
func (c *generalConfig) KeeperCheckUpkeepGasPriceFeatureEnabled() bool {
return c.getWithFallback("KeeperCheckUpkeepGasPriceFeatureEnabled", parse.Bool).(bool)
}
// JSONConsole when set to true causes logging to be made in JSON format
// If set to false, logs in console format
func (c *generalConfig) JSONConsole() bool {
return c.getEnvWithFallback(envvar.JSONConsole).(bool)
}
// ExplorerURL returns the websocket URL for this node to push stats to, or nil.
func (c *generalConfig) ExplorerURL() *url.URL {
rval := c.getWithFallback("ExplorerURL", parse.URL)
switch t := rval.(type) {
case nil:
return nil
case *url.URL:
return t
default:
panic(fmt.Sprintf("invariant: ExplorerURL returned as type %T", rval))
}
}
// ExplorerAccessKey returns the access key for authenticating with explorer
func (c *generalConfig) ExplorerAccessKey() string {
return c.viper.GetString(envvar.Name("ExplorerAccessKey"))
}
// ExplorerSecret returns the secret for authenticating with explorer
func (c *generalConfig) ExplorerSecret() string {
return c.viper.GetString(envvar.Name("ExplorerSecret"))
}
// TelemetryIngressURL returns the WSRPC URL for this node to push telemetry to, or nil.
func (c *generalConfig) TelemetryIngressURL() *url.URL {
rval := c.getWithFallback("TelemetryIngressURL", parse.URL)
switch t := rval.(type) {
case nil:
return nil
case *url.URL:
return t
default:
panic(fmt.Sprintf("invariant: TelemetryIngressURL returned as type %T", rval))
}
}
// TelemetryIngressServerPubKey returns the public key to authenticate the telemetry ingress server
func (c *generalConfig) TelemetryIngressServerPubKey() string {
return c.viper.GetString(envvar.Name("TelemetryIngressServerPubKey"))
}
// TelemetryIngressBufferSize is the number of telemetry messages to buffer before dropping new ones
func (c *generalConfig) TelemetryIngressBufferSize() uint {
return c.viper.GetUint(envvar.Name("TelemetryIngressBufferSize"))
}
// TelemetryIngressMaxBatchSize is the maximum number of messages to batch into one telemetry request
func (c *generalConfig) TelemetryIngressMaxBatchSize() uint {
return c.viper.GetUint(envvar.Name("TelemetryIngressMaxBatchSize"))
}
// TelemetryIngressSendInterval is the cadence on which batched telemetry is sent to the ingress server
func (c *generalConfig) TelemetryIngressSendInterval() time.Duration {
return c.getDuration("TelemetryIngressSendInterval")
}
// TelemetryIngressUseBatchSend toggles sending telemetry using the batch client to the ingress server
func (c *generalConfig) TelemetryIngressUseBatchSend() bool {
return c.viper.GetBool(envvar.Name("TelemetryIngressUseBatchSend"))
}
// TelemetryIngressLogging toggles very verbose logging of raw telemetry messages for the TelemetryIngressClient
func (c *generalConfig) TelemetryIngressLogging() bool {
return c.getWithFallback("TelemetryIngressLogging", parse.Bool).(bool)
}
func (c *generalConfig) ORMMaxOpenConns() int {
return int(c.getWithFallback("ORMMaxOpenConns", parse.Uint16).(uint16))
}
func (c *generalConfig) ORMMaxIdleConns() int {
return int(c.getWithFallback("ORMMaxIdleConns", parse.Uint16).(uint16))
}
// LogLevel represents the maximum level of log messages to output.
func (c *generalConfig) LogLevel() zapcore.Level {
c.logMutex.RLock()
defer c.logMutex.RUnlock()
return c.logLevel
}
// DefaultLogLevel returns default log level.
func (c *generalConfig) DefaultLogLevel() zapcore.Level {
return c.defaultLogLevel
}
// SetLogLevel saves a runtime value for the default logger level
func (c *generalConfig) SetLogLevel(lvl zapcore.Level) error {
c.logMutex.Lock()
defer c.logMutex.Unlock()
c.logLevel = lvl
return nil
}
// LogToDisk configures disk preservation of logs.
func (c *generalConfig) LogToDisk() bool {
return c.getEnvWithFallback(envvar.LogToDisk).(bool)
}
// LogSQL tells chainlink to log all SQL statements made using the default logger
func (c *generalConfig) LogSQL() bool {
c.logMutex.RLock()
defer c.logMutex.RUnlock()
return c.logSQL
}
// SetLogSQL saves a runtime value for enabling/disabling logging all SQL statements on the default logger
func (c *generalConfig) SetLogSQL(logSQL bool) {
c.logMutex.Lock()
defer c.logMutex.Unlock()
c.logSQL = logSQL
}
// LogUnixTimestamps if set to true will log with timestamp in unix format, otherwise uses ISO8601
func (c *generalConfig) LogUnixTimestamps() bool {
return c.getEnvWithFallback(envvar.LogUnixTS).(bool)
}
// Port represents the port Chainlink should listen on for client requests.
func (c *generalConfig) Port() uint16 {
return c.getWithFallback("Port", parse.Uint16).(uint16)
}
// DefaultChainID represents the chain ID which jobs will use if one is not explicitly specified
func (c *generalConfig) DefaultChainID() *big.Int {
str := c.viper.GetString(envvar.Name("DefaultChainID"))
if str != "" {
v, err := parse.BigInt(str)
if err != nil {
c.lggr.Errorw(
"Ignoring invalid value provided for ETH_CHAIN_ID",
"value", str,
"error", err)
return nil
}
return v.(*big.Int)
}
return nil
}
// HTTPServerWriteTimeout controls how long chainlink's API server may hold a
// socket open for writing a response to an HTTP request. This sometimes needs
// to be increased for pprof.
func (c *generalConfig) HTTPServerWriteTimeout() time.Duration {
return c.getWithFallback("HTTPServerWriteTimeout", parse.Duration).(time.Duration)
}
// ReaperExpiration represents how long a session is held in the DB before being cleared
func (c *generalConfig) ReaperExpiration() models.Duration {
return models.MustMakeDuration(c.getWithFallback("ReaperExpiration", parse.Duration).(time.Duration))
}
// RootDir represents the location on the file system where Chainlink should
// keep its files.
func (c *generalConfig) RootDir() string {
return c.getEnvWithFallback(envvar.RootDir).(string)
}
// RPID Fetches the RPID used for WebAuthn sessions. The RPID value should be the FQDN (localhost)
func (c *generalConfig) RPID() string {
return c.viper.GetString(envvar.Name("RPID"))
}
// RPOrigin Fetches the RPOrigin used to configure WebAuthn sessions. The RPOrigin value should be
// the origin URL where WebAuthn requests initiate (http://localhost:6688/)
func (c *generalConfig) RPOrigin() string {
return c.viper.GetString(envvar.Name("RPOrigin"))
}
// SecureCookies allows toggling of the secure cookies HTTP flag
func (c *generalConfig) SecureCookies() bool {
return c.viper.GetBool(envvar.Name("SecureCookies"))
}
// SessionTimeout is the maximum duration that a user session can persist without any activity.
func (c *generalConfig) SessionTimeout() models.Duration {
return models.MustMakeDuration(c.getWithFallback("SessionTimeout", parse.Duration).(time.Duration))
}
// TLSCertPath represents the file system location of the TLS certificate
// Chainlink should use for HTTPS.
func (c *generalConfig) TLSCertPath() string {
return c.viper.GetString(envvar.Name("TLSCertPath"))
}
// TLSHost represents the hostname to use for TLS clients. This should match
// the TLS certificate.
func (c *generalConfig) TLSHost() string {
return c.viper.GetString(envvar.Name("TLSHost"))
}
// TLSKeyPath represents the file system location of the TLS key Chainlink
// should use for HTTPS.
func (c *generalConfig) TLSKeyPath() string {
return c.viper.GetString(envvar.Name("TLSKeyPath"))
}
// TLSPort represents the port Chainlink should listen on for encrypted client requests.
func (c *generalConfig) TLSPort() uint16 {
return c.getWithFallback("TLSPort", parse.Uint16).(uint16)
}
// TLSRedirect forces TLS redirect for unencrypted connections
func (c *generalConfig) TLSRedirect() bool {
return c.viper.GetBool(envvar.Name("TLSRedirect"))
}
// UnAuthenticatedRateLimit defines the threshold to which requests unauthenticated requests get limited
func (c *generalConfig) UnAuthenticatedRateLimit() int64 {
return c.viper.GetInt64(envvar.Name("UnAuthenticatedRateLimit"))
}
// UnAuthenticatedRateLimitPeriod defines the period to which unauthenticated requests get limited
func (c *generalConfig) UnAuthenticatedRateLimitPeriod() models.Duration {
return models.MustMakeDuration(c.getWithFallback("UnAuthenticatedRateLimitPeriod", parse.Duration).(time.Duration))
}
func (c *generalConfig) TLSDir() string {
return filepath.Join(c.RootDir(), "tls")
}
// KeyFile returns the path where the server key is kept
func (c *generalConfig) KeyFile() string {
if c.TLSKeyPath() == "" {
return filepath.Join(c.TLSDir(), "server.key")
}
return c.TLSKeyPath()
}
// CertFile returns the path where the server certificate is kept
func (c *generalConfig) CertFile() string {
if c.TLSCertPath() == "" {
return filepath.Join(c.TLSDir(), "server.crt")
}
return c.TLSCertPath()
}
// SessionSecret returns a sequence of bytes to be used as a private key for
// session signing or encryption.
func (c *generalConfig) SessionSecret() ([]byte, error) {
return c.secretGenerator.Generate(c.RootDir())
}
// SessionOptions returns the sessions.Options struct used to configure
// the session store.
func (c *generalConfig) SessionOptions() sessions.Options {
return sessions.Options{
Secure: c.SecureCookies(),
HttpOnly: true,
MaxAge: 86400 * 30,
}
}
// Deprecated - prefer getEnvWithFallback with an EnvVar
func (c *generalConfig) getWithFallback(name string, parser func(string) (interface{}, error)) interface{} {
return c.getEnvWithFallback(envvar.New(name, parser))
}
func (c *generalConfig) getEnvWithFallback(e *envvar.EnvVar) interface{} {
v, invalid, err := e.ParseFrom(c.viper.GetString)
if err != nil {
c.lggr.Panic(err)
}
if invalid != "" {
c.lggr.Error(invalid)
}
return v
}
type DatabaseBackupMode string
var (
DatabaseBackupModeNone DatabaseBackupMode = "none"
DatabaseBackupModeLite DatabaseBackupMode = "lite"
DatabaseBackupModeFull DatabaseBackupMode = "full"
)
func parseDatabaseBackupMode(s string) (interface{}, error) {
switch DatabaseBackupMode(s) {
case DatabaseBackupModeNone, DatabaseBackupModeLite, DatabaseBackupModeFull:
return DatabaseBackupMode(s), nil
default:
return "", fmt.Errorf("unable to parse %v into DatabaseBackupMode. Must be one of values: \"%s\", \"%s\", \"%s\"", s, DatabaseBackupModeNone, DatabaseBackupModeLite, DatabaseBackupModeFull)
}
}
func (c *generalConfig) lookupEnv(k string, parse func(string) (interface{}, error)) (interface{}, bool) {
s, ok := os.LookupEnv(k)
if !ok {
return nil, false
}
val, err := parse(s)
if err == nil {
return val, true
}
c.lggr.Errorw(fmt.Sprintf("Invalid value provided for %s, falling back to default.", s),
"value", s, "key", k, "error", err)
return nil, false
}
// EVM methods
func (c *generalConfig) GlobalBalanceMonitorEnabled() (bool, bool) {
val, ok := c.lookupEnv(envvar.Name("BalanceMonitorEnabled"), parse.Bool)
if val == nil {
return false, false
}
return val.(bool), ok
}
func (c *generalConfig) GlobalBlockEmissionIdleWarningThreshold() (time.Duration, bool) {
val, ok := c.lookupEnv(envvar.Name("BlockEmissionIdleWarningThreshold"), parse.Duration)
if val == nil {
return 0, false
}
return val.(time.Duration), ok
}
func (c *generalConfig) GlobalBlockHistoryEstimatorBatchSize() (uint32, bool) {
val, ok := c.lookupEnv(envvar.Name("BlockHistoryEstimatorBatchSize"), parse.Uint32)
if val == nil {
return 0, false
}
return val.(uint32), ok
}
func (c *generalConfig) GlobalBlockHistoryEstimatorBlockDelay() (uint16, bool) {
val, ok := c.lookupEnv(envvar.Name("BlockHistoryEstimatorBlockDelay"), parse.Uint16)
if val == nil {
return 0, false
}
return val.(uint16), ok
}
func (c *generalConfig) GlobalBlockHistoryEstimatorBlockHistorySize() (uint16, bool) {
val, ok := c.lookupEnv(envvar.Name("BlockHistoryEstimatorBlockHistorySize"), parse.Uint16)
if val == nil {
return 0, false
}
return val.(uint16), ok
}
func (c *generalConfig) GlobalBlockHistoryEstimatorTransactionPercentile() (uint16, bool) {
val, ok := c.lookupEnv(envvar.Name("BlockHistoryEstimatorTransactionPercentile"), parse.Uint16)
if val == nil {
return 0, false
}
return val.(uint16), ok
}
func (c *generalConfig) GlobalEthTxReaperInterval() (time.Duration, bool) {
val, ok := c.lookupEnv(envvar.Name("EthTxReaperInterval"), parse.Duration)
if val == nil {
return 0, false
}
return val.(time.Duration), ok
}
func (c *generalConfig) GlobalEthTxReaperThreshold() (time.Duration, bool) {
val, ok := c.lookupEnv(envvar.Name("EthTxReaperThreshold"), parse.Duration)
if val == nil {
return 0, false
}
return val.(time.Duration), ok
}
func (c *generalConfig) GlobalEthTxResendAfterThreshold() (time.Duration, bool) {
val, ok := c.lookupEnv(envvar.Name("EthTxResendAfterThreshold"), parse.Duration)
if val == nil {
return 0, false
}
return val.(time.Duration), ok
}
func (c *generalConfig) GlobalEvmDefaultBatchSize() (uint32, bool) {
val, ok := c.lookupEnv(envvar.Name("EvmDefaultBatchSize"), parse.Uint32)
if val == nil {
return 0, false
}
return val.(uint32), ok
}
func (c *generalConfig) GlobalEvmFinalityDepth() (uint32, bool) {
val, ok := c.lookupEnv(envvar.Name("EvmFinalityDepth"), parse.Uint32)
if val == nil {
return 0, false
}
return val.(uint32), ok
}
func (c *generalConfig) GlobalEvmGasBumpPercent() (uint16, bool) {
val, ok := c.lookupEnv(envvar.Name("EvmGasBumpPercent"), parse.Uint16)
if val == nil {
return 0, false
}
return val.(uint16), ok
}
func (c *generalConfig) GlobalEvmGasBumpThreshold() (uint64, bool) {
val, ok := c.lookupEnv(envvar.Name("EvmGasBumpThreshold"), parse.Uint64)
if val == nil {
return 0, false
}
return val.(uint64), ok
}
func (c *generalConfig) GlobalEvmGasBumpTxDepth() (uint16, bool) {
val, ok := c.lookupEnv(envvar.Name("EvmGasBumpTxDepth"), parse.Uint16)
if val == nil {
return 0, false
}
return val.(uint16), ok
}
func (c *generalConfig) GlobalEvmGasBumpWei() (*big.Int, bool) {
val, ok := c.lookupEnv(envvar.Name("EvmGasBumpWei"), parse.BigInt)
if val == nil {
return nil, false
}
return val.(*big.Int), ok
}
func (c *generalConfig) GlobalEvmGasFeeCapDefault() (*big.Int, bool) {
val, ok := c.lookupEnv(envvar.Name("EvmGasFeeCapDefault"), parse.BigInt)
if val == nil {
return nil, false
}
return val.(*big.Int), ok
}
func (c *generalConfig) GlobalBlockHistoryEstimatorEIP1559FeeCapBufferBlocks() (uint16, bool) {
val, ok := c.lookupEnv(envvar.Name("BlockHistoryEstimatorEIP1559FeeCapBufferBlocks"), parse.Uint16)
if val == nil {
return 0, false
}
return val.(uint16), ok
}
func (c *generalConfig) GlobalEvmGasLimitDefault() (uint64, bool) {
val, ok := c.lookupEnv(envvar.Name("EvmGasLimitDefault"), parse.Uint64)
if val == nil {
return 0, false
}
return val.(uint64), ok
}
func (c *generalConfig) GlobalEvmGasLimitMultiplier() (float32, bool) {
val, ok := c.lookupEnv(envvar.Name("EvmGasLimitMultiplier"), parse.F32)
if val == nil {
return 0, false
}
return val.(float32), ok
}
func (c *generalConfig) GlobalEvmGasLimitTransfer() (uint64, bool) {
val, ok := c.lookupEnv(envvar.Name("EvmGasLimitTransfer"), parse.Uint64)
if val == nil {
return 0, false
}
return val.(uint64), ok
}
func (c *generalConfig) GlobalEvmGasPriceDefault() (*big.Int, bool) {
val, ok := c.lookupEnv(envvar.Name("EvmGasPriceDefault"), parse.BigInt)
if val == nil {
return nil, false
}
return val.(*big.Int), ok
}
func (c *generalConfig) GlobalEvmHeadTrackerHistoryDepth() (uint32, bool) {
val, ok := c.lookupEnv(envvar.Name("EvmHeadTrackerHistoryDepth"), parse.Uint32)
if val == nil {
return 0, false
}
return val.(uint32), ok
}
func (c *generalConfig) GlobalEvmHeadTrackerMaxBufferSize() (uint32, bool) {
val, ok := c.lookupEnv(envvar.Name("EvmHeadTrackerMaxBufferSize"), parse.Uint32)
if val == nil {
return 0, false
}
return val.(uint32), ok
}
func (c *generalConfig) GlobalEvmHeadTrackerSamplingInterval() (time.Duration, bool) {
val, ok := c.lookupEnv(envvar.Name("EvmHeadTrackerSamplingInterval"), parse.Duration)
if val == nil {
return 0, false
}
return val.(time.Duration), ok
}
func (c *generalConfig) GlobalEvmLogBackfillBatchSize() (uint32, bool) {
val, ok := c.lookupEnv(envvar.Name("EvmLogBackfillBatchSize"), parse.Uint32)
if val == nil {
return 0, false
}
return val.(uint32), ok
}
func (c *generalConfig) GlobalEvmMaxGasPriceWei() (*big.Int, bool) {
val, ok := c.lookupEnv(envvar.Name("EvmMaxGasPriceWei"), parse.BigInt)
if val == nil {
return nil, false
}
return val.(*big.Int), ok
}
func (c *generalConfig) GlobalEvmMaxInFlightTransactions() (uint32, bool) {
val, ok := c.lookupEnv(envvar.Name("EvmMaxInFlightTransactions"), parse.Uint32)
if val == nil {
return 0, false
}
return val.(uint32), ok
}
func (c *generalConfig) GlobalEvmMaxQueuedTransactions() (uint64, bool) {
val, ok := c.lookupEnv(envvar.Name("EvmMaxQueuedTransactions"), parse.Uint64)
if val == nil {
return 0, false
}
return val.(uint64), ok
}
func (c *generalConfig) GlobalEvmMinGasPriceWei() (*big.Int, bool) {
val, ok := c.lookupEnv(envvar.Name("EvmMinGasPriceWei"), parse.BigInt)
if val == nil {
return nil, false
}
return val.(*big.Int), ok
}
func (c *generalConfig) GlobalEvmNonceAutoSync() (bool, bool) {
val, ok := c.lookupEnv(envvar.Name("EvmNonceAutoSync"), parse.Bool)
if val == nil {
return false, false
}
return val.(bool), ok
}
func (c *generalConfig) GlobalEvmRPCDefaultBatchSize() (uint32, bool) {
val, ok := c.lookupEnv(envvar.Name("EvmRPCDefaultBatchSize"), parse.Uint32)
if val == nil {
return 0, false
}
return val.(uint32), ok
}
func (c *generalConfig) GlobalFlagsContractAddress() (string, bool) {
val, ok := c.lookupEnv(envvar.Name("FlagsContractAddress"), parse.String)
if val == nil {
return "", false
}
return val.(string), ok
}
func (c *generalConfig) GlobalGasEstimatorMode() (string, bool) {
val, ok := c.lookupEnv(envvar.Name("GasEstimatorMode"), parse.String)
if val == nil {
return "", false
}
return val.(string), ok
}
// GlobalChainType overrides all chains and forces them to act as a particular
// chain type. List of chain types is given in `chaintype.go`.
func (c *generalConfig) GlobalChainType() (string, bool) {
val, ok := c.lookupEnv(envvar.Name("ChainType"), parse.String)
if val == nil {
return "", false
}
return val.(string), ok
}
func (c *generalConfig) GlobalLinkContractAddress() (string, bool) {
val, ok := c.lookupEnv(envvar.Name("LinkContractAddress"), parse.String)
if val == nil {
return "", false
}
return val.(string), ok
}
func (c *generalConfig) GlobalMinIncomingConfirmations() (uint32, bool) {
val, ok := c.lookupEnv(envvar.Name("MinIncomingConfirmations"), parse.Uint32)
if val == nil {
return 0, false
}
return val.(uint32), ok
}
func (c *generalConfig) GlobalMinRequiredOutgoingConfirmations() (uint64, bool) {
val, ok := c.lookupEnv(envvar.Name("MinRequiredOutgoingConfirmations"), parse.Uint64)
if val == nil {
return 0, false
}
return val.(uint64), ok
}
func (c *generalConfig) GlobalMinimumContractPayment() (*assets.Link, bool) {
val, ok := c.lookupEnv(envvar.Name("MinimumContractPayment"), parse.Link)
if val == nil {
return nil, false
}
return val.(*assets.Link), ok
}
func (c *generalConfig) GlobalEvmEIP1559DynamicFees() (bool, bool) {
val, ok := c.lookupEnv(envvar.Name("EvmEIP1559DynamicFees"), parse.Bool)
if val == nil {
return false, false
}
return val.(bool), ok
}
func (c *generalConfig) GlobalEvmGasTipCapDefault() (*big.Int, bool) {
val, ok := c.lookupEnv(envvar.Name("EvmGasTipCapDefault"), parse.BigInt)
if val == nil {
return nil, false
}
return val.(*big.Int), ok
}
func (c *generalConfig) GlobalEvmGasTipCapMinimum() (*big.Int, bool) {
val, ok := c.lookupEnv(envvar.Name("EvmGasTipCapMinimum"), parse.BigInt)
if val == nil {
return nil, false
}
return val.(*big.Int), ok
}
// DatabaseLockingMode can be one of 'dual', 'advisorylock', 'lease' or 'none'
// It controls which mode to use to enforce that only one Chainlink application can use the database
func (c *generalConfig) DatabaseLockingMode() string {
return c.getWithFallback("DatabaseLockingMode", parse.String).(string)
}
// LeaseLockRefreshInterval controls how often the node should attempt to
// refresh the lease lock
func (c *generalConfig) LeaseLockRefreshInterval() time.Duration {
return c.getDuration("LeaseLockRefreshInterval")
}
// LeaseLockDuration controls when the lock is set to expire on each refresh
// (this many seconds from now in the future)
func (c *generalConfig) LeaseLockDuration() time.Duration {
return c.getDuration("LeaseLockDuration")
}
// AdvisoryLockID is the application advisory lock ID. Should match all other
// chainlink applications that might access this database
func (c *generalConfig) AdvisoryLockID() int64 {
return c.getWithFallback("AdvisoryLockID", parse.Int64).(int64)
}
// AdvisoryLockCheckInterval controls how often Chainlink will check to make
// sure it still holds the advisory lock. If it no longer holds it, it will try
// to re-acquire it and if that fails the application will exit
func (c *generalConfig) AdvisoryLockCheckInterval() time.Duration {
return c.getDuration("AdvisoryLockCheckInterval")
}
// LogFileDir if set will override RootDir as the output path for log files
func (c *generalConfig) LogFileDir() string {
s := c.viper.GetString(envvar.Name("LogFileDir"))
if s == "" {
return c.RootDir()
}
return s
}
|
defmodule Squitter.Decoding.AllCallReply do
alias Squitter.StatsTracker
alias Squitter.Decoding.ModeS
@df 11
defstruct [:icao, :df, :msg, :pi, :parity, :checksum, :crc, :time]
def decode(time, <<@df::5, _payload::27-bits, pi::24-unsigned>> = msg) do
checksum = ModeS.checksum(msg, 56)
{:ok, address} = ModeS.icao_address(msg, checksum)
parity = ModeS.parity(pi, address)
StatsTracker.count({:df, @df, :decoded})
%__MODULE__{
df: @df,
icao: address,
msg: msg,
pi: pi,
parity: parity,
checksum: checksum,
crc: if(checksum == pi, do: :valid, else: :invalid),
time: time
}
end
def decode(_time, other) do
StatsTracker.count({:df, @df, :decode_failed})
{:unknown, other}
end
end
|
syntax="proto3";
package ProtobufDecoder_Test_Unit;
option csharp_namespace="ProtobufDecoder.Test.Unit";
message TestMessage
{
repeated int32 repeatedInt32 = 1;
repeated string repeatedString = 2;
repeated float repeatedFloat = 3;
} |
/*
* Copyright 2021 Branko Juric, Brady Wood
*
* 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 gwen.core.node
import gwen.core.node.event.NodeEventListener
import scala.collection.mutable
import scala.util.chaining._
class NodeChainBuilder extends NodeEventListener("Call chain builder") {
private val nodes = mutable.Queue[GwenNode](Root)
def push(node: GwenNode): NodeChain = {
nodes += node
new NodeChain(nodes.toList)
}
def pop(): (GwenNode, NodeChain) = {
(nodes.removeLast(false), new NodeChain(nodes.toList))
}
def nodeChain: NodeChain = new NodeChain(nodes.toList)
}
object NodeChainBuilder {
def apply(chain: NodeChain): NodeChainBuilder = {
new NodeChainBuilder() tap { builder =>
chain.nodes.foreach(builder.push)
}
}
}
|
# == Schema Information
# Schema version: 20090213002439
#
# Table name: groups
#
# id :integer(4) not null, primary key
# creator_id :integer(4)
# name :string(255)
# description :text
# icon :string(255)
# state :string(255)
# url_key :string(255)
# created_at :datetime
# updated_at :datetime
# default_role :string(255) default("member")
# visibility :integer(4) default(2)
# requires_approval_to_join :boolean(1)
# member_count :integer(4)
#
class Group < ActiveRecord::Base
include SecureMethods
DELETED = -1
INVISIBLE = 0
PRIVATE = 1
PUBLIC = 2
acts_as_taggable_on :tags
acts_as_state_machine :initial => :approved
validates_presence_of :creator
# give the group a permalink
has_permalink :name, :url_key
# events
has_many :events, :as => :eventable, :order => 'created_at desc'
# Feeds
has_many :feeds, :as => :ownable
has_many :feed_items, :through => :feeds, :order => 'created_at desc'
# news
has_many :news_items, :as => :newsable, :order => 'created_at desc'
# forum
has_many :forums, :as => :forumable, :order => 'created_at asc'
# comments
has_many :comments, :as => :commentable, :order => 'created_at desc'
# photos
has_many :photos, :as => :photoable, :order => 'created_at desc'
# shared entries
has_many :shared_entries, :as => :destination, :order => 'created_at desc', :include => :entry
has_many :public_google_docs, :through => :shared_entries, :source => 'entry', :conditions => 'google_doc = true AND public = true', :select => "*"
# shared uploads
has_many :shared_uploads, :as => :shared_uploadable, :order => 'created_at desc', :include => :upload
has_many :uploads, :as => :uploadable, :order => 'created_at desc'
# pages
has_many :pages, :as => :contentable, :class_name => 'ContentPage', :order => 'created_at desc'
# membership and users
has_many :membership_requests
has_many :pledges, :through => :membership_requests,
:dependent => :destroy,
:source => :user
belongs_to :creator, :class_name => 'User', :foreign_key => 'creator_id'
has_many :memberships, :dependent => :destroy
has_many :members, :through => :memberships,
:dependent => :destroy,
:order => 'last_name, first_name',
:conditions => 'banned != true',
:select => 'users.*, memberships.role',
:source => :user do
def in_role(role, options = {})
find :all, { :conditions => ['role = ?' , role.to_s], :order => "memberships.created_at" }.merge(options)
end
end
acts_as_solr :fields => [ :content_p, :content_u, :content_a, :visibility ]
after_create {|group| group.memberships.create(:role => :manager, :user_id => group.creator_id)}
after_create :create_forum
after_create :create_feed_item
after_update {|group| group.create_feed_item 'updated_group'}
def create_feed_item template = nil
feed_item = FeedItem.create(:item => self, :creator_id => self.creator_id, :template => template)
(self.creator.feed_to).each{ |u| u.feed_items << feed_item }
end
def create_forum
@forum = self.forums.build(:name => self.name,
:description => _("Forum For %{forum}") % {:forum => self.name})
@forum.save
end
def feed_to
[self] + self.members
end
def content_p
visibility > INVISIBLE ? "#{name} #{description} #{tags.collect{|t| t.name}.join(' ')}" : ''
end
def content_u
content_p
end
def content_a
"#{name} #{description} #{tags.collect{|t| t.name}.join(' ')}"
end
def default_role= val
write_attribute(:default_role, val.to_s)
end
def default_role
read_attribute(:default_role).to_sym
end
def is_content_visible? user
return true if self.visibility > Group::PRIVATE
return false if user == :false || user.nil?
user.is_admin? || self.is_member?(user)
end
#Named scopes
named_scope :visible, :order => "name ASC", :conditions => ["visibility > 0"]
# state information
state :approved, :after => :notify_approve
state :banned, :after => :notify_ban
event :approve do
transitions :to => :approved, :from => :banned
end
event :ban do
transitions :to => :banned, :from => :approved
end
# icon
file_column :icon, :magick => {
:versions => {
:bigger => {:crop => "1:1", :size => "200x200", :name => "bigger"},
:big => {:crop => "1:1", :size => "150x150", :name => "big"},
:medium => {:crop => "1:1", :size => "100x100", :name => "medium"},
:small => {:crop => "1:1", :size => "50x50", :name => "small"}
}
}
# validations
validates_presence_of :name, :description
validates_uniqueness_of :name
def to_param
url_key
end
def notify_approve
end
def notify_ban
end
def is_member?(user)
return false if user.nil?
members.include?(user)
end
def is_pending_member?(user)
return false if user.nil?
pledges.include?(user)
end
def can_edit?(user)
return false if user.nil?
check_creator(user) || members.in_role(:manager).include?(user)
end
def can_participate?(user)
return false if user == :false
user.has_role?('administrator') || !members.find(:all, :conditions => "user_id = #{user.id} AND role != 'banned' AND role != 'observer'").empty?
end
def remove_member(user)
membership = memberships.find_by_user_id(user.id)
membership.destroy
end
def remove_pledge(user)
pledge = membership_requests.find_by_user_id(user.id)
pledge.destroy if !pledge.nil?
end
# actually deleting a group could cause some problems so
# we cheat and just say we delete it
def delete!
update_attributes(:visibility => DELETED)
end
def to_xml(options = {})
options[:only] ||= []
options[:only] << :name << :description << :icon << :state << :url_key << :created_at
options[:only] << :default_role << :visibility << :requires_approval_to_join
super
end
end
|
#ifdef GL_ES
precision mediump float;
#endif
uniform vec2 u_resolution;
uniform float u_time;
#include "../libs/local/2dshapes.glsl"
#include "../libs/local/colors.glsl"
#include "../libs/local/boolean-ops.glsl"
#include "../libs/local/coord-ops.glsl"
#include "../libs/local/style.glsl"
#include "../libs/local/smiley.glsl"
#include "../libs/local/circle-line.glsl"
void main() {
vec2 st = setupCoord(gl_FragCoord.xy, u_resolution);
vec4 currentColor = WHITE;
st *= st;
currentColor = circleLine(st, BLACK, LILA, currentColor, 0.0, 0.0);
currentColor = circleLine(st, LILA, BLACK, currentColor, 0.0, 2.0); // last 0.0 or 10.0
currentColor = smiley(st, BLACK, currentColor, false);
gl_FragColor=currentColor;
} |
local Skynet = require "skynet"
local Log = require "log"
local function __init__()
Skynet.newservice('debug_console', Skynet.getenv("CONSOLE_PORT"))
Skynet.newservice('hello_world')
Skynet.exit()
end
Skynet.start(__init__)
|
vlib work
vlib riviera
vlib riviera/xil_defaultlib
vlib riviera/xpm
vlib riviera/xbip_utils_v3_0_8
vlib riviera/c_reg_fd_v12_0_4
vlib riviera/c_mux_bit_v12_0_4
vlib riviera/c_shift_ram_v12_0_11
vmap xil_defaultlib riviera/xil_defaultlib
vmap xpm riviera/xpm
vmap xbip_utils_v3_0_8 riviera/xbip_utils_v3_0_8
vmap c_reg_fd_v12_0_4 riviera/c_reg_fd_v12_0_4
vmap c_mux_bit_v12_0_4 riviera/c_mux_bit_v12_0_4
vmap c_shift_ram_v12_0_11 riviera/c_shift_ram_v12_0_11
vlog -work xil_defaultlib -sv2k12 \
"D:/Xilinx/Vivado/2017.3/data/ip/xpm/xpm_cdc/hdl/xpm_cdc.sv" \
"D:/Xilinx/Vivado/2017.3/data/ip/xpm/xpm_memory/hdl/xpm_memory.sv" \
vcom -work xpm -93 \
"D:/Xilinx/Vivado/2017.3/data/ip/xpm/xpm_VCOMP.vhd" \
vcom -work xbip_utils_v3_0_8 -93 \
"../../../ipstatic/hdl/xbip_utils_v3_0_vh_rfs.vhd" \
vcom -work c_reg_fd_v12_0_4 -93 \
"../../../ipstatic/hdl/c_reg_fd_v12_0_vh_rfs.vhd" \
vcom -work c_mux_bit_v12_0_4 -93 \
"../../../ipstatic/hdl/c_mux_bit_v12_0_vh_rfs.vhd" \
vcom -work c_shift_ram_v12_0_11 -93 \
"../../../ipstatic/hdl/c_shift_ram_v12_0_vh_rfs.vhd" \
vcom -work xil_defaultlib -93 \
"../../../../Crystals-kyber.srcs/sources_1/ip/c_shift_ram_4/sim/c_shift_ram_4.vhd" \
vlog -work xil_defaultlib \
"glbl.v"
|
#ifndef SPROUT_ALGORITHM_FIT_RANDOM_SWAP_RESULT_HPP
#define SPROUT_ALGORITHM_FIT_RANDOM_SWAP_RESULT_HPP
#include <sprout/config.hpp>
#include <sprout/tuple/tuple/tuple.hpp>
#include <sprout/tuple/tuple/get.hpp>
#include <sprout/container/traits.hpp>
#include <sprout/container/functions.hpp>
#include <sprout/utility/forward.hpp>
#include <sprout/algorithm/fixed/random_swap_result.hpp>
#include <sprout/algorithm/fit/result_of.hpp>
#include <sprout/sub_array/sub_array.hpp>
#include <sprout/sub_array/sub.hpp>
namespace sprout {
namespace fit {
namespace detail {
template<typename Container, typename UniformRandomNumberGenerator, typename Shuffled>
inline SPROUT_CONSTEXPR sprout::tuples::tuple<
typename sprout::fit::result_of::algorithm<Container>::type,
typename std::decay<UniformRandomNumberGenerator>::type
>
random_swap_result_impl_1(
Shuffled const& random_swapd,
typename sprout::container_traits<Container>::difference_type offset
)
{
typedef sprout::tuples::tuple<
typename sprout::fit::result_of::algorithm<Container>::type,
typename std::decay<UniformRandomNumberGenerator>::type
> result_type;
return result_type(
sprout::sub_copy(
sprout::get_internal(sprout::tuples::get<0>(random_swapd)),
offset,
offset + sprout::size(sprout::tuples::get<0>(random_swapd))
),
sprout::tuples::get<1>(random_swapd)
);
}
template<typename Container, typename UniformRandomNumberGenerator>
inline SPROUT_CONSTEXPR sprout::tuples::tuple<
typename sprout::fit::result_of::algorithm<Container>::type,
typename std::decay<UniformRandomNumberGenerator>::type
>
random_swap_result_impl(
Container const& cont, UniformRandomNumberGenerator&& g,
typename sprout::container_traits<Container>::difference_type offset
)
{
return sprout::fit::detail::random_swap_result_impl_1<Container, UniformRandomNumberGenerator>(
sprout::fixed::random_swap_result(cont, sprout::forward<UniformRandomNumberGenerator>(g)),
offset
);
}
} // namespace detail
//
// random_swap_result
//
template<typename Container, typename UniformRandomNumberGenerator>
inline SPROUT_CONSTEXPR sprout::tuples::tuple<
typename sprout::fit::result_of::algorithm<Container>::type,
typename std::decay<UniformRandomNumberGenerator>::type
>
random_swap_result(Container const& cont, UniformRandomNumberGenerator&& g) {
return sprout::fit::detail::random_swap_result_impl(
cont, sprout::forward<UniformRandomNumberGenerator>(g),
sprout::internal_begin_offset(cont)
);
}
} // namespace fit
} // namespace sprout
#endif // #ifndef SPROUT_ALGORITHM_FIT_RANDOM_SWAP_RESULT_HPP
|