content
stringlengths 4
1.04M
| lang
stringclasses 358
values | score
int64 0
5
| repo_name
stringlengths 5
114
| repo_path
stringlengths 4
229
| repo_licenses
sequencelengths 1
8
|
---|---|---|---|---|---|
/*
* Copyright (c) 2004-2005 vlad902 <vlad902 [at] gmail.com>
* This file is part of the Metasploit Framework.
* $Revision$
*/
#include <sys/types.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <stdio.h>
#include <time.h>
#include <sys/utsname.h>
#ifdef SYSCALL_REBOOT
#include <linux/reboot.h>
#define reboot(arg) reboot(0xfee1dead, 0x28121969, arg, NULL)
#else
#include <sys/reboot.h>
#endif
#include "cmd.h"
void cmd_time(int argc, char * argv[])
{
printf("%s\n", get_time_str("%a %b %d %H:%M:%S %Z %Y"));
}
void cmd_uname(int argc, char * argv[])
{
struct utsname info;
if(uname(&info) == -1)
perror("uname");
else
printf("%s %s %s %s %s\n", info.sysname, info.nodename, \
info.release, info.version, info.machine);
}
void cmd_hostname(int argc, char * argv[])
{
/* This should be big enough to accomodate all cases. */
char buf[8192];
if(argc > 1)
{
if(sethostname(argv[1], strlen(argv[1])) == -1)
perror("sethostname");
}
else
{
if(gethostname(buf, sizeof(buf)) == -1)
perror("gethostname");
else
printf("%s\n", buf);
}
}
void cmd_reboot(int argc, char * argv[])
{
sync();
if(reboot(0x01234567) == -1)
perror("reboot");
}
/* Linux >= 2.1.30 */
void cmd_shutdown(int argc, char * argv[])
{
sync();
if(reboot(0x4321fedc) == -1)
perror("shutdown");
}
/* Linux >= 1.1.76 */
void cmd_halt(int argc, char * argv[])
{
sync();
if(reboot(0xcdef0123) == -1)
perror("halt");
}
| C | 4 | OsmanDere/metasploit-framework | external/source/ipwn/cmd_sys.c | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
using Uno;
using Uno.Collections;
using Uno.UX;
namespace Fuse
{
public class Panel : Element
{
IList<Element> _children = null;
[UXPrimary]
public IList<Element> Children
{
get { return _children; }
}
Element _appearance;
[DesignerName("Appearance"), Group("Style")]
public Element Appearance
{
get { return _appearance; }
set { _appearance = value; }
}
[Hide]
public bool HasChildren { get { return _children != null && _children.Count > 0; } }
}
}
| Uno | 4 | mortend/fuse-studio | Source/CodeCompletion/Outracks.CodeCompletion.UXNinja.TestsCommon/TestData/Panel.uno | [
"MIT"
] |
(ns hu.lib.type
(:require
[hu.lib.misc :refer [browser? *global]]))
(def ^:private obj->str
(.-to-string (.-prototype Object)))
(defn ^:private ->str
[x] ((.-call obj->str) x))
(defn ^boolean null?
"Check if the given value is null
Performs a strict type coercion comparison"
[x] (? x null))
(defn ^boolean undef?
"Check if the given value is null or undefined
Performs a strict type coercion comparison"
[x]
(or
(? (typeof x) "undefined")
(null? x)))
(def ^boolean undefined? undef?)
(defn ^boolean bool?
"Check if the given value is boolean type"
[x]
(or
(? x true)
(? x false)
(? (.call to-string x) "[object Boolean]")))
(def ^boolean boolean? bool?)
(defn ^boolean number?
"Check if the given value is number type"
[x] (? (->str x) "[object Number]"))
(defn ^boolean finite?
"Check if the given value is a finite number"
[x]
(and
(.finite? *global x)
(not (NaN? parse-float x))))
(defn ^number NaN?
"Is it NaN (not a number)?
More accurate than the native isNaN function"
[x]
(if (identical? x x) false true))
(defn ^boolean symbol?
"Check if the given value is a symbol type"
[x] (? (->str x) "[object Symbol]"))
(defn ^boolean string?
"Check if the given value is a string type"
[x] (? (->str x) "[object String]"))
(defn ^boolean date?
"Check if the given value is a date type"
[x] (? (->str x) "[object Date]"))
(defn ^boolean reg-exp?
"Check if the given value is a regexp type"
[x] (? (->str x) "[object RegExp]"))
(def ^boolean pattern? reg-exp?)
(defn ^boolean args?
"Check if the given value is a arguments object type"
[x] (? (->str x) "[object Arguments]"))
(def ^boolean arguments? args?)
(defn ^boolean function?
"Check if the given value is a function type"
[x] (? (typeof x) "function"))
(def ^boolean fn? function?)
(defn ^boolean object?
"Check if the given value is a object type"
[x] (? (->str x) "[object Object]"))
(def ^boolean array?
"Check if the given value is an array type"
(if (fn? (.-isArray Array))
(.-isArray Array)
(fn [x] (? (->str x) "[object Array]"))))
(defn ^boolean error?
"Check if the given value is an Error object instance"
[x] (? (->str x) "[object Error]"))
(defn ^boolean plain-object?
"Checks if the given value is a native object type
(it was createdd by the Object native constructor)"
[x]
(and
(object? x)
(object? (.get-prototype-of Object x))
(null? (.get-prototype-of Object (.get-prototype-of Object x)))))
(defn ^boolean element?
"Checks if the given value is a DOM element object instance"
[x]
(if browser?
(>= (.index-of (->str x) :Element) 0)
false))
(defn ^boolean mutable?
"Checks if the given value is a mutable data type.
Objects, arrays, date objects, arguments objects and
functions are considered mutable data types"
[x]
(or
(object? x)
(array? x)
(error? x)
(args? x)
(date? x)
(function? x)))
(defn ^boolean empty?
"Checks if the given value is empty.
Arrays, strings, or arguments objects with
a length of 0 and objects with no own enumerable
properties are considered empty values"
[x]
(or
(undef? x)
(if (object? x)
(if (? (.-length (.keys Object x)) 0) true false) false)
(? (.-length x) 0)))
(defn ^boolean not-empty
"Checks if the given value is not empty"
[x]
(not (empty? x)))
(def ^boolean not-empty? not-empty)
(defn ^boolean primitive?
"Checks if the given value is a primitive value type.
Strings, numbers, booleans, symbols and null are
considered primitives values"
[x]
(or
(null? x)
(bool? x)
(reg-exp? x)
(string? x)
(number? x)
(symbol? x)))
(defn ^boolean iterable?
"Checks if the given value can be iterated.
Objects, arrays, and arguments objects are
considered iterables data types"
[x]
(or
(object? x)
(array? x)
(args? x)))
(def ^boolean can-iterate iterable?)
| wisp | 5 | h2non/hu | src/type.wisp | [
"MIT"
] |
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: cannadic.eclass
# @MAINTAINER:
# [email protected]
# @AUTHOR:
# Mamoru KOMACHI <[email protected]>
# @BLURB: Function for Canna compatible dictionaries
# @DESCRIPTION:
# The cannadic eclass is used for installation and setup of Canna
# compatible dictionaries within the Portage system.
inherit eutils
EXPORT_FUNCTIONS pkg_setup pkg_postinst pkg_postrm src_install
HOMEPAGE="http://canna.osdn.jp/" # you need to change this!
SRC_URI="mirror://gentoo/${P}.tar.gz"
DICSDIRFILE="${FILESDIR}/*.dics.dir"
CANNADICS="${CANNADICS}" # (optional)
# You don't need to modify these
CANNADIC_CANNA_DIR="${EROOT:-${ROOT}}"var/lib/canna/dic/canna
CANNADIC_DICS_DIR="${EROOT:-${ROOT}}"var/lib/canna/dic/dics.d
readonly CANNADIC_CANNA_DIR CANNADIC_DICS_DIR
# @FUNCTION: cannadic_pkg_setup
# @DESCRIPTION:
# Sets up ${CANNADIC_CANNA_DIR}
cannadic_pkg_setup() {
keepdir "${CANNADIC_CANNA_DIR}"
fowners bin:bin "${CANNADIC_CANNA_DIR}"
fperms 0775 "${CANNADIC_CANNA_DIR}"
}
# @FUNCTION: cannadic-install
# @DESCRIPTION:
# Installs dictionaries to ${CANNADIC_CANNA_DIR}
cannadic-install() {
insinto "${CANNADIC_CANNA_DIR}"
insopts -m 0664 -o bin -g bin
doins "${@}"
}
# @FUNCTION: dicsdir-install
# @DESCRIPTION:
# Installs dics.dir from ${DICSDIRFILE}
dicsdir-install() {
insinto "${CANNADIC_DICS_DIR}"
doins "${DICSDIRFILE}"
}
# @FUNCTION: cannadic_src_install
# @DESCRIPTION:
# Installs all dictionaries under ${WORKDIR}
# plus dics.dir and docs
cannadic_src_install() {
local f
for f in *.c[btl]d *.t; do
if [[ -s "${f}" ]]; then
cannadic-install "${f}"
fi
done 2> /dev/null
dicsdir-install || die
einstalldocs
}
# @FUNCTION: update-cannadic-dir
# @DESCRIPTION:
# Updates dics.dir for Canna Server, script for this part taken from Debian GNU/Linux
#
# compiles dics.dir files for Canna Server
# Copyright 2001 ISHIKAWA Mutsumi
# Licensed under the GNU General Public License, version 2. See the file
# /usr/portage/license/GPL-2 or <http://www.gnu.org/copyleft/gpl.txt>.
update-cannadic-dir() {
einfo
einfo "Updating dics.dir for Canna ..."
einfo
# write new dics.dir file in case we are interrupted
cat <<-EOF > "${CANNADIC_CANNA_DIR}"/dics.dir.update-new
# dics.dir -- automatically generated file by Portage.
# DO NOT EDIT BY HAND.
EOF
local f
for f in "${CANNADIC_DICS_DIR}"/*.dics.dir; do
echo "# ${f}" >> "${CANNADIC_CANNA_DIR}"/dics.dir.update-new
cat "${f}" >> "${CANNADIC_CANNA_DIR}"/dics.dir.update-new
einfo "Added ${f}."
done
mv "${CANNADIC_CANNA_DIR}"/dics.dir.update-new "${CANNADIC_CANNA_DIR}"/dics.dir
einfo
einfo "Done."
einfo
}
# @FUNCTION: cannadic_pkg_postinst
# @DESCRIPTION:
# Updates dics.dir and print out notice after install
cannadic_pkg_postinst() {
update-cannadic-dir
einfo
einfo "Please restart cannaserver to fit the changes."
einfo "You need to modify your config file (~/.canna) to enable dictionaries."
if [[ -n "${CANNADICS}" ]]; then
einfo "e.g) add $(for d in ${CANNADICS}; do echo -n "\"${d}\" "; done)to section use-dictionary()."
einfo "For details, see documents under /usr/share/doc/${PF}."
fi
einfo "If you do not have ~/.canna, you can find sample files in /usr/share/canna."
ewarn "If you are upgrading from existing dictionary, you may need to recreate"
ewarn "user dictionary if you have one."
einfo
}
# @FUNCTION: cannadic_pkg_postrm
# @DESCRIPTION:
# Updates dics.dir and print out notice after uninstall
cannadic_pkg_postrm() {
update-cannadic-dir
einfo
einfo "Please restart cannaserver to fit changes."
einfo "and modify your config file (~/.canna) to disable dictionary."
if [[ -n "${CANNADICS}" ]]; then
einfo "e.g) delete $(for d in ${CANNADICS}; do echo -n "\"${d}\" "; done)from section use-dictionary()."
fi
einfo
}
| Gentoo Eclass | 5 | NighttimeDriver50000/Sabayon-Packages | local_overlay/eclass/cannadic.eclass | [
"MIT"
] |
h2. Numerated Headers Plugin
With this plugin the editor has the possibility to auto generate numeration in the header tags.
The main features are:
* Auto generate numeration
* Put it in a +<span>+ that will be prepended to the headline
* Auto remove the numeration if the editor deletes the header content
* Customizable: which headers should be affected, and in which surrounding container should the plugin process
endprologue.
h3. Overview
So headers like:
<html>
Headline One
Headline Two
Sub Headline Two dot One
</html>
will be extended to:
<html>
1 Headline One
2 Headline Two
2.1 Sub Headline Two dot One
</html>
h3. Usage
Activate an editable and press the "Toggle header numeration" button.
<img src="images/plugins/numerated-headers-01.png" style="width:620px">
All headings now get a consecutive numberation according to the hierarchy.
<img src="images/plugins/numerated-headers-02.png" style="width:620px">
h3. Components
* Button to toggle the heading numeration
h3. Configuration
* auto activate the feature of the plugin with numeratedactive: true (default)
* specify selector for affected headers
* specify Base Object, if you want the plugin to process in a specific container, or on the hole page (e.g. 'body')
* specify the numeration format 1.2 or 1.2. (trailing dot).
Add a rule to your project CSS to account for the space between the heading's text and the annotation span.
e.g.:
<pre>
span[role="annotation"] {
margin-right: 10px;
}
</pre>
This settings can be applied for individual editables.
<javascript>
Aloha.settings.plugins: {
'numerated-headers': {
config: {
// default true
// numeratedactive will also accept "true" and "1" as true values
// false and "false" for false
numeratedactive: true,
// if the headingselector is empty, the button will not be shown at all
headingselector: 'h1, h2, h3, h4, h5, h6', // default: all
baseobjectSelector: 'body' // if not set: Aloha.activeEditable,
trailingdot: false
}
}
}
</javascript>
| Textile | 4 | luciany/Aloha-Editor | doc/guides/source/plugin_numerated-headers.textile | [
"CC-BY-3.0"
] |
pragma solidity ^0.5.0;
import "./Branch.sol";
import "./LeafC.sol";
import "./LibraryA.sol";
import "./Abi.abi.json";
contract Root is Branch {
uint root;
function addToRoot(uint a, uint b) public {
root = LibraryA.add(a, b);
}
}
| Solidity | 3 | santanaluiz/truffle | packages/truffle/test/sources/inheritance/contracts/Root.sol | [
"MIT"
] |
## Licensed to Cloudera, Inc. under one
## or more contributor license agreements. See the NOTICE file
## distributed with this work for additional information
## regarding copyright ownership. Cloudera, Inc. licenses this file
## to you under the Apache License, Version 2.0 (the
## "License"); you may not use this file except in compliance
## with the License. You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
SELECT
hiveQueryId,
`timestamp`,
executionMode,
requestUser,
queue,
otherInfo["QUERY"],
otherInfo["PERF"],
`date`,
eventType
FROM sys.${table["name"]}
% if table["start_date"] or table["start_time"] or table["request_user"] or table["query_id"]:
WHERE
% if table["request_user"]:
requestUser = "${table["request_user"]}"
% endif
% if table["start_date"]:
% if table["request_user"]:
and
% endif
`date` >= "${table["start_date"]}"
% endif
% if table["start_time"]:
% if table["request_user"] or table["start_date"]:
and
% endif
`timestamp` >= ${table["start_time"]}
% endif
% if table["query_id"]:
% if table["request_user"] or table["start_date"] or table["start_date"]:
and
% endif
`hiveQueryId` = "${table["query_id"]}"
% endif
% endif
% if table["limit"]:
LIMIT ${table["limit"]}
% endif
; | Mako | 3 | yetsun/hue | apps/beeswax/src/beeswax/templates/select_table_query_data_from.mako | [
"Apache-2.0"
] |
(*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
(*****************************************************************************)
(* Adds a new file or directory to the environment *)
(*****************************************************************************)
val path : DfindEnv.t -> string -> unit
(*****************************************************************************)
(* Find all the files in a directory *)
(*****************************************************************************)
val get_files : string -> Unix.dir_handle -> SSet.t
| OCaml | 4 | Hans-Halverson/flow | src/hack_forked/dfind/dfindAddFile.mli | [
"MIT"
] |
@import 'nib'
.map-members
&:after
content: "";
flex: auto;
.mapping-list
display: flex
flex-wrap: wrap
margin: 0 -4px
.mapping-item
max-width: 300px
min-width: 200px
padding: 6px
margin: 5px
flex:1
background: white
border-radius: 3px
box-shadow: 0 1px 2px rgba(0,0,0,.15)
&:hover
background: darken(white, 5%)
&.filled
background: #E0FFE5
&:hover
background: #FFE0E0
&.ghost-item
height: 0
visibility: hidden
border: none
.profile-source
display: inline-block
width: 80%
.wekan
display: inline-block
width: 35px
.member
float: none
a.show-mapping
text-decoration underline
.import-members-map-note
font-size: 90%
font-weight: bold
| Stylus | 3 | moqmar/wekan | client/components/import/import.styl | [
"MIT"
] |
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
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.
==============================================================================*/
#include <gtest/gtest.h>
#include "tensorflow/lite/delegates/hexagon/builders/tests/hexagon_delegate_op_model.h"
namespace tflite {
using ::testing::ElementsAreArray;
class SquaredDifferenceOpModel : public SingleOpModelWithHexagon {
public:
SquaredDifferenceOpModel(const TensorData& input1, const TensorData& input2,
const TensorData& output) {
input1_ = AddInput(input1);
input2_ = AddInput(input2);
output_ = AddOutput(output);
SetBuiltinOp(BuiltinOperator_SQUARED_DIFFERENCE,
BuiltinOptions_SquaredDifferenceOptions,
CreateSquaredDifferenceOptions(builder_).Union());
BuildInterpreter({GetShape(input1_), GetShape(input2_)});
}
int input1() { return input1_; }
int input2() { return input2_; }
template <typename integer_dtype>
std::vector<float> GetDequantizedOutput() {
return Dequantize<int8_t>(ExtractVector<int8_t>(output_), GetScale(output_),
GetZeroPoint(output_));
}
protected:
int input1_;
int input2_;
int output_;
};
float GetTolerance(int min, int max) {
float kQuantizedStep = (max - min) / 255.0;
return kQuantizedStep;
}
TEST(QuantizedSquaredDifferenceOpTest, Quantized_SameShape) {
float kQuantizedTolerance = GetTolerance(0, 1);
SquaredDifferenceOpModel m({TensorType_INT8, {1, 2, 2, 1}, -1.2, 0.8},
{TensorType_INT8, {1, 2, 2, 1}, -1.5, 0.5},
{TensorType_INT8, {}, 0.0, 0.5});
m.QuantizeAndPopulate<int8_t>(m.input1(), {-0.2, 0.2, -1.2, 0.8});
m.QuantizeAndPopulate<int8_t>(m.input2(), {0.5, 0.2, -1.5, 0.5});
m.ApplyDelegateAndInvoke();
EXPECT_THAT(m.GetDequantizedOutput<int8_t>(),
ElementsAreArray(ArrayFloatNear({0.49, 0.0, 0.09, 0.09},
kQuantizedTolerance)));
}
TEST(QuantizedSquaredDifferenceOpTest, Quantized_VariousInputShapes) {
// NOTE: the min/max are 0 and 9. We use larger threshold for accuracy
// issue in Hexagon.
float kQuantizedTolerance = GetTolerance(0, 10);
std::vector<std::vector<int>> test_shapes = {
{6}, {2, 3}, {2, 1, 3}, {1, 3, 1, 2}};
for (int i = 0; i < test_shapes.size(); ++i) {
SquaredDifferenceOpModel m({TensorType_INT8, test_shapes[i], -2.0, 1.7},
{TensorType_INT8, test_shapes[i], -1.0, 1.0},
{TensorType_INT8, {}, 0.0, 9.0});
m.QuantizeAndPopulate<int8_t>(m.input1(), {-2.0, 0.2, 0.3, 0.8, 1.1, -2.0});
m.QuantizeAndPopulate<int8_t>(m.input2(), {1.0, 0.2, 0.6, 0.4, -1.0, -0.0});
m.ApplyDelegateAndInvoke();
EXPECT_THAT(m.GetDequantizedOutput<int8_t>(),
ElementsAreArray(ArrayFloatNear(
{9.0, 0.0, 0.09, 0.16, 4.41, 4.0}, kQuantizedTolerance)))
<< "With shape number " << i;
}
}
TEST(QuantizedSquaredDifferenceOpTest, Quantized_WithBroadcast) {
std::vector<std::vector<int>> test_shapes = {
{6}, {2, 3}, {2, 1, 3}, {1, 3, 1, 2}};
float kQuantizedTolerance = GetTolerance(0, 1);
for (int i = 0; i < test_shapes.size(); ++i) {
SquaredDifferenceOpModel m({TensorType_INT8, test_shapes[i], -0.2, 1.1},
{TensorType_INT8, {}, 0.0, 0.1},
{TensorType_INT8, {}, 0.0, 1.0});
m.QuantizeAndPopulate<int8_t>(m.input1(), {-0.2, 0.2, 0.5, 0.8, 0.11, 1.1});
m.QuantizeAndPopulate<int8_t>(m.input2(), {0.1});
m.ApplyDelegateAndInvoke();
EXPECT_THAT(
m.GetDequantizedOutput<int8_t>(),
ElementsAreArray(ArrayFloatNear({0.09, 0.01, 0.16, 0.49, 0.0001, 1.0},
kQuantizedTolerance)))
<< "With shape number " << i;
}
}
} // namespace tflite
| C++ | 4 | EricRemmerswaal/tensorflow | tensorflow/lite/delegates/hexagon/builders/tests/squared_difference_test.cc | [
"Apache-2.0"
] |
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1011 &101100000
AvatarMask:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: UpperMask
m_Mask: 01000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000
m_Elements:
- m_Path:
m_Weight: 1
- m_Path: Root
m_Weight: 1
- m_Path: Root/Hips
m_Weight: 1
- m_Path: Root/Hips/Belly
m_Weight: 0
- m_Path: Root/Hips/LHp
m_Weight: 0
- m_Path: Root/Hips/LHp/LThigh_Gimbal
m_Weight: 0
- m_Path: Root/Hips/LHp/LThigh_Gimbal/LThigh
m_Weight: 0
- m_Path: Root/Hips/LHp/LThigh_Gimbal/LThigh/LShin
m_Weight: 0
- m_Path: Root/Hips/LHp/LThigh_Gimbal/LThigh/LShin/LFoot
m_Weight: 0
- m_Path: Root/Hips/LHp/LThigh_Gimbal/LThigh/LShin/LFoot/LToe
m_Weight: 0
- m_Path: Root/Hips/RHp
m_Weight: 0
- m_Path: Root/Hips/RHp/RThigh_Gimbal
m_Weight: 0
- m_Path: Root/Hips/RHp/RThigh_Gimbal/RThigh
m_Weight: 0
- m_Path: Root/Hips/RHp/RThigh_Gimbal/RThigh/RShin
m_Weight: 0
- m_Path: Root/Hips/RHp/RThigh_Gimbal/RThigh/RShin/RFoot
m_Weight: 0
- m_Path: Root/Hips/RHp/RThigh_Gimbal/RThigh/RShin/RFoot/RToe
m_Weight: 0
- m_Path: Root/Hips/Spine1
m_Weight: 1
- m_Path: Root/Hips/Spine1/Spine2
m_Weight: 1
- m_Path: Root/Hips/Spine1/Spine2/Spine3
m_Weight: 1
- m_Path: Root/Hips/Spine1/Spine2/Spine3/Head
m_Weight: 1
- m_Path: Root/Hips/Spine1/Spine2/Spine3/Head/Hair1
m_Weight: 1
- m_Path: Root/Hips/Spine1/Spine2/Spine3/Head/Hair1/Hair2
m_Weight: 1
- m_Path: Root/Hips/Spine1/Spine2/Spine3/Head/LEar_Gimbal
m_Weight: 1
- m_Path: Root/Hips/Spine1/Spine2/Spine3/Head/LEar_Gimbal/LEar1
m_Weight: 1
- m_Path: Root/Hips/Spine1/Spine2/Spine3/Head/LEar_Gimbal/LEar1/LEar2
m_Weight: 1
- m_Path: Root/Hips/Spine1/Spine2/Spine3/Head/LEar_Gimbal/LEar1/LEar2/LEar3
m_Weight: 1
- m_Path: Root/Hips/Spine1/Spine2/Spine3/Head/REar_Gimbal
m_Weight: 1
- m_Path: Root/Hips/Spine1/Spine2/Spine3/Head/REar_Gimbal/REar1
m_Weight: 1
- m_Path: Root/Hips/Spine1/Spine2/Spine3/Head/REar_Gimbal/REar1/REar2
m_Weight: 1
- m_Path: Root/Hips/Spine1/Spine2/Spine3/Head/REar_Gimbal/REar1/REar2/REar3
m_Weight: 1
- m_Path: Root/Hips/Spine1/Spine2/Spine3/LClavicle
m_Weight: 1
- m_Path: Root/Hips/Spine1/Spine2/Spine3/LClavicle/LShoulder_Gimbal
m_Weight: 1
- m_Path: Root/Hips/Spine1/Spine2/Spine3/LClavicle/LShoulder_Gimbal/LShoulder
m_Weight: 1
- m_Path: Root/Hips/Spine1/Spine2/Spine3/LClavicle/LShoulder_Gimbal/LShoulder/LForearm
m_Weight: 1
- m_Path: Root/Hips/Spine1/Spine2/Spine3/LClavicle/LShoulder_Gimbal/LShoulder/LForearm/LForearmTwist
m_Weight: 1
- m_Path: Root/Hips/Spine1/Spine2/Spine3/LClavicle/LShoulder_Gimbal/LShoulder/LForearm/LHand
m_Weight: 1
- m_Path: Root/Hips/Spine1/Spine2/Spine3/LClavicle/LShoulder_Gimbal/LShoulder/LForearm/LHand/LHandWeapon
m_Weight: 1
- m_Path: Root/Hips/Spine1/Spine2/Spine3/LClavicle/LShoulder_Gimbal/LShoulder/LForearm/LHandShield
m_Weight: 1
- m_Path: Root/Hips/Spine1/Spine2/Spine3/RClavicle
m_Weight: 1
- m_Path: Root/Hips/Spine1/Spine2/Spine3/RClavicle/RShoulder_Gimbal
m_Weight: 1
- m_Path: Root/Hips/Spine1/Spine2/Spine3/RClavicle/RShoulder_Gimbal/RShoulder
m_Weight: 1
- m_Path: Root/Hips/Spine1/Spine2/Spine3/RClavicle/RShoulder_Gimbal/RShoulder/RForearm
m_Weight: 1
- m_Path: Root/Hips/Spine1/Spine2/Spine3/RClavicle/RShoulder_Gimbal/RShoulder/RForearm/RForearmTwist
m_Weight: 1
- m_Path: Root/Hips/Spine1/Spine2/Spine3/RClavicle/RShoulder_Gimbal/RShoulder/RForearm/RHand
m_Weight: 1
- m_Path: Root/Hips/Spine1/Spine2/Spine3/RClavicle/RShoulder_Gimbal/RShoulder/RForearm/RHand/RHandWeapon
m_Weight: 1
- m_Path: Root/Hips/Tail_Gimbal
m_Weight: 1
- m_Path: Root/Hips/Tail_Gimbal/Tail1
m_Weight: 1
- m_Path: Root/Hips/Tail_Gimbal/Tail1/Tail2
m_Weight: 1
- m_Path: Root/Hips/Tail_Gimbal/Tail1/Tail2/Tail3
m_Weight: 1
- m_Path: Root/Hips/Tail_Gimbal/Tail1/Tail2/Tail3/Tail4
m_Weight: 1
- m_Path: Root/Hips/Tail_Gimbal/Tail1/Tail2/Tail3/Tail4/Tail5
m_Weight: 1
- m_Path: Root/Hips/Tail_Gimbal/Tail1/Tail2/Tail3/Tail4/Tail5/Tail6
m_Weight: 1
- m_Path: Root/Hips/Tail_Gimbal/Tail1/Tail2/Tail3/Tail4/Tail5/Tail6/Tail7
m_Weight: 1
| Mask | 2 | alerdenisov/llapi-example | assets-folder/Content/Sources/Models/UpperMask.mask | [
"MIT"
] |
<iframe src='./redirect-my-parent.html'></iframe>
| HTML | 0 | NareshMurthy/playwright | test/assets/frames/child-redirect.html | [
"Apache-2.0"
] |
\documentclass{article}
\usepackage{agda}
\begin{document}
\begin{code}
record Sigma (A : Set) (B : A → Set) : Set where
constructor _,_
field
proj₁ : A
proj₂ : B proj₁
open Sigma public
\end{code}
\end{document}
| Literate Agda | 3 | shlevy/agda | test/LaTeXAndHTML/succeed/Indenting5.lagda | [
"BSD-3-Clause"
] |
(module
(type $ii (func (param i32) (result i32)))
(export "fls" (func $assembly/tlsf/fls<usize>))
(func $assembly/tlsf/fls<usize> (; 8 ;) (type $ii) (param $0 i32) (result i32)
(return
(i32.sub
(i32.sub
(i32.shl
(i32.const 4)
(i32.const 3)
)
(i32.clz
(get_local $0)
)
)
(i32.const 1)
)
)
)
)
| WebAssembly | 3 | romdotdog/assemblyscript | tests/binaryen/precompute-join.wat | [
"Apache-2.0"
] |
(*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
module type S = sig
module Env : Env_sig.S
type t =
| Return
| Throw
| Break of string option
| Continue of string option
type payload =
| Expr of ALoc.t * (ALoc.t, ALoc.t * Type.t) Flow_ast.Expression.t
| Stmt of (ALoc.t, ALoc.t * Type.t) Flow_ast.Statement.t
| Stmts of (ALoc.t, ALoc.t * Type.t) Flow_ast.Statement.t list
val throw_stmt_control_flow_exception : (ALoc.t, ALoc.t * Type.t) Flow_ast.Statement.t -> t -> 'a
val throw_stmts_control_flow_exception :
(ALoc.t, ALoc.t * Type.t) Flow_ast.Statement.t list -> t -> 'a
val throw_expr_control_flow_exception :
ALoc.t -> (ALoc.t, ALoc.t * Type.t) Flow_ast.Expression.t -> t -> 'a
val check_stmt_control_flow_exception :
(ALoc.t, ALoc.t * Type.t) Flow_ast.Statement.t * t option ->
(ALoc.t, ALoc.t * Type.t) Flow_ast.Statement.t
val catch_stmt_control_flow_exception :
(unit -> (ALoc.t, ALoc.t * Type.t) Flow_ast.Statement.t) ->
(ALoc.t, ALoc.t * Type.t) Flow_ast.Statement.t * t option
val catch_stmts_control_flow_exception :
(unit -> (ALoc.t, ALoc.t * Type.t) Flow_ast.Statement.t list) ->
(ALoc.t, ALoc.t * Type.t) Flow_ast.Statement.t list * t option
val catch_expr_control_flow_exception :
(unit -> (ALoc.t, ALoc.t * Type.t) Flow_ast.Expression.t) ->
(ALoc.t, ALoc.t * Type.t) Flow_ast.Expression.t * t option
val ignore_break_to_label : string option -> 'a * t option -> 'a * t option
val ignore_break_or_continue_to_label : string option -> 'a * t option -> 'a * t option
val save : ?env:Env.t -> t -> unit
val swap_saved : t -> Env.t option -> Env.t option
val clear_saved : t -> Env.t option
val try_with_abnormal_exn : f:(unit -> 'a) -> on_abnormal_exn:(payload * t -> 'a) -> unit -> 'a
end
| OCaml | 3 | zhangmaijun/flow | src/typing/abnormal_sig.ml | [
"MIT"
] |
// Copyright (c) 2016 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "base/strings/sys_string_conversions.h"
#include "shell/common/api/electron_api_clipboard.h"
#include "ui/base/cocoa/find_pasteboard.h"
namespace electron {
namespace api {
void Clipboard::WriteFindText(const std::u16string& text) {
NSString* text_ns = base::SysUTF16ToNSString(text);
[[FindPasteboard sharedInstance] setFindText:text_ns];
}
std::u16string Clipboard::ReadFindText() {
return GetFindPboardText();
}
} // namespace api
} // namespace electron
| Objective-C++ | 3 | TarunavBA/electron | shell/common/api/electron_api_clipboard_mac.mm | [
"MIT"
] |
use v6;
# Cumulative sum of prime squares.
# Thanks to masak for ideas on this.
my @p = ([\+] ((2..150).grep({$_.is-prime})).map: {$^a**2});
say @p;
say @p[*-1];
| Perl6 | 3 | Wikunia/hakank | perl6/cumulative_sum_of_prime_squares.p6 | [
"MIT"
] |
{%- set config_dir = pillar['git_pillar']['config_dir'] %}
{{ config_dir }}/nginx.conf:
file.managed:
- source: salt://git_pillar/http/files/nginx.conf
- user: root
{%- if grains['os_family'] == 'FreeBSD' %}
- group: wheel
{%- else %}
- group: root
{%- endif %}
- mode: 644
- makedirs: True
- template: jinja
| SaltStack | 3 | Noah-Huppert/salt | tests/integration/files/file/base/git_pillar/http/nginx.sls | [
"Apache-2.0"
] |
#!/bin/bash
SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
$SCRIPTPATH/target/quarkus-project-0.1-SNAPSHOT-runner -XX:+FlightRecorder -XX:StartFlightRecording="filename=$SCRIPTPATH/recording.jfr,name=Profiling quarkus" | Shell | 3 | DBatOWL/tutorials | quarkus-vs-springboot/quarkus-project/start_app.sh | [
"MIT"
] |
<?xml version='1.0' encoding='utf-8'?>
<xsl:stylesheet version="1.0"
id="stylesheet"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="items">
<html>
<head>
</head>
<body>
<xsl:for-each select="item">
<span><xsl:value-of select="."/></span>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
| XSLT | 3 | zealoussnow/chromium | third_party/blink/web_tests/http/tests/devtools/elements/styles/resources/xsl-transformed.xsl | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="Probabilistic framework for structural variant discovery"
HOMEPAGE="https://github.com/arq5x/lumpy-sv"
SRC_URI="https://github.com/arq5x/lumpy-sv/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="sci-libs/htslib"
RDEPEND="${DEPEND}"
src_prepare() {
default
# do not build bundled htslib, link to system lib
sed -i -e 's/lumpy_filter: htslib/lumpy_filter:/g' Makefile || die
sed -i -e 's/-I..\/..\/lib\/htslib\///' -e 's/..\/..\/lib\/htslib\/libhts.a/-lhts/g' src/filter/Makefile || die
}
src_install(){
cat > "${T}"/99lumpy-sv <<- EOF
LUMPY_HOME=${EPREFIX}/usr/share/lumpy-sv
PAIREND_DISTRO=${EPREFIX}/usr/share/lumpy-sv/scripts/pairend_distro.py
BAMGROUPREADS=${EPREFIX}/usr/share/lumpy-sv/scripts/bamkit/bamgroupreads.py
BAMFILTERRG=${EPREFIX}/usr/share/lumpy-sv/scripts/bamkit/bamfilterrg.py
BAMLIBS=${EPREFIX}/usr/share/lumpy-sv/scripts/bamkit/bamlibs.py
EOF
doenvd "${T}"/99lumpy-sv
rm -f bin/lumpyexpress.config
dobin bin/*
insinto /usr/share/lumpy-sv/scripts
for f in lumpyexpress lumpyexpress.config; do
rm scripts/"$f" || die
done
doins scripts/*
einstalldocs
}
| Gentoo Ebuild | 4 | justxi/sci | sci-biology/lumpy-sv/lumpy-sv-0.3.1.ebuild | [
"BSD-3-Clause"
] |
ANB
NEW A,B,T,S
READ !,"Input two integers between -1000 and 1000, separated by a space: ",S
SET A=$PIECE(S," ",1),B=$PIECE(S," ",2)
SET T=(A>=-1000)&(A<=1000)&(B>=-1000)&(B<=1000)&(A\1=A)&(B\1=B)
IF T WRITE !,(A+B)
IF 'T WRITE !,"Bad input"
QUIT
| M | 3 | LaudateCorpus1/RosettaCodeData | Task/A+B/MUMPS/a+b.mumps | [
"Info-ZIP"
] |
<br style="--r:16">
<footer>
<aside></aside> <!-- spacing -->
<div class="grid-footer">
<div class="column">
<div>
<a href="/" id="footer-logo">
<img src="../assets/logo-w.svg" alt="CRYPTEE">
</a>
<div>
<h1><a href="/">CRYPTEE</a></h1>
<small>info @ crypt <strong>·</strong> ee</small>
</div>
</div>
<br><br>
<div>
<p id="eu-flag">
<img src="../imgs/other-logos/eu.svg" alt="EU Flag">
</p>
<div>
<small aria-disabled="true">
made
<br>
in
<br>
europe
</small>
</div>
</div>
</div>
<div class="column">
<p><strong>more</strong></p>
<p>
<a href="/about">about</a>
</p>
<p>
<a href="/security">security</a>
</p>
<p>
<a href="/download">download</a>
</p>
<p>
<a href="https://github.com/cryptee" target="_blank" rel="noopener" class="external">source code</a>
</p>
<p>
<a href="/threat-model">threat model</a>
</p>
</div>
<div class="column">
<p><strong>other</strong></p>
<p>
<a href="/press-kit">press kit</a>
</p>
<p>
<a href="https://blog.crypt.ee" target="_blank" rel="noopener" class="external">blog & news</a>
</p>
<p>
<a href="/help">faq & support</a>
</p>
<p>
<a href="/acknowledgements">acknowledgements</a>
</p>
<p>
<a href="/help">feedback & bug report</a>
</p>
</div>
<div class="column">
<p><strong>legal</strong></p>
<p>
<a href="/imprint">imprint</a>
</p>
<p>
<a href="/privacy">privacy policy</a>
</p>
<p>
<a href="/terms">terms & conditions</a>
</p>
<p>
<a href="/transparency">transparency report</a>
</p>
</div>
</div>
<aside></aside> <!-- spacing -->
</footer>
<!-- WE NEED THIS FOR THE PWA INSTALL BANNER -->
<script src="../js/register-worker.js"></script>
<script>
// a super basic lazy loader
window.addEventListener('load', function(){
[].forEach.call(document.querySelectorAll('img[lazysrc]'), function(img) {
img.setAttribute('src', img.getAttribute('lazysrc'));
img.onload = function() { img.removeAttribute('lazysrc'); };
});
[].forEach.call(document.querySelectorAll('.hero-img-carousel'), function(carousel) {
carousel.setAttribute('loaded', 'true');
});
}, false);
// a super basic floating nav
window.addEventListener('scroll', function(){
if (document.documentElement.scrollTop >= 320) {
document.documentElement.classList.add("floatnav");
} else {
document.documentElement.classList.remove("floatnav");
}
});
</script> | Kit | 4 | pws1453/web-client | source/imports/www/footer.kit | [
"MIT"
] |
use("ispec")
describe(Hook,
it("should have the correct kind",
Hook should have kind("Hook")
)
describe("connectedObjects",
it("should return the connected objects for that hook",
x = Origin mimic
y = Origin mimic
z = Origin mimic
Hook into(x) connectedObjects[0] should be(x)
Hook into(x, y) connectedObjects[0] should be(x)
Hook into(x, y) connectedObjects[1] should be(y)
Hook into(x, y, z) connectedObjects[0] should be(x)
Hook into(x, y, z) connectedObjects[1] should be(y)
Hook into(x, y, z) connectedObjects[2] should be(z)
Hook into(x, y, z) connectedObjects length should == 3
)
)
describe("into",
it("should return a new hook object",
xx = Origin mimic
yy = Hook into(xx)
yy should mimic(Hook)
yy should not be(Hook)
)
it("should take one or more arguments",
Hook into(Origin mimic)
Hook into(Origin mimic, Origin mimic)
Hook into(Origin mimic, Origin mimic, Origin mimic)
Hook into(Origin mimic, Origin mimic, Origin mimic, Origin mimic)
Hook into(Origin mimic, Origin mimic, Origin mimic, Origin mimic, Origin mimic)
fn(Hook into()) should signal(Condition Error Invocation TooFewArguments)
)
)
describe("hook!",
it("should add a new observed object to the receiver",
xx = Origin mimic
yy = Hook into(xx)
zz = Origin mimic
yy hook!(zz)
yy connectedObjects[1] should be(zz)
)
)
describe("cellAdded",
it("should be called on the hook when a cell is added on the observed object",
xx = Origin mimic
yy = Hook into(xx)
yy invoked = 0
yy cellAdded = method(obj, _, @invoked++)
xx bar = "hello"
yy invoked should == 1
xx flux = method(nil)
yy invoked should == 2
)
it("should be called after the cell has been added",
xx = Origin mimic
yy = Hook into(xx)
yy cellAdded = fnx(obj, _,
xx fox should == "blarg"
)
xx fox = "blarg"
)
it("should give the object that has been updated",
xx = Origin mimic
yy = Hook into(xx)
yy cellAdded = fnx(obj, _,
obj should be(xx)
)
xx fox = "blarg"
)
it("should give the name of the added cell to the hook as an argument",
xx = Origin mimic
yy = Hook into(xx)
yy cellAdded = fnx(obj, sym,
sym should == :fox
)
xx fox = "blarg"
)
it("should fire on more than one hook if available",
xx = Origin mimic
yy = Origin mimic
zz = Hook into(xx, yy)
zz invoked = 0
zz cellAdded = method(_, _,
@invoked++
)
xx blah = "arg"
yy foo = "ax"
yy muuh = "wow"
zz invoked should == 3
)
it("should not fire when a cell is updated",
xx = Origin mimic
yy = Hook into(xx)
xx blarg = "hello"
yy invoked = 0
yy cellAdded = method(obj, _, @invoked++)
xx blarg = "goodbye"
yy invoked should == 0
)
)
describe("cellRemoved",
it("should be called on the hook when a cell is removed on the observed object",
xx = Origin mimic
xx val = "foo"
xx vax = "fox"
yy = Hook into(xx)
yy invoked = 0
yy cellRemoved = method(_, _, _, @invoked++)
xx removeCell!(:val)
yy invoked should == 1
xx removeCell!(:vax)
yy invoked should == 2
)
it("should be called after cellChanged",
xx = Origin mimic
xx val = "foo"
yy = Hook into(xx)
yy doneCellChanged? = false
yy cellChanged = method(_, _, _, @doneCellChanged? = true)
yy cellRemoved = method(_, _, _, should have doneCellChanged)
xx removeCell!(:val)
)
it("should be called after the cell has been removed",
xx = Origin mimic
xx one = 42
yy = Hook into(xx)
yy cellRemoved = fnx(_, _, _, xx cell?(:one) should be false)
xx removeCell!(:one)
)
it("should yield the object the cell belonged on",
xx = Origin mimic
xx one = 42
yy = Hook into(xx)
yy cellRemoved = fnx(obj, _, _, obj should be(xx))
xx removeCell!(:one)
)
it("should yield the name of the cell",
xx = Origin mimic
xx one = 42
yy = Hook into(xx)
yy cellRemoved = fnx(_, sym, _, sym should == :one)
xx removeCell!(:one)
)
it("should yield the previous value of the cell",
xx = Origin mimic
xx one = 42
yy = Hook into(xx)
yy cellRemoved = fnx(_, _, prev, prev should == 42)
xx removeCell!(:one)
)
)
describe("cellChanged",
it("should be called on the hook when a cell is added on the observed object",
xx = Origin mimic
yy = Hook into(xx)
yy invoked = 0
yy cellChanged = method(_, _, _, @invoked++)
xx bar = "hello"
yy invoked should == 1
xx flux = method(nil)
yy invoked should == 2
)
it("should yield nil as the previous value when adding a cell",
xx = Origin mimic
yy = Hook into(xx)
yy cellChanged = method(_, _, prev, prev should be nil)
xx bar = "hello"
xx flux = method(nil)
)
it("should be called on the hook when a cell is removed on the observed object",
xx = Origin mimic
xx one = 42
xx two = 43
yy = Hook into(xx)
yy invoked = 0
yy cellChanged = method(_, _, _, @invoked++)
xx removeCell!(:one)
yy invoked should == 1
xx removeCell!(:two)
yy invoked should == 2
)
it("should be called after the cell has been removed",
xx = Origin mimic
xx one = 42
yy = Hook into(xx)
yy cellChanged = fnx(_, _, _, xx cell?(:one) should be false)
xx removeCell!(:one)
)
it("should yield the original value of the cell when removing",
xx = Origin mimic
xx val = "foxy"
yy = Hook into(xx)
yy cellChanged = fnx(_, _, orig, orig should == "foxy")
xx removeCell!(:val)
)
it("should be called on the hook when a cell is undefined on the observed object",
xx = Origin mimic
xx one = 42
xx two = 43
yy = Hook into(xx)
yy invoked = 0
yy cellChanged = method(_, _, _, @invoked++)
xx undefineCell!(:one)
yy invoked should == 1
xx undefineCell!(:two)
yy invoked should == 2
)
it("should be called after the cell has been undefined",
xx = Origin mimic
xx one = 42
yy = Hook into(xx)
yy cellChanged = fnx(_, _, _, xx cell?(:one) should be false)
xx undefineCell!(:one)
)
it("should yield the original value of the cell when undefined",
xx = Origin mimic
xx val = "foxy"
yy = Hook into(xx)
yy cellChanged = fnx(_, _, orig, orig should == "foxy")
xx undefineCell!(:val)
)
it("should be called on the hook when a cell is changed on the observed object",
xx = Origin mimic
xx val = "foxy"
yy = Hook into(xx)
yy invoked = 0
yy cellChanged = method(_, _, _, @invoked++)
xx val = "blaxy"
yy invoked should == 1
xx val = "no way"
yy invoked should == 2
)
it("should be called after the change",
xx = Origin mimic
xx val = "foxy"
yy = Hook into(xx)
yy cellChanged = fnx(_, _, _, xx val should == "more")
xx val = "more"
)
it("should yield the object the change happened on",
xx = Origin mimic
xx val = "foxy"
yy = Hook into(xx)
yy cellChanged = fnx(obj, _, _, obj should be(xx))
xx val = "more"
)
it("should yield the name of the cell",
xx = Origin mimic
xx val = "foxy"
yy = Hook into(xx)
yy cellChanged = fnx(_, sym, _, sym should == :val)
xx val = "more"
)
it("should yield the original value of the cell",
xx = Origin mimic
xx val = "foxy"
yy = Hook into(xx)
yy cellChanged = fnx(_, _, orig, orig should == "foxy")
xx val = "more"
)
it("should fire on more than one hook if available",
xx = Origin mimic
yy = Origin mimic
zz = Hook into(xx, yy)
zz invoked = 0
zz cellChanged = method(_, _, _,
@invoked++
)
xx blah = "arg"
yy foo = "ax"
yy muuh = "wow"
xx blah = "no way"
zz invoked should == 4
)
)
describe("cellUndefined",
it("should be called on the hook when a cell is removed on the observed object",
xx = Origin mimic
xx val = "foo"
xx vax = "fox"
yy = Hook into(xx)
yy invoked = 0
yy cellUndefined = method(_, _, _, @invoked++)
xx undefineCell!(:val)
yy invoked should == 1
xx undefineCell!(:vax)
yy invoked should == 2
)
it("should be called after cellChanged",
xx = Origin mimic
xx val = "foo"
yy = Hook into(xx)
yy doneCellChanged? = false
yy cellChanged = method(_, _, _, @doneCellChanged? = true)
yy cellUndefined = method(_, _, _, should have doneCellChanged)
xx undefineCell!(:val)
)
it("should be called after the cell has been undefined",
xx = Origin mimic
xx one = 42
yy = Hook into(xx)
yy cellUndefined = fnx(_, _, _, xx cell?(:one) should be false)
xx undefineCell!(:one)
)
it("should yield the object the cell belonged on",
xx = Origin mimic
xx one = 42
yy = Hook into(xx)
yy cellUndefined = fnx(obj, _, _, obj should be(xx))
xx undefineCell!(:one)
)
it("should yield the name of the cell",
xx = Origin mimic
xx one = 42
yy = Hook into(xx)
yy cellUndefined = fnx(_, sym, _, sym should == :one)
xx undefineCell!(:one)
)
it("should yield the previous value of the cell",
xx = Origin mimic
xx one = 42
yy = Hook into(xx)
yy cellUndefined = fnx(_, _, prev, prev should == 42)
xx undefineCell!(:one)
)
)
describe("mimicAdded",
it("should call the hook when a mimic gets added",
xx = Origin mimic
yy = Hook into(xx)
blah = Origin mimic
blah2 = Origin mimic
yy invoked = 0
yy mimicAdded = method(_, _, @invoked++)
xx mimic!(blah)
yy invoked should == 1
xx mimic!(blah2)
yy invoked should == 2
)
it("should yield the object the mimic was added to",
xx = Origin mimic
yy = Hook into(xx)
blah = Origin mimic
yy mimicAdded = fnx(obj, _, obj should be(xx))
xx mimic!(blah)
)
it("should yield the mimic added",
xx = Origin mimic
yy = Hook into(xx)
blah = Origin mimic
yy mimicAdded = fnx(_, m, m should be(blah))
xx mimic!(blah)
)
it("should work correctly when using prependMimic!",
xx = Origin mimic
yy = Hook into(xx)
blah = Origin mimic
blah2 = Origin mimic
yy invoked = 0
yy mimicAdded = method(_, _, @invoked++)
xx prependMimic!(blah)
yy invoked should == 1
xx prependMimic!(blah2)
yy invoked should == 2
)
it("should fire after the mimic has been added",
xx = Origin mimic
yy = Hook into(xx)
blah = Origin mimic
yy mimicAdded = fnx(_, _, xx should mimic(blah))
xx mimic!(blah)
)
)
describe("mimicRemoved",
it("should fire after a mimic has been removed",
Bex = Origin mimic
xx = Bex mimic
xx mimic!(Origin)
yy = Hook into(xx)
yy invoked = 0
yy mimicRemoved = method(_, _, @invoked++)
xx removeMimic!(Bex)
yy invoked should == 1
)
it("should fire after the mimic has been removed",
xx = Origin mimic
blah = Origin mimic
xx mimic!(blah)
yy = Hook into(xx)
yy mimicRemoved = fnx(_, _, xx should not mimic(blah))
xx removeMimic!(blah)
)
it("should fire once for every mimic removed when you are removing more than one mimic",
xx = Origin mimic
blah = Origin mimic
foox = Origin mimic
xx mimic!(blah)
xx mimic!(foox)
yy = Hook into(xx)
yy invoked = 0
yy mimicRemoved = method(_, _, @invoked++)
xx removeAllMimics!
yy invoked should == 3
)
it("should yield the object the event happened on",
Bex = Origin mimic
xx = Bex mimic
xx mimic!(Origin)
yy = Hook into(xx)
yy mimicRemoved = fnx(obj, _, obj should be(xx))
xx removeMimic!(Bex)
)
it("should yield the mimic that was removed",
Bex = Origin mimic
xx = Bex mimic
xx mimic!(Origin)
yy = Hook into(xx)
yy mimicRemoved = fnx(_, mm, mm should be(Bex))
xx removeMimic!(Bex)
)
)
describe("mimicsChanged",
it("should fire when a mimic is added",
xx = Origin mimic
yy = Hook into(xx)
blah = Origin mimic
blah2 = Origin mimic
yy invoked = 0
yy mimicsChanged = method(_, _, @invoked++)
xx mimic!(blah)
yy invoked should == 1
xx mimic!(blah2)
yy invoked should == 2
)
it("should fire after the mimic is added",
xx = Origin mimic
yy = Hook into(xx)
blah = Origin mimic
yy mimicsChanged = fnx(_, _, xx should mimic(blah))
xx mimic!(blah)
)
it("should fire when a mimic is prepend added",
xx = Origin mimic
yy = Hook into(xx)
blah = Origin mimic
blah2 = Origin mimic
yy invoked = 0
yy mimicsChanged = method(_, _, @invoked++)
xx prependMimic!(blah)
yy invoked should == 1
xx prependMimic!(blah2)
yy invoked should == 2
)
it("should fire after the mimic is prepend added",
xx = Origin mimic
yy = Hook into(xx)
blah = Origin mimic
yy mimicsChanged = fnx(_, _, xx should mimic(blah))
xx prependMimic!(blah)
)
it("should fire when a mimic is removed",
Bex = Origin mimic
xx = Bex mimic
xx mimic!(Origin)
yy = Hook into(xx)
yy invoked = 0
yy mimicsChanged = method(_, _, @invoked++)
xx removeMimic!(Bex)
yy invoked should == 1
)
it("should fire after the mimic is removed",
Bex = Origin mimic
xx = Bex mimic
xx mimic!(Origin)
yy = Hook into(xx)
yy mimicsChanged = fnx(_, _, xx should not mimic(Bex))
xx removeMimic!(Bex)
)
it("should fire when a mimic is removed when all mimics are removed",
xx = Origin mimic
blah = Origin mimic
foox = Origin mimic
xx mimic!(blah)
xx mimic!(foox)
yy = Hook into(xx)
yy invoked = 0
yy mimicsChanged = method(_, _, @invoked++)
xx removeAllMimics!
yy invoked should == 3
)
it("should yield the object that the change was made on",
Bex = Origin mimic
xx = Bex mimic
xx mimic!(Origin)
yy = Hook into(xx)
yy mimicsChanged = fnx(obj, _, obj should be(xx))
xx removeMimic!(Bex)
)
it("should yield the mimic that was added",
xx = Origin mimic
yy = Hook into(xx)
blah = Origin mimic
yy mimicsChanged = fnx(_, addedMimic, addedMimic should be(blah))
xx mimic!(blah)
)
it("should yield the mimic that was removed",
Bex = Origin mimic
xx = Bex mimic
xx mimic!(Origin)
yy = Hook into(xx)
yy mimicsChanged = fnx(_, removedMimic, removedMimic should be(Bex))
xx removeMimic!(Bex)
)
)
describe("mimicked",
it("should fire when the object under observation gets mimicked",
xx = Origin mimic
yy = Hook into(xx)
yy invoked = 0
yy mimicked = method(_, _, @invoked++)
xx mimic
yy invoked should == 1
xx mimic
xx mimic
yy invoked should == 3
)
it("should fire when a mimic is added after the fact with mimic!",
xx = Origin mimic
zz = Origin mimic
yy = Hook into(xx)
yy invoked = 0
yy mimicked = method(_, _, @invoked++)
zz mimic!(xx)
yy invoked should == 1
Origin mimic mimic!(xx)
Origin mimic mimic!(xx)
yy invoked should == 3
)
it("should fire when a mimic is added after the fact with prependMimic!",
xx = Origin mimic
zz = Origin mimic
yy = Hook into(xx)
yy invoked = 0
yy mimicked = method(_, _, @invoked++)
zz prependMimic!(xx)
yy invoked should == 1
Origin mimic prependMimic!(xx)
Origin mimic prependMimic!(xx)
yy invoked should == 3
)
it("should fire AFTER the object has been mimicked",
xx = Origin mimic
zz = Origin mimic
yy = Hook into(xx)
yy mimicked = fnx(_, _, zz should mimic(xx))
zz mimic!(xx)
)
it("should yield the object observed",
xx = Origin mimic
yy = Hook into(xx)
yy mimicked = fnx(obj, _, obj should be(xx))
xx mimic
)
it("should yield the object that mimicked the observed object",
xx = Origin mimic
zz = Origin mimic
yy = Hook into(xx)
yy mimicked = fnx(_, mm, mm should be(zz))
zz mimic!(xx)
)
)
)
| Ioke | 4 | olabini/ioke | test/hook_spec.ik | [
"ICU",
"MIT"
] |
@namespace url(http://www.w3.org/1999/xhtml);@namespace svg url(http://www.w3.org/2000/svg);a{color:blue}svg|a{color:green}*|a{color:red} | CSS | 2 | Theo-Steiner/svelte | test/css/samples/supports-namespace/expected.css | [
"MIT"
] |
<head>
<meta http-equiv="3D"Content-Type"" content="3D"text/html;" charset="3Diso-8859-=" 1"="">
<style type="3D"text/css"" style="3D"display:none;""><!-- P {margin-top:0;margi=
n-bottom:0;} --></style>
</head>
<body dir="3D"ltr"">
<div id="3D"divtagdefaultwrapper"" style="3D"font-size:12pt;color:#000000;back=" ground-color:#ffffff;font-family:calibri,arial,helvetica,sans-serif;"="">
<p>Hey All,</p>
<p><br>
</p>
<p>This was a long email but wanted to do a quick followup on the <a h="ref=3D"http://www.onemedical.com/sf/doctors/?gclid=3DCJi_-9bP9sUCFUiGfgodMA=" uaxq"="">One Medical</a> portion. I've only received a few responses so far.&n=
bsp;</p>
<p><br>
</p>
<p>Signing up would not require you to change your current primary care doc=
tor or pay additional insurance, rather it is a primary care center (think =
Kaiser) where you can make all of your appointments. Super convenient right=
!?</p>
<p><br>
</p>
<p>Get back to me if this is something you want to participate in. Nylas wo=
uld cover the cost. <br>
</p>
<p><br>
</p>
<p>Thanks,<br>
</p>
<p>Makala <br>
</p>
<p><br>
</p>
<p><br>
</p>
<br>
<br>
</div>
</body> | HTML | 0 | cnheider/nylas-mail | packages/client-app/spec/fixtures/emails/email_4_stripped.html | [
"MIT"
] |
unique template features/pre_host/config;
| Pan | 0 | ned21/aquilon | tests/broker/data/utsandbox/aquilon/features/pre_host/config.pan | [
"Apache-2.0"
] |
<%-
@title = @page.plain_name
@hide_navigation = false
@style_additions = ".newWikiWord { background-color: white; font-style: italic; }"
@inline_style = false
@show_footer = true
-%>
<%= @renderer.display_published %>
<div class="byline">
<%= @page.revisions? ? "Revised" : "Created" %> on <%= format_date(@page.revised_at) %>
by
<%= author_link(@page, { :mode => (@link_mode || :show) }) %>
</div>
<div class="navigation navfoot">
<span class="views">
Views:
<%= link_to('Print',
{ :web => @web.address, :action => 'print', :id => @page.name },
{ :accesskey => 'p', :id => 'view_print', :rel => 'nofollow' }) %>
<%- if @web.markup == :markdownMML or @web.markup == :markdown or @web.markup == :markdownPNG -%>
|
<%= link_to 'TeX', {:web => @web.address, :action => 'tex', :id => @page.name},
{:id => 'view_tex', :rel => 'nofollow' } %>
<% if WikiReference.pages_in_category(@web, 'S5-slideshow').map.include?(@page.name) %>
|
<%= link_to 'S5', {:web => @web.address, :action => 's5', :id => @page.name},
{:id => 'view_S5'} %>
<%- end -%>
<%- end -%>
|
<%= link_to 'Source', {:web => @web.address, :action => 'source', :id => @page.name},
{:id => 'view_source', :rel => 'nofollow' } %>
</span>
<%= render :partial => 'inbound_links' %>
</div>
| RHTML | 3 | taskforce/instiki | app/views/wiki/published.rhtml | [
"Ruby"
] |
package universe_test
import "testing"
option now = () => 2030-01-01T00:00:00Z
inData =
"
#datatype,string,long,dateTime:RFC3339,double,string,string,string,string,string,string
#group,false,false,false,false,true,true,true,true,true,true
#default,_result,,,,,,,,,
,result,table,_time,_value,_field,_measurement,device,fstype,host,path
,,0,2018-05-22T00:00:00Z,30,used_percent,disk,disk1s1,apfs,host.local,/
,,0,2018-05-22T00:00:10Z,30,used_percent,disk,disk1s1,apfs,host.local,/
,,0,2018-05-22T00:00:20Z,30,used_percent,disk,disk1s1,apfs,host.local,/
,,0,2018-05-22T00:00:30Z,40,used_percent,disk,disk1s1,apfs,host.local,/
,,0,2018-05-22T00:00:40Z,40,used_percent,disk,disk1s1,apfs,host.local,/
,,0,2018-05-22T00:00:50Z,40,used_percent,disk,disk1s1,apfs,host.local,/
"
outData =
"
#group,false,false,true,true,true,true,true,true,true,true,false,false
#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,string,string,string,string,string,double,dateTime:RFC3339
#default,_result,,,,,,,,,,,
,result,table,_start,_stop,_field,_measurement,device,fstype,host,path,_value,_time
,,0,2018-05-22T00:00:00Z,2018-05-22T00:01:00Z,used_percent,disk,disk1s1,apfs,host.local,/,30,2018-05-22T00:00:10Z
,,0,2018-05-22T00:00:00Z,2018-05-22T00:01:00Z,used_percent,disk,disk1s1,apfs,host.local,/,30,2018-05-22T00:00:20Z
,,0,2018-05-22T00:00:00Z,2018-05-22T00:01:00Z,used_percent,disk,disk1s1,apfs,host.local,/,30,2018-05-22T00:00:30Z
,,0,2018-05-22T00:00:00Z,2018-05-22T00:01:00Z,used_percent,disk,disk1s1,apfs,host.local,/,33.333333333333336,2018-05-22T00:00:40Z
,,0,2018-05-22T00:00:00Z,2018-05-22T00:01:00Z,used_percent,disk,disk1s1,apfs,host.local,/,36.666666666666664,2018-05-22T00:00:50Z
,,0,2018-05-22T00:00:00Z,2018-05-22T00:01:00Z,used_percent,disk,disk1s1,apfs,host.local,/,40,2018-05-22T00:01:00Z
,,0,2018-05-22T00:00:00Z,2018-05-22T00:01:00Z,used_percent,disk,disk1s1,apfs,host.local,/,40,2018-05-22T00:01:00Z
,,0,2018-05-22T00:00:00Z,2018-05-22T00:01:00Z,used_percent,disk,disk1s1,apfs,host.local,/,40,2018-05-22T00:01:00Z
"
timed_moving_average = (table=<-) =>
table
|> range(start: 2018-05-22T00:00:00Z, stop: 2018-05-22T00:01:00Z)
|> timedMovingAverage(every: 10s, period: 30s)
test _timed_moving_average = () =>
({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: timed_moving_average})
| FLUX | 4 | metrico/flux | stdlib/universe/timed_moving_average_test.flux | [
"MIT"
] |
implementation module stack
import StdEnv
:: Stack a :== [a]
newStack :: (Stack a)
newStack = []
push :: a (Stack a) -> Stack a
push x s = [x:s]
pushes :: [a] (Stack a) -> Stack a
pushes x s = x ++ s
pop :: (Stack a) -> Stack a
pop [] = abort "Cannot use pop on an empty stack"
pop [e:s] = s
popn :: Int (Stack a) -> Stack a
popn n s = drop n s
top :: (Stack a) -> a
top [] = abort "Cannot use top on an empty stack"
top [e:s] = e
topn :: Int (Stack a) -> [a]
topn n s = take n s
elements :: (Stack a) -> [a]
elements s = s
count :: (Stack a) -> Int
count s = length s
| Clean | 3 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Clean/stack.icl | [
"MIT"
] |
# ----------------------------------------------------------------------
# include.awk
# Resolve include commands
# ----------------------------------------------------------------------
/^!include +/ {
file = $0
sub(/^!include +/, "", file)
command = "cat " file
print "" | command
close(command)
next
}
{ print }
| Awk | 3 | AlperenCetin0/fprime | docs/Tutorials/MathComponent/md/include.awk | [
"Apache-2.0"
] |
.class public Lothers/TestAllNops;
.super Ljava/lang/Object;
.method public constructor <init>()V
.registers 1
.line 55
nop
nop
nop
nop
.end method
.method private test()Z
.registers 11
.line 1480
nop
nop
.line 1481
nop
nop
nop
nop
nop
nop
.line 1485
nop
nop
.line 1486
nop
nop
.line 1487
nop
.end method
.method private testWithTryCatch()Z
.registers 11
.line 1480
:try_start_0
nop
nop
.line 1481
nop
nop
nop
nop
nop
nop
.line 1485
nop
nop
:try_end_35
.catch Ljava/security/NoSuchAlgorithmException; {:try_start_0 .. :try_end_35} :catch_36
nop
.line 1547
:catch_36
nop
.line 1487
nop
.end method
| Smali | 1 | Dev-kishan1999/jadx | jadx-core/src/test/smali/others/TestAllNops.smali | [
"Apache-2.0"
] |
a = (() => { } || a) | TypeScript | 0 | nilamjadhav/TypeScript | tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression3.ts | [
"Apache-2.0"
] |
"Hello world"
| JSONiq | 0 | PushpneetSingh/Hello-world | jq/hello_world.jq | [
"MIT"
] |
variable "region_name" {
type = string
}
provider "aws" {
region = var.region_name
access_key = "test"
secret_key = "test"
skip_credentials_validation = true
skip_requesting_account_id = true
skip_metadata_api_check = true
s3_force_path_style = true
endpoints {
acm = "http://localhost:4566"
apigateway = "http://localhost:4566"
dynamodb = "http://localhost:4566"
ec2 = "http://localhost:4566"
iam = "http://localhost:4566"
lambda = "http://localhost:4566"
kms = "http://localhost:4566"
route53 = "http://localhost:4566"
s3 = "http://localhost:4566"
sqs = "http://localhost:4566"
}
}
| HCL | 3 | matt-mercer/localstack | tests/integration/terraform/provider.tf | [
"Apache-2.0"
] |
{ lib, buildDunePackage, fetchurl, ocaml
, fmt, bigstringaf, angstrom, alcotest }:
buildDunePackage rec {
pname = "encore";
version = "0.8";
minimumOCamlVersion = "4.07";
src = fetchurl {
url = "https://github.com/mirage/encore/releases/download/v${version}/encore-v${version}.tbz";
sha256 = "a406bc9863b04bb424692045939d6c170a2bb65a98521ae5608d25b0559344f6";
};
useDune2 = true;
propagatedBuildInputs = [ angstrom fmt bigstringaf ];
checkInputs = [ alcotest ];
doCheck = true;
meta = {
homepage = "https://github.com/mirage/encore";
description = "Library to generate encoder/decoder which ensure isomorphism";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.vbgl ];
};
}
| Nix | 4 | collinwright/nixpkgs | pkgs/development/ocaml-modules/encore/default.nix | [
"MIT"
] |
#define VPRT_EMULATION
#include "cubeShadowVS_transparent.hlsl"
| HLSL | 0 | rohankumardubey/WickedEngine | WickedEngine/shaders/cubeShadowVS_transparent_emulation.hlsl | [
"MIT"
] |
body,html,ul,li,p{
margin 0
padding 0
}
body,html{
font-size 12px
font-family 'HanHei SC','PingFang SC','Helvetica Neue','Helvetica','STHeitiSC-Light','Arial',sans-serif
}
html{
-webkit-tap-highlight-color rgba(0,0,0,0)
}
a {
text-decoration none
&:hover{
color #333
}
}
* {
box-sizing border-box
}
$border-color = #D5D5D5 | Stylus | 3 | niuxiongwen/linux-command | template/styl/mixins/reset.styl | [
"MIT"
] |
<span class="tag">>= {{ site.data.breakpoints.desktop.from }}px</span>
| HTML | 0 | kalpitzeta/bulma | docs/_includes/bp/desktop.html | [
"MIT"
] |
{
{-# LANGUAGE LambdaCase #-}
module OwO.Syntax.Parser.Lexer where
import OwO.Syntax.TokenType
import OwO.Syntax.Position
import Data.Maybe (listToMaybe)
import qualified Data.Text as T
import qualified OwO.Util.StrictMaybe as Strict
import OwO.Util.Applicative
}
%wrapper "monadUserState"
$digit = [0-9]
$white_no_nl = $white # \n
$escape = [ r n b t a \\ \" \' ]
$operator_c = [ \+ \- \/ \\ \< \> \~ @ \# \$ \% \* \^ \? \, ]
$operator_s = [ \[ \] \| \= \: \. ]
$comment_c = [^ \n \- \{ ]
@integer = $digit+
@identifier = [A-Za-z][0-9A-Za-z'_]*
@string = \"([^ \\ \"]|\\$escape)*\"
@character = \'([^ \\ \']|\\$escape)\'
@operator = $operator_c ($operator_c | $operator_s)*
@colon_op = \: ($operator_c | $operator_s)+
@comment_l = \-\-[^ \n ]*
@comment = ($comment_c | $white)+
tokens :-
$white_no_nl ;
@comment_l { simpleString (CommentToken . T.pack) }
<layout> {
\n ;
\{ { explicitBraceLeft }
() { newLayoutContext }
}
<0> {
\n { beginCode bol }
module { simple ModuleToken }
open { simple OpenToken }
do { simple DoToken }
of { simple OfToken }
data { simple DataToken }
codata { simple CodataToken }
case { simple CaseToken }
cocase { simple CocaseToken }
import { simple ImportToken }
where { simple WhereToken }
postulate { simple PostulateToken }
instance { simple InstanceToken }
infixl { simple InfixLToken }
infixr { simple InfixRToken }
infix { simple InfixToken }
@integer { simpleString (IntegerToken . read) }
@identifier { simpleString (IdentifierToken . T.pack) }
@string { simpleString (StringToken . T.pack . read) }
@character { simpleString (CharToken . read) }
\<\- { simple LeftArrowToken }
\-\> { simple RightArrowToken }
@colon_op { simpleString (OperatorToken . T.pack) }
\: { simple ColonToken }
\; { simple SemicolonToken }
\(\| { simple IdiomBracketLToken }
\|\) { simple IdiomBracketRToken }
\{\| { simple InstanceArgumentLToken }
\|\} { simple InstanceArgumentRToken }
\[\| { simple InaccessiblePatternLToken }
\|\] { simple InaccessiblePatternRToken }
\{\- { pushBlockComment }
\| { simple SeparatorToken }
\( { simple ParenthesisLToken }
\) { simple ParenthesisRToken }
\{ { simple BraceLToken }
\} { simple BraceRToken }
\[ { simple BracketLToken }
\] { simple BracketRToken }
\= { simple EqualToken }
\. { simple DotToken }
@operator { simpleString (OperatorToken . T.pack) }
}
<nestedComment> {
\{\- { pushBlockComment }
\-\} { popBlockComment }
\n ;
@comment { simpleString (CommentToken . T.pack) }
\-? { simpleString (CommentToken . T.pack) }
() ;
}
<bol> {
\n ;
() { doBol }
}
{
beginCode :: Int -> AlexAction PsiToken
beginCode n _ _ = pushLexState n >> alexMonadScan
simple :: TokenType -> AlexAction PsiToken
simple token (pn, _, _, _) size = do
-- run `pushLexState` when it's `where` or `postulate`
isStartingNewLayout token `ifM` pushLexState layout
toMonadPsi' pn size token
explicitBraceLeft :: AlexAction PsiToken
explicitBraceLeft (pn, _, _, _) size = do
popLexState
pushLayout NoLayout
toMonadPsi' pn size BraceLToken
simpleString :: (String -> TokenType) -> AlexAction PsiToken
simpleString f (pn, _, _, s) size =
toMonadPsi' pn size . f $ take size s
toMonadPsi' :: AlexPosn -> Int -> TokenType -> Alex PsiToken
toMonadPsi' (AlexPn pos line col) = toMonadPsi pos line col
toMonadPsi :: Int -> Int -> Int -> Int -> TokenType -> Alex PsiToken
toMonadPsi pos line col size token = do
file <- currentFile <$> alexGetUserState
let start = simplePosition pos line col
let end = simplePosition (pos + size) line (col + size)
pure $ PsiToken
{ tokenType = token
, location = locationFromSegment start end file
}
alexEOF :: Alex PsiToken
alexEOF = getLayout >>= \case
Nothing -> java EndOfFileToken
Just (Layout _) -> popLayout >> java BraceRToken
Just NoLayout -> popLayout >> alexMonadScan
where
java token = do
(pn, _, _, _) <- alexGetInput
toMonadPsi' pn 0 token
pushBlockComment :: AlexAction PsiToken
pushBlockComment (pn, _, _, s) size = do
pushLexState nestedComment
toMonadPsi' pn size $ CommentToken (T.pack $ take size s)
popBlockComment :: AlexAction PsiToken
popBlockComment (pn, _, _, s) size = do
popLexState
toMonadPsi' pn size $ CommentToken (T.pack $ take size s)
doBol :: AlexAction PsiToken
doBol (pn@(AlexPn _ _ col), _, _, _) size =
getLayout >>= \case
Just (Layout n) -> case col `compare` n of
LT -> popLayout >> addToken BraceRToken
EQ -> popLexState >> addToken SemicolonToken
GT -> popLexState >> alexMonadScan
_ -> popLexState >> alexMonadScan
where
addToken = toMonadPsi' pn size
newLayoutContext :: AlexAction PsiToken
newLayoutContext (pn@(AlexPn _ _ col), _, _, _) size = do
popLexState
pushLayout $ Layout col
toMonadPsi' pn size BraceLToken
pushLayout :: LayoutContext -> Alex ()
pushLayout lc = do
s@AlexUserState { layoutStack = lcs } <- alexGetUserState
alexSetUserState s { layoutStack = lc : lcs }
popLayout :: Alex LayoutContext
popLayout = do
s <- alexGetUserState
case layoutStack s of
[] -> alexError "Layout expected but no layout available"
l : ls -> do
alexSetUserState s { layoutStack = ls }
pure l
getLayout :: Alex (Maybe LayoutContext)
getLayout = do
AlexUserState { layoutStack = lcs } <- alexGetUserState
pure $ listToMaybe lcs
pushLexState :: Int -> Alex ()
pushLexState nsc = do
sc <- alexGetStartCode
s@AlexUserState { alexStartCodes = scs } <- alexGetUserState
alexSetUserState s { alexStartCodes = sc : scs }
alexSetStartCode nsc
popLexState :: Alex Int
popLexState = do
csc <- alexGetStartCode
st <- alexGetUserState
case alexStartCodes st of
[] -> alexError "State code expected but no state code available"
s : ss -> do
alexSetUserState st { alexStartCodes = ss }
alexSetStartCode s
pure csc
}
| Logos | 5 | safarmer/intellij-haskell | src/test/testData/parsing/LexerOwO.x | [
"Apache-2.0"
] |
loop: func(f: Func -> Bool) {
while(f()) {}
}
| ooc | 4 | fredrikbryntesson/launchtest | sdk/lang/Abstractions.ooc | [
"MIT"
] |
MODULE_NAME='Denon DVD v1' (DEV vdv, DEV dv)
DEFINE_CONSTANT
PLAY = 1
STOP = 2
PAUSE = 3
MENU_FUNC = 44
MENU_UP = 45
MENU_DN = 46
MENU_LT = 47
MENU_RT = 48
MENU_SELECT = 49
DISC_NEXT = 55
DISC_PREV = 56
DEFINE_VARIABLE
VOLATILE INTEGER nChans[] = {
PLAY, STOP, PAUSE,
MENU_FUNC, MENU_UP, MENU_DN, MENU_LT, MENU_RT, MENU_SELECT,
DISC_NEXT, DISC_PREV
}
VOLATILE CHAR sCmds[][12] = {
'[PC,RC,44]',
'[PC,RC,49]',
'[PC,RC,48]',
'[PC,RC,113]',
'[PC,RC,88]',
'[PC,RC,89]',
'[PC,RC,90]',
'[PC,RC,91]',
'[PC,RC,92]',
'[PC,RC,246]',
'[PC,RC,245]'
}
DEFINE_EVENT
// DEVICE EVENTS ////////////////////////////////////////////////////////////
DATA_EVENT[dv]
{
ONLINE:
{
SEND_COMMAND dv,"'SET BAUD 9600,N,8,1'"
}
}
// VIRTUAL DEVICE EVENTS ////////////////////////////////////////////////////
// CHANNEL EVENTS ///////////////////////////////////////////////////////////
CHANNEL_EVENT[vdv,nChans]
{
ON:
{
SEND_STRING dv,"sCmds[GET_LAST(nChans)],$0D"
}
}
| NetLinx | 3 | kielthecoder/amx | Denon DVD/Denon DVD v1.axs | [
"MIT"
] |
#material-table {
font-family: monospace;
display: flex;
justify-content: center;
}
#material-table tr:nth-child(even) {
background: #def;
}
#material-table thead>td {
vertical-align: bottom;
padding: .5em;
}
#material-table thead>td>a {
text-orientation: upright;
writing-mode: vertical-lr;
text-decoration: none;
display: block;
letter-spacing: -2px;
}
#material-table table {
border-collapse: collapse;
background: #cde;
}
#material-table td:nth-child(1) {
text-align: right;
}
#material-table td {
border: 1px solid black;
padding: .1em .5em .1em .5em;
}
#material-table td {
border: 1px solid black;
}
@media (max-width: 500px) {
#material-table {
font-size: small;
}
#material-table thead>td {
vertical-align: bottom;
padding: .5em 0 .5em 0;
}
}
@media (prefers-color-scheme: dark) {
#material-table table {
background: #06488a;
}
#material-table tr:nth-child(even) {
background: #185795;
}
} | CSS | 3 | yangmengwei925/3d | manual/resources/threejs-material-table.css | [
"MIT"
] |
# Copyright (c) 2021 vesoft inc. All rights reserved.
#
# This source code is licensed under Apache 2.0 License.
Feature: Time computation
Background:
Given a graph with space named "nba"
Scenario Outline: duration compare
When executing query:
"""
WITH duration(<lhs>) as x, duration(<rhs>) as d
RETURN x > d AS gt, x < d AS lt, x == d AS eq, x != d AS ne,
x >= d AS ge, x <= d AS le
"""
Then the result should be, in any order:
| gt | lt | eq | ne | ge | le |
| <greaterThan> | <lessThan> | <equal> | <notEqual> | <greaterEqual> | <lessEqual> |
Examples:
| lhs | rhs | lessThan | greaterThan | equal | notEqual | greaterEqual | lessEqual |
| {days: 30} | {months: 1} | BAD_TYPE | BAD_TYPE | false | true | BAD_TYPE | BAD_TYPE |
| {days: 30, months: 1} | {days: 30, months: 1} | BAD_TYPE | BAD_TYPE | true | false | BAD_TYPE | BAD_TYPE |
| Cucumber | 3 | liuqian1990/nebula | tests/tck/features/expression/TimeComparison.feature | [
"Apache-2.0"
] |
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
struct VertexShaderOutput
{
float4 pos : SV_POSITION;
float2 tex : TEXCOORD0;
uint idx : TEXCOORD1;
};
struct GeometryShaderOutput
{
float4 pos : SV_POSITION;
float2 tex : TEXCOORD0;
uint idx : SV_RenderTargetArrayIndex;
};
[maxvertexcount(3)]
void geometry(triangle VertexShaderOutput input[3], inout TriangleStream<GeometryShaderOutput> stream)
{
GeometryShaderOutput output;
[unroll(3)]
for (int i = 0; i < 3; ++i)
{
output.pos = input[i].pos;
output.tex = input[i].tex;
output.idx = input[i].idx;
stream.Append(output);
}
}
| HLSL | 4 | zealoussnow/chromium | device/vr/windows/geometry_shader.hlsl | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
"""Roon (www.roonlabs.com) component."""
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import CONF_HOST
from homeassistant.core import HomeAssistant
from homeassistant.helpers import device_registry as dr
from .const import CONF_ROON_NAME, DOMAIN
from .server import RoonServer
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
"""Set up a roonserver from a config entry."""
hass.data.setdefault(DOMAIN, {})
# fallback to using host for compatibility with older configs
name = entry.data.get(CONF_ROON_NAME, entry.data[CONF_HOST])
roonserver = RoonServer(hass, entry)
if not await roonserver.async_setup():
return False
hass.data[DOMAIN][entry.entry_id] = roonserver
device_registry = dr.async_get(hass)
device_registry.async_get_or_create(
config_entry_id=entry.entry_id,
identifiers={(DOMAIN, entry.entry_id)},
manufacturer="Roonlabs",
name=f"Roon Core ({name})",
)
return True
async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
"""Unload a config entry."""
roonserver = hass.data[DOMAIN].pop(entry.entry_id)
return await roonserver.async_reset()
| Python | 5 | jlmaners/core | homeassistant/components/roon/__init__.py | [
"Apache-2.0"
] |
name: 'Rust'
scopeName: 'source.rust'
type: 'tree-sitter'
parser: 'tree-sitter-rust'
injectionRegex: 'rust'
fileTypes: [
'rs'
]
comments:
start: '// '
folds: [
{
type: 'block_comment'
}
{
start: {index: 0, type: '{'}
end: {index: -1, type: '}'}
}
{
start: {index: 0, type: '['}
end: {index: -1, type: ']'}
}
{
start: {index: 0, type: '('}
end: {index: -1, type: ')'}
}
{
start: {index: 0, type: '<'}
end: {index: -1, type: '>'}
}
]
scopes:
'type_identifier': 'support.type'
'primitive_type': 'support.type'
'field_identifier': 'variable.other.member'
'line_comment': 'comment.block'
'block_comment': 'comment.block'
'identifier': [
{match: '^[A-Z\\d_]+$', scopes: 'constant.other'}
]
'''
identifier,
call_expression > identifier,
call_expression > field_expression > field_identifier,
call_expression > scoped_identifier > identifier:nth-child(2)
''': [
{match: '^[A-Z]', scopes: 'entity.name.class'}
]
'''
macro_invocation > identifier,
macro_invocation > "!",
macro_definition > identifier,
call_expression > identifier,
call_expression > field_expression > field_identifier,
call_expression > scoped_identifier > identifier:nth-child(2),
generic_function > identifier,
generic_function > field_expression > field_identifier,
generic_function > scoped_identifier > identifier,
function_item > identifier,
function_signature_item > identifier,
''': 'entity.name.function'
'''
use_list > self,
scoped_use_list > self,
scoped_identifier > self,
crate,
super
''': 'keyword.control'
'self': 'variable.self'
'''
use_wildcard > identifier:nth-child(0),
use_wildcard > scoped_identifier > identifier:nth-child(2),
scoped_type_identifier > identifier:nth-child(0),
scoped_type_identifier > scoped_identifier:nth-child(0) > identifier,
scoped_identifier > identifier:nth-child(0),
scoped_identifier > scoped_identifier:nth-child(0) > identifier,
use_declaration > identifier,
use_declaration > scoped_identifier > identifier,
use_list > identifier,
use_list > scoped_identifier > identifier,
meta_item > identifier
''': [
{match: '^[A-Z]', scopes: 'support.type'}
]
'lifetime > identifier': 'constant.variable'
'"let"': 'storage.modifier'
'"const"': 'storage.modifier'
'"static"': 'storage.modifier'
'"extern"': 'storage.modifier'
'"fn"': 'storage.modifier'
'"type"': 'storage.modifier'
'"impl"': 'storage.modifier'
'"dyn"': 'storage.modifier'
'"trait"': 'storage.modifier'
'"mod"': 'storage.modifier'
'"pub"': 'storage.modifier'
'"crate"': 'storage.modifier'
'"default"': 'storage.modifier'
'"struct"': 'storage.modifier'
'"enum"': 'storage.modifier'
'"union"': 'storage.modifier'
'mutable_specifier': 'storage.modifier'
'"unsafe"': 'keyword.control'
'"use"': 'keyword.control'
'"match"': 'keyword.control'
'"if"': 'keyword.control'
'"in"': 'keyword.control'
'"else"': 'keyword.control'
'"move"': 'keyword.control'
'"while"': 'keyword.control'
'"loop"': 'keyword.control'
'"for"': 'keyword.control'
'"let"': 'keyword.control'
'"return"': 'keyword.control'
'"continue"': 'keyword.control'
'"break"': 'keyword.control'
'"where"': 'keyword.control'
'"ref"': 'keyword.control'
'"macro_rules!"': 'keyword.control'
'"async"': 'keyword.control'
'"await"': 'keyword.control'
'"as"': 'keyword.operator'
'char_literal': 'string.quoted.single'
'string_literal': 'string.quoted.double'
'raw_string_literal': 'string.quoted.other'
'boolean_literal': 'constant.language.boolean'
'integer_literal': 'constant.numeric.decimal'
'float_literal': 'constant.numeric.decimal'
'escape_sequence': 'constant.character.escape'
'attribute_item, inner_attribute_item': 'entity.other.attribute-name'
'''
"as",
"*",
"&",
''': 'keyword.operator'
| CoffeeScript | 3 | Embodimentgeniuslm3/BDB11A0E2DE062D2E39E4C5301B2FE5E | packages/language-rust-bundled/grammars/tree-sitter-rust.cson | [
"MIT"
] |
(* Properties of type system judgements *)
(*<*)
theory TypeSystemProps
imports TypeSystem
begin
(*>*)
section {* Type system properties *}
subsection {* General properties *}
lemma WfHeap_length:
assumes wfh: "WfHeap H \<Theta>"
shows "length H = length \<Theta>"
using wfh
by induct auto
lemma WfHeap_dom:
assumes wfh: "WfHeap H \<Theta>"
and nv: "n < length H"
shows "dom (\<Theta> ! n) \<subseteq> dom (H ! n)"
using wfh nv WfHeap_length [OF wfh]
by induct (auto simp: nth_append not_less dest!: submap_st_dom)
lemma WfHeap_dom':
assumes wfh: "WfHeap H \<Theta>"
shows "dom (lookup_heap \<Theta> n) \<subseteq> dom (lookup_heap H n)"
using wfh WfHeap_length [OF wfh]
by induct (auto simp: nth_append not_less lookup_heap_def dest!: submap_st_dom split: split_if_asm)
lemma WfStack_heap_length:
assumes wfst: "WfStack \<Psi> \<Delta> \<Theta> st \<tau> b \<rho>"
shows "length \<Theta> = Suc (length (filter (\<lambda>(_, _, f). isReturnFrame f) st))"
using wfst
by induct auto
lemma WfStack_heap_not_empty:
assumes wfst: "WfStack \<Psi> \<Delta> \<Theta> st \<tau> b \<rho>"
and wfh: "WfHeap H \<Theta>"
shows "H \<noteq> []"
using wfst wfh
by (auto dest!: WfStack_heap_length WfHeap_length)
lemma WfFrees_domD:
assumes wfe: "WfFrees \<Delta> \<Gamma> \<rho> n"
shows "\<rho> \<in> dom \<Delta>"
using wfe
by (rule WfFreesE, auto)
lemma WfStore_lift_weak:
assumes wfst: "WfStore \<Delta> \<Theta> st \<Gamma>"
and rl: "\<And>v \<tau>. WfWValue \<Delta> \<Theta> v \<tau> \<Longrightarrow> WfWValue \<Delta>' \<Theta>' v \<tau>"
shows "WfStore \<Delta>' \<Theta>' st \<Gamma>"
using wfst
apply (clarsimp elim!: WfStore.cases intro!: WfStore.intros)
apply (erule submap_st_weaken)
apply (erule rl)
done
lemma WfHeap_inversionE:
assumes wfh: "WfHeap H \<Theta>"
and lup: "lookup_heap \<Theta> region off = Some \<tau>"
obtains v where "lookup_heap H region off = Some v" and "WfHValue v \<tau>"
using wfh lup
proof (induction arbitrary: thesis)
case wfHeapNil thus ?case by simp
next
case (wfHeapCons H \<Theta> \<Sigma> R )
note heap_len = WfHeap_length [OF wfHeapCons.hyps(1)]
show ?case
proof (cases "region = length H")
case True
thus ?thesis using wfHeapCons.prems wfHeapCons.hyps heap_len
by (auto simp add: lookup_heap_Some_iff nth_append elim!: submap_stE)
next
case False
with wfHeapCons.prems heap_len have "lookup_heap \<Theta> region off = Some \<tau>"
by (clarsimp simp: lookup_heap_Some_iff nth_append )
then obtain v where "lookup_heap H region off = Some v" and
"WfHValue v \<tau>" by (rule wfHeapCons.IH [rotated])
show ?thesis
proof (rule wfHeapCons.prems(1))
from `lookup_heap H region off = Some v`
show "lookup_heap (H @ [R]) region off = Some v"
by (simp add: lookup_heap_Some_iff nth_append)
qed fact
qed
qed
subsection {* Returns tag weakening *}
lemma WfStmt_weaken_returns:
assumes wfs: "\<Gamma>, \<Psi>, \<rho> \<turnstile> s : \<tau>, b"
and brl: "b' \<longrightarrow> b"
shows "\<Gamma>, \<Psi>, \<rho> \<turnstile> s : \<tau>, b'"
using wfs brl
by (induct arbitrary: b') (auto intro: WfStmt.intros)
lemma WfStack_weaken_returns:
assumes wfst: "WfStack \<Psi> \<Delta> \<Theta> st \<tau> b' \<rho>"
and brl: "b' \<longrightarrow> b"
shows "WfStack \<Psi> \<Delta> \<Theta> st \<tau> b \<rho>"
using wfst brl
by induct (auto intro!: WfStack.intros elim: WfStmt_weaken_returns)
subsection {* Type substitution and free type variables *}
lemma tsubst_twice:
"tsubst \<theta> (tsubst \<theta>' \<tau>) = tsubst (\<theta> \<circ> \<theta>') \<tau>"
by (induct \<tau>) simp_all
lemma tfrees_tsubst:
"tfrees (tsubst \<theta> \<tau>) = \<theta> ` tfrees \<tau>"
by (cases \<tau>, simp_all)
lemma tfrees_set_tsubst:
"tfrees_set (tsubst \<theta> ` S) = \<theta> ` tfrees_set S"
unfolding tfrees_set_def
by (auto simp: tfrees_tsubst)
(* Only true if we terminate, which is a whole pain to show *)
lemma tfrees_set_Un:
"tfrees_set (S \<union> S') = tfrees_set S \<union> tfrees_set S'"
unfolding tfrees_set_def by simp
lemma tfrees_set_singleton [simp]:
"tfrees_set {\<tau>} = tfrees \<tau>"
unfolding tfrees_set_def by simp
lemma tsubst_cong:
"\<lbrakk>(\<And>x. x \<in> tfrees \<tau> \<Longrightarrow> \<theta> x = \<theta>' x); \<tau> = \<tau>' \<rbrakk> \<Longrightarrow> tsubst \<theta> \<tau> = tsubst \<theta>' \<tau>'"
by (induct \<tau>) auto
lemma tfrees_set_conv_bex:
"(x \<in> tfrees_set S) = (\<exists>\<tau> \<in> S. x \<in> tfrees \<tau>)"
unfolding tfrees_set_def by auto
subsection {* Type judgements and free variables *}
lemma Expr_tfrees:
assumes wf: "\<Gamma> \<turnstile> e : \<tau>"
shows "tfrees \<tau> \<subseteq> tfrees_set (ran \<Gamma>)"
using wf
by induction (auto simp: tfrees_set_def ran_def)
lemma ImpureExpr_tfrees:
assumes wf: "\<Gamma>, \<rho> \<turnstile>I e : \<tau>"
shows "tfrees \<tau> \<subseteq> (tfrees_set (ran \<Gamma>) \<union> {\<rho>})"
using wf
by (induction) (auto dest: Expr_tfrees)
lemma tfrees_update_storeT:
assumes "\<Gamma> \<turnstile> e : \<tau>"
shows "tfrees_set (ran (\<Gamma>(x \<mapsto> \<tau>))) \<subseteq> tfrees_set (ran \<Gamma>)"
proof -
from `\<Gamma> \<turnstile> e : \<tau>` have t_sub: "tfrees \<tau> \<subseteq> tfrees_set (ran \<Gamma>)" by (rule Expr_tfrees)
have "tfrees_set (ran (\<Gamma>(x \<mapsto> \<tau>))) \<subseteq> tfrees_set (ran \<Gamma> \<union> {\<tau>})"
by (auto simp: tfrees_set_def dest!: set_mp [OF ran_map_upd_subset])
also have "... = tfrees_set (ran \<Gamma>)" using t_sub
by (auto simp: tfrees_set_def)
finally show ?thesis .
qed
lemma tfrees_update_storeT':
assumes "\<Gamma>, \<rho> \<turnstile>I e : \<tau>"
shows "tfrees_set (ran (\<Gamma>(x \<mapsto> \<tau>))) \<subseteq> tfrees_set (ran \<Gamma>) \<union> {\<rho>}"
proof -
from `\<Gamma>, \<rho> \<turnstile>I e : \<tau>` have t_sub: "tfrees \<tau> \<subseteq> tfrees_set (ran \<Gamma>) \<union> {\<rho>}" by (rule ImpureExpr_tfrees)
have "tfrees_set (ran (\<Gamma>(x \<mapsto> \<tau>))) \<subseteq> tfrees_set (ran \<Gamma> \<union> {\<tau>})"
by (auto simp: tfrees_set_def dest!: set_mp [OF ran_map_upd_subset])
also have "... \<subseteq> tfrees_set (ran \<Gamma>) \<union> {\<rho>}" using t_sub
by (auto simp: tfrees_set_def)
finally show ?thesis .
qed
lemma all_WfE_into_tfrees_set:
assumes lall: "list_all2 (\<lambda>e \<tau>. \<Gamma> \<turnstile> e : tsubst \<theta> \<tau>) es ts"
shows "tfrees_set (set (map (tsubst \<theta>) ts)) \<subseteq> tfrees_set (ran \<Gamma>)"
proof -
{
fix i
assume "i < length ts"
with lall have "\<Gamma> \<turnstile> es ! i : tsubst \<theta> (ts ! i)"
by (rule list_all2_nthD2)
hence "tfrees (tsubst \<theta> (ts ! i)) \<subseteq> tfrees_set (ran \<Gamma>)"
by (rule Expr_tfrees)
} thus ?thesis unfolding tfrees_set_def
by (fastforce simp: list_all2_conv_all_nth in_set_conv_nth)
qed
(* Not used but still maybe interesting
lemma WfStmt_ret_tfree_subset0:
assumes wfs: "\<Gamma>, \<Psi>, \<rho> \<turnstile> s : \<tau>, b"
and wff: "WfFuns F \<Psi>"
and b: "b"
shows "tfrees \<tau> \<subseteq> tfrees_set (ran \<Gamma>) \<union> {\<rho>}"
using wfs b wff
proof induction
case (wfBind \<Gamma> \<rho> e \<tau>' v \<Psi> s \<tau> b)
from `\<Gamma>, \<rho> \<turnstile>I e : \<tau>'`
have t_sub: "tfrees \<tau>' \<subseteq> tfrees_set (ran \<Gamma>) \<union> {\<rho>}" by (rule ImpureExpr_tfrees)
have "tfrees \<tau> \<subseteq> tfrees_set (ran (\<Gamma>(v \<mapsto> \<tau>'))) \<union> {\<rho>}" by (rule wfBind.IH) fact+
also have "... \<subseteq> tfrees_set (ran \<Gamma> \<union> {\<tau>'}) \<union> {\<rho>}"
by (auto simp: tfrees_set_def dest!: set_mp [OF ran_map_upd_subset])
also have "... \<subseteq> tfrees_set (ran \<Gamma>) \<union> {\<rho>}" using t_sub
by (auto simp: tfrees_set_def)
finally show ?case .
next
case (wfCall \<Psi> f \<sigma> ts \<Gamma> \<theta> es x \<rho> s \<tau> b)
have sigma_sub: "tfrees (tsubst \<theta> \<sigma>) \<subseteq> tfrees_set (ran \<Gamma>)"
proof -
from `\<Psi> f = Some (FunT \<sigma> ts)` `WfFuns F \<Psi>`
have "tfrees \<sigma> \<subseteq> tfrees_set (set ts)"
by (auto elim!: WfFuns.cases submap_stE WfFunc.cases)
hence "tfrees (tsubst \<theta> \<sigma>) \<subseteq> tfrees_set (set (map (tsubst \<theta>) ts))"
by (simp add: tfrees_tsubst tfrees_set_tsubst image_mono)
also have "... \<subseteq> tfrees_set (ran \<Gamma>)"
by (rule all_WfE_into_tfrees_set) fact
finally show ?thesis .
qed
have "tfrees \<tau> \<subseteq> tfrees_set (ran (\<Gamma>(x \<mapsto> tsubst \<theta> \<sigma>))) \<union> {\<rho>}"
by (rule wfCall.IH) fact+
also have "... \<subseteq> tfrees_set (ran \<Gamma> \<union> {tsubst \<theta> \<sigma>}) \<union> {\<rho>}"
by (auto simp: tfrees_set_def dest!: set_mp [OF ran_map_upd_subset])
also have "... \<subseteq> tfrees_set (ran \<Gamma>) \<union> {\<rho>}" using sigma_sub
by (auto simp add: tfrees_set_Un tfrees_tsubst simp del: Un_insert_right)
finally show ?case .
qed (auto dest: Expr_tfrees)
*)
lemma tfrees_set_mono:
assumes ss: "S \<subseteq> S'"
shows "tfrees_set S \<subseteq> tfrees_set S'"
using ss
unfolding tfrees_set_def
by auto
subsection {* Type judgements and substitution *}
lemma WfExpr_tsubst:
assumes wf: "\<Gamma> \<turnstile> e : \<tau>"
shows "(Option.map (tsubst \<theta>) \<circ> \<Gamma>) \<turnstile> e : tsubst \<theta> \<tau>"
using wf
by induction (auto intro: WfE.intros)
lemma WfImpureExpr_tsubst:
notes o_apply [simp del]
assumes wf: "\<Gamma>, \<rho> \<turnstile>I e : \<tau>"
shows "(Option.map (tsubst \<theta>) \<circ> \<Gamma>), (\<theta> \<rho>) \<turnstile>I e : tsubst \<theta> \<tau>"
using wf
by induction (auto intro!: WfImpureExpr.intros dest: WfExpr_tsubst)
lemmas WfExpr_tsubst_Prim = WfExpr_tsubst [where \<tau> = "Prim \<tau>", simplified, standard]
lemma WfStmt_tsubst:
notes o_apply [simp del]
assumes wfs: "\<Gamma>, \<Psi>, \<rho> \<turnstile> e : \<tau>, b"
shows "(Option.map (tsubst \<theta>) \<circ> \<Gamma>), \<Psi>, \<theta> \<rho> \<turnstile> e : tsubst \<theta> \<tau>, b"
using wfs
proof (induction )
note [simp del] = option_map_o_map_upd fun_upd_apply
case (wfBind \<Gamma> \<rho> e \<tau>' v \<Psi> s \<tau> b)
from `\<Gamma>, \<rho> \<turnstile>I e : \<tau>'`
have t_sub: "tfrees \<tau>' \<subseteq> tfrees_set (ran \<Gamma>) \<union> {\<rho>}" by (rule ImpureExpr_tfrees)
show ?case
proof
have "Option.map (tsubst \<theta>) \<circ> \<Gamma>(v \<mapsto> \<tau>'), \<Psi>, \<theta> \<rho> \<turnstile> s : tsubst \<theta> \<tau>, b"
by (rule wfBind.IH)
thus "(Option.map (tsubst \<theta>) \<circ> \<Gamma>)(v \<mapsto> tsubst \<theta> \<tau>'), \<Psi>, \<theta> \<rho> \<turnstile> s : tsubst \<theta> \<tau>, b"
by (simp add: option_map_o_map_upd)
from `\<Gamma>, \<rho> \<turnstile>I e : \<tau>'`
show "Option.map (tsubst \<theta>) \<circ> \<Gamma>, \<theta> \<rho> \<turnstile>I e : tsubst \<theta> \<tau>'"
by (rule WfImpureExpr_tsubst)
qed
next
case (wfWhile \<Gamma> e\<^sub>I \<tau>' v e\<^sub>B e\<^sub>S \<Psi> \<rho> s \<tau> b)
note [simp del] = option_map_o_map_upd fun_upd_apply
show ?case using wfWhile.hyps
proof (intro WfStmt.intros)
let ?\<Gamma> = "(Option.map (tsubst \<theta>) \<circ> \<Gamma>)"
from `\<Gamma> \<turnstile> e\<^sub>I : \<tau>'`
have t_sub: "tfrees \<tau>' \<subseteq> tfrees_set (ran \<Gamma>)" by (rule Expr_tfrees)
have "Option.map (tsubst \<theta>) \<circ> \<Gamma>(v \<mapsto> \<tau>'), \<Psi>, \<theta> \<rho> \<turnstile> s : tsubst \<theta> \<tau>, b"
by (rule wfWhile.IH)
thus "?\<Gamma>(v \<mapsto> tsubst \<theta> \<tau>'), \<Psi>, \<theta> \<rho> \<turnstile> s : tsubst \<theta> \<tau>, b"
by (simp add: option_map_o_map_upd)
qed (auto simp: option_map_o_map_upd [symmetric]
intro: WfExpr_tsubst_Prim WfExpr_tsubst)
next
case (wfCall \<Psi> f \<sigma> ts \<Gamma> \<theta>' es x \<rho> s \<tau> b)
note [simp del] = option_map_o_map_upd fun_upd_apply
let ?both = "(\<theta> \<circ> \<theta>')"
from `\<Psi> f = Some (FunT \<sigma> ts)`
show ?case
proof
from `list_all2 (\<lambda>e \<tau>. \<Gamma> \<turnstile> e : tsubst \<theta>' \<tau>) es ts`
show "list_all2 (\<lambda>e \<tau>. Option.map (tsubst \<theta>) \<circ> \<Gamma> \<turnstile> e : tsubst ?both \<tau>) es ts"
proof
fix e' \<tau>'
assume "\<Gamma> \<turnstile> e' : tsubst \<theta>' \<tau>'"
thus "Option.map (tsubst \<theta>) \<circ> \<Gamma> \<turnstile> e' : tsubst ?both \<tau>'"
by - (drule WfExpr_tsubst, simp add: tsubst_twice)
qed
have "Option.map (tsubst \<theta>) \<circ> \<Gamma>(x \<mapsto> tsubst \<theta>' \<sigma>), \<Psi>, \<theta> \<rho> \<turnstile> s : tsubst \<theta> \<tau>, b"
by (rule wfCall.IH)
thus "(Option.map (tsubst \<theta>) \<circ> \<Gamma>)(x \<mapsto> tsubst (\<theta> \<circ> \<theta>') \<sigma>), \<Psi>, \<theta> \<rho> \<turnstile> s : tsubst \<theta> \<tau>, b"
by (simp add: option_map_o_map_upd tsubst_twice)
qed
qed (auto simp add: tsubst_twice
intro: WfStmt.intros
dest: WfExpr_tsubst WfImpureExpr_tsubst
WfExpr_tsubst_Prim)
subsection {* Type judgements and store (type) updates *}
lemma WfStore_upd:
assumes wfst: "WfStore \<Delta> \<Theta> G \<Gamma>"
and wfwv: "WfWValue \<Delta> \<Theta> v \<tau>"
shows "WfStore \<Delta> \<Theta> (G(x \<mapsto> v)) (\<Gamma>(x \<mapsto> \<tau>))"
using wfst wfwv
by (auto elim!: WfStore.cases submap_st_update intro!: WfStore)
lemma WfFrees_upd_storeT:
assumes wffr: "WfFrees \<Delta> \<Gamma> \<rho> n"
and t_sub: "tfrees \<tau> \<subseteq> tfrees_set (ran \<Gamma>) \<union> {\<rho>}"
shows "WfFrees \<Delta> (\<Gamma>(x \<mapsto> \<tau>)) \<rho> n"
using wffr
proof (rule WfFreesE, intro WfFrees)
assume "\<Delta> \<rho> = Some n"
"\<forall>k \<in> ran \<Delta>. k \<le> n"
"tfrees_set (ran \<Gamma>) \<subseteq> dom \<Delta>" "finite (dom \<Delta>)"
thus "\<Delta> \<rho> = Some n" and "\<forall>k \<in> ran \<Delta>. k \<le> n"
and "finite (dom \<Delta>)" by simp_all
have "tfrees_set (ran (\<Gamma>(x \<mapsto> \<tau>))) \<subseteq> tfrees_set (ran \<Gamma> \<union> {\<tau>})"
by (auto simp: tfrees_set_def dest!: set_mp [OF ran_map_upd_subset])
also have "... \<subseteq> tfrees_set (ran \<Gamma>) \<union> {\<rho>}" using t_sub
by (auto simp: tfrees_set_def)
also have "... \<subseteq> (dom \<Delta>)" using
`tfrees_set (ran \<Gamma>) \<subseteq> dom \<Delta>``\<Delta> \<rho> = Some n`
by (simp add: domI)
finally show "tfrees_set (ran (\<Gamma>(x \<mapsto> \<tau>))) \<subseteq> dom \<Delta>" .
qed
subsection {* Type judgements and heap (type) updates *}
lemma WfWValue_region_extend:
assumes wfwv: "WfWValue \<Delta> (\<Theta> @ [\<Sigma>]) v \<tau>'"
and notin: "x \<notin> dom \<Sigma>"
shows "WfWValue \<Delta> (\<Theta> @ [\<Sigma>(x \<mapsto> \<tau>)]) v \<tau>'"
using wfwv notin
by cases (auto simp: lookup_heap_Some_iff nth_append not_less intro!: WfWValue.intros split: split_if_asm)
lemma WfWValue_heap_monotone:
assumes wfwv: "WfWValue \<Delta> \<Theta> v \<tau>'"
shows "WfWValue \<Delta> (\<Theta> @ \<Theta>') v \<tau>'"
using wfwv
by cases (auto intro!: WfWValue.intros simp: lookup_heap_Some_iff nth_append)
lemma WfWValue_heap_mono:
assumes wfst: "WfWValue \<Delta> \<Theta> v \<tau>"
and sub: "subheap \<Theta> \<Theta>'"
shows "WfWValue \<Delta> \<Theta>' v \<tau>"
using wfst sub
proof induction
case (wfRefV \<Delta> \<rho> region \<Theta> off \<tau>)
show ?case
proof
from `subheap \<Theta> \<Theta>'` `lookup_heap \<Theta> region off = Some \<tau>`
show "lookup_heap \<Theta>' region off = Some \<tau>" by (rule subheap_lookup_heapD)
qed fact
qed (auto intro: WfWValue.intros)
lemma WfStore_heap_mono:
assumes wfst: "WfStore \<Delta> \<Theta> G \<Gamma>"
and sub: "subheap \<Theta> \<Theta>'"
shows "WfStore \<Delta> \<Theta>' G \<Gamma>"
proof (rule, rule submap_st_weaken)
from wfst show "submap_st \<Gamma> G (WfWValue \<Delta> \<Theta>)" by (auto elim: WfStore.cases)
next
fix mv nv
assume wfwv: "WfWValue \<Delta> \<Theta> mv nv"
thus "WfWValue \<Delta> \<Theta>' mv nv" using sub
by (rule WfWValue_heap_mono)
qed
lemma WfStack_mono:
assumes wfst: "WfStack \<Psi> \<Delta> \<Theta> st \<tau> b \<rho>"
and sub: "subheap \<Theta> \<Theta>'"
shows "WfStack \<Psi> \<Delta> \<Theta>' st \<tau> b \<rho>"
using wfst sub
proof (induction arbitrary: \<Theta>')
case wfStackNil thus ?case by (clarsimp simp: subheap_singleton intro!: WfStack.intros)
next
case (wfStackFun \<Psi> \<Delta>' \<Theta> st \<tau>' b' \<gamma> store' \<Gamma> x \<tau> cont \<Delta> \<Sigma> \<rho> \<Theta>')
from `subheap (\<Theta> @ [\<Sigma>]) \<Theta>'` obtain \<Sigma>'
where "\<Theta>' = butlast \<Theta>' @ [\<Sigma>']" and "subheap \<Theta> (butlast \<Theta>')"
unfolding subheap_def
by (clarsimp simp add: list_all2_append1 butlast_append list_all2_Cons1
cong: rev_conj_cong)
moreover have "WfStack \<Psi> \<Delta> (butlast \<Theta>' @ [\<Sigma>']) ((store', cont, ReturnFrame x) # st) \<tau> True \<rho>"
proof
from `subheap \<Theta> (butlast \<Theta>')` show "WfStack \<Psi> \<Delta>' (butlast \<Theta>') st \<tau>' b' \<gamma>"
by (rule wfStackFun.IH)
from `WfStore \<Delta>' \<Theta> store' \<Gamma>` `subheap \<Theta> (butlast \<Theta>')`
show "WfStore \<Delta>' (butlast \<Theta>') store' \<Gamma>" by (rule WfStore_heap_mono)
from `\<Theta>' = butlast \<Theta>' @ [\<Sigma>']` `WfFrees \<Delta>' (\<Gamma>(x \<mapsto> \<tau>)) \<gamma> (length \<Theta> - 1)` `subheap \<Theta> (butlast \<Theta>')`
show "WfFrees \<Delta>' (\<Gamma>(x \<mapsto> \<tau>)) \<gamma> (length (butlast \<Theta>') - 1)"
by (clarsimp dest!: subheap_lengthD)
qed fact+
ultimately show ?case by simp
next
case (wfStackSeq \<Psi> \<Delta> \<Theta> st \<tau> b' \<rho> store' \<Gamma> cont b \<Theta>')
show ?case
proof
from `subheap \<Theta> \<Theta>'`show "WfStack \<Psi> \<Delta> \<Theta>' st \<tau> b' \<rho>" by (rule wfStackSeq.IH)
from `WfStore \<Delta> \<Theta> store' \<Gamma>` `subheap \<Theta> \<Theta>'`
show "WfStore \<Delta> \<Theta>' store' \<Gamma>" by (rule WfStore_heap_mono)
qed fact+
qed
lemma WfWValue_push_heap:
assumes wfst: "WfWValue \<Delta> \<Theta> v \<tau>"
shows "WfWValue \<Delta> (push_heap \<Theta>) v \<tau>"
using wfst
by induction (auto intro!: WfWValue.intros simp: lookup_heap_Some_iff push_heap_def nth_append)
lemma WfStore_push_heap:
assumes wfst: "WfStore \<Delta> \<Theta> G \<Gamma>"
shows "WfStore \<Delta> (push_heap \<Theta>) G \<Gamma>"
proof (rule, rule submap_st_weaken)
from wfst show "submap_st \<Gamma> G (WfWValue \<Delta> \<Theta>)" by (auto elim: WfStore.cases)
next
fix mv nv
assume wfwv: "WfWValue \<Delta> \<Theta> mv nv"
thus "WfWValue \<Delta> (push_heap \<Theta>) mv nv"
by (rule WfWValue_push_heap)
qed
lemma WfStore_upd_heapT:
assumes wfst: "WfStore \<Delta> \<Theta> G \<Gamma>"
and new_T: "update_heap \<Theta> n x \<tau> = Some \<Theta>'"
and x_not_in: "x \<notin> dom (lookup_heap \<Theta> n)"
shows "WfStore \<Delta> \<Theta>' G \<Gamma>"
proof (rule, rule submap_st_weaken)
from wfst show "submap_st \<Gamma> G (WfWValue \<Delta> \<Theta>)"
by (auto elim: WfStore.cases)
next
fix mv nv
assume wfwv: "WfWValue \<Delta> \<Theta> mv nv"
from wfwv
show "WfWValue \<Delta> \<Theta>' mv nv"
proof cases
case (wfRefV \<rho> region off \<tau>)
hence "lookup_heap \<Theta>' region off = Some \<tau>" using x_not_in new_T
by (cases "n = region")
(fastforce simp: lookup_heap_Some_iff nth_append update_heap_def not_less min_absorb2
split: split_if_asm )+
thus ?thesis using wfRefV
by (auto simp add: lookup_heap_Some_iff intro!: WfWValue.intros)
qed (auto intro: WfWValue.intros)
qed
(* x is usually fresh_in_heap *)
lemma WfHeap_upd:
assumes wfh: "WfHeap H \<Theta>"
and wfwv: "WfHValue v \<tau>"
and nv: "n = length H - 1"
and new_H: "update_heap H n x v = Some H'"
and new_T: "update_heap \<Theta> n x \<tau> = Some \<Theta>'"
and notin: "x \<notin> dom (lookup_heap H n)"
shows "WfHeap H' \<Theta>'"
using wfh wfwv notin WfHeap_dom' [where n = n, OF wfh] nv new_H new_T
proof induction
case wfHeapNil thus ?case by simp
next
case (wfHeapCons H \<Theta> \<Sigma> R)
note heap_len = WfHeap_length [OF wfHeapCons.hyps(1)]
have "x \<notin> dom R" using wfHeapCons.prems by (simp add: lookup_heap_def)
hence "x \<notin> dom \<Sigma>" using wfHeapCons.prems heap_len by auto
with `WfHeap H \<Theta>` `submap_st \<Sigma> R WfHValue` `finite (dom R)`
show ?case using wfHeapCons.prems heap_len
unfolding update_heap_def
by (auto simp add: update_heap_def nth_append
intro!: WfHeap.intros submap_st_update
elim!: submap_st_weaken WfWValue_region_extend)
qed
lemma WfHeap_upd_same_type:
assumes wfh: "WfHeap H \<Theta>"
and wfwv: "WfHValue v \<tau>"
and new_H: "update_heap H n x v = Some H'"
and lup: "lookup_heap \<Theta> n x = Some \<tau>"
shows "WfHeap H' \<Theta>"
using wfh wfwv new_H lup
proof (induction arbitrary: H')
case wfHeapNil thus ?case by simp
next
case (wfHeapCons H \<Theta> \<Sigma> R H')
note heap_len = WfHeap_length [OF wfHeapCons.hyps(1)]
show ?case
proof (cases "n = length \<Theta>")
case True thus ?thesis using wfHeapCons.prems wfHeapCons.hyps heap_len
by (auto simp add: update_heap_def nth_append submap_st_def
intro!: WfHeap.intros)
next
case False
with `lookup_heap (\<Theta> @ [\<Sigma>]) n x = Some \<tau>` have "n < length \<Theta>"
by (simp add: lookup_heap_Some_iff)
hence "n < length H" using heap_len by simp
from `update_heap (H @ [R]) n x v = Some H'`
have "H' = (butlast H') @ [R]"
unfolding update_heap_def using False heap_len
by (auto simp: nth_append butlast_snoc not_less butlast_append
split: split_if_asm)
moreover have "WfHeap (butlast H' @ [R]) (\<Theta> @ [\<Sigma>])"
proof
have "WfHValue v \<tau>" by fact
moreover
from `update_heap (H @ [R]) n x v = Some H'` `H' = (butlast H') @ [R]`
have "update_heap (H @ [R]) n x v = Some (butlast H' @ [R])" by simp
hence "update_heap H n x v = Some (butlast H')" using `n < length H`
by (rule update_heap_shrink)
moreover
from `lookup_heap (\<Theta> @ [\<Sigma>]) n x = Some \<tau>` `n < length \<Theta>`
have "lookup_heap \<Theta> n x = Some \<tau>"
by (simp add: lookup_heap_Some_iff nth_append)
ultimately show "WfHeap (butlast H') \<Theta>"
by (rule wfHeapCons.IH)
qed fact+
ultimately show ?thesis by simp
qed
qed
subsection {* Region environment updates *}
lemma WfWValue_renv_mono:
assumes wfwv: "WfWValue \<Delta> \<Theta> v \<tau>"
and sub: "\<Delta> \<subseteq>\<^sub>m \<Delta>'"
shows "WfWValue \<Delta>' \<Theta> v \<tau>"
using wfwv sub
by induct (auto intro!: WfWValue.intros
dest!: map_leD)
lemma WfStack_renv_mono:
notes fun_upd_apply [simp del]
assumes wfst: "WfStack \<Psi> \<Delta> \<Theta> st \<tau> b \<rho>"
and sub: "\<Delta> \<subseteq>\<^sub>m \<Delta>'"
shows "WfStack \<Psi> \<Delta>' \<Theta> st \<tau> b \<rho>"
using wfst sub
proof induction
case wfStackNil show ?case ..
next
case wfStackFun
thus ?case by (auto intro!: WfStack.intros elim: map_le_trans)
next
case (wfStackSeq \<Psi> \<Delta> \<Theta> st \<tau> b' \<rho> store' \<Gamma> cont b)
show ?case
proof
from `WfStore \<Delta> \<Theta> store' \<Gamma>` `\<Delta> \<subseteq>\<^sub>m \<Delta>'`
show "WfStore \<Delta>' \<Theta> store' \<Gamma>"
by (auto intro!: map_le_map_upd_right elim!: WfStore_lift_weak WfWValue_renv_mono )
show "WfStack \<Psi> \<Delta>' \<Theta> st \<tau> b' \<rho>" by (rule wfStackSeq.IH) fact
from `tfrees_set (ran \<Gamma>) \<subseteq> dom \<Delta>`
show "tfrees_set (ran \<Gamma>) \<subseteq> dom \<Delta>'"
proof (rule order_trans)
from `\<Delta> \<subseteq>\<^sub>m \<Delta>'` show "dom \<Delta> \<subseteq> dom \<Delta>'" by (rule map_le_implies_dom_le)
qed
qed fact+
qed
(*<*)
end
(*>*) | Isabelle | 5 | cyy9447/ivory | ivory-formal-model/TypeSystemProps.thy | [
"BSD-3-Clause"
] |
\noMiddle ->
\doubleNegation ->
merge
{ "Left": \x -> x, "Right": \x -> merge { } (doubleNegation x) }
noMiddle
| Grace | 3 | DebugSteven/grace | tasty/data/complex/double-negation-output.grace | [
"BSD-3-Clause"
] |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon([/*#__PURE__*/_jsx("path", {
d: "m18.89 14.75-4.09-2.04c-.28-.14-.58-.21-.89-.21H13v-6c0-.83-.67-1.5-1.5-1.5S10 5.67 10 6.5v10.74l-3.25-.74c-.33-.07-.68.03-.92.28l-.83.84 4.54 4.79c.38.38 1.14.59 1.67.59h6.16c1 0 1.84-.73 1.98-1.72l.63-4.46c.12-.85-.32-1.68-1.09-2.07z"
}, "0"), /*#__PURE__*/_jsx("path", {
d: "M20.13 3.87C18.69 2.17 15.6 1 12 1S5.31 2.17 3.87 3.87L2 2v5h5L4.93 4.93c1-1.29 3.7-2.43 7.07-2.43s6.07 1.14 7.07 2.43L17 7h5V2l-1.87 1.87z"
}, "1")], 'Swipe'); | JavaScript | 4 | good-gym/material-ui | packages/material-ui-icons/lib/esm/Swipe.js | [
"MIT"
] |
/*
* Copyright (c) 2018-2020, Andreas Kling <[email protected]>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
namespace Gfx {
enum class Orientation {
Horizontal,
Vertical
};
}
using Gfx::Orientation;
| C | 4 | r00ster91/serenity | Userland/Libraries/LibGfx/Orientation.h | [
"BSD-2-Clause"
] |
[38;2;249;38;114m@[0m[38;2;249;38;114mecho[0m[38;2;248;248;242m off[0m
[38;2;117;113;94m::[0m[38;2;117;113;94m Change to your LLVM installation[0m
[38;2;249;38;114mset[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;255;255;255mLLVMPath[0m[38;2;249;38;114m=[0m[38;2;230;219;116mC:\Program Files\LLVM[0m[38;2;230;219;116m"[0m
[38;2;117;113;94m::[0m[38;2;117;113;94m Change to your Visual Studio 2017 installation[0m
[38;2;249;38;114mset[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;255;255;255mVSPath[0m[38;2;249;38;114m=[0m[38;2;230;219;116mC:\Program Files [0m[38;2;230;219;116m([0m[38;2;230;219;116mx86[0m[38;2;230;219;116m)[0m[38;2;230;219;116m\Microsoft Visual Studio\[0m[38;2;190;132;255m2017[0m[38;2;230;219;116m\Community[0m[38;2;230;219;116m"[0m
[38;2;249;38;114mset[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;255;255;255mVSVersion[0m[38;2;249;38;114m=[0m[38;2;190;132;255m14[0m[38;2;230;219;116m.[0m[38;2;190;132;255m10[0m[38;2;230;219;116m.[0m[38;2;190;132;255m25017[0m[38;2;230;219;116m"[0m
[38;2;117;113;94m::[0m[38;2;117;113;94m Change to your Windows Kit version & installation[0m
[38;2;249;38;114mset[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;255;255;255mWinSDKVersion[0m[38;2;249;38;114m=[0m[38;2;190;132;255m10[0m[38;2;230;219;116m.[0m[38;2;190;132;255m0[0m[38;2;230;219;116m.[0m[38;2;190;132;255m15063[0m[38;2;230;219;116m.[0m[38;2;190;132;255m0[0m[38;2;230;219;116m"[0m
[38;2;249;38;114mset[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;255;255;255mWinSDKPath[0m[38;2;249;38;114m=[0m[38;2;230;219;116mC:\Program Files [0m[38;2;230;219;116m([0m[38;2;230;219;116mx86[0m[38;2;230;219;116m)[0m[38;2;230;219;116m\Windows Kits\[0m[38;2;190;132;255m10[0m[38;2;230;219;116m"[0m
[38;2;117;113;94m::[0m[38;2;117;113;94m Change this to your resulting exe[0m
[38;2;249;38;114mset[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;255;255;255mOUTPUT[0m[38;2;249;38;114m=[0m[38;2;230;219;116mtest.exe[0m[38;2;230;219;116m"[0m
[38;2;117;113;94m::[0m[38;2;117;113;94m Setup[0m
[38;2;249;38;114mset[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;255;255;255mVSBasePath[0m[38;2;249;38;114m=[0m[38;2;255;255;255m%[0m[38;2;255;255;255mVSPath[0m[38;2;255;255;255m%[0m[38;2;230;219;116m\VC\Tools\MSVC\[0m[38;2;255;255;255m%[0m[38;2;255;255;255mVSVersion[0m[38;2;255;255;255m%[0m[38;2;230;219;116m"[0m
[38;2;249;38;114mset[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;255;255;255mPATH[0m[38;2;249;38;114m=[0m[38;2;255;255;255m%[0m[38;2;255;255;255mPATH[0m[38;2;255;255;255m%[0m[38;2;230;219;116m;[0m[38;2;255;255;255m%[0m[38;2;255;255;255mLLVMPath[0m[38;2;255;255;255m%[0m[38;2;230;219;116m\bin;[0m[38;2;255;255;255m%[0m[38;2;255;255;255mVSBasePath[0m[38;2;255;255;255m%[0m[38;2;230;219;116m\bin\HostX64\x64[0m[38;2;230;219;116m"[0m
[38;2;117;113;94m::[0m[38;2;117;113;94m Compiler Flags[0m
[38;2;249;38;114mset[0m[38;2;248;248;242m [0m[38;2;255;255;255mCFLAGS[0m[38;2;249;38;114m=[0m[38;2;230;219;116m ^[0m
[38;2;248;248;242m -std=c++[0m[38;2;190;132;255m14[0m[38;2;248;248;242m -Wall -Wextra[0m
[38;2;249;38;114mset[0m[38;2;248;248;242m [0m[38;2;255;255;255mCPPFLAGS[0m[38;2;249;38;114m=[0m[38;2;230;219;116m ^[0m
[38;2;248;248;242m -I [0m[38;2;230;219;116m"[0m[38;2;255;255;255m%[0m[38;2;255;255;255mVSBasePath[0m[38;2;255;255;255m%[0m[38;2;230;219;116m\include[0m[38;2;230;219;116m"[0m[38;2;248;248;242m [0m[38;2;190;132;255m^[0m
[38;2;248;248;242m -I [0m[38;2;230;219;116m"[0m[38;2;255;255;255m%[0m[38;2;255;255;255mWinSDKPath[0m[38;2;255;255;255m%[0m[38;2;230;219;116m\Include\[0m[38;2;255;255;255m%[0m[38;2;255;255;255mWinSDKVersion[0m[38;2;255;255;255m%[0m[38;2;230;219;116m\shared[0m[38;2;230;219;116m"[0m[38;2;248;248;242m [0m[38;2;190;132;255m^[0m
[38;2;248;248;242m -I [0m[38;2;230;219;116m"[0m[38;2;255;255;255m%[0m[38;2;255;255;255mWinSDKPath[0m[38;2;255;255;255m%[0m[38;2;230;219;116m\Include\[0m[38;2;255;255;255m%[0m[38;2;255;255;255mWinSDKVersion[0m[38;2;255;255;255m%[0m[38;2;230;219;116m\ucrt[0m[38;2;230;219;116m"[0m[38;2;248;248;242m [0m[38;2;190;132;255m^[0m
[38;2;248;248;242m -I [0m[38;2;230;219;116m"[0m[38;2;255;255;255m%[0m[38;2;255;255;255mWinSDKPath[0m[38;2;255;255;255m%[0m[38;2;230;219;116m\Include\[0m[38;2;255;255;255m%[0m[38;2;255;255;255mWinSDKVersion[0m[38;2;255;255;255m%[0m[38;2;230;219;116m\um[0m[38;2;230;219;116m"[0m
[38;2;117;113;94m::[0m[38;2;117;113;94m Linker Libs[0m
[38;2;249;38;114mset[0m[38;2;248;248;242m [0m[38;2;255;255;255mLDFLAGS[0m[38;2;249;38;114m=[0m[38;2;230;219;116m ^[0m
[38;2;248;248;242m -machine:x64 [0m[38;2;190;132;255m^[0m
[38;2;248;248;242m -nodefaultlib [0m[38;2;190;132;255m^[0m
[38;2;248;248;242m -subsystem:console[0m
[38;2;249;38;114mset[0m[38;2;248;248;242m [0m[38;2;255;255;255mLDLIBS[0m[38;2;249;38;114m=[0m[38;2;230;219;116m ^[0m
[38;2;248;248;242m -libpath:[0m[38;2;230;219;116m"[0m[38;2;255;255;255m%[0m[38;2;255;255;255mVSBasePath[0m[38;2;255;255;255m%[0m[38;2;230;219;116m\lib\x64[0m[38;2;230;219;116m"[0m[38;2;248;248;242m [0m[38;2;190;132;255m^[0m
[38;2;248;248;242m -libpath:[0m[38;2;230;219;116m"[0m[38;2;255;255;255m%[0m[38;2;255;255;255mWinSDKPath[0m[38;2;255;255;255m%[0m[38;2;230;219;116m\Lib\[0m[38;2;255;255;255m%[0m[38;2;255;255;255mWinSDKVersion[0m[38;2;255;255;255m%[0m[38;2;230;219;116m\ucrt\x64[0m[38;2;230;219;116m"[0m[38;2;248;248;242m [0m[38;2;190;132;255m^[0m
[38;2;248;248;242m -libpath:[0m[38;2;230;219;116m"[0m[38;2;255;255;255m%[0m[38;2;255;255;255mWinSDKPath[0m[38;2;255;255;255m%[0m[38;2;230;219;116m\Lib\[0m[38;2;255;255;255m%[0m[38;2;255;255;255mWinSDKVersion[0m[38;2;255;255;255m%[0m[38;2;230;219;116m\um\x64[0m[38;2;230;219;116m"[0m[38;2;248;248;242m [0m[38;2;190;132;255m^[0m
[38;2;248;248;242m libucrt.lib libvcruntime.lib libcmt.lib libcpmt.lib [0m[38;2;190;132;255m^[0m
[38;2;248;248;242m legacy_stdio_definitions.lib oldnames.lib [0m[38;2;190;132;255m^[0m
[38;2;248;248;242m legacy_stdio_wide_specifiers.lib [0m[38;2;190;132;255m^[0m
[38;2;248;248;242m kernel32.lib User32.lib[0m
[38;2;117;113;94m::[0m[38;2;117;113;94m Compiling[0m
[38;2;249;38;114m@[0m[38;2;249;38;114mecho[0m[38;2;248;248;242m on[0m
[38;2;249;38;114m@[0m[38;2;249;38;114mfor[0m[38;2;248;248;242m [0m[38;2;190;132;255m%%[0m[38;2;248;248;242mf in [0m[38;2;248;248;242m([0m[38;2;248;248;242m*.cc[0m[38;2;248;248;242m)[0m[38;2;248;248;242m do [0m[38;2;248;248;242m([0m
[38;2;248;248;242m clang++.exe [0m[38;2;230;219;116m"[0m[38;2;190;132;255m%%[0m[38;2;230;219;116m~f[0m[38;2;230;219;116m"[0m[38;2;248;248;242m -o [0m[38;2;230;219;116m"[0m[38;2;190;132;255m%%[0m[38;2;230;219;116m~nf.o[0m[38;2;230;219;116m"[0m[38;2;248;248;242m -c [0m[38;2;255;255;255m%[0m[38;2;255;255;255mCFLAGS[0m[38;2;255;255;255m%[0m
[38;2;248;248;242m)[0m
[38;2;117;113;94m::[0m[38;2;117;113;94m Linking[0m
[38;2;249;38;114m@[0m[38;2;249;38;114mset[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;255;255;255mLINK_FILES[0m[38;2;249;38;114m=[0m[38;2;230;219;116m"[0m
[38;2;249;38;114m@[0m[38;2;249;38;114mfor[0m[38;2;248;248;242m [0m[38;2;190;132;255m%%[0m[38;2;248;248;242mf in [0m[38;2;248;248;242m([0m[38;2;248;248;242m*.o[0m[38;2;248;248;242m)[0m[38;2;248;248;242m do [0m[38;2;248;248;242m([0m
[38;2;248;248;242m [0m[38;2;249;38;114m@[0m[38;2;249;38;114mset[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;255;255;255mLINK_FILES[0m[38;2;249;38;114m=[0m[38;2;255;255;255m%[0m[38;2;255;255;255mLINK_FILES[0m[38;2;255;255;255m%[0m[38;2;230;219;116m [0m[38;2;190;132;255m%%[0m[38;2;230;219;116m~f[0m[38;2;230;219;116m"[0m
[38;2;248;248;242m)[0m
[38;2;248;248;242mlld-link.exe [0m[38;2;255;255;255m%[0m[38;2;255;255;255mLINK_FILES[0m[38;2;255;255;255m%[0m[38;2;248;248;242m -out:[0m[38;2;230;219;116m"[0m[38;2;255;255;255m%[0m[38;2;255;255;255mOUTPUT[0m[38;2;255;255;255m%[0m[38;2;230;219;116m"[0m[38;2;248;248;242m [0m[38;2;255;255;255m%[0m[38;2;255;255;255mLDFLAGS[0m[38;2;255;255;255m%[0m[38;2;248;248;242m [0m[38;2;255;255;255m%[0m[38;2;255;255;255mLDLIBS[0m[38;2;255;255;255m%[0m
| Batchfile | 4 | JesseVermeulen123/bat | tests/syntax-tests/highlighted/Batch/build.bat | [
"Apache-2.0",
"MIT"
] |
DECAY: 0.05
rotate
sphereDetail 2
color hsv(wave(1000)*255, 200,200)
fill
ball
stroke 2
for i: 0 to 20 step 1
rotate map(noise(i,wave(1000)), 0,1, 0,100), wave(2000),0,wave(1000)
color hsv(wave(100)*36,200,200)
particle 0.4
sphere map(HEALTH, 0,1,1,0)
end
end
| Cycript | 3 | marcinbiegun/creativecoding-sketches | Cyril/data/code_experiments/6.cy | [
"MIT"
] |
/* SPDX-License-Identifier: Apache-2.0 */
/* Empty file */
| Linker Script | 0 | lviala-zaack/zephyr | include/linker/app_smem_unaligned.ld | [
"Apache-2.0"
] |
### 请求 /menu/list 接口 => 成功
GET {{baseUrl}}/system/dict-data/list-all-simple
Authorization: Bearer {{token}}
| HTTP | 3 | cksspk/ruoyi-vue-pro | yudao-admin-server/src/main/java/cn/iocoder/yudao/adminserver/modules/system/controller/dict/SysDictDataController.http | [
"MIT"
] |
// Daniel Shiffman
// https://thecodingtrain.com/
// https://youtu.be/Iaz9TqYWUmA
// https://editor.p5js.org/codingtrain/sketches/2zZqSkxtj
// Thanks to Veritasium
// https://youtu.be/zUyH3XhpLTo
// and Chris Orban / STEM Coding
// https://www.asc.ohio-state.edu/orban.14/stemcoding/blackhole.html
// Accounting for relativity:
// https://editor.p5js.org/codingtrain/sketches/4DvaeH0Ur
class Photon {
PVector pos, vel;
ArrayList<PVector> history;
boolean stopped;
float theta;
Photon(float x, float y) {
this.pos = new PVector(x, y);
this.vel = new PVector(-c, 0);
this.history = new ArrayList<PVector>();
this.stopped = false;
this.theta = 0;
}
void stop() {
this.stopped = true;
}
void update() {
if (!this.stopped) {
//if (frameCount % 5 == 0) {
this.history.add(this.pos.copy());
//}
PVector deltaV = this.vel.copy();
deltaV.mult(dt);
this.pos.add(deltaV);
}
if (this.history.size() > 500) {
this.history.remove(0);
}
}
void show() {
strokeWeight(4);
stroke(255, 0, 0);
point(this.pos.x, this.pos.y);
strokeWeight(2);
noFill();
beginShape();
for (PVector v : this.history) {
vertex(v.x, v.y);
}
endShape();
}
}
| Processing | 4 | aerinkayne/website | CodingChallenges/CC_144_Black_Hole_Newtonian/Processing/CC_114_Black_Hole_Newtonian/photon.pde | [
"MIT"
] |
background-color: $$(style)Color;
background-color: $$(style)Color Color122;
color: @@color;
font: 100% $font-stack;
background-color: darken(@link-color, 10%);
border: 1px solid var(--border-color);
color: $(style)color;
color: @@(style) color123;
color: @@(style)color123;
| CSS | 2 | fuelingtheweb/prettier | tests/css_postcss_plugins/postcss-simple-vars.css | [
"MIT"
] |
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* http://w3c.github.io/mediacapture-main/getusermedia.html
*/
dictionary MediaTrackSettings {
long width;
long height;
double frameRate;
DOMString facingMode;
DOMString deviceId;
boolean echoCancellation;
boolean noiseSuppression;
boolean autoGainControl;
long channelCount;
};
| WebIDL | 4 | tlively/wasm-bindgen | crates/web-sys/webidls/enabled/MediaTrackSettings.webidl | [
"Apache-2.0",
"MIT"
] |
"","strength","batch","cask","sample"
"1",62.8,"A","a","A:a"
"2",62.6,"A","a","A:a"
"3",60.1,"A","b","A:b"
"4",62.3,"A","b","A:b"
"5",62.7,"A","c","A:c"
"6",63.1,"A","c","A:c"
"7",60,"B","a","B:a"
"8",61.4,"B","a","B:a"
"9",57.5,"B","b","B:b"
"10",56.9,"B","b","B:b"
"11",61.1,"B","c","B:c"
"12",58.9,"B","c","B:c"
"13",58.7,"C","a","C:a"
"14",57.5,"C","a","C:a"
"15",63.9,"C","b","C:b"
"16",63.1,"C","b","C:b"
"17",65.4,"C","c","C:c"
"18",63.7,"C","c","C:c"
"19",57.1,"D","a","D:a"
"20",56.4,"D","a","D:a"
"21",56.9,"D","b","D:b"
"22",58.6,"D","b","D:b"
"23",64.7,"D","c","D:c"
"24",64.5,"D","c","D:c"
"25",55.1,"E","a","E:a"
"26",55.1,"E","a","E:a"
"27",54.7,"E","b","E:b"
"28",54.2,"E","b","E:b"
"29",58.8,"E","c","E:c"
"30",57.5,"E","c","E:c"
"31",63.4,"F","a","F:a"
"32",64.9,"F","a","F:a"
"33",59.3,"F","b","F:b"
"34",58.1,"F","b","F:b"
"35",60.5,"F","c","F:c"
"36",60,"F","c","F:c"
"37",62.5,"G","a","G:a"
"38",62.6,"G","a","G:a"
"39",61,"G","b","G:b"
"40",58.7,"G","b","G:b"
"41",56.9,"G","c","G:c"
"42",57.7,"G","c","G:c"
"43",59.2,"H","a","H:a"
"44",59.4,"H","a","H:a"
"45",65.2,"H","b","H:b"
"46",66,"H","b","H:b"
"47",64.8,"H","c","H:c"
"48",64.1,"H","c","H:c"
"49",54.8,"I","a","I:a"
"50",54.8,"I","a","I:a"
"51",64,"I","b","I:b"
"52",64,"I","b","I:b"
"53",57.7,"I","c","I:c"
"54",56.8,"I","c","I:c"
"55",58.3,"J","a","J:a"
"56",59.3,"J","a","J:a"
"57",59.2,"J","b","J:b"
"58",59.2,"J","b","J:b"
"59",58.9,"J","c","J:c"
"60",56.6,"J","c","J:c"
| CSV | 1 | EkremBayar/bayar | venv/Lib/site-packages/statsmodels/regression/tests/results/pastes.csv | [
"MIT"
] |
{
"name": "workspace-2",
"version": "1.0.0",
"private": false,
"dependencies": {
"mime-types": "2.1.12",
"uglifyify": "3.0.4"
}
}
| JSON | 2 | Bhanditz/yarn | __tests__/fixtures/why/workspaces-nohoist/packages/workspace-2/package.json | [
"BSD-2-Clause"
] |
%{
extern int yylex(void);
extern int yyerror();
%}
%token BOOLEAN
%%
input:
BOOLEAN { $$ = $1;}
;
| Yacc | 3 | kira78/meson | test cases/frameworks/8 flex/parser.y | [
"Apache-2.0"
] |
/*
* Copyright 2002-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.test.context;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* {@code @BootstrapWith} defines class-level metadata that is used to determine
* how to bootstrap the <em>Spring TestContext Framework</em>.
*
* <p>This annotation may also be used as a <em>meta-annotation</em> to create
* custom <em>composed annotations</em>. As of Spring Framework 5.1, a locally
* declared {@code @BootstrapWith} annotation (i.e., one that is <em>directly
* present</em> on the current test class) will override any meta-present
* declarations of {@code @BootstrapWith}.
*
* <p>As of Spring Framework 5.3, this annotation will be inherited from an
* enclosing test class by default. See
* {@link NestedTestConfiguration @NestedTestConfiguration} for details.
*
* @author Sam Brannen
* @since 4.1
* @see BootstrapContext
* @see TestContextBootstrapper
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface BootstrapWith {
/**
* The {@link TestContextBootstrapper} to use to bootstrap the <em>Spring
* TestContext Framework</em>.
*/
Class<? extends TestContextBootstrapper> value() default TestContextBootstrapper.class;
}
| Java | 5 | spreoW/spring-framework | spring-test/src/main/java/org/springframework/test/context/BootstrapWith.java | [
"Apache-2.0"
] |
#![crate_type="cdylib"]
extern crate an_rlib;
// This should not be exported
pub fn public_rust_function_from_cdylib() {}
// This should be exported
#[no_mangle]
pub extern "C" fn public_c_function_from_cdylib() {
an_rlib::public_c_function_from_rlib();
}
| Rust | 4 | Eric-Arellano/rust | src/test/run-make-fulldeps/symbol-visibility/a_cdylib.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
#include <iostream>
#include <nlohmann/json.hpp>
#include <iomanip> // for std::setw
using json = nlohmann::json;
int main()
{
// the original document
json document = R"({
"title": "Goodbye!",
"author": {
"givenName": "John",
"familyName": "Doe"
},
"tags": [
"example",
"sample"
],
"content": "This will be unchanged"
})"_json;
// the patch
json patch = R"({
"title": "Hello!",
"phoneNumber": "+01-123-456-7890",
"author": {
"familyName": null
},
"tags": [
"example"
]
})"_json;
// apply the patch
document.merge_patch(patch);
// output original and patched document
std::cout << std::setw(4) << document << std::endl;
}
| C++ | 4 | sdmg15/json | doc/examples/merge_patch.cpp | [
"MIT"
] |
(* Definitions and lemmas for manipulating Ivory heaps and heap types *)
theory Heaps
imports Lib
begin
(*
Heaps in Ivory are represented by a stack of regions, where a region
is just a map (key \<Rightarrow> value option). We abstract out this by
introducing lookup_heap and update_heap: lookup_heap returns Some x
iff the given region and key exist, otherwise it gives None.
Similarly, update_heap returns None if given an invalid region
Note that heaps are extended from the end as this allows indexes
into the heap to persist across extesions.
*)
(* Region indexes *)
type_synonym ridx = nat
(* Region offsets *)
type_synonym roff = nat
definition
lookup_heap :: "(('a \<Rightarrow> 'b option) list) \<Rightarrow> ridx \<Rightarrow> 'a \<Rightarrow> 'b option"
where
"lookup_heap H region = (if region < length H then (H ! region) else Map.empty)"
definition
update_heap :: "(('a \<Rightarrow> 'b option) list) \<Rightarrow> ridx \<Rightarrow> 'a \<Rightarrow> 'b \<Rightarrow> ('a \<Rightarrow> 'b option) list option"
where
"update_heap H region = (if region < length H then (\<lambda>off v. Some (take region H @ [ (H ! region)(off \<mapsto> v) ] @ drop (region + 1) H)) else (\<lambda>_ _. None))"
definition
push_heap :: "(('a \<Rightarrow> 'b option) list) \<Rightarrow> (('a \<Rightarrow> 'b option) list)"
where
"push_heap H = H @ [Map.empty]"
definition
pop_heap :: "(('a \<Rightarrow> 'b option) list) \<Rightarrow> (('a \<Rightarrow> 'b option) list)"
where
"pop_heap H = butlast H"
definition
fresh_in_heap :: "(('a :: infinite \<Rightarrow> 'b option) list) \<Rightarrow> ridx \<Rightarrow> 'a"
where
"fresh_in_heap H n = (fresh (dom (H ! n)))"
definition
subheap :: "('a \<Rightarrow> 'b option) list \<Rightarrow> ('a \<Rightarrow> 'b option) list \<Rightarrow> bool"
where
"subheap = list_all2 map_le"
lemma pop_push_heap: "pop_heap (push_heap H) = H"
by (simp add: pop_heap_def push_heap_def)
lemma lookup_heap_Some_iff:
"(lookup_heap H region off = Some v) = (region < length H \<and> (H ! region) off = Some v)"
unfolding lookup_heap_def by simp
lemma lookup_heap_empty [simp]:
"lookup_heap [] n = (\<lambda>_. None)" unfolding lookup_heap_def by simp
lemma lookup_heap_length_append [simp]:
"lookup_heap (H @ [R]) (length H) = R"
unfolding lookup_heap_def by simp
lemma update_heap_empty [simp]:
"update_heap [] n = (\<lambda>_ _. None)" unfolding update_heap_def by simp
lemma update_heap_idem:
shows "(update_heap H region off v = Some H) = (lookup_heap H region off = Some v)"
apply (simp add: lookup_heap_Some_iff)
apply (clarsimp simp add: update_heap_def list_eq_iff_nth_eq)
apply rule
apply (clarsimp simp add: min_absorb1 min_absorb2 Suc_pred )
apply (drule spec, drule (1) mp)
apply (clarsimp simp: nth_append fun_upd_idem_iff)
apply (clarsimp simp add: min_absorb1 min_absorb2 )
apply rule
apply (rule Suc_pred)
apply arith
apply (auto simp: le_imp_diff_is_add nth_append nth.simps min_absorb1 min_absorb2 not_less add_ac split: nat.splits)
done
lemma update_heap_into_lookup_heap:
assumes upd: "update_heap H region off v = Some H'"
shows "lookup_heap H' region' off' = (if region' = region \<and> off' = off then Some v else lookup_heap H region' off')"
using upd unfolding update_heap_def
by (auto simp: lookup_heap_def min_absorb2 min_absorb1 not_less nth_append nth.simps
Suc_pred le_imp_diff_is_add add_ac
split: split_if_asm nat.splits)
lemma lookup_heap_into_update_heap_same:
assumes lup: "lookup_heap H region off = Some v"
obtains H' where "update_heap H region off v' = Some H'"
using lup unfolding update_heap_def
by (auto simp: lookup_heap_def min_absorb2 min_absorb1 not_less nth_append nth.simps
Suc_pred le_imp_diff_is_add add_ac
split: split_if_asm nat.splits) (* clag *)
lemma update_heap_Some_iff:
"(update_heap H region off v = Some H')
= (region < length H \<and> H' = take region H @ [ (H ! region)(off \<mapsto> v) ] @ drop (region + 1) H)"
unfolding update_heap_def by auto
lemma update_heap_mono:
assumes upd: "update_heap H region off v = Some H'"
shows "update_heap (H @ G) region off v = Some (H' @ G)"
using upd unfolding update_heap_def
by (auto simp: nth_append split: split_if_asm)
lemma update_heap_shrink:
assumes upd: "update_heap (H @ G) region off v = Some (H' @ G)"
and region: "region < length H"
shows "update_heap H region off v = Some H'"
using upd region unfolding update_heap_def
by (clarsimp simp: not_less nth_append split: split_if_asm)
lemma update_heap_length:
"update_heap H n x v = Some H' \<Longrightarrow> length H' = length H"
by (auto simp: update_heap_def split: split_if_asm)
lemma length_pop_heap [simp]:
"H \<noteq> [] \<Longrightarrow> length (pop_heap H) = length H - 1"
unfolding pop_heap_def by simp
lemma length_push_heap [simp]:
"length (push_heap H) = Suc (length H)"
unfolding push_heap_def by simp
lemma length_pop_heap_le:
"length (pop_heap H) \<le> length H"
unfolding pop_heap_def by simp
lemma fresh_in_heap_fresh:
assumes finite: "finite (dom (lookup_heap H n))"
shows "fresh_in_heap H n \<notin> dom (lookup_heap H n)"
proof
let ?R = "lookup_heap H n"
assume "fresh_in_heap H n \<in> dom ?R"
hence "fresh (dom ?R) \<in> dom ?R"
by (auto split: split_if_asm simp: fresh_in_heap_def lookup_heap_def)
moreover from finite have "fresh (dom ?R) \<notin> dom ?R" by (rule fresh_not_in)
ultimately show False by simp
qed
lemma subheap_singleton:
"subheap [R] H = (\<exists>R'. H = [R'] \<and> R \<subseteq>\<^sub>m R')"
unfolding subheap_def
by (cases H) auto
lemma subheap_lengthD:
"subheap H H' \<Longrightarrow> length H = length H'" unfolding subheap_def by (rule list_all2_lengthD)
lemma subheap_lookup_heapD:
assumes sh: "subheap H H'"
and lup: "lookup_heap H region off = Some v"
shows "lookup_heap H' region off = Some v"
using sh lup unfolding subheap_def
by (auto simp: lookup_heap_Some_iff list_all2_conv_all_nth intro: map_leD)
lemma subheap_mono_left:
assumes sh: "subheap H H'"
shows "subheap (G @ H) (G @ H')"
using sh unfolding subheap_def
by (auto simp: list_all2_conv_all_nth nth_append)
lemma subheap_mono_right:
assumes sh: "subheap H H'"
shows "subheap (H @ G) (H' @ G)"
using sh unfolding subheap_def
by (auto simp: list_all2_conv_all_nth nth_append)
lemma subheap_refl:
shows "subheap H H"
unfolding subheap_def
by (auto simp: list_all2_conv_all_nth )
lemma subheap_trans [trans]:
assumes sh: "subheap H H'"
and sh': "subheap H' H''"
shows "subheap H H''"
using sh sh' unfolding subheap_def
by (auto simp: list_all2_conv_all_nth nth_append elim!: map_le_trans dest!: spec)
lemma subheap_take_drop:
assumes xd: "x \<notin> dom (lookup_heap H n)"
and mn: "m = Suc n"
and nv: "n < length H"
shows "subheap H (take n H @ [ (H ! n)(x \<mapsto> y) ] @ drop m H)" (is "subheap H ?H'")
using mn nv xd unfolding subheap_def
by (auto intro!: nth_equalityI simp: lookup_heap_Some_iff list_all2_conv_all_nth le_imp_diff_is_add nth_append nth.simps min_absorb1 min_absorb2 not_less add_ac map_le_def split: nat.splits)
end
| Isabelle | 5 | cyy9447/ivory | ivory-formal-model/Heaps.thy | [
"BSD-3-Clause"
] |
<div class="alert alert-error alert_modal_content" data-alert="alert">
<a class="close" href="#">×</a>
{{#if ajax_fail}}
Sorry, something went wrong with the request. Please try again.
{{#if error}}<br/>Error: <pre class="server_error">{{error.message}}</pre>{{/if}}
{{/if}}
{{#if create_db_first}}
<p>You need to create a database before creating a table.<p>
{{/if}}
{{#if port_isnt_integer}}
<p>Please enter an integer for the port.</p>
{{/if}}
{{#if database_is_empty}}
<p>Please do not use an empty name for a database.</p>
{{/if}}
{{#if database_exists}}
<p>The chosen database's name is already being used.<br/>Please choose another one.</p>
{{/if}}
{{#if table_name_empty}}
<p>Please do not use an empty name for a table.</p>
{{/if}}
{{#if no_database}}
<p>You have to select a database.</p>
{{/if}}
{{#if table_exists}}
<p>The chosen table is already being used. Please choose another one.</p>
{{/if}}
{{#if datacenter_is_empty}}
<p>Please do not use an empty name for a datacenter.</p>
{{/if}}
{{#if datacenter_exists}}
<p>The chosen datacenter's name is already being used. please choose another one.</p>
{{/if}}
{{#if server_is_empty}}
<p>Please do not use an empty name for a server.</p>
{{/if}}
{{#if server_exists}}
<p>The chosen server's name is already being used. please choose another one.</p>
{{/if}}
{{#if special_char_detected}}
<p>You can only use alphanumeric characters and underscores for a {{type}}'s name.</p>
{{/if}}
{{#if fail_create_secondary_index}}
<p>The secondary index could not be created. Message returned by the driver:<br/>
{{message}}</p>
{{/if}}
</div>
| Handlebars | 3 | zadcha/rethinkdb | admin/static/handlebars/error_input.hbs | [
"Apache-2.0"
] |
#version 330
#INSERT camera_uniform_declarations.glsl
in vec3 point;
in vec3 du_point;
in vec3 dv_point;
in vec4 color;
out vec3 xyz_coords;
out vec3 v_normal;
out vec4 v_color;
#INSERT position_point_into_frame.glsl
#INSERT get_gl_Position.glsl
#INSERT get_rotated_surface_unit_normal_vector.glsl
void main(){
xyz_coords = position_point_into_frame(point);
v_normal = get_rotated_surface_unit_normal_vector(point, du_point, dv_point);
v_color = color;
gl_Position = get_gl_Position(xyz_coords);
} | GLSL | 3 | OrKedar/geo-manimgl-app | manimlib/shaders/surface/vert.glsl | [
"MIT"
] |
/**
* Author......: See docs/credits.txt
* License.....: MIT
*/
#define NEW_SIMD_CODE
#ifdef KERNEL_STATIC
#include "inc_vendor.h"
#include "inc_types.h"
#include "inc_platform.cl"
#include "inc_common.cl"
#include "inc_simd.cl"
#include "inc_hash_sha1.cl"
#include "inc_hash_sha256.cl"
#include "inc_cipher_aes.cl"
#endif
#define COMPARE_S "inc_comp_single.cl"
#define COMPARE_M "inc_comp_multi.cl"
typedef struct mozilla_aes_tmp
{
u32 ipad[8];
u32 opad[8];
u32 dgst[8];
u32 out[8];
} mozilla_aes_tmp_t;
typedef struct mozilla_aes
{
u32 iv_buf[4];
u32 ct_buf[4];
} mozilla_aes_t;
DECLSPEC void hmac_sha256_run_V (u32x *w0, u32x *w1, u32x *w2, u32x *w3, u32x *ipad, u32x *opad, u32x *digest)
{
digest[0] = ipad[0];
digest[1] = ipad[1];
digest[2] = ipad[2];
digest[3] = ipad[3];
digest[4] = ipad[4];
digest[5] = ipad[5];
digest[6] = ipad[6];
digest[7] = ipad[7];
sha256_transform_vector (w0, w1, w2, w3, digest);
w0[0] = digest[0];
w0[1] = digest[1];
w0[2] = digest[2];
w0[3] = digest[3];
w1[0] = digest[4];
w1[1] = digest[5];
w1[2] = digest[6];
w1[3] = digest[7];
w2[0] = 0x80000000;
w2[1] = 0;
w2[2] = 0;
w2[3] = 0;
w3[0] = 0;
w3[1] = 0;
w3[2] = 0;
w3[3] = (64 + 32) * 8;
digest[0] = opad[0];
digest[1] = opad[1];
digest[2] = opad[2];
digest[3] = opad[3];
digest[4] = opad[4];
digest[5] = opad[5];
digest[6] = opad[6];
digest[7] = opad[7];
sha256_transform_vector (w0, w1, w2, w3, digest);
}
KERNEL_FQ void m26100_init (KERN_ATTR_TMPS_ESALT (mozilla_aes_tmp_t, mozilla_aes_t))
{
/**
* base
*/
const u64 gid = get_global_id (0);
if (gid >= gid_max) return;
sha1_ctx_t ctx;
sha1_init (&ctx);
// there's some data in salt_buf[8] and onwards so we need to move this to local variable
u32 gs[16] = { 0 };
gs[0] = salt_bufs[DIGESTS_OFFSET].salt_buf[0];
gs[1] = salt_bufs[DIGESTS_OFFSET].salt_buf[1];
gs[2] = salt_bufs[DIGESTS_OFFSET].salt_buf[2];
gs[3] = salt_bufs[DIGESTS_OFFSET].salt_buf[3];
gs[4] = salt_bufs[DIGESTS_OFFSET].salt_buf[4];
sha1_update_swap (&ctx, gs, 20);
sha1_update_global_swap (&ctx, pws[gid].i, pws[gid].pw_len);
sha1_final (&ctx);
u32 ek[16] = { 0 };
ek[0] = ctx.h[0];
ek[1] = ctx.h[1];
ek[2] = ctx.h[2];
ek[3] = ctx.h[3];
ek[4] = ctx.h[4];
sha256_hmac_ctx_t sha256_hmac_ctx;
sha256_hmac_init (&sha256_hmac_ctx, ek, 20);
tmps[gid].ipad[0] = sha256_hmac_ctx.ipad.h[0];
tmps[gid].ipad[1] = sha256_hmac_ctx.ipad.h[1];
tmps[gid].ipad[2] = sha256_hmac_ctx.ipad.h[2];
tmps[gid].ipad[3] = sha256_hmac_ctx.ipad.h[3];
tmps[gid].ipad[4] = sha256_hmac_ctx.ipad.h[4];
tmps[gid].ipad[5] = sha256_hmac_ctx.ipad.h[5];
tmps[gid].ipad[6] = sha256_hmac_ctx.ipad.h[6];
tmps[gid].ipad[7] = sha256_hmac_ctx.ipad.h[7];
tmps[gid].opad[0] = sha256_hmac_ctx.opad.h[0];
tmps[gid].opad[1] = sha256_hmac_ctx.opad.h[1];
tmps[gid].opad[2] = sha256_hmac_ctx.opad.h[2];
tmps[gid].opad[3] = sha256_hmac_ctx.opad.h[3];
tmps[gid].opad[4] = sha256_hmac_ctx.opad.h[4];
tmps[gid].opad[5] = sha256_hmac_ctx.opad.h[5];
tmps[gid].opad[6] = sha256_hmac_ctx.opad.h[6];
tmps[gid].opad[7] = sha256_hmac_ctx.opad.h[7];
// accessing esalt from _init can lead to false negatives because,
// but we know the global salt is unique for each entry so its fine
u32 es[16] = { 0 };
es[0] = salt_bufs[DIGESTS_OFFSET].salt_buf[ 8];
es[1] = salt_bufs[DIGESTS_OFFSET].salt_buf[ 9];
es[2] = salt_bufs[DIGESTS_OFFSET].salt_buf[10];
es[3] = salt_bufs[DIGESTS_OFFSET].salt_buf[11];
es[4] = salt_bufs[DIGESTS_OFFSET].salt_buf[12];
es[5] = salt_bufs[DIGESTS_OFFSET].salt_buf[13];
es[6] = salt_bufs[DIGESTS_OFFSET].salt_buf[14];
es[7] = salt_bufs[DIGESTS_OFFSET].salt_buf[15];
sha256_hmac_update_swap (&sha256_hmac_ctx, es, 32);
for (u32 i = 0, j = 1; i < 8; i += 8, j += 1)
{
sha256_hmac_ctx_t sha256_hmac_ctx2 = sha256_hmac_ctx;
u32 w0[4];
u32 w1[4];
u32 w2[4];
u32 w3[4];
w0[0] = j;
w0[1] = 0;
w0[2] = 0;
w0[3] = 0;
w1[0] = 0;
w1[1] = 0;
w1[2] = 0;
w1[3] = 0;
w2[0] = 0;
w2[1] = 0;
w2[2] = 0;
w2[3] = 0;
w3[0] = 0;
w3[1] = 0;
w3[2] = 0;
w3[3] = 0;
sha256_hmac_update_64 (&sha256_hmac_ctx2, w0, w1, w2, w3, 4);
sha256_hmac_final (&sha256_hmac_ctx2);
tmps[gid].dgst[i + 0] = sha256_hmac_ctx2.opad.h[0];
tmps[gid].dgst[i + 1] = sha256_hmac_ctx2.opad.h[1];
tmps[gid].dgst[i + 2] = sha256_hmac_ctx2.opad.h[2];
tmps[gid].dgst[i + 3] = sha256_hmac_ctx2.opad.h[3];
tmps[gid].dgst[i + 4] = sha256_hmac_ctx2.opad.h[4];
tmps[gid].dgst[i + 5] = sha256_hmac_ctx2.opad.h[5];
tmps[gid].dgst[i + 6] = sha256_hmac_ctx2.opad.h[6];
tmps[gid].dgst[i + 7] = sha256_hmac_ctx2.opad.h[7];
tmps[gid].out[i + 0] = tmps[gid].dgst[i + 0];
tmps[gid].out[i + 1] = tmps[gid].dgst[i + 1];
tmps[gid].out[i + 2] = tmps[gid].dgst[i + 2];
tmps[gid].out[i + 3] = tmps[gid].dgst[i + 3];
tmps[gid].out[i + 4] = tmps[gid].dgst[i + 4];
tmps[gid].out[i + 5] = tmps[gid].dgst[i + 5];
tmps[gid].out[i + 6] = tmps[gid].dgst[i + 6];
tmps[gid].out[i + 7] = tmps[gid].dgst[i + 7];
}
}
KERNEL_FQ void m26100_loop (KERN_ATTR_TMPS_ESALT (mozilla_aes_tmp_t, mozilla_aes_t))
{
const u64 gid = get_global_id (0);
if ((gid * VECT_SIZE) >= gid_max) return;
u32x ipad[8];
u32x opad[8];
ipad[0] = packv (tmps, ipad, gid, 0);
ipad[1] = packv (tmps, ipad, gid, 1);
ipad[2] = packv (tmps, ipad, gid, 2);
ipad[3] = packv (tmps, ipad, gid, 3);
ipad[4] = packv (tmps, ipad, gid, 4);
ipad[5] = packv (tmps, ipad, gid, 5);
ipad[6] = packv (tmps, ipad, gid, 6);
ipad[7] = packv (tmps, ipad, gid, 7);
opad[0] = packv (tmps, opad, gid, 0);
opad[1] = packv (tmps, opad, gid, 1);
opad[2] = packv (tmps, opad, gid, 2);
opad[3] = packv (tmps, opad, gid, 3);
opad[4] = packv (tmps, opad, gid, 4);
opad[5] = packv (tmps, opad, gid, 5);
opad[6] = packv (tmps, opad, gid, 6);
opad[7] = packv (tmps, opad, gid, 7);
for (u32 i = 0; i < 8; i += 8)
{
u32x dgst[8];
u32x out[8];
dgst[0] = packv (tmps, dgst, gid, i + 0);
dgst[1] = packv (tmps, dgst, gid, i + 1);
dgst[2] = packv (tmps, dgst, gid, i + 2);
dgst[3] = packv (tmps, dgst, gid, i + 3);
dgst[4] = packv (tmps, dgst, gid, i + 4);
dgst[5] = packv (tmps, dgst, gid, i + 5);
dgst[6] = packv (tmps, dgst, gid, i + 6);
dgst[7] = packv (tmps, dgst, gid, i + 7);
out[0] = packv (tmps, out, gid, i + 0);
out[1] = packv (tmps, out, gid, i + 1);
out[2] = packv (tmps, out, gid, i + 2);
out[3] = packv (tmps, out, gid, i + 3);
out[4] = packv (tmps, out, gid, i + 4);
out[5] = packv (tmps, out, gid, i + 5);
out[6] = packv (tmps, out, gid, i + 6);
out[7] = packv (tmps, out, gid, i + 7);
for (u32 j = 0; j < loop_cnt; j++)
{
u32x w0[4];
u32x w1[4];
u32x w2[4];
u32x w3[4];
w0[0] = dgst[0];
w0[1] = dgst[1];
w0[2] = dgst[2];
w0[3] = dgst[3];
w1[0] = dgst[4];
w1[1] = dgst[5];
w1[2] = dgst[6];
w1[3] = dgst[7];
w2[0] = 0x80000000;
w2[1] = 0;
w2[2] = 0;
w2[3] = 0;
w3[0] = 0;
w3[1] = 0;
w3[2] = 0;
w3[3] = (64 + 32) * 8;
hmac_sha256_run_V (w0, w1, w2, w3, ipad, opad, dgst);
out[0] ^= dgst[0];
out[1] ^= dgst[1];
out[2] ^= dgst[2];
out[3] ^= dgst[3];
out[4] ^= dgst[4];
out[5] ^= dgst[5];
out[6] ^= dgst[6];
out[7] ^= dgst[7];
}
unpackv (tmps, dgst, gid, i + 0, dgst[0]);
unpackv (tmps, dgst, gid, i + 1, dgst[1]);
unpackv (tmps, dgst, gid, i + 2, dgst[2]);
unpackv (tmps, dgst, gid, i + 3, dgst[3]);
unpackv (tmps, dgst, gid, i + 4, dgst[4]);
unpackv (tmps, dgst, gid, i + 5, dgst[5]);
unpackv (tmps, dgst, gid, i + 6, dgst[6]);
unpackv (tmps, dgst, gid, i + 7, dgst[7]);
unpackv (tmps, out, gid, i + 0, out[0]);
unpackv (tmps, out, gid, i + 1, out[1]);
unpackv (tmps, out, gid, i + 2, out[2]);
unpackv (tmps, out, gid, i + 3, out[3]);
unpackv (tmps, out, gid, i + 4, out[4]);
unpackv (tmps, out, gid, i + 5, out[5]);
unpackv (tmps, out, gid, i + 6, out[6]);
unpackv (tmps, out, gid, i + 7, out[7]);
}
}
KERNEL_FQ void m26100_comp (KERN_ATTR_TMPS_ESALT (mozilla_aes_tmp_t, mozilla_aes_t))
{
const u64 gid = get_global_id (0);
const u64 lid = get_local_id (0);
const u64 lsz = get_local_size (0);
/**
* aes shared
*/
#ifdef REAL_SHM
LOCAL_VK u32 s_td0[256];
LOCAL_VK u32 s_td1[256];
LOCAL_VK u32 s_td2[256];
LOCAL_VK u32 s_td3[256];
LOCAL_VK u32 s_td4[256];
LOCAL_VK u32 s_te0[256];
LOCAL_VK u32 s_te1[256];
LOCAL_VK u32 s_te2[256];
LOCAL_VK u32 s_te3[256];
LOCAL_VK u32 s_te4[256];
for (u32 i = lid; i < 256; i += lsz)
{
s_td0[i] = td0[i];
s_td1[i] = td1[i];
s_td2[i] = td2[i];
s_td3[i] = td3[i];
s_td4[i] = td4[i];
s_te0[i] = te0[i];
s_te1[i] = te1[i];
s_te2[i] = te2[i];
s_te3[i] = te3[i];
s_te4[i] = te4[i];
}
SYNC_THREADS ();
#else
CONSTANT_AS u32a *s_td0 = td0;
CONSTANT_AS u32a *s_td1 = td1;
CONSTANT_AS u32a *s_td2 = td2;
CONSTANT_AS u32a *s_td3 = td3;
CONSTANT_AS u32a *s_td4 = td4;
CONSTANT_AS u32a *s_te0 = te0;
CONSTANT_AS u32a *s_te1 = te1;
CONSTANT_AS u32a *s_te2 = te2;
CONSTANT_AS u32a *s_te3 = te3;
CONSTANT_AS u32a *s_te4 = te4;
#endif
if (gid >= gid_max) return;
u32 ukey[8];
ukey[0] = tmps[gid].out[0];
ukey[1] = tmps[gid].out[1];
ukey[2] = tmps[gid].out[2];
ukey[3] = tmps[gid].out[3];
ukey[4] = tmps[gid].out[4];
ukey[5] = tmps[gid].out[5];
ukey[6] = tmps[gid].out[6];
ukey[7] = tmps[gid].out[7];
u32 ks[60];
AES256_set_decrypt_key (ks, ukey, s_te0, s_te1, s_te2, s_te3, s_td0, s_td1, s_td2, s_td3);
// first check the padding
u32 iv_buf[4];
iv_buf[0] = esalt_bufs[DIGESTS_OFFSET].iv_buf[0];
iv_buf[1] = esalt_bufs[DIGESTS_OFFSET].iv_buf[1];
iv_buf[2] = esalt_bufs[DIGESTS_OFFSET].iv_buf[2];
iv_buf[3] = esalt_bufs[DIGESTS_OFFSET].iv_buf[3];
u32 ct_buf[4];
ct_buf[0] = esalt_bufs[DIGESTS_OFFSET].ct_buf[0];
ct_buf[1] = esalt_bufs[DIGESTS_OFFSET].ct_buf[1];
ct_buf[2] = esalt_bufs[DIGESTS_OFFSET].ct_buf[2];
ct_buf[3] = esalt_bufs[DIGESTS_OFFSET].ct_buf[3];
u32 pt_buf[4];
aes256_decrypt (ks, ct_buf, pt_buf, s_td0, s_td1, s_td2, s_td3, s_td4);
pt_buf[0] ^= iv_buf[0];
pt_buf[1] ^= iv_buf[1];
pt_buf[2] ^= iv_buf[2];
pt_buf[3] ^= iv_buf[3];
// password-check\x02\x02
if (pt_buf[0] != 0x73736170) return;
if (pt_buf[1] != 0x64726f77) return;
if (pt_buf[2] != 0x6568632d) return;
if (pt_buf[3] != 0x02026b63) return;
const u32 r0 = ct_buf[0];
const u32 r1 = ct_buf[1];
const u32 r2 = ct_buf[2];
const u32 r3 = ct_buf[3];
#define il_pos 0
#ifdef KERNEL_STATIC
#include COMPARE_M
#endif
}
| OpenCL | 4 | Masha/hashcat | OpenCL/m26100-pure.cl | [
"MIT"
] |
<div><p class="svelte-xyz" data-foo="bar">this is styled</p>
<p class="svelte-xyz" data-foo="bar-baz">this is styled</p>
<p data-foo="baz-bar">this is unstyled</p></div> | HTML | 2 | Theo-Steiner/svelte | test/css/samples/omit-scoping-attribute-attribute-selector-pipe-equals/expected.html | [
"MIT"
] |
<?xml version='1.0' encoding='UTF-8'?>
<Project Type="Project" LVVersion="13008000">
<Property Name="NI.LV.All.SourceOnly" Type="Bool">true</Property>
<Property Name="NI.Project.Description" Type="Str"></Property>
<Item Name="My Computer" Type="My Computer">
<Property Name="NI.SortType" Type="Int">3</Property>
<Property Name="server.app.propertiesEnabled" Type="Bool">true</Property>
<Property Name="server.control.propertiesEnabled" Type="Bool">true</Property>
<Property Name="server.tcp.enabled" Type="Bool">false</Property>
<Property Name="server.tcp.port" Type="Int">0</Property>
<Property Name="server.tcp.serviceName" Type="Str">My Computer/VI Server</Property>
<Property Name="server.tcp.serviceName.default" Type="Str">My Computer/VI Server</Property>
<Property Name="server.vi.callsEnabled" Type="Bool">true</Property>
<Property Name="server.vi.propertiesEnabled" Type="Bool">true</Property>
<Property Name="specify.custom.address" Type="Bool">false</Property>
<Item Name="Support" Type="Folder">
<Item Name="Circular Buffer" Type="Folder">
<Item Name="bufferTypes" Type="Folder">
<Property Name="NI.SortType" Type="Int">3</Property>
<Item Name="type.lvclass" Type="LVClass" URL="../Subsystems/CircularBuffer/types/type/type.lvclass"/>
<Item Name="type.U8.lvclass" Type="LVClass" URL="../Subsystems/CircularBuffer/types/type.U8/type.U8.lvclass"/>
<Item Name="type.DBL.lvclass" Type="LVClass" URL="../Subsystems/CircularBuffer/types/type.DBL/type.DBL.lvclass"/>
<Item Name="type.ImageData.lvclass" Type="LVClass" URL="../Subsystems/CircularBuffer/types/type.ImageData/type.ImageData.lvclass"/>
</Item>
<Item Name="CircularBuffer.lvclass" Type="LVClass" URL="../Subsystems/CircularBuffer/CircularBuffer.lvclass"/>
<Item Name="CircularBuffer.ImageData.lvclass" Type="LVClass" URL="../Subsystems/CircularBuffer.ImageData/CircularBuffer.ImageData.lvclass"/>
</Item>
</Item>
<Item Name="Camera" Type="Folder">
<Item Name="Camera.lvclass" Type="LVClass" URL="../Subsystems/Camera/Camera.lvclass"/>
<Item Name="Camera.Simulated.lvclass" Type="LVClass" URL="../Subsystems/Camera.Simulated/Camera.Simulated.lvclass"/>
</Item>
<Item Name="XYStage" Type="Folder">
<Item Name="XYStage.lvclass" Type="LVClass" URL="../Subsystems/XYStage/XYStage.lvclass"/>
<Item Name="XYStage.Simulated.lvclass" Type="LVClass" URL="../Subsystems/XYStage.Simulated/XYStage.Simulated.lvclass"/>
<Item Name="XYStage.TestLauncher.vi" Type="VI" URL="../Subsystems/XYStage/XYStage.TestLauncher.vi"/>
</Item>
<Item Name="Microscope.lvclass" Type="LVClass" URL="../Subsystems/Microscope/Microscope.lvclass"/>
<Item Name="Microscope.TestLauncher.vi" Type="VI" URL="../Subsystems/Microscope/Microscope.TestLauncher.vi"/>
<Item Name="ApplyMe.vipc" Type="Document" URL="../ApplyMe.vipc"/>
<Item Name="hal.ini" Type="Document" URL="../hal.ini"/>
<Item Name="simulation.ini" Type="Document" URL="../simulation.ini"/>
<Item Name="Simulated Camera.TestLauncher.vi" Type="VI" URL="../Subsystems/Camera.Simulated/Simulated Camera.TestLauncher.vi"/>
<Item Name="Dependencies" Type="Dependencies">
<Item Name="vi.lib" Type="Folder">
<Item Name="Add State(s) to Queue__jki_lib_state_machine.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/State Machine/_JKI_lib_State_Machine.llb/Add State(s) to Queue__jki_lib_state_machine.vi"/>
<Item Name="Bit-array To Byte-array.vi" Type="VI" URL="/<vilib>/picture/pictutil.llb/Bit-array To Byte-array.vi"/>
<Item Name="Check Path.vi" Type="VI" URL="/<vilib>/picture/jpeg.llb/Check Path.vi"/>
<Item Name="Clear Errors.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Clear Errors.vi"/>
<Item Name="Create Mask By Alpha.vi" Type="VI" URL="/<vilib>/picture/picture.llb/Create Mask By Alpha.vi"/>
<Item Name="Directory of Top Level VI.vi" Type="VI" URL="/<vilib>/picture/jpeg.llb/Directory of Top Level VI.vi"/>
<Item Name="Draw Flattened Pixmap.vi" Type="VI" URL="/<vilib>/picture/picture.llb/Draw Flattened Pixmap.vi"/>
<Item Name="Error Cluster From Error Code.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Error Cluster From Error Code.vi"/>
<Item Name="FixBadRect.vi" Type="VI" URL="/<vilib>/picture/pictutil.llb/FixBadRect.vi"/>
<Item Name="Get LV Class Name.vi" Type="VI" URL="/<vilib>/Utility/LVClass/Get LV Class Name.vi"/>
<Item Name="Get Rendezvous Status.vi" Type="VI" URL="/<vilib>/Utility/rendezvs.llb/Get Rendezvous Status.vi"/>
<Item Name="GetNamedRendezvousPrefix.vi" Type="VI" URL="/<vilib>/Utility/rendezvs.llb/GetNamedRendezvousPrefix.vi"/>
<Item Name="imagedata.ctl" Type="VI" URL="/<vilib>/picture/picture.llb/imagedata.ctl"/>
<Item Name="Parse State Queue__jki_lib_state_machine.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/State Machine/_JKI_lib_State_Machine.llb/Parse State Queue__jki_lib_state_machine.vi"/>
<Item Name="Read PNG File.vi" Type="VI" URL="/<vilib>/picture/png.llb/Read PNG File.vi"/>
<Item Name="Registry-SMO.lvclass" Type="LVClass" URL="/<vilib>/JKI/JKI SMO/Registry/Registry-SMO.lvclass"/>
<Item Name="Release Waiting Procs.vi" Type="VI" URL="/<vilib>/Utility/rendezvs.llb/Release Waiting Procs.vi"/>
<Item Name="RemoveNamedRendezvousPrefix.vi" Type="VI" URL="/<vilib>/Utility/rendezvs.llb/RemoveNamedRendezvousPrefix.vi"/>
<Item Name="Rendezvous RefNum" Type="VI" URL="/<vilib>/Utility/rendezvs.llb/Rendezvous RefNum"/>
<Item Name="RendezvousDataCluster.ctl" Type="VI" URL="/<vilib>/Utility/rendezvs.llb/RendezvousDataCluster.ctl"/>
<Item Name="Resize Rendezvous.vi" Type="VI" URL="/<vilib>/Utility/rendezvs.llb/Resize Rendezvous.vi"/>
<Item Name="Set Busy.vi" Type="VI" URL="/<vilib>/Utility/cursorutil.llb/Set Busy.vi"/>
<Item Name="Set Cursor (Cursor ID).vi" Type="VI" URL="/<vilib>/Utility/cursorutil.llb/Set Cursor (Cursor ID).vi"/>
<Item Name="Set Cursor (Icon Pict).vi" Type="VI" URL="/<vilib>/Utility/cursorutil.llb/Set Cursor (Icon Pict).vi"/>
<Item Name="Set Cursor.vi" Type="VI" URL="/<vilib>/Utility/cursorutil.llb/Set Cursor.vi"/>
<Item Name="SMO.lvclass" Type="LVClass" URL="/<vilib>/JKI/JKI SMO/SMO/SMO.lvclass"/>
<Item Name="Trim Whitespace.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Trim Whitespace.vi"/>
<Item Name="Unset Busy.vi" Type="VI" URL="/<vilib>/Utility/cursorutil.llb/Unset Busy.vi"/>
<Item Name="VariantType.lvlib" Type="Library" URL="/<vilib>/Utility/VariantDataType/VariantType.lvlib"/>
<Item Name="whitespace.ctl" Type="VI" URL="/<vilib>/Utility/error.llb/whitespace.ctl"/>
<Item Name="SMO.Dictionary.Variant.lvclass" Type="LVClass" URL="/<vilib>/JKI/JKI SMO/SMO.Dictionary.Variant/SMO.Dictionary.Variant.lvclass"/>
<Item Name="SMO.Dictionary.lvclass" Type="LVClass" URL="/<vilib>/JKI/JKI SMO/SMO.Dictionary/SMO.Dictionary.lvclass"/>
<Item Name="Empty Picture" Type="VI" URL="/<vilib>/picture/picture.llb/Empty Picture"/>
<Item Name="Flatten Pixmap.vi" Type="VI" URL="/<vilib>/picture/pixmap.llb/Flatten Pixmap.vi"/>
<Item Name="Picture to Pixmap.vi" Type="VI" URL="/<vilib>/picture/pictutil.llb/Picture to Pixmap.vi"/>
<Item Name="RectSize.vi" Type="VI" URL="/<vilib>/picture/PictureSupport.llb/RectSize.vi"/>
<Item Name="Set Pen State.vi" Type="VI" URL="/<vilib>/picture/picture.llb/Set Pen State.vi"/>
<Item Name="NI_FileType.lvlib" Type="Library" URL="/<vilib>/Utility/lvfile.llb/NI_FileType.lvlib"/>
<Item Name="Application Directory.vi" Type="VI" URL="/<vilib>/Utility/file.llb/Application Directory.vi"/>
<Item Name="Check Data Size.vi" Type="VI" URL="/<vilib>/picture/jpeg.llb/Check Data Size.vi"/>
<Item Name="Check Color Table Size.vi" Type="VI" URL="/<vilib>/picture/jpeg.llb/Check Color Table Size.vi"/>
<Item Name="Check File Permissions.vi" Type="VI" URL="/<vilib>/picture/jpeg.llb/Check File Permissions.vi"/>
<Item Name="Write JPEG File.vi" Type="VI" URL="/<vilib>/picture/jpeg.llb/Write JPEG File.vi"/>
<Item Name="Write PNG File.vi" Type="VI" URL="/<vilib>/picture/png.llb/Write PNG File.vi"/>
<Item Name="Flip and Pad for Picture Control.vi" Type="VI" URL="/<vilib>/picture/bmp.llb/Flip and Pad for Picture Control.vi"/>
<Item Name="Calc Long Word Padded Width.vi" Type="VI" URL="/<vilib>/picture/bmp.llb/Calc Long Word Padded Width.vi"/>
<Item Name="Write BMP Data To Buffer.vi" Type="VI" URL="/<vilib>/picture/bmp.llb/Write BMP Data To Buffer.vi"/>
<Item Name="Write BMP Data.vi" Type="VI" URL="/<vilib>/picture/bmp.llb/Write BMP Data.vi"/>
<Item Name="compatOverwrite.vi" Type="VI" URL="/<vilib>/_oldvers/_oldvers.llb/compatOverwrite.vi"/>
<Item Name="Write BMP File.vi" Type="VI" URL="/<vilib>/picture/bmp.llb/Write BMP File.vi"/>
<Item Name="GetHelpDir.vi" Type="VI" URL="/<vilib>/Utility/error.llb/GetHelpDir.vi"/>
<Item Name="BuildHelpPath.vi" Type="VI" URL="/<vilib>/Utility/error.llb/BuildHelpPath.vi"/>
<Item Name="LVBoundsTypeDef.ctl" Type="VI" URL="/<vilib>/Utility/miscctls.llb/LVBoundsTypeDef.ctl"/>
<Item Name="Get String Text Bounds.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Get String Text Bounds.vi"/>
<Item Name="Get Text Rect.vi" Type="VI" URL="/<vilib>/picture/picture.llb/Get Text Rect.vi"/>
<Item Name="Convert property node font to graphics font.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Convert property node font to graphics font.vi"/>
<Item Name="Longest Line Length in Pixels.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Longest Line Length in Pixels.vi"/>
<Item Name="Three Button Dialog CORE.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Three Button Dialog CORE.vi"/>
<Item Name="Three Button Dialog.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Three Button Dialog.vi"/>
<Item Name="DialogTypeEnum.ctl" Type="VI" URL="/<vilib>/Utility/error.llb/DialogTypeEnum.ctl"/>
<Item Name="Not Found Dialog.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Not Found Dialog.vi"/>
<Item Name="Set Bold Text.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Set Bold Text.vi"/>
<Item Name="eventvkey.ctl" Type="VI" URL="/<vilib>/event_ctls.llb/eventvkey.ctl"/>
<Item Name="TagReturnType.ctl" Type="VI" URL="/<vilib>/Utility/error.llb/TagReturnType.ctl"/>
<Item Name="ErrWarn.ctl" Type="VI" URL="/<vilib>/Utility/error.llb/ErrWarn.ctl"/>
<Item Name="Details Display Dialog.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Details Display Dialog.vi"/>
<Item Name="Search and Replace Pattern.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Search and Replace Pattern.vi"/>
<Item Name="Find Tag.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Find Tag.vi"/>
<Item Name="Format Message String.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Format Message String.vi"/>
<Item Name="Error Code Database.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Error Code Database.vi"/>
<Item Name="GetRTHostConnectedProp.vi" Type="VI" URL="/<vilib>/Utility/error.llb/GetRTHostConnectedProp.vi"/>
<Item Name="Set String Value.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Set String Value.vi"/>
<Item Name="Check Special Tags.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Check Special Tags.vi"/>
<Item Name="DialogType.ctl" Type="VI" URL="/<vilib>/Utility/error.llb/DialogType.ctl"/>
<Item Name="General Error Handler.vi" Type="VI" URL="/<vilib>/Utility/error.llb/General Error Handler.vi"/>
<Item Name="Simple Error Handler.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Simple Error Handler.vi"/>
<Item Name="Read JPEG File.vi" Type="VI" URL="/<vilib>/picture/jpeg.llb/Read JPEG File.vi"/>
<Item Name="Read BMP File.vi" Type="VI" URL="/<vilib>/picture/bmp.llb/Read BMP File.vi"/>
<Item Name="Read BMP File Data.vi" Type="VI" URL="/<vilib>/picture/bmp.llb/Read BMP File Data.vi"/>
<Item Name="Read BMP Header Info.vi" Type="VI" URL="/<vilib>/picture/bmp.llb/Read BMP Header Info.vi"/>
<Item Name="Unflatten Pixmap.vi" Type="VI" URL="/<vilib>/picture/pixmap.llb/Unflatten Pixmap.vi"/>
<Item Name="Attribute.lvclass" Type="LVClass" URL="/<vilib>/JKI/JKI SMO/Support/Attribute/Attribute.lvclass"/>
<Item Name="Attribute.Identity.lvclass" Type="LVClass" URL="/<vilib>/JKI/JKI SMO/Support/Attribute.Identity/Attribute.Identity.lvclass"/>
<Item Name="MD5Checksum string.vi" Type="VI" URL="/<vilib>/Utility/MD5Checksum.llb/MD5Checksum string.vi"/>
<Item Name="MD5Checksum format message-digest.vi" Type="VI" URL="/<vilib>/Utility/MD5Checksum.llb/MD5Checksum format message-digest.vi"/>
<Item Name="MD5Checksum core.vi" Type="VI" URL="/<vilib>/Utility/MD5Checksum.llb/MD5Checksum core.vi"/>
<Item Name="MD5Checksum pad.vi" Type="VI" URL="/<vilib>/Utility/MD5Checksum.llb/MD5Checksum pad.vi"/>
<Item Name="Attribute.SharedResource.lvclass" Type="LVClass" URL="/<vilib>/JKI/JKI SMO/Support/Attribute.SharedResource/Attribute.SharedResource.lvclass"/>
<Item Name="Attribute.Owner.lvclass" Type="LVClass" URL="/<vilib>/JKI/JKI SMO/Support/Attribute.Owner/Attribute.Owner.lvclass"/>
<Item Name="Dependency.lvclass" Type="LVClass" URL="/<vilib>/JKI/JKI SMO/Dependency/Dependency.lvclass"/>
<Item Name="Attribute.StartupBehavior.lvclass" Type="LVClass" URL="/<vilib>/JKI/JKI SMO/Support/Attribute.StartupBehavior/Attribute.StartupBehavior.lvclass"/>
<Item Name="Draw Rectangle.vi" Type="VI" URL="/<vilib>/picture/picture.llb/Draw Rectangle.vi"/>
<Item Name="Attribute.Config.lvclass" Type="LVClass" URL="/<vilib>/JKI/JKI SMO/Support/Attribute.Config/Attribute.Config.lvclass"/>
<Item Name="Get File Extension.vi" Type="VI" URL="/<vilib>/Utility/libraryn.llb/Get File Extension.vi"/>
<Item Name="8.6CompatibleGlobalVar.vi" Type="VI" URL="/<vilib>/Utility/config.llb/8.6CompatibleGlobalVar.vi"/>
<Item Name="NI_LVConfig.lvlib" Type="Library" URL="/<vilib>/Utility/config.llb/NI_LVConfig.lvlib"/>
<Item Name="NI_PackedLibraryUtility.lvlib" Type="Library" URL="/<vilib>/Utility/LVLibp/NI_PackedLibraryUtility.lvlib"/>
<Item Name="Check if File or Folder Exists.vi" Type="VI" URL="/<vilib>/Utility/libraryn.llb/Check if File or Folder Exists.vi"/>
<Item Name="General Error Handler CORE.vi" Type="VI" URL="/<vilib>/Utility/error.llb/General Error Handler CORE.vi"/>
<Item Name="Space Constant.vi" Type="VI" URL="/<vilib>/dlg_ctls.llb/Space Constant.vi"/>
<Item Name="Get File System Separator.vi" Type="VI" URL="/<vilib>/Utility/sysinfo.llb/Get File System Separator.vi"/>
<Item Name="Get LV Class Default Value.vi" Type="VI" URL="/<vilib>/Utility/LVClass/Get LV Class Default Value.vi"/>
</Item>
<Item Name="user.lib" Type="Folder">
<Item Name="File Exists - Array__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/file/file.llb/File Exists - Array__ogtk.vi"/>
<Item Name="Valid Path - Array__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/file/file.llb/Valid Path - Array__ogtk.vi"/>
<Item Name="Cluster to Array of VData__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/lvdata/lvdata.llb/Cluster to Array of VData__ogtk.vi"/>
<Item Name="Variant to Header Info__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/lvdata/lvdata.llb/Variant to Header Info__ogtk.vi"/>
<Item Name="Type Descriptor Header__ogtk.ctl" Type="VI" URL="/<userlib>/_OpenG.lib/lvdata/lvdata.llb/Type Descriptor Header__ogtk.ctl"/>
<Item Name="Type Descriptor Enumeration__ogtk.ctl" Type="VI" URL="/<userlib>/_OpenG.lib/lvdata/lvdata.llb/Type Descriptor Enumeration__ogtk.ctl"/>
<Item Name="Type Descriptor__ogtk.ctl" Type="VI" URL="/<userlib>/_OpenG.lib/lvdata/lvdata.llb/Type Descriptor__ogtk.ctl"/>
<Item Name="Get Header from TD__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/lvdata/lvdata.llb/Get Header from TD__ogtk.vi"/>
<Item Name="Build Error Cluster__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/error/error.llb/Build Error Cluster__ogtk.vi"/>
<Item Name="Split Cluster TD__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/lvdata/lvdata.llb/Split Cluster TD__ogtk.vi"/>
<Item Name="Parse String with TDs__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/lvdata/lvdata.llb/Parse String with TDs__ogtk.vi"/>
<Item Name="Get Data Name__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/lvdata/lvdata.llb/Get Data Name__ogtk.vi"/>
<Item Name="Get Data Name from TD__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/lvdata/lvdata.llb/Get Data Name from TD__ogtk.vi"/>
<Item Name="Get PString__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/lvdata/lvdata.llb/Get PString__ogtk.vi"/>
<Item Name="Get Last PString__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/lvdata/lvdata.llb/Get Last PString__ogtk.vi"/>
<Item Name="Write Key (Variant)__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/variantconfig/variantconfig.llb/Write Key (Variant)__ogtk.vi"/>
<Item Name="Get TDEnum from Data__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/lvdata/lvdata.llb/Get TDEnum from Data__ogtk.vi"/>
<Item Name="Reshape Array to 1D VArray__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/lvdata/lvdata.llb/Reshape Array to 1D VArray__ogtk.vi"/>
<Item Name="Array Size(s)__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/lvdata/lvdata.llb/Array Size(s)__ogtk.vi"/>
<Item Name="Set Data Name__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/lvdata/lvdata.llb/Set Data Name__ogtk.vi"/>
<Item Name="Get Variant Attributes__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/lvdata/lvdata.llb/Get Variant Attributes__ogtk.vi"/>
<Item Name="Format Numeric Array__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/variantconfig/variantconfig.llb/Format Numeric Array__ogtk.vi"/>
<Item Name="Get Array Element TDEnum__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/lvdata/lvdata.llb/Get Array Element TDEnum__ogtk.vi"/>
<Item Name="Strip Units__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/lvdata/lvdata.llb/Strip Units__ogtk.vi"/>
<Item Name="Array to Array of VData__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/lvdata/lvdata.llb/Array to Array of VData__ogtk.vi"/>
<Item Name="Format Variant Into String__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/string/string.llb/Format Variant Into String__ogtk.vi"/>
<Item Name="Get Refnum Type Enum from Data__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/lvdata/lvdata.llb/Get Refnum Type Enum from Data__ogtk.vi"/>
<Item Name="Refnum Subtype Enum__ogtk.ctl" Type="VI" URL="/<userlib>/_OpenG.lib/lvdata/lvdata.llb/Refnum Subtype Enum__ogtk.ctl"/>
<Item Name="Get Refnum Type Enum from TD__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/lvdata/lvdata.llb/Get Refnum Type Enum from TD__ogtk.vi"/>
<Item Name="Get Strings from Enum__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/lvdata/lvdata.llb/Get Strings from Enum__ogtk.vi"/>
<Item Name="Get Strings from Enum TD__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/lvdata/lvdata.llb/Get Strings from Enum TD__ogtk.vi"/>
<Item Name="Get Waveform Type Enum from Data__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/lvdata/lvdata.llb/Get Waveform Type Enum from Data__ogtk.vi"/>
<Item Name="Waveform Subtype Enum__ogtk.ctl" Type="VI" URL="/<userlib>/_OpenG.lib/lvdata/lvdata.llb/Waveform Subtype Enum__ogtk.ctl"/>
<Item Name="Get Waveform Type Enum from TD__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/lvdata/lvdata.llb/Get Waveform Type Enum from TD__ogtk.vi"/>
<Item Name="Resolve Timestamp Format__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/string/string.llb/Resolve Timestamp Format__ogtk.vi"/>
<Item Name="Trim Whitespace__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/string/string.llb/Trim Whitespace__ogtk.vi"/>
<Item Name="Trim Whitespace (String)__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/string/string.llb/Trim Whitespace (String)__ogtk.vi"/>
<Item Name="Trim Whitespace (String Array)__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/string/string.llb/Trim Whitespace (String Array)__ogtk.vi"/>
<Item Name="Encode Section and Key Names__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/variantconfig/variantconfig.llb/Encode Section and Key Names__ogtk.vi"/>
<Item Name="Array of VData to VCluster__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/lvdata/lvdata.llb/Array of VData to VCluster__ogtk.vi"/>
<Item Name="Read Key (Variant)__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/variantconfig/variantconfig.llb/Read Key (Variant)__ogtk.vi"/>
<Item Name="Set Enum String Value__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/lvdata/lvdata.llb/Set Enum String Value__ogtk.vi"/>
<Item Name="Get Array Element TD__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/lvdata/lvdata.llb/Get Array Element TD__ogtk.vi"/>
<Item Name="Get Element TD from Array TD__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/lvdata/lvdata.llb/Get Element TD from Array TD__ogtk.vi"/>
<Item Name="Get Default Data from TD__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/lvdata/lvdata.llb/Get Default Data from TD__ogtk.vi"/>
<Item Name="Array of VData to VArray__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/lvdata/lvdata.llb/Array of VData to VArray__ogtk.vi"/>
<Item Name="Reshape 1D Array__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/lvdata/lvdata.llb/Reshape 1D Array__ogtk.vi"/>
<Item Name="Strip Path Extension - String__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/file/file.llb/Strip Path Extension - String__ogtk.vi"/>
<Item Name="Strip Path Extension - 1D Array of Paths__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/file/file.llb/Strip Path Extension - 1D Array of Paths__ogtk.vi"/>
<Item Name="Strip Path Extension - 1D Array of Strings__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/file/file.llb/Strip Path Extension - 1D Array of Strings__ogtk.vi"/>
<Item Name="File Exists - Scalar__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/file/file.llb/File Exists - Scalar__ogtk.vi"/>
<Item Name="File Exists__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/file/file.llb/File Exists__ogtk.vi"/>
<Item Name="Valid Path - Traditional__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/file/file.llb/Valid Path - Traditional__ogtk.vi"/>
<Item Name="Valid Path__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/file/file.llb/Valid Path__ogtk.vi"/>
<Item Name="Strip Path Extension - Path__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/file/file.llb/Strip Path Extension - Path__ogtk.vi"/>
<Item Name="Strip Path Extension__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/file/file.llb/Strip Path Extension__ogtk.vi"/>
<Item Name="Read Section Cluster__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/variantconfig/variantconfig.llb/Read Section Cluster__ogtk.vi"/>
<Item Name="Write Section Cluster__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/variantconfig/variantconfig.llb/Write Section Cluster__ogtk.vi"/>
<Item Name="Convert File Extension (String)__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/file/file.llb/Convert File Extension (String)__ogtk.vi"/>
<Item Name="Convert File Extension (Path)__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/file/file.llb/Convert File Extension (Path)__ogtk.vi"/>
<Item Name="Convert File Extension__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/file/file.llb/Convert File Extension__ogtk.vi"/>
<Item Name="Build Path - Traditional - path__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/file/file.llb/Build Path - Traditional - path__ogtk.vi"/>
<Item Name="Build Path - Traditional__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/file/file.llb/Build Path - Traditional__ogtk.vi"/>
<Item Name="Build Path - File Names and Paths Arrays - path__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/file/file.llb/Build Path - File Names and Paths Arrays - path__ogtk.vi"/>
<Item Name="Build Path - File Names Array - path__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/file/file.llb/Build Path - File Names Array - path__ogtk.vi"/>
<Item Name="Build Path - File Names and Paths Arrays__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/file/file.llb/Build Path - File Names and Paths Arrays__ogtk.vi"/>
<Item Name="Build Path - File Names Array__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/file/file.llb/Build Path - File Names Array__ogtk.vi"/>
<Item Name="Strip Path - Arrays__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/file/file.llb/Strip Path - Arrays__ogtk.vi"/>
<Item Name="Build Path__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/file/file.llb/Build Path__ogtk.vi"/>
<Item Name="Strip Path - Traditional__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/file/file.llb/Strip Path - Traditional__ogtk.vi"/>
<Item Name="Strip Path__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/file/file.llb/Strip Path__ogtk.vi"/>
<Item Name="Create Dir if Non-Existant__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/file/file.llb/Create Dir if Non-Existant__ogtk.vi"/>
<Item Name="Wait (ms)__ogtk.vi" Type="VI" URL="/<userlib>/_OpenG.lib/time/time.llb/Wait (ms)__ogtk.vi"/>
</Item>
<Item Name="DeferPanelUpdate.vi" Type="VI" URL="../utilities/DeferPanelUpdate.vi"/>
<Item Name="ZoomAndCenterImage.vi" Type="VI" URL="../utilities/ZoomAndCenterImage.vi"/>
</Item>
<Item Name="Build Specifications" Type="Build"/>
</Item>
</Project>
| LabVIEW | 2 | ajnavarro/language-dataset | data/github.com/JKISoftware/HAL-Webinar/0fbcdc77580cd5cc7b433665b6e07393198fcd8d/HAL Webinar.lvproj | [
"MIT"
] |
.header {
font-size: 25px;
composes: colorRed from 'common.module.css';
color: #111;
}
| CSS | 3 | blomqma/next.js | test/integration/css-fixtures/transition-reload/pages/index.module.css | [
"MIT"
] |
xxx xxx
xxx xxx
xxx xxx mel
xxx xxx bwk me
xxx xxx ken him someone else
xxx xxx srb
xxx xxx lem
xxx xxx scj
xxx xxx rhm
xxx xxx shen
xxx xxx a68
xxx xxx sif
xxx xxx pjw
xxx xxx nls
xxx xxx dmr
xxx xxx cda
xxx xxx bs
xxx xxx llc
xxx xxx mb
xxx xxx ava
xxx xxx jrv
xxx xxx bin
xxx xxx greg
xxx xxx dict
xxx xxx lck
xxx xxx rje
xxx xxx lwf
xxx xxx dave
xxx xxx jhc
xxx xxx agf
xxx xxx doug
xxx xxx valerie
xxx xxx jca
xxx xxx bbs
xxx xxx moh
xxx xxx xchar
xxx xxx tbl
xxx xxx s
xxx xxx tgs
xxx xxx met
xxx xxx jck
xxx xxx port
xxx xxx sue
xxx xxx root
xxx xxx bsb
xxx xxx jeg
xxx xxx eag
xxx xxx pdj
xxx xxx tpc
xxx xxx cvw
xxx xxx rwm
xxx xxx avg
xxx xxx eg
xxx xxx jam
xxx xxx dl
xxx xxx lgm
xxx xxx cmb
xxx xxx jwr
xxx xxx gdb
xxx xxx marc
xxx xxx usg
xxx xxx ggr
xxx xxx daemon
xxx xxx mihalis
xxx xxx honey
xxx xxx tad
xxx xxx acs
xxx xxx uucp
xxx xxx raf
xxx xxx adh
xxx xxx kec
xxx xxx craig
xxx xxx donmac
xxx xxx jj
xxx xxx ravi
xxx xxx drw
xxx xxx stars
xxx xxx mrg
xxx xxx jcb
xxx xxx ralph
xxx xxx tom
xxx xxx sjb
xxx xxx haight
xxx xxx sharon
xxx xxx chuck
xxx xxx dsj
xxx xxx bill
xxx xxx god
xxx xxx sys
xxx xxx meh
xxx xxx jon
xxx xxx dan
xxx xxx fox
xxx xxx dale
xxx xxx kab
xxx xxx buz
xxx xxx asc
xxx xxx jas
xxx xxx trt
xxx xxx wsb
xxx xxx dwh
xxx xxx ktf
xxx xxx lr
xxx xxx dlc
xxx xxx dls
xxx xxx jwf
xxx xxx mash
xxx xxx ars
xxx xxx vgl
xxx xxx jfo
xxx xxx rab
xxx xxx pd
xxx xxx jns
xxx xxx spm
xxx xxx rob
xxx xxx egb
xxx xxx hm
xxx xxx mhb
xxx xxx aed
xxx xxx cpb
xxx xxx evp
xxx xxx ber
xxx xxx men
xxx xxx mitch
xxx xxx ast
xxx xxx jfr
xxx xxx lax
xxx xxx nel
xxx xxx blue
xxx xxx jfk
xxx xxx njas
xxx xxx 122sec
xxx xxx ddwar
xxx xxx gopi
xxx xxx jk
xxx xxx learn
xxx xxx low
xxx xxx nac
xxx xxx sidor
xxx xxx
xxx xxx running tcsh [cbm]:/:/bin/tcsh
xxx xxx V Administration:/usr/admin:/bin/sh
xxx xxx Diagnostics:/usr/diags:/bin/csh
xxx xxx
xxx xxx Tools Owner:/bin:/dev/null
xxx xxx
xxx xxx
xxx xxx Activity Owner:/usr/adm:/bin/sh
xxx xxx Files Owner:/usr/adm:/bin/sh
xxx xxx Spooler Owner:/var/spool/lp:/bin/sh
xxx xxx Activity Owner:/auditor:/bin/sh
xxx xxx Database Owner:/dbadmin:/bin/sh
xxx xxx Killian (DO NOT REMOVE):/tmp:
xxx xxx Killian (DO NOT REMOVE):/tmp:
xxx xxx Daemon and Fsdump:/var/rfindd:/bin/sh
xxx xxx Setup:/var/sysadmdesktop/EZsetup:/bin/csh
xxx xxx User:/usr/demos:/bin/csh
xxx xxx User:/usr/tutor:/bin/csh
xxx xxx Space Tour:/usr/people/tour:/bin/csh
xxx xxx Account:/usr/people/guest:/bin/csh
xxx xxx Account:/usr/people/4Dgifts:/bin/csh
xxx xxx nobody uid:/dev/null:/dev/null
xxx xxx no access:/dev/null:/dev/null
xxx xxx nobody uid:/dev/null:/dev/null
xxx xxx Owner:/usr/spool/rje:
xxx xxx change log:/:
xxx xxx distributions:/v/adm/dist:/v/bin/sh
xxx xxx Manual Owner:/:
xxx xxx call log [tom]:/v/adm/log:/v/bin/sh
xxx xxx oot EMpNB8Zp56 0 0 Super-User,,,,,,, / /bin/sh
xxx xxx oottcsh * 0 0 Super-User running tcsh [cbm] / /bin/tcsh
xxx xxx ysadm * 0 0 System V Administration /usr/admin /bin/sh
xxx xxx iag * 0 996 Hardware Diagnostics /usr/diags /bin/csh
xxx xxx aemon * 1 1 daemons / /bin/sh
xxx xxx in * 2 2 System Tools Owner /bin /dev/null
xxx xxx uucp BJnuQbAo 6 10 UUCP.Admin /usr/spool/uucppublic /usr/lib/uucp/uucico
xxx xxx ucp * 3 5 UUCP.Admin /usr/lib/uucp
xxx xxx ys * 4 0 System Activity Owner /usr/adm /bin/sh
xxx xxx adm * 5 3 Accounting Files Owner /usr/adm /bin/sh
xxx xxx lp * 9 9 Print Spooler Owner /var/spool/lp /bin/sh
xxx xxx auditor * 11 0 Audit Activity Owner /auditor /bin/sh
xxx xxx dbadmin * 12 0 Security Database Owner /dbadmin /bin/sh
xxx xxx bootes dcon 50 1 Tom Killian (DO NOT REMOVE) /tmp
xxx xxx cdjuke dcon 51 1 Tom Killian (DO NOT REMOVE) /tmp
xxx xxx rfindd * 66 1 Rfind Daemon and Fsdump /var/rfindd /bin/sh
xxx xxx EZsetup * 992 998 System Setup /var/sysadmdesktop/EZsetup /bin/csh
xxx xxx demos * 993 997 Demonstration User /usr/demos /bin/csh
xxx xxx tutor * 994 997 Tutorial User /usr/tutor /bin/csh
xxx xxx tour * 995 997 IRIS Space Tour /usr/people/tour /bin/csh
xxx xxx guest nfP4/Wpvio/Rw 998 998 Guest Account /usr/people/guest /bin/csh
xxx xxx 4Dgifts 0nWRTZsOMt. 999 998 4Dgifts Account /usr/people/4Dgifts /bin/csh
xxx xxx nobody * 60001 60001 SVR4 nobody uid /dev/null /dev/null
xxx xxx noaccess * 60002 60002 uid no access /dev/null /dev/null
xxx xxx nobody * -2 -2 original nobody uid /dev/null /dev/null
xxx xxx rje * 8 8 RJE Owner /usr/spool/rje
xxx xxx changes * 11 11 system change log /
xxx xxx dist sorry 9999 4 file distributions /v/adm/dist /v/bin/sh
xxx xxx man * 99 995 On-line Manual Owner /
xxx xxx phoneca * 991 991 phone call log [tom] /v/adm/log /v/bin/sh
| Logos | 1 | Crestwave/goawk | testdata/output/t.5.x | [
"MIT"
] |
parameters:
architecture: x86
version: 6.2.0
steps:
- powershell: |
Expand-Archive -Path "$(System.ArtifactsDirectory)\results\PowerShell-${{ parameters.version }}-symbols-win-${{ parameters.architecture }}.zip" -Destination "$(Build.StagingDirectory)\symbols\${{ parameters.architecture }}"
displayName: Expand symbols zip - ${{ parameters.architecture }}
- powershell: |
tools/releaseBuild/createComplianceFolder.ps1 -ArtifactFolder "$(Build.StagingDirectory)\symbols\${{ parameters.architecture }}" -VSTSVariableName 'CompliancePath'
displayName: Expand Compliance file - ${{ parameters.architecture }}
| YAML | 4 | vedhasp/PowerShell | tools/releaseBuild/azureDevOps/templates/expand-compliance.yml | [
"MIT"
] |
// 4xBRZ shader - Copyright (C) 2014-2016 DeSmuME team (GPL2+)
// Hyllian's xBR-vertex code and texel mapping
// Copyright (C) 2011/2016 Hyllian - [email protected]
#define BLEND_ALPHA 1
#define BLEND_NONE 0
#define BLEND_NORMAL 1
#define BLEND_DOMINANT 2
#define LUMINANCE_WEIGHT 1.0
#define EQUAL_COLOR_TOLERANCE 30.0/255.0
#define STEEP_DIRECTION_THRESHOLD 2.2
#define DOMINANT_DIRECTION_THRESHOLD 3.6
float reduce(vec4 color) {
return dot(color.rgb, vec3(65536.0, 256.0, 1.0));
}
float DistYCbCr(vec4 pixA, vec4 pixB) {
// https://en.wikipedia.org/wiki/YCbCr#ITU-R_BT.2020_conversion
const vec3 K = vec3(0.2627, 0.6780, 0.0593);
const mat3 MATRIX = mat3(K,
-.5 * K.r / (1.0 - K.b), -.5 * K.g / (1.0 - K.b), .5,
.5, -.5 * K.g / (1.0 - K.r), -.5 * K.b / (1.0 - K.r));
vec4 diff = pixA - pixB;
vec3 YCbCr = diff.rgb * MATRIX;
YCbCr.x *= LUMINANCE_WEIGHT;
float d = length(YCbCr);
return sqrt(pixA.a * pixB.a * d * d + diff.a * diff.a);
}
bool IsPixEqual(const vec4 pixA, const vec4 pixB) {
return (DistYCbCr(pixA, pixB) < EQUAL_COLOR_TOLERANCE);
}
bool IsBlendingNeeded(const ivec4 blend) {
ivec4 diff = blend - ivec4(BLEND_NONE);
return diff.x != 0 || diff.y != 0 || diff.z != 0 || diff.w != 0;
}
vec4 applyScalingf(uvec2 origxy, uvec2 xy) {
float dx = 1.0 / params.width;
float dy = 1.0 / params.height;
// A1 B1 C1
// A0 A B C C4
// D0 D E F F4
// G0 G H I I4
// G5 H5 I5
uvec4 t1 = uvec4(origxy.x - 1, origxy.x, origxy.x + 1, origxy.y - 2); // A1 B1 C1
uvec4 t2 = uvec4(origxy.x - 1, origxy.x, origxy.x + 1, origxy.y - 1); // A B C
uvec4 t3 = uvec4(origxy.x - 1, origxy.x, origxy.x + 1, origxy.y + 0); // D E F
uvec4 t4 = uvec4(origxy.x - 1, origxy.x, origxy.x + 1, origxy.y + 1); // G H I
uvec4 t5 = uvec4(origxy.x - 1, origxy.x, origxy.x + 1, origxy.y + 2); // G5 H5 I5
uvec4 t6 = uvec4(origxy.x - 2, origxy.y - 1, origxy.y, origxy.y + 1); // A0 D0 G0
uvec4 t7 = uvec4(origxy.x + 2, origxy.y - 1, origxy.y, origxy.y + 1); // C4 F4 I4
vec2 f = fract(vec2(float(xy.x) / float(params.scale), float(xy.y) / float(params.scale)));
//---------------------------------------
// Input Pixel Mapping: |21|22|23|
// 19|06|07|08|09
// 18|05|00|01|10
// 17|04|03|02|11
// |15|14|13|
vec4 src[25];
src[21] = readColorf(t1.xw);
src[22] = readColorf(t1.yw);
src[23] = readColorf(t1.zw);
src[ 6] = readColorf(t2.xw);
src[ 7] = readColorf(t2.yw);
src[ 8] = readColorf(t2.zw);
src[ 5] = readColorf(t3.xw);
src[ 0] = readColorf(t3.yw);
src[ 1] = readColorf(t3.zw);
src[ 4] = readColorf(t4.xw);
src[ 3] = readColorf(t4.yw);
src[ 2] = readColorf(t4.zw);
src[15] = readColorf(t5.xw);
src[14] = readColorf(t5.yw);
src[13] = readColorf(t5.zw);
src[19] = readColorf(t6.xy);
src[18] = readColorf(t6.xz);
src[17] = readColorf(t6.xw);
src[ 9] = readColorf(t7.xy);
src[10] = readColorf(t7.xz);
src[11] = readColorf(t7.xw);
float v[9];
v[0] = reduce(src[0]);
v[1] = reduce(src[1]);
v[2] = reduce(src[2]);
v[3] = reduce(src[3]);
v[4] = reduce(src[4]);
v[5] = reduce(src[5]);
v[6] = reduce(src[6]);
v[7] = reduce(src[7]);
v[8] = reduce(src[8]);
ivec4 blendResult = ivec4(BLEND_NONE);
// Preprocess corners
// Pixel Tap Mapping: --|--|--|--|--
// --|--|07|08|--
// --|05|00|01|10
// --|04|03|02|11
// --|--|14|13|--
// Corner (1, 1)
if ( ((v[0] == v[1] && v[3] == v[2]) || (v[0] == v[3] && v[1] == v[2])) == false) {
float dist_03_01 = DistYCbCr(src[ 4], src[ 0]) + DistYCbCr(src[ 0], src[ 8]) + DistYCbCr(src[14], src[ 2]) + DistYCbCr(src[ 2], src[10]) + (4.0 * DistYCbCr(src[ 3], src[ 1]));
float dist_00_02 = DistYCbCr(src[ 5], src[ 3]) + DistYCbCr(src[ 3], src[13]) + DistYCbCr(src[ 7], src[ 1]) + DistYCbCr(src[ 1], src[11]) + (4.0 * DistYCbCr(src[ 0], src[ 2]));
bool dominantGradient = (DOMINANT_DIRECTION_THRESHOLD * dist_03_01) < dist_00_02;
blendResult[2] = ((dist_03_01 < dist_00_02) && (v[0] != v[1]) && (v[0] != v[3])) ? ((dominantGradient) ? BLEND_DOMINANT : BLEND_NORMAL) : BLEND_NONE;
}
// Pixel Tap Mapping: --|--|--|--|--
// --|06|07|--|--
// 18|05|00|01|--
// 17|04|03|02|--
// --|15|14|--|--
// Corner (0, 1)
if ( ((v[5] == v[0] && v[4] == v[3]) || (v[5] == v[4] && v[0] == v[3])) == false) {
float dist_04_00 = DistYCbCr(src[17], src[ 5]) + DistYCbCr(src[ 5], src[ 7]) + DistYCbCr(src[15], src[ 3]) + DistYCbCr(src[ 3], src[ 1]) + (4.0 * DistYCbCr(src[ 4], src[ 0]));
float dist_05_03 = DistYCbCr(src[18], src[ 4]) + DistYCbCr(src[ 4], src[14]) + DistYCbCr(src[ 6], src[ 0]) + DistYCbCr(src[ 0], src[ 2]) + (4.0 * DistYCbCr(src[ 5], src[ 3]));
bool dominantGradient = (DOMINANT_DIRECTION_THRESHOLD * dist_05_03) < dist_04_00;
blendResult[3] = ((dist_04_00 > dist_05_03) && (v[0] != v[5]) && (v[0] != v[3])) ? ((dominantGradient) ? BLEND_DOMINANT : BLEND_NORMAL) : BLEND_NONE;
}
// Pixel Tap Mapping: --|--|22|23|--
// --|06|07|08|09
// --|05|00|01|10
// --|--|03|02|--
// --|--|--|--|--
// Corner (1, 0)
if ( ((v[7] == v[8] && v[0] == v[1]) || (v[7] == v[0] && v[8] == v[1])) == false) {
float dist_00_08 = DistYCbCr(src[ 5], src[ 7]) + DistYCbCr(src[ 7], src[23]) + DistYCbCr(src[ 3], src[ 1]) + DistYCbCr(src[ 1], src[ 9]) + (4.0 * DistYCbCr(src[ 0], src[ 8]));
float dist_07_01 = DistYCbCr(src[ 6], src[ 0]) + DistYCbCr(src[ 0], src[ 2]) + DistYCbCr(src[22], src[ 8]) + DistYCbCr(src[ 8], src[10]) + (4.0 * DistYCbCr(src[ 7], src[ 1]));
bool dominantGradient = (DOMINANT_DIRECTION_THRESHOLD * dist_07_01) < dist_00_08;
blendResult[1] = ((dist_00_08 > dist_07_01) && (v[0] != v[7]) && (v[0] != v[1])) ? ((dominantGradient) ? BLEND_DOMINANT : BLEND_NORMAL) : BLEND_NONE;
}
// Pixel Tap Mapping: --|21|22|--|--
// 19|06|07|08|--
// 18|05|00|01|--
// --|04|03|--|--
// --|--|--|--|--
// Corner (0, 0)
if ( ((v[6] == v[7] && v[5] == v[0]) || (v[6] == v[5] && v[7] == v[0])) == false) {
float dist_05_07 = DistYCbCr(src[18], src[ 6]) + DistYCbCr(src[ 6], src[22]) + DistYCbCr(src[ 4], src[ 0]) + DistYCbCr(src[ 0], src[ 8]) + (4.0 * DistYCbCr(src[ 5], src[ 7]));
float dist_06_00 = DistYCbCr(src[19], src[ 5]) + DistYCbCr(src[ 5], src[ 3]) + DistYCbCr(src[21], src[ 7]) + DistYCbCr(src[ 7], src[ 1]) + (4.0 * DistYCbCr(src[ 6], src[ 0]));
bool dominantGradient = (DOMINANT_DIRECTION_THRESHOLD * dist_05_07) < dist_06_00;
blendResult[0] = ((dist_05_07 < dist_06_00) && (v[0] != v[5]) && (v[0] != v[7])) ? ((dominantGradient) ? BLEND_DOMINANT : BLEND_NORMAL) : BLEND_NONE;
}
vec4 dst[16];
dst[ 0] = src[0];
dst[ 1] = src[0];
dst[ 2] = src[0];
dst[ 3] = src[0];
dst[ 4] = src[0];
dst[ 5] = src[0];
dst[ 6] = src[0];
dst[ 7] = src[0];
dst[ 8] = src[0];
dst[ 9] = src[0];
dst[10] = src[0];
dst[11] = src[0];
dst[12] = src[0];
dst[13] = src[0];
dst[14] = src[0];
dst[15] = src[0];
// Scale pixel
if (IsBlendingNeeded(blendResult) == true) {
float dist_01_04 = DistYCbCr(src[1], src[4]);
float dist_03_08 = DistYCbCr(src[3], src[8]);
bool haveShallowLine = (STEEP_DIRECTION_THRESHOLD * dist_01_04 <= dist_03_08) && (v[0] != v[4]) && (v[5] != v[4]);
bool haveSteepLine = (STEEP_DIRECTION_THRESHOLD * dist_03_08 <= dist_01_04) && (v[0] != v[8]) && (v[7] != v[8]);
bool needBlend = (blendResult[2] != BLEND_NONE);
bool doLineBlend = ( blendResult[2] >= BLEND_DOMINANT ||
((blendResult[1] != BLEND_NONE && !IsPixEqual(src[0], src[4])) ||
(blendResult[3] != BLEND_NONE && !IsPixEqual(src[0], src[8])) ||
(IsPixEqual(src[4], src[3]) && IsPixEqual(src[3], src[2]) && IsPixEqual(src[2], src[1]) && IsPixEqual(src[1], src[8]) && IsPixEqual(src[0], src[2]) == false) ) == false );
vec4 blendPix = ( DistYCbCr(src[0], src[1]) <= DistYCbCr(src[0], src[3]) ) ? src[1] : src[3];
dst[ 2] = mix(dst[ 2], blendPix, (needBlend && doLineBlend) ? ((haveShallowLine) ? ((haveSteepLine) ? 1.0/3.0 : 0.25) : ((haveSteepLine) ? 0.25 : 0.00)) : 0.00);
dst[ 9] = mix(dst[ 9], blendPix, (needBlend && doLineBlend && haveSteepLine) ? 0.25 : 0.00);
dst[10] = mix(dst[10], blendPix, (needBlend && doLineBlend && haveSteepLine) ? 0.75 : 0.00);
dst[11] = mix(dst[11], blendPix, (needBlend) ? ((doLineBlend) ? ((haveSteepLine) ? 1.00 : ((haveShallowLine) ? 0.75 : 0.50)) : 0.08677704501) : 0.00);
dst[12] = mix(dst[12], blendPix, (needBlend) ? ((doLineBlend) ? 1.00 : 0.6848532563) : 0.00);
dst[13] = mix(dst[13], blendPix, (needBlend) ? ((doLineBlend) ? ((haveShallowLine) ? 1.00 : ((haveSteepLine) ? 0.75 : 0.50)) : 0.08677704501) : 0.00);
dst[14] = mix(dst[14], blendPix, (needBlend && doLineBlend && haveShallowLine) ? 0.75 : 0.00);
dst[15] = mix(dst[15], blendPix, (needBlend && doLineBlend && haveShallowLine) ? 0.25 : 0.00);
dist_01_04 = DistYCbCr(src[7], src[2]);
dist_03_08 = DistYCbCr(src[1], src[6]);
haveShallowLine = (STEEP_DIRECTION_THRESHOLD * dist_01_04 <= dist_03_08) && (v[0] != v[2]) && (v[3] != v[2]);
haveSteepLine = (STEEP_DIRECTION_THRESHOLD * dist_03_08 <= dist_01_04) && (v[0] != v[6]) && (v[5] != v[6]);
needBlend = (blendResult[1] != BLEND_NONE);
doLineBlend = ( blendResult[1] >= BLEND_DOMINANT ||
!((blendResult[0] != BLEND_NONE && !IsPixEqual(src[0], src[2])) ||
(blendResult[2] != BLEND_NONE && !IsPixEqual(src[0], src[6])) ||
(IsPixEqual(src[2], src[1]) && IsPixEqual(src[1], src[8]) && IsPixEqual(src[8], src[7]) && IsPixEqual(src[7], src[6]) && !IsPixEqual(src[0], src[8])) ) );
blendPix = ( DistYCbCr(src[0], src[7]) <= DistYCbCr(src[0], src[1]) ) ? src[7] : src[1];
dst[ 1] = mix(dst[ 1], blendPix, (needBlend && doLineBlend) ? ((haveShallowLine) ? ((haveSteepLine) ? 1.0/3.0 : 0.25) : ((haveSteepLine) ? 0.25 : 0.00)) : 0.00);
dst[ 6] = mix(dst[ 6], blendPix, (needBlend && doLineBlend && haveSteepLine) ? 0.25 : 0.00);
dst[ 7] = mix(dst[ 7], blendPix, (needBlend && doLineBlend && haveSteepLine) ? 0.75 : 0.00);
dst[ 8] = mix(dst[ 8], blendPix, (needBlend) ? ((doLineBlend) ? ((haveSteepLine) ? 1.00 : ((haveShallowLine) ? 0.75 : 0.50)) : 0.08677704501) : 0.00);
dst[ 9] = mix(dst[ 9], blendPix, (needBlend) ? ((doLineBlend) ? 1.00 : 0.6848532563) : 0.00);
dst[10] = mix(dst[10], blendPix, (needBlend) ? ((doLineBlend) ? ((haveShallowLine) ? 1.00 : ((haveSteepLine) ? 0.75 : 0.50)) : 0.08677704501) : 0.00);
dst[11] = mix(dst[11], blendPix, (needBlend && doLineBlend && haveShallowLine) ? 0.75 : 0.00);
dst[12] = mix(dst[12], blendPix, (needBlend && doLineBlend && haveShallowLine) ? 0.25 : 0.00);
dist_01_04 = DistYCbCr(src[5], src[8]);
dist_03_08 = DistYCbCr(src[7], src[4]);
haveShallowLine = (STEEP_DIRECTION_THRESHOLD * dist_01_04 <= dist_03_08) && (v[0] != v[8]) && (v[1] != v[8]);
haveSteepLine = (STEEP_DIRECTION_THRESHOLD * dist_03_08 <= dist_01_04) && (v[0] != v[4]) && (v[3] != v[4]);
needBlend = (blendResult[0] != BLEND_NONE);
doLineBlend = ( blendResult[0] >= BLEND_DOMINANT ||
!((blendResult[3] != BLEND_NONE && !IsPixEqual(src[0], src[8])) ||
(blendResult[1] != BLEND_NONE && !IsPixEqual(src[0], src[4])) ||
(IsPixEqual(src[8], src[7]) && IsPixEqual(src[7], src[6]) && IsPixEqual(src[6], src[5]) && IsPixEqual(src[5], src[4]) && !IsPixEqual(src[0], src[6])) ) );
blendPix = ( DistYCbCr(src[0], src[5]) <= DistYCbCr(src[0], src[7]) ) ? src[5] : src[7];
dst[ 0] = mix(dst[ 0], blendPix, (needBlend && doLineBlend) ? ((haveShallowLine) ? ((haveSteepLine) ? 1.0/3.0 : 0.25) : ((haveSteepLine) ? 0.25 : 0.00)) : 0.00);
dst[15] = mix(dst[15], blendPix, (needBlend && doLineBlend && haveSteepLine) ? 0.25 : 0.00);
dst[ 4] = mix(dst[ 4], blendPix, (needBlend && doLineBlend && haveSteepLine) ? 0.75 : 0.00);
dst[ 5] = mix(dst[ 5], blendPix, (needBlend) ? ((doLineBlend) ? ((haveSteepLine) ? 1.00 : ((haveShallowLine) ? 0.75 : 0.50)) : 0.08677704501) : 0.00);
dst[ 6] = mix(dst[ 6], blendPix, (needBlend) ? ((doLineBlend) ? 1.00 : 0.6848532563) : 0.00);
dst[ 7] = mix(dst[ 7], blendPix, (needBlend) ? ((doLineBlend) ? ((haveShallowLine) ? 1.00 : ((haveSteepLine) ? 0.75 : 0.50)) : 0.08677704501) : 0.00);
dst[ 8] = mix(dst[ 8], blendPix, (needBlend && doLineBlend && haveShallowLine) ? 0.75 : 0.00);
dst[ 9] = mix(dst[ 9], blendPix, (needBlend && doLineBlend && haveShallowLine) ? 0.25 : 0.00);
dist_01_04 = DistYCbCr(src[3], src[6]);
dist_03_08 = DistYCbCr(src[5], src[2]);
haveShallowLine = (STEEP_DIRECTION_THRESHOLD * dist_01_04 <= dist_03_08) && (v[0] != v[6]) && (v[7] != v[6]);
haveSteepLine = (STEEP_DIRECTION_THRESHOLD * dist_03_08 <= dist_01_04) && (v[0] != v[2]) && (v[1] != v[2]);
needBlend = (blendResult[3] != BLEND_NONE);
doLineBlend = ( blendResult[3] >= BLEND_DOMINANT ||
!((blendResult[2] != BLEND_NONE && !IsPixEqual(src[0], src[6])) ||
(blendResult[0] != BLEND_NONE && !IsPixEqual(src[0], src[2])) ||
(IsPixEqual(src[6], src[5]) && IsPixEqual(src[5], src[4]) && IsPixEqual(src[4], src[3]) && IsPixEqual(src[3], src[2]) && !IsPixEqual(src[0], src[4])) ) );
blendPix = ( DistYCbCr(src[0], src[3]) <= DistYCbCr(src[0], src[5]) ) ? src[3] : src[5];
dst[ 3] = mix(dst[ 3], blendPix, (needBlend && doLineBlend) ? ((haveShallowLine) ? ((haveSteepLine) ? 1.0/3.0 : 0.25) : ((haveSteepLine) ? 0.25 : 0.00)) : 0.00);
dst[12] = mix(dst[12], blendPix, (needBlend && doLineBlend && haveSteepLine) ? 0.25 : 0.00);
dst[13] = mix(dst[13], blendPix, (needBlend && doLineBlend && haveSteepLine) ? 0.75 : 0.00);
dst[14] = mix(dst[14], blendPix, (needBlend) ? ((doLineBlend) ? ((haveSteepLine) ? 1.00 : ((haveShallowLine) ? 0.75 : 0.50)) : 0.08677704501) : 0.00);
dst[15] = mix(dst[15], blendPix, (needBlend) ? ((doLineBlend) ? 1.00 : 0.6848532563) : 0.00);
dst[ 4] = mix(dst[ 4], blendPix, (needBlend) ? ((doLineBlend) ? ((haveShallowLine) ? 1.00 : ((haveSteepLine) ? 0.75 : 0.50)) : 0.08677704501) : 0.00);
dst[ 5] = mix(dst[ 5], blendPix, (needBlend && doLineBlend && haveShallowLine) ? 0.75 : 0.00);
dst[ 6] = mix(dst[ 6], blendPix, (needBlend && doLineBlend && haveShallowLine) ? 0.25 : 0.00);
}
// select output pixel
vec4 res = mix(mix(mix(mix(dst[ 6], dst[ 7], step(0.25, f.x)),
mix(dst[ 8], dst[ 9], step(0.75, f.x)),
step(0.50, f.x)),
mix(mix(dst[ 5], dst[ 0], step(0.25, f.x)),
mix(dst[ 1], dst[10], step(0.75, f.x)),
step(0.50, f.x)),
step(0.25, f.y)),
mix(mix(mix(dst[ 4], dst[ 3], step(0.25, f.x)),
mix(dst[ 2], dst[11], step(0.75, f.x)),
step(0.50, f.x)),
mix(mix(dst[15], dst[14], step(0.25, f.x)),
mix(dst[13], dst[12], step(0.75, f.x)),
step(0.50, f.x)),
step(0.75, f.y)),
step(0.50, f.y));
return res;
}
uint applyScalingu(uvec2 origxy, uvec2 xy) {
return packUnorm4x8(applyScalingf(origxy, xy));
}
| Tcsh | 5 | ianclawson/Provenance | Cores/PPSSPP/cmake/assets/shaders/tex_4xbrz.csh | [
"BSD-3-Clause"
] |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {AbsoluteSourceSpan, AttributeIdentifier, ElementIdentifier, IdentifierKind, ReferenceIdentifier, TemplateNodeIdentifier, TopLevelIdentifier, VariableIdentifier} from '..';
import {runInEachFileSystem} from '../../file_system/testing';
import {getTemplateIdentifiers} from '../src/template';
import * as util from './util';
function bind(template: string) {
return util.getBoundTemplate(template, {
preserveWhitespaces: true,
leadingTriviaChars: [],
});
}
runInEachFileSystem(() => {
describe('getTemplateIdentifiers', () => {
it('should generate nothing in empty template', () => {
const template = '';
const refs = getTemplateIdentifiers(bind(template));
expect(refs.size).toBe(0);
});
it('should ignore comments', () => {
const template = '<!-- {{comment}} -->';
const refs = getTemplateIdentifiers(bind(template));
expect(refs.size).toBe(0);
});
it('should handle arbitrary whitespace', () => {
const template = '\n\n {{foo}}';
const refs = getTemplateIdentifiers(bind(template));
const [ref] = Array.from(refs);
expect(ref).toEqual({
name: 'foo',
kind: IdentifierKind.Property,
span: new AbsoluteSourceSpan(7, 10),
target: null,
});
});
it('should resist collisions', () => {
const template = '<div [bar]="bar ? bar : bar"></div>';
const refs = getTemplateIdentifiers(bind(template));
const refArr = Array.from(refs);
expect(refArr).toEqual(jasmine.arrayContaining([
{
name: 'bar',
kind: IdentifierKind.Property,
span: new AbsoluteSourceSpan(12, 15),
target: null,
},
{
name: 'bar',
kind: IdentifierKind.Property,
span: new AbsoluteSourceSpan(18, 21),
target: null,
},
{
name: 'bar',
kind: IdentifierKind.Property,
span: new AbsoluteSourceSpan(24, 27),
target: null,
},
] as TopLevelIdentifier[]));
});
describe('generates identifiers for PropertyReads', () => {
it('should discover component properties', () => {
const template = '{{foo}}';
const refs = getTemplateIdentifiers(bind(template));
expect(refs.size).toBe(1);
const [ref] = Array.from(refs);
expect(ref).toEqual({
name: 'foo',
kind: IdentifierKind.Property,
span: new AbsoluteSourceSpan(2, 5),
target: null,
});
});
it('should discover nested properties', () => {
const template = '<div><span>{{foo}}</span></div>';
const refs = getTemplateIdentifiers(bind(template));
const refArr = Array.from(refs);
expect(refArr).toContain({
name: 'foo',
kind: IdentifierKind.Property,
span: new AbsoluteSourceSpan(13, 16),
target: null,
});
});
it('should ignore identifiers that are not implicitly received by the template', () => {
const template = '{{foo.bar.baz}}';
const refs = getTemplateIdentifiers(bind(template));
expect(refs.size).toBe(1);
const [ref] = Array.from(refs);
expect(ref.name).toBe('foo');
});
it('should discover properties in bound attributes', () => {
const template = '<div [bar]="bar"></div>';
const refs = getTemplateIdentifiers(bind(template));
const refArr = Array.from(refs);
expect(refArr).toContain({
name: 'bar',
kind: IdentifierKind.Property,
span: new AbsoluteSourceSpan(12, 15),
target: null,
});
});
it('should handle bound attributes with no value', () => {
const template = '<div [bar]></div>';
const refs = getTemplateIdentifiers(bind(template));
const refArr = Array.from(refs);
expect(refArr).toEqual([{
name: 'div',
kind: IdentifierKind.Element,
span: new AbsoluteSourceSpan(1, 4),
attributes: new Set(),
usedDirectives: new Set(),
}]);
});
it('should discover variables in bound attributes', () => {
const template = '<div #div [value]="div.innerText"></div>';
const refs = getTemplateIdentifiers(bind(template));
const elementReference: ElementIdentifier = {
name: 'div',
kind: IdentifierKind.Element,
span: new AbsoluteSourceSpan(1, 4),
attributes: new Set(),
usedDirectives: new Set(),
};
const reference: ReferenceIdentifier = {
name: 'div',
kind: IdentifierKind.Reference,
span: new AbsoluteSourceSpan(6, 9),
target: {node: elementReference, directive: null},
};
const refArr = Array.from(refs);
expect(refArr).toContain({
name: 'div',
kind: IdentifierKind.Property,
span: new AbsoluteSourceSpan(19, 22),
target: reference,
});
});
it('should discover properties in template expressions', () => {
const template = '<div [bar]="bar ? bar1 : bar2"></div>';
const refs = getTemplateIdentifiers(bind(template));
const refArr = Array.from(refs);
expect(refArr).toEqual(jasmine.arrayContaining([
{
name: 'bar',
kind: IdentifierKind.Property,
span: new AbsoluteSourceSpan(12, 15),
target: null,
},
{
name: 'bar1',
kind: IdentifierKind.Property,
span: new AbsoluteSourceSpan(18, 22),
target: null,
},
{
name: 'bar2',
kind: IdentifierKind.Property,
span: new AbsoluteSourceSpan(25, 29),
target: null,
},
] as TopLevelIdentifier[]));
});
it('should discover properties in template expressions', () => {
const template = '<div *ngFor="let foo of foos"></div>';
const refs = getTemplateIdentifiers(bind(template));
const refArr = Array.from(refs);
expect(refArr).toContain({
name: 'foos',
kind: IdentifierKind.Property,
span: new AbsoluteSourceSpan(24, 28),
target: null,
});
});
it('should discover properties in template expressions and resist collisions', () => {
const template = '<div *ngFor="let foo of (foos ? foos : foos)"></div>';
const refs = getTemplateIdentifiers(bind(template));
const refArr = Array.from(refs);
expect(refArr).toEqual(jasmine.arrayContaining([
{
name: 'foos',
kind: IdentifierKind.Property,
span: new AbsoluteSourceSpan(25, 29),
target: null,
},
{
name: 'foos',
kind: IdentifierKind.Property,
span: new AbsoluteSourceSpan(32, 36),
target: null,
},
{
name: 'foos',
kind: IdentifierKind.Property,
span: new AbsoluteSourceSpan(39, 43),
target: null,
},
]));
});
});
describe('generates identifiers for PropertyWrites', () => {
it('should discover property writes in bound events', () => {
const template = '<div (click)="foo=bar"></div>';
const refs = getTemplateIdentifiers(bind(template));
const refArr = Array.from(refs);
expect(refArr).toEqual(jasmine.arrayContaining([
{
name: 'foo',
kind: IdentifierKind.Property,
span: new AbsoluteSourceSpan(14, 17),
target: null,
},
{
name: 'bar',
kind: IdentifierKind.Property,
span: new AbsoluteSourceSpan(18, 21),
target: null,
}
] as TopLevelIdentifier[]));
});
it('should discover nested property writes', () => {
const template = '<div><span (click)="foo=bar"></span></div>';
const refs = getTemplateIdentifiers(bind(template));
const refArr = Array.from(refs);
expect(refArr).toEqual(jasmine.arrayContaining([{
name: 'foo',
kind: IdentifierKind.Property,
span: new AbsoluteSourceSpan(20, 23),
target: null,
}] as TopLevelIdentifier[]));
});
it('should ignore property writes that are not implicitly received by the template', () => {
const template = '<div><span (click)="foo.bar=baz"></span></div>';
const refs = getTemplateIdentifiers(bind(template));
const refArr = Array.from(refs);
const bar = refArr.find(ref => ref.name.includes('bar'));
expect(bar).toBeUndefined();
});
});
describe('generates identifiers for method calls', () => {
it('should discover component method calls', () => {
const template = '{{foo()}}';
const refs = getTemplateIdentifiers(bind(template));
expect(refs.size).toBe(1);
const [ref] = Array.from(refs);
expect(ref).toEqual({
name: 'foo',
kind: IdentifierKind.Property,
span: new AbsoluteSourceSpan(2, 5),
target: null,
});
});
it('should discover nested properties', () => {
const template = '<div><span>{{foo()}}</span></div>';
const refs = getTemplateIdentifiers(bind(template));
const refArr = Array.from(refs);
expect(refArr).toContain({
name: 'foo',
kind: IdentifierKind.Property,
span: new AbsoluteSourceSpan(13, 16),
target: null,
});
});
it('should ignore identifiers that are not implicitly received by the template', () => {
const template = '{{foo().bar().baz()}}';
const refs = getTemplateIdentifiers(bind(template));
expect(refs.size).toBe(1);
const [ref] = Array.from(refs);
expect(ref.name).toBe('foo');
});
it('should discover method calls in bound attributes', () => {
const template = '<div [bar]="bar()"></div>';
const refs = getTemplateIdentifiers(bind(template));
const refArr = Array.from(refs);
expect(refArr).toContain({
name: 'bar',
kind: IdentifierKind.Property,
span: new AbsoluteSourceSpan(12, 15),
target: null,
});
});
it('should discover method calls in template expressions', () => {
const template = '<div *ngFor="let foo of foos()"></div>';
const refs = getTemplateIdentifiers(bind(template));
const refArr = Array.from(refs);
expect(refArr).toContain({
name: 'foos',
kind: IdentifierKind.Property,
span: new AbsoluteSourceSpan(24, 28),
target: null,
});
});
});
});
describe('generates identifiers for template reference variables', () => {
it('should discover references', () => {
const template = '<div #foo>';
const refs = getTemplateIdentifiers(bind(template));
const elementReference: ElementIdentifier = {
name: 'div',
kind: IdentifierKind.Element,
span: new AbsoluteSourceSpan(1, 4),
attributes: new Set(),
usedDirectives: new Set(),
};
const refArray = Array.from(refs);
expect(refArray).toEqual(
jasmine.arrayContaining([{
name: 'foo',
kind: IdentifierKind.Reference,
span: new AbsoluteSourceSpan(6, 9),
target: {node: elementReference, directive: null},
}] as TopLevelIdentifier[]));
});
it('should discover nested references', () => {
const template = '<div><span #foo></span></div>';
const refs = getTemplateIdentifiers(bind(template));
const elementReference: ElementIdentifier = {
name: 'span',
kind: IdentifierKind.Element,
span: new AbsoluteSourceSpan(6, 10),
attributes: new Set(),
usedDirectives: new Set(),
};
const refArray = Array.from(refs);
expect(refArray).toEqual(
jasmine.arrayContaining([{
name: 'foo',
kind: IdentifierKind.Reference,
span: new AbsoluteSourceSpan(12, 15),
target: {node: elementReference, directive: null},
}] as TopLevelIdentifier[]));
});
it('should discover references to references', () => {
const template = `<div #foo>{{foo.className}}</div>`;
const refs = getTemplateIdentifiers(bind(template));
const elementIdentifier: ElementIdentifier = {
name: 'div',
kind: IdentifierKind.Element,
span: new AbsoluteSourceSpan(1, 4),
attributes: new Set(),
usedDirectives: new Set(),
};
const referenceIdentifier: ReferenceIdentifier = {
name: 'foo',
kind: IdentifierKind.Reference,
span: new AbsoluteSourceSpan(6, 9),
target: {node: elementIdentifier, directive: null},
};
const refArr = Array.from(refs);
expect(refArr).toEqual(jasmine.arrayContaining([
elementIdentifier, referenceIdentifier, {
name: 'foo',
kind: IdentifierKind.Property,
span: new AbsoluteSourceSpan(12, 15),
target: referenceIdentifier,
}
] as TopLevelIdentifier[]));
});
it('should discover forward references', () => {
const template = `{{foo}}<div #foo></div>`;
const refs = getTemplateIdentifiers(bind(template));
const elementIdentifier: ElementIdentifier = {
name: 'div',
kind: IdentifierKind.Element,
span: new AbsoluteSourceSpan(8, 11),
attributes: new Set(),
usedDirectives: new Set(),
};
const referenceIdentifier: ReferenceIdentifier = {
name: 'foo',
kind: IdentifierKind.Reference,
span: new AbsoluteSourceSpan(13, 16),
target: {node: elementIdentifier, directive: null},
};
const refArr = Array.from(refs);
expect(refArr).toEqual(jasmine.arrayContaining([
elementIdentifier, referenceIdentifier, {
name: 'foo',
kind: IdentifierKind.Property,
span: new AbsoluteSourceSpan(2, 5),
target: referenceIdentifier,
}
] as TopLevelIdentifier[]));
});
it('should generate information directive targets', () => {
const declB = util.getComponentDeclaration('class B {}', 'B');
const template = '<div #foo b-selector>';
const boundTemplate = util.getBoundTemplate(template, {}, [
{selector: '[b-selector]', declaration: declB},
]);
const refs = getTemplateIdentifiers(boundTemplate);
const refArr = Array.from(refs);
let fooRef = refArr.find(id => id.name === 'foo');
expect(fooRef).toBeDefined();
expect(fooRef!.kind).toBe(IdentifierKind.Reference);
fooRef = fooRef as ReferenceIdentifier;
expect(fooRef.target).toBeDefined();
expect(fooRef.target!.node.kind).toBe(IdentifierKind.Element);
expect(fooRef.target!.node.name).toBe('div');
expect(fooRef.target!.node.span).toEqual(new AbsoluteSourceSpan(1, 4));
expect(fooRef.target!.directive).toEqual(declB);
});
it('should discover references to references', () => {
const template = `<div #foo (ngSubmit)="do(foo)"></div>`;
const refs = getTemplateIdentifiers(bind(template));
const elementIdentifier: ElementIdentifier = {
name: 'div',
kind: IdentifierKind.Element,
span: new AbsoluteSourceSpan(1, 4),
attributes: new Set(),
usedDirectives: new Set(),
};
const referenceIdentifier: ReferenceIdentifier = {
name: 'foo',
kind: IdentifierKind.Reference,
span: new AbsoluteSourceSpan(6, 9),
target: {node: elementIdentifier, directive: null},
};
const refArr = Array.from(refs);
expect(refArr).toEqual(jasmine.arrayContaining([
elementIdentifier, referenceIdentifier, {
name: 'foo',
kind: IdentifierKind.Property,
span: new AbsoluteSourceSpan(25, 28),
target: referenceIdentifier,
}
] as TopLevelIdentifier[]));
});
});
describe('generates identifiers for template variables', () => {
it('should discover variables', () => {
const template = '<div *ngFor="let foo of foos">';
const refs = getTemplateIdentifiers(bind(template));
const refArray = Array.from(refs);
expect(refArray).toEqual(jasmine.arrayContaining([{
name: 'foo',
kind: IdentifierKind.Variable,
span: new AbsoluteSourceSpan(17, 20),
}] as TopLevelIdentifier[]));
});
it('should discover variables with let- syntax', () => {
const template = '<ng-template let-var="classVar">';
const refs = getTemplateIdentifiers(bind(template));
const refArray = Array.from(refs);
expect(refArray).toEqual(jasmine.arrayContaining([{
name: 'var',
kind: IdentifierKind.Variable,
span: new AbsoluteSourceSpan(17, 20),
}] as TopLevelIdentifier[]));
});
it('should discover nested variables', () => {
const template = '<div><span *ngFor="let foo of foos"></span></div>';
const refs = getTemplateIdentifiers(bind(template));
const refArray = Array.from(refs);
expect(refArray).toEqual(jasmine.arrayContaining([{
name: 'foo',
kind: IdentifierKind.Variable,
span: new AbsoluteSourceSpan(23, 26),
}] as TopLevelIdentifier[]));
});
it('should discover references to variables', () => {
const template = `<div *ngFor="let foo of foos; let i = index">{{foo + i}}</div>`;
const refs = getTemplateIdentifiers(bind(template));
const fooIdentifier: VariableIdentifier = {
name: 'foo',
kind: IdentifierKind.Variable,
span: new AbsoluteSourceSpan(17, 20),
};
const iIdentifier: VariableIdentifier = {
name: 'i',
kind: IdentifierKind.Variable,
span: new AbsoluteSourceSpan(34, 35),
};
const refArr = Array.from(refs);
expect(refArr).toEqual(jasmine.arrayContaining([
fooIdentifier,
{
name: 'foo',
kind: IdentifierKind.Property,
span: new AbsoluteSourceSpan(47, 50),
target: fooIdentifier,
},
iIdentifier,
{
name: 'i',
kind: IdentifierKind.Property,
span: new AbsoluteSourceSpan(53, 54),
target: iIdentifier,
},
] as TopLevelIdentifier[]));
});
it('should discover references to variables', () => {
const template = `<div *ngFor="let foo of foos" (click)="do(foo)"></div>`;
const refs = getTemplateIdentifiers(bind(template));
const variableIdentifier: VariableIdentifier = {
name: 'foo',
kind: IdentifierKind.Variable,
span: new AbsoluteSourceSpan(17, 20),
};
const refArr = Array.from(refs);
expect(refArr).toEqual(jasmine.arrayContaining([
variableIdentifier, {
name: 'foo',
kind: IdentifierKind.Property,
span: new AbsoluteSourceSpan(42, 45),
target: variableIdentifier,
}
] as TopLevelIdentifier[]));
});
});
describe('generates identifiers for elements', () => {
it('should record elements as ElementIdentifiers', () => {
const template = '<test-selector>';
const refs = getTemplateIdentifiers(bind(template));
expect(refs.size).toBe(1);
const [ref] = Array.from(refs);
expect(ref.kind).toBe(IdentifierKind.Element);
});
it('should record element names as their selector', () => {
const template = '<test-selector>';
const refs = getTemplateIdentifiers(bind(template));
expect(refs.size).toBe(1);
const [ref] = Array.from(refs);
expect(ref as ElementIdentifier).toEqual({
name: 'test-selector',
kind: IdentifierKind.Element,
span: new AbsoluteSourceSpan(1, 14),
attributes: new Set(),
usedDirectives: new Set(),
});
});
it('should discover selectors in self-closing elements', () => {
const template = '<img />';
const refs = getTemplateIdentifiers(bind(template));
expect(refs.size).toBe(1);
const [ref] = Array.from(refs);
expect(ref as ElementIdentifier).toEqual({
name: 'img',
kind: IdentifierKind.Element,
span: new AbsoluteSourceSpan(1, 4),
attributes: new Set(),
usedDirectives: new Set(),
});
});
it('should discover selectors in elements with adjacent open and close tags', () => {
const template = '<test-selector></test-selector>';
const refs = getTemplateIdentifiers(bind(template));
expect(refs.size).toBe(1);
const [ref] = Array.from(refs);
expect(ref as ElementIdentifier).toEqual({
name: 'test-selector',
kind: IdentifierKind.Element,
span: new AbsoluteSourceSpan(1, 14),
attributes: new Set(),
usedDirectives: new Set(),
});
});
it('should discover selectors in elements with non-adjacent open and close tags', () => {
const template = '<test-selector> text </test-selector>';
const refs = getTemplateIdentifiers(bind(template));
expect(refs.size).toBe(1);
const [ref] = Array.from(refs);
expect(ref as ElementIdentifier).toEqual({
name: 'test-selector',
kind: IdentifierKind.Element,
span: new AbsoluteSourceSpan(1, 14),
attributes: new Set(),
usedDirectives: new Set(),
});
});
it('should discover nested selectors', () => {
const template = '<div><span></span></div>';
const refs = getTemplateIdentifiers(bind(template));
const refArr = Array.from(refs);
expect(refArr).toContain({
name: 'span',
kind: IdentifierKind.Element,
span: new AbsoluteSourceSpan(6, 10),
attributes: new Set(),
usedDirectives: new Set(),
});
});
it('should generate information about attributes', () => {
const template = '<div attrA attrB="val"></div>';
const refs = getTemplateIdentifiers(bind(template));
const [ref] = Array.from(refs);
const attrs = (ref as ElementIdentifier).attributes;
expect(attrs).toEqual(new Set<AttributeIdentifier>([
{
name: 'attrA',
kind: IdentifierKind.Attribute,
span: new AbsoluteSourceSpan(5, 10),
},
{
name: 'attrB',
kind: IdentifierKind.Attribute,
span: new AbsoluteSourceSpan(11, 22),
}
]));
});
it('should generate information about used directives', () => {
const declA = util.getComponentDeclaration('class A {}', 'A');
const declB = util.getComponentDeclaration('class B {}', 'B');
const declC = util.getComponentDeclaration('class C {}', 'C');
const template = '<a-selector b-selector></a-selector>';
const boundTemplate = util.getBoundTemplate(template, {}, [
{selector: 'a-selector', declaration: declA},
{selector: '[b-selector]', declaration: declB},
{selector: ':not(never-selector)', declaration: declC},
]);
const refs = getTemplateIdentifiers(boundTemplate);
const [ref] = Array.from(refs);
const usedDirectives = (ref as ElementIdentifier).usedDirectives;
expect(usedDirectives).toEqual(new Set([
{
node: declA,
selector: 'a-selector',
},
{
node: declB,
selector: '[b-selector]',
},
{
node: declC,
selector: ':not(never-selector)',
}
]));
});
});
describe('generates identifiers for templates', () => {
it('should record templates as TemplateNodeIdentifiers', () => {
const template = '<ng-template>';
const refs = getTemplateIdentifiers(bind(template));
expect(refs.size).toBe(1);
const [ref] = Array.from(refs);
expect(ref.kind).toBe(IdentifierKind.Template);
});
it('should record template names as their tag name', () => {
const template = '<ng-template>';
const refs = getTemplateIdentifiers(bind(template));
expect(refs.size).toBe(1);
const [ref] = Array.from(refs);
expect(ref as TemplateNodeIdentifier).toEqual({
name: 'ng-template',
kind: IdentifierKind.Template,
span: new AbsoluteSourceSpan(1, 12),
attributes: new Set(),
usedDirectives: new Set(),
});
});
it('should discover nested templates', () => {
const template = '<div><ng-template></ng-template></div>';
const refs = getTemplateIdentifiers(bind(template));
const refArr = Array.from(refs);
expect(refArr).toContain({
name: 'ng-template',
kind: IdentifierKind.Template,
span: new AbsoluteSourceSpan(6, 17),
attributes: new Set(),
usedDirectives: new Set(),
});
});
it('should generate information about attributes', () => {
const template = '<ng-template attrA attrB="val">';
const refs = getTemplateIdentifiers(bind(template));
const [ref] = Array.from(refs);
const attrs = (ref as TemplateNodeIdentifier).attributes;
expect(attrs).toEqual(new Set<AttributeIdentifier>([
{
name: 'attrA',
kind: IdentifierKind.Attribute,
span: new AbsoluteSourceSpan(13, 18),
},
{
name: 'attrB',
kind: IdentifierKind.Attribute,
span: new AbsoluteSourceSpan(19, 30),
}
]));
});
it('should generate information about used directives', () => {
const declB = util.getComponentDeclaration('class B {}', 'B');
const declC = util.getComponentDeclaration('class C {}', 'C');
const template = '<ng-template b-selector>';
const boundTemplate = util.getBoundTemplate(template, {}, [
{selector: '[b-selector]', declaration: declB},
{selector: ':not(never-selector)', declaration: declC},
]);
const refs = getTemplateIdentifiers(boundTemplate);
const [ref] = Array.from(refs);
const usedDirectives = (ref as ElementIdentifier).usedDirectives;
expect(usedDirectives).toEqual(new Set([
{
node: declB,
selector: '[b-selector]',
},
{
node: declC,
selector: ':not(never-selector)',
}
]));
});
});
});
| TypeScript | 5 | OakMolecule/angular | packages/compiler-cli/src/ngtsc/indexer/test/template_spec.ts | [
"MIT"
] |
#include "config.hats"
#include "{$TOP}/avr_prelude/kernel_staload.hats"
staload "{$TOP}/SATS/arduino.sats"
staload "{$TOP}/SATS/hardware_serial.sats"
#define BLINK_DELAY_MS 50.0
implement main () = {
fun printchar (c) = {
val () = println! ("Inputed: ", int2char0 c)
}
fun readprint () =
if (serial_available () > 0) then let
val c = serial_read ()
in
if (c <> ~1) then printchar (c)
end
fun blink () = {
val () = digitalWrite (LED_BUILTIN, HIGH)
val () = delay_ms (BLINK_DELAY_MS)
val () = digitalWrite (LED_BUILTIN, LOW)
val () = delay_ms (BLINK_DELAY_MS)
}
fun loop () = {
val () = blink ()
val () = readprint ()
val () = loop ()
}
val () = pinMode (LED_BUILTIN, OUTPUT)
val () = serial_begin (9600UL)
val () = loop ()
}
| ATS | 4 | Proclivis/arduino-ats | demo/serial/DATS/main.dats | [
"MIT"
] |
foo : Semigroup a => a -> ()
foo x = ()
main : IO ()
main = pure (foo ())
| Idris | 3 | Qqwy/Idris2-Erlang | idris2/tests/idris2/basic045/Main.idr | [
"BSD-3-Clause"
] |
<!---================= Room Booking System / https://github.com/neokoenig =======================--->
<!--- Location Form--->
<cfoutput>
#errorMessagesFor("location")#
<cfif structKeyExists(application.rbs.templates, "location") AND structKeyExists(application.rbs.templates.location, "form")>
#processShortCodes(application.rbs.templates.location.form)#
<cfelse>
<!--- Default Template--->
<cfsavecontent variable="locationTemplate">
<div class="row">
<div class="col-sm-4">
[field id="name"]
</div>
<div class="col-sm-4">
[field id="building"]
</div>
<div class="col-sm-4">
[field id="description"]
</div>
</div>
<div class="row">
<div class="col-md-3">
[field id="class"]
</div>
<div class="col-md-3">
[field id="colour"]
</div>
<div class="col-md-3">
[field id="layouts"]
</div>
</div>
#includePartial(partial="/common/form/customfields")#
</cfsavecontent>
#processShortCodes(locationTemplate)#
</cfif>
</cfoutput> | ColdFusion | 3 | fintecheando/RoomBooking | views/locations/_form.cfm | [
"Apache-1.1"
] |
/* This file is part of the ATMEL AVR-UC3-SoftwareFramework-1.7.0 Release */
/*This file is prepared for Doxygen automatic documentation generation.*/
/*! \file *********************************************************************
*
* \brief Exception and interrupt vectors.
*
* This file maps all events supported by an AVR32.
*
* - Compiler: GNU GCC for AVR32
* - Supported devices: All AVR32 devices with an INTC module can be used.
* - AppNote:
*
* \author Atmel Corporation: http://www.atmel.com \n
* Support and FAQ: http://support.atmel.no/
*
******************************************************************************/
/* Copyright (c) 2009 Atmel Corporation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* 3. The name of Atmel may not be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* 4. This software may only be redistributed and used in connection with an Atmel
* AVR product.
*
* THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
* EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL 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
*
*/
#if !__AVR32_UC__ && !__AVR32_AP__
#error Implementation of the AVR32 architecture not supported by the INTC driver.
#endif
#include <avr32/io.h>
//! @{
//! \verbatim
.section .exception, "ax", @progbits
// Start of Exception Vector Table.
// EVBA must be aligned with a power of two strictly greater than the EVBA-
// relative offset of the last vector.
.balign 0x200
// Export symbol.
.global _evba
.type _evba, @function
_evba:
.org 0x000
// Unrecoverable Exception.
_handle_Unrecoverable_Exception:
rjmp $
.org 0x004
// TLB Multiple Hit.
_handle_TLB_Multiple_Hit:
rjmp $
.org 0x008
// Bus Error Data Fetch.
_handle_Bus_Error_Data_Fetch:
rjmp $
.org 0x00C
// Bus Error Instruction Fetch.
_handle_Bus_Error_Instruction_Fetch:
rjmp $
.org 0x010
// NMI.
_handle_NMI:
rjmp $
.org 0x014
// Instruction Address.
_handle_Instruction_Address:
rjmp $
.org 0x018
// ITLB Protection.
_handle_ITLB_Protection:
rjmp $
.org 0x01C
// Breakpoint.
_handle_Breakpoint:
rjmp $
.org 0x020
// Illegal Opcode.
_handle_Illegal_Opcode:
rjmp $
.org 0x024
// Unimplemented Instruction.
_handle_Unimplemented_Instruction:
rjmp $
.org 0x028
// Privilege Violation.
_handle_Privilege_Violation:
rjmp $
.org 0x02C
// Floating-Point: UNUSED IN AVR32UC and AVR32AP.
_handle_Floating_Point:
rjmp $
.org 0x030
// Coprocessor Absent: UNUSED IN AVR32UC.
_handle_Coprocessor_Absent:
rjmp $
.org 0x034
// Data Address (Read).
_handle_Data_Address_Read:
rjmp $
.org 0x038
// Data Address (Write).
_handle_Data_Address_Write:
rjmp $
.org 0x03C
// DTLB Protection (Read).
_handle_DTLB_Protection_Read:
rjmp $
.org 0x040
// DTLB Protection (Write).
_handle_DTLB_Protection_Write:
rjmp $
.org 0x044
// DTLB Modified: UNUSED IN AVR32UC.
_handle_DTLB_Modified:
rjmp $
.org 0x050
// ITLB Miss.
_handle_ITLB_Miss:
rjmp $
.org 0x060
// DTLB Miss (Read).
_handle_DTLB_Miss_Read:
rjmp $
.org 0x070
// DTLB Miss (Write).
_handle_DTLB_Miss_Write:
rjmp $
.org 0x100
// Supervisor Call.
_handle_Supervisor_Call:
rjmp $
// Interrupt support.
// The interrupt controller must provide the offset address relative to EVBA.
// Important note:
// All interrupts call a C function named _get_interrupt_handler.
// This function will read group and interrupt line number to then return in
// R12 a pointer to a user-provided interrupt handler.
.balign 4
.irp priority, 0, 1, 2, 3
_int\priority:
#if __AVR32_UC__
// R8-R12, LR, PC and SR are automatically pushed onto the system stack by the
// CPU upon interrupt entry. No other register is saved by hardware.
#elif __AVR32_AP__
// PC and SR are automatically saved in respectively RAR_INTx and RSR_INTx by
// the CPU upon interrupt entry. No other register is saved by hardware.
pushm r8-r12, lr
#endif
mov r12, \priority // Pass the int_level parameter to the _get_interrupt_handler function.
call _get_interrupt_handler
cp.w r12, 0 // Get the pointer to the interrupt handler returned by the function.
#if __AVR32_UC__
movne pc, r12 // If this was not a spurious interrupt (R12 != NULL), jump to the handler.
#elif __AVR32_AP__
breq spint\priority // If this was a spurious interrupt (R12 == NULL), branch.
st.w --sp, r12 // Push the pointer to the interrupt handler onto the system stack since no register may be altered.
popm r8-r12, lr, pc // Restore registers and jump to the handler.
spint\priority:
popm r8-r12, lr
#endif
rete // If this was a spurious interrupt (R12 == NULL), return from event handler.
.endr
// Constant data area.
.balign 4
// Values to store in the interrupt priority registers for the various interrupt priority levels.
// The interrupt priority registers contain the interrupt priority level and
// the EVBA-relative interrupt vector offset.
.global ipr_val
.type ipr_val, @object
ipr_val:
.word (AVR32_INTC_INT0 << AVR32_INTC_IPR_INTLEVEL_OFFSET) | (_int0 - _evba),\
(AVR32_INTC_INT1 << AVR32_INTC_IPR_INTLEVEL_OFFSET) | (_int1 - _evba),\
(AVR32_INTC_INT2 << AVR32_INTC_IPR_INTLEVEL_OFFSET) | (_int2 - _evba),\
(AVR32_INTC_INT3 << AVR32_INTC_IPR_INTLEVEL_OFFSET) | (_int3 - _evba)
//! \endverbatim
//! @}
| Logos | 4 | Davidfind/rt-thread | bsp/avr32uc3b0/SOFTWARE_FRAMEWORK/DRIVERS/INTC/exception.x | [
"Apache-2.0"
] |
#include "script_component.hpp"
/*
Name: TFAR_fnc_hasRadio
Author: Dorbedo, DomT602
Check if a unit has a radio
Arguments:
0: the unit <OBJECT>
Return Value:
the unit has a radio <BOOL>
Example:
_hasRadio = [_player] call TFAR_fnc_hasRadio;
Public: Yes
*/
params [["_unit", objNull, [objNull]]];
if !(_unit isKindOf "CAManBase") exitWith {false};
!isNil {_unit call TFAR_fnc_backpackLr} ||
{([_unit] call TFAR_fnc_getRadioItems) isNotEqualTo []}
| SQF | 5 | severgun/task-force-arma-3-radio | addons/core/functions/fnc_hasRadio.sqf | [
"RSA-MD"
] |
foo=Some text with some swedish öäå!
| INI | 0 | Martin-real/spring-boot-2.1.0.RELEASE | spring-boot-project/spring-boot-autoconfigure/src/test/resources/test/swedish.properties | [
"Apache-2.0"
] |
{{!-- Template for writing summary in markdown --}}
# {{coalesce meta.title 'System Summary'}}
{{ctime}}
{{#servers}}
## {{name}}
### Alarms
{{#inspectors}}{{#alarms}}
{{{name}}}: {{fired}}
{{/alarms}}{{/inspectors}}
### Inspectors
{{#inspectors}}
#### {{name}}
{{text}}
{{/inspectors}}
--
{{/servers}} | Harbour | 4 | zix99/sshsysmon | sshsysmon/templates/md.hb | [
"MIT"
] |
# Finish up the VCL.
sub vcl_recv {
if (req.request != "HEAD" && req.request != "GET" && req.request != "FASTLYPURGE") {
return (pass);
}
return (lookup);
}
sub vcl_fetch {
if (beresp.http.Set-Cookie) {
set req.http.Fastly-Cachetype = "SETCOOKIE";
return (pass);
}
if (beresp.http.Cache-Control ~ "private") {
set req.http.Fastly-Cachetype = "PRIVATE";
return (pass);
}
return (deliver);
}
sub vcl_hit {
if (!obj.cacheable) {
return (pass);
}
return (deliver);
}
sub vcl_miss {
return (fetch);
}
sub vcl_deliver {
return (deliver);
}
| VCL | 4 | Vaent/polyfill-service | fastly/vcl/fastly-boilerplate-end.vcl | [
"MIT"
] |
new dynamic uncheckedInsertionSort, MaxHeapSort;
new function staticSort(array, a, b) {
new int min_, max_;
dynamic: min_, max_ = findMinMax(array, a, b);
new int auxLen = b - a;
new list count = sortingVisualizer.createValueArray(auxLen + 1),
offset = sortingVisualizer.createValueArray(auxLen + 1);
new float CONST = auxLen / (max_ - min_ + 1);
for i = a; i < b; i++ {
count[int((array[i].readInt() - min_) * CONST)]++;
}
offset[0].write(a);
for i = 1; i < auxLen; i++ {
offset[i].write(count[i - 1] + offset[i - 1]);
}
for v in range(auxLen) {
while count[v] > 0 {
new int origin = offset[v].readInt(),
from_ = origin;
new <Value> num = array[from_].copy();
array[from_].write(-1);
do from_ != origin {
new int dig = int((num.readInt() - min_) * CONST),
to = offset[dig].readInt();
offset[dig]++;
count[dig]--;
new <Value> temp = array[to].copy();
array[to].write(num);
num = temp.copy();
from_ = to;
}
}
}
for i in range(auxLen) {
new int begin = offset[i - 1].readInt() if i > 0 else a,
end = offset[i].readInt();
if end - begin > 1 {
if end - begin > 16 {
MaxHeapSort.sort(array, begin, end);
} else {
uncheckedInsertionSort(array, begin, end);
}
}
}
}
@Sort(
"Distribution Sorts",
"staticSort [Utils.Iterables.fastSort]",
"staticSort"
);
new function staticSortRun(array) {
staticSort(array, 0, len(array));
}
| Opal | 4 | thatsOven/sorting-visualizer | sorts/StaticSort.opal | [
"MIT"
] |
.. meta::
:description: Upgrade to Hasura migrations v2
:keywords: hasura, docs, migration, metadata
.. _migrations_upgrade_v2:
Upgrading to Hasura migrations config v2
========================================
.. contents:: Table of contents
:backlinks: none
:depth: 2
:local:
What has changed?
-----------------
In **config v1**, the PG schema migrations and Hasura metadata were both handled
using the same :ref:`migration files <migration_file_format_v1>` which were in
``yaml`` format. In **config v2**, these are managed separately in their own
directories in the Hasura project. Metadata is managed in its separate
:ref:`metadata directory <metadata_format_v2>` and PG schema migrations are
managed via :ref:`migration files <migration_file_format_v2>` that are now in
``SQL`` format.
Changes needed in existing workflows
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Due to the above mentioned changes, any workflows that involve applying migrations
have an additional step of applying metadata as well.
For example,
- any place where the ``hasura migrate apply`` command is used, it now needs
to be followed by a ``hasura metadata apply`` command.
- if the ``cli-migrations`` Docker image is used for :ref:`auto applying migrations <auto_apply_migrations>`
at server start, now you will have to use the ``cli-migrations-v2`` image and
the ``/metadata`` directory will also have to be mounted along with the ``/migrations``
directory
Upgrade steps
-------------
Step 0: Take a backup
^^^^^^^^^^^^^^^^^^^^^
Make sure you take a backup of your Hasura project before upgrading to ``config v2``.
Step 1: Upgrade to the latest CLI
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Config v2 is available since ``v1.2.0``.
Run:
.. code-block:: bash
hasura update-cli
Step 2: Upgrade hasura project to v2
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
In your project directory, run:
.. code-block:: bash
hasura scripts update-project-v2
Your project directory and ``config.yaml`` should be updated to v2.
| reStructuredText | 4 | gh-oss-contributor/graphql-engine-1 | docs/graphql/core/migrations/config-v2/upgrade-v2.rst | [
"Apache-2.0",
"MIT"
] |
"""Support for Transports Metropolitans de Barcelona."""
| Python | 0 | domwillcode/home-assistant | homeassistant/components/tmb/__init__.py | [
"Apache-2.0"
] |
module chapter5/addressBook --- the model in fig 5.1
abstract sig Target {}
sig Addr extends Target {}
sig Name extends Target {}
sig Book {addr: Name -> Target}
fact Acyclic {all b: Book | no n: Name | n in n.^(b.addr)}
pred add [b, b1: Book, n: Name, t: Target] {
b1.addr = b.addr + n -> t
}
// This command should produce an instance similar to Fig 5.2
run add for 3 but 2 Book
fun lookup [b: Book, n: Name]: set Addr {n.^(b.addr) & Addr}
assert addLocal {
all b,b1: Book, n,n1: Name, t: Target |
add [b,b1,n,t] and n != n1 => lookup [b,n1] = lookup [b1,n1]
}
// This command should produce a counterexample similar to Fig 5.3
check addLocal for 3 but 2 Book
| Alloy | 3 | haslab/Electrum | electrum/src/main/resources/models/book/chapter5/addressBook.als | [
"MIT"
] |
// Patrick Dave Subang (c) 2020 April
// Github -> https://github.com/PatrickGTR
// Credits to these people, made the production easier.
// Southclaw, Y_Less, maddinatOr, SyS, Zeex, Slice, Lorenc
// TextdrawLetterSize Rule -> Thanks to DamianC
// Letter-size-y = letter-size-x * 4
// For a nice font display
#if 0
// called when player successfully logged in.
forward OnPlayerLogin(playerid);
// called when player successfully registered.
forward OnPlayerRegister(playerid);
// called when player's ip/name/gcpi wasn't found in the ban database.
forward OnPlayerPassedBanCheck(playerid);
// called every second per player (like OnPlayerUpdate but not as intensive.)
forward OnPlayerSecondUpdate(playerid);
// called when player spawns for the first time after initial connection.
forward OnPlayerFirstSpawn(playerid);
// called every 2 minutes for datas that need to be saved frequently.
forward OnPlayerAutoSave(playerid);
// called when player has robbed another player.
forward OnPlayerRobPlayer(playerid, targetid, moneyTaken);
// called when player has successfully robbed a store.
forward OnPlayerRobStore(playerid, moneyTaken);
// called when c4 has been detonated.
forward OnExplosiveDetonate(playerid, Float: x, Float: y, Float: z);
// called every second.
forward OnServerSecondUpdate();
// called when MySQL successfully connects. (mainly used to setup tables & prepare statements)
forward OnMySQLConnected();
// called before MySQL disconnects (before mysql_close specifically)
forward OnMySQLPreClose();
// called when the in-game week resets.
forward OnServerWeekReset();
// called when the in-game day resets.
forward OnServerDayReset(const day[]);
#endif
// Custom Functions
#if 0
// playerid -> player to give score.
// score -> amount of score to give.
// save -> false by default, toggle to allow saving.
Player_GiveScore(playerid, score, bool:save = false);
// playerid -> player to remove score.
// score -> how much you want to remove from the player.
Player_RemoveScore(playerid, score);
#endif
// Main
#include <constants>
// Libraries
#include <a_mysql>
#include <samp_bcrypt>
// YSI
#include <YSI_Core\y_utils>
#include <YSI_Coding\y_inline>
#include <YSI_Coding\y_timers>
#include <YSI_Data\y_bit>
#include <YSI_Data\y_iterate>
#include <YSI_Extra\y_inline_mysql>
#include <YSI_Extra\y_inline_bcrypt>
// Legacy Includes
#include <EVF>
#include <progress2>
#include <ini>
// #include <env>
#include <streamer>
#include <logger>
#include <mysql_prepared>
#include <map-zones>
#include <formatex>
// Gamemode Scripts
#include <init>
#if SETUP_TABLE
#include <tables>
#endif
#include <utils>
#include <user-interface>
#include <anti-cheat> // w.i.p
#include <server>
#include <account>
#include <player>
#include <houses>
#include <admin>
#include <system>
#include <chat> // chat & messaging
#include <cmds>
#include <mapping>
#include <gangs>
// Will be called after the rest ^
public OnGameModeInit() {
Message_SetTime(5);
Message_Add("Welcome to GTA:OPEN");
Message_Add("You like GTA:OPEN? Add us to your favourites!");
Message_Add("Check our discord server discord.gg/fhN3q4J6Qr");
Message_Add("Help keep the server alive by donating!");
SendRconCommand("hostname "#SERVER_NAME " v" #SCRIPT_VERSION_MAJOR "." #SCRIPT_VERSION_MINOR "." #SCRIPT_VERSION_PATCH);
SendRconCommand("gamemodetext "SERVER_MODE"");
SendRconCommand("language "SERVER_LANGUAGE"");
SendRconCommand("weburl "SERVER_WEBSITE"");
SetWorldTime(23);
SetWeather(0);
DisableInteriorEnterExits();
EnableStuntBonusForAll(0);
UsePlayerPedAnims();
// Init Vehicles
LoadStaticVehiclesFromFile("vehicles/ls.txt");
return 1;
}
public OnPlayerDeathEx(playerid, killerid, reason) {
if(IsPlayerConnected(killerid)) {
Player_GiveKill(killerid, 1, true);
SendDeathMessage(killerid, playerid, reason);
}
Player_SetDeaths(playerid, 1, true);
SendDeathMessage(INVALID_PLAYER_ID, playerid, reason);
return 1;
}
// temporary fix for players not taking damage, although api should handle this when
// not in use.
public OnPlayerDamagePlayer(playerid, issuerid, &Float: amount, weaponid, bodypart)
{
if(Player_GetClass(playerid) == Player_GetClass(issuerid) && Player_GetClass(playerid) != TEAM_CIVILIAN) {
return 0; // no team damage.
}
return 1; // returning 0 will prevent user from taking damage (THIS IS A BIG FEATURE!)
}
// TEMP - MUST REMOVE!
CMD:kill(playerid, params[]) {
SetPlayerHealth(playerid, 0.0);
return 1;
}
CMD:killveh(playerid, params) {
SetVehicleHealth(GetPlayerVehicleID(playerid), 0.0);
return 1;
} | PAWN | 4 | Vel30/gta-open | gamemodes/main.pwn | [
"Apache-2.0"
] |
<div>
<style scoped>
.dataframe tbody tr th:only-of-type {
vertical-align: middle;
}
.dataframe tbody tr th {
vertical-align: top;
}
.dataframe thead th {
text-align: right;
}
</style>
<table border="1" class="dataframe">
<thead>
<tr style="text-align: right;">
<th></th>
<th>a</th>
</tr>
</thead>
<tbody>
<tr>
<th>0</th>
<td>0</td>
</tr>
<tr>
<th>1</th>
<td>1</td>
</tr>
<tr>
<th>2</th>
<td>2</td>
</tr>
<tr>
<th>3</th>
<td>3</td>
</tr>
<tr>
<th>4</th>
<td>4</td>
</tr>
<tr>
<th>5</th>
<td>5</td>
</tr>
<tr>
<th>6</th>
<td>6</td>
</tr>
<tr>
<th>7</th>
<td>7</td>
</tr>
<tr>
<th>8</th>
<td>8</td>
</tr>
<tr>
<th>9</th>
<td>9</td>
</tr>
<tr>
<th>10</th>
<td>10</td>
</tr>
<tr>
<th>11</th>
<td>11</td>
</tr>
<tr>
<th>12</th>
<td>12</td>
</tr>
<tr>
<th>13</th>
<td>13</td>
</tr>
<tr>
<th>14</th>
<td>14</td>
</tr>
<tr>
<th>15</th>
<td>15</td>
</tr>
<tr>
<th>16</th>
<td>16</td>
</tr>
<tr>
<th>17</th>
<td>17</td>
</tr>
<tr>
<th>18</th>
<td>18</td>
</tr>
<tr>
<th>19</th>
<td>19</td>
</tr>
</tbody>
</table>
</div>
| HTML | 1 | CJL89/pandas | pandas/tests/io/formats/data/html/html_repr_min_rows_default_no_truncation.html | [
"BSD-3-Clause"
] |
.blue-text {
color: orange;
font-weight: bolder;
}
| CSS | 2 | blomqma/next.js | test/integration/css-fixtures/nested-global/styles/global2b.css | [
"MIT"
] |
- dashboard: acquisition
title: "[GA4] Acquisition"
layout: newspaper
preferred_viewer: dashboards-next
elements:
- name: ''
type: text
title_text: ''
subtitle_text: ''
body_text: "---\n<div style=\"text-align: center;\">\n\t<div>\n\t\t<h1 style=\"\
font-size: 28px;\">Acquisition Overview</h1><h2 style=\"font-size: 16px;\">Use\
\ Audience Cohort filter to change what field the data is grouped by for the\
\ Overview metrics</h2></div>\n</div>"
row: 4
col: 0
width: 24
height: 4
- title: Sessions
name: Sessions
model: ga4
explore: sessions
type: single_value
fields: [sessions.total_sessions, sessions.total_first_visit_sessions_percentage]
limit: 500
column_limit: 50
custom_color_enabled: true
show_single_value_title: true
show_comparison: false
comparison_type: value
comparison_reverse_colors: false
show_comparison_label: true
enable_conditional_formatting: true
conditional_formatting_include_totals: false
conditional_formatting_include_nulls: false
color_application:
collection_id: legacy
palette_id: looker_classic
custom_color: "#FFF"
single_value_title: Sessions
comparison_label: First Visit Sessions
conditional_formatting: [{type: not null, value: !!null '', background_color: "#F9AB00",
font_color: "#FFF", color_application: {collection_id: 7c56cc21-66e4-41c9-81ce-a60e1c3967b2,
palette_id: 56d0c358-10a0-4fd6-aa0b-b117bef527ab}, bold: false, italic: false,
strikethrough: false, fields: !!null ''}]
x_axis_gridlines: false
y_axis_gridlines: true
show_view_names: false
show_y_axis_labels: true
show_y_axis_ticks: true
y_axis_tick_density: default
y_axis_tick_density_custom: 5
show_x_axis_label: true
show_x_axis_ticks: true
y_axis_scale_mode: linear
x_axis_reversed: false
y_axis_reversed: false
plot_size_by_field: false
trellis: ''
stacking: ''
limit_displayed_rows: false
legend_position: center
point_style: none
show_value_labels: false
label_density: 25
x_axis_scale: auto
y_axis_combined: true
ordering: none
show_null_labels: false
show_totals_labels: false
show_silhouette: false
totals_color: "#808080"
defaults_version: 1
series_types: {}
note_state: collapsed
note_display: hover
note_text: Sessions based on filters
listen:
Audience Cohort [Required]: sessions.audience_selector
Date: sessions.session_date
Country [Optional]: sessions.geo_data_country
Continent [Optional]: sessions.geo_data_continent
Source [Optional]: sessions.session_attribution_source
Source / Medium [Optional]: sessions.session_attribution_source_medium
Medium [Optional]: sessions.session_attribution_medium
Channel [Optional]: sessions.session_attribution_channel
row: 8
col: 0
width: 8
height: 3
- title: Users
name: Users
model: ga4
explore: sessions
type: single_value
fields: [sessions.total_users]
sorts: [sessions.total_users desc]
limit: 500
column_limit: 50
custom_color_enabled: true
show_single_value_title: true
show_comparison: false
comparison_type: value
comparison_reverse_colors: false
show_comparison_label: true
enable_conditional_formatting: true
conditional_formatting_include_totals: false
conditional_formatting_include_nulls: false
color_application:
collection_id: 7c56cc21-66e4-41c9-81ce-a60e1c3967b2
palette_id: 5d189dfc-4f46-46f3-822b-bfb0b61777b1
options:
steps: 5
x_axis_gridlines: false
y_axis_gridlines: true
show_view_names: false
show_y_axis_labels: true
show_y_axis_ticks: true
y_axis_tick_density: default
y_axis_tick_density_custom: 5
show_x_axis_label: true
show_x_axis_ticks: true
y_axis_scale_mode: linear
x_axis_reversed: false
y_axis_reversed: false
plot_size_by_field: false
trellis: ''
stacking: ''
limit_displayed_rows: false
legend_position: center
series_types: {}
point_style: none
show_value_labels: false
label_density: 25
x_axis_scale: auto
y_axis_combined: true
ordering: none
show_null_labels: false
show_totals_labels: false
show_silhouette: false
totals_color: "#808080"
custom_color: "#FFF"
single_value_title: Total Users
comparison_label: Returning Users
conditional_formatting: [{type: not null, value: !!null '', background_color: "#1A73E8",
font_color: "#FFF", color_application: {collection_id: 7c56cc21-66e4-41c9-81ce-a60e1c3967b2,
palette_id: 56d0c358-10a0-4fd6-aa0b-b117bef527ab}, bold: false, italic: false,
strikethrough: false, fields: !!null ''}]
defaults_version: 1
listen:
Audience Cohort [Required]: sessions.audience_selector
Date: sessions.session_date
Country [Optional]: sessions.geo_data_country
Continent [Optional]: sessions.geo_data_continent
Source [Optional]: sessions.session_attribution_source
Source / Medium [Optional]: sessions.session_attribution_source_medium
Medium [Optional]: sessions.session_attribution_medium
Channel [Optional]: sessions.session_attribution_channel
row: 8
col: 8
width: 8
height: 3
- title: Page Views
name: Page Views
model: ga4
explore: sessions
type: single_value
fields: [events.total_page_views]
sorts: [events.total_page_views desc]
limit: 500
column_limit: 50
custom_color_enabled: true
show_single_value_title: true
show_comparison: false
comparison_type: value
comparison_reverse_colors: false
show_comparison_label: true
enable_conditional_formatting: true
conditional_formatting_include_totals: false
conditional_formatting_include_nulls: false
x_axis_gridlines: false
y_axis_gridlines: true
show_view_names: false
show_y_axis_labels: true
show_y_axis_ticks: true
y_axis_tick_density: default
y_axis_tick_density_custom: 5
show_x_axis_label: true
show_x_axis_ticks: true
y_axis_scale_mode: linear
x_axis_reversed: false
y_axis_reversed: false
plot_size_by_field: false
trellis: ''
stacking: ''
limit_displayed_rows: false
legend_position: center
series_types: {}
point_style: none
series_colors:
events.total_page_views: "#EA4335"
show_value_labels: true
label_density: 25
x_axis_scale: auto
y_axis_combined: true
ordering: none
show_null_labels: false
show_totals_labels: false
show_silhouette: false
totals_color: "#808080"
custom_color: "#FFF"
comparison_label: Unique Page Views
conditional_formatting: [{type: not null, value: !!null '', background_color: "#c73727",
font_color: !!null '', color_application: {collection_id: 7c56cc21-66e4-41c9-81ce-a60e1c3967b2,
palette_id: 56d0c358-10a0-4fd6-aa0b-b117bef527ab}, bold: false, italic: false,
strikethrough: false, fields: !!null ''}]
defaults_version: 1
hidden_fields: []
y_axes: []
listen:
Audience Cohort [Required]: sessions.audience_selector
Date: sessions.session_date
Country [Optional]: sessions.geo_data_country
Continent [Optional]: sessions.geo_data_continent
Source [Optional]: sessions.session_attribution_source
Source / Medium [Optional]: sessions.session_attribution_source_medium
Medium [Optional]: sessions.session_attribution_medium
Channel [Optional]: sessions.session_attribution_channel
row: 8
col: 16
width: 8
height: 3
- title: Sessions by Cohort
name: Sessions by Cohort
model: ga4
explore: sessions
type: looker_bar
fields: [sessions.total_sessions, sessions.audience_trait]
sorts: [sessions.total_sessions desc]
limit: 500
column_limit: 50
x_axis_gridlines: false
y_axis_gridlines: true
show_view_names: false
show_y_axis_labels: true
show_y_axis_ticks: true
y_axis_tick_density: default
y_axis_tick_density_custom: 5
show_x_axis_label: false
show_x_axis_ticks: true
y_axis_scale_mode: linear
x_axis_reversed: false
y_axis_reversed: false
plot_size_by_field: false
trellis: ''
stacking: ''
limit_displayed_rows: true
legend_position: center
point_style: none
show_value_labels: true
label_density: 25
x_axis_scale: auto
y_axis_combined: true
ordering: none
show_null_labels: false
show_totals_labels: false
show_silhouette: false
totals_color: "#808080"
color_application:
collection_id: 7c56cc21-66e4-41c9-81ce-a60e1c3967b2
palette_id: 5d189dfc-4f46-46f3-822b-bfb0b61777b1
options:
steps: 5
limit_displayed_rows_values:
show_hide: show
first_last: first
num_rows: '10'
series_types: {}
series_colors:
sessions.total_sessions: "#F9AB00"
custom_color_enabled: true
show_single_value_title: true
show_comparison: false
comparison_type: value
comparison_reverse_colors: false
show_comparison_label: true
enable_conditional_formatting: true
conditional_formatting_include_totals: false
conditional_formatting_include_nulls: false
custom_color: "#FFF"
single_value_title: Sessions
comparison_label: First Visit Sessions
conditional_formatting: [{type: not null, value: !!null '', background_color: "#F9AB00",
font_color: "#FFF", color_application: {collection_id: 7c56cc21-66e4-41c9-81ce-a60e1c3967b2,
palette_id: 56d0c358-10a0-4fd6-aa0b-b117bef527ab}, bold: false, italic: false,
strikethrough: false, fields: !!null ''}]
defaults_version: 1
note_state: collapsed
note_display: hover
note_text: Sessions based on filters
listen:
Audience Cohort [Required]: sessions.audience_selector
Date: sessions.session_date
Country [Optional]: sessions.geo_data_country
Continent [Optional]: sessions.geo_data_continent
Source [Optional]: sessions.session_attribution_source
Source / Medium [Optional]: sessions.session_attribution_source_medium
Medium [Optional]: sessions.session_attribution_medium
Channel [Optional]: sessions.session_attribution_channel
row: 11
col: 0
width: 8
height: 10
- title: Users by Cohort
name: Users by Cohort
model: ga4
explore: sessions
type: looker_bar
fields: [sessions.total_users, sessions.audience_trait]
sorts: [sessions.total_users desc]
limit: 500
column_limit: 50
x_axis_gridlines: false
y_axis_gridlines: true
show_view_names: false
show_y_axis_labels: true
show_y_axis_ticks: true
y_axis_tick_density: default
y_axis_tick_density_custom: 5
show_x_axis_label: false
show_x_axis_ticks: true
y_axis_scale_mode: linear
x_axis_reversed: false
y_axis_reversed: false
plot_size_by_field: false
trellis: ''
stacking: ''
limit_displayed_rows: false
legend_position: center
point_style: none
show_value_labels: true
label_density: 25
x_axis_scale: auto
y_axis_combined: true
ordering: none
show_null_labels: false
show_totals_labels: false
show_silhouette: false
totals_color: "#808080"
color_application:
collection_id: 7c56cc21-66e4-41c9-81ce-a60e1c3967b2
palette_id: 5d189dfc-4f46-46f3-822b-bfb0b61777b1
options:
steps: 5
series_types: {}
custom_color_enabled: true
show_single_value_title: true
show_comparison: false
comparison_type: value
comparison_reverse_colors: false
show_comparison_label: true
enable_conditional_formatting: true
conditional_formatting_include_totals: false
conditional_formatting_include_nulls: false
custom_color: "#FFF"
single_value_title: Total Users
comparison_label: Returning Users
conditional_formatting: [{type: not null, value: !!null '', background_color: "#1A73E8",
font_color: "#FFF", color_application: {collection_id: 7c56cc21-66e4-41c9-81ce-a60e1c3967b2,
palette_id: 56d0c358-10a0-4fd6-aa0b-b117bef527ab}, bold: false, italic: false,
strikethrough: false, fields: !!null ''}]
defaults_version: 1
listen:
Audience Cohort [Required]: sessions.audience_selector
Date: sessions.session_date
Country [Optional]: sessions.geo_data_country
Continent [Optional]: sessions.geo_data_continent
Source [Optional]: sessions.session_attribution_source
Source / Medium [Optional]: sessions.session_attribution_source_medium
Medium [Optional]: sessions.session_attribution_medium
Channel [Optional]: sessions.session_attribution_channel
row: 11
col: 8
width: 8
height: 10
- title: Page Views by Cohort
name: Page Views by Cohort
model: ga4
explore: sessions
type: looker_bar
fields: [events.total_page_views, sessions.audience_trait]
sorts: [events.total_page_views desc]
limit: 500
column_limit: 50
x_axis_gridlines: false
y_axis_gridlines: true
show_view_names: false
show_y_axis_labels: true
show_y_axis_ticks: true
y_axis_tick_density: default
y_axis_tick_density_custom: 5
show_x_axis_label: false
show_x_axis_ticks: true
y_axis_scale_mode: linear
x_axis_reversed: false
y_axis_reversed: false
plot_size_by_field: false
trellis: ''
stacking: ''
limit_displayed_rows: false
legend_position: center
point_style: none
show_value_labels: true
label_density: 25
x_axis_scale: auto
y_axis_combined: true
ordering: none
show_null_labels: false
show_totals_labels: false
show_silhouette: false
totals_color: "#808080"
series_types: {}
series_colors:
events.total_page_views: "#EA4335"
custom_color_enabled: true
show_single_value_title: true
show_comparison: false
comparison_type: value
comparison_reverse_colors: false
show_comparison_label: true
enable_conditional_formatting: true
conditional_formatting_include_totals: false
conditional_formatting_include_nulls: false
custom_color: "#FFF"
comparison_label: Unique Page Views
conditional_formatting: [{type: not null, value: !!null '', background_color: "#c73727",
font_color: !!null '', color_application: {collection_id: 7c56cc21-66e4-41c9-81ce-a60e1c3967b2,
palette_id: 56d0c358-10a0-4fd6-aa0b-b117bef527ab}, bold: false, italic: false,
strikethrough: false, fields: !!null ''}]
defaults_version: 1
hidden_fields: []
y_axes: []
listen:
Audience Cohort [Required]: sessions.audience_selector
Date: sessions.session_date
Country [Optional]: sessions.geo_data_country
Continent [Optional]: sessions.geo_data_continent
Source [Optional]: sessions.session_attribution_source
Source / Medium [Optional]: sessions.session_attribution_source_medium
Medium [Optional]: sessions.session_attribution_medium
Channel [Optional]: sessions.session_attribution_channel
row: 11
col: 16
width: 8
height: 10
- title: Session Breakdown
name: Session Breakdown
model: ga4
explore: sessions
type: looker_bar
fields: [sessions.audience_trait, sessions.total_sessions, audience_cohorts.rank]
pivots: [sessions.audience_trait, audience_cohorts.rank]
sorts: [audience_cohorts.rank, sessions.audience_trait]
limit: 500
column_limit: 50
x_axis_gridlines: false
y_axis_gridlines: true
show_view_names: false
show_y_axis_labels: true
show_y_axis_ticks: true
y_axis_tick_density: default
y_axis_tick_density_custom: 5
show_x_axis_label: true
show_x_axis_ticks: true
y_axis_scale_mode: linear
x_axis_reversed: false
y_axis_reversed: false
plot_size_by_field: false
trellis: ''
stacking: percent
limit_displayed_rows: false
legend_position: center
point_style: none
show_value_labels: true
label_density: 25
x_axis_scale: auto
y_axis_combined: true
ordering: none
show_null_labels: false
show_totals_labels: false
show_silhouette: false
totals_color: "#808080"
series_types: {}
defaults_version: 1
listen:
Audience Cohort [Required]: sessions.audience_selector
Date: sessions.session_date
Country [Optional]: sessions.geo_data_country
Continent [Optional]: sessions.geo_data_continent
Source [Optional]: sessions.session_attribution_source
Source / Medium [Optional]: sessions.session_attribution_source_medium
Medium [Optional]: sessions.session_attribution_medium
Channel [Optional]: sessions.session_attribution_channel
row: 21
col: 0
width: 24
height: 7
- title: Session by Week
name: Session by Week
model: ga4
explore: sessions
type: looker_column
fields: [sessions.audience_trait, sessions.total_sessions, audience_cohorts.rank,
sessions.session_week]
pivots: [sessions.audience_trait, audience_cohorts.rank]
fill_fields: [sessions.session_week]
sorts: [audience_cohorts.rank, sessions.audience_trait, sessions.session_week
desc]
limit: 500
column_limit: 50
x_axis_gridlines: false
y_axis_gridlines: true
show_view_names: false
show_y_axis_labels: true
show_y_axis_ticks: true
y_axis_tick_density: default
y_axis_tick_density_custom: 5
show_x_axis_label: true
show_x_axis_ticks: true
y_axis_scale_mode: linear
x_axis_reversed: false
y_axis_reversed: false
plot_size_by_field: false
trellis: ''
stacking: percent
limit_displayed_rows: false
legend_position: center
point_style: none
show_value_labels: true
label_density: 25
x_axis_scale: auto
y_axis_combined: true
ordering: none
show_null_labels: false
show_totals_labels: false
show_silhouette: false
totals_color: "#808080"
series_types: {}
defaults_version: 1
listen:
Audience Cohort [Required]: sessions.audience_selector
Date: sessions.session_date
Country [Optional]: sessions.geo_data_country
Continent [Optional]: sessions.geo_data_continent
Source [Optional]: sessions.session_attribution_source
Source / Medium [Optional]: sessions.session_attribution_source_medium
Medium [Optional]: sessions.session_attribution_medium
Channel [Optional]: sessions.session_attribution_channel
row: 28
col: 0
width: 24
height: 10
- title: Engagement
name: Engagement
model: ga4
explore: sessions
type: looker_grid
fields: [sessions.total_sessions, sessions.audience_trait, sessions.total_first_visit_sessions_percentage,
sessions.total_bounced_sessions_percentage, sessions.average_page_views_per_session,
sessions.average_session_duration]
sorts: [sessions.total_sessions desc]
limit: 500
column_limit: 50
total: true
show_view_names: false
show_row_numbers: true
transpose: false
truncate_text: true
hide_totals: false
hide_row_totals: false
size_to_fit: true
table_theme: white
limit_displayed_rows: true
enable_conditional_formatting: false
header_text_alignment: left
header_font_size: '20'
rows_font_size: '20'
conditional_formatting_include_totals: false
conditional_formatting_include_nulls: false
show_sql_query_menu_options: false
show_totals: true
show_row_totals: true
series_labels:
sessions.audience_trait: Cohort
sessions.total_first_visit_sessions_percentage: "% New Sessions"
sessions.total_bounced_sessions_percentage: Bounce Rate
sessions.average_page_views_per_session: Pages / Session
sessions.average_session_duration: Avg. Session Duration
series_column_widths:
sessions.audience_trait: 252
series_cell_visualizations:
sessions.total_first_visit_sessions_percentage:
is_active: true
sessions.total_bounced_sessions_percentage:
is_active: true
sessions.average_page_views_per_session:
is_active: true
sessions.average_session_duration:
is_active: true
limit_displayed_rows_values:
show_hide: show
first_last: first
num_rows: '50'
header_background_color: "#F9AB00"
series_value_format:
sessions.total_bounced_sessions_percentage:
name: percent_0
decimals: '0'
format_string: "#,##0%"
label: Percent (0)
label_prefix: Percent
sessions.total_first_visit_sessions_percentage:
name: percent_0
decimals: '0'
format_string: "#,##0%"
label: Percent (0)
label_prefix: Percent
sessions.average_page_views_per_session:
name: decimal_2
decimals: '2'
format_string: "#,##0.00"
label: Decimals (2)
label_prefix: Decimals
x_axis_gridlines: false
y_axis_gridlines: true
show_y_axis_labels: true
show_y_axis_ticks: true
y_axis_tick_density: default
y_axis_tick_density_custom: 5
show_x_axis_label: true
show_x_axis_ticks: true
y_axis_scale_mode: linear
x_axis_reversed: false
y_axis_reversed: false
plot_size_by_field: false
trellis: ''
stacking: percent
legend_position: center
point_style: none
show_value_labels: true
label_density: 25
x_axis_scale: auto
y_axis_combined: true
ordering: none
show_null_labels: false
show_totals_labels: false
show_silhouette: false
totals_color: "#808080"
series_types: {}
defaults_version: 1
hidden_fields: [sessions.total_sessions]
note_state: collapsed
note_display: hover
note_text: Engagement metrics by Audience Trait (based on Audience Cohort filter).
Sorted by trait with highest traffic (i.e. Sessions).
listen:
Audience Cohort [Required]: sessions.audience_selector
Date: sessions.session_date
Country [Optional]: sessions.geo_data_country
Continent [Optional]: sessions.geo_data_continent
Source [Optional]: sessions.session_attribution_source
Source / Medium [Optional]: sessions.session_attribution_source_medium
Medium [Optional]: sessions.session_attribution_medium
Channel [Optional]: sessions.session_attribution_channel
row: 38
col: 0
width: 24
height: 11
- name: " (2)"
type: text
title_text: ''
subtitle_text: ''
body_text: "---\n<div style=\"text-align: center;\">\n\t<div>\n\t\t<h1 style=\"\
font-size: 28px;\">Acquisition Detail</h1><h2 style=\"font-size: 16px;\">Audience\
\ Cohort filter does not affect any tiles below this point</h2></div>\n</div>"
row: 49
col: 0
width: 24
height: 4
- title: Top Referrers
name: Top Referrers
model: ga4
explore: sessions
type: looker_bar
fields: [sessions.session_attribution_source, sessions.total_sessions]
filters: {}
sorts: [sessions.total_sessions desc]
limit: 500
column_limit: 50
dynamic_fields: [{table_calculation: of_total, label: "% of Total", expression: "${sessions.total_sessions}/sum(${sessions.total_sessions})",
value_format: !!null '', value_format_name: percent_0, _kind_hint: measure,
_type_hint: number}]
x_axis_gridlines: false
y_axis_gridlines: false
show_view_names: false
show_y_axis_labels: true
show_y_axis_ticks: true
y_axis_tick_density: default
y_axis_tick_density_custom: 5
show_x_axis_label: false
show_x_axis_ticks: true
y_axis_scale_mode: linear
x_axis_reversed: false
y_axis_reversed: false
plot_size_by_field: false
trellis: ''
stacking: ''
limit_displayed_rows: true
legend_position: center
point_style: none
show_value_labels: true
label_density: 25
x_axis_scale: auto
y_axis_combined: true
ordering: none
show_null_labels: false
show_totals_labels: false
show_silhouette: false
totals_color: "#808080"
limit_displayed_rows_values:
show_hide: show
first_last: first
num_rows: '10'
hidden_series: [of_total]
series_types: {}
series_colors:
sessions.total_sessions: "#F9AB00"
of_total: "#facb04"
defaults_version: 1
listen:
Date: sessions.session_date
Country [Optional]: sessions.geo_data_country
Continent [Optional]: sessions.geo_data_continent
Source [Optional]: sessions.session_attribution_source
Source / Medium [Optional]: sessions.session_attribution_source_medium
Medium [Optional]: sessions.session_attribution_medium
Channel [Optional]: sessions.session_attribution_channel
row: 53
col: 0
width: 12
height: 10
- title: Top Landing Page
name: Top Landing Page
model: ga4
explore: sessions
type: looker_bar
fields: [sessions.total_sessions, events.event_param_page]
filters:
events.event_param_page: "-EMPTY"
events.is_landing_page: 'Yes'
sorts: [sessions.total_sessions desc]
limit: 500
column_limit: 50
dynamic_fields: [{table_calculation: of_total, label: "% of Total", expression: "${sessions.total_sessions}/sum(${sessions.total_sessions})",
value_format: !!null '', value_format_name: percent_0, _kind_hint: measure,
_type_hint: number}]
x_axis_gridlines: false
y_axis_gridlines: false
show_view_names: false
show_y_axis_labels: true
show_y_axis_ticks: true
y_axis_tick_density: default
y_axis_tick_density_custom: 5
show_x_axis_label: false
show_x_axis_ticks: true
y_axis_scale_mode: linear
x_axis_reversed: false
y_axis_reversed: false
plot_size_by_field: false
trellis: ''
stacking: ''
limit_displayed_rows: true
legend_position: center
point_style: none
show_value_labels: true
label_density: 25
x_axis_scale: auto
y_axis_combined: true
ordering: none
show_null_labels: false
show_totals_labels: false
show_silhouette: false
totals_color: "#808080"
limit_displayed_rows_values:
show_hide: show
first_last: first
num_rows: '10'
hidden_series: [of_total]
series_types: {}
series_colors:
sessions.total_sessions: "#F9AB00"
of_total: "#facb04"
defaults_version: 1
hidden_fields: []
y_axes: []
listen:
Date: sessions.session_date
Country [Optional]: sessions.geo_data_country
Continent [Optional]: sessions.geo_data_continent
Source [Optional]: sessions.session_attribution_source
Source / Medium [Optional]: sessions.session_attribution_source_medium
Medium [Optional]: sessions.session_attribution_medium
Channel [Optional]: sessions.session_attribution_channel
row: 53
col: 12
width: 12
height: 10
- name: " (3)"
type: text
title_text: ''
subtitle_text: ''
body_text: "<div style=\"border: solid 1px #1A73E8; border-radius: 5px; padding:\
\ 3px 10px; background: #eaf1fe; text-align: center; margin-bottom: 10px;\"\
>\n\t<div>\n\t\t<img style=\"height: 60px; margin-top: 30px;\" src=\"https://www.gstatic.com/analytics-suite/header/suite/v2/ic_analytics.svg\"\
/>\n\t</div><br>\n<nav style=\"font-size: 18px; position: absolute; bottom:\
\ 0; text-align: center;\">\n <a style=\"padding: 5px; line-height: 40px;\"\
\ href=\"/dashboards-next/ga4::overview\">\n \t<svg style=\"height: 16px; fill: #4285F4;\" class=\"\
svg-icon\" viewBox=\"0 0 20 20\">\n\t\t\t\t\t\t\t<path d=\"M17.431,2.156h-3.715c-0.228,0-0.413,0.186-0.413,0.413v6.973h-2.89V6.687c0-0.229-0.186-0.413-0.413-0.413H6.285c-0.228,0-0.413,0.184-0.413,0.413v6.388H2.569c-0.227,0-0.413,0.187-0.413,0.413v3.942c0,0.228,0.186,0.413,0.413,0.413h14.862c0.228,0,0.413-0.186,0.413-0.413V2.569C17.844,2.342,17.658,2.156,17.431,2.156\
\ M5.872,17.019h-2.89v-3.117h2.89V17.019zM9.587,17.019h-2.89V7.1h2.89V17.019z\
\ M13.303,17.019h-2.89v-6.651h2.89V17.019z M17.019,17.019h-2.891V2.982h2.891V17.019z\"\
></path>\n</svg>\nGA Overview</a>\n<a style=\"padding: 5px; line-height: 40px;\"\
\ href=\"/dashboards-next/ga4::audience\">\n<svg style=\"height: 16px; fill: #4285F4;\" class=\"svg-icon\"\
\ viewBox=\"0 0 20 20\">\n<path d=\"M12.075,10.812c1.358-0.853,2.242-2.507,2.242-4.037c0-2.181-1.795-4.618-4.198-4.618S5.921,4.594,5.921,6.775c0,1.53,0.884,3.185,2.242,4.037c-3.222,0.865-5.6,3.807-5.6,7.298c0,0.23,0.189,0.42,0.42,0.42h14.273c0.23,0,0.42-0.189,0.42-0.42C17.676,14.619,15.297,11.677,12.075,10.812\
\ M6.761,6.775c0-2.162,1.773-3.778,3.358-3.778s3.359,1.616,3.359,3.778c0,2.162-1.774,3.778-3.359,3.778S6.761,8.937,6.761,6.775\
\ M3.415,17.69c0.218-3.51,3.142-6.297,6.704-6.297c3.562,0,6.486,2.787,6.705,6.297H3.415z\"\
></path>\n</svg>\nAudience</a>\n<a style=\"padding: 5px; line-height: 40px;\"\
\ href=\"/dashboards-next/ga4::acquisition\">\n<svg style=\"height: 16px; fill: #4285F4;\" class=\"svg-icon\"\
\ viewBox=\"0 0 20 20\">\n<path d=\"M8.749,9.934c0,0.247-0.202,0.449-0.449,0.449H4.257c-0.247,0-0.449-0.202-0.449-0.449S4.01,9.484,4.257,9.484H8.3C8.547,9.484,8.749,9.687,8.749,9.934\
\ M7.402,12.627H4.257c-0.247,0-0.449,0.202-0.449,0.449s0.202,0.449,0.449,0.449h3.145c0.247,0,0.449-0.202,0.449-0.449S7.648,12.627,7.402,12.627\
\ M8.3,6.339H4.257c-0.247,0-0.449,0.202-0.449,0.449c0,0.247,0.202,0.449,0.449,0.449H8.3c0.247,0,0.449-0.202,0.449-0.449C8.749,6.541,8.547,6.339,8.3,6.339\
\ M18.631,4.543v10.78c0,0.248-0.202,0.45-0.449,0.45H2.011c-0.247,0-0.449-0.202-0.449-0.45V4.543c0-0.247,0.202-0.449,0.449-0.449h16.17C18.429,4.094,18.631,4.296,18.631,4.543\
\ M17.732,4.993H2.46v9.882h15.272V4.993z M16.371,13.078c0,0.247-0.202,0.449-0.449,0.449H9.646c-0.247,0-0.449-0.202-0.449-0.449c0-1.479,0.883-2.747,2.162-3.299c-0.434-0.418-0.714-1.008-0.714-1.642c0-1.197,0.997-2.246,2.133-2.246s2.134,1.049,2.134,2.246c0,0.634-0.28,1.224-0.714,1.642C15.475,10.331,16.371,11.6,16.371,13.078M11.542,8.137c0,0.622,0.539,1.348,1.235,1.348s1.235-0.726,1.235-1.348c0-0.622-0.539-1.348-1.235-1.348S11.542,7.515,11.542,8.137\
\ M15.435,12.629c-0.214-1.273-1.323-2.246-2.657-2.246s-2.431,0.973-2.644,2.246H15.435z\"\
></path>\n</svg>\nAcquisition</a>\n<a style=\"padding: 5px; line-height: 40px;\"\
\ href=\"/dashboards-next/ga4::behavior\">\n<svg style=\"height: 16px; fill: #4285F4;\" class=\"\
svg-icon\" viewBox=\"0 0 20 20\">\n<path d=\"M17.237,3.056H2.93c-0.694,0-1.263,0.568-1.263,1.263v8.837c0,0.694,0.568,1.263,1.263,1.263h4.629v0.879c-0.015,0.086-0.183,0.306-0.273,0.423c-0.223,0.293-0.455,0.592-0.293,0.92c0.07,0.139,0.226,0.303,0.577,0.303h4.819c0.208,0,0.696,0,0.862-0.379c0.162-0.37-0.124-0.682-0.374-0.955c-0.089-0.097-0.231-0.252-0.268-0.328v-0.862h4.629c0.694,0,1.263-0.568,1.263-1.263V4.319C18.5,3.625,17.932,3.056,17.237,3.056\
\ M8.053,16.102C8.232,15.862,8.4,15.597,8.4,15.309v-0.89h3.366v0.89c0,0.303,0.211,0.562,0.419,0.793H8.053z\
\ M17.658,13.156c0,0.228-0.193,0.421-0.421,0.421H2.93c-0.228,0-0.421-0.193-0.421-0.421v-1.263h15.149V13.156z\
\ M17.658,11.052H2.509V4.319c0-0.228,0.193-0.421,0.421-0.421h14.308c0.228,0,0.421,0.193,0.421,0.421V11.052z\"\
></path>\n</svg>\nBehavior</a>\n<a style=\"padding: 5px; line-height: 40px;\"\
\ href=\"/dashboards-next/ga4::custom_goal_conversions\">\n<svg style=\"height: 16px; fill: #4285F4;\" class=\"\
svg-icon\" viewBox=\"0 0 20 20\">\n<path d=\"M15.94,10.179l-2.437-0.325l1.62-7.379c0.047-0.235-0.132-0.458-0.372-0.458H5.25c-0.241,0-0.42,0.223-0.373,0.458l1.634,7.376L4.06,10.179c-0.312,0.041-0.446,0.425-0.214,0.649l2.864,2.759l-0.724,3.947c-0.058,0.315,0.277,0.554,0.559,0.401l3.457-1.916l3.456,1.916c-0.419-0.238,0.56,0.439,0.56-0.401l-0.725-3.947l2.863-2.759C16.388,10.604,16.254,10.22,15.94,10.179M10.381,2.778h3.902l-1.536,6.977L12.036,9.66l-1.655-3.546V2.778z\
\ M5.717,2.778h3.903v3.335L7.965,9.66L7.268,9.753L5.717,2.778zM12.618,13.182c-0.092,0.088-0.134,0.217-0.11,0.343l0.615,3.356l-2.938-1.629c-0.057-0.03-0.122-0.048-0.184-0.048c-0.063,0-0.128,0.018-0.185,0.048l-2.938,1.629l0.616-3.356c0.022-0.126-0.019-0.255-0.11-0.343l-2.441-2.354l3.329-0.441c0.128-0.017,0.24-0.099,0.295-0.215l1.435-3.073l1.435,3.073c0.055,0.116,0.167,0.198,0.294,0.215l3.329,0.441L12.618,13.182z\"\
></path>\n</svg>\nConversions</a>\n</nav>\n</div>"
row: 0
col: 0
width: 24
height: 4
filters:
- name: Date
title: Date
type: field_filter
default_value: 14 day
allow_multiple_values: true
required: false
ui_config:
type: relative_timeframes
display: inline
options: []
model: ga4
explore: sessions
listens_to_filters: []
field: sessions.session_date
- name: Audience Cohort [Required]
title: Audience Cohort [Required]
type: field_filter
default_value: Channel
allow_multiple_values: true
required: true
ui_config:
type: dropdown_menu
display: inline
options:
- Channel
- Medium
- Source
- Source Medium
model: ga4
explore: sessions
listens_to_filters: []
field: sessions.audience_selector
- name: Country [Optional]
title: Country [Optional]
type: field_filter
default_value: ''
allow_multiple_values: true
required: false
ui_config:
type: tag_list
display: popover
options: []
model: ga4
explore: sessions
listens_to_filters: []
field: sessions.geo_data_country
- name: Continent [Optional]
title: Continent [Optional]
type: field_filter
default_value: ''
allow_multiple_values: true
required: false
ui_config:
type: checkboxes
display: popover
options: []
model: ga4
explore: sessions
listens_to_filters: []
field: sessions.geo_data_continent
- name: Source [Optional]
title: Source [Optional]
type: field_filter
default_value: ''
allow_multiple_values: true
required: false
ui_config:
type: tag_list
display: popover
options: []
model: ga4
explore: sessions
listens_to_filters: []
field: sessions.session_attribution_source
- name: Source / Medium [Optional]
title: Source / Medium [Optional]
type: field_filter
default_value: ''
allow_multiple_values: true
required: false
ui_config:
type: tag_list
display: popover
options: []
model: ga4
explore: sessions
listens_to_filters: []
field: sessions.session_attribution_source_medium
- name: Medium [Optional]
title: Medium [Optional]
type: field_filter
default_value: ''
allow_multiple_values: true
required: false
ui_config:
type: tag_list
display: popover
options: []
model: ga4
explore: sessions
listens_to_filters: []
field: sessions.session_attribution_medium
- name: Channel [Optional]
title: Channel [Optional]
type: field_filter
default_value: ''
allow_multiple_values: true
required: false
ui_config:
type: checkboxes
display: popover
options: []
model: ga4
explore: sessions
listens_to_filters: []
field: sessions.session_attribution_channel
| LookML | 3 | bcmu/ga_four | dashboards/acquisition.dashboard.lookml | [
"MIT"
] |
create temporary view nt1 as select * from values
("one", 1),
("two", 2),
("three", 3)
as nt1(k, v1);
create temporary view nt2 as select * from values
("one", 1),
("two", 22),
("one", 5)
as nt2(k, v2);
create temporary view nt3 as select * from values
("one", 4),
("two", 5),
("one", 6)
as nt3(k, v3);
create temporary view nt4 as select * from values
("one", 7),
("two", 8),
("one", 9)
as nt4(k, v4);
SELECT * FROM nt1 natural join nt2;
SELECT * FROM nt1 natural join nt2 where k = "one";
SELECT * FROM nt1 natural left join nt2 order by v1, v2;
SELECT * FROM nt1 natural right join nt2 order by v1, v2;
SELECT count(*) FROM nt1 natural full outer join nt2;
SELECT k FROM nt1 natural join nt2;
SELECT k FROM nt1 natural join nt2 where k = "one";
SELECT nt1.* FROM nt1 natural join nt2;
SELECT nt2.* FROM nt1 natural join nt2;
SELECT sbq.* from (SELECT * FROM nt1 natural join nt2) sbq;
SELECT sbq.k from (SELECT * FROM nt1 natural join nt2) sbq;
SELECT nt1.*, nt2.* FROM nt1 natural join nt2;
SELECT *, nt2.k FROM nt1 natural join nt2;
SELECT nt1.k, nt2.k FROM nt1 natural join nt2;
SELECT nt1.k, nt2.k FROM nt1 natural join nt2 where k = "one";
SELECT * FROM (SELECT * FROM nt1 natural join nt2);
SELECT * FROM (SELECT nt1.*, nt2.* FROM nt1 natural join nt2);
SELECT * FROM (SELECT nt1.v1, nt2.k FROM nt1 natural join nt2);
SELECT nt2.k FROM (SELECT * FROM nt1 natural join nt2);
SELECT * FROM nt1 natural join nt2 natural join nt3;
SELECT nt1.*, nt2.*, nt3.* FROM nt1 natural join nt2 natural join nt3;
SELECT nt1.*, nt2.*, nt3.* FROM nt1 natural join nt2 join nt3 on nt2.k = nt3.k;
SELECT * FROM nt1 natural join nt2 join nt3 on nt1.k = nt3.k;
SELECT * FROM nt1 natural join nt2 join nt3 on nt2.k = nt3.k;
SELECT nt1.*, nt2.*, nt3.*, nt4.* FROM nt1 natural join nt2 natural join nt3 natural join nt4;
| SQL | 4 | akhalymon-cv/spark | sql/core/src/test/resources/sql-tests/inputs/natural-join.sql | [
"Apache-2.0"
] |
/*
* Copyright 2012-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.boot.buildpack.platform.docker.ssl;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.security.cert.X509Certificate;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatIllegalStateException;
/**
* Tests for {@link CertificateParser}.
*
* @author Scott Frederick
*/
class CertificateParserTests {
private PemFileWriter fileWriter;
@BeforeEach
void setUp() throws IOException {
this.fileWriter = new PemFileWriter();
}
@AfterEach
void tearDown() throws IOException {
this.fileWriter.cleanup();
}
@Test
void parseCertificates() throws IOException {
Path caPath = this.fileWriter.writeFile("ca.pem", PemFileWriter.CA_CERTIFICATE);
Path certPath = this.fileWriter.writeFile("cert.pem", PemFileWriter.CERTIFICATE);
X509Certificate[] certificates = CertificateParser.parse(caPath, certPath);
assertThat(certificates).isNotNull();
assertThat(certificates.length).isEqualTo(2);
assertThat(certificates[0].getType()).isEqualTo("X.509");
assertThat(certificates[1].getType()).isEqualTo("X.509");
}
@Test
void parseCertificateChain() throws IOException {
Path path = this.fileWriter.writeFile("ca.pem", PemFileWriter.CA_CERTIFICATE, PemFileWriter.CERTIFICATE);
X509Certificate[] certificates = CertificateParser.parse(path);
assertThat(certificates).isNotNull();
assertThat(certificates.length).isEqualTo(2);
assertThat(certificates[0].getType()).isEqualTo("X.509");
assertThat(certificates[1].getType()).isEqualTo("X.509");
}
@Test
void parseWithInvalidPathWillThrowException() throws URISyntaxException {
Path path = Paths.get(new URI("file:///bad/path/cert.pem"));
assertThatIllegalStateException().isThrownBy(() -> CertificateParser.parse(path))
.withMessageContaining(path.toString());
}
}
| Java | 4 | techAi007/spring-boot | spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/docker/ssl/CertificateParserTests.java | [
"Apache-2.0"
] |
static const q7_t in_com1[128] = {
0xF3, 0xAE, 0x42, 0x21, 0x19, 0xE2, 0x32, 0x15,
0xF9, 0xC4, 0xB6, 0xE3, 0xE1, 0x49, 0x2F, 0x1A,
0xF9, 0xE0, 0x28, 0xEA, 0xF1, 0x41, 0x7F, 0x32,
0xD5, 0x04, 0xBF, 0x0B, 0xD0, 0xBC, 0x16, 0x20,
0xBD, 0x08, 0xD8, 0xF4, 0x2E, 0x13, 0xFB, 0xC4,
0x26, 0xF2, 0x05, 0x0E, 0xA9, 0x09, 0xDE, 0x42,
0x30, 0xFC, 0x16, 0xDB, 0x17, 0xD8, 0x02, 0x2C,
0xFD, 0x05, 0xEF, 0x02, 0x13, 0xDA, 0x03, 0x2D,
0x24, 0x0D, 0x0D, 0xE8, 0xF4, 0xB5, 0xF6, 0xB6,
0x1C, 0xDE, 0x09, 0x03, 0xF0, 0xCD, 0x0B, 0xB0,
0x1D, 0x1C, 0x09, 0xBE, 0x0C, 0xA5, 0x15, 0x28,
0xF3, 0x2A, 0x18, 0x03, 0x00, 0xC9, 0x1E, 0xC5,
0xF5, 0x37, 0x2A, 0x93, 0x24, 0xF8, 0xDE, 0xEE,
0xEA, 0xF2, 0x21, 0x5A, 0xD0, 0x01, 0x0C, 0xD5,
0x39, 0x41, 0x31, 0x06, 0xD0, 0x46, 0xA0, 0x21,
0xDB, 0x0F, 0x27, 0x4A, 0x04, 0xDC, 0xE7, 0xE9
};
static const q7_t in_com2[128] = {
0xA2, 0x8D, 0xDE, 0x29, 0xD9, 0xBC, 0xC4, 0xF1,
0x42, 0x80, 0x08, 0xF9, 0xB5, 0xA2, 0xC7, 0x1C,
0x15, 0x24, 0x19, 0xF5, 0x16, 0x35, 0xF1, 0x09,
0xFE, 0x01, 0x12, 0x00, 0xEF, 0xC6, 0xAC, 0xDB,
0x29, 0xC6, 0xF0, 0x08, 0xF7, 0x17, 0xEB, 0x2B,
0x4B, 0x10, 0xF7, 0x1F, 0x00, 0xBC, 0x00, 0xEC,
0xBD, 0xCE, 0x29, 0xF4, 0x46, 0x57, 0xEB, 0x27,
0xED, 0xDE, 0xEE, 0x52, 0xE7, 0x26, 0x93, 0xBC,
0x2D, 0x07, 0xF4, 0x3D, 0xC2, 0xE2, 0xDC, 0x19,
0xE9, 0xE2, 0x27, 0x0B, 0x3C, 0x09, 0xDC, 0xD3,
0x14, 0xEA, 0xBF, 0x32, 0xFC, 0xAB, 0x1B, 0xE3,
0x06, 0xC0, 0xD7, 0xFF, 0x07, 0x34, 0x24, 0xEC,
0x29, 0xE1, 0x1B, 0x4B, 0x2C, 0xF0, 0xEE, 0x2F,
0xE6, 0xE3, 0xE2, 0x14, 0x35, 0x0D, 0x1B, 0xA6,
0xD5, 0x35, 0x05, 0x52, 0xBB, 0x65, 0xF4, 0x17,
0x04, 0xD9, 0x1A, 0x17, 0x09, 0x3C, 0x34, 0x5A
};
static const q7_t in_partial1[128] = {
0x21, 0xFB, 0xD3, 0x45, 0x01, 0x65, 0xEE, 0xE3,
0xF4, 0x12, 0xF5, 0xFB, 0x3D, 0x2B, 0xF6, 0xC5,
0xF8, 0x83, 0xE2, 0x07, 0x38, 0x2B, 0x08, 0x18,
0xF0, 0x31, 0x19, 0x12, 0x0C, 0xE4, 0xE2, 0x10,
0x02, 0x28, 0x03, 0x05, 0x0D, 0x20, 0x1A, 0x31,
0x22, 0xC8, 0xDC, 0xE0, 0x43, 0xDF, 0xEB, 0xFB,
0x1F, 0x28, 0x28, 0xB1, 0xDA, 0xE7, 0xD8, 0xEB,
0x37, 0xEF, 0xF7, 0xE2, 0x43, 0xCB, 0xA7, 0xDF,
0xE5, 0xD1, 0xFF, 0x20, 0x03, 0x0B, 0xFF, 0xEA,
0x57, 0xD8, 0xFC, 0x50, 0x0B, 0xD7, 0xC4, 0x05,
0xE3, 0xD1, 0xAE, 0x1A, 0x87, 0x1B, 0x23, 0xF5,
0xF9, 0x1C, 0x15, 0xF0, 0xDF, 0xFB, 0x18, 0xF6,
0xC9, 0x20, 0xA3, 0x18, 0x1F, 0xFA, 0x39, 0x17,
0xD7, 0x0E, 0x0B, 0x29, 0xFC, 0xDB, 0x21, 0x05,
0xE2, 0x4F, 0xFF, 0xD4, 0x01, 0xCF, 0x3C, 0x1A,
0x39, 0xF2, 0x24, 0x80, 0xF2, 0x3B, 0x15, 0x17
};
static const q7_t in_partial2[128] = {
0xF1, 0xD9, 0x12, 0x29, 0x07, 0xDD, 0xEB, 0x1E,
0x69, 0x24, 0xCA, 0x97, 0x41, 0x1E, 0xBD, 0xE5,
0x7F, 0xAC, 0x27, 0xE1, 0xE3, 0xE6, 0xDC, 0x19,
0x0F, 0x49, 0xC5, 0xFF, 0xFB, 0xE8, 0x8D, 0xF8,
0x0F, 0xE1, 0x10, 0xB7, 0x2A, 0xEE, 0x3E, 0x0D,
0xDC, 0x48, 0xFF, 0xF9, 0x30, 0xE8, 0xEC, 0xC1,
0x14, 0x50, 0x04, 0xAE, 0x15, 0x0C, 0xEB, 0xB9,
0x49, 0x50, 0x33, 0x1B, 0x09, 0x4C, 0x28, 0x55,
0xE9, 0xE4, 0x09, 0x36, 0xA8, 0x04, 0x02, 0x48,
0xFE, 0x0E, 0x03, 0xD7, 0xE2, 0x05, 0xAC, 0x1B,
0xED, 0xCA, 0xD1, 0x04, 0xF6, 0xD3, 0xD9, 0x1C,
0x02, 0x28, 0xFE, 0xA9, 0xB3, 0x13, 0xC9, 0x03,
0x06, 0xE5, 0xE1, 0xC1, 0x4E, 0x41, 0xCA, 0xBD,
0xE0, 0x0F, 0x2D, 0x16, 0xE4, 0x01, 0x30, 0xD4,
0xE7, 0x01, 0xE1, 0x90, 0x45, 0x10, 0xD8, 0x15,
0x01, 0x0F, 0xC4, 0x20, 0xCF, 0x05, 0xE4, 0xD0
};
static const q7_t ref_correlate_30_31[61] = {
0x08, 0x3C, 0xFC, 0xD8, 0xD6, 0xF8, 0xF3, 0xE5,
0xF2, 0x2C, 0x29, 0x4C, 0x42, 0xD7, 0x9E, 0xDF,
0x0D, 0x61, 0x1B, 0xE0, 0xC1, 0xB6, 0xD1, 0x80,
0xC0, 0x35, 0x7F, 0x48, 0x51, 0x7A, 0x65, 0xFB,
0x80, 0x0C, 0x20, 0x3F, 0x06, 0x00, 0xA0, 0x80,
0x1B, 0x0D, 0xAA, 0x80, 0xEF, 0x6E, 0xDE, 0xF8,
0xB6, 0x74, 0x12, 0x80, 0xAF, 0x22, 0x63, 0x3A,
0x1D, 0x35, 0x60, 0x32, 0x00
};
static const q7_t ref_correlate_30_32[63] = {
0x04, 0x20, 0x28, 0xF2, 0xD0, 0xDF, 0xEA, 0xED,
0xE7, 0x04, 0x42, 0x31, 0x55, 0x2D, 0xC9, 0x96,
0xE1, 0x17, 0x56, 0x22, 0xE4, 0xAE, 0x90, 0xC2,
0x80, 0xBF, 0x48, 0x7F, 0x56, 0x64, 0x7A, 0x65,
0xFB, 0x80, 0x0C, 0x20, 0x3F, 0x06, 0x00, 0xA0,
0x80, 0x1B, 0x0D, 0xAA, 0x80, 0xEF, 0x6E, 0xDE,
0xF8, 0xB6, 0x74, 0x12, 0x80, 0xAF, 0x22, 0x63,
0x3A, 0x1D, 0x35, 0x60, 0x32, 0x00, 0x00
};
static const q7_t ref_correlate_30_33[65] = {
0xFC, 0xE9, 0x35, 0x33, 0xFA, 0xC7, 0xEF, 0xF1,
0xEB, 0xD4, 0xEC, 0x38, 0x28, 0x6C, 0x3C, 0xD2,
0x94, 0xD7, 0x23, 0x4F, 0x1D, 0xF9, 0xD7, 0xA0,
0xB4, 0x80, 0xAA, 0x4C, 0x7F, 0x40, 0x64, 0x7A,
0x65, 0xFB, 0x80, 0x0C, 0x20, 0x3F, 0x06, 0x00,
0xA0, 0x80, 0x1B, 0x0D, 0xAA, 0x80, 0xEF, 0x6E,
0xDE, 0xF8, 0xB6, 0x74, 0x12, 0x80, 0xAF, 0x22,
0x63, 0x3A, 0x1D, 0x35, 0x60, 0x32, 0x00, 0x00,
0x00
};
static const q7_t ref_correlate_30_34[67] = {
0x06, 0x21, 0xCB, 0x26, 0x27, 0x08, 0xB0, 0xE5,
0xF4, 0x06, 0xF6, 0xF9, 0x46, 0x07, 0x57, 0x30,
0xD5, 0xA3, 0xC5, 0x2D, 0x55, 0xFF, 0xBF, 0xC1,
0xB4, 0xB2, 0x80, 0xA5, 0x61, 0x7F, 0x40, 0x64,
0x7A, 0x65, 0xFB, 0x80, 0x0C, 0x20, 0x3F, 0x06,
0x00, 0xA0, 0x80, 0x1B, 0x0D, 0xAA, 0x80, 0xEF,
0x6E, 0xDE, 0xF8, 0xB6, 0x74, 0x12, 0x80, 0xAF,
0x22, 0x63, 0x3A, 0x1D, 0x35, 0x60, 0x32, 0x00,
0x00, 0x00, 0x00
};
static const q7_t ref_correlate_30_49[97] = {
0x07, 0x2D, 0xEB, 0xEB, 0x19, 0xE6, 0xC6, 0xF4,
0x02, 0xDD, 0x2D, 0x65, 0x33, 0x0B, 0xED, 0x25,
0xDF, 0x95, 0xD6, 0x17, 0x11, 0x96, 0xD6, 0xEB,
0xF9, 0xA6, 0x27, 0x77, 0x06, 0x7F, 0x7F, 0x1B,
0xB7, 0xB1, 0x0A, 0x39, 0xE0, 0x80, 0xBE, 0xB1,
0xB2, 0x80, 0xA7, 0x6A, 0x7F, 0x40, 0x64, 0x7A,
0x65, 0xFB, 0x80, 0x0C, 0x20, 0x3F, 0x06, 0x00,
0xA0, 0x80, 0x1B, 0x0D, 0xAA, 0x80, 0xEF, 0x6E,
0xDE, 0xF8, 0xB6, 0x74, 0x12, 0x80, 0xAF, 0x22,
0x63, 0x3A, 0x1D, 0x35, 0x60, 0x32, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00
};
static const q7_t ref_correlate_31_31[61] = {
0x08, 0x3C, 0xFC, 0xD8, 0xD6, 0xF8, 0xF3, 0xE5,
0xF2, 0x2C, 0x29, 0x4C, 0x42, 0xD7, 0x9E, 0xDF,
0x0D, 0x61, 0x1B, 0xE0, 0xC1, 0xB6, 0xD1, 0x80,
0xC0, 0x35, 0x7F, 0x48, 0x51, 0x7A, 0x56, 0xF0,
0x80, 0x0C, 0x23, 0x40, 0x05, 0x01, 0x9D, 0x80,
0x1F, 0x0C, 0xAF, 0x80, 0xF3, 0x73, 0xD4, 0xE8,
0xA9, 0x72, 0x13, 0x80, 0xBB, 0x20, 0x58, 0x2E,
0x17, 0x3C, 0x5A, 0x1E, 0xF0
};
static const q7_t ref_correlate_31_32[63] = {
0x04, 0x20, 0x28, 0xF2, 0xD0, 0xDF, 0xEA, 0xED,
0xE7, 0x04, 0x42, 0x31, 0x55, 0x2D, 0xC9, 0x96,
0xE1, 0x17, 0x56, 0x22, 0xE4, 0xAE, 0x90, 0xC2,
0x80, 0xBF, 0x48, 0x7F, 0x56, 0x64, 0x74, 0x56,
0xF0, 0x80, 0x0C, 0x23, 0x40, 0x05, 0x01, 0x9D,
0x80, 0x1F, 0x0C, 0xAF, 0x80, 0xF3, 0x73, 0xD4,
0xE8, 0xA9, 0x72, 0x13, 0x80, 0xBB, 0x20, 0x58,
0x2E, 0x17, 0x3C, 0x5A, 0x1E, 0xF0, 0x00
};
static const q7_t ref_correlate_31_33[65] = {
0xFC, 0xE9, 0x35, 0x33, 0xFA, 0xC7, 0xEF, 0xF1,
0xEB, 0xD4, 0xEC, 0x38, 0x28, 0x6C, 0x3C, 0xD2,
0x94, 0xD7, 0x23, 0x4F, 0x1D, 0xF9, 0xD7, 0xA0,
0xB4, 0x80, 0xAA, 0x4C, 0x7F, 0x40, 0x6B, 0x74,
0x56, 0xF0, 0x80, 0x0C, 0x23, 0x40, 0x05, 0x01,
0x9D, 0x80, 0x1F, 0x0C, 0xAF, 0x80, 0xF3, 0x73,
0xD4, 0xE8, 0xA9, 0x72, 0x13, 0x80, 0xBB, 0x20,
0x58, 0x2E, 0x17, 0x3C, 0x5A, 0x1E, 0xF0, 0x00,
0x00
};
static const q7_t ref_correlate_31_34[67] = {
0x06, 0x21, 0xCB, 0x26, 0x27, 0x08, 0xB0, 0xE5,
0xF4, 0x06, 0xF6, 0xF9, 0x46, 0x07, 0x57, 0x30,
0xD5, 0xA3, 0xC5, 0x2D, 0x55, 0xFF, 0xBF, 0xC1,
0xB4, 0xB2, 0x80, 0xA5, 0x61, 0x7F, 0x36, 0x6B,
0x74, 0x56, 0xF0, 0x80, 0x0C, 0x23, 0x40, 0x05,
0x01, 0x9D, 0x80, 0x1F, 0x0C, 0xAF, 0x80, 0xF3,
0x73, 0xD4, 0xE8, 0xA9, 0x72, 0x13, 0x80, 0xBB,
0x20, 0x58, 0x2E, 0x17, 0x3C, 0x5A, 0x1E, 0xF0,
0x00, 0x00, 0x00
};
static const q7_t ref_correlate_31_49[97] = {
0x07, 0x2D, 0xEB, 0xEB, 0x19, 0xE6, 0xC6, 0xF4,
0x02, 0xDD, 0x2D, 0x65, 0x33, 0x0B, 0xED, 0x25,
0xDF, 0x95, 0xD6, 0x17, 0x11, 0x96, 0xD6, 0xEB,
0xF9, 0xA6, 0x27, 0x77, 0x06, 0x7F, 0x7F, 0x18,
0xB7, 0xA5, 0x0A, 0x3E, 0xDF, 0x80, 0xCB, 0xB9,
0xAE, 0x80, 0xA5, 0x6B, 0x7F, 0x36, 0x6B, 0x74,
0x56, 0xF0, 0x80, 0x0C, 0x23, 0x40, 0x05, 0x01,
0x9D, 0x80, 0x1F, 0x0C, 0xAF, 0x80, 0xF3, 0x73,
0xD4, 0xE8, 0xA9, 0x72, 0x13, 0x80, 0xBB, 0x20,
0x58, 0x2E, 0x17, 0x3C, 0x5A, 0x1E, 0xF0, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00
};
static const q7_t ref_correlate_32_31[63] = {
0x00, 0x08, 0x3C, 0xFC, 0xD8, 0xD6, 0xF8, 0xF3,
0xE5, 0xF2, 0x2C, 0x29, 0x4C, 0x42, 0xD7, 0x9E,
0xDF, 0x0D, 0x61, 0x1B, 0xE0, 0xC1, 0xB6, 0xD1,
0x80, 0xC0, 0x35, 0x7F, 0x48, 0x51, 0x7A, 0x56,
0xDC, 0x80, 0x07, 0x24, 0x44, 0x05, 0x01, 0x9F,
0x80, 0x2C, 0x11, 0xAC, 0x80, 0xFC, 0x78, 0xDB,
0xDA, 0x91, 0x60, 0x11, 0x80, 0x9B, 0x30, 0x55,
0x1F, 0x06, 0x32, 0x64, 0x15, 0xD3, 0xE9
};
static const q7_t ref_correlate_32_32[63] = {
0x04, 0x20, 0x28, 0xF2, 0xD0, 0xDF, 0xEA, 0xED,
0xE7, 0x04, 0x42, 0x31, 0x55, 0x2D, 0xC9, 0x96,
0xE1, 0x17, 0x56, 0x22, 0xE4, 0xAE, 0x90, 0xC2,
0x80, 0xBF, 0x48, 0x7F, 0x56, 0x64, 0x74, 0x4D,
0xDC, 0x80, 0x07, 0x24, 0x44, 0x05, 0x01, 0x9F,
0x80, 0x2C, 0x11, 0xAC, 0x80, 0xFC, 0x78, 0xDB,
0xDA, 0x91, 0x60, 0x11, 0x80, 0x9B, 0x30, 0x55,
0x1F, 0x06, 0x32, 0x64, 0x15, 0xD3, 0xE9
};
static const q7_t ref_correlate_32_33[65] = {
0xFC, 0xE9, 0x35, 0x33, 0xFA, 0xC7, 0xEF, 0xF1,
0xEB, 0xD4, 0xEC, 0x38, 0x28, 0x6C, 0x3C, 0xD2,
0x94, 0xD7, 0x23, 0x4F, 0x1D, 0xF9, 0xD7, 0xA0,
0xB4, 0x80, 0xAA, 0x4C, 0x7F, 0x40, 0x6B, 0x7E,
0x4D, 0xDC, 0x80, 0x07, 0x24, 0x44, 0x05, 0x01,
0x9F, 0x80, 0x2C, 0x11, 0xAC, 0x80, 0xFC, 0x78,
0xDB, 0xDA, 0x91, 0x60, 0x11, 0x80, 0x9B, 0x30,
0x55, 0x1F, 0x06, 0x32, 0x64, 0x15, 0xD3, 0xE9,
0x00
};
static const q7_t ref_correlate_32_34[67] = {
0x06, 0x21, 0xCB, 0x26, 0x27, 0x08, 0xB0, 0xE5,
0xF4, 0x06, 0xF6, 0xF9, 0x46, 0x07, 0x57, 0x30,
0xD5, 0xA3, 0xC5, 0x2D, 0x55, 0xFF, 0xBF, 0xC1,
0xB4, 0xB2, 0x80, 0xA5, 0x61, 0x7F, 0x36, 0x5D,
0x7E, 0x4D, 0xDC, 0x80, 0x07, 0x24, 0x44, 0x05,
0x01, 0x9F, 0x80, 0x2C, 0x11, 0xAC, 0x80, 0xFC,
0x78, 0xDB, 0xDA, 0x91, 0x60, 0x11, 0x80, 0x9B,
0x30, 0x55, 0x1F, 0x06, 0x32, 0x64, 0x15, 0xD3,
0xE9, 0x00, 0x00
};
static const q7_t ref_correlate_32_49[97] = {
0x07, 0x2D, 0xEB, 0xEB, 0x19, 0xE6, 0xC6, 0xF4,
0x02, 0xDD, 0x2D, 0x65, 0x33, 0x0B, 0xED, 0x25,
0xDF, 0x95, 0xD6, 0x17, 0x11, 0x96, 0xD6, 0xEB,
0xF9, 0xA6, 0x27, 0x77, 0x06, 0x7F, 0x7F, 0x07,
0xB2, 0xA5, 0xF9, 0x3E, 0xE6, 0x80, 0xCF, 0xCC,
0xB9, 0x80, 0xAB, 0x69, 0x7F, 0x32, 0x5D, 0x7E,
0x4D, 0xDC, 0x80, 0x07, 0x24, 0x44, 0x05, 0x01,
0x9F, 0x80, 0x2C, 0x11, 0xAC, 0x80, 0xFC, 0x78,
0xDB, 0xDA, 0x91, 0x60, 0x11, 0x80, 0x9B, 0x30,
0x55, 0x1F, 0x06, 0x32, 0x64, 0x15, 0xD3, 0xE9,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00
};
static const q7_t ref_correlate_33_31[65] = {
0x00, 0x00, 0x08, 0x3C, 0xFC, 0xD8, 0xD6, 0xF8,
0xF3, 0xE5, 0xF2, 0x2C, 0x29, 0x4C, 0x42, 0xD7,
0x9E, 0xDF, 0x0D, 0x61, 0x1B, 0xE0, 0xC1, 0xB6,
0xD1, 0x80, 0xC0, 0x35, 0x7F, 0x48, 0x51, 0x7A,
0x56, 0xDC, 0x8D, 0x26, 0x2C, 0x44, 0xFC, 0x01,
0xA0, 0x80, 0x34, 0xF6, 0xA0, 0x80, 0xEF, 0x65,
0xD0, 0xCB, 0xAF, 0x7F, 0x38, 0x80, 0x97, 0x73,
0x32, 0x27, 0x25, 0x56, 0x78, 0x00, 0xE5, 0x25,
0x31
};
static const q7_t ref_correlate_33_32[65] = {
0x00, 0x04, 0x20, 0x28, 0xF2, 0xD0, 0xDF, 0xEA,
0xED, 0xE7, 0x04, 0x42, 0x31, 0x55, 0x2D, 0xC9,
0x96, 0xE1, 0x17, 0x56, 0x22, 0xE4, 0xAE, 0x90,
0xC2, 0x80, 0xBF, 0x48, 0x7F, 0x56, 0x64, 0x74,
0x4D, 0xEF, 0x8D, 0x26, 0x2C, 0x44, 0xFC, 0x01,
0xA0, 0x80, 0x34, 0xF6, 0xA0, 0x80, 0xEF, 0x65,
0xD0, 0xCB, 0xAF, 0x7F, 0x38, 0x80, 0x97, 0x73,
0x32, 0x27, 0x25, 0x56, 0x78, 0x00, 0xE5, 0x25,
0x31
};
static const q7_t ref_correlate_33_33[65] = {
0xFC, 0xE9, 0x35, 0x33, 0xFA, 0xC7, 0xEF, 0xF1,
0xEB, 0xD4, 0xEC, 0x38, 0x28, 0x6C, 0x3C, 0xD2,
0x94, 0xD7, 0x23, 0x4F, 0x1D, 0xF9, 0xD7, 0xA0,
0xB4, 0x80, 0xAA, 0x4C, 0x7F, 0x40, 0x6B, 0x7E,
0x38, 0xEF, 0x8D, 0x26, 0x2C, 0x44, 0xFC, 0x01,
0xA0, 0x80, 0x34, 0xF6, 0xA0, 0x80, 0xEF, 0x65,
0xD0, 0xCB, 0xAF, 0x7F, 0x38, 0x80, 0x97, 0x73,
0x32, 0x27, 0x25, 0x56, 0x78, 0x00, 0xE5, 0x25,
0x31
};
static const q7_t ref_correlate_33_34[67] = {
0x06, 0x21, 0xCB, 0x26, 0x27, 0x08, 0xB0, 0xE5,
0xF4, 0x06, 0xF6, 0xF9, 0x46, 0x07, 0x57, 0x30,
0xD5, 0xA3, 0xC5, 0x2D, 0x55, 0xFF, 0xBF, 0xC1,
0xB4, 0xB2, 0x80, 0xA5, 0x61, 0x7F, 0x36, 0x5D,
0x7F, 0x38, 0xEF, 0x8D, 0x26, 0x2C, 0x44, 0xFC,
0x01, 0xA0, 0x80, 0x34, 0xF6, 0xA0, 0x80, 0xEF,
0x65, 0xD0, 0xCB, 0xAF, 0x7F, 0x38, 0x80, 0x97,
0x73, 0x32, 0x27, 0x25, 0x56, 0x78, 0x00, 0xE5,
0x25, 0x31, 0x00
};
static const q7_t ref_correlate_33_49[97] = {
0x07, 0x2D, 0xEB, 0xEB, 0x19, 0xE6, 0xC6, 0xF4,
0x02, 0xDD, 0x2D, 0x65, 0x33, 0x0B, 0xED, 0x25,
0xDF, 0x95, 0xD6, 0x17, 0x11, 0x96, 0xD6, 0xEB,
0xF9, 0xA6, 0x27, 0x77, 0x06, 0x7F, 0x7F, 0x07,
0xD5, 0xAF, 0xF9, 0x62, 0xE6, 0x80, 0xD4, 0xC3,
0x92, 0x80, 0xB6, 0x5D, 0x7F, 0x2E, 0x65, 0x7F,
0x38, 0xEF, 0x8D, 0x26, 0x2C, 0x44, 0xFC, 0x01,
0xA0, 0x80, 0x34, 0xF6, 0xA0, 0x80, 0xEF, 0x65,
0xD0, 0xCB, 0xAF, 0x7F, 0x38, 0x80, 0x97, 0x73,
0x32, 0x27, 0x25, 0x56, 0x78, 0x00, 0xE5, 0x25,
0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00
};
static const q7_t ref_correlate_48_31[95] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x08, 0x3C, 0xFC, 0xD8, 0xD6, 0xF8, 0xF3,
0xE5, 0xF2, 0x2C, 0x29, 0x4C, 0x42, 0xD7, 0x9E,
0xDF, 0x0D, 0x61, 0x1B, 0xE0, 0xC1, 0xB6, 0xD1,
0x80, 0xC0, 0x35, 0x7F, 0x48, 0x51, 0x7A, 0x56,
0xDC, 0x8D, 0x21, 0x43, 0x5D, 0xE8, 0xE2, 0x8F,
0x80, 0x3F, 0xF5, 0xA4, 0x80, 0x15, 0x7F, 0xF5,
0xAB, 0x80, 0x7F, 0x52, 0x80, 0xAF, 0x28, 0xF4,
0x61, 0x40, 0x2C, 0x6D, 0x0C, 0x46, 0xEA, 0x7F,
0x35, 0x05, 0x17, 0x80, 0x43, 0xF7, 0x5B, 0x12,
0xD6, 0xF1, 0x22, 0x56, 0x07, 0xDE, 0xCF
};
static const q7_t ref_correlate_48_32[95] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x04, 0x20, 0x28, 0xF2, 0xD0, 0xDF, 0xEA, 0xED,
0xE7, 0x04, 0x42, 0x31, 0x55, 0x2D, 0xC9, 0x96,
0xE1, 0x17, 0x56, 0x22, 0xE4, 0xAE, 0x90, 0xC2,
0x80, 0xBF, 0x48, 0x7F, 0x56, 0x64, 0x74, 0x4D,
0xEF, 0x8B, 0x2C, 0x47, 0x4F, 0xE3, 0xE3, 0xA1,
0x80, 0x43, 0xF3, 0xA0, 0x80, 0x12, 0x7F, 0xE2,
0xAB, 0x80, 0x7F, 0x52, 0x80, 0xAF, 0x28, 0xF4,
0x61, 0x40, 0x2C, 0x6D, 0x0C, 0x46, 0xEA, 0x7F,
0x35, 0x05, 0x17, 0x80, 0x43, 0xF7, 0x5B, 0x12,
0xD6, 0xF1, 0x22, 0x56, 0x07, 0xDE, 0xCF
};
static const q7_t ref_correlate_48_33[95] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFC,
0xE9, 0x35, 0x33, 0xFA, 0xC7, 0xEF, 0xF1, 0xEB,
0xD4, 0xEC, 0x38, 0x28, 0x6C, 0x3C, 0xD2, 0x94,
0xD7, 0x23, 0x4F, 0x1D, 0xF9, 0xD7, 0xA0, 0xB4,
0x80, 0xAA, 0x4C, 0x7F, 0x40, 0x6B, 0x7E, 0x38,
0xF1, 0x80, 0x29, 0x55, 0x55, 0xE1, 0xD0, 0xAD,
0x80, 0x44, 0xF8, 0x84, 0x80, 0x08, 0x7F, 0xE2,
0xAB, 0x80, 0x7F, 0x52, 0x80, 0xAF, 0x28, 0xF4,
0x61, 0x40, 0x2C, 0x6D, 0x0C, 0x46, 0xEA, 0x7F,
0x35, 0x05, 0x17, 0x80, 0x43, 0xF7, 0x5B, 0x12,
0xD6, 0xF1, 0x22, 0x56, 0x07, 0xDE, 0xCF
};
static const q7_t ref_correlate_48_34[95] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x21,
0xCB, 0x26, 0x27, 0x08, 0xB0, 0xE5, 0xF4, 0x06,
0xF6, 0xF9, 0x46, 0x07, 0x57, 0x30, 0xD5, 0xA3,
0xC5, 0x2D, 0x55, 0xFF, 0xBF, 0xC1, 0xB4, 0xB2,
0x80, 0xA5, 0x61, 0x7F, 0x36, 0x5D, 0x7F, 0x34,
0x04, 0x84, 0x13, 0x4D, 0x58, 0xFC, 0xBF, 0xB3,
0x80, 0x3E, 0x20, 0x80, 0x80, 0xE9, 0x7F, 0xE2,
0xAB, 0x80, 0x7F, 0x52, 0x80, 0xAF, 0x28, 0xF4,
0x61, 0x40, 0x2C, 0x6D, 0x0C, 0x46, 0xEA, 0x7F,
0x35, 0x05, 0x17, 0x80, 0x43, 0xF7, 0x5B, 0x12,
0xD6, 0xF1, 0x22, 0x56, 0x07, 0xDE, 0xCF
};
static const q7_t ref_correlate_48_49[97] = {
0x07, 0x2D, 0xEB, 0xEB, 0x19, 0xE6, 0xC6, 0xF4,
0x02, 0xDD, 0x2D, 0x65, 0x33, 0x0B, 0xED, 0x25,
0xDF, 0x95, 0xD6, 0x17, 0x11, 0x96, 0xD6, 0xEB,
0xF9, 0xA6, 0x27, 0x77, 0x06, 0x7F, 0x7F, 0x07,
0xD5, 0xAB, 0x0D, 0x6E, 0xCC, 0x80, 0xDC, 0xC0,
0x80, 0x80, 0xC0, 0x2E, 0x7F, 0x57, 0x5D, 0x7F,
0x2E, 0x11, 0x80, 0x14, 0x29, 0x40, 0xFE, 0xCA,
0xD7, 0x80, 0x58, 0x18, 0x88, 0x80, 0xE9, 0x7F,
0xE2, 0xAB, 0x80, 0x7F, 0x52, 0x80, 0xAF, 0x28,
0xF4, 0x61, 0x40, 0x2C, 0x6D, 0x0C, 0x46, 0xEA,
0x7F, 0x35, 0x05, 0x17, 0x80, 0x43, 0xF7, 0x5B,
0x12, 0xD6, 0xF1, 0x22, 0x56, 0x07, 0xDE, 0xCF,
0x00
};
static const q7_t ref_conv_30_31[60] = {
0x09, 0x48, 0x1D, 0xBE, 0xA8, 0x2C, 0x18, 0xCF,
0xA6, 0x02, 0x7F, 0x1B, 0x10, 0xEB, 0x25, 0xA7,
0xCF, 0x0A, 0xE0, 0xD5, 0xE2, 0x4B, 0x85, 0xCC,
0x1A, 0x13, 0xC8, 0x80, 0xCC, 0x7F, 0x7F, 0xD5,
0x94, 0x31, 0xAD, 0xD4, 0x81, 0x22, 0x7F, 0x7F,
0x7F, 0x51, 0x50, 0xF0, 0xBD, 0xD3, 0xEB, 0xE8,
0x0F, 0xEE, 0xC1, 0x9A, 0x8F, 0xF5, 0x1C, 0x10,
0x2C, 0x18, 0x3E, 0x2C
};
static const q7_t ref_conv_30_32[61] = {
0x09, 0x48, 0x1D, 0xBE, 0xA8, 0x2C, 0x18, 0xCF,
0xA6, 0x02, 0x7F, 0x1B, 0x10, 0xEB, 0x25, 0xA7,
0xCF, 0x0A, 0xE0, 0xD5, 0xE2, 0x4B, 0x85, 0xCC,
0x1A, 0x13, 0xC8, 0x80, 0xCC, 0x7F, 0x7F, 0xD8,
0xAC, 0x1E, 0xA3, 0xCD, 0x8A, 0x13, 0x7F, 0x7F,
0x7F, 0x67, 0x58, 0xF9, 0xA8, 0xC5, 0xE4, 0xEB,
0x18, 0xE2, 0xC7, 0x9E, 0x80, 0xD0, 0x0E, 0x1C,
0x2B, 0x2B, 0x3B, 0x3A, 0x14
};
static const q7_t ref_conv_30_33[62] = {
0x09, 0x48, 0x1D, 0xBE, 0xA8, 0x2C, 0x18, 0xCF,
0xA6, 0x02, 0x7F, 0x1B, 0x10, 0xEB, 0x25, 0xA7,
0xCF, 0x0A, 0xE0, 0xD5, 0xE2, 0x4B, 0x85, 0xCC,
0x1A, 0x13, 0xC8, 0x80, 0xCC, 0x7F, 0x7F, 0xD8,
0xA8, 0x03, 0xB8, 0xD7, 0x92, 0x0A, 0x7F, 0x7F,
0x7F, 0x54, 0x40, 0xF0, 0x9E, 0xDD, 0xF3, 0xF3,
0x16, 0xD8, 0xD4, 0x97, 0x80, 0xE5, 0x37, 0x2C,
0x1D, 0x2C, 0x26, 0x3D, 0x04, 0xEA
};
static const q7_t ref_conv_30_34[63] = {
0x09, 0x48, 0x1D, 0xBE, 0xA8, 0x2C, 0x18, 0xCF,
0xA6, 0x02, 0x7F, 0x1B, 0x10, 0xEB, 0x25, 0xA7,
0xCF, 0x0A, 0xE0, 0xD5, 0xE2, 0x4B, 0x85, 0xCC,
0x1A, 0x13, 0xC8, 0x80, 0xCC, 0x7F, 0x7F, 0xD8,
0xA8, 0x09, 0xDE, 0xB9, 0x83, 0xFE, 0x7F, 0x7F,
0x7F, 0x57, 0x5C, 0x11, 0xAC, 0xEB, 0xD2, 0xDD,
0x0A, 0xDB, 0xE3, 0x85, 0x81, 0xEB, 0x19, 0xF2,
0x06, 0x40, 0x24, 0x5B, 0x00, 0x00, 0x1F
};
static const q7_t ref_conv_30_49[78] = {
0x09, 0x48, 0x1D, 0xBE, 0xA8, 0x2C, 0x18, 0xCF,
0xA6, 0x02, 0x7F, 0x1B, 0x10, 0xEB, 0x25, 0xA7,
0xCF, 0x0A, 0xE0, 0xD5, 0xE2, 0x4B, 0x85, 0xCC,
0x1A, 0x13, 0xC8, 0x80, 0xCC, 0x7F, 0x7F, 0xD8,
0xA8, 0x09, 0xE0, 0xC3, 0x80, 0x02, 0x7F, 0x7F,
0x5A, 0x3D, 0x79, 0x4C, 0x9D, 0x00, 0x22, 0xC9,
0xF4, 0xB7, 0xA5, 0x80, 0x80, 0x1F, 0x3D, 0x1A,
0x10, 0x7D, 0x4A, 0x50, 0xF5, 0x1C, 0x7F, 0xED,
0x15, 0x0F, 0xB4, 0xB9, 0xB8, 0xA2, 0xB1, 0x09,
0x00, 0x21, 0x44, 0x02, 0x24, 0x23
};
static const q7_t ref_conv_31_31[61] = {
0x09, 0x48, 0x1D, 0xBE, 0xA8, 0x2C, 0x18, 0xCF,
0xA6, 0x02, 0x7F, 0x1B, 0x10, 0xEB, 0x25, 0xA7,
0xCF, 0x0A, 0xE0, 0xD5, 0xE2, 0x4B, 0x85, 0xCC,
0x1A, 0x13, 0xC8, 0x80, 0xCC, 0x7F, 0x7F, 0xC1,
0x8E, 0x38, 0xA6, 0xC8, 0x80, 0x1F, 0x7F, 0x7F,
0x7F, 0x50, 0x43, 0xE0, 0xB3, 0xD8, 0xEF, 0xEF,
0x13, 0xEC, 0xC5, 0xA3, 0x8C, 0xF6, 0x1C, 0x10,
0x2F, 0x18, 0x3B, 0x22, 0xF1
};
static const q7_t ref_conv_31_32[62] = {
0x09, 0x48, 0x1D, 0xBE, 0xA8, 0x2C, 0x18, 0xCF,
0xA6, 0x02, 0x7F, 0x1B, 0x10, 0xEB, 0x25, 0xA7,
0xCF, 0x0A, 0xE0, 0xD5, 0xE2, 0x4B, 0x85, 0xCC,
0x1A, 0x13, 0xC8, 0x80, 0xCC, 0x7F, 0x7F, 0xC4,
0xA6, 0x25, 0x9D, 0xC1, 0x80, 0x11, 0x7F, 0x7F,
0x7F, 0x66, 0x4B, 0xE9, 0x9E, 0xCA, 0xE8, 0xF1,
0x1D, 0xE0, 0xCB, 0xA7, 0x80, 0xD1, 0x0D, 0x1C,
0x2E, 0x2B, 0x38, 0x30, 0x05, 0xFA
};
static const q7_t ref_conv_31_33[63] = {
0x09, 0x48, 0x1D, 0xBE, 0xA8, 0x2C, 0x18, 0xCF,
0xA6, 0x02, 0x7F, 0x1B, 0x10, 0xEB, 0x25, 0xA7,
0xCF, 0x0A, 0xE0, 0xD5, 0xE2, 0x4B, 0x85, 0xCC,
0x1A, 0x13, 0xC8, 0x80, 0xCC, 0x7F, 0x7F, 0xC4,
0xA2, 0x0B, 0xB2, 0xCC, 0x87, 0x07, 0x7F, 0x7F,
0x7F, 0x53, 0x33, 0xDF, 0x94, 0xE2, 0xF7, 0xF9,
0x1A, 0xD6, 0xD8, 0xA0, 0x80, 0xE6, 0x36, 0x2C,
0x20, 0x2C, 0x23, 0x33, 0xF6, 0xE4, 0x07
};
static const q7_t ref_conv_31_34[64] = {
0x09, 0x48, 0x1D, 0xBE, 0xA8, 0x2C, 0x18, 0xCF,
0xA6, 0x02, 0x7F, 0x1B, 0x10, 0xEB, 0x25, 0xA7,
0xCF, 0x0A, 0xE0, 0xD5, 0xE2, 0x4B, 0x85, 0xCC,
0x1A, 0x13, 0xC8, 0x80, 0xCC, 0x7F, 0x7F, 0xC4,
0xA2, 0x10, 0xD7, 0xAE, 0x80, 0xFC, 0x7F, 0x7F,
0x7F, 0x56, 0x4F, 0x01, 0xA2, 0xF0, 0xD6, 0xE4,
0x0E, 0xD9, 0xE7, 0x8E, 0x80, 0xED, 0x18, 0xF2,
0x09, 0x40, 0x21, 0x51, 0xF1, 0xFA, 0x26, 0xF6
};
static const q7_t ref_conv_31_49[79] = {
0x09, 0x48, 0x1D, 0xBE, 0xA8, 0x2C, 0x18, 0xCF,
0xA6, 0x02, 0x7F, 0x1B, 0x10, 0xEB, 0x25, 0xA7,
0xCF, 0x0A, 0xE0, 0xD5, 0xE2, 0x4B, 0x85, 0xCC,
0x1A, 0x13, 0xC8, 0x80, 0xCC, 0x7F, 0x7F, 0xC4,
0xA2, 0x10, 0xD9, 0xB7, 0x80, 0xFF, 0x7F, 0x7F,
0x5C, 0x3B, 0x6C, 0x3B, 0x93, 0x05, 0x26, 0xCF,
0xF8, 0xB5, 0xA9, 0x80, 0x80, 0x21, 0x3D, 0x1A,
0x13, 0x7D, 0x47, 0x46, 0xE7, 0x15, 0x7F, 0xE3,
0x13, 0x11, 0xB3, 0xBD, 0xB4, 0xAA, 0xBE, 0x0B,
0xFE, 0x27, 0x44, 0xF6, 0x24, 0x20, 0xF4
};
static const q7_t ref_conv_32_31[62] = {
0x09, 0x48, 0x1D, 0xBE, 0xA8, 0x2C, 0x18, 0xCF,
0xA6, 0x02, 0x7F, 0x1B, 0x10, 0xEB, 0x25, 0xA7,
0xCF, 0x0A, 0xE0, 0xD5, 0xE2, 0x4B, 0x85, 0xCC,
0x1A, 0x13, 0xC8, 0x80, 0xCC, 0x7F, 0x7F, 0xA9,
0x80, 0x30, 0xB0, 0xBF, 0x80, 0x10, 0x7F, 0x7F,
0x68, 0x52, 0x41, 0xCD, 0x9C, 0xCA, 0xF6, 0xF4,
0x1C, 0xF2, 0xC2, 0xA8, 0x99, 0xF3, 0x1E, 0x0F,
0x2F, 0x1C, 0x3B, 0x1E, 0xE3, 0xEB
};
static const q7_t ref_conv_32_32[63] = {
0x09, 0x48, 0x1D, 0xBE, 0xA8, 0x2C, 0x18, 0xCF,
0xA6, 0x02, 0x7F, 0x1B, 0x10, 0xEB, 0x25, 0xA7,
0xCF, 0x0A, 0xE0, 0xD5, 0xE2, 0x4B, 0x85, 0xCC,
0x1A, 0x13, 0xC8, 0x80, 0xCC, 0x7F, 0x7F, 0xAD,
0x89, 0x1C, 0xA7, 0xB7, 0x80, 0x01, 0x7F, 0x7F,
0x79, 0x68, 0x49, 0xD6, 0x86, 0xBC, 0xEF, 0xF6,
0x26, 0xE7, 0xC9, 0xAD, 0x86, 0xCD, 0x0F, 0x1C,
0x2E, 0x2F, 0x38, 0x2C, 0xF7, 0xE5, 0xF7
};
static const q7_t ref_conv_32_33[64] = {
0x09, 0x48, 0x1D, 0xBE, 0xA8, 0x2C, 0x18, 0xCF,
0xA6, 0x02, 0x7F, 0x1B, 0x10, 0xEB, 0x25, 0xA7,
0xCF, 0x0A, 0xE0, 0xD5, 0xE2, 0x4B, 0x85, 0xCC,
0x1A, 0x13, 0xC8, 0x80, 0xCC, 0x7F, 0x7F, 0xAD,
0x85, 0x02, 0xBC, 0xC2, 0x80, 0xF8, 0x7F, 0x7F,
0x77, 0x55, 0x32, 0xCD, 0x80, 0xD3, 0xFE, 0xFF,
0x23, 0xDC, 0xD5, 0xA6, 0x81, 0xE2, 0x38, 0x2C,
0x20, 0x31, 0x23, 0x2F, 0xE7, 0xCF, 0xFE, 0x0A
};
static const q7_t ref_conv_32_34[65] = {
0x09, 0x48, 0x1D, 0xBE, 0xA8, 0x2C, 0x18, 0xCF,
0xA6, 0x02, 0x7F, 0x1B, 0x10, 0xEB, 0x25, 0xA7,
0xCF, 0x0A, 0xE0, 0xD5, 0xE2, 0x4B, 0x85, 0xCC,
0x1A, 0x13, 0xC8, 0x80, 0xCC, 0x7F, 0x7F, 0xAD,
0x85, 0x08, 0xE1, 0xA4, 0x80, 0xEC, 0x7F, 0x7F,
0x6D, 0x58, 0x4D, 0xEE, 0x8A, 0xE1, 0xDD, 0xE9,
0x17, 0xE0, 0xE4, 0x93, 0x8B, 0xE9, 0x1B, 0xF2,
0x0A, 0x44, 0x21, 0x4D, 0xE2, 0xE5, 0x1D, 0x00,
0xF1
};
static const q7_t ref_conv_32_49[80] = {
0x09, 0x48, 0x1D, 0xBE, 0xA8, 0x2C, 0x18, 0xCF,
0xA6, 0x02, 0x7F, 0x1B, 0x10, 0xEB, 0x25, 0xA7,
0xCF, 0x0A, 0xE0, 0xD5, 0xE2, 0x4B, 0x85, 0xCC,
0x1A, 0x13, 0xC8, 0x80, 0xCC, 0x7F, 0x7F, 0xAD,
0x85, 0x08, 0xE3, 0xAD, 0x80, 0xF0, 0x7F, 0x7F,
0x3C, 0x3D, 0x6B, 0x29, 0x80, 0xF6, 0x2C, 0xD4,
0x01, 0xBB, 0xA6, 0x80, 0x80, 0x1D, 0x3F, 0x1A,
0x13, 0x7F, 0x47, 0x41, 0xD8, 0x00, 0x7F, 0xED,
0x04, 0x0D, 0xB5, 0xBA, 0xBA, 0xA4, 0xC8, 0x1E,
0x02, 0x24, 0x4C, 0xF6, 0x13, 0x20, 0xEF, 0xEF
};
static const q7_t ref_conv_33_31[63] = {
0x09, 0x48, 0x1D, 0xBE, 0xA8, 0x2C, 0x18, 0xCF,
0xA6, 0x02, 0x7F, 0x1B, 0x10, 0xEB, 0x25, 0xA7,
0xCF, 0x0A, 0xE0, 0xD5, 0xE2, 0x4B, 0x85, 0xCC,
0x1A, 0x13, 0xC8, 0x80, 0xCC, 0x7F, 0x7F, 0xA9,
0xA2, 0x6C, 0xC2, 0xA9, 0x80, 0x34, 0x7F, 0x7F,
0x45, 0x7F, 0x3D, 0xD1, 0xC3, 0xFB, 0x14, 0xE6,
0x11, 0xDF, 0xB5, 0xAE, 0x8D, 0xD7, 0x26, 0x0B,
0x31, 0x1C, 0x31, 0x1E, 0xEC, 0x09, 0x2C
};
static const q7_t ref_conv_33_32[64] = {
0x09, 0x48, 0x1D, 0xBE, 0xA8, 0x2C, 0x18, 0xCF,
0xA6, 0x02, 0x7F, 0x1B, 0x10, 0xEB, 0x25, 0xA7,
0xCF, 0x0A, 0xE0, 0xD5, 0xE2, 0x4B, 0x85, 0xCC,
0x1A, 0x13, 0xC8, 0x80, 0xCC, 0x7F, 0x7F, 0xAD,
0xBA, 0x59, 0xB8, 0xA2, 0x83, 0x25, 0x7F, 0x7F,
0x56, 0x7F, 0x45, 0xDA, 0xAE, 0xED, 0x0D, 0xE8,
0x1A, 0xD4, 0xBB, 0xB2, 0x80, 0xB2, 0x17, 0x17,
0x2F, 0x2F, 0x2E, 0x2B, 0xFF, 0x03, 0x22, 0x13
};
static const q7_t ref_conv_33_33[65] = {
0x09, 0x48, 0x1D, 0xBE, 0xA8, 0x2C, 0x18, 0xCF,
0xA6, 0x02, 0x7F, 0x1B, 0x10, 0xEB, 0x25, 0xA7,
0xCF, 0x0A, 0xE0, 0xD5, 0xE2, 0x4B, 0x85, 0xCC,
0x1A, 0x13, 0xC8, 0x80, 0xCC, 0x7F, 0x7F, 0xAD,
0xB6, 0x3E, 0xCE, 0xAC, 0x8B, 0x1B, 0x7F, 0x7F,
0x54, 0x7F, 0x2E, 0xD0, 0xA4, 0x05, 0x1C, 0xF0,
0x18, 0xCA, 0xC8, 0xAB, 0x80, 0xC7, 0x40, 0x27,
0x21, 0x30, 0x19, 0x2F, 0xF0, 0xED, 0x2A, 0x1E,
0xEB
};
static const q7_t ref_conv_33_34[66] = {
0x09, 0x48, 0x1D, 0xBE, 0xA8, 0x2C, 0x18, 0xCF,
0xA6, 0x02, 0x7F, 0x1B, 0x10, 0xEB, 0x25, 0xA7,
0xCF, 0x0A, 0xE0, 0xD5, 0xE2, 0x4B, 0x85, 0xCC,
0x1A, 0x13, 0xC8, 0x80, 0xCC, 0x7F, 0x7F, 0xAD,
0xB6, 0x44, 0xF3, 0x8E, 0x80, 0x10, 0x7F, 0x7F,
0x4B, 0x7F, 0x49, 0xF2, 0xB1, 0x13, 0xFB, 0xDA,
0x0C, 0xCD, 0xD7, 0x99, 0x80, 0xCD, 0x23, 0xED,
0x0B, 0x44, 0x17, 0x4D, 0xEB, 0x03, 0x48, 0x14,
0xDC, 0x1E
};
static const q7_t ref_conv_33_49[81] = {
0x09, 0x48, 0x1D, 0xBE, 0xA8, 0x2C, 0x18, 0xCF,
0xA6, 0x02, 0x7F, 0x1B, 0x10, 0xEB, 0x25, 0xA7,
0xCF, 0x0A, 0xE0, 0xD5, 0xE2, 0x4B, 0x85, 0xCC,
0x1A, 0x13, 0xC8, 0x80, 0xCC, 0x7F, 0x7F, 0xAD,
0xB6, 0x44, 0xF5, 0x98, 0x80, 0x13, 0x7F, 0x7F,
0x19, 0x7F, 0x67, 0x2C, 0xA3, 0x28, 0x4B, 0xC6,
0xF6, 0xA8, 0x99, 0x80, 0x80, 0x01, 0x47, 0x15,
0x14, 0x7F, 0x3D, 0x41, 0xE1, 0x1F, 0x7F, 0x00,
0xEF, 0x2B, 0xBD, 0xB6, 0xBE, 0x98, 0xD4, 0x08,
0xDA, 0x1C, 0x51, 0xE6, 0x13, 0x43, 0xEF, 0xFA,
0x23
};
static const q7_t ref_conv_48_31[78] = {
0x09, 0x48, 0x1D, 0xBE, 0xA8, 0x2C, 0x18, 0xCF,
0xA6, 0x02, 0x7F, 0x1B, 0x10, 0xEB, 0x25, 0xA7,
0xCF, 0x0A, 0xE0, 0xD5, 0xE2, 0x4B, 0x85, 0xCC,
0x1A, 0x13, 0xC8, 0x80, 0xCC, 0x7F, 0x7F, 0xA9,
0xA2, 0x66, 0xD9, 0xD4, 0x80, 0xF0, 0x7F, 0x7F,
0x71, 0x7B, 0xEF, 0xFB, 0x26, 0x26, 0x3B, 0xB7,
0x43, 0x87, 0xE6, 0xCE, 0x80, 0x31, 0xF1, 0x38,
0x0B, 0x69, 0x70, 0xEC, 0xAD, 0xE1, 0x1F, 0x26,
0x18, 0xD4, 0xE2, 0xF2, 0x3C, 0x0F, 0xE6, 0x05,
0xFE, 0x26, 0x3A, 0x01, 0xF8, 0xD5
};
static const q7_t ref_conv_48_32[79] = {
0x09, 0x48, 0x1D, 0xBE, 0xA8, 0x2C, 0x18, 0xCF,
0xA6, 0x02, 0x7F, 0x1B, 0x10, 0xEB, 0x25, 0xA7,
0xCF, 0x0A, 0xE0, 0xD5, 0xE2, 0x4B, 0x85, 0xCC,
0x1A, 0x13, 0xC8, 0x80, 0xCC, 0x7F, 0x7F, 0xAD,
0xBA, 0x53, 0xCF, 0xCC, 0x80, 0xE1, 0x7F, 0x7F,
0x7F, 0x7F, 0xF8, 0x04, 0x10, 0x18, 0x33, 0xB9,
0x4D, 0x80, 0xED, 0xD3, 0x80, 0x0C, 0xE3, 0x44,
0x0A, 0x7C, 0x6D, 0xFA, 0xC1, 0xDA, 0x16, 0x39,
0x16, 0xE0, 0xE6, 0xE4, 0x36, 0x10, 0xF7, 0xFA,
0x02, 0x25, 0x35, 0x1A, 0xF6, 0xDF, 0xED
};
static const q7_t ref_conv_48_33[80] = {
0x09, 0x48, 0x1D, 0xBE, 0xA8, 0x2C, 0x18, 0xCF,
0xA6, 0x02, 0x7F, 0x1B, 0x10, 0xEB, 0x25, 0xA7,
0xCF, 0x0A, 0xE0, 0xD5, 0xE2, 0x4B, 0x85, 0xCC,
0x1A, 0x13, 0xC8, 0x80, 0xCC, 0x7F, 0x7F, 0xAD,
0xB6, 0x39, 0xE4, 0xD7, 0x80, 0xD8, 0x7F, 0x7F,
0x7F, 0x7D, 0xE0, 0xFB, 0x07, 0x30, 0x43, 0xC1,
0x4A, 0x80, 0xF9, 0xCC, 0x80, 0x21, 0x0C, 0x54,
0xFC, 0x7E, 0x58, 0xFE, 0xB2, 0xC5, 0x1D, 0x44,
0x00, 0xE2, 0xD9, 0xE1, 0x45, 0x17, 0xF6, 0xE7,
0x0E, 0x20, 0x37, 0x1F, 0xDA, 0xE2, 0xE2, 0x15
};
static const q7_t ref_conv_48_34[81] = {
0x09, 0x48, 0x1D, 0xBE, 0xA8, 0x2C, 0x18, 0xCF,
0xA6, 0x02, 0x7F, 0x1B, 0x10, 0xEB, 0x25, 0xA7,
0xCF, 0x0A, 0xE0, 0xD5, 0xE2, 0x4B, 0x85, 0xCC,
0x1A, 0x13, 0xC8, 0x80, 0xCC, 0x7F, 0x7F, 0xAD,
0xB6, 0x3E, 0x0A, 0xB9, 0x80, 0xCC, 0x7F, 0x7F,
0x76, 0x7F, 0xFB, 0x1C, 0x14, 0x3E, 0x22, 0xAC,
0x3F, 0x80, 0x08, 0xB9, 0x80, 0x27, 0xEE, 0x1A,
0xE5, 0x7F, 0x56, 0x1B, 0xAD, 0xDA, 0x3C, 0x3A,
0xF2, 0x01, 0xD5, 0xF3, 0x4A, 0x01, 0xED, 0xE9,
0x29, 0x0F, 0x3D, 0x1D, 0xD3, 0x09, 0xDE, 0x25,
0xE2
};
static const q7_t ref_conv_48_49[96] = {
0x09, 0x48, 0x1D, 0xBE, 0xA8, 0x2C, 0x18, 0xCF,
0xA6, 0x02, 0x7F, 0x1B, 0x10, 0xEB, 0x25, 0xA7,
0xCF, 0x0A, 0xE0, 0xD5, 0xE2, 0x4B, 0x85, 0xCC,
0x1A, 0x13, 0xC8, 0x80, 0xCC, 0x7F, 0x7F, 0xAD,
0xB6, 0x3E, 0x0B, 0xC2, 0x80, 0xCF, 0x7F, 0x7F,
0x45, 0x66, 0x19, 0x57, 0x05, 0x53, 0x71, 0x97,
0x28, 0x80, 0xCA, 0x80, 0x80, 0x5B, 0x12, 0x42,
0xEF, 0x7F, 0x7C, 0x10, 0xA3, 0xF6, 0x7F, 0x26,
0x04, 0x0E, 0x93, 0xA8, 0x0E, 0x98, 0xBE, 0xEA,
0x09, 0x32, 0x67, 0x09, 0xFD, 0x63, 0xB0, 0x22,
0x25, 0xCE, 0x18, 0xEB, 0xE4, 0xC7, 0x21, 0x23,
0xF4, 0x27, 0x07, 0x19, 0x09, 0x01, 0x07, 0xDE
};
static const q7_t ref_conv_partial_3_6_8[4] = {
0x10, 0xE5, 0xE5, 0xF1
};
static const q7_t ref_conv_partial_9_6_8[4] = {
0xEF, 0xF4, 0xEF, 0x17
};
static const q7_t ref_conv_partial_7_6_8[4] = {
0x27, 0x15, 0xEF, 0xF4
};
| Max | 1 | psychogenic/zephyr | tests/lib/cmsis_dsp/filtering/src/misc_q7.pat | [
"Apache-2.0"
] |
module.exports =
config:
numbers:
type: 'object'
properties:
one:
type: 'integer'
default: 1
two:
type: 'integer'
default: 2
activate: -> # no-op
| CoffeeScript | 2 | pyrolabs/atom | spec/fixtures/packages/package-with-config-schema/index.coffee | [
"MIT"
] |
package {
public class Test {
}
}
trace("/// var a: Vector.<int> = new <int>[2,3];");
var a:Vector.<int> = new <int>[2,3];
trace(a[0]);
trace(a[1]);
trace("/// delete a[0];");
trace(delete a[0]);
trace(a[0]);
trace(a[1]);
trace("/// delete a[1];");
trace(delete a[1]);
trace(a[0]);
trace(a[1]); | ActionScript | 3 | Sprak1/ruffle | tests/tests/swfs/avm2/vector_int_delete/Test.as | [
"Apache-2.0",
"Unlicense"
] |
class Bubble {
float x;
float y;
float diameter;
PImage img;
Bubble(PImage tempImg, float tempX, float tempY, float tempD) {
x = tempX;
y = tempY;
diameter = tempD;
img = tempImg;
}
void ascend() {
y--;
x = x + random(-2,2);
}
void display() {
stroke(0);
fill(127);
//ellipse(x, y, diameter, diameter);
imageMode(CENTER);
image(img,x,y,diameter, diameter);
}
void top() {
if (y < diameter/2) {
y = diameter/2;
}
}
} | Processing | 4 | aerinkayne/website | Tutorials/Processing/11_video/sketch_15_2_array_images/Bubble.pde | [
"MIT"
] |
#!/usr/bin/pike
// -*- mode: pike -*-
// $Id: prodcons.pike,v 1.2 2005-05-13 16:24:18 igouy-guest Exp $
// http://www.bagley.org/~doug/shootout/
inherit Thread.Condition: access;
inherit Thread.Mutex: mutex;
int data, consumed, produced, count;
void producer(int n) {
for (int i=1; i<=n; i++) {
object mtx = mutex::lock();
while (count != 0) access::wait(mtx);
data = i;
count += 1;
destruct(mtx);
access::signal();
produced += 1;
}
}
void consumer(int n) {
while (1) {
object mtx = mutex::lock();
while (count == 0) access::wait(mtx);
int i = data;
count -= 1;
access::signal();
destruct(mtx);
consumed += 1;
if (i == n) break;
}
}
void main(int argc, array(string) argv) {
int n = (int)argv[-1];
if (n < 1) n = 1;
data = consumed = produced = count = 0;
thread_create(producer, n);
consumer(n);
write("%d %d\n", produced, consumed);
}
| Pike | 4 | kragen/shootout | bench/prodcons/prodcons.pike | [
"BSD-3-Clause"
] |
constant α: Type
inductive P: α → Prop
inductive Q: α → α → Prop
| of: ∀ {a₁ a₂}, Q a₁ a₂
example {a: α} (P_a: P a) (Q_a: ∃ a', Q a' a): true :=
begin
cases Q_a with a' Q_a'_a,
cases Q_a'_a,
cases P_a,
end
| Lean | 3 | ericrbg/lean | tests/lean/run/revert_crash.lean | [
"Apache-2.0"
] |
#ifndef TEST_INTEROP_CXX_TEMPLATES_INPUTS_DEFAULTED_TEMPLATE_TYPE_PARAMETER_H
#define TEST_INTEROP_CXX_TEMPLATES_INPUTS_DEFAULTED_TEMPLATE_TYPE_PARAMETER_H
template <class>
struct ClassTemplate {};
struct X {
enum class CtorPicked { dependent, arg, empty } picked;
// Make sure we don't crash for dependent types.
template <class T = void>
X(ClassTemplate<T>) : picked(CtorPicked::dependent) {}
template <class T = void>
X(T) : picked(CtorPicked::arg) {}
template <class = void>
X() : picked(CtorPicked::empty) {}
};
template <class = void>
void defaultedTemplateTypeParam() {}
template <class T = void>
void defaultedTemplateTypeParamUsedInArgs(T) {}
template <class T = void>
T defaultedTemplateTypeParamUsedInReturn() {
return 0;
}
template <class T = void>
void defaultedTemplateTypeParamAndDefaultedParam(T = 0) {}
template <class T>
void functionTemplateWithDefaultedParam(T = 0) {}
template <class T = void>
void defaultedTemplateTypeParamUsedInSignatureAndUnrealtedParam(int, T) {}
template <class = void>
void defaultedTemplateTypeParamAndUnrealtedParam(int) {}
template <class T = int>
void overloadedDefaultedTemplate(T) {}
void overloadedDefaultedTemplate(int) {}
template <typename T = int>
void defaultedTemplateReferenceTypeParam(T &t) {}
template <typename T = int>
void defaultedTemplatePointerTypeParam(T *t) {}
template <typename T = int>
void defaultedTemplatePointerReferenceTypeParam(T *&t) {}
template <typename T = int>
void defaultedTemplatePointerPointerTypeParam(T **t) {}
#endif // TEST_INTEROP_CXX_TEMPLATES_INPUTS_DEFAULTED_TEMPLATE_TYPE_PARAMETER_H
| C | 4 | jorng/swift | test/Interop/Cxx/templates/Inputs/defaulted-template-type-parameter.h | [
"Apache-2.0"
] |