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
listlengths
1
8
=pod =head1 NAME RSA_size, RSA_bits, RSA_security_bits - get RSA modulus size or security bits =head1 SYNOPSIS #include <openssl/rsa.h> int RSA_bits(const RSA *rsa); The following functions have been deprecated since OpenSSL 3.0, and can be hidden entirely by defining B<OPENSSL_API_COMPAT> with a suitable version value, see L<openssl_user_macros(7)>: int RSA_size(const RSA *rsa); int RSA_security_bits(const RSA *rsa); =head1 DESCRIPTION RSA_bits() returns the number of significant bits. B<rsa> and B<rsa-E<gt>n> must not be B<NULL>. The remaining functions described on this page are deprecated. Applications should instead use L<EVP_PKEY_get_size(3)>, L<EVP_PKEY_get_bits(3)> and L<EVP_PKEY_get_security_bits(3)>. RSA_size() returns the RSA modulus size in bytes. It can be used to determine how much memory must be allocated for an RSA encrypted value. RSA_security_bits() returns the number of security bits of the given B<rsa> key. See L<BN_security_bits(3)>. =head1 RETURN VALUES RSA_bits() returns the number of bits in the key. RSA_size() returns the size of modulus in bytes. RSA_security_bits() returns the number of security bits. =head1 SEE ALSO L<BN_num_bits(3)> =head1 HISTORY The RSA_size() and RSA_security_bits() functions were deprecated in OpenSSL 3.0. The RSA_bits() function was added in OpenSSL 1.1.0. =head1 COPYRIGHT Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved. Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at L<https://www.openssl.org/source/license.html>. =cut
Pod
4
lbbxsxlz/openssl
doc/man3/RSA_size.pod
[ "Apache-2.0" ]
{ metadata: { namespace: "media_capabilities_names", }, data: [ "codecs", ], }
JSON5
3
zealoussnow/chromium
third_party/blink/renderer/modules/media_capabilities/media_capabilities_names.json5
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
<div class="tab-pane Mac" title="macOS" os="Mac"> {{ .Inner }} </div>
HTML
1
mwht/minikube
site/layouts/shortcodes/mactab.html
[ "Apache-2.0" ]
#!/bin/sh # Copyright 2015 gRPC authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # Regenerates gRPC service stubs from proto files. set -e cd $(dirname $0)/../../.. # protoc and grpc_*_plugin binaries can be obtained by running # $ bazel build @com_google_protobuf//:protoc //src/compiler:all PROTOC=bazel-bin/external/com_google_protobuf/protoc PLUGIN=protoc-gen-grpc=bazel-bin/src/compiler/grpc_ruby_plugin $PROTOC -I src/proto src/proto/grpc/health/v1/health.proto \ --grpc_out=src/ruby/pb \ --ruby_out=src/ruby/pb \ --plugin=$PLUGIN $PROTOC -I . \ src/proto/grpc/testing/{messages,test,empty}.proto \ --grpc_out=src/ruby/pb \ --ruby_out=src/ruby/pb \ --plugin=$PLUGIN $PROTOC -I . \ src/proto/grpc/core/stats.proto \ --grpc_out=src/ruby/qps \ --ruby_out=src/ruby/qps \ --plugin=$PLUGIN $PROTOC -I . \ src/proto/grpc/testing/{messages,payloads,stats,benchmark_service,report_qps_scenario_service,worker_service,control}.proto \ --grpc_out=src/ruby/qps \ --ruby_out=src/ruby/qps \ --plugin=$PLUGIN $PROTOC -I src/proto/math src/proto/math/math.proto \ --grpc_out=src/ruby/bin \ --ruby_out=src/ruby/bin \ --plugin=$PLUGIN
Shell
3
arghyadip01/grpc
src/ruby/pb/generate_proto_ruby.sh
[ "Apache-2.0" ]
/***************************************************************************** * * QUERY: * EXPLAIN [ANALYZE] [VERBOSE] query * EXPLAIN ( options ) query * *****************************************************************************/ ExplainStmt: EXPLAIN ExplainableStmt { PGExplainStmt *n = makeNode(PGExplainStmt); n->query = $2; n->options = NIL; $$ = (PGNode *) n; } | EXPLAIN analyze_keyword opt_verbose ExplainableStmt { PGExplainStmt *n = makeNode(PGExplainStmt); n->query = $4; n->options = list_make1(makeDefElem("analyze", NULL, @2)); if ($3) n->options = lappend(n->options, makeDefElem("verbose", NULL, @3)); $$ = (PGNode *) n; } | EXPLAIN VERBOSE ExplainableStmt { PGExplainStmt *n = makeNode(PGExplainStmt); n->query = $3; n->options = list_make1(makeDefElem("verbose", NULL, @2)); $$ = (PGNode *) n; } | EXPLAIN '(' explain_option_list ')' ExplainableStmt { PGExplainStmt *n = makeNode(PGExplainStmt); n->query = $5; n->options = $3; $$ = (PGNode *) n; } ; opt_verbose: VERBOSE { $$ = true; } | /*EMPTY*/ { $$ = false; } ; explain_option_arg: opt_boolean_or_string { $$ = (PGNode *) makeString($1); } | NumericOnly { $$ = (PGNode *) $1; } | /* EMPTY */ { $$ = NULL; } ; ExplainableStmt: SelectStmt | InsertStmt | UpdateStmt | DeleteStmt | CreateAsStmt /* by default all are $$=$1 */ ; NonReservedWord: IDENT { $$ = $1; } | unreserved_keyword { $$ = pstrdup($1); } | other_keyword { $$ = pstrdup($1); } ; NonReservedWord_or_Sconst: NonReservedWord { $$ = $1; } | Sconst { $$ = $1; } ; explain_option_list: explain_option_elem { $$ = list_make1($1); } | explain_option_list ',' explain_option_elem { $$ = lappend($1, $3); } ; analyze_keyword: ANALYZE {} | ANALYSE /* British */ {} ; opt_boolean_or_string: TRUE_P { $$ = (char*) "true"; } | FALSE_P { $$ = (char*) "false"; } | ON { $$ = (char*) "on"; } /* * OFF is also accepted as a boolean value, but is handled by * the NonReservedWord rule. The action for booleans and strings * is the same, so we don't need to distinguish them here. */ | NonReservedWord_or_Sconst { $$ = $1; } ; explain_option_elem: explain_option_name explain_option_arg { $$ = makeDefElem($1, $2, @1); } ; explain_option_name: NonReservedWord { $$ = $1; } | analyze_keyword { $$ = (char*) "analyze"; } ;
Yacc
3
AldoMyrtaj/duckdb
third_party/libpg_query/grammar/statements/explain.y
[ "MIT" ]
//@filename: file.tsx //@jsx: preserve //@noImplicitAny: true declare module JSX { interface Element { } interface ElementAttributesProperty { props: {} } interface IntrinsicElements { div: any; h2: any; h1: any; } } class Button { props: {} render() { return (<div>My Button</div>) } } // OK let k1 = <div> <h2> Hello </h2> <h1> world </h1></div>; let k2 = <div> <h2> Hello </h2> {(user: any) => <h2>{user.name}</h2>}</div>; let k3 = <div> {1} {"That is a number"} </div>; let k4 = <Button> <h2> Hello </h2> </Button>;
TypeScript
3
nilamjadhav/TypeScript
tests/cases/conformance/jsx/checkJsxChildrenProperty11.tsx
[ "Apache-2.0" ]
// Copyright (c) 2013-2020 Bluespec, Inc. All Rights Reserved // Author: Rishiyur S. Nikhil package TV_Info; // ================================================================ // Bluespec library imports import Vector :: *; // ================================================================ // Trace_Data is encoded by the Core into vectors of bytes, which are // streamed out to an on-line tandem verifier/ analyzer (or to a file // for off-line tandem-verification/analysis). typedef 72 TV_VB_SIZE; // max bytes needed for each transaction typedef Vector #(TV_VB_SIZE, Bit #(8)) TV_Vec_Bytes; // ================================================================ typedef struct { Bit #(32) num_bytes; TV_Vec_Bytes vec_bytes; } Info_CPU_to_Verifier deriving (Bits, FShow); // ================================================================ endpackage
Bluespec
4
darius-bluespec/Flute
src_Core/ISA/TV_Info.bsv
[ "Apache-2.0" ]
% Consistent renaming - C blocks % Jim Cordy, May 2010 % Using Gnu C grammmar include "c.grm" redefine compound_statement { [IN] [NL] [compound_statement_body] [EX] } [NL] end redefine define potential_clone [compound_statement] end define % Generic consistent renaming include "generic-rename-consistent.txl"
TXL
4
coder-chenzhi/SQA
SourcererCC/parser/java/txl/c-rename-consistent-blocks.txl
[ "Apache-2.0" ]
import QtQuick 2.3 Item { property bool colapsed: true property bool showColapse: false property bool planView: false }
QML
3
uavosky/uavosky-qgroundcontrol
src/Airmap/dummy/AirspaceControl.qml
[ "Apache-2.0" ]
use v6; # # Reduced digit sums for a number or a list of numbers. # E.g. 777 -> 7+7+7 -> 21 -> 2+1 -> 3 # say "777: ", reduced-digit-sum(777); my %alpha = (my @z = ("a".."z","å","ä","ö"," ")) Z=> (1..@z.elems); my @a = %alpha{"håkan kjellerstrand".split("")}; say @a.perl; say reduced-digit-sum(%alpha{"håkan kjellerstrand".split("")}); sub reduced-digit-sum($x) { (([+] $x.comb),{[+] .comb}...*<10)[*-1] }
Perl6
4
Wikunia/hakank
perl6/reduced_digit_sum.p6
[ "MIT" ]
_stat() { if test "${CI_OS_NAME}" = osx ; then stat -f %Sm "${@}" else stat -c %y "${@}" fi } top_make() { printf '%78s\n' | tr ' ' '=' # Travis has 1.5 virtual cores according to: # http://docs.travis-ci.com/user/speeding-up-the-build/#Paralellizing-your-build-on-one-VM ninja "$@" } build_make() { top_make -C "${BUILD_DIR}" "$@" } build_deps() { if test "${FUNCTIONALTEST}" = "functionaltest-lua" \ || test "${CLANG_SANITIZER}" = "ASAN_UBSAN" ; then DEPS_CMAKE_FLAGS="${DEPS_CMAKE_FLAGS} -DUSE_BUNDLED_LUA=ON" fi mkdir -p "${DEPS_BUILD_DIR}" # Use cached dependencies if $CACHE_MARKER exists. if test "${CACHE_ENABLE}" = "false" ; then export CCACHE_RECACHE=1 elif test -f "${CACHE_MARKER}" ; then echo "Using third-party dependencies from cache (last update: $(_stat "${CACHE_MARKER}"))." cp -a "${CACHE_NVIM_DEPS_DIR}"/. "${DEPS_BUILD_DIR}" fi # Even if we're using cached dependencies, run CMake and make to # update CMake configuration and update to newer deps versions. cd "${DEPS_BUILD_DIR}" echo "Configuring with '${DEPS_CMAKE_FLAGS}'." CC= cmake -G Ninja ${DEPS_CMAKE_FLAGS} "${CI_BUILD_DIR}/third-party/" if ! top_make; then exit 1 fi cd "${CI_BUILD_DIR}" } prepare_build() { if test -n "${CLANG_SANITIZER}" ; then CMAKE_FLAGS="${CMAKE_FLAGS} -DCLANG_${CLANG_SANITIZER}=ON" fi mkdir -p "${BUILD_DIR}" cd "${BUILD_DIR}" echo "Configuring with '${CMAKE_FLAGS} $@'." cmake -G Ninja ${CMAKE_FLAGS} "$@" "${CI_BUILD_DIR}" } build_nvim() { echo "Building nvim." if ! top_make nvim ; then exit 1 fi if test "$CLANG_SANITIZER" != "TSAN" ; then echo "Building libnvim." if ! top_make libnvim ; then exit 1 fi if test "${FUNCTIONALTEST}" != "functionaltest-lua"; then echo "Building nvim-test." if ! top_make nvim-test ; then exit 1 fi fi fi # Invoke nvim to trigger *San early. if ! (bin/nvim --version && bin/nvim -u NONE -e -cq | cat -vet) ; then check_sanitizer "${LOG_DIR}" exit 1 fi check_sanitizer "${LOG_DIR}" cd "${CI_BUILD_DIR}" }
Shell
5
uga-rosa/neovim
ci/common/build.sh
[ "Vim" ]
#!/usr/bin/env bash export PYTHONPATH="../":"${PYTHONPATH}" export WANDB_PROJECT=dmar # export MAX_LEN=128 python distillation.py \ --learning_rate=3e-4 \ --do_train \ --fp16 \ --val_check_interval 0.25 \ --teacher Helsinki-NLP/opus-mt-en-ro \ --max_source_length $MAX_LEN --max_target_length $MAX_LEN --val_max_target_length $MAX_LEN --test_max_target_length $MAX_LEN \ --student_decoder_layers 3 --student_encoder_layers 6 \ --freeze_encoder --freeze_embeds \ --model_name_or_path IGNORED \ --alpha_hid=3. \ --train_batch_size=$BS --eval_batch_size=$BS \ --tokenizer_name Helsinki-NLP/opus-mt-en-ro \ --warmup_steps 500 --logger_name wandb \ --fp16_opt_level O1 --task translation --normalize_hidden --num_sanity_val_steps=0 \ "$@"
Shell
3
liminghao1630/transformers
examples/research_projects/seq2seq-distillation/distil_marian_enro_teacher.sh
[ "Apache-2.0" ]
package com.baeldung.boot.mvc.controllers; import static org.assertj.core.api.AssertionsForClassTypes.assertThat; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Import; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.test.context.junit.jupiter.SpringExtension; @Import(HelloController.class) @ExtendWith(SpringExtension.class) public class HelloControllerUnitTest { @Autowired private HelloController helloController; @Test public void whenHelloIsInvokedWithCaio_thenReturn200AsStatusAndHelloCaioAsBody() { ResponseEntity response = this.helloController.hello("Caio"); assertThat(response.getStatusCode()).isEqualTo(HttpStatus.OK); assertThat(response.getBody()).isEqualTo("Hello, Caio"); } }
Java
4
DBatOWL/tutorials
spring-boot-modules/spring-boot-mvc-jersey/spring-boot-mvc/src/test/java/com/baeldung/boot/mvc/controllers/HelloControllerUnitTest.java
[ "MIT" ]
h1. Images !.../_assets/landscape.jpg(Landscape)! <hr /> h1. View Presenter Notes This slide has presenter notes. Press `p` to view them. h1. Presenter Notes Hello from presenter notes <hr /> h1. Other features View other features in the help sidebar by pressing `h`
Textile
1
mjimenezganan/landslide
examples/multiple-files/3.textile
[ "Apache-2.0" ]
postulate A : Set I : (@erased _ : A) → Set R : A → Set f : ∀ (@erased x : A) (r : R x) → I x -- can now be used here ^
Agda
2
shlevy/agda
test/Succeed/Issue2128.agda
[ "BSD-3-Clause" ]
FROM maven:3.6.3-jdk-11 AS build WORKDIR /workdir/server COPY pom.xml /workdir/server/pom.xml RUN mvn dependency:go-offline COPY src /workdir/server/src RUN mvn --batch-mode clean compile assembly:single FROM openjdk:11-jre-slim ARG DEPENDENCY=/workdir/server/target EXPOSE 8080 COPY --from=build ${DEPENDENCY}/app.jar /app.jar CMD java -jar /app.jar
Dockerfile
4
malywonsz/awesome-compose
sparkjava/sparkjava/Dockerfile
[ "CC0-1.0" ]
module.exports = function(source) { return source + '\nmodule.exports.push("2");'; };
JavaScript
2
1shenxi/webpack
test/configCases/loaders/issue-9053/node_modules/loader2.js
[ "MIT" ]
<!DOCTYPE html> <html> <head> <title>Display binary data</title> </head> <body> <script type='text/javascript'> var xhr = new XMLHttpRequest() var url = 'http://localhost:3500/binary' xhr.onload = function() { var arrayBuffer = xhr.response var uint8 = new Uint8Array(arrayBuffer) var divNode = document.getElementById('result') divNode.innerText = uint8.join(', ') } xhr.open('GET', url + '?_=' + Date.now(), true) xhr.responseType = 'arraybuffer' xhr.send() </script> <div id='result'></div> </body> </html>
HTML
3
mm73628486283/cypress
packages/driver/cypress/fixtures/display-binary.html
[ "MIT" ]
--- lib/modules/Protocols.pmod/HTTP.pmod/Server.pmod/Request.pike.orig 2008-03-22 20:51:20.000000000 +0100 +++ lib/modules/Protocols.pmod/HTTP.pmod/Server.pmod/Request.pike 2008-03-22 20:51:32.000000000 +0100 @@ -368,7 +368,11 @@ buf = buf[l..]; return 1; } - + else if (request_type == "PUT" ) + { + body_raw = buf; + return 1; // do not read body when method is PUT + } my_fd->set_read_callback(read_cb_post); return 0; // delay }
Pike
3
davidlrichmond/macports-ports
lang/pike/files/patch-Request.pike
[ "BSD-3-Clause" ]
#pragma TextEncoding = "UTF-8" #pragma rtGlobals=3 #pragma ModuleName=zmq_handler_stop // This file is part of the `ZeroMQ-XOP` project and licensed under BSD-3-Clause. Function NeverComplains() zeromq_handler_stop() zeromq_handler_stop() PASS() End
IGOR Pro
0
AllenInstitute/ZeroMQ-XOP
tests/zmq_stop_handler.ipf
[ "BSD-3-Clause" ]
#!/bin/bash # # Copyright Istio Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. set -euo pipefail name=${1:-foo} ns=${2:-$name} sa=${3:-$name} tmp=${4:-""} rootselect=${5:-""} san="spiffe://trust-domain-$name/ns/$ns/sa/$sa" DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) FINAL_DIR=$DIR if [ -n "$tmp" ]; then if [ -d "$tmp" ]; then FINAL_DIR=$tmp cp "$DIR"/root-cert.pem "$FINAL_DIR" cp "$DIR"/ca-cert.pem "$FINAL_DIR" cp "$DIR"/ca-key.pem "$FINAL_DIR" cp "$DIR"/cert-chain.pem "$FINAL_DIR" cp "$DIR"/root-cert-alt.pem "$FINAL_DIR" cp "$DIR"/ca-cert-alt.pem "$FINAL_DIR" cp "$DIR"/ca-key-alt.pem "$FINAL_DIR" cp "$DIR"/cert-chain-alt.pem "$FINAL_DIR" else echo "tmp argument is not a directory: $tmp" exit 1 fi fi function cleanup() { if [ -f "$FINAL_DIR"/.srl ]; then rm "$FINAL_DIR"/.srl fi if [ -f "$FINAL_DIR"/ca-cert.srl ]; then rm "$FINAL_DIR"/ca-cert.srl fi if [ -f "$FINAL_DIR"/ca-cert-alt.srl ]; then rm "$FINAL_DIR"/ca-cert-alt.srl fi if [ -f "$FINAL_DIR"/workload.cfg ]; then rm "$FINAL_DIR"/workload.cfg fi if [ -f "$FINAL_DIR"/workload.csr ]; then rm "$FINAL_DIR"/workload.csr fi } trap cleanup EXIT openssl genrsa -out "$FINAL_DIR/workload-$sa-key.pem" 2048 cat > "$FINAL_DIR"/workload.cfg <<EOF [req] distinguished_name = req_distinguished_name req_extensions = v3_req x509_extensions = v3_req prompt = no [req_distinguished_name] countryName = US [v3_req] keyUsage = critical, digitalSignature, keyEncipherment extendedKeyUsage = serverAuth, clientAuth basicConstraints = critical, CA:FALSE subjectAltName = critical, @alt_names [alt_names] URI = $san EOF certchain="$FINAL_DIR"/cert-chain.pem cacert="$FINAL_DIR"/ca-cert.pem cakey="$FINAL_DIR"/ca-key.pem rootcert="$FINAL_DIR"/root-cert.pem if [[ "$rootselect" = "use-alternative-root" ]] ; then certchain="$FINAL_DIR"/cert-chain-alt.pem cacert="$FINAL_DIR"/ca-cert-alt.pem cakey="$FINAL_DIR"/ca-key-alt.pem rootcert="$FINAL_DIR"/root-cert-alt.pem fi openssl req -new -key "$FINAL_DIR/workload-$sa-key.pem" -subj "/" -out "$FINAL_DIR"/workload.csr -config "$FINAL_DIR"/workload.cfg openssl x509 -req -in "$FINAL_DIR"/workload.csr -CA "$cacert" -CAkey "$cakey" -CAcreateserial \ -out "$FINAL_DIR/workload-$sa-cert.pem" -days 3650 -extensions v3_req -extfile "$FINAL_DIR"/workload.cfg cat "$certchain" >> "$FINAL_DIR/workload-$sa-cert.pem" echo "Generated workload-$sa-[cert|key].pem with URI SAN $san" openssl verify -CAfile <(cat "$certchain" "$rootcert") "$FINAL_DIR/workload-$sa-cert.pem"
Shell
4
rveerama1/istio
samples/certs/generate-workload.sh
[ "Apache-2.0" ]
; JSON serializer for Nu cells (class NuCell (- (id) proxyForJson is (self array))) (load "cocoa") (global NSNotFound -1) (global ViNormalMode 1) (global ViInsertMode 2) (global ViVisualMode 4) (global ViMapSetsDot 1) (global ViMapNeedMotion 2) (global ViMapIsMotion 4) (global ViMapLineMode 8) (global ViMapNeedArgument 16) (global ViMapNoArgumentOnToggle 32) (global ViMapExcludedFromDot 64) (global ViRegexpIgnoreCase 1) (global current-window (do () (ViWindowController currentWindowController))) (global current-explorer (do () ((current-window) explorer))) (global current-document (do () ((current-window) currentDocument))) (global current-view (do () ((current-window) currentView))) (global current-text (do () ((current-view) innerView))) (global current-tab (do () ((current-view) tabController))) (global eventManager (ViEventManager defaultManager)) (global event-manager (ViEventManager defaultManager)) (global mark-manager (ViMarkManager sharedManager)) (global user-defaults (NSUserDefaults standardUserDefaults)) (global NSApp (NSApplication sharedApplication)) (global NSStreamEventNone 0) (global NSStreamEventOpenCompleted 1) (global NSStreamEventHasBytesAvailable 2) (global NSStreamEventHasSpaceAvailable 4) (global NSStreamEventErrorOccurred 8) (global NSStreamEventEndEncountered 16) (global ViStreamEventWriteEndEncountered 4711) (global NSLog (NuBridgedFunction functionWithName:"nu_log" signature:"v@")) (global puts (NuBridgedFunction functionWithName:"nu_log" signature:"v@")) (global NSMaxRange (do (range) (+ (range first) (range second)))) (global NSBackwardsSearch 4) (global ViViewPositionDefault 0) (global ViViewPositionPreferred 1) (global ViViewPositionReplace 2) (global ViViewPositionTab 3) (global ViViewPositionSplitLeft 4) (global ViViewPositionSplitRight 5) (global ViViewPositionSplitAbove 6) (global ViViewPositionSplitBelow 7) (bridge constant NSImageNameStatusAvailable "@") (bridge constant NSImageNameStatusPartiallyAvailable "@") (bridge constant NSImageNameStatusUnavailable "@") (bridge constant NSFontAttributeName "@") (bridge constant NSParagraphStyleAttributeName "@") (bridge constant NSForegroundColorAttributeName "@") (bridge constant NSUnderlineStyleAttributeName "@") (bridge constant NSSuperscriptAttributeName "@") (bridge constant NSBackgroundColorAttributeName "@") (bridge constant NSAttachmentAttributeName "@") (bridge constant NSLigatureAttributeName "@") (bridge constant NSBaselineOffsetAttributeName "@") (bridge constant NSKernAttributeName "@") (bridge constant NSLinkAttributeName "@") (bridge constant NSStrokeWidthAttributeName "@") (bridge constant NSStrokeColorAttributeName "@") (bridge constant NSUnderlineColorAttributeName "@") (bridge constant NSStrikethroughStyleAttributeName "@") (bridge constant NSStrikethroughColorAttributeName "@") (bridge constant NSShadowAttributeName "@") (bridge constant NSObliquenessAttributeName "@") (bridge constant NSExpansionAttributeName "@") (bridge constant NSCursorAttributeName "@") (bridge constant NSToolTipAttributeName "@") (bridge constant NSMarkedClauseSegmentAttributeName "@") (bridge constant NSWritingDirectionAttributeName "@") (bridge constant NSVerticalGlyphFormAttributeName "@") (global NSLineBreakByWordWrapping 0) (global NSLineBreakByCharWrapping 1) (global NSLineBreakByClipping 2) (global NSLineBreakByTruncatingHead 3) (global NSLineBreakByTruncatingTail 4) (global NSLineBreakByTruncatingMiddl 5)
Nu
3
girvo/vico
app/vico.nu
[ "Unlicense" ]
" Vim syntax file " Language: Property Specification Language (PSL) " Maintainer: Daniel Kho <daniel.kho@logik.haus> " Last Changed: 2021 Apr 17 by Daniel Kho " quit when a syntax file was already loaded if exists("b:current_syntax") finish endif " Read in VHDL syntax files runtime! syntax/vhdl.vim unlet b:current_syntax let s:cpo_save = &cpo set cpo&vim " case is not significant syn case ignore " Add ! character to keyword recognition. setlocal iskeyword+=33 " PSL keywords syn keyword pslOperator A AF AG AX syn keyword pslOperator E EF EG EX syn keyword pslOperator F G U W X X! syn keyword pslOperator abort always assert assume async_abort syn keyword pslOperator before before! before!_ before_ bit bitvector boolean syn keyword pslOperator clock const countones cover syn keyword pslOperator default syn keyword pslOperator ended eventually! syn keyword pslOperator fairness fell for forall syn keyword pslOperator hdltype syn keyword pslOperator in inf inherit isunknown syn keyword pslOperator mutable syn keyword pslOperator never next next! next_a next_a! next_e next_e! next_event next_event! next_event_a next_event_a! next_event_e next_event_e! nondet nondet_vector numeric syn keyword pslOperator onehot onehot0 syn keyword pslOperator property prev syn keyword pslOperator report restrict restrict! rose syn keyword pslOperator sequence stable string strong sync_abort syn keyword pslOperator union until until! until!_ until_ syn keyword pslOperator vmode vpkg vprop vunit syn keyword pslOperator within "" Common keywords with VHDL "syn keyword pslOperator and is not or to " PSL operators syn match pslOperator "=>\||=>" syn match pslOperator "<-\|->" syn match pslOperator "@" "Modify the following as needed. The trade-off is performance versus functionality. syn sync minlines=600 " Define the default highlighting. " Only when an item doesn't have highlighting yet hi def link pslSpecial Special hi def link pslStatement Statement hi def link pslCharacter Character hi def link pslString String hi def link pslVector Number hi def link pslBoolean Number hi def link pslTodo Todo hi def link pslFixme Fixme hi def link pslComment Comment hi def link pslNumber Number hi def link pslTime Number hi def link pslType Type hi def link pslOperator Operator hi def link pslError Error hi def link pslAttribute Special hi def link pslPreProc PreProc let b:current_syntax = "psl" let &cpo = s:cpo_save unlet s:cpo_save " vim: ts=8
VimL
4
uga-rosa/neovim
runtime/syntax/psl.vim
[ "Vim" ]
func x(_ param: inout Int) -> Int { param = 4 } let z = { (param: inout String) in } // RUN: %sourcekitd-test -req=collect-var-type %s -- %s | %FileCheck %s // CHECK: (1:10, 1:15): Int (explicit type: 1) // CHECK: (5:5, 5:6): (inout String) -> () (explicit type: 0) // CHECK: (5:12, 5:17): String (explicit type: 1)
Swift
3
gandhi56/swift
test/SourceKit/VariableType/inout.swift
[ "Apache-2.0" ]
#include <metal_stdlib> #include <simd/simd.h> using namespace metal; struct Uniforms { half4 inputVal; half4 colorGreen; half4 colorRed; }; struct Inputs { }; struct Outputs { half4 sk_FragColor [[color(0)]]; }; fragment Outputs fragmentMain(Inputs _in [[stage_in]], constant Uniforms& _uniforms [[buffer(0)]], bool _frontFacing [[front_facing]], float4 _fragCoord [[position]]) { Outputs _out; (void)_out; half4 expectedVec = half4(1.0h, 0.0h, 0.0h, 0.0h); _out.sk_FragColor = ((((((sign(_uniforms.inputVal.x) == expectedVec.x && all(normalize(_uniforms.inputVal.xy) == expectedVec.xy)) && all(normalize(_uniforms.inputVal.xyz) == expectedVec.xyz)) && all(normalize(_uniforms.inputVal) == expectedVec)) && 1.0h == expectedVec.x) && all(half2(0.0h, 1.0h) == expectedVec.yx)) && all(half3(0.0h, 1.0h, 0.0h) == expectedVec.zxy)) && all(half4(1.0h, 0.0h, 0.0h, 0.0h) == expectedVec) ? _uniforms.colorGreen : _uniforms.colorRed; return _out; }
Metal
3
fourgrad/skia
tests/sksl/intrinsics/Normalize.metal
[ "BSD-3-Clause" ]
/* Copyright (c) <2003-2016> <Newton Game Dynamics> * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this software for any purpose, * including commercial applications, and to alter it and redistribute it * freely */ public class insertPhy { public static int insertPhy0 () { int a = 0; int x = 0; if (a > 2) { x = 1; } else { x = 2; } // x is equal 2 return x; } public static int insertPhy1 () { int a = 0; int b = 1; if (b < 4) { a = 3; } else { b = 7; } // a + b is equal 4 return a + b; } /* public static int insertPhy2 () { int i = 6; int k = 1; int j = 100; do { i = i + k; } while (i == j); // i == 7 return i; } public static int insertPhy3 () { int i = 6; int k = 1; int j = 100; while (i == j) { i = i + k; } // i == 6 return i; } public static int insertPhy4 () { int i = 12; do { int x = i + 17; int j = i; i = j; } while (i < 10 ); // i == 12 return i; } public static int insertPhy5 () { int a = 0; int b = 0; int c = 0; do { b = a + 1; c = c + b; a = b * 2; } while (a < 200); return c; } public static int insertPhy6 () { int i = 6; int j = 1; int k = 1; do { if (i == 6) { k = 0; } else { i = i + 1; } i = i + k; j = j + 1; } while (i == j); return i; } public static int insertPhy7 () { int i = 1; int j = 1; int k = 0; do { if (j < 20) { j = i; k = k + 1; } else { j = k; k = k + 2; } } while (k < 100); return j; } public static int insertPhy8 () { int i = 1; int j = 1; int k = 0; while (k < 100) { if (j < 20) { j = i; k = k + 1; } else { j = k; k = k + 2; } } return j; } */ }
LSL
4
execomrt/newton-dynamics
newton-3.14/sdk/dCompilerKit/dNewtonScriptCompiler/demos/insertPhy.lsl
[ "Zlib" ]
--TEST-- Test gmdate() function : basic functionality --FILE-- <?php echo "*** Testing gmdate() : basic functionality ***\n"; // Initialise all required variables date_default_timezone_set('UTC'); $format = DATE_ISO8601; $timestamp = mktime(8, 8, 8, 8, 8, 2008); // Calling gmdate() with all possible arguments var_dump( gmdate($format, $timestamp) ); // Calling gmdate() with mandatory arguments var_dump( gmdate($format) ); ?> --EXPECTF-- *** Testing gmdate() : basic functionality *** string(24) "2008-08-08T08:08:08+0000" string(%d) "%s"
PHP
4
NathanFreeman/php-src
ext/date/tests/gmdate_basic.phpt
[ "PHP-3.01" ]
// eslint-disable-next-line import data from '../../lib/data' export default () => <p>hello</p>
JavaScript
1
blomqma/next.js
test/integration/page-config/pages/blog/index.js
[ "MIT" ]
#pragma once #include "envoy/network/udp_packet_writer_handler.h" #include "quiche/quic/core/quic_packet_writer.h" namespace Envoy { namespace Quic { class EnvoyQuicPacketWriter : public quic::QuicPacketWriter { public: EnvoyQuicPacketWriter(Network::UdpPacketWriterPtr envoy_udp_packet_writer); quic::WriteResult WritePacket(const char* buffer, size_t buf_len, const quic::QuicIpAddress& self_address, const quic::QuicSocketAddress& peer_address, quic::PerPacketOptions* options) override; // quic::QuicPacketWriter bool IsWriteBlocked() const override { return envoy_udp_packet_writer_->isWriteBlocked(); } void SetWritable() override { envoy_udp_packet_writer_->setWritable(); } bool IsBatchMode() const override { return envoy_udp_packet_writer_->isBatchMode(); } // Currently this writer doesn't support pacing offload. bool SupportsReleaseTime() const override { return false; } quic::QuicByteCount GetMaxPacketSize(const quic::QuicSocketAddress& peer_address) const override; quic::QuicPacketBuffer GetNextWriteLocation(const quic::QuicIpAddress& self_address, const quic::QuicSocketAddress& peer_address) override; quic::WriteResult Flush() override; private: Network::UdpPacketWriterPtr envoy_udp_packet_writer_; }; } // namespace Quic } // namespace Envoy
C
4
giantcroc/envoy
source/common/quic/envoy_quic_packet_writer.h
[ "Apache-2.0" ]
# fstar.exe # auto-generated from output of `fstar.exe --help` # using FStar/.scripts/fstar_fish_completions.py complete -c fstar.exe -l abort_on --description "non-negative integer Abort on the n-th error or warning raised. Useful in combination with --trace_error. Count starts at 1, use 0 to disable. (default 0)" complete -c fstar.exe -l admit_smt_queries -r --description "Admit SMT queries, unsafe! (default 'false')" complete -c fstar.exe -l admit_except -r --description "Admit all queries, except those with label (<symbol>, <id>)) (e.g. --admit_except '(FStar.Fin.pigeonhole, 1)' or --admit_except FStar.Fin.pigeonhole)" complete -c fstar.exe -l already_cached --description "One or more space-separated occurrences of '[+|-]( * | namespace | module)'" complete -c fstar.exe -l cache_checked_modules --description "Write a '.checked' file for each module after verification and read from it if present, instead of re-verifying" complete -c fstar.exe -l cache_dir --description "dir Read and write .checked and .checked.lax in directory <dir>" complete -c fstar.exe -l cache_off --description "Do not read or write any .checked files" complete -c fstar.exe -l print_cache_version --description "Print the version for .checked files and exit." complete -c fstar.exe -l cmi --description "Inline across module interfaces during extraction (aka. cross-module inlining)" complete -c fstar.exe -l codegen -r --description "Generate code for further compilation to executable code, or build a compiler plugin" complete -c fstar.exe -l codegen-lib --description "namespace External runtime library (i.e. M.N.x extracts to M.N.X instead of M_N.x)" complete -c fstar.exe -l debug --description "module_name Print lots of debugging information while checking module" complete -c fstar.exe -l debug_level -r --description "Control the verbosity of debugging info" complete -c fstar.exe -l defensive -r --description "Enable several internal sanity checks, useful to track bugs and report issues." complete -c fstar.exe -l dep -r --description "Output the transitive closure of the full dependency graph in three formats:" complete -c fstar.exe -l detail_errors --description "Emit a detailed error report by asking the SMT solver many queries; will take longer" complete -c fstar.exe -l detail_hint_replay --description "Emit a detailed report for proof whose unsat core fails to replay" complete -c fstar.exe -l dump_module --description "module_name" complete -c fstar.exe -l eager_subtyping --description "Try to solve subtyping constraints at each binder (loses precision but may be slightly more efficient)" complete -c fstar.exe -l extract --description "One or more space-separated occurrences of '[+|-]( * | namespace | module)'" complete -c fstar.exe -l extract_module --description "module_name Deprecated: use --extract instead; Only extract the specified modules (instead of the possibly-partial dependency graph)" complete -c fstar.exe -l extract_namespace --description "namespace name Deprecated: use --extract instead; Only extract modules in the specified namespace" complete -c fstar.exe -l expose_interfaces --description "Explicitly break the abstraction imposed by the interface of any implementation file that appears on the command line (use with care!)" complete -c fstar.exe -l hide_uvar_nums --description "Don't print unification variable numbers" complete -c fstar.exe -l hint_dir --description "path Read/write hints to <dir>/module_name.hints (instead of placing hint-file alongside source file)" complete -c fstar.exe -l hint_file --description "path Read/write hints to <path> (instead of module-specific hints files; overrides hint_dir)" complete -c fstar.exe -l hint_info --description "Print information regarding hints (deprecated; use --query_stats instead)" complete -c fstar.exe -l in --description "Legacy interactive mode; reads input from stdin" complete -c fstar.exe -l ide --description "JSON-based interactive mode for IDEs" complete -c fstar.exe -l lsp --description "Language Server Protocol-based interactive mode for IDEs" complete -c fstar.exe -l include --description "path A directory in which to search for files included on the command line" complete -c fstar.exe -l print --description "Parses and prettyprints the files included on the command line" complete -c fstar.exe -l print_in_place --description "Parses and prettyprints in place the files included on the command line" complete -c fstar.exe -l force --description "Force checking the files given as arguments even if they have valid checked files" complete -c fstar.exe -l fuel --description "non-negative integer or pair of non-negative integers Set initial_fuel and max_fuel at once" complete -c fstar.exe -l ifuel --description "non-negative integer or pair of non-negative integers Set initial_ifuel and max_ifuel at once" complete -c fstar.exe -l initial_fuel --description "non-negative integer Number of unrolling of recursive functions to try initially (default 2)" complete -c fstar.exe -l initial_ifuel --description "non-negative integer Number of unrolling of inductive datatypes to try at first (default 1)" complete -c fstar.exe -l keep_query_captions -r --description "Retain comments in the logged SMT queries (requires --log_queries; default true)" complete -c fstar.exe -l lax --description "Run the lax-type checker only (admit all verification conditions)" complete -c fstar.exe -l load --description "module Load compiled module" complete -c fstar.exe -l log_types --description "Print types computed for data/val/let-bindings" complete -c fstar.exe -l log_queries --description "Log the Z3 queries in several queries-*.smt2 files, as we go" complete -c fstar.exe -l max_fuel --description "non-negative integer Number of unrolling of recursive functions to try at most (default 8)" complete -c fstar.exe -l max_ifuel --description "non-negative integer Number of unrolling of inductive datatypes to try at most (default 2)" complete -c fstar.exe -l MLish --description "Trigger various specializations for compiling the F* compiler itself (not meant for user code)" complete -c fstar.exe -l no_default_includes --description "Ignore the default module search paths" complete -c fstar.exe -l no_extract --description "module name Deprecated: use --extract instead; Do not extract code from this module" complete -c fstar.exe -l no_load_fstartaclib --description "Do not attempt to load fstartaclib by default" complete -c fstar.exe -l no_location_info --description "Suppress location information in the generated OCaml output (only relevant with --codegen OCaml)" complete -c fstar.exe -l no_smt --description "Do not send any queries to the SMT solver, and fail on them instead" complete -c fstar.exe -l normalize_pure_terms_for_extraction --description "Extract top-level pure terms after normalizing them. This can lead to very large code, but can result in more partial evaluation and compile-time specialization." complete -c fstar.exe -l odir --description "dir Place output in directory <dir>" complete -c fstar.exe -l prims --description "file" complete -c fstar.exe -l print_bound_var_types --description "Print the types of bound variables" complete -c fstar.exe -l print_effect_args --description "Print inferred predicate transformers for all computation types" complete -c fstar.exe -l print_expected_failures --description "Print the errors generated by declarations marked with expect_failure, useful for debugging error locations" complete -c fstar.exe -l print_full_names --description "Print full names of variables" complete -c fstar.exe -l print_implicits --description "Print implicit arguments" complete -c fstar.exe -l print_universes --description "Print universes" complete -c fstar.exe -l print_z3_statistics --description "Print Z3 statistics for each SMT query (details such as relevant modules, facts, etc. for each proof)" complete -c fstar.exe -l prn --description "Print full names (deprecated; use --print_full_names instead)" complete -c fstar.exe -l quake --description "positive integer or pair of positive integers Repeats SMT queries to check for robustness" complete -c fstar.exe -l quake --description "N/M repeats each query checks that it succeeds at least N out of M times, aborting early if possible" complete -c fstar.exe -l quake --description "N/M/k works as above, except it will unconditionally run M times" complete -c fstar.exe -l quake --description "N is an alias for --quake N/N" complete -c fstar.exe -l quake --description "N/k is an alias for --quake N/N/k" complete -c fstar.exe -l query_stats --description "Print SMT query statistics" complete -c fstar.exe -l record_hints --description "Record a database of hints for efficient proof replay" complete -c fstar.exe -l record_options --description "Record the state of options used to check each sigelt, useful for the `check_with` attribute and metaprogramming" complete -c fstar.exe -l retry --description "positive integer Retry each SMT query N times and succeed on the first try. Using --retry disables --quake." complete -c fstar.exe -l reuse_hint_for --description "toplevel_name Optimistically, attempt using the recorded hint for <toplevel_name> (a top-level name in the current module) when trying to verify some other term 'g'" complete -c fstar.exe -l report_assumes -r --description "Report every use of an escape hatch, include assume, admit, etc." complete -c fstar.exe -l silent --description "Disable all non-critical output" complete -c fstar.exe -l smt --description "path Path to the Z3 SMT solver (we could eventually support other solvers)" complete -c fstar.exe -l smtencoding.elim_box -r --description "Toggle a peephole optimization that eliminates redundant uses of boxing/unboxing in the SMT encoding (default 'false')" complete -c fstar.exe -l smtencoding.nl_arith_repr -r --description "Control the representation of non-linear arithmetic functions in the SMT encoding:" complete -c fstar.exe -l smtencoding.l_arith_repr -r --description "Toggle the representation of linear arithmetic functions in the SMT encoding:" complete -c fstar.exe -l smtencoding.valid_intro -r --description "Include an axiom in the SMT encoding to introduce proof-irrelevance from a constructive proof" complete -c fstar.exe -l smtencoding.valid_elim -r --description "Include an axiom in the SMT encoding to eliminate proof-irrelevance into the existence of a proof witness" complete -c fstar.exe -l tactic_raw_binders --description "Do not use the lexical scope of tactics to improve binder names" complete -c fstar.exe -l tactics_failhard --description "Do not recover from metaprogramming errors, and abort if one occurs" complete -c fstar.exe -l tactics_info --description "Print some rough information on tactics, such as the time they take to run" complete -c fstar.exe -l tactic_trace --description "Print a depth-indexed trace of tactic execution (Warning: very verbose)" complete -c fstar.exe -l tactic_trace_d --description "positive_integer Trace tactics up to a certain binding depth" complete -c fstar.exe -l __tactics_nbe --description "Use NBE to evaluate metaprograms (experimental)" complete -c fstar.exe -l tcnorm -r --description "Attempt to normalize definitions marked as tcnorm (default 'true')" complete -c fstar.exe -l timing --description "Print the time it takes to verify each top-level definition" complete -c fstar.exe -l trace_error --description "Don't print an error message; show an exception trace instead" complete -c fstar.exe -l ugly --description "Emit output formatted for debugging" complete -c fstar.exe -l unthrottle_inductives --description "Let the SMT solver unfold inductive types to arbitrary depths (may affect verifier performance)" complete -c fstar.exe -l unsafe_tactic_exec --description "Allow tactics to run external processes. WARNING: checking an untrusted F* file while using this option can have disastrous effects." complete -c fstar.exe -l use_eq_at_higher_order --description "Use equality constraints when comparing higher-order types (Temporary)" complete -c fstar.exe -l use_hints --description "Use a previously recorded hints database for proof replay" complete -c fstar.exe -l use_hint_hashes --description "Admit queries if their hash matches the hash recorded in the hints database" complete -c fstar.exe -l use_native_tactics --description "path Use compiled tactics from <path>" complete -c fstar.exe -l no_plugins --description "Do not run plugins natively and interpret them as usual instead" complete -c fstar.exe -l no_tactics --description "Do not run the tactic engine before discharging a VC" complete -c fstar.exe -l using_facts_from --description "One or more space-separated occurrences of '[+|-]( * | namespace | fact id)'" complete -c fstar.exe -l vcgen.optimize_bind_as_seq --description "[off|without_type|with_type]" complete -c fstar.exe -l __temp_no_proj --description "module_name Don't generate projectors for this module" complete -c fstar.exe -l __temp_fast_implicits --description "Don't use this option yet" complete -c fstar.exe -l version --description "Display version number" complete -c fstar.exe -l warn_default_effects --description "Warn when (a -> b) is desugared to (a -> Tot b)" complete -c fstar.exe -l z3cliopt --description "option Z3 command line options" complete -c fstar.exe -l z3refresh --description "Restart Z3 after each query; useful for ensuring proof robustness" complete -c fstar.exe -l z3rlimit --description "positive_integer Set the Z3 per-query resource limit (default 5 units, taking roughtly 5s)" complete -c fstar.exe -l z3rlimit_factor --description "positive_integer Set the Z3 per-query resource limit multiplier. This is useful when, say, regenerating hints and you want to be more lax. (default 1)" complete -c fstar.exe -l z3seed --description "positive_integer Set the Z3 random seed (default 0)" complete -c fstar.exe -l use_two_phase_tc -r --description "Use the two phase typechecker (default 'true')" complete -c fstar.exe -l __no_positivity --description "Don't check positivity of inductive types" complete -c fstar.exe -l warn_error --description "The [-warn_error] option follows the OCaml syntax, namely:" complete -c fstar.exe -l use_nbe -r --description "Use normalization by evaluation as the default normalization strategy (default 'false')" complete -c fstar.exe -l use_nbe_for_extraction -r --description "Use normalization by evaluation for normalizing terms before extraction (default 'false')" complete -c fstar.exe -l trivial_pre_for_unannotated_effectful_fns -r --description "Enforce trivial preconditions for unannotated effectful functions (default 'true')" complete -c fstar.exe -l __debug_embedding --description "Debug messages for embeddings/unembeddings of natively compiled terms" complete -c fstar.exe -l eager_embedding --description "Eagerly embed and unembed terms to primitive operations and plugins: not recommended except for benchmarking" complete -c fstar.exe -l profile_group_by_decl --description "Emit profiles grouped by declaration rather than by module" complete -c fstar.exe -l profile_component --description "One or more space-separated occurrences of '[+|-]( * | namespace | module | identifier)'" complete -c fstar.exe -l profile --description "One or more space-separated occurrences of '[+|-]( * | namespace | module)'" complete -c fstar.exe -l help --description "Display this information"
fish
3
SwampertX/FStar
.completion/fish/fstar.exe.fish
[ "Apache-2.0" ]
<template> <div class="content"> <h1 class="title"> Another Page </h1> <p> <NuxtLink to="/" class="button is-medium is-info hvr-wobble-vertical"> Another button </NuxtLink> </p> <p> <NuxtLink to="/"> Back home </NuxtLink> </p> </div> </template>
Vue
4
ardyno/nuxt.js
examples/global-css/pages/about.vue
[ "MIT" ]
from torch import nn from torch.nn.utils.rnn import PackedSequence class LstmFlatteningResult(nn.LSTM): def forward(self, input, *fargs, **fkwargs): output, (hidden, cell) = nn.LSTM.forward(self, input, *fargs, **fkwargs) return output, hidden, cell class LstmFlatteningResultWithSeqLength(nn.Module): def __init__(self, input_size, hidden_size, layers, bidirect, dropout, batch_first): super(LstmFlatteningResultWithSeqLength, self).__init__() self.batch_first = batch_first self.inner_model = nn.LSTM(input_size=input_size, hidden_size=hidden_size, num_layers=layers, bidirectional=bidirect, dropout=dropout, batch_first=batch_first) def forward(self, input: PackedSequence, hx=None): output, (hidden, cell) = self.inner_model.forward(input, hx) return output, hidden, cell class LstmFlatteningResultWithoutSeqLength(nn.Module): def __init__(self, input_size, hidden_size, layers, bidirect, dropout, batch_first): super(LstmFlatteningResultWithoutSeqLength, self).__init__() self.batch_first = batch_first self.inner_model = nn.LSTM(input_size=input_size, hidden_size=hidden_size, num_layers=layers, bidirectional=bidirect, dropout=dropout, batch_first=batch_first) def forward(self, input, hx=None): output, (hidden, cell) = self.inner_model.forward(input, hx) return output, hidden, cell
Python
4
Hacky-DH/pytorch
test/onnx/model_defs/lstm_flattening_result.py
[ "Intel" ]
var x: int(64) = 1; var u: int(32) = 2; u += x; writeln(u);
Chapel
2
jhh67/chapel
test/trivial/deitz/coerce-assign/plusassign_error.chpl
[ "ECL-2.0", "Apache-2.0" ]
' ********** Copyright 2021 Roku, Inc. All Rights Reserved. ********** function RAFX_getSSAIPluginBase(params as object) as Object daisdk = {} daisdk.init = function(params=invalid as object) as Void m.createImpl() m.createEventCallbacks() m.updateLocale() m.logLevel = 0 if invalid <> params if invalid <> params["logLevel"] then m.logLevel = params.logLevel end if end function daisdk.requestStream = function(requestObj as object) as object status = {} ret = m.impl.requestPreplay(requestObj) if ret <> invalid and ret["error"] <> invalid status["error"] = ret["error"] end if return status end function daisdk.getStreamInfo = function() as object return m.impl.getStreamInfo() end function daisdk.setStreamInfo = function(streamInfo as object) as object return m.impl.setStreamInfo(streamInfo) end function daisdk.enableAds = function(params as object) as void m.impl.enableAds(params) end function daisdk.addEventListener = function(event as string, callback as function) as Void m.eventCallbacks.addEventListener(event, callback) end function daisdk.onMessage = function(msg as object) as object return m.impl.onMessage(msg) end function daisdk.onSeekSnap = function(seekRequest as object) as double return m.impl.onSeekSnap(seekRequest) end function daisdk.isInteractive = function(curAd as object) as boolean return m.impl.isInteractive(curAd) end function daisdk.command = function(params as object) as object return m.impl.command(params) end function daisdk.createEventCallbacks = function() as object obj = m.createDAIObject("eventCallbacks") obj.callbacks = {} return obj end function evtcll = {} evtcll.addEventListener = function(event as string, callback as function) as Void m.callbacks[event] = callback end function evtcll.doCall = function(event as string, adInfo as object) as Void if invalid <> m.callbacks[event] func = getglobalaa()["callFunctionInGlobalNamespace"] func(m.callbacks[event], adInfo) end if end function evtcll.errCall = function(errid as integer, errInfo as string) as Void ERROR = m.sdk.CreateError() ERROR.id = errid ERROR.info = errInfo dd = getglobalaa()["callFunctionInGlobalNamespace"] dd(m.sdk.AdEvent.ERROR, ERROR) end function daisdk["eventCallbacks"] = evtcll daisdk.createImpl = function() as object obj = m.createDAIObject("impl") obj.strmURL = "" obj.prplyInfo = invalid obj.wrpdPlayer = invalid obj.loader = invalid obj.streamManager = invalid obj.useStitched = true adIface = m.getRokuAds() return obj end function impl = {} impl.setStreamInfo = function(streamInfo as object) as void end function impl.parsePrplyInfo = function() as object m.sdk.log("parsePrplyInfo() To be overridden") return {adOpportunities:0, adBreaks:[]} end function impl.enableAds = function(params as object) as Void ei = false if type(params["player"]) = "roAssociativeArray" player = params["player"] if player.doesexist("port") and player.doesexist("sgnode") ei = true end if m.wrpdPlayer = player end if m.useStitched = (invalid = params["useStitched"] or params["useStitched"]) if m.useStitched adIface = m.sdk.getRokuAds() adIface.stitchedAdsInit([]) if invalid <> params.RIA m.RIA = params.RIA end if end if if not ei m.sdk.log("Warning: Invalid object for interactive ads.") return end if m.setRAFAdPods(params["ads"]) end function impl.setRAFAdPods = function(adbreaksGiven = invalid as object) as Void adBreaks = adbreaksGiven if invalid = adbreaksGiven pTimer = createObject("roTimespan") parseResults = m.parsePrplyInfo() adBreaks = parseResults.adBreaks if m.loader["xResponseTime"] <> invalid m.sdk.logToRAF("ValidResponse", {ads:adBreaks,slots:parseResults.adOpportunities,responseTime:m.loader.xResponseTime, parseTime:pTimer.totalMilliseconds(), url:m.loader.strmURL, adServers:invalid}) m.loader.xResponseTime = invalid end if end if if 0 < adBreaks.count() if m.useStitched adIface = m.sdk.getRokuAds() adIface.stitchedAdsInit(adBreaks) m.sdk.log(["impl.setRAFAdPods() adBreaks set to RAF. renderTime: ",adBreaks[0].renderTime.tostr()], 5) end if m.sdk.eventCallbacks.doCall(m.sdk.AdEvent.PODS, {event:m.sdk.AdEvent.PODS, adPods:adBreaks}) end if if invalid = m.streamManager then m.streamManager = m.sdk.createStreamManager() m.streamManager.createTimeToEventMap(adBreaks) end function impl.onMetadata = function(msg as object) as void end function impl.onUnknown = function(msg as object) as void end function impl.onPosition = function (msg as object) as void m.streamManager.onPosition(msg) end function impl.onMessage = function(msg as object) as object msgType = m.sdk.getMsgType(msg, m.wrpdPlayer) if msgType = m.sdk.msgType.FINISHED m.sdk.log("All video is completed - full result") m.sdk.eventCallbacks.doCall(m.sdk.AdEvent.STREAM_END, {}) else if msgType = m.sdk.msgType.METADATA m.onMetadata(msg) else if msgType = m.sdk.msgType.POSITION m.onPosition(msg) else if invalid <> msg and msgType = m.sdk.msgType.UNKNOWN m.onUnknown(msg) end if curAd = m.msgToRAF(msg) if invalid <> m.prplyInfo and msgType = m.sdk.msgType.POSITION m.streamManager.onMessageVOD(msg, curAd) m.onMessageLIVE(msg, curAd) else if msgType = m.sdk.msgType.FINISHED m.streamManager.deinit() end if return curAd end function impl.onSeekSnap = function(seekRequest as object) as double if invalid = m.prplyInfo or m.prplyInfo.strmType <> m.sdk.StreamType.VOD or invalid = m.streamManager then return seekRequest.time return m.streamManager.onSeekSnap(seekRequest) end function impl.onMessageLIVE = function(msg as object, curAd as object) as void if m.sdk.StreamType.LIVE <> m.prplyInfo.strmType then return end function impl.msgToRAF = function(msg as object) as object if m.useStitched adIface = m.sdk.getRokuAds() return adIface.stitchedAdHandledEvent(msg, m.wrpdPlayer) end if return invalid end function impl.requestPreplay = function(requestObj as object) as object ret = {} if invalid = m.loader m.loader = m.createLoader(requestObj.type) end if jsn = m.loader.requestPreplay(requestObj) if type(jsn) = "roAssociativeArray" m.prplyInfo = jsn else if jsn <> "" m.prplyInfo = parsejson(jsn) end if if m.prplyInfo <> invalid if requestObj["testAds"] <> invalid ads = ReadAsciiFile(requestObj.testAds) if ads <> invalid m.prplyInfo.ads = parsejson(ads) else m.sdk.log(requestObj.testAds + " may not be valid JSON") end if end if m.prplyInfo["strmType"] = requestObj.type m.loader.composePingURL(m.prplyInfo) else m.prplyInfo = {strmType:requestObj.type} ret["error"] = "No valid response from "+requestObj.url end if return ret end function impl.createLoader = function(live_or_vod as string) as object m.loader = m.sdk.createLoader(live_or_vod) return m.loader end function impl.isInteractive = function(curAd as object) as boolean return m.streamManager.isInteractive(curAd) end function impl.command = function(params as object) as object ret = invalid if m.useStitched and "exitPod" = params.cmd ret = m.exitPod(params) end if return ret end function impl.exitPod = function(params as object) as object curAd = invalid strmMgr = m.streamManager if invalid <> params.curAd and invalid <> strmMgr.currentAdBreak and not strmMgr.isInteractive(params.curAd) msg = { getData : function() return 0 end function getField : function() as string return "keypressed" end function isRemoteKeyPressed : function() As Boolean return true end function GetIndex : function() As Integer return 0 end function IsScreenClosed : function() As Boolean return false end function } curAd = m.msgToRAF(msg) adIface = m.sdk.getRokuAds() adIface.stitchedAdsInit([]) end if return curAd end function impl.isnonemptystr = function(obj) as boolean return ((obj <> invalid) and (GetInterface(obj, "ifString") <> invalid) and (len(obj) > 0)) end function impl.setRIAParameters = function(rAd as object, srcAd as object) as void if m.useStitched if m.isnonemptystr(srcAd.adParameters) then rAd.adParameters = srcAd.adParameters return else if invalid <> m.RIA and invalid <> m.RIA.getAdParameters rAd.adParameters = m.RIA.getAdParameters() end if end if end function daisdk["impl"] = impl daisdk.createLoader = function(live_or_vod as string) as object obj = m.createDAIObject(live_or_vod+"loader") obj.strmURL = "" return obj end function liveloader = {} liveloader.ping = function(param as dynamic) as void m.sdk.log("liveloader.ping() To be overridden") end function daisdk["liveloader"] = liveloader vodloader = {} vodloader.ping = function(param as dynamic) as void end function vodloader.composePingURL = function(prplyInfo as object) as void end function vodloader.requestPreplay = function(requestObj as object) as dynamic if not m.isValidString(m.strmURL) m.strmURL = requestObj.url end if return m.getJSON(requestObj) end function vodloader.isValidString = function(ue as dynamic) as boolean ve = type(ue) if ve = "roString" or ve = "String" return len(ue) > 0 end if return false end function vodloader.getJSON = function(params as object) as string xfer = m.sdk.createUrlXfer(m.sdk.httpsRegex.isMatch(params.url)) xfer.setUrl(params.url) port = createObject("roMessagePort") xfer.setPort(port) xfer.addHeader("Accept", "application/json, application/xml") if invalid <> params["headers"] for each item in params["headers"].items() xfer.addHeader(item.key, item.value) end for end if xTimer = createObject("roTimespan") if params["retry"] <> invalid then m.sdk.logToRAF("Request", params) xTimer.mark() if invalid <> params["body"] xfer.asyncPostFromString(params.body) else xfer.asyncGetToString() end if timeoutsec = 4 if invalid <> params["timeoutsec"] timeoutsec = params["timeoutsec"] end if msg = port.waitMessage(timeoutsec*1000) xTime = xTimer.totalMilliseconds() if msg = invalid m.sdk.logToRAF("ErrorResponse", {error: "no response", time: xTime, label: "Primary", url:params.url}) m.sdk.log("Msg is invalid. Possible timeout on loading URL") return "" else if type(msg) = "roUrlEvent" wi = msg.getResponseCode() if 200 <> wi and 201 <> wi m.sdk.logToRAF("EmptyResponse", {error: msg.getfailurereason(), time: xTime, label: "Primary", url:params.url}) m.sdk.log(["Transfer url: ", params.url, " failed, got code: ", wi.tostr(), " reason: ", msg.getfailurereason()]) return "" end if if params["retry"] <> invalid then m.xResponseTime = xTime return msg.getString() else m.sdk.log("Unknown Ad Request Event: " + type(msg)) end if return "" end function daisdk["vodloader"] = vodloader daisdk.createStreamManager = function() as object obj = m.createDAIObject("streamManager") obj.adTimeToEventMap = invalid obj.adTimeToBreakMap = invalid obj.adTimeToBeginEnd = invalid obj.crrntPosSec = -1 obj.lastPosSec = -1 obj.whenAdBreakStart = -1 obj.currentAdBreak = invalid obj.nukeTimeToEventMap = false return obj end function strmMgr = {} strmMgr.addEventToEvtMap = function(timeToEvtMap as object, timeKey as string, evtStr as dynamic) as void evtType = type(evtStr) if "String" = evtType or "roString" = evtType m.addEventToEvtMapString(timeToEvtMap, timeKey, evtStr) else for each x in evtStr m.addEventToEvtMapString(timeToEvtMap, timeKey, x) end for end if end function strmMgr.addEventToEvtMapString = function(timeToEvtMap as object, timeKey as string, evtStr as string) as void if timeToEvtMap[timeKey] = invalid timeToEvtMap[timeKey] = [evtStr] else eExist = false for each e in timeToEvtMap[timeKey] eExist = eExist or (e = evtStr) end for if not eExist timeToEvtMap[timeKey].push(evtStr) end if end if end function strmMgr.trackingToMap = function(tracking as object, timeToEvtMapGiven=invalid as object) as boolean timeToEvtMap = timeToEvtMapGiven if invalid = timeToEvtMap timeToEvtMap = m.adTimeToEventMap end if hasCompleteEvent = false for each evt in tracking if invalid <> evt["time"] timeKey = int(evt.time).tostr() m.addEventToEvtMap(timeToEvtMap, timeKey, evt.event) if m.sdk.AdEvent.COMPLETE = evt.event hasCompleteEvent = true end if end if end for return hasCompleteEvent end function strmMgr.createTimeToEventMap = function(adBreaks as object) as Void if adBreaks = invalid m.adTimeToEventMap = invalid m.adTimeToBreakMap = invalid m.adTimeToBeginEnd = invalid return end if timeToEvtMap = {} timeToBreakMap = {} timeToBeginEnd = [] for each adBreak in adBreaks brkBegin = int(adBreak.renderTime) brkTimeKey = brkBegin.tostr() timeToEvtMap[brkTimeKey] = [m.sdk.AdEvent.POD_START] timeToBreakMap[brkTimeKey] = adBreak adRenderTime = adBreak.renderTime for each rAd in adBreak.ads hasCompleteEvent = m.trackingToMap(rAd.tracking, timeToEvtMap) adRenderTime = adRenderTime + rAd.duration if not hasCompleteEvent and 0 < rAd.tracking.count() and 0 < rAd.duration timeKey = int(adRenderTime - 0.5).tostr() m.addEventToEvtMap(timeToEvtMap, timeKey, m.sdk.AdEvent.COMPLETE) end if end for brkEnd = int(adBreak.renderTime+adBreak.duration) timeKey = brkEnd.tostr() m.appendBreakEnd(timeToEvtMap, timeKey) timeToBeginEnd.push({"begin":brkBegin, "end":brkEnd, "renderSequence":adBreak.renderSequence}) end for if not timeToEvtMap.isEmpty() m.adTimeToEventMap = timeToEvtMap m.lastEvents = {} end if if not timeToBreakMap.isEmpty() then m.adTimeToBreakMap = timeToBreakMap if 0 < timeToBeginEnd.count() then timeToBeginEnd.sortby("begin") m.adTimeToBeginEnd = timeToBeginEnd end if end function strmMgr.appendBreakEnd = function(timeToEvtMap as object, timeKey as string) as object if timeToEvtMap[timeKey] = invalid timeToEvtMap[timeKey] = [m.sdk.AdEvent.POD_END] else timeToEvtMap[timeKey].push(m.sdk.AdEvent.POD_END) end if return timeToEvtMap end function strmMgr.findBreak = function(possec as float) as object snapbrk = invalid if invalid = m.adTimeToBeginEnd then return snapbrk for each brk in m.adTimeToBeginEnd if brk.begin <= possec and possec <= brk.end snapbrk = brk exit for end if if possec < brk.end then exit for end for return snapbrk end function strmMgr.onSeekSnap = function(seekRequest as object) as double if invalid = m.adTimeToBeginEnd then return seekRequest.time if m.sdk.SnapTo.NEXTPOD = seekRequest.snapto for each brk in m.adTimeToBeginEnd if seekRequest.time < brk.begin then exit for else if m.crrntPosSec <= brk.begin and brk.begin <= seekRequest.time snap2begin = brk.begin - 1 if snap2begin < 0 then snap2begin = 0 return snap2begin end if end for else snapbrk = m.findBreak(seekRequest.time) if snapbrk = invalid then return seekRequest.time snap2begin = snapbrk.begin - 1 if snap2begin < 0 then snap2begin = 0 if "postroll" = snapbrk.renderSequence then return snap2begin if m.sdk.SnapTo.BEGIN = seekRequest.snapto return snap2begin else if m.sdk.SnapTo.END = seekRequest.snapto return snapbrk.end + 1 end if end if return seekRequest.time end function strmMgr.onPosition = function(msg as object) as Void if m.currentAdBreak = invalid or m.currentAdBreak.duration = invalid return end if posSec = msg.getData() if 0 <= m.whenAdBreakStart and m.whenAdBreakStart + m.currentAdBreak.duration + 2 < posSec m.cleanupAdBreakInfo(false) end if end function strmMgr.onMessageVOD = function(msg as object, curAd as object) as Void posSec = msg.getData() if posSec = m.crrntPosSec or posSec = m.lastPosSec return end if m.lastPosSec = m.crrntPosSec m.crrntPosSec = posSec if m.crrntPosSec <> m.lastPosSec + 1 m.handlePosition(posSec - 1, curAd) end if m.handlePosition(posSec, curAd) end function strmMgr.handlePosition = function(sec as integer, curAd as object) as Void if m.adTimeToEventMap <> invalid timeKey = sec.tostr() if m.adTimeToEventMap[timeKey] <> invalid for each adEvent in m.adTimeToEventMap[timeKey] if adEvent <> invalid m.handleAdEvent(adEvent, sec, curAd) end if end for if m.nukeTimeToEventMap m.adTimeToEventMap.delete(timeKey) end if end if end if end function strmMgr.fillAdBreakInfo = function(sec as integer, curAd as object) as Void m.whenAdBreakStart = sec if invalid <> m.adTimeToBreakMap adBreak = m.adTimeToBreakMap[sec.tostr()] if invalid <> adBreak m.currentAdBreak = adBreak end if end if end function strmMgr.updateAdBreakEvents = function(adBreak as object, triggered as boolean) as void adBreak.viewed = triggered for each ad in adBreak.ads for each evnt in ad.tracking evnt.triggered = triggered end for end for for each evnt in adBreak.tracking evnt.triggered = triggered end for end function strmMgr.cleanupAdBreakInfo = function(triggered=false as boolean) as void if m.currentAdBreak <> invalid m.updateAdBreakEvents(m.currentAdBreak, triggered) end if m.whenAdBreakStart = -1 m.currentAdBreak = invalid m.lastEvents = {} end function strmMgr.deinit = function() as void m.adTimeToEventMap = invalid m.adTimeToBreakMap = invalid m.adTimeToBeginEnd = invalid m.currentAdBreak = invalid m.crrntPosSec = -1 m.lastPosSec = -1 m.whenAdBreakStart = -1 end function strmMgr.handleAdEvent = function(adEvent as string, sec as integer, curAd as object) as Void if adEvent = m.sdk.AdEvent.POD_START m.fillAdBreakInfo(sec, curAd) if m.lastEvents[adEvent] <> sec m.lastEvents = {} end if else if invalid = m.currentAdBreak ab = m.findBreak(sec) if invalid <> ab pastSec = ab.begin while pastsec < sec m.handlePosition(pastSec, curAd) pastSec += 1 end while end if end if end if if m.lastEvents[adEvent] <> sec adInfo = {position:sec, event:adEvent} if adEvent = m.sdk.AdEvent.POD_START then adInfo["adPod"] = m.currentAdBreak m.sdk.eventCallbacks.doCall(adEvent, adInfo) m.lastEvents[adEvent] = sec end if end function strmMgr.pastLastAdBreak = function(posSec as integer) as boolean return invalid = m.adTimeToBeginEnd or m.adTimeToBeginEnd.peek()["end"] < posSec end function strmMgr.cancelPod = function (curAd as object) as object ret = {canceled: false} if invalid <> m.currentAdBreak and 0 < m.crrntPosSec ab = m.currentAdBreak if not m.isInteractive(curAd) shortdur = (m.crrntPosSec-1) - ab.renderTime if 0 < shortdur ab.duration = shortdur m.cleanupAdBreakInfo(true) ret["canceled"] = true end if end if end if return ret end function strmMgr.isInteractive = function(curAd as object) as boolean if invalid <> curAd and invalid <> curAd["adindex"] and invalid <> m.currentAdBreak ad = m.currentAdBreak.ads[curAd["adindex"] - 1] strmFmt = ad["streamFormat"] return "iroll" = strmFmt or "brightline" = left(strmFmt,10) end if return false end function daisdk["streamManager"] = strmMgr daisdk.setCertificate = function(certificateRef as string) as Void m.certificate = certificateRef end function daisdk.getCertificate = function() as string if m.certificate = invalid return "common:/certs/ca-bundle.crt" end if return m.certificate end function daisdk.getMsgType = function(msg as object, player as object) as integer nodeId = player.sgnode.id if "roSGNodeEvent" = type(msg) xg = msg.getField() if nodeId = msg.getNode() if xg = "position" return m.msgType.POSITION else if xg.left(13) = "timedMetaData" return m.msgType.METADATA else if xg = "state" if msg.getData() = "finished" return m.msgType.FINISHED end if end if else if xg = "keypressed" return m.msgType.KEYEVENT end if end if end if return m.msgType.UNKNOWN end function daisdk.createUrlXfer = function(ishttps as boolean) as object xfer = createObject("roUrlTransfer") if ishttps xfer.setCertificatesfile(m.getCertificate()) xfer.initClientCertificates() end if xfer.addHeader("Accept-Language", m.locale.Accept_Language) xfer.addHeader("Content-Language", m.locale.Content_Language) return xfer end function daisdk.setTrackingTime = function(timeOffset as float, rAd as object) as void duration = rAd.duration for each evt in rAd.tracking if evt.event = m.AdEvent.IMPRESSION evt.time = 0.0 + timeOffset else if evt.event = m.AdEvent.FIRST_QUARTILE evt.time = duration * 0.25 + timeOffset else if evt.event = m.AdEvent.MIDPOINT evt.time = duration * 0.5 + timeOffset else if evt.event = m.AdEvent.THIRD_QUARTILE evt.time = duration * 0.75 + timeOffset else if evt.event = m.AdEvent.COMPLETE evt.time = duration + timeOffset end if end for end function daisdk.getValidStr = function(obj as object) as string if invalid <> obj and invalid <> getInterface(obj, "ifString") return obj.trim() else return "" end if end function daisdk.httpsRegex = createObject("roRegEx", "^https", "") daisdk.getRokuAds = function() as object return roku_ads() end function daisdk.logToRAF = function(btype as string, obj as object) as object m.getRokuAds().util.fireBeacon(btype, obj) end function daisdk.createDAIObject = function(objName as string) as object if type(m[objName]) = "roAssociativeArray" m[objName]["sdk"] = m end if return m[objName] end function daisdk.updateLocale = function() m.locale.Content_Language = createObject("roDeviceInfo").getCurrentLocale().replace("_","-") end function daisdk.ErrorEvent = { ERROR : "0", COULD_NOT_LOAD_STREAM: "1000", STREAM_API_KEY_NOT_VALID: "1002", BAD_STREAM_REQUEST: "1003" INVALID_RESPONSE: "1004" } daisdk.AdEvent = { PODS: "PodsFound" POD_START: "PodStart" START: "Start", IMPRESSION: "Impression", CREATIVE_VIEW: "creativeView", FIRST_QUARTILE: "FirstQuartile", MIDPOINT: "Midpoint", THIRD_QUARTILE: "ThirdQuartile", COMPLETE: "Complete", POD_END: "PodComplete", STREAM_END: "StreamEnd", ACCEPT_INVITATION: "AcceptInvitation", ERROR: "Error" } daisdk.msgType = { UNKNOWN: 0, POSITION: 1, METADATA: 2, FINISHED: 3, KEYEVENT: 4, } daisdk.version = { ver: "0.1.0" } daisdk.locale = { Accept_Language: "en-US,en-GB,es-ES,fr-CA,de-DE", Content_Language: "en-US" } daisdk.StreamType = { LIVE: "live", VOD: "vod" } daisdk.SnapTo = { NEXTPOD: "nextpod", BEGIN: "begin", END: "end" } daisdk.CreateError = function() as object ERROR = createObject("roAssociativeArray") ERROR.id = "" ERROR.info = "" ERROR.type = "error" return ERROR end function daisdk.log = function(x, logLevel=-1 as integer) as void if logLevel < m.logLevel ddttm = createObject("roDateTime") dtm = ["SDK (", ddttm.toISOString().split("T")[1], " ", ddttm.getMilliseconds().tostr(), "): "].join("") if "roArray" = type(x) print dtm; x.join("") else print dtm; x end if end if end function getglobalaa()["callFunctionInGlobalNamespace"] = function(dd as function, ue as object) as Void dd(ue) end function return daisdk end function function RAFX_getAmagiHLSAdapter(params as object) as Object rafssai = RAFX_getSSAIPluginBase(params) rafssai.HLSDir = { EXT_X_AD_START : "#EXT-X-AD-START:", EXT_X_AD_END : "#EXT-X-AD-END" } impl = rafssai["impl"] impl.amagiToRAFEventPod = { "Impression" : rafssai.AdEvent.POD_START, "Complete" : rafssai.AdEvent.POD_END } impl.amagiToRAFEvent = { "start" : rafssai.AdEvent.IMPRESSION "creativeView" : rafssai.AdEvent.IMPRESSION "firstQuartile" : rafssai.AdEvent.FIRST_QUARTILE "midpoint" : rafssai.AdEvent.MIDPOINT "thirdQuartile" : rafssai.AdEvent.THIRD_QUARTILE "complete" : rafssai.AdEvent.COMPLETE } impl.runningPods = [] impl.setStreamInfo = function(streamInfo as object) as void if invalid = m["prplyInfo"] then m.prplyInfo = {} m.prplyInfo["strmType"] = m.sdk.StreamType.LIVE url = streamInfo.url devInfo = createObject("roDeviceInfo") url = url.replace("ROKU_ADS_TRACKING_ID", devInfo.getRIDA()) lat = "0" if devInfo.isRIDADisabled() then lat = "1" url = url.replace("ROKU_ADS_LIMIT_TRACKING", lat) m.prplyInfo["mediaURL"] = url streamInfo.url = url m.loader = m.createLoader(m.prplyInfo.strmType) end function impl.enableAds = function(params as object) as Void ei = false player = params["player"] if type(player) = "roAssociativeArray" if player.doesexist("port") and player.doesexist("sgnode") ei = true end if m.wrpdPlayer = player end if m.useStitched = (true = params.useStitched) if not ei return end if player.sgnode.timedMetaDataSelectionKeys = [m.sdk.HLSDir.EXT_X_AD_START, m.sdk.HLSDir.EXT_X_AD_END] player.sgnode.observeField("timedMetaData2", player.port) player.sgnode.observeField("streamingSegment", player.port) if invalid = m.streamManager m.streamManager = m.sdk.createStreamManager() m.streamManager.mediaURL = m.prplyInfo["mediaURL"] m.streamManager.nukeTimeToEventMap = true end if if invalid <> params.RIA m.RIA = params.RIA end if end function impl.onMetadata = function(msg as object) as void xobj = m.streamManager.onMetadata(msg, m.useStitched, m.wrpdPlayer.sgnode) if invalid <> xobj then if invalid <> xobj.url and 4 < len(xobj.url) then m.loader.setPingUrl(xobj.url) m.xobj = xobj m.pendingPods = invalid end if end if end function impl.parsePods = function(adPods as object) as object pods = [] lacmsn = -2 for each amgPod in adPods adBreak = {} toAppendPod = (invalid = amgPod.tracking) and (amgPod.renderMediaSequenceNo = (lacmsn + 1)) if toAppendPod and 0 < pods.count() then adBreak = pods.peek() else adBreak = m.parseNewPod(amgPod) pods.push(adBreak) end if ret = m.parseAds(adBreak, amgPod.ads) if toAppendPod then adBreak.duration += amgPod.duration end if lacmsn = ret.lastAdCompleteMediaSequenceNumber end for return pods end function impl.parseNewPod = function(amgPod as object) as object adBreak = { viewed: false, renderTime: -1.0, renderSequence: "midroll", duration: 0.0, tracking: [], ads: [] } adBreak.id = amgPod.renderMediaSequenceNo.toStr() adBreak.duration = amgPod.duration adBreak.renderSequence = amgPod.renderSequence adBreak.renderMediaSequenceNo = amgPod.renderMediaSequenceNo if invalid <> amgPod.tracking for each ev in amgPod.tracking eventKey = m.amagiToRAFEventPod[ev.event] if invalid = eventKey then eventKey = ev.event adBreak.tracking.push({ event: eventKey, url: ev.url, triggered: false }) end for end if return adBreak end function impl.parseAds = function(adBreak as object, amgAds as object) as object lacmsn = -2 for each ad in amgAds rAd = { adid: ad.adId.tostr(), duration: ad.duration, streamFormat: "", adServer: m.loader.pingURL, streams: [], tracking: [] } if invalid <> ad.tracking for each ev in ad.tracking eventKey = m.amagiToRAFEvent[ev.event] if invalid = eventKey then eventKey = ev.event rAd.tracking.push({ event: eventKey, url: ev.url, triggered: false, mediaSequenceNumber : ev.mediaSequenceNumber }) if "complete" = ev.event then lacmsn = ev.mediaSequenceNumber end if end for end if m.setRIAParameters(rAd, ad) adBreak.ads.push(rAd) end for return {lastAdCompleteMediaSequenceNumber:lacmsn} end function impl.amagi2raf = function(adPods as object, signature as String) as boolean ret = False pods = m.parsePods(adPods) if pods.count() = 0 then return ret if invalid = m.pendingPods m.pendingPods = pods else m.pendingPods.append(pods) end if if m.pendingPods[0].renderTime < 0 pod = m.pendingPods[0] seg = m.wrpdPlayer.sgnode.streamingSegment if pod.renderMediaSequenceNo <= seg.segSequence+1 m.streamManager.setPodRenderTime(pod, {startTime:seg.segStartTime, delta:0}) ret = True end if end if return ret end function impl.parsePing = function() as boolean ret = False jsn = m.loader.getPingResponse() if invalid <> jsn and "" <> jsn resObj = parsejson(jsn) if resObj <> invalid if invalid <> resObj.RetryAfter if -1 = resObj.RetryAfter m.loader.setPingUrl("") else m.loader.retryAfter = resObj.RetryAfter end if end if if invalid <> resObj.adPods and 0 < resObj.adPods.count() ret = m.amagi2raf(resObj.adPods, resObj.signature) end if end if end if return ret end function impl.rollPod = function(readyPod as object) as void if m.useStitched then m.runningPods.push(readyPod) if 1 = m.runningPods.count() m.setRAFAdPods(m.runningPods) else m.streamManager.createTimeToEventMap([readyPod]) end if else m.streamManager.createTimeToEventMap([readyPod]) end if end function impl.onUnknown = function(msg as object) as void if "streamingSegment" = msg.getField() if invalid <> m.pendingPods and 0 < m.pendingPods.count() if m.streamManager.onSegment(msg.getData(), m.pendingPods, m.runningPods) readyPod = m.pendingPods.shift() m.rollPod(readyPod) end if end if if invalid = m.pendingPods or m.pendingPods.count() < 1 m.pendingPods = invalid end if end if end function impl.onMessageLIVE = function(msg as object, curAd as object) as void if m.sdk.StreamType.LIVE <> m.prplyInfo.strmType then return if invalid = m.pendingPods posSec = msg.getData() if m.streamManager.pastLastAdBreak(posSec) m.streamManager.createTimeToEventMap(invalid) if 0 < m.runningPods.count() then m.runningPods = [] end if end if end if if m.parsePing() then if invalid <> m.pendingPods and 0 < m.pendingPods.count() and 0 < m.pendingPods[0].renderTime then readyPod = m.pendingPods.shift() m.rollPod(readyPod) end if end if if m.loader.shouldPing() m.loader.ping() end if end function strmMgr = rafssai["streamManager"] strmMgr.onMetadata = function(msg as object, useStitched as boolean, sgnode as object) as object xobj = invalid obj = msg.getData() msgfld = msg.getField() data = invalid if "timedMetaData2" = msgfld then position = obj["position"] if invalid <> obj.data then if invalid <> obj.data[m.sdk.HLSDir.EXT_X_AD_START] data = obj.data[m.sdk.HLSDir.EXT_X_AD_START] else if invalid <> obj.data[m.sdk.HLSDir.EXT_X_AD_END] if invalid <> m.currentAdBreak endAt = m.currentAdBreak.renderTime + m.currentAdBreak.duration if position + 4 < endAt then m.currentAdBreak.duration -= (endAt - position) endAt = m.currentAdBreak.renderTime + m.currentAdBreak.duration timeKey = int(endAt+1).tostr() m.adTimeToEventMap = {} m.adTimeToEventMap[timeKey] = [m.sdk.AdEvent.POD_END] end if end if end if end if end if if invalid <> data then xobj = m.parseXAdStart(obj.data[m.sdk.HLSDir.EXT_X_AD_START]) end if return xobj end function strmMgr.adjustPodRenderTime = function(segStartTime as double, runningPods) as double startTimeDelta = 0.0 if invalid = m.currentAdBreak or 0 = runningPods.count() then return startTimeDelta curPod = m.currentAdBreak podEnd = curPod.renderTime + curPod.duration if podEnd < m.crrntPosSec then return startTimeDelta adjustedStartTime = podEnd + 0.5 if adjustedStartTime < segStartTime then return startTimeDelta startTimeDelta = adjustedStartTime - segStartTime return startTimeDelta end function strmMgr.lastSegStartTime = -1 strmMgr.assertSegStartTime = function(data) as Boolean if invalid <> data.segStartTime if data.segStartTime < m.lastSegStartTime print "WARNING: strmMgr.assertSegStartTime() segStartTime goes backward." end if m.lastSegStartTime = data.segStartTime end if return true end function strmMgr.setPodRenderTime = function(pendingPod as object, params as object) pendingPod.renderTime = params.startTime delta = params.delta if 0 < delta then pendingPod.duration = pendingPod.duration - delta pendingPod.ads[0].duration = pendingPod.ads[0].duration - delta end if timeOffset = pendingPod.renderTime m.sdk.setTrackingTime(timeOffset, pendingPod) timeOffset = pendingPod.renderTime for each ad in pendingPod.ads m.sdk.setTrackingTime(timeOffset, ad) timeOffset += ad.duration end for end function strmMgr.onSegment = function(data as object, pendingPods as object, runningPods as object) as boolean if invalid = pendingPods then return false if 0 <> data.segType and 2 <> data.segType then return false m.assertSegStartTime(data) pendingPod = pendingPods[0] if pendingPod.renderTime < 0 and data.segSequence+1 = pendingPod.renderMediaSequenceNo delta = m.adjustPodRenderTime(data.segStartTime, runningPods) startTime = data.segStartTime + delta m.setPodRenderTime(pendingPod, {startTime:startTime, delta:delta}) if false nextEventPosition = int(m.crrntPosSec + 1) if int(pendingPod.renderTime) < nextEventPosition pendingPod.renderTime = nextEventPosition end if m.createTimeToEventMap([pendingPod]) pendingPod.renderTime = startTime end if return true end if return false end function strmMgr.getSortedKeys = function(objin as object) as object tmKeys = objin if "roAssociativeArray" = type(objin) tmKeys = objin.keys() end if if 1 = tmKeys.count() then return [tmKeys[0].toInt()] tmKeysInt = [] for each k in tmKeys tmKeysInt.push(k.toInt()) end for tmKeysInt.sort() return tmKeysInt end function strmMgr.createTimeToEventMapBase = strmMgr.createTimeToEventMap strmMgr.createTimeToEventMap = function(adBreaks as object) as Void if invalid = adBreaks or invalid = m.adTimeToEventMap or 0 = m.adTimeToEventMap.count() m.createTimeToEventMapBase(adBreaks) if invalid <> adBreaks end if else timeToEventMap = m.adTimeToEventMap timeKeys = timeToEventMap.keys() m.createTimeToEventMapBase(adBreaks) if 0 < timeKeys.count() tmKeysIncoming = m.getSortedKeys(m.adTimeToEventMap) earliestAt = tmKeysIncoming[0] tmKeysRunning = m.getSortedKeys(timeKeys) if 1 < tmKeysRunning.count() then tmKeysRunning.reverse() for each k in tmKeysRunning kstr = k.tostr() mapVal = timeToEventMap[kstr] if earliestAt < k k = earliestAt kstr = k.tostr() end if if m.adTimeToEventMap.doesExist(kstr) mapVal.append(m.adTimeToEventMap[kstr]) else earliestAt = k end if m.adTimeToEventMap[kstr] = mapVal end for end if end if end function strmMgr.rgx_breakdur = createObject("roRegEx", "BREAKDUR=([\d+[\.\d+]*)", "") strmMgr.rgx_uri = createObject("roRegEx", "URI=" + chr(34) + "(https?://[^\s]+)", "") strmMgr.extract = function(s as string, rgx as object, defaultval as dynamic) as dynamic matches = rgx.match(s) if invalid <> matches and 1 < matches.count() return matches[1] end if return defaultval end function strmMgr.parseXAdStart = function(ext_x_ad as string) as object xobj = { breakdur: m.extract(ext_x_ad, m.rgx_breakdur, "0").toInt(), url: "" } url = m.extract(ext_x_ad, m.rgx_uri, "") if url.right(1) = chr(34) url = url.left(len(url)-1) end if xobj.url = url return xobj end function strmMgr.appendEvtMap = function(rAd as Object) end function liveloader = rafssai["liveloader"] liveloader.pingURL = "" liveloader.isPinging = false liveloader.pingPort = createObject("roMessagePort") liveloader.last_ping = 0 liveloader.retryAfter = 30 liveloader.setPingUrl = function(url as string) as void m.last_ping = 0 m.isPinging = false m.pingURL = url end function liveloader.ping = function() as void if "" = m.pingURL then return url = m.pingURL m.pingXfer = m.sdk.createUrlXfer(m.sdk.httpsRegex.isMatch(url)) m.pingXfer.setMessagePort(m.pingPort) m.pingXfer.setUrl(url) m.pingXfer.addHeader("Accept", "application/json") m.pingXfer.asyncGetToString() m.isPinging = true m.last_ping = createObject("roDateTime").asSeconds() end function liveloader.shouldPing = function() as boolean if "" = m.pingUrl then return false if m.isPinging then return false return (m.last_ping + m.retryAfter) < createObject("roDateTime").asSeconds() end function liveloader.getPingResponse = function() as string res = "" if not m.isPinging then return res msg = m.pingPort.getMessage() if invalid <> msg and type(msg) = "roUrlEvent" hstat = msg.getResponseCode() if hstat = 200 res = msg.getString() else print "<> <> <> liveloader.getPingResponse() hstat: ";hstat.tostr() end if m.isPinging = false end if return res end function return rafssai end function function RAFX_SSAI(params as object) as object if invalid <> params and invalid <> params["name"] p = RAFX_getAmagiHLSAdapter(params) p["__version__"] = "0b.44.5" p["__name__"] = params["name"] return p end if end function
Brightscript
3
khangh/samples
advertising/rsgamg/lib/rafxssai.brs
[ "MIT" ]
const w = new Worker( new URL("./workers/worker_event_handlers.js", import.meta.url).href, { type: "module" }, ); w.postMessage({});
JavaScript
3
petamoriken/deno
cli/tests/testdata/worker_event_handler_test.js
[ "MIT" ]
-- name: create-table-logs CREATE TABLE IF NOT EXISTS logs ( log_id INTEGER PRIMARY KEY ,log_data MEDIUMBLOB );
SQL
3
sthagen/drone-drone
store/shared/migrate/mysql/files/007_create_table_logs.sql
[ "Apache-2.0" ]
;;;; The gen_server responsible for managing the OS processes that support the ;;;; "Bevin" backend for undertone. (defmodule undertone.bevin (behaviour gen_server) ;; gen_server implementation (export (start_link 0) (stop 0)) ;; callback implementation (export (init 1) (handle_call 3) (handle_cast 2) (handle_continue 2) (handle_info 2) (terminate 2) (code_change 3)) ;; general (export (display-version 0) (version 0)) ;; health API (export (recv-responsive? 0) (recv-os-process-alive? 0) (send-responsive? 0) (send-os-process-alive? 0) (healthy? 0) (status 0)) ;; MIDI API (export (write-midi 1)) ;; debug API (export (pid 0) (echo 1))) (include-lib "logjam/include/logjam.hrl") (include-lib "include/notes/data.lfe") (defun SERVER () (MODULE)) (defun initial-state () (let* ((backend (undertone.sysconfig:backend)) (recv-name (mref backend 'recv-binary)) (send-name (mref backend 'send-binary)) (root-dir (mref backend 'root-dir))) `#m(backend ,backend args ,(list "--") banner ,(undertone.sysconfig:banner backend) recv #m(name ,recv-name binary ,(++ root-dir recv-name) os-pid undefined version undefined) send #m(name ,send-name binary ,(++ root-dir send-name) os-pid undefined version undefined)))) (defun genserver-opts () '()) (defun unknown-command (data) `#(error ,(lists:flatten (++ "Unknown command: " data)))) (defun unknown-continue (data) `#(error ,(lists:flatten (++ "Unknown continue: " data)))) (defun unknown-info (data) `#(error ,(lists:flatten (++ "Unknown info: " data)))) ;;;;;::=-----------------------------=::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;::=- gen_server implementation -=::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;::=-----------------------------=::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (defun start_link () (log-info "Starting undertone 'Bevin' server ...") (gen_server:start_link `#(local ,(SERVER)) (MODULE) (initial-state) (genserver-opts))) (defun stop () (gen_server:call (SERVER) 'stop)) ;;;;;::=---------------------------=::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;::=- callback implementation -=::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;::=---------------------------=::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (defun init (state) (erlang:process_flag 'trap_exit 'true) `#(ok ,(maps:merge state (start-bevin state)) #(continue #(post-init)))) (defun handle_cast ;; MIDI ((`#(midi-write ,data) (= `#m(send ,send) state)) (exec:send (mref send 'os-pid) (list data "\n")) `#(noreply ,state)) ;; Fall-through ((msg state) (log-debug "Unknown cast message: ~p" `(,msg)) `#(noreply ,state))) (defun handle_call ;; General ((`#(version display) _from (= `#m(recv ,recv send ,send) state)) `#(reply ,(io_lib:format "~s ~s / ~s ~s" (list (mref send 'name) (mref send 'version) (mref recv 'name) (mref recv 'version))) ,state)) ((`#(version) _from (= `#m(recv ,recv send ,send) state)) `#(reply #m(,(mref recv 'name) ,(mref recv 'version) ,(mref send 'name) ,(mref send 'version)) ,state)) ;; Health ((`#(status bevin) _from (= `#m(tcp-port ,port) state)) `#(reply not-implemented ,state)) ((`#(status os-process) _from (= `#m(os-pid ,os-pid) state)) `#(reply ,(ut.os:ps-alive? os-pid) ,state)) ((`#(status all) _from (= `#m(recv ,recv send ,send) state)) `#(reply #m(recv-alive? ,(ut.os:ps-alive? (mref recv 'os-pid)) send-alive? ,(ut.os:ps-alive? (mref send 'os-pid))) ,state)) ;; Stop (('stop _from state) (log-notice "Stopping the 'Bevin' backend ...") `#(stop normal ok ,state)) ;; Testing / debugging ((`#(echo ,msg) _from state) `#(reply ,msg ,state)) ;; Fall-through ((msg _from state) `#(reply ,(unknown-command (io_lib:format "~p" `(,msg))) ,state))) (defun handle_continue ;; Testing / debugging ((`#(post-init) state) ;; Was thinking about rendering the banner here; maybe get rid of if we don't need? (log-debug "Post-initialization tasks ...") `#(noreply ,state)) ;; Fall-through ((msg state) (log-debug (unknown-continue (io_lib:format "~p" `(,msg)))) `#(noreply ,state))) (defun handle_info ;; Extract MIDI data from packed bits ((`#(,port #(data #(eol ,(binary (prefix bytes (size 7)) (rest bitstring))))) state) (when (andalso (is_port port) (=:= prefix #"#(MIDI "))) ;; XXX Update MIDI receive message-parsing for this backend: ;;(let* ((packed (clj:-> rest ;; (binary_to_list) ;; (lists:sublist 1 (- (size rest) 1)) ;; (list_to_integer))) ;; (unpacked (midi-hash->map packed))) ;; (log-debug "packed: ~p" `(,packed)) ;; (log-debug "note: ~p - channel: ~p - pitch: ~p - velocity: ~p - time: ~p" ;; (list (mref unpacked 'note-state) ;; (mref unpacked 'channel) ;; (mref unpacked 'pitch) ;; (mref unpacked 'velocity) ;; (mref unpacked 'time))) ;; XXX we'll eventually communicate with a "recording" gen_server which ;; will, in turn, write the data to an ETS table; for more details, ;; see: https://github.com/ut-proj/undertone/issues/64 ;; (log-notice unpacked) `#(noreply ,state)) ;; Port EOL-based messages ((`#(,port #(data #(eol ,msg))) state) (when (is_port port)) (log-info (sanitize-msg msg)) `#(noreply ,state)) ;; Port line-based messages ((`#(,port #(data #(,line-msg ,msg))) state) (when (is_port port)) (log-info "Unknown line message:~p~s" `(,line-msg ,(sanitize-msg msg))) `#(noreply ,state)) ;; General port messages ((`#(,port #(data ,msg)) state) (when (is_port port)) (log-info "Message from 'Bevin' port:~n~s" `(,(sanitize-msg msg))) `#(noreply ,state)) ;; Exit-handling ((`#(,port #(exit_status ,exit-status)) state) (when (is_port port)) (log-warn "~p: exited with status ~p" `(,port ,exit-status)) `#(noreply ,state)) ((`#(EXIT ,_from normal) state) (logger:info "The 'Bevin' backend server is exiting (normal).") `#(noreply ,state)) ((`#(EXIT ,_from shutdown) state) (logger:info "The 'Bevin' backend server is exiting (shutdown).") `#(noreply ,state)) ((`#(EXIT ,pid ,reason) state) (log-notice "Process ~p exited! (Reason: ~p)" `(,pid ,reason)) `#(noreply ,state)) ;; Fall-through ((msg state) (log-debug "Unknwon info: ~p" `(,msg)) `#(noreply ,state))) (defun terminate ((_reason `#m(send ,send recv ,recv)) (log-notice "Terminating the 'Bevin' backend server ...") (catch (exec:stop (mref recv 'os-pid))) (catch (exec:stop (mref send 'os-pid))) 'ok)) (defun code_change (_old-version state _extra) `#(ok ,state)) ;;;;;::=-----------------=::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;::=- management API -=::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;::=-----------------=::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (defun start-bevin ((`#m(recv ,recv send ,send args ,args)) `#m(recv ,(start-bin recv args) send ,(start-bin send args)))) (defun start-bin (((= `#m(binary ,bin) port-state) args) (let* ((data (maps:merge port-state (ut.os:run bin args #m(extract-version? true)))) (`(,_ ,version ,_) (re:split (mref data 'raw-version) "[\n ]"))) (mupd data 'version version)))) ;;;;;::=-----------------=::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;::=- general API -=::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;::=-----------------=::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (defun display-version () (gen_server:call (SERVER) #(version display))) (defun version () (gen_server:call (SERVER) #(version))) ;;;;;::=-----------------=::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;::=- health API -=::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;::=-----------------=::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (defun recv-responsive? () (gen_server:call (SERVER) #(status recv))) (defun recv-os-process-alive? () (gen_server:call (SERVER) #(status recv-os-process))) (defun send-responsive? () (gen_server:call (SERVER) #(status send))) (defun send-os-process-alive? () (gen_server:call (SERVER) #(status send-os-process))) (defun healthy? () (let ((vals (maps:values (status)))) (not (lists:member 'false vals)))) (defun status () (gen_server:call (SERVER) #(status all))) ;;;;;::=-----------------=::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;::=- MIDI API -=::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;::=-----------------=::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (defun write-midi (data) (gen_server:cast (SERVER) `#(midi-write ,data))) ;;;;;::=-----------------=::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;::=- debugging API -=::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;::=-----------------=::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (defun pid () (erlang:whereis (SERVER))) (defun echo (msg) (gen_server:call (SERVER) `#(echo ,msg))) ;;;;;::=-------------------------------=::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;::=- utility / support functions -=::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;::=-------------------------------=::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (defun has-str? (string pattern) (case (string:find string pattern) ('nomatch 'false) (_ 'true))) (defun midi-hash->map (hash) (let* ((note-state (band hash #b1)) (channel (band (bsr hash 1) #b1111)) (pitch (band (bsr hash 5) #b111111)) (velocity (band (bsr hash 12) #b111111)) (time (band (bsr hash 19) #b11111111111111111111))) `#m(note-state ,(if (== note-state 1) 'on 'off) channel ,channel pitch ,pitch note ,(lookup-midi pitch) velocity ,velocity time ,time))) (defun sanitize-msg (msg) msg)
LFE
5
ut-proj/undertone
apps/undertone/src/undertone/bevin.lfe
[ "Apache-2.0" ]
#! parrot-nqp # Copyright (C) 2011, Parrot Foundation. pir::load_bytecode("YAML/Tiny.pbc"); pir::load_bytecode("YAML/Dumper.pbc"); pir::load_bytecode("LWP/UserAgent.pbc"); pir::load_bytecode("nqp-setting.pbc"); pir::load_bytecode("dumper.pbc"); =begin NAME resolve_deprecated.nqp - Resolve deprecated features =end NAME =begin SYNOPSIS parrot-nqp tools/dev/resolve_deprecated.nqp =end SYNOPSIS =begin DESCRIPTION Resolve all freshly deprecated features listed in api.yaml by quering trac for status of ticket. =end DESCRIPTION =begin COMPLICATIONS YAML::Dumper produce way too complex YAML. We should extend YAML::Tiny to produce simplified version. =end COMPLICATIONS say("Parsing"); my @yaml := YAML::Tiny.new.read_string(slurp('api.yaml'))[0]; my $ua := pir::new(LWP::UserAgent); say("Processing"); for @yaml -> %e { # Skip items without ticket my $ticket := %e<ticket>; next unless $ticket; # Skip already marked items next if any(-> $_ { $_ eq 'completed' }, %e<tags>); say("Checking $ticket"); # Request non-https version due limitation of LWP. my $response := $ua.get(subst($ticket ~ '?format=tab', /^https/, 'http')).content; #_dumper(['response', $response]); # cheat. split doesn't split properly on multiple tabs. So just check \tclosed\t my $/ := $response ~~ /\t ( "closed" ) \t/; next unless $/[0] eq 'closed'; say("Ticket $ticket is closed and can be marked as 'completed'"); %e<tags>.push('completed'); } say("Done"); spew("api.yaml", YAML::Tiny.new.write_string(@yaml)); sub any(&code, @list) { return 1 if &code($_) for @list; 0; } # Local Variables: # mode: cperl # cperl-indent-level: 4 # fill-column: 100 # End: # vim: expandtab shiftwidth=4 ft=perl6:
Perl6
5
winnit-myself/Wifie
tools/dev/resolve_deprecated.nqp
[ "Artistic-2.0" ]
SUMMARY = "ANSII Color formatting for output in terminal" HOMEPAGE = "https://pypi.python.org/pypi/termcolor" SECTION = "devel/python" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://COPYING.txt;md5=809e8749b63567978acfbd81d9f6a27d" inherit pypi setuptools3 SRC_URI[md5sum] = "043e89644f8909d462fbbfa511c768df" SRC_URI[sha256sum] = "1d6d69ce66211143803fbc56652b41d73b4a400a2891d7bf7a1cdf4c02de613b" BBCLASSEXTEND = "native"
BitBake
1
guillon/meta-openembedded
meta-python/recipes-devtools/python/python3-termcolor_1.1.0.bb
[ "MIT" ]
#pragma once // Use this to force a specific version of a given config proto, preventing API // boosting from modifying it. E.g. API_NO_BOOST(envoy::api::v2::Cluster). #define API_NO_BOOST(x) x namespace Envoy {}
C
4
dcillera/envoy
source/common/config/api_version.h
[ "Apache-2.0" ]
{ pkgs ? import <nixpkgs> {}, withX11 ? false }: (pkgs.buildFHSUserEnv { name = "vcpkg"; targetPkgs = pkgs: (with pkgs; [ autoconf automake cmake gcc gettext glibc.dev gperf libtool libxkbcommon.dev m4 ninja pkgconfig zip zstd.dev ] ++ pkgs.lib.optionals withX11 [ freetds libdrm.dev libglvnd.dev mesa_drivers mesa_glu.dev mesa.dev xlibs.libxcb.dev xlibs.xcbutilimage.dev xlibs.xcbutilwm.dev xlibs.xorgserver.dev xorg.libpthreadstubs xorg.libX11.dev xorg.libxcb.dev xorg.libXext.dev xorg.libXi.dev xorg.xcbproto xorg.xcbutil.dev xorg.xcbutilcursor.dev xorg.xcbutilerrors xorg.xcbutilkeysyms.dev xorg.xcbutilrenderutil.dev xorg.xcbutilwm.dev xorg.xorgproto ]); runScript = "bash"; }).env
Nix
3
eerimoq/vcpkg
shell.nix
[ "MIT" ]
.btn {&:hover { color: red; }&:active { color:blue;} &:nth-child(5n+1) { color:blue; } &:nth-child(-n+3) { color: green;} > li > a { color: red} >li>li { color: blue; } > p + p { color: green; } }
CSS
3
fuelingtheweb/prettier
tests/stylefmt/nested-2/nested-2.css
[ "MIT" ]
using Gtk; using Gdk; class PixbufWithCache { public PixbufWithCache? next; public Pixbuf original; public int scaledSize; public Pixbuf? scaled; public PixbufWithCache(PixbufWithCache? next, Pixbuf original) { this.next = next; this.original = original; this.scaledSize = -1; this.scaled = null; } public Pixbuf get_at_size(int size) { if (scaledSize != size) { //stdout.printf("Cache miss\n"); scaled = original.scale_simple(size, size, InterpType.BILINEAR); scaledSize = size; } return scaled; } } class LineMark { public Gtk.TextMark textMark; public PixbufWithCache pixbuf; public int line; public int column; public LineMark(Gtk.TextMark textMark, PixbufWithCache pixbuf) { this.textMark = textMark; this.pixbuf = pixbuf; } public void update_line_column_cache() { TextIter iter; textMark.get_buffer().get_iter_at_mark(out iter, textMark); line = iter.get_line(); column = iter.get_line_offset(); //stdout.printf("Updated line-column cache of linemark %p to (%d, %d)\n", this, line, column); } } public class LineMarksTable : GLib.Object { private PixbufWithCache? pixbufCache; private PixbufWithCache get_pixbuf_with_cache(Pixbuf pixbuf) { var cache = pixbufCache; while (cache != null && cache.original != pixbuf) cache = cache.next; if (cache == null) return pixbufCache = new PixbufWithCache(pixbufCache, pixbuf); else return cache; } internal LineMark[] lineMarks = {}; private bool sorted = true; public void clear() { lineMarks.resize(0); } private void update_line_marks_line_column_cache() { for (int i = 0; i < lineMarks.length; i++) { LineMark mark = lineMarks[i]; mark.update_line_column_cache(); } } private static int compare_line_marks(LineMark **m1, LineMark **m2) { int result = (*m1)->line == (*m2)->line ? (*m1)->column - (*m2)->column : (*m1)->line - (*m2)->line; //stdout.printf("Comparing %p (%d, %d) with %p (%d, %d)... result=%d\n", *m1, (*m1)->line, (*m1)->column, *m2, (*m2)->line, (*m2)->column, result); return result; } private void sort_line_marks() { if (!sorted) { update_line_marks_line_column_cache(); MyStuff.qsort_with_data(lineMarks, lineMarks.length, sizeof(LineMark *), compare_line_marks); sorted = true; } } public void add_line_mark(Gtk.TextMark textMark, Gdk.Pixbuf pixbuf) { lineMarks += new LineMark(textMark, get_pixbuf_with_cache(pixbuf)); sorted = false; } public void add_line_mark_at_line_offset(TextBuffer buffer, int line, int offset, Gdk.Pixbuf pixbuf) { TextIter iter; buffer.get_iter_at_line_offset(out iter, line, offset); TextMark mark = buffer.create_mark(null, iter, true); add_line_mark(mark, pixbuf); } internal int lineHeight = 0; private int measure_line_height(SourceView view) { var layout = view.create_pango_layout("QWERTY"); int height = 12; if (layout != null) { layout.get_pixel_size(null, out height); } lineHeight = height - 2; return lineHeight; } private int get_max_nb_marks_on_line(TextBuffer buffer) { // This code assumes that the marks are sorted. int max = 0; int currentLine = -1; int nb = 0; // Number of marks on the current line for (int i = 0; i < lineMarks.length; i++) { LineMark mark = lineMarks[i]; TextMark m = mark.textMark; if (m.get_buffer() == buffer) { TextIter iter; buffer.get_iter_at_mark(out iter, m); if (iter.get_line() == currentLine) { nb++; } else { currentLine = iter.get_line(); nb = 1; } if (nb > max) max = nb; } } return max; } //int messageCount = 0; internal int rendererWidth = 0; // invariant (holds only during a drawing cycle): all line marks in buffer lastBuffer at line > lastLineNumber are at index >= nextIndex internal TextBuffer? lastBuffer = null; internal int lastLineNumber = -1; internal int nextIndex = 0; private void size_func(SourceGutter gutter, CellRenderer renderer) { sort_line_marks(); SourceView view = gutter.view; rendererWidth = measure_line_height(view) * get_max_nb_marks_on_line(view.get_buffer()); lastBuffer = null; lastLineNumber = -1; nextIndex = 0; //stdout.printf("%05d: size_func called; lineHeight=%d\n", ++messageCount, lineHeight); } internal int lineNumber = -1; private void data_func(SourceGutter gutter, CellRenderer renderer, int lineNumber, bool currentLine) { //stdout.printf("%05d: data_func called with lineNumber=%d\n", ++messageCount, lineNumber); this.lineNumber = lineNumber; } public void show_in_source_view(Gtk.SourceView sourceView) { SourceGutter gutter = sourceView.get_gutter(TextWindowType.LEFT); LineMarksRenderer renderer = new LineMarksRenderer(this, gutter); gutter.insert(renderer, 0); gutter.set_cell_size_func(renderer, size_func); gutter.set_cell_data_func(renderer, data_func); } } class LineMarksRenderer : CellRenderer { LineMarksTable table; SourceGutter gutter; public LineMarksRenderer (LineMarksTable table, SourceGutter gutter) { GLib.Object (); this.table = table; this.gutter = gutter; } public override void get_size (Widget widget, Gdk.Rectangle? cell_area, out int x_offset, out int y_offset, out int width, out int height) { x_offset = 0; y_offset = 0; width = table.rendererWidth; height = table.lineHeight; } public override void render (Gdk.Window window, Widget widget, Gdk.Rectangle background_area, Gdk.Rectangle cell_area, Gdk.Rectangle expose_area, CellRendererState flags) { Cairo.Context ctx = Gdk.cairo_create (window); int x = background_area.x; TextBuffer buffer = gutter.view.get_buffer(); if (table.lastBuffer != buffer || table.lastLineNumber >= table.lineNumber) { //stdout.printf("Restarting...\n"); table.lastBuffer = buffer; table.nextIndex = 0; } for (; table.nextIndex < table.lineMarks.length; table.nextIndex++) { LineMark mark = table.lineMarks[table.nextIndex]; TextMark m = mark.textMark; if (m.get_buffer() == buffer) { TextIter iter; buffer.get_iter_at_mark(out iter, m); if (iter.get_line() > table.lineNumber) break; if (iter.get_line() == table.lineNumber) { Gdk.cairo_rectangle(ctx, Rectangle() { x = x + 1, y = background_area.y + 1, width = table.lineHeight - 2, height = table.lineHeight - 2}); Gdk.cairo_set_source_pixbuf(ctx, mark.pixbuf.get_at_size(table.lineHeight - 2), x + 1, background_area.y + 1); ctx.fill(); x += table.lineHeight; } } } table.lastLineNumber = table.lineNumber; } } public class SourceGutterTextColumn : GLib.Object { private string sizeText; private string[] lines = {}; private CellRendererText renderer; private SourceGutter[] gutters; public SourceGutterTextColumn(string sizeText, float xalign) { this.sizeText = sizeText; renderer = new CellRendererText(); renderer.xalign = xalign; } public void clear() { lines = {}; foreach (var gutter in gutters) gutter.queue_draw(); } public void add_line(string line) { lines += line; foreach (var gutter in gutters) gutter.queue_draw(); } private void size_func(SourceGutter gutter, CellRenderer renderer_) { renderer.text = sizeText; } private void data_func(SourceGutter gutter, CellRenderer renderer_, int lineNumber, bool currentLine) { renderer.text = lineNumber < lines.length ? lines[lineNumber] : ""; } public void show_in_source_view(Gtk.SourceView sourceView) { SourceGutter gutter = sourceView.get_gutter(TextWindowType.LEFT); gutters += gutter; gutter.insert(renderer, -5); gutter.set_cell_size_func(renderer, size_func); gutter.set_cell_data_func(renderer, data_func); } }
Vala
4
swils/verifast
src/linemarks/linemarks.vala
[ "MIT" ]
# Written By: Robert Alan Byer / byer@mail.ourservers.net # Modified By: Mark Pizzolato / mark@infocomm.com # Norman Lastovica / norman.lastovica@oracle.com # Oleg Safiullin / form@pdp-11.nsk.ru # # This build script will accept the following build options. # # ALL Just Build "Everything". # PDP11 Just Build The DEC PDP-11. # CLEAN Will Clean Files Back To Base Kit. # # To build with debugging enabled (which will also enable traceback # information) use.. # # MMK/MACRO=(DEBUG=1) # # This will produce an executable named {Simulator}-{I64|VAX|AXP}-DBG.EXE # # Let's See If We Are Going To Build With DEBUG Enabled. Always compile # /DEBUG so that the traceback and debug information is always available # in the object files. CC_DEBUG = /DEBUG .IFDEF DEBUG LINK_DEBUG = /DEBUG/TRACEBACK CC_OPTIMIZE = /NOOPTIMIZE .IFDEF MMSALPHA ALPHA_OR_IA64 = 1 CC_FLAGS = /PREF=ALL ARCH = AXP-DBG CC_DEFS = "_LARGEFILE" .ENDIF .IFDEF MMSIA64 ALPHA_OR_IA64 = 1 CC_FLAGS = /PREF=ALL ARCH = I64-DBG CC_DEFS = "_LARGEFILE" .ENDIF .IFDEF MMSVAX ALPHA_OR_IA64 = 0 CC_FLAGS = $(CC_FLAGS) ARCH = VAX-DBG CC_DEFS = "__VAX" .ENDIF .ELSE LINK_DEBUG = /NODEBUG/NOTRACEBACK .IFDEF MMSALPHA ALPHA_OR_IA64 = 1 CC_OPTIMIZE = /OPT=(LEV=5)/ARCH=HOST CC_FLAGS = /PREF=ALL ARCH = AXP CC_DEFS = "_LARGEFILE" LINK_SECTION_BINDING = /SECTION_BINDING .ENDIF .IFDEF MMSIA64 ALPHA_OR_IA64 = 1 CC_OPTIMIZE = /OPT=(LEV=5) CC_FLAGS = /PREF=ALL ARCH = I64 CC_DEFS = "_LARGEFILE" .ENDIF .IFDEF MMSVAX ALPHA_OR_IA64 = 0 CC_OPTIMIZE = /OPTIMIZE CC_FLAGS = $(CC_FLAGS) ARCH = VAX CC_DEFS = "__VAX" .ENDIF .ENDIF # Define Our Compiler Flags & Define The Compile Command OUR_CC_FLAGS = $(CC_FLAGS)$(CC_DEBUG)$(CC_OPTIMIZE) \ /NEST=PRIMARY/NAME=(AS_IS,SHORT) CC = CC/DECC$(OUR_CC_FLAGS) # Define The BIN Directory Where The Executables Will Go. # Define Our Library Directory. # Define The platform specific Build Directory Where The Objects Will Go. # BIN_DIR = SYS$DISK:[.BIN] LIB_DIR = SYS$DISK:[.LIB] BLD_DIR = SYS$DISK:[.LIB.BLD-$(ARCH)] # Check To Make Sure We Have SYS$DISK:[.BIN] & SYS$DISK:[.LIB] Directory. # .FIRST @ IF (F$SEARCH("SYS$DISK:[]BIN.DIR").EQS."") THEN CREATE/DIRECTORY $(BIN_DIR) @ IF (F$SEARCH("SYS$DISK:[]LIB.DIR").EQS."") THEN CREATE/DIRECTORY $(LIB_DIR) @ IF (F$SEARCH("SYS$DISK:[.LIB]BLD-$(ARCH).DIR").EQS."") THEN CREATE/DIRECTORY $(BLD_DIR) @ IF (F$SEARCH("$(BLD_DIR)*.*").NES."") THEN DELETE/NOLOG/NOCONFIRM $(BLD_DIR)*.*;* @ IF "".NES."''CC'" THEN DELETE/SYMBOL/GLOBAL CC # Core SIMH File Definitions. # SIMH_DIR = SYS$DISK:[] SIMH_LIB = $(LIB_DIR)SIMH-$(ARCH).OLB SIMH_SOURCE = $(SIMH_DIR)SIM_CONSOLE.C,$(SIMH_DIR)SIM_SOCK.C,\ $(SIMH_DIR)SIM_TMXR.C,$(SIMH_DIR)SIM_ETHER.C,\ $(SIMH_DIR)SIM_TAPE.C,$(SIMH_DIR)SIM_FIO.C,\ $(SIMH_DIR)SIM_TIMER.C # VMS PCAP File Definitions. # PCAP_DIR = SYS$DISK:[.PCAP-VMS.PCAP-VCI] PCAP_LIB = $(LIB_DIR)PCAP-$(ARCH).OLB PCAP_SOURCE = \ $(PCAP_DIR)PCAPVCI.C,$(PCAP_DIR)VCMUTIL.C,\ $(PCAP_DIR)BPF_DUMP.C,$(PCAP_DIR)BPF_FILTER.C,\ $(PCAP_DIR)BPF_IMAGE.C,$(PCAP_DIR)ETHERENT.C,\ $(PCAP_DIR)FAD-GIFC.C,$(PCAP_DIR)GENCODE.C,\ $(PCAP_DIR)GRAMMAR.C,$(PCAP_DIR)INET.C,\ $(PCAP_DIR)NAMETOADDR.C,$(PCAP_DIR)OPTIMIZE.C,\ $(PCAP_DIR)PCAP.C,$(PCAP_DIR)SAVEFILE.C,\ $(PCAP_DIR)SCANNER.C,$(PCAP_DIR)SNPRINTF.C,\ $(PCAP_DIR)PCAP-VMS.C PCAP_VCMDIR = SYS$DISK:[.PCAP-VMS.PCAPVCM] PCAP_VCM_SOURCES = $(PCAP_VCMDIR)PCAPVCM.C,$(PCAP_VCMDIR)PCAPVCM_INIT.MAR,\ $(PCAP_VCMDIR)VCI_JACKET.MAR,$(PCAP_VCMDIR)VCMUTIL.C PCAP_VCI = SYS$COMMON:[SYS$LDR]PCAPVCM.EXE # PCAP is not available on OpenVMS VAX or IA64 right now # #.IFDEF MMSALPHA #PCAP_EXECLET = $(PCAP_VCI) #PCAP_INC = ,$(PCAP_DIR) #PCAP_LIBD = $(PCAP_LIB) #PCAP_LIBR = ,$(PCAP_LIB)/LIB/SYSEXE #PCAP_DEFS = ,"USE_NETWORK=1" #PCAP_SIMH_INC = /INCL=($(PCAP_DIR)) #.ENDIF # # Digital Equipment PDP-11 Simulator Definitions. # PDP11_DIR = SYS$DISK:[] PDP11_LIB = $(LIB_DIR)PDP11-$(ARCH).OLB PDP11_SOURCE = $(PDP11_DIR)PDP11_FP.C, $(PDP11_DIR)PDP11_CPU.C, \ $(PDP11_DIR)PDP11_DZ.C, $(PDP11_DIR)PDP11_CIS.C, \ $(PDP11_DIR)PDP11_LP.C, $(PDP11_DIR)PDP11_RK.C, \ $(PDP11_DIR)PDP11_RL.C, $(PDP11_DIR)PDP11_RP.C, \ $(PDP11_DIR)PDP11_RX.C, $(PDP11_DIR)PDP11_STDDEV.C, \ $(PDP11_DIR)PDP11_SYS.C, $(PDP11_DIR)PDP11_TC.C, \ $(PDP11_DIR)PDP11_TM.C, $(PDP11_DIR)PDP11_TS.C, \ $(PDP11_DIR)PDP11_IO.C, $(PDP11_DIR)PDP11_RQ.C, \ $(PDP11_DIR)PDP11_TQ.C, $(PDP11_DIR)PDP11_PCLK.C, \ $(PDP11_DIR)PDP11_RY.C, $(PDP11_DIR)PDP11_PT.C, \ $(PDP11_DIR)PDP11_HK.C, $(PDP11_DIR)PDP11_XQ.C, \ $(PDP11_DIR)PDP11_XU.C, $(PDP11_DIR)PDP11_VH.C, \ $(PDP11_DIR)PDP11_RH.C, $(PDP11_DIR)PDP11_TU.C, \ $(PDP11_DIR)PDP11_CPUMOD.C, $(PDP11_DIR)PDP11_CR.C, \ $(PDP11_DIR)PDP11_RF.C, $(PDP11_DIR)PDP11_DL.C, \ $(PDP11_DIR)PDP11_TA.C, $(PDP11_DIR)PDP11_RC.C, \ $(PDP11_DIR)PDP11_KG.C, $(PDP11_DIR)PDP11_KE.C, \ $(PDP11_DIR)PDP11_DC.C, $(PDP11_DIR)PDP11_IO_LIB.C, \ $(PDP11_DIR)PDP11_KMD.C, $(PDP11_DIR)PDP11_KGD.C PDP11_OPTIONS = /INCL=($(SIMH_DIR),$(PDP11_DIR)$(PCAP_INC))\ /DEF=($(CC_DEFS),"VM_PDP11=1","CYR_CTLN_CTLO=1") ALL : PDP11 CLEAN : $! $! Clean out all targets and building Remnants $! $ IF (F$SEARCH("$(BIN_DIR)*.EXE;*").NES."") THEN - DELETE/NOLOG/NOCONFIRM $(BIN_DIR)*.EXE;* $ IF (F$SEARCH("$(LIB_DIR)*.OLB;*").NES."") THEN - DELETE/NOLOG/NOCONFIRM $(LIB_DIR)*.OLB;* $ IF (F$SEARCH("SYS$DISK:[...]*.OBJ;*").NES."") THEN - DELETE/NOLOG/NOCONFIRM SYS$DISK:[...]*.OBJ;* $ IF (F$SEARCH("SYS$DISK:[...]*.LIS;*").NES."") THEN - DELETE/NOLOG/NOCONFIRM SYS$DISK:[...]*.LIS;* $ IF (F$SEARCH("SYS$DISK:[...]*.MAP;*").NES."") THEN - DELETE/NOLOG/NOCONFIRM SYS$DISK:[...]*.MAP;* # # Build The Libraries. # $(SIMH_LIB) : $(SIMH_SOURCE) $! $! Building The $(SIMH_LIB) Library. $! $ $(CC)/DEF=($(CC_DEFS)$(PCAP_DEFS))$(PCAP_SIMH_INC) - /OBJ=$(BLD_DIR) $(MMS$CHANGED_LIST) $ IF (F$SEARCH("$(MMS$TARGET)").EQS."") THEN - LIBRARY/CREATE $(MMS$TARGET) $ LIBRARY/REPLACE $(MMS$TARGET) $(BLD_DIR)*.OBJ $ DELETE/NOLOG/NOCONFIRM $(BLD_DIR)*.OBJ;* $(PDP11_LIB) : $(PDP11_SOURCE) $! $! Building The $(PDP11_LIB) Library. $! $(CC)$(PDP11_OPTIONS) - /OBJ=$(BLD_DIR) $(MMS$CHANGED_LIST) $ IF (F$SEARCH("$(MMS$TARGET)").EQS."") THEN - LIBRARY/CREATE $(MMS$TARGET) $ LIBRARY/REPLACE $(MMS$TARGET) $(BLD_DIR)*.OBJ $ DELETE/NOLOG/NOCONFIRM $(BLD_DIR)*.OBJ;* $(PCAP_LIB) : $(PCAP_SOURCE) $! $! Building The $(PCAP_LIB) Library. $! $ SET DEFAULT $(PCAP_DIR) $ @VMS_PCAP $(DEBUG) $ SET DEFAULT [--] $ IF (F$SEARCH("$(PCAP_LIB)").NES."") THEN - DELETE $(PCAP_LIB); $ COPY $(PCAP_DIR)PCAP.OLB $(PCAP_LIB) $ DELETE/NOLOG/NOCONFIRM $(PCAP_DIR)*.OBJ;*,$(PCAP_DIR)*.OLB;* PDP11 : $(SIMH_LIB) $(PCAP_LIBD) $(PDP11_LIB) $(PCAP_EXECLET) $! $! Building The $(BIN_DIR)PDP11-$(ARCH).EXE Simulator. $! $ $(CC)$(PDP11_OPTIONS)/OBJ=$(BLD_DIR) SCP.C $ LINK $(LINK_DEBUG)/EXE=$(BIN_DIR)PDP11-$(ARCH).EXE - $(BLD_DIR)SCP.OBJ,$(PDP11_LIB)/LIBRARY,$(SIMH_LIB)/LIBRARY$(PCAP_LIBR) $ DELETE/NOLOG/NOCONFIRM $(BLD_DIR)*.OBJ;* # # PCAP VCI Components # $(PCAP_VCI) : $(PCAP_VCMDIR)PCAPVCM.EXE $! $! Installing the PCAP VCI Execlet in SYS$LOADABLE_IMAGES $! $ COPY $(PCAP_VCMDIR)PCAPVCM.EXE SYS$COMMON:[SYS$LDR]PCAPVCM.EXE $(PCAP_VCMDIR)PCAPVCM.EXE : $(PCAP_VCM_SOURCES) $! $! Building The PCAP VCI Execlet $! $ @SYS$DISK:[.PCAP-VMS.PCAPVCM]BUILD_PCAPVCM $ DELETE/NOLOG/NOCONFIRM $(PCAP_VCMDIR)*.OBJ;*,$(PCAP_VCMDIR)*.MAP;*
Module Management System
3
sergev/vak-opensource
bk/simh-dvk/descrip.mms
[ "Apache-2.0" ]
-module(petstore_statem). -behaviour(proper_statem). -include("petstore.hrl"). -include_lib("proper/include/proper_common.hrl"). -include_lib("stdlib/include/assert.hrl"). -compile(export_all). -compile(nowarn_export_all). -include("petstore_statem.hrl"). %%============================================================================== %% The statem's property %%============================================================================== prop_main() -> setup(), ?FORALL( Cmds , proper_statem:commands(?MODULE) , begin cleanup(), { History , State , Result } = proper_statem:run_commands(?MODULE, Cmds), ?WHENFAIL( io:format("History: ~p\nState: ~p\nResult: ~p\nCmds: ~p\n", [ History , State , Result , proper_statem:command_names(Cmds) ]), proper:aggregate( proper_statem:command_names(Cmds) , Result =:= ok ) ) end ). %%============================================================================== %% Setup %%============================================================================== setup() -> ok. %%============================================================================== %% Cleanup %%============================================================================== cleanup() -> ok. %%============================================================================== %% Initial State %%============================================================================== initial_state() -> #{}. %%============================================================================== %% create_user %%============================================================================== create_user(PetstoreUser) -> petstore_api:create_user(PetstoreUser). create_user_args(_S) -> [petstore_user:petstore_user()]. %%============================================================================== %% create_users_with_array_input %%============================================================================== create_users_with_array_input(PetstoreUserArray) -> petstore_api:create_users_with_array_input(PetstoreUserArray). create_users_with_array_input_args(_S) -> [list(petstore_user:petstore_user())]. %%============================================================================== %% create_users_with_list_input %%============================================================================== create_users_with_list_input(PetstoreUserArray) -> petstore_api:create_users_with_list_input(PetstoreUserArray). create_users_with_list_input_args(_S) -> [list(petstore_user:petstore_user())]. %%============================================================================== %% delete_user %%============================================================================== delete_user(Username) -> petstore_api:delete_user(Username). delete_user_args(_S) -> [binary()]. %%============================================================================== %% get_user_by_name %%============================================================================== get_user_by_name(Username) -> petstore_api:get_user_by_name(Username). get_user_by_name_args(_S) -> [binary()]. %%============================================================================== %% login_user %%============================================================================== login_user(Username, Password) -> petstore_api:login_user(Username, Password). login_user_args(_S) -> [binary(), binary()]. %%============================================================================== %% logout_user %%============================================================================== logout_user() -> petstore_api:logout_user(). logout_user_args(_S) -> []. %%============================================================================== %% update_user %%============================================================================== update_user(Username, PetstoreUser) -> petstore_api:update_user(Username, PetstoreUser). update_user_args(_S) -> [binary(), petstore_user:petstore_user()].
Erlang
5
MalcolmScoffable/openapi-generator
samples/client/petstore/erlang-proper/src/petstore_statem.erl
[ "Apache-2.0" ]
/* * Copyright 2005-2010 LAMP/EPFL */ // $Id$ package scala.tools.eclipse.contribution.weaving.jdt.core; import java.util.HashMap; import java.util.List; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jdt.core.IJavaModelMarker; import org.eclipse.jdt.core.WorkingCopyOwner; import org.eclipse.jdt.core.compiler.CategorizedProblem; import org.eclipse.jdt.core.compiler.IProblem; import org.eclipse.jdt.internal.compiler.SourceElementParser; import org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration; import org.eclipse.jdt.internal.core.CompilationUnit; import org.eclipse.jdt.internal.core.CompilationUnitProblemFinder; import scala.tools.eclipse.contribution.weaving.jdt.IScalaElement; import scala.tools.eclipse.contribution.weaving.jdt.IScalaSourceFile;; @SuppressWarnings("restriction") public privileged aspect CompilationUnitProblemFinderAspect { pointcut process( CompilationUnit unitElement, SourceElementParser parser, WorkingCopyOwner workingCopyOwner, HashMap problems, boolean creatingAST, int reconcileFlags, IProgressMonitor monitor) : args(unitElement, parser, workingCopyOwner, problems, creatingAST, reconcileFlags, monitor) && execution(public static CompilationUnitDeclaration CompilationUnitProblemFinder.process( CompilationUnit, SourceElementParser, WorkingCopyOwner, HashMap, boolean, int, IProgressMonitor)); CompilationUnitDeclaration around( CompilationUnit unitElement, SourceElementParser parser, WorkingCopyOwner workingCopyOwner, HashMap problems, boolean creatingAST, int reconcileFlags, IProgressMonitor monitor) : process(unitElement, parser, workingCopyOwner, problems, creatingAST, reconcileFlags, monitor) { CompilationUnit original = unitElement.originalFromClone(); if (!(original instanceof IScalaElement)) return proceed(unitElement, parser, workingCopyOwner, problems, creatingAST, reconcileFlags, monitor); if (original instanceof IScalaSourceFile) { IProblem[] unitProblems = ((IScalaSourceFile)original).getProblems(); int length = unitProblems == null ? 0 : unitProblems.length; if (length > 0) { CategorizedProblem[] categorizedProblems = new CategorizedProblem[length]; System.arraycopy(unitProblems, 0, categorizedProblems, 0, length); problems.put(IJavaModelMarker.JAVA_MODEL_PROBLEM_MARKER, categorizedProblems); } } return null; } }
AspectJ
3
dragos/scala-ide
org.scala-ide.sdt.aspects/src/scala/tools/eclipse/contribution/weaving/jdt/core/CompilationUnitProblemFinderAspect.aj
[ "BSD-3-Clause" ]
[self] localhost [all:vars] ansible_connection=local ansible_python_interpreter=/usr/bin/python3 #ansible_shell_executable="bash -l"
Self
3
glossom-dev/base-os
hosts.self
[ "MIT" ]
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; // Sample contracts showing upgradeability with multiple inheritance. // Child contract inherits from Father and Mother contracts, and Father extends from Gramps. // // Human // / \ // | Gramps // | | // Mother Father // | | // -- Child -- /** * Sample base intializable contract that is a human */ contract SampleHuman is Initializable { bool public isHuman; function initialize() public initializer { __SampleHuman_init(); } // solhint-disable-next-line func-name-mixedcase function __SampleHuman_init() internal onlyInitializing { __SampleHuman_init_unchained(); } // solhint-disable-next-line func-name-mixedcase function __SampleHuman_init_unchained() internal onlyInitializing { isHuman = true; } } /** * Sample base intializable contract that defines a field mother */ contract SampleMother is Initializable, SampleHuman { uint256 public mother; function initialize(uint256 value) public virtual initializer { __SampleMother_init(value); } // solhint-disable-next-line func-name-mixedcase function __SampleMother_init(uint256 value) internal onlyInitializing { __SampleHuman_init(); __SampleMother_init_unchained(value); } // solhint-disable-next-line func-name-mixedcase function __SampleMother_init_unchained(uint256 value) internal onlyInitializing { mother = value; } } /** * Sample base intializable contract that defines a field gramps */ contract SampleGramps is Initializable, SampleHuman { string public gramps; function initialize(string memory value) public virtual initializer { __SampleGramps_init(value); } // solhint-disable-next-line func-name-mixedcase function __SampleGramps_init(string memory value) internal onlyInitializing { __SampleHuman_init(); __SampleGramps_init_unchained(value); } // solhint-disable-next-line func-name-mixedcase function __SampleGramps_init_unchained(string memory value) internal onlyInitializing { gramps = value; } } /** * Sample base intializable contract that defines a field father and extends from gramps */ contract SampleFather is Initializable, SampleGramps { uint256 public father; function initialize(string memory _gramps, uint256 _father) public initializer { __SampleFather_init(_gramps, _father); } // solhint-disable-next-line func-name-mixedcase function __SampleFather_init(string memory _gramps, uint256 _father) internal onlyInitializing { __SampleGramps_init(_gramps); __SampleFather_init_unchained(_father); } // solhint-disable-next-line func-name-mixedcase function __SampleFather_init_unchained(uint256 _father) internal onlyInitializing { father = _father; } } /** * Child extends from mother, father (gramps) */ contract SampleChild is Initializable, SampleMother, SampleFather { uint256 public child; function initialize( uint256 _mother, string memory _gramps, uint256 _father, uint256 _child ) public initializer { __SampleChild_init(_mother, _gramps, _father, _child); } // solhint-disable-next-line func-name-mixedcase function __SampleChild_init( uint256 _mother, string memory _gramps, uint256 _father, uint256 _child ) internal onlyInitializing { __SampleMother_init(_mother); __SampleFather_init(_gramps, _father); __SampleChild_init_unchained(_child); } // solhint-disable-next-line func-name-mixedcase function __SampleChild_init_unchained(uint256 _child) internal onlyInitializing { child = _child; } }
Solidity
5
gen4sp/STD-Contract
contracts/openzeppelin/mocks/MultipleInheritanceInitializableMocks.sol
[ "MIT" ]
#N canvas 716 85 557 437 12; #X floatatom 52 137 4 0 0 0 - - - 0; #X obj 52 267 complex-mod~; #X obj 52 199 cos~; #X obj 92 219 cos~; #X obj 92 195 -~ 0.25; #X text 76 65 The complex modulator takes two signals in which it considers to be the real and imaginary part of a complex-valued signal. It then does a complex multiplication by a sinusoid to shift all frequencies up or down by any frequency shift in Hz., f 61; #X obj 406 396 hilbert~; #X text 328 396 See also:; #X obj 101 29 complex-mod~; #X text 198 29 - complex amplitude modulator; #X obj 62 321 output~; #X floatatom 164 197 4 0 0 0 - - - 0; #X text 200 199 Frequency shift; #X obj 164 220 sig~; #X text 204 252 The left output is the frquency shifted by the amount of the frequency shift. The right outlet gives us the other side band \, which is shifted by the same amount in reverse., f 44; #X text 197 321 (for instance \, if the shift is 100 \, left output shifts the frequency up by 100 and the right shifts it down by 100) , f 47; #X obj 52 165 phasor~ 440; #X connect 0 0 16 0; #X connect 1 0 10 0; #X connect 1 1 10 1; #X connect 2 0 1 0; #X connect 3 0 1 1; #X connect 4 0 3 0; #X connect 11 0 13 0; #X connect 13 0 1 2; #X connect 16 0 2 0; #X connect 16 0 4 0;
Pure Data
4
myQwil/pure-data
extra/complex-mod~-help.pd
[ "TCL" ]
.className { background: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20649%2087.5%22%20xmlns%3Av%3D%22https%3A%2F%2Fvecta.io%2Fnano%22%3E%3Cpath%20d%3D%22M0%200h649v87.5H0z%22%20fill%3D%22%230b3647%22%2F%3E%3Cpath%20d%3D%22M0%204.03h649v76.22H0z%22%20fill%3D%22%23104f68%22%2F%3E%3Cpath%20d%3D%22M0%200h649v8.07H0z%22%20fill%3D%22%231a6184%22%2F%3E%3C%2Fsvg%3E') 0 0 no-repeat; }
CSS
3
nazarepiedady/next.js
test/integration/css-fixtures/data-url/pages/index.module.css
[ "MIT" ]
Tesla K80,3.7,3.7 Tesla K40,3.5,3.5 Tesla K20,3.5,3.5 Tesla C2075,2.0 Tesla C2050/C2070,2.0 Tesla T4,7.5 Tesla V100,7.0 Tesla P100,6.0 Tesla P40,6.1 Tesla P4,6.1 Tesla M60,5.2 Tesla M40,5.2 Tesla K10,3.0 Quadro RTX 8000,7.5 Quadro RTX 6000,7.5 Quadro RTX 5000,7.5 Quadro RTX 4000,7.5 Quadro GV100,7.0 Quadro GP100,6.0 Quadro P6000,6.1 Quadro P5000,6.1,6.1 Quadro P4000,6.1,6.1 Quadro P2000,6.1 Quadro P1000,6.1 Quadro P600,6.1 Quadro P400,6.1 Quadro M6000 24GB,5.2 Quadro M6000,5.2 Quadro K6000,3.5 Quadro M5000,5.2 Quadro K5200,3.5 Quadro K5000,3.0 Quadro M4000,5.2 Quadro K4200,3.0 Quadro K4000,3.0 Quadro M2000,5.2 Quadro K2200,3.0 Quadro K2000,3.0 Quadro K2000D,3.0 Quadro K1200,5.0 Quadro K620,5.0 Quadro K600,3.0 Quadro K420,3.0 Quadro 410,3.0 Quadro Plex 7000,2.0 Quadro P5200,6.1 Quadro P4200,6.1 Quadro P3200,6.1 Quadro P3000,6.1 Quadro M5500M,5.2 Quadro M2200,5.2 Quadro M1200,5.0 Quadro M620,5.2 Quadro M520,5.0 Quadro K6000M,3.0 Quadro K5200M,3.0 Quadro K5100M,3.0 Quadro M5000M,5.0 Quadro K500M,3.0 Quadro K4200M,3.0 Quadro K4100M,3.0 Quadro M4000M,5.0 Quadro K3100M,3.0 Quadro M3000M,5.0 Quadro K2200M,3.0 Quadro K2100M,3.0 Quadro M2000M,5.0 Quadro K1100M,3.0 Quadro M1000M,5.0 Quadro K620M,5.0 Quadro K610M,3.5 Quadro M600M,5.0 Quadro K510M,3.5 Quadro M500M,5.0 NVIDIA NVS 810,5.0 NVIDIA NVS 510,3.0 NVIDIA NVS 315,2.1 NVIDIA NVS 310,2.1 NVS 5400M,2.1 NVS 5200M,2.1 NVS 4200M,2.1 NVIDIA TITAN RTX,7.5 Geforce RTX 2080 Ti,7.5 Geforce RTX 2080,7.5,7.5 Geforce RTX 2070,7.5,7.5 Geforce RTX 2060,7.5,7.5 NVIDIA TITAN V,7.0 NVIDIA TITAN Xp,6.1 NVIDIA TITAN X,6.1 GeForce GTX 1080 Ti,6.1 GeForce GTX 1080,6.1,6.1 GeForce GTX 1070,6.1,6.1 GeForce GTX 1060,6.1,6.1 GeForce GTX 1050,6.1 GeForce GTX TITAN X,5.2 GeForce GTX TITAN Z,3.5 GeForce GTX TITAN Black,3.5 GeForce GTX TITAN,3.5 GeForce GTX 980 Ti,5.2 GeForce GTX 980,5.2,5.2 GeForce GTX 970,5.2 GeForce GTX 960,5.2 GeForce GTX 950,5.2 GeForce GTX 780 Ti,3.5 GeForce GTX 780,3.5 GeForce GTX 770,3.0 GeForce GTX 760,3.0 GeForce GTX 750 Ti,5.0 GeForce GTX 750,5.0 GeForce GTX 690,3.0 GeForce GTX 680,3.0 GeForce GTX 670,3.0 GeForce GTX 660 Ti,3.0 GeForce GTX 660,3.0 GeForce GTX 650 Ti BOOST,3.0 GeForce GTX 650 Ti,3.0 GeForce GTX 650,3.0 GeForce GTX 560 Ti,2.1 GeForce GTX 550 Ti,2.1 GeForce GTX 460,2.1 GeForce GTS 450,2.1,2.1 GeForce GTX 590,2.0 GeForce GTX 580,2.0 GeForce GTX 570,2.0 GeForce GTX 480,2.0 GeForce GTX 470,2.0 GeForce GTX 465,2.0 GeForce GT 740,3.0 GeForce GT 730,3.5,2.1 GeForce GT 720,3.5 GeForce GT 705,3.5 GeForce GT 640 (GDDR5),3.5 GeForce GT 640,2.1 GeForce GT 630,2.1 GeForce GT 620,2.1 GeForce GT 610,2.1 GeForce GT 520,2.1 GeForce GT 440,2.1,2.1 GeForce GT 430,2.1,2.1 GeForce GTX 980M,5.2 GeForce GTX 970M,5.2 GeForce GTX 965M,5.2 GeForce GTX 960M,5.0 GeForce GTX 950M,5.0 GeForce 940M,5.0 GeForce 930M,5.0 GeForce 920M,3.5 GeForce 910M,5.2 GeForce GTX 880M,3.0 GeForce GTX 870M,3.0 GeForce GTX 860M,5.0 GeForce GTX 850M,5.0 GeForce 840M,5.0 GeForce 830M,5.0 GeForce 820M,2.1 GeForce 800M,2.1 GeForce GTX 780M,3.0 GeForce GTX 770M,3.0 GeForce GTX 765M,3.0 GeForce GTX 760M,3.0 GeForce GTX 680MX,3.0 GeForce GTX 680M,3.0 GeForce GTX 675MX,3.0 GeForce GTX 675M,2.1 GeForce GTX 670MX,3.0 GeForce GTX 670M,2.1 GeForce GTX 660M,3.0 GeForce GT 755M,3.0 GeForce GT 750M,3.0 GeForce GT 650M,3.0 GeForce GT 745M,3.0 GeForce GT 645M,3.0 GeForce GT 740M,3.0 GeForce GT 730M,3.0,3.0 GeForce GT 640M,3.0 GeForce GT 640M LE,3.0 GeForce GT 735M,3.0 GeForce GT 635M,2.1 GeForce GT 630M,2.1 GeForce GT 625M,2.1 GeForce GT 720M,2.1 GeForce GT 620M,2.1 GeForce 710M,2.1,2.1 GeForce 705M,2.1 GeForce 610M,2.1 GeForce GTX 580M,2.1 GeForce GTX 570M,2.1 GeForce GTX 560M,2.1 GeForce GT 555M,2.1 GeForce GT 550M,2.1 GeForce GT 540M,2.1 GeForce GT 525M,2.1 GeForce GT 520MX,2.1 GeForce GT 520M,2.1 GeForce GTX 485M,2.1 GeForce GTX 470M,2.1 GeForce GTX 460M,2.1 GeForce GT 445M,2.1 GeForce GT 435M,2.1 GeForce GT 420M,2.1 GeForce GT 415M,2.1 GeForce GTX 480M,2.0 GeForce 410M,2.1 Jetson TX2,6.2 Jetson TX1,5.3 Jetson TK1,3.2 Tegra X1,5.3 Tegra K1,3.2
CSV
2
abhaikollara/tensorflow
tensorflow/tools/tensorflow_builder/config_detector/data/golden/compute_capability_golden.csv
[ "Apache-2.0" ]
(* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. *) {$SCOPEDENUMS ON} unit Thrift.Protocol; interface uses Classes, SysUtils, Contnrs, Thrift.Exception, Thrift.Stream, Thrift.Utils, Thrift.Collections, Thrift.Configuration, Thrift.Transport; type TType = ( Stop = 0, Void = 1, Bool_ = 2, Byte_ = 3, Double_ = 4, I16 = 6, I32 = 8, I64 = 10, String_ = 11, Struct = 12, Map = 13, Set_ = 14, List = 15 ); TMessageType = ( Call = 1, Reply = 2, Exception = 3, Oneway = 4 ); const VALID_TTYPES = [ TType.Stop, TType.Void, TType.Bool_, TType.Byte_, TType.Double_, TType.I16, TType.I32, TType.I64, TType.String_, TType.Struct, TType.Map, TType.Set_, TType.List ]; VALID_MESSAGETYPES = [Low(TMessageType)..High(TMessageType)]; type IProtocol = interface; TThriftMessage = record Name: string; Type_: TMessageType; SeqID: Integer; end; TThriftStruct = record Name: string; end; TThriftField = record Name: string; Type_: TType; Id: SmallInt; end; TThriftList = record ElementType: TType; Count: Integer; end; TThriftMap = record KeyType: TType; ValueType: TType; Count: Integer; end; TThriftSet = record ElementType: TType; Count: Integer; end; IProtocolFactory = interface ['{7CD64A10-4E9F-4E99-93BF-708A31F4A67B}'] function GetProtocol( const trans: ITransport): IProtocol; end; TProtocolException = class abstract( TException) public type TExceptionType = ( UNKNOWN = 0, INVALID_DATA = 1, NEGATIVE_SIZE = 2, SIZE_LIMIT = 3, BAD_VERSION = 4, NOT_IMPLEMENTED = 5, DEPTH_LIMIT = 6 ); strict protected constructor HiddenCreate(const Msg: string); class function GetType: TExceptionType; virtual; abstract; public // purposefully hide inherited constructor class function Create(const Msg: string): TProtocolException; overload; deprecated 'Use specialized TProtocolException types (or regenerate from IDL)'; class function Create: TProtocolException; overload; deprecated 'Use specialized TProtocolException types (or regenerate from IDL)'; class function Create( aType: TExceptionType): TProtocolException; overload; deprecated 'Use specialized TProtocolException types (or regenerate from IDL)'; class function Create( aType: TExceptionType; const msg: string): TProtocolException; overload; deprecated 'Use specialized TProtocolException types (or regenerate from IDL)'; property Type_: TExceptionType read GetType; end; // Needed to remove deprecation warning TProtocolExceptionSpecialized = class abstract (TProtocolException) public constructor Create(const Msg: string); end; TProtocolExceptionUnknown = class (TProtocolExceptionSpecialized) strict protected class function GetType: TProtocolException.TExceptionType; override; end; TProtocolExceptionInvalidData = class (TProtocolExceptionSpecialized) strict protected class function GetType: TProtocolException.TExceptionType; override; end; TProtocolExceptionNegativeSize = class (TProtocolExceptionSpecialized) strict protected class function GetType: TProtocolException.TExceptionType; override; end; TProtocolExceptionSizeLimit = class (TProtocolExceptionSpecialized) strict protected class function GetType: TProtocolException.TExceptionType; override; end; TProtocolExceptionBadVersion = class (TProtocolExceptionSpecialized) strict protected class function GetType: TProtocolException.TExceptionType; override; end; TProtocolExceptionNotImplemented = class (TProtocolExceptionSpecialized) strict protected class function GetType: TProtocolException.TExceptionType; override; end; TProtocolExceptionDepthLimit = class (TProtocolExceptionSpecialized) strict protected class function GetType: TProtocolException.TExceptionType; override; end; TProtocolUtil = class public class procedure Skip( prot: IProtocol; type_: TType); end; IProtocolRecursionTracker = interface ['{29CA033F-BB56-49B1-9EE3-31B1E82FC7A5}'] // no members yet end; TProtocolRecursionTrackerImpl = class abstract( TInterfacedObject, IProtocolRecursionTracker) strict protected FProtocol : IProtocol; public constructor Create( prot : IProtocol); destructor Destroy; override; end; IProtocol = interface ['{F0040D99-937F-400D-9932-AF04F665899F}'] function GetTransport: ITransport; procedure WriteMessageBegin( const msg: TThriftMessage); procedure WriteMessageEnd; procedure WriteStructBegin( const struc: TThriftStruct); procedure WriteStructEnd; procedure WriteFieldBegin( const field: TThriftField); procedure WriteFieldEnd; procedure WriteFieldStop; procedure WriteMapBegin( const map: TThriftMap); procedure WriteMapEnd; procedure WriteListBegin( const list: TThriftList); procedure WriteListEnd(); procedure WriteSetBegin( const set_: TThriftSet ); procedure WriteSetEnd(); procedure WriteBool( b: Boolean); procedure WriteByte( b: ShortInt); procedure WriteI16( i16: SmallInt); procedure WriteI32( i32: Integer); procedure WriteI64( const i64: Int64); procedure WriteDouble( const d: Double); procedure WriteString( const s: string ); procedure WriteAnsiString( const s: AnsiString); procedure WriteBinary( const b: TBytes); function ReadMessageBegin: TThriftMessage; procedure ReadMessageEnd(); function ReadStructBegin: TThriftStruct; procedure ReadStructEnd; function ReadFieldBegin: TThriftField; procedure ReadFieldEnd(); function ReadMapBegin: TThriftMap; procedure ReadMapEnd(); function ReadListBegin: TThriftList; procedure ReadListEnd(); function ReadSetBegin: TThriftSet; procedure ReadSetEnd(); function ReadBool: Boolean; function ReadByte: ShortInt; function ReadI16: SmallInt; function ReadI32: Integer; function ReadI64: Int64; function ReadDouble:Double; function ReadBinary: TBytes; function ReadString: string; function ReadAnsiString: AnsiString; function NextRecursionLevel : IProtocolRecursionTracker; procedure IncrementRecursionDepth; procedure DecrementRecursionDepth; function GetMinSerializedSize( const aType : TType) : Integer; property Transport: ITransport read GetTransport; function Configuration : IThriftConfiguration; end; TProtocolImplClass = class of TProtocolImpl; TProtocolImpl = class abstract( TInterfacedObject, IProtocol) strict protected FTrans : ITransport; FRecursionLimit : Integer; FRecursionDepth : Integer; function NextRecursionLevel : IProtocolRecursionTracker; procedure IncrementRecursionDepth; procedure DecrementRecursionDepth; function GetMinSerializedSize( const aType : TType) : Integer; virtual; abstract; procedure CheckReadBytesAvailable( const value : TThriftList); overload; inline; procedure CheckReadBytesAvailable( const value : TThriftSet); overload; inline; procedure CheckReadBytesAvailable( const value : TThriftMap); overload; inline; procedure Reset; virtual; function GetTransport: ITransport; function Configuration : IThriftConfiguration; procedure WriteMessageBegin( const msg: TThriftMessage); virtual; abstract; procedure WriteMessageEnd; virtual; abstract; procedure WriteStructBegin( const struc: TThriftStruct); virtual; abstract; procedure WriteStructEnd; virtual; abstract; procedure WriteFieldBegin( const field: TThriftField); virtual; abstract; procedure WriteFieldEnd; virtual; abstract; procedure WriteFieldStop; virtual; abstract; procedure WriteMapBegin( const map: TThriftMap); virtual; abstract; procedure WriteMapEnd; virtual; abstract; procedure WriteListBegin( const list: TThriftList); virtual; abstract; procedure WriteListEnd(); virtual; abstract; procedure WriteSetBegin( const set_: TThriftSet ); virtual; abstract; procedure WriteSetEnd(); virtual; abstract; procedure WriteBool( b: Boolean); virtual; abstract; procedure WriteByte( b: ShortInt); virtual; abstract; procedure WriteI16( i16: SmallInt); virtual; abstract; procedure WriteI32( i32: Integer); virtual; abstract; procedure WriteI64( const i64: Int64); virtual; abstract; procedure WriteDouble( const d: Double); virtual; abstract; procedure WriteString( const s: string ); virtual; procedure WriteAnsiString( const s: AnsiString); virtual; procedure WriteBinary( const b: TBytes); virtual; abstract; function ReadMessageBegin: TThriftMessage; virtual; abstract; procedure ReadMessageEnd(); virtual; abstract; function ReadStructBegin: TThriftStruct; virtual; abstract; procedure ReadStructEnd; virtual; abstract; function ReadFieldBegin: TThriftField; virtual; abstract; procedure ReadFieldEnd(); virtual; abstract; function ReadMapBegin: TThriftMap; virtual; abstract; procedure ReadMapEnd(); virtual; abstract; function ReadListBegin: TThriftList; virtual; abstract; procedure ReadListEnd(); virtual; abstract; function ReadSetBegin: TThriftSet; virtual; abstract; procedure ReadSetEnd(); virtual; abstract; function ReadBool: Boolean; virtual; abstract; function ReadByte: ShortInt; virtual; abstract; function ReadI16: SmallInt; virtual; abstract; function ReadI32: Integer; virtual; abstract; function ReadI64: Int64; virtual; abstract; function ReadDouble:Double; virtual; abstract; function ReadBinary: TBytes; virtual; abstract; function ReadString: string; virtual; function ReadAnsiString: AnsiString; virtual; property Transport: ITransport read GetTransport; public constructor Create( const aTransport : ITransport); virtual; end; IBase = interface( ISupportsToString) ['{AFF6CECA-5200-4540-950E-9B89E0C1C00C}'] procedure Read( const iprot: IProtocol); procedure Write( const iprot: IProtocol); end; TBinaryProtocolImpl = class( TProtocolImpl ) strict protected const VERSION_MASK : Cardinal = $ffff0000; VERSION_1 : Cardinal = $80010000; strict protected FStrictRead : Boolean; FStrictWrite : Boolean; function GetMinSerializedSize( const aType : TType) : Integer; override; strict private function ReadAll( const pBuf : Pointer; const buflen : Integer; off: Integer; len: Integer ): Integer; inline; function ReadStringBody( size: Integer): string; public type TFactory = class( TInterfacedObject, IProtocolFactory) strict protected FStrictRead : Boolean; FStrictWrite : Boolean; function GetProtocol( const trans: ITransport): IProtocol; public constructor Create( const aStrictRead : Boolean = FALSE; const aStrictWrite: Boolean = TRUE); reintroduce; end; constructor Create( const trans: ITransport); overload; override; constructor Create( const trans: ITransport; strictRead, strictWrite: Boolean); reintroduce; overload; procedure WriteMessageBegin( const msg: TThriftMessage); override; procedure WriteMessageEnd; override; procedure WriteStructBegin( const struc: TThriftStruct); override; procedure WriteStructEnd; override; procedure WriteFieldBegin( const field: TThriftField); override; procedure WriteFieldEnd; override; procedure WriteFieldStop; override; procedure WriteMapBegin( const map: TThriftMap); override; procedure WriteMapEnd; override; procedure WriteListBegin( const list: TThriftList); override; procedure WriteListEnd(); override; procedure WriteSetBegin( const set_: TThriftSet ); override; procedure WriteSetEnd(); override; procedure WriteBool( b: Boolean); override; procedure WriteByte( b: ShortInt); override; procedure WriteI16( i16: SmallInt); override; procedure WriteI32( i32: Integer); override; procedure WriteI64( const i64: Int64); override; procedure WriteDouble( const d: Double); override; procedure WriteBinary( const b: TBytes); override; function ReadMessageBegin: TThriftMessage; override; procedure ReadMessageEnd(); override; function ReadStructBegin: TThriftStruct; override; procedure ReadStructEnd; override; function ReadFieldBegin: TThriftField; override; procedure ReadFieldEnd(); override; function ReadMapBegin: TThriftMap; override; procedure ReadMapEnd(); override; function ReadListBegin: TThriftList; override; procedure ReadListEnd(); override; function ReadSetBegin: TThriftSet; override; procedure ReadSetEnd(); override; function ReadBool: Boolean; override; function ReadByte: ShortInt; override; function ReadI16: SmallInt; override; function ReadI32: Integer; override; function ReadI64: Int64; override; function ReadDouble:Double; override; function ReadBinary: TBytes; override; end; { TProtocolDecorator forwards all requests to an enclosed TProtocol instance, providing a way to author concise concrete decorator subclasses. The decorator does not (and should not) modify the behaviour of the enclosed TProtocol See p.175 of Design Patterns (by Gamma et al.) } TProtocolDecorator = class( TProtocolImpl) strict private FWrappedProtocol : IProtocol; strict protected function GetMinSerializedSize( const aType : TType) : Integer; override; public // Encloses the specified protocol. // All operations will be forward to the given protocol. Must be non-null. constructor Create( const aProtocol : IProtocol); reintroduce; procedure WriteMessageBegin( const msg: TThriftMessage); override; procedure WriteMessageEnd; override; procedure WriteStructBegin( const struc: TThriftStruct); override; procedure WriteStructEnd; override; procedure WriteFieldBegin( const field: TThriftField); override; procedure WriteFieldEnd; override; procedure WriteFieldStop; override; procedure WriteMapBegin( const map: TThriftMap); override; procedure WriteMapEnd; override; procedure WriteListBegin( const list: TThriftList); override; procedure WriteListEnd(); override; procedure WriteSetBegin( const set_: TThriftSet ); override; procedure WriteSetEnd(); override; procedure WriteBool( b: Boolean); override; procedure WriteByte( b: ShortInt); override; procedure WriteI16( i16: SmallInt); override; procedure WriteI32( i32: Integer); override; procedure WriteI64( const i64: Int64); override; procedure WriteDouble( const d: Double); override; procedure WriteString( const s: string ); override; procedure WriteAnsiString( const s: AnsiString); override; procedure WriteBinary( const b: TBytes); override; function ReadMessageBegin: TThriftMessage; override; procedure ReadMessageEnd(); override; function ReadStructBegin: TThriftStruct; override; procedure ReadStructEnd; override; function ReadFieldBegin: TThriftField; override; procedure ReadFieldEnd(); override; function ReadMapBegin: TThriftMap; override; procedure ReadMapEnd(); override; function ReadListBegin: TThriftList; override; procedure ReadListEnd(); override; function ReadSetBegin: TThriftSet; override; procedure ReadSetEnd(); override; function ReadBool: Boolean; override; function ReadByte: ShortInt; override; function ReadI16: SmallInt; override; function ReadI32: Integer; override; function ReadI64: Int64; override; function ReadDouble:Double; override; function ReadBinary: TBytes; override; function ReadString: string; override; function ReadAnsiString: AnsiString; override; end; type IRequestEvents = interface ['{F926A26A-5B00-4560-86FA-2CAE3BA73DAF}'] // Called before reading arguments. procedure PreRead; // Called between reading arguments and calling the handler. procedure PostRead; // Called between calling the handler and writing the response. procedure PreWrite; // Called after writing the response. procedure PostWrite; // Called when an oneway (async) function call completes successfully. procedure OnewayComplete; // Called if the handler throws an undeclared exception. procedure UnhandledError( const e : Exception); // Called when a client has finished request-handling to clean up procedure CleanupContext; end; IProcessorEvents = interface ['{A8661119-657C-447D-93C5-512E36162A45}'] // Called when a client is about to call the processor. procedure Processing( const transport : ITransport); // Called on any service function invocation function CreateRequestContext( const aFunctionName : string) : IRequestEvents; // Called when a client has finished request-handling to clean up procedure CleanupContext; end; IProcessor = interface ['{7BAE92A5-46DA-4F13-B6EA-0EABE233EE5F}'] function Process( const iprot :IProtocol; const oprot: IProtocol; const events : IProcessorEvents = nil): Boolean; end; procedure Init( var rec : TThriftMessage; const AName: string = ''; const AMessageType: TMessageType = Low(TMessageType); const ASeqID: Integer = 0); overload; inline; procedure Init( var rec : TThriftStruct; const AName: string = ''); overload; inline; procedure Init( var rec : TThriftField; const AName: string = ''; const AType: TType = Low(TType); const AID: SmallInt = 0); overload; inline; procedure Init( var rec : TThriftMap; const AKeyType: TType = Low(TType); const AValueType: TType = Low(TType); const ACount: Integer = 0); overload; inline; procedure Init( var rec : TThriftSet; const AElementType: TType = Low(TType); const ACount: Integer = 0); overload; inline; procedure Init( var rec : TThriftList; const AElementType: TType = Low(TType); const ACount: Integer = 0); overload; inline; implementation function ConvertInt64ToDouble( const n: Int64): Double; inline; begin ASSERT( SizeOf(n) = SizeOf(Result)); System.Move( n, Result, SizeOf(Result)); end; function ConvertDoubleToInt64( const d: Double): Int64; inline; begin ASSERT( SizeOf(d) = SizeOf(Result)); System.Move( d, Result, SizeOf(Result)); end; { TProtocolRecursionTrackerImpl } constructor TProtocolRecursionTrackerImpl.Create( prot : IProtocol); begin inherited Create; // storing the pointer *after* the (successful) increment is important here prot.IncrementRecursionDepth; FProtocol := prot; end; destructor TProtocolRecursionTrackerImpl.Destroy; begin try // we have to release the reference iff the pointer has been stored if FProtocol <> nil then begin FProtocol.DecrementRecursionDepth; FProtocol := nil; end; finally inherited Destroy; end; end; { TProtocolImpl } constructor TProtocolImpl.Create( const aTransport : ITransport); begin inherited Create; FTrans := aTransport; FRecursionLimit := aTransport.Configuration.RecursionLimit; FRecursionDepth := 0; end; function TProtocolImpl.NextRecursionLevel : IProtocolRecursionTracker; begin result := TProtocolRecursionTrackerImpl.Create(Self); end; procedure TProtocolImpl.IncrementRecursionDepth; begin if FRecursionDepth < FRecursionLimit then Inc(FRecursionDepth) else raise TProtocolExceptionDepthLimit.Create('Depth limit exceeded'); end; procedure TProtocolImpl.DecrementRecursionDepth; begin Dec(FRecursionDepth) end; function TProtocolImpl.GetTransport: ITransport; begin Result := FTrans; end; function TProtocolImpl.Configuration : IThriftConfiguration; begin Result := FTrans.Configuration; end; procedure TProtocolImpl.Reset; begin FTrans.ResetConsumedMessageSize; end; function TProtocolImpl.ReadAnsiString: AnsiString; var b : TBytes; len : Integer; begin Result := ''; b := ReadBinary; len := Length( b ); if len > 0 then begin SetLength( Result, len); System.Move( b[0], Pointer(Result)^, len ); end; end; function TProtocolImpl.ReadString: string; begin Result := TEncoding.UTF8.GetString( ReadBinary ); end; procedure TProtocolImpl.WriteAnsiString(const s: AnsiString); var b : TBytes; len : Integer; begin len := Length(s); SetLength( b, len); if len > 0 then begin System.Move( Pointer(s)^, b[0], len ); end; WriteBinary( b ); end; procedure TProtocolImpl.WriteString(const s: string); var b : TBytes; begin b := TEncoding.UTF8.GetBytes(s); WriteBinary( b ); end; procedure TProtocolImpl.CheckReadBytesAvailable( const value : TThriftList); begin FTrans.CheckReadBytesAvailable( value.Count * GetMinSerializedSize(value.ElementType)); end; procedure TProtocolImpl.CheckReadBytesAvailable( const value : TThriftSet); begin FTrans.CheckReadBytesAvailable( value.Count * GetMinSerializedSize(value.ElementType)); end; procedure TProtocolImpl.CheckReadBytesAvailable( const value : TThriftMap); var nPairSize : Integer; begin nPairSize := GetMinSerializedSize(value.KeyType) + GetMinSerializedSize(value.ValueType); FTrans.CheckReadBytesAvailable( value.Count * nPairSize); end; { TProtocolUtil } class procedure TProtocolUtil.Skip( prot: IProtocol; type_: TType); var field : TThriftField; map : TThriftMap; set_ : TThriftSet; list : TThriftList; i : Integer; tracker : IProtocolRecursionTracker; begin tracker := prot.NextRecursionLevel; case type_ of // simple types TType.Bool_ : prot.ReadBool(); TType.Byte_ : prot.ReadByte(); TType.I16 : prot.ReadI16(); TType.I32 : prot.ReadI32(); TType.I64 : prot.ReadI64(); TType.Double_ : prot.ReadDouble(); TType.String_ : prot.ReadBinary();// Don't try to decode the string, just skip it. // structured types TType.Struct : begin prot.ReadStructBegin(); while TRUE do begin field := prot.ReadFieldBegin(); if (field.Type_ = TType.Stop) then Break; Skip(prot, field.Type_); prot.ReadFieldEnd(); end; prot.ReadStructEnd(); end; TType.Map : begin map := prot.ReadMapBegin(); for i := 0 to map.Count-1 do begin Skip(prot, map.KeyType); Skip(prot, map.ValueType); end; prot.ReadMapEnd(); end; TType.Set_ : begin set_ := prot.ReadSetBegin(); for i := 0 to set_.Count-1 do Skip( prot, set_.ElementType); prot.ReadSetEnd(); end; TType.List : begin list := prot.ReadListBegin(); for i := 0 to list.Count-1 do Skip( prot, list.ElementType); prot.ReadListEnd(); end; else raise TProtocolExceptionInvalidData.Create('Unexpected type '+IntToStr(Ord(type_))); end; end; { TBinaryProtocolImpl } constructor TBinaryProtocolImpl.Create( const trans: ITransport); begin // call the real CTOR Self.Create( trans, FALSE, TRUE); end; constructor TBinaryProtocolImpl.Create( const trans: ITransport; strictRead, strictWrite: Boolean); begin inherited Create( trans); FStrictRead := strictRead; FStrictWrite := strictWrite; end; function TBinaryProtocolImpl.ReadAll( const pBuf : Pointer; const buflen : Integer; off: Integer; len: Integer ): Integer; begin Result := FTrans.ReadAll( pBuf, buflen, off, len ); end; function TBinaryProtocolImpl.ReadBinary: TBytes; var size : Integer; buf : TBytes; begin size := ReadI32; FTrans.CheckReadBytesAvailable( size); SetLength( buf, size); FTrans.ReadAll( buf, 0, size); Result := buf; end; function TBinaryProtocolImpl.ReadBool: Boolean; begin Result := (ReadByte = 1); end; function TBinaryProtocolImpl.ReadByte: ShortInt; begin ReadAll( @result, SizeOf(result), 0, 1); end; function TBinaryProtocolImpl.ReadDouble: Double; begin Result := ConvertInt64ToDouble( ReadI64 ) end; function TBinaryProtocolImpl.ReadFieldBegin: TThriftField; begin Init( result, '', TType( ReadByte), 0); if ( result.Type_ <> TType.Stop ) then begin result.Id := ReadI16; end; end; procedure TBinaryProtocolImpl.ReadFieldEnd; begin end; function TBinaryProtocolImpl.ReadI16: SmallInt; var i16in : packed array[0..1] of Byte; begin ReadAll( @i16in, Sizeof(i16in), 0, 2); Result := SmallInt(((i16in[0] and $FF) shl 8) or (i16in[1] and $FF)); end; function TBinaryProtocolImpl.ReadI32: Integer; var i32in : packed array[0..3] of Byte; begin ReadAll( @i32in, SizeOf(i32in), 0, 4); Result := Integer( ((i32in[0] and $FF) shl 24) or ((i32in[1] and $FF) shl 16) or ((i32in[2] and $FF) shl 8) or (i32in[3] and $FF)); end; function TBinaryProtocolImpl.ReadI64: Int64; var i64in : packed array[0..7] of Byte; begin ReadAll( @i64in, SizeOf(i64in), 0, 8); Result := (Int64( i64in[0] and $FF) shl 56) or (Int64( i64in[1] and $FF) shl 48) or (Int64( i64in[2] and $FF) shl 40) or (Int64( i64in[3] and $FF) shl 32) or (Int64( i64in[4] and $FF) shl 24) or (Int64( i64in[5] and $FF) shl 16) or (Int64( i64in[6] and $FF) shl 8) or (Int64( i64in[7] and $FF)); end; function TBinaryProtocolImpl.ReadListBegin: TThriftList; begin result.ElementType := TType(ReadByte); result.Count := ReadI32; CheckReadBytesAvailable(result); end; procedure TBinaryProtocolImpl.ReadListEnd; begin end; function TBinaryProtocolImpl.ReadMapBegin: TThriftMap; begin result.KeyType := TType(ReadByte); result.ValueType := TType(ReadByte); result.Count := ReadI32; CheckReadBytesAvailable(result); end; procedure TBinaryProtocolImpl.ReadMapEnd; begin end; function TBinaryProtocolImpl.ReadMessageBegin: TThriftMessage; var size : Integer; version : Integer; begin Reset; Init( result); size := ReadI32; if (size < 0) then begin version := size and Integer( VERSION_MASK); if ( version <> Integer( VERSION_1)) then begin raise TProtocolExceptionBadVersion.Create('Bad version in ReadMessageBegin: ' + IntToStr(version) ); end; result.Type_ := TMessageType( size and $000000ff); result.Name := ReadString; result.SeqID := ReadI32; Exit; end; try if FStrictRead then raise TProtocolExceptionBadVersion.Create('Missing version in readMessageBegin, old client?' ); result.Name := ReadStringBody( size ); result.Type_ := TMessageType( ReadByte ); result.SeqID := ReadI32; except if CharUtils.IsHtmlDoctype(size) then raise TProtocolExceptionInvalidData.Create('Remote end sends HTML instead of data') else raise; // something else end; end; procedure TBinaryProtocolImpl.ReadMessageEnd; begin inherited; end; function TBinaryProtocolImpl.ReadSetBegin: TThriftSet; begin result.ElementType := TType(ReadByte); result.Count := ReadI32; CheckReadBytesAvailable(result); end; procedure TBinaryProtocolImpl.ReadSetEnd; begin end; function TBinaryProtocolImpl.ReadStringBody( size: Integer): string; var buf : TBytes; begin FTrans.CheckReadBytesAvailable( size); SetLength( buf, size); FTrans.ReadAll( buf, 0, size ); Result := TEncoding.UTF8.GetString( buf); end; function TBinaryProtocolImpl.ReadStructBegin: TThriftStruct; begin Init( Result); end; procedure TBinaryProtocolImpl.ReadStructEnd; begin inherited; end; procedure TBinaryProtocolImpl.WriteBinary( const b: TBytes); var iLen : Integer; begin iLen := Length(b); WriteI32( iLen); if iLen > 0 then FTrans.Write(b, 0, iLen); end; procedure TBinaryProtocolImpl.WriteBool(b: Boolean); begin if b then begin WriteByte( 1 ); end else begin WriteByte( 0 ); end; end; procedure TBinaryProtocolImpl.WriteByte(b: ShortInt); begin FTrans.Write( @b, 0, 1); end; procedure TBinaryProtocolImpl.WriteDouble( const d: Double); begin WriteI64(ConvertDoubleToInt64(d)); end; procedure TBinaryProtocolImpl.WriteFieldBegin( const field: TThriftField); begin WriteByte(ShortInt(field.Type_)); WriteI16(field.ID); end; procedure TBinaryProtocolImpl.WriteFieldEnd; begin end; procedure TBinaryProtocolImpl.WriteFieldStop; begin WriteByte(ShortInt(TType.Stop)); end; procedure TBinaryProtocolImpl.WriteI16(i16: SmallInt); var i16out : packed array[0..1] of Byte; begin i16out[0] := Byte($FF and (i16 shr 8)); i16out[1] := Byte($FF and i16); FTrans.Write( @i16out, 0, 2); end; procedure TBinaryProtocolImpl.WriteI32(i32: Integer); var i32out : packed array[0..3] of Byte; begin i32out[0] := Byte($FF and (i32 shr 24)); i32out[1] := Byte($FF and (i32 shr 16)); i32out[2] := Byte($FF and (i32 shr 8)); i32out[3] := Byte($FF and i32); FTrans.Write( @i32out, 0, 4); end; procedure TBinaryProtocolImpl.WriteI64( const i64: Int64); var i64out : packed array[0..7] of Byte; begin i64out[0] := Byte($FF and (i64 shr 56)); i64out[1] := Byte($FF and (i64 shr 48)); i64out[2] := Byte($FF and (i64 shr 40)); i64out[3] := Byte($FF and (i64 shr 32)); i64out[4] := Byte($FF and (i64 shr 24)); i64out[5] := Byte($FF and (i64 shr 16)); i64out[6] := Byte($FF and (i64 shr 8)); i64out[7] := Byte($FF and i64); FTrans.Write( @i64out, 0, 8); end; procedure TBinaryProtocolImpl.WriteListBegin( const list: TThriftList); begin WriteByte(ShortInt(list.ElementType)); WriteI32(list.Count); end; procedure TBinaryProtocolImpl.WriteListEnd; begin end; procedure TBinaryProtocolImpl.WriteMapBegin( const map: TThriftMap); begin WriteByte(ShortInt(map.KeyType)); WriteByte(ShortInt(map.ValueType)); WriteI32(map.Count); end; procedure TBinaryProtocolImpl.WriteMapEnd; begin end; procedure TBinaryProtocolImpl.WriteMessageBegin( const msg: TThriftMessage); var version : Cardinal; begin Reset; if FStrictWrite then begin version := VERSION_1 or Cardinal( msg.Type_); WriteI32( Integer( version) ); WriteString( msg.Name); WriteI32( msg.SeqID); end else begin WriteString( msg.Name); WriteByte(ShortInt( msg.Type_)); WriteI32( msg.SeqID); end; end; procedure TBinaryProtocolImpl.WriteMessageEnd; begin end; procedure TBinaryProtocolImpl.WriteSetBegin( const set_: TThriftSet); begin WriteByte(ShortInt(set_.ElementType)); WriteI32(set_.Count); end; procedure TBinaryProtocolImpl.WriteSetEnd; begin end; procedure TBinaryProtocolImpl.WriteStructBegin( const struc: TThriftStruct); begin end; procedure TBinaryProtocolImpl.WriteStructEnd; begin end; function TBinaryProtocolImpl.GetMinSerializedSize( const aType : TType) : Integer; // Return the minimum number of bytes a type will consume on the wire begin case aType of TType.Stop: result := 0; TType.Void: result := 0; TType.Bool_: result := SizeOf(Byte); TType.Byte_: result := SizeOf(Byte); TType.Double_: result := SizeOf(Double); TType.I16: result := SizeOf(Int16); TType.I32: result := SizeOf(Int32); TType.I64: result := SizeOf(Int64); TType.String_: result := SizeOf(Int32); // string length TType.Struct: result := 0; // empty struct TType.Map: result := SizeOf(Int32); // element count TType.Set_: result := SizeOf(Int32); // element count TType.List: result := SizeOf(Int32); // element count else raise TTransportExceptionBadArgs.Create('Unhandled type code'); end; end; { TProtocolException } constructor TProtocolException.HiddenCreate(const Msg: string); begin inherited Create(Msg); end; class function TProtocolException.Create(const Msg: string): TProtocolException; begin Result := TProtocolExceptionUnknown.Create(Msg); end; class function TProtocolException.Create: TProtocolException; begin Result := TProtocolExceptionUnknown.Create(''); end; class function TProtocolException.Create(aType: TExceptionType): TProtocolException; begin {$WARN SYMBOL_DEPRECATED OFF} Result := Create(aType, ''); {$WARN SYMBOL_DEPRECATED DEFAULT} end; class function TProtocolException.Create(aType: TExceptionType; const msg: string): TProtocolException; begin case aType of TExceptionType.INVALID_DATA: Result := TProtocolExceptionInvalidData.Create(msg); TExceptionType.NEGATIVE_SIZE: Result := TProtocolExceptionNegativeSize.Create(msg); TExceptionType.SIZE_LIMIT: Result := TProtocolExceptionSizeLimit.Create(msg); TExceptionType.BAD_VERSION: Result := TProtocolExceptionBadVersion.Create(msg); TExceptionType.NOT_IMPLEMENTED: Result := TProtocolExceptionNotImplemented.Create(msg); TExceptionType.DEPTH_LIMIT: Result := TProtocolExceptionDepthLimit.Create(msg); else ASSERT( TExceptionType.UNKNOWN = aType); Result := TProtocolExceptionUnknown.Create(msg); end; end; { TProtocolExceptionSpecialized } constructor TProtocolExceptionSpecialized.Create(const Msg: string); begin inherited HiddenCreate(Msg); end; { specialized TProtocolExceptions } class function TProtocolExceptionUnknown.GetType: TProtocolException.TExceptionType; begin result := TExceptionType.UNKNOWN; end; class function TProtocolExceptionInvalidData.GetType: TProtocolException.TExceptionType; begin result := TExceptionType.INVALID_DATA; end; class function TProtocolExceptionNegativeSize.GetType: TProtocolException.TExceptionType; begin result := TExceptionType.NEGATIVE_SIZE; end; class function TProtocolExceptionSizeLimit.GetType: TProtocolException.TExceptionType; begin result := TExceptionType.SIZE_LIMIT; end; class function TProtocolExceptionBadVersion.GetType: TProtocolException.TExceptionType; begin result := TExceptionType.BAD_VERSION; end; class function TProtocolExceptionNotImplemented.GetType: TProtocolException.TExceptionType; begin result := TExceptionType.NOT_IMPLEMENTED; end; class function TProtocolExceptionDepthLimit.GetType: TProtocolException.TExceptionType; begin result := TExceptionType.DEPTH_LIMIT; end; { TBinaryProtocolImpl.TFactory } constructor TBinaryProtocolImpl.TFactory.Create( const aStrictRead, aStrictWrite: Boolean); begin inherited Create; FStrictRead := AStrictRead; FStrictWrite := AStrictWrite; end; function TBinaryProtocolImpl.TFactory.GetProtocol( const trans: ITransport): IProtocol; begin Result := TBinaryProtocolImpl.Create( trans, FStrictRead, FStrictWrite); end; { TProtocolDecorator } constructor TProtocolDecorator.Create( const aProtocol : IProtocol); begin ASSERT( aProtocol <> nil); inherited Create( aProtocol.Transport); FWrappedProtocol := aProtocol; end; procedure TProtocolDecorator.WriteMessageBegin( const msg: TThriftMessage); begin FWrappedProtocol.WriteMessageBegin( msg); end; procedure TProtocolDecorator.WriteMessageEnd; begin FWrappedProtocol.WriteMessageEnd; end; procedure TProtocolDecorator.WriteStructBegin( const struc: TThriftStruct); begin FWrappedProtocol.WriteStructBegin( struc); end; procedure TProtocolDecorator.WriteStructEnd; begin FWrappedProtocol.WriteStructEnd; end; procedure TProtocolDecorator.WriteFieldBegin( const field: TThriftField); begin FWrappedProtocol.WriteFieldBegin( field); end; procedure TProtocolDecorator.WriteFieldEnd; begin FWrappedProtocol.WriteFieldEnd; end; procedure TProtocolDecorator.WriteFieldStop; begin FWrappedProtocol.WriteFieldStop; end; procedure TProtocolDecorator.WriteMapBegin( const map: TThriftMap); begin FWrappedProtocol.WriteMapBegin( map); end; procedure TProtocolDecorator.WriteMapEnd; begin FWrappedProtocol.WriteMapEnd; end; procedure TProtocolDecorator.WriteListBegin( const list: TThriftList); begin FWrappedProtocol.WriteListBegin( list); end; procedure TProtocolDecorator.WriteListEnd(); begin FWrappedProtocol.WriteListEnd(); end; procedure TProtocolDecorator.WriteSetBegin( const set_: TThriftSet ); begin FWrappedProtocol.WriteSetBegin( set_); end; procedure TProtocolDecorator.WriteSetEnd(); begin FWrappedProtocol.WriteSetEnd(); end; procedure TProtocolDecorator.WriteBool( b: Boolean); begin FWrappedProtocol.WriteBool( b); end; procedure TProtocolDecorator.WriteByte( b: ShortInt); begin FWrappedProtocol.WriteByte( b); end; procedure TProtocolDecorator.WriteI16( i16: SmallInt); begin FWrappedProtocol.WriteI16( i16); end; procedure TProtocolDecorator.WriteI32( i32: Integer); begin FWrappedProtocol.WriteI32( i32); end; procedure TProtocolDecorator.WriteI64( const i64: Int64); begin FWrappedProtocol.WriteI64( i64); end; procedure TProtocolDecorator.WriteDouble( const d: Double); begin FWrappedProtocol.WriteDouble( d); end; procedure TProtocolDecorator.WriteString( const s: string ); begin FWrappedProtocol.WriteString( s); end; procedure TProtocolDecorator.WriteAnsiString( const s: AnsiString); begin FWrappedProtocol.WriteAnsiString( s); end; procedure TProtocolDecorator.WriteBinary( const b: TBytes); begin FWrappedProtocol.WriteBinary( b); end; function TProtocolDecorator.ReadMessageBegin: TThriftMessage; begin result := FWrappedProtocol.ReadMessageBegin; end; procedure TProtocolDecorator.ReadMessageEnd(); begin FWrappedProtocol.ReadMessageEnd(); end; function TProtocolDecorator.ReadStructBegin: TThriftStruct; begin result := FWrappedProtocol.ReadStructBegin; end; procedure TProtocolDecorator.ReadStructEnd; begin FWrappedProtocol.ReadStructEnd; end; function TProtocolDecorator.ReadFieldBegin: TThriftField; begin result := FWrappedProtocol.ReadFieldBegin; end; procedure TProtocolDecorator.ReadFieldEnd(); begin FWrappedProtocol.ReadFieldEnd(); end; function TProtocolDecorator.ReadMapBegin: TThriftMap; begin result := FWrappedProtocol.ReadMapBegin; end; procedure TProtocolDecorator.ReadMapEnd(); begin FWrappedProtocol.ReadMapEnd(); end; function TProtocolDecorator.ReadListBegin: TThriftList; begin result := FWrappedProtocol.ReadListBegin; end; procedure TProtocolDecorator.ReadListEnd(); begin FWrappedProtocol.ReadListEnd(); end; function TProtocolDecorator.ReadSetBegin: TThriftSet; begin result := FWrappedProtocol.ReadSetBegin; end; procedure TProtocolDecorator.ReadSetEnd(); begin FWrappedProtocol.ReadSetEnd(); end; function TProtocolDecorator.ReadBool: Boolean; begin result := FWrappedProtocol.ReadBool; end; function TProtocolDecorator.ReadByte: ShortInt; begin result := FWrappedProtocol.ReadByte; end; function TProtocolDecorator.ReadI16: SmallInt; begin result := FWrappedProtocol.ReadI16; end; function TProtocolDecorator.ReadI32: Integer; begin result := FWrappedProtocol.ReadI32; end; function TProtocolDecorator.ReadI64: Int64; begin result := FWrappedProtocol.ReadI64; end; function TProtocolDecorator.ReadDouble:Double; begin result := FWrappedProtocol.ReadDouble; end; function TProtocolDecorator.ReadBinary: TBytes; begin result := FWrappedProtocol.ReadBinary; end; function TProtocolDecorator.ReadString: string; begin result := FWrappedProtocol.ReadString; end; function TProtocolDecorator.ReadAnsiString: AnsiString; begin result := FWrappedProtocol.ReadAnsiString; end; function TProtocolDecorator.GetMinSerializedSize( const aType : TType) : Integer; begin result := FWrappedProtocol.GetMinSerializedSize(aType); end; { Init helper functions } procedure Init( var rec : TThriftMessage; const AName: string; const AMessageType: TMessageType; const ASeqID: Integer); begin rec.Name := AName; rec.Type_ := AMessageType; rec.SeqID := ASeqID; end; procedure Init( var rec : TThriftStruct; const AName: string = ''); begin rec.Name := AName; end; procedure Init( var rec : TThriftField; const AName: string; const AType: TType; const AID: SmallInt); begin rec.Name := AName; rec.Type_ := AType; rec.Id := AId; end; procedure Init( var rec : TThriftMap; const AKeyType, AValueType: TType; const ACount: Integer); begin rec.ValueType := AValueType; rec.KeyType := AKeyType; rec.Count := ACount; end; procedure Init( var rec : TThriftSet; const AElementType: TType; const ACount: Integer); begin rec.Count := ACount; rec.ElementType := AElementType; end; procedure Init( var rec : TThriftList; const AElementType: TType; const ACount: Integer); begin rec.Count := ACount; rec.ElementType := AElementType; end; end.
Pascal
4
Jimexist/thrift
lib/delphi/src/Thrift.Protocol.pas
[ "Apache-2.0" ]
keytest.elf: file format elf32-littlenios2 keytest.elf architecture: nios2, flags 0x00000112: EXEC_P, HAS_SYMS, D_PAGED start address 0x00120198 Program Header: LOAD off 0x00001020 vaddr 0x00148020 paddr 0x00120000 align 2**12 filesz 0x00000198 memsz 0x00000198 flags r-x LOAD off 0x00002198 vaddr 0x00120198 paddr 0x00120198 align 2**12 filesz 0x00000e28 memsz 0x00000e28 flags r-x LOAD off 0x00002fc0 vaddr 0x00120fc0 paddr 0x00121598 align 2**12 filesz 0x000005d8 memsz 0x000005d8 flags rw- LOAD off 0x00003b70 vaddr 0x00121b70 paddr 0x00121b70 align 2**12 filesz 0x00000000 memsz 0x000003a4 flags rw- LOAD off 0x00004000 vaddr 0x00148000 paddr 0x00148000 align 2**12 filesz 0x00000020 memsz 0x00000020 flags r-x Sections: Idx Name Size VMA LMA File off Algn 0 .entry 00000020 00148000 00148000 00004000 2**5 CONTENTS, ALLOC, LOAD, READONLY, CODE 1 .exceptions 00000198 00148020 00120000 00001020 2**2 CONTENTS, ALLOC, LOAD, READONLY, CODE 2 .text 00000e04 00120198 00120198 00002198 2**2 CONTENTS, ALLOC, LOAD, READONLY, CODE 3 .rodata 00000024 00120f9c 00120f9c 00002f9c 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA 4 .rwdata 000005d8 00120fc0 00121598 00002fc0 2**2 CONTENTS, ALLOC, LOAD, DATA, SMALL_DATA 5 .bss 000003a4 00121b70 00121b70 00003b70 2**2 ALLOC, SMALL_DATA 6 .comment 00000023 00000000 00000000 00004020 2**0 CONTENTS, READONLY 7 .debug_aranges 000003b0 00000000 00000000 00004048 2**3 CONTENTS, READONLY, DEBUGGING 8 .debug_info 0000476c 00000000 00000000 000043f8 2**0 CONTENTS, READONLY, DEBUGGING 9 .debug_abbrev 0000157c 00000000 00000000 00008b64 2**0 CONTENTS, READONLY, DEBUGGING 10 .debug_line 0000172a 00000000 00000000 0000a0e0 2**0 CONTENTS, READONLY, DEBUGGING 11 .debug_frame 00000454 00000000 00000000 0000b80c 2**2 CONTENTS, READONLY, DEBUGGING 12 .debug_str 00000f5e 00000000 00000000 0000bc60 2**0 CONTENTS, READONLY, DEBUGGING 13 .debug_loc 00000866 00000000 00000000 0000cbbe 2**0 CONTENTS, READONLY, DEBUGGING 14 .debug_alt_sim_info 00000010 00000000 00000000 0000d424 2**2 CONTENTS, READONLY, DEBUGGING 15 .debug_ranges 000000d0 00000000 00000000 0000d438 2**3 CONTENTS, READONLY, DEBUGGING 16 .thread_model 00000003 00000000 00000000 0000eb9a 2**0 CONTENTS, READONLY 17 .cpu 00000004 00000000 00000000 0000eb9d 2**0 CONTENTS, READONLY 18 .qsys 00000001 00000000 00000000 0000eba1 2**0 CONTENTS, READONLY 19 .simulation_enabled 00000001 00000000 00000000 0000eba2 2**0 CONTENTS, READONLY 20 .sysid_hash 00000004 00000000 00000000 0000eba3 2**0 CONTENTS, READONLY 21 .sysid_base 00000004 00000000 00000000 0000eba7 2**0 CONTENTS, READONLY 22 .sysid_time 00000004 00000000 00000000 0000ebab 2**0 CONTENTS, READONLY 23 .stderr_dev 00000004 00000000 00000000 0000ebaf 2**0 CONTENTS, READONLY 24 .stdin_dev 00000004 00000000 00000000 0000ebb3 2**0 CONTENTS, READONLY 25 .stdout_dev 00000004 00000000 00000000 0000ebb7 2**0 CONTENTS, READONLY 26 .sopc_system_name 00000004 00000000 00000000 0000ebbb 2**0 CONTENTS, READONLY 27 .quartus_project_dir 00000042 00000000 00000000 0000ebbf 2**0 CONTENTS, READONLY 28 .sopcinfo 000539e8 00000000 00000000 0000ec01 2**0 CONTENTS, READONLY SYMBOL TABLE: 00148000 l d .entry 00000000 .entry 00148020 l d .exceptions 00000000 .exceptions 00120198 l d .text 00000000 .text 00120f9c l d .rodata 00000000 .rodata 00120fc0 l d .rwdata 00000000 .rwdata 00121b70 l d .bss 00000000 .bss 00000000 l d .comment 00000000 .comment 00000000 l d .debug_aranges 00000000 .debug_aranges 00000000 l d .debug_info 00000000 .debug_info 00000000 l d .debug_abbrev 00000000 .debug_abbrev 00000000 l d .debug_line 00000000 .debug_line 00000000 l d .debug_frame 00000000 .debug_frame 00000000 l d .debug_str 00000000 .debug_str 00000000 l d .debug_loc 00000000 .debug_loc 00000000 l d .debug_alt_sim_info 00000000 .debug_alt_sim_info 00000000 l d .debug_ranges 00000000 .debug_ranges 00000000 l df *ABS* 00000000 ../keytest_bsp//obj/HAL/src/crt0.o 001201d0 l .text 00000000 alt_after_alt_main 00000000 l df *ABS* 00000000 alt_exception_entry.o 00148094 l .exceptions 00000000 alt_exception_unknown 00000000 l df *ABS* 00000000 alt_irq_handler.c 00000000 l df *ABS* 00000000 mainloop.c 00121b84 l O .bss 00000100 key_buffer 00120f9c l O .rodata 00000014 keys.1481 0012156c l O .rwdata 00000006 keycodes.1480 00000000 l df *ABS* 00000000 obj/default/keyint.o 000fffff l *ABS* 00000000 SWITCH_ALL 00000008 l *ABS* 00000000 PIO_IRQ_MASK 0000000c l *ABS* 00000000 PIO_EDGE_CAP 0012037c l F .text 00000000 key_handler 00120364 l .text 00000000 key_int_installer_done 00120fc0 l .rwdata 00000000 key_press 001203c0 l .text 00000000 loop_keys 001203d4 l .text 00000000 key_lookup 001204cc l .text 00000000 key_map 00120fc1 l .rwdata 00000000 key_value 00120418 l .text 00000000 key_hndler_done 00120450 l .text 00000000 key_available_done 001204b4 l .text 00000000 getkey_done 00000000 l df *ABS* 00000000 alt_iic.c 00000000 l df *ABS* 00000000 alt_iic_isr_register.c 00000000 l df *ABS* 00000000 alt_irq_vars.c 00000000 l df *ABS* 00000000 alt_load.c 001207a8 l F .text 0000006c alt_load_section 00000000 l df *ABS* 00000000 alt_main.c 00000000 l df *ABS* 00000000 alt_sys_init.c 00000000 l df *ABS* 00000000 alt_close.c 00120944 l F .text 00000050 alt_get_errno 00000000 l df *ABS* 00000000 alt_dcache_flush_all.c 00000000 l df *ABS* 00000000 alt_dev.c 00120a7c l F .text 0000002c alt_dev_null_write 00000000 l df *ABS* 00000000 alt_do_ctors.c 00000000 l df *ABS* 00000000 alt_do_dtors.c 00000000 l df *ABS* 00000000 alt_errno.c 00000000 l df *ABS* 00000000 alt_icache_flush_all.c 00000000 l df *ABS* 00000000 alt_release_fd.c 00000000 l df *ABS* 00000000 altera_nios2_qsys_irq.c 00000000 l df *ABS* 00000000 atexit.c 00000000 l df *ABS* 00000000 exit.c 00000000 l df *ABS* 00000000 impure.c 0012116c l O .rwdata 00000400 impure_data 00000000 l df *ABS* 00000000 int_errno.c 00000000 l df *ABS* 00000000 __atexit.c 00000000 l df *ABS* 00000000 __call_atexit.c 00000000 l df *ABS* 00000000 lib2-mul.c 00000000 l df *ABS* 00000000 alt_exit.c 00000000 l df *ABS* 00000000 00120894 g F .text 0000005c alt_main 00121c84 g O .bss 00000100 alt_irq 00121598 g *ABS* 00000000 __flash_rwdata_start 00000000 w *UND* 00000000 __errno 00148000 g F .entry 0000000c __reset 00120000 g *ABS* 00000000 __flash_exceptions_start 00121b80 g O .bss 00000004 errno 00121b78 g O .bss 00000004 alt_argv 0012956c g *ABS* 00000000 _gp 00120000 g *ABS* 00000000 __alt_mem_RAM_ctrl 00120fec g O .rwdata 00000180 alt_fd_list 00120f9c g *ABS* 00000000 __DTOR_END__ 00000000 w *UND* 00000000 malloc 00121588 g O .rwdata 00000004 alt_max_fd 00120430 g F .text 00000000 key_available 00130000 g *ABS* 00000000 __alt_mem_ROM_ctrl 00121590 g O .rwdata 00000004 _global_impure_ptr 00121f14 g *ABS* 00000000 __bss_end 001206b8 g F .text 000000f0 alt_iic_isr_register 0012066c g F .text 0000004c alt_ic_irq_enabled 00121b70 g O .bss 00000004 alt_irq_active 001480ec g F .exceptions 000000cc alt_irq_handler 00120fc4 g O .rwdata 00000028 alt_dev_null 00120a60 g F .text 0000001c alt_dcache_flush_all 00121598 g *ABS* 00000000 __ram_rwdata_end 00121580 g O .rwdata 00000008 alt_dev_list 00120fc0 g *ABS* 00000000 __ram_rodata_end 00121f14 g *ABS* 00000000 end 00120f9c g *ABS* 00000000 __CTOR_LIST__ 00130000 g *ABS* 00000000 __alt_stack_pointer 00120314 g F .text 00000000 key_int_installer 00120d98 g F .text 000001a0 __call_exitprocs 00120198 g F .text 0000003c _start 00120924 g F .text 00000020 alt_sys_init 00120c68 g F .text 00000130 __register_exitproc 00120f38 g F .text 00000028 __mulsi3 00120fc0 g *ABS* 00000000 __ram_rwdata_start 00120f9c g *ABS* 00000000 __ram_rodata_start 00121f14 g *ABS* 00000000 __alt_stack_base 00121b70 g *ABS* 00000000 __bss_start 001201d4 g F .text 000000c0 main 00121b7c g O .bss 00000004 alt_envp 00121d84 g O .bss 00000190 _atexit0 0012158c g O .rwdata 00000004 alt_errno 00120f9c g *ABS* 00000000 __CTOR_END__ 00148000 g *ABS* 00000000 __alt_mem_ONCHIP_mem 00120f9c g *ABS* 00000000 __flash_rodata_start 00120f9c g *ABS* 00000000 __DTOR_LIST__ 001208f0 g F .text 00000034 alt_irq_init 00120b7c g F .text 00000080 alt_release_fd 00120c1c g F .text 00000014 atexit 00121594 g O .rwdata 00000004 _impure_ptr 00121b74 g O .bss 00000004 alt_argc 00120b04 g F .text 0000005c _do_dtors 00120468 g F .text 00000000 getkey 00148020 g .exceptions 00000000 alt_irq_entry 00121578 g O .rwdata 00000008 alt_fs_list 00148020 g *ABS* 00000000 __ram_exceptions_start 001204e0 g F .text 00000050 alt_ic_isr_register 00121598 g *ABS* 00000000 _edata 00121f14 g *ABS* 00000000 _end 001481b8 g *ABS* 00000000 __ram_exceptions_end 001205cc g F .text 000000a0 alt_ic_irq_disable 00120bfc g F .text 00000020 altera_nios2_qsys_irq_init 00120c30 g F .text 00000038 exit 00130000 g *ABS* 00000000 __alt_data_end 00148020 g F .exceptions 00000000 alt_exception 00120f60 g F .text 0000003c _exit 00080000 g *ABS* 00000000 __alt_mem_VRAM_ctrl 00120294 g F .text 00000080 key_lookup 00120b60 g F .text 0000001c alt_icache_flush_all 00121574 g O .rwdata 00000004 alt_priority_mask 00120530 g F .text 0000009c alt_ic_irq_enable 00120aa8 g F .text 0000005c _do_ctors 00120994 g F .text 000000cc close 00120814 g F .text 00000080 alt_load 00000000 w *UND* 00000000 free Disassembly of section .entry: 00148000 <__reset>: * Jump to the _start entry point in the .text section if reset code * is allowed or if optimizing for RTL simulation. */ #if defined(ALT_ALLOW_CODE_AT_RESET) || defined(ALT_SIM_OPTIMIZE) /* Jump to the _start entry point in the .text section. */ movhi r1, %hi(_start) 148000: 004004b4 movhi at,18 ori r1, r1, %lo(_start) 148004: 08406614 ori at,at,408 jmp r1 148008: 0800683a jmp at ... Disassembly of section .exceptions: 00148020 <alt_exception>: #else /* ALT_EXCEPTION_STACK disabled */ /* * Reserve space on normal stack for registers about to be pushed. */ addi sp, sp, -76 148020: deffed04 addi sp,sp,-76 * documentation for details). * * Leave a gap in the stack frame at 4(sp) for the muldiv handler to * store zero into. */ stw ra, 0(sp) 148024: dfc00015 stw ra,0(sp) stw r1, 8(sp) 148028: d8400215 stw at,8(sp) stw r2, 12(sp) 14802c: d8800315 stw r2,12(sp) stw r3, 16(sp) 148030: d8c00415 stw r3,16(sp) stw r4, 20(sp) 148034: d9000515 stw r4,20(sp) stw r5, 24(sp) 148038: d9400615 stw r5,24(sp) stw r6, 28(sp) 14803c: d9800715 stw r6,28(sp) stw r7, 32(sp) 148040: d9c00815 stw r7,32(sp) rdctl r5, estatus /* Read early to avoid usage stall */ 148044: 000b307a rdctl r5,estatus stw r8, 36(sp) 148048: da000915 stw r8,36(sp) stw r9, 40(sp) 14804c: da400a15 stw r9,40(sp) stw r10, 44(sp) 148050: da800b15 stw r10,44(sp) stw r11, 48(sp) 148054: dac00c15 stw r11,48(sp) stw r12, 52(sp) 148058: db000d15 stw r12,52(sp) stw r13, 56(sp) 14805c: db400e15 stw r13,56(sp) stw r14, 60(sp) 148060: db800f15 stw r14,60(sp) stw r15, 64(sp) 148064: dbc01015 stw r15,64(sp) /* * ea-4 contains the address of the instruction being executed * when the exception occured. For interrupt exceptions, we will * will be re-issue the isntruction. Store it in 72(sp) */ stw r5, 68(sp) /* estatus */ 148068: d9401115 stw r5,68(sp) addi r15, ea, -4 /* instruction that caused exception */ 14806c: ebffff04 addi r15,ea,-4 stw r15, 72(sp) 148070: dbc01215 stw r15,72(sp) #else /* * Test to see if the exception was a software exception or caused * by an external interrupt, and vector accordingly. */ rdctl r4, ipending 148074: 0009313a rdctl r4,ipending andi r2, r5, 1 148078: 2880004c andi r2,r5,1 beq r2, zero, .Lnot_irq 14807c: 10000326 beq r2,zero,14808c <alt_exception+0x6c> beq r4, zero, .Lnot_irq 148080: 20000226 beq r4,zero,14808c <alt_exception+0x6c> /* * Now that all necessary registers have been preserved, call * alt_irq_handler() to process the interrupts. */ call alt_irq_handler 148084: 01480ec0 call 1480ec <alt_irq_handler> .section .exceptions.irqreturn, "xa" br .Lexception_exit 148088: 00000306 br 148098 <alt_exception_unknown+0x4> * upon completion, so we write ea (address of instruction *after* * the one where the exception occured) into 72(sp). The actual * instruction that caused the exception is written in r2, which these * handlers will utilize. */ stw ea, 72(sp) /* Don't re-issue */ 14808c: df401215 stw ea,72(sp) ldw r2, -4(ea) /* Instruction that caused exception */ 148090: e8bfff17 ldw r2,-4(ea) 00148094 <alt_exception_unknown>: #ifdef NIOS2_HAS_DEBUG_STUB /* * Either tell the user now (if there is a debugger attached) or go into * the debug monitor which will loop until a debugger is attached. */ break 148094: 003da03a break 0 /* * Restore the saved registers, so that all general purpose registers * have been restored to their state at the time the interrupt occured. */ ldw r5, 68(sp) 148098: d9401117 ldw r5,68(sp) ldw ea, 72(sp) /* This becomes the PC once eret is executed */ 14809c: df401217 ldw ea,72(sp) ldw ra, 0(sp) 1480a0: dfc00017 ldw ra,0(sp) wrctl estatus, r5 1480a4: 2801707a wrctl estatus,r5 ldw r1, 8(sp) 1480a8: d8400217 ldw at,8(sp) ldw r2, 12(sp) 1480ac: d8800317 ldw r2,12(sp) ldw r3, 16(sp) 1480b0: d8c00417 ldw r3,16(sp) ldw r4, 20(sp) 1480b4: d9000517 ldw r4,20(sp) ldw r5, 24(sp) 1480b8: d9400617 ldw r5,24(sp) ldw r6, 28(sp) 1480bc: d9800717 ldw r6,28(sp) ldw r7, 32(sp) 1480c0: d9c00817 ldw r7,32(sp) #if defined(ALT_EXCEPTION_STACK) && defined(ALT_STACK_CHECK) ldw et, %gprel(alt_exception_old_stack_limit)(gp) #endif ldw r8, 36(sp) 1480c4: da000917 ldw r8,36(sp) ldw r9, 40(sp) 1480c8: da400a17 ldw r9,40(sp) ldw r10, 44(sp) 1480cc: da800b17 ldw r10,44(sp) ldw r11, 48(sp) 1480d0: dac00c17 ldw r11,48(sp) ldw r12, 52(sp) 1480d4: db000d17 ldw r12,52(sp) ldw r13, 56(sp) 1480d8: db400e17 ldw r13,56(sp) ldw r14, 60(sp) 1480dc: db800f17 ldw r14,60(sp) ldw r15, 64(sp) 1480e0: dbc01017 ldw r15,64(sp) stw et, %gprel(alt_stack_limit_value)(gp) stw zero, %gprel(alt_exception_old_stack_limit)(gp) #endif /* ALT_STACK_CHECK */ ldw sp, 76(sp) #else /* ALT_EXCEPTION_STACK disabled */ addi sp, sp, 76 1480e4: dec01304 addi sp,sp,76 /* * Return to the interrupted instruction. */ eret 1480e8: ef80083a eret 001480ec <alt_irq_handler>: * instruction is present if the macro ALT_CI_INTERRUPT_VECTOR defined. */ void alt_irq_handler (void) __attribute__ ((section (".exceptions"))); void alt_irq_handler (void) { 1480ec: defff904 addi sp,sp,-28 1480f0: dfc00615 stw ra,24(sp) 1480f4: df000515 stw fp,20(sp) 1480f8: df000504 addi fp,sp,20 /* * Notify the operating system that we are at interrupt level. */ ALT_OS_INT_ENTER(); 1480fc: 0001883a nop #ifndef NIOS2_EIC_PRESENT static ALT_INLINE alt_u32 ALT_ALWAYS_INLINE alt_irq_pending (void) { alt_u32 active; NIOS2_READ_IPENDING (active); 148100: 0005313a rdctl r2,ipending 148104: e0bffe15 stw r2,-8(fp) return active; 148108: e0bffe17 ldw r2,-8(fp) * Consider the case where the high priority interupt is asserted during * the interrupt entry sequence for a lower priority interrupt to see why * this is the case. */ active = alt_irq_pending (); 14810c: e0bffb15 stw r2,-20(fp) do { i = 0; 148110: e03ffd15 stw zero,-12(fp) mask = 1; 148114: 00800044 movi r2,1 148118: e0bffc15 stw r2,-16(fp) * called to clear the interrupt condition. */ do { if (active & mask) 14811c: e0fffb17 ldw r3,-20(fp) 148120: e0bffc17 ldw r2,-16(fp) 148124: 1884703a and r2,r3,r2 148128: 10001726 beq r2,zero,148188 <alt_irq_handler+0x9c> { #ifdef ALT_ENHANCED_INTERRUPT_API_PRESENT alt_irq[i].handler(alt_irq[i].context); 14812c: 00c004b4 movhi r3,18 148130: 18c72104 addi r3,r3,7300 148134: e0bffd17 ldw r2,-12(fp) 148138: 100490fa slli r2,r2,3 14813c: 1885883a add r2,r3,r2 148140: 10c00017 ldw r3,0(r2) 148144: 010004b4 movhi r4,18 148148: 21072104 addi r4,r4,7300 14814c: e0bffd17 ldw r2,-12(fp) 148150: 100490fa slli r2,r2,3 148154: 2085883a add r2,r4,r2 148158: 10800104 addi r2,r2,4 14815c: 10800017 ldw r2,0(r2) 148160: 1009883a mov r4,r2 148164: 183ee83a callr r3 #else alt_irq[i].handler(alt_irq[i].context, i); #endif break; 148168: 0001883a nop #ifndef NIOS2_EIC_PRESENT static ALT_INLINE alt_u32 ALT_ALWAYS_INLINE alt_irq_pending (void) { alt_u32 active; NIOS2_READ_IPENDING (active); 14816c: 0005313a rdctl r2,ipending 148170: e0bfff15 stw r2,-4(fp) return active; 148174: e0bfff17 ldw r2,-4(fp) mask <<= 1; i++; } while (1); active = alt_irq_pending (); 148178: e0bffb15 stw r2,-20(fp) } while (active); 14817c: e0bffb17 ldw r2,-20(fp) 148180: 103fe31e bne r2,zero,148110 <alt_irq_handler+0x24> /* * Notify the operating system that interrupt processing is complete. */ ALT_OS_INT_EXIT(); 148184: 00000706 br 1481a4 <alt_irq_handler+0xb8> #else alt_irq[i].handler(alt_irq[i].context, i); #endif break; } mask <<= 1; 148188: e0bffc17 ldw r2,-16(fp) 14818c: 1085883a add r2,r2,r2 148190: e0bffc15 stw r2,-16(fp) i++; 148194: e0bffd17 ldw r2,-12(fp) 148198: 10800044 addi r2,r2,1 14819c: e0bffd15 stw r2,-12(fp) } while (1); 1481a0: 003fde06 br 14811c <alt_irq_handler+0x30> /* * Notify the operating system that interrupt processing is complete. */ ALT_OS_INT_EXIT(); } 1481a4: e037883a mov sp,fp 1481a8: dfc00117 ldw ra,4(sp) 1481ac: df000017 ldw fp,0(sp) 1481b0: dec00204 addi sp,sp,8 1481b4: f800283a ret Disassembly of section .text: 00120198 <_start>: /* * Now that the caches are initialized, set up the stack pointer and global pointer. * The values provided by the linker are assumed to be correctly aligned. */ movhi sp, %hi(__alt_stack_pointer) 120198: 06c004f4 movhi sp,19 ori sp, sp, %lo(__alt_stack_pointer) 12019c: dec00014 ori sp,sp,0 movhi gp, %hi(_gp) 1201a0: 068004b4 movhi gp,18 ori gp, gp, %lo(_gp) 1201a4: d6a55b14 ori gp,gp,38252 */ #ifndef ALT_SIM_OPTIMIZE /* Log that the BSS is about to be cleared. */ ALT_LOG_PUTS(alt_log_msg_bss) movhi r2, %hi(__bss_start) 1201a8: 008004b4 movhi r2,18 ori r2, r2, %lo(__bss_start) 1201ac: 1086dc14 ori r2,r2,7024 movhi r3, %hi(__bss_end) 1201b0: 00c004b4 movhi r3,18 ori r3, r3, %lo(__bss_end) 1201b4: 18c7c514 ori r3,r3,7956 beq r2, r3, 1f 1201b8: 10c00326 beq r2,r3,1201c8 <_start+0x30> 0: stw zero, (r2) 1201bc: 10000015 stw zero,0(r2) addi r2, r2, 4 1201c0: 10800104 addi r2,r2,4 bltu r2, r3, 0b 1201c4: 10fffd36 bltu r2,r3,1201bc <_start+0x24> * section aren't defined until alt_load() has been called). */ mov et, zero #endif call alt_load 1201c8: 01208140 call 120814 <alt_load> /* Log that alt_main is about to be called. */ ALT_LOG_PUTS(alt_log_msg_alt_main) /* Call the C entry point. It should never return. */ call alt_main 1201cc: 01208940 call 120894 <alt_main> 001201d0 <alt_after_alt_main>: /* Wait in infinite loop in case alt_main does return. */ alt_after_alt_main: br alt_after_alt_main 1201d0: 003fff06 br 1201d0 <alt_after_alt_main> 001201d4 <main>: Last Modified: May 3, 2006 */ int main() { 1201d4: defffc04 addi sp,sp,-16 1201d8: dfc00315 stw ra,12(sp) 1201dc: df000215 stw fp,8(sp) 1201e0: df000204 addi fp,sp,8 key_int_installer(); 1201e4: 01203140 call 120314 <key_int_installer> /* variables */ char key; /* an input key */ int buffer_ptr = 0; /* the buffer pointer */ 1201e8: e03ffe15 stw zero,-8(fp) /* infinite loop processing input */ while(TRUE) { /* wait for a key to be ready */ while (!key_available()); 1201ec: 00000106 br 1201f4 <main+0x20> key_buffer[buffer_ptr++] = '?'; /* make sure pointer stays in range */ if (buffer_ptr >= BUFFER_SIZE) buffer_ptr -= BUFFER_SIZE; } } 1201f0: 0001883a nop /* infinite loop processing input */ while(TRUE) { /* wait for a key to be ready */ while (!key_available()); 1201f4: 0001883a nop 1201f8: 01204300 call 120430 <key_available> 1201fc: 10803fcc andi r2,r2,255 120200: 103ffd26 beq r2,zero,1201f8 <main+0x24> /* have keypad input - get the key */ key = key_lookup(); 120204: 01202940 call 120294 <key_lookup> 120208: e0bfff05 stb r2,-4(fp) /* and store the key */ key_buffer[buffer_ptr++] = key; 12020c: 00c004b4 movhi r3,18 120210: 18c6e104 addi r3,r3,7044 120214: e0bffe17 ldw r2,-8(fp) 120218: 1885883a add r2,r3,r2 12021c: e0ffff03 ldbu r3,-4(fp) 120220: 10c00005 stb r3,0(r2) 120224: e0bffe17 ldw r2,-8(fp) 120228: 10800044 addi r2,r2,1 12022c: e0bffe15 stw r2,-8(fp) /* make sure buffer pointer stays in range */ if (buffer_ptr >= BUFFER_SIZE) 120230: e0bffe17 ldw r2,-8(fp) 120234: 10804010 cmplti r2,r2,256 120238: 1000031e bne r2,zero,120248 <main+0x74> buffer_ptr -= BUFFER_SIZE; 12023c: e0bffe17 ldw r2,-8(fp) 120240: 10bfc004 addi r2,r2,-256 120244: e0bffe15 stw r2,-8(fp) /* check if there is still a key available (shouldn't be) */ if (key_available()) { 120248: 01204300 call 120430 <key_available> 12024c: 10803fcc andi r2,r2,255 120250: 103fe726 beq r2,zero,1201f0 <main+0x1c> /* if there is a key available now, it's an error */ /* put ? in the buffer and update the buffer pointer */ key_buffer[buffer_ptr++] = '?'; 120254: 00c004b4 movhi r3,18 120258: 18c6e104 addi r3,r3,7044 12025c: e0bffe17 ldw r2,-8(fp) 120260: 1885883a add r2,r3,r2 120264: 00c00fc4 movi r3,63 120268: 10c00005 stb r3,0(r2) 12026c: e0bffe17 ldw r2,-8(fp) 120270: 10800044 addi r2,r2,1 120274: e0bffe15 stw r2,-8(fp) /* make sure pointer stays in range */ if (buffer_ptr >= BUFFER_SIZE) 120278: e0bffe17 ldw r2,-8(fp) 12027c: 10804010 cmplti r2,r2,256 120280: 103fdb1e bne r2,zero,1201f0 <main+0x1c> buffer_ptr -= BUFFER_SIZE; 120284: e0bffe17 ldw r2,-8(fp) 120288: 10bfc004 addi r2,r2,-256 12028c: e0bffe15 stw r2,-8(fp) } } 120290: 003fd706 br 1201f0 <main+0x1c> 00120294 <key_lookup>: Last Modified: May 3, 2006 */ char key_lookup() { 120294: defffc04 addi sp,sp,-16 120298: dfc00315 stw ra,12(sp) 12029c: df000215 stw fp,8(sp) 1202a0: df000204 addi fp,sp,8 int i; /* general loop index */ /* get a key */ key = getkey(); 1202a4: 01204680 call 120468 <getkey> 1202a8: e0bfff15 stw r2,-4(fp) /* lookup key in keys array */ for (i = 0; ((i < (sizeof(keys)/sizeof(int))) && (key != keys[i])); i++); 1202ac: e03ffe15 stw zero,-8(fp) 1202b0: 00000306 br 1202c0 <key_lookup+0x2c> 1202b4: e0bffe17 ldw r2,-8(fp) 1202b8: 10800044 addi r2,r2,1 1202bc: e0bffe15 stw r2,-8(fp) 1202c0: e0bffe17 ldw r2,-8(fp) 1202c4: 10800168 cmpgeui r2,r2,5 1202c8: 1000091e bne r2,zero,1202f0 <key_lookup+0x5c> 1202cc: 00c004b4 movhi r3,18 1202d0: 18c3e704 addi r3,r3,3996 1202d4: e0bffe17 ldw r2,-8(fp) 1202d8: 1085883a add r2,r2,r2 1202dc: 1085883a add r2,r2,r2 1202e0: 1885883a add r2,r3,r2 1202e4: 10c00017 ldw r3,0(r2) 1202e8: e0bfff17 ldw r2,-4(fp) 1202ec: 18bff11e bne r3,r2,1202b4 <key_lookup+0x20> /* return the appropriate key type */ return keycodes[i]; 1202f0: e0fffe17 ldw r3,-8(fp) 1202f4: d0a00004 addi r2,gp,-32768 1202f8: 1885883a add r2,r3,r2 1202fc: 10800003 ldbu r2,0(r2) } 120300: e037883a mov sp,fp 120304: dfc00117 ldw ra,4(sp) 120308: df000017 ldw fp,0(sp) 12030c: dec00204 addi sp,sp,8 120310: f800283a ret 00120314 <key_int_installer>: .global key_int_installer .type key_int_installer, @function key_int_installer: SAVE 120314: deffff04 addi sp,sp,-4 120318: dfc00015 stw ra,0(sp) 12031c: deffff04 addi sp,sp,-4 120320: df000015 stw fp,0(sp) 120324: d839883a mov fp,sp # Enable all switch interrupts. movhi r8, %hi(KEY_INPUT_BASE) 120328: 02000574 movhi r8,21 ori r8, r8, %lo(KEY_INPUT_BASE) 12032c: 42040414 ori r8,r8,4112 movhi r9, %hi(SWITCH_ALL) 120330: 024003f4 movhi r9,15 ori r9, r9, %lo(SWITCH_ALL) 120334: 4a7fffd4 ori r9,r9,65535 stw r9, PIO_IRQ_MASK(r8) 120338: 42400215 stw r9,8(r8) # Install the interrupt handler mov r4, r0 12033c: 0009883a mov r4,zero movi r5, KEY_INPUT_IRQ 120340: 01400144 movi r5,5 movhi r6, %hi(key_handler) 120344: 018004b4 movhi r6,18 ori r6, r6, %lo(key_handler) 120348: 3180df14 ori r6,r6,892 mov r7, r0 12034c: 000f883a mov r7,zero PUSH r0 120350: deffff04 addi sp,sp,-4 120354: d8000015 stw zero,0(sp) call alt_ic_isr_register 120358: 01204e00 call 1204e0 <alt_ic_isr_register> POP r0 12035c: d8000017 ldw zero,0(sp) 120360: dec00104 addi sp,sp,4 00120364 <key_int_installer_done>: key_int_installer_done: RESTORE 120364: e037883a mov sp,fp 120368: df000017 ldw fp,0(sp) 12036c: dec00104 addi sp,sp,4 120370: dfc00017 ldw ra,0(sp) 120374: dec00104 addi sp,sp,4 ret 120378: f800283a ret 0012037c <key_handler>: .type key_handler,@function key_handler: SAVE 12037c: deffff04 addi sp,sp,-4 120380: dfc00015 stw ra,0(sp) 120384: deffff04 addi sp,sp,-4 120388: df000015 stw fp,0(sp) 12038c: d839883a mov fp,sp # Key should now be available. Update key_press. movi r8, 1 120390: 02000044 movi r8,1 120394: 024004b4 movhi r9,18 movia r9, key_press 120398: 4a43f004 addi r9,r9,4032 stb r8, (r9) 12039c: 4a000005 stb r8,0(r9) # Clear interrupts. movhi r8, %hi(KEY_INPUT_BASE) 1203a0: 02000574 movhi r8,21 ori r8, r8, %lo(KEY_INPUT_BASE) 1203a4: 42040414 ori r8,r8,4112 stw r0, PIO_IRQ_MASK(r8) 1203a8: 40000215 stw zero,8(r8) # Get the edge capture register. movhi r8, %hi(KEY_INPUT_BASE) 1203ac: 02000574 movhi r8,21 ori r8, r8, %lo(KEY_INPUT_BASE) 1203b0: 42040414 ori r8,r8,4112 ldw r8, PIO_EDGE_CAP(r8) 1203b4: 42000317 ldw r8,12(r8) # Check each bit (starting at 0) and see if set. movi r9, 1 1203b8: 02400044 movi r9,1 movi r11, 0 1203bc: 02c00004 movi r11,0 001203c0 <loop_keys>: loop_keys: and r10, r8, r9 1203c0: 4254703a and r10,r8,r9 bne r10, r0, key_lookup 1203c4: 5000031e bne r10,zero,1203d4 <key_lookup> slli r9, r9, 1 1203c8: 4812907a slli r9,r9,1 addi r11, r11, 1 1203cc: 5ac00044 addi r11,r11,1 br loop_keys 1203d0: 003ffb06 br 1203c0 <loop_keys> 001203d4 <key_lookup>: 1203d4: 020004b4 movhi r8,18 key_lookup: movia r8, key_map 1203d8: 42013304 addi r8,r8,1228 add r8, r8, r11 1203dc: 42d1883a add r8,r8,r11 ldb r8, (r8) 1203e0: 42000007 ldb r8,0(r8) 1203e4: 028004b4 movhi r10,18 movia r10, key_value 1203e8: 5283f044 addi r10,r10,4033 stb r8, (r10) 1203ec: 52000005 stb r8,0(r10) # Clear the edge capture register (write 1 to clear). movhi r8, %hi(KEY_INPUT_BASE) 1203f0: 02000574 movhi r8,21 ori r8, r8, %lo(KEY_INPUT_BASE) 1203f4: 42040414 ori r8,r8,4112 movhi r9, %hi(SWITCH_ALL) 1203f8: 024003f4 movhi r9,15 ori r9, r9, %lo(SWITCH_ALL) 1203fc: 4a7fffd4 ori r9,r9,65535 stw r9, PIO_EDGE_CAP(r8) 120400: 42400315 stw r9,12(r8) # Re-enable interrupts. movhi r8, %hi(KEY_INPUT_BASE) 120404: 02000574 movhi r8,21 ori r8, r8, %lo(KEY_INPUT_BASE) 120408: 42040414 ori r8,r8,4112 movhi r9, %hi(SWITCH_ALL) 12040c: 024003f4 movhi r9,15 ori r9, r9, %lo(SWITCH_ALL) 120410: 4a7fffd4 ori r9,r9,65535 stw r9, PIO_IRQ_MASK(r8) 120414: 42400215 stw r9,8(r8) 00120418 <key_hndler_done>: key_hndler_done: RESTORE 120418: e037883a mov sp,fp 12041c: df000017 ldw fp,0(sp) 120420: dec00104 addi sp,sp,4 120424: dfc00017 ldw ra,0(sp) 120428: dec00104 addi sp,sp,4 ret 12042c: f800283a ret 00120430 <key_available>: .global key_available .type key_available, @function key_available: SAVE 120430: deffff04 addi sp,sp,-4 120434: dfc00015 stw ra,0(sp) 120438: deffff04 addi sp,sp,-4 12043c: df000015 stw fp,0(sp) 120440: d839883a mov fp,sp 120444: 008004b4 movhi r2,18 movia r2, key_press 120448: 1083f004 addi r2,r2,4032 ldb r2, (r2) 12044c: 10800007 ldb r2,0(r2) 00120450 <key_available_done>: key_available_done: RESTORE 120450: e037883a mov sp,fp 120454: df000017 ldw fp,0(sp) 120458: dec00104 addi sp,sp,4 12045c: dfc00017 ldw ra,0(sp) 120460: dec00104 addi sp,sp,4 ret 120464: f800283a ret 00120468 <getkey>: .global getkey .type getkey, @function getkey: SAVE 120468: deffff04 addi sp,sp,-4 12046c: dfc00015 stw ra,0(sp) 120470: deffff04 addi sp,sp,-4 120474: df000015 stw fp,0(sp) 120478: d839883a mov fp,sp 12047c: 020004b4 movhi r8,18 # Block until legal key arrives (which is also when key_press = TRUE). movia r8, key_value 120480: 4203f044 addi r8,r8,4033 ldb r8, (r8) 120484: 42000007 ldb r8,0(r8) movi r9, KEY_ILLEGAL 120488: 02400184 movi r9,6 beq r8, r9, getkey 12048c: 427ff626 beq r8,r9,120468 <getkey> 120490: 008004b4 movhi r2,18 # Get return value. movia r2, key_value 120494: 1083f044 addi r2,r2,4033 ldb r2, (r2) 120498: 10800007 ldb r2,0(r2) 12049c: 028004b4 movhi r10,18 # Update key_value with KEY_ILLEGAL. movia r10, key_value 1204a0: 5283f044 addi r10,r10,4033 stb r9, (r10) 1204a4: 52400005 stb r9,0(r10) 1204a8: 028004b4 movhi r10,18 # Update key_press with FALSE. movia r10, key_press 1204ac: 5283f004 addi r10,r10,4032 stb r0, (r10) 1204b0: 50000005 stb zero,0(r10) 001204b4 <getkey_done>: getkey_done: RESTORE 1204b4: e037883a mov sp,fp 1204b8: df000017 ldw fp,0(sp) 1204bc: dec00104 addi sp,sp,4 1204c0: dfc00017 ldw ra,0(sp) 1204c4: dec00104 addi sp,sp,4 ret 1204c8: f800283a ret 001204cc <key_map>: 1204cc: 03020100 call 302010 <__ram_exceptions_end+0x1b9e58> 1204d0: 00000004 movi zero,0 ... 1204dc: 06000000 call 600000 <__ram_exceptions_end+0x4b7e48> 001204e0 <alt_ic_isr_register>: * @param irq IRQ number * @return 0 if successful, else error (-1) */ int alt_ic_isr_register(alt_u32 ic_id, alt_u32 irq, alt_isr_func isr, void *isr_context, void *flags) { 1204e0: defff904 addi sp,sp,-28 1204e4: dfc00615 stw ra,24(sp) 1204e8: df000515 stw fp,20(sp) 1204ec: df000504 addi fp,sp,20 1204f0: e13ffc15 stw r4,-16(fp) 1204f4: e17ffd15 stw r5,-12(fp) 1204f8: e1bffe15 stw r6,-8(fp) 1204fc: e1ffff15 stw r7,-4(fp) return alt_iic_isr_register(ic_id, irq, isr, isr_context, flags); 120500: e0800217 ldw r2,8(fp) 120504: d8800015 stw r2,0(sp) 120508: e13ffc17 ldw r4,-16(fp) 12050c: e17ffd17 ldw r5,-12(fp) 120510: e1bffe17 ldw r6,-8(fp) 120514: e1ffff17 ldw r7,-4(fp) 120518: 01206b80 call 1206b8 <alt_iic_isr_register> } 12051c: e037883a mov sp,fp 120520: dfc00117 ldw ra,4(sp) 120524: df000017 ldw fp,0(sp) 120528: dec00204 addi sp,sp,8 12052c: f800283a ret 00120530 <alt_ic_irq_enable>: * @param ic_id Ignored. * @param irq IRQ number * @return 0 if successful, else error (-1) */ int alt_ic_irq_enable (alt_u32 ic_id, alt_u32 irq) { 120530: defff904 addi sp,sp,-28 120534: df000615 stw fp,24(sp) 120538: df000604 addi fp,sp,24 12053c: e13ffe15 stw r4,-8(fp) 120540: e17fff15 stw r5,-4(fp) 120544: e0bfff17 ldw r2,-4(fp) 120548: e0bffa15 stw r2,-24(fp) static ALT_INLINE alt_irq_context ALT_ALWAYS_INLINE alt_irq_disable_all (void) { alt_irq_context context; NIOS2_READ_STATUS (context); 12054c: 0005303a rdctl r2,status 120550: e0bffb15 stw r2,-20(fp) NIOS2_WRITE_STATUS (context & ~NIOS2_STATUS_PIE_MSK); 120554: e0fffb17 ldw r3,-20(fp) 120558: 00bfff84 movi r2,-2 12055c: 1884703a and r2,r3,r2 120560: 1001703a wrctl status,r2 return context; 120564: e0bffb17 ldw r2,-20(fp) static ALT_INLINE int ALT_ALWAYS_INLINE alt_irq_enable (alt_u32 id) { alt_irq_context status; extern volatile alt_u32 alt_irq_active; status = alt_irq_disable_all (); 120568: e0bffc15 stw r2,-16(fp) alt_irq_active |= (1 << id); 12056c: e0bffa17 ldw r2,-24(fp) 120570: 00c00044 movi r3,1 120574: 1884983a sll r2,r3,r2 120578: 1007883a mov r3,r2 12057c: 008004b4 movhi r2,18 120580: 1086dc04 addi r2,r2,7024 120584: 10800017 ldw r2,0(r2) 120588: 1886b03a or r3,r3,r2 12058c: 008004b4 movhi r2,18 120590: 1086dc04 addi r2,r2,7024 120594: 10c00015 stw r3,0(r2) NIOS2_WRITE_IENABLE (alt_irq_active); 120598: 008004b4 movhi r2,18 12059c: 1086dc04 addi r2,r2,7024 1205a0: 10800017 ldw r2,0(r2) 1205a4: 100170fa wrctl ienable,r2 1205a8: e0bffc17 ldw r2,-16(fp) 1205ac: e0bffd15 stw r2,-12(fp) status &= ~NIOS2_STATUS_PIE_MSK; status |= (context & NIOS2_STATUS_PIE_MSK); NIOS2_WRITE_STATUS (status); #else NIOS2_WRITE_STATUS (context); 1205b0: e0bffd17 ldw r2,-12(fp) 1205b4: 1001703a wrctl status,r2 alt_irq_enable_all(status); return 0; 1205b8: 0005883a mov r2,zero return alt_irq_enable(irq); } 1205bc: e037883a mov sp,fp 1205c0: df000017 ldw fp,0(sp) 1205c4: dec00104 addi sp,sp,4 1205c8: f800283a ret 001205cc <alt_ic_irq_disable>: * @param ic_id Ignored. * @param irq IRQ number * @return 0 if successful, else error (-1) */ int alt_ic_irq_disable(alt_u32 ic_id, alt_u32 irq) { 1205cc: defff904 addi sp,sp,-28 1205d0: df000615 stw fp,24(sp) 1205d4: df000604 addi fp,sp,24 1205d8: e13ffe15 stw r4,-8(fp) 1205dc: e17fff15 stw r5,-4(fp) 1205e0: e0bfff17 ldw r2,-4(fp) 1205e4: e0bffa15 stw r2,-24(fp) static ALT_INLINE alt_irq_context ALT_ALWAYS_INLINE alt_irq_disable_all (void) { alt_irq_context context; NIOS2_READ_STATUS (context); 1205e8: 0005303a rdctl r2,status 1205ec: e0bffb15 stw r2,-20(fp) NIOS2_WRITE_STATUS (context & ~NIOS2_STATUS_PIE_MSK); 1205f0: e0fffb17 ldw r3,-20(fp) 1205f4: 00bfff84 movi r2,-2 1205f8: 1884703a and r2,r3,r2 1205fc: 1001703a wrctl status,r2 return context; 120600: e0bffb17 ldw r2,-20(fp) static ALT_INLINE int ALT_ALWAYS_INLINE alt_irq_disable (alt_u32 id) { alt_irq_context status; extern volatile alt_u32 alt_irq_active; status = alt_irq_disable_all (); 120604: e0bffc15 stw r2,-16(fp) alt_irq_active &= ~(1 << id); 120608: e0bffa17 ldw r2,-24(fp) 12060c: 00c00044 movi r3,1 120610: 1884983a sll r2,r3,r2 120614: 0084303a nor r2,zero,r2 120618: 1007883a mov r3,r2 12061c: 008004b4 movhi r2,18 120620: 1086dc04 addi r2,r2,7024 120624: 10800017 ldw r2,0(r2) 120628: 1886703a and r3,r3,r2 12062c: 008004b4 movhi r2,18 120630: 1086dc04 addi r2,r2,7024 120634: 10c00015 stw r3,0(r2) NIOS2_WRITE_IENABLE (alt_irq_active); 120638: 008004b4 movhi r2,18 12063c: 1086dc04 addi r2,r2,7024 120640: 10800017 ldw r2,0(r2) 120644: 100170fa wrctl ienable,r2 120648: e0bffc17 ldw r2,-16(fp) 12064c: e0bffd15 stw r2,-12(fp) status &= ~NIOS2_STATUS_PIE_MSK; status |= (context & NIOS2_STATUS_PIE_MSK); NIOS2_WRITE_STATUS (status); #else NIOS2_WRITE_STATUS (context); 120650: e0bffd17 ldw r2,-12(fp) 120654: 1001703a wrctl status,r2 alt_irq_enable_all(status); return 0; 120658: 0005883a mov r2,zero return alt_irq_disable(irq); } 12065c: e037883a mov sp,fp 120660: df000017 ldw fp,0(sp) 120664: dec00104 addi sp,sp,4 120668: f800283a ret 0012066c <alt_ic_irq_enabled>: * @param irq IRQ number * @return Zero if corresponding interrupt is disabled and * non-zero otherwise. */ alt_u32 alt_ic_irq_enabled(alt_u32 ic_id, alt_u32 irq) { 12066c: defffc04 addi sp,sp,-16 120670: df000315 stw fp,12(sp) 120674: df000304 addi fp,sp,12 120678: e13ffe15 stw r4,-8(fp) 12067c: e17fff15 stw r5,-4(fp) alt_u32 irq_enabled; NIOS2_READ_IENABLE(irq_enabled); 120680: 000530fa rdctl r2,ienable 120684: e0bffd15 stw r2,-12(fp) return (irq_enabled & (1 << irq)) ? 1: 0; 120688: e0bfff17 ldw r2,-4(fp) 12068c: 00c00044 movi r3,1 120690: 1884983a sll r2,r3,r2 120694: 1007883a mov r3,r2 120698: e0bffd17 ldw r2,-12(fp) 12069c: 1884703a and r2,r3,r2 1206a0: 1004c03a cmpne r2,r2,zero 1206a4: 10803fcc andi r2,r2,255 } 1206a8: e037883a mov sp,fp 1206ac: df000017 ldw fp,0(sp) 1206b0: dec00104 addi sp,sp,4 1206b4: f800283a ret 001206b8 <alt_iic_isr_register>: * @param flags * @return 0 if successful, else error (-1) */ int alt_iic_isr_register(alt_u32 ic_id, alt_u32 irq, alt_isr_func isr, void *isr_context, void *flags) { 1206b8: defff504 addi sp,sp,-44 1206bc: dfc00a15 stw ra,40(sp) 1206c0: df000915 stw fp,36(sp) 1206c4: df000904 addi fp,sp,36 1206c8: e13ffc15 stw r4,-16(fp) 1206cc: e17ffd15 stw r5,-12(fp) 1206d0: e1bffe15 stw r6,-8(fp) 1206d4: e1ffff15 stw r7,-4(fp) int rc = -EINVAL; 1206d8: 00bffa84 movi r2,-22 1206dc: e0bff715 stw r2,-36(fp) int id = irq; /* IRQ interpreted as the interrupt ID. */ 1206e0: e0bffd17 ldw r2,-12(fp) 1206e4: e0bff815 stw r2,-32(fp) alt_irq_context status; if (id < ALT_NIRQ) 1206e8: e0bff817 ldw r2,-32(fp) 1206ec: 10800808 cmpgei r2,r2,32 1206f0: 1000271e bne r2,zero,120790 <alt_iic_isr_register+0xd8> static ALT_INLINE alt_irq_context ALT_ALWAYS_INLINE alt_irq_disable_all (void) { alt_irq_context context; NIOS2_READ_STATUS (context); 1206f4: 0005303a rdctl r2,status 1206f8: e0bffa15 stw r2,-24(fp) NIOS2_WRITE_STATUS (context & ~NIOS2_STATUS_PIE_MSK); 1206fc: e0fffa17 ldw r3,-24(fp) 120700: 00bfff84 movi r2,-2 120704: 1884703a and r2,r3,r2 120708: 1001703a wrctl status,r2 return context; 12070c: e0bffa17 ldw r2,-24(fp) * interrupts are disabled while the handler tables are updated to ensure * that an interrupt doesn't occur while the tables are in an inconsistant * state. */ status = alt_irq_disable_all(); 120710: e0bff915 stw r2,-28(fp) alt_irq[id].handler = isr; 120714: 00c004b4 movhi r3,18 120718: 18c72104 addi r3,r3,7300 12071c: e0bff817 ldw r2,-32(fp) 120720: 100490fa slli r2,r2,3 120724: 1885883a add r2,r3,r2 120728: e0fffe17 ldw r3,-8(fp) 12072c: 10c00015 stw r3,0(r2) alt_irq[id].context = isr_context; 120730: 00c004b4 movhi r3,18 120734: 18c72104 addi r3,r3,7300 120738: e0bff817 ldw r2,-32(fp) 12073c: 100490fa slli r2,r2,3 120740: 1885883a add r2,r3,r2 120744: 10800104 addi r2,r2,4 120748: e0ffff17 ldw r3,-4(fp) 12074c: 10c00015 stw r3,0(r2) rc = (isr) ? alt_ic_irq_enable(ic_id, id) : alt_ic_irq_disable(ic_id, id); 120750: e0bffe17 ldw r2,-8(fp) 120754: 10000526 beq r2,zero,12076c <alt_iic_isr_register+0xb4> 120758: e0bff817 ldw r2,-32(fp) 12075c: e13ffc17 ldw r4,-16(fp) 120760: 100b883a mov r5,r2 120764: 01205300 call 120530 <alt_ic_irq_enable> 120768: 00000406 br 12077c <alt_iic_isr_register+0xc4> 12076c: e0bff817 ldw r2,-32(fp) 120770: e13ffc17 ldw r4,-16(fp) 120774: 100b883a mov r5,r2 120778: 01205cc0 call 1205cc <alt_ic_irq_disable> 12077c: e0bff715 stw r2,-36(fp) 120780: e0bff917 ldw r2,-28(fp) 120784: e0bffb15 stw r2,-20(fp) status &= ~NIOS2_STATUS_PIE_MSK; status |= (context & NIOS2_STATUS_PIE_MSK); NIOS2_WRITE_STATUS (status); #else NIOS2_WRITE_STATUS (context); 120788: e0bffb17 ldw r2,-20(fp) 12078c: 1001703a wrctl status,r2 alt_irq_enable_all(status); } return rc; 120790: e0bff717 ldw r2,-36(fp) } 120794: e037883a mov sp,fp 120798: dfc00117 ldw ra,4(sp) 12079c: df000017 ldw fp,0(sp) 1207a0: dec00204 addi sp,sp,8 1207a4: f800283a ret 001207a8 <alt_load_section>: */ static void ALT_INLINE alt_load_section (alt_u32* from, alt_u32* to, alt_u32* end) { 1207a8: defffc04 addi sp,sp,-16 1207ac: df000315 stw fp,12(sp) 1207b0: df000304 addi fp,sp,12 1207b4: e13ffd15 stw r4,-12(fp) 1207b8: e17ffe15 stw r5,-8(fp) 1207bc: e1bfff15 stw r6,-4(fp) if (to != from) 1207c0: e0fffe17 ldw r3,-8(fp) 1207c4: e0bffd17 ldw r2,-12(fp) 1207c8: 18800e26 beq r3,r2,120804 <alt_load_section+0x5c> { while( to != end ) 1207cc: 00000a06 br 1207f8 <alt_load_section+0x50> { *to++ = *from++; 1207d0: e0bffd17 ldw r2,-12(fp) 1207d4: 10c00017 ldw r3,0(r2) 1207d8: e0bffe17 ldw r2,-8(fp) 1207dc: 10c00015 stw r3,0(r2) 1207e0: e0bffe17 ldw r2,-8(fp) 1207e4: 10800104 addi r2,r2,4 1207e8: e0bffe15 stw r2,-8(fp) 1207ec: e0bffd17 ldw r2,-12(fp) 1207f0: 10800104 addi r2,r2,4 1207f4: e0bffd15 stw r2,-12(fp) alt_u32* to, alt_u32* end) { if (to != from) { while( to != end ) 1207f8: e0fffe17 ldw r3,-8(fp) 1207fc: e0bfff17 ldw r2,-4(fp) 120800: 18bff31e bne r3,r2,1207d0 <alt_load_section+0x28> { *to++ = *from++; } } } 120804: e037883a mov sp,fp 120808: df000017 ldw fp,0(sp) 12080c: dec00104 addi sp,sp,4 120810: f800283a ret 00120814 <alt_load>: * there is no bootloader, so this application is responsible for loading to * RAM any sections that are required. */ void alt_load (void) { 120814: defffe04 addi sp,sp,-8 120818: dfc00115 stw ra,4(sp) 12081c: df000015 stw fp,0(sp) 120820: d839883a mov fp,sp /* * Copy the .rwdata section. */ alt_load_section (&__flash_rwdata_start, 120824: 010004b4 movhi r4,18 120828: 21056604 addi r4,r4,5528 12082c: 014004b4 movhi r5,18 120830: 2943f004 addi r5,r5,4032 120834: 018004b4 movhi r6,18 120838: 31856604 addi r6,r6,5528 12083c: 01207a80 call 1207a8 <alt_load_section> /* * Copy the exception handler. */ alt_load_section (&__flash_exceptions_start, 120840: 010004b4 movhi r4,18 120844: 21000004 addi r4,r4,0 120848: 01400574 movhi r5,21 12084c: 29600804 addi r5,r5,-32736 120850: 01800574 movhi r6,21 120854: 31a06e04 addi r6,r6,-32328 120858: 01207a80 call 1207a8 <alt_load_section> /* * Copy the .rodata section. */ alt_load_section (&__flash_rodata_start, 12085c: 010004b4 movhi r4,18 120860: 2103e704 addi r4,r4,3996 120864: 014004b4 movhi r5,18 120868: 2943e704 addi r5,r5,3996 12086c: 018004b4 movhi r6,18 120870: 3183f004 addi r6,r6,4032 120874: 01207a80 call 1207a8 <alt_load_section> /* * Now ensure that the caches are in synch. */ alt_dcache_flush_all(); 120878: 0120a600 call 120a60 <alt_dcache_flush_all> alt_icache_flush_all(); 12087c: 0120b600 call 120b60 <alt_icache_flush_all> } 120880: e037883a mov sp,fp 120884: dfc00117 ldw ra,4(sp) 120888: df000017 ldw fp,0(sp) 12088c: dec00204 addi sp,sp,8 120890: f800283a ret 00120894 <alt_main>: * devices/filesystems/components in the system; and call the entry point for * the users application, i.e. main(). */ void alt_main (void) { 120894: defffd04 addi sp,sp,-12 120898: dfc00215 stw ra,8(sp) 12089c: df000115 stw fp,4(sp) 1208a0: df000104 addi fp,sp,4 #endif /* ALT LOG - please see HAL/sys/alt_log_printf.h for details */ ALT_LOG_PRINT_BOOT("[alt_main.c] Entering alt_main, calling alt_irq_init.\r\n"); /* Initialize the interrupt controller. */ alt_irq_init (NULL); 1208a4: 0009883a mov r4,zero 1208a8: 01208f00 call 1208f0 <alt_irq_init> /* Initialize the operating system */ ALT_LOG_PRINT_BOOT("[alt_main.c] Done alt_irq_init, calling alt_os_init.\r\n"); ALT_OS_INIT(); 1208ac: 0001883a nop ALT_LOG_PRINT_BOOT("[alt_main.c] Done OS Init, calling alt_sem_create.\r\n"); ALT_SEM_CREATE (&alt_fd_list_lock, 1); /* Initialize the device drivers/software components. */ ALT_LOG_PRINT_BOOT("[alt_main.c] Calling alt_sys_init.\r\n"); alt_sys_init(); 1208b0: 01209240 call 120924 <alt_sys_init> /* * Call the C++ constructors */ ALT_LOG_PRINT_BOOT("[alt_main.c] Calling C++ constructors.\r\n"); _do_ctors (); 1208b4: 0120aa80 call 120aa8 <_do_ctors> * redefined as _exit()). This is in the interest of reducing code footprint, * in that the atexit() overhead is removed when it's not needed. */ ALT_LOG_PRINT_BOOT("[alt_main.c] Calling atexit.\r\n"); atexit (_do_dtors); 1208b8: 010004b4 movhi r4,18 1208bc: 2102c104 addi r4,r4,2820 1208c0: 0120c1c0 call 120c1c <atexit> ALT_LOG_PRINT_BOOT("[alt_main.c] Calling main.\r\n"); #ifdef ALT_NO_EXIT main (alt_argc, alt_argv, alt_envp); #else result = main (alt_argc, alt_argv, alt_envp); 1208c4: d1218217 ldw r4,-31224(gp) 1208c8: d0e18317 ldw r3,-31220(gp) 1208cc: d0a18417 ldw r2,-31216(gp) 1208d0: 180b883a mov r5,r3 1208d4: 100d883a mov r6,r2 1208d8: 01201d40 call 1201d4 <main> 1208dc: e0bfff15 stw r2,-4(fp) close(STDOUT_FILENO); 1208e0: 01000044 movi r4,1 1208e4: 01209940 call 120994 <close> exit (result); 1208e8: e13fff17 ldw r4,-4(fp) 1208ec: 0120c300 call 120c30 <exit> 001208f0 <alt_irq_init>: * The "base" parameter is ignored and only * present for backwards-compatibility. */ void alt_irq_init ( const void* base ) { 1208f0: defffd04 addi sp,sp,-12 1208f4: dfc00215 stw ra,8(sp) 1208f8: df000115 stw fp,4(sp) 1208fc: df000104 addi fp,sp,4 120900: e13fff15 stw r4,-4(fp) ALTERA_NIOS2_QSYS_IRQ_INIT ( PROC, PROC); 120904: 0120bfc0 call 120bfc <altera_nios2_qsys_irq_init> * alt_irq_cpu_enable_interrupts() enables the CPU to start taking interrupts. */ static ALT_INLINE void ALT_ALWAYS_INLINE alt_irq_cpu_enable_interrupts () { NIOS2_WRITE_STATUS(NIOS2_STATUS_PIE_MSK 120908: 00800044 movi r2,1 12090c: 1001703a wrctl status,r2 alt_irq_cpu_enable_interrupts(); } 120910: e037883a mov sp,fp 120914: dfc00117 ldw ra,4(sp) 120918: df000017 ldw fp,0(sp) 12091c: dec00204 addi sp,sp,8 120920: f800283a ret 00120924 <alt_sys_init>: * Initialize the non-interrupt controller devices. * Called after alt_irq_init(). */ void alt_sys_init( void ) { 120924: deffff04 addi sp,sp,-4 120928: df000015 stw fp,0(sp) 12092c: d839883a mov fp,sp ALTERA_AVALON_SYSID_QSYS_INIT ( SYSID_QSYS_0, sysid_qsys_0); 120930: 0001883a nop } 120934: e037883a mov sp,fp 120938: df000017 ldw fp,0(sp) 12093c: dec00104 addi sp,sp,4 120940: f800283a ret 00120944 <alt_get_errno>: #undef errno extern int errno; static ALT_INLINE int* alt_get_errno(void) { 120944: defffe04 addi sp,sp,-8 120948: dfc00115 stw ra,4(sp) 12094c: df000015 stw fp,0(sp) 120950: d839883a mov fp,sp return ((alt_errno) ? alt_errno() : &errno); 120954: 008004b4 movhi r2,18 120958: 10856304 addi r2,r2,5516 12095c: 10800017 ldw r2,0(r2) 120960: 10000526 beq r2,zero,120978 <alt_get_errno+0x34> 120964: 008004b4 movhi r2,18 120968: 10856304 addi r2,r2,5516 12096c: 10800017 ldw r2,0(r2) 120970: 103ee83a callr r2 120974: 00000206 br 120980 <alt_get_errno+0x3c> 120978: 008004b4 movhi r2,18 12097c: 1086e004 addi r2,r2,7040 } 120980: e037883a mov sp,fp 120984: dfc00117 ldw ra,4(sp) 120988: df000017 ldw fp,0(sp) 12098c: dec00204 addi sp,sp,8 120990: f800283a ret 00120994 <close>: * * ALT_CLOSE is mapped onto the close() system call in alt_syscall.h */ int ALT_CLOSE (int fildes) { 120994: defffb04 addi sp,sp,-20 120998: dfc00415 stw ra,16(sp) 12099c: df000315 stw fp,12(sp) 1209a0: df000304 addi fp,sp,12 1209a4: e13fff15 stw r4,-4(fp) * A common error case is that when the file descriptor was created, the call * to open() failed resulting in a negative file descriptor. This is trapped * below so that we don't try and process an invalid file descriptor. */ fd = (fildes < 0) ? NULL : &alt_fd_list[fildes]; 1209a8: e0bfff17 ldw r2,-4(fp) 1209ac: 10000716 blt r2,zero,1209cc <close+0x38> 1209b0: e13fff17 ldw r4,-4(fp) 1209b4: 01400304 movi r5,12 1209b8: 0120f380 call 120f38 <__mulsi3> 1209bc: 00c004b4 movhi r3,18 1209c0: 18c3fb04 addi r3,r3,4076 1209c4: 10c5883a add r2,r2,r3 1209c8: 00000106 br 1209d0 <close+0x3c> 1209cc: 0005883a mov r2,zero 1209d0: e0bffd15 stw r2,-12(fp) if (fd) 1209d4: e0bffd17 ldw r2,-12(fp) 1209d8: 10001826 beq r2,zero,120a3c <close+0xa8> /* * If the associated file system/device has a close function, call it so * that any necessary cleanup code can run. */ rval = (fd->dev->close) ? fd->dev->close(fd) : 0; 1209dc: e0bffd17 ldw r2,-12(fp) 1209e0: 10800017 ldw r2,0(r2) 1209e4: 10800417 ldw r2,16(r2) 1209e8: 10000626 beq r2,zero,120a04 <close+0x70> 1209ec: e0bffd17 ldw r2,-12(fp) 1209f0: 10800017 ldw r2,0(r2) 1209f4: 10800417 ldw r2,16(r2) 1209f8: e13ffd17 ldw r4,-12(fp) 1209fc: 103ee83a callr r2 120a00: 00000106 br 120a08 <close+0x74> 120a04: 0005883a mov r2,zero 120a08: e0bffe15 stw r2,-8(fp) /* Free the file descriptor structure and return. */ alt_release_fd (fildes); 120a0c: e13fff17 ldw r4,-4(fp) 120a10: 0120b7c0 call 120b7c <alt_release_fd> if (rval < 0) 120a14: e0bffe17 ldw r2,-8(fp) 120a18: 1000060e bge r2,zero,120a34 <close+0xa0> { ALT_ERRNO = -rval; 120a1c: 01209440 call 120944 <alt_get_errno> 120a20: e0fffe17 ldw r3,-8(fp) 120a24: 00c7c83a sub r3,zero,r3 120a28: 10c00015 stw r3,0(r2) return -1; 120a2c: 00bfffc4 movi r2,-1 120a30: 00000606 br 120a4c <close+0xb8> } return 0; 120a34: 0005883a mov r2,zero 120a38: 00000406 br 120a4c <close+0xb8> } else { ALT_ERRNO = EBADFD; 120a3c: 01209440 call 120944 <alt_get_errno> 120a40: 00c01444 movi r3,81 120a44: 10c00015 stw r3,0(r2) return -1; 120a48: 00bfffc4 movi r2,-1 } } 120a4c: e037883a mov sp,fp 120a50: dfc00117 ldw ra,4(sp) 120a54: df000017 ldw fp,0(sp) 120a58: dec00204 addi sp,sp,8 120a5c: f800283a ret 00120a60 <alt_dcache_flush_all>: /* * alt_dcache_flush_all() is called to flush the entire data cache. */ void alt_dcache_flush_all (void) { 120a60: deffff04 addi sp,sp,-4 120a64: df000015 stw fp,0(sp) 120a68: d839883a mov fp,sp for (i = (char*) 0; i < (char*) NIOS2_DCACHE_SIZE; i+= NIOS2_DCACHE_LINE_SIZE) { __asm__ volatile ("flushd (%0)" :: "r" (i)); } #endif /* NIOS2_DCACHE_SIZE > 0 */ } 120a6c: e037883a mov sp,fp 120a70: df000017 ldw fp,0(sp) 120a74: dec00104 addi sp,sp,4 120a78: f800283a ret 00120a7c <alt_dev_null_write>: * by the alt_dev_null device. It simple discards all data passed to it, and * indicates that the data has been successfully transmitted. */ static int alt_dev_null_write (alt_fd* fd, const char* ptr, int len) { 120a7c: defffc04 addi sp,sp,-16 120a80: df000315 stw fp,12(sp) 120a84: df000304 addi fp,sp,12 120a88: e13ffd15 stw r4,-12(fp) 120a8c: e17ffe15 stw r5,-8(fp) 120a90: e1bfff15 stw r6,-4(fp) return len; 120a94: e0bfff17 ldw r2,-4(fp) } 120a98: e037883a mov sp,fp 120a9c: df000017 ldw fp,0(sp) 120aa0: dec00104 addi sp,sp,4 120aa4: f800283a ret 00120aa8 <_do_ctors>: /* * Run the C++ static constructors. */ void _do_ctors(void) { 120aa8: defffd04 addi sp,sp,-12 120aac: dfc00215 stw ra,8(sp) 120ab0: df000115 stw fp,4(sp) 120ab4: df000104 addi fp,sp,4 constructor* ctor; for (ctor = &__CTOR_END__[-1]; ctor >= __CTOR_LIST__; ctor--) 120ab8: 008004b4 movhi r2,18 120abc: 1083e604 addi r2,r2,3992 120ac0: e0bfff15 stw r2,-4(fp) 120ac4: 00000606 br 120ae0 <_do_ctors+0x38> (*ctor) (); 120ac8: e0bfff17 ldw r2,-4(fp) 120acc: 10800017 ldw r2,0(r2) 120ad0: 103ee83a callr r2 void _do_ctors(void) { constructor* ctor; for (ctor = &__CTOR_END__[-1]; ctor >= __CTOR_LIST__; ctor--) 120ad4: e0bfff17 ldw r2,-4(fp) 120ad8: 10bfff04 addi r2,r2,-4 120adc: e0bfff15 stw r2,-4(fp) 120ae0: e0ffff17 ldw r3,-4(fp) 120ae4: 008004b4 movhi r2,18 120ae8: 1083e704 addi r2,r2,3996 120aec: 18bff62e bgeu r3,r2,120ac8 <_do_ctors+0x20> (*ctor) (); } 120af0: e037883a mov sp,fp 120af4: dfc00117 ldw ra,4(sp) 120af8: df000017 ldw fp,0(sp) 120afc: dec00204 addi sp,sp,8 120b00: f800283a ret 00120b04 <_do_dtors>: /* * Run the C++ static destructors. */ void _do_dtors(void) { 120b04: defffd04 addi sp,sp,-12 120b08: dfc00215 stw ra,8(sp) 120b0c: df000115 stw fp,4(sp) 120b10: df000104 addi fp,sp,4 destructor* dtor; for (dtor = &__DTOR_END__[-1]; dtor >= __DTOR_LIST__; dtor--) 120b14: 008004b4 movhi r2,18 120b18: 1083e604 addi r2,r2,3992 120b1c: e0bfff15 stw r2,-4(fp) 120b20: 00000606 br 120b3c <_do_dtors+0x38> (*dtor) (); 120b24: e0bfff17 ldw r2,-4(fp) 120b28: 10800017 ldw r2,0(r2) 120b2c: 103ee83a callr r2 void _do_dtors(void) { destructor* dtor; for (dtor = &__DTOR_END__[-1]; dtor >= __DTOR_LIST__; dtor--) 120b30: e0bfff17 ldw r2,-4(fp) 120b34: 10bfff04 addi r2,r2,-4 120b38: e0bfff15 stw r2,-4(fp) 120b3c: e0ffff17 ldw r3,-4(fp) 120b40: 008004b4 movhi r2,18 120b44: 1083e704 addi r2,r2,3996 120b48: 18bff62e bgeu r3,r2,120b24 <_do_dtors+0x20> (*dtor) (); } 120b4c: e037883a mov sp,fp 120b50: dfc00117 ldw ra,4(sp) 120b54: df000017 ldw fp,0(sp) 120b58: dec00204 addi sp,sp,8 120b5c: f800283a ret 00120b60 <alt_icache_flush_all>: /* * alt_icache_flush_all() is called to flush the entire instruction cache. */ void alt_icache_flush_all (void) { 120b60: deffff04 addi sp,sp,-4 120b64: df000015 stw fp,0(sp) 120b68: d839883a mov fp,sp #if NIOS2_ICACHE_SIZE > 0 alt_icache_flush (0, NIOS2_ICACHE_SIZE); #endif } 120b6c: e037883a mov sp,fp 120b70: df000017 ldw fp,0(sp) 120b74: dec00104 addi sp,sp,4 120b78: f800283a ret 00120b7c <alt_release_fd>: * File descriptors correcponding to standard in, standard out and standard * error cannont be released backed to the pool. They are always reserved. */ void alt_release_fd (int fd) { 120b7c: defffc04 addi sp,sp,-16 120b80: dfc00315 stw ra,12(sp) 120b84: df000215 stw fp,8(sp) 120b88: dc000115 stw r16,4(sp) 120b8c: df000104 addi fp,sp,4 120b90: e13fff15 stw r4,-4(fp) if (fd > 2) 120b94: e0bfff17 ldw r2,-4(fp) 120b98: 108000d0 cmplti r2,r2,3 120b9c: 1000111e bne r2,zero,120be4 <alt_release_fd+0x68> { alt_fd_list[fd].fd_flags = 0; 120ba0: 040004b4 movhi r16,18 120ba4: 8403fb04 addi r16,r16,4076 120ba8: e0bfff17 ldw r2,-4(fp) 120bac: 1009883a mov r4,r2 120bb0: 01400304 movi r5,12 120bb4: 0120f380 call 120f38 <__mulsi3> 120bb8: 8085883a add r2,r16,r2 120bbc: 10800204 addi r2,r2,8 120bc0: 10000015 stw zero,0(r2) alt_fd_list[fd].dev = 0; 120bc4: 040004b4 movhi r16,18 120bc8: 8403fb04 addi r16,r16,4076 120bcc: e0bfff17 ldw r2,-4(fp) 120bd0: 1009883a mov r4,r2 120bd4: 01400304 movi r5,12 120bd8: 0120f380 call 120f38 <__mulsi3> 120bdc: 8085883a add r2,r16,r2 120be0: 10000015 stw zero,0(r2) } } 120be4: e037883a mov sp,fp 120be8: dfc00217 ldw ra,8(sp) 120bec: df000117 ldw fp,4(sp) 120bf0: dc000017 ldw r16,0(sp) 120bf4: dec00304 addi sp,sp,12 120bf8: f800283a ret 00120bfc <altera_nios2_qsys_irq_init>: /* * To initialize the internal interrupt controller, just clear the IENABLE * register so that all possible IRQs are disabled. */ void altera_nios2_qsys_irq_init(void) { 120bfc: deffff04 addi sp,sp,-4 120c00: df000015 stw fp,0(sp) 120c04: d839883a mov fp,sp NIOS2_WRITE_IENABLE(0); 120c08: 000170fa wrctl ienable,zero } 120c0c: e037883a mov sp,fp 120c10: df000017 ldw fp,0(sp) 120c14: dec00104 addi sp,sp,4 120c18: f800283a ret 00120c1c <atexit>: 120c1c: 200b883a mov r5,r4 120c20: 000d883a mov r6,zero 120c24: 0009883a mov r4,zero 120c28: 000f883a mov r7,zero 120c2c: 0120c681 jmpi 120c68 <__register_exitproc> 00120c30 <exit>: 120c30: defffe04 addi sp,sp,-8 120c34: 000b883a mov r5,zero 120c38: dc000015 stw r16,0(sp) 120c3c: dfc00115 stw ra,4(sp) 120c40: 2021883a mov r16,r4 120c44: 0120d980 call 120d98 <__call_exitprocs> 120c48: 008004b4 movhi r2,18 120c4c: 10856404 addi r2,r2,5520 120c50: 11000017 ldw r4,0(r2) 120c54: 20800f17 ldw r2,60(r4) 120c58: 10000126 beq r2,zero,120c60 <exit+0x30> 120c5c: 103ee83a callr r2 120c60: 8009883a mov r4,r16 120c64: 0120f600 call 120f60 <_exit> 00120c68 <__register_exitproc>: 120c68: defffa04 addi sp,sp,-24 120c6c: 008004b4 movhi r2,18 120c70: 10856404 addi r2,r2,5520 120c74: dc000315 stw r16,12(sp) 120c78: 14000017 ldw r16,0(r2) 120c7c: dc400415 stw r17,16(sp) 120c80: dfc00515 stw ra,20(sp) 120c84: 80805217 ldw r2,328(r16) 120c88: 2023883a mov r17,r4 120c8c: 10003e26 beq r2,zero,120d88 <__register_exitproc+0x120> 120c90: 10c00117 ldw r3,4(r2) 120c94: 020007c4 movi r8,31 120c98: 40c0180e bge r8,r3,120cfc <__register_exitproc+0x94> 120c9c: 00800034 movhi r2,0 120ca0: 10800004 addi r2,r2,0 120ca4: 1000061e bne r2,zero,120cc0 <__register_exitproc+0x58> 120ca8: 00bfffc4 movi r2,-1 120cac: dfc00517 ldw ra,20(sp) 120cb0: dc400417 ldw r17,16(sp) 120cb4: dc000317 ldw r16,12(sp) 120cb8: dec00604 addi sp,sp,24 120cbc: f800283a ret 120cc0: 01006404 movi r4,400 120cc4: d9400015 stw r5,0(sp) 120cc8: d9800115 stw r6,4(sp) 120ccc: d9c00215 stw r7,8(sp) 120cd0: 00000000 call 0 <PIO_IRQ_MASK-0x8> 120cd4: d9400017 ldw r5,0(sp) 120cd8: d9800117 ldw r6,4(sp) 120cdc: d9c00217 ldw r7,8(sp) 120ce0: 103ff126 beq r2,zero,120ca8 <__register_exitproc+0x40> 120ce4: 80c05217 ldw r3,328(r16) 120ce8: 10000115 stw zero,4(r2) 120cec: 10c00015 stw r3,0(r2) 120cf0: 80805215 stw r2,328(r16) 120cf4: 10006215 stw zero,392(r2) 120cf8: 10006315 stw zero,396(r2) 120cfc: 10c00117 ldw r3,4(r2) 120d00: 88000d1e bne r17,zero,120d38 <__register_exitproc+0xd0> 120d04: 19000084 addi r4,r3,2 120d08: 2109883a add r4,r4,r4 120d0c: 18c00044 addi r3,r3,1 120d10: 2109883a add r4,r4,r4 120d14: 1109883a add r4,r2,r4 120d18: 10c00115 stw r3,4(r2) 120d1c: 0005883a mov r2,zero 120d20: 21400015 stw r5,0(r4) 120d24: dfc00517 ldw ra,20(sp) 120d28: dc400417 ldw r17,16(sp) 120d2c: dc000317 ldw r16,12(sp) 120d30: dec00604 addi sp,sp,24 120d34: f800283a ret 120d38: 02400044 movi r9,1 120d3c: 12806217 ldw r10,392(r2) 120d40: 48d2983a sll r9,r9,r3 120d44: 19000804 addi r4,r3,32 120d48: 18d1883a add r8,r3,r3 120d4c: 2109883a add r4,r4,r4 120d50: 4211883a add r8,r8,r8 120d54: 2109883a add r4,r4,r4 120d58: 1109883a add r4,r2,r4 120d5c: 1211883a add r8,r2,r8 120d60: 5254b03a or r10,r10,r9 120d64: 21c02215 stw r7,136(r4) 120d68: 41802215 stw r6,136(r8) 120d6c: 12806215 stw r10,392(r2) 120d70: 01000084 movi r4,2 120d74: 893fe31e bne r17,r4,120d04 <__register_exitproc+0x9c> 120d78: 11006317 ldw r4,396(r2) 120d7c: 2252b03a or r9,r4,r9 120d80: 12406315 stw r9,396(r2) 120d84: 003fdf06 br 120d04 <__register_exitproc+0x9c> 120d88: 008004b4 movhi r2,18 120d8c: 10876104 addi r2,r2,7556 120d90: 80805215 stw r2,328(r16) 120d94: 003fbe06 br 120c90 <__register_exitproc+0x28> 00120d98 <__call_exitprocs>: 120d98: 008004b4 movhi r2,18 120d9c: 10856404 addi r2,r2,5520 120da0: 10800017 ldw r2,0(r2) 120da4: defff304 addi sp,sp,-52 120da8: df000b15 stw fp,44(sp) 120dac: d8800015 stw r2,0(sp) 120db0: 10805204 addi r2,r2,328 120db4: dd400815 stw r21,32(sp) 120db8: dfc00c15 stw ra,48(sp) 120dbc: ddc00a15 stw r23,40(sp) 120dc0: dd800915 stw r22,36(sp) 120dc4: dd000715 stw r20,28(sp) 120dc8: dcc00615 stw r19,24(sp) 120dcc: dc800515 stw r18,20(sp) 120dd0: dc400415 stw r17,16(sp) 120dd4: dc000315 stw r16,12(sp) 120dd8: d9000115 stw r4,4(sp) 120ddc: 2839883a mov fp,r5 120de0: d8800215 stw r2,8(sp) 120de4: 057fffc4 movi r21,-1 120de8: d8800017 ldw r2,0(sp) 120dec: ddc00217 ldw r23,8(sp) 120df0: 14805217 ldw r18,328(r2) 120df4: 90001726 beq r18,zero,120e54 <__call_exitprocs+0xbc> 120df8: 94400117 ldw r17,4(r18) 120dfc: 8c3fffc4 addi r16,r17,-1 120e00: 80001116 blt r16,zero,120e48 <__call_exitprocs+0xb0> 120e04: 8c400044 addi r17,r17,1 120e08: 8427883a add r19,r16,r16 120e0c: 8c63883a add r17,r17,r17 120e10: 95802204 addi r22,r18,136 120e14: 9ce7883a add r19,r19,r19 120e18: 8c63883a add r17,r17,r17 120e1c: b4e7883a add r19,r22,r19 120e20: 9463883a add r17,r18,r17 120e24: e0001726 beq fp,zero,120e84 <__call_exitprocs+0xec> 120e28: 8c87c83a sub r3,r17,r18 120e2c: b0c7883a add r3,r22,r3 120e30: 18c01e17 ldw r3,120(r3) 120e34: 1f001326 beq r3,fp,120e84 <__call_exitprocs+0xec> 120e38: 843fffc4 addi r16,r16,-1 120e3c: 9cffff04 addi r19,r19,-4 120e40: 8c7fff04 addi r17,r17,-4 120e44: 857ff71e bne r16,r21,120e24 <__call_exitprocs+0x8c> 120e48: 00800034 movhi r2,0 120e4c: 10800004 addi r2,r2,0 120e50: 10002a1e bne r2,zero,120efc <__call_exitprocs+0x164> 120e54: dfc00c17 ldw ra,48(sp) 120e58: df000b17 ldw fp,44(sp) 120e5c: ddc00a17 ldw r23,40(sp) 120e60: dd800917 ldw r22,36(sp) 120e64: dd400817 ldw r21,32(sp) 120e68: dd000717 ldw r20,28(sp) 120e6c: dcc00617 ldw r19,24(sp) 120e70: dc800517 ldw r18,20(sp) 120e74: dc400417 ldw r17,16(sp) 120e78: dc000317 ldw r16,12(sp) 120e7c: dec00d04 addi sp,sp,52 120e80: f800283a ret 120e84: 91000117 ldw r4,4(r18) 120e88: 88c00017 ldw r3,0(r17) 120e8c: 213fffc4 addi r4,r4,-1 120e90: 24001526 beq r4,r16,120ee8 <__call_exitprocs+0x150> 120e94: 88000015 stw zero,0(r17) 120e98: 183fe726 beq r3,zero,120e38 <__call_exitprocs+0xa0> 120e9c: 00800044 movi r2,1 120ea0: 1408983a sll r4,r2,r16 120ea4: 91406217 ldw r5,392(r18) 120ea8: 95000117 ldw r20,4(r18) 120eac: 214a703a and r5,r4,r5 120eb0: 28000b26 beq r5,zero,120ee0 <__call_exitprocs+0x148> 120eb4: 91406317 ldw r5,396(r18) 120eb8: 2148703a and r4,r4,r5 120ebc: 20000c1e bne r4,zero,120ef0 <__call_exitprocs+0x158> 120ec0: 99400017 ldw r5,0(r19) 120ec4: d9000117 ldw r4,4(sp) 120ec8: 183ee83a callr r3 120ecc: 90c00117 ldw r3,4(r18) 120ed0: 1d3fc51e bne r3,r20,120de8 <__call_exitprocs+0x50> 120ed4: b8c00017 ldw r3,0(r23) 120ed8: 1cbfd726 beq r3,r18,120e38 <__call_exitprocs+0xa0> 120edc: 003fc206 br 120de8 <__call_exitprocs+0x50> 120ee0: 183ee83a callr r3 120ee4: 003ff906 br 120ecc <__call_exitprocs+0x134> 120ee8: 94000115 stw r16,4(r18) 120eec: 003fea06 br 120e98 <__call_exitprocs+0x100> 120ef0: 99000017 ldw r4,0(r19) 120ef4: 183ee83a callr r3 120ef8: 003ff406 br 120ecc <__call_exitprocs+0x134> 120efc: 90c00117 ldw r3,4(r18) 120f00: 1800071e bne r3,zero,120f20 <__call_exitprocs+0x188> 120f04: 90c00017 ldw r3,0(r18) 120f08: 18000926 beq r3,zero,120f30 <__call_exitprocs+0x198> 120f0c: 9009883a mov r4,r18 120f10: b8c00015 stw r3,0(r23) 120f14: 00000000 call 0 <PIO_IRQ_MASK-0x8> 120f18: bc800017 ldw r18,0(r23) 120f1c: 003fb506 br 120df4 <__call_exitprocs+0x5c> 120f20: 90c00017 ldw r3,0(r18) 120f24: 902f883a mov r23,r18 120f28: 1825883a mov r18,r3 120f2c: 003fb106 br 120df4 <__call_exitprocs+0x5c> 120f30: 0007883a mov r3,zero 120f34: 003ffb06 br 120f24 <__call_exitprocs+0x18c> 00120f38 <__mulsi3>: 120f38: 0005883a mov r2,zero 120f3c: 20000726 beq r4,zero,120f5c <__mulsi3+0x24> 120f40: 20c0004c andi r3,r4,1 120f44: 2008d07a srli r4,r4,1 120f48: 18000126 beq r3,zero,120f50 <__mulsi3+0x18> 120f4c: 1145883a add r2,r2,r5 120f50: 294b883a add r5,r5,r5 120f54: 203ffa1e bne r4,zero,120f40 <__mulsi3+0x8> 120f58: f800283a ret 120f5c: f800283a ret 00120f60 <_exit>: * * ALT_EXIT is mapped onto the _exit() system call in alt_syscall.h */ void ALT_EXIT (int exit_code) { 120f60: defffc04 addi sp,sp,-16 120f64: df000315 stw fp,12(sp) 120f68: df000304 addi fp,sp,12 120f6c: e13fff15 stw r4,-4(fp) ALT_LOG_PRINT_BOOT("[alt_exit.c] Entering _exit() function.\r\n"); ALT_LOG_PRINT_BOOT("[alt_exit.c] Exit code from main was %d.\r\n",exit_code); /* Stop all other threads */ ALT_LOG_PRINT_BOOT("[alt_exit.c] Calling ALT_OS_STOP().\r\n"); ALT_OS_STOP(); 120f70: 0001883a nop 120f74: e0bfff17 ldw r2,-4(fp) 120f78: e0bffd15 stw r2,-12(fp) /* * Routine called on exit. */ static ALT_INLINE ALT_ALWAYS_INLINE void alt_sim_halt(int exit_code) { int r2 = exit_code; 120f7c: e0bffd17 ldw r2,-12(fp) 120f80: e0bffe15 stw r2,-8(fp) __asm__ volatile ("\n0:\n\taddi %0,%0, -1\n\tbgt %0,zero,0b" : : "r" (ALT_CPU_FREQ/100) ); /* Delay for >30ms */ __asm__ volatile ("break 2" : : "D02"(r2), "D03"(r3) ALT_GMON_DATA ); #else /* !DEBUG_STUB */ if (r2) { 120f84: e0bffe17 ldw r2,-8(fp) 120f88: 10000226 beq r2,zero,120f94 <_exit+0x34> ALT_SIM_FAIL(); 120f8c: 002af070 cmpltui zero,zero,43969 120f90: 00000106 br 120f98 <_exit+0x38> } else { ALT_SIM_PASS(); 120f94: 002af0b0 cmpltui zero,zero,43970 ALT_SIM_HALT(exit_code); /* spin forever, since there's no where to go back to */ ALT_LOG_PRINT_BOOT("[alt_exit.c] Spinning forever.\r\n"); while (1); 120f98: 003fff06 br 120f98 <_exit+0x38>
ObjDump
3
agural/FPGA-Oscilloscope
osc/Copy of software/keytest/keytest.objdump
[ "MIT" ]
#pragma compile(AutoItExecuteAllowed, True) #include <Constants.au3> #include <Process.au3> _RunDos("java -version || (echo. >JreNotFound)") If FileExists("JreNotFound") Then FileDelete("JreNotFound") MsgBox($MB_SYSTEMMODAL, "civilizer-win32.exe ERROR", "Can't find JRE (Java Runtime Environment)!" & @CRLF & "Download and install JRE from Oracle") Exit(1) EndIf Run("run-civilizer.bat", "", @SW_HIDE)
AutoIt
3
suewonjp/civilizer
tools/run/civilizer-win32.au3
[ "Apache-2.0" ]
// Daniel Shiffman // http://codingtra.in // Attraction / Repulsion // Video: https://youtu.be/OAcXnzRNiCY // Processing transcription: Chuck England import java.util.*; List<PVector> attractors = new ArrayList<PVector>(); List<Particle> particles = new ArrayList<Particle>(); void setup() { size(400, 400); // for (int i = 0; i < 10; i++) { // attractors.push(createVector(random(width), random(height))); // } } void mousePressed() { attractors.add(new PVector(mouseX, mouseY)); } void draw() { background(51); stroke(255); strokeWeight(4); particles.add(new Particle(random(width), random(height))); if (particles.size() > 100) { particles.remove(0); } for (int i = 0; i < attractors.size(); i++) { stroke(0, 255, 0); point(attractors.get(i).x, attractors.get(i).y); } for (int i = 0; i < particles.size(); i++) { Particle particle = particles.get(i); for (int j = 0; j < attractors.size(); j++) { particle.attracted(attractors.get(j)); } particle.update(); particle.show(); } }
Processing
3
aerinkayne/website
CodingChallenges/CC_056_attraction_repulsion/Processing/CC_056_attraction_repulsion/CC_056_attraction_repulsion.pde
[ "MIT" ]
= Change redirect destination You can change the redirect destination for any Rodauth action by overriding the corresponding <tt>*_redirect</tt> method: plugin :rodauth do enable :login, :logout, :create_account, :reset_password # Redirect to "/dashboard" after login login_redirect "/dashboard" # Redirect to wherever login redirects to after creating account create_account_redirect { login_redirect } # Redirect to login page after password reset reset_password_redirect { login_path } end
RDoc
4
dmitryzuev/rodauth
doc/guides/redirects.rdoc
[ "MIT" ]
HEADERS += \ $$PWD/iconhelper.h SOURCES += \ $$PWD/iconhelper.cpp
QMake
2
jiadxin/QtScrcpy
QtScrcpy/fontawesome/fontawesome.pri
[ "Apache-2.0" ]
{-# LANGUAGE BangPatterns #-} {-# LANGUAGE CPP #-} {-# LANGUAGE EmptyDataDecls #-} {-# LANGUAGE ForeignFunctionInterface #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TemplateHaskell #-} {-# OPTIONS_HADDOCK prune #-} -------------------------------------------------------------------------------- -- | -- Module : Foreign.CUDA.Driver.Unified -- Copyright : [2017..2020] Trevor L. McDonell -- License : BSD -- -- Unified addressing functions for the low-level driver interface -- -- [/Overview/] -- -- CUDA devices can share a unified address space with the host. For these -- devices, there is no distinction between a device pointer and a host -- pointer---the same pointer value may be used to access memory from the host -- program and from a kernel running on the device (with exceptions enumerated -- below). -- -- [/Support/] -- -- Whether or not a device supports unified addressing may be queried by calling -- 'Foreign.CUDA.Driver.Device.attribute' with the -- 'Foreign.CUDA.Driver.Device.UnifiedAddressing' attribute. -- -- Unified addressing is automatically enabled in 64-bit processes on devices -- with compute capability at leas 2.0. -- -- [/Looking up information about pointers/] -- -- It is possible to look up information about the memory which backs a pointer; -- that is, whether the memory resides on the host or the device (and in -- particular, which device). -- -- [/Automatic mapping of host memory/] -- -- All host memory allocated in all contexts using -- 'Foreign.CUDA.Driver.Marshal.mallocHostArray' or -- 'Foreign.CUDA.Driver.Marshal.mallocHostForeignPtr' is always directly -- accessible from all contexts on all devices which support unified addressing. -- This is the case whether or not the flags -- 'Foreign.CUDA.Driver.Marshal.Portable' or -- 'Foreign.CUDA.Driver.Marshal.DeviceMapped' are specified. -- -- The pointer value through which allocated host memory may be accessed in -- kernels on all devices which support unified addressing is the same as the -- pointer value as on the host; that is, it is not necessary to call -- 'Foreign.CUDA.Driver.Marshal.getDevicePtr' for these allocations. -- -- Note that this is not the case for memory allocated using the -- 'Foreign.CUDA.Driver.Marshal.WriteCombined' option; see below. -- -- [/Automatic registration of peer memory/] -- -- Upon enabling direct access from a context which supports unified addressing -- to another peer context which supports unified addressing using -- 'Foreign.CUDA.Driver.Context.Peer.add', all memory allocated in the peer -- context will immediately be accessible by the current context. The device -- pointer values are the same on both contexts. -- -- [/Exceptions (disjoint addressing/] -- -- Not all memory may be accessed on devices through the same pointer value -- as they are accessed with on the host. These exceptions are host arrays -- registered with 'Foreign.CUDA.Driver.Marshal.registerArray', and those -- allocated with the flag 'Foreign.CUDA.Driver.Marshal.WriteCombined'. In these -- cases, the host and device arrays have distinct addresses (pointer values). -- However, the device address is guaranteed to not overlap with any valid host -- pointer range and is guaranteed to have the same value across all contexts -- which support unified addressing. -- -- The value of the device pointer may be queried with -- 'Foreign.CUDA.Driver.Marshal.getDevicePtr' from any context supporting -- unified addressing. -- -------------------------------------------------------------------------------- module Foreign.CUDA.Driver.Unified ( -- ** Querying pointer attributes PointerAttributes(..), MemoryType(..), getAttributes, -- ** Setting pointer attributes Advice(..), setSyncMemops, advise, ) where #include "cbits/stubs.h" {# context lib="cuda" #} -- Friends import Foreign.CUDA.Driver.Context import Foreign.CUDA.Driver.Device import Foreign.CUDA.Driver.Error import Foreign.CUDA.Driver.Marshal import Foreign.CUDA.Internal.C2HS import Foreign.CUDA.Ptr -- System import Control.Applicative import Control.Monad import Data.Maybe import Foreign import Foreign.C import Foreign.Storable import Prelude #if CUDA_VERSION < 7000 data PointerAttributes a data MemoryType #else -- | Information about a pointer -- data PointerAttributes a = PointerAttributes { ptrContext :: {-# UNPACK #-} !Context , ptrDevice :: {-# UNPACK #-} !(DevicePtr a) , ptrHost :: {-# UNPACK #-} !(HostPtr a) , ptrBufferID :: {-# UNPACK #-} !CULLong , ptrMemoryType :: !MemoryType , ptrSyncMemops :: !Bool , ptrIsManaged :: !Bool } deriving Show {# enum CUmemorytype as MemoryType { underscoreToCase , DEVICE as DeviceMemory , HOST as HostMemory , ARRAY as ArrayMemory , UNIFIED as UnifiedMemory } with prefix="CU_MEMORYTYPE" deriving (Eq, Show, Bounded) #} {# enum CUpointer_attribute as PointerAttribute { underscoreToCase } with prefix="CU_POINTER" deriving (Eq, Show, Bounded) #} #endif #if CUDA_VERSION < 8000 data Advice #else {# enum CUmem_advise as Advice { underscoreToCase } with prefix="CU_MEM_ADVISE" deriving (Eq, Show, Bounded) #} #endif -- Return information about a pointer. -- -- <http://docs.nvidia.com/cuda/cuda-driver-api/group__CUDA__UNIFIED.html#group__CUDA__UNIFIED_1g0c28ed0aff848042bc0533110e45820c> -- -- Requires CUDA-7.0. -- {-# INLINEABLE getAttributes #-} getAttributes :: Ptr a -> IO (PointerAttributes a) #if CUDA_VERSION < 7000 getAttributes _ = requireSDK 'getAttributes 7.0 #else getAttributes ptr = alloca $ \p_ctx -> alloca $ \p_dptr -> alloca $ \p_hptr -> alloca $ \(p_bid :: Ptr CULLong) -> alloca $ \(p_mt :: Ptr CUInt) -> alloca $ \(p_sm :: Ptr CInt) -> alloca $ \(p_im :: Ptr CInt) -> do let n = length as (as,ps) = unzip [ (AttributeContext, castPtr p_ctx) , (AttributeDevicePointer, castPtr p_dptr) , (AttributeHostPointer, castPtr p_hptr) , (AttributeBufferId, castPtr p_bid) , (AttributeMemoryType, castPtr p_mt) , (AttributeSyncMemops, castPtr p_sm) , (AttributeIsManaged, castPtr p_im) ] -- nothingIfOk =<< cuPointerGetAttributes n as ps ptr PointerAttributes <$> liftM Context (peek p_ctx) <*> liftM DevicePtr (peek p_dptr) <*> liftM HostPtr (peek p_hptr) <*> peek p_bid <*> liftM cToEnum (peek p_mt) <*> liftM cToBool (peek p_sm) <*> liftM cToBool (peek p_im) {-# INLINE cuPointerGetAttributes #-} {# fun unsafe cuPointerGetAttributes { `Int' , withAttrs* `[PointerAttribute]' , withArray* `[Ptr ()]' , useHandle `Ptr a' } -> `Status' cToEnum #} where withAttrs as = withArray (map cFromEnum as) useHandle = fromIntegral . ptrToIntPtr #endif -- Set whether or not the given memory region is guaranteed to always -- synchronise memory operations that are synchronous. If there are some -- previously initiated synchronous memory operations that are pending when this -- attribute is set, the function does not return until those memory operations -- are complete. See -- <http://docs.nvidia.com/cuda/cuda-driver-api/api-sync-behavior.html API -- synchronisation behaviour> for more information on cases where synchronous -- memory operations can exhibit asynchronous behaviour. -- -- <http://docs.nvidia.com/cuda/cuda-driver-api/group__CUDA__UNIFIED.html#group__CUDA__UNIFIED_1g89f7ad29a657e574fdea2624b74d138e> -- -- Requires CUDA-7.0. -- {-# INLINE setSyncMemops #-} setSyncMemops :: Ptr a -> Bool -> IO () #if CUDA_VERSION < 7000 setSyncMemops _ _ = requireSDK 'setSyncMemops 7.0 #else setSyncMemops ptr val = nothingIfOk =<< cuPointerSetAttribute val AttributeSyncMemops ptr {-# INLINE cuPointerSetAttribute #-} {# fun unsafe cuPointerSetAttribute { withBool'* `Bool' , cFromEnum `PointerAttribute' , useHandle `Ptr a' } -> `Status' cToEnum #} where withBool' :: Bool -> (Ptr () -> IO b) -> IO b withBool' v k = with (fromBool v :: CUInt) (k . castPtr) useHandle = fromIntegral . ptrToIntPtr #endif -- | Advise about the usage of a given range of memory. If the supplied device -- is Nothing, then the preferred location is taken to mean the CPU. -- -- <http://docs.nvidia.com/cuda/cuda-driver-api/group__CUDA__UNIFIED.html#group__CUDA__UNIFIED_1g27608c857a9254789c13f3e3b72029e2> -- -- Requires CUDA-8.0. -- {-# INLINEABLE advise #-} advise :: Storable a => Ptr a -> Int -> Advice -> Maybe Device -> IO () #if CUDA_VERSION < 8000 advise _ _ _ _ = requireSDK 'advise 8.0 #else advise ptr n a mdev = go undefined ptr where go :: Storable a' => a' -> Ptr a' -> IO () go x _ = nothingIfOk =<< cuMemAdvise ptr (n * sizeOf x) a (maybe (-1) useDevice mdev) {-# INLINE cuMemAdvise #-} {# fun unsafe cuMemAdvise { useHandle `Ptr a' , `Int' , cFromEnum `Advice' , `CInt' } -> `Status' cToEnum #} where useHandle = fromIntegral . ptrToIntPtr #endif
C2hs Haskell
5
jmatsushita/cuda
src/Foreign/CUDA/Driver/Unified.chs
[ "BSD-3-Clause" ]
{{ $author := .context.Params.author }} {{ if $author }} <aside class="mw5 br3 mv3 nested-links"> {{ $urlPre := "https://api.github.com" }} {{ $user_json := getJSON $urlPre "/users/" $author }} {{ if $user_json.name }} <h3 class="f4 dib"> {{ $user_json.name | htmlEscape }} </h3> {{ end }} {{ if $user_json.bio }} <p class="lh-copy measure center mt0 f6 black-60"> {{ $user_json.bio | htmlEscape }} </p> {{ end }} <a href="{{ $user_json.html_url }}" class="link dim v-mid dib"> {{ partial "svg/github-squared.svg" (dict "fill" "gray" "width" "16" "height" "18") }} </a> </aside> {{ end }}
HTML
4
jlevon/hugo
docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/components/author-github-data.html
[ "Apache-2.0" ]
FromInput() -> L2Forward(method echoback) -> ToOutput();
Click
0
ANLAB-KAIST/NBA
configs/l2fwd-echo.click
[ "MIT" ]
Welcome to the OTMql4Zmq project! OTMql4Zmq provide Metatrader 4 bindings for ZeroMQ, the high-speed messaging protocol for asynchronous communications between financial and trading applications. === Documentation === * [[Installation]] * [[PyZmq]] * [[CompiledDllOTMql4Zmq]] * [[CompiledDllHistory]] * [[TestExpert]] * [[Scripts]] * [[CodeScripts]] * [[CodeLibraries]] * [[RoadMap]] * [[TitleIndex]] === Project === Please file any bugs in the issues tracker: https://github.com/OpenTrading/OTMql4Zmq/issues Use the Wiki to start topics for discussion: https://github.com/OpenTrading/OTMql4Zmq/wiki It's better to use the wiki for knowledge capture, and then we can pull the important pages back into the documentation in the share/doc directory. You will need to be signed into github.com to see or edit in the wiki.
Creole
2
lionelyoung/OTMql4Zmq
wiki/Home.creole
[ "MIT" ]
{ "@context": { "@vocab": "http://example/", "typemap": {"@container": "@type", "@nest": "nestedtypemap"}, "nestedtypemap": "@nest" } }
JSONLD
3
fsteeg/json-ld-api
tests/compact/n008-context.jsonld
[ "W3C" ]
" Vim filetype plugin file " Language: BASIC " Maintainer: Doug Kearns <dougkearns@gmail.com> " Last Change: 2015 Jan 10 if exists("b:did_ftplugin") finish endif let b:did_ftplugin = 1 let s:cpo_save = &cpo set cpo&vim setlocal comments=:REM,:' setlocal commentstring='\ %s setlocal formatoptions-=t formatoptions+=croql if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter") let b:browsefilter = "BASIC Source Files (*.bas)\t*.bas\n" . \ "All Files (*.*)\t*.*\n" endif let b:undo_ftplugin = "setl fo< com< cms< sua<" . \ " | unlet! b:browsefilter" let &cpo = s:cpo_save unlet s:cpo_save
VimL
4
uga-rosa/neovim
runtime/ftplugin/basic.vim
[ "Vim" ]
syntax = "proto3"; package test; service TestService { }
Protocol Buffer
2
SuperHuangXu/nest
packages/microservices/test/client/test.proto
[ "MIT" ]
"""Diagnostics support for 1-Wire.""" from __future__ import annotations from dataclasses import asdict from typing import Any from homeassistant.components.diagnostics import async_redact_data from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_HOST from homeassistant.core import HomeAssistant from .const import DOMAIN from .onewirehub import OneWireHub TO_REDACT = {CONF_HOST} async def async_get_config_entry_diagnostics( hass: HomeAssistant, entry: ConfigEntry ) -> dict[str, Any]: """Return diagnostics for a config entry.""" onewire_hub: OneWireHub = hass.data[DOMAIN][entry.entry_id] return { "entry": { "title": entry.title, "data": async_redact_data(entry.data, TO_REDACT), "options": {**entry.options}, }, "devices": [asdict(device_details) for device_details in onewire_hub.devices] if onewire_hub.devices else [], }
Python
5
liangleslie/core
homeassistant/components/onewire/diagnostics.py
[ "Apache-2.0" ]
source "../tests/includes/init-tests.tcl" source "../tests/includes/job-utils.tcl" test "LEAVING state can be queried and set" { assert {[D 0 cluster leaving] eq {no}} } test "LEAVING state can be set" { D 0 cluster leaving yes assert {[D 0 cluster leaving] eq {yes}} } test "LEAVING state progagates to other nodes" { wait_for_condition { [count_cluster_nodes_with_flag 1 leaving] > 0 } else { fail "Leaving state of node 0 does not propagate to node 1" } } test "Node 0 is initially empty" { assert {[DI 0 registered_jobs] == 0} } test "ADDJOB causes external replication" { set id [D 0 ADDJOB myqueue myjob 0 REPLICATE 3] assert {$id ne {}} assert {[DI 0 registered_jobs] == 0} foreach_disque_id j { set job [D $j SHOW $id] if {$job ne {}} break } assert {[count_job_copies $job] >= 3} } test "GETJOB returns a -LEAVING instead of blocking" { catch {D 0 GETJOB FROM myqueue} e assert_match {LEAVING*} $e } test "GETJOB returns previously queued jobs if any" { D 0 CLUSTER LEAVING no set id [D 0 ADDJOB myqueue myjob 0 REPLICATE 1 RETRY 0] D 0 CLUSTER LEAVING yes assert {[llength [D 0 GETJOB FROM myqueue]] > 0} # The second attempt should fail with LEAVING. catch {D 0 GETJOB FROM myqueue} e assert_match {LEAVING*} $e } test "HELLO shows bad priority for nodes leaving" { set myself [get_myself 0] set myid [dict get $myself id] set hello [D 1 HELLO] set pri 0 foreach node $hello { if {[lindex $node 0] eq $myid} { set pri [lindex $node 3] } } assert {$pri == 100} }
Tcl
5
justincase/disque
tests/cluster/tests/10-leaving.tcl
[ "BSD-3-Clause" ]
/* * Copyright 2012-2019 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.cli.command.shell; import org.springframework.boot.cli.command.AbstractCommand; import org.springframework.boot.cli.command.Command; import org.springframework.boot.cli.command.status.ExitStatus; /** * {@link Command} to quit the {@link Shell}. * * @author Phillip Webb */ class ExitCommand extends AbstractCommand { ExitCommand() { super("exit", "Quit the embedded shell"); } @Override public ExitStatus run(String... args) throws Exception { throw new ShellExitException(); } }
Java
4
yiou362/spring-boot-2.2.9.RELEASE
spring-boot-project/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/shell/ExitCommand.java
[ "Apache-2.0" ]
= CanCan Specs == Running the specs To run the specs first run the +bundle+ command to install the necessary gems and the +rake+ command to run the specs. bundle rake The specs currently require Ruby 1.8.7. Ruby 1.9.2 support will be coming soon. == Model Adapters CanCan offers separate specs for different model adapters (such as Mongoid and Data Mapper). By default it will use Active Record but you can change this by setting the +MODEL_ADAPTER+ environment variable before running. You can run the +bundle+ command with this as well to ensure you have the installed gems. MODEL_ADAPTER=data_mapper bundle MODEL_ADAPTER=data_mapper rake The different model adapters you can specify are: * active_record (default) * data_mapper * mongoid You can also run the +spec_all+ rake task to run specs for each adapter. rake spec_all
RDoc
3
rocLv/cancan
spec/README.rdoc
[ "MIT" ]
sample chromosome_name start stop reference variant type tier gene_name transcript_name transcript_species transcript_source transcript_version strand transcript_status trv_type c_position amino_acid_change ucsc_cons domain all_domains deletion_substructures transcript_error default_gene_name gene_name_source ensembl_gene_id dataset exac_AF individual sample normal_ref_count normal_var_count normal_VAF tumor_ref_count tumor_var_count tumor_VAF FLX001-Naive 1 2489782 2489782 G A SNP tier1 TNFRSF14 ENST00000355716 human ensembl 74_37 1 known missense c.179 p.G60D 0.825 "smart_TNFR/NGFR_Cys_rich_reg,pfscan_TNFR/NGFR_Cys_rich_reg,prints_TNFR_14,prints_Fas_rcpt" "pfam_TNFR/NGFR_Cys_rich_reg,smart_TNFR/NGFR_Cys_rich_reg,pfscan_TNFR/NGFR_Cys_rich_reg,prints_TNFR_14,prints_Fas_rcpt" - no_errors TNFRSF14 HGNC ENSG00000157873 extension NA H_ML-FLX001 H_ML-FLX001-FLX001 NA NA NA 48 14 22.58 FLX001-Naive 1 158644335 158644335 G A SNP tier1 SPTA1 ENST00000368147 human ensembl 74_37 -1 known missense c.1243 p.H415Y 1 "pfam_Spectrin_repeat,smart_Spectrin/alpha-actinin" "pfam_Spectrin_repeat,pfam_EF-hand_Ca_insen,pfam_SH3_domain,pfam_SH3_2,superfamily_SH3_domain,smart_Spectrin/alpha-actinin,smart_SH3_domain,pfscan_EF_hand_dom,pfscan_SH3_domain,prints_Spectrin_alpha_SH3" - no_errors SPTA1 HGNC ENSG00000163554 extension 1.63E-05 H_ML-FLX001 H_ML-FLX001-FLX001 NA NA NA 22 15 40.54 FLX001-Naive 1 228470778 228470778 G A SNP tier1 OBSCN ENST00000422127 human ensembl 74_37 1 known missense c.8530 p.V2844M 0.951 "pfam_Ig_I-set,smart_Ig_sub,smart_Ig_sub2,pfscan_Ig-like_dom" "pfam_Ig_I-set,pfam_Immunoglobulin,pfam_Ig_V-set,pfam_Prot_kinase_dom,pfam_Ser-Thr/Tyr_kinase_cat_dom,pfam_Fibronectin_type3,pfam_DH-domain,pfam_IQ_motif_EF-hand-BS,superfamily_Kinase-like_dom,superfamily_DH-domain,superfamily_Fibronectin_type3,superfamily_SH3_domain,smart_Ig_sub,smart_Ig_sub2,smart_Ig_V-set_subgr,smart_Fibronectin_type3,smart_IQ_motif_EF-hand-BS,smart_DH-domain,smart_Pleckstrin_homology,smart_Ser/Thr_dual-sp_kinase_dom,smart_Tyr_kinase_cat_dom,pfscan_Fibronectin_type3,pfscan_IQ_motif_EF-hand-BS,pfscan_Pleckstrin_homology,pfscan_Prot_kinase_dom,pfscan_Ig-like_dom,pfscan_DH-domain" - no_errors OBSCN HGNC ENSG00000154358 extension 8.31E-06 H_ML-FLX001 H_ML-FLX001-FLX001 NA NA NA 19 13 40.62 FLX001-Naive 11 1270964 1270964 C T SNP tier1 MUC5B ENST00000447027 human ensembl 74_37 1 known missense c.12863 p.P4288L 0 NULL "pfam_VWF_type-D,pfam_Unchr_dom_Cys-rich,pfam_TIL_dom,pfam_VWF_C,superfamily_TIL_dom,smart_VWF_type-D,smart_Unchr_dom_Cys-rich,smart_VWC_out,smart_VWF_C,smart_Cys_knot_C,pfscan_Cys_knot_C,pfscan_VWF_C" - no_errors MUC5B HGNC ENSG00000117983 extension 5.71E-05 H_ML-FLX001 H_ML-FLX001-FLX001 NA NA NA 18 27 60 FLX001-Naive 11 62295999 62295999 C T SNP tier1 AHNAK ENST00000378024 human ensembl 74_37 -1 known missense c.5890 p.E1964K 0.147 NULL "superfamily_PDZ,smart_PDZ,pfscan_PDZ" - no_errors AHNAK HGNC ENSG00000124942 extension 5.69E-05 H_ML-FLX001 H_ML-FLX001-FLX001 NA NA NA 66 42 38.89 FLX001-Naive 12 132529975 132529975 A C SNP tier1 EP400 ENST00000333577 human ensembl 74_37 1 known missense c.7004 p.Q2335P 1 NULL "pfam_SNF2_N,pfam_Helicase/SANT-assoc_DNA-bd,pfam_Helicase_C,superfamily_P-loop_NTPase,superfamily_Homeodomain-like,smart_HAS_subgr,smart_Helicase_ATP-bd,smart_Helicase_C,pfscan_Myb-like_dom,pfscan_Helicase/SANT-assoc_DNA-bd,pfscan_Helicase_ATP-bd,pfscan_Helicase_C" - no_errors EP400 HGNC ENSG00000183495 extension NA H_ML-FLX001 H_ML-FLX001-FLX001 NA NA NA 39 24 38.1 FLX001-Naive 13 111158842 111158842 C T SNP tier1 COL4A2 ENST00000360467 human ensembl 74_37 1 known missense c.4483 p.H1495Y 1 "pfam_Collagen_VI_NC,superfamily_C-type_lectin_fold,smart_Collagen_VI_NC" "pfam_Collagen,pfam_Collagen_VI_NC,superfamily_C-type_lectin_fold,smart_Collagen_VI_NC" - no_errors COL4A2 HGNC ENSG00000134871 extension NA H_ML-FLX001 H_ML-FLX001-FLX001 NA NA NA 36 22 37.93 FLX001-Naive 14 105409827 105409827 C A SNP tier1 AHNAK2 ENST00000333244 human ensembl 74_37 -1 known missense c.11961 p.M3987I 0 NULL "superfamily_PDZ,smart_PDZ,pfscan_PDZ" - no_errors AHNAK2 HGNC ENSG00000185567 extension NA H_ML-FLX001 H_ML-FLX001-FLX001 NA NA NA 69 6 8 FLX001-Naive 17 17078680 17078680 C A SNP tier1 MPRIP ENST00000395811 human ensembl 74_37 1 known missense c.2663 p.A888D 0.899 NULL "pfam_Pleckstrin_homology,superfamily_Ferritin-like_SF,smart_Pleckstrin_homology,pfscan_Pleckstrin_homology" - no_errors MPRIP HGNC ENSG00000133030 extension 1.63E-05 H_ML-FLX001 H_ML-FLX001-FLX001 NA NA NA 29 31 51.67 FLX001-Naive 17 35902284 35902284 G A SNP tier1 SYNRG ENST00000339208 human ensembl 74_37 -1 known missense c.2992 p.R998W 0.344 NULL "smart_EPS15_homology,pfscan_EPS15_homology" - no_errors SYNRG HGNC ENSG00000006114 extension 8.13E-06 H_ML-FLX001 H_ML-FLX001-FLX001 NA NA NA 43 5 10.42 FLX001-Naive 17 63010377 63010377 A G SNP tier1 GNA13 ENST00000439174 human ensembl 74_37 -1 known nonstop c.1132 p.*378R 1 NULL "pfam_Gprotein_alpha_su,pfam_Small_GTPase_ARF/SAR,superfamily_P-loop_NTPase,superfamily_GproteinA_insert,smart_Gprotein_alpha_su,prints_Gprotein_alpha_su,prints_Gprotein_alpha_12" - no_errors GNA13 HGNC ENSG00000120063 extension NA H_ML-FLX001 H_ML-FLX001-FLX001 NA NA NA 117 11 8.59 FLX001-Naive 18 3141945 3141945 C T SNP tier1 MYOM1 ENST00000356443 human ensembl 74_37 -1 known missense c.2017 p.V673M 1 "pfam_Fibronectin_type3,superfamily_Fibronectin_type3,smart_Fibronectin_type3,pfscan_Fibronectin_type3" "pfam_Fibronectin_type3,pfam_Ig_I-set,superfamily_Fibronectin_type3,smart_Ig_sub,smart_Ig_sub2,smart_Fibronectin_type3,pfscan_Fibronectin_type3,pfscan_Ig-like_dom" - no_errors MYOM1 HGNC ENSG00000101605 extension 1.63E-05 H_ML-FLX001 H_ML-FLX001-FLX001 NA NA NA 39 39 50 FLX001-Naive 18 60793136 60793136 G A SNP tier3 BCL2 ENST00000398117 human ensembl 74_37 -1 known 3_prime_untranslated_region c.*2722 NULL 0 - - - no_errors BCL2 HGNC ENSG00000171791 extension NA H_ML-FLX001 H_ML-FLX001-FLX001 NA NA NA 35 38 52.05 FLX001-Naive 18 61390227 61390227 A G SNP tier1 SERPINB11 ENST00000536691 human ensembl 74_37 1 known splice_site c.250-2 e3-2 0.999 - - - no_errors SERPINB11 HGNC ENSG00000206072 extension 0.0008764 H_ML-FLX001 H_ML-FLX001-FLX001 NA NA NA 49 31 38.75 FLX001-Naive 19 57066592 57066592 A G SNP tier1 ZFP28 ENST00000301318 human ensembl 74_37 1 known missense c.2438 p.Y813C 0 pfscan_Znf_C2H2 "pfam_Znf_C2H2,pfam_Krueppel-associated_box,superfamily_Krueppel-associated_box,smart_Krueppel-associated_box,smart_Znf_C2H2-like,pfscan_Znf_C2H2,pfscan_Krueppel-associated_box" - no_errors ZFP28 HGNC ENSG00000196867 extension 0.000675 H_ML-FLX001 H_ML-FLX001-FLX001 NA NA NA 37 27 42.19 FLX001-Naive 2 21229445 21229445 T C SNP tier1 APOB ENST00000233242 human ensembl 74_37 -1 known missense c.10295 p.Q3432R 0.475 NULL "pfam_Lipid_transpt_N,pfam_Vitellinogen_open_b-sht,pfam_ApoB100_C,pfam_Lipid_transpt_open_b-sht,superfamily_Lipid_transp_b-sht_shell,superfamily_Vitellinogen_superhlx,superfamily_ARM-type_fold,smart_Lipid_transpt_N,pfscan_Lipid_transpt_N" - no_errors APOB HGNC ENSG00000084674 extension 1.63E-05 H_ML-FLX001 H_ML-FLX001-FLX001 NA NA NA 26 23 46.94 FLX001-Naive 2 21236276 21236276 C A SNP tier1 APOB ENST00000233242 human ensembl 74_37 -1 known missense c.3972 p.K1324N 0.061 NULL "pfam_Lipid_transpt_N,pfam_Vitellinogen_open_b-sht,pfam_ApoB100_C,pfam_Lipid_transpt_open_b-sht,superfamily_Lipid_transp_b-sht_shell,superfamily_Vitellinogen_superhlx,superfamily_ARM-type_fold,smart_Lipid_transpt_N,pfscan_Lipid_transpt_N" - no_errors APOB HGNC ENSG00000084674 extension 1.63E-05 H_ML-FLX001 H_ML-FLX001-FLX001 NA NA NA 93 46 33.09 FLX001-Naive 2 55523399 55523399 C T SNP tier1 CCDC88A ENST00000436346 human ensembl 74_37 -1 known missense c.5086 p.V1696I 0.979 NULL "pfam_Hook-related_fam,superfamily_Prefoldin,superfamily_t-SNARE" - no_errors CCDC88A HGNC ENSG00000115355 extension 0.000244 H_ML-FLX001 H_ML-FLX001-FLX001 NA NA NA 55 36 39.56 FLX001-Naive 2 114257969 114257969 G A SNP tier1 FOXD4L1 ENST00000306507 human ensembl 74_37 1 known missense c.1136 p.R379Q 0.821 NULL "pfam_TF_fork_head,smart_TF_fork_head,pfscan_TF_fork_head,prints_TF_fork_head" - no_errors FOXD4L1 HGNC ENSG00000184492 extension 0.0004382 H_ML-FLX001 H_ML-FLX001-FLX001 NA NA NA 52 45 46.39 FLX001-Naive 2 152512918 152512918 C T SNP tier1 NEB ENST00000397345 human ensembl 74_37 -1 known missense c.6244 p.E2082K 0.998 "smart_Nebulin_35r-motif,pfscan_Nebulin_35r-motif" "pfam_Nebulin_35r-motif,pfam_SH3_domain,pfam_SH3_2,superfamily_SH3_domain,superfamily_Adhesion_dom,superfamily_6-PGluconate_DH_C-like,smart_Nebulin_35r-motif,smart_SH3_domain,pfscan_Nebulin_35r-motif,pfscan_SH3_domain,prints_Nebulin" - no_errors NEB HGNC ENSG00000183091 extension 8.17E-05 H_ML-FLX001 H_ML-FLX001-FLX001 NA NA NA 45 7 13.46 FLX001-Naive 2 168100361 168100361 T A SNP tier1 XIRP2 ENST00000295237 human ensembl 74_37 1 known missense c.2459 p.I820N 1 NULL pfam_Actin-binding_Xin_repeat - no_errors XIRP2 HGNC ENSG00000163092 extension NA H_ML-FLX001 H_ML-FLX001-FLX001 NA NA NA 47 8 14.55 FLX001-Naive 3 3886878 3886878 C T SNP tier1 LRRN1 ENST00000319331 human ensembl 74_37 1 known missense c.553 p.R185C 1 smart_Leu-rich_rpt_typical-subtyp "pfam_Ig_I-set,pfam_Leu-rich_rpt,pfam_Ig_V-set,superfamily_Fibronectin_type3,smart_Leu-rich_rpt_typical-subtyp,smart_Cys-rich_flank_reg_C,smart_Ig_sub,smart_Ig_sub2,pfscan_Fibronectin_type3,pfscan_Ig-like_dom" - no_errors LRRN1 HGNC ENSG00000175928 extension 0.0003172 H_ML-FLX001 H_ML-FLX001-FLX001 NA NA NA 61 32 34.41 FLX001-Naive 3 130134544 130134544 G A SNP tier1 COL6A5 ENST00000265379 human ensembl 74_37 1 known missense c.4817 p.G1606E 1 pfam_Collagen "pfam_VWF_A,pfam_Collagen,smart_VWF_A,pfscan_VWF_A" - no_errors COL6A5 HGNC ENSG00000172752 extension 4.31E-05 H_ML-FLX001 H_ML-FLX001-FLX001 NA NA NA 58 44 43.14 FLX001-Naive 4 47886373 47886373 G C SNP tier1 NFXL1 ENST00000381538 human ensembl 74_37 -1 known missense c.1906 p.P636A 1 NULL "pfam_Znf_NFX1,smart_Znf_NFX1,pfscan_Znf_RING" - no_errors NFXL1 HGNC ENSG00000170448 extension NA H_ML-FLX001 H_ML-FLX001-FLX001 NA NA NA 81 52 39.1 FLX001-Naive 4 92519733 92519733 G A SNP tier1 CCSER1 ENST00000333691 human ensembl 74_37 1 known missense c.2228 p.R743Q 0.997 NULL NULL - no_errors CCSER1 HGNC ENSG00000184305 extension NA H_ML-FLX001 H_ML-FLX001-FLX001 NA NA NA 34 34 50 FLX001-Naive 5 35033626 35033626 A C SNP tier1 AGXT2 ENST00000231420 human ensembl 74_37 -1 known missense c.614 p.L205R 0.993 "pfam_Aminotrans_3,superfamily_PyrdxlP-dep_Trfase" "pfam_Aminotrans_3,superfamily_PyrdxlP-dep_Trfase" - no_errors AGXT2 HGNC ENSG00000113492 extension NA H_ML-FLX001 H_ML-FLX001-FLX001 NA NA NA 94 10 9.62 FLX001-Naive 5 79032119 79032119 G A SNP tier1 CMYA5 ENST00000446378 human ensembl 74_37 1 known missense c.7531 p.D2511N 0 NULL "pfam_Fibronectin_type3,pfam_SPRY_rcpt,superfamily_ConA-like_lec_gl_sf,superfamily_Fibronectin_type3,smart_Fibronectin_type3,pfscan_B30.2/SPRY,pfscan_Fibronectin_type3" - no_errors CMYA5 HGNC ENSG00000164309 extension 4.09E-05 H_ML-FLX001 H_ML-FLX001-FLX001 NA NA NA 36 27 42.86 FLX001-Naive 6 7584376 7584376 C G SNP tier1 DSP ENST00000379802 human ensembl 74_37 1 known missense c.6881 p.A2294G 1 "pfam_Plectin_repeat,smart_Plectin_repeat" "pfam_Plectin_repeat,smart_Spectrin/alpha-actinin,smart_Plectin_repeat" - no_errors DSP HGNC ENSG00000096696 extension 0.0008376 H_ML-FLX001 H_ML-FLX001-FLX001 NA NA NA 43 23 34.85 FLX001-Naive 7 103159870 103159870 T G SNP tier1 RELN ENST00000424685 human ensembl 74_37 -1 known missense c.7762 p.N2588H 0.998 superfamily_Sialidases "pfam_EGF_extracell,pfam_Reeler_dom,pfam_BNR_rpt,superfamily_Sialidases,superfamily_Growth_fac_rcpt_N_dom,smart_EG-like_dom,pfscan_EG-like_dom,pfscan_Reeler_dom" - no_errors RELN HGNC ENSG00000189056 extension 0.0002196 H_ML-FLX001 H_ML-FLX001-FLX001 NA NA NA 82 62 43.06 FLX001-Naive 9 96054670 96054670 G T SNP tier1 WNK2 ENST00000297954 human ensembl 74_37 1 known missense c.5128 p.V1710F 0 NULL "pfam_Prot_kinase_dom,pfam_Ser-Thr/Tyr_kinase_cat_dom,pfam_Kinase_OSR1/WNK_CCT,superfamily_Kinase-like_dom,smart_Ser/Thr_dual-sp_kinase_dom,smart_Tyr_kinase_cat_dom,pfscan_Prot_kinase_dom" - no_errors WNK2 HGNC ENSG00000165238 extension NA H_ML-FLX001 H_ML-FLX001-FLX001 NA NA NA 65 13 16.67 FLX001-Naive 9 107591223 107591223 C T SNP tier1 ABCA1 ENST00000374736 human ensembl 74_37 -1 known missense c.2089 p.A697T 1 NULL "pfam_ABC_transporter-like,superfamily_P-loop_NTPase,smart_AAA+_ATPase,pfscan_ABC_transporter-like" - no_errors ABCA1 HGNC ENSG00000165029 extension 0.0006424 H_ML-FLX001 H_ML-FLX001-FLX001 NA NA NA 35 25 41.67 FLX001-Naive 9 117848376 117848376 C A SNP tier1 TNC ENST00000350763 human ensembl 74_37 -1 known missense c.1634 p.G545V 1 "pfam_EGF_extracell,smart_EG-like_dom" "pfam_Fibronectin_type3,pfam_Fibrinogen_a/b/g_C_dom,pfam_EGF_extracell,superfamily_Fibrinogen_a/b/g_C_dom,superfamily_Fibronectin_type3,smart_EG-like_dom,smart_Fibronectin_type3,smart_Fibrinogen_a/b/g_C_dom,pfscan_EG-like_dom,pfscan_Fibronectin_type3" - no_errors TNC HGNC ENSG00000041982 extension 0.0002602 H_ML-FLX001 H_ML-FLX001-FLX001 NA NA NA 26 18 40.91 FLX001-Naive 9 127572308 127572308 G C SNP tier1 OLFML2A ENST00000373580 human ensembl 74_37 1 known missense c.1576 p.D526H 1 "pfam_Olfac-like,smart_Olfac-like,pfscan_Olfac-like" "pfam_Olfac-like,smart_Olfac-like,pfscan_Olfac-like" - no_errors OLFML2A HGNC ENSG00000185585 extension 1.63E-05 H_ML-FLX001 H_ML-FLX001-FLX001 NA NA NA 38 28 42.42 FLX001-Naive X 110544940 110544940 G A SNP tier1 DCX ENST00000338081 human ensembl 74_37 -1 known missense c.1301 p.S434L 0.992 pirsf_Doublecortin_chordata "pfam_Doublecortin_dom,smart_Doublecortin_dom,pirsf_Doublecortin_chordata,pfscan_Doublecortin_dom" - no_errors DCX HGNC ENSG00000077279 extension 1.63E-05 H_ML-FLX001 H_ML-FLX001-FLX001 NA NA NA 11 62 84.93 FLX003-Naive 1 55524274 55524274 G T SNP tier1 PCSK9 ENST00000302118 human ensembl 74_37 1 known missense c.1457 p.C486F 1 NULL "pfam_Peptidase_S8/S53_dom,pfam_Inhibitor_I9,superfamily_Peptidase_S8/S53_dom,superfamily_Prot_inh_propept,prints_Peptidase_S8_subtilisin-rel" - no_errors PCSK9 HGNC ENSG00000169174 extension NA H_ML-FLX003 H_ML-FLX003-FLX003 NA NA NA 51 5 8.93 FLX003-Naive 1 91841259 91841259 T C SNP tier1 HFM1 ENST00000370425 human ensembl 74_37 -1 known missense c.1421 p.E474G 0.964 "superfamily_P-loop_NTPase,smart_Helicase_ATP-bd,pfscan_Helicase_ATP-bd" "pfam_Sec63-dom,pfam_DNA/RNA_helicase_DEAD/DEAH_N,pfam_Helicase_C,pfam_Helicase/UvrB_dom,superfamily_P-loop_NTPase,smart_Helicase_ATP-bd,smart_Helicase_C,smart_Sec63-dom,pfscan_Helicase_ATP-bd,pfscan_Helicase_C" - no_errors HFM1 HGNC ENSG00000162669 extension NA H_ML-FLX003 H_ML-FLX003-FLX003 NA NA NA 48 31 39.24 FLX003-Naive 1 152280068 152280068 C T SNP tier1 FLG ENST00000368799 human ensembl 74_37 -1 known missense c.7294 p.G2432R 0 NULL "pfam_Filaggrin,pfam_S100_Ca-bd_sub,pfscan_EF_hand_dom,prints_Filaggrin" - no_errors FLG HGNC ENSG00000143631 extension 3.25E-05 H_ML-FLX003 H_ML-FLX003-FLX003 NA NA NA 46 58 55.77 FLX003-Naive 1 237675076 237675076 C A SNP tier1 RYR2 ENST00000360064 human ensembl 74_37 1 known nonsense c.2801 p.S934* 1 pfam_Ryanodine_rcpt "pfam_Ca-rel_channel,pfam_Ryanodine_rcpt,pfam_Ryanrecept_TM4-6,pfam_SPRY_rcpt,pfam_Ins145_P3_rcpt,pfam_MIR_motif,pfam_RIH_assoc-dom,pfam_Ion_trans_dom,superfamily_MIR_motif,superfamily_ConA-like_lec_gl_sf,smart_MIR_motif,smart_SPla/RYanodine_receptor_subgr,prints_Ryan_recept,pfscan_B30.2/SPRY,pfscan_EF_hand_dom,pfscan_MIR_motif" - no_errors RYR2 HGNC ENSG00000198626 extension NA H_ML-FLX003 H_ML-FLX003-FLX003 NA NA NA 88 8 8.33 FLX003-Naive 10 64573470 64573471 - GGC INS tier1 EGR2 ENST00000242480 human ensembl 74_37 -1 known in_frame_ins c.928_927 p.309in_frame_insA 1.000:1.000 NULL "pfam_DUF3446,pfam_Znf_C2H2,smart_Znf_C2H2-like,pfscan_Znf_C2H2" - no_errors EGR2 HGNC ENSG00000122877 extension 0.0001714 H_ML-FLX003 H_ML-FLX003-FLX003 NA NA NA 24 4 14.29 FLX003-Naive 10 98273391 98273393 GCA - DEL tier1 TLL2 ENST00000357947 human ensembl 74_37 -1 known in_frame_del c.52_50 p.L17in_frame_del 0.869:0.853:0.862 pirsf_BMP_1/tolloid-like "pirsf_BMP_1/tolloid-like,pfam_CUB_dom,pfam_Peptidase_M12A,pfam_EGF-like_Ca-bd_dom,superfamily_CUB_dom,smart_Peptidase_Metallo,smart_CUB_dom,smart_EGF-like_Ca-bd_dom,smart_EG-like_dom,prints_Peptidase_M12A,pfscan_CUB_dom,pfscan_EG-like_dom" - no_errors TLL2 HGNC ENSG00000095587 extension 0.0008956 H_ML-FLX003 H_ML-FLX003-FLX003 NA NA NA 26 4 13.33 FLX003-Naive 11 1097856 1097856 G A SNP tier1 MUC2 ENST00000441003 human ensembl 74_37 1 known missense c.6949 p.G2317S 0 NULL "pfam_VWF_type-D,pfam_Unchr_dom_Cys-rich,pfam_TIL_dom,superfamily_TIL_dom,superfamily_Prot_inh_PMP,smart_VWF_type-D,smart_Unchr_dom_Cys-rich,smart_VWC_out,smart_VWF_C,smart_Cys_knot_C,pfscan_Cys_knot_C,pfscan_VWF_C" - no_errors MUC2 HGNC ENSG00000198788 extension 0.0001311 H_ML-FLX003 H_ML-FLX003-FLX003 NA NA NA 20 6 23.08 FLX003-Naive 11 108163479 108163479 C G SNP tier1 ATM ENST00000278616 human ensembl 74_37 1 known missense c.4570 p.L1524V 1 superfamily_ARM-type_fold "pfam_PIK-rel_kinase_FAT,pfam_PI3/4_kinase_cat_dom,pfam_TAN,pfam_FATC,superfamily_Kinase-like_dom,superfamily_ARM-type_fold,smart_PI3/4_kinase_cat_dom,pfscan_PIK_FAT,pfscan_FATC,pfscan_PI3/4_kinase_cat_dom" - no_errors ATM HGNC ENSG00000149311 extension NA H_ML-FLX003 H_ML-FLX003-FLX003 NA NA NA 65 74 53.24 FLX003-Naive 12 49433646 49433646 G C SNP tier1 KMT2D ENST00000301067 human ensembl 74_37 -1 known nonsense c.7907 p.S2636* 0.993 NULL "pfam_Znf_PHD-finger,pfam_SET_dom,pfam_FYrich_C,pfam_FYrich_N,superfamily_Znf_FYVE_PHD,superfamily_HMG_box_dom,smart_Znf_PHD,smart_Znf_RING,smart_HMG_box_dom,smart_FYrich_N,smart_FYrich_C,smart_SET_dom,smart_Post-SET_dom,pfscan_SET_dom,pfscan_Post-SET_dom,pfscan_Znf_PHD-finger,pfscan_Znf_RING" - no_errors KMT2D HGNC ENSG00000167548 extension NA H_ML-FLX003 H_ML-FLX003-FLX003 NA NA NA 27 25 48.08 FLX003-Naive 13 39433637 39433637 C T SNP tier1 FREM2 ENST00000280481 human ensembl 74_37 1 known missense c.7429 p.R2477W 0.051 NULL "pfam_Calx_beta,superfamily_Cadherin-like,smart_Calx_beta" - no_errors FREM2 HGNC ENSG00000150893 extension 0.000862 H_ML-FLX003 H_ML-FLX003-FLX003 NA NA NA 47 41 46.59 FLX003-Naive 14 71209235 71209235 C T SNP tier1 MAP3K9 ENST00000555993 human ensembl 74_37 -1 known missense c.1400 p.R467H 1 "pirsf_MAPKKK9/10/11,superfamily_Kinase-like_dom,superfamily_Regulat_G_prot_signal_superfam" "pirsf_MAPKKK9/10/11,pfam_Ser-Thr/Tyr_kinase_cat_dom,pfam_Prot_kinase_dom,pfam_SH3_2,pfam_SH3_domain,superfamily_Kinase-like_dom,superfamily_SH3_domain,superfamily_Regulat_G_prot_signal_superfam,smart_SH3_domain,smart_Ser/Thr_dual-sp_kinase_dom,smart_Tyr_kinase_cat_dom,prints_Ser-Thr/Tyr_kinase_cat_dom,prints_SH3_domain,pfscan_SH3_domain,pfscan_Prot_kinase_dom" - no_errors MAP3K9 HGNC ENSG00000006432 extension 2.44E-05 H_ML-FLX003 H_ML-FLX003-FLX003 NA NA NA 20 9 31.03 FLX003-Naive 16 311479 311479 C G SNP tier1 ITFG3 ENST00000301678 human ensembl 74_37 1 known missense c.674 p.P225R 0.02 superfamily_Quinonprotein_ADH-like_supfam superfamily_Quinonprotein_ADH-like_supfam - no_errors ITFG3 HGNC ENSG00000167930 extension 0.0002365 H_ML-FLX003 H_ML-FLX003-FLX003 NA NA NA 19 20 51.28 FLX003-Naive 16 58585160 58585160 G A SNP tier1 CNOT1 ENST00000317147 human ensembl 74_37 -1 known missense c.3218 p.T1073I 1 NULL "pfam_CCR4-Not_Not1_C,superfamily_ARM-type_fold" - no_errors CNOT1 HGNC ENSG00000125107 extension NA H_ML-FLX003 H_ML-FLX003-FLX003 NA NA NA 66 6 8.22 FLX003-Naive 16 81208497 81208497 A C SNP tier1 PKD1L2 ENST00000337114 human ensembl 74_37 -1 known missense c.2606 p.V869G 0.001 "superfamily_Coatomer/clathrin_app_Ig-like,pfscan_REJ-like" "pfam_Lectin_gal-bd_dom,pfam_C-type_lectin,pfam_PKD/REJ-like,superfamily_C-type_lectin_fold,superfamily_Coatomer/clathrin_app_Ig-like,superfamily_PKD_dom,smart_C-type_lectin,pfscan_C-type_lectin,pfscan_Lectin_gal-bd_dom,pfscan_REJ-like" - no_errors PKD1L2 HGNC ENSG00000166473 extension 6.53E-05 H_ML-FLX003 H_ML-FLX003-FLX003 NA NA NA 14 12 46.15 FLX003-Naive 17 7463014 7463015 AG - DEL tier1 TNFSF12-TNFSF13 ENST00000293826 human ensembl 74_37 1 known frame_shift_del c.572_573 p.K192fs 0.996:0.992 NULL "pfam_TNF_dom,superfamily_Tumour_necrosis_fac-like_dom,smart_TNF_dom,pfscan_TNF_dom" - no_errors TNFSF12-TNFSF13 HGNC ENSG00000248871 extension NA H_ML-FLX003 H_ML-FLX003-FLX003 NA NA NA 24 13 35.14 FLX003-Naive 19 38946169 38946169 G A SNP tier1 RYR1 ENST00000359596 human ensembl 74_37 1 known missense c.1655 p.R552Q 1 pfam_Ca-rel_channel "pfam_Ca-rel_channel,pfam_Ryanodine_rcpt,pfam_Ryanrecept_TM4-6,pfam_SPRY_rcpt,pfam_Ins145_P3_rcpt,pfam_MIR_motif,pfam_RIH_assoc-dom,pfam_Ion_trans_dom,superfamily_MIR_motif,superfamily_ConA-like_lec_gl_sf,superfamily_MG_RAP_rcpt_1,smart_MIR_motif,smart_SPla/RYanodine_receptor_subgr,prints_Ryan_recept,pfscan_B30.2/SPRY,pfscan_MIR_motif" - no_errors RYR1 HGNC ENSG00000196218 extension 4.07E-05 H_ML-FLX003 H_ML-FLX003-FLX003 NA NA NA 31 46 59.74 FLX003-Naive 2 21229232 21229232 G A SNP tier1 APOB ENST00000233242 human ensembl 74_37 -1 known missense c.10508 p.S3503L 0.001 NULL "pfam_Lipid_transpt_N,pfam_Vitellinogen_open_b-sht,pfam_ApoB100_C,pfam_Lipid_transpt_open_b-sht,superfamily_Lipid_transp_b-sht_shell,superfamily_Vitellinogen_superhlx,superfamily_ARM-type_fold,smart_Lipid_transpt_N,pfscan_Lipid_transpt_N" - no_errors APOB HGNC ENSG00000084674 extension 4.07E-05 H_ML-FLX003 H_ML-FLX003-FLX003 NA NA NA 33 24 42.11 FLX003-Naive 2 32710721 32710721 C T SNP tier1 BIRC6 ENST00000421745 human ensembl 74_37 1 known missense c.7708 p.R2570C 1 NULL "pfam_DUF3643,pfam_UBQ-conjugat_E2,pfam_BIR,pfam_UEV_N,superfamily_UBQ-conjugating_enzyme/RWD,superfamily_Galactose-bd-like,superfamily_WD40_repeat_dom,smart_BIR,pfscan_BIR,pfscan_UBQ-conjugat_E2" - no_errors BIRC6 HGNC ENSG00000115760 extension NA H_ML-FLX003 H_ML-FLX003-FLX003 NA NA NA 48 68 58.62 FLX003-Naive 2 33246116 33246116 C G SNP tier1 LTBP1 ENST00000354476 human ensembl 74_37 1 known missense c.706 p.P236A 0.763 NULL "pfam_EGF-like_Ca-bd_dom,pfam_TB_dom,pfam_EG-like_dom,superfamily_TB_dom,smart_EG-like_dom,smart_EGF-like_Ca-bd_dom,pfscan_EG-like_dom" - no_errors LTBP1 HGNC ENSG00000049323 extension NA H_ML-FLX003 H_ML-FLX003-FLX003 NA NA NA 30 34 53.12 FLX003-Naive 2 167273415 167273415 A C SNP tier1 SCN7A ENST00000409855 human ensembl 74_37 -1 known missense c.3216 p.F1072L 1 pfam_Ion_trans_dom "pfam_Ion_trans_dom,pfam_Na_trans_assoc,prints_Na_channel_asu" - no_errors SCN7A HGNC ENSG00000136546 extension NA H_ML-FLX003 H_ML-FLX003-FLX003 NA NA NA 37 21 36.21 FLX003-Naive 20 62859335 62859335 C T SNP tier1 MYT1 ENST00000360149 human ensembl 74_37 1 known missense c.1723 p.P575S 0 NULL "pfam_Myelin_TF,pfam_Znf_C2HC" - no_errors MYT1 HGNC ENSG00000196132 extension NA H_ML-FLX003 H_ML-FLX003-FLX003 NA NA NA 72 60 45.11 FLX003-Naive 3 27473127 27473127 C T SNP tier1 SLC4A7 ENST00000454389 human ensembl 74_37 -1 known missense c.812 p.R271Q 1 "pfam_Band3_cytoplasmic_dom,superfamily_PTrfase/Anion_transptr" "pfam_HCO3_transpt_C,pfam_Band3_cytoplasmic_dom,superfamily_PTrfase/Anion_transptr,prints_HCO3_transpt_euk,tigrfam_HCO3_transpt_euk" - no_errors SLC4A7 HGNC ENSG00000033867 extension 0.0008052 H_ML-FLX003 H_ML-FLX003-FLX003 NA NA NA 28 20 41.67 FLX003-Naive 3 50293703 50293703 A G SNP tier1 GNAI2 ENST00000313601 human ensembl 74_37 1 known missense c.544 p.T182A 1 "pfam_Gprotein_alpha_su,pfam_Small_GTPase_ARF/SAR,superfamily_P-loop_NTPase,superfamily_GproteinA_insert,smart_Gprotein_alpha_su,prints_Gprotein_alpha_su" "pfam_Gprotein_alpha_su,pfam_Small_GTPase_ARF/SAR,superfamily_P-loop_NTPase,superfamily_GproteinA_insert,smart_Gprotein_alpha_su,prints_Gprotein_alpha_su,prints_Gprotein_alpha_I,prints_Fungi_Gprotein_alpha" - no_errors GNAI2 HGNC ENSG00000114353 extension NA H_ML-FLX003 H_ML-FLX003-FLX003 NA NA NA 49 5 9.26 FLX003-Naive 4 155191115 155191115 T C SNP tier1 DCHS2 ENST00000357232 human ensembl 74_37 -1 known missense c.5149 p.S1717G 0 "pfam_Cadherin,superfamily_Cadherin-like,smart_Cadherin,pfscan_Cadherin" "pfam_Cadherin,pfam_HTH_CenpB_DNA-bd_dom,superfamily_Cadherin-like,superfamily_Homeodomain-like,smart_Cadherin,pfscan_Cadherin,prints_Cadherin" - no_errors DCHS2 HGNC ENSG00000197410 extension NA H_ML-FLX003 H_ML-FLX003-FLX003 NA NA NA 71 68 48.92 FLX003-Naive 5 23527575 23527575 G T SNP tier1 PRDM9 ENST00000296682 human ensembl 74_37 1 known missense c.2378 p.S793I 0 "pfam_Znf_C2H2,smart_Znf_C2H2-like,pfscan_Znf_C2H2" "pfam_Znf_C2H2,pfam_SSXRD_motif,pfam_Krueppel-associated_box,superfamily_Krueppel-associated_box,smart_Krueppel-associated_box,smart_Znf_C2H2-like,pfscan_SET_dom,pfscan_Znf_C2H2,pfscan_Krueppel-associated_box,pfscan_Krueppel-associated_box-rel" - no_errors PRDM9 HGNC ENSG00000164256 extension NA H_ML-FLX003 H_ML-FLX003-FLX003 NA NA NA 53 32 37.65 FLX003-Naive 5 80408614 80408614 C T SNP tier1 RASGRF2 ENST00000265080 human ensembl 74_37 1 known missense c.2024 p.A675V 1 "pfam_Ras-like_Gua-exchang_fac_N,superfamily_Ras_GEF_dom,smart_Ras-like_Gua-exchang_fac_N,pfscan_Ras-like_Gua-exchang_fac_N" "pfam_RasGRF_CDC25,pfam_Ras-like_Gua-exchang_fac_N,pfam_DH-domain,pfam_Pleckstrin_homology,superfamily_Ras_GEF_dom,superfamily_DH-domain,smart_Pleckstrin_homology,smart_DH-domain,smart_Ras-like_Gua-exchang_fac_N,smart_RasGRF_CDC25,pfscan_IQ_motif_EF-hand-BS,pfscan_Pleckstrin_homology,pfscan_DH-domain,pfscan_RasGRF_CDC25,pfscan_Ras-like_Gua-exchang_fac_N" - no_errors RASGRF2 HGNC ENSG00000113319 extension NA H_ML-FLX003 H_ML-FLX003-FLX003 NA NA NA 49 57 53.77 FLX003-Naive 6 160977123 160977123 G A SNP tier1 LPA ENST00000316300 human ensembl 74_37 -1 known missense c.4907 p.T1636I 0.916 "pfam_Kringle,superfamily_Kringle-like,smart_Kringle,pfscan_Kringle" "pfam_Kringle,pfam_Peptidase_S1,pfam_Peptidase_S1A_nudel,superfamily_Trypsin-like_Pept_dom,superfamily_Kringle-like,smart_Kringle,smart_Peptidase_S1,prints_Peptidase_S1A,pfscan_Kringle,pfscan_Peptidase_S1" - no_errors LPA HGNC ENSG00000198670 extension NA H_ML-FLX003 H_ML-FLX003-FLX003 NA NA NA 46 64 58.18 FLX003-Naive 7 2979495 2979495 A G SNP tier1 CARD11 ENST00000396946 human ensembl 74_37 -1 known missense c.752 p.L251P 0.961 NULL "pfam_CARD,superfamily_DEATH-like_dom,superfamily_P-loop_NTPase,superfamily_PDZ,pfscan_CARD" - no_errors CARD11 HGNC ENSG00000198286 extension NA H_ML-FLX003 H_ML-FLX003-FLX003 NA NA NA 47 34 41.98 FLX003-Naive 7 31614340 31614340 G C SNP tier1 CCDC129 ENST00000451887 human ensembl 74_37 1 known missense c.660 p.E220D 1 NULL NULL - no_errors CCDC129 HGNC ENSG00000180347 extension NA H_ML-FLX003 H_ML-FLX003-FLX003 NA NA NA 53 18 25.35 FLX003-Naive 7 31683535 31683535 C G SNP tier1 CCDC129 ENST00000451887 human ensembl 74_37 1 known missense c.2629 p.L877V 0.739 NULL NULL - no_errors CCDC129 HGNC ENSG00000180347 extension NA H_ML-FLX003 H_ML-FLX003-FLX003 NA NA NA 29 14 31.82 FLX003-Naive 7 116364824 116364824 A T SNP tier1 MET ENST00000495962 human ensembl 74_37 1 known splice_site c.NULL NULL 0 - - - no_errors MET HGNC ENSG00000105976 extension NA H_ML-FLX003 H_ML-FLX003-FLX003 NA NA NA 45 4 3.6 FLX003-Naive 7 120385841 120385841 A T SNP tier1 KCND2 ENST00000331113 human ensembl 74_37 1 known missense c.1475 p.E492V 1 pfam_K_chnl_volt-dep_Kv4_C "pfam_K_chnl_volt-dep_Kv4_C,pfam_T1-type_BTB,pfam_Ion_trans_dom,pfam_Shal-type,pfam_2pore_dom_K_chnl_dom,superfamily_BTB/POZ_fold,smart_BTB/POZ-like,prints_K_chnl,prints_K_chnl_volt-dep_Kv4,prints_K_chnl_volt-dep_Kv4.2,prints_K_chnl_volt-dep_Kv,prints_K_chnl_volt-dep_Kv3" - no_errors KCND2 HGNC ENSG00000184408 extension 8.13E-06 H_ML-FLX003 H_ML-FLX003-FLX003 NA NA NA 38 47 55.29 FLX003-Naive 8 36698047 36698047 C T SNP tier1 KCNU1 ENST00000399881 human ensembl 74_37 1 known missense c.1585 p.R529C 0.112 pfam_K_chnl_Ca-activ_BK_asu "pfam_K_chnl_Ca-activ_BK_asu,pfam_2pore_dom_K_chnl_dom,prints_K_chnl_Ca-activ_BK_asu" - no_errors KCNU1 HGNC ENSG00000215262 extension 0.0001144 H_ML-FLX003 H_ML-FLX003-FLX003 NA NA NA 81 41 33.61 FLX003-Naive 8 42036464 42036464 C G SNP tier1 PLAT ENST00000220809 human ensembl 74_37 -1 known missense c.1481 p.G494A 1 "pfam_Peptidase_S1,superfamily_Trypsin-like_Pept_dom,smart_Peptidase_S1,pfscan_Peptidase_S1" "pfam_Peptidase_S1,pfam_Kringle,pfam_Fibronectin_type1,pfam_EG-like_dom,superfamily_Trypsin-like_Pept_dom,superfamily_Kringle-like,smart_Fibronectin_type1,smart_Kringle,smart_Peptidase_S1,pfscan_EG-like_dom,pfscan_Fibronectin_type1,pfscan_Kringle,pfscan_Peptidase_S1,prints_Peptidase_S1A" - no_errors PLAT HGNC ENSG00000104368 extension 0.0008295 H_ML-FLX003 H_ML-FLX003-FLX003 NA NA NA 21 16 43.24 FLX003-Naive 8 77618148 77618148 C A SNP tier1 ZFHX4 ENST00000521891 human ensembl 74_37 1 known missense c.1825 p.P609T 1 NULL "pfam_Homeobox_dom,superfamily_Homeodomain-like,superfamily_Adenylate_cyclase-assoc_CAP_N,smart_Znf_C2H2-like,smart_Znf_U1,smart_Homeobox_dom,pfscan_Homeobox_dom,pfscan_Znf_C2H2" - no_errors ZFHX4 HGNC ENSG00000091656 extension NA H_ML-FLX003 H_ML-FLX003-FLX003 NA NA NA 28 6 17.65 FLX003-Naive 8 132052066 132052066 G T SNP tier1 ADCY8 ENST00000286355 human ensembl 74_37 -1 known missense c.514 p.R172S 1 NULL "pfam_A/G_cyclase,pfam_Adenylate_cyclase-like,superfamily_A/G_cyclase,smart_A/G_cyclase,pfscan_A/G_cyclase" - no_errors ADCY8 HGNC ENSG00000155897 extension NA H_ML-FLX003 H_ML-FLX003-FLX003 NA NA NA 29 32 52.46 FLX003-Naive 9 128094818 128094818 A T SNP tier1 GAPVD1 ENST00000394105 human ensembl 74_37 1 known missense c.2338 p.N780Y 1 NULL "pfam_RasGAP,pfam_VPS9,superfamily_Rho_GTPase_activation_prot,smart_VPS9_subgr,pfscan_VPS9,pfscan_RasGAP" - no_errors GAPVD1 HGNC ENSG00000165219 extension 8.13E-06 H_ML-FLX003 H_ML-FLX003-FLX003 NA NA NA 82 59 41.84 FLX003-Naive 9 136320474 136320474 C T SNP tier1 ADAMTS13 ENST00000371929 human ensembl 74_37 1 known missense c.3317 p.A1106V 0 "superfamily_Thrombospondin_1_rpt,smart_Thrombospondin_1_rpt,pfscan_Thrombospondin_1_rpt" "pfam_Thrombospondin_1_rpt,pfam_Peptidase_M12B,superfamily_Thrombospondin_1_rpt,superfamily_CUB_dom,smart_ADAM_Cys-rich,smart_Thrombospondin_1_rpt,pfscan_Thrombospondin_1_rpt,pfscan_Peptidase_M12B,prints_Peptidase_M12B_ADAM-TS" - no_errors ADAMTS13 HGNC ENSG00000160323 extension 8.13E-05 H_ML-FLX003 H_ML-FLX003-FLX003 NA NA NA 21 6 22.22 FLX003-Naive X 39913562 39913562 C T SNP tier1 BCOR ENST00000378444 human ensembl 74_37 -1 known missense c.4766 p.R1589H 0.975 NULL "pfam_Ankyrin_rpt,superfamily_Ankyrin_rpt-contain_dom,smart_Ankyrin_rpt,pfscan_Ankyrin_rpt,pfscan_Ankyrin_rpt-contain_dom" - no_errors BCOR HGNC ENSG00000183337 extension 3.25E-05 H_ML-FLX003 H_ML-FLX003-FLX003 NA NA NA 54 38 41.3 FLX003-Naive X 112066059 112066059 C T SNP tier1 AMOT ENST00000371959 human ensembl 74_37 -1 known missense c.296 p.R99Q 0.957 NULL "pfam_Angiomotin_C,superfamily_Prefoldin,prints_Angiomotin" - no_errors AMOT HGNC ENSG00000126016 extension 3.74E-05 H_ML-FLX003 H_ML-FLX003-FLX003 NA NA NA 18 30 62.5 FLX004-Naive 1 39775328 39775328 G A SNP tier1 MACF1 ENST00000317713 human ensembl 74_37 1 known missense c.2891 p.R964H 0.949 NULL "pfam_Spectrin_repeat,pfam_CH-domain,pfam_GAS2_dom,pfam_CAMSAP_CH,superfamily_CH-domain,superfamily_GAS2_dom,smart_CH-domain,smart_Spectrin/alpha-actinin,smart_EF_hand_dom,smart_GAS2_dom,pfscan_CH-domain,pfscan_EF_hand_dom" - no_errors MACF1 HGNC ENSG00000127603 extension 8.13E-06 H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 94 84 47.19 FLX004-Naive 1 155340670 155340670 C T SNP tier1 ASH1L ENST00000368346 human ensembl 74_37 -1 known missense c.6452 p.R2151Q 1 "smart_SET_dom,pfscan_SET_dom" "pfam_SET_dom,pfam_BAH_dom,pfam_Bromodomain,pfam_Znf_PHD-finger,superfamily_Bromodomain,superfamily_Znf_FYVE_PHD,smart_AT_hook_DNA-bd_motif,smart_AWS,smart_SET_dom,smart_Bromodomain,smart_Znf_PHD,smart_BAH_dom,pfscan_AWS,pfscan_BAH_dom,pfscan_SET_dom,pfscan_Post-SET_dom,pfscan_Bromodomain" - no_errors ASH1L HGNC ENSG00000116539 extension 0.0001708 H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 74 78 51.32 FLX004-Naive 1 245027087 245027087 G A SNP tier1 HNRNPU ENST00000283179 human ensembl 74_37 -1 known nonsense c.523 p.Q175* 0.827 NULL "pfam_SPRY_rcpt,pfam_SAP_dom,pfam_Zeta_toxin_domain,superfamily_ConA-like_lec_gl_sf,superfamily_P-loop_NTPase,smart_SAP_dom,smart_SPla/RYanodine_receptor_subgr,pfscan_B30.2/SPRY,pfscan_SAP_dom" - no_errors HNRNPU HGNC ENSG00000153187 extension NA H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 24 18 42.86 FLX004-Naive 10 28276356 28276356 G A SNP tier1 ARMC4 ENST00000305242 human ensembl 74_37 -1 known missense c.341 p.A114V 0.994 NULL "pfam_Armadillo,superfamily_ARM-type_fold,superfamily_GSKIP_dom,smart_Armadillo,pfscan_Armadillo" - no_errors ARMC4 HGNC ENSG00000169126 extension NA H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 99 58 36.94 FLX004-Naive 10 50038825 50038825 T G SNP tier1 WDFY4 ENST00000325239 human ensembl 74_37 1 known missense c.6421 p.F2141V 0.991 NULL "pfam_BEACH_dom,pfam_WD40_repeat,superfamily_BEACH_dom,superfamily_WD40_repeat_dom,superfamily_ARM-type_fold,smart_WD40_repeat,pfscan_BEACH_dom,pfscan_WD40_repeat,pfscan_WD40_repeat_dom" - no_errors WDFY4 HGNC ENSG00000128815 extension NA H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 67 46 40.71 FLX004-Naive 10 50959958 50959958 G A SNP tier1 OGDHL ENST00000374103 human ensembl 74_37 -1 known missense c.664 p.R222W 1 "pirsf_2oxoglutarate_DH_E1,tigrfam_2oxoglutarate_DH_E1" "pfam_DH_E1,pfam_Transketolase-like_Pyr-bd,smart_Transketolase-like_Pyr-bd,pirsf_2oxoglutarate_DH_E1,tigrfam_2oxoglutarate_DH_E1" - no_errors OGDHL HGNC ENSG00000197444 extension 4.07E-05 H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 34 24 41.38 FLX004-Naive 10 97960814 97960814 C T SNP tier1 BLNK ENST00000224337 human ensembl 74_37 -1 known missense c.935 p.R312K 1 NULL "pfam_SH2,smart_SH2,pfscan_SH2" - no_errors BLNK HGNC ENSG00000095585 extension 8.13E-06 H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 28 59 67.82 FLX004-Naive 12 309921 309921 T C SNP tier1 SLC6A12 ENST00000359674 human ensembl 74_37 -1 known missense c.607 p.I203V 1 "pfam_Na/ntran_symport,pfscan_Na/ntran_symport" "pfam_Na/ntran_symport,pfscan_Na/ntran_symport,prints_Na/ntran_symport,prints_Na/ntran_symport_betaine" - no_errors SLC6A12 HGNC ENSG00000111181 extension 0.0004798 H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 42 68 61.82 FLX004-Naive 12 26784910 26784910 C T SNP tier1 ITPR2 ENST00000381340 human ensembl 74_37 -1 known missense c.2823 p.M941I 0.813 superfamily_ARM-type_fold "pfam_Ca-rel_channel,pfam_Ins145_P3_rcpt,pfam_MIR_motif,pfam_RIH_assoc-dom,pfam_Ion_trans_dom,superfamily_MIR_motif,superfamily_ARM-type_fold,smart_MIR_motif,prints_InsP3_rcpt-bd,pfscan_MIR_motif" - no_errors ITPR2 HGNC ENSG00000123104 extension 8.16E-05 H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 66 97 59.51 FLX004-Naive 12 49416482 49416482 C T SNP tier1 KMT2D ENST00000301067 human ensembl 74_37 -1 known missense c.16229 p.G5410E 1 "pfam_SET_dom,smart_SET_dom,pfscan_SET_dom" "pfam_Znf_PHD-finger,pfam_SET_dom,pfam_FYrich_C,pfam_FYrich_N,superfamily_Znf_FYVE_PHD,superfamily_HMG_box_dom,smart_Znf_PHD,smart_Znf_RING,smart_HMG_box_dom,smart_FYrich_N,smart_FYrich_C,smart_SET_dom,smart_Post-SET_dom,pfscan_SET_dom,pfscan_Post-SET_dom,pfscan_Znf_PHD-finger,pfscan_Znf_RING" - no_errors KMT2D HGNC ENSG00000167548 extension NA H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 124 41 24.7 FLX004-Naive 12 111088002 111088002 G A SNP tier1 HVCN1 ENST00000242607 human ensembl 74_37 -1 known nonsense c.727 p.Q243* 1 NULL pfam_Ion_trans_dom - no_errors HVCN1 HGNC ENSG00000122986 extension NA H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 56 65 53.72 FLX004-Naive 13 95727794 95727794 C A SNP tier1 ABCC4 ENST00000376887 human ensembl 74_37 -1 known missense c.2698 p.V900L 1 "pfam_ABC_transptr_TM_dom,superfamily_ABC1_TM_dom,pfscan_ABC1_TM_dom" "pfam_ABC_transptr_TM_dom,pfam_ABC_transporter-like,superfamily_ABC1_TM_dom,superfamily_P-loop_NTPase,smart_AAA+_ATPase,pfscan_ABC_transporter-like,pfscan_ABC1_TM_dom,prints_CysFib_conduc_TM" - no_errors ABCC4 HGNC ENSG00000125257 extension 0.0009759 H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 61 37 37.76 FLX004-Naive 14 79423615 79423615 A T SNP tier1 NRXN3 ENST00000554738 human ensembl 74_37 1 known missense c.2273 p.Q758L 1 "pfam_Laminin_G,superfamily_ConA-like_lec_gl_sf,smart_Laminin_G,pfscan_Laminin_G" "pfam_Laminin_G,superfamily_ConA-like_lec_gl_sf,smart_Laminin_G,smart_EG-like_dom,pfscan_EG-like_dom,pfscan_Laminin_G" - no_errors NRXN3 HGNC ENSG00000021645 extension NA H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 135 76 36.02 FLX004-Naive 14 105412990 105412990 G A SNP tier1 AHNAK2 ENST00000333244 human ensembl 74_37 -1 known missense c.8798 p.T2933M 0 NULL "superfamily_PDZ,smart_PDZ,pfscan_PDZ" - no_errors AHNAK2 HGNC ENSG00000185567 extension 0.0001471 H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 48 24 33.33 FLX004-Naive 15 65489979 65489979 C T SNP tier1 CILP ENST00000261883 human ensembl 74_37 -1 known missense c.2645 p.R882K 1 NULL "pfam_Ig_I-set,pfam_Thrombospondin_1_rpt,superfamily_Thrombospondin_1_rpt,superfamily_CarboxyPept-like_regulatory,smart_Thrombospondin_1_rpt,smart_Ig_sub,smart_Ig_sub2,pfscan_Thrombospondin_1_rpt,pfscan_Ig-like_dom" - no_errors CILP HGNC ENSG00000138615 extension NA H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 26 39 60 FLX004-Naive 15 101593248 101593248 C T SNP tier1 LRRK1 ENST00000388948 human ensembl 74_37 1 known missense c.3811 p.R1271C 0.981 "pfam_Prot_kinase_dom,pfam_Ser-Thr/Tyr_kinase_cat_dom,superfamily_Kinase-like_dom,smart_Ser/Thr_dual-sp_kinase_dom,smart_Tyr_kinase_cat_dom,pfscan_Prot_kinase_dom" "pfam_Prot_kinase_dom,pfam_Ser-Thr/Tyr_kinase_cat_dom,pfam_Leu-rich_rpt,pfam_MIRO-like,pfam_Small_GTPase_ARF/SAR,pfam_Small_GTPase,superfamily_Kinase-like_dom,superfamily_P-loop_NTPase,superfamily_Ankyrin_rpt-contain_dom,superfamily_WD40_repeat_dom,smart_Ankyrin_rpt,smart_Leu-rich_rpt_typical-subtyp,smart_Ser/Thr_dual-sp_kinase_dom,smart_Tyr_kinase_cat_dom,pfscan_Ankyrin_rpt-contain_dom,pfscan_Prot_kinase_dom" - no_errors LRRK1 HGNC ENSG00000154237 extension 5.71E-05 H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 37 26 41.27 FLX004-Naive 16 3786704 3786704 A T SNP tier1 CREBBP ENST00000262367 human ensembl 74_37 -1 known missense c.4507 p.Y1503N 1 pfam_Histone_H3-K56_AcTrfase_RTT109 "pfam_Histone_H3-K56_AcTrfase_RTT109,pfam_Nuc_rcpt_coact_CREBbp,pfam_KIX_dom,pfam_DUF902_CREBbp,pfam_Znf_TAZ,pfam_Bromodomain,pfam_Znf_ZZ,superfamily_Bromodomain,superfamily_Znf_TAZ,superfamily_KIX_dom,superfamily_Nuc_rcpt_coact,superfamily_Znf_FYVE_PHD,smart_Znf_TAZ,smart_Bromodomain,smart_Znf_ZZ,pfscan_KIX_dom,pfscan_Znf_TAZ,pfscan_Znf_ZZ,pfscan_Bromodomain,prints_Bromodomain" - no_errors CREBBP HGNC ENSG00000005339 extension NA H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 99 55 35.71 FLX004-Naive 16 27475887 27475887 C T SNP tier1 GTF3C1 ENST00000356183 human ensembl 74_37 -1 known missense c.5626 p.E1876K 0.001 NULL pfam_TFIIIC_Bblock-bd - no_errors GTF3C1 HGNC ENSG00000077235 extension 0.0002538 H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 23 35 60.34 FLX004-Naive 16 85691069 85691069 G A SNP tier1 GSE1 ENST00000253458 human ensembl 74_37 1 known missense c.1499 p.R500Q 1 NULL pfam_GSE-like - no_errors GSE1 HGNC ENSG00000131149 extension 3.28E-05 H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 23 19 45.24 FLX004-Naive 17 10299723 10299723 A G SNP tier1 MYH8 ENST00000403437 human ensembl 74_37 -1 known missense c.4577 p.I1526T 1 "pfam_Myosin_tail,superfamily_t-SNARE" "pfam_Myosin_tail,pfam_Myosin_head_motor_dom,pfam_Myosin_N,superfamily_P-loop_NTPase,superfamily_Prefoldin,superfamily_t-SNARE,smart_Myosin_head_motor_dom,pfscan_IQ_motif_EF-hand-BS,prints_Myosin_head_motor_dom" - no_errors MYH8 HGNC ENSG00000133020 extension NA H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 54 27 33.33 FLX004-Naive 17 11568224 11568224 G T SNP tier1 DNAH9 ENST00000262442 human ensembl 74_37 1 known missense c.2670 p.L890F 1 NULL "pfam_Dynein_heavy_dom,pfam_Dynein_heavy_dom-1,pfam_Dynein_heavy_dom-2,pfam_ATPase_dyneun-rel_AAA,superfamily_P-loop_NTPase,smart_AAA+_ATPase" - no_errors DNAH9 HGNC ENSG00000007174 extension NA H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 109 63 36.21 FLX004-Naive 18 8384601 8384601 G A SNP tier1 PTPRM ENST00000400060 human ensembl 74_37 1 known missense c.3964 p.G1322S 1 "pfam_Tyr_Pase_rcpt/non-rcpt,smart_Tyr_Pase_rcpt/non-rcpt,pfscan_Tyr_Pase_rcpt/non-rcpt" "pfam_Tyr_Pase_rcpt/non-rcpt,pfam_MAM_dom,pfam_Fibronectin_type3,pfam_Immunoglobulin,superfamily_ConA-like_lec_gl_sf,superfamily_Fibronectin_type3,smart_MAM_dom,smart_Ig_sub,smart_Fibronectin_type3,smart_Tyr_Pase_rcpt/non-rcpt,smart_Tyr_Pase_cat,pfscan_Fibronectin_type3,pfscan_MAM_dom,pfscan_Tyr/Dual-sp_Pase,pfscan_Tyr_Pase_rcpt/non-rcpt,pfscan_Ig-like_dom,prints_Tyr_Pase_rcpt/non-rcpt,prints_MAM_dom" - no_errors PTPRM HGNC ENSG00000173482 extension 4.88E-05 H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 96 59 37.58 FLX004-Naive 18 77066999 77066999 C A SNP tier1 ATP9B ENST00000426216 human ensembl 74_37 1 known missense c.1538 p.A513D 0.001 "pfam_HAD-like_dom,superfamily_HAD-like_dom,superfamily_ATPase_P-typ_cyto_domN,tigrfam_ATPase_P-typ_Plipid-transp" "pfam_ATPase_P-typ_transduc_dom_A,pfam_HAD-like_dom,superfamily_HAD-like_dom,superfamily_ATPase_P-typ_cyto_domN,prints_Cation_transp_P_typ_ATPase,tigrfam_ATPase_P-typ_Plipid-transp,tigrfam_Cation_transp_P_typ_ATPase" - no_errors ATP9B HGNC ENSG00000166377 extension 0.0005855 H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 72 57 43.51 FLX004-Naive 19 5151395 5151395 C T SNP tier1 KDM4B ENST00000159111 human ensembl 74_37 1 known missense c.3164 p.A1055V 0.53 NULL "pfam_JmjC_dom,pfam_TF_JmjN,superfamily_Znf_FYVE_PHD,smart_TF_JmjN,smart_JmjC_dom,smart_Znf_PHD,smart_Tudor,pfscan_TF_JmjN,pfscan_JmjC_dom" - no_errors KDM4B HGNC ENSG00000127663 extension 0.0004183 H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 18 14 43.75 FLX004-Naive 19 16687196 16687196 C T SNP tier1 MED26 ENST00000263390 human ensembl 74_37 -1 known missense c.1445 p.R482H 1 NULL "pfam_TFIIS_N,superfamily_TFIIS_N,smart_TFIIS/CRSP70_N_sub" - no_errors MED26 HGNC ENSG00000105085 extension 4.07E-05 H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 23 20 46.51 FLX004-Naive 2 32679010 32679010 A G SNP tier1 BIRC6 ENST00000421745 human ensembl 74_37 1 known missense c.4753 p.M1585V 1 NULL "pfam_DUF3643,pfam_UBQ-conjugat_E2,pfam_BIR,pfam_UEV_N,superfamily_UBQ-conjugating_enzyme/RWD,superfamily_Galactose-bd-like,superfamily_WD40_repeat_dom,smart_BIR,pfscan_BIR,pfscan_UBQ-conjugat_E2" - no_errors BIRC6 HGNC ENSG00000115760 extension 3.25E-05 H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 99 81 45 FLX004-Naive 2 80801303 80801303 C A SNP tier1 CTNNA2 ENST00000361291 human ensembl 74_37 1 known missense c.1859 p.A620D 1 "pfam_Vinculin/catenin,superfamily_Vinculin/catenin" "pfam_Vinculin/catenin,superfamily_Vinculin/catenin,prints_Alpha_catenin,prints_Vinculin" - no_errors CTNNA2 HGNC ENSG00000066032 extension NA H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 107 58 35.15 FLX004-Naive 3 3189256 3189256 T G SNP tier1 TRNT1 ENST00000251607 human ensembl 74_37 1 known missense c.925 p.L309V 0.87 NULL pfam_PolA_pol_head_dom - no_errors TRNT1 HGNC ENSG00000072756 extension NA H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 83 67 44.67 FLX004-Naive 3 48605174 48605174 C T SNP tier1 COL7A1 ENST00000328333 human ensembl 74_37 -1 known missense c.7952 p.R2651H 0.876 pfam_Collagen "pfam_Collagen,pfam_Fibronectin_type3,pfam_VWF_A,pfam_Prot_inh_Kunz-m,superfamily_Fibronectin_type3,superfamily_Prot_inh_Kunz-m,smart_VWF_A,smart_Fibronectin_type3,pfscan_Fibronectin_type3,pfscan_VWF_A,pfscan_Prot_inh_Kunz-m,prints_Prot_inh_Kunz-m" - no_errors COL7A1 HGNC ENSG00000114270 extension 2.44E-05 H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 31 22 41.51 FLX004-Naive 3 50387257 50387257 T C SNP tier1 NPRL2 ENST00000232501 human ensembl 74_37 -1 known missense c.178 p.M60V 1 pfam_NPR2 pfam_NPR2 - no_errors NPRL2 HGNC ENSG00000114388 extension 2.44E-05 H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 31 29 47.54 FLX004-Naive 3 108189553 108189553 T C SNP tier1 MYH15 ENST00000273353 human ensembl 74_37 -1 known missense c.1435 p.I479V 1 "pfam_Myosin_head_motor_dom,superfamily_P-loop_NTPase,smart_Myosin_head_motor_dom,prints_Myosin_head_motor_dom" "pfam_Myosin_head_motor_dom,pfam_Myosin_tail,pfam_Myosin_N,superfamily_P-loop_NTPase,superfamily_Prefoldin,superfamily_Lambda_DNA-bd_dom,smart_Myosin_head_motor_dom,prints_Myosin_head_motor_dom" - no_errors MYH15 HGNC ENSG00000144821 extension 0.0003023 H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 63 50 44.25 FLX004-Naive 3 130098653 130098653 G T SNP tier1 COL6A5 ENST00000265379 human ensembl 74_37 1 known missense c.1060 p.V354L 0.929 "pfam_VWF_A,smart_VWF_A,pfscan_VWF_A" "pfam_VWF_A,pfam_Collagen,smart_VWF_A,pfscan_VWF_A" - no_errors COL6A5 HGNC ENSG00000172752 extension 0.000507 H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 40 49 55.06 FLX004-Naive 4 37446489 37446489 G A SNP tier1 KIAA1239 ENST00000309447 human ensembl 74_37 1 known missense c.2879 p.R960H 0.999 "superfamily_WD40_repeat_dom,smart_WD40_repeat" "superfamily_WD40_repeat_dom,superfamily_P-loop_NTPase,smart_WD40_repeat,pfscan_WD40_repeat_dom" - no_errors KIAA1239 HGNC ENSG00000174145 extension 3.67E-05 H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 23 29 55.77 FLX004-Naive 4 62936539 62936539 T A SNP tier1 LPHN3 ENST00000507625 human ensembl 74_37 1 known missense c.4500 p.S1500R 1 pfam_GPCR_2_latrophilin_rcpt_C "pfam_GPCR_2_latrophilin_rcpt_C,pfam_Olfac-like,pfam_DUF3497,pfam_GPCR_2_secretin-like,pfam_Lectin_gal-bd_dom,pfam_GPS_dom,pfam_GPCR_2_extracellular_dom,smart_Olfac-like,smart_GPCR_2_extracellular_dom,smart_GPS_dom,pfscan_GPS_dom,pfscan_Lectin_gal-bd_dom,pfscan_Olfac-like,pfscan_GPCR_2_extracellular_dom,pfscan_GPCR_2-like,prints_GPCR_2_latrophilin,prints_GPCR_2_secretin-like" - no_errors LPHN3 HGNC ENSG00000150471 extension NA H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 48 25 34.25 FLX004-Naive 4 187629679 187629679 C A SNP tier1 FAT1 ENST00000441802 human ensembl 74_37 -1 known nonsense c.1303 p.E435* 1 "superfamily_Cadherin-like,smart_Cadherin,pfscan_Cadherin" "pfam_Cadherin,pfam_Laminin_G,pfam_EG-like_dom,pfam_EGF-like_Ca-bd_dom,superfamily_ConA-like_lec_gl_sf,superfamily_Cadherin-like,smart_Cadherin,smart_EG-like_dom,smart_Laminin_G,smart_EGF-like_Ca-bd_dom,prints_Cadherin,pfscan_EG-like_dom,pfscan_Laminin_G,pfscan_Cadherin" - no_errors FAT1 HGNC ENSG00000083857 extension NA H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 57 31 35.23 FLX004-Naive 5 35876524 35876524 C G SNP tier1 IL7R ENST00000303115 human ensembl 74_37 1 known missense c.1316 p.T439S 0.049 NULL "pfam_Fibronectin_type3,superfamily_Fibronectin_type3" - no_errors IL7R HGNC ENSG00000168685 extension 0.0003822 H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 22 10 31.25 FLX004-Naive 5 66448499 66448499 G A SNP tier1 MAST4 ENST00000404260 human ensembl 74_37 1 known missense c.3339 p.M1113I 1 superfamily_PDZ "pfam_MA_Ser/Thr_Kinase_dom,pfam_Prot_kinase_dom,pfam_Ser-Thr/Tyr_kinase_cat_dom,pfam_PDZ,superfamily_Kinase-like_dom,superfamily_MAST_pre-PK_dom,superfamily_PDZ,smart_Ser/Thr_dual-sp_kinase_dom,smart_Tyr_kinase_cat_dom,smart_PDZ,pfscan_PDZ,pfscan_Prot_kinase_dom" - no_errors MAST4 HGNC ENSG00000069020 extension NA H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 69 47 40.52 FLX004-Naive 5 118485256 118485256 C A SNP tier1 DMXL1 ENST00000539542 human ensembl 74_37 1 known missense c.3734 p.S1245Y 1 superfamily_WD40_repeat_dom "pfam_Rav1p_C,pfam_WD40_repeat,superfamily_WD40_repeat_dom,smart_WD40_repeat,pfscan_WD40_repeat,pfscan_WD40_repeat_dom" - no_errors DMXL1 HGNC ENSG00000172869 extension 0.0005124 H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 34 35 50.72 FLX004-Naive 5 127615908 127615908 T C SNP tier1 FBN2 ENST00000262464 human ensembl 74_37 -1 known missense c.7114 p.S2372G 0.99 "pirsf_FBN,pfam_EGF-like_Ca-bd_dom,superfamily_TB_dom,smart_EGF-like_Ca-bd_dom,smart_EG-like_dom,pfscan_EG-like_dom" "pirsf_FBN,pfam_EGF-like_Ca-bd_dom,pfam_EG-like_dom,pfam_TB_dom,superfamily_TB_dom,superfamily_Cadherin-like,smart_EG-like_dom,smart_EGF-like_Ca-bd_dom,pfscan_EG-like_dom" - no_errors FBN2 HGNC ENSG00000138829 extension NA H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 98 30 23.44 FLX004-Naive 5 150924452 150924452 A G SNP tier1 FAT2 ENST00000261800 human ensembl 74_37 -1 known missense c.6236 p.I2079T 0.06 "pfam_Cadherin,superfamily_Cadherin-like,pfscan_Cadherin" "pfam_Cadherin,pfam_Laminin_G,superfamily_Cadherin-like,superfamily_ConA-like_lec_gl_sf,smart_Cadherin,smart_Laminin_G,smart_EGF-like_Ca-bd_dom,smart_EG-like_dom,pfscan_EG-like_dom,pfscan_Laminin_G,pfscan_Cadherin,prints_Cadherin" - no_errors FAT2 HGNC ENSG00000086570 extension NA H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 71 53 42.74 FLX004-Naive 6 7231675 7231675 G A SNP tier1 RREB1 ENST00000379938 human ensembl 74_37 1 known missense c.3343 p.A1115T 0 NULL "pfam_Znf_C2H2,smart_Znf_C2H2-like,pfscan_Znf_C2H2" - no_errors RREB1 HGNC ENSG00000124782 extension 3.26E-05 H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 4 24 85.71 FLX004-Naive 6 26056421 26056421 C A SNP tier1 HIST1H1C ENST00000343677 human ensembl 74_37 -1 known missense c.236 p.R79L 1 "pfam_Histone_H1/H5_H15,smart_Histone_H1/H5_H15,prints_Histone_H5" "pfam_Histone_H1/H5_H15,smart_Histone_H1/H5_H15,prints_Histone_H5" - no_errors HIST1H1C HGNC ENSG00000187837 extension NA H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 65 26 28.57 FLX004-Naive 6 123581780 123581780 C G SNP tier1 TRDN ENST00000398178 human ensembl 74_37 -1 known missense c.1808 p.G603A 0 NULL pfam_Asp-B-hydro/Triadin_dom - no_errors TRDN HGNC ENSG00000186439 extension 4.06E-05 H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 50 39 43.82 FLX004-Naive 6 152737862 152737862 A T SNP tier1 SYNE1 ENST00000265368 human ensembl 74_37 -1 known missense c.5710 p.L1904M 0 "superfamily_Calpain_domain_III,superfamily_ABC1_TM_dom" "pfam_Spectrin_repeat,pfam_CH-domain,pfam_KASH,superfamily_CH-domain,superfamily_Calpain_domain_III,superfamily_ABC1_TM_dom,smart_CH-domain,smart_Spectrin/alpha-actinin,pfscan_CH-domain,pfscan_KASH" - no_errors SYNE1 HGNC ENSG00000131018 extension 2.44E-05 H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 18 21 53.85 FLX004-Naive 7 102584860 102584860 T C SNP tier1 LRRC17 ENST00000339431 human ensembl 74_37 1 known missense c.1132 p.C378R 1 smart_Cys-rich_flank_reg_C "pfam_Leu-rich_rpt,smart_Leu-rich_rpt_typical-subtyp,smart_Cys-rich_flank_reg_C" - no_errors LRRC17 HGNC ENSG00000128606 extension NA H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 107 98 47.8 FLX004-Naive 7 140434522 140434522 G A SNP tier1 BRAF ENST00000288602 human ensembl 74_37 -1 known missense c.2176 p.R726C 1 superfamily_Kinase-like_dom "pfam_Ser-Thr/Tyr_kinase_cat_dom,pfam_Prot_kinase_dom,pfam_Raf-like_ras-bd,pfam_Prot_Kinase_C-like_PE/DAG-bd,superfamily_Kinase-like_dom,smart_Raf-like_ras-bd,smart_Prot_Kinase_C-like_PE/DAG-bd,smart_Ser/Thr_dual-sp_kinase_dom,smart_Tyr_kinase_cat_dom,pfscan_Raf-like_ras-bd,pfscan_Prot_Kinase_C-like_PE/DAG-bd,pfscan_Prot_kinase_dom,prints_Ser-Thr/Tyr_kinase_cat_dom,prints_DAG/PE-bd" - no_errors BRAF HGNC ENSG00000157764 extension NA H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 98 83 45.86 FLX004-Naive 8 36693828 36693828 A C SNP tier1 KCNU1 ENST00000399881 human ensembl 74_37 1 known missense c.1310 p.K437T 1 NULL "pfam_K_chnl_Ca-activ_BK_asu,pfam_2pore_dom_K_chnl_dom,prints_K_chnl_Ca-activ_BK_asu" - no_errors KCNU1 HGNC ENSG00000215262 extension NA H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 101 74 42.29 FLX004-Naive 8 139890482 139890482 C T SNP tier1 COL22A1 ENST00000303045 human ensembl 74_37 -1 known missense c.169 p.V57I 1 "pfam_VWF_A,smart_VWF_A,pfscan_VWF_A" "pfam_Collagen,pfam_VWF_A,superfamily_ConA-like_lec_gl_sf,smart_VWF_A,smart_Laminin_G,pfscan_VWF_A" - no_errors COL22A1 HGNC ENSG00000169436 extension 8.15E-06 H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 17 16 48.48 FLX004-Naive 9 130569293 130569293 A G SNP tier1 FPGS ENST00000373247 human ensembl 74_37 1 known missense c.428 p.N143S 0.998 "superfamily_Mur_ligase_cen,tigrfam_Folylpolyglutamate_synth" "superfamily_Mur_ligase_cen,superfamily_Mur_ligase_C,tigrfam_Folylpolyglutamate_synth" - no_errors FPGS HGNC ENSG00000136877 extension 0.0001789 H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 14 14 50 FLX004-Naive X 114425058 114425058 G A SNP tier1 RBMXL3 ENST00000424776 human ensembl 74_37 1 known missense c.1054 p.V352I 0.84 NULL "pfam_RRM_dom,smart_RRM_dom,pfscan_RRM_dom" - no_errors RBMXL3 HGNC ENSG00000175718 extension NA H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 16 9 36 FLX004-Naive X 122613921 122613921 G C SNP tier1 GRIA3 ENST00000371256 human ensembl 74_37 1 known missense c.2332 p.V778L 1 "pfam_Iontro_glu_rcpt,pfam_SBP_bac_3,smart_Iontro_glu_rcpt" "pfam_Iontro_glu_rcpt,pfam_ANF_lig-bd_rcpt,pfam_Glu_rcpt_Glu/Gly-bd,pfam_SBP_bac_3,superfamily_Peripla_BP_I,smart_Iontro_glu_rcpt,smart_Glu_rcpt_Glu/Gly-bd,prints_NMDA_rcpt" - no_errors GRIA3 HGNC ENSG00000125675 extension NA H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 104 61 36.97 FLX004-Naive X 152858079 152858079 G A SNP tier1 FAM58A ENST00000406277 human ensembl 74_37 -1 known missense c.536 p.A179V 0.002 "superfamily_Cyclin-like,smart_Cyclin-like" "pfam_Cyclin_N,superfamily_Cyclin-like,smart_Cyclin-like" - no_errors FAM58A HGNC ENSG00000147382 extension 1.63E-05 H_ML-FLX004 H_ML-FLX004-FLX004 NA NA NA 14 13 46.43 FLX005-Naive 1 2489220 2489220 G A SNP tier1 TNFRSF14 ENST00000355716 human ensembl 74_37 1 known missense c.125 p.C42Y 0.81 "smart_TNFR/NGFR_Cys_rich_reg,pfscan_TNFR/NGFR_Cys_rich_reg" "pfam_TNFR/NGFR_Cys_rich_reg,smart_TNFR/NGFR_Cys_rich_reg,pfscan_TNFR/NGFR_Cys_rich_reg,prints_TNFR_14,prints_Fas_rcpt" - no_errors TNFRSF14 HGNC ENSG00000157873 extension NA H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 42 6 12.5 FLX005-Naive 1 6008219 6008219 C T SNP tier1 NPHP4 ENST00000378169 human ensembl 74_37 -1 known missense c.766 p.A256T 0.005 NULL NULL - no_errors NPHP4 HGNC ENSG00000131697 extension 1.63E-05 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 32 38 54.29 FLX005-Naive 1 215848628 215848628 C T SNP tier1 USH2A ENST00000366943 human ensembl 74_37 -1 known missense c.12625 p.E4209K 0.995 "pfam_Fibronectin_type3,superfamily_Fibronectin_type3,smart_Fibronectin_type3,pfscan_Fibronectin_type3" "pfam_Fibronectin_type3,pfam_EGF_laminin,pfam_Laminin_G,superfamily_ConA-like_lec_gl_sf,superfamily_Fibronectin_type3,smart_LamG-like,smart_Laminin_N,smart_EGF_laminin,smart_Fibronectin_type3,smart_Laminin_G,pfscan_EGF_laminin,pfscan_Fibronectin_type3,pfscan_Laminin_G,pfscan_Laminin_N" - no_errors USH2A HGNC ENSG00000042781 extension 0.0001057 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 46 41 47.13 FLX005-Naive 1 226923392 226923392 G A SNP tier1 ITPKB ENST00000272117 human ensembl 74_37 -1 known missense c.1768 p.R590W 0.402 NULL pfam_IPK - no_errors ITPKB HGNC ENSG00000143772 extension 0.000122 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 37 27 42.19 FLX005-Naive 1 228527777 228527777 G A SNP tier1 OBSCN ENST00000422127 human ensembl 74_37 1 known missense c.17390 p.S5797N 1 "pfam_DH-domain,superfamily_DH-domain,smart_DH-domain,pfscan_DH-domain" "pfam_Ig_I-set,pfam_Immunoglobulin,pfam_Ig_V-set,pfam_Prot_kinase_dom,pfam_Ser-Thr/Tyr_kinase_cat_dom,pfam_Fibronectin_type3,pfam_DH-domain,pfam_IQ_motif_EF-hand-BS,superfamily_Kinase-like_dom,superfamily_DH-domain,superfamily_Fibronectin_type3,superfamily_SH3_domain,smart_Ig_sub,smart_Ig_sub2,smart_Ig_V-set_subgr,smart_Fibronectin_type3,smart_IQ_motif_EF-hand-BS,smart_DH-domain,smart_Pleckstrin_homology,smart_Ser/Thr_dual-sp_kinase_dom,smart_Tyr_kinase_cat_dom,pfscan_Fibronectin_type3,pfscan_IQ_motif_EF-hand-BS,pfscan_Pleckstrin_homology,pfscan_Prot_kinase_dom,pfscan_Ig-like_dom,pfscan_DH-domain" - no_errors OBSCN HGNC ENSG00000154358 extension 0.0001142 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 23 7 23.33 FLX005-Naive 10 63661474 63661474 G T SNP tier1 ARID5B ENST00000279873 human ensembl 74_37 1 known missense c.6 p.E2D 1 NULL "pfam_ARID/BRIGHT_DNA-bd,superfamily_ARID/BRIGHT_DNA-bd,smart_ARID/BRIGHT_DNA-bd,pfscan_ARID/BRIGHT_DNA-bd" - no_errors ARID5B HGNC ENSG00000150347 extension 8.13E-06 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 41 43 51.19 FLX005-Naive 11 1269764 1269764 G A SNP tier1 MUC5B ENST00000447027 human ensembl 74_37 1 known missense c.11663 p.R3888H 0 NULL "pfam_VWF_type-D,pfam_Unchr_dom_Cys-rich,pfam_TIL_dom,pfam_VWF_C,superfamily_TIL_dom,smart_VWF_type-D,smart_Unchr_dom_Cys-rich,smart_VWC_out,smart_VWF_C,smart_Cys_knot_C,pfscan_Cys_knot_C,pfscan_VWF_C" - no_errors MUC5B HGNC ENSG00000117983 extension 6.52E-05 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 34 29 46.03 FLX005-Naive 11 65349788 65349788 G T SNP tier1 EHBP1L1 ENST00000309295 human ensembl 74_37 1 known missense c.1645 p.A549S 0 NULL "pfam_DUF3585,pfam_CH-domain,pfam_CAMSAP_CH,superfamily_CH-domain,smart_CH-domain,pfscan_CH-domain" - no_errors EHBP1L1 HGNC ENSG00000173442 extension 1.65E-05 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 17 14 45.16 FLX005-Naive 11 65479833 65479833 T A SNP tier1 KAT5 ENST00000341318 human ensembl 74_37 1 known missense c.95 p.V32D 1 superfamily_Chromodomain-like "pfam_MOZ_SAS,pfam_Tudor-knot,superfamily_Acyl_CoA_acyltransferase,superfamily_Chromodomain-like,smart_Chromo_domain/shadow" - no_errors KAT5 HGNC ENSG00000172977 extension 1.63E-05 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 13 15 53.57 FLX005-Naive 11 78565286 78565286 C T SNP tier1 TENM4 ENST00000278550 human ensembl 74_37 -1 known missense c.1544 p.R515H 1 NULL "pfam_Ten_N,pfam_EGF_extracell,pfam_YD,superfamily_CarboxyPept-like_regulatory,smart_EG-like_dom,pfscan_EG-like_dom,tigrfam_YD,tigrfam_Rhs_assc_core" - no_errors TENM4 HGNC ENSG00000149256 extension 3.90E-05 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 36 21 36.21 FLX005-Naive 11 111249885 111249885 A C SNP tier1 POU2AF1 ENST00000393067 human ensembl 74_37 -1 known splice_site c.16+2 e1+2 1 - - - no_errors POU2AF1 HGNC ENSG00000110777 extension NA H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 120 29 19.46 FLX005-Naive 11 113270269 113270269 C G SNP tier1 ANKK1 ENST00000303941 human ensembl 74_37 1 known missense c.1578 p.N526K 1 "superfamily_Ankyrin_rpt-contain_dom,smart_Ankyrin_rpt,pfscan_Ankyrin_rpt,pfscan_Ankyrin_rpt-contain_dom" "pfam_Ankyrin_rpt,pfam_Ser-Thr/Tyr_kinase_cat_dom,pfam_Prot_kinase_dom,superfamily_Ankyrin_rpt-contain_dom,superfamily_Kinase-like_dom,smart_Ser/Thr_dual-sp_kinase_dom,smart_Tyr_kinase_cat_dom,smart_Ankyrin_rpt,prints_Ankyrin_rpt,prints_Ser-Thr/Tyr_kinase_cat_dom,pfscan_Ankyrin_rpt,pfscan_Ankyrin_rpt-contain_dom,pfscan_Prot_kinase_dom" - no_errors ANKK1 HGNC ENSG00000170209 extension 8.17E-06 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 11 22 66.67 FLX005-Naive 12 13768119 13768119 G A SNP tier1 GRIN2B ENST00000609686 human ensembl 74_37 -1 known missense c.1583 p.P528L 1 "pfam_SBP_bac_3,smart_Iontro_glu_rcpt" "pfam_NMDAR2_C,pfam_Iontro_glu_rcpt,pfam_SBP_bac_3,pfam_Glu_rcpt_Glu/Gly-bd,pfam_ANF_lig-bd_rcpt,superfamily_Peripla_BP_I,smart_Iontro_glu_rcpt,smart_Glu_rcpt_Glu/Gly-bd,prints_NMDA_rcpt" - no_errors GRIN2B HGNC ENSG00000273079 extension NA H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 47 10 17.54 FLX005-Naive 12 49438064 49438064 G A SNP tier1 KMT2D ENST00000301067 human ensembl 74_37 -1 known nonsense c.5107 p.Q1703* 1 NULL "pfam_Znf_PHD-finger,pfam_SET_dom,pfam_FYrich_C,pfam_FYrich_N,superfamily_Znf_FYVE_PHD,superfamily_HMG_box_dom,smart_Znf_PHD,smart_Znf_RING,smart_HMG_box_dom,smart_FYrich_N,smart_FYrich_C,smart_SET_dom,smart_Post-SET_dom,pfscan_SET_dom,pfscan_Post-SET_dom,pfscan_Znf_PHD-finger,pfscan_Znf_RING" - no_errors KMT2D HGNC ENSG00000167548 extension NA H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 46 9 16.36 FLX005-Naive 12 122459999 122459999 T C SNP tier1 BCL7A ENST00000538010 human ensembl 74_37 1 known missense c.2 p.M1T 1 NULL pfam_BCL7 - no_errors BCL7A HGNC ENSG00000110987 extension NA H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 21 4 14.81 FLX005-Naive 13 24243004 24243004 A G SNP tier1 TNFRSF19 ENST00000382258 human ensembl 74_37 1 known missense c.1013 p.N338S 0 NULL "smart_TNFR/NGFR_Cys_rich_reg,pfscan_TNFR/NGFR_Cys_rich_reg,prints_TNFR_19" - no_errors TNFRSF19 HGNC ENSG00000127863 extension 0.0002521 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 47 31 39.74 FLX005-Naive 13 39266042 39266042 A C SNP tier1 FREM2 ENST00000280481 human ensembl 74_37 1 known missense c.4561 p.T1521P 1 NULL "pfam_Calx_beta,superfamily_Cadherin-like,smart_Calx_beta" - no_errors FREM2 HGNC ENSG00000150893 extension 1.63E-05 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 25 29 51.79 FLX005-Naive 13 41239825 41239825 G C SNP tier1 FOXO1 ENST00000379561 human ensembl 74_37 -1 known missense c.525 p.S175R 1 "pfam_TF_fork_head,smart_TF_fork_head,pfscan_TF_fork_head" "pfam_TF_fork_head,smart_TF_fork_head,pfscan_TF_fork_head,prints_TF_fork_head" - no_errors FOXO1 HGNC ENSG00000150907 extension NA H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 45 6 11.76 FLX005-Naive 13 45149915 45149915 G C SNP tier1 TSC22D1 ENST00000458659 human ensembl 74_37 -1 known missense c.296 p.A99G 0.965 NULL pfam_TSC-22_Dip_Bun - no_errors TSC22D1 HGNC ENSG00000102804 extension NA H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 37 27 42.19 FLX005-Naive 14 21769228 21769228 G A SNP tier1 RPGRIP1 ENST00000206660 human ensembl 74_37 1 known missense c.322 p.G108R 0.001 NULL "pfam_DUF3250,superfamily_C2_dom" - no_errors RPGRIP1 HGNC ENSG00000092200 extension NA H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 14 13 48.15 FLX005-Naive 14 21792918 21792918 C G SNP tier1 RPGRIP1 ENST00000206660 human ensembl 74_37 1 known missense c.1904 p.A635G 1 pfam_DUF3250 "pfam_DUF3250,superfamily_C2_dom" - no_errors RPGRIP1 HGNC ENSG00000092200 extension 0.0001958 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 47 41 46.59 FLX005-Naive 14 105407648 105407648 T C SNP tier1 AHNAK2 ENST00000333244 human ensembl 74_37 -1 known missense c.14140 p.T4714A 0 NULL "superfamily_PDZ,smart_PDZ,pfscan_PDZ" - no_errors AHNAK2 HGNC ENSG00000185567 extension 4.90E-05 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 41 21 33.87 FLX005-Naive 15 63009857 63009857 C T SNP tier1 TLN2 ENST00000306829 human ensembl 74_37 1 known missense c.2846 p.A949V 0.847 NULL "pfam_Talin_cent,pfam_ILWEQ_dom,pfam_Vinculin-bd_dom,pfam_FERM_N,pfam_FERM_central,pfam_Insln_rcpt_S1,superfamily_Talin_cent,superfamily_Vinculin/catenin,superfamily_FERM_central,smart_Band_41_domain,smart_ILWEQ_dom,pfscan_FERM_domain,pfscan_ILWEQ_dom" - no_errors TLN2 HGNC ENSG00000171914 extension 5.69E-05 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 24 36 60 FLX005-Naive 15 73541433 73541433 G A SNP tier1 NEO1 ENST00000261908 human ensembl 74_37 1 known missense c.1639 p.A547T 1 "pfam_Fibronectin_type3,superfamily_Fibronectin_type3,smart_Fibronectin_type3,pfscan_Fibronectin_type3" "pfam_Neogenin_C,pfam_Fibronectin_type3,pfam_Ig_I-set,pfam_Immunoglobulin,pfam_Ig_V-set,superfamily_Fibronectin_type3,smart_Ig_sub,smart_Ig_sub2,smart_Fibronectin_type3,pfscan_Fibronectin_type3,pfscan_Ig-like_dom" - no_errors NEO1 HGNC ENSG00000067141 extension NA H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 71 10 12.35 FLX005-Naive 15 91450695 91450695 G A SNP tier1 MAN2A2 ENST00000360468 human ensembl 74_37 1 known missense c.1166 p.R389Q 1 "pfam_Glyco_hydro_38_N,superfamily_Glyco_hydro/deAcase_b/a-brl" "pfam_Glyco_hydro_38_N,pfam_Glyco_hydro_38_C,pfam_Glyco_hydro_38_cen_dom,superfamily_Gal_mutarotase_SF_dom,superfamily_Glyco_hydro/deAcase_b/a-brl,smart_Glyco_hydro_38_cen_dom" - no_errors MAN2A2 HGNC ENSG00000196547 extension 2.44E-05 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 14 20 58.82 FLX005-Naive 16 3786132 3786132 A C SNP tier1 CREBBP ENST00000262367 human ensembl 74_37 -1 known missense c.4633 p.W1545G 1 pfam_Histone_H3-K56_AcTrfase_RTT109 "pfam_Histone_H3-K56_AcTrfase_RTT109,pfam_Nuc_rcpt_coact_CREBbp,pfam_KIX_dom,pfam_DUF902_CREBbp,pfam_Znf_TAZ,pfam_Bromodomain,pfam_Znf_ZZ,superfamily_Bromodomain,superfamily_Znf_TAZ,superfamily_KIX_dom,superfamily_Nuc_rcpt_coact,superfamily_Znf_FYVE_PHD,smart_Znf_TAZ,smart_Bromodomain,smart_Znf_ZZ,pfscan_KIX_dom,pfscan_Znf_TAZ,pfscan_Znf_ZZ,pfscan_Bromodomain,prints_Bromodomain" - no_errors CREBBP HGNC ENSG00000005339 extension NA H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 79 16 16.84 FLX005-Naive 16 11272474 11272474 C T SNP tier1 CLEC16A ENST00000409790 human ensembl 74_37 1 known missense c.3089 p.P1030L 0.001 NULL pfam_Uncharacterised_FPL - no_errors CLEC16A HGNC ENSG00000038532 extension 8.24E-05 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 15 10 40 FLX005-Naive 16 20435314 20435314 C G SNP tier1 ACSM5 ENST00000331849 human ensembl 74_37 1 known missense c.844 p.L282V 0.998 pfam_AMP-dep_Synth/Lig pfam_AMP-dep_Synth/Lig - no_errors ACSM5 HGNC ENSG00000183549 extension 0.0008457 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 57 42 42.42 FLX005-Naive 16 30734392 30734392 C T SNP tier1 SRCAP ENST00000262518 human ensembl 74_37 1 known missense c.4001 p.P1334L 0.928 NULL "pfam_SNF2_N,pfam_Helicase/SANT-assoc_DNA-bd,pfam_Helicase_C,superfamily_P-loop_NTPase,smart_HAS_subgr,smart_Helicase_ATP-bd,smart_Helicase_C,smart_AT_hook_DNA-bd_motif,pfscan_Helicase/SANT-assoc_DNA-bd,pfscan_Helicase_ATP-bd,pfscan_Helicase_C,prints_AT_hook-like" - no_errors SRCAP HGNC ENSG00000080603 extension 8.13E-06 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 31 37 54.41 FLX005-Naive 16 88691081 88691081 C T SNP tier1 ZC3H18 ENST00000301011 human ensembl 74_37 1 known missense c.1970 p.P657L 0.545 NULL smart_Znf_CCCH - no_errors ZC3H18 HGNC ENSG00000158545 extension 1.63E-05 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 50 37 42.53 FLX005-Naive 17 7415196 7415196 G A SNP tier1 POLR2A ENST00000322644 human ensembl 74_37 1 known missense c.4168 p.G1390S 1 pfam_RNA_pol_Rpb1_5 "pfam_RNA_pol_Rpb1_1,pfam_RNA_pol_Rpb1_5,pfam_RNA_pol_Rpb1_6,pfam_RNA_pol_asu,pfam_RNA_pol_Rpb1_7,pfam_RNA_pol_Rpb1_3,pfam_RNA_pol_Rpb1_4,pfam_RNA_pol_II_repeat_euk,smart_RNA_pol_N" - no_errors POLR2A HGNC ENSG00000181222 extension NA H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 37 9 19.57 FLX005-Naive 17 37933969 37933969 A G SNP tier1 IKZF3 ENST00000346872 human ensembl 74_37 -1 known missense c.761 p.L254P 1 NULL "pfam_Znf_C2H2,smart_Znf_C2H2-like,pfscan_Znf_C2H2" - no_errors IKZF3 HGNC ENSG00000161405 extension NA H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 123 15 10.87 FLX005-Naive 17 40474461 40474461 T G SNP tier1 STAT3 ENST00000264657 human ensembl 74_37 -1 known missense c.1940 p.N647T 1 "pfam_SH2,pfscan_SH2" "pfam_STAT_TF_DNA-bd,pfam_STAT_TF_alpha,pfam_STAT_TF_prot_interaction,pfam_SH2,superfamily_p53-like_TF_DNA-bd,superfamily_STAT_TF_coiled-coil,superfamily_STAT_TF_prot_interaction,smart_STAT_TF_prot_interaction,pfscan_SH2" - no_errors STAT3 HGNC ENSG00000168610 extension NA H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 78 13 14.29 FLX005-Naive 17 40474483 40474483 A T SNP tier1 STAT3 ENST00000264657 human ensembl 74_37 -1 known missense c.1918 p.Y640N 1 "pfam_SH2,pfscan_SH2" "pfam_STAT_TF_DNA-bd,pfam_STAT_TF_alpha,pfam_STAT_TF_prot_interaction,pfam_SH2,superfamily_p53-like_TF_DNA-bd,superfamily_STAT_TF_coiled-coil,superfamily_STAT_TF_prot_interaction,smart_STAT_TF_prot_interaction,pfscan_SH2" - no_errors STAT3 HGNC ENSG00000168610 extension NA H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 68 11 13.92 FLX005-Naive 17 67084360 67084360 A C SNP tier1 ABCA6 ENST00000284425 human ensembl 74_37 -1 known missense c.3646 p.C1216G 0.993 NULL "pfam_ABC_transporter-like,superfamily_P-loop_NTPase,smart_AAA+_ATPase,pfscan_ABC_transporter-like" - no_errors ABCA6 HGNC ENSG00000154262 extension 0.0004473 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 61 52 46.02 FLX005-Naive 18 50705442 50705442 C T SNP tier1 DCC ENST00000442544 human ensembl 74_37 1 known missense c.1529 p.P510L 0.992 "pfam_Fibronectin_type3,superfamily_Fibronectin_type3,smart_Ig_sub,smart_Fibronectin_type3,pfscan_Fibronectin_type3" "pfam_Neogenin_C,pfam_Fibronectin_type3,pfam_Ig_I-set,pfam_Ig_V-set,pfam_Immunoglobulin,superfamily_Fibronectin_type3,smart_Ig_sub,smart_Ig_sub2,smart_Fibronectin_type3,pfscan_Fibronectin_type3,pfscan_Ig-like_dom" - no_errors DCC HGNC ENSG00000187323 extension 1.63E-05 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 85 47 35.61 FLX005-Naive 18 64176289 64176289 T C SNP tier1 CDH19 ENST00000262150 human ensembl 74_37 -1 known missense c.1771 p.M591V 0.922 NULL "pfam_Cadherin,pfam_Cadherin_cytoplasmic-dom,superfamily_Cadherin-like,smart_Cadherin,pfscan_Cadherin,prints_Cadherin" - no_errors CDH19 HGNC ENSG00000071991 extension NA H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 40 8 16.67 FLX005-Naive 19 1625602 1625602 G A SNP tier1 TCF3 ENST00000262965 human ensembl 74_37 -1 known missense c.472 p.R158W 0.999 NULL "pfam_bHLH_dom,superfamily_bHLH_dom,smart_bHLH_dom,pfscan_bHLH_dom" - no_errors TCF3 HGNC ENSG00000071564 extension 1.64E-05 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 22 23 51.11 FLX005-Naive 19 8196645 8196645 G A SNP tier1 FBN3 ENST00000270509 human ensembl 74_37 -1 known missense c.1783 p.R595C 1 "pfam_EGF-like_Ca-bd_dom,smart_EGF-like_Ca-bd_dom,smart_EG-like_dom,pirsf_FBN,pfscan_EG-like_dom" "pfam_EGF-like_Ca-bd_dom,pfam_TB_dom,pfam_EG-like_dom,superfamily_TB_dom,smart_EG-like_dom,smart_EGF-like_Ca-bd_dom,pirsf_FBN,pfscan_EG-like_dom" - no_errors FBN3 HGNC ENSG00000142449 extension 0.0007077 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 14 18 56.25 FLX005-Naive 19 52870001 52870001 G A SNP tier1 ZNF610 ENST00000321287 human ensembl 74_37 1 known missense c.1370 p.R457H 0.041 NULL "pfam_Znf_C2H2,pfam_Krueppel-associated_box,superfamily_Krueppel-associated_box,smart_Krueppel-associated_box,smart_Znf_C2H2-like,pfscan_Znf_C2H2,pfscan_Krueppel-associated_box" - no_errors ZNF610 HGNC ENSG00000167554 extension 0.0007808 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 29 36 55.38 FLX005-Naive 19 57666724 57666724 C A SNP tier1 DUXA ENST00000554048 human ensembl 74_37 -1 known missense c.455 p.R152L 0.824 "pfam_Homeobox_dom,superfamily_Homeodomain-like,smart_Homeobox_dom,pfscan_Homeobox_dom,prints_HTH_motif" "pfam_Homeobox_dom,superfamily_Homeodomain-like,smart_Homeobox_dom,pfscan_Homeobox_dom,prints_HTH_motif" - no_errors DUXA HGNC ENSG00000258873 extension 8.13E-06 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 74 12 13.95 FLX005-Naive 2 24538054 24538054 G A SNP tier1 ITSN2 ENST00000355123 human ensembl 74_37 -1 known missense c.71 p.T24I 0.997 "smart_EPS15_homology,pfscan_EPS15_homology" "pfam_SH3_domain,pfam_SH3_2,pfam_DH-domain,pfam_C2_dom,superfamily_DH-domain,superfamily_C2_dom,superfamily_SH3_domain,smart_EPS15_homology,smart_EF_hand_dom,smart_SH3_domain,smart_DH-domain,smart_Pleckstrin_homology,smart_C2_dom,pfscan_EF_hand_dom,pfscan_EPS15_homology,pfscan_C2_dom,pfscan_Pleckstrin_homology,pfscan_SH3_domain,pfscan_DH-domain,prints_SH3_domain,prints_p67phox" - no_errors ITSN2 HGNC ENSG00000198399 extension NA H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 115 22 16.06 FLX005-Naive 2 25470559 25470559 C T SNP tier1 DNMT3A ENST00000264709 human ensembl 74_37 -1 known nonsense c.915 p.W305* 1 "pfam_PWWP_dom,smart_PWWP_dom,pfscan_PWWP_dom" "pfam_PWWP_dom,pfam_C5_MeTfrase,superfamily_Znf_FYVE_PHD,smart_PWWP_dom,pfscan_PWWP_dom" - no_errors DNMT3A HGNC ENSG00000119772 extension 1.63E-05 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 36 9 20 FLX005-Naive 2 28815564 28815564 C T SNP tier1 PLB1 ENST00000422425 human ensembl 74_37 1 known missense c.2192 p.A731V 1 pfam_Lipase_GDSL pfam_Lipase_GDSL - no_errors PLB1 HGNC ENSG00000163803 extension NA H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 65 63 49.22 FLX005-Naive 2 31570401 31570401 C T SNP tier1 XDH ENST00000379416 human ensembl 74_37 -1 known missense c.3263 p.G1088E 1 "pfam_AldOxase/xan_DH_Mopterin-bd,superfamily_AldOxase/xan_DH_Mopterin-bd,pirsf_Ald_Oxase/xanthine_DH" "pfam_AldOxase/xan_DH_Mopterin-bd,pfam_Mopterin_DH_FAD-bd,pfam_Ald_Oxase/Xan_DH_a/b,pfam_2Fe-2S-bd,pfam_CO_DH_flav_C,pfam_2Fe-2S_ferredoxin-type,superfamily_AldOxase/xan_DH_Mopterin-bd,superfamily_FAD-bd_2,superfamily_Ald_Oxase/Xan_DH_a/b,superfamily_2Fe-2S-bd,superfamily_CO_DH_flav_C,superfamily_2Fe-2S_ferredoxin-type,pirsf_Ald_Oxase/xanthine_DH,pfscan_2Fe-2S_ferredoxin-type,tigrfam_Xanthine_DH_ssu" - no_errors XDH HGNC ENSG00000158125 extension 5.69E-05 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 62 37 37.37 FLX005-Naive 2 31572580 31572580 G A SNP tier1 XDH ENST00000379416 human ensembl 74_37 -1 known missense c.2941 p.R981W 0.846 "pfam_AldOxase/xan_DH_Mopterin-bd,superfamily_AldOxase/xan_DH_Mopterin-bd,pirsf_Ald_Oxase/xanthine_DH" "pfam_AldOxase/xan_DH_Mopterin-bd,pfam_Mopterin_DH_FAD-bd,pfam_Ald_Oxase/Xan_DH_a/b,pfam_2Fe-2S-bd,pfam_CO_DH_flav_C,pfam_2Fe-2S_ferredoxin-type,superfamily_AldOxase/xan_DH_Mopterin-bd,superfamily_FAD-bd_2,superfamily_Ald_Oxase/Xan_DH_a/b,superfamily_2Fe-2S-bd,superfamily_CO_DH_flav_C,superfamily_2Fe-2S_ferredoxin-type,pirsf_Ald_Oxase/xanthine_DH,pfscan_2Fe-2S_ferredoxin-type,tigrfam_Xanthine_DH_ssu" - no_errors XDH HGNC ENSG00000158125 extension 1.63E-05 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 53 39 42.39 FLX005-Naive 2 32640782 32640782 A G SNP tier1 BIRC6 ENST00000421745 human ensembl 74_37 1 known missense c.2423 p.Q808R 0.99 NULL "pfam_DUF3643,pfam_UBQ-conjugat_E2,pfam_BIR,pfam_UEV_N,superfamily_UBQ-conjugating_enzyme/RWD,superfamily_Galactose-bd-like,superfamily_WD40_repeat_dom,smart_BIR,pfscan_BIR,pfscan_UBQ-conjugat_E2" - no_errors BIRC6 HGNC ENSG00000115760 extension 0.0009921 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 40 20 33.33 FLX005-Naive 2 32740443 32740443 G A SNP tier1 BIRC6 ENST00000421745 human ensembl 74_37 1 known missense c.10955 p.S3652N 1 NULL "pfam_DUF3643,pfam_UBQ-conjugat_E2,pfam_BIR,pfam_UEV_N,superfamily_UBQ-conjugating_enzyme/RWD,superfamily_Galactose-bd-like,superfamily_WD40_repeat_dom,smart_BIR,pfscan_BIR,pfscan_UBQ-conjugat_E2" - no_errors BIRC6 HGNC ENSG00000115760 extension 7.32E-05 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 26 29 52.73 FLX005-Naive 2 33012143 33012143 T A SNP tier1 TTC27 ENST00000317907 human ensembl 74_37 1 known missense c.1925 p.V642D 0.99 "smart_TPR_repeat,pfscan_TPR-contain_dom" "pfam_TPR_2,pfam_TPR_1,smart_TPR_repeat,pfscan_TPR_repeat,pfscan_TPR-contain_dom" - no_errors TTC27 HGNC ENSG00000018699 extension NA H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 69 65 48.51 FLX005-Naive 2 141739813 141739813 C T SNP tier1 LRP1B ENST00000389484 human ensembl 74_37 -1 known missense c.2803 p.G935R 1 "pfam_LDrepeatLR_classA_rpt,superfamily_LDrepeatLR_classA_rpt,smart_LDrepeatLR_classA_rpt,pfscan_LDrepeatLR_classA_rpt" "pfam_LDrepeatLR_classA_rpt,pfam_LDLR_classB_rpt,pfam_EG-like_dom,superfamily_Growth_fac_rcpt_N_dom,superfamily_LDrepeatLR_classA_rpt,smart_LDrepeatLR_classA_rpt,smart_EG-like_dom,smart_EGF-like_Ca-bd_dom,smart_LDLR_classB_rpt,pfscan_EG-like_dom,pfscan_LDrepeatLR_classA_rpt,pfscan_LDLR_classB_rpt,prints_LDrepeatLR_classA_rpt" - no_errors LRP1B HGNC ENSG00000168702 extension 0.000244 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 48 41 46.07 FLX005-Naive 2 168105056 168105056 C T SNP tier1 XIRP2 ENST00000295237 human ensembl 74_37 1 known missense c.7154 p.P2385L 0.042 NULL pfam_Actin-binding_Xin_repeat - no_errors XIRP2 HGNC ENSG00000163092 extension NA H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 27 5 15.62 FLX005-Naive 2 187528549 187528549 G A SNP tier1 ITGAV ENST00000261023 human ensembl 74_37 1 known missense c.1912 p.V638I 1 pfam_Integrin_alpha-2 "pfam_Integrin_alpha-2,pfam_FG-GAP,pfam_Integrin_alpha_C_CS,smart_Int_alpha_beta-p,prints_Integrin_alpha" - no_errors ITGAV HGNC ENSG00000138448 extension NA H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 118 20 14.49 FLX005-Naive 2 211455540 211455540 G A SNP tier1 CPS1 ENST00000430249 human ensembl 74_37 1 known missense c.875 p.R292H 1 "pfam_GATASE,tigrfam_CarbamoylP_synth_ssu" "pfam_CbamoylP_synth_lsu-like_ATP-bd,pfam_CarbamoylP_synth_ssu_N,pfam_CarbamoylP_synth_lsu_oligo,pfam_GATASE,pfam_CarbamoylP_synth_lsu_N,pfam_MGS-like_dom,pfam_ATP-grasp_carboxylate-amine,pfam_Dala_Dala_lig_C,superfamily_CarbamoylP_synth_lsu_oligo,superfamily_CarbamoylP_synth_ssu_N,superfamily_PreATP-grasp_dom,superfamily_MGS-like_dom,smart_MGS-like_dom,pfscan_ATP-grasp,prints_CbamoylP_synth_lsu_CPSase_dom,tigrfam_CarbamoylP_synth_lsu,tigrfam_CarbamoylP_synth_ssu" - no_errors CPS1 HGNC ENSG00000021826 extension 8.13E-05 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 70 66 48.53 FLX005-Naive 2 218712638 218712638 G T SNP tier1 TNS1 ENST00000171887 human ensembl 74_37 -1 known missense c.2227 p.P743T 0.86 NULL "pfam_PTB,pfam_Tensin_phosphatase_C2-dom,pfam_SH2,superfamily_C2_dom,smart_Tyr_Pase_cat,smart_SH2,smart_PTB/PI_dom,pfscan_SH2,pfscan_Phosphatase_tensin-typ,pfscan_Tensin_phosphatase_C2-dom" - no_errors TNS1 HGNC ENSG00000079308 extension NA H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 48 9 15.79 FLX005-Naive 3 38927706 38927706 G T SNP tier1 SCN11A ENST00000302328 human ensembl 74_37 -1 known missense c.2859 p.N953K 0 pfam_Na_trans_assoc "pfam_Ion_trans_dom,pfam_Na_trans_assoc,prints_Na_channel_asu" - no_errors SCN11A HGNC ENSG00000168356 extension NA H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 51 53 50.96 FLX005-Naive 4 22394208 22394208 C A SNP tier1 GPR125 ENST00000334304 human ensembl 74_37 -1 known missense c.2587 p.D863Y 1 "pfam_GPCR_2_secretin-like,pfscan_GPCR_2-like" "pfam_GPCR_2_secretin-like,pfam_GPS_dom,pfam_Leu-rich_rpt,pfam_Ig_I-set,pfam_GPCR_2_extracellular_dom,smart_Leu-rich_rpt_typical-subtyp,smart_Cys-rich_flank_reg_C,smart_Ig_sub,smart_GPS_dom,pfscan_GPS_dom,pfscan_GPCR_2_extracellular_dom,pfscan_GPCR_2-like,pfscan_Ig-like_dom" - no_errors GPR125 HGNC ENSG00000152990 extension NA H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 151 29 16.11 FLX005-Naive 5 163395 163395 C T SNP tier1 PLEKHG4B ENST00000283426 human ensembl 74_37 1 known missense c.2140 p.R714C 0.988 NULL "pfam_DH-domain,superfamily_DH-domain,superfamily_CRAL-TRIO_dom,smart_DH-domain,smart_Pleckstrin_homology,pfscan_Pleckstrin_homology,pfscan_DH-domain" - no_errors PLEKHG4B HGNC ENSG00000153404 extension 5.69E-05 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 21 10 32.26 FLX005-Naive 5 11565098 11565098 C T SNP tier1 CTNND2 ENST00000304623 human ensembl 74_37 -1 known missense c.245 p.R82Q 1 NULL "pfam_Armadillo,superfamily_ARM-type_fold,smart_Armadillo,pfscan_Armadillo" - no_errors CTNND2 HGNC ENSG00000169862 extension 8.13E-06 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 54 8 12.7 FLX005-Naive 5 33683190 33683190 T C SNP tier1 ADAMTS12 ENST00000504830 human ensembl 74_37 -1 known missense c.848 p.H283R 1 "pfam_Peptidase_M12B,pfscan_Peptidase_M12B" "pfam_ADAM_spacer1,pfam_Thrombospondin_1_rpt,pfam_Peptidase_M12B,pfam_Peptidase_M12B_N,superfamily_Thrombospondin_1_rpt,smart_Thrombospondin_1_rpt,pfscan_PLAC,pfscan_Thrombospondin_1_rpt,pfscan_Peptidase_M12B,prints_Peptidase_M12B_ADAM-TS" - no_errors ADAMTS12 HGNC ENSG00000151388 extension 5.69E-05 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 47 54 53.47 FLX005-Naive 5 79027889 79027889 A G SNP tier1 CMYA5 ENST00000446378 human ensembl 74_37 1 known missense c.3301 p.T1101A 0.002 NULL "pfam_Fibronectin_type3,pfam_SPRY_rcpt,superfamily_ConA-like_lec_gl_sf,superfamily_Fibronectin_type3,smart_Fibronectin_type3,pfscan_B30.2/SPRY,pfscan_Fibronectin_type3" - no_errors CMYA5 HGNC ENSG00000164309 extension NA H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 24 30 55.56 FLX005-Naive 5 89986748 89986748 G T SNP tier1 GPR98 ENST00000405460 human ensembl 74_37 1 known missense c.6841 p.A2281S 1 smart_Calx_beta "pfam_Calx_beta,pfam_EPTP,pfam_GPCR_2_secretin-like,pfam_GPS_dom,superfamily_ConA-like_lec_gl_sf,superfamily_Gal_Oxase/kelch_b-propeller,smart_Calx_beta,pfscan_EAR,pfscan_GPS_dom,pfscan_GPCR_2-like" - no_errors GPR98 HGNC ENSG00000164199 extension NA H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 62 10 13.89 FLX005-Naive 5 95735706 95735706 C T SNP tier1 PCSK1 ENST00000311106 human ensembl 74_37 -1 known missense c.1381 p.V461M 0.997 superfamily_Galactose-bd-like "pfam_Peptidase_S8/S53_dom,pfam_PrprotnconvertsP,pfam_Proho_convert,superfamily_Peptidase_S8/S53_dom,superfamily_Galactose-bd-like,superfamily_Prot_inh_propept,prints_Peptidase_S8_subtilisin-rel" - no_errors PCSK1 HGNC ENSG00000175426 extension 2.44E-05 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 44 41 48.24 FLX005-Naive 5 123982901 123982901 A C SNP tier1 ZNF608 ENST00000306315 human ensembl 74_37 -1 known nonsense c.3176 p.L1059* 0.272 NULL NULL - no_errors ZNF608 HGNC ENSG00000168916 extension NA H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 31 19 38 FLX005-Naive 5 161300274 161300274 C A SNP tier1 GABRA1 ENST00000023897 human ensembl 74_37 1 known missense c.407 p.A136D 1 "pfam_Neur_chan_lig-bd,superfamily_Neur_chan_lig-bd,tigrfam_Neur_channel" "pfam_Neur_chan_lig-bd,pfam_Neurotrans-gated_channel_TM,superfamily_Neur_chan_lig-bd,superfamily_Neurotrans-gated_channel_TM,prints_GABAAa_rcpt,prints_GABAA_rcpt,prints_GABBAa1_rcpt,prints_Neur_channel,prints_GABBAg_rcpt,tigrfam_Neur_channel" - no_errors GABRA1 HGNC ENSG00000022355 extension NA H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 69 16 18.82 FLX005-Naive 6 26056208 26056208 C T SNP tier1 HIST1H1C ENST00000343677 human ensembl 74_37 -1 known missense c.449 p.S150N 0.038 NULL "pfam_Histone_H1/H5_H15,smart_Histone_H1/H5_H15,prints_Histone_H5" - no_errors HIST1H1C HGNC ENSG00000187837 extension NA H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 61 9 12.86 FLX005-Naive 6 26056326 26056326 C T SNP tier1 HIST1H1C ENST00000343677 human ensembl 74_37 -1 known missense c.331 p.A111T 1 prints_Histone_H5 "pfam_Histone_H1/H5_H15,smart_Histone_H1/H5_H15,prints_Histone_H5" - no_errors HIST1H1C HGNC ENSG00000187837 extension 8.13E-06 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 50 7 12.07 FLX005-Naive 6 26156862 26156862 C G SNP tier1 HIST1H1E ENST00000304218 human ensembl 74_37 1 known missense c.244 p.L82V 1 "pfam_Histone_H1/H5_H15,smart_Histone_H1/H5_H15,prints_Histone_H5" "pfam_Histone_H1/H5_H15,smart_Histone_H1/H5_H15,prints_Histone_H5" - no_errors HIST1H1E HGNC ENSG00000168298 extension 8.13E-06 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 43 9 17.31 FLX005-Naive 6 26234923 26234923 C T SNP tier1 HIST1H1D ENST00000244534 human ensembl 74_37 -1 known missense c.239 p.R80H 1 "pfam_Histone_H1/H5_H15,smart_Histone_H1/H5_H15,prints_Histone_H5" "pfam_Histone_H1/H5_H15,smart_Histone_H1/H5_H15,prints_Histone_H5" - no_errors HIST1H1D HGNC ENSG00000124575 extension NA H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 73 14 16.09 FLX005-Naive 6 27839715 27839715 G C SNP tier1 HIST1H3I ENST00000328488 human ensembl 74_37 -1 known missense c.379 p.L127V 1 "pfam_Histone_core_D,superfamily_Histone-fold,smart_Histone_H3,prints_Histone_H3" "pfam_Histone_core_D,superfamily_Histone-fold,smart_Histone_H3,prints_Histone_H3" - no_errors HIST1H3I HGNC ENSG00000182572 extension 8.13E-06 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 67 13 16.05 FLX005-Naive 6 37139012 37139012 C G SNP tier1 PIM1 ENST00000373509 human ensembl 74_37 1 known missense c.352 p.L118V 0.454 "pfam_Prot_kinase_dom,pfam_Ser-Thr/Tyr_kinase_cat_dom,pfam_LipoPS_kinase,superfamily_Kinase-like_dom,smart_Ser/Thr_dual-sp_kinase_dom,smart_Tyr_kinase_cat_dom,pfscan_Prot_kinase_dom" "pfam_Prot_kinase_dom,pfam_Ser-Thr/Tyr_kinase_cat_dom,pfam_LipoPS_kinase,superfamily_Kinase-like_dom,smart_Ser/Thr_dual-sp_kinase_dom,smart_Tyr_kinase_cat_dom,pfscan_Prot_kinase_dom" - no_errors PIM1 HGNC ENSG00000137193 extension NA H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 24 5 17.24 FLX005-Naive 6 90371195 90371195 C G SNP tier1 MDN1 ENST00000369393 human ensembl 74_37 -1 known missense c.14668 p.E4890Q 0.259 pirsf_Midasin "pfam_ATPase_dyneun-rel_AAA,pfam_ATPase_AAA-3,superfamily_P-loop_NTPase,superfamily_ARM-type_fold,smart_AAA+_ATPase,smart_VWF_A,pirsf_Midasin,pfscan_VWF_A" - no_errors MDN1 HGNC ENSG00000112159 extension 2.44E-05 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 47 38 44.71 FLX005-Naive 6 128410945 128410945 T G SNP tier1 PTPRK ENST00000368227 human ensembl 74_37 -1 known missense c.1355 p.H452P 1 "superfamily_Fibronectin_type3,smart_Fibronectin_type3,pfscan_Fibronectin_type3" "pfam_Tyr_Pase_rcpt/non-rcpt,pfam_MAM_dom,pfam_Fibronectin_type3,pfam_Ig_I-set,superfamily_ConA-like_lec_gl_sf,superfamily_Fibronectin_type3,smart_MAM_dom,smart_Ig_sub,smart_Fibronectin_type3,smart_Tyr_Pase_rcpt/non-rcpt,smart_Tyr_Pase_cat,pfscan_Fibronectin_type3,pfscan_MAM_dom,pfscan_Tyr/Dual-sp_Pase,pfscan_Tyr_Pase_rcpt/non-rcpt,pfscan_Ig-like_dom,prints_Tyr_Pase_rcpt/non-rcpt,prints_MAM_dom" - no_errors PTPRK HGNC ENSG00000152894 extension NA H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 82 14 14.58 FLX005-Naive 6 129498917 129498917 G A SNP tier1 LAMA2 ENST00000421865 human ensembl 74_37 1 known missense c.1373 p.R458K 0.996 "pfam_EGF_laminin,smart_EGF_laminin,smart_EG-like_dom,pfscan_EGF_laminin" "pfam_Laminin_G,pfam_EGF_laminin,pfam_Laminin_N,pfam_Laminin_I,pfam_Laminin_B_type_IV,pfam_Laminin_II,superfamily_ConA-like_lec_gl_sf,superfamily_Galactose-bd-like,superfamily_t-SNARE,smart_Laminin_N,smart_EGF_laminin,smart_EG-like_dom,smart_Laminin_B_subgr,smart_Laminin_G,pfscan_Laminin_B_type_IV,pfscan_EGF_laminin,pfscan_Laminin_G,pfscan_Laminin_N" - no_errors LAMA2 HGNC ENSG00000196569 extension 0.0001138 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 96 62 39.24 FLX005-Naive 7 100680951 100680951 C T SNP tier1 MUC17 ENST00000306151 human ensembl 74_37 1 known missense c.6254 p.A2085V 0.439 NULL "pfam_SEA_dom,smart_SEA_dom,pfscan_EG-like_dom,pfscan_SEA_dom" - no_errors MUC17 HGNC ENSG00000169876 extension 7.32E-05 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 26 36 58.06 FLX005-Naive 7 100683015 100683015 C A SNP tier1 MUC17 ENST00000306151 human ensembl 74_37 1 known missense c.8318 p.T2773K 0.027 NULL "pfam_SEA_dom,smart_SEA_dom,pfscan_EG-like_dom,pfscan_SEA_dom" - no_errors MUC17 HGNC ENSG00000169876 extension 8.13E-06 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 44 29 39.19 FLX005-Naive 7 100685709 100685709 A G SNP tier1 MUC17 ENST00000306151 human ensembl 74_37 1 known missense c.11012 p.Q3671R 0 NULL "pfam_SEA_dom,smart_SEA_dom,pfscan_EG-like_dom,pfscan_SEA_dom" - no_errors MUC17 HGNC ENSG00000169876 extension 7.32E-05 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 27 25 48.08 FLX005-Naive 7 100686693 100686693 C A SNP tier1 MUC17 ENST00000306151 human ensembl 74_37 1 known missense c.11996 p.A3999E 0 NULL "pfam_SEA_dom,smart_SEA_dom,pfscan_EG-like_dom,pfscan_SEA_dom" - no_errors MUC17 HGNC ENSG00000169876 extension 7.32E-05 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 34 36 50.7 FLX005-Naive 7 138602625 138602625 C T SNP tier1 KIAA1549 ENST00000422774 human ensembl 74_37 -1 known missense c.1747 p.V583I 0 NULL NULL - no_errors KIAA1549 HGNC ENSG00000122778 extension NA H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 49 5 9.26 FLX005-Naive 7 148508727 148508727 T C SNP tier1 EZH2 ENST00000320356 human ensembl 74_37 -1 known missense c.1937 p.Y646C 1 "pfam_SET_dom,smart_SET_dom,pfscan_SET_dom" "pfam_SET_dom,pfam_EZH2_WD-Binding,superfamily_Homeodomain-like,smart_SANT/Myb,smart_SET_dom,pfscan_SET_dom" - no_errors EZH2 HGNC ENSG00000106462 extension NA H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 67 15 18.29 FLX005-Naive 7 150171135 150171135 G A SNP tier1 GIMAP8 ENST00000307271 human ensembl 74_37 1 known missense c.718 p.E240K 0 NULL "pfam_AIG1,superfamily_P-loop_NTPase" - no_errors GIMAP8 HGNC ENSG00000171115 extension 3.25E-05 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 42 37 46.25 FLX005-Naive 8 623660 623660 T G SNP tier1 ERICH1 ENST00000262109 human ensembl 74_37 -1 known missense c.692 p.E231A 0.018 NULL NULL - no_errors ERICH1 HGNC ENSG00000104714 extension 0.0001057 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 43 25 36.76 FLX005-Naive 8 77763460 77763460 C T SNP tier1 ZFHX4 ENST00000521891 human ensembl 74_37 1 known missense c.4303 p.R1435C 1 "smart_Znf_C2H2-like,pfscan_Znf_C2H2" "pfam_Homeobox_dom,superfamily_Homeodomain-like,superfamily_Adenylate_cyclase-assoc_CAP_N,smart_Znf_C2H2-like,smart_Znf_U1,smart_Homeobox_dom,pfscan_Homeobox_dom,pfscan_Znf_C2H2" - no_errors ZFHX4 HGNC ENSG00000091656 extension NA H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 54 11 16.92 FLX005-Naive 9 712754 712754 T C SNP tier1 KANK1 ENST00000382297 human ensembl 74_37 1 known missense c.1988 p.M663T 1 NULL "pfam_Ankyrin_rpt,pfam_KN_motif,superfamily_Ankyrin_rpt-contain_dom,smart_Ankyrin_rpt,pfscan_Ankyrin_rpt,pfscan_Ankyrin_rpt-contain_dom" - no_errors KANK1 HGNC ENSG00000107104 extension 0.0009514 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 20 13 39.39 FLX005-Naive 9 32632032 32632032 G T SNP tier1 TAF1L ENST00000242310 human ensembl 74_37 -1 known missense c.3546 p.H1182Q 0.782 pirsf_TAF1_animal "pirsf_TAF1_animal,pfam_TFIID_sub1_DUF3591,pfam_Bromodomain,pfam_TAF_II_230-bd,superfamily_Bromodomain,superfamily_TAF_II_230-bd,smart_Bromodomain,prints_Bromodomain,pfscan_Bromodomain" - no_errors TAF1L HGNC ENSG00000122728 extension NA H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 45 49 52.13 FLX005-Naive 9 98242754 98242754 C A SNP tier1 PTCH1 ENST00000331920 human ensembl 74_37 -1 known missense c.863 p.G288V 1 tigrfam_TM_rcpt_patched "pfam_Patched,pfscan_SSD,tigrfam_TM_rcpt_patched" - no_errors PTCH1 HGNC ENSG00000185920 extension NA H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 52 15 22.39 FLX005-Naive 9 116187992 116187992 G A SNP tier1 C9orf43 ENST00000288462 human ensembl 74_37 1 known missense c.1012 p.V338I 0 NULL NULL - no_errors C9orf43 HGNC ENSG00000157653 extension 4.88E-05 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 52 47 47.47 FLX005-Naive 9 139410051 139410051 G A SNP tier1 NOTCH1 ENST00000277541 human ensembl 74_37 -1 known missense c.1787 p.T596M 0.998 "pfam_EG-like_dom,smart_EGF-like_Ca-bd_dom,smart_EG-like_dom,pirsf_Notch,pfscan_EG-like_dom" "pfam_EG-like_dom,pfam_EGF-like_Ca-bd_dom,pfam_Ankyrin_rpt,pfam_EGF_extracell,pfam_Notch_NOD_dom,pfam_DUF3454_notch,pfam_Notch_NODP_dom,superfamily_Ankyrin_rpt-contain_dom,superfamily_Notch_dom,smart_EG-like_dom,smart_EGF-like_Ca-bd_dom,smart_Notch_dom,smart_Ankyrin_rpt,pirsf_Notch,pfscan_Ankyrin_rpt,pfscan_Ankyrin_rpt-contain_dom,pfscan_EG-like_dom,pfscan_Notch_dom,prints_Notch_1,prints_Notch_dom" - no_errors NOTCH1 HGNC ENSG00000148400 extension 0.0001804 H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 14 17 54.84 FLX005-Naive X 132826473 132826473 G A SNP tier1 GPC3 ENST00000394299 human ensembl 74_37 -1 known missense c.1285 p.P429S 1 pfam_Glypican pfam_Glypican - no_errors GPC3 HGNC ENSG00000147257 extension NA H_ML-FLX005 H_ML-FLX005-FLX005 NA NA NA 51 15 22.73 FLX007-Naive 1 7721837 7721837 C T SNP tier1 CAMTA1 ENST00000303635 human ensembl 74_37 1 known missense c.716 p.S239L 1 NULL "pfam_CG-1_dom,pfam_IPT,pfam_IQ_motif_EF-hand-BS,superfamily_Ig_E-set,superfamily_Ankyrin_rpt-contain_dom,superfamily_P-loop_NTPase,pfscan_Ankyrin_rpt,pfscan_Ankyrin_rpt-contain_dom,pfscan_IQ_motif_EF-hand-BS" - no_errors CAMTA1 HGNC ENSG00000171735 extension 1.63E-05 H_ML-FLX007 H_ML-FLX007-FLX007 NA NA NA 20 20 50 FLX007-Naive 1 91844741 91844741 C T SNP tier1 HFM1 ENST00000370425 human ensembl 74_37 -1 known missense c.1037 p.R346H 1 "pfam_DNA/RNA_helicase_DEAD/DEAH_N,pfam_Helicase/UvrB_dom,superfamily_P-loop_NTPase,smart_Helicase_ATP-bd,pfscan_Helicase_ATP-bd" "pfam_Sec63-dom,pfam_DNA/RNA_helicase_DEAD/DEAH_N,pfam_Helicase_C,pfam_Helicase/UvrB_dom,superfamily_P-loop_NTPase,smart_Helicase_ATP-bd,smart_Helicase_C,smart_Sec63-dom,pfscan_Helicase_ATP-bd,pfscan_Helicase_C" - no_errors HFM1 HGNC ENSG00000162669 extension 8.14E-06 H_ML-FLX007 H_ML-FLX007-FLX007 NA NA NA 46 42 47.73 FLX007-Naive 1 97547964 97547964 T G SNP tier1 DPYD ENST00000370192 human ensembl 74_37 -1 known missense c.2829 p.Q943H 0.714 NULL "pfam_Dihydroorotate_DH_1_2,pfam_Pyr_nucl-diS_OxRdtase_FAD/NAD,pfam_tRNA_hU_synthase,superfamily_Helical_ferredxn,prints_FAD_pyr_nucl-diS_OxRdtase,tigrfam_Dihydroorotate_DH" - no_errors DPYD HGNC ENSG00000188641 extension NA H_ML-FLX007 H_ML-FLX007-FLX007 NA NA NA 80 28 25.93 FLX007-Naive 10 17127610 17127610 T C SNP tier1 CUBN ENST00000377833 human ensembl 74_37 -1 known missense c.2096 p.Y699C 1 "pfam_CUB_dom,superfamily_CUB_dom,smart_CUB_dom,pfscan_CUB_dom" "pfam_CUB_dom,pfam_EG-like_dom,pfam_EGF-like_Ca-bd_dom,superfamily_CUB_dom,superfamily_Growth_fac_rcpt_N_dom,smart_EGF-like_Ca-bd_dom,smart_EG-like_dom,smart_CUB_dom,pfscan_CUB_dom,pfscan_EG-like_dom" - no_errors CUBN HGNC ENSG00000107611 extension 1.63E-05 H_ML-FLX007 H_ML-FLX007-FLX007 NA NA NA 68 64 48.48 FLX007-Naive 10 18828372 18828372 G A SNP tier1 CACNB2 ENST00000324631 human ensembl 74_37 1 known missense c.1702 p.V568I 0.006 NULL "pfam_GK/Ca_channel_bsu,pfam_VDCC_L_bsu,superfamily_P-loop_NTPase,superfamily_SH3_domain,smart_SH3_domain,smart_GK/Ca_channel_bsu,pfscan_SH3_domain,prints_VDCC_L_bsu,prints_VDCC_L_b2su" - no_errors CACNB2 HGNC ENSG00000165995 extension 0.0002114 H_ML-FLX007 H_ML-FLX007-FLX007 NA NA NA 44 24 34.78 FLX007-Naive 10 55566751 55566751 T C SNP tier1 PCDH15 ENST00000414778 human ensembl 74_37 -1 known missense c.4634 p.Y1545C 0.997 NULL "pfam_Cadherin,superfamily_Cadherin-like,smart_Cadherin,pfscan_Cadherin,prints_Cadherin" - no_errors PCDH15 HGNC ENSG00000150275 extension NA H_ML-FLX007 H_ML-FLX007-FLX007 NA NA NA 26 37 58.73 FLX007-Naive 11 117389327 117389327 C T SNP tier1 DSCAML1 ENST00000321322 human ensembl 74_37 -1 known missense c.1544 p.R515H 1 "pfam_Ig_I-set,smart_Ig_sub,smart_Ig_sub2,pfscan_Ig-like_dom" "pfam_Ig_I-set,pfam_Fibronectin_type3,pfam_Immunoglobulin,pfam_Ig_V-set,superfamily_Fibronectin_type3,smart_Ig_sub,smart_Ig_sub2,smart_Ig_V-set_subgr,smart_Fibronectin_type3,pfscan_Fibronectin_type3,pfscan_Ig-like_dom" - no_errors DSCAML1 HGNC ENSG00000177103 extension 0.0001545 H_ML-FLX007 H_ML-FLX007-FLX007 NA NA NA 31 24 43.64 FLX007-Naive 12 15835874 15835874 A C SNP tier1 EPS8 ENST00000281172 human ensembl 74_37 -1 known missense c.12 p.H4Q 0.998 NULL "pfam_PTB,pfam_SH3_domain,pfam_PTB/PI_dom,pfam_SH3_2,superfamily_SH3_domain,superfamily_SAM/pointed,smart_PTB/PI_dom,smart_SH3_domain,pfscan_SH3_domain" - no_errors EPS8 HGNC ENSG00000151491 extension NA H_ML-FLX007 H_ML-FLX007-FLX007 NA NA NA 38 55 59.14 FLX007-Naive 13 32937381 32937381 C G SNP tier1 BRCA2 ENST00000380152 human ensembl 74_37 1 known missense c.8042 p.T2681R 0.999 "pfam_BRCA2_OB_1,superfamily_NA-bd_OB-fold,pirsf_BRCA2" "pfam_DNA_recomb/repair_BRCA2_hlx,pfam_BRCA2_repeat,pfam_BRCA2_OB_3,pfam_BRCA2_OB_1,pfam_Tower,superfamily_DNA_recomb/repair_BRCA2_hlx,superfamily_NA-bd_OB-fold,pirsf_BRCA2,pfscan_BRCA2_repeat" - no_errors BRCA2 HGNC ENSG00000139618 extension NA H_ML-FLX007 H_ML-FLX007-FLX007 NA NA NA 35 47 57.32 FLX007-Naive 15 91453790 91453790 G C SNP tier1 MAN2A2 ENST00000360468 human ensembl 74_37 1 known missense c.1637 p.G546A 0.759 "pfam_Glyco_hydro_38_cen_dom,smart_Glyco_hydro_38_cen_dom" "pfam_Glyco_hydro_38_N,pfam_Glyco_hydro_38_C,pfam_Glyco_hydro_38_cen_dom,superfamily_Gal_mutarotase_SF_dom,superfamily_Glyco_hydro/deAcase_b/a-brl,smart_Glyco_hydro_38_cen_dom" - no_errors MAN2A2 HGNC ENSG00000196547 extension 5.69E-05 H_ML-FLX007 H_ML-FLX007-FLX007 NA NA NA 17 21 55.26 FLX007-Naive 16 3788618 3788618 G A SNP tier1 CREBBP ENST00000262367 human ensembl 74_37 -1 known missense c.4336 p.R1446C 1 pfam_Histone_H3-K56_AcTrfase_RTT109 "pfam_Histone_H3-K56_AcTrfase_RTT109,pfam_Nuc_rcpt_coact_CREBbp,pfam_KIX_dom,pfam_DUF902_CREBbp,pfam_Znf_TAZ,pfam_Bromodomain,pfam_Znf_ZZ,superfamily_Bromodomain,superfamily_Znf_TAZ,superfamily_KIX_dom,superfamily_Nuc_rcpt_coact,superfamily_Znf_FYVE_PHD,smart_Znf_TAZ,smart_Bromodomain,smart_Znf_ZZ,pfscan_KIX_dom,pfscan_Znf_TAZ,pfscan_Znf_ZZ,pfscan_Bromodomain,prints_Bromodomain" - no_errors CREBBP HGNC ENSG00000005339 extension NA H_ML-FLX007 H_ML-FLX007-FLX007 NA NA NA 77 34 30.63 FLX007-Naive 16 27472859 27472859 G A SNP tier1 GTF3C1 ENST00000356183 human ensembl 74_37 -1 known missense c.6142 p.R2048W 0.014 NULL pfam_TFIIIC_Bblock-bd - no_errors GTF3C1 HGNC ENSG00000077235 extension 0.00074 H_ML-FLX007 H_ML-FLX007-FLX007 NA NA NA 26 15 36.59 FLX007-Naive 16 30783494 30783494 G T SNP tier1 RNF40 ENST00000324685 human ensembl 74_37 1 known nonsense c.2812 p.E938* 1 NULL "smart_Znf_RING,pfscan_Znf_RING" - no_errors RNF40 HGNC ENSG00000103549 extension NA H_ML-FLX007 H_ML-FLX007-FLX007 NA NA NA 60 24 28.57 FLX007-Naive 17 2203875 2203875 G A SNP tier1 SMG6 ENST00000263073 human ensembl 74_37 -1 known missense c.172 p.R58W 1 NULL "pfam_EST1,smart_PIN_dom" - no_errors SMG6 HGNC ENSG00000070366 extension 8.13E-06 H_ML-FLX007 H_ML-FLX007-FLX007 NA NA NA 50 5 9.09 FLX007-Naive 17 36622558 36622558 A G SNP tier1 ARHGAP23 ENST00000431231 human ensembl 74_37 1 known missense c.634 p.T212A 0.777 NULL "pfam_RhoGAP_dom,pfam_PDZ,pfam_Pleckstrin_homology,superfamily_Rho_GTPase_activation_prot,superfamily_PDZ,smart_PDZ,smart_Pleckstrin_homology,smart_RhoGAP_dom,pfscan_PDZ,pfscan_Pleckstrin_homology,pfscan_RhoGAP_dom" - no_errors ARHGAP23 HGNC ENSG00000225485 extension NA H_ML-FLX007 H_ML-FLX007-FLX007 NA NA NA 14 19 55.88 FLX007-Naive 17 40476837 40476837 T C SNP tier1 STAT3 ENST00000264657 human ensembl 74_37 -1 known missense c.1492 p.I498V 0.948 "pfam_STAT_TF_DNA-bd,superfamily_p53-like_TF_DNA-bd" "pfam_STAT_TF_DNA-bd,pfam_STAT_TF_alpha,pfam_STAT_TF_prot_interaction,pfam_SH2,superfamily_p53-like_TF_DNA-bd,superfamily_STAT_TF_coiled-coil,superfamily_STAT_TF_prot_interaction,smart_STAT_TF_prot_interaction,pfscan_SH2" - no_errors STAT3 HGNC ENSG00000168610 extension 0.0003497 H_ML-FLX007 H_ML-FLX007-FLX007 NA NA NA 38 33 46.48 FLX007-Naive 18 28588474 28588474 T G SNP tier1 DSC3 ENST00000360428 human ensembl 74_37 -1 known missense c.1281 p.E427D 0.958 "pfam_Cadherin,superfamily_Cadherin-like,smart_Cadherin,pfscan_Cadherin,prints_Cadherin" "pfam_Cadherin,pfam_Cadherin_cytoplasmic-dom,pfam_Cadherin_pro_dom,superfamily_Cadherin-like,smart_Cadherin,pfscan_Cadherin,prints_Cadherin,prints_Cadherin/Desmocollin,prints_Desmosomal_cadherin" - no_errors DSC3 HGNC ENSG00000134762 extension NA H_ML-FLX007 H_ML-FLX007-FLX007 NA NA NA 48 26 34.67 FLX007-Naive 2 27360965 27360965 G C SNP tier1 C2orf53 ENST00000335524 human ensembl 74_37 -1 known nonsense c.233 p.S78* 0.006 NULL NULL - no_errors C2orf53 HGNC ENSG00000186143 extension 0.0006018 H_ML-FLX007 H_ML-FLX007-FLX007 NA NA NA 61 53 46.49 FLX007-Naive 2 167262275 167262275 G A SNP tier1 SCN7A ENST00000409855 human ensembl 74_37 -1 known nonsense c.4864 p.R1622* 1 NULL "pfam_Ion_trans_dom,pfam_Na_trans_assoc,prints_Na_channel_asu" - no_errors SCN7A HGNC ENSG00000136546 extension 0.0003923 H_ML-FLX007 H_ML-FLX007-FLX007 NA NA NA 50 18 26.09 FLX007-Naive 20 49236545 49236545 C G SNP tier1 FAM65C ENST00000535356 human ensembl 74_37 -1 known missense c.247 p.E83Q 1 superfamily_Chemokine_IL8-like_dom "superfamily_ARM-type_fold,superfamily_Chemokine_IL8-like_dom" - no_errors FAM65C HGNC ENSG00000042062 extension NA H_ML-FLX007 H_ML-FLX007-FLX007 NA NA NA 48 50 51.02 FLX007-Naive 20 60921746 60921746 C T SNP tier1 LAMA5 ENST00000252999 human ensembl 74_37 -1 known missense c.1183 p.D395N 0.965 "pfam_EGF_laminin,smart_EG-like_dom,smart_EGF_laminin,pfscan_EGF_laminin" "pfam_EGF_laminin,pfam_Laminin_I,pfam_Laminin_G,pfam_Laminin_N,pfam_Laminin_II,pfam_Laminin_B_type_IV,superfamily_ConA-like_lec_gl_sf,superfamily_Galactose-bd-like,smart_Laminin_N,smart_EGF_laminin,smart_EG-like_dom,smart_Laminin_B_subgr,smart_Laminin_G,pfscan_Laminin_B_type_IV,pfscan_EGF_laminin,pfscan_Laminin_G,pfscan_Laminin_N,pfscan_TNFR/NGFR_Cys_rich_reg" - no_errors LAMA5 HGNC ENSG00000130702 extension 2.45E-05 H_ML-FLX007 H_ML-FLX007-FLX007 NA NA NA 20 13 39.39 FLX007-Naive 22 32111456 32111456 C T SNP tier1 PRR14L ENST00000397493 human ensembl 74_37 -1 known missense c.2369 p.R790H 0 NULL NULL - no_errors PRR14L HGNC ENSG00000183530 extension 0.0005975 H_ML-FLX007 H_ML-FLX007-FLX007 NA NA NA 30 25 45.45 FLX007-Naive 4 187476365 187476365 A G SNP tier1 MTNR1A ENST00000307161 human ensembl 74_37 -1 known missense c.155 p.V52A 1 "pfam_GPCR_Rhodpsn,pfam_7TM_GPCR_serpentine_rcpt_Srx,pfam_7TM_GPCR_olfarory/Srsx,pfscan_GPCR_Rhodpsn_7TM,prints_GPCR_Rhodpsn" "pfam_GPCR_Rhodpsn,pfam_7TM_GPCR_serpentine_rcpt_Srx,pfam_7TM_GPCR_olfarory/Srsx,pfscan_GPCR_Rhodpsn_7TM,prints_Melatonin_rcpt,prints_GPCR_Rhodpsn,prints_Mel_1A_rcpt,prints_NPY_rcpt,prints_Mel_rcpt_1C" - no_errors MTNR1A HGNC ENSG00000168412 extension 0.0005408 H_ML-FLX007 H_ML-FLX007-FLX007 NA NA NA 20 22 52.38 FLX007-Naive 5 38527391 38527391 C T SNP tier1 LIFR ENST00000263409 human ensembl 74_37 -1 known missense c.263 p.R88H 0 "superfamily_Fibronectin_type3,smart_Fibronectin_type3" "pfam_Fibronectin_type3,superfamily_Fibronectin_type3,smart_Fibronectin_type3,pfscan_Fibronectin_type3" - no_errors LIFR HGNC ENSG00000113594 extension 0.0004151 H_ML-FLX007 H_ML-FLX007-FLX007 NA NA NA 31 25 44.64 FLX007-Naive 6 129687457 129687457 C T SNP tier1 LAMA2 ENST00000421865 human ensembl 74_37 1 known missense c.4811 p.A1604V 0.978 pfam_Laminin_I "pfam_Laminin_G,pfam_EGF_laminin,pfam_Laminin_N,pfam_Laminin_I,pfam_Laminin_B_type_IV,pfam_Laminin_II,superfamily_ConA-like_lec_gl_sf,superfamily_Galactose-bd-like,superfamily_t-SNARE,smart_Laminin_N,smart_EGF_laminin,smart_EG-like_dom,smart_Laminin_B_subgr,smart_Laminin_G,pfscan_Laminin_B_type_IV,pfscan_EGF_laminin,pfscan_Laminin_G,pfscan_Laminin_N" - no_errors LAMA2 HGNC ENSG00000196569 extension 1.63E-05 H_ML-FLX007 H_ML-FLX007-FLX007 NA NA NA 57 30 34.48 FLX007-Naive 7 82581328 82581328 G A SNP tier1 PCLO ENST00000333891 human ensembl 74_37 -1 known missense c.8941 p.P2981S 0.717 NULL "pfam_Znf_piccolo,pfam_C2_dom,pfam_PDZ,superfamily_C2_dom,superfamily_PDZ,superfamily_Znf_FYVE_PHD,smart_PDZ,smart_C2_dom,pfscan_C2_dom,pfscan_PDZ" - no_errors PCLO HGNC ENSG00000186472 extension NA H_ML-FLX007 H_ML-FLX007-FLX007 NA NA NA 44 12 21.43 FLX007-Naive 7 138601663 138601663 G T SNP tier1 KIAA1549 ENST00000422774 human ensembl 74_37 -1 known missense c.2709 p.D903E 0 NULL NULL - no_errors KIAA1549 HGNC ENSG00000122778 extension 0.0005788 H_ML-FLX007 H_ML-FLX007-FLX007 NA NA NA 36 25 39.68 FLX007-Naive 8 20074768 20074768 G A SNP tier1 ATP6V1B2 ENST00000276390 human ensembl 74_37 1 known missense c.1199 p.R400Q 1 "superfamily_P-loop_NTPase,tigrfam_ATPase_V1-cplx_bsu" "pfam_ATPase_F1/V1/A1_a/bsu_nucl-bd,pfam_ATPase_F1/V1/A1-cplx_a/bsu_C,pfam_ATPase_F1_a/bsu_N,superfamily_P-loop_NTPase,superfamily_ATPase_F1/V1/A1-cplx_a/bsu_C,tigrfam_ATPase_V1-cplx_bsu" - no_errors ATP6V1B2 HGNC ENSG00000147416 extension NA H_ML-FLX007 H_ML-FLX007-FLX007 NA NA NA 100 25 20 FLX007-Naive 8 36768524 36768524 C G SNP tier1 KCNU1 ENST00000399881 human ensembl 74_37 1 known missense c.2408 p.P803R 0.009 NULL "pfam_K_chnl_Ca-activ_BK_asu,pfam_2pore_dom_K_chnl_dom,prints_K_chnl_Ca-activ_BK_asu" - no_errors KCNU1 HGNC ENSG00000215262 extension 8.16E-05 H_ML-FLX007 H_ML-FLX007-FLX007 NA NA NA 21 27 56.25 FLX007-Naive 8 105257280 105257280 A C SNP tier1 RIMS2 ENST00000406091 human ensembl 74_37 1 known missense c.3471 p.E1157D 1 NULL "pfam_C2_dom,pfam_PDZ,superfamily_C2_dom,superfamily_Znf_FYVE_PHD,superfamily_PDZ,smart_PDZ,smart_C2_dom,pfscan_C2_dom,pfscan_PDZ,pfscan_Znf_FYVE-typ,pfscan_Znf_FYVE-rel" - no_errors RIMS2 HGNC ENSG00000176406 extension NA H_ML-FLX007 H_ML-FLX007-FLX007 NA NA NA 44 23 34.33 FLX007-Naive 9 90501460 90501460 G T SNP tier1 SPATA31E1 ENST00000325643 human ensembl 74_37 1 known missense c.2058 p.K686N 0 NULL NULL - no_errors SPATA31E1 HGNC ENSG00000177992 extension 0.0003903 H_ML-FLX007 H_ML-FLX007-FLX007 NA NA NA 18 13 41.94 FLX007-Naive 9 111718070 111718070 C T SNP tier1 CTNNAL1 ENST00000325551 human ensembl 74_37 -1 known missense c.1629 p.M543I 1 NULL "pfam_Vinculin/catenin,superfamily_Vinculin/catenin,prints_Alpha_catenin" - no_errors CTNNAL1 HGNC ENSG00000119326 extension NA H_ML-FLX007 H_ML-FLX007-FLX007 NA NA NA 78 31 28.44
GAMS
2
zskidmor/GenVisR
inst/extdata/FL.gms
[ "CC0-1.0" ]
{ "nbformat": 4, "nbformat_minor": 0, "metadata": { "colab": { "name": "visualize_speech_feature.ipynb", "provenance": [], "collapsed_sections": [], "last_runtime": { "build_target": "", "kind": "local" } }, "kernelspec": { "name": "python3", "display_name": "Python 3" } }, "cells": [ { "cell_type": "markdown", "metadata": { "id": "WKFhhlKKPEMt" }, "source": [ "Copyright 2020 Google LLC\n", "\n", "Licensed under the Apache License, Version 2.0 (the \"License\");\n", "you may not use this file except in compliance with the License.\n", "You may obtain a copy of the License at\n", "\n", " https://www.apache.org/licenses/LICENSE-2.0\n", "\n", "Unless required by applicable law or agreed to in writing, software\n", "distributed under the License is distributed on an \"AS IS\" BASIS,\n", "WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n", "See the License for the specific language governing permissions and\n", "limitations under the License." ] }, { "cell_type": "code", "metadata": { "id": "iHWimjnwPIJO" }, "source": [ "!git clone https://github.com/google-research/google-research.git" ], "execution_count": null, "outputs": [] }, { "cell_type": "code", "metadata": { "id": "s2LJTsGKPInr" }, "source": [ "import sys\n", "sys.path.append('./google-research')" ], "execution_count": null, "outputs": [] }, { "cell_type": "markdown", "metadata": { "id": "ukEYOjN6PO18" }, "source": [ "# Example with speech feature visualization" ] }, { "cell_type": "code", "metadata": { "id": "oVX1y4ZH0JH3", "executionInfo": { "status": "ok", "timestamp": 1607123753410, "user_tz": 480, "elapsed": 102, "user": { "displayName": "Oleg Rybakov", "photoUrl": "", "userId": "04792887722985073803" } } }, "source": [ "import numpy as np\n", "from matplotlib import pylab as plt\n", "import scipy.io.wavfile as wav\n", "import scipy as scipy\n", "\n", "from kws_streaming.layers import modes\n", "from kws_streaming.layers import speech_features\n", "from kws_streaming.layers import test_utils\n", "from kws_streaming.layers.compat import tf\n", "from kws_streaming.models import model_params" ], "execution_count": 2, "outputs": [] }, { "cell_type": "code", "metadata": { "id": "qHpFDG8kk3ph", "executionInfo": { "status": "ok", "timestamp": 1607123754262, "user_tz": 480, "elapsed": 138, "user": { "displayName": "Oleg Rybakov", "photoUrl": "", "userId": "04792887722985073803" } }, "outputId": "19f76830-0dbc-4e47-d4ce-5eb48c60ef6e" }, "source": [ "tf.compat.v1.enable_eager_execution()\n", "tf.executing_eagerly()" ], "execution_count": 3, "outputs": [ { "output_type": "execute_result", "data": { "text/plain": [ "True" ] }, "metadata": { "tags": [] }, "execution_count": 3 } ] }, { "cell_type": "code", "metadata": { "id": "eA8Ol_SF-Be-", "executionInfo": { "status": "ok", "timestamp": 1607123755824, "user_tz": 480, "elapsed": 86, "user": { "displayName": "Oleg Rybakov", "photoUrl": "", "userId": "04792887722985073803" } } }, "source": [ "def waveread_as_pcm16(filename):\n", " \"\"\"Read in audio data from a wav file. Return d, sr.\"\"\"\n", " with tf.io.gfile.GFile(filename, 'rb') as file_handle:\n", " sr, wave_data = wav.read(file_handle)\n", " # Read in wav file.\n", " return wave_data, sr\n", "\n", "def wavread_as_float(filename, target_sample_rate=16000):\n", " \"\"\"Read in audio data from a wav file. Return d, sr.\"\"\"\n", " wave_data, sr = waveread_as_pcm16(filename)\n", " desired_length = int(round(float(len(wave_data)) / sr * target_sample_rate))\n", " wave_data = scipy.signal.resample(wave_data, desired_length)\n", "\n", " # Normalize short ints to floats in range [-1..1).\n", " data = np.array(wave_data, np.float32) / 32768.0\n", " return data, target_sample_rate" ], "execution_count": 4, "outputs": [] }, { "cell_type": "code", "metadata": { "id": "YElWstqgCRHA", "executionInfo": { "status": "ok", "timestamp": 1607123760925, "user_tz": 480, "elapsed": 129, "user": { "displayName": "Oleg Rybakov", "photoUrl": "", "userId": "04792887722985073803" } } }, "source": [ "def speech_feature_model(input_size, p):\n", " speech_params = speech_features.SpeechFeatures.get_params(p)\n", " mode = modes.Modes.TRAINING\n", " inputs = tf.keras.layers.Input(shape=(input_size,), batch_size=p.batch_size, dtype=tf.float32)\n", " outputs = speech_features.SpeechFeatures(speech_params, mode, p.batch_size)(inputs)\n", " model = tf.keras.models.Model(inputs, outputs)\n", " return model" ], "execution_count": 6, "outputs": [] }, { "cell_type": "code", "metadata": { "id": "kKV_l9Ei0WAW", "executionInfo": { "status": "ok", "timestamp": 1607126156195, "user_tz": 480, "elapsed": 190, "user": { "displayName": "Oleg Rybakov", "photoUrl": "", "userId": "04792887722985073803" } } }, "source": [ "params = model_params.Params()\n", "params.window_size_ms = 25.0\n", "params.window_stride_ms = 10.0\n", "params.preemph = 0.97\n", "params.use_spec_augment = 0\n", "params.use_spec_cutout = 0\n", "params.use_tf_fft = 0\n", "params.time_shift_ms = 0.0\n", "params.sp_time_shift_ms = 0.0\n", "params.resample = 0.0\n", "params.sp_resample = 0.0\n", "params.train = 0\n", "params.batch_size = 1\n", "params.mode = modes.Modes.NON_STREAM_INFERENCE\n", "params.data_stride = 1\n", "params.data_frame_padding = None\n", "params.fft_magnitude_squared = False" ], "execution_count": 189, "outputs": [] }, { "cell_type": "code", "metadata": { "id": "2mD5jGyI0iXS", "executionInfo": { "status": "ok", "timestamp": 1607126158041, "user_tz": 480, "elapsed": 114, "user": { "displayName": "Oleg Rybakov", "photoUrl": "", "userId": "04792887722985073803" } } }, "source": [ "frame_size = int(\n", " round(params.sample_rate * params.window_size_ms / 1000.0))\n", "frame_step = int(\n", " round(params.sample_rate * params.window_stride_ms / 1000.0))" ], "execution_count": 190, "outputs": [] }, { "cell_type": "code", "metadata": { "id": "oChEQHHs96QR" }, "source": [ "# wave_filename = \"test_speech.wav\"\n", "# waveform_data, sr = wavread_as_float(wave_filename)\n", "\n", "samplerate = 16000\n", "data_size = 51200\n", "test_utils.set_seed(1)\n", "frequency = 1000\n", "waveform_data = np.cos(2.0*np.pi*frequency*np.arange(data_size)/samplerate) * 2 + np.random.rand(data_size) * 0.4" ], "execution_count": null, "outputs": [] }, { "cell_type": "code", "metadata": { "id": "Yp_KR7RO-2OV", "executionInfo": { "status": "ok", "timestamp": 1607126159162, "user_tz": 480, "elapsed": 142, "user": { "displayName": "Oleg Rybakov", "photoUrl": "", "userId": "04792887722985073803" } } }, "source": [ "signal = np.expand_dims(waveform_data, axis=0)\n", "data_size = signal.shape[1]" ], "execution_count": 192, "outputs": [] }, { "cell_type": "markdown", "metadata": { "id": "yNfwaNftGjNR" }, "source": [ "## Speech feature extractor: Data framing + Preemphasis + Windowing + DFT + Mel + log (no DCT: dct_num_features=0)\n" ] }, { "cell_type": "code", "metadata": { "id": "-f1gbju7CFyO", "executionInfo": { "status": "ok", "timestamp": 1607127233090, "user_tz": 480, "elapsed": 593, "user": { "displayName": "Oleg Rybakov", "photoUrl": "", "userId": "04792887722985073803" } } }, "source": [ "params.mel_num_bins = 80\n", "params.dct_num_features = 0 # no DCT\n", "params.feature_type = 'mfcc_tf'\n", "params.use_tf_fft = False\n", "params.mel_non_zero_only = False\n", "params.mel_upper_edge_hertz = 4000\n", "\n", "model1 = speech_feature_model(data_size, params)" ], "execution_count": 230, "outputs": [] }, { "cell_type": "code", "metadata": { "id": "SMjKBuYFKQjD" }, "source": [ "model1.layers[1].mag_rdft_mel.real_dft_tensor.shape" ], "execution_count": null, "outputs": [] }, { "cell_type": "code", "metadata": { "id": "hDX4kORFKUSi" }, "source": [ "mel_table1 = model1.layers[1].mag_rdft_mel.mel_weight_matrix.numpy()\n", "mel_table1.shape" ], "execution_count": null, "outputs": [] }, { "cell_type": "code", "metadata": { "id": "3LK9erqc8aSw" }, "source": [ "out1 = model1.predict(signal)\n", "plt.figure(figsize=(20, 5))\n", "plt.imshow(np.transpose(out1[0]))" ], "execution_count": null, "outputs": [] }, { "cell_type": "code", "metadata": { "id": "lWKHYgs5tiMR" }, "source": [ "plt.figure(figsize=(20, 5))\n", "for i in range(mel_table1.shape[1]):\n", " plt.plot(mel_table1[:, i])" ], "execution_count": null, "outputs": [] }, { "cell_type": "code", "metadata": { "id": "IZ5FmgxM7zx7", "executionInfo": { "status": "ok", "timestamp": 1607126165762, "user_tz": 480, "elapsed": 183, "user": { "displayName": "Oleg Rybakov", "photoUrl": "", "userId": "04792887722985073803" } } }, "source": [ "# It makes sense to set it True only if params.mel_upper_edge_hertz is much smaller than 8000\n", "# then DFT will be computed only for frequencies which are non zero in mel spectrum - it saves computation\n", "params.mel_non_zero_only = True\n", "\n", "model2 = speech_feature_model(data_size, params)" ], "execution_count": 198, "outputs": [] }, { "cell_type": "code", "metadata": { "id": "kE6XS59tC3Kk" }, "source": [ "model2.layers[1].mag_rdft_mel.real_dft_tensor.shape" ], "execution_count": null, "outputs": [] }, { "cell_type": "code", "metadata": { "id": "AygsA3qCC3NX" }, "source": [ "mel_table2 = model2.layers[1].mag_rdft_mel.mel_weight_matrix.numpy()\n", "mel_table2.shape" ], "execution_count": null, "outputs": [] }, { "cell_type": "code", "metadata": { "id": "DQNZowLQC3QT", "executionInfo": { "status": "ok", "timestamp": 1607126166220, "user_tz": 480, "elapsed": 164, "user": { "displayName": "Oleg Rybakov", "photoUrl": "", "userId": "04792887722985073803" } } }, "source": [ "out2 = model2.predict(signal)" ], "execution_count": 201, "outputs": [] }, { "cell_type": "code", "metadata": { "id": "N__shtNeC_Rl" }, "source": [ "plt.figure(figsize=(20, 5))\n", "plt.imshow(np.transpose(out2[0]))" ], "execution_count": null, "outputs": [] }, { "cell_type": "code", "metadata": { "id": "weKVO7v1DHm6" }, "source": [ "plt.figure(figsize=(20, 5))\n", "for i in range(mel_table2.shape[1]):\n", " plt.plot(mel_table2[:, i])" ], "execution_count": null, "outputs": [] }, { "cell_type": "code", "metadata": { "id": "2Ld1QYFcDTkl" }, "source": [ "np.allclose(out1, out2, atol=1e-06)" ], "execution_count": null, "outputs": [] }, { "cell_type": "markdown", "metadata": { "id": "utQx6LpKN_o7" }, "source": [ "## Compare mfcc_tf with mfcc_op" ] }, { "cell_type": "code", "metadata": { "id": "-z8x4ADHEV3I", "executionInfo": { "status": "ok", "timestamp": 1607126783553, "user_tz": 480, "elapsed": 645, "user": { "displayName": "Oleg Rybakov", "photoUrl": "", "userId": "04792887722985073803" } } }, "source": [ "params.mel_num_bins = 80\n", "params.dct_num_features = 20\n", "params.feature_type = 'mfcc_tf'\n", "params.use_tf_fft = False\n", "params.mel_non_zero_only = False\n", "params.fft_magnitude_squared = False\n", "params.mel_upper_edge_hertz = 4000\n", "params.preemph = 0.0 # mfcc_op des not have preemphasis\n", "\n", "model3 = speech_feature_model(data_size, params)" ], "execution_count": 223, "outputs": [] }, { "cell_type": "code", "metadata": { "id": "SEMCrlw0EV6K" }, "source": [ "out3 = model3.predict(signal)\n", "plt.figure(figsize=(20, 5))\n", "plt.imshow(np.transpose(out3[0]))" ], "execution_count": null, "outputs": [] }, { "cell_type": "code", "metadata": { "id": "IUi8ZN9TEcSr", "executionInfo": { "status": "ok", "timestamp": 1607126838834, "user_tz": 480, "elapsed": 106, "user": { "displayName": "Oleg Rybakov", "photoUrl": "", "userId": "04792887722985073803" } } }, "source": [ "params.feature_type = 'mfcc_op'\n", "# it will call two functions:\n", "# 1 audio_spectrogram computes hann windowing,\n", "# then FFT - magnitude has to be squared\n", "# because next function - mfcc computes sqrt (it assumes magnitude is squared)\n", "# 2 mfcc - compute mel spectrum from the squared-magnitude FFT input by taking the\n", "# square root, then multiply it with mel table then apply log and compute DCT\n", "\n", "params.fft_magnitude_squared = True\n", "model4 = speech_feature_model(data_size, params)" ], "execution_count": 228, "outputs": [] }, { "cell_type": "code", "metadata": { "id": "bpBLThInElQE" }, "source": [ "out4 = model4.predict(signal)\n", "plt.figure(figsize=(20, 5))\n", "plt.imshow(np.transpose(out4[0]))" ], "execution_count": null, "outputs": [] }, { "cell_type": "code", "metadata": { "id": "az3Vn9mZEr-_" }, "source": [ "# Features extracted with 'mfcc_op' are numerically different from 'mfcc_tf'\n", "np.allclose(out3, out4, atol=1e-6)" ], "execution_count": null, "outputs": [] } ] }
Jupyter Notebook
5
deepneuralmachine/google-research
kws_streaming/colab/visualize_speech_feature.ipynb
[ "Apache-2.0" ]
@0x9ef128e12a8010b2; struct Nested1 { d @0 : UInt64; e @1 : Nested2; } struct Nested2 { f @0 : UInt64; } struct Nested { b @0 : UInt64; c @1 : Nested1; } struct Message { a @0 : Nested; }
Cap'n Proto
3
pdv-ru/ClickHouse
tests/queries/0_stateless/format_schemas/02030_capnp_nested_tuples.capnp
[ "Apache-2.0" ]
f ← { a1 ← ⍵[1] a2 ← ⍵[2] a3 ← ⍵[3] r1 ← (1 1) + a1 r2 ← a2,'hej' (r1 r2 3) } res ← (f⍣3) ((2 3) 'asbc' 8) ⍝ res ← f (2 '') ⎕ ← res[1] ⎕ ← res[2] ⎕ ← res[3] 0
APL
3
melsman/apltail
tests/powtup.apl
[ "MIT" ]
--- prev: specs.textile next: java.textile title: Concurrency in Scala layout: post --- * "Runnable/Callable":#runnable * "Threads":#Thread * "Executors/ExecutorService":#executor * "Futures":#Future * "Thread Safety Problem":#danger * "Example: Search Engine":#example * "Solutions":#solutions h2(#runnable). Runnable/Callable Runnable has a single method that returns no value. <pre> trait Runnable { def run(): Unit } </pre> Callable is similar to run except that it returns a value <pre> trait Callable[V] { def call(): V } </pre> h2(#Thread). Threads Scala concurrency is built on top of the Java concurrency model. On Sun JVMs, with a IO-heavy workload, we can run tens of thousands of threads on a single machine. A Thread takes a Runnable. You have to call @start@ on a Thread in order for it to run the Runnable. <pre> scala> val hello = new Thread(new Runnable { def run() { println("hello world") } }) hello: java.lang.Thread = Thread[Thread-3,5,main] scala> hello.start hello world </pre> When you see a class implementing Runnable, you know it's intended to run in a Thread somewhere by somebody. h3. Something single-threaded Here's a code snippet that works but has problems. <pre> import java.net.{Socket, ServerSocket} import java.util.concurrent.{Executors, ExecutorService} import java.util.Date class NetworkService(port: Int, poolSize: Int) extends Runnable { val serverSocket = new ServerSocket(port) def run() { while (true) { // This will block until a connection comes in. val socket = serverSocket.accept() (new Handler(socket)).run() } } } class Handler(socket: Socket) extends Runnable { def message = (Thread.currentThread.getName() + "\n").getBytes def run() { socket.getOutputStream.write(message) socket.getOutputStream.close() } } (new NetworkService(2020, 2)).run </pre> Each request will respond with the name of the current Thread, which is always @main@. The main drawback with this code is that only one request at a time can be answered! You could put each request in a Thread. Simply change <pre> (new Handler(socket)).run() </pre> to <pre> (new Thread(new Handler(socket))).start() </pre> but what if you want to reuse threads or have other policies about thread behavior? h2(#executor). Executors With the release of Java 5, it was decided that a more abstract interface to Threads was required. You can get an @ExecutorService@ using static methods on the @Executors@ object. Those methods provide you to configure an @ExecutorService@ with a variety of policies such as thread pooling. Here's our old blocking network server written to allow concurrent requests. <pre> import java.net.{Socket, ServerSocket} import java.util.concurrent.{Executors, ExecutorService} import java.util.Date class NetworkService(port: Int, poolSize: Int) extends Runnable { val serverSocket = new ServerSocket(port) val pool: ExecutorService = Executors.newFixedThreadPool(poolSize) def run() { try { while (true) { // This will block until a connection comes in. val socket = serverSocket.accept() pool.execute(new Handler(socket)) } } finally { pool.shutdown() } } } class Handler(socket: Socket) extends Runnable { def message = (Thread.currentThread.getName() + "\n").getBytes def run() { socket.getOutputStream.write(message) socket.getOutputStream.close() } } (new NetworkService(2020, 2)).run </pre> Here's a transcript connecting to it showing how the internal threads are re-used. <pre> $ nc localhost 2020 pool-1-thread-1 $ nc localhost 2020 pool-1-thread-2 $ nc localhost 2020 pool-1-thread-1 $ nc localhost 2020 pool-1-thread-2 </pre> h2(#Future). Futures A @Future@ represents an asynchronous computation. You can wrap your computation in a Future and when you need the result, you simply call a blocking @Await.result()@ method on it. An @Executor@ returns a @Future@. If you use the Finagle RPC system, you use @Future@ instances to hold results that might not have arrived yet. A @FutureTask@ is a Runnable and is designed to be run by an @Executor@ <pre> val future = new FutureTask[String](new Callable[String]() { def call(): String = { searcher.search(target); }}) executor.execute(future) </pre> Now I need the results so let's block until its done. <pre> val blockingResult = Await.result(future) </pre> *See Also* <a href="finagle.html">Scala School's Finagle page</a> has plenty of examples of using <code>Future</code>s, including some nice ways to combine them. Effective Scala has opinions about <a href="https://twitter.github.com/effectivescala/#Twitter's standard libraries-Futures">Futures</a> . h2(#danger). Thread Safety Problem <pre> class Person(var name: String) { def set(changedName: String) { name = changedName } } </pre> This program is not safe in a multi-threaded environment. If two threads have references to the same instance of Person and call @set@, you can't predict what @name@ will be at the end of both calls. In the Java memory model, each processor is allowed to cache values in its L1 or L2 cache so two threads running on different processors can each have their own view of data. Let's talk about some tools that force threads to keep a consistent view of data. h3. Three tools h4. synchronization Mutexes provide ownership semantics. When you enter a mutex, you own it. The most common way of using a mutex in the JVM is by synchronizing on something. In this case, we'll synchronize on our Person. In the JVM, you can synchronize on any instance that's not null. <pre> class Person(var name: String) { def set(changedName: String) { this.synchronized { name = changedName } } } </pre> h4. volatile With Java 5's change to the memory model, volatile and synchronized are basically identical except with volatile, nulls are allowed. @synchronized@ allows for more fine-grained locking. @volatile@ synchronizes on every access. <pre> class Person(@volatile var name: String) { def set(changedName: String) { name = changedName } } </pre> h4. AtomicReference Also in Java 5, a whole raft of low-level concurrency primitives were added. One of them is an @AtomicReference@ class <pre> import java.util.concurrent.atomic.AtomicReference class Person(val name: AtomicReference[String]) { def set(changedName: String) { name.set(changedName) } } </pre> h4. Does this cost anything? @AtomicReference is the most costly of these two choices since you have to go through method dispatch to access values. @volatile@ and @synchronized@ are built on top of Java's built-in monitors. Monitors cost very little if there's no contention. Since @synchronized@ allows you more fine-grained control over when you synchronize, there will be less contention so @synchronized@ tends to be the cheapest option. When you enter synchronized points, access volatile references, or deference AtomicReferences, Java forces the processor to flush their cache lines and provide a consistent view of data. PLEASE CORRECT ME IF I'M WRONG HERE. This is a complicated subject, I'm sure there will be a lengthy classroom discussion at this point. h3. Other neat tools from Java 5 As I mentioned with @AtomicReference@, Java 5 brought many great tools along with it. h4. CountDownLatch A @CountDownLatch@ is a simple mechanism for multiple threads to communicate with each other. <pre> val doneSignal = new CountDownLatch(2) doAsyncWork(1) doAsyncWork(2) doneSignal.await() println("both workers finished!") </pre> Among other things, it's great for unit tests. Let's say you're doing some async work and want to ensure that functions are completing. Simply have your functions @countDown@ the latch and @await@ in the test. h4. AtomicInteger/Long Since incrementing Ints and Longs is such a common task, @AtomicInteger@ and @AtomicLong@ were added. h4. AtomicBoolean I probably don't have to explain what this would be for. h4. ReadWriteLocks @ReadWriteLock@ lets you take reader and writer locks. reader locks only block when a writer lock is taken. h2(#example). Let's build an unsafe search engine Here's a simple inverted index that isn't thread-safe. Our inverted index maps parts of a name to a given User. This is written in a naive way assuming only single-threaded access. Note the alternative default constructor @this()@ that uses a @mutable.HashMap@ <pre> import scala.collection.mutable case class User(name: String, id: Int) class InvertedIndex(val userMap: mutable.Map[String, User]) { def this() = this(new mutable.HashMap[String, User]) def tokenizeName(name: String): Seq[String] = { name.split(" ").map(_.toLowerCase) } def add(term: String, user: User) { userMap += term -> user } def add(user: User) { tokenizeName(user.name).foreach { term => add(term, user) } } } </pre> I've left out how to get users out of our index for now. We'll get to that later. h2(#solutions). Let's make it safe In our inverted index example above, userMap is not guaranteed to be safe. Multiple clients could try to add items at the same time and have the same kinds of visibility errors we saw in our first @Person@ example. Since userMap isn't thread-safe, how do we keep only a single thread at a time mutating it? You might consider locking on userMap while adding. <pre> def add(user: User) { userMap.synchronized { tokenizeName(user.name).foreach { term => add(term, user) } } } </pre> Unfortunately, this is too coarse. Always try to do as much expensive work outside of the mutex as possible. Remember what I said about locking being cheap if there is no contention. If you do less work inside of a block, there will be less contention. <pre> def add(user: User) { // tokenizeName was measured to be the most expensive operation. val tokens = tokenizeName(user.name) tokens.foreach { term => userMap.synchronized { add(term, user) } } } </pre> h2. SynchronizedMap We can mixin synchronization with a mutable HashMap using the SynchronizedMap trait. We can extend our existing InvertedIndex to give users an easy way to build the synchronized index. <pre> import scala.collection.mutable.SynchronizedMap class SynchronizedInvertedIndex(userMap: mutable.Map[String, User]) extends InvertedIndex(userMap) { def this() = this(new mutable.HashMap[String, User] with SynchronizedMap[String, User]) } </pre> If you look at the implementation, you realize that it's simply synchronizing on every method so while it's safe, it might not have the performance you're hoping for. h2. Java ConcurrentHashMap Java comes with a nice thread-safe ConcurrentHashMap. Thankfully, we can use JavaConverters to give us nice Scala semantics. In fact, we can seamlessly layer our new, thread-safe InvertedIndex as an extension of the old unsafe one. <pre> import java.util.concurrent.ConcurrentHashMap import scala.collection.JavaConverters._ class ConcurrentInvertedIndex(userMap: collection.mutable.ConcurrentMap[String, User]) extends InvertedIndex(userMap) { def this() = this(new ConcurrentHashMap[String, User] asScala) } </pre> h2. Let's load our InvertedIndex h3. The naive way <pre> trait UserMaker { def makeUser(line: String) = line.split(",") match { case Array(name, userid) => User(name, userid.trim().toInt) } } class FileRecordProducer(path: String) extends UserMaker { def run() { Source.fromFile(path, "utf-8").getLines.foreach { line => index.add(makeUser(line)) } } } </pre> For every line in our file, we call @makeUser@ and then @add@ it to our InvertedIndex. If we use a concurrent InvertedIndex, we can call add in parallel and since makeUser has no side-effects, it's already thread-safe. We can't read a file in parallel but we _can_ build the User and add it to the index in parallel. h3. A solution: Producer/Consumer A common pattern for async computation is to separate producers from consumers and have them only communicate via a @Queue@. Let's walk through how that would work for our search engine indexer. <pre> import java.util.concurrent.{BlockingQueue, LinkedBlockingQueue} // Concrete producer class Producer[T](path: String, queue: BlockingQueue[T]) extends Runnable { def run() { Source.fromFile(path, "utf-8").getLines.foreach { line => queue.put(line) } } } // Abstract consumer abstract class Consumer[T](queue: BlockingQueue[T]) extends Runnable { def run() { while (true) { val item = queue.take() consume(item) } } def consume(x: T) } val queue = new LinkedBlockingQueue[String]() // One thread for the producer val producer = new Producer[String]("users.txt", q) new Thread(producer).start() trait UserMaker { def makeUser(line: String) = line.split(",") match { case Array(name, userid) => User(name, userid.trim().toInt) } } class IndexerConsumer(index: InvertedIndex, queue: BlockingQueue[String]) extends Consumer[String](queue) with UserMaker { def consume(t: String) = index.add(makeUser(t)) } // Let's pretend we have 8 cores on this machine. val cores = 8 val pool = Executors.newFixedThreadPool(cores) // Submit one consumer per core. for (i <- i to cores) { pool.submit(new IndexerConsumer[String](index, q)) } </pre>
Textile
5
AstronomiaDev/scala_school
web/concurrency.textile
[ "Apache-2.0" ]
// Regression test for issue #24986 // Make sure that the span of a closure marked `move` begins at the `move` keyword. fn main() { let x: () = move || (); //~ ERROR mismatched types }
Rust
3
Eric-Arellano/rust
src/test/ui/span/move-closure.rs
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
CREATE TABLE users ( username VARCHAR(256) PRIMARY KEY, password VARCHAR(256), enabled BOOLEAN ); CREATE TABLE authorities ( username VARCHAR(256) REFERENCES users (username), authority VARCHAR(256) );
SQL
4
zeesh49/tutorials
guest/spring-security/src/main/resources/schema.sql
[ "MIT" ]
********************************************************************** * SERIALIZER ********************************************************************** CLASS ltcl_test_checksum_serializer DEFINITION FINAL FOR TESTING DURATION SHORT RISK LEVEL HARMLESS. PUBLIC SECTION. METHODS serialize FOR TESTING. METHODS serialize_w_zero_item FOR TESTING. METHODS deserialize FOR TESTING. METHODS deserialize_w_root_file FOR TESTING. CLASS-METHODS get_mock EXPORTING et_checksums TYPE zif_abapgit_persistence=>ty_local_checksum_tt ev_str TYPE string. CLASS-METHODS space_to_separator IMPORTING iv_str TYPE string RETURNING VALUE(rv_str) TYPE string. ENDCLASS. CLASS ltcl_test_checksum_serializer IMPLEMENTATION. METHOD get_mock. FIELD-SYMBOLS <ls_cs> LIKE LINE OF et_checksums. FIELD-SYMBOLS <ls_file> LIKE LINE OF <ls_cs>-files. CLEAR et_checksums. APPEND INITIAL LINE TO et_checksums ASSIGNING <ls_cs>. <ls_cs>-item-devclass = '$PKG'. <ls_cs>-item-obj_type = 'DEVC'. <ls_cs>-item-obj_name = '$PKG'. APPEND INITIAL LINE TO <ls_cs>-files ASSIGNING <ls_file>. <ls_file>-path = '/'. <ls_file>-filename = '$pkg.devc.xml'. <ls_file>-sha1 = 'hash3'. APPEND INITIAL LINE TO et_checksums ASSIGNING <ls_cs>. <ls_cs>-item-devclass = '$PKG'. <ls_cs>-item-obj_type = 'PROG'. <ls_cs>-item-obj_name = 'ZHELLO'. APPEND INITIAL LINE TO <ls_cs>-files ASSIGNING <ls_file>. <ls_file>-path = '/'. <ls_file>-filename = 'zhello.prog.abap'. <ls_file>-sha1 = 'hash1'. APPEND INITIAL LINE TO <ls_cs>-files ASSIGNING <ls_file>. <ls_file>-path = '/'. <ls_file>-filename = 'zhello.prog.xml'. <ls_file>-sha1 = 'hash2'. ev_str = space_to_separator( |DEVC $PKG $PKG\n| && |/ $pkg.devc.xml hash3\n| && |PROG ZHELLO $PKG\n| && |/ zhello.prog.abap hash1\n| && |/ zhello.prog.xml hash2| ). ENDMETHOD. METHOD space_to_separator. rv_str = replace( val = iv_str sub = ` ` with = `|` occ = 0 ). " This way it's easier to read and adjust :) ENDMETHOD. METHOD serialize. DATA lt_checksums TYPE zif_abapgit_persistence=>ty_local_checksum_tt. DATA lv_act TYPE string. DATA lv_exp TYPE string. get_mock( IMPORTING et_checksums = lt_checksums ev_str = lv_exp ). lv_act = lcl_checksum_serializer=>serialize( lt_checksums ). cl_abap_unit_assert=>assert_equals( act = lv_act exp = lv_exp ). ENDMETHOD. METHOD deserialize. DATA lt_checksums_exp TYPE zif_abapgit_persistence=>ty_local_checksum_tt. DATA lt_checksums_act TYPE zif_abapgit_persistence=>ty_local_checksum_tt. DATA lv_str TYPE string. get_mock( IMPORTING et_checksums = lt_checksums_exp ev_str = lv_str ). lt_checksums_act = lcl_checksum_serializer=>deserialize( lv_str ). cl_abap_unit_assert=>assert_equals( act = lt_checksums_act exp = lt_checksums_exp ). ENDMETHOD. METHOD serialize_w_zero_item. DATA lt_checksums TYPE zif_abapgit_persistence=>ty_local_checksum_tt. DATA lv_act TYPE string. DATA lv_exp TYPE string. FIELD-SYMBOLS <ls_cs> LIKE LINE OF lt_checksums. FIELD-SYMBOLS <ls_file> LIKE LINE OF <ls_cs>-files. APPEND INITIAL LINE TO lt_checksums ASSIGNING <ls_cs>. " empty item ! lv_act = lcl_checksum_serializer=>serialize( lt_checksums ). cl_abap_unit_assert=>assert_equals( act = lv_act exp = '' ). APPEND INITIAL LINE TO <ls_cs>-files ASSIGNING <ls_file>. <ls_file>-path = '/'. <ls_file>-filename = '.gitignore'. <ls_file>-sha1 = 'whatever'. APPEND INITIAL LINE TO <ls_cs>-files ASSIGNING <ls_file>. <ls_file>-path = '/'. <ls_file>-filename = '.abapgit.xml'. <ls_file>-sha1 = 'hashZ'. lv_act = lcl_checksum_serializer=>serialize( lt_checksums ). cl_abap_unit_assert=>assert_equals( act = lv_act exp = space_to_separator( |@\n| && |/ .gitignore whatever\n| && " it's OK, helper doesn't filter irrelevant files |/ .abapgit.xml hashZ| ) ). ENDMETHOD. METHOD deserialize_w_root_file. DATA lt_checksums_exp TYPE zif_abapgit_persistence=>ty_local_checksum_tt. DATA lt_checksums_act TYPE zif_abapgit_persistence=>ty_local_checksum_tt. DATA lv_str TYPE string. FIELD-SYMBOLS <ls_cs> LIKE LINE OF lt_checksums_exp. FIELD-SYMBOLS <ls_file> LIKE LINE OF <ls_cs>-files. APPEND INITIAL LINE TO lt_checksums_exp ASSIGNING <ls_cs>. " empty item ! APPEND INITIAL LINE TO <ls_cs>-files ASSIGNING <ls_file>. <ls_file>-path = '/'. <ls_file>-filename = '.abapgit.xml'. <ls_file>-sha1 = 'hashZ'. lt_checksums_act = lcl_checksum_serializer=>deserialize( space_to_separator( |@\n| && |/ .abapgit.xml hashZ| ) ). cl_abap_unit_assert=>assert_equals( act = lt_checksums_act exp = lt_checksums_exp ). ENDMETHOD. ENDCLASS. ********************************************************************** * CHECKSUMS ********************************************************************** CLASS ltcl_test_checksums DEFINITION FINAL FOR TESTING DURATION SHORT RISK LEVEL HARMLESS. PUBLIC SECTION. INTERFACES zif_abapgit_persist_repo_cs. DATA mv_last_update_key TYPE zif_abapgit_persistence=>ty_repo-key. DATA mv_last_update_cs_blob TYPE zif_abapgit_persistence=>ty_content-data_str. METHODS get FOR TESTING RAISING zcx_abapgit_exception. METHODS rebuild_simple FOR TESTING RAISING zcx_abapgit_exception. METHODS rebuild_w_dot_abapgit FOR TESTING RAISING zcx_abapgit_exception. METHODS update_simple FOR TESTING RAISING zcx_abapgit_exception. ENDCLASS. ********************************************************************** * HELPERS ********************************************************************** CLASS lcl_repo_mock DEFINITION FINAL. PUBLIC SECTION. INTERFACES zif_abapgit_repo. INTERFACES zif_abapgit_repo_srv. DATA mt_local_files TYPE zif_abapgit_definitions=>ty_files_item_tt. DATA mt_remote_files TYPE zif_abapgit_definitions=>ty_files_tt. ENDCLASS. CLASS lcl_repo_mock IMPLEMENTATION. METHOD zif_abapgit_repo_srv~get. IF iv_key = '1'. ri_repo = me. ENDIF. ENDMETHOD. METHOD zif_abapgit_repo~get_files_local. rt_files = mt_local_files. ENDMETHOD. METHOD zif_abapgit_repo~get_files_remote. rt_files = mt_remote_files. ENDMETHOD. METHOD zif_abapgit_repo~get_key. rv_key = '1'. ENDMETHOD. METHOD zif_abapgit_repo~get_name. rv_name = 'test'. ENDMETHOD. METHOD zif_abapgit_repo~checksums. ENDMETHOD. METHOD zif_abapgit_repo_srv~delete. ENDMETHOD. METHOD zif_abapgit_repo~get_local_settings. ENDMETHOD. METHOD zif_abapgit_repo~get_package. ENDMETHOD. METHOD zif_abapgit_repo_srv~get_repo_from_package. ENDMETHOD. METHOD zif_abapgit_repo_srv~get_repo_from_url. ENDMETHOD. METHOD zif_abapgit_repo~is_offline. ENDMETHOD. METHOD zif_abapgit_repo~deserialize. ENDMETHOD. METHOD zif_abapgit_repo~deserialize_checks. ENDMETHOD. METHOD zif_abapgit_repo~set_dot_abapgit. ENDMETHOD. METHOD zif_abapgit_repo~get_dot_abapgit. ENDMETHOD. METHOD zif_abapgit_repo_srv~is_repo_installed. ENDMETHOD. METHOD zif_abapgit_repo_srv~list. ENDMETHOD. METHOD zif_abapgit_repo_srv~list_favorites. ENDMETHOD. METHOD zif_abapgit_repo_srv~new_offline. ENDMETHOD. METHOD zif_abapgit_repo_srv~new_online. ENDMETHOD. METHOD zif_abapgit_repo_srv~purge. ENDMETHOD. METHOD zif_abapgit_repo~refresh. ENDMETHOD. METHOD zif_abapgit_repo_srv~validate_package. ENDMETHOD. METHOD zif_abapgit_repo_srv~validate_url. ENDMETHOD. ENDCLASS. CLASS lcl_local_file_builder DEFINITION FINAL. PUBLIC SECTION. DATA mt_tab TYPE zif_abapgit_definitions=>ty_files_item_tt. METHODS add IMPORTING iv_str TYPE string. ENDCLASS. CLASS lcl_local_file_builder IMPLEMENTATION. METHOD add. DATA ls_item LIKE LINE OF mt_tab. DATA lv_tmp TYPE string. lv_tmp = iv_str. CONDENSE lv_tmp. SPLIT lv_tmp AT space INTO ls_item-item-devclass ls_item-item-obj_type ls_item-item-obj_name ls_item-file-path ls_item-file-filename ls_item-file-sha1. IF ls_item-item-devclass = '@'. " Root items CLEAR: ls_item-item-devclass, ls_item-item-obj_type, ls_item-item-obj_name. ENDIF. APPEND ls_item TO mt_tab. ENDMETHOD. ENDCLASS. CLASS lcl_remote_file_builder DEFINITION FINAL. PUBLIC SECTION. DATA mt_tab TYPE zif_abapgit_definitions=>ty_files_tt. METHODS add IMPORTING iv_str TYPE string. ENDCLASS. CLASS lcl_remote_file_builder IMPLEMENTATION. METHOD add. DATA ls_item LIKE LINE OF mt_tab. DATA lv_tmp TYPE string. lv_tmp = iv_str. CONDENSE lv_tmp. SPLIT lv_tmp AT space INTO ls_item-path ls_item-filename ls_item-sha1. APPEND ls_item TO mt_tab. ENDMETHOD. ENDCLASS. CLASS lcl_file_sig_builder DEFINITION FINAL. PUBLIC SECTION. DATA mt_tab TYPE zif_abapgit_definitions=>ty_file_signatures_tt. METHODS add IMPORTING iv_str TYPE string. ENDCLASS. CLASS lcl_file_sig_builder IMPLEMENTATION. METHOD add. DATA ls_item LIKE LINE OF mt_tab. DATA lv_tmp TYPE string. lv_tmp = iv_str. CONDENSE lv_tmp. SPLIT lv_tmp AT space INTO ls_item-path ls_item-filename ls_item-sha1. APPEND ls_item TO mt_tab. ENDMETHOD. ENDCLASS. ********************************************************************** * CHECKSUMS UT ********************************************************************** CLASS ltcl_test_checksums IMPLEMENTATION. METHOD get. DATA lo_mock TYPE REF TO lcl_repo_mock. DATA li_cut TYPE REF TO zif_abapgit_repo_checksums. DATA lt_checksums_exp TYPE zif_abapgit_persistence=>ty_local_checksum_tt. CREATE OBJECT lo_mock. zcl_abapgit_repo_srv=>inject_instance( lo_mock ). zcl_abapgit_persist_injector=>set_repo_cs( me ). ltcl_test_checksum_serializer=>get_mock( IMPORTING et_checksums = lt_checksums_exp ). CREATE OBJECT li_cut TYPE zcl_abapgit_repo_checksums EXPORTING iv_repo_key = '1'. cl_abap_unit_assert=>assert_equals( act = li_cut->get( ) exp = lt_checksums_exp ). ENDMETHOD. METHOD rebuild_simple. DATA lo_mock TYPE REF TO lcl_repo_mock. DATA li_cut TYPE REF TO zif_abapgit_repo_checksums. DATA lv_cs_exp TYPE string. DATA lo_l_builder TYPE REF TO lcl_local_file_builder. DATA lo_r_builder TYPE REF TO lcl_remote_file_builder. CREATE OBJECT lo_mock. zcl_abapgit_repo_srv=>inject_instance( lo_mock ). zcl_abapgit_persist_injector=>set_repo_cs( me ). " Local CREATE OBJECT lo_l_builder. lo_l_builder->add( '$PKG PROG ZHELLO / zhello.prog.abap hash1' ). lo_l_builder->add( '$PKG PROG ZHELLO / zhello.prog.xml hash2' ). lo_l_builder->add( '$PKG DEVC $PKG / $pkg.devc.xml hash3' ). lo_mock->mt_local_files = lo_l_builder->mt_tab. " Remote CREATE OBJECT lo_r_builder. lo_r_builder->add( '/ zhello.prog.abap hash1' ). lo_r_builder->add( '/ zhello.prog.xml hash2' ). lo_r_builder->add( '/ $pkg.devc.xml hash3' ). lo_mock->mt_remote_files = lo_r_builder->mt_tab. CREATE OBJECT li_cut TYPE zcl_abapgit_repo_checksums EXPORTING iv_repo_key = '1'. li_cut->rebuild( ). lv_cs_exp = ltcl_test_checksum_serializer=>space_to_separator( |#repo_name#test\n| && |DEVC $PKG $PKG\n| && |/ $pkg.devc.xml hash3\n| && |PROG ZHELLO $PKG\n| && |/ zhello.prog.abap hash1\n| && |/ zhello.prog.xml hash2| ). cl_abap_unit_assert=>assert_equals( act = mv_last_update_key exp = '1' ). cl_abap_unit_assert=>assert_equals( act = mv_last_update_cs_blob exp = lv_cs_exp ). ENDMETHOD. METHOD update_simple. DATA lo_mock TYPE REF TO lcl_repo_mock. DATA li_cut TYPE REF TO zif_abapgit_repo_checksums. DATA lv_cs_exp TYPE string. DATA lo_f_builder TYPE REF TO lcl_file_sig_builder. CREATE OBJECT lo_mock. zcl_abapgit_repo_srv=>inject_instance( lo_mock ). zcl_abapgit_persist_injector=>set_repo_cs( me ). CREATE OBJECT lo_f_builder. lo_f_builder->add( '/ zhello.prog.abap hash1' ). lo_f_builder->add( '/ zhello.prog.xml hashNEW' ). CREATE OBJECT li_cut TYPE zcl_abapgit_repo_checksums EXPORTING iv_repo_key = '1'. li_cut->update( lo_f_builder->mt_tab ). lv_cs_exp = ltcl_test_checksum_serializer=>space_to_separator( |#repo_name#test\n| && |DEVC $PKG $PKG\n| && |/ $pkg.devc.xml hash3\n| && |PROG ZHELLO $PKG\n| && |/ zhello.prog.abap hash1\n| && |/ zhello.prog.xml hashNEW| ). cl_abap_unit_assert=>assert_equals( act = mv_last_update_key exp = '1' ). cl_abap_unit_assert=>assert_equals( act = mv_last_update_cs_blob exp = lv_cs_exp ). ENDMETHOD. METHOD zif_abapgit_persist_repo_cs~delete. ENDMETHOD. METHOD zif_abapgit_persist_repo_cs~read. IF iv_key = '1'. ltcl_test_checksum_serializer=>get_mock( IMPORTING ev_str = rv_cs_blob ). rv_cs_blob = |#repo_name#test\n{ rv_cs_blob }|. ENDIF. ENDMETHOD. METHOD zif_abapgit_persist_repo_cs~update. mv_last_update_key = iv_key. mv_last_update_cs_blob = iv_cs_blob. ENDMETHOD. METHOD rebuild_w_dot_abapgit. DATA lo_mock TYPE REF TO lcl_repo_mock. DATA li_cut TYPE REF TO zif_abapgit_repo_checksums. DATA lv_cs_exp TYPE string. DATA lo_l_builder TYPE REF TO lcl_local_file_builder. DATA lo_r_builder TYPE REF TO lcl_remote_file_builder. CREATE OBJECT lo_mock. zcl_abapgit_repo_srv=>inject_instance( lo_mock ). zcl_abapgit_persist_injector=>set_repo_cs( me ). " Local CREATE OBJECT lo_l_builder. lo_l_builder->add( '@ @ @ / .abapgit.xml hashZ' ). lo_l_builder->add( '@ @ @ / .gitignore whatever' ). lo_l_builder->add( '$PKG DEVC $PKG / $pkg.devc.xml hash3' ). lo_mock->mt_local_files = lo_l_builder->mt_tab. " Remote CREATE OBJECT lo_r_builder. lo_r_builder->add( '/ .abapgit.xml hashZ' ). lo_r_builder->add( '/ .gitignore whatever' ). lo_r_builder->add( '/ $pkg.devc.xml hash3' ). lo_mock->mt_remote_files = lo_r_builder->mt_tab. CREATE OBJECT li_cut TYPE zcl_abapgit_repo_checksums EXPORTING iv_repo_key = '1'. li_cut->rebuild( ). lv_cs_exp = ltcl_test_checksum_serializer=>space_to_separator( |#repo_name#test\n| && |@\n| && |/ .abapgit.xml hashZ\n| && |DEVC $PKG $PKG\n| && |/ $pkg.devc.xml hash3| ). cl_abap_unit_assert=>assert_equals( act = mv_last_update_cs_blob exp = lv_cs_exp ). ENDMETHOD. ENDCLASS. ********************************************************************** * UPDATE CALCULATOR ********************************************************************** CLASS ltcl_update_calculator_test DEFINITION FINAL FOR TESTING DURATION SHORT RISK LEVEL HARMLESS. PRIVATE SECTION. METHODS simple_test FOR TESTING. ENDCLASS. CLASS ltcl_update_calculator_test IMPLEMENTATION. METHOD simple_test. DATA lt_cs_current TYPE zif_abapgit_persistence=>ty_local_checksum_tt. DATA lt_cs_exp TYPE zif_abapgit_persistence=>ty_local_checksum_tt. DATA lt_cs_act TYPE zif_abapgit_persistence=>ty_local_checksum_tt. DATA lo_l_builder TYPE REF TO lcl_local_file_builder. DATA lo_f_builder TYPE REF TO lcl_file_sig_builder. CREATE OBJECT lo_f_builder. lo_f_builder->add( '/ zhello.prog.abap hash1' ). lo_f_builder->add( '/ zhello.prog.xml hashNEW' ). CREATE OBJECT lo_l_builder. lo_l_builder->add( '$PKG PROG ZHELLO / zhello.prog.abap hash1' ). lo_l_builder->add( '$PKG PROG ZHELLO / zhello.prog.xml hash2' ). lo_l_builder->add( '$PKG DEVC $PKG / $pkg.devc.xml hash3' ). lt_cs_current = lcl_checksum_serializer=>deserialize( ltcl_test_checksum_serializer=>space_to_separator( |DEVC $PKG $PKG\n| && |/ $pkg.devc.xml hash3\n| && |PROG ZHELLO $PKG\n| && |/ zhello.prog.abap hash1\n| && |/ zhello.prog.xml hash2| ) ). lt_cs_exp = lcl_checksum_serializer=>deserialize( ltcl_test_checksum_serializer=>space_to_separator( |DEVC $PKG $PKG\n| && |/ $pkg.devc.xml hash3\n| && |PROG ZHELLO $PKG\n| && |/ zhello.prog.abap hash1\n| && |/ zhello.prog.xml hashNEW| ) ). lt_cs_act = lcl_update_calculator=>calculate_updated( it_current_checksums = lt_cs_current it_updated_files = lo_f_builder->mt_tab it_local_files = lo_l_builder->mt_tab ). cl_abap_unit_assert=>assert_equals( act = lt_cs_act exp = lt_cs_exp ). ENDMETHOD. ENDCLASS.
ABAP
5
gepparta/abapGit
src/repo/zcl_abapgit_repo_checksums.clas.testclasses.abap
[ "MIT" ]
module openconfig-mpls-types { yang-version "1"; // namespace namespace "http://openconfig.net/yang/mpls-types"; prefix "oc-mpls-types"; import openconfig-extensions { prefix oc-ext; } // meta organization "OpenConfig working group"; contact "OpenConfig working group netopenconfig@googlegroups.com"; description "General types for MPLS / TE data model"; oc-ext:openconfig-version "2.4.0"; revision "2017-06-21" { description "Add TC bits typedef."; reference "2.4.0"; } revision "2017-03-22" { description "Add RSVP calculated-absolute-subscription-bw"; reference "2.3.0"; } revision "2017-01-26" { description "Add RSVP Tspec, clarify units for RSVP, remove unused LDP"; reference "2.2.0"; } revision "2016-12-15" { description "Add additional MPLS parameters"; reference "2.1.0"; } revision "2016-09-01" { description "Revisions based on implementation feedback"; reference "2.0.0"; } revision "2016-08-08" { description "Public release of MPLS models"; reference "1.0.1"; } // identity statements identity PATH_COMPUTATION_METHOD { description "base identity for supported path computation mechanisms"; } identity LOCALLY_COMPUTED { base PATH_COMPUTATION_METHOD; description "indicates a constrained-path LSP in which the path is computed by the local LER"; } identity EXTERNALLY_QUERIED { base PATH_COMPUTATION_METHOD; description "Constrained-path LSP in which the path is obtained by querying an external source, such as a PCE server. In the case that an LSP is defined to be externally queried, it may also have associated explicit definitions (which are provided to the external source to aid computation); and the path that is returned by the external source is not required to provide a wholly resolved path back to the originating system - that is to say, some local computation may also be required"; } identity EXPLICITLY_DEFINED { base PATH_COMPUTATION_METHOD; description "constrained-path LSP in which the path is explicitly specified as a collection of strict or/and loose hops"; } // using identities rather than enum types to simplify adding new // signaling protocols as they are introduced and supported identity PATH_SETUP_PROTOCOL { description "base identity for supported MPLS signaling protocols"; } identity PATH_SETUP_RSVP { base PATH_SETUP_PROTOCOL; description "RSVP-TE signaling protocol"; } identity PATH_SETUP_SR { base PATH_SETUP_PROTOCOL; description "Segment routing"; } identity PATH_SETUP_LDP { base PATH_SETUP_PROTOCOL; description "LDP - RFC 5036"; } identity PROTECTION_TYPE { description "base identity for protection type"; } identity UNPROTECTED { base PROTECTION_TYPE; description "no protection is desired"; } identity LINK_PROTECTION_REQUIRED { base PROTECTION_TYPE; description "link protection is desired"; } identity LINK_NODE_PROTECTION_REQUESTED { base PROTECTION_TYPE; description "node and link protection are both desired"; } identity LSP_ROLE { description "Base identity for describing the role of label switched path at the current node"; } identity INGRESS { base LSP_ROLE; description "Label switched path is an ingress (headend) LSP"; } identity EGRESS { base LSP_ROLE; description "Label switched path is an egress (tailend) LSP"; } identity TRANSIT { base LSP_ROLE; description "Label switched path is a transit LSP"; } identity TUNNEL_TYPE { description "Base identity from which specific tunnel types are derived."; } identity P2P { base TUNNEL_TYPE; description "TE point-to-point tunnel type."; } identity P2MP { base TUNNEL_TYPE; description "TE point-to-multipoint tunnel type."; } identity LSP_OPER_STATUS { description "Base identity for LSP operational status"; } identity DOWN { base LSP_OPER_STATUS; description "LSP is operationally down or out of service"; } identity UP { base LSP_OPER_STATUS; description "LSP is operationally active and available for traffic."; } identity TUNNEL_ADMIN_STATUS { description "Base identity for tunnel administrative status"; } identity ADMIN_DOWN { base TUNNEL_ADMIN_STATUS; description "LSP is administratively down"; } identity ADMIN_UP { base TUNNEL_ADMIN_STATUS; description "LSP is administratively up"; } identity NULL_LABEL_TYPE { description "Base identity from which specific null-label types are derived."; } identity EXPLICIT { base NULL_LABEL_TYPE; description "Explicit null label is used."; } identity IMPLICIT { base NULL_LABEL_TYPE; description "Implicit null label is used."; } identity LSP_METRIC_TYPE { description "Base identity for types of LSP metric specification"; } identity LSP_METRIC_RELATIVE { base LSP_METRIC_TYPE; description "The metric specified for the LSPs to which this identity refers is specified as a relative value to the IGP metric cost to the LSP's tail-end."; } identity LSP_METRIC_ABSOLUTE { base LSP_METRIC_TYPE; description "The metric specified for the LSPs to which this identity refers is specified as an absolute value"; } identity LSP_METRIC_INHERITED { base LSP_METRIC_TYPE; description "The metric for for the LSPs to which this identity refers is not specified explicitly - but rather inherited from the IGP cost directly"; } // typedef statements typedef mpls-label { type union { type uint32 { range 16..1048575; } type enumeration { enum IPV4_EXPLICIT_NULL { value 0; description "valid at the bottom of the label stack, indicates that stack must be popped and packet forwarded based on IPv4 header"; } enum ROUTER_ALERT { value 1; description "allowed anywhere in the label stack except the bottom, local router delivers packet to the local CPU when this label is at the top of the stack"; } enum IPV6_EXPLICIT_NULL { value 2; description "valid at the bottom of the label stack, indicates that stack must be popped and packet forwarded based on IPv6 header"; } enum IMPLICIT_NULL { value 3; description "assigned by local LSR but not carried in packets"; } enum ENTROPY_LABEL_INDICATOR { value 7; description "Entropy label indicator, to allow an LSR to distinguish between entropy label and applicaiton labels RFC 6790"; } enum NO_LABEL { description "This value is utilised to indicate that the packet that is forwarded by the local system does not have an MPLS header applied to it. Typically, this is used at the egress of an LSP"; } } } description "type for MPLS label value encoding"; reference "RFC 3032 - MPLS Label Stack Encoding"; } typedef tunnel-type { type enumeration { enum P2P { description "point-to-point label-switched-path"; } enum P2MP { description "point-to-multipoint label-switched-path"; } enum MP2MP { description "multipoint-to-multipoint label-switched-path"; } } description "defines the tunnel type for the LSP"; reference "RFC 6388 - Label Distribution Protocol Extensions for Point-to-Multipoint and Multipoint-to-Multipoint Label Switched Paths RFC 4875 - Extensions to Resource Reservation Protocol - Traffic Engineering (RSVP-TE) for Point-to-Multipoint TE Label Switched Paths (LSPs)"; } typedef bandwidth-kbps { type uint64; units "Kbps"; description "Bandwidth values expressed in kilobits per second"; } typedef bandwidth-mbps { type uint64; units "Mbps"; description "Bandwidth values expressed in megabits per second"; } typedef bandwidth-gbps { type uint64; units "Gbps"; description "Bandwidth values expressed in gigabits per second"; } typedef mpls-tc { type uint8 { range "0..7"; } description "Values of the MPLS Traffic Class (formerly known as Experimental, EXP) bits"; } // grouping statements // data definition statements // augment statements // rpc statements // notification statements }
YANG
5
meodaiduoi/onos
models/openconfig/src/main/yang/mpls/openconfig-mpls-types@2017-05-15.yang
[ "Apache-2.0" ]
int getPosHash(int4 gridPos, __global float4* pParams) { int4 gridDim = *((__global int4*)(pParams + 1)); gridPos.x &= gridDim.x - 1; gridPos.y &= gridDim.y - 1; gridPos.z &= gridDim.z - 1; int hash = gridPos.z * gridDim.y * gridDim.x + gridPos.y * gridDim.x + gridPos.x; return hash; } int4 getGridPos(float4 worldPos, __global float4* pParams) { int4 gridPos; int4 gridDim = *((__global int4*)(pParams + 1)); gridPos.x = (int)floor(worldPos.x * pParams[0].x) & (gridDim.x - 1); gridPos.y = (int)floor(worldPos.y * pParams[0].y) & (gridDim.y - 1); gridPos.z = (int)floor(worldPos.z * pParams[0].z) & (gridDim.z - 1); return gridPos; } // calculate grid hash value for each body using its AABB __kernel void kCalcHashAABB(int numObjects, __global float4* allpAABB, __global const int* smallAabbMapping, __global int2* pHash, __global float4* pParams ) { int index = get_global_id(0); if(index >= numObjects) { return; } float4 bbMin = allpAABB[smallAabbMapping[index]*2]; float4 bbMax = allpAABB[smallAabbMapping[index]*2 + 1]; float4 pos; pos.x = (bbMin.x + bbMax.x) * 0.5f; pos.y = (bbMin.y + bbMax.y) * 0.5f; pos.z = (bbMin.z + bbMax.z) * 0.5f; pos.w = 0.f; // get address in grid int4 gridPos = getGridPos(pos, pParams); int gridHash = getPosHash(gridPos, pParams); // store grid hash and body index int2 hashVal; hashVal.x = gridHash; hashVal.y = index; pHash[index] = hashVal; } __kernel void kClearCellStart( int numCells, __global int* pCellStart ) { int index = get_global_id(0); if(index >= numCells) { return; } pCellStart[index] = -1; } __kernel void kFindCellStart(int numObjects, __global int2* pHash, __global int* cellStart ) { __local int sharedHash[513]; int index = get_global_id(0); int2 sortedData; if(index < numObjects) { sortedData = pHash[index]; // Load hash data into shared memory so that we can look // at neighboring body's hash value without loading // two hash values per thread sharedHash[get_local_id(0) + 1] = sortedData.x; if((index > 0) && (get_local_id(0) == 0)) { // first thread in block must load neighbor body hash sharedHash[0] = pHash[index-1].x; } } barrier(CLK_LOCAL_MEM_FENCE); if(index < numObjects) { if((index == 0) || (sortedData.x != sharedHash[get_local_id(0)])) { cellStart[sortedData.x] = index; } } } int testAABBOverlap(float4 min0, float4 max0, float4 min1, float4 max1) { return (min0.x <= max1.x)&& (min1.x <= max0.x) && (min0.y <= max1.y)&& (min1.y <= max0.y) && (min0.z <= max1.z)&& (min1.z <= max0.z); } //search for AABB 'index' against other AABBs' in this cell void findPairsInCell( int numObjects, int4 gridPos, int index, __global int2* pHash, __global int* pCellStart, __global float4* allpAABB, __global const int* smallAabbMapping, __global float4* pParams, volatile __global int* pairCount, __global int4* pPairBuff2, int maxPairs ) { int4 pGridDim = *((__global int4*)(pParams + 1)); int maxBodiesPerCell = pGridDim.w; int gridHash = getPosHash(gridPos, pParams); // get start of bucket for this cell int bucketStart = pCellStart[gridHash]; if (bucketStart == -1) { return; // cell empty } // iterate over bodies in this cell int2 sortedData = pHash[index]; int unsorted_indx = sortedData.y; float4 min0 = allpAABB[smallAabbMapping[unsorted_indx]*2 + 0]; float4 max0 = allpAABB[smallAabbMapping[unsorted_indx]*2 + 1]; int handleIndex = as_int(min0.w); int bucketEnd = bucketStart + maxBodiesPerCell; bucketEnd = (bucketEnd > numObjects) ? numObjects : bucketEnd; for(int index2 = bucketStart; index2 < bucketEnd; index2++) { int2 cellData = pHash[index2]; if (cellData.x != gridHash) { break; // no longer in same bucket } int unsorted_indx2 = cellData.y; //if (unsorted_indx2 < unsorted_indx) // check not colliding with self if (unsorted_indx2 != unsorted_indx) // check not colliding with self { float4 min1 = allpAABB[smallAabbMapping[unsorted_indx2]*2 + 0]; float4 max1 = allpAABB[smallAabbMapping[unsorted_indx2]*2 + 1]; if(testAABBOverlap(min0, max0, min1, max1)) { if (pairCount) { int handleIndex2 = as_int(min1.w); if (handleIndex<handleIndex2) { int curPair = atomic_add(pairCount,1); if (curPair<maxPairs) { int4 newpair; newpair.x = handleIndex; newpair.y = handleIndex2; newpair.z = -1; newpair.w = -1; pPairBuff2[curPair] = newpair; } } } } } } } __kernel void kFindOverlappingPairs( int numObjects, __global float4* allpAABB, __global const int* smallAabbMapping, __global int2* pHash, __global int* pCellStart, __global float4* pParams , volatile __global int* pairCount, __global int4* pPairBuff2, int maxPairs ) { int index = get_global_id(0); if(index >= numObjects) { return; } int2 sortedData = pHash[index]; int unsorted_indx = sortedData.y; float4 bbMin = allpAABB[smallAabbMapping[unsorted_indx]*2 + 0]; float4 bbMax = allpAABB[smallAabbMapping[unsorted_indx]*2 + 1]; float4 pos; pos.x = (bbMin.x + bbMax.x) * 0.5f; pos.y = (bbMin.y + bbMax.y) * 0.5f; pos.z = (bbMin.z + bbMax.z) * 0.5f; // get address in grid int4 gridPosA = getGridPos(pos, pParams); int4 gridPosB; // examine only neighbouring cells for(int z=-1; z<=1; z++) { gridPosB.z = gridPosA.z + z; for(int y=-1; y<=1; y++) { gridPosB.y = gridPosA.y + y; for(int x=-1; x<=1; x++) { gridPosB.x = gridPosA.x + x; findPairsInCell(numObjects, gridPosB, index, pHash, pCellStart, allpAABB,smallAabbMapping, pParams, pairCount,pPairBuff2, maxPairs); } } } }
OpenCL
5
N0hbdy/godot
thirdparty/bullet/Bullet3OpenCL/BroadphaseCollision/kernels/gridBroadphase.cl
[ "CC-BY-3.0", "Apache-2.0", "MIT" ]
#***************************************************************************** # * # Make file for VMS * # Author : J.Jansen (joukj@hrem.nano.tudelft.nl) * # Date : 24 August 2012 * # * #***************************************************************************** .first define wx [--.include.wx] .ifdef __WXMOTIF__ CXX_DEFINE = /define=(__WXMOTIF__=1)/name=(as_is,short)\ /assume=(nostdnew,noglobal_array_new) .else .ifdef __WXGTK__ CXX_DEFINE = /define=(__WXGTK__=1)/float=ieee/name=(as_is,short)/ieee=denorm\ /assume=(nostdnew,noglobal_array_new) .else CXX_DEFINE = .endif .endif .suffixes : .cpp .cpp.obj : cxx $(CXXFLAGS)$(CXX_DEFINE) $(MMS$TARGET_NAME).cpp all : .ifdef __WXMOTIF__ $(MMS)$(MMSQUALIFIERS) game.exe .else .ifdef __WXGTK__ $(MMS)$(MMSQUALIFIERS) game_gtk.exe .endif .endif .ifdef __WXMOTIF__ game.exe : game.obj bombs1.obj bombs.obj cxxlink game,bombs1,bombs,[--.lib]vms/opt .else .ifdef __WXGTK__ game_gtk.exe : game.obj bombs1.obj bombs.obj cxxlink/exec=game_gtk.exe game,bombs1,bombs,[--.lib]vms_gtk/opt .endif .endif game.obj : game.cpp [--.include.wx]setup.h bombs1.obj : bombs1.cpp [--.include.wx]setup.h bombs.obj : bombs.cpp [--.include.wx]setup.h
Module Management System
3
madanagopaltcomcast/pxCore
examples/pxScene2d/external/WinSparkle/3rdparty/wxWidgets/demos/bombs/descrip.mms
[ "Apache-2.0" ]
// Copyright 2020 The gRPC authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. syntax = "proto3"; package simple; import "simpler.proto"; message SimpleMessage { string msg = 1; oneof personal_or_business { bool personal = 2; bool business = 3; }; simpler.SimplerMessage simpler_message = 4; }; message SimpleMessageRequest { SimpleMessage simple_msg = 1; }; message SimpleMessageResponse { bool understood = 1; }; service SimpleMessageService { rpc Tell(SimpleMessageRequest) returns (SimpleMessageResponse); };
Protocol Buffer
4
arghyadip01/grpc
tools/distrib/python/grpcio_tools/grpc_tools/test/simple.proto
[ "Apache-2.0" ]
# Copyright (C) 2004-2009, Parrot Foundation. # $Id$ .namespace [ "Foo" ] newclass P1, "Foo" addattribute P1, ".i" addattribute P1, ".j" set I10, 0 set I11, 500000 new P3, "Foo" loop: getattribute P2, P3, ".i" new P10, 'Integer' # x = Foo.i assign P10, P2 getattribute P2, P3, ".j" new P11, 'Integer' # y = Foo.j assign P11, P2 inc I10 lt I10, I11, loop getattribute P2, P3, ".i" print P2 print "\n" end .pcc_sub __init: .include "interpinfo.pasm" interpinfo P2, .INTERPINFO_CURRENT_OBJECT new P10, 'Integer' set P10, 10 setattribute P2, ".i", P10 inc I0 new P10, 'Integer' set P10, 20 setattribute P2, ".j", P10 returncc # Local Variables: # mode: pir # fill-column: 100 # End: # vim: expandtab shiftwidth=4 ft=pir:
Parrot Assembly
2
allisonrandal/pcc_testing
examples/benchmarks/oo3.pasm
[ "Artistic-2.0" ]
# Copyright 2015 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. # ============================================================================== """Tests for tensorflow.ops.parsing_ops.""" import itertools import numpy as np from tensorflow.core.example import example_pb2 from tensorflow.core.example import feature_pb2 from tensorflow.python.framework import dtypes from tensorflow.python.framework import errors_impl from tensorflow.python.framework import ops from tensorflow.python.framework import sparse_tensor from tensorflow.python.framework import tensor_shape from tensorflow.python.framework import test_util from tensorflow.python.ops import parsing_ops from tensorflow.python.platform import test from tensorflow.python.platform import tf_logging # Helpers for creating Example objects example = example_pb2.Example feature = feature_pb2.Feature features = lambda d: feature_pb2.Features(feature=d) bytes_feature = lambda v: feature(bytes_list=feature_pb2.BytesList(value=v)) int64_feature = lambda v: feature(int64_list=feature_pb2.Int64List(value=v)) float_feature = lambda v: feature(float_list=feature_pb2.FloatList(value=v)) # Helpers for creating SequenceExample objects feature_list = lambda l: feature_pb2.FeatureList(feature=l) feature_lists = lambda d: feature_pb2.FeatureLists(feature_list=d) sequence_example = example_pb2.SequenceExample def empty_sparse(dtype, shape=None): if shape is None: shape = [0] return (np.empty(shape=(0, len(shape)), dtype=np.int64), np.array([], dtype=dtype), np.array(shape, dtype=np.int64)) def flatten(list_of_lists): """Flatten one level of nesting.""" return itertools.chain.from_iterable(list_of_lists) def flatten_values_tensors_or_sparse(tensors_list): """Flatten each SparseTensor object into 3 Tensors for session.run().""" return list( flatten([[v.indices, v.values, v.dense_shape] if isinstance( v, sparse_tensor.SparseTensor) else [v] for v in tensors_list])) def _compare_output_to_expected(tester, dict_tensors, expected_tensors, flat_output): tester.assertEqual(set(dict_tensors.keys()), set(expected_tensors.keys())) i = 0 # Index into the flattened output of session.run() for k, v in dict_tensors.items(): expected_v = expected_tensors[k] tf_logging.info("Comparing key: %s", k) if isinstance(v, sparse_tensor.SparseTensor): # Three outputs for SparseTensor : indices, values, shape. tester.assertEqual([k, len(expected_v)], [k, 3]) tester.assertAllEqual(expected_v[0], flat_output[i]) tester.assertAllEqual(expected_v[1], flat_output[i + 1]) tester.assertAllEqual(expected_v[2], flat_output[i + 2]) i += 3 else: # One output for standard Tensor. tester.assertAllEqual(expected_v, flat_output[i]) i += 1 class ParseExampleTest(test.TestCase): def _test(self, kwargs, expected_values=None, expected_err=None): with self.cached_session() as sess: if expected_err: with self.assertRaisesWithPredicateMatch(expected_err[0], expected_err[1]): out = parsing_ops.parse_single_example(**kwargs) sess.run(flatten_values_tensors_or_sparse(out.values())) return else: # Returns dict w/ Tensors and SparseTensors. out = parsing_ops.parse_single_example(**kwargs) # Also include a test with the example names specified to retain # code coverage of the unfused version, and ensure that the two # versions produce the same results. out_with_example_name = parsing_ops.parse_single_example( example_names="name", **kwargs) for result_dict in [out, out_with_example_name]: result = flatten_values_tensors_or_sparse(result_dict.values()) # Check values. tf_result = self.evaluate(result) _compare_output_to_expected(self, result_dict, expected_values, tf_result) for k, f in kwargs["features"].items(): if isinstance(f, parsing_ops.FixedLenFeature) and f.shape is not None: self.assertEqual(tuple(out[k].get_shape().as_list()), f.shape) elif isinstance(f, parsing_ops.VarLenFeature): self.assertEqual( tuple(out[k].indices.get_shape().as_list()), (None, 1)) self.assertEqual(tuple(out[k].values.get_shape().as_list()), (None,)) self.assertEqual( tuple(out[k].dense_shape.get_shape().as_list()), (1,)) @test_util.run_deprecated_v1 def testEmptySerializedWithAllDefaults(self): sparse_name = "st_a" a_name = "a" b_name = "b" c_name = "c:has_a_tricky_name" a_default = [0, 42, 0] b_default = np.random.rand(3, 3).astype(bytes) c_default = np.random.rand(2).astype(np.float32) expected_st_a = ( # indices, values, shape np.empty((0, 1), dtype=np.int64), # indices np.empty((0,), dtype=np.int64), # sp_a is DT_INT64 np.array([0], dtype=np.int64)) # max_elems = 0 expected_output = { sparse_name: expected_st_a, a_name: np.array([a_default]), b_name: np.array(b_default), c_name: np.array(c_default), } self._test({ "serialized": ops.convert_to_tensor(""), "features": { sparse_name: parsing_ops.VarLenFeature(dtypes.int64), a_name: parsing_ops.FixedLenFeature( (1, 3), dtypes.int64, default_value=a_default), b_name: parsing_ops.FixedLenFeature( (3, 3), dtypes.string, default_value=b_default), c_name: parsing_ops.FixedLenFeature( (2,), dtypes.float32, default_value=c_default), } }, expected_output) def testEmptySerializedWithoutDefaultsShouldFail(self): input_features = { "st_a": parsing_ops.VarLenFeature(dtypes.int64), "a": parsing_ops.FixedLenFeature( (1, 3), dtypes.int64, default_value=[0, 42, 0]), "b": parsing_ops.FixedLenFeature( (3, 3), dtypes.string, default_value=np.random.rand(3, 3).astype(bytes)), # Feature "c" is missing a default, this gap will cause failure. "c": parsing_ops.FixedLenFeature( (2,), dtype=dtypes.float32), } # Edge case where the key is there but the feature value is empty original = example(features=features({"c": feature()})) self._test( { "serialized": original.SerializeToString(), "features": input_features, }, expected_err=(errors_impl.OpError, "Feature: c \\(data type: float\\) is required")) # Standard case of missing key and value. self._test( { "serialized": "", "features": input_features, }, expected_err=(errors_impl.OpError, "Feature: c \\(data type: float\\) is required")) def testDenseNotMatchingShapeShouldFail(self): original = example(features=features({ "a": float_feature([-1, -1]), })) serialized = original.SerializeToString() self._test( { "serialized": ops.convert_to_tensor(serialized), "features": { "a": parsing_ops.FixedLenFeature((1, 3), dtypes.float32) } }, # TODO(mrry): Consider matching the `io.parse_example()` error message. expected_err=(errors_impl.OpError, "Key: a.")) def testDenseDefaultNoShapeShouldFail(self): original = example(features=features({ "a": float_feature([1, 1, 3]), })) serialized = original.SerializeToString() self._test( { "serialized": ops.convert_to_tensor(serialized), "features": { "a": parsing_ops.FixedLenFeature(None, dtypes.float32) } }, expected_err=(ValueError, "Missing shape for feature a")) @test_util.run_deprecated_v1 def testSerializedContainingSparse(self): original = [ example(features=features({ "st_c": float_feature([3, 4]) })), example(features=features({ "st_c": float_feature([]), # empty float list })), example(features=features({ "st_d": feature(), # feature with nothing in it })), example(features=features({ "st_c": float_feature([1, 2, -1]), "st_d": bytes_feature([b"hi"]) })) ] expected_outputs = [{ "st_c": (np.array([[0], [1]], dtype=np.int64), np.array([3.0, 4.0], dtype=np.float32), np.array([2], dtype=np.int64)), "st_d": empty_sparse(bytes) }, { "st_c": empty_sparse(np.float32), "st_d": empty_sparse(bytes) }, { "st_c": empty_sparse(np.float32), "st_d": empty_sparse(bytes) }, { "st_c": (np.array([[0], [1], [2]], dtype=np.int64), np.array([1.0, 2.0, -1.0], dtype=np.float32), np.array([3], dtype=np.int64)), "st_d": (np.array([[0]], dtype=np.int64), np.array(["hi"], dtype=bytes), np.array([1], dtype=np.int64)) }] for proto, expected_output in zip(original, expected_outputs): self._test({ "serialized": ops.convert_to_tensor(proto.SerializeToString()), "features": { "st_c": parsing_ops.VarLenFeature(dtypes.float32), "st_d": parsing_ops.VarLenFeature(dtypes.string) }, }, expected_output) def testSerializedContainingSparseFeature(self): original = [ example(features=features({ "val": float_feature([3, 4]), "idx": int64_feature([5, 10]) })), example(features=features({ "val": float_feature([]), # empty float list "idx": int64_feature([]) })), example(features=features({ "val": feature(), # feature with nothing in it # missing idx feature })), example(features=features({ "val": float_feature([1, 2, -1]), "idx": int64_feature([0, 9, 3]) # unsorted })) ] expected_outputs = [{ "sp": (np.array([[5], [10]], dtype=np.int64), np.array([3.0, 4.0], dtype=np.float32), np.array([13], dtype=np.int64)) }, { "sp": empty_sparse(np.float32, shape=[13]) }, { "sp": empty_sparse(np.float32, shape=[13]) }, { "sp": (np.array([[0], [3], [9]], dtype=np.int64), np.array([1.0, -1.0, 2.0], dtype=np.float32), np.array([13], dtype=np.int64)) }] for proto, expected_output in zip(original, expected_outputs): self._test({ "serialized": ops.convert_to_tensor(proto.SerializeToString()), "features": { "sp": parsing_ops.SparseFeature(["idx"], "val", dtypes.float32, [13]) } }, expected_output) def testSerializedContainingSparseFeatureReuse(self): original = [ example(features=features({ "val1": float_feature([3, 4]), "val2": float_feature([5, 6]), "idx": int64_feature([5, 10]) })), example(features=features({ "val1": float_feature([]), # empty float list "idx": int64_feature([]) })), ] expected_outputs = [{ "sp1": (np.array([[5], [10]], dtype=np.int64), np.array([3.0, 4.0], dtype=np.float32), np.array([13], dtype=np.int64)), "sp2": (np.array([[5], [10]], dtype=np.int64), np.array([5.0, 6.0], dtype=np.float32), np.array([7], dtype=np.int64)) }, { "sp1": empty_sparse(np.float32, shape=[13]), "sp2": empty_sparse(np.float32, shape=[7]) }] for proto, expected_output in zip(original, expected_outputs): self._test({ "serialized": ops.convert_to_tensor(proto.SerializeToString()), "features": { "sp1": parsing_ops.SparseFeature("idx", "val1", dtypes.float32, 13), "sp2": parsing_ops.SparseFeature( "idx", "val2", dtypes.float32, size=7, already_sorted=True) } }, expected_output) def testSerializedContaining3DSparseFeature(self): original = [ example(features=features({ "val": float_feature([3, 4]), "idx0": int64_feature([5, 10]), "idx1": int64_feature([0, 2]), })), example(features=features({ "val": float_feature([]), # empty float list "idx0": int64_feature([]), "idx1": int64_feature([]), })), example(features=features({ "val": feature(), # feature with nothing in it # missing idx feature })), example(features=features({ "val": float_feature([1, 2, -1]), "idx0": int64_feature([0, 9, 3]), # unsorted "idx1": int64_feature([1, 0, 2]), })) ] expected_outputs = [{ "sp": (np.array([[5, 0], [10, 2]], dtype=np.int64), np.array([3.0, 4.0], dtype=np.float32), np.array([13, 3], dtype=np.int64)) }, { "sp": empty_sparse(np.float32, shape=[13, 3]) }, { "sp": empty_sparse(np.float32, shape=[13, 3]) }, { "sp": (np.array([[0, 1], [3, 2], [9, 0]], dtype=np.int64), np.array([1.0, -1.0, 2.0], dtype=np.float32), np.array([13, 3], dtype=np.int64)) }] for proto, expected_output in zip(original, expected_outputs): self._test({ "serialized": ops.convert_to_tensor(proto.SerializeToString()), "features": { "sp": parsing_ops.SparseFeature(["idx0", "idx1"], "val", dtypes.float32, [13, 3]) } }, expected_output) def testSerializedContainingDense(self): aname = "a" bname = "b*has+a:tricky_name" original = [ example(features=features({ aname: float_feature([1, 1]), bname: bytes_feature([b"b0_str"]), })), example(features=features({ aname: float_feature([-1, -1]), bname: bytes_feature([b""]), })) ] # pylint: disable=too-many-function-args expected_outputs = [ { aname: np.array([1, 1], dtype=np.float32).reshape(1, 2, 1), bname: np.array(["b0_str"], dtype=bytes).reshape( 1, 1, 1, 1) }, { aname: np.array([-1, -1], dtype=np.float32).reshape(1, 2, 1), bname: np.array([""], dtype=bytes).reshape( 1, 1, 1, 1) } ] # pylint: enable=too-many-function-args for proto, expected_output in zip(original, expected_outputs): # No defaults, values required self._test({ "serialized": ops.convert_to_tensor(proto.SerializeToString()), "features": { aname: parsing_ops.FixedLenFeature((1, 2, 1), dtype=dtypes.float32), bname: parsing_ops.FixedLenFeature( (1, 1, 1, 1), dtype=dtypes.string), } }, expected_output) # This test is identical as the previous one except # for the creation of 'serialized'. def testSerializedContainingDenseWithConcat(self): aname = "a" bname = "b*has+a:tricky_name" # TODO(lew): Feature appearing twice should be an error in future. original = [ (example(features=features({ aname: float_feature([10, 10]), })), example(features=features({ aname: float_feature([1, 1]), bname: bytes_feature([b"b0_str"]), }))), ( example(features=features({ bname: bytes_feature([b"b100"]), })), example(features=features({ aname: float_feature([-1, -1]), bname: bytes_feature([b"b1"]), })),), ] # pylint: disable=too-many-function-args expected_outputs = [ { aname: np.array([1, 1], dtype=np.float32).reshape(1, 2, 1), bname: np.array(["b0_str"], dtype=bytes).reshape( 1, 1, 1, 1) }, { aname: np.array([-1, -1], dtype=np.float32).reshape(1, 2, 1), bname: np.array(["b1"], dtype=bytes).reshape( 1, 1, 1, 1) } ] # pylint: enable=too-many-function-args for (m, n), expected_output in zip(original, expected_outputs): # No defaults, values required self._test({ "serialized": ops.convert_to_tensor( m.SerializeToString() + n.SerializeToString()), "features": { aname: parsing_ops.FixedLenFeature((1, 2, 1), dtype=dtypes.float32), bname: parsing_ops.FixedLenFeature( (1, 1, 1, 1), dtype=dtypes.string), } }, expected_output) def testSerializedContainingDenseScalar(self): original = [ example(features=features({ "a": float_feature([1]), })), example(features=features({})) ] expected_outputs = [{ "a": np.array([1], dtype=np.float32) }, { "a": np.array([-1], dtype=np.float32) }] for proto, expected_output in zip(original, expected_outputs): self._test({ "serialized": ops.convert_to_tensor(proto.SerializeToString()), "features": { "a": parsing_ops.FixedLenFeature( (1,), dtype=dtypes.float32, default_value=-1), } }, expected_output) def testSerializedContainingDenseWithDefaults(self): original = [ example(features=features({ "a": float_feature([1, 1]), })), example(features=features({ "b": bytes_feature([b"b1"]), })), example(features=features({ "b": feature() })), ] # pylint: disable=too-many-function-args expected_outputs = [ { "a": np.array([1, 1], dtype=np.float32).reshape(1, 2, 1), "b": np.array("tmp_str", dtype=bytes).reshape( 1, 1, 1, 1) }, { "a": np.array([3, -3], dtype=np.float32).reshape(1, 2, 1), "b": np.array("b1", dtype=bytes).reshape( 1, 1, 1, 1) }, { "a": np.array([3, -3], dtype=np.float32).reshape(1, 2, 1), "b": np.array("tmp_str", dtype=bytes).reshape( 1, 1, 1, 1) } ] # pylint: enable=too-many-function-args for proto, expected_output in zip(original, expected_outputs): self._test({ "serialized": ops.convert_to_tensor(proto.SerializeToString()), "features": { "a": parsing_ops.FixedLenFeature( (1, 2, 1), dtype=dtypes.float32, default_value=[3.0, -3.0]), "b": parsing_ops.FixedLenFeature( (1, 1, 1, 1), dtype=dtypes.string, default_value="tmp_str"), } }, expected_output) @test_util.run_deprecated_v1 def testSerializedContainingSparseAndSparseFeatureAndDenseWithNoDefault(self): original = [ example(features=features({ "c": float_feature([3, 4]), "val": bytes_feature([b"a", b"b"]), "idx": int64_feature([0, 3]) })), example(features=features({ "c": float_feature([1, 2]), "val": bytes_feature([b"c"]), "idx": int64_feature([7]) })) ] a_default = np.array([[1, 2, 3]], dtype=np.int64) b_default = np.random.rand(3, 3).astype(bytes) expected_st_a = empty_sparse(np.int64) expected_outputs = [{ "st_a": expected_st_a, "sp": (np.array([[0], [3]], dtype=np.int64), np.array(["a", "b"], dtype=bytes), np.array( [13], dtype=np.int64)), "a": a_default, "b": b_default, "c": np.array([3, 4], dtype=np.float32) }, { "st_a": expected_st_a, "sp": (np.array([[7]], dtype=np.int64), np.array(["c"], dtype=bytes), np.array([13], dtype=np.int64)), "a": a_default, "b": b_default, "c": np.array([1, 2], dtype=np.float32) }] for proto, expected_output in zip(original, expected_outputs): self._test( { "serialized": ops.convert_to_tensor(proto.SerializeToString()), "features": { "st_a": parsing_ops.VarLenFeature(dtypes.int64), "sp": parsing_ops.SparseFeature("idx", "val", dtypes.string, 13 ), "a": parsing_ops.FixedLenFeature( (1, 3), dtypes.int64, default_value=a_default), "b": parsing_ops.FixedLenFeature( (3, 3), dtypes.string, default_value=b_default), # Feature "c" must be provided, since it has no default_value. "c": parsing_ops.FixedLenFeature((2,), dtypes.float32), } }, expected_output) @test_util.run_deprecated_v1 def testSerializedContainingSparseAndSparseFeatureWithReuse(self): original = [ example(features=features({ "val": bytes_feature([b"a", b"b"]), "idx": int64_feature([0, 3]) })), example(features=features({ "val": bytes_feature([b"c", b"d"]), "idx": int64_feature([7, 1]) })) ] expected_outputs = [{ "idx": (np.array([[0], [1]], dtype=np.int64), np.array([0, 3], dtype=np.int64), np.array([2], dtype=np.int64)), "sp": (np.array([[0], [3]], dtype=np.int64), np.array(["a", "b"], dtype=bytes), np.array( [13], dtype=np.int64)) }, { "idx": (np.array([[0], [1]], dtype=np.int64), np.array([7, 1], dtype=np.int64), np.array([2], dtype=np.int64)), "sp": (np.array([[1], [7]], dtype=np.int64), np.array(["d", "c"], dtype=bytes), np.array([13], dtype=np.int64)) }] for proto, expected_output in zip(original, expected_outputs): self._test({ "serialized": ops.convert_to_tensor(proto.SerializeToString()), "features": { "idx": parsing_ops.VarLenFeature(dtypes.int64), "sp": parsing_ops.SparseFeature(["idx"], "val", dtypes.string, [13] ), } }, expected_output) @test_util.run_deprecated_v1 def testSerializedContainingVarLenDense(self): aname = "a" bname = "b" cname = "c" dname = "d" original = [ example(features=features({ cname: int64_feature([2]), })), example(features=features({ aname: float_feature([1, 1]), bname: bytes_feature([b"b0_str", b"b1_str"]), })), example(features=features({ aname: float_feature([-1, -1, 2, 2]), bname: bytes_feature([b"b1"]), })), example(features=features({ aname: float_feature([]), cname: int64_feature([3]), })), ] # pylint: disable=too-many-function-args expected_outputs = [ { aname: np.empty(shape=(0, 2, 1), dtype=np.int64), bname: np.empty(shape=(0, 1, 1, 1), dtype=bytes), cname: np.array([2], dtype=np.int64), dname: np.empty(shape=(0,), dtype=bytes) }, { aname: np.array([[[1], [1]]], dtype=np.float32), bname: np.array(["b0_str", "b1_str"], dtype=bytes).reshape(2, 1, 1, 1), cname: np.empty(shape=(0,), dtype=np.int64), dname: np.empty(shape=(0,), dtype=bytes) }, { aname: np.array([[[-1], [-1]], [[2], [2]]], dtype=np.float32), bname: np.array(["b1"], dtype=bytes).reshape(1, 1, 1, 1), cname: np.empty(shape=(0,), dtype=np.int64), dname: np.empty(shape=(0,), dtype=bytes) }, { aname: np.empty(shape=(0, 2, 1), dtype=np.int64), bname: np.empty(shape=(0, 1, 1, 1), dtype=bytes), cname: np.array([3], dtype=np.int64), dname: np.empty(shape=(0,), dtype=bytes) }, ] # pylint: enable=too-many-function-args for proto, expected_output in zip(original, expected_outputs): self._test({ "serialized": ops.convert_to_tensor(proto.SerializeToString()), "features": { aname: parsing_ops.FixedLenSequenceFeature( (2, 1), dtype=dtypes.float32, allow_missing=True), bname: parsing_ops.FixedLenSequenceFeature( (1, 1, 1), dtype=dtypes.string, allow_missing=True), cname: parsing_ops.FixedLenSequenceFeature( shape=[], dtype=dtypes.int64, allow_missing=True), dname: parsing_ops.FixedLenSequenceFeature( shape=[], dtype=dtypes.string, allow_missing=True), } }, expected_output) # Test with padding values. # NOTE(mrry): Since we parse a single example at a time, the fixed-length # sequences will not be padded, and the padding value will be ignored. for proto, expected_output in zip(original, expected_outputs): self._test({ "serialized": ops.convert_to_tensor(proto.SerializeToString()), "features": { aname: parsing_ops.FixedLenSequenceFeature( (2, 1), dtype=dtypes.float32, allow_missing=True), bname: parsing_ops.FixedLenSequenceFeature( (1, 1, 1), dtype=dtypes.string, allow_missing=True), cname: parsing_ops.FixedLenSequenceFeature( shape=[], dtype=dtypes.int64, allow_missing=True), dname: parsing_ops.FixedLenSequenceFeature( shape=[], dtype=dtypes.string, allow_missing=True), } }, expected_output) # Change number of required values so the inputs are not a # multiple of this size. self._test( { "serialized": ops.convert_to_tensor(original[2].SerializeToString()), "features": { aname: parsing_ops.FixedLenSequenceFeature( (2, 1), dtype=dtypes.float32, allow_missing=True), bname: parsing_ops.FixedLenSequenceFeature( (2, 1, 1), dtype=dtypes.string, allow_missing=True), } }, # TODO(mrry): Consider matching the `io.parse_example()` error message. expected_err=(errors_impl.OpError, "Key: b.")) self._test( { "serialized": ops.convert_to_tensor(""), "features": { aname: parsing_ops.FixedLenSequenceFeature( (2, 1), dtype=dtypes.float32, allow_missing=True, default_value=[]), bname: parsing_ops.FixedLenSequenceFeature( (2, 1, 1), dtype=dtypes.string, allow_missing=True), } }, expected_err=(ValueError, "Cannot reshape a tensor with 0 elements to shape")) self._test( { "serialized": ops.convert_to_tensor(""), "features": { aname: parsing_ops.FixedLenFeature( (None, 2, 1), dtype=dtypes.float32), bname: parsing_ops.FixedLenSequenceFeature( (2, 1, 1), dtype=dtypes.string, allow_missing=True), } }, expected_err=(ValueError, "First dimension of shape for feature a unknown. " "Consider using FixedLenSequenceFeature.")) self._test( { "serialized": ops.convert_to_tensor(""), "features": { cname: parsing_ops.FixedLenFeature( (1, None), dtype=dtypes.int64, default_value=[[1]]), } }, expected_err=(ValueError, "All dimensions of shape for feature c need to be known " r"but received \(1, None\).")) self._test( { "serialized": ops.convert_to_tensor(""), "features": { aname: parsing_ops.FixedLenSequenceFeature( (2, 1), dtype=dtypes.float32, allow_missing=True), bname: parsing_ops.FixedLenSequenceFeature( (1, 1, 1), dtype=dtypes.string, allow_missing=True), cname: parsing_ops.FixedLenSequenceFeature( shape=[], dtype=dtypes.int64, allow_missing=False), dname: parsing_ops.FixedLenSequenceFeature( shape=[], dtype=dtypes.string, allow_missing=True), } }, expected_err=(ValueError, "Unsupported: FixedLenSequenceFeature requires " "allow_missing to be True.")) class ParseSingleExampleTest(test.TestCase): def _test(self, kwargs, expected_values=None, expected_err=None): with self.cached_session() as sess: if expected_err: with self.assertRaisesWithPredicateMatch(expected_err[0], expected_err[1]): out = parsing_ops.parse_single_example(**kwargs) sess.run(flatten_values_tensors_or_sparse(out.values())) return else: # Returns dict w/ Tensors and SparseTensors. out = parsing_ops.parse_single_example(**kwargs) # Check values. tf_result = sess.run(flatten_values_tensors_or_sparse(out.values())) _compare_output_to_expected(self, out, expected_values, tf_result) # Check shapes. for k, f in kwargs["features"].items(): if isinstance(f, parsing_ops.FixedLenFeature) and f.shape is not None: self.assertEqual(tuple(out[k].get_shape()), tensor_shape.as_shape(f.shape)) elif isinstance(f, parsing_ops.VarLenFeature): self.assertEqual( tuple(out[k].indices.get_shape().as_list()), (None, 1)) self.assertEqual(tuple(out[k].values.get_shape().as_list()), (None,)) self.assertEqual( tuple(out[k].dense_shape.get_shape().as_list()), (1,)) @test_util.run_deprecated_v1 def testSingleExampleWithSparseAndSparseFeatureAndDense(self): original = example(features=features({ "c": float_feature([3, 4]), "d": float_feature([0.0, 1.0]), "val": bytes_feature([b"a", b"b"]), "idx": int64_feature([0, 3]), "st_a": float_feature([3.0, 4.0]) })) serialized = original.SerializeToString() expected_st_a = ( np.array( [[0], [1]], dtype=np.int64), # indices np.array( [3.0, 4.0], dtype=np.float32), # values np.array( [2], dtype=np.int64)) # shape: max_values = 2 expected_sp = ( # indices, values, shape np.array( [[0], [3]], dtype=np.int64), np.array( ["a", "b"], dtype="|S"), np.array( [13], dtype=np.int64)) # max_values = 13 a_default = [1, 2, 3] b_default = np.random.rand(3, 3).astype(bytes) expected_output = { "st_a": expected_st_a, "sp": expected_sp, "a": [a_default], "b": b_default, "c": np.array([3, 4], dtype=np.float32), "d": np.array([0.0, 1.0], dtype=np.float32), } self._test( { "serialized": ops.convert_to_tensor(serialized), "features": { "st_a": parsing_ops.VarLenFeature(dtypes.float32), "sp": parsing_ops.SparseFeature( ["idx"], "val", dtypes.string, [13]), "a": parsing_ops.FixedLenFeature( (1, 3), dtypes.int64, default_value=a_default), "b": parsing_ops.FixedLenFeature( (3, 3), dtypes.string, default_value=b_default), # Feature "c" must be provided, since it has no default_value. "c": parsing_ops.FixedLenFeature(2, dtypes.float32), "d": parsing_ops.FixedLenSequenceFeature([], dtypes.float32, allow_missing=True) } }, expected_output) def testExampleLongerThanSpec(self): serialized = example( features=features({ "a": bytes_feature([b"a", b"b"]), })).SerializeToString() self._test( { "serialized": ops.convert_to_tensor(serialized), "features": { "a": parsing_ops.FixedLenFeature(1, dtypes.string) } }, expected_err=(errors_impl.OpError, "Can't parse serialized Example")) if __name__ == "__main__": test.main()
Python
5
EricRemmerswaal/tensorflow
tensorflow/python/kernel_tests/io_ops/parse_single_example_op_test.py
[ "Apache-2.0" ]
set testmodule [file normalize tests/modules/keyspecs.so] start_server {tags {"modules"}} { r module load $testmodule test "Module key specs: No spec, only legacy triple" { set reply [lindex [r command info kspec.none] 0] # Verify (first, last, step) and not movablekeys assert_equal [lindex $reply 2] {module} assert_equal [lindex $reply 3] 1 assert_equal [lindex $reply 4] -1 assert_equal [lindex $reply 5] 2 # Verify key-spec auto-generated from the legacy triple set keyspecs [lindex $reply 8] assert_equal [llength $keyspecs] 1 assert_equal [lindex $keyspecs 0] {flags {RW access update variable_flags} begin_search {type index spec {index 1}} find_keys {type range spec {lastkey -1 keystep 2 limit 0}}} assert_equal [r command getkeys kspec.none key1 val1 key2 val2] {key1 key2} } test "Module key specs: Two ranges" { set reply [lindex [r command info kspec.tworanges] 0] # Verify (first, last, step) and not movablekeys assert_equal [lindex $reply 2] {module} assert_equal [lindex $reply 3] 1 assert_equal [lindex $reply 4] 2 assert_equal [lindex $reply 5] 1 # Verify key-specs set keyspecs [lindex $reply 8] assert_equal [lindex $keyspecs 0] {flags {RO access} begin_search {type index spec {index 1}} find_keys {type range spec {lastkey 0 keystep 1 limit 0}}} assert_equal [lindex $keyspecs 1] {flags {RW update} begin_search {type index spec {index 2}} find_keys {type range spec {lastkey 0 keystep 1 limit 0}}} assert_equal [r command getkeys kspec.tworanges foo bar baz quux] {foo bar} } test "Module key specs: Two ranges with gap" { set reply [lindex [r command info kspec.tworangeswithgap] 0] # Verify (first, last, step) and movablekeys assert_equal [lindex $reply 2] {module movablekeys} assert_equal [lindex $reply 3] 1 assert_equal [lindex $reply 4] 1 assert_equal [lindex $reply 5] 1 # Verify key-specs set keyspecs [lindex $reply 8] assert_equal [lindex $keyspecs 0] {flags {RO access} begin_search {type index spec {index 1}} find_keys {type range spec {lastkey 0 keystep 1 limit 0}}} assert_equal [lindex $keyspecs 1] {flags {RW update} begin_search {type index spec {index 3}} find_keys {type range spec {lastkey 0 keystep 1 limit 0}}} assert_equal [r command getkeys kspec.tworangeswithgap foo bar baz quux] {foo baz} } test "Module key specs: Keyword-only spec clears the legacy triple" { set reply [lindex [r command info kspec.keyword] 0] # Verify (first, last, step) and movablekeys assert_equal [lindex $reply 2] {module movablekeys} assert_equal [lindex $reply 3] 0 assert_equal [lindex $reply 4] 0 assert_equal [lindex $reply 5] 0 # Verify key-specs set keyspecs [lindex $reply 8] assert_equal [lindex $keyspecs 0] {flags {RO access} begin_search {type keyword spec {keyword KEYS startfrom 1}} find_keys {type range spec {lastkey -1 keystep 1 limit 0}}} assert_equal [r command getkeys kspec.keyword foo KEYS bar baz] {bar baz} } test "Module key specs: Complex specs, case 1" { set reply [lindex [r command info kspec.complex1] 0] # Verify (first, last, step) and movablekeys assert_equal [lindex $reply 2] {module movablekeys} assert_equal [lindex $reply 3] 1 assert_equal [lindex $reply 4] 1 assert_equal [lindex $reply 5] 1 # Verify key-specs set keyspecs [lindex $reply 8] assert_equal [lindex $keyspecs 0] {flags RO begin_search {type index spec {index 1}} find_keys {type range spec {lastkey 0 keystep 1 limit 0}}} assert_equal [lindex $keyspecs 1] {flags {RW update} begin_search {type keyword spec {keyword STORE startfrom 2}} find_keys {type range spec {lastkey 0 keystep 1 limit 0}}} assert_equal [lindex $keyspecs 2] {flags {RO access} begin_search {type keyword spec {keyword KEYS startfrom 2}} find_keys {type keynum spec {keynumidx 0 firstkey 1 keystep 1}}} assert_equal [r command getkeys kspec.complex1 foo dummy KEYS 1 bar baz STORE quux] {foo quux bar} } test "Module key specs: Complex specs, case 2" { set reply [lindex [r command info kspec.complex2] 0] # Verify (first, last, step) and movablekeys assert_equal [lindex $reply 2] {module movablekeys} assert_equal [lindex $reply 3] 1 assert_equal [lindex $reply 4] 2 assert_equal [lindex $reply 5] 1 # Verify key-specs set keyspecs [lindex $reply 8] assert_equal [lindex $keyspecs 0] {flags {RW update} begin_search {type keyword spec {keyword STORE startfrom 5}} find_keys {type range spec {lastkey 0 keystep 1 limit 0}}} assert_equal [lindex $keyspecs 1] {flags {RO access} begin_search {type index spec {index 1}} find_keys {type range spec {lastkey 0 keystep 1 limit 0}}} assert_equal [lindex $keyspecs 2] {flags {RO access} begin_search {type index spec {index 2}} find_keys {type range spec {lastkey 0 keystep 1 limit 0}}} assert_equal [lindex $keyspecs 3] {flags {RW update} begin_search {type index spec {index 3}} find_keys {type keynum spec {keynumidx 0 firstkey 1 keystep 1}}} assert_equal [lindex $keyspecs 4] {flags {RW update} begin_search {type keyword spec {keyword MOREKEYS startfrom 5}} find_keys {type range spec {lastkey -1 keystep 1 limit 0}}} assert_equal [r command getkeys kspec.complex2 foo bar 2 baz quux banana STORE dst dummy MOREKEYS hey ho] {dst foo bar baz quux hey ho} } test "Module command list filtering" { ;# Note: we piggyback this tcl file to test the general functionality of command list filtering set reply [r command list filterby module keyspecs] assert_equal [lsort $reply] {kspec.complex1 kspec.complex2 kspec.keyword kspec.none kspec.nonewithgetkeys kspec.tworanges kspec.tworangeswithgap} assert_equal [r command getkeys kspec.complex2 foo bar 2 baz quux banana STORE dst dummy MOREKEYS hey ho] {dst foo bar baz quux hey ho} } test {COMMAND GETKEYSANDFLAGS correctly reports module key-spec without flags} { r command getkeysandflags kspec.none key1 val1 key2 val2 } {{key1 {RW access update variable_flags}} {key2 {RW access update variable_flags}}} test {COMMAND GETKEYSANDFLAGS correctly reports module key-spec flags} { r command getkeysandflags kspec.keyword keys key1 key2 key3 } {{key1 {RO access}} {key2 {RO access}} {key3 {RO access}}} # user that can only read from "read" keys, write to "write" keys, and read+write to "RW" keys r ACL setuser testuser +@all %R~read* %W~write* %RW~rw* test "Module key specs: No spec, only legacy triple - ACL" { # legacy triple didn't provide flags, so they require both read and write assert_equal "OK" [r ACL DRYRUN testuser kspec.none rw val1] assert_equal "This user has no permissions to access the 'read' key" [r ACL DRYRUN testuser kspec.none read val1] assert_equal "This user has no permissions to access the 'write' key" [r ACL DRYRUN testuser kspec.none write val1] } test "Module key specs: tworanges - ACL" { assert_equal "OK" [r ACL DRYRUN testuser kspec.tworanges read write] assert_equal "OK" [r ACL DRYRUN testuser kspec.tworanges rw rw] assert_equal "This user has no permissions to access the 'read' key" [r ACL DRYRUN testuser kspec.tworanges rw read] assert_equal "This user has no permissions to access the 'write' key" [r ACL DRYRUN testuser kspec.tworanges write rw] } foreach cmd {kspec.none kspec.tworanges} { test "$cmd command will not be marked with movablekeys" { set info [lindex [r command info $cmd] 0] assert_no_match {*movablekeys*} [lindex $info 2] } } foreach cmd {kspec.keyword kspec.complex1 kspec.complex2 kspec.nonewithgetkeys} { test "$cmd command is marked with movablekeys" { set info [lindex [r command info $cmd] 0] assert_match {*movablekeys*} [lindex $info 2] } } test "Unload the module - keyspecs" { assert_equal {OK} [r module unload keyspecs] } }
Tcl
5
abyzsin/redis
tests/unit/moduleapi/keyspecs.tcl
[ "BSD-3-Clause" ]
<button type="submit" class="ui huge primary fluid icon labeled button" {{ sylius_test_html_attribute('confirmation-button') }}> <i class="check icon"></i> {{ 'sylius.ui.place_order'|trans }} </button>
Twig
2
titomtd/Sylius
src/Sylius/Bundle/ShopBundle/Resources/views/Checkout/Complete/_navigation.html.twig
[ "MIT" ]
#include "__emit.inc" stock test__push_u_adr(&local_refvar, local_refarray[]) { const local_const = 1; new local_var = 0; static local_static_var = 0; new local_array[2]; // ok __emit push.u.adr global_var; __emit push.u.adr global_const_var; __emit push.u.adr local_refvar; __emit push.u.adr local_var; __emit push.u.adr local_static_var; __emit push.u.adr local_array[1]; __emit push.u.adr local_refarray[local_const]; // should trigger an error __emit push.u.adr global_const; __emit push.u.adr global_func; __emit push.u.adr global_native; __emit push.u.adr local_const; __emit push.u.adr local_array; __emit push.u.adr local_refarray; __emit push.u.adr local_array{1}; __emit push.u.adr local_array{local_var}; } stock test__zero_u(&local_refvar, local_refarray[]) { const local_const = 0; new local_var = 0; static local_static_var = 0; new local_array[2]; // ok __emit zero.u global_var; __emit zero.u local_refvar; __emit zero.u local_var; __emit zero.u local_static_var; __emit zero.u local_array[1]; __emit zero.u local_refarray[local_const]; // should trigger an error __emit zero.u global_const; __emit zero.u global_func; __emit zero.u global_native; __emit zero.u global_const_var; __emit zero.u local_const; __emit zero.u local_array; __emit zero.u local_refarray; } stock test__inc_dec_u(&local_refvar, local_refarray[]) { const local_const = 0; new local_var = 0; static local_static_var = 0; new local_array[2]; // ok __emit inc.u global_var; __emit inc.u local_refvar; __emit inc.u local_var; __emit inc.u local_static_var; __emit inc.u local_array[1]; __emit inc.u local_refarray[local_const]; // should trigger an error __emit inc.u global_const; __emit inc.u global_func; __emit inc.u global_native; __emit inc.u global_const_var; __emit inc.u local_const; __emit inc.u local_array; __emit inc.u local_refarray; } main() { new t, a[2]; test__push_u_adr(t, a); // 8 test__zero_u(t, a); // 7 test__inc_dec_u(t, a); // 7 }
PAWN
3
pawn-lang/pawn
source/compiler/tests/__emit_p7.pwn
[ "Zlib" ]
void doSomethingInHead(int arg); @interface BaseInHead - (void)doIt:(int)arg; @end /// Awesome name. @interface SameName @end @protocol SameName @end @interface BaseInHead(SomeCategory) -(void)doItInCategory; @end void function_as_swift_private(void) __attribute__((swift_private));
C
3
lwhsu/swift
test/IDE/Inputs/header.h
[ "Apache-2.0" ]
# ====================================================================================================================== # Set definitions # ====================================================================================================================== # ---------------------------------------------------------------------------------------------------------------------- # Time # ---------------------------------------------------------------------------------------------------------------------- sets t "Comprehensive time set that includes all periods used anywhere" /1967*%terminal_year%/ tx0[t] "All endogenous periods except t0" tx1[t] "All except t0 and t1" tx0E[t] "All except t0 and tEnd" txE[t] "All except tEnd" tIOdata[t] "Years where we have input output data" tADAMdata[t] "Years where we have ADAM data" tADAMfinData[t] "Years with financial data from ADAM" tFMdata[t] "Years where we have FM ADAM data" tPSKAT2data[t] "Years where we have PSKAT2 data" tAgeData[t] "Years where we have data on cohort behavior" tBFRdata[t] "Years where we have demographic projections" # These are used dynamically throughout data management tData[t] "Years with data" tForecast[t] "Periods after last data year" tDataX1[t] "Years with data, except the first" ; singleton sets t0[t] "" t1[t] "First period" tEnd[t] "Terminal period" tData1[t] "First period with data" tDataEnd[t] "Last period with data" tBase[t] "Base year in which prices are set to 1" /%base_year%/ tDataEnd[t] "Last calibration year" tForecast1[t] "First period after last data year" tHBI[t] "Year in which rHBI is evaluated" /%rHBI_eval%/ ; # ---------------------------------------------------------------------------------------------------------------------- # Age # ---------------------------------------------------------------------------------------------------------------------- # Aldersgrænserne er hardcodede for at forbedre læseligheden (og de er forholdsvis nemme at ændre alligevel) # Grænserne er: # 0 år, første aldersgruppe # 15 år, første aldersgruppe på arbejdsmarkedet # 18 år, første aldersgruppe hvis forbrug modelleres eksplicit # 100 år, sidste mulige leveår # 101 år, ingen levende, men renter mv. som tilskrives beholdninger fra 100 årige året før, dateres 101 sets a_ "Cohort ages and aggregates over age groups" /a15t100, a0t17, a18t100, tot, 0 * 101/ a[a_] "All age groups" /0 * 101/ a0t100[a_] "Aller levende personer." /0 * 100/ a0t14[a_] "Børn" /0 * 14/ a0t17[a_] "Alle levende personer under 18." /0 * 17/ a15t100[a_] "Aller levende personer, som kan være på arbejdsmarkedet." /15 * 100/ a18t100[a_] "Alle levende personer for hvem privat forbrug modelleres." /18 * 100/ aPension[a_,t] "Dummy variable for whether age group is retired or not " ; singleton sets atot[a_] "Total of all age groups" /tot/ ; parameter aVal[a_] "Numeric value of age super set"; aVal[a_] = ord(a_)-5; # ---------------------------------------------------------------------------------------------------------------------- # Alias # ---------------------------------------------------------------------------------------------------------------------- alias(t,tt); alias(a,aa); alias(a,aaa); alias(a_,aa_); # ====================================================================================================================== # Macros related to sets # ====================================================================================================================== # Set dynamic time subsets based on a start period (t0) and a terminal period (tEnd). # This is used to vary the number of periods that the model runs. $MACRO set_time_periods(start, end) \ t0[t] = yes$(t.val=&start);\ tx0[t] = yes$(t.val>&start and t.val<=&end);\ t1[t] = yes$(t.val=(&start+1));\ tx1[t] = yes$(t.val>(&start+1) and t.val<=&end);\ tx0E[t] = yes$(t.val>&start and t.val<&end);\ txE[t] = yes$(t.val>=&start and t.val<&end);\ tEnd[t] = yes$(t.val=&end);\ # Find the first and last elements of a subset of t and store their values in two scalars, start and end. $MACRO get_set_start_end(subset) \ scalars start, end; start = 9999; end = 0; \ loop(t$subset[t], \ start = min(t.val, start); \ end = max(t.val, end); \ ); \ # Call the set_time_periods macro using the first and last element in the subset as start and end. $MACRO set_time_periods_from_subset(subset) \ get_set_start_end(subset)\ set_time_periods(start, end) # Set the dynamic time subsets used to control which years we have data. It is used for data imports and management. $MACRO set_data_periods(start, end) \ tData[t] = yes$(&start <= t.val and t.val <= &end);\ tData1[t] = yes$(t.val = &start);\ tDataX1[t] = yes$(&start < t.val and t.val<=&end);\ tDataEnd[t] = yes$(t.val = &end);\ tForecast[t] = yes$(t.val > &end and t.val <= %terminal_year%);\ tForecast1[t] = yes$(&end + 1 = t.val);\ # Call the set_data_periods macro using the first and last element in the subset as start and end. $MACRO set_data_periods_from_subset(subset) \ get_set_start_end(subset)\ set_data_periods(start, end) $MACRO max_val(s) smax(s, s.val) $MACRO min_val(s) smin(s, s.val) # Initialize time subsets set_time_periods(%cal_end%, %terminal_year%); set_data_periods(%cal_start%, %cal_end%);
GAMS
4
gemal/MAKRO
Model/Sets/age&time.sets.gms
[ "MIT" ]
;; -*- lexical-binding: t; no-byte-compile: t; -*- ;;; lang/php/doctor.el (assert! (or (not (featurep! +lsp)) (featurep! :tools lsp)) "This module requires (:tools lsp)")
Emacs Lisp
2
leezu/doom-emacs
modules/lang/php/doctor.el
[ "MIT" ]
/*--------------------------------------------------*/ /* SAS Programming for R Users - code for exercises */ /* Copyright 2016 SAS Institute Inc. */ /*--------------------------------------------------*/ /*SP4R06d01*/ /*Part A*/ proc sgscatter data=sp4r.ameshousing; plot saleprice * (gr_liv_area age_sold) / reg; run; /*Part B*/ ods select anova fitstatistics parameterestimates residualplot; proc reg data=sp4r.ameshousing; model saleprice = gr_liv_area age_sold; output out=sp4r.out predicted=pred residual=res rstudent=rstudent; run;quit; /*Part C*/ proc sgplot data=sp4r.out; scatter x=pred y=res; refline 0 / axis=y; run; /*Part D*/ ods select basicmeasures histogram qqplot; proc univariate data=sp4r.out; var res; histogram res / normal kernel; qqplot res / normal(mu=est sigma=est); run; /*Part E*/ proc reg data=sp4r.ameshousing; model saleprice = gr_liv_area age_sold; store mymod; run;quit; proc plm restore=mymod; score data=sp4r.newdata_ames_reg out=sp4r.pred_newdata predicted; run; /*Part F*/ proc print data=sp4r.pred_newdata; var saleprice gr_liv_area age_sold predicted; run;
SAS
4
snowdj/sas-prog-for-r-users
code/SP4R06d01.sas
[ "CC-BY-4.0" ]
<!DOCTYPE html> <html lang="ja" itemscope itemtype="http://schema.org/WebPage"> <head> <meta charset="UTF-8"> <title><mt:ContentField content_field="タイトル"><mt:ContentFieldValue encode_html="1"></mt:ContentField> - イベント・セミナー | <mt:SiteName encode_html="1"></title> <meta name="description" content="<mt:ContentField content_field="本文"><mt:ContentFieldValue remove_html="1" strip_linefeeds="1" trim_to="120+..."></mt:ContentField>"> <meta name="keywords" content="Jungfrau,Movable Type,テーマ,CMS,イベント・セミナー"> <meta name="viewport" content="width=device-width,initial-scale=1"> <mt:Assets tag="@SITE_FAVICON" limit="1"><link rel="shortcut icon" href="<mt:AssetUrl encode_html="1">"></mt:Assets> <meta property="og:type" content="website"> <meta property="og:locale" content="ja_JP"> <meta property="og:title" content="<mt:ContentField content_field="タイトル"><mt:ContentFieldValue encode_html="1"></mt:ContentField> - イベント・セミナー | <mt:SiteName encode_html="1">"> <meta property="og:url" content="<mt:ContentPermalink encode_html="1">"> <meta property="og:description" content="<mt:ContentField content_field="本文"><mt:ContentFieldValue remove_html="1" strip_linefeeds="1" trim_to="120+..."></mt:ContentField>"> <meta property="og:site_name" content="<mt:SiteName encode_html="1">"> <meta property="og:image" content="<mt:ContentField content_field="og:image"><mt:AssetURL></mt:ContentField>"> <meta name="twitter:card" content="summary_large_image"> <meta name="twitter:title" content="<mt:ContentField content_field="タイトル"><mt:ContentFieldValue encode_html="1"></mt:ContentField> - イベント・セミナー | <mt:SiteName encode_html="1">"> <meta name="twitter:description" content="<mt:ContentField content_field="本文"><mt:ContentFieldValue remove_html="1" strip_linefeeds="1" trim_to="120+..."></mt:ContentField>"> <meta name="twitter:image" content="<mt:ContentField content_field="og:image"><mt:AssetURL></mt:ContentField>"> <link rel="stylesheet" href="//fonts.googleapis.com/earlyaccess/notosansjapanese.css"> <link rel="stylesheet" href="<mt:SiteURL encode_html="1">css/reset.css"> <link rel="stylesheet" href="<mt:SiteURL encode_html="1">css/style.css"> </head> <body> <div class="keyvisual"> <div class="keyvisual-image"> <mt:Include module="header"> <div class="keyvisual-title keyvisual-title-lower"> <h1 class="keyvisual-lower-title">イベント・セミナー</h1> <p class="keyvisual-title-description text-smaller"><mt:SiteName encode_html="1">のイベント・セミナー情報はこちらをご覧ください。</p> </div> </div> </div><!-- /.keyvisual --> <div class="content"> <div class="content-main"> <section class="content-section"> <div class="inner"> <div class="content-section-box"> <div class="inner"> <article class="entry"> <div class="entry-header group"> <div class="entry-date"><mt:ContentCreatedDate format="%Y.%m.%d"></div> <div class="entry-category text-smaller"> <mt:ContentField content_field="カテゴリ"><a href="<mt:CategoryArchiveLink>" class="label category"><mt:CategoryLabel></a></mt:ContentField> </div> </div> <div class="event-detail-header"> <h1 class="entry-title entry-title-event"><mt:ContentField content_field="タイトル"><mt:ContentFieldValue></mt:ContentField></h1> <mt:SetVarBlock name="event_tags"><mt:ContentField content_field="タグ"><mt:TagName></mt:ContentField></mt:SetVarBlock> <mt:If name="event_tags"> <div class="labels event-labels"> <mt:ContentField content_field="タグ"> <a class="label tag text-xsmaller"><mt:TagName></a> </mt:ContentField> </div> </mt:If> </div> <div class="event-detail group"> <div class="entry-body"> <mt:ContentField content_field="本文"><mt:ContentFieldValue></mt:ContentField> </div> <div class="event-excerpt"> <table> <mt:ContentField content_field="開催日時"> <tr> <th>日時</th> <td><mt:ContentField content_field="開催日時"><mt:ContentFieldValue format="%Y年%m月%d日(%a)"></mt:ContentField> <mt:ContentField content_field="開場時間"><br><mt:ContentFieldValue format="%k:%M"> 〜 <mt:Else></mt:ContentField><mt:ContentField content_field="終了日時"><mt:ContentFieldValue format="%k:%M"> (予定)<mt:Else></mt:ContentField> <mt:ContentField content_field="開催日時メモ"><br><mt:ContentFieldValue></mt:ContentField></td> </tr> <mt:Else> </mt:ContentField> <mt:SetVarBlock name="event_place"><mt:ContentField content_field="会場"><mt:ContentField content_field="会場名"><mt:ContentFieldValue></mt:ContentField></mt:ContentField></mt:SetVarBlock> <mt:If name="event_place"> <tr> <th>会場</th> <td> <mt:ContentField content_field="会場"> <mt:ContentField content_field="サイトURL"><a href="<mt:ContentFieldValue>" target="_blank"></mt:ContentField><mt:ContentField content_field="会場名"><mt:ContentFieldValue></mt:ContentField><mt:ContentField content_field="サイトURL"></a></mt:ContentField><br> <mt:ContentField content_field="住所"><mt:ContentFieldValue></mt:ContentField> </mt:ContentField> </td> </tr> </mt:If> <mt:ContentField content_field="参加費"> <tr> <th>参加費</th> <td><mt:ContentField content_field="参加費"><mt:ContentFieldValue></mt:ContentField></td> </tr> <mt:Else> </mt:ContentField> <mt:SetVarBlock name="event_lecturer"><mt:ContentField content_field="講師"><mt:ContentField content_field="講師名"><mt:ContentFieldValue></mt:ContentField></mt:ContentField></mt:SetVarBlock> <mt:If name="event_lecturer"> <tr> <th>講師</th> <td> <mt:ContentField content_field="講師"> <mt:ContentField content_field="会社名"><mt:ContentFieldValue></mt:ContentField> <mt:ContentField content_field="講師名"><mt:ContentFieldValue></mt:ContentField><br> </mt:ContentField> </td> </tr> </mt:If> <mt:ContentField content_field="定員"> <tr> <th>定員</th> <td><mt:ContentField content_field="定員"><mt:ContentFieldValue></mt:ContentField>名</td> </tr> <mt:Else> </mt:ContentField> <mt:SetVarBlock name="event_recommend"><mt:ContentField content_field="こんな方におすすめ"><mt:ContentFieldValue></mt:ContentField></mt:SetVarBlock> <mt:If name="event_recommend"> <tr> <th>こんな方におすすめ</th> <td><mt:ContentField content_field="こんな方におすすめ"><mt:ContentFieldValue><br></mt:ContentField></td> </tr> </mt:If> <mt:ContentField content_field="主催"> <tr> <th>主催</th> <td><mt:ContentField content_field="主催"><mt:ContentFieldValue></mt:ContentField></td> </tr> <mt:Else> </mt:ContentField> </table> </div> </div> <mt:If name="event_lecturer"> <div class="event-lecturer"> <h2 class="subtitle-with-border"><span>講師紹介</span></h2> <ul class="group"> <mt:ContentField content_field="講師"> <li> <mt:ContentField content_field="講師画像"><figure><img src="<mt:AssetURL>" alt="<mt:ContentField content_field="講師名"><mt:ContentFieldValue></mt:ContentField>"></figure></mt:ContentField> <div class="event-lecturer-detail"> <p class="position"><mt:ContentField content_field="会社名"><mt:ContentFieldValue></mt:ContentField><br><mt:ContentField content_field="役職"><mt:ContentFieldValue></mt:ContentField></p> <p class="name"><mt:ContentField content_field="講師名"><mt:ContentFieldValue></mt:ContentField></p> <p class="profile"><mt:ContentField content_field="プロフィール"><mt:ContentFieldValue></mt:ContentField></p> </div> </li> </mt:ContentField> </ul> </div> </mt:If> <mt:ContentField content_field="プログラム"> <div class="event-program"> <h2 class="subtitle-with-border"><span>プログラム</span></h2> <div class="event-program-list"> <mt:ContentField content_field="プログラム"><mt:ContentFieldValue></mt:ContentField> </div> </div> <mt:Else> </mt:ContentField> <div class="socialbtns"> <mt:Include module="social-buttons"> </div> <div class="entry-navi group"> <mt:ContentPrevious><a href="<mt:ContentPermalink>" class="prev">前の記事</a></mt:ContentPrevious> <mt:ContentNext><a href="<mt:ContentPermalink>" class="next">次の記事</a></mt:ContentNext> </div> </article> </div> </div> </div> </section> </div><!-- /.content-main --> </div><!-- /.content --> <mt:Include module="footer"> <script src="//ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script> <script src="<mt:SiteURL encode_html="1">js/jquery.matchHeight-min.js"></script> <script src="<mt:SiteURL encode_html="1">js/common.js"></script> <script> $('.entrylist03-index li').matchHeight(); </script> </body> </html>
MTML
3
movabletype/mt-theme-jungfrau
themes/jungfrau/templates/template_727.mtml
[ "MIT" ]
exec("swigtest.start", -1); f = new_Foo(); if Foo_hola_get(f) <> Hello_get() then swigtesterror("Foo_hola_get() <> ""Hello"""); end Foo_hola_set(f, Hi_get()); if Foo_hola_get(f) <> Hi_get() then swigtesterror("Foo_hola_get() <> ""Hi"""); end exec("swigtest.quit", -1);
Scilab
3
kyletanyag/LL-Smartcard
cacreader/swig-4.0.2/Examples/test-suite/scilab/cpp_enum_runme.sci
[ "BSD-3-Clause" ]
<div id="home-section" class="nav-section"> <h3>Documentation</h3> <ul> <% installed.each do |name, href, exists, type, _| %> <% next if type == :extra %> <li class="folder"> <% if exists then %> <a href="<%= href %>"><%= h name %></a> <% else %> <%= h name %> <% end %> <% end %> </ul> </div>
RHTML
4
Bhuvanesh1208/ruby2.6.1
lib/ruby/2.6.0/rdoc/generator/template/darkfish/_sidebar_installed.rhtml
[ "Ruby" ]
' currentdir.bmx cd$=currentdir() print "CurrentDir()="+cd$
BlitzMax
4
jabdoa2/blitzmax
mod/brl.mod/filesystem.mod/doc/currentdir.bmx
[ "Zlib" ]
struct User { 1: string name, 2: i32 age, 3: string email } const User user = {'avatar': '/avatar.jpg'}
Thrift
1
JonnoFTW/thriftpy2
tests/parser-cases/e_structs_1.thrift
[ "MIT" ]
@app goat-vhi @static @http get /todos post /todos post /todos/delete get /scrape @tables data scopeID *String dataID **String ttl TTL
Arc
2
kishoredr/Todos
.arc
[ "Apache-2.0" ]
<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title>Using an existing canvas to draw on</title> <style> canvas { border: 1px solid black; } button { clear: both; display: block; } #content { background: rgba(100, 255, 255, 0.5); padding: 50px 10px; } </style> </head> <body> <div><h1>HTML content to render:</h1> <div id="content">Render the content in this element <strong>only</strong> onto the existing canvas element</div> </div> <h1>Existing canvas:</h1> <canvas width="500" height="200"></canvas> <script type="text/javascript" src="../dist/html2canvas.js"></script> <button>Run html2canvas</button> <script type="text/javascript"> var canvas = document.querySelector("canvas"); var ctx = canvas.getContext("2d"); var ctx = canvas.getContext('2d'); ctx.beginPath(); ctx.arc(75,75,50,0,Math.PI*2,true); // Outer circle ctx.moveTo(110,75); ctx.arc(75,75,35,0,Math.PI,false); // Mouth (clockwise) ctx.moveTo(65,65); ctx.arc(60,65,5,0,Math.PI*2,true); // Left eye ctx.moveTo(95,65); ctx.arc(90,65,5,0,Math.PI*2,true); // Right eye ctx.stroke(); document.querySelector("button").addEventListener("click", function() { html2canvas(document.querySelector("#content"), {canvas: canvas, scale: 1}).then(function(canvas) { console.log('Drew on the existing canvas'); }); }, false); </script> </body> </html>
HTML
3
abhijit-paul/html2canvas
examples/existing_canvas.html
[ "MIT" ]
#include <cstdlib> #include <iostream> #include <sstream> using namespace std; void build_code(int max_args) { stringstream ss; ss << "#define NLOHMANN_JSON_EXPAND( x ) x" << endl; ss << "#define NLOHMANN_JSON_GET_MACRO("; for (int i = 0 ; i < max_args ; i++) ss << "_" << i + 1 << ", "; ss << "NAME,...) NAME" << endl; ss << "#define NLOHMANN_JSON_PASTE(...) NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_GET_MACRO(__VA_ARGS__, \\" << endl; for (int i = max_args ; i > 1 ; i--) ss << "NLOHMANN_JSON_PASTE" << i << ", \\" << endl; ss << "NLOHMANN_JSON_PASTE1)(__VA_ARGS__))" << endl; ss << "#define NLOHMANN_JSON_PASTE2(func, v1) func(v1)" << endl; for (int i = 3 ; i <= max_args ; i++) { ss << "#define NLOHMANN_JSON_PASTE" << i << "(func, "; for (int j = 1 ; j < i -1 ; j++) ss << "v" << j << ", "; ss << "v" << i-1 << ") NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE" << i-1 << "(func, "; for (int j = 2 ; j < i-1 ; j++) ss << "v" << j << ", "; ss << "v" << i-1 << ")" << endl; } cout << ss.str() << endl; } int main(int argc, char** argv) { int max_args = 64; build_code(max_args); return 0; }
C++
3
imwhocodes/json
third_party/macro_builder/main.cpp
[ "MIT" ]
/*############################################################################## HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®. 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. ############################################################################## */ #option ('targetClusterType', 'roxie'); didRec := record unsigned6 did; end; namesRecord := RECORD unsigned jobid; dataset(didRec) didin; dataset(didRec) didout; END; func(dataset(didRec) didin) := function ds0 := dedup(didin, did, all); ds1 := __COMMON__(ds0); ds := ds0; f1 := ds(did != 0); f2 := ds(did = 0); c := nofold(f1 + f2); return sort(c, did); end; namesTable := dataset('x',namesRecord,FLAT); namesRecord t(namesRecord l) := transform self.didout := func(l.didin); self := l; end; output(table(namesTable, t(namesTable)));
ECL
4
miguelvazq/HPCC-Platform
ecl/regress/cse2.ecl
[ "Apache-2.0" ]
// Copyright 2021 The Google Research Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #include "scann/distance_measures/one_to_one/l2_distance_sse4.h" #include <cstdint> #ifdef __x86_64__ #include "scann/utils/intrinsics/sse4.h" namespace research_scann { namespace l2_internal { template <typename Byte, typename SseFuncs> SCANN_SSE4_INLINE double DenseSquaredL2DistanceByteImpl(const Byte* aptr, const Byte* bptr, size_t length) { const Byte* aend = aptr + length; auto as_m128i = [](const Byte* x) SCANN_SSE4_INLINE_LAMBDA -> __m128i* { return reinterpret_cast<__m128i*>(const_cast<Byte*>(x)); }; auto get_terms = [&as_m128i](const Byte* aptr, const Byte* bptr) SCANN_SSE4_INLINE_LAMBDA { __m128i avals = _mm_loadu_si128(as_m128i(aptr)); __m128i bvals = _mm_loadu_si128(as_m128i(bptr)); __m128i diff = SseFuncs::AbsDiff(avals, bvals); __m128i lower = SseFuncs::ZeroExtendLower8To16(diff); __m128i upper = SseFuncs::ZeroExtendUpper8To16(diff); lower = _mm_mullo_epi16(lower, lower); upper = _mm_mullo_epi16(upper, upper); return std::make_pair(lower, upper); }; uint32_t scalar_accumulator = 0; if (aptr + 4 <= aend) { __m128i accumulator0 = _mm_setzero_si128(); __m128i accumulator1 = _mm_setzero_si128(); auto do_accumulations = [&accumulator0, &accumulator1]( __m128i term) SCANN_SSE4_INLINE_LAMBDA { accumulator0 = _mm_add_epi32(accumulator0, SseFuncs::ZeroExtendLower16To32(term)); accumulator1 = _mm_add_epi32(accumulator1, SseFuncs::ZeroExtendUpper16To32(term)); }; for (; aptr + 16 <= aend; aptr += 16, bptr += 16) { const pair<__m128i, __m128i> terms = get_terms(aptr, bptr); do_accumulations(terms.first); do_accumulations(terms.second); } if (aptr + 8 <= aend) { __m128i avals = _mm_loadl_epi64(as_m128i(aptr)); __m128i bvals = _mm_loadl_epi64(as_m128i(bptr)); __m128i diff = SseFuncs::AbsDiff(avals, bvals); __m128i lower = SseFuncs::ZeroExtendLower8To16(diff); lower = _mm_mullo_epi16(lower, lower); do_accumulations(lower); aptr += 8; bptr += 8; } if (aptr + 4 <= aend) { __m128i avals = _mm_cvtsi32_si128(*reinterpret_cast<const int*>(aptr)); __m128i bvals = _mm_cvtsi32_si128(*reinterpret_cast<const int*>(bptr)); __m128i diff = SseFuncs::AbsDiff(avals, bvals); __m128i lower = _mm_unpacklo_epi8(diff, _mm_setzero_si128()); lower = _mm_mullo_epi16(lower, lower); do_accumulations(lower); aptr += 4; bptr += 4; } scalar_accumulator = SseFuncs::HorizontalSum32(_mm_add_epi32(accumulator0, accumulator1)); } DCHECK_LT(aend - aptr, 4); for (; aptr < aend; ++aptr, ++bptr) { int32_t diff = static_cast<int32_t>(*aptr) - static_cast<int32_t>(*bptr); scalar_accumulator += diff * diff; } return static_cast<double>(scalar_accumulator); } class SseFunctionsSse4 { public: SCANN_SSE4_INLINE static __m128i ZeroExtendLower8To16(__m128i v) { return _mm_cvtepu8_epi16(v); } SCANN_SSE4_INLINE static __m128i ZeroExtendLower16To32(__m128i v) { return _mm_cvtepu16_epi32(v); } SCANN_SSE4_INLINE static __m128i ZeroExtendUpper8To16(__m128i v) { return _mm_unpackhi_epi8(v, _mm_setzero_si128()); } SCANN_SSE4_INLINE static __m128i ZeroExtendUpper16To32(__m128i v) { return _mm_unpackhi_epi16(v, _mm_setzero_si128()); } SCANN_SSE4_INLINE static uint32_t HorizontalSum32(__m128i v) { v = _mm_add_epi32(v, _mm_srli_si128(v, 8)); v = _mm_add_epi32(v, _mm_srli_si128(v, 4)); return _mm_cvtsi128_si32(v); } }; class SignedSquaredL2SseFunctionsSse4 : public SseFunctionsSse4 { public: SCANN_SSE4_INLINE static __m128i AbsDiff(__m128i a, __m128i b) { return _mm_sub_epi8(_mm_max_epi8(a, b), _mm_min_epi8(a, b)); } }; class UnsignedSquaredL2SseFunctionsSse4 : public SseFunctionsSse4 { public: SCANN_SSE4_INLINE static __m128i AbsDiff(__m128i a, __m128i b) { return _mm_sub_epi8(_mm_max_epu8(a, b), _mm_min_epu8(a, b)); } }; SCANN_SSE4_OUTLINE double DenseSquaredL2DistanceSse4( const DatapointPtr<uint8_t>& a, const DatapointPtr<uint8_t>& b) { DCHECK_EQ(a.nonzero_entries(), b.nonzero_entries()); DCHECK(a.IsDense()); DCHECK(b.IsDense()); return DenseSquaredL2DistanceByteImpl<uint8_t, UnsignedSquaredL2SseFunctionsSse4>( a.values(), b.values(), a.nonzero_entries()); } SCANN_SSE4_OUTLINE double DenseSquaredL2DistanceSse4( const DatapointPtr<int8_t>& a, const DatapointPtr<int8_t>& b) { DCHECK_EQ(a.nonzero_entries(), b.nonzero_entries()); DCHECK(a.IsDense()); DCHECK(b.IsDense()); return DenseSquaredL2DistanceByteImpl<int8_t, SignedSquaredL2SseFunctionsSse4>( a.values(), b.values(), a.nonzero_entries()); } SCANN_SSE4_OUTLINE double DenseSquaredL2DistanceSse4( const DatapointPtr<float>& a, const DatapointPtr<float>& b) { DCHECK_EQ(a.nonzero_entries(), b.nonzero_entries()); DCHECK(a.IsDense()); DCHECK(b.IsDense()); auto get_terms = [](const float* aptr, const float* bptr) SCANN_SSE4_INLINE_LAMBDA { __m128 avals = _mm_loadu_ps(aptr); __m128 bvals = _mm_loadu_ps(bptr); __m128 diff = _mm_sub_ps(avals, bvals); return _mm_mul_ps(diff, diff); }; const float* aptr = a.values(); const float* bptr = b.values(); const float* aend = aptr + a.nonzero_entries(); __m128 accumulator = _mm_setzero_ps(); if (aptr + 8 <= aend) { __m128 accumulator0 = get_terms(aptr, bptr); __m128 accumulator1 = get_terms(aptr + 4, bptr + 4); aptr += 8; bptr += 8; for (; aptr + 8 <= aend; aptr += 8, bptr += 8) { accumulator0 = _mm_add_ps(accumulator0, get_terms(aptr, bptr)); accumulator1 = _mm_add_ps(accumulator1, get_terms(aptr + 4, bptr + 4)); } accumulator = _mm_add_ps(accumulator0, accumulator1); } if (aptr + 4 <= aend) { accumulator = _mm_add_ps(accumulator, get_terms(aptr, bptr)); aptr += 4; bptr += 4; } if (aptr + 2 <= aend) { __m128 avals = _mm_setzero_ps(); __m128 bvals = _mm_setzero_ps(); avals = _mm_loadh_pi(avals, reinterpret_cast<const __m64*>(aptr)); bvals = _mm_loadh_pi(bvals, reinterpret_cast<const __m64*>(bptr)); __m128 diff = _mm_sub_ps(avals, bvals); __m128 squared = _mm_mul_ps(diff, diff); accumulator = _mm_add_ps(accumulator, squared); aptr += 2; bptr += 2; } if (aptr < aend) { accumulator[0] += (aptr[0] - bptr[0]) * (aptr[0] - bptr[0]); } accumulator = _mm_hadd_ps(accumulator, accumulator); accumulator = _mm_hadd_ps(accumulator, accumulator); return accumulator[0]; } SCANN_SSE4_OUTLINE double DenseSquaredL2DistanceSse4( const DatapointPtr<double>& a, const DatapointPtr<double>& b) { DCHECK_EQ(a.nonzero_entries(), b.nonzero_entries()); DCHECK(a.IsDense()); DCHECK(b.IsDense()); auto get_terms = [](const double* aptr, const double* bptr) SCANN_SSE4_INLINE_LAMBDA { __m128d avals = _mm_loadu_pd(aptr); __m128d bvals = _mm_loadu_pd(bptr); __m128d diff = _mm_sub_pd(avals, bvals); return _mm_mul_pd(diff, diff); }; const double* aptr = a.values(); const double* bptr = b.values(); const double* aend = aptr + a.nonzero_entries(); __m128d accumulator = _mm_setzero_pd(); if (aptr + 4 <= aend) { __m128d accumulator0 = get_terms(aptr, bptr); __m128d accumulator1 = get_terms(aptr + 2, bptr + 2); aptr += 4; bptr += 4; for (; aptr + 4 <= aend; aptr += 4, bptr += 4) { accumulator0 = _mm_add_pd(accumulator0, get_terms(aptr, bptr)); accumulator1 = _mm_add_pd(accumulator1, get_terms(aptr + 2, bptr + 2)); } accumulator = _mm_add_pd(accumulator0, accumulator1); } if (aptr + 2 <= aend) { accumulator = _mm_add_pd(accumulator, get_terms(aptr, bptr)); aptr += 2; bptr += 2; } accumulator = _mm_hadd_pd(accumulator, accumulator); double result = accumulator[0]; if (aptr < aend) { const double diff = *aptr - *bptr; result += diff * diff; } return result; } } // namespace l2_internal } // namespace research_scann #endif
C++
5
DionysisChristopoulos/google-research
scann/scann/distance_measures/one_to_one/l2_distance_sse4.cc
[ "Apache-2.0" ]
package IncreaseRegCfg_v2; (* synthesize *) module mkIncreaseRegCfg ( Tuple2#(Reg#(int), Reg#(int)) ); Reg#(int) reg_data <- mkReg(0); Reg#(int) reg_step <- mkReg(1); (* preempts = "fst._write, increase" *) rule increase; reg_data <= reg_data + reg_step; endrule return tuple2(reg_data, reg_step); endmodule module mkTb(); Reg#(int) cnt <- mkReg(0); rule up_counter; cnt <= cnt + 1; if(cnt > 10) $finish; endrule match {.inc_reg_data, .inc_reg_step} <- mkIncreaseRegCfg; rule update_step (cnt%7 == 0); $display("write step<=%3d", inc_reg_step + 1); inc_reg_step <= inc_reg_step + 1; endrule rule update_data (cnt%3 == 0); $display("write data<=%3d", 2 * cnt); inc_reg_data <= 2 * cnt; endrule rule show; $display("read data =%3d", inc_reg_data); endrule endmodule endpackage
Bluespec
4
Xiefengshang/BSV_Tutorial_cn
src/14.IncreaseReg/IncreaseRegCfg_v2.bsv
[ "MIT" ]