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 |
|---|---|---|---|---|---|
//
// Copyright (c) 2008, Brian Frank and Andy Frank
// Licensed under the Academic Free License version 3.0
//
// History:
// 17 Nov 08 Brian Frank Creation
//
using compiler
**
** JavaSlot is the implementation of CSlot for a Java member.
**
abstract class JavaSlot : CSlot
{
new make(CType parent, Str name, Int flags)
{
this.parent = parent
this.name = name
this.flags = flags
}
override CNamespace ns() { return parent.ns }
override CType parent
override Str name
override once Str qname() { return parent.qname + "." + name }
override Int flags
override CFacet? facet(Str qname) { null }
override Bool isForeign() { return true }
** Clone without next linked list
abstract This dup()
** linked list of overloaded methods (first one
** may be field or method)
JavaMethod? next
}
**************************************************************************
** JavaField
**************************************************************************
**
** JavaField is the implementation of CField for a Java field.
**
class JavaField : JavaSlot, CField
{
new make(CType parent, Str name, Int flags, CType type)
: super(parent, name, flags)
{
this.fieldType = type
}
override This dup() { make(parent, name, flags, fieldType) }
override CType fieldType
override CMethod? getter
override CMethod? setter
override Str signature() { return "$fieldType $name" }
override CType inheritedReturnType() { return fieldType }
}
**************************************************************************
** JavaMethod
**************************************************************************
**
** JavaMethod is the implementation of CMethod for a Java method.
**
class JavaMethod : JavaSlot, CMethod
{
new make(CType parent, Str name, Int flags, CType ret, CParam[] params := [,])
: super(parent, name, flags)
{
this.returnType = ret
this.params = params
}
override CType parent
override CType returnType
override CParam[] params
override Bool isGeneric
override This dup() { make(parent, name, flags, returnType, params) }
override Str signature() { return "$returnType $name(" + params.join(",") + ")" }
override CType inheritedReturnType() { return returnType }
Void setParamTypes(CType[] types)
{
params = types.map |CType t, Int i->CParam| { JavaParam("p$i", t) }
}
override CFacet? facet(Str qname)
{
// automatically give get/set methods the Operator facet
if (qname == "sys::Operator")
{
if ((name == "get" && params.size == 1) ||
(name == "set" && params.size == 2))
return MarkerFacet(qname)
}
return null
}
** Does given method have the exact same signature (ignoring declaring class)
Bool sigsEqual(JavaMethod m)
{
this.name == m.name &&
this.params.size == m.params.size &&
this.params.all |p, i| { p.paramType == m.params[i].paramType }
}
}
**************************************************************************
** JavaParam
**************************************************************************
**
** JavaParam is the implementation of CParam for a Java method parameter.
**
class JavaParam : CParam
{
new make(Str n, CType t) { name = n; paramType = t }
override Str name
override Bool hasDefault
override CType paramType
override Str toStr() { return "$paramType $name" }
} | Fantom | 5 | fanx-dev/fantom | src/compilerJava/fan/JavaSlot.fan | [
"AFL-3.0"
] |
$$ MODE TUSCRIPT
SET DATEN = REQUEST ("http://www.rosettacode.org")
*{daten}
| Turing | 2 | LaudateCorpus1/RosettaCodeData | Task/HTTP/TUSCRIPT/http.tu | [
"Info-ZIP"
] |
{
// Because these are not like a token object with a 'value' attribute,
// Style Dictionary won't consider them tokens and therefore won't output them.
// But, you can still access/reference them in tokens using the same reference
// syntax: "value": "{lightness.0}"
// This can be used when defining colors as HSL:
// "value": {"h": "{hue.red}", "l": "{lightness.0}", "s": "{saturation.0}"}
lightness: [
96,
90,
77,
67,
63,
58,
55,
50
]
}
| JSON5 | 4 | pcsubirachs/sats_stream | node_modules/style-dictionary/examples/advanced/transitive-transforms/tokens/lightness.json5 | [
"MIT"
] |
#include <metal_stdlib>
#include "OperationShaderTypes.h"
#include "BlendShaderTypes.h"
using namespace metal;
typedef struct {
float radius;
float scale;
float2 center;
float aspectRatio;
} PinchDistortionUniform;
fragment half4 pinchDistortionFragment(SingleInputVertexIO fragmentInput [[stage_in]],
texture2d<half> inputTexture [[texture(0)]],
constant PinchDistortionUniform& uniform [[buffer(1)]])
{
constexpr sampler quadSampler;
float2 textureCoordinateToUse = float2(fragmentInput.textureCoordinate.x, (fragmentInput.textureCoordinate.y * uniform.aspectRatio + 0.5 - 0.5 * uniform.aspectRatio));
float dist = distance(uniform.center, textureCoordinateToUse);
textureCoordinateToUse = fragmentInput.textureCoordinate;
if (dist < uniform.radius)
{
textureCoordinateToUse -= uniform.center;
float percent = 1.0 + ((0.5 - dist) / 0.5) * uniform.scale;
textureCoordinateToUse = textureCoordinateToUse * percent;
textureCoordinateToUse += uniform.center;
return half4(inputTexture.sample(quadSampler, textureCoordinateToUse ));
}
else
{
return half4(inputTexture.sample(quadSampler, fragmentInput.textureCoordinate ));
}
}
| Metal | 4 | zyangSir/GPUImage3 | framework/Source/Operations/PinchDistortion.metal | [
"BSD-3-Clause"
] |
{ lib
, stdenv
, fetchurl
, fetchFromGitLab
, meson
, ninja
, pkg-config
, libsndfile
, libtool
, makeWrapper
, perlPackages
, xorg
, libcap
, alsa-lib
, glib
, dconf
, avahi
, libjack2
, libasyncns
, lirc
, dbus
, sbc
, bluez5
, udev
, openssl
, fftwFloat
, soxr
, speexdsp
, systemd
, webrtc-audio-processing
, gtk3
, tdb
, orc
, check
, gettext
, gst_all_1
, libopenaptx
, x11Support ? true
, # Whether to support the JACK sound system as a backend.
jackaudioSupport ? false
, airtunesSupport ? true
, bluetoothSupport ? true
, remoteControlSupport ? true
, zeroconfSupport ? true
, # Whether to build only the library.
libOnly ? false
# Building from Git source
, fromGit ? true
, CoreServices
, AudioUnit
, Cocoa
}:
stdenv.mkDerivation rec {
pname = "${if libOnly then "lib" else ""}pulseaudio-hsphfpd";
version = "13.99.2";
outputs = [ "out" "dev" ];
# https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/288
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "pali";
repo = "pulseaudio";
rev = "5336b39e7e03cf50386e719e287a712b59730eb8";
sha256 = "0vc0i5rzkns3xw6y2q0c94p2qdi5k3mgjvhicgq1b0py2qxmji16";
};
patches = [
./add-option-for-installation-sysconfdir.patch
./correct-ldflags.patch
];
# Says it should be v${version} but it's parsing logic is broken
preConfigure = lib.optionalString fromGit ''
sed -i "s@version : run_command.*@version: '${version}',@" meson.build
'';
nativeBuildInputs = [
gettext
makeWrapper
meson
ninja
pkg-config
perlPackages.perl
perlPackages.XMLParser
];
checkInputs = [
check
];
propagatedBuildInputs = lib.optional stdenv.isLinux libcap;
buildInputs = [
libopenaptx
fftwFloat
libsndfile
libtool
orc
soxr
speexdsp
tdb
sbc
gst_all_1.gst-plugins-base
] ++ lib.optionals bluetoothSupport [
bluez5
] ++ lib.optionals stdenv.isLinux [
dbus
glib
gtk3
libasyncns
] ++ lib.optionals stdenv.isDarwin [
AudioUnit
Cocoa
CoreServices
] ++ lib.optionals (!libOnly) (
lib.optionals x11Support [
xorg.libXi
xorg.libXtst
xorg.xlibsWrapper
] ++ lib.optionals stdenv.isLinux [
alsa-lib
systemd
udev
] ++ lib.optional airtunesSupport openssl
++ lib.optional jackaudioSupport libjack2
++ lib.optional remoteControlSupport lirc
++ lib.optional zeroconfSupport avahi
++ [ webrtc-audio-processing ]
);
mesonFlags = [
"--localstatedir=/var"
"--sysconfdir=/etc"
"-Daccess_group=audio"
"-Dbashcompletiondir=${placeholder "out"}/share/bash-completions/completions"
"-Dman=false" # TODO: needs xmltoman; also doesn't check for this
"-Dsysconfdir_install=${placeholder "out"}/etc"
"-Dsystemduserunitdir=${placeholder "out"}/lib/systemd/user"
"-Dudevrulesdir=${placeholder "out"}/lib/udev/rules.d"
"-Dzshcompletiondir=${placeholder "out"}/share/zsh/site-functions"
] ++ lib.optionals (!stdenv.isLinux) [
"-Dasyncns=disabled"
"-Ddbus=disabled"
"-Dglib=disabled"
"-Dgsettings=disabled"
"-Dgtk=disabled"
] ++ lib.optionals (!stdenv.isLinux || libOnly) [
"-Dalsa=disabled"
"-Dsystemd=disabled"
"-Dudev=disabled"
] ++ lib.optional libOnly "-Dwebrtc-aec=disabled"
++ lib.optional (!x11Support) "-Dx11=disabled"
++ lib.optional (!bluetoothSupport) "-Dbluez5=false"
++ lib.optional (!airtunesSupport) "-Dopenssl=disabled"
++ lib.optional (!jackaudioSupport) "-Djack=disabled"
++ lib.optional (!remoteControlSupport) "-Dlirc=disabled"
++ lib.optional (!zeroconfSupport) "-Davahi=disabled"
++ lib.optional (!doCheck) "-Dtests=false";
# To create ~/.config/pulse
preCheck = ''
export HOME=$(mktemp -d)
'';
doCheck = true;
# not sure what the best practices are here -- can't seem to find a way
# for the compiler to bring in stdlib and stdio (etc.) properly
# the alternative is to copy the files from /usr/include to src, but there are
# probably a large number of files that would need to be copied (I stopped
# after the seventh)
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-I/usr/include";
NIX_LDFLAGS = lib.optionalString stdenv.isDarwin "-framework CoreServices -framework Cocoa -framework AudioUnit";
postInstall = ''
moveToOutput lib/cmake "$dev"
rm -f $out/bin/qpaeq # this is packaged by the "qpaeq" package now, because of missing deps
'' + lib.optionalString libOnly ''
rm -rf $out/{bin,share,etc,lib/{pulse-*,systemd}}
'';
preFixup = lib.optionalString (stdenv.isLinux && !libOnly) ''
wrapProgram $out/libexec/pulse/gsettings-helper \
--prefix XDG_DATA_DIRS : "$out/share/gsettings-schemas/${pname}-${version}" \
--prefix GIO_EXTRA_MODULES : "${lib.getLib dconf}/lib/gio/modules"
'';
passthru = {
pulseDir = "lib/pulse-" + lib.versions.majorMinor version;
};
meta = with lib; {
description = "A featureful, general-purpose sound server";
homepage = "http://www.pulseaudio.org/";
license = licenses.lgpl2Plus;
maintainers = with maintainers; [ lovek323 ];
platforms = platforms.unix;
longDescription = ''
PulseAudio is a sound system for POSIX OSes, meaning that it is
a proxy for your sound applications. It allows you to do advanced
operations on your sound data as it passes between your application
and your hardware. Things like transferring the audio to a different machine,
changing the sample format or channel count and mixing several sounds into one
are easily achieved using a sound server.
'';
};
}
| Nix | 4 | arjix/nixpkgs | pkgs/servers/pulseaudio/pali.nix | [
"MIT"
] |
---
layout: post
title: "Okasaki's Lazy Queues"
date: 2015-01-28
comments: true
external-url:
author: Ranjit Jhala
published: true
categories: measures
demo: LazyQueue.hs
---
The "Hello World!" example for fancy type systems is probably the sized vector
or list `append` function ("The output has size equal to the *sum* of the
inputs!"). One the one hand, it is perfect: simple enough to explain without
pages of code, yet complex enough to show off whats cool about dependency. On
the other hand, like the sweater I'm sporting right now, it's a bit well-worn and
worse, was never wholly convincing ("Why do I *care* what the *size* of the
output list is anyway?")
Recently, I came across a nice example that is almost as simple, but is also
well motivated: Okasaki's beautiful [Lazy Amortized Queues][okasaki95]. This
structure leans heavily on an invariant to provide fast *insertion* and
*deletion*. Let's see how to enforce that invariant with LiquidHaskell.
<!-- more -->
<div class="hidden">
\begin{code}
{-@ LIQUID "--no-termination" @-}
{-@ LIQUID "--total" @-}
{-@ LIQUID "--maxparams=3" @-}
module LazyQueue (Queue, insert, remove, emp) where
import Prelude hiding (length)
-- | Size function actually returns the size: (Duh!)
{-@ size :: q:SList a -> {v:Nat | v = size q} @-}
data Queue a = Q { front :: SList a
, back :: SList a
}
-- Source: Okasaki, JFP 1995
-- http://www.westpoint.edu/eecs/SiteAssets/SitePages/Faculty%20Publication%20Documents/Okasaki/jfp95queue.pdf
\end{code}
</div>
Queues
------
A [queue][queue-wiki] is a structure into which we can `insert` and `remove` data
such that the order in which the data is removed is the same as the order in which
it was inserted.

To implement a queue *efficiently* one needs to have rapid access to both
the "head" as well as the "tail" because we `remove` elements from former
and `insert` elements into the latter. This is quite straightforward with
explicit pointers and mutation -- one uses an old school linked list and
maintains pointers to the head and the tail. But can we implement the
structure efficiently without having stoop so low?
Queues = Pair of Lists
----------------------
Almost two decades ago, Chris Okasaki came up with a very cunning way
to implement queues using a *pair* of lists -- let's call them `front`
and `back` which represent the corresponding parts of the Queue.
+ To `insert` elements, we just *cons* them onto the `back` list,
+ To `remove` elements, we just *un-cons* them from the `front` list.

The catch is that we need to shunt elements from the back to the
front every so often, e.g. when
1. a `remove` call is triggered, and
2. the `front` list is empty,
We can transfer the elements from the `back` to the `front`.

Okasaki observed that every element is only moved *once* from the
front to the back; hence, the time for `insert` and `lookup` could be
`O(1)` when *amortized* over all the operations. Awesome, right?!
Almost. Some set of unlucky `remove` calls (which occur when
the `front` is empty) are stuck paying the bill. They have a
rather high latency up to `O(n)` where `n` is the total number
of operations. Oops.
Queue = Balanced Lazy Lists
---------------------------
This is where Okasaki's beautiful insights kick in. Okasaki
observed that all we need to do is to enforce a simple invariant:
**Invariant:** Size of `front` >= Size of `back`
Now, if the lists are *lazy* i.e. only constructed as the head
value is demanded, then a single `remove` needs only a tiny `O(log n)`
in the worst case, and so no single `remove` is stuck paying the bill.
Let's see how to represent these Queues and ensure the crucial invariant(s)
with LiquidHaskell. What we need are the following ingredients:
1. A type for `List`s, and a way to track their `size`,
2. A type for `Queue`s which encodes the *balance* invariant -- ``front longer than back",
3. A way to implement the `insert`, `remove` and `transfer` operations.
Sized Lists
------------
The first part is super easy. Let's define a type:
\begin{code}
data SList a = SL { size :: Int, elems :: [a]}
\end{code}
We have a special field that saves the `size` because otherwise, we
have a linear time computation that wrecks Okasaki's careful
analysis. (Actually, he presents a variant which does *not* require
saving the size as well, but that's for another day.)
But how can we be sure that `size` is indeed the *real size* of `elems`?
Let's write a function to *measure* the real size:
\begin{code}
{-@ measure realSize @-}
realSize :: [a] -> Int
realSize [] = 0
realSize (_:xs) = 1 + realSize xs
\end{code}
and now, we can simply specify a *refined* type for `SList` that ensures
that the *real* size is saved in the `size` field:
\begin{code}
{-@ data SList a = SL {
size :: Nat
, elems :: {v:[a] | realSize v = size}
}
@-}
\end{code}
As a sanity check, consider this:
\begin{code}
okList = SL 1 ["cat"] -- accepted
badList = SL 1 [] -- rejected
\end{code}
It is helpful to define a few aliases for `SList`s of a size `N` and
non-empty `SList`s:
\begin{code}
-- | SList of size N
{-@ type SListN a N = {v:SList a | size v = N} @-}
-- | Non-Empty SLists:
{-@ type NEList a = {v:SList a | size v > 0} @-}
\end{code}
Finally, we can define a basic API for `SList`.
**To Construct** lists, we use `nil` and `cons`:
\begin{code}
{-@ nil :: SListN a 0 @-}
nil = SL 0 []
{-@ cons :: a -> xs:SList a -> SListN a {size xs + 1} @-}
cons x (SL n xs) = SL (n+1) (x:xs)
\end{code}
**To Destruct** lists, we have `hd` and `tl`.
\begin{code}
{-@ tl :: xs:NEList a -> SListN a {size xs - 1} @-}
tl (SL n (_:xs)) = SL (n-1) xs
{-@ hd :: xs:NEList a -> a @-}
hd (SL _ (x:_)) = x
\end{code}
Don't worry, they are perfectly *safe* as LiquidHaskell will make
sure we *only* call these operators on non-empty `SList`s. For example,
\begin{code}
okHd = hd okList -- accepted
badHd = hd (tl okList) -- rejected
\end{code}
Queue Type
-----------
Now, it is quite straightforward to define the `Queue` type, as a pair of lists,
`front` and `back`, such that the latter is always smaller than the former:
\begin{code}
{-@ data Queue a = Q {
front :: SList a
, back :: SListLE a (size front)
}
@-}
\end{code}
Where the alias `SListLE a L` corresponds to lists with less than `N` elements:
\begin{code}
{-@ type SListLE a N = {v:SList a | size v <= N} @-}
\end{code}
As a quick check, notice that we *cannot represent illegal Queues*:
\begin{code}
okQ = Q okList nil -- accepted, |front| > |back|
badQ = Q nil okList -- rejected, |front| < |back|
\end{code}
**To Measure Queue Size** let us define a function
\begin{code}
{-@ measure qsize @-}
qsize :: Queue a -> Int
qsize (Q l r) = size l + size r
\end{code}
This will prove helpful to define `Queue`s of a given size `N` and
non-empty `Queue`s (from which values can be safely removed.)
\begin{code}
{-@ type QueueN a N = {v:Queue a | N = qsize v} @-}
{-@ type NEQueue a = {v:Queue a | 0 < qsize v} @-}
\end{code}
Queue Operations
----------------
Almost there! Now all that remains is to define the `Queue` API. The
code below is more or less identical to Okasaki's (I prefer `front`
and `back` to his `left` and `right`.)
**The Empty Queue** is simply one where both `front` and `back` are `nil`.
\begin{code}
{-@ emp :: QueueN a 0 @-}
emp = Q nil nil
\end{code}
**To Insert** an element we just `cons` it to the `back` list, and call
the *smart constructor* `makeq` to ensure that the balance invariant holds:
\begin{code}
{-@ insert :: a -> q:Queue a -> QueueN a {qsize q + 1} @-}
insert e (Q f b) = makeq f (e `cons` b)
\end{code}
**To Remove** an element we pop it off the `front` by using `hd` and `tl`.
Notice that the `remove` is only called on non-empty `Queue`s, which together
with the key balance invariant, ensures that the calls to `hd` and `tl` are safe.
\begin{code}
{-@ remove :: q:NEQueue a -> (a, QueueN a {qsize q - 1}) @-}
remove (Q f b) = (hd f, makeq (tl f) b)
\end{code}
*Aside:* Why didn't we (or Okasaki) use a pattern match here?
**To Ensure the Invariant** we use the smart constructor `makeq`,
which is where the heavy lifting, such as it is, happens. The
constructor takes two lists, the front `f` and back `b` and if they
are balanced, directly returns the `Queue`, and otherwise transfers
the elements from `b` over using `rot`ate.
\begin{code}
{-@ makeq :: f:SList a
-> b:SListLE a {size f + 1 }
-> QueueN a {size f + size b}
@-}
makeq l r
| size r <= size l = Q l r
| otherwise = Q (rot l r nil) nil
\end{code}
**The Rotate** function is only called when the `back` is one larger
than the `front` (we never let things drift beyond that). It is
arranged so that it the `hd` is built up fast, before the entire
computation finishes; which, combined with laziness provides the
efficient worst-case guarantee.
\begin{code}
{-@ rot :: l:SList a
-> r:SListN _ {1 + size l}
-> a:SList _
-> SListN _ {size l + size r + size a}
@-}
rot l r a
| size l == 0 = hd r `cons` a
| otherwise = hd l `cons` rot (tl l) (tl r) (hd r `cons` a)
\end{code}
Conclusion
----------
Well there you have it; Okasaki's beautiful lazy Queue, with the
invariants easily expressed and checked with LiquidHaskell. I find
this example particularly interesting because the refinements express
invariants that are critical for efficiency, and furthermore the code
introspects on the `size` in order to guarantee the invariants. Plus,
it's just marginally more complicated than `append` and so, (I hope!)
was easy to follow.
[okasaki95]: http://www.westpoint.edu/eecs/SiteAssets/SitePages/Faculty%20Publication%20Documents/Okasaki/jfp95queue.pdf
[queue-wiki]: http://en.wikipedia.org/wiki/Queue_%28abstract_data_type%29
| Literate Haskell | 5 | curiousleo/liquidhaskell | docs/blog/2015-01-30-okasakis-lazy-queue.lhs | [
"MIT",
"BSD-3-Clause"
] |
package protobuf;
option java_package = "com.baeldung.protobuf";
option java_outer_classname = "AddressBookProtos";
message Person {
required string name = 1;
required int32 id = 2;
optional string email = 3;
repeated string numbers = 4;
}
message AddressBook {
repeated Person people = 1;
} | Protocol Buffer | 4 | zeesh49/tutorials | protobuffer/src/main/resources/addressbook.proto | [
"MIT"
] |
defmodule Mix.Tasks.Phx.Server do
use Mix.Task
@shortdoc "Starts applications and their servers"
@moduledoc """
Starts the application by configuring all endpoints servers to run.
Note: to start the endpoint without using this mix task you must set
`server: true` in your `Phoenix.Endpoint` configuration.
## Command line options
* `--open` - open browser window for each started endpoint
Furthermore, this task accepts the same command-line options as
`mix run`.
For example, to run `phx.server` without recompiling:
$ mix phx.server --no-compile
The `--no-halt` flag is automatically added.
Note that the `--no-deps-check` flag cannot be used this way,
because Mix needs to check dependencies to find `phx.server`.
To run `phx.server` without checking dependencies, you can run:
$ mix do deps.loadpaths --no-deps-check, phx.server
"""
@impl true
def run(args) do
Application.put_env(:phoenix, :serve_endpoints, true, persistent: true)
Mix.Tasks.Run.run(open_args(args) ++ run_args())
end
defp iex_running? do
Code.ensure_loaded?(IEx) and IEx.started?()
end
defp open_args(args) do
if "--open" in args do
Application.put_env(:phoenix, :browser_open, true)
args -- ["--open"]
else
args
end
end
defp run_args do
if iex_running?(), do: [], else: ["--no-halt"]
end
end
| Elixir | 4 | faheempatel/phoenix | lib/mix/tasks/phx.server.ex | [
"MIT"
] |
#!/bin/bash
echo "Testing ${docker_image:=grpc_interop_go:dd8fbf3a-4964-4387-9997-5dadeea09835}"
docker run -i --rm=true -w /go/src/google.golang.org/grpc/interop/client --net=host $docker_image bash -c "go run client.go --server_host=grpc-test.sandbox.googleapis.com --server_host_override=grpc-test.sandbox.googleapis.com --server_port=443 --use_tls=true --test_case=large_unary"
docker run -i --rm=true -w /go/src/google.golang.org/grpc/interop/client --net=host $docker_image bash -c "go run client.go --server_host=grpc-test.sandbox.googleapis.com --server_host_override=grpc-test.sandbox.googleapis.com --server_port=443 --use_tls=true --test_case=empty_unary"
docker run -i --rm=true -w /go/src/google.golang.org/grpc/interop/client --net=host $docker_image bash -c "go run client.go --server_host=grpc-test.sandbox.googleapis.com --server_host_override=grpc-test.sandbox.googleapis.com --server_port=443 --use_tls=true --test_case=ping_pong"
docker run -i --rm=true -w /go/src/google.golang.org/grpc/interop/client --net=host $docker_image bash -c "go run client.go --server_host=grpc-test.sandbox.googleapis.com --server_host_override=grpc-test.sandbox.googleapis.com --server_port=443 --use_tls=true --test_case=empty_stream"
docker run -i --rm=true -w /go/src/google.golang.org/grpc/interop/client --net=host $docker_image bash -c "go run client.go --server_host=grpc-test.sandbox.googleapis.com --server_host_override=grpc-test.sandbox.googleapis.com --server_port=443 --use_tls=true --test_case=client_streaming"
docker run -i --rm=true -w /go/src/google.golang.org/grpc/interop/client --net=host $docker_image bash -c "go run client.go --server_host=grpc-test.sandbox.googleapis.com --server_host_override=grpc-test.sandbox.googleapis.com --server_port=443 --use_tls=true --test_case=server_streaming"
docker run -i --rm=true -w /go/src/google.golang.org/grpc/interop/client --net=host $docker_image bash -c "go run client.go --server_host=grpc-test.sandbox.googleapis.com --server_host_override=grpc-test.sandbox.googleapis.com --server_port=443 --use_tls=true --test_case=cancel_after_begin"
docker run -i --rm=true -w /go/src/google.golang.org/grpc/interop/client --net=host $docker_image bash -c "go run client.go --server_host=grpc-test.sandbox.googleapis.com --server_host_override=grpc-test.sandbox.googleapis.com --server_port=443 --use_tls=true --test_case=cancel_after_first_response"
docker run -i --rm=true -w /go/src/google.golang.org/grpc/interop/client --net=host $docker_image bash -c "go run client.go --server_host=grpc-test.sandbox.googleapis.com --server_host_override=grpc-test.sandbox.googleapis.com --server_port=443 --use_tls=true --test_case=timeout_on_sleeping_server"
docker run -i --rm=true -w /go/src/google.golang.org/grpc/interop/client --net=host $docker_image bash -c "go run client.go --server_host=grpc-test4.sandbox.googleapis.com --server_host_override=grpc-test4.sandbox.googleapis.com --server_port=443 --use_tls=true --test_case=large_unary"
docker run -i --rm=true -w /go/src/google.golang.org/grpc/interop/client --net=host $docker_image bash -c "go run client.go --server_host=grpc-test4.sandbox.googleapis.com --server_host_override=grpc-test4.sandbox.googleapis.com --server_port=443 --use_tls=true --test_case=empty_unary"
docker run -i --rm=true -w /go/src/google.golang.org/grpc/interop/client --net=host $docker_image bash -c "go run client.go --server_host=grpc-test4.sandbox.googleapis.com --server_host_override=grpc-test4.sandbox.googleapis.com --server_port=443 --use_tls=true --test_case=ping_pong"
docker run -i --rm=true -w /go/src/google.golang.org/grpc/interop/client --net=host $docker_image bash -c "go run client.go --server_host=grpc-test4.sandbox.googleapis.com --server_host_override=grpc-test4.sandbox.googleapis.com --server_port=443 --use_tls=true --test_case=empty_stream"
docker run -i --rm=true -w /go/src/google.golang.org/grpc/interop/client --net=host $docker_image bash -c "go run client.go --server_host=grpc-test4.sandbox.googleapis.com --server_host_override=grpc-test4.sandbox.googleapis.com --server_port=443 --use_tls=true --test_case=client_streaming"
docker run -i --rm=true -w /go/src/google.golang.org/grpc/interop/client --net=host $docker_image bash -c "go run client.go --server_host=grpc-test4.sandbox.googleapis.com --server_host_override=grpc-test4.sandbox.googleapis.com --server_port=443 --use_tls=true --test_case=server_streaming"
docker run -i --rm=true -w /go/src/google.golang.org/grpc/interop/client --net=host $docker_image bash -c "go run client.go --server_host=grpc-test4.sandbox.googleapis.com --server_host_override=grpc-test4.sandbox.googleapis.com --server_port=443 --use_tls=true --test_case=cancel_after_begin"
docker run -i --rm=true -w /go/src/google.golang.org/grpc/interop/client --net=host $docker_image bash -c "go run client.go --server_host=grpc-test4.sandbox.googleapis.com --server_host_override=grpc-test4.sandbox.googleapis.com --server_port=443 --use_tls=true --test_case=cancel_after_first_response"
docker run -i --rm=true -w /go/src/google.golang.org/grpc/interop/client --net=host $docker_image bash -c "go run client.go --server_host=grpc-test4.sandbox.googleapis.com --server_host_override=grpc-test4.sandbox.googleapis.com --server_port=443 --use_tls=true --test_case=timeout_on_sleeping_server"
| Groff | 3 | mpminardi/grpc | tools/interop_matrix/testcases/go__v1.0.5 | [
"Apache-2.0"
] |
<%@ page session="false" language="java" pageEncoding="UTF-8" %>
<%@ page contentType="text/xml; charset=utf-8" trimDirectiveWhitespaces="true" %>
<jsp:useBean id="model" type="com.dianping.cat.report.page.model.Model" scope="request"/>
${model.modelInXml} | Java Server Pages | 0 | woozhijun/cat | cat-home/src/main/webapp/jsp/report/model.jsp | [
"Apache-2.0"
] |
import {Component, HostBinding, NgModule} from '@angular/core';
@Component({
selector: 'my-component',
template: '',
host: {'style': 'width:200px; height:500px', 'class': 'foo baz'}
})
export class MyComponent {
@HostBinding('style') myStyle = {width: '100px'};
@HostBinding('class') myClass = {bar: false};
@HostBinding('style.color') myColorProp = 'red';
@HostBinding('class.foo') myFooClass = 'red';
}
@NgModule({declarations: [MyComponent]})
export class MyModule {
}
| TypeScript | 4 | John-Cassidy/angular | packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/static_and_dynamic.ts | [
"MIT"
] |
--TEST--
Bug #75318 (The parameter of UConverter::getAliases() is not optional)
--EXTENSIONS--
intl
--FILE--
<?php
$rm = new ReflectionMethod('UConverter', 'getAliases');
var_dump($rm->getNumberOfRequiredParameters());
?>
--EXPECT--
int(1)
| PHP | 3 | NathanFreeman/php-src | ext/intl/tests/bug75318.phpt | [
"PHP-3.01"
] |
set optimize_normalize_count_variants = 1;
explain syntax select count(), count(1), count(-1), sum(1), count(null);
| SQL | 4 | pdv-ru/ClickHouse | tests/queries/0_stateless/01706_optimize_normalize_count_variants.sql | [
"Apache-2.0"
] |
Setup:
$ . $TESTDIR/setup.sh
$ cp $TESTDIR/is_binary.pdf .
PDF files are binary. Do not search them by default:
$ ag PDF
[1]
OK, search binary files
$ ag --search-binary PDF
Binary file is_binary.pdf matches.
| Perl | 4 | kknives/the_silver_searcher | tests/is_binary_pdf.t | [
"Apache-2.0"
] |
,loser,convai2_logs,ed_logs
0,convai2_logs,,0.5
1,ed_logs,0.5,
| CSV | 0 | zl930216/ParlAI | tests/crowdsourcing/tasks/acute_eval/test_fast_acute_dataset/test_grid_csv.csv | [
"MIT"
] |
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page session="false" %>
<html>
<head>
<link href="<c:url value="/resources/bootstrap.css" />" rel="stylesheet">
<script type="text/javascript" src="<c:url value="/js/foo.js" />">
</script>
<title>Home</title>
</head>
<body>
<h1>
This is Home!
</h1>
<img alt="bunny hop image" src="<c:url value="files/myImage.png" />">
<input type = "button" value="Click to Test Js File" onclick = "testing();"/>
</body>
</html>
| Java Server Pages | 3 | zeesh49/tutorials | spring-static-resources/src/main/webapp/WEB-INF/view/home.jsp | [
"MIT"
] |
<div class="{{ type }}-hero-container" style="background-image:url( {% root %}{{ hero-image }} );{% if hero-height %} height: {{ hero-height}}px; {% endif%}">
<div class="hero-container mdl-grid">
<div class="mdl-cell--8-col mdl-cell--6-col-tablet mdl-cell--4-col-phone">
<div class="{{ type }}-title">{{ hero-title }}</div>
<div class="{{ type }}-copy">{{ hero-copy }}</div>
</div>
</div>
</div> | Liquid | 3 | noahcb/lit | website/src/_includes/partials/hero-element.liquid | [
"Apache-2.0"
] |
.oauth-panel {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
& ul,
& li,
& ol {
list-style: initial;
}
& ul {
margin-left: 6px;
padding-left: 10px;
}
& form {
min-width: 400px;
padding: 40px;
}
& .user-info {
display: flex;
flex-direction: row;
margin-bottom: 20px;
padding-bottom: 20px;
border-bottom: 1px solid #eeeeee;
align-items: center;
justify-content: center;
& .thumb {
width: 40px;
height: 40px;
margin-right: 10px;
}
& .username {
text-align: left;
& h1 {
font-size: 18px;
}
}
}
& .integration-info {
display: flex;
flex-direction: column;
align-items: center;
& .integration-permissions {
margin-left: 16px;
padding-top: 10px;
padding-bottom: 40px;
}
}
& .buttons {
display: flex;
align-items: center;
justify-content: center;
& .horizontal-space {
height: 14px;
margin: 0 15px;
border-right: 1px solid #dddddd;
}
}
}
| CSS | 3 | subramanir2143/Rocket.Chat | app/oauth2-server-config/client/oauth/stylesheets/oauth2.css | [
"MIT"
] |
--TEST--
Bug #72188 (Nested try/finally blocks losing return value)
--FILE--
<?php
function test() {
try {
return 5;
} finally {
try {
echo 1;
} finally {
echo 2;
}
}
}
$a = test();
if($a !== 5) {
echo "FAILED: expected 5, received ", var_export($a), PHP_EOL;
} else {
echo "Passed", PHP_EOL;
}
?>
--EXPECT--
12Passed
| PHP | 4 | thiagooak/php-src | Zend/tests/bug72188.phpt | [
"PHP-3.01"
] |
--TEST--
version_compare test
--FILE--
<?php
print "TESTING COMPARE\n";
$special_forms = array("-dev", "a1", "b1", "RC1", "rc1", "", "pl1");
$operators = array(
"lt", "<",
"le", "<=",
"gt", ">",
"ge", ">=",
"eq", "=", "==",
"ne", "<>", "!="
);
test("1", "2");
test("10", "2");
test("1.0", "1.1");
test("1.2", "1.0.1");
foreach ($special_forms as $f1) {
foreach ($special_forms as $f2) {
test("1.0$f1", "1.0$f2");
}
}
print "TESTING OPERATORS\n";
foreach ($special_forms as $f1) {
foreach ($special_forms as $f2) {
foreach ($operators as $op) {
$v1 = "1.0$f1";
$v2 = "1.0$f2";
$test = version_compare($v1, $v2, $op) ? "true" : "false";
printf("%7s %2s %-7s : %s\n", $v1, $op, $v2, $test);
}
}
}
function test($v1, $v2) {
$compare = version_compare($v1, $v2);
switch ($compare) {
case -1:
print "$v1 < $v2\n";
break;
case 1:
print "$v1 > $v2\n";
break;
case 0:
default:
print "$v1 = $v2\n";
break;
}
}
?>
--EXPECT--
TESTING COMPARE
1 < 2
10 > 2
1.0 < 1.1
1.2 > 1.0.1
1.0-dev = 1.0-dev
1.0-dev < 1.0a1
1.0-dev < 1.0b1
1.0-dev < 1.0RC1
1.0-dev < 1.0rc1
1.0-dev < 1.0
1.0-dev < 1.0pl1
1.0a1 > 1.0-dev
1.0a1 = 1.0a1
1.0a1 < 1.0b1
1.0a1 < 1.0RC1
1.0a1 < 1.0rc1
1.0a1 < 1.0
1.0a1 < 1.0pl1
1.0b1 > 1.0-dev
1.0b1 > 1.0a1
1.0b1 = 1.0b1
1.0b1 < 1.0RC1
1.0b1 < 1.0rc1
1.0b1 < 1.0
1.0b1 < 1.0pl1
1.0RC1 > 1.0-dev
1.0RC1 > 1.0a1
1.0RC1 > 1.0b1
1.0RC1 = 1.0RC1
1.0RC1 = 1.0rc1
1.0RC1 < 1.0
1.0RC1 < 1.0pl1
1.0rc1 > 1.0-dev
1.0rc1 > 1.0a1
1.0rc1 > 1.0b1
1.0rc1 = 1.0RC1
1.0rc1 = 1.0rc1
1.0rc1 < 1.0
1.0rc1 < 1.0pl1
1.0 > 1.0-dev
1.0 > 1.0a1
1.0 > 1.0b1
1.0 > 1.0RC1
1.0 > 1.0rc1
1.0 = 1.0
1.0 < 1.0pl1
1.0pl1 > 1.0-dev
1.0pl1 > 1.0a1
1.0pl1 > 1.0b1
1.0pl1 > 1.0RC1
1.0pl1 > 1.0rc1
1.0pl1 > 1.0
1.0pl1 = 1.0pl1
TESTING OPERATORS
1.0-dev lt 1.0-dev : false
1.0-dev < 1.0-dev : false
1.0-dev le 1.0-dev : true
1.0-dev <= 1.0-dev : true
1.0-dev gt 1.0-dev : false
1.0-dev > 1.0-dev : false
1.0-dev ge 1.0-dev : true
1.0-dev >= 1.0-dev : true
1.0-dev eq 1.0-dev : true
1.0-dev = 1.0-dev : true
1.0-dev == 1.0-dev : true
1.0-dev ne 1.0-dev : false
1.0-dev <> 1.0-dev : false
1.0-dev != 1.0-dev : false
1.0-dev lt 1.0a1 : true
1.0-dev < 1.0a1 : true
1.0-dev le 1.0a1 : true
1.0-dev <= 1.0a1 : true
1.0-dev gt 1.0a1 : false
1.0-dev > 1.0a1 : false
1.0-dev ge 1.0a1 : false
1.0-dev >= 1.0a1 : false
1.0-dev eq 1.0a1 : false
1.0-dev = 1.0a1 : false
1.0-dev == 1.0a1 : false
1.0-dev ne 1.0a1 : true
1.0-dev <> 1.0a1 : true
1.0-dev != 1.0a1 : true
1.0-dev lt 1.0b1 : true
1.0-dev < 1.0b1 : true
1.0-dev le 1.0b1 : true
1.0-dev <= 1.0b1 : true
1.0-dev gt 1.0b1 : false
1.0-dev > 1.0b1 : false
1.0-dev ge 1.0b1 : false
1.0-dev >= 1.0b1 : false
1.0-dev eq 1.0b1 : false
1.0-dev = 1.0b1 : false
1.0-dev == 1.0b1 : false
1.0-dev ne 1.0b1 : true
1.0-dev <> 1.0b1 : true
1.0-dev != 1.0b1 : true
1.0-dev lt 1.0RC1 : true
1.0-dev < 1.0RC1 : true
1.0-dev le 1.0RC1 : true
1.0-dev <= 1.0RC1 : true
1.0-dev gt 1.0RC1 : false
1.0-dev > 1.0RC1 : false
1.0-dev ge 1.0RC1 : false
1.0-dev >= 1.0RC1 : false
1.0-dev eq 1.0RC1 : false
1.0-dev = 1.0RC1 : false
1.0-dev == 1.0RC1 : false
1.0-dev ne 1.0RC1 : true
1.0-dev <> 1.0RC1 : true
1.0-dev != 1.0RC1 : true
1.0-dev lt 1.0rc1 : true
1.0-dev < 1.0rc1 : true
1.0-dev le 1.0rc1 : true
1.0-dev <= 1.0rc1 : true
1.0-dev gt 1.0rc1 : false
1.0-dev > 1.0rc1 : false
1.0-dev ge 1.0rc1 : false
1.0-dev >= 1.0rc1 : false
1.0-dev eq 1.0rc1 : false
1.0-dev = 1.0rc1 : false
1.0-dev == 1.0rc1 : false
1.0-dev ne 1.0rc1 : true
1.0-dev <> 1.0rc1 : true
1.0-dev != 1.0rc1 : true
1.0-dev lt 1.0 : true
1.0-dev < 1.0 : true
1.0-dev le 1.0 : true
1.0-dev <= 1.0 : true
1.0-dev gt 1.0 : false
1.0-dev > 1.0 : false
1.0-dev ge 1.0 : false
1.0-dev >= 1.0 : false
1.0-dev eq 1.0 : false
1.0-dev = 1.0 : false
1.0-dev == 1.0 : false
1.0-dev ne 1.0 : true
1.0-dev <> 1.0 : true
1.0-dev != 1.0 : true
1.0-dev lt 1.0pl1 : true
1.0-dev < 1.0pl1 : true
1.0-dev le 1.0pl1 : true
1.0-dev <= 1.0pl1 : true
1.0-dev gt 1.0pl1 : false
1.0-dev > 1.0pl1 : false
1.0-dev ge 1.0pl1 : false
1.0-dev >= 1.0pl1 : false
1.0-dev eq 1.0pl1 : false
1.0-dev = 1.0pl1 : false
1.0-dev == 1.0pl1 : false
1.0-dev ne 1.0pl1 : true
1.0-dev <> 1.0pl1 : true
1.0-dev != 1.0pl1 : true
1.0a1 lt 1.0-dev : false
1.0a1 < 1.0-dev : false
1.0a1 le 1.0-dev : false
1.0a1 <= 1.0-dev : false
1.0a1 gt 1.0-dev : true
1.0a1 > 1.0-dev : true
1.0a1 ge 1.0-dev : true
1.0a1 >= 1.0-dev : true
1.0a1 eq 1.0-dev : false
1.0a1 = 1.0-dev : false
1.0a1 == 1.0-dev : false
1.0a1 ne 1.0-dev : true
1.0a1 <> 1.0-dev : true
1.0a1 != 1.0-dev : true
1.0a1 lt 1.0a1 : false
1.0a1 < 1.0a1 : false
1.0a1 le 1.0a1 : true
1.0a1 <= 1.0a1 : true
1.0a1 gt 1.0a1 : false
1.0a1 > 1.0a1 : false
1.0a1 ge 1.0a1 : true
1.0a1 >= 1.0a1 : true
1.0a1 eq 1.0a1 : true
1.0a1 = 1.0a1 : true
1.0a1 == 1.0a1 : true
1.0a1 ne 1.0a1 : false
1.0a1 <> 1.0a1 : false
1.0a1 != 1.0a1 : false
1.0a1 lt 1.0b1 : true
1.0a1 < 1.0b1 : true
1.0a1 le 1.0b1 : true
1.0a1 <= 1.0b1 : true
1.0a1 gt 1.0b1 : false
1.0a1 > 1.0b1 : false
1.0a1 ge 1.0b1 : false
1.0a1 >= 1.0b1 : false
1.0a1 eq 1.0b1 : false
1.0a1 = 1.0b1 : false
1.0a1 == 1.0b1 : false
1.0a1 ne 1.0b1 : true
1.0a1 <> 1.0b1 : true
1.0a1 != 1.0b1 : true
1.0a1 lt 1.0RC1 : true
1.0a1 < 1.0RC1 : true
1.0a1 le 1.0RC1 : true
1.0a1 <= 1.0RC1 : true
1.0a1 gt 1.0RC1 : false
1.0a1 > 1.0RC1 : false
1.0a1 ge 1.0RC1 : false
1.0a1 >= 1.0RC1 : false
1.0a1 eq 1.0RC1 : false
1.0a1 = 1.0RC1 : false
1.0a1 == 1.0RC1 : false
1.0a1 ne 1.0RC1 : true
1.0a1 <> 1.0RC1 : true
1.0a1 != 1.0RC1 : true
1.0a1 lt 1.0rc1 : true
1.0a1 < 1.0rc1 : true
1.0a1 le 1.0rc1 : true
1.0a1 <= 1.0rc1 : true
1.0a1 gt 1.0rc1 : false
1.0a1 > 1.0rc1 : false
1.0a1 ge 1.0rc1 : false
1.0a1 >= 1.0rc1 : false
1.0a1 eq 1.0rc1 : false
1.0a1 = 1.0rc1 : false
1.0a1 == 1.0rc1 : false
1.0a1 ne 1.0rc1 : true
1.0a1 <> 1.0rc1 : true
1.0a1 != 1.0rc1 : true
1.0a1 lt 1.0 : true
1.0a1 < 1.0 : true
1.0a1 le 1.0 : true
1.0a1 <= 1.0 : true
1.0a1 gt 1.0 : false
1.0a1 > 1.0 : false
1.0a1 ge 1.0 : false
1.0a1 >= 1.0 : false
1.0a1 eq 1.0 : false
1.0a1 = 1.0 : false
1.0a1 == 1.0 : false
1.0a1 ne 1.0 : true
1.0a1 <> 1.0 : true
1.0a1 != 1.0 : true
1.0a1 lt 1.0pl1 : true
1.0a1 < 1.0pl1 : true
1.0a1 le 1.0pl1 : true
1.0a1 <= 1.0pl1 : true
1.0a1 gt 1.0pl1 : false
1.0a1 > 1.0pl1 : false
1.0a1 ge 1.0pl1 : false
1.0a1 >= 1.0pl1 : false
1.0a1 eq 1.0pl1 : false
1.0a1 = 1.0pl1 : false
1.0a1 == 1.0pl1 : false
1.0a1 ne 1.0pl1 : true
1.0a1 <> 1.0pl1 : true
1.0a1 != 1.0pl1 : true
1.0b1 lt 1.0-dev : false
1.0b1 < 1.0-dev : false
1.0b1 le 1.0-dev : false
1.0b1 <= 1.0-dev : false
1.0b1 gt 1.0-dev : true
1.0b1 > 1.0-dev : true
1.0b1 ge 1.0-dev : true
1.0b1 >= 1.0-dev : true
1.0b1 eq 1.0-dev : false
1.0b1 = 1.0-dev : false
1.0b1 == 1.0-dev : false
1.0b1 ne 1.0-dev : true
1.0b1 <> 1.0-dev : true
1.0b1 != 1.0-dev : true
1.0b1 lt 1.0a1 : false
1.0b1 < 1.0a1 : false
1.0b1 le 1.0a1 : false
1.0b1 <= 1.0a1 : false
1.0b1 gt 1.0a1 : true
1.0b1 > 1.0a1 : true
1.0b1 ge 1.0a1 : true
1.0b1 >= 1.0a1 : true
1.0b1 eq 1.0a1 : false
1.0b1 = 1.0a1 : false
1.0b1 == 1.0a1 : false
1.0b1 ne 1.0a1 : true
1.0b1 <> 1.0a1 : true
1.0b1 != 1.0a1 : true
1.0b1 lt 1.0b1 : false
1.0b1 < 1.0b1 : false
1.0b1 le 1.0b1 : true
1.0b1 <= 1.0b1 : true
1.0b1 gt 1.0b1 : false
1.0b1 > 1.0b1 : false
1.0b1 ge 1.0b1 : true
1.0b1 >= 1.0b1 : true
1.0b1 eq 1.0b1 : true
1.0b1 = 1.0b1 : true
1.0b1 == 1.0b1 : true
1.0b1 ne 1.0b1 : false
1.0b1 <> 1.0b1 : false
1.0b1 != 1.0b1 : false
1.0b1 lt 1.0RC1 : true
1.0b1 < 1.0RC1 : true
1.0b1 le 1.0RC1 : true
1.0b1 <= 1.0RC1 : true
1.0b1 gt 1.0RC1 : false
1.0b1 > 1.0RC1 : false
1.0b1 ge 1.0RC1 : false
1.0b1 >= 1.0RC1 : false
1.0b1 eq 1.0RC1 : false
1.0b1 = 1.0RC1 : false
1.0b1 == 1.0RC1 : false
1.0b1 ne 1.0RC1 : true
1.0b1 <> 1.0RC1 : true
1.0b1 != 1.0RC1 : true
1.0b1 lt 1.0rc1 : true
1.0b1 < 1.0rc1 : true
1.0b1 le 1.0rc1 : true
1.0b1 <= 1.0rc1 : true
1.0b1 gt 1.0rc1 : false
1.0b1 > 1.0rc1 : false
1.0b1 ge 1.0rc1 : false
1.0b1 >= 1.0rc1 : false
1.0b1 eq 1.0rc1 : false
1.0b1 = 1.0rc1 : false
1.0b1 == 1.0rc1 : false
1.0b1 ne 1.0rc1 : true
1.0b1 <> 1.0rc1 : true
1.0b1 != 1.0rc1 : true
1.0b1 lt 1.0 : true
1.0b1 < 1.0 : true
1.0b1 le 1.0 : true
1.0b1 <= 1.0 : true
1.0b1 gt 1.0 : false
1.0b1 > 1.0 : false
1.0b1 ge 1.0 : false
1.0b1 >= 1.0 : false
1.0b1 eq 1.0 : false
1.0b1 = 1.0 : false
1.0b1 == 1.0 : false
1.0b1 ne 1.0 : true
1.0b1 <> 1.0 : true
1.0b1 != 1.0 : true
1.0b1 lt 1.0pl1 : true
1.0b1 < 1.0pl1 : true
1.0b1 le 1.0pl1 : true
1.0b1 <= 1.0pl1 : true
1.0b1 gt 1.0pl1 : false
1.0b1 > 1.0pl1 : false
1.0b1 ge 1.0pl1 : false
1.0b1 >= 1.0pl1 : false
1.0b1 eq 1.0pl1 : false
1.0b1 = 1.0pl1 : false
1.0b1 == 1.0pl1 : false
1.0b1 ne 1.0pl1 : true
1.0b1 <> 1.0pl1 : true
1.0b1 != 1.0pl1 : true
1.0RC1 lt 1.0-dev : false
1.0RC1 < 1.0-dev : false
1.0RC1 le 1.0-dev : false
1.0RC1 <= 1.0-dev : false
1.0RC1 gt 1.0-dev : true
1.0RC1 > 1.0-dev : true
1.0RC1 ge 1.0-dev : true
1.0RC1 >= 1.0-dev : true
1.0RC1 eq 1.0-dev : false
1.0RC1 = 1.0-dev : false
1.0RC1 == 1.0-dev : false
1.0RC1 ne 1.0-dev : true
1.0RC1 <> 1.0-dev : true
1.0RC1 != 1.0-dev : true
1.0RC1 lt 1.0a1 : false
1.0RC1 < 1.0a1 : false
1.0RC1 le 1.0a1 : false
1.0RC1 <= 1.0a1 : false
1.0RC1 gt 1.0a1 : true
1.0RC1 > 1.0a1 : true
1.0RC1 ge 1.0a1 : true
1.0RC1 >= 1.0a1 : true
1.0RC1 eq 1.0a1 : false
1.0RC1 = 1.0a1 : false
1.0RC1 == 1.0a1 : false
1.0RC1 ne 1.0a1 : true
1.0RC1 <> 1.0a1 : true
1.0RC1 != 1.0a1 : true
1.0RC1 lt 1.0b1 : false
1.0RC1 < 1.0b1 : false
1.0RC1 le 1.0b1 : false
1.0RC1 <= 1.0b1 : false
1.0RC1 gt 1.0b1 : true
1.0RC1 > 1.0b1 : true
1.0RC1 ge 1.0b1 : true
1.0RC1 >= 1.0b1 : true
1.0RC1 eq 1.0b1 : false
1.0RC1 = 1.0b1 : false
1.0RC1 == 1.0b1 : false
1.0RC1 ne 1.0b1 : true
1.0RC1 <> 1.0b1 : true
1.0RC1 != 1.0b1 : true
1.0RC1 lt 1.0RC1 : false
1.0RC1 < 1.0RC1 : false
1.0RC1 le 1.0RC1 : true
1.0RC1 <= 1.0RC1 : true
1.0RC1 gt 1.0RC1 : false
1.0RC1 > 1.0RC1 : false
1.0RC1 ge 1.0RC1 : true
1.0RC1 >= 1.0RC1 : true
1.0RC1 eq 1.0RC1 : true
1.0RC1 = 1.0RC1 : true
1.0RC1 == 1.0RC1 : true
1.0RC1 ne 1.0RC1 : false
1.0RC1 <> 1.0RC1 : false
1.0RC1 != 1.0RC1 : false
1.0RC1 lt 1.0rc1 : false
1.0RC1 < 1.0rc1 : false
1.0RC1 le 1.0rc1 : true
1.0RC1 <= 1.0rc1 : true
1.0RC1 gt 1.0rc1 : false
1.0RC1 > 1.0rc1 : false
1.0RC1 ge 1.0rc1 : true
1.0RC1 >= 1.0rc1 : true
1.0RC1 eq 1.0rc1 : true
1.0RC1 = 1.0rc1 : true
1.0RC1 == 1.0rc1 : true
1.0RC1 ne 1.0rc1 : false
1.0RC1 <> 1.0rc1 : false
1.0RC1 != 1.0rc1 : false
1.0RC1 lt 1.0 : true
1.0RC1 < 1.0 : true
1.0RC1 le 1.0 : true
1.0RC1 <= 1.0 : true
1.0RC1 gt 1.0 : false
1.0RC1 > 1.0 : false
1.0RC1 ge 1.0 : false
1.0RC1 >= 1.0 : false
1.0RC1 eq 1.0 : false
1.0RC1 = 1.0 : false
1.0RC1 == 1.0 : false
1.0RC1 ne 1.0 : true
1.0RC1 <> 1.0 : true
1.0RC1 != 1.0 : true
1.0RC1 lt 1.0pl1 : true
1.0RC1 < 1.0pl1 : true
1.0RC1 le 1.0pl1 : true
1.0RC1 <= 1.0pl1 : true
1.0RC1 gt 1.0pl1 : false
1.0RC1 > 1.0pl1 : false
1.0RC1 ge 1.0pl1 : false
1.0RC1 >= 1.0pl1 : false
1.0RC1 eq 1.0pl1 : false
1.0RC1 = 1.0pl1 : false
1.0RC1 == 1.0pl1 : false
1.0RC1 ne 1.0pl1 : true
1.0RC1 <> 1.0pl1 : true
1.0RC1 != 1.0pl1 : true
1.0rc1 lt 1.0-dev : false
1.0rc1 < 1.0-dev : false
1.0rc1 le 1.0-dev : false
1.0rc1 <= 1.0-dev : false
1.0rc1 gt 1.0-dev : true
1.0rc1 > 1.0-dev : true
1.0rc1 ge 1.0-dev : true
1.0rc1 >= 1.0-dev : true
1.0rc1 eq 1.0-dev : false
1.0rc1 = 1.0-dev : false
1.0rc1 == 1.0-dev : false
1.0rc1 ne 1.0-dev : true
1.0rc1 <> 1.0-dev : true
1.0rc1 != 1.0-dev : true
1.0rc1 lt 1.0a1 : false
1.0rc1 < 1.0a1 : false
1.0rc1 le 1.0a1 : false
1.0rc1 <= 1.0a1 : false
1.0rc1 gt 1.0a1 : true
1.0rc1 > 1.0a1 : true
1.0rc1 ge 1.0a1 : true
1.0rc1 >= 1.0a1 : true
1.0rc1 eq 1.0a1 : false
1.0rc1 = 1.0a1 : false
1.0rc1 == 1.0a1 : false
1.0rc1 ne 1.0a1 : true
1.0rc1 <> 1.0a1 : true
1.0rc1 != 1.0a1 : true
1.0rc1 lt 1.0b1 : false
1.0rc1 < 1.0b1 : false
1.0rc1 le 1.0b1 : false
1.0rc1 <= 1.0b1 : false
1.0rc1 gt 1.0b1 : true
1.0rc1 > 1.0b1 : true
1.0rc1 ge 1.0b1 : true
1.0rc1 >= 1.0b1 : true
1.0rc1 eq 1.0b1 : false
1.0rc1 = 1.0b1 : false
1.0rc1 == 1.0b1 : false
1.0rc1 ne 1.0b1 : true
1.0rc1 <> 1.0b1 : true
1.0rc1 != 1.0b1 : true
1.0rc1 lt 1.0RC1 : false
1.0rc1 < 1.0RC1 : false
1.0rc1 le 1.0RC1 : true
1.0rc1 <= 1.0RC1 : true
1.0rc1 gt 1.0RC1 : false
1.0rc1 > 1.0RC1 : false
1.0rc1 ge 1.0RC1 : true
1.0rc1 >= 1.0RC1 : true
1.0rc1 eq 1.0RC1 : true
1.0rc1 = 1.0RC1 : true
1.0rc1 == 1.0RC1 : true
1.0rc1 ne 1.0RC1 : false
1.0rc1 <> 1.0RC1 : false
1.0rc1 != 1.0RC1 : false
1.0rc1 lt 1.0rc1 : false
1.0rc1 < 1.0rc1 : false
1.0rc1 le 1.0rc1 : true
1.0rc1 <= 1.0rc1 : true
1.0rc1 gt 1.0rc1 : false
1.0rc1 > 1.0rc1 : false
1.0rc1 ge 1.0rc1 : true
1.0rc1 >= 1.0rc1 : true
1.0rc1 eq 1.0rc1 : true
1.0rc1 = 1.0rc1 : true
1.0rc1 == 1.0rc1 : true
1.0rc1 ne 1.0rc1 : false
1.0rc1 <> 1.0rc1 : false
1.0rc1 != 1.0rc1 : false
1.0rc1 lt 1.0 : true
1.0rc1 < 1.0 : true
1.0rc1 le 1.0 : true
1.0rc1 <= 1.0 : true
1.0rc1 gt 1.0 : false
1.0rc1 > 1.0 : false
1.0rc1 ge 1.0 : false
1.0rc1 >= 1.0 : false
1.0rc1 eq 1.0 : false
1.0rc1 = 1.0 : false
1.0rc1 == 1.0 : false
1.0rc1 ne 1.0 : true
1.0rc1 <> 1.0 : true
1.0rc1 != 1.0 : true
1.0rc1 lt 1.0pl1 : true
1.0rc1 < 1.0pl1 : true
1.0rc1 le 1.0pl1 : true
1.0rc1 <= 1.0pl1 : true
1.0rc1 gt 1.0pl1 : false
1.0rc1 > 1.0pl1 : false
1.0rc1 ge 1.0pl1 : false
1.0rc1 >= 1.0pl1 : false
1.0rc1 eq 1.0pl1 : false
1.0rc1 = 1.0pl1 : false
1.0rc1 == 1.0pl1 : false
1.0rc1 ne 1.0pl1 : true
1.0rc1 <> 1.0pl1 : true
1.0rc1 != 1.0pl1 : true
1.0 lt 1.0-dev : false
1.0 < 1.0-dev : false
1.0 le 1.0-dev : false
1.0 <= 1.0-dev : false
1.0 gt 1.0-dev : true
1.0 > 1.0-dev : true
1.0 ge 1.0-dev : true
1.0 >= 1.0-dev : true
1.0 eq 1.0-dev : false
1.0 = 1.0-dev : false
1.0 == 1.0-dev : false
1.0 ne 1.0-dev : true
1.0 <> 1.0-dev : true
1.0 != 1.0-dev : true
1.0 lt 1.0a1 : false
1.0 < 1.0a1 : false
1.0 le 1.0a1 : false
1.0 <= 1.0a1 : false
1.0 gt 1.0a1 : true
1.0 > 1.0a1 : true
1.0 ge 1.0a1 : true
1.0 >= 1.0a1 : true
1.0 eq 1.0a1 : false
1.0 = 1.0a1 : false
1.0 == 1.0a1 : false
1.0 ne 1.0a1 : true
1.0 <> 1.0a1 : true
1.0 != 1.0a1 : true
1.0 lt 1.0b1 : false
1.0 < 1.0b1 : false
1.0 le 1.0b1 : false
1.0 <= 1.0b1 : false
1.0 gt 1.0b1 : true
1.0 > 1.0b1 : true
1.0 ge 1.0b1 : true
1.0 >= 1.0b1 : true
1.0 eq 1.0b1 : false
1.0 = 1.0b1 : false
1.0 == 1.0b1 : false
1.0 ne 1.0b1 : true
1.0 <> 1.0b1 : true
1.0 != 1.0b1 : true
1.0 lt 1.0RC1 : false
1.0 < 1.0RC1 : false
1.0 le 1.0RC1 : false
1.0 <= 1.0RC1 : false
1.0 gt 1.0RC1 : true
1.0 > 1.0RC1 : true
1.0 ge 1.0RC1 : true
1.0 >= 1.0RC1 : true
1.0 eq 1.0RC1 : false
1.0 = 1.0RC1 : false
1.0 == 1.0RC1 : false
1.0 ne 1.0RC1 : true
1.0 <> 1.0RC1 : true
1.0 != 1.0RC1 : true
1.0 lt 1.0rc1 : false
1.0 < 1.0rc1 : false
1.0 le 1.0rc1 : false
1.0 <= 1.0rc1 : false
1.0 gt 1.0rc1 : true
1.0 > 1.0rc1 : true
1.0 ge 1.0rc1 : true
1.0 >= 1.0rc1 : true
1.0 eq 1.0rc1 : false
1.0 = 1.0rc1 : false
1.0 == 1.0rc1 : false
1.0 ne 1.0rc1 : true
1.0 <> 1.0rc1 : true
1.0 != 1.0rc1 : true
1.0 lt 1.0 : false
1.0 < 1.0 : false
1.0 le 1.0 : true
1.0 <= 1.0 : true
1.0 gt 1.0 : false
1.0 > 1.0 : false
1.0 ge 1.0 : true
1.0 >= 1.0 : true
1.0 eq 1.0 : true
1.0 = 1.0 : true
1.0 == 1.0 : true
1.0 ne 1.0 : false
1.0 <> 1.0 : false
1.0 != 1.0 : false
1.0 lt 1.0pl1 : true
1.0 < 1.0pl1 : true
1.0 le 1.0pl1 : true
1.0 <= 1.0pl1 : true
1.0 gt 1.0pl1 : false
1.0 > 1.0pl1 : false
1.0 ge 1.0pl1 : false
1.0 >= 1.0pl1 : false
1.0 eq 1.0pl1 : false
1.0 = 1.0pl1 : false
1.0 == 1.0pl1 : false
1.0 ne 1.0pl1 : true
1.0 <> 1.0pl1 : true
1.0 != 1.0pl1 : true
1.0pl1 lt 1.0-dev : false
1.0pl1 < 1.0-dev : false
1.0pl1 le 1.0-dev : false
1.0pl1 <= 1.0-dev : false
1.0pl1 gt 1.0-dev : true
1.0pl1 > 1.0-dev : true
1.0pl1 ge 1.0-dev : true
1.0pl1 >= 1.0-dev : true
1.0pl1 eq 1.0-dev : false
1.0pl1 = 1.0-dev : false
1.0pl1 == 1.0-dev : false
1.0pl1 ne 1.0-dev : true
1.0pl1 <> 1.0-dev : true
1.0pl1 != 1.0-dev : true
1.0pl1 lt 1.0a1 : false
1.0pl1 < 1.0a1 : false
1.0pl1 le 1.0a1 : false
1.0pl1 <= 1.0a1 : false
1.0pl1 gt 1.0a1 : true
1.0pl1 > 1.0a1 : true
1.0pl1 ge 1.0a1 : true
1.0pl1 >= 1.0a1 : true
1.0pl1 eq 1.0a1 : false
1.0pl1 = 1.0a1 : false
1.0pl1 == 1.0a1 : false
1.0pl1 ne 1.0a1 : true
1.0pl1 <> 1.0a1 : true
1.0pl1 != 1.0a1 : true
1.0pl1 lt 1.0b1 : false
1.0pl1 < 1.0b1 : false
1.0pl1 le 1.0b1 : false
1.0pl1 <= 1.0b1 : false
1.0pl1 gt 1.0b1 : true
1.0pl1 > 1.0b1 : true
1.0pl1 ge 1.0b1 : true
1.0pl1 >= 1.0b1 : true
1.0pl1 eq 1.0b1 : false
1.0pl1 = 1.0b1 : false
1.0pl1 == 1.0b1 : false
1.0pl1 ne 1.0b1 : true
1.0pl1 <> 1.0b1 : true
1.0pl1 != 1.0b1 : true
1.0pl1 lt 1.0RC1 : false
1.0pl1 < 1.0RC1 : false
1.0pl1 le 1.0RC1 : false
1.0pl1 <= 1.0RC1 : false
1.0pl1 gt 1.0RC1 : true
1.0pl1 > 1.0RC1 : true
1.0pl1 ge 1.0RC1 : true
1.0pl1 >= 1.0RC1 : true
1.0pl1 eq 1.0RC1 : false
1.0pl1 = 1.0RC1 : false
1.0pl1 == 1.0RC1 : false
1.0pl1 ne 1.0RC1 : true
1.0pl1 <> 1.0RC1 : true
1.0pl1 != 1.0RC1 : true
1.0pl1 lt 1.0rc1 : false
1.0pl1 < 1.0rc1 : false
1.0pl1 le 1.0rc1 : false
1.0pl1 <= 1.0rc1 : false
1.0pl1 gt 1.0rc1 : true
1.0pl1 > 1.0rc1 : true
1.0pl1 ge 1.0rc1 : true
1.0pl1 >= 1.0rc1 : true
1.0pl1 eq 1.0rc1 : false
1.0pl1 = 1.0rc1 : false
1.0pl1 == 1.0rc1 : false
1.0pl1 ne 1.0rc1 : true
1.0pl1 <> 1.0rc1 : true
1.0pl1 != 1.0rc1 : true
1.0pl1 lt 1.0 : false
1.0pl1 < 1.0 : false
1.0pl1 le 1.0 : false
1.0pl1 <= 1.0 : false
1.0pl1 gt 1.0 : true
1.0pl1 > 1.0 : true
1.0pl1 ge 1.0 : true
1.0pl1 >= 1.0 : true
1.0pl1 eq 1.0 : false
1.0pl1 = 1.0 : false
1.0pl1 == 1.0 : false
1.0pl1 ne 1.0 : true
1.0pl1 <> 1.0 : true
1.0pl1 != 1.0 : true
1.0pl1 lt 1.0pl1 : false
1.0pl1 < 1.0pl1 : false
1.0pl1 le 1.0pl1 : true
1.0pl1 <= 1.0pl1 : true
1.0pl1 gt 1.0pl1 : false
1.0pl1 > 1.0pl1 : false
1.0pl1 ge 1.0pl1 : true
1.0pl1 >= 1.0pl1 : true
1.0pl1 eq 1.0pl1 : true
1.0pl1 = 1.0pl1 : true
1.0pl1 == 1.0pl1 : true
1.0pl1 ne 1.0pl1 : false
1.0pl1 <> 1.0pl1 : false
1.0pl1 != 1.0pl1 : false
| PHP | 4 | thiagooak/php-src | ext/standard/tests/versioning/version_compare.phpt | [
"PHP-3.01"
] |
#!/usr/bin/env octave
%
% This is an example on how to load a cps file
% and output some information on the model
%
COPASI
%!assert( swig_this(CRootContainer.getRoot()) != 0);
% create a datamodel
dataModel = CRootContainer.addDatamodel();
%!assert( CRootContainer.getDatamodelList().size() == 1);
% the only argument to the main routine should be the name of a CPS file
if (length(argv) == 1)
filename = argv(){1};
try
% load the model without progress report
dataModel.loadModel(filename);
catch
error("Error while loading the model from file named \"%s\".\n",filename);
quit(1);
end_try_catch
model = dataModel.getModel();
%!assert( swig_this(model) != 0);
printf("Model statistics for model \"%s\".\n", model.getObjectName());
% output number and names of all compartments
iMax = model.getCompartments().size();
printf("Number of Compartments: %d\n" , iMax);
printf("Compartments: \n");
for i = 0:iMax-1
compartment = model.getCompartment(i);
%!assert( swig_this(compartment) != 0);
printf("\t%s\n" , compartment.getObjectName());
endfor
% output number and names of all metabolites
iMax = model.getMetabolites().size();
printf("Number of Metabolites: %d\n" , iMax);
printf("Metabolites: \n");
for i = 0:iMax-1
metab = model.getMetabolite(i);
%!assert( swig_this(metab) != 0);
printf("\t%s\n", metab.getObjectName());
endfor
% output number and names of all reactions
iMax = model.getReactions().size();
printf("Number of Reactions: %d\n" , iMax);
printf("Reactions: \n");
for i = 0:iMax-1
reaction = model.getReaction(i);
%!assert( swig_this(reaction) != 0);
printf("\t%s\n", reaction.getObjectName());
endfor
else
error("Usage: example2 CPSFILE");
quit(1);
endif
| Octave | 4 | SzVarga/COPASI | copasi/bindings/octave/examples/example2.oct | [
"Artistic-2.0"
] |
#! parrot
# Copyright (C) 2009-2010, Parrot Foundation.
=head1 Builtins
Variour helper builtins.
=cut
.namespace []
.sub 'lc'
.param string arg
$S0 = downcase arg
.return ($S0)
.end
.sub 'uc'
.param string arg
$S0 = upcase arg
.return ($S0)
.end
.sub 'defined'
.param pmc thing
$I0 = defined thing
.return ($I0)
.end
.sub 'clone'
.param pmc what
$P0 = clone what
.return ($P0)
.end
.sub 'elements'
.param pmc p
$I0 = elements p
.return ($I0)
.end
.sub 'substr'
.param string orig
.param int from
.param int len
$S0 = substr orig, from, len
.return ($S0)
.end
.sub 'match'
.param string pattern
.param string subject
.local pmc recomp, resub, match, recache
load_bytecode 'PGE.pbc'
#hash cache mapping patterns to subs, avoiding unneeded recompilation
recache = get_hll_global ['Ops';'Op'], '%recache'
$I0 = isnull recache
if $I0 goto no_cache
$I0 = exists recache[pattern]
if $I0 goto found_re
goto no_re
no_cache:
recache = new ['Hash']
no_re:
recomp = compreg 'PGE::Perl6Regex'
resub = recomp(pattern)
recache[pattern] = resub
found_re:
resub = recache[pattern]
set_hll_global ['Ops';'Op'], '%recache', recache
match = resub(subject)
if match goto found_match
.return (0)
found_match:
.return (1)
.end
.sub 'die'
.param string why :optional
.param int has_why :opt_flag
die why
.end
.sub 'transcode_slurp'
.param string file
.local pmc pio
pio = new ['FileHandle']
pio.'open'(file)
$S0 = pio.'readall'()
pio.'close'()
($I0, $S1) = transcode( $S0, 'ascii' )
if $I0 goto return_result
($I0, $S1) = transcode( $S0, 'iso-8859-1' )
if $I0 goto return_result
$S1 = $S0
return_result:
.return ($S1)
.end
.sub 'transcode'
.param string source
.param string encoding
.local int result
push_eh transcoding_failure
$I0 = find_encoding encoding
$S0 = trans_encoding source, $I0
goto return_result
transcoding_failure:
result = 0
$S0 = source
return_result:
pop_eh
.return( result, $S0 )
.end
.sub 'split' :multi(_,_)
.param string splitter
.param string buf
$P0 = split splitter, buf
.return ($P0)
.end
.sub 'split' :multi('Sub', _)
.param pmc regex
.param pmc str
.param int count :optional
.param int has_count :opt_flag
.local pmc match
.local pmc retv
.local int start_pos
.local int end_pos
.local int zwm_start
$S0 = str
retv = new 'ResizableStringArray'
start_pos = 0
# per Perl 5's negative LIMIT behavior
unless has_count goto positive_count
if count < 1 goto done
positive_count:
match = regex($S0)
if match goto loop
retv.'push'($S0)
goto done
loop:
unless has_count goto skip_count
dec count
unless count < 1 goto skip_count
$S1 = substr $S0, start_pos
retv.'push'($S1)
goto done
next_zwm:
zwm_start = start_pos
inc_zwm:
inc start_pos
match = regex($S0, 'continue' => start_pos)
end_pos = match.'from'()
unless start_pos == end_pos goto inc_zwm
start_pos = zwm_start
end_pos -= start_pos
goto add_str
skip_count:
match = regex($S0, 'continue' => start_pos)
end_pos = match.'from'()
$I99 = match.'to'()
if $I99 == end_pos goto next_zwm
end_pos -= start_pos
add_str:
$S1 = substr $S0, start_pos, end_pos
retv.'push'($S1)
unless match goto done
$I0 = match.'to'()
if $I0 == start_pos goto zero_width
start_pos = $I0
goto loop
zero_width:
inc start_pos
goto loop
done:
.return(retv)
.end
.sub 'list'
.param pmc l :slurpy
.return (l)
.end
.sub 'sprintf'
.param string format
.param pmc args :slurpy
$S0 = sprintf format, args
.return($S0)
.end
.sub 'say'
.param string arg
say arg
.end
# Local Variables:
# mode: pir
# fill-column: 100
# End:
# vim: expandtab shiftwidth=4 ft=pir:
| Parrot Internal Representation | 5 | winnit-myself/Wifie | compilers/opsc/src/builtins.pir | [
"Artistic-2.0"
] |
sleep 5
t app appmode photo
sleep 3
t app button shutter P
sleep 6
t app button shutter R
| AGS Script | 1 | waltersgrey/autoexechack | ContinuousPhotoHacks/3SPS/10SecsShoots30Photos/autoexec.ash | [
"MIT"
] |
-module(petstore_pet_api).
-export([add_pet/2, add_pet/3,
delete_pet/2, delete_pet/3,
find_pets_by_status/2, find_pets_by_status/3,
find_pets_by_tags/2, find_pets_by_tags/3,
get_pet_by_id/2, get_pet_by_id/3,
update_pet/2, update_pet/3,
update_pet_with_form/2, update_pet_with_form/3,
upload_file/2, upload_file/3]).
-define(BASE_URL, "/v2").
%% @doc Add a new pet to the store
-spec add_pet(ctx:ctx(), petstore_pet:petstore_pet()) -> {ok, [], petstore_utils:response_info()} | {ok, hackney:client_ref()} | {error, term(), petstore_utils:response_info()}.
add_pet(Ctx, Body) ->
add_pet(Ctx, Body, #{}).
-spec add_pet(ctx:ctx(), petstore_pet:petstore_pet(), maps:map()) -> {ok, [], petstore_utils:response_info()} | {ok, hackney:client_ref()} | {error, term(), petstore_utils:response_info()}.
add_pet(Ctx, Body, Optional) ->
_OptionalParams = maps:get(params, Optional, #{}),
Cfg = maps:get(cfg, Optional, application:get_env(kuberl, config, #{})),
Method = post,
Path = ["/pet"],
QS = [],
Headers = [],
Body1 = Body,
ContentTypeHeader = petstore_utils:select_header_content_type([<<"application/json">>, <<"application/xml">>]),
Opts = maps:get(hackney_opts, Optional, []),
petstore_utils:request(Ctx, Method, [?BASE_URL, Path], QS, ContentTypeHeader++Headers, Body1, Opts, Cfg).
%% @doc Deletes a pet
-spec delete_pet(ctx:ctx(), integer()) -> {ok, [], petstore_utils:response_info()} | {ok, hackney:client_ref()} | {error, term(), petstore_utils:response_info()}.
delete_pet(Ctx, PetId) ->
delete_pet(Ctx, PetId, #{}).
-spec delete_pet(ctx:ctx(), integer(), maps:map()) -> {ok, [], petstore_utils:response_info()} | {ok, hackney:client_ref()} | {error, term(), petstore_utils:response_info()}.
delete_pet(Ctx, PetId, Optional) ->
_OptionalParams = maps:get(params, Optional, #{}),
Cfg = maps:get(cfg, Optional, application:get_env(kuberl, config, #{})),
Method = delete,
Path = ["/pet/", PetId, ""],
QS = [],
Headers = []++petstore_utils:optional_params(['api_key'], _OptionalParams),
Body1 = [],
ContentTypeHeader = petstore_utils:select_header_content_type([]),
Opts = maps:get(hackney_opts, Optional, []),
petstore_utils:request(Ctx, Method, [?BASE_URL, Path], QS, ContentTypeHeader++Headers, Body1, Opts, Cfg).
%% @doc Finds Pets by status
%% Multiple status values can be provided with comma separated strings
-spec find_pets_by_status(ctx:ctx(), list()) -> {ok, [petstore_pet:petstore_pet()], petstore_utils:response_info()} | {ok, hackney:client_ref()} | {error, term(), petstore_utils:response_info()}.
find_pets_by_status(Ctx, Status) ->
find_pets_by_status(Ctx, Status, #{}).
-spec find_pets_by_status(ctx:ctx(), list(), maps:map()) -> {ok, [petstore_pet:petstore_pet()], petstore_utils:response_info()} | {ok, hackney:client_ref()} | {error, term(), petstore_utils:response_info()}.
find_pets_by_status(Ctx, Status, Optional) ->
_OptionalParams = maps:get(params, Optional, #{}),
Cfg = maps:get(cfg, Optional, application:get_env(kuberl, config, #{})),
Method = get,
Path = ["/pet/findByStatus"],
QS = lists:flatten([[{<<"status">>, X} || X <- Status]])++petstore_utils:optional_params([], _OptionalParams),
Headers = [],
Body1 = [],
ContentTypeHeader = petstore_utils:select_header_content_type([]),
Opts = maps:get(hackney_opts, Optional, []),
petstore_utils:request(Ctx, Method, [?BASE_URL, Path], QS, ContentTypeHeader++Headers, Body1, Opts, Cfg).
%% @doc Finds Pets by tags
%% Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
-spec find_pets_by_tags(ctx:ctx(), list()) -> {ok, [petstore_pet:petstore_pet()], petstore_utils:response_info()} | {ok, hackney:client_ref()} | {error, term(), petstore_utils:response_info()}.
find_pets_by_tags(Ctx, Tags) ->
find_pets_by_tags(Ctx, Tags, #{}).
-spec find_pets_by_tags(ctx:ctx(), list(), maps:map()) -> {ok, [petstore_pet:petstore_pet()], petstore_utils:response_info()} | {ok, hackney:client_ref()} | {error, term(), petstore_utils:response_info()}.
find_pets_by_tags(Ctx, Tags, Optional) ->
_OptionalParams = maps:get(params, Optional, #{}),
Cfg = maps:get(cfg, Optional, application:get_env(kuberl, config, #{})),
Method = get,
Path = ["/pet/findByTags"],
QS = lists:flatten([[{<<"tags">>, X} || X <- Tags]])++petstore_utils:optional_params([], _OptionalParams),
Headers = [],
Body1 = [],
ContentTypeHeader = petstore_utils:select_header_content_type([]),
Opts = maps:get(hackney_opts, Optional, []),
petstore_utils:request(Ctx, Method, [?BASE_URL, Path], QS, ContentTypeHeader++Headers, Body1, Opts, Cfg).
%% @doc Find pet by ID
%% Returns a single pet
-spec get_pet_by_id(ctx:ctx(), integer()) -> {ok, petstore_pet:petstore_pet(), petstore_utils:response_info()} | {ok, hackney:client_ref()} | {error, term(), petstore_utils:response_info()}.
get_pet_by_id(Ctx, PetId) ->
get_pet_by_id(Ctx, PetId, #{}).
-spec get_pet_by_id(ctx:ctx(), integer(), maps:map()) -> {ok, petstore_pet:petstore_pet(), petstore_utils:response_info()} | {ok, hackney:client_ref()} | {error, term(), petstore_utils:response_info()}.
get_pet_by_id(Ctx, PetId, Optional) ->
_OptionalParams = maps:get(params, Optional, #{}),
Cfg = maps:get(cfg, Optional, application:get_env(kuberl, config, #{})),
Method = get,
Path = ["/pet/", PetId, ""],
QS = [],
Headers = [],
Body1 = [],
ContentTypeHeader = petstore_utils:select_header_content_type([]),
Opts = maps:get(hackney_opts, Optional, []),
petstore_utils:request(Ctx, Method, [?BASE_URL, Path], QS, ContentTypeHeader++Headers, Body1, Opts, Cfg).
%% @doc Update an existing pet
-spec update_pet(ctx:ctx(), petstore_pet:petstore_pet()) -> {ok, [], petstore_utils:response_info()} | {ok, hackney:client_ref()} | {error, term(), petstore_utils:response_info()}.
update_pet(Ctx, Body) ->
update_pet(Ctx, Body, #{}).
-spec update_pet(ctx:ctx(), petstore_pet:petstore_pet(), maps:map()) -> {ok, [], petstore_utils:response_info()} | {ok, hackney:client_ref()} | {error, term(), petstore_utils:response_info()}.
update_pet(Ctx, Body, Optional) ->
_OptionalParams = maps:get(params, Optional, #{}),
Cfg = maps:get(cfg, Optional, application:get_env(kuberl, config, #{})),
Method = put,
Path = ["/pet"],
QS = [],
Headers = [],
Body1 = Body,
ContentTypeHeader = petstore_utils:select_header_content_type([<<"application/json">>, <<"application/xml">>]),
Opts = maps:get(hackney_opts, Optional, []),
petstore_utils:request(Ctx, Method, [?BASE_URL, Path], QS, ContentTypeHeader++Headers, Body1, Opts, Cfg).
%% @doc Updates a pet in the store with form data
-spec update_pet_with_form(ctx:ctx(), integer()) -> {ok, [], petstore_utils:response_info()} | {ok, hackney:client_ref()} | {error, term(), petstore_utils:response_info()}.
update_pet_with_form(Ctx, PetId) ->
update_pet_with_form(Ctx, PetId, #{}).
-spec update_pet_with_form(ctx:ctx(), integer(), maps:map()) -> {ok, [], petstore_utils:response_info()} | {ok, hackney:client_ref()} | {error, term(), petstore_utils:response_info()}.
update_pet_with_form(Ctx, PetId, Optional) ->
_OptionalParams = maps:get(params, Optional, #{}),
Cfg = maps:get(cfg, Optional, application:get_env(kuberl, config, #{})),
Method = post,
Path = ["/pet/", PetId, ""],
QS = [],
Headers = [],
Body1 = {form, []++petstore_utils:optional_params(['name', 'status'], _OptionalParams)},
ContentTypeHeader = petstore_utils:select_header_content_type([<<"application/x-www-form-urlencoded">>]),
Opts = maps:get(hackney_opts, Optional, []),
petstore_utils:request(Ctx, Method, [?BASE_URL, Path], QS, ContentTypeHeader++Headers, Body1, Opts, Cfg).
%% @doc uploads an image
-spec upload_file(ctx:ctx(), integer()) -> {ok, petstore_api_response:petstore_api_response(), petstore_utils:response_info()} | {ok, hackney:client_ref()} | {error, term(), petstore_utils:response_info()}.
upload_file(Ctx, PetId) ->
upload_file(Ctx, PetId, #{}).
-spec upload_file(ctx:ctx(), integer(), maps:map()) -> {ok, petstore_api_response:petstore_api_response(), petstore_utils:response_info()} | {ok, hackney:client_ref()} | {error, term(), petstore_utils:response_info()}.
upload_file(Ctx, PetId, Optional) ->
_OptionalParams = maps:get(params, Optional, #{}),
Cfg = maps:get(cfg, Optional, application:get_env(kuberl, config, #{})),
Method = post,
Path = ["/pet/", PetId, "/uploadImage"],
QS = [],
Headers = [],
Body1 = {form, []++petstore_utils:optional_params(['additionalMetadata', 'file'], _OptionalParams)},
ContentTypeHeader = petstore_utils:select_header_content_type([<<"multipart/form-data">>]),
Opts = maps:get(hackney_opts, Optional, []),
petstore_utils:request(Ctx, Method, [?BASE_URL, Path], QS, ContentTypeHeader++Headers, Body1, Opts, Cfg).
| Erlang | 5 | derBiggi/swagger-codegen | samples/client/petstore/erlang-client/src/petstore_pet_api.erl | [
"Apache-2.0"
] |
table {
colo\r: \red;
}
| CSS | 0 | mengxy/swc | crates/swc_css_parser/tests/fixture/property/escaped/input.css | [
"Apache-2.0"
] |
0 code_t "proc*"
1 reg32_t "dword"
2 ptr(struct(0:ptr(struct(0:reg32_t,4:reg32_t,8:ptr(struct(0:reg32_t,4:reg32_t,8:ptr(TOP),12:ptr(TOP),16:reg32_t,20:array(uint32_t,15))),12:ptr(TOP),16:reg32_t,20:array(uint32_t,15))),4:ptr(struct(0:reg32_t,4:reg32_t,8:reg32_t,12:reg32_t,16:reg32_t,20:reg32_t,24:reg32_t,28:struct(0:reg32_t,4:reg32_t,8:reg32_t,12:reg32_t,16:reg32_t,20:reg32_t,24:reg32_t,28:array(reg8_t,80),108:reg32_t),140:reg32_t,144:reg32_t,148:reg32_t,152:reg32_t,156:reg32_t,160:reg32_t,164:reg32_t,168:reg32_t,172:reg32_t,176:reg32_t,180:reg32_t,184:reg32_t,188:reg32_t,192:reg32_t,196:reg32_t,200:reg32_t,204:array(reg8_t,512))))) "_EXCEPTION_POINTERS*"
3 ptr(struct(0:array(reg8_t,60),60:num32_t)) "StructFrag_379*"
4 ptr(struct(0:reg32_t,4:reg32_t,8:reg32_t,12:reg32_t)) "_EH4_SCOPETABLE*"
5 ptr(array(reg8_t,35)) "unknown_280*"
6 ptr(struct(0:array(reg8_t,60),60:reg32_t)) "StructFrag_190*"
7 ptr(TOP) "void*"
0 code_t "(_Inout_ _EXCEPTION_POINTERS* -ms-> LONG)*"
8 uint32_t "UINT"
1 reg32_t "HANDLE"
9 num32_t "LONG"
10 ptr(num32_t) "LPLONG"
11 ptr(array(reg8_t,288)) "unknown_2304*"
12 ptr(array(reg8_t,1040)) "unknown_8320*"
13 ptr(array(reg8_t,260)) "unknown_2080*"
14 ptr(array(reg8_t,520)) "unknown_4160*"
15 ptr(code_t) "proc**"
16 ptr(ptr(num8_t)) "char**"
17 ptr(struct(4:ptr(num8_t),8:ptr(num8_t),12:ptr(num8_t),16:ptr(num8_t),20:ptr(num8_t))) "Struct_18*"
18 union(code_t,num32_t) "Union_1"
19 ptr(ptr(reg32_t)) "dword**"
9 num32_t "int"
8 uint32_t "unsigned int"
20 ptr(array(reg8_t,10)) "unknown_80*"
21 ptr(reg32_t) "dword*"
22 num64_t "long long"
23 float64_t "double"
0 code_t "(void -> int)*"
24 ptr(uint32_t) "unsigned int*"
25 ptr(uint16_t) "wchar_t*"
26 ptr(struct(0:reg32_t,4:ptr(TOP),8:reg32_t)) "_SECURITY_ATTRIBUTES*"
27 ptr(struct(0:reg32_t,4:reg32_t)) "_FILETIME*"
28 ptr(union(num64_t,struct(0:reg32_t,4:num32_t))) "Union_0*"
29 ptr(num8_t) "char*"
8 uint32_t "size_t"
30 ptr(struct(0:ptr(num8_t),4:num32_t,8:ptr(num8_t),12:num32_t,16:num32_t,20:num32_t,24:num32_t,28:ptr(num8_t))) "FILE*"
31 num8_t "char"
32 ptr(struct(0:array(reg8_t,24980),24980:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))))) "StructFrag_24*"
0 code_t "(void -> void)*"
33 array(reg8_t,20) "unknown_160"
34 array(reg8_t,12) "unknown_96"
35 reg64_t "qword"
36 union(code_t,ptr(num8_t)) "Union_2"
29 ptr(num8_t) "char[]"
37 ptr(struct(0:union(code_t,ptr(num8_t)),48:ptr(TOP))) "Struct_367*"
38 array(reg8_t,52) "unknown_416"
39 array(reg8_t,32) "unknown_256"
40 union(ptr(struct(0:reg32_t,12:code_t,16:code_t)),ptr(struct(0:array(reg8_t,16),16:code_t))) "Union_4"
41 ptr(struct(64:num32_t,72:ptr(TOP),76:uint32_t,80:reg32_t,84:reg32_t)) "Struct_369*"
42 struct(0:reg32_t,12:code_t,16:code_t) "Struct_6"
43 ptr(ptr(ptr(num8_t))) "char***"
44 ptr(struct(4:ptr(struct(0:array(reg8_t,20),20:ptr(struct(0:reg32_t,4:ptr(TOP))))),8:reg32_t,24:ptr(TOP))) "Struct_380*"
45 ptr(struct(8:reg32_t,12:reg32_t,24:ptr(struct(0:array(reg8_t,12),12:reg32_t)))) "Struct_378*"
46 union(ptr(struct(0:array(reg8_t,24),24:ptr(TOP))),ptr(struct(8:reg32_t,12:reg32_t,24:ptr(struct(0:array(reg8_t,12),12:reg32_t))))) "Union_6"
47 ptr(struct(0:reg64_t,8:num32_t)) "StructFrag_192*"
48 ptr(struct(12:reg32_t,24:ptr(struct(0:array(reg8_t,12),12:reg32_t)))) "Struct_377*"
49 ptr(struct(0:reg32_t,4:ptr(struct(0:array(reg8_t,16),16:code_t)),24:ptr(TOP))) "Struct_381*"
50 ptr(struct(4:ptr(struct(0:array(reg8_t,20),20:ptr(struct(0:reg32_t,4:code_t)))),8:reg32_t,24:ptr(TOP))) "Struct_382*"
51 ptr(struct(0:reg32_t,4:ptr(struct(0:reg32_t,12:code_t,16:code_t)),12:reg32_t,16:reg32_t,20:reg32_t,24:ptr(struct(4:ptr(struct(0:reg32_t,12:code_t,16:code_t)),12:reg32_t)))) "Struct_379*"
52 ptr(struct(0:reg32_t,12:code_t,16:code_t)) "Struct_6*"
53 ptr(struct(0:array(reg8_t,48),48:ptr(reg32_t))) "StructFrag_195*"
54 reg16_t "word"
55 ptr(struct(4:ptr(struct(0:array(reg8_t,52),52:code_t)),8:reg32_t,24:ptr(TOP))) "Struct_384*"
56 ptr(struct(4:ptr(struct(0:array(reg8_t,56),56:code_t)),8:reg32_t,24:ptr(reg32_t))) "Struct_385*"
57 ptr(struct(0:array(reg8_t,24),24:ptr(reg32_t))) "StructFrag_14*"
21 ptr(reg32_t) "dword[]"
58 ptr(struct(4:ptr(struct(0:array(reg8_t,68),68:code_t)),8:reg32_t,24:ptr(TOP))) "Struct_389*"
59 ptr(struct(4:ptr(struct(0:array(reg8_t,64),64:code_t)),8:reg32_t,24:ptr(TOP))) "Struct_390*"
60 ptr(struct(4:ptr(struct(0:array(reg8_t,60),60:code_t)),8:reg32_t,24:ptr(TOP))) "Struct_391*"
10 ptr(num32_t) "int*"
61 union(ptr(num32_t),ptr(reg32_t)) "Union_9"
62 ptr(struct(0:reg32_t,4:reg32_t,8:reg32_t,16:float64_t,24:reg32_t,28:reg32_t,32:reg32_t,36:reg32_t,48:reg32_t,56:reg32_t,64:reg32_t,68:num32_t,84:reg32_t,88:reg32_t,92:reg32_t,96:reg32_t,100:reg32_t,108:reg32_t,112:reg32_t,116:reg32_t,120:reg32_t,124:reg32_t,144:reg32_t,148:reg32_t,152:reg32_t,156:reg32_t,160:reg32_t,164:reg32_t,168:reg32_t,172:reg32_t,176:reg32_t,180:reg32_t)) "Struct_29*"
63 ptr(struct(129296:reg32_t,129320:ptr(TOP))) "Struct_48*"
64 ptr(struct(368:reg32_t,372:reg32_t,376:reg32_t,384:float64_t,392:reg32_t,396:reg32_t,400:reg32_t,404:reg32_t,416:reg32_t,424:reg32_t,432:reg32_t,436:num32_t,452:reg32_t,456:reg32_t,460:reg32_t,464:reg32_t,468:reg32_t,476:reg32_t,480:reg32_t,484:reg32_t,488:reg32_t,492:reg32_t,512:reg32_t,516:reg32_t,520:reg32_t,524:reg32_t,528:reg32_t,532:reg32_t,536:reg32_t,540:reg32_t,544:reg32_t,548:reg32_t)) "Struct_453*"
65 ptr(struct(0:array(reg8_t,111928),111928:reg32_t)) "StructFrag_26*"
66 ptr(struct(0:array(reg8_t,552),552:ptr(struct(0:array(reg8_t,111928),111928:reg32_t)))) "StructFrag_27*"
67 union(ptr(struct(368:reg32_t,384:float64_t,452:reg32_t)),ptr(struct(368:reg32_t,372:reg32_t,376:reg32_t,384:float64_t,392:reg32_t,396:reg32_t,400:reg32_t,404:reg32_t,416:reg32_t,424:reg32_t,432:reg32_t,436:num32_t,452:reg32_t,456:reg32_t,460:reg32_t,464:reg32_t,468:reg32_t,476:reg32_t,480:reg32_t,484:reg32_t,488:reg32_t,492:reg32_t,512:reg32_t,516:reg32_t,520:reg32_t,524:reg32_t,528:reg32_t,532:reg32_t,536:reg32_t,540:reg32_t,544:reg32_t,548:reg32_t))) "Union_12"
68 ptr(struct(0:num32_t,4:num32_t,8:num32_t,16:float64_t,24:num32_t,28:num32_t,32:num32_t,36:num32_t,48:num32_t,56:num32_t,64:num32_t,68:num32_t,84:num32_t,88:num32_t,92:num32_t,96:num32_t,100:num32_t,108:num32_t,112:num32_t,116:num32_t,120:num32_t,124:num32_t,144:num32_t,148:num32_t,152:num32_t,156:num32_t,160:num32_t,164:num32_t,168:num32_t,172:num32_t,176:num32_t,180:num32_t)) "Struct_456*"
69 ptr(struct(4:reg32_t,16:reg32_t,20:reg32_t,24:ptr(struct(368:num32_t,372:num32_t,376:num32_t,384:float64_t,392:num32_t,396:num32_t,400:num32_t,404:num32_t,416:num32_t,424:num32_t,432:num32_t,436:num32_t,452:num32_t,456:num32_t,460:num32_t,464:num32_t,468:num32_t,476:num32_t,480:num32_t,484:num32_t,488:num32_t,492:num32_t,512:num32_t,516:num32_t,520:num32_t,524:num32_t,528:num32_t,532:num32_t,536:num32_t,540:num32_t,544:num32_t,548:num32_t)))) "Struct_457*"
70 ptr(ptr(TOP)) "void**"
71 ptr(struct(0:array(reg8_t,1104),1104:ptr(TOP))) "StructFrag_33*"
72 union(ptr(reg32_t),ptr(struct(0:array(reg8_t,122288),122288:reg32_t)),ptr(struct(0:array(reg8_t,122268),122268:reg32_t)),ptr(struct(0:array(reg8_t,179992),179992:reg32_t))) "Union_7"
10 ptr(num32_t) "int[]"
73 array(reg8_t,104) "unknown_832"
74 union(ptr(reg32_t),ptr(struct(0:array(reg8_t,1328),1328:reg32_t))) "Union_8"
75 ptr(struct(0:array(reg8_t,552),552:reg32_t)) "StructFrag_34*"
19 ptr(ptr(reg32_t)) "dword[]*"
76 ptr(struct(0:array(reg8_t,257744),257744:num8_t)) "StructFrag_39*"
77 ptr(struct(212:reg32_t,216:reg32_t,552:ptr(struct(0:array(reg8_t,257744),257744:num8_t)),568:reg32_t,572:reg32_t,576:reg32_t,580:reg32_t,648:reg32_t,652:reg32_t,656:reg32_t)) "Struct_92*"
78 ptr(struct(0:array(reg8_t,122288),122288:reg32_t)) "StructFrag_41*"
79 ptr(struct(0:array(reg8_t,552),552:ptr(struct(0:array(reg8_t,122288),122288:reg32_t)))) "StructFrag_42*"
80 ptr(struct(0:array(reg8_t,122268),122268:reg32_t)) "StructFrag_43*"
81 ptr(struct(0:array(reg8_t,552),552:ptr(struct(0:array(reg8_t,122268),122268:reg32_t)))) "StructFrag_44*"
82 ptr(struct(0:array(reg8_t,179992),179992:reg32_t)) "StructFrag_45*"
83 ptr(struct(0:array(reg8_t,552),552:ptr(struct(0:array(reg8_t,179992),179992:reg32_t)))) "StructFrag_46*"
84 ptr(struct(57272:num8_t,186384:ptr(TOP),186388:reg32_t,186396:reg32_t,186400:reg32_t,186404:reg32_t,186408:reg32_t)) "Struct_96*"
85 ptr(struct(0:array(reg8_t,552),552:ptr(struct(57272:num8_t,186384:ptr(TOP),186388:reg32_t,186396:reg32_t,186400:reg32_t,186404:reg32_t,186408:reg32_t)))) "StructFrag_392*"
86 ptr(struct(186412:ptr(TOP),186416:reg32_t)) "Struct_97*"
87 ptr(ptr(struct(0:ptr(TOP),4:reg32_t))) "Struct_98**"
88 ptr(struct(0:array(reg8_t,552),552:ptr(struct(186412:ptr(TOP),186416:reg32_t)))) "StructFrag_49*"
89 ptr(struct(552:ptr(reg32_t),644:reg32_t)) "Struct_100*"
90 ptr(struct(0:array(reg8_t,1328),1328:reg32_t)) "StructFrag_199*"
91 ptr(struct(0:array(reg8_t,68),68:ptr(TOP))) "StructFrag_154*"
92 union(ptr(num32_t),ptr(struct(0:reg32_t,8:reg32_t,12:reg32_t,16:reg32_t,20:reg32_t,44:reg32_t,68:ptr(TOP)))) "Union_14"
93 ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))) "StructFrag_19*"
94 ptr(struct(0:array(reg8_t,36),36:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))))) "StructFrag_23*"
95 ptr(struct(0:array(reg8_t,374596),374596:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))))) "StructFrag_306*"
96 ptr(struct(8208:ptr(reg16_t),8212:reg32_t,8216:reg32_t)) "Struct_73*"
97 union(ptr(reg32_t),ptr(struct(129296:reg32_t,129320:ptr(TOP))),ptr(struct(179536:float64_t,179544:float64_t,179552:float64_t,179560:float64_t,179568:float64_t,179576:float64_t,179584:float64_t,179592:float64_t,179600:float64_t,179608:float64_t,179616:float64_t,179624:float64_t,179632:float64_t,179640:float64_t,179648:float64_t,179656:float64_t)),ptr(struct(0:array(reg8_t,122288),122288:reg32_t)),ptr(struct(0:array(reg8_t,122268),122268:reg32_t)),ptr(struct(0:array(reg8_t,179992),179992:reg32_t)),ptr(struct(0:array(reg8_t,198192),198192:num8_t)),ptr(struct(0:ptr(TOP),168:code_t)),ptr(struct(57360:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),99044:ptr(array(reg8_t,1184)),99048:ptr(array(reg8_t,573)),99052:ptr(array(reg8_t,1184)),99056:ptr(array(reg8_t,573)),99060:ptr(array(reg8_t,1184)),99064:ptr(array(reg8_t,688)),99068:ptr(array(reg8_t,144)),99072:ptr(array(reg8_t,144)),111892:reg32_t,111900:reg32_t,128980:reg32_t,128984:reg32_t,128992:float64_t,129000:reg32_t,129012:reg32_t,129024:reg32_t,129032:reg32_t,129056:reg32_t,129060:reg32_t,129064:reg32_t,129088:reg32_t,129104:reg32_t,129120:reg32_t,129128:reg32_t,129132:reg32_t,131336:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),131348:reg32_t,131880:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),148552:reg32_t,148556:reg32_t,148568:float64_t,148576:float64_t,148584:float64_t,148592:float64_t,148656:reg32_t,148660:reg32_t,148752:float64_t,148776:reg32_t,148788:reg32_t,148860:reg32_t,148864:reg32_t,148868:reg32_t,148872:reg32_t,179464:float64_t,179472:float64_t,179480:float64_t,179488:float64_t,179504:float64_t,179512:float64_t,179520:reg32_t,179536:float64_t,179544:float64_t,179552:float64_t,179560:float64_t,179568:float64_t,179576:float64_t,179584:float64_t,179592:float64_t,179600:float64_t,179608:float64_t,179616:float64_t,179624:float64_t,179632:float64_t,179640:float64_t,179648:float64_t,179656:float64_t,179792:num32_t,179800:num32_t,179808:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),179836:reg32_t,179844:reg32_t,182188:reg32_t,186384:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),186396:reg32_t,186400:reg32_t,186404:reg32_t,186408:reg32_t,186412:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),186420:reg32_t,186424:num32_t,186436:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),186444:reg32_t,186452:reg32_t,186456:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),186460:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),186464:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),186468:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),186472:reg32_t,186476:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),186480:ptr(array(reg8_t,422)),186484:ptr(array(reg8_t,220)),186488:ptr(array(reg8_t,222)),186492:reg32_t,186496:ptr(array(reg8_t,817)),186500:ptr(array(reg8_t,1087)),186504:ptr(array(reg8_t,80)),186508:ptr(array(reg8_t,100)),187076:ptr(array(reg8_t,148)),187080:ptr(TOP),187084:ptr(array(reg8_t,29)),187088:ptr(array(reg8_t,26)),187092:reg32_t,187112:ptr(array(reg8_t,80)),187128:ptr(array(reg8_t,112)),187132:ptr(array(reg8_t,100)),187140:ptr(array(reg8_t,20)),187144:ptr(array(reg8_t,160)),187148:ptr(array(reg8_t,34)),187152:ptr(array(reg8_t,510)),187156:ptr(array(reg8_t,192)),187160:ptr(array(reg8_t,138)),187164:ptr(array(reg8_t,817)),187168:ptr(array(reg8_t,441)),187172:ptr(array(reg8_t,618)),187176:ptr(array(reg8_t,322)),187180:ptr(array(reg8_t,156)),187184:ptr(array(reg8_t,1087)),187188:ptr(array(reg8_t,591)),187192:ptr(array(reg8_t,827)),187196:ptr(array(reg8_t,435)),187200:ptr(array(reg8_t,213)),187204:ptr(array(reg8_t,1184)),187208:ptr(array(reg8_t,573)),187212:ptr(array(reg8_t,1184)),187216:ptr(array(reg8_t,573)),187220:ptr(array(reg8_t,688)),187224:ptr(array(reg8_t,110)),187236:ptr(array(reg8_t,33)),187240:ptr(array(reg8_t,32)),187244:ptr(array(reg8_t,726)),187248:ptr(array(reg8_t,144)),187252:ptr(array(reg8_t,144)),187256:ptr(array(reg8_t,220)),187260:ptr(array(reg8_t,222)),4294967292:ptr(TOP)))) "Union_29"
98 ptr(struct(0:num32_t,4:reg32_t,8:num32_t,12:num32_t,24:ptr(TOP),36:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),40:num32_t)) "Struct_33*"
99 ptr(struct(0:num32_t,4:num32_t,8:num32_t,12:num32_t,24:ptr(TOP),36:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),40:num32_t)) "Struct_502*"
100 ptr(struct(131280:num32_t,131284:num32_t,131288:num32_t,131292:num32_t,131304:ptr(TOP),131316:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),131320:num32_t)) "Struct_506*"
101 ptr(struct(128992:float64_t,129000:reg32_t,129032:reg32_t,129092:num32_t,148656:reg32_t,148728:num32_t,148732:num32_t,148736:num32_t,148752:float64_t,148828:num32_t,148832:num32_t,148836:num32_t,148840:num32_t)) "Struct_898*"
102 ptr(ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP)))) "StructFrag_19**"
103 ptr(struct(0:array(reg8_t,68),68:code_t)) "StructFrag_15*"
104 ptr(struct(0:array(reg8_t,374220),374220:code_t)) "StructFrag_144*"
105 array(reg8_t,80) "unknown_640"
106 ptr(struct(0:uint32_t,12:uint32_t,24:ptr(TOP),28:ptr(TOP),32:ptr(TOP))) "Struct_331*"
107 ptr(struct(0:uint32_t,8:uint32_t,12:uint32_t,20:uint32_t,24:ptr(TOP))) "Struct_436*"
108 int32_t "signed int"
109 ptr(struct(0:uint32_t,4:reg32_t,8:uint32_t,12:uint32_t,20:uint32_t,24:ptr(TOP),40:reg32_t)) "Struct_494*"
110 ptr(struct(0:num32_t,111880:reg32_t,111892:reg32_t,111968:reg32_t,122272:reg32_t,129000:reg32_t,129048:reg32_t,129056:reg32_t,129248:reg32_t,131344:reg32_t,131348:reg32_t,148544:int32_t,148560:reg32_t,148576:float64_t,148600:num32_t,148604:num32_t,148616:int32_t,148656:num32_t,148660:num32_t,148728:int32_t,148732:int32_t,148736:int32_t,148748:int32_t,148752:float64_t,148776:reg32_t,148808:reg32_t,148820:reg32_t,148824:reg32_t,148860:reg32_t,148864:reg32_t,148868:reg32_t,148872:reg32_t,148880:reg32_t,148884:reg32_t,179460:reg32_t)) "Struct_491*"
111 ptr(struct(0:reg64_t,8:code_t)) "StructFrag_35*"
112 union(ptr(reg32_t),ptr(struct(0:reg64_t,8:reg32_t))) "Union_15"
113 ptr(struct(5156:ptr(struct(0:array(reg8_t,32),32:num8_t)),5368:num8_t,5379:num8_t,5389:num8_t)) "Struct_310*"
114 ptr(struct(0:array(reg8_t,186364),186364:reg32_t)) "StructFrag_157*"
115 ptr(struct(0:array(reg8_t,48),48:reg32_t)) "StructFrag_50*"
116 ptr(struct(0:array(reg8_t,59568),59568:num8_t)) "StructFrag_38*"
117 ptr(struct(57272:num8_t,57273:num8_t,57274:num8_t,57275:num8_t,111896:num32_t,111900:num32_t,186384:ptr(TOP),186388:reg32_t,186392:reg32_t,186396:reg32_t,186400:reg32_t,186404:reg32_t,186408:reg32_t)) "Struct_916*"
118 ptr(struct(0:reg32_t,87:num8_t,12448:num32_t,12452:num32_t,12456:num32_t,12460:num32_t,12472:reg32_t,12808:reg32_t,12812:reg32_t,12824:reg32_t,12876:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),12884:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),12888:reg32_t,12892:reg32_t,12900:reg32_t,23176:reg32_t,23180:reg32_t,23184:reg32_t,23200:reg32_t,23220:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),23224:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),23228:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),23232:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),26528:reg32_t,26532:reg32_t)) "Struct_484*"
119 ptr(struct(129296:reg32_t,129300:reg32_t,129308:reg32_t,129320:ptr(TOP),129332:ptr(TOP),129336:reg32_t)) "Struct_486*"
61 union(ptr(num32_t),ptr(reg32_t)) "Union_18"
120 union(ptr(reg32_t),ptr(struct(0:reg32_t,4:reg32_t,8:reg32_t,16:float64_t,24:reg32_t,28:reg32_t,32:reg32_t,36:reg32_t,48:reg32_t,56:reg32_t,64:reg32_t,68:num32_t,84:reg32_t,88:reg32_t,92:reg32_t,96:reg32_t,100:reg32_t,108:reg32_t,112:reg32_t,116:reg32_t,120:reg32_t,124:reg32_t,144:reg32_t,148:reg32_t,152:reg32_t,156:reg32_t,160:reg32_t,164:reg32_t,168:reg32_t,172:reg32_t,176:reg32_t,180:reg32_t))) "Union_19"
121 union(ptr(struct(129296:reg32_t,129320:ptr(TOP))),ptr(struct(179536:float64_t,179544:float64_t,179552:float64_t,179560:float64_t,179568:float64_t,179576:float64_t,179584:float64_t,179592:float64_t,179600:float64_t,179608:float64_t,179616:float64_t,179624:float64_t,179632:float64_t,179640:float64_t,179648:float64_t,179656:float64_t)),ptr(struct(0:array(reg8_t,198192),198192:num8_t)),ptr(struct(57360:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),99044:ptr(array(reg8_t,1184)),99048:ptr(array(reg8_t,573)),99052:ptr(array(reg8_t,1184)),99056:ptr(array(reg8_t,573)),99060:ptr(array(reg8_t,1184)),99064:ptr(array(reg8_t,688)),99068:ptr(array(reg8_t,144)),99072:ptr(array(reg8_t,144)),111892:reg32_t,111900:reg32_t,128980:reg32_t,128984:reg32_t,128992:float64_t,129000:reg32_t,129012:reg32_t,129024:reg32_t,129032:reg32_t,129056:reg32_t,129060:reg32_t,129064:reg32_t,129088:reg32_t,129104:reg32_t,129120:reg32_t,129128:reg32_t,129132:reg32_t,131336:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),131348:reg32_t,131880:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),148552:reg32_t,148556:reg32_t,148568:float64_t,148576:float64_t,148584:float64_t,148592:float64_t,148656:reg32_t,148660:reg32_t,148752:float64_t,148776:reg32_t,148788:reg32_t,148860:reg32_t,148864:reg32_t,148868:reg32_t,148872:reg32_t,179464:float64_t,179472:float64_t,179480:float64_t,179488:float64_t,179504:float64_t,179512:float64_t,179520:reg32_t,179536:float64_t,179544:float64_t,179552:float64_t,179560:float64_t,179568:float64_t,179576:float64_t,179584:float64_t,179592:float64_t,179600:float64_t,179608:float64_t,179616:float64_t,179624:float64_t,179632:float64_t,179640:float64_t,179648:float64_t,179656:float64_t,179792:num32_t,179800:num32_t,179808:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),179836:reg32_t,179844:reg32_t,182188:reg32_t,186384:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),186396:reg32_t,186400:reg32_t,186404:reg32_t,186408:reg32_t,186412:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),186420:reg32_t,186424:num32_t,186436:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),186444:reg32_t,186452:reg32_t,186456:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),186460:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),186464:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),186468:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),186472:reg32_t,186476:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),186480:ptr(array(reg8_t,422)),186484:ptr(array(reg8_t,220)),186488:ptr(array(reg8_t,222)),186492:reg32_t,186496:ptr(array(reg8_t,817)),186500:ptr(array(reg8_t,1087)),186504:ptr(array(reg8_t,80)),186508:ptr(array(reg8_t,100)),187076:ptr(array(reg8_t,148)),187080:ptr(TOP),187084:ptr(array(reg8_t,29)),187088:ptr(array(reg8_t,26)),187092:reg32_t,187112:ptr(array(reg8_t,80)),187128:ptr(array(reg8_t,112)),187132:ptr(array(reg8_t,100)),187140:ptr(array(reg8_t,20)),187144:ptr(array(reg8_t,160)),187148:ptr(array(reg8_t,34)),187152:ptr(array(reg8_t,510)),187156:ptr(array(reg8_t,192)),187160:ptr(array(reg8_t,138)),187164:ptr(array(reg8_t,817)),187168:ptr(array(reg8_t,441)),187172:ptr(array(reg8_t,618)),187176:ptr(array(reg8_t,322)),187180:ptr(array(reg8_t,156)),187184:ptr(array(reg8_t,1087)),187188:ptr(array(reg8_t,591)),187192:ptr(array(reg8_t,827)),187196:ptr(array(reg8_t,435)),187200:ptr(array(reg8_t,213)),187204:ptr(array(reg8_t,1184)),187208:ptr(array(reg8_t,573)),187212:ptr(array(reg8_t,1184)),187216:ptr(array(reg8_t,573)),187220:ptr(array(reg8_t,688)),187224:ptr(array(reg8_t,110)),187236:ptr(array(reg8_t,33)),187240:ptr(array(reg8_t,32)),187244:ptr(array(reg8_t,726)),187248:ptr(array(reg8_t,144)),187252:ptr(array(reg8_t,144)),187256:ptr(array(reg8_t,220)),187260:ptr(array(reg8_t,222)),4294967292:ptr(TOP)))) "Union_16"
122 union(ptr(reg32_t),ptr(struct(0:array(reg8_t,16),16:num8_t))) "Union_17"
123 ptr(struct(0:ptr(TOP),4:ptr(TOP))) "Struct_582*"
124 ptr(reg16_t) "word[]"
125 union(ptr(ptr(TOP)),ptr(struct(0:ptr(TOP),4:ptr(TOP)))) "Union_27"
126 ptr(struct(24:ptr(TOP),32:reg32_t)) "Struct_236*"
127 ptr(num16_t) "short[]"
128 ptr(struct(28:ptr(TOP),32:reg32_t,36:reg32_t)) "Struct_586*"
129 ptr(int32_t) "signed int[]"
130 ptr(struct(0:code_t,12:code_t)) "Struct_584*"
131 ptr(struct(0:code_t,8:code_t,12:code_t)) "Struct_588*"
132 ptr(struct(24:ptr(TOP),32:reg32_t,56:reg16_t,58:reg16_t)) "Struct_337*"
133 ptr(struct(0:code_t,4:code_t,12:code_t)) "Struct_591*"
134 union(ptr(reg32_t),ptr(struct(0:array(reg8_t,374144),374144:reg32_t))) "Union_31"
135 ptr(ptr(struct(0:reg32_t,8:ptr(TOP)))) "Struct_217**"
136 ptr(struct(8:ptr(TOP),20:reg32_t)) "Struct_215*"
137 ptr(ptr(struct(8:ptr(TOP),20:reg32_t))) "Struct_215**"
138 ptr(struct(5172:reg32_t,5200:reg32_t,5360:ptr(TOP),5364:ptr(TOP))) "Struct_599*"
139 ptr(struct(5172:reg32_t,5348:ptr(reg32_t),5352:ptr(reg32_t),5356:ptr(reg32_t),5360:ptr(reg32_t),5364:ptr(reg32_t))) "Struct_600*"
140 union(ptr(struct(0:array(reg8_t,12676),12676:ptr(reg16_t))),ptr(struct(6340:reg32_t,6348:reg32_t,8100:ptr(TOP),8116:ptr(TOP))),ptr(struct(0:array(reg8_t,7456),7456:reg16_t))) "Union_33"
141 ptr(struct(0:array(reg8_t,25508),25508:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))))) "StructFrag_307*"
142 ptr(struct(12736:num32_t,12740:num32_t,12744:num32_t,12748:num32_t,12760:ptr(TOP),12772:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),12776:num32_t)) "Struct_603*"
143 union(ptr(reg32_t),ptr(struct(0:reg32_t,87:num8_t,12448:num32_t,12452:num32_t,12456:num32_t,12460:num32_t,12472:reg32_t,12808:reg32_t,12812:reg32_t,12824:reg32_t,12876:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),12884:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),12888:reg32_t,12892:reg32_t,12900:reg32_t,23176:reg32_t,23180:reg32_t,23184:reg32_t,23200:reg32_t,23220:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),23224:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),23228:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),23232:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),26528:reg32_t,26532:reg32_t))) "Union_35"
144 ptr(struct(12464:reg32_t,12468:reg32_t,12820:reg32_t,12824:reg32_t,12828:reg32_t,12832:reg32_t,12836:reg32_t,23192:reg32_t,23196:reg32_t,23204:reg32_t,23208:reg32_t,23212:reg32_t,23216:reg32_t,25374:reg16_t,25376:num8_t,26532:reg32_t,26552:ptr(array(reg8_t,51)),26556:ptr(array(reg8_t,1008)),26560:ptr(array(reg8_t,60)),26564:ptr(array(reg8_t,50)),26568:ptr(array(reg8_t,544)),26572:ptr(array(reg8_t,343)),26576:ptr(array(reg8_t,97)),26580:ptr(array(reg8_t,57)),26584:ptr(array(reg8_t,95)),26588:ptr(array(reg8_t,116)),26592:ptr(array(reg8_t,168)),26596:ptr(array(reg8_t,352)),26600:ptr(array(reg8_t,240)),26608:ptr(array(reg8_t,160)),26612:ptr(array(reg8_t,169)),26616:ptr(array(reg8_t,238)),26620:ptr(array(reg8_t,125)),26624:ptr(array(reg8_t,93)),26628:ptr(array(reg8_t,77)),26632:ptr(array(reg8_t,117)),26640:ptr(array(reg8_t,120)),26644:ptr(array(reg8_t,48)),26648:ptr(array(reg8_t,96)),26660:ptr(array(reg8_t,130)),26664:ptr(array(reg8_t,80)),26668:ptr(array(reg8_t,65)),26672:ptr(array(reg8_t,24)))) "Struct_832*"
145 ptr(struct(0:num32_t,4:num32_t,8:num32_t,12:num32_t,16:int32_t,20:num32_t,24:ptr(TOP),28:ptr(TOP),32:ptr(TOP),36:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),40:num32_t,44:uint32_t)) "Struct_604*"
146 ptr(struct(4:reg32_t,24:ptr(TOP),28:ptr(TOP),32:ptr(TOP))) "Struct_338*"
147 ptr(struct(0:reg32_t,4:ptr(TOP))) "StructFrag_303*"
148 ptr(struct(111892:num32_t,129056:num32_t,129248:reg32_t,131344:num32_t,148544:num32_t,148576:float64_t,148732:num32_t,148788:num32_t,148860:reg32_t,148864:reg32_t,179460:num32_t,179900:reg32_t)) "Struct_899*"
149 ptr(struct(111880:num32_t,111892:reg32_t,111928:num32_t,148548:num32_t,148568:float64_t,148576:float64_t,148584:float64_t,148792:reg32_t)) "Struct_656*"
150 ptr(struct(111880:num32_t,111892:reg32_t,129056:num32_t,129108:num32_t,129112:num32_t,129116:num32_t,148568:float64_t,148576:float64_t,148584:float64_t,148792:reg32_t,148864:num32_t,148872:num32_t)) "Struct_900*"
151 ptr(struct(131344:num32_t,148548:reg32_t,148608:reg32_t,148648:reg32_t,148652:reg32_t,148672:reg32_t,148676:reg32_t,148680:reg32_t,148684:reg32_t,148688:reg32_t,148692:reg32_t,148696:reg32_t,148700:reg32_t,148704:reg32_t,148708:num32_t,148712:num32_t,148716:num32_t,148720:num32_t,148724:num32_t,148728:reg32_t,148740:reg32_t,148752:float64_t)) "Struct_657*"
129 ptr(int32_t) "signed int*"
152 ptr(struct(111892:reg32_t,129056:reg32_t,129248:reg32_t,131344:num32_t,148544:int32_t,148576:float64_t,148728:int32_t,148732:int32_t,148752:float64_t,148776:num32_t,148860:reg32_t,148864:reg32_t,179900:reg32_t)) "Struct_658*"
153 union(ptr(struct(0:array(reg8_t,15848),15848:reg32_t)),ptr(ptr(TOP)),ptr(struct(0:array(reg8_t,14642),14642:reg16_t))) "Union_26"
154 ptr(struct(0:array(reg8_t,28),28:ptr(TOP))) "StructFrag_89*"
155 ptr(struct(0:array(reg8_t,84),84:code_t)) "StructFrag_159*"
156 union(ptr(num8_t),ptr(struct(0:array(reg8_t,16),16:reg32_t))) "Union_57"
157 ptr(struct(8:ptr(struct(0:array(reg8_t,16),16:reg32_t)),36:ptr(TOP),44:reg32_t,52:num32_t)) "Struct_730*"
158 ptr(struct(7948:reg32_t,8236:num32_t,8240:num32_t,49892:code_t)) "Struct_765*"
159 ptr(struct(0:ptr(TOP),164:code_t)) "Struct_136*"
160 ptr(struct(3560:ptr(num8_t),3588:ptr(TOP),3596:reg32_t,3604:num32_t)) "Struct_723*"
161 ptr(struct(6312:ptr(num8_t),6340:ptr(TOP),6348:reg32_t,6356:num32_t)) "Struct_727*"
162 ptr(struct(0:reg32_t,88:code_t)) "Struct_203*"
163 ptr(struct(0:array(reg8_t,6),6:num8_t)) "StructFrag_166*"
164 ptr(struct(2332:ptr(TOP),7876:reg32_t,7884:ptr(struct(0:array(reg8_t,536870911),4294967295:num8_t)),7928:reg32_t)) "Struct_917*"
165 ptr(struct(3588:reg32_t,3596:reg32_t,5184:reg16_t,5348:ptr(TOP),5364:ptr(TOP))) "Struct_554*"
166 array(reg8_t,16) "unknown_128"
167 union(ptr(struct(0:array(reg8_t,15848),15848:reg32_t)),ptr(ptr(TOP))) "Union_24"
168 ptr(struct(0:array(reg8_t,88),88:code_t)) "StructFrag_90*"
124 ptr(reg16_t) "word*"
169 ptr(struct(0:array(reg8_t,112),112:reg16_t)) "StructFrag_242*"
170 ptr(struct(0:array(reg8_t,44),44:code_t)) "StructFrag_128*"
171 ptr(struct(0:array(reg8_t,374196),374196:code_t)) "StructFrag_244*"
172 array(reg8_t,64) "unknown_512"
173 ptr(struct(0:array(reg8_t,99880),99880:ptr(struct(0:reg32_t,8:ptr(TOP))))) "StructFrag_221*"
173 ptr(struct(0:array(reg8_t,99880),99880:ptr(struct(0:reg32_t,8:ptr(TOP))))) "StructFrag_223*"
174 union(ptr(struct(0:array(reg8_t,99880),99880:reg32_t)),ptr(struct(0:array(reg8_t,99880),99880:ptr(struct(0:reg32_t,8:ptr(TOP)))))) "Union_21"
175 ptr(struct(4:ptr(struct(0:array(reg8_t,263052),263052:reg32_t)),8:ptr(struct(0:array(reg8_t,99880),99880:reg32_t)))) "Struct_523*"
176 union(ptr(reg32_t),ptr(struct(0:array(reg8_t,15848),15848:reg32_t))) "Union_22"
177 union(ptr(reg32_t),ptr(int32_t)) "Union_37"
178 ptr(array(reg8_t,48)) "unknown_384*"
179 ptr(struct(0:array(reg8_t,198192),198192:num8_t)) "StructFrag_22*"
180 ptr(struct(186448:reg32_t,186456:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),186460:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),186464:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),186468:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),186476:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))))) "Struct_62*"
181 ptr(struct(0:array(reg8_t,12676),12676:ptr(reg16_t))) "StructFrag_66*"
182 union(ptr(struct(0:ptr(TOP),152:code_t)),ptr(struct(0:ptr(TOP),164:code_t))) "Union_52"
183 ptr(struct(8:ptr(struct(0:array(reg8_t,16),16:num32_t)),36:ptr(TOP),44:reg32_t)) "Struct_138*"
184 ptr(struct(0:array(reg8_t,374144),374144:reg32_t)) "StructFrag_69*"
185 ptr(struct(125600:reg32_t,129048:reg32_t,129096:reg32_t,148732:int32_t,148820:reg32_t,179528:reg64_t,179656:float64_t)) "Struct_902*"
186 array(reg8_t,120) "unknown_960"
187 ptr(struct(0:array(reg8_t,179792),179792:reg32_t)) "StructFrag_82*"
188 ptr(struct(0:reg64_t,8:float64_t,16:float64_t,24:reg64_t,32:float64_t,40:array(reg8_t,88))) "Struct_635*"
189 ptr(struct(0:float64_t,8:float64_t,16:float64_t,24:float64_t,32:float64_t,40:float64_t,48:float64_t,56:float64_t,64:float64_t,72:float64_t,80:float64_t,88:float64_t,96:float64_t,104:float64_t,112:float64_t,120:float64_t)) "Struct_153*"
190 ptr(struct(8:float64_t,16:float64_t,24:float64_t,32:float64_t,40:float64_t,48:float64_t,56:float64_t,64:float64_t,72:float64_t,80:float64_t,88:float64_t,96:float64_t,104:float64_t,112:float64_t,120:float64_t)) "Struct_71*"
191 ptr(struct(0:array(reg8_t,179812),179812:ptr(struct(0:ptr(num8_t),4:num32_t,8:ptr(num8_t),12:num32_t,16:num32_t,20:num32_t,24:num32_t,28:ptr(num8_t))))) "StructFrag_162*"
192 ptr(struct(179536:float64_t,179544:float64_t,179552:float64_t,179560:float64_t,179568:float64_t,179576:float64_t,179584:float64_t,179592:float64_t,179600:float64_t,179608:float64_t,179616:float64_t,179624:float64_t,179632:float64_t,179640:float64_t,179648:float64_t,179656:float64_t)) "Struct_70*"
193 ptr(struct(0:array(reg8_t,179800),179800:ptr(reg32_t))) "StructFrag_153*"
194 ptr(struct(0:array(reg8_t,24),24:reg32_t)) "StructFrag_80*"
195 ptr(struct(0:array(reg8_t,187144),187144:code_t)) "StructFrag_163*"
196 ptr(struct(1628:ptr(TOP),7828:reg32_t)) "Struct_345*"
197 ptr(struct(7828:ptr(TOP),8220:reg32_t)) "Struct_636*"
198 ptr(struct(0:uint32_t,8:uint32_t,12:uint32_t,20:uint32_t,24:ptr(num8_t),28:ptr(num8_t),32:ptr(num8_t),36:reg32_t,40:uint32_t)) "Struct_441*"
199 ptr(struct(186488:code_t,186492:reg32_t,186500:reg32_t,187144:reg32_t)) "Struct_637*"
200 union(ptr(reg32_t),ptr(struct(0:array(reg8_t,12676),12676:ptr(reg16_t))),ptr(reg16_t)) "Union_10"
201 union(ptr(reg32_t),ptr(struct(0:ptr(TOP),168:code_t))) "Union_11"
202 num16_t "short"
203 ptr(struct(0:ptr(TOP),168:code_t)) "Struct_149*"
204 ptr(struct(111536:num32_t,125600:reg32_t,129048:reg32_t,129056:num32_t,129084:num32_t,129088:reg32_t,129248:reg32_t,148556:num32_t,148592:float64_t,148612:num32_t,148616:num32_t,148620:num32_t,148624:num32_t,148628:num32_t,148644:num32_t,148660:num32_t,148664:reg32_t,148728:num32_t,148732:num32_t,148736:num32_t,148820:int32_t,179448:reg32_t,179452:int32_t,179528:num32_t,179532:reg32_t,179560:float64_t,179656:float64_t,179792:reg32_t,187048:reg32_t,187056:reg32_t,187060:reg32_t,187064:float64_t)) "Struct_632*"
205 ptr(struct(0:array(reg8_t,24),24:float64_t)) "StructFrag_81*"
206 ptr(struct(125600:reg32_t,129048:reg32_t,129088:reg32_t,148612:int32_t,148620:reg32_t,148644:int32_t,148660:reg32_t,148728:reg32_t,148732:num32_t,148736:reg32_t,179528:int32_t,179532:reg32_t,179560:float64_t,179656:float64_t)) "Struct_901*"
207 array(reg8_t,88) "unknown_704"
208 ptr(struct(8:float64_t,16:float64_t)) "Struct_177*"
209 union(ptr(struct(0:array(reg8_t,258400),258400:ptr(TOP))),ptr(struct(129188:reg32_t,129192:reg32_t,129196:reg32_t,129200:reg32_t,129212:ptr(TOP),129228:reg32_t))) "Union_20"
210 ptr(struct(8:float64_t,16:float64_t,24:float64_t)) "Struct_182*"
211 array(reg8_t,128) "unknown_1024"
212 ptr(struct(0:array(reg8_t,258400),258400:ptr(TOP))) "StructFrag_84*"
213 ptr(float64_t) "double*"
214 ptr(struct(0:reg32_t,24:ptr(num8_t))) "Struct_346*"
215 ptr(struct(8:num32_t,20:reg32_t,24:ptr(TOP),28:ptr(TOP),32:ptr(TOP))) "Struct_638*"
216 ptr(struct(8:num32_t,20:num32_t,24:ptr(TOP),28:ptr(TOP),32:ptr(TOP))) "Struct_640*"
217 union(ptr(reg32_t),ptr(struct(0:uint32_t,8:uint32_t,12:uint32_t,20:uint32_t,24:ptr(num8_t),28:ptr(num8_t),32:ptr(num8_t),36:reg32_t,40:uint32_t))) "Union_38"
218 array(reg8_t,3) "unknown_24"
219 ptr(struct(0:uint32_t,4:reg32_t,8:uint32_t,12:uint32_t,20:uint32_t,24:reg32_t,28:reg32_t,32:reg32_t)) "Struct_642*"
220 ptr(array(reg8_t,32)) "unknown_256*"
221 ptr(array(reg8_t,16)) "unknown_128*"
222 union(ptr(num32_t),ptr(struct(0:reg64_t,8:reg32_t))) "Union_39"
223 ptr(reg64_t) "qword*"
224 ptr(array(reg8_t,20)) "unknown_160*"
225 ptr(struct(0:reg32_t,4:ptr(TOP),12:reg32_t)) "Struct_597*"
226 ptr(struct(0:num32_t,4:num32_t,8:ptr(TOP))) "Struct_682*"
227 ptr(struct(0:uint32_t,4:uint32_t,12:reg32_t,16:int32_t,20:ptr(TOP))) "Struct_713*"
228 ptr(struct(0:num32_t,4:int32_t,8:ptr(TOP))) "Struct_685*"
229 ptr(struct(128944:uint32_t,128948:uint32_t,128956:reg32_t,128960:int32_t,128964:ptr(TOP))) "Struct_715*"
230 ptr(struct(0:array(reg8_t,186476),186476:ptr(TOP))) "StructFrag_151*"
231 ptr(struct(0:array(reg8_t,301956),301956:reg32_t)) "StructFrag_150*"
232 ptr(struct(0:array(reg8_t,336),336:num32_t)) "StructFrag_317*"
233 ptr(array(reg8_t,1056)) "unknown_8448*"
234 ptr(array(reg8_t,56)) "unknown_448*"
235 ptr(struct(0:reg32_t,4:num32_t,8:ptr(TOP))) "Struct_319*"
236 ptr(struct(0:array(reg8_t,256),256:num8_t)) "StructFrag_383*"
237 ptr(struct(0:array(reg8_t,192),192:num8_t)) "StructFrag_382*"
238 union(ptr(reg32_t),ptr(struct(0:array(reg8_t,16),16:num8_t)),ptr(struct(12680:ptr(reg32_t),12888:ptr(struct(0:array(reg8_t,32),32:num8_t)),23152:code_t,23156:reg32_t,23160:reg32_t,23164:reg32_t,26628:code_t,26632:reg32_t,26636:reg32_t,26640:reg32_t,26644:code_t,26648:reg32_t,26652:reg32_t,26656:reg32_t)),ptr(struct(0:reg32_t,12680:ptr(num32_t),12792:reg32_t,12888:ptr(TOP),12896:reg32_t,23152:code_t,23156:code_t,23160:code_t,23164:code_t,23172:reg32_t,23176:reg32_t,26628:code_t,26632:code_t,26636:code_t,26640:code_t,26644:code_t,26648:code_t,26652:code_t,26656:code_t))) "Union_41"
239 ptr(struct(5156:ptr(num32_t),5389:num8_t,5390:num8_t,5391:num8_t,5392:num8_t)) "Struct_698*"
240 ptr(struct(12680:ptr(reg32_t),12888:ptr(struct(0:array(reg8_t,32),32:num8_t)),23152:code_t,23156:reg32_t,23160:reg32_t,23164:reg32_t,26628:code_t,26632:reg32_t,26636:reg32_t,26640:reg32_t,26644:code_t,26648:reg32_t,26652:reg32_t,26656:reg32_t)) "Struct_306*"
241 ptr(struct(0:reg32_t,12680:ptr(num32_t),12792:reg32_t,12888:ptr(TOP),12896:reg32_t,23152:code_t,23156:code_t,23160:code_t,23164:code_t,23172:reg32_t,23176:reg32_t,26628:code_t,26632:code_t,26636:code_t,26640:code_t,26644:code_t,26648:code_t,26652:code_t,26656:code_t)) "Struct_696*"
242 ptr(struct(5156:ptr(struct(0:array(reg8_t,32),32:num8_t)),5368:num8_t,5379:num8_t)) "Struct_691*"
243 ptr(struct(12680:ptr(num32_t),12788:reg32_t,12792:reg32_t,12840:reg32_t,12888:reg32_t,12896:reg32_t,12900:reg32_t,23152:code_t,23156:reg32_t,23160:reg32_t,23164:reg32_t,23168:int32_t,23172:reg32_t,23176:reg32_t,26628:code_t,26632:reg32_t,26636:reg32_t,26640:reg32_t,26644:code_t,26648:reg32_t,26652:reg32_t,26656:reg32_t)) "Struct_692*"
244 ptr(struct(12808:num32_t,12812:num32_t,12876:ptr(num8_t),12880:reg32_t,12888:ptr(struct(0:reg64_t,8:reg32_t)))) "Struct_699*"
245 ptr(struct(0:array(reg8_t,5412),5412:ptr(num8_t))) "StructFrag_141*"
246 union(ptr(num8_t),ptr(reg32_t),ptr(struct(0:array(reg8_t,122288),122288:reg32_t)),ptr(struct(0:array(reg8_t,122268),122268:reg32_t)),ptr(struct(0:array(reg8_t,179992),179992:reg32_t)),ptr(code_t),ptr(struct(51816:ptr(TOP),51832:reg16_t,56916:reg32_t,57108:num8_t))) "Union_43"
247 ptr(struct(2664:ptr(TOP),2668:ptr(TOP),2672:ptr(TOP),2676:ptr(TOP),2680:reg16_t,7764:reg32_t,7956:num8_t)) "Struct_704*"
248 ptr(struct(51816:ptr(TOP),51832:reg16_t,56916:reg32_t,57108:num8_t)) "Struct_703*"
249 ptr(struct(2664:ptr(TOP),2680:reg16_t,7764:reg32_t,7956:num8_t)) "Struct_127*"
250 union(ptr(num8_t),ptr(struct(51816:ptr(TOP),51832:reg16_t,56916:reg32_t,57108:num8_t))) "Union_42"
251 union(ptr(reg32_t),ptr(struct(0:array(reg8_t,12676),12676:ptr(reg16_t))),ptr(reg16_t),ptr(struct(0:array(reg8_t,15848),15848:reg32_t))) "Union_44"
252 union(ptr(struct(0:array(reg8_t,12676),12676:ptr(reg16_t))),ptr(struct(6340:reg32_t,6348:reg32_t,8100:ptr(TOP),8116:ptr(TOP)))) "Union_30"
253 ptr(struct(0:ptr(TOP),152:code_t)) "Struct_133*"
254 ptr(struct(0:array(reg8_t,14642),14642:reg16_t)) "StructFrag_124*"
255 union(ptr(struct(0:array(reg8_t,15848),15848:reg32_t)),ptr(struct(0:array(reg8_t,14642),14642:reg16_t))) "Union_23"
256 ptr(struct(0:array(reg8_t,7456),7456:reg16_t)) "StructFrag_115*"
257 ptr(struct(0:array(reg8_t,15848),15848:reg32_t)) "StructFrag_132*"
258 ptr(struct(0:reg32_t,8:ptr(TOP))) "Struct_217*"
259 ptr(struct(0:array(reg8_t,25276),25276:reg32_t)) "StructFrag_139*"
260 ptr(struct(0:uint32_t,8:reg32_t,12:uint32_t)) "Struct_533*"
261 union(ptr(code_t),ptr(struct(0:reg64_t,8:code_t))) "Union_40"
262 ptr(struct(0:array(reg8_t,56),56:reg32_t)) "StructFrag_37*"
263 ptr(struct(26660:code_t,26668:code_t)) "Struct_671*"
264 ptr(struct(187072:reg32_t,187076:ptr(array(reg8_t,148)),187080:ptr(array(reg8_t,32)),187084:ptr(array(reg8_t,32)),187088:ptr(array(reg8_t,33)),187092:ptr(array(reg8_t,32)),187096:ptr(array(reg8_t,80)),187100:ptr(array(reg8_t,80)),187104:ptr(array(reg8_t,112)),187108:ptr(array(reg8_t,128)),187112:ptr(array(reg8_t,192)),187116:ptr(array(reg8_t,112)),187120:ptr(array(reg8_t,112)),187124:ptr(array(reg8_t,112)),187128:ptr(array(reg8_t,160)),187132:ptr(array(reg8_t,160)),187136:ptr(array(reg8_t,48)),187140:ptr(array(reg8_t,20)),187144:ptr(array(reg8_t,160)),187148:ptr(array(reg8_t,37)),187152:ptr(array(reg8_t,510)),187156:ptr(array(reg8_t,192)),187160:ptr(array(reg8_t,138)),187164:ptr(array(reg8_t,817)),187168:ptr(array(reg8_t,441)),187172:ptr(array(reg8_t,618)),187176:ptr(array(reg8_t,322)),187180:ptr(array(reg8_t,156)),187184:ptr(array(reg8_t,1087)),187188:ptr(array(reg8_t,591)),187192:ptr(array(reg8_t,827)),187196:ptr(array(reg8_t,435)),187200:ptr(array(reg8_t,213)),187204:ptr(array(reg8_t,673)),187208:ptr(array(reg8_t,48)),187212:ptr(array(reg8_t,1184)),187216:ptr(array(reg8_t,573)),187220:ptr(array(reg8_t,688)),187224:ptr(array(reg8_t,110)),187228:ptr(array(reg8_t,48)),187232:ptr(array(reg8_t,32)),187236:ptr(array(reg8_t,48)),187240:ptr(array(reg8_t,32)),187244:ptr(array(reg8_t,726)),187248:ptr(array(reg8_t,144)),187252:ptr(array(reg8_t,128)),187256:ptr(array(reg8_t,222)),187260:ptr(array(reg8_t,222)))) "Struct_66*"
265 union(ptr(num32_t),ptr(reg32_t),ptr(struct(0:uint32_t,4:uint32_t,12:reg32_t,16:int32_t,20:ptr(TOP)))) "Union_45"
266 ptr(array(reg8_t,4608)) "unknown_36864*"
267 ptr(array(reg8_t,40)) "unknown_320*"
268 ptr(array(reg8_t,4000)) "unknown_32000*"
269 ptr(array(reg8_t,64)) "unknown_512*"
270 ptr(struct(26552:ptr(array(reg8_t,96)),26556:ptr(array(reg8_t,1008)),26560:ptr(array(reg8_t,96)),26564:ptr(array(reg8_t,50)),26568:ptr(array(reg8_t,544)),26572:ptr(array(reg8_t,343)),26576:ptr(array(reg8_t,160)),26580:ptr(array(reg8_t,80)),26584:ptr(array(reg8_t,95)),26588:ptr(array(reg8_t,116)),26592:ptr(array(reg8_t,168)),26596:ptr(array(reg8_t,352)),26600:ptr(array(reg8_t,240)),26604:ptr(array(reg8_t,240)),26608:ptr(array(reg8_t,160)),26612:ptr(array(reg8_t,169)),26616:ptr(array(reg8_t,238)),26620:ptr(array(reg8_t,125)),26624:ptr(array(reg8_t,93)),26628:ptr(array(reg8_t,77)),26632:ptr(array(reg8_t,117)),26636:ptr(array(reg8_t,77)),26640:ptr(array(reg8_t,120)),26644:ptr(array(reg8_t,48)),26648:ptr(array(reg8_t,96)),26652:ptr(array(reg8_t,48)),26656:ptr(array(reg8_t,96)),26660:ptr(array(reg8_t,130)),26664:ptr(array(reg8_t,80)),26668:ptr(array(reg8_t,65)),26672:ptr(array(reg8_t,24)))) "Struct_67*"
271 ptr(struct(0:num32_t,4:num32_t,8:uint32_t,12:num32_t,16:num32_t,20:uint32_t,24:ptr(num8_t),28:ptr(num8_t),32:ptr(num8_t),40:uint32_t)) "Struct_762*"
272 ptr(struct(0:num32_t,4:num32_t,8:uint32_t,24:ptr(num8_t),40:uint32_t)) "Struct_763*"
273 ptr(struct(8:reg32_t,24:ptr(TOP),28:ptr(TOP),32:ptr(TOP))) "Struct_349*"
274 ptr(struct(0:uint32_t,8:reg32_t,12:uint32_t,24:ptr(TOP),28:ptr(TOP),32:ptr(TOP))) "Struct_347*"
275 ptr(struct(8:uint32_t,24:ptr(num8_t),40:uint32_t)) "Struct_352*"
276 ptr(struct(0:uint32_t,8:reg32_t,24:ptr(TOP))) "Struct_351*"
277 ptr(struct(0:reg16_t,2:num8_t)) "StructFrag_171*"
278 ptr(struct(0:ptr(reg32_t),4:ptr(reg32_t))) "Struct_683*"
279 array(reg8_t,6) "unknown_48"
280 array(reg8_t,72) "unknown_576"
281 array(reg8_t,48) "unknown_384"
282 ptr(struct(0:reg32_t,4:num8_t)) "StructFrag_188*"
283 ptr(struct(0:array(reg8_t,8192),8192:num32_t)) "StructFrag_338*"
284 ptr(array(reg8_t,21)) "unknown_168*"
285 union(ptr(num8_t),ptr(struct(0:array(reg8_t,16),16:num32_t))) "Union_58"
286 ptr(struct(0:code_t,32:code_t)) "Struct_767*"
287 ptr(struct(7948:reg32_t,49892:code_t,49916:code_t)) "Struct_768*"
288 ptr(struct(7948:reg32_t,49900:code_t,49920:code_t)) "Struct_770*"
289 ptr(struct(0:array(reg8_t,7172),7172:ptr(reg16_t))) "StructFrag_63*"
290 union(ptr(struct(0:array(reg8_t,16),16:code_t)),ptr(struct(0:array(reg8_t,60),60:code_t))) "Union_54"
291 ptr(struct(0:array(reg8_t,20),20:code_t)) "StructFrag_64*"
292 ptr(struct(0:array(reg8_t,9096),9096:ptr(TOP))) "StructFrag_98*"
293 union(ptr(struct(0:array(reg8_t,7748),7748:num8_t)),ptr(struct(0:array(reg8_t,14600),14600:ptr(TOP)))) "Union_56"
294 ptr(struct(0:array(reg8_t,56),56:code_t)) "StructFrag_9*"
295 ptr(struct(0:array(reg8_t,16),16:code_t)) "StructFrag_1*"
296 ptr(struct(0:ptr(TOP),172:code_t)) "Struct_231*"
297 ptr(struct(36:ptr(TOP),40:reg32_t,44:num32_t)) "Struct_776*"
298 ptr(struct(3588:ptr(TOP),3592:reg32_t,3596:num32_t)) "Struct_778*"
299 ptr(struct(0:array(reg8_t,16),16:num32_t)) "StructFrag_67*"
300 ptr(struct(36:ptr(TOP),44:reg32_t)) "Struct_135*"
301 ptr(struct(12:code_t,16:code_t)) "Struct_774*"
302 union(ptr(struct(0:array(reg8_t,12),12:code_t)),ptr(struct(12:code_t,16:code_t))) "Union_60"
303 union(ptr(num8_t),ptr(struct(0:array(reg8_t,7456),7456:reg16_t)),ptr(struct(3588:reg32_t,3596:reg32_t,5184:reg16_t,5348:ptr(TOP),5364:ptr(TOP))),ptr(struct(0:array(reg8_t,7400),7400:reg16_t))) "Union_61"
304 union(ptr(reg32_t),ptr(struct(0:array(reg8_t,122288),122288:reg32_t)),ptr(struct(0:array(reg8_t,122268),122268:reg32_t)),ptr(struct(0:array(reg8_t,179992),179992:reg32_t)),ptr(struct(0:ptr(TOP),168:code_t))) "Union_28"
305 ptr(struct(128992:float64_t,129012:num32_t,179828:num32_t,179832:num32_t,179836:num32_t)) "Struct_911*"
306 ptr(struct(0:array(reg8_t,12616),12616:reg32_t)) "StructFrag_370*"
307 ptr(struct(0:array(reg8_t,6),6:reg16_t)) "StructFrag_175*"
308 ptr(struct(0:array(reg8_t,14536),14536:ptr(reg16_t))) "StructFrag_177*"
309 ptr(struct(0:array(reg8_t,12960),12960:reg16_t)) "StructFrag_127*"
310 union(ptr(struct(8104:ptr(TOP),8108:ptr(TOP),8116:ptr(TOP))),ptr(struct(0:array(reg8_t,15848),15848:reg32_t)),ptr(ptr(TOP)),ptr(struct(0:array(reg8_t,14642),14642:reg16_t)),ptr(struct(8100:ptr(TOP),8112:ptr(TOP),8116:ptr(TOP))),ptr(struct(7948:reg32_t,8236:num32_t,8240:num32_t,49900:code_t))) "Union_63"
311 ptr(struct(8100:ptr(TOP),8112:ptr(TOP),8116:ptr(TOP))) "Struct_228*"
312 ptr(struct(7948:reg32_t,8236:num32_t,8240:num32_t,49900:code_t)) "Struct_769*"
313 ptr(struct(3560:ptr(num8_t),3588:ptr(TOP),3604:num32_t)) "Struct_737*"
314 ptr(struct(8:ptr(num8_t),36:ptr(TOP),52:num32_t)) "Struct_739*"
315 ptr(struct(6312:ptr(num8_t),6340:ptr(TOP),6356:num32_t)) "Struct_741*"
316 ptr(struct(2708:reg32_t,2724:reg32_t,7864:reg32_t,7880:reg32_t,7920:num32_t,7924:num32_t,7948:reg32_t,8100:ptr(TOP),8112:ptr(TOP),8116:ptr(TOP),8236:num32_t,8240:num32_t,12676:ptr(reg16_t),49904:reg32_t,49912:code_t,4294967236:ptr(reg16_t))) "Struct_732*"
317 union(ptr(struct(0:array(reg8_t,12676),12676:ptr(reg16_t))),ptr(struct(2708:reg32_t,2724:reg32_t,7864:reg32_t,7880:reg32_t,7920:num32_t,7924:num32_t,7948:reg32_t,8100:ptr(TOP),8112:ptr(TOP),8116:ptr(TOP),8236:num32_t,8240:num32_t,12676:ptr(reg16_t),49904:reg32_t,49912:code_t,4294967236:ptr(reg16_t)))) "Union_46"
318 ptr(ptr(struct(0:array(reg8_t,12676),12676:ptr(reg16_t)))) "StructFrag_66**"
319 ptr(struct(8104:ptr(TOP),8108:ptr(TOP),8116:ptr(TOP))) "Struct_212*"
15 ptr(code_t) "proc*[]"
320 ptr(struct(0:array(reg8_t,14824),14824:reg16_t)) "StructFrag_122*"
321 ptr(struct(0:array(reg8_t,172),172:code_t)) "StructFrag_119*"
322 ptr(struct(0:array(reg8_t,76),76:code_t)) "StructFrag_105*"
323 ptr(struct(0:array(reg8_t,7748),7748:num8_t)) "StructFrag_100*"
324 ptr(struct(0:array(reg8_t,374228),374228:code_t)) "StructFrag_106*"
325 union(ptr(reg16_t),ptr(num16_t)) "Union_65"
326 union(ptr(reg32_t),ptr(struct(0:array(reg8_t,12676),12676:ptr(reg16_t))),ptr(reg16_t),ptr(struct(0:array(reg8_t,15848),15848:reg32_t)),ptr(ptr(TOP)),ptr(struct(0:array(reg8_t,14642),14642:reg16_t))) "Union_64"
327 ptr(struct(4:reg32_t,8:ptr(reg32_t),24:ptr(TOP),32:reg32_t,56:reg16_t)) "Struct_831*"
328 ptr(struct(1600:reg32_t,1604:ptr(reg16_t))) "Struct_734*"
329 ptr(struct(0:reg32_t,4:reg16_t)) "StructFrag_181*"
330 ptr(struct(0:reg32_t,4:ptr(reg16_t))) "Struct_735*"
331 ptr(struct(0:code_t,4:code_t,16:code_t)) "Struct_736*"
332 union(ptr(TOP),int32_t) "Union_25"
333 ptr(struct(0:array(reg8_t,7400),7400:reg16_t)) "StructFrag_75*"
334 ptr(struct(4:ptr(reg16_t),28:ptr(TOP))) "Struct_564*"
335 ptr(struct(44:code_t,76:code_t)) "Struct_565*"
336 union(ptr(num8_t),ptr(reg32_t),ptr(reg16_t)) "Union_66"
337 ptr(struct(0:ptr(reg16_t),28:ptr(TOP))) "Struct_355*"
338 ptr(struct(0:reg64_t,8:ptr(num8_t))) "StructFrag_178*"
339 ptr(struct(0:array(reg8_t,1024),1024:reg16_t)) "StructFrag_179*"
340 union(ptr(struct(0:array(reg8_t,7748),7748:num8_t)),ptr(struct(0:array(reg8_t,14824),14824:reg16_t)),ptr(struct(0:array(reg8_t,14600),14600:ptr(TOP)))) "Union_67"
341 union(ptr(struct(0:array(reg8_t,12676),12676:ptr(reg16_t))),ptr(struct(0:array(reg8_t,14600),14600:ptr(TOP)))) "Union_50"
342 ptr(struct(4536:ptr(TOP),4544:reg32_t,4568:num8_t,4570:reg16_t)) "Struct_264*"
343 ptr(struct(7288:ptr(TOP),7296:reg32_t,7320:num8_t,7322:reg16_t)) "Struct_856*"
344 union(ptr(num32_t),ptr(struct(0:array(reg8_t,12608),12608:ptr(TOP)))) "Union_68"
345 ptr(struct(0:array(reg8_t,12608),12608:ptr(TOP))) "StructFrag_184*"
346 ptr(ptr(num32_t)) "int[][]"
347 ptr(struct(0:array(reg8_t,152),152:code_t)) "StructFrag_62*"
348 array(reg8_t,60) "unknown_480"
349 array(reg8_t,1378) "unknown_11024"
350 array(reg8_t,1376) "unknown_11008"
147 ptr(struct(0:reg32_t,4:ptr(TOP))) "StructFrag_12*"
351 ptr(struct(7924:reg32_t,8100:ptr(TOP),8104:ptr(TOP),8108:ptr(TOP),8116:ptr(TOP),8236:reg32_t)) "Struct_754*"
352 ptr(struct(0:array(reg8_t,156),156:code_t)) "StructFrag_186*"
353 ptr(struct(6304:ptr(TOP),6352:reg32_t)) "Struct_749*"
354 ptr(struct(152:code_t,156:code_t)) "Struct_746*"
355 ptr(struct(0:array(reg8_t,12656),12656:reg32_t)) "StructFrag_185*"
356 union(ptr(struct(0:array(reg8_t,152),152:code_t)),ptr(struct(152:code_t,156:code_t))) "Union_48"
357 ptr(struct(7924:reg32_t,8100:ptr(TOP),8116:ptr(TOP),8236:reg32_t)) "Struct_759*"
358 union(ptr(struct(0:array(reg8_t,7172),7172:ptr(reg16_t))),ptr(struct(0:array(reg8_t,9096),9096:ptr(TOP)))) "Union_49"
359 ptr(struct(0:array(reg8_t,14600),14600:ptr(TOP))) "StructFrag_365*"
360 union(ptr(struct(0:array(reg8_t,16),16:code_t)),ptr(struct(0:array(reg8_t,56),56:code_t))) "Union_51"
361 ptr(struct(0:array(reg8_t,12904),12904:reg16_t)) "StructFrag_375*"
362 ptr(struct(0:array(reg8_t,9320),9320:reg16_t)) "StructFrag_118*"
363 union(ptr(reg32_t),ptr(struct(0:uint32_t,8:uint32_t,12:uint32_t,20:uint32_t,24:ptr(num8_t),28:ptr(num8_t),32:ptr(num8_t),36:reg32_t,40:uint32_t)),ptr(struct(0:uint32_t,8:reg32_t,12:uint32_t))) "Union_70"
364 array(reg8_t,24) "unknown_192"
365 array(reg8_t,9) "unknown_72"
366 array(reg8_t,15) "unknown_120"
367 array(reg8_t,18) "unknown_144"
368 array(reg8_t,21) "unknown_168"
369 ptr(struct(8:ptr(reg32_t),24:ptr(TOP),28:reg32_t,32:reg32_t,56:reg16_t,58:reg16_t)) "Struct_839*"
370 ptr(struct(5432:code_t,5444:ptr(struct(0:array(reg8_t,24),24:code_t)))) "Struct_840*"
371 ptr(struct(24:ptr(TOP),32:reg32_t,56:num8_t)) "Struct_144*"
372 ptr(struct(5428:code_t,5444:ptr(struct(0:array(reg8_t,28),28:code_t)))) "Struct_841*"
373 ptr(struct(4596:ptr(TOP),4604:reg32_t,4628:reg16_t)) "Struct_861*"
374 ptr(array(reg8_t,1234108)) "unknown_9872864*"
375 ptr(struct(0:reg32_t,28:ptr(TOP),32:reg32_t,36:reg32_t)) "Struct_896*"
376 ptr(struct(0:reg64_t,8:reg32_t)) "StructFrag_4*"
377 ptr(struct(4:ptr(TOP),8:ptr(TOP),12:ptr(TOP),20:ptr(TOP))) "Struct_870*"
378 ptr(struct(0:ptr(TOP),20:ptr(TOP),48:reg32_t)) "Struct_358*"
379 ptr(struct(4:ptr(TOP),16:ptr(TOP),24:reg16_t)) "Struct_359*"
380 ptr(struct(7948:reg32_t,49916:code_t)) "Struct_131*"
381 ptr(struct(7948:reg32_t,49920:code_t)) "Struct_226*"
382 union(ptr(num8_t),ptr(struct(0:array(reg8_t,3),3:num8_t))) "Union_71"
383 ptr(struct(0:reg8_t,1:num8_t)) "StructFrag_182*"
384 union(ptr(num8_t),ptr(struct(0:array(reg8_t,6),6:num8_t))) "Union_72"
385 union(ptr(num8_t),ptr(struct(0:reg16_t,2:num8_t))) "Union_73"
386 ptr(struct(0:array(reg8_t,3),3:num8_t)) "StructFrag_158*"
387 ptr(struct(0:ptr(struct(0:array(reg8_t,3),3:num8_t)),4:ptr(struct(0:array(reg8_t,3),3:num8_t)),8:ptr(struct(0:array(reg8_t,3),3:num8_t)),12:ptr(struct(0:array(reg8_t,3),3:num8_t)))) "Struct_873*"
388 ptr(struct(0:ptr(struct(0:array(reg8_t,6),6:num8_t)),4:ptr(struct(0:array(reg8_t,6),6:num8_t)),8:ptr(struct(0:array(reg8_t,6),6:num8_t)),12:ptr(struct(0:array(reg8_t,6),6:num8_t)))) "Struct_874*"
389 ptr(struct(0:ptr(struct(0:reg16_t,2:num8_t)),4:ptr(struct(0:reg16_t,2:num8_t)),8:ptr(struct(0:reg16_t,2:num8_t)),12:ptr(struct(0:reg16_t,2:num8_t)))) "Struct_875*"
390 ptr(struct(4520:reg32_t,4524:reg32_t,4548:ptr(reg32_t),4552:reg32_t,4556:reg32_t)) "Struct_877*"
391 ptr(struct(0:ptr(TOP),1:num8_t,4:ptr(TOP),8:ptr(TOP),12:ptr(TOP),4294967294:num8_t,4294967295:num8_t)) "Struct_925*"
392 ptr(struct(5112:reg32_t,5128:ptr(num32_t),5172:reg32_t)) "Struct_363*"
393 ptr(struct(5124:reg32_t,5132:ptr(TOP),5136:ptr(num8_t),5176:reg32_t)) "Struct_364*"
394 ptr(struct(3560:reg32_t,3564:reg32_t,3588:ptr(reg32_t),3592:reg32_t,3596:reg32_t)) "Struct_879*"
395 ptr(struct(16:code_t,20:code_t)) "Struct_880*"
396 ptr(struct(0:code_t,4:code_t)) "Struct_891*"
397 ptr(struct(0:reg32_t,4:reg32_t,16:code_t)) "Struct_882*"
398 ptr(struct(0:reg32_t,4:reg32_t,56:code_t)) "Struct_892*"
399 union(ptr(struct(0:array(reg8_t,9096),9096:ptr(TOP))),ptr(struct(0:array(reg8_t,9320),9320:reg16_t))) "Union_75"
400 union(ptr(reg32_t),ptr(struct(0:array(reg8_t,7172),7172:ptr(reg16_t)))) "Union_74"
401 ptr(array(reg8_t,3)) "unknown_24*"
0 code_t "PTOP_LEVEL_EXCEPTION_FILTER"
402 ptr(struct(0:reg32_t,8:reg32_t,12:reg32_t,16:reg32_t,20:reg32_t,44:reg32_t,68:ptr(TOP))) "Struct_1*"
403 ptr(struct(0:num32_t,8:ptr(TOP),12:uint32_t,16:reg32_t,20:reg32_t)) "Struct_370*"
404 union(ptr(reg32_t),ptr(struct(0:num32_t,8:ptr(TOP),12:uint32_t,16:reg32_t,20:reg32_t))) "Union_5"
405 ptr(struct(0:array(reg8_t,20),20:ptr(struct(0:reg32_t,4:code_t)))) "StructFrag_194*"
406 ptr(struct(4:ptr(struct(0:reg32_t,12:code_t,16:code_t)),12:reg32_t)) "Struct_21*"
407 ptr(struct(0:array(reg8_t,52),52:code_t)) "StructFrag_8*"
408 ptr(struct(72:ptr(TOP),76:uint32_t)) "Struct_387*"
409 union(ptr(struct(0:array(reg8_t,12),12:ptr(num8_t))),ptr(struct(368:num32_t,372:num32_t,376:num32_t,384:float64_t,392:num32_t,396:num32_t,400:num32_t,404:num32_t,416:num32_t,424:num32_t,432:num32_t,436:num32_t,452:num32_t,456:num32_t,460:num32_t,464:num32_t,468:num32_t,476:num32_t,480:num32_t,484:num32_t,488:num32_t,492:num32_t,512:num32_t,516:num32_t,520:num32_t,524:num32_t,528:num32_t,532:num32_t,536:num32_t,540:num32_t,544:num32_t,548:num32_t))) "Union_13"
410 ptr(struct(57360:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),99044:ptr(array(reg8_t,1184)),99048:ptr(array(reg8_t,573)),99052:ptr(array(reg8_t,1184)),99056:ptr(array(reg8_t,573)),99060:ptr(array(reg8_t,1184)),99064:ptr(array(reg8_t,688)),99068:ptr(array(reg8_t,144)),99072:ptr(array(reg8_t,144)),111892:reg32_t,111900:reg32_t,128980:reg32_t,128984:reg32_t,128992:float64_t,129000:reg32_t,129012:reg32_t,129024:reg32_t,129032:reg32_t,129056:reg32_t,129060:reg32_t,129064:reg32_t,129088:reg32_t,129104:reg32_t,129120:reg32_t,129128:reg32_t,129132:reg32_t,131336:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),131348:reg32_t,131880:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),148552:reg32_t,148556:reg32_t,148568:float64_t,148576:float64_t,148584:float64_t,148592:float64_t,148656:reg32_t,148660:reg32_t,148752:float64_t,148776:reg32_t,148788:reg32_t,148860:reg32_t,148864:reg32_t,148868:reg32_t,148872:reg32_t,179464:float64_t,179472:float64_t,179480:float64_t,179488:float64_t,179504:float64_t,179512:float64_t,179520:reg32_t,179536:float64_t,179544:float64_t,179552:float64_t,179560:float64_t,179568:float64_t,179576:float64_t,179584:float64_t,179592:float64_t,179600:float64_t,179608:float64_t,179616:float64_t,179624:float64_t,179632:float64_t,179640:float64_t,179648:float64_t,179656:float64_t,179792:num32_t,179800:num32_t,179808:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),179836:reg32_t,179844:reg32_t,182188:reg32_t,186384:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),186396:reg32_t,186400:reg32_t,186404:reg32_t,186408:reg32_t,186412:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),186420:reg32_t,186424:num32_t,186436:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),186444:reg32_t,186452:reg32_t,186456:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),186460:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),186464:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),186468:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),186472:reg32_t,186476:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),186480:ptr(array(reg8_t,422)),186484:ptr(array(reg8_t,220)),186488:ptr(array(reg8_t,222)),186492:reg32_t,186496:ptr(array(reg8_t,817)),186500:ptr(array(reg8_t,1087)),186504:ptr(array(reg8_t,80)),186508:ptr(array(reg8_t,100)),187076:ptr(array(reg8_t,148)),187080:ptr(TOP),187084:ptr(array(reg8_t,29)),187088:ptr(array(reg8_t,26)),187092:reg32_t,187112:ptr(array(reg8_t,80)),187128:ptr(array(reg8_t,112)),187132:ptr(array(reg8_t,100)),187140:ptr(array(reg8_t,20)),187144:ptr(array(reg8_t,160)),187148:ptr(array(reg8_t,34)),187152:ptr(array(reg8_t,510)),187156:ptr(array(reg8_t,192)),187160:ptr(array(reg8_t,138)),187164:ptr(array(reg8_t,817)),187168:ptr(array(reg8_t,441)),187172:ptr(array(reg8_t,618)),187176:ptr(array(reg8_t,322)),187180:ptr(array(reg8_t,156)),187184:ptr(array(reg8_t,1087)),187188:ptr(array(reg8_t,591)),187192:ptr(array(reg8_t,827)),187196:ptr(array(reg8_t,435)),187200:ptr(array(reg8_t,213)),187204:ptr(array(reg8_t,1184)),187208:ptr(array(reg8_t,573)),187212:ptr(array(reg8_t,1184)),187216:ptr(array(reg8_t,573)),187220:ptr(array(reg8_t,688)),187224:ptr(array(reg8_t,110)),187236:ptr(array(reg8_t,33)),187240:ptr(array(reg8_t,32)),187244:ptr(array(reg8_t,726)),187248:ptr(array(reg8_t,144)),187252:ptr(array(reg8_t,144)),187256:ptr(array(reg8_t,220)),187260:ptr(array(reg8_t,222)),4294967292:ptr(TOP))) "Struct_461*"
411 ptr(struct(0:array(reg8_t,16),16:num8_t)) "StructFrag_20*"
412 ptr(struct(0:ptr(TOP),4:reg32_t)) "Struct_98*"
413 ptr(array(reg8_t,422)) "unknown_3376*"
414 ptr(struct(0:uint32_t,8:uint32_t,12:uint32_t,20:uint32_t,24:reg32_t)) "Struct_422*"
415 ptr(array(reg8_t,817)) "unknown_6536*"
416 ptr(array(reg8_t,222)) "unknown_1776*"
417 union(ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),ptr(struct(129296:reg32_t,129320:ptr(TOP))),ptr(struct(179536:float64_t,179544:float64_t,179552:float64_t,179560:float64_t,179568:float64_t,179576:float64_t,179584:float64_t,179592:float64_t,179600:float64_t,179608:float64_t,179616:float64_t,179624:float64_t,179632:float64_t,179640:float64_t,179648:float64_t,179656:float64_t)),ptr(struct(0:array(reg8_t,198192),198192:num8_t)),ptr(struct(57360:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),99044:ptr(array(reg8_t,1184)),99048:ptr(array(reg8_t,573)),99052:ptr(array(reg8_t,1184)),99056:ptr(array(reg8_t,573)),99060:ptr(array(reg8_t,1184)),99064:ptr(array(reg8_t,688)),99068:ptr(array(reg8_t,144)),99072:ptr(array(reg8_t,144)),111892:reg32_t,111900:reg32_t,128980:reg32_t,128984:reg32_t,128992:float64_t,129000:reg32_t,129012:reg32_t,129024:reg32_t,129032:reg32_t,129056:reg32_t,129060:reg32_t,129064:reg32_t,129088:reg32_t,129104:reg32_t,129120:reg32_t,129128:reg32_t,129132:reg32_t,131336:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),131348:reg32_t,131880:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),148552:reg32_t,148556:reg32_t,148568:float64_t,148576:float64_t,148584:float64_t,148592:float64_t,148656:reg32_t,148660:reg32_t,148752:float64_t,148776:reg32_t,148788:reg32_t,148860:reg32_t,148864:reg32_t,148868:reg32_t,148872:reg32_t,179464:float64_t,179472:float64_t,179480:float64_t,179488:float64_t,179504:float64_t,179512:float64_t,179520:reg32_t,179536:float64_t,179544:float64_t,179552:float64_t,179560:float64_t,179568:float64_t,179576:float64_t,179584:float64_t,179592:float64_t,179600:float64_t,179608:float64_t,179616:float64_t,179624:float64_t,179632:float64_t,179640:float64_t,179648:float64_t,179656:float64_t,179792:num32_t,179800:num32_t,179808:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),179836:reg32_t,179844:reg32_t,182188:reg32_t,186384:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),186396:reg32_t,186400:reg32_t,186404:reg32_t,186408:reg32_t,186412:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),186420:reg32_t,186424:num32_t,186436:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),186444:reg32_t,186452:reg32_t,186456:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),186460:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),186464:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),186468:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),186472:reg32_t,186476:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),186480:ptr(array(reg8_t,422)),186484:ptr(array(reg8_t,220)),186488:ptr(array(reg8_t,222)),186492:reg32_t,186496:ptr(array(reg8_t,817)),186500:ptr(array(reg8_t,1087)),186504:ptr(array(reg8_t,80)),186508:ptr(array(reg8_t,100)),187076:ptr(array(reg8_t,148)),187080:ptr(TOP),187084:ptr(array(reg8_t,29)),187088:ptr(array(reg8_t,26)),187092:reg32_t,187112:ptr(array(reg8_t,80)),187128:ptr(array(reg8_t,112)),187132:ptr(array(reg8_t,100)),187140:ptr(array(reg8_t,20)),187144:ptr(array(reg8_t,160)),187148:ptr(array(reg8_t,34)),187152:ptr(array(reg8_t,510)),187156:ptr(array(reg8_t,192)),187160:ptr(array(reg8_t,138)),187164:ptr(array(reg8_t,817)),187168:ptr(array(reg8_t,441)),187172:ptr(array(reg8_t,618)),187176:ptr(array(reg8_t,322)),187180:ptr(array(reg8_t,156)),187184:ptr(array(reg8_t,1087)),187188:ptr(array(reg8_t,591)),187192:ptr(array(reg8_t,827)),187196:ptr(array(reg8_t,435)),187200:ptr(array(reg8_t,213)),187204:ptr(array(reg8_t,1184)),187208:ptr(array(reg8_t,573)),187212:ptr(array(reg8_t,1184)),187216:ptr(array(reg8_t,573)),187220:ptr(array(reg8_t,688)),187224:ptr(array(reg8_t,110)),187236:ptr(array(reg8_t,33)),187240:ptr(array(reg8_t,32)),187244:ptr(array(reg8_t,726)),187248:ptr(array(reg8_t,144)),187252:ptr(array(reg8_t,144)),187256:ptr(array(reg8_t,220)),187260:ptr(array(reg8_t,222)),4294967292:ptr(TOP)))) "Union_36"
418 ptr(struct(0:array(reg8_t,7144),7144:reg32_t)) "StructFrag_309*"
21 ptr(reg32_t) "LPHANDLE"
419 ptr(struct(0:array(reg8_t,536870910),4294967294:num8_t)) "StructFrag_165*"
420 ptr(struct(0:reg64_t,8:reg16_t)) "StructFrag_279*"
421 ptr(struct(0:array(reg8_t,32),32:num8_t)) "StructFrag_142*"
422 ptr(struct(0:ptr(TOP),4:ptr(TOP),8:ptr(TOP),12:reg16_t,4294967292:ptr(reg16_t))) "Struct_708*"
423 ptr(struct(0:ptr(TOP),4:ptr(TOP),8:ptr(TOP),12:reg16_t,4294967292:ptr(TOP))) "Struct_710*"
424 union(ptr(code_t),ptr(struct(0:code_t,32:code_t))) "Union_59"
425 ptr(struct(4:code_t,32:code_t)) "Struct_771*"
426 ptr(struct(0:array(reg8_t,32),32:reg32_t)) "StructFrag_358*"
427 union(ptr(num32_t),ptr(struct(0:reg32_t,4:uint32_t)),ptr(struct(0:reg64_t,8:reg16_t))) "Union_62"
428 ptr(struct(0:reg32_t,4:uint32_t)) "StructFrag_276*"
429 ptr(struct(0:num8_t,1:num8_t,2:num8_t,3:num8_t,4:ptr(struct(0:ptr(TOP),1:num8_t,4:ptr(TOP),8:ptr(TOP),12:ptr(TOP),4294967294:num8_t,4294967295:num8_t)),8:ptr(struct(0:ptr(TOP),1:num8_t,4:ptr(TOP),8:ptr(TOP),12:ptr(TOP),4294967294:num8_t,4294967295:num8_t)),12:ptr(struct(0:ptr(TOP),1:num8_t,4:ptr(TOP),8:ptr(TOP),12:ptr(TOP),4294967294:num8_t,4294967295:num8_t)))) "Struct_924*"
430 ptr(struct(0:reg32_t,4:num32_t)) "StructFrag_290*"
430 ptr(struct(0:reg32_t,4:num32_t)) "StructFrag_191*"
431 ptr(struct(0:array(reg8_t,8388632),8388632:reg16_t)) "StructFrag_390*"
432 ptr(struct(0:array(reg8_t,24),24:reg16_t)) "StructFrag_283*"
433 union(int32_t,uint32_t) "Union_76"
434 ptr(struct(0:reg32_t,4:reg32_t,8:ptr(struct(0:reg32_t,4:reg32_t,8:ptr(TOP),12:ptr(TOP),16:reg32_t,20:array(uint32_t,15))),12:ptr(TOP),16:reg32_t,20:array(uint32_t,15))) "EXCEPTION_RECORD*"
435 ptr(array(reg8_t,256)) "unknown_2048*"
24 ptr(uint32_t) "unsigned int[]"
436 ptr(struct(0:array(reg8_t,36),36:uint32_t)) "StructFrag_415*"
9 num32_t "errno_t"
437 ptr(struct(12:reg32_t,16:reg32_t,20:reg32_t,24:reg32_t,32:reg32_t,44:reg32_t,56:reg32_t,60:ptr(TOP),64:num32_t,112:reg32_t,116:reg32_t)) "Struct_897*"
438 ptr(struct(0:array(reg8_t,16),16:union(num64_t,struct(0:reg32_t,4:num32_t)))) "StructFrag_155*"
439 ptr(struct(0:array(reg8_t,57272),57272:num8_t)) "StructFrag_156*"
440 ptr(struct(0:ptr(TOP),48:reg32_t)) "Struct_598*"
0 code_t "(FILE* -> int)*"
441 ptr(struct(4:reg32_t,16:reg32_t,20:reg32_t,24:union(ptr(struct(0:array(reg8_t,12),12:ptr(num8_t))),ptr(struct(368:num32_t,372:num32_t,376:num32_t,384:float64_t,392:num32_t,396:num32_t,400:num32_t,404:num32_t,416:num32_t,424:num32_t,432:num32_t,436:num32_t,452:num32_t,456:num32_t,460:num32_t,464:num32_t,468:num32_t,476:num32_t,480:num32_t,484:num32_t,488:num32_t,492:num32_t,512:num32_t,516:num32_t,520:num32_t,524:num32_t,528:num32_t,532:num32_t,536:num32_t,540:num32_t,544:num32_t,548:num32_t))))) "Struct_463*"
0 code_t "(_In_ void*,size_t,size_t,FILE* -> size_t)*"
0 code_t "(_Inout_ LARGE_INTEGER* -ms-> BOOL)*"
442 ptr(struct(0:array(reg8_t,536870911),4294967295:num8_t)) "StructFrag_93*"
0 code_t "(HANDLE,DWORD -ms-> DWORD)*"
443 ptr(struct(0:array(reg8_t,536870896),4294967280:reg32_t)) "StructFrag_189*"
444 ptr(struct(4294967272:ptr(TOP),4294967288:code_t,4294967292:code_t)) "Struct_936*"
0 code_t "(_In_ char*,_In_ char* -> FILE*)*"
0 code_t "(HANDLE -ms-> BOOL)*"
445 ptr(struct(0:ptr(TOP),4:ptr(TOP),48:reg32_t)) "Struct_821*"
446 ptr(struct(0:array(reg8_t,12),12:ptr(num8_t))) "StructFrag_18*"
447 ptr(struct(129012:reg32_t,148592:float64_t,179844:reg32_t)) "Struct_904*"
448 ptr(struct(0:code_t,4:code_t,8:code_t)) "Struct_906*"
449 ptr(struct(6308:reg32_t,6312:ptr(reg32_t),6328:ptr(TOP),6336:reg32_t,6360:reg16_t)) "Struct_834*"
450 ptr(struct(168:code_t,172:code_t)) "Struct_806*"
451 ptr(struct(4:reg32_t,28:ptr(TOP))) "Struct_10*"
452 ptr(struct(0:array(reg8_t,12),12:reg32_t)) "StructFrag_2*"
453 ptr(struct(0:reg32_t,4:code_t)) "StructFrag_7*"
454 ptr(struct(0:array(reg8_t,60),60:code_t)) "StructFrag_17*"
455 ptr(struct(16:uint32_t,24:uint32_t,28:uint32_t,36:uint32_t,40:reg32_t)) "Struct_424*"
456 ptr(array(reg8_t,80)) "unknown_640*"
457 ptr(array(reg8_t,1087)) "unknown_8696*"
458 ptr(struct(0:ptr(struct(0:num32_t,4:int32_t,8:ptr(TOP))),4:reg32_t)) "Struct_686*"
459 ptr(struct(0:array(reg8_t,6192),6192:num8_t)) "StructFrag_36*"
460 ptr(struct(0:array(reg8_t,536870904),4294967288:reg32_t)) "StructFrag_225*"
372 ptr(struct(5428:code_t,5444:ptr(struct(0:array(reg8_t,28),28:code_t)))) "Struct_842*"
461 ptr(struct(0:array(reg8_t,24),24:code_t)) "StructFrag_385*"
462 ptr(struct(20:code_t,24:code_t)) "Struct_838*"
463 ptr(struct(20:code_t,24:code_t,28:code_t)) "Struct_858*"
464 ptr(struct(24:ptr(TOP),32:reg32_t,56:reg16_t)) "Struct_261*"
465 ptr(struct(0:ptr(reg16_t),60:ptr(reg16_t),120:ptr(reg16_t),4294967236:ptr(reg16_t))) "Struct_888*"
466 ptr(struct(4:num32_t,8:num32_t,28:ptr(TOP))) "Struct_937*"
467 ptr(struct(0:num32_t,4:num32_t,8:num32_t,16:float64_t,24:num32_t,28:num32_t,32:num32_t,36:num32_t,40:reg32_t,44:reg32_t,48:num32_t,52:reg32_t,56:num32_t,60:reg32_t,64:num32_t,68:num32_t,72:uint32_t,76:uint32_t,80:reg32_t,84:num32_t,88:num32_t,92:num32_t,96:num32_t,100:num32_t,104:reg32_t,108:num32_t,112:num32_t,116:num32_t,120:num32_t,124:num32_t,144:num32_t,148:num32_t,152:num32_t,156:num32_t,160:num32_t,164:num32_t,168:num32_t,172:num32_t,176:num32_t,180:num32_t)) "Struct_466*"
468 ptr(struct(1628:ptr(TOP),1632:reg32_t,1636:reg32_t,6328:ptr(reg32_t),6332:reg32_t,6336:num32_t,6360:reg16_t,6362:reg16_t)) "Struct_614*"
469 ptr(struct(129088:reg32_t,179560:float64_t)) "Struct_633*"
470 union(ptr(ptr(TOP)),ptr(struct(0:ptr(TOP),4:ptr(TOP),48:reg32_t))) "Union_69"
471 ptr(struct(24:ptr(TOP),28:reg32_t,32:num32_t,44:num32_t,56:reg16_t,58:reg16_t)) "Struct_867*"
0 code_t "(_In_ char* -> int)*"
0 code_t "(_In_ char*,_Inout_ char**,int -> int)*"
0 code_t "(_Inout_ void* -> void)*"
472 ptr(struct(8:num32_t,20:num32_t,24:ptr(num8_t),28:ptr(num8_t),32:ptr(num8_t))) "Struct_430*"
473 ptr(struct(8:ptr(num8_t),36:ptr(TOP),44:reg32_t,52:num32_t)) "Struct_729*"
474 ptr(struct(0:num32_t,8:num32_t,24:ptr(TOP),28:ptr(struct(0:reg64_t,8:reg32_t)))) "Struct_644*"
475 ptr(ptr(struct(0:array(reg8_t,6),6:reg16_t))) "StructFrag_175**"
476 ptr(struct(28:ptr(TOP),36:reg32_t,60:reg16_t)) "Struct_864*"
477 ptr(struct(0:array(reg8_t,536870908),4294967292:reg32_t)) "StructFrag_216*"
478 ptr(array(reg8_t,264)) "unknown_2112*"
479 ptr(struct(129012:reg32_t,148592:float64_t,148828:reg32_t,148832:reg32_t,148864:reg32_t,179844:reg32_t,187064:float64_t)) "Struct_903*"
480 ptr(struct(0:int32_t,4:int32_t,8:int32_t,12:num32_t,16:num32_t,20:num32_t,24:ptr(num32_t),28:ptr(num32_t))) "Struct_646*"
481 ptr(struct(0:array(reg8_t,64),64:code_t)) "StructFrag_16*"
482 ptr(array(reg8_t,100)) "unknown_800*"
483 ptr(array(reg8_t,220)) "unknown_1760*"
484 ptr(array(reg8_t,140)) "unknown_1120*"
485 ptr(struct(0:array(reg8_t,28),28:code_t)) "StructFrag_386*"
486 ptr(struct(3556:ptr(reg16_t),3616:ptr(reg16_t),3676:ptr(reg16_t),3736:ptr(reg16_t))) "Struct_890*"
487 ptr(array(reg8_t,44)) "unknown_352*"
488 ptr(array(reg8_t,512)) "unknown_4096*"
489 ptr(array(reg8_t,1024)) "unknown_8192*"
490 ptr(array(reg8_t,19)) "unknown_152*"
491 ptr(struct(0:array(reg8_t,5372),5372:num8_t)) "StructFrag_145*"
492 ptr(struct(0:ptr(reg32_t),4:reg32_t,8:reg32_t,16:num32_t,4294967268:ptr(struct(0:array(reg8_t,16),16:num32_t)),4294967272:reg32_t)) "Struct_775*"
493 ptr(ptr(reg16_t)) "word[]*"
0 code_t "(_In_ char* -> char*)*"
494 ptr(struct(0:ptr(reg32_t),4:reg32_t,8:reg32_t,4294967268:reg32_t,4294967272:reg32_t)) "Struct_876*"
495 ptr(struct(57273:num8_t,111896:reg32_t,186384:ptr(TOP))) "Struct_328*"
496 ptr(struct(187280:num32_t,187284:reg32_t,187288:num32_t,187292:num32_t,187304:ptr(TOP),187316:ptr(struct(0:array(reg8_t,536870908),4294967292:ptr(TOP))),187320:num32_t)) "Struct_489*"
497 ptr(struct(111768:reg32_t,111896:num32_t,111900:num32_t,111956:reg32_t,111964:ptr(TOP),111968:reg32_t,129248:reg32_t,129252:reg32_t,148548:reg32_t,148600:reg32_t,148604:reg32_t,148608:reg32_t,148636:reg32_t,179864:reg32_t)) "Struct_512*"
498 ptr(struct(111768:reg32_t,111896:num32_t,111900:num32_t,111956:reg32_t,111960:reg32_t,111964:ptr(TOP),111968:reg32_t,122272:reg32_t,129248:reg32_t,129252:reg32_t,148548:reg32_t,148600:reg32_t,148604:reg32_t,148608:reg32_t,148636:reg32_t,148660:reg32_t,148748:reg32_t,179864:reg32_t,179944:reg32_t,179948:reg32_t,179952:reg32_t,179956:reg32_t,179960:reg32_t,179964:reg32_t,179968:reg32_t,179972:reg32_t)) "Struct_513*"
499 ptr(struct(0:array(reg8_t,374688),374688:reg32_t)) "StructFrag_51*"
500 array(reg8_t,33) "unknown_264"
501 array(reg8_t,31) "unknown_248"
502 array(reg8_t,55) "unknown_440"
503 array(reg8_t,63) "unknown_504"
504 array(reg8_t,5) "unknown_40"
505 array(reg8_t,28) "unknown_224"
506 array(reg8_t,215) "unknown_1720"
507 array(reg8_t,89) "unknown_712"
508 array(reg8_t,143) "unknown_1144"
509 array(reg8_t,65) "unknown_520"
510 array(reg8_t,43) "unknown_344"
511 array(reg8_t,58) "unknown_464"
512 array(reg8_t,30) "unknown_240"
513 array(reg8_t,47) "unknown_376"
514 array(reg8_t,83) "unknown_664"
515 array(reg8_t,95) "unknown_760"
516 array(reg8_t,44) "unknown_352"
517 array(reg8_t,10) "unknown_80"
518 array(reg8_t,50) "unknown_400"
519 array(reg8_t,68) "unknown_544"
520 array(reg8_t,19) "unknown_152"
521 array(reg8_t,14) "unknown_112"
522 array(reg8_t,319) "unknown_2552"
523 array(reg8_t,11) "unknown_88"
524 array(ptr(TOP),10) "void*[10]"
525 array(reg8_t,39) "unknown_312"
526 array(reg8_t,27) "unknown_216"
527 array(reg8_t,23) "unknown_184"
528 array(reg8_t,7) "unknown_56"
529 array(reg8_t,36) "unknown_288"
530 array(reg8_t,76) "unknown_608"
531 array(reg8_t,29) "unknown_232"
532 array(reg8_t,26) "unknown_208"
533 array(reg8_t,86) "unknown_688"
534 array(reg8_t,34) "unknown_272"
535 array(reg8_t,38) "unknown_304"
536 array(reg8_t,112) "unknown_896"
537 array(reg8_t,42) "unknown_336"
538 array(reg8_t,243) "unknown_1944"
539 array(reg8_t,79) "unknown_632"
540 array(reg8_t,13) "unknown_104"
541 array(reg8_t,25) "unknown_200"
542 array(reg8_t,56) "unknown_448"
543 array(reg8_t,125) "unknown_1000"
544 array(reg8_t,161) "unknown_1288"
545 array(reg8_t,122) "unknown_976"
546 array(reg8_t,45) "unknown_360"
547 array(reg8_t,113) "unknown_904"
548 array(ptr(TOP),12) "void*[12]"
549 array(reg8_t,107) "unknown_856"
550 array(reg8_t,17) "unknown_136"
551 array(reg8_t,92) "unknown_736"
552 array(reg8_t,96) "unknown_768"
553 array(ptr(TOP),3) "void*[3]"
554 array(ptr(TOP),4) "void*[4]"
555 array(reg8_t,51) "unknown_408"
556 array(reg8_t,61) "unknown_488"
557 array(reg8_t,22) "unknown_176"
558 array(reg8_t,282) "unknown_2256"
559 array(reg8_t,46) "unknown_368"
560 array(reg8_t,87) "unknown_696"
561 array(reg8_t,35) "unknown_280"
562 array(reg8_t,77) "unknown_616"
563 array(reg8_t,54) "unknown_432"
564 array(reg8_t,111) "unknown_888"
565 array(reg8_t,93) "unknown_744"
566 array(reg8_t,70) "unknown_560"
567 array(reg8_t,49) "unknown_392"
568 array(reg8_t,53) "unknown_424"
569 array(reg8_t,59) "unknown_472"
570 array(reg8_t,94) "unknown_752"
571 array(reg8_t,84) "unknown_672"
572 array(reg8_t,82) "unknown_656"
573 array(reg8_t,37) "unknown_296"
574 array(reg32_t,4) "dword[4]"
575 array(reg8_t,102) "unknown_816"
576 array(reg8_t,67) "unknown_536"
577 array(reg8_t,90) "unknown_720"
578 array(reg8_t,71) "unknown_568"
579 array(reg8_t,41) "unknown_328"
580 array(reg8_t,69) "unknown_552"
581 array(reg8_t,194) "unknown_1552"
582 array(reg8_t,144) "unknown_1152"
583 array(reg8_t,127) "unknown_1016"
584 array(reg8_t,74) "unknown_592"
585 array(reg8_t,135) "unknown_1080"
586 array(reg8_t,151) "unknown_1208"
587 array(reg32_t,6) "dword[6]"
588 array(reg8_t,40) "unknown_320"
589 array(reg8_t,152) "unknown_1216"
590 array(reg8_t,232) "unknown_1856"
591 array(reg8_t,57) "unknown_456"
592 array(reg8_t,131) "unknown_1048"
593 array(reg8_t,246) "unknown_1968"
594 array(reg8_t,323) "unknown_2584"
595 array(reg8_t,208) "unknown_1664"
596 array(reg8_t,364) "unknown_2912"
597 array(reg8_t,146) "unknown_1168"
598 array(reg8_t,196) "unknown_1568"
599 array(reg8_t,226) "unknown_1808"
600 array(reg8_t,228) "unknown_1824"
601 array(reg8_t,234) "unknown_1872"
602 array(reg8_t,236) "unknown_1888"
603 array(reg8_t,62) "unknown_496"
604 array(reg8_t,422) "unknown_3376"
605 array(reg8_t,163) "unknown_1304"
606 array(reg8_t,139) "unknown_1112"
607 array(reg8_t,73) "unknown_584"
608 array(reg8_t,106) "unknown_848"
609 array(reg8_t,150) "unknown_1200"
610 array(reg8_t,78) "unknown_624"
611 array(reg8_t,405) "unknown_3240"
612 array(reg8_t,130) "unknown_1040"
613 array(reg8_t,153) "unknown_1224"
614 array(reg8_t,134) "unknown_1072"
615 array(reg8_t,160) "unknown_1280"
616 array(reg8_t,214) "unknown_1712"
617 array(reg8_t,202) "unknown_1616"
618 array(reg8_t,162) "unknown_1296"
619 array(reg8_t,179) "unknown_1432"
620 array(reg8_t,209) "unknown_1672"
621 array(reg8_t,222) "unknown_1776"
622 array(reg8_t,98) "unknown_784"
623 array(reg8_t,526) "unknown_4208"
624 array(reg8_t,157) "unknown_1256"
625 array(reg8_t,167) "unknown_1336"
626 array(reg8_t,200) "unknown_1600"
627 array(reg8_t,220) "unknown_1760"
628 array(reg8_t,174) "unknown_1392"
629 array(reg8_t,148) "unknown_1184"
630 array(reg8_t,164) "unknown_1312"
631 array(reg8_t,652) "unknown_5216"
632 array(reg8_t,656) "unknown_5248"
633 array(reg8_t,192) "unknown_1536"
634 array(reg8_t,409) "unknown_3272"
635 array(reg8_t,75) "unknown_600"
636 array(reg8_t,85) "unknown_680"
637 array(reg8_t,91) "unknown_728"
638 array(reg8_t,115) "unknown_920"
639 array(reg8_t,165) "unknown_1320"
640 array(reg8_t,410) "unknown_3280"
641 array(reg8_t,186) "unknown_1488"
642 array(reg8_t,188) "unknown_1504"
643 array(reg8_t,193) "unknown_1544"
644 array(reg8_t,183) "unknown_1464"
645 array(reg8_t,231) "unknown_1848"
646 array(reg8_t,303) "unknown_2424"
647 array(reg8_t,419) "unknown_3352"
648 array(reg8_t,173) "unknown_1384"
649 array(reg8_t,435) "unknown_3480"
650 array(reg8_t,121) "unknown_968"
651 array(reg8_t,142) "unknown_1136"
652 array(reg8_t,155) "unknown_1240"
653 array(reg8_t,385) "unknown_3080"
654 array(reg8_t,321) "unknown_2568"
655 array(reg8_t,169) "unknown_1352"
656 array(reg8_t,263) "unknown_2104"
657 array(reg8_t,339) "unknown_2712"
658 array(reg8_t,147) "unknown_1176"
659 array(reg8_t,244) "unknown_1952"
660 array(reg8_t,101) "unknown_808"
661 array(reg8_t,81) "unknown_648"
662 array(reg8_t,154) "unknown_1232"
663 array(reg8_t,166) "unknown_1328"
664 array(reg8_t,126) "unknown_1008"
665 array(reg8_t,300) "unknown_2400"
666 array(reg8_t,123) "unknown_984"
667 array(reg8_t,108) "unknown_864"
668 array(reg8_t,109) "unknown_872"
669 array(reg8_t,224) "unknown_1792"
670 array(reg8_t,110) "unknown_880"
671 array(reg32_t,7) "dword[7]"
672 array(reg8_t,117) "unknown_936"
673 array(reg8_t,66) "unknown_528"
674 array(reg8_t,287) "unknown_2296"
675 array(reg8_t,100) "unknown_800"
676 array(reg8_t,138) "unknown_1104"
677 array(reg8_t,171) "unknown_1368"
678 array(reg8_t,191) "unknown_1528"
679 array(reg8_t,176) "unknown_1408"
680 array(reg8_t,280) "unknown_2240"
681 array(reg8_t,496) "unknown_3968"
682 array(reg8_t,129) "unknown_1032"
683 array(reg8_t,137) "unknown_1096"
684 array(reg8_t,412) "unknown_3296"
685 array(reg8_t,233) "unknown_1864"
686 array(reg8_t,132) "unknown_1056"
687 array(reg8_t,512) "unknown_4096"
688 array(reg8_t,352) "unknown_2816"
689 array(reg8_t,97) "unknown_776"
690 array(reg8_t,99) "unknown_792"
691 array(reg8_t,140) "unknown_1120"
692 array(reg8_t,103) "unknown_824"
693 array(reg8_t,116) "unknown_928"
694 array(reg8_t,185) "unknown_1480"
695 array(reg8_t,240) "unknown_1920"
696 array(reg8_t,114) "unknown_912"
697 array(reg8_t,256) "unknown_2048"
698 array(reg8_t,168) "unknown_1344"
699 array(reg8_t,177) "unknown_1416"
700 array(reg8_t,272) "unknown_2176"
701 array(reg8_t,156) "unknown_1248"
702 array(reg8_t,170) "unknown_1360"
703 array(reg8_t,195) "unknown_1560"
704 array(reg8_t,136) "unknown_1088"
705 array(reg8_t,184) "unknown_1472"
706 array(reg8_t,105) "unknown_840"
707 array(reg8_t,262) "unknown_2096"
708 array(reg8_t,248) "unknown_1984"
709 array(reg8_t,268) "unknown_2144"
710 array(reg8_t,688) "unknown_5504"
711 array(reg8_t,373) "unknown_2984"
712 array(reg8_t,278) "unknown_2224"
713 array(reg8_t,133) "unknown_1064"
714 array(reg8_t,1184) "unknown_9472"
715 array(reg8_t,218) "unknown_1744"
716 array(reg8_t,260) "unknown_2080"
717 array(reg8_t,1008) "unknown_8064"
718 array(reg8_t,544) "unknown_4352"
719 array(reg8_t,187) "unknown_1496"
720 array(reg8_t,673) "unknown_5384"
721 array(reg8_t,370) "unknown_2960"
722 array(reg8_t,573) "unknown_4584"
723 array(reg8_t,487) "unknown_3896"
724 array(reg8_t,345) "unknown_2760"
725 array(reg8_t,726) "unknown_5808"
726 array(reg8_t,817) "unknown_6536"
727 array(reg8_t,441) "unknown_3528"
728 array(reg8_t,618) "unknown_4944"
729 array(reg8_t,322) "unknown_2576"
730 array(reg8_t,1087) "unknown_8696"
731 array(reg8_t,591) "unknown_4728"
732 array(reg8_t,827) "unknown_6616"
733 array(reg8_t,213) "unknown_1704"
734 array(reg8_t,198) "unknown_1584"
735 array(reg8_t,510) "unknown_4080"
736 array(reg8_t,270) "unknown_2160"
737 array(reg8_t,296) "unknown_2368"
738 array(reg8_t,284) "unknown_2272"
739 array(reg8_t,180) "unknown_1440"
740 array(reg8_t,338) "unknown_2704"
741 array(reg8_t,238) "unknown_1904"
742 array(reg8_t,245) "unknown_1960"
743 array(reg8_t,343) "unknown_2744"
744 array(reg8_t,508) "unknown_4064"
745 array(reg8_t,727) "unknown_5816"
746 array(reg8_t,706) "unknown_5648"
747 array(reg8_t,1019) "unknown_8152"
748 array(reg8_t,258) "unknown_2064"
749 array(reg8_t,434) "unknown_3472"
750 array(reg8_t,650) "unknown_5200"
751 array(reg8_t,1145) "unknown_9160"
752 array(reg8_t,890) "unknown_7120"
753 array(reg8_t,1498) "unknown_11984"
754 array(reg8_t,317) "unknown_2536"
755 array(reg8_t,764) "unknown_6112"
756 array(reg8_t,520) "unknown_4160"
757 array(reg8_t,1040) "unknown_8320"
758 array(reg8_t,288) "unknown_2304"
759 array(num8_t,2) "char[2]"
760 array(num8_t,57) "char[57]"
761 array(num8_t,28) "char[28]"
762 array(num8_t,23) "char[23]"
763 array(num8_t,30) "char[30]"
764 array(num8_t,24) "char[24]"
765 array(num8_t,22) "char[22]"
766 array(num8_t,29) "char[29]"
767 array(num8_t,3) "char[3]"
768 array(num8_t,26) "char[26]"
769 array(num8_t,10) "char[10]"
770 array(num8_t,34) "char[34]"
771 array(num8_t,55) "char[55]"
772 array(num8_t,20) "char[20]"
773 array(num8_t,21) "char[21]"
774 array(num8_t,18) "char[18]"
775 array(num8_t,40) "char[40]"
776 array(num8_t,46) "char[46]"
777 array(num8_t,27) "char[27]"
778 array(num8_t,8) "char[8]"
779 array(reg8_t,432) "unknown_3456"
780 array(num8_t,44) "char[44]"
781 array(num8_t,53) "char[53]"
782 array(num8_t,38) "char[38]"
783 array(num8_t,31) "char[31]"
784 array(num8_t,37) "char[37]"
785 array(num8_t,45) "char[45]"
786 array(num8_t,52) "char[52]"
787 array(num8_t,42) "char[42]"
788 array(num8_t,56) "char[56]"
789 array(num8_t,79) "char[79]"
790 array(num8_t,32) "char[32]"
791 array(num8_t,81) "char[81]"
792 array(num8_t,39) "char[39]"
793 array(num8_t,51) "char[51]"
794 array(num8_t,33) "char[33]"
795 array(num8_t,70) "char[70]"
796 array(num8_t,35) "char[35]"
797 array(num8_t,54) "char[54]"
798 array(num8_t,62) "char[62]"
799 array(num8_t,19) "char[19]"
800 array(num8_t,43) "char[43]"
801 array(num8_t,41) "char[41]"
802 array(reg8_t,424) "unknown_3392"
803 array(reg8_t,408) "unknown_3264"
804 array(reg8_t,1024) "unknown_8192"
805 array(reg8_t,888) "unknown_7104"
806 array(num8_t,36) "char[36]"
807 array(reg8_t,504) "unknown_4032"
808 array(reg8_t,1056) "unknown_8448"
809 array(reg8_t,4608) "unknown_36864"
810 array(num8_t,14) "char[14]"
811 array(reg8_t,4000) "unknown_32000"
812 struct(0:ptr(struct(0:reg32_t,4:reg32_t,8:ptr(struct(0:reg32_t,4:reg32_t,8:ptr(TOP),12:ptr(TOP),16:reg32_t,20:array(uint32_t,15))),12:ptr(TOP),16:reg32_t,20:array(uint32_t,15))),4:ptr(struct(0:reg32_t,4:reg32_t,8:reg32_t,12:reg32_t,16:reg32_t,20:reg32_t,24:reg32_t,28:struct(0:reg32_t,4:reg32_t,8:reg32_t,12:reg32_t,16:reg32_t,20:reg32_t,24:reg32_t,28:array(reg8_t,80),108:reg32_t),140:reg32_t,144:reg32_t,148:reg32_t,152:reg32_t,156:reg32_t,160:reg32_t,164:reg32_t,168:reg32_t,172:reg32_t,176:reg32_t,180:reg32_t,184:reg32_t,188:reg32_t,192:reg32_t,196:reg32_t,200:reg32_t,204:array(reg8_t,512)))) "_EXCEPTION_POINTERS"
813 ptr(struct(0:reg32_t,4:reg32_t,8:reg32_t,12:reg32_t,16:reg32_t,20:reg32_t,24:reg32_t,28:struct(0:reg32_t,4:reg32_t,8:reg32_t,12:reg32_t,16:reg32_t,20:reg32_t,24:reg32_t,28:array(reg8_t,80),108:reg32_t),140:reg32_t,144:reg32_t,148:reg32_t,152:reg32_t,156:reg32_t,160:reg32_t,164:reg32_t,168:reg32_t,172:reg32_t,176:reg32_t,180:reg32_t,184:reg32_t,188:reg32_t,192:reg32_t,196:reg32_t,200:reg32_t,204:array(reg8_t,512))) "CONTEXT*"
814 array(reg8_t,6092) "unknown_48736"
815 array(reg8_t,264) "unknown_2112"
816 struct(0:reg32_t,4:reg32_t,8:reg32_t,12:reg32_t) "_EH4_SCOPETABLE"
817 array(reg8_t,336) "unknown_2688"
818 array(reg8_t,576) "unknown_4608"
819 ptr(array(reg8_t,33)) "unknown_264*"
820 ptr(array(reg8_t,23)) "unknown_184*"
821 ptr(array(reg8_t,38)) "unknown_304*"
822 ptr(array(reg8_t,17)) "unknown_136*"
823 ptr(array(reg8_t,96)) "unknown_768*"
824 array(reg8_t,518) "unknown_4144"
825 ptr(array(reg8_t,82)) "unknown_656*"
826 ptr(array(reg8_t,97)) "unknown_776*"
827 array(reg8_t,655844) "unknown_5246752"
828 array(reg8_t,1234108) "unknown_9872864"
829 array(reg8_t,8200) "unknown_65600"
830 array(reg8_t,27864) "unknown_222912"
831 ptr(array(reg8_t,40960)) "unknown_327680*"
832 ptr(array(reg8_t,27864)) "unknown_222912*"
833 array(reg8_t,40960) "unknown_327680"
834 array(reg8_t,2364) "unknown_18912"
0 code_t "(void -ms-> DWORD)*"
0 code_t "(void -ms-> BOOL)*"
0 code_t "(_Inout_ LPTOP_LEVEL_EXCEPTION_FILTER -ms-> LPTOP_LEVEL_EXCEPTION_FILTER)*"
0 code_t "(void -ms-> HANDLE)*"
0 code_t "(HANDLE,UINT -ms-> BOOL)*"
0 code_t "(_Inout_ LONG*,LONG,LONG -ms-> LONG)*"
0 code_t "(_Inout_ LONG*,LONG -ms-> LONG)*"
0 code_t "(_Inout_ LPSECURITY_ATTRIBUTES,BOOL,BOOL,_In_ WCHAR* -ms-> HANDLE)*"
0 code_t "(DWORD -ms-> void)*"
0 code_t "(_Inout_ LPFILETIME -ms-> void)*"
0 code_t "(_Inout_ void*,_In_ void*,size_t -> void*)*"
0 code_t "(_Inout_ void*,size_t -> void*)*"
0 code_t "(_Inout_ char*,_In_ char* -> int)*"
0 code_t "(int -> void)*"
0 code_t "(_Inout_ char*,size_t,_In_ char*,_Inout_ va_list -> int)*"
0 code_t "(_Inout_ _onexit_t -> _onexit_t)*"
0 code_t "(_Inout_ unsigned int*,unsigned int,unsigned int -> errno_t)*"
0 code_t "(unknown0_2,bool -> void)*"
0 code_t "(_Inout_ void*,int,size_t -> void*)*"
0 code_t "(size_t,size_t -> void*)*"
0 code_t "(size_t -> void*)*"
0 code_t "(void -> FILE*)*"
0 code_t "(FILE*,int,int -> int)*"
0 code_t "(_Inout_ void*,size_t,size_t,FILE* -> size_t)*"
0 code_t "(_In_ char*,_Inout_ va_list -> int)*"
835 array(reg8_t,3148) "unknown_25184"
836 num128_t "int_128"
837 array(reg8_t,768) "unknown_6144"
838 array(reg8_t,2192) "unknown_17536"
839 array(reg8_t,4096) "unknown_32768"
840 array(reg8_t,135168) "unknown_1081344"
0 code_t "_onexit_t"
| BlitzBasic | 1 | matt-noonan/retypd-data | data/vp8cx_set_ref.exe.decls | [
"MIT"
] |
Module: llvm-write-builder
Copyright: Original Code is Copyright 2014-2018 Gwydion Dylan Maintainers
All rights reserved.
License: See License.txt in this distribution for details.
Warranty: Distributed WITHOUT WARRANTY OF ANY KIND
define function llvm-write-builder
(module :: <llvm-module>, stream :: <stream>)
=> ();
let type-names = make(<object-table>);
type-names[$llvm-label-type] := "$llvm-label-type";
type-names[$llvm-void-type] := "$llvm-void-type";
type-names[$llvm-metadata-type] := "$llvm-metadata-type";
type-names[$llvm-float-type] := "$llvm-float-type";
type-names[$llvm-double-type] := "$llvm-double-type";
type-names[$llvm-i1-type] := "$llvm-i1-type";
type-names[$llvm-i8-type] := "$llvm-i8-type";
type-names[$llvm-i8*-type] := "$llvm-i8*-type";
type-names[$llvm-i16-type] := "$llvm-i16-type";
type-names[$llvm-i32-type] := "$llvm-i32-type";
type-names[$llvm-i64-type] := "$llvm-i64-type";
let global-value-names = make(<object-table>);
global-value-names[$llvm-false] := "$llvm-false";
global-value-names[$llvm-true] := "$llvm-true";
for (global :: <llvm-global-value> keyed-by name in module.llvm-global-table)
global-value-names[global] := name;
end for;
for (func :: <llvm-function> in module.llvm-module-functions)
let local-value-names = shallow-copy(global-value-names);
for (value :: <llvm-value> keyed-by name in func.llvm-function-value-table)
local-value-names[value] := name;
if (instance?(value, <llvm-placeholder-value>))
local-value-names[value.llvm-value-forward] := name;
end if;
end for;
format(stream, "// %s\n", func.llvm-global-name);
format(stream, "begin\n");
let v = 0;
for (bb :: <llvm-basic-block> in func.llvm-function-basic-blocks,
index from 1)
local-value-names[bb] := format-to-string("bb%d", index);
format(stream, " let b%d = make(<llvm-basic-block>);\n", index);
for (instruction :: <llvm-instruction>
in bb.llvm-basic-block-instructions)
let instruction-name
= element(local-value-names, instruction, default: #f);
unless (instruction-name
| llvm-void-type?(instruction.llvm-value-type))
local-value-names[instruction] := format-to-string("v%d", v);
v := v + 1;
end unless;
end for;
end for;
format(stream, "\n");
for (bb :: <llvm-basic-block> in func.llvm-function-basic-blocks)
format(stream, " ins--block(be, %s);\n", local-value-names[bb]);
for (instruction :: <llvm-instruction>
in bb.llvm-basic-block-instructions)
let instruction-name
= element(local-value-names, instruction, default: #f);
if (instruction-name)
format(stream, " let %s = ", instruction-name)
else
format(stream, " ");
end if;
print-builder-instruction(instruction,
local-value-names, type-names,
stream);
format(stream, ";\n");
end for;
format(stream, "\n");
end for;
format(stream, "end;\n\n");
end for;
end function;
define method print-builder-instruction
(instruction :: <llvm-binop-instruction>, value-names, type-names,
stream)
=> ();
format(stream, "ins--%s(be", instruction.llvm-binop-instruction-operator);
print-builder-operands(instruction.llvm-instruction-operands,
value-names, type-names, stream);
format(stream, ")");
end method;
define method print-builder-instruction
(instruction :: <llvm-cast-instruction>, value-names, type-names,
stream)
=> ();
format(stream, "ins--%s(be",
instruction.llvm-cast-instruction-operator);
print-builder-operands(instruction.llvm-instruction-operands,
value-names, type-names, stream);
format(stream, ", ");
print-builder-type(instruction.llvm-value-type, type-names, stream);
format(stream, ")");
end method;
define method print-builder-instruction
(instruction :: <llvm-icmp-instruction>, value-names, type-names,
stream)
=> ();
format(stream, "ins--icmp-%s(be",
instruction.llvm-cmp-predicate);
print-builder-operands(instruction.llvm-instruction-operands,
value-names, type-names, stream);
format(stream, ")");
end method;
define method print-builder-instruction
(instruction :: <llvm-gep-instruction>, value-names, type-names,
stream)
=> ();
format(stream, "ins--gep%s(be",
if (instruction.llvm-gep-instruction-in-bounds?)
"-inbounds"
else
""
end);
print-builder-operands(instruction.llvm-instruction-operands,
value-names, type-names, stream);
format(stream, ")");
end method;
define method print-builder-instruction
(instruction :: <llvm-load-instruction>, value-names, type-names,
stream)
=> ();
format(stream, "ins--load(be");
print-builder-operands(instruction.llvm-instruction-operands,
value-names, type-names, stream);
format(stream, ")");
end method;
define method print-builder-instruction
(instruction :: <llvm-store-instruction>, value-names, type-names,
stream)
=> ();
format(stream, "ins--store(be");
print-builder-operands(instruction.llvm-instruction-operands,
value-names, type-names, stream);
format(stream, ")");
end method;
define method print-builder-instruction
(instruction :: <llvm-phi-node>, value-names, type-names,
stream)
=> ();
format(stream, "ins--phi*(be");
print-builder-operands(instruction.llvm-instruction-operands,
value-names, type-names, stream);
format(stream, ")");
end method;
define method print-builder-instruction
(instruction :: <llvm-select-instruction>, value-names, type-names,
stream)
=> ();
format(stream, "ins--select(be");
print-builder-operands(instruction.llvm-instruction-operands,
value-names, type-names, stream);
format(stream, ")");
end method;
define method print-builder-instruction
(instruction :: <llvm-call-instruction>, value-names, type-names,
stream)
=> ();
format(stream, "ins--call(be");
print-builder-operands(instruction.llvm-instruction-operands,
value-names, type-names, stream);
format(stream, ")");
end method;
define method print-builder-instruction
(instruction :: <llvm-branch-instruction>, value-names, type-names,
stream)
=> ();
format(stream, "ins--br(be");
print-builder-operands(instruction.llvm-instruction-operands,
value-names, type-names, stream);
format(stream, ")");
end method;
define method print-builder-instruction
(instruction :: <llvm-return-instruction>, value-names, type-names,
stream)
=> ();
format(stream, "ins--return(be");
print-builder-operands(instruction.llvm-instruction-operands,
value-names, type-names, stream);
format(stream, ")");
end method;
define method print-builder-instruction
(instruction :: <llvm-instruction>, value-names, type-names,
stream)
=> ();
format(stream, "ins--?(be");
print-builder-operands(instruction.llvm-instruction-operands,
value-names, type-names, stream);
format(stream, ") /* %s */", instruction);
end method;
define function print-builder-operands
(operands :: <sequence>, value-names, type-names,
stream :: <stream>)
for (operand in operands)
format(stream, ", ");
print-builder-operand(operand, value-names, type-names, stream);
end for;
end function;
define method print-builder-operand
(operand :: <llvm-value>, value-names, type-names,
stream :: <stream>)
=> ()
let name = element(value-names, operand, default: #f);
if (name)
print-message(name, stream);
else
print-message(operand, stream);
end if;
end method;
define method print-builder-operand
(operand :: <llvm-placeholder-value>, value-names, type-names,
stream :: <stream>)
=> ()
print-builder-operand(operand.llvm-value-forward,
value-names, type-names, stream);
end method;
define method print-builder-operand
(operand :: <llvm-argument>, value-names, type-names,
stream :: <stream>)
=> ()
print-message(operand.llvm-argument-name, stream);
end method;
define method print-builder-operand
(operand :: <llvm-integer-constant>, value-names, type-names,
stream :: <stream>)
=> ()
let type = operand.llvm-value-type.llvm-type-forward;
if (type.llvm-integer-type-width = 32)
format(stream, "%d", operand.llvm-integer-constant-integer);
else
next-method();
end;
end method;
define method print-builder-operand
(operand :: <llvm-null-constant>, value-names, type-names,
stream :: <stream>)
=> ()
format(stream, "make(<llvm-null-constant>, type: ");
print-builder-type(operand.llvm-value-type, type-names, stream);
format(stream, ")");
end method;
define method print-builder-type
(type :: <llvm-type>, type-names, stream :: <stream>)
=> ()
let name = element(type-names, type, default: #f);
if (name)
print-message(name, stream);
else
print-object(type, stream);
end if;
end method;
define method print-builder-type
(type :: <llvm-placeholder-type>, type-names, stream :: <stream>)
=> ()
print-builder-type(type.llvm-type-forward, type-names, stream);
end method;
define method print-builder-type
(type :: <llvm-integer-type>, type-names, stream :: <stream>)
=> ()
format(stream, "$llvm-i%d-type", type.llvm-integer-type-width);
end method;
| Dylan | 5 | kryptine/opendylan | sources/app/llvm-as/llvm-write-builder.dylan | [
"BSD-2-Clause"
] |
.svelte-xyz:not(.foo){color:red} | CSS | 1 | Theo-Steiner/svelte | test/css/samples/not-selector/expected.css | [
"MIT"
] |
- view: _task
sql_table_name: salesforce._task
fields:
# dimensions #
- dimension: id
primary_key: true
type: string
sql: ${TABLE}.id
- dimension: account_id
type: string
hidden: true
sql: ${TABLE}.account_id
- dimension_group: activity
type: time
timeframes: [date, week, month]
convert_tz: false
sql: ${TABLE}.activity_date
- dimension: call_disposition
type: string
sql: ${TABLE}.call_disposition
- dimension: call_duration_in_seconds
type: number
sql: ${TABLE}.call_duration_in_seconds
- dimension: call_object
type: string
sql: ${TABLE}.call_object
- dimension: call_type
type: string
sql: ${TABLE}.call_type
- dimension: created_by_id
type: string
hidden: true
sql: ${TABLE}.created_by_id
- dimension_group: created
type: time
timeframes: [time, date, week, month]
sql: ${TABLE}.created_date
- dimension: description
type: string
sql: ${TABLE}.description
- dimension: is_archived
type: yesno
sql: ${TABLE}.is_archived
- dimension: is_closed
type: yesno
sql: ${TABLE}.is_closed
- dimension: is_deleted
type: yesno
sql: ${TABLE}.is_deleted
- dimension: is_high_priority
type: yesno
sql: ${TABLE}.is_high_priority
- dimension: is_recurrence
type: yesno
sql: ${TABLE}.is_recurrence
- dimension: is_reminder_set
type: yesno
sql: ${TABLE}.is_reminder_set
- dimension: last_modified_by_id
type: string
hidden: true
sql: ${TABLE}.last_modified_by_id
- dimension_group: last_modified
type: time
timeframes: [time, date, week, month]
sql: ${TABLE}.last_modified_date
- dimension: owner_id
type: string
hidden: true
sql: ${TABLE}.owner_id
- dimension: priority
type: string
sql: ${TABLE}.priority
- dimension: record_type_id
type: string
hidden: true
sql: ${TABLE}.record_type_id
- dimension: recurrence_activity_id
type: string
hidden: true
sql: ${TABLE}.recurrence_activity_id
- dimension: recurrence_day_of_month
type: number
sql: ${TABLE}.recurrence_day_of_month
- dimension: recurrence_day_of_week_mask
type: number
sql: ${TABLE}.recurrence_day_of_week_mask
- dimension_group: recurrence_end_date_only
type: time
timeframes: [date, week, month]
convert_tz: false
sql: ${TABLE}.recurrence_end_date_only
- dimension: recurrence_instance
type: string
sql: ${TABLE}.recurrence_instance
- dimension: recurrence_interval
type: number
sql: ${TABLE}.recurrence_interval
- dimension: recurrence_month_of_year
type: string
sql: ${TABLE}.recurrence_month_of_year
- dimension: recurrence_regenerated_type
type: string
sql: ${TABLE}.recurrence_regenerated_type
- dimension_group: recurrence_start_date_only
type: time
timeframes: [date, week, month]
convert_tz: false
sql: ${TABLE}.recurrence_start_date_only
- dimension: recurrence_time_zone_sid_key
type: string
sql: ${TABLE}.recurrence_time_zone_sid_key
- dimension: recurrence_type
type: string
sql: ${TABLE}.recurrence_type
- dimension_group: reminder_date
type: time
timeframes: [time, date, week, month]
sql: ${TABLE}.reminder_date_time
- dimension: status
type: string
sql: ${TABLE}.status
- dimension: subject
type: string
sql: ${TABLE}.subject
- dimension_group: system_modstamp
type: time
timeframes: [time, date, week, month]
sql: ${TABLE}.system_modstamp
- dimension: type
type: string
sql: ${TABLE}.type
- dimension: what_id
type: string
hidden: true
sql: ${TABLE}.what_id
- dimension: who_id
type: string
hidden: true
sql: ${TABLE}.who_id
# measures #
- measure: count
type: count
drill_fields: [id] | LookML | 4 | rsharma03/blocks_salesforce | submodules/campaign_attribution/_task.view.lookml | [
"MIT"
] |
package org.lamport.tla.toolbox.test.threading;
import org.aspectj.lang.annotation.SuppressAjWarnings;
/**
* The purpose of this advice is to intercept method execution in the backend
* code - namely all code in the packages tlc2, tla2sany, tla2tex, pcal and util.
*
* It notifies the {@link MonitorAdaptor} about the method execution.
*/
public aspect MonitorAspect {
public MonitorAspect() {
MonitorAdaptor.setAspect(this);
}
// known places where backend call within UI thread are acceptable
pointcut inFilter() :
withincode(public boolean org.lamport.tla.toolbox.util.ResourceHelper.isValidSpecName(String));
// catch all method calls (static and object ones)
pointcut callToBackend() :
execution(* tlc2..*.*(..))
|| execution(* tla2sany..*.*(..))
|| execution(* tla2tex..*.*(..))
|| execution(* pcal..*.*(..))
|| execution(* util..*.*(..));
// capture calls to backend, but not within ourself or in filter
before(): (callToBackend()
&& !cflowbelow(callToBackend()) && !cflowbelow(inFilter())) {
MonitorAdaptor.enter(thisJoinPoint);
}
}
| AspectJ | 5 | zwergziege/tlaplus | toolbox/org.lamport.tla.toolbox.uitest/src-aj/org/lamport/tla/toolbox/test/threading/MonitorAspect.aj | [
"MIT"
] |
50 3 3 0
0 1 5 1 3 2 4 5 [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0]
1 5 2 40 51 [1 2 2 2 4 2 2 3 3 3 2 2 1 2 2 2 4 4 2 0 8 8 9 13 12] [2 2 1 2 8]
2 5 2 51 17 [5 4 5 5 10] [10 3 10 1 0 4 4 8 1 1 6 7 5 6 0 5 5 2 7 8 19 20 1 3 16]
3 5 2 51 47 [8 4 2 10 5] [1 6 8 15 9 6 4 5 5 0 0 1 4 2 1 4 9 15 4 10 5 1 2 4 1]
4 5 2 51 32 [7 3 10 3 5] [0 1 9 0 13 0 6 1 5 5 7 6 5 11 7 2 6 2 0 5 10 0 4 6 4]
5 5 3 51 8 49 [5 2 7 8 1] [3 9 9 6 6 0 4 2 1 4 10 8 0 14 2 16 1 7 3 1 1 1 2 1 2] [1 3 7 0 5 2 2 0 4 1 6 3 4 10 4 9 1 9 14 13 1 0 0 2 0]
6 5 2 34 51 [6 5 5 12 11 2 4 1 0 4 8 14 0 16 8 8 15 1 9 5 5 3 5 7 2] [7 2 10 8 4]
7 5 2 51 29 [7 5 8 9 4] [5 2 5 10 10 10 2 3 0 6 14 10 3 3 0 13 6 8 12 0 0 5 2 2 0]
8 5 3 30 12 51 [3 15 9 0 10 1 0 2 2 2 5 10 7 13 11 2 7 5 9 0 5 3 2 5 6] [9 9 1 7 6 1 2 1 1 0 2 11 8 14 14 10 6 4 0 3 4 5 7 3 8] [10 1 8 5 4]
9 5 2 39 51 [3 18 11 5 14 3 0 1 3 0 6 3 3 8 3 2 0 2 0 2 3 3 2 2 6] [10 2 7 1 4]
10 5 3 51 46 19 [2 9 4 10 5] [-4 -7 -4 -7 -8 -7 -9 -5 -4 -4 -5 -9 -10 -11 -6 -4 -11 -10 -6 -11 -11 -7 -5 -9 -10] [2 4 3 1 0 9 6 16 14 3 6 3 8 2 0 15 1 17 20 11 6 8 4 1 3]
11 5 3 15 13 51 [15 14 4 5 12 2 3 0 0 4 5 5 12 9 3 10 5 1 12 5 9 5 1 18 1] [17 14 2 15 20 4 2 0 1 4 2 4 0 7 3 10 6 13 10 15 7 16 6 12 6] [10 2 6 8 9]
12 5 3 51 49 35 [9 4 2 8 6] [5 18 5 8 9 2 3 0 6 7 4 0 4 0 0 5 1 0 16 15 9 11 11 7 10] [15 10 12 2 8 5 7 0 5 7 2 1 0 1 0 5 3 13 8 13 9 6 2 7 3]
13 5 3 16 27 51 [2 2 1 2 0 5 1 4 7 6 15 8 12 9 1 4 9 3 3 7 7 7 4 6 14] [-52 -77 -44 -52 -46 -42 -66 -84 -65 -64 -52 -59 -83 -76 -40 -94 -82 -89 -68 -62 -88 -40 -76 -52 -49] [2 4 8 6 7]
14 5 2 51 22 [5 5 3 5 5] [3 2 7 2 2 4 10 1 8 7 2 5 4 4 2 1 4 4 3 3 6 4 10 0 6]
15 5 2 9 51 [1 1 0 3 1 6 5 10 5 12 6 7 2 3 9 0 0 1 0 0 0 4 9 2 15] [2 7 5 1 9]
16 5 2 24 51 [3 14 6 4 5 2 2 0 1 1 0 1 0 1 1 8 9 13 13 12 2 1 2 1 0] [7 1 1 7 1]
17 5 2 43 51 [6 3 5 5 1 9 17 3 9 16 14 1 4 18 13 14 1 16 10 6 3 3 6 5 2] [5 9 9 8 3]
18 5 3 19 20 51 [3 20 4 10 12 0 0 2 1 2 12 12 2 10 9 12 16 8 10 13 2 0 8 7 3] [1 14 4 14 7 0 0 2 1 0 10 8 0 4 5 8 5 15 1 8 2 2 8 7 6] [10 1 6 8 4]
19 5 2 48 51 [2 4 14 2 11 7 4 13 6 9 2 4 1 4 3 4 3 6 6 4 3 6 14 9 4] [7 10 2 3 7]
20 5 3 19 31 51 [0 19 3 0 16 1 2 6 6 10 4 1 1 2 2 6 5 8 0 9 0 4 4 2 0] [18 18 18 10 8 4 4 7 10 0 1 1 1 3 1 8 6 10 3 5 0 2 4 3 1] [10 5 2 5 2]
21 5 3 51 18 34 [4 8 6 1 10] [7 2 4 2 1 12 15 15 14 7 5 12 5 6 4 1 0 0 2 0 14 10 6 2 16] [4 0 0 2 4 2 10 14 12 11 6 4 2 7 5 0 1 1 0 0 10 14 19 11 2]
22 5 3 45 33 51 [3 2 3 0 1 18 20 2 1 9 1 2 0 1 1 3 3 0 5 4 6 1 0 1 3] [0 4 3 2 0 18 18 1 2 13 1 1 1 1 1 4 0 1 0 5 6 0 5 3 2] [2 10 1 3 4]
23 5 3 31 51 26 [12 2 18 12 2 1 1 0 1 2 8 1 3 3 0 11 8 1 1 3 4 0 1 6 0] [10 2 4 7 3] [19 2 17 17 7 1 1 4 2 3 2 4 8 1 1 8 0 4 8 5 5 2 6 4 6]
24 5 2 51 7 [2 5 4 8 9] [0 2 4 1 1 8 4 8 1 0 5 1 7 5 0 3 15 2 14 4 10 4 9 10 17]
25 5 5 51 36 33 31 38 [2 1 8 9 2] [1 4 1 3 3 0 0 2 1 2 3 9 6 2 14 14 17 1 17 13 3 3 3 1 4] [0 0 2 2 3 1 2 0 2 2 2 13 11 3 14 5 18 2 0 18 2 0 3 3 4] [3 1 0 0 2 0 0 2 1 0 0 1 15 2 5 12 6 15 8 17 0 1 0 2 4] [4 0 4 1 2 2 2 0 0 1 13 2 1 10 0 5 5 11 10 7 4 0 2 2 0]
26 5 2 13 51 [8 10 8 6 6 2 1 2 2 0 2 0 5 5 1 4 1 1 1 6 8 8 4 1 7] [5 1 4 5 5]
27 5 3 44 19 51 [2 4 10 3 8 3 9 8 9 3 4 19 8 1 14 12 4 6 8 11 1 6 16 4 3] [10 5 4 1 0 7 0 5 6 3 17 5 8 18 19 19 10 18 10 14 4 9 3 6 12] [5 5 10 10 8]
28 5 4 6 33 51 50 [2 6 5 5 5 9 2 6 1 9 6 1 4 1 6 7 12 16 14 13 2 5 5 0 5] [3 5 6 4 2 8 1 0 2 8 4 8 5 2 5 14 13 6 9 9 6 0 0 0 4] [6 5 4 9 3] [9 11 3 8 9 8 0 2 5 4 1 6 2 5 5 5 3 8 17 0 2 5 6 4 2]
29 5 6 34 21 25 51 50 10 [1 8 5 8 4 1 2 1 2 2 4 6 3 1 2 12 13 0 14 3 17 5 14 15 18] [7 1 8 4 8 1 0 0 1 0 3 6 4 1 5 10 0 14 10 8 5 16 5 13 7] [6 0 0 4 3 0 1 1 0 0 6 6 5 1 3 5 14 9 2 10 5 7 17 6 6] [4 1 3 7 9] [5 0 5 0 3 1 2 0 0 0 1 0 3 2 6 8 5 2 4 9 7 9 8 3 1] [4 5 8 5 5 2 0 2 2 0 4 4 4 4 1 14 2 11 11 5 11 9 2 17 15]
30 5 3 5 51 49 [-59 -28 -66 -52 -68 -40 -50 -65 -67 -28 -73 -44 -76 -85 -41 -53 -35 -72 -48 -34 -34 -35 -75 -54 -48] [3 6 5 7 10] [0 2 3 0 3 7 1 0 5 2 1 5 0 10 5 8 13 14 11 0 7 10 13 6 12]
31 5 4 46 48 51 10 [4 7 8 8 5 4 5 0 14 9 16 1 9 13 2 6 0 9 9 3 0 5 0 5 1] [9 5 5 0 11 2 6 14 5 3 1 2 1 11 15 7 5 9 5 3 0 0 0 8 8] [6 9 8 5 4] [4 7 4 8 6 9 6 18 17 0 15 14 4 5 7 6 10 10 6 8 4 7 6 4 6]
32 5 3 51 23 42 [9 3 9 4 5] [5 11 11 7 0 6 1 4 1 0 5 0 15 16 6 7 2 4 6 4 6 1 3 0 4] [8 9 11 6 0 6 5 5 2 5 18 3 2 16 3 6 6 7 5 5 7 5 10 2 3]
33 5 2 50 51 [5 5 0 2 4 11 2 2 16 4 1 6 6 5 10 10 4 4 10 16 3 1 2 2 2] [5 8 7 9 2]
34 5 3 51 33 50 [10 6 10 5 8] [1 12 8 2 16 10 3 3 1 0 18 11 1 12 7 9 2 8 10 8 15 15 16 1 4] [4 9 16 5 10 9 12 11 6 5 2 20 18 17 2 6 5 7 8 7 12 11 16 0 8]
35 5 3 51 49 30 [8 7 4 6 2] [8 1 1 12 10 11 10 4 11 7 5 8 4 1 1 10 5 4 8 0 1 1 2 0 0] [6 11 7 1 0 0 5 11 4 11 7 4 6 8 7 12 3 6 12 6 3 1 2 4 2]
36 5 2 51 21 [3 3 8 6 7] [0 2 5 1 5 1 0 6 6 1 3 9 10 5 2 8 8 7 5 12 11 4 9 8 5]
37 5 3 33 51 22 [4 7 11 18 6 4 8 0 2 7 11 2 3 13 3 9 5 14 6 5 6 1 3 6 6] [10 4 10 10 3] [5 19 17 14 10 1 2 2 7 8 6 4 10 19 18 19 8 9 1 17 3 5 3 2 0]
38 5 2 41 51 [2 4 6 5 1 1 4 2 3 4 10 8 8 3 5 4 1 4 0 6 0 2 1 0 2] [3 2 7 3 1]
39 5 4 29 33 23 51 [9 11 4 11 7 2 5 3 9 16 14 3 9 0 9 4 12 6 12 4 6 6 5 0 5] [3 12 1 8 3 11 9 1 13 14 8 0 6 14 14 2 8 0 16 6 6 4 6 0 1] [8 6 1 2 11 4 0 2 3 13 1 2 14 10 5 1 13 1 12 4 2 3 0 4 6] [6 8 7 8 3]
40 5 5 18 51 28 38 17 [7 0 5 7 7 7 7 5 2 8 16 9 1 13 0 20 6 8 13 19 4 16 15 0 12] [4 4 9 10 9] [6 0 4 5 2 3 2 1 2 3 14 8 8 15 1 1 5 7 16 20 11 3 16 18 14] [4 0 5 0 4 8 8 3 6 5 9 15 3 4 0 18 3 6 19 17 10 10 15 12 18] [6 5 2 3 2 0 7 8 2 7 17 10 5 6 5 4 9 3 8 10 12 14 12 7 3]
41 5 2 36 51 [1 3 0 2 1 5 6 10 12 6 12 11 9 1 14 9 8 9 0 0 0 0 0 1 2] [2 9 8 5 1]
42 5 2 51 14 [4 6 5 5 10] [5 3 6 6 2 9 11 4 11 5 1 10 6 3 9 5 4 5 4 9 15 13 6 9 5]
43 5 2 51 27 [4 5 5 5 7] [8 2 6 4 7 2 10 0 1 2 0 10 3 0 1 10 3 3 0 0 0 9 6 13 6]
44 5 3 11 41 51 [0 1 8 6 1 3 0 7 3 0 5 15 2 7 8 2 2 0 2 0 2 4 2 0 4] [11 10 4 10 9 10 5 12 4 2 16 3 11 0 11 1 2 2 0 1 1 3 6 5 4] [6 7 8 1 3]
45 5 4 35 19 51 10 [12 6 6 5 6 10 2 6 9 7 2 0 1 1 1 2 2 10 4 5 6 8 2 5 1] [9 4 5 2 0 5 0 5 5 4 0 0 1 2 2 10 12 0 3 0 15 4 13 17 16] [6 5 1 6 10] [7 11 4 3 5 3 2 10 10 3 1 2 1 1 0 8 0 3 8 4 0 8 14 5 14]
46 5 3 48 51 10 [16 10 12 5 11 14 7 10 9 14 1 0 0 0 1 11 2 4 7 10 9 12 13 8 2] [8 8 1 6 7] [4 15 1 11 2 2 2 10 2 5 0 0 2 2 2 10 8 10 2 2 9 8 5 8 4]
47 5 3 45 37 51 [2 2 0 4 9 6 11 7 5 8 8 9 1 12 4 4 6 0 1 0 14 1 14 11 9] [1 7 7 10 1 4 4 10 14 13 4 0 3 11 9 6 2 1 3 3 9 8 3 5 7] [5 7 6 3 7]
48 5 1 51 [4 5 4 3 10]
49 5 4 35 14 51 22 [-37 -32 -62 -87 -37 -46 -40 -82 -37 -70 -63 -66 -51 -51 -49 -35 -61 -77 -76 -45 -64 -47 -77 -43 -62] [-44 -54 -57 -37 -57 -49 -41 -69 -54 -48 -41 -45 -52 -49 -55 -46 -44 -57 -83 -41 -86 -38 -52 -53 -83] [7 2 4 10 8] [-51 -49 -54 -40 -53 -76 -56 -30 -61 -54 -73 -64 -47 -35 -77 -48 -70 -33 -70 -30 -47 -67 -69 -50 -52]
50 5 1 51 [9 9 2 9 2]
51 1 0
0 1 0 0 0 0 0 0 0
1 1 2 4 8 5 3 7 9
2 2 1 10 10 8 2 8
3 1 3 6 7 6 10 10
4 2 8 2 10 2 3 10
5 8 9 9 9 7 3 5
2 1 5 10 9 7 6 9 8
2 4 6 2 3 1 6 5
3 5 10 2 10 8 10 4
4 5 1 8 3 6 1 5
5 10 3 9 8 6 5 10
3 1 8 10 2 2 9 9 3
2 4 9 1 8 2 10 9
3 2 6 7 5 9 8 5
4 10 6 3 5 4 5 3
5 5 9 6 5 2 2 8
4 1 7 10 3 1 2 8 4
2 3 1 1 10 5 5 5
3 10 1 5 5 4 8 4
4 3 8 7 3 7 1 8
5 5 8 7 3 10 5 3
5 1 5 6 6 8 8 8 3
2 2 4 1 5 1 10 10
3 7 7 5 1 3 10 9
4 8 2 8 8 3 1 1
5 1 7 4 8 1 3 3
6 1 7 5 7 4 5 4 10
2 2 8 3 2 7 3 2
3 10 1 5 2 3 9 2
4 8 1 9 7 5 7 5
5 4 1 7 9 8 1 1
7 1 7 8 8 8 2 5 7
2 5 10 4 2 10 8 8
3 8 4 4 10 8 8 4
4 9 6 1 2 2 3 8
5 4 4 1 7 10 8 10
8 1 10 3 6 10 5 3 3
2 1 8 5 8 7 3 5
3 8 4 4 1 9 5 5
4 5 6 7 3 4 7 3
5 4 5 6 1 7 7 5
9 1 10 2 8 1 5 1 7
2 2 4 2 5 1 9 8
3 7 8 4 8 8 7 8
4 1 3 8 1 9 3 6
5 4 2 8 6 7 7 9
10 1 2 10 2 4 8 6 6
2 9 10 3 9 9 8 8
3 4 3 7 8 8 2 1
4 10 7 6 8 6 2 9
5 5 5 2 1 9 10 4
11 1 10 1 8 9 5 3 1
2 2 9 10 5 7 6 2
3 6 6 9 10 3 8 1
4 8 7 6 3 6 10 3
5 9 5 4 6 9 10 6
12 1 9 6 1 1 7 1 5
2 4 2 3 7 3 5 2
3 2 5 2 8 2 7 9
4 8 4 8 9 10 8 7
5 6 1 9 8 5 9 9
13 1 2 7 10 4 9 10 1
2 4 10 3 8 4 4 1
3 8 9 10 1 4 5 8
4 6 10 6 10 9 7 9
5 7 8 4 6 8 10 6
14 1 5 2 5 4 7 3 3
2 5 3 5 2 7 9 5
3 3 6 8 10 10 6 4
4 5 1 3 4 9 2 9
5 5 4 5 2 3 6 10
15 1 2 10 4 4 5 10 3
2 7 8 9 9 5 9 4
3 5 10 10 10 9 7 2
4 1 6 5 9 7 2 9
5 9 8 8 5 7 4 6
16 1 7 10 2 6 9 6 3
2 1 3 6 2 6 6 7
3 1 2 8 3 7 8 3
4 7 4 8 2 8 9 2
5 1 1 3 5 1 9 10
17 1 5 2 2 1 7 7 8
2 9 4 9 5 8 10 5
3 9 5 2 9 1 5 8
4 8 6 5 3 4 10 1
5 3 5 5 10 5 7 5
18 1 10 6 10 3 1 1 6
2 1 5 6 10 9 2 10
3 6 6 8 6 10 4 9
4 8 6 7 10 6 9 10
5 4 10 9 7 2 4 1
19 1 7 2 2 4 4 5 1
2 10 4 7 2 3 4 5
3 2 5 9 6 7 9 1
4 3 8 3 3 2 2 6
5 7 3 1 9 1 10 2
20 1 10 3 6 2 5 4 7
2 5 5 4 9 10 6 4
3 2 4 7 9 3 5 6
4 5 8 3 1 2 9 6
5 2 10 4 7 4 7 10
21 1 4 8 7 9 3 4 9
2 8 1 1 7 5 3 1
3 6 1 5 5 2 10 2
4 1 8 10 9 3 6 10
5 10 6 5 3 9 2 3
22 1 2 7 6 7 8 6 5
2 10 6 1 2 4 1 9
3 1 9 7 3 1 2 6
4 3 4 1 1 8 7 9
5 4 6 6 7 7 6 7
23 1 10 2 8 1 8 4 4
2 2 6 3 2 7 5 10
3 4 2 1 2 10 5 3
4 7 1 2 8 4 3 7
5 3 7 4 3 6 9 7
24 1 2 10 10 2 8 7 3
2 5 10 2 7 3 7 5
3 4 6 2 7 3 2 7
4 8 9 9 7 10 5 3
5 9 7 5 4 9 9 8
25 1 2 2 2 10 7 4 3
2 1 10 7 10 8 1 2
3 8 10 8 2 4 9 5
4 9 4 2 5 10 9 7
5 2 3 2 2 5 10 9
26 1 5 6 1 5 7 8 8
2 1 2 7 7 10 10 1
3 4 2 7 6 7 8 4
4 5 4 4 6 9 5 4
5 5 7 2 1 1 6 10
27 1 5 7 1 2 5 3 8
2 5 7 3 2 8 9 7
3 10 2 1 8 8 10 7
4 10 8 7 10 6 8 10
5 8 4 10 5 2 6 5
28 1 6 3 2 6 4 2 7
2 5 7 9 1 10 8 5
3 4 8 6 9 3 4 7
4 9 6 6 6 8 3 3
5 3 1 9 7 8 7 9
29 1 4 1 6 10 4 7 4
2 1 1 6 7 1 8 7
3 3 9 1 6 7 5 4
4 7 9 6 3 10 6 2
5 9 10 7 1 8 1 9
30 1 3 2 5 5 4 10 6
2 6 7 3 7 8 3 1
3 5 10 5 5 10 9 4
4 7 7 9 10 9 3 3
5 10 9 2 3 5 2 10
31 1 6 4 1 5 4 7 8
2 9 4 9 7 5 4 2
3 8 10 7 3 2 7 5
4 5 6 4 8 3 4 9
5 4 2 3 5 4 1 4
32 1 9 9 10 5 3 6 3
2 3 9 8 8 10 7 9
3 9 5 2 2 2 4 3
4 4 7 8 10 7 10 5
5 5 7 3 8 3 4 9
33 1 5 3 7 6 8 10 2
2 8 3 9 2 3 1 9
3 7 1 9 1 9 4 5
4 9 5 10 6 2 8 1
5 2 5 10 7 9 8 8
34 1 10 10 5 7 7 9 4
2 6 9 10 5 7 3 5
3 10 9 9 1 9 8 2
4 5 10 6 4 8 4 3
5 8 8 6 1 6 9 6
35 1 8 8 6 8 6 5 5
2 7 7 3 7 3 9 9
3 4 2 4 9 5 5 7
4 6 10 8 6 7 10 5
5 2 6 9 6 2 4 2
36 1 3 3 9 10 6 6 2
2 3 3 6 5 3 4 4
3 8 5 6 3 4 7 6
4 6 4 10 4 4 2 8
5 7 8 8 7 6 4 1
37 1 10 8 8 8 4 6 8
2 4 3 2 7 3 2 9
3 10 1 4 4 6 6 10
4 10 7 2 5 10 7 2
5 3 6 7 1 4 9 4
38 1 3 6 2 6 1 4 10
2 2 7 10 4 8 5 10
3 7 6 2 4 10 4 6
4 3 2 1 2 10 7 2
5 1 4 9 3 4 2 1
39 1 6 8 10 3 7 3 6
2 8 10 4 3 2 5 7
3 7 6 2 2 3 5 5
4 8 2 9 6 7 10 5
5 3 10 1 5 10 8 3
40 1 4 2 10 10 6 7 7
2 4 10 3 9 5 2 3
3 9 2 9 1 9 4 6
4 10 3 3 5 8 6 6
5 9 2 7 5 8 3 8
41 1 2 5 8 4 9 9 1
2 9 1 6 1 7 10 3
3 8 10 8 6 8 10 2
4 5 10 3 8 10 6 4
5 1 9 4 1 8 9 4
42 1 4 3 1 8 3 10 9
2 6 4 6 2 2 6 5
3 5 2 9 7 9 3 2
4 5 1 8 10 4 4 8
5 10 7 2 1 5 5 7
43 1 4 5 1 5 5 3 1
2 5 7 9 8 2 4 5
3 5 4 3 10 1 9 3
4 5 3 2 4 5 4 6
5 7 8 7 1 9 9 9
44 1 6 8 4 1 9 1 10
2 7 5 8 5 5 2 5
3 8 9 10 8 3 2 9
4 1 3 10 3 3 9 6
5 3 4 7 2 3 6 2
45 1 6 1 2 3 7 4 3
2 5 7 1 10 6 6 6
3 1 2 2 5 10 7 4
4 6 7 7 9 4 3 8
5 10 3 6 9 2 7 10
46 1 8 2 1 7 1 5 7
2 8 3 1 4 10 8 9
3 1 7 9 10 6 6 10
4 6 2 5 5 8 2 5
5 7 8 1 1 6 6 9
47 1 5 3 8 1 8 5 3
2 7 5 3 2 2 8 10
3 6 10 1 1 3 1 2
4 3 9 4 3 8 9 5
5 7 4 4 9 1 6 10
48 1 4 2 8 2 6 3 3
2 5 9 10 8 9 6 2
3 4 4 6 1 7 9 7
4 3 4 10 5 4 9 8
5 10 5 4 9 3 9 5
49 1 7 3 2 10 7 4 2
2 2 9 7 9 10 7 3
3 4 4 3 9 8 5 3
4 10 10 10 5 10 5 8
5 8 8 4 6 10 9 1
50 1 9 3 4 5 2 3 2
2 9 1 2 2 7 7 1
3 2 3 2 5 6 1 5
4 9 3 4 9 10 7 3
5 2 10 3 8 10 2 6
51 1 0 0 0 0 0 0 0
202 204 213 210 413 609
| Eagle | 3 | klorel/or-tools | examples/data/rcpsp/multi_mode_max_delay/testset_mm50/psp216.sch | [
"Apache-2.0"
] |
// sdk stuff
import structs/[ArrayList, List]
// our stuff
import Version
import rock/frontend/Token
import rock/middle/tinker/[Resolver, Response, Trail, Errors]
IncludeMode: enum {
LOCAL
PATHY
MACRO
}
Define: class {
name, value: String
init: func (=name, =value) {}
}
Include: class {
token: Token
path: String
mode: IncludeMode
verzion: VersionSpec
defines := ArrayList<Define> new()
init: func (=token, =path, =mode) {
detectMacro()
}
detectMacro: func {
if (path startsWith?(".")) {
path = path[1..-1]
mode = IncludeMode MACRO
}
}
setVersion: func(=verzion) {}
getVersion: func -> VersionSpec { verzion }
addDefine: func (define: Define) { defines add(define) }
getDefines: func -> List<Define> { defines }
resolve: func (trail: Trail, res: Resolver) -> Response {
if (verzion && !verzion isResolved()) {
verzion resolve(trail, res)
}
Response OK
}
toString: func -> String {
match mode {
case IncludeMode LOCAL => "\"%s\""
case IncludeMode PATHY => "<%s>"
} format(path)
}
}
| ooc | 4 | fredrikbryntesson/launchtest | source/rock/middle/Include.ooc | [
"MIT"
] |
#!/bin/bash
set -eu -o pipefail
dir=$(git rev-parse --show-toplevel)
scratch=$(mktemp -d -t tmp.XXXXXXXXXX)
function finish {
rm -rf "$scratch"
}
trap finish EXIT SIGHUP SIGINT SIGTERM
cd "$scratch"
git clone https://github.com/json-schema-org/JSON-Schema-Test-Suite Suite
cp -r Suite/tests/draft4/* "$dir/fixtures/jsonschema_suite"
cp -a Suite/remotes "$dir/fixtures/jsonschema_suite"
| Shell | 3 | jtlisi/alertmanager | vendor/github.com/go-openapi/validate/update-fixtures.sh | [
"ECL-2.0",
"Apache-2.0"
] |
# GET /
+ Response 200 (text/plain)
Hello World
| API Blueprint | 1 | kylef/Curasow | Sources/example/example.apib | [
"BSD-2-Clause"
] |
2016-02-19 10:33:20 > fs0ciety (~whoami@c27-253-43-52.thoms4.vic.optusnet.com.au) has joined ##systemau
2016-02-19 10:33:20 [10:33]
2016-02-19 10:33:20 - Mode ##systemau [+ns] by cameron.freenode.net
2016-02-19 10:33:20 - Channel ##systemau: 1 nick (1 op, 0 voices, 0 normals)
2016-02-19 10:33:22 - Channel created on Fri, 19 Feb 2016 10:33:19
| IRC log | 0 | 0x4b1dN/2016-dots | misc/weechat/logs/irc.freenode.##systemau.weechatlog | [
"MIT"
] |
<!DOCTYPE html>
<!--
Copyright 2011 WebDriver committers
Copyright 2011 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<html>
<head>
<title>location_in_view.html</title>
<style>
#elem {
margin-left: 500px;
width: 5px;
height: 4px;
border: 4px solid black;
background-color: red;
}
</style>
</head>
<body>
<div style='height:100px'></div>
<div id='elem0' style='margin-left:100px; width:100px; height:100px'></div>
<div style='height:300px'></div>
<div style='margin-left:500px; width:200px; height:200px; overflow:scroll'>
<div style='height:500px'></div>
<div id='elem'></div>
</div>
</body>
</html>
| HTML | 2 | weilandia/selenium | javascript/chrome-driver/test/location_in_view.html | [
"Apache-2.0"
] |
import io.vertx.ceylon.platform {
Verticle,
Container
}
import io.vertx.ceylon.core {
Vertx
}
import io.vertx.ceylon.core.http {
HttpServerRequest
}
import ceylon.json {
Array,
Object
}
import ceylon.promise {
Deferred
}
import io.vertx.ceylon.core.sockjs {
EventBusBridgeHook,
SockJSSocket
}
shared class BridgeServer() extends Verticle() {
shared actual void start(Vertx vertx, Container container) {
value server = vertx.createHttpServer();
// Also serve the static resources. In real life this would probably be done by a CDN
server.requestHandler(void(HttpServerRequest req) {
if (req.path == "/") {
req.response.sendFile("eventbusbridge/index.html"); // Serve the index.html
} else if (req.path == "/vertxbus.js") {
req.response.sendFile("eventbusbridge/vertxbus.js"); // Serve the js
}
});
value permitted = Array();
permitted.add(Object()); // Let everything through
value hook = ServerHook();
value sockJSServer = vertx.createSockJSServer(server);
sockJSServer.setHook(hook);
sockJSServer.bridge(Object { "prefix"->"/eventbus" }, permitted, permitted);
server.listen(8080);
}
class ServerHook() satisfies EventBusBridgeHook {
shared actual Boolean handleSocketCreated(SockJSSocket sock) {
print("headers ``sock.headers``");
value origin = sock.headers["origin"];
if (exists origin, origin.first == "http://localhost:8080") {
print("Origin is ``origin.first``");
return true;
} else {
return false;
}
}
shared actual void handleSocketClosed(SockJSSocket sock) {
print("handleSocketClosed, sock = ``sock``");
}
shared actual Boolean handleSendOrPub(SockJSSocket sock, Boolean send, Object msg, String address) {
print("handleSendOrPub, sock = ``sock``, send = ``send``, address = ``address``");
print(msg);
return true;
}
shared actual Boolean handlePreRegister(SockJSSocket sock, String address) {
print("handlePreRegister, sock = ``sock``, address = ``address``");
return true;
}
shared actual void handlePostRegister(SockJSSocket sock, String address) {
print("handlePostRegister, sock = ``sock``, address = ``sock``");
}
shared actual Boolean handleUnregister(SockJSSocket sock, String address) {
print("handleUnregister, sock = ``sock``, address = ``address``");
return true;
}
shared actual Boolean handleAuthorise(Object message, String sessionID, Deferred<Boolean> handler) {
return false;
}
}
}
| Ceylon | 4 | vietj/vertx-examples | src/raw/ceylon/eventbusbridge/BridgeServer.ceylon | [
"Apache-2.0"
] |
<% unless klass.includes.empty? then %>
<!-- Included Modules -->
<nav id="includes-section" class="section">
<h3 class="section-header">Included Modules</h3>
<ul class="link-list">
<% klass.each_include do |inc| %>
<% unless String === inc.module then %>
<li><a class="include" href="<%= klass.aref_to inc.module.path %>"><%= inc.module.full_name %></a>
<% else %>
<li><span class="include"><%= inc.name %></span>
<% end %>
<% end %>
</ul>
</nav>
<% end %>
| RHTML | 3 | coralnexus/rdoc-darkfish-template | _sidebar_includes.rhtml | [
"Apache-2.0"
] |
sub fibonacci($n) {
if ($n <= 1) { return $n; }
else {
return fibonacci($n - 1) + fibonacci($n - 2);
}
}
sub MAIN($i) {
say fibonacci($i);
}
| Perl6 | 4 | iabhimanyu/Algorithms | Mathematics/fibonacci/Perl 6/fibonacci.p6 | [
"MIT"
] |
tb.array[0].age=99
tb.list[1].name=test
| INI | 0 | nicchagil/spring-framework | spring-beans/src/test/resources/org/springframework/beans/factory/config/PropertyResourceConfigurerTests-test.properties | [
"Apache-2.0"
] |
#!/bin/bash
#==============================================================================#
# SETUP #
#==============================================================================#
# Start in scripts/integration-tests/ even if run from root directory
cd "$(dirname "$0")" || exit
root="$PWD"
source utils/local-registry.sh
source utils/cleanup.sh
# Echo every command being executed
set -x
#==============================================================================#
# ENVIRONMENT #
#==============================================================================#
node -v
npm --version
yarn --version
#==============================================================================#
# TEST #
#==============================================================================#
startLocalRegistry "$root"/verdaccio-config.yml
# Create a React Native project
cd /tmp
npx react-native init rnbabel
cd rnbabel
# Build the project
npx react-native bundle --entry-file index.js --bundle-output output.js
cleanup
| Shell | 4 | fatash89/babel | scripts/integration-tests/e2e-react-native.sh | [
"MIT"
] |
(let (c (Chan/new 1))
(push c 42)
(test (= (len c) 1))
(test (= (pop c) 42)))
(test (= (wait (task () 'foo)) 'foo))
(let _
(task t1 () 35)
(task t2 () 7)
(test (= (+ (wait t1 t2)..) 42)))
(let (v 42)
(task t () (inc v))
(test (= (wait t) 43))
(test (= v 42)))
(let _
(task t (0)
(Task/post (fetch) 'foo)
'bar)
(t/post Task/this)
(test (= (fetch) 'foo))
(test (= (wait t) 'bar)))
| Grammatical Framework | 4 | daota2/fffff | v1/test/task.gf | [
"MIT"
] |
module audiostreamerscrobbler.scrobbler.MissedScrobblerHandler
import audiostreamerscrobbler.utils.ThreadUtils
import gololang.concurrent.workers.WorkerEnvironment
import java.lang.Thread
import java.util.{Calendar, TimeZone}
import java.util.concurrent
import java.util.concurrent.atomic.AtomicBoolean
import java.util.concurrent.TimeUnit
union MissedScrobblerActionMsgs = {
AddMissedScrobbleMsg = {scrobblerId, scrobble}
ScrobbleMissedScrobblesMsg
}
function createMissedScrobblerHandlerThread = |size, interval, scrobblers| {
let scrobblersMap = map[[s: id(), s] foreach s in scrobblers]
let missedScrobblerHandler = DynamicObject("MissedScrobblerHandler"):
define("_size", size):
define("_interval", interval):
define("_thread", null):
define("_isRunning", null):
define("_env", null):
define("_port", null):
define("_scrobblers", scrobblersMap):
define("_scrobbles", null):
define("_scheduleScrobbleAction", |this| -> scheduleScrobbleAction(this)):
define("start", |this| -> initAndStartScrobblerHandler(this)):
define("stop", |this| -> scheduleScrobbleStop(this)):
define("addMissedScrobble", |this, scrobblerIds, scrobble| -> scheduleAddScrobble(this, scrobblerIds, scrobble))
return missedScrobblerHandler
}
local function initAndStartScrobblerHandler = |handler| {
if (handler: _thread() isnt null) {
raise("Internal error: scrobble missing task thread was already running")
}
initScrobblerHandler(handler)
}
local function initScrobblerHandler = |handler| {
handler: _scrobbles(map[])
let env = WorkerEnvironment.builder(): withSingleThreadExecutor()
let actionPort = env: spawn(^portIncomingMsgHandler: bindTo(handler))
handler: _env(env)
handler: _port(actionPort)
handler: _isRunning(AtomicBoolean(false))
let missedScrobbleRunThread = _createMissedScrobbleRunThread(handler)
handler: _thread(missedScrobbleRunThread)
}
local function _createMissedScrobbleRunThread = |handler| {
let isRunning = handler: _isRunning()
isRunning: set(true)
return runInNewThread("MissedScrobblesHandlerThread", {
while (isRunning: get()) {
handler: _scheduleScrobbleAction()
try {
Thread.sleep(handler: _interval() * 1000_L)
} catch (ex) {
case {
when ex oftype java.lang.InterruptedException.class {
}
otherwise {
throw ex
}
}
}
}
println("Stopped Scrobbler Error Handler thread...")
handler: _env(): shutdown()
handler: _port(null)
handler: _thread(null)
})
}
local function scheduleAddScrobble = |handler, scrobblerId, scrobble| {
if (not handler: _isRunning(): get()) {
raise("Internal error: MissingScrobblerThread is not running")
}
handler: _port(): send(MissedScrobblerActionMsgs.AddMissedScrobbleMsg(scrobblerId, scrobble))
}
local function scheduleScrobbleAction = |handler| {
if (not handler: _isRunning(): get()) {
raise("Internal error: MissingScrobblerThread is not running")
}
handler: _port(): send(MissedScrobblerActionMsgs.ScrobbleMissedScrobblesMsg())
}
local function scheduleScrobbleStop = |handler| {
handler: _thread(): interrupt()
handler: _isRunning(): set(false)
}
# Port message handler
local function portIncomingMsgHandler = |handler, msg| {
case {
when msg: isAddMissedScrobbleMsg() {
_addScrobbles(handler, msg)
}
when msg: isScrobbleMissedScrobblesMsg() {
_scrobbleMissingScrobbles(handler)
}
otherwise {
raise("Internal error, received unknown message: " + msg)
}
}
}
local function _addScrobbles = |handler, msg| {
let scrobblerId = msg: scrobblerId()
let scrobbles = handler: _scrobbles()
if (scrobbles: size() < handler: _size()) {
scrobbles: putIfAbsent(scrobblerId, set[])
scrobbles: get(scrobblerId): add(msg: scrobble())
} else {
println("SCROBBLE WILL BE LOST: TOO MANY SCROBBLES IN QUEUE")
}
}
local function _scrobbleMissingScrobbles = |handler| {
handler: _scrobbles(): entrySet(): each(|es| {
let scrobblerId = es: getKey()
let scrobbles = es: getValue()
if (scrobbles: size() > 0) {
println("\n* Re-scrobbling " + scrobbles: size() + " songs to " + scrobblerId + "...")
let scrobbler = handler: _scrobblers(): get(scrobblerId)
let filteredScrobbles = scrobbles: filter(|s| -> daysBetweenNowAndDate(s: utcTimestamp()) <= scrobbler: maximalDaysOld())
try {
scrobbler: scrobbleAll(filteredScrobbles)
println("* Done\n")
scrobbles: clear()
} catch (ex) {
println("* COULD NOT RE-SCROBBLE: " + ex + "\n")
}
}
})
}
local function daysBetweenNowAndDate = |d| {
let dateNow = Calendar.getInstance(TimeZone.getTimeZone("UTC"))
let diff = dateNow: getTimeInMillis() - d: getTimeInMillis()
return TimeUnit.DAYS(): convert(diff, TimeUnit.MILLISECONDS())
}
| Golo | 4 | vvdleun/audiostreamerscrobbler | src/main/golo/include/scrobblers/MissedScrobblerThread.golo | [
"MIT"
] |
# generated from colcon_core/shell/template/hook_append_value.sh.em
@{
import os
if os.path.isabs(subdirectory):
value = subdirectory
else:
value = '$COLCON_CURRENT_PREFIX'
if subdirectory:
value += '/' + subdirectory
}@
# function to append a value to a variable
# which uses colons as separators
# duplicates as well as trailing separators are avoided
# first argument: the name of the result variable
# second argument: the value to be appended
_colcon_append_unique_value() {
# arguments
_listname="$1"
_value="$2"
# get values from variable
eval _values=\"\$$_listname\"
_duplicate=
# backup the field separator
_colcon_append_unique_value_IFS=$IFS
IFS=":"
# start with no values
_all_values=
# workaround SH_WORD_SPLIT not being set in zsh
if [ "$(command -v colcon_zsh_convert_to_array)" ]; then
colcon_zsh_convert_to_array _values
fi
# iterate over existing values in the variable
for _item in $_values; do
# ignore empty strings
if [ -z "$_item" ]; then
continue
fi
# ignore _value if already present
if [ "$_item" = "$_value" ]; then
_duplicate=1
fi
if [ -z "$_all_values" ]; then
_all_values="$_item"
else
_all_values="$_all_values:$_item"
fi
done
unset _item
# append only non-duplicates
if [ -z "$_duplicate" ]; then
# avoid leading separator
if [ -z "$_all_values" ]; then
_all_values="$_value"
else
_all_values="$_all_values:$_value"
fi
fi
# restore the field separator
IFS=$_colcon_append_unique_value_IFS
unset _colcon_append_unique_value_IFS
# export the updated variable
eval export $_listname=\"$_all_values\"
unset _all_values
unset _duplicate
unset _values
unset _value
unset _listname
}
_colcon_append_unique_value @(name) "@(value)"
unset _colcon_append_unique_value
| EmberScript | 4 | esteve/colcon-core | colcon_core/shell/template/hook_append_value.sh.em | [
"Apache-2.0"
] |
// This source file is part of the Swift.org open source project
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
// RUN: not %target-swift-frontend %s -typecheck
protocol Element
{
typealias ItemType = (Int, Int)
}
if let i = [(1, 2), (3, 4)].index{ (G : Element.ItemType) in
G.1 == 1
}
| Swift | 2 | lwhsu/swift | validation-test/compiler_crashers_2_fixed/0070-sr3515.swift | [
"Apache-2.0"
] |
= Dell XPS 15 9550 =
== Tested Hardware ==
* CPU: Intel(R) Core(TM) i7-10875H CPU @ 2.30GHz
* RAM: 64 GB
* HDD: 1 TiB SSD
* Screen: 15" 4k (3840✕2160)
* Graphics: NVIDIA Corporation TU117M [GeForce GTX 1650 Ti Mobile], with Intel Graphics too.
* Input: Touchscreen and trackpad.
== Notes ==
Also tested with Dell WD19TB Thunderbolt Dock.
== NVIDIA Offload ==
In order to run a program on the NVIDIA gpu, you can use the `nvidia-offload` function, for example:
```
nvidia-offload `nix-shell -p glxinfo --run 'glxgears'`
```
This is a short bash script that sets the proper environment variables and calls your command.
| MediaWiki | 3 | pmeiyu/nixos-hardware | dell/xps/15-9500/README.wiki | [
"CC0-1.0"
] |
unit Antlr.Runtime.Tests;
interface
uses
Classes,
SysUtils,
TestFramework,
Antlr.Runtime;
type
// Test methods for class IANTLRStringStream
TestANTLRStringStream = class(TTestCase)
strict private
const
NL = #13#10;
GRAMMARSTR = ''
+ 'parser grammar p;' + NL
+ 'prog : WHILE ID LCURLY (assign)* RCURLY EOF;' + NL
+ 'assign : ID ASSIGN expr SEMI ;' + NL
+ 'expr : INT | FLOAT | ID ;' + NL;
public
procedure SetUp; override;
procedure TearDown; override;
published
procedure TestSizeOnEmptyANTLRStringStream;
procedure TestSizeOnANTLRStringStream;
procedure TestConsumeOnANTLRStringStream;
procedure TestResetOnANTLRStringStream;
procedure TestSubstringOnANTLRStringStream;
end;
implementation
{ TestANTLRStringStream }
procedure TestANTLRStringStream.SetUp;
begin
end;
procedure TestANTLRStringStream.TearDown;
begin
end;
procedure TestANTLRStringStream.TestConsumeOnANTLRStringStream;
var
Stream: IANTLRStringStream;
begin
Stream := TANTLRStringStream.Create('One'#13#10'Two');
CheckEquals(0, Stream.Index);
CheckEquals(0, Stream.CharPositionInLine);
CheckEquals(1, Stream.Line);
Stream.Consume; // O
CheckEquals(1, Stream.Index);
CheckEquals(1, Stream.CharPositionInLine);
CheckEquals(1, Stream.Line);
Stream.Consume; // n
CheckEquals(2, Stream.Index);
CheckEquals(2, Stream.CharPositionInLine);
CheckEquals(1, Stream.Line);
Stream.Consume; // e
CheckEquals(3, Stream.Index);
CheckEquals(3, Stream.CharPositionInLine);
CheckEquals(1, Stream.Line);
Stream.Consume; // #13
CheckEquals(4, Stream.Index);
CheckEquals(4, Stream.CharPositionInLine);
CheckEquals(1, Stream.Line);
Stream.Consume; // #10
CheckEquals(5, Stream.Index);
CheckEquals(0, Stream.CharPositionInLine);
CheckEquals(2, Stream.Line);
Stream.Consume; // T
CheckEquals(6, Stream.Index);
CheckEquals(1, Stream.CharPositionInLine);
CheckEquals(2, Stream.Line);
Stream.Consume; // w
CheckEquals(7, Stream.Index);
CheckEquals(2, Stream.CharPositionInLine);
CheckEquals(2, Stream.Line);
Stream.Consume; // o
CheckEquals(8, Stream.Index);
CheckEquals(3, Stream.CharPositionInLine);
CheckEquals(2, Stream.Line);
Stream.Consume; // EOF
CheckEquals(8, Stream.Index);
CheckEquals(3, Stream.CharPositionInLine);
CheckEquals(2, Stream.Line);
Stream.Consume; // EOF
CheckEquals(8, Stream.Index);
CheckEquals(3, Stream.CharPositionInLine);
CheckEquals(2, Stream.Line);
end;
procedure TestANTLRStringStream.TestResetOnANTLRStringStream;
var
Stream: IANTLRStringStream;
begin
Stream := TANTLRStringStream.Create('One'#13#10'Two');
CheckEquals(0, Stream.Index);
CheckEquals(0, Stream.CharPositionInLine);
CheckEquals(1, Stream.Line);
Stream.Consume; // O
Stream.Consume; // n
CheckEquals(Ord('e'), Stream.LA(1));
CheckEquals(2, Stream.Index);
Stream.Reset;
CheckEquals(Ord('O'), Stream.LA(1));
CheckEquals(0, Stream.Index);
CheckEquals(0, Stream.CharPositionInLine);
CheckEquals(1, Stream.Line);
Stream.Consume; // O
CheckEquals(Ord('n'), Stream.LA(1));
CheckEquals(1, Stream.Index);
CheckEquals(1, Stream.CharPositionInLine);
CheckEquals(1, Stream.Line);
Stream.Consume; // n
CheckEquals(Ord('e'), Stream.LA(1));
CheckEquals(2, Stream.Index);
CheckEquals(2, Stream.CharPositionInLine);
CheckEquals(1, Stream.Line);
Stream.Consume; // n
end;
procedure TestANTLRStringStream.TestSizeOnANTLRStringStream;
var
S1, S2, S3: IANTLRStringStream;
begin
S1 := TANTLRStringStream.Create('lexer'#13#10);
CheckEquals(7, S1.Size);
S2 := TANTLRStringStream.Create(GRAMMARSTR);
CheckEquals(Length(GRAMMARSTR), S2.Size);
S3 := TANTLRStringStream.Create('grammar P;');
CheckEquals(10, S3.Size);
end;
procedure TestANTLRStringStream.TestSizeOnEmptyANTLRStringStream;
var
S1: IANTLRStringStream;
begin
S1 := TANTLRStringStream.Create('');
CheckEquals(0, S1.Size);
CheckEquals(0, S1.Index);
end;
procedure TestANTLRStringStream.TestSubstringOnANTLRStringStream;
var
Stream: IANTLRStringStream;
begin
Stream := TANTLRStringStream.Create('One'#13#10'Two'#13#10'Three');
CheckEquals('Two', Stream.Substring(5, 7));
CheckEquals('One', Stream.Substring(0, 2));
CheckEquals('Three', Stream.Substring(10, 14));
Stream.Consume;
CheckEquals('Two', Stream.Substring(5, 7));
CheckEquals('One', Stream.Substring(0, 2));
CheckEquals('Three', Stream.Substring(10, 14));
end;
initialization
// Register any test cases with the test runner
RegisterTest(TestANTLRStringStream.Suite);
end.
| Pascal | 5 | DanielMabadeje/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials | java/java2py/antlr-3.1.3/runtime/Delphi/Sources/Antlr3.Runtime.Tests/Antlr.Runtime.Tests.pas | [
"Apache-2.0"
] |
parser grammar Mrv_interface;
import Mrv_common;
options {
tokenVocab = MrvLexer;
}
a_interface
:
INTERFACE PERIOD
(
a_interface_authtype
| a_interface_banner
| a_interface_bonddevs
| a_interface_bondmiimon
| a_interface_bondmode
| a_interface_dhcp
| a_interface_ifname
| a_interface_ipaddress
| a_interface_ipbroadcast
| a_interface_ipmask
| a_interface_sshportlist
| a_interface_stat
)
;
a_interface_authtype
:
AUTHTYPE nbdecl
;
a_interface_banner
:
BANNER nsdecl
;
a_interface_bonddevs
:
BONDDEVS nosdecl
;
a_interface_bondmiimon
:
BONDMIIMON nshdecl
;
a_interface_bondmode
:
BONDMODE nshdecl
;
a_interface_dhcp
:
DHCP nbdecl
;
a_interface_ifname
:
IFNAME nsdecl
;
a_interface_ipaddress
:
IPADDRESS nipdecl
;
a_interface_ipbroadcast
:
IPBROADCAST nipdecl
;
a_interface_ipmask
:
IPMASK nipdecl
;
a_interface_sshportlist
:
SSHPORTLIST nssdecl
;
a_interface_stat
:
STAT nbdecl
;
| ANTLR | 4 | zabrewer/batfish | projects/batfish/src/main/antlr4/org/batfish/grammar/mrv/Mrv_interface.g4 | [
"Apache-2.0"
] |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
.token-inspect-widget {
z-index: 50;
user-select: text;
-webkit-user-select: text;
padding: 10px;
}
.tiw-token {
font-family: var(--monaco-monospace-font);
}
.tiw-metadata-separator {
height: 1px;
border: 0;
}
.tiw-token-length {
font-weight: normal;
font-size: 60%;
float: right;
}
.tiw-metadata-table {
width: 100%;
}
.tiw-metadata-value {
font-family: var(--monaco-monospace-font);
word-break: break-word;
}
.tiw-metadata-values {
list-style: none;
max-height: 300px;
overflow-y: auto;
margin-right: -10px;
padding-left: 0;
}
.tiw-metadata-values > .tiw-metadata-value {
margin-right: 10px;
}
.tiw-metadata-key {
width: 1px;
min-width: 150px;
padding-right: 10px;
white-space: nowrap;
vertical-align: top;
}
.tiw-metadata-semantic {
font-style: italic;
}
.tiw-metadata-scopes {
line-height: normal;
}
.tiw-theme-selector {
font-family: var(--monaco-monospace-font);
}
| CSS | 4 | sbj42/vscode | src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.css | [
"MIT"
] |
; CLW file contains information for the MFC ClassWizard
[General Info]
Version=1
LastClass=CAboutDlg
LastTemplate=CDialog
NewFileInclude1=#include "stdafx.h"
NewFileInclude2=#include "server.h"
LastPage=0
ClassCount=9
Class1=CServerApp
Class2=CServerDoc
Class3=CServerView
Class4=CMainFrame
Class9=CAboutDlg
ResourceCount=2
Resource1=IDR_MAINFRAME
Resource2=IDD_ABOUTBOX
[CLS:CServerApp]
Type=0
HeaderFile=server.h
ImplementationFile=server.cpp
Filter=N
[CLS:CServerDoc]
Type=0
HeaderFile=serverDoc.h
ImplementationFile=serverDoc.cpp
Filter=N
[CLS:CServerView]
Type=0
HeaderFile=serverView.h
ImplementationFile=serverView.cpp
Filter=C
[CLS:CMainFrame]
Type=0
HeaderFile=MainFrm.h
ImplementationFile=MainFrm.cpp
Filter=T
[CLS:CAboutDlg]
Type=0
HeaderFile=server.cpp
ImplementationFile=server.cpp
Filter=D
[DLG:IDD_ABOUTBOX]
Type=1
Class=CAboutDlg
ControlCount=4
Control1=IDC_STATIC,static,1342177283
Control2=IDC_STATIC,static,1342308480
Control3=IDC_STATIC,static,1342308352
Control4=IDOK,button,1342373889
[MNU:IDR_MAINFRAME]
Type=1
Class=CMainFrame
Command1=ID_FILE_NEW
Command2=ID_FILE_OPEN
Command3=ID_FILE_SAVE
Command4=ID_FILE_SAVE_AS
Command5=ID_FILE_PRINT
Command6=ID_FILE_PRINT_PREVIEW
Command7=ID_FILE_PRINT_SETUP
Command8=ID_FILE_MRU_FILE1
Command9=ID_APP_EXIT
Command10=ID_EDIT_UNDO
Command11=ID_EDIT_CUT
Command12=ID_EDIT_COPY
Command13=ID_EDIT_PASTE
Command14=ID_VIEW_TOOLBAR
Command15=ID_VIEW_STATUS_BAR
Command16=ID_APP_ABOUT
CommandCount=16
[ACL:IDR_MAINFRAME]
Type=1
Class=CMainFrame
Command1=ID_FILE_NEW
Command2=ID_FILE_OPEN
Command3=ID_FILE_SAVE
Command4=ID_FILE_PRINT
Command5=ID_EDIT_UNDO
Command6=ID_EDIT_CUT
Command7=ID_EDIT_COPY
Command8=ID_EDIT_PASTE
Command9=ID_EDIT_UNDO
Command10=ID_EDIT_CUT
Command11=ID_EDIT_COPY
Command12=ID_EDIT_PASTE
Command13=ID_NEXT_PANE
Command14=ID_PREV_PANE
CommandCount=14
[TB:IDR_MAINFRAME]
Type=1
Class=?
Command1=ID_FILE_NEW
Command2=ID_FILE_OPEN
Command3=ID_FILE_SAVE
Command4=ID_EDIT_CUT
Command5=ID_EDIT_COPY
Command6=ID_EDIT_PASTE
Command7=ID_FILE_PRINT
Command8=ID_APP_ABOUT
CommandCount=8
| Clarion | 2 | tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | ace/tao/examples/mfc/server.clw | [
"Apache-1.1"
] |
Feature: Networking Topology Visualization
In order to increase the ease and understanding of network automation
As as network engineer
I want a visualization of the network topology so that I can
easily understand how the network topology is connected
Scenario: Blank canvas
Given an ansible inventory
When the user clicks on the network topology icon for that inventory
Then populate the toolbox with the data loaded from inventory
Scenario: Device Organization
Given an ansible inventory loaded into the canvas toolbox
When the user clicks and drags on a device in the inventory toolbox
Then place the device onto the topology canvas at the location of the user's mouse pointer
Scenario: Link Connection
Given an ansible inventory loaded into the canvas toolbox
When the user clicks and drags on a device in the inventory toolbox
Then automatically draw lines and circles that represent the links
And interfaces of the connected devices.
Scenario: Customize Layout
Given a canvas populated with a network topology
When the user clicks and drags on a device on the topology canvas
Then move the device to the location of the user's mouse pointer
And update the links and interfaces representations
Scenario: Export SVG
Given a canvas populated with a network topology
When the user clicks on the Export SVG button
Then capture the current view of the canvas
And download an SVG file of the canvas to the users computer
Scenario: Export YAML
Given a canvas populated with a network topology
When the user clicks on the Export YAML button
Then capture the state of the current view of the canvas
And download a YAML file that represents the data to the user's computer
Scenario: Pan
Given a canvas populated with a network topology
When the user clicks and drags on the background
Then move the viewport of the virtual canvas to match the user's mouse movement
Scenario: Zoom
Given a canvas populated with a network topology
When the user scrolls their mousewheel or clicks and drags on the zoom widget
Then scale the viewport of the virtual canvas to the zoom level reflected on the zoom widget
Scenario: Hide information when zooming out
Given a canvas populated with a network topology
When the user zooms out via mouse wheel or zoom widget
Then hide low-level information to provide a high-level overview as the zoom level changes
Scenario: Show more information when zooming in
Given a canvas populated with a network topology
When the user zooms in via mouse wheel or zoom widget
Then show more low-level information to provide more detail for the devices that are in view on the virtual canvas
Scenario: Device Detail
Given a canvas populated with a network topology
When the user clicks on show details device context menu button
Then show the device details including name, description, and host vars
Scenario: Remove Device
Given a canvas populated with a network topology
When the user clicks on remove device context menu button
Then remove the device and connected links from the canvas
And return the device to the inventory toolbox
Scenario: Search by Device Name
Given a canvas populated with a network topology
When the user types the device name or selects it from a device drop down list
Then position the viewport on the virtual canvas over the device with that name
| Cucumber | 4 | gitEdouble/awx | docs/networking.feature | [
"Apache-2.0"
] |
- description: set table custom fields
url: /v1/metadata
status: 200
response:
message: success
query:
type: bigquery_set_table_customization
args:
source: bigquery
table:
dataset: hasura_test
name: table_to_customize
configuration:
custom_name: customized_table
custom_column_names: {column_to_customize: "customized_column"}
custom_root_fields: {select: "gather"}
- description: select custom fields
url: /v1/graphql
status: 200
response:
data:
gather: []
query:
query: |
query {
gather {
customized_column
}
}
| YAML | 3 | devrsi0n/graphql-engine | server/tests-py/queries/v1/metadata/set_table_customization_bigquery.yaml | [
"Apache-2.0",
"MIT"
] |
<!doctype html>
<script type="module">
import {a, b, c} from './script.js';
output({a, b, c});
</script>
| HTML | 3 | acidburn0zzz/parcel | packages/core/integration-tests/test/integration/html-inline-escape/script.html | [
"MIT"
] |
#
# 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.
#
# ####################################################################
#
# Instructions for generating SVG renderings of the functions
# used in SweetSpotSimilarity
#
# ####################################################################
#
#
set terminal svg size 600,400 dynamic enhanced fname 'arial' fsize 11 butt solid
set key inside left top vertical Right noreverse enhanced autotitles box linetype -1 linewidth 1.000
#
# ####### BASELINE TF
#
set output 'ss.baselineTf.svg'
set title "SweetSpotSimilarity.baselineTf(x)"
set xrange [0:20]
set yrange [-1:8]
btf(base,min,x)=(x <= min) ? base : sqrt(x+(base**2)-min)
#
plot btf(0,0,x) ti "all defaults", \
btf(1.5,0,x) ti "base=1.5", \
btf(0,5,x) ti "min=5", \
btf(1.5,5,x) ti "min=5, base=1.5"
#
# ####### HYPERBOLIC TF
#
set output 'ss.hyperbolicTf.svg'
set title "SweetSpotSimilarity.hyperbolcTf(x)"
set xrange [0:20]
set yrange [0:3]
htf(min,max,base,xoffset,x)=min+(max-min)/2*(((base**(x-xoffset)-base**-(x-xoffset))/(base**(x-xoffset)+base**-(x-xoffset)))+1)
#
plot htf(0,2,1.3,10,x) ti "all defaults", \
htf(0,2,1.3,5,x) ti "xoffset=5", \
htf(0,2,1.2,10,x) ti "base=1.2", \
htf(0,1.5,1.3,10,x) ti "max=1.5"
#
# ####### LENGTH NORM
#
set key inside right top
set output 'ss.computeLengthNorm.svg'
set title "SweetSpotSimilarity.computeLengthNorm(t)"
set xrange [0:20]
set yrange [0:1.2]
set mxtics 5
cln(min,max,steepness,x)=1/sqrt( steepness * (abs(x-min) + abs(x-max) - (max-min)) + 1 )
#
plot cln(1,1,0.5,x) ti "all defaults", \
cln(1,1,0.2,x) ti "steepness=0.2", \
cln(1,6,0.2,x) ti "max=6, steepness=0.2", \
cln(3,5,0.5,x) ti "min=3, max=5"
| Gnuplot | 4 | yanivru/lucene-solr | lucene/misc/src/java/org/apache/lucene/misc/doc-files/ss.gnuplot | [
"Apache-2.0"
] |
#+TITLE:${1:1234-5678}
#+DATE: `(format-time-string "%Y-%m-%d")`
#+ISSUED: ${2:`(format-time-string "%Y-%m-%d")`}
#+PAID: ${3:`(format-time-string "%Y-%m-%d")`}
#+CURRENCY: ${4:CAD|USD|DKK|GBP}
#+CONTACT: ${5:Contact ID}
#+PROJECT: ${6:Project ID}
| *Description* | *qty* | *rate* | *total* |
|----------------------------------------------+-----+--------+-------|
| $0 [1] | | | |
|----------------------------------------------+-----+--------+-------|
| | | | |
#+TBLFM: $4=$2+$3::@>$4=vsum(@2..@-1)
[1] ...
* Comments
...
* Notes
** Attachments [0/0] | Org | 4 | leezu/doom-emacs | modules/editor/file-templates/templates/org-mode/__invoice.org | [
"MIT"
] |
/* Copyright 2021 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.
==============================================================================*/
#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_REFERENCE_BROADCAST_ARGS_H_
#define TENSORFLOW_LITE_KERNELS_INTERNAL_REFERENCE_BROADCAST_ARGS_H_
#include "tensorflow/lite/kernels/internal/compatibility.h"
#include "tensorflow/lite/kernels/internal/types.h"
namespace tflite {
namespace reference_ops {
template <typename T>
void BroadcastArgs(const RuntimeShape& input1_shape, const T* input1_data,
const RuntimeShape& input2_shape, const T* input2_data,
const RuntimeShape& output_shape, T* output_data) {
// Gets data at the backward index i of the shape tensor. Returns 1 if the
// index is out of range.
auto get_shape_data = [](const RuntimeShape& shape, const T* data,
int backward_idx) -> T {
int forward_idx = shape.FlatSize() - 1 - backward_idx;
if (forward_idx < 0) return 1;
return data[forward_idx];
};
int output_num_elements = output_shape.FlatSize();
for (int i = 0; i < output_num_elements; ++i) {
int backward_i = output_num_elements - 1 - i;
int shape1_i = get_shape_data(input1_shape, input1_data, i);
int shape2_i = get_shape_data(input2_shape, input2_data, i);
if (shape1_i == 1) {
output_data[backward_i] = shape2_i;
} else if (shape2_i == 1) {
output_data[backward_i] = shape1_i;
} else {
TFLITE_CHECK_EQ(shape1_i, shape2_i);
output_data[backward_i] = shape1_i;
}
}
}
} // namespace reference_ops
} // namespace tflite
#endif // TENSORFLOW_LITE_KERNELS_INTERNAL_REFERENCE_BROADCAST_ARGS_H_
| C | 5 | EricRemmerswaal/tensorflow | tensorflow/lite/kernels/internal/reference/broadcast_args.h | [
"Apache-2.0"
] |
mutual
data MyBool = MyFalse | MyTrue
even : Nat -> MyBool
even (S k) = odd k
even Z = MyTrue
odd : Nat -> MyBool
odd (S k) = even k
odd Z = MyFalse
eodd : Nat -> (Bool, Bool)
eodd num = (isEven num, isOdd num)
where
mutual
isEven : Nat -> Bool
isEven (S k) = isOdd k
isEven Z = True
isOdd : Nat -> Bool
isOdd (S k) = isEven k
isOdd Z = False
data Box : Type -> Type where
MkBox : a -> Box a
mutual
Functor Box where
map f b
= do b' <- b
pure (f b')
Applicative Box where
(<*>) f a
= do f' <- f
a' <- a
pure (f' a')
pure = MkBox
Monad Box where
(>>=) (MkBox val) k = k val
boxy : Box Integer
boxy = map (*2) (MkBox 20)
| Idris | 5 | Qqwy/Idris2-Erlang | idris2/tests/idris2/basic020/Mut.idr | [
"BSD-3-Clause"
] |
// Daniel Shiffman
// http://codingtra.in
// http://patreon.com/codingtrain
// Code for: https://youtu.be/l8SiJ-RmeHU
class Planet {
float radius;
float distance;
Planet[] planets;
float angle;
float orbitspeed;
Planet(float r, float d, float o) {
radius = r;
distance = d;
angle = random(TWO_PI);
orbitspeed = o;
//println(angle);
}
void orbit() {
angle = angle + orbitspeed;
if (planets != null) {
for (int i = 0; i < planets.length; i++) {
planets[i].orbit();
}
}
}
void spawnMoons(int total, int level) {
planets = new Planet[total];
for (int i = 0; i < planets.length; i++) {
float r = radius/(level*2);
float d = random(50, 150);
float o = random(-0.1, 0.1);
planets[i] = new Planet(r, d/level, o);
if (level < 3) {
int num = int(random(0,4));
planets[i].spawnMoons(num, level+1);
}
}
}
void show() {
pushMatrix();
fill(255, 100);
rotate(angle);
translate(distance, 0);
ellipse(0, 0, radius*2, radius*2);
if (planets != null) {
for (int i = 0; i < planets.length; i++) {
planets[i].show();
}
}
popMatrix();
}
}
| Processing | 4 | aerinkayne/website | CodingChallenges/CC_007_SolarSystemGenerator/Processing/CC_007_SolarSystemGenerator/Planet.pde | [
"MIT"
] |
Apply(ClearAll,UserSyms())
ex = [[1,2],[3,4], [a,b,c,[d,1]]]
## four ways to specify list of replacements
T ReplacePart(ex, [[2,2], 1, [3,4,2]] => zz) == [zz,[3,zz],[a,b,c,[d,zz]]]
T ReplacePart(ex, 1 => zz ) == [zz,[3,4],[a,b,c,[d,1]]]
T ReplacePart(ex, [2,2] => zz) == [[1,2],[3,zz],[a,b,c,[d,1]]]
T ReplacePart(ex, [1 => zz, 2 => cc] ) == [zz,cc,[a,b,c,[d,1]]]
## negative indices
T ReplacePart(ex, 1 => zz) == ReplacePart(ex, -3 => zz)
T ReplacePart(ex, [3,4] => zz) == ReplacePart(ex, [-1,-1] => zz)
## Replace head
T ReplacePart(ex, 0 => zz) == zz([1,2],[3,4],[a,b,c,[d,1]])
T ReplacePart(ex, 0 => zz(x)) == zz(x)([1,2],[3,4],[a,b,c,[d,1]])
T ReplacePart(ex, [3,4,0] => gg) == [[1,2],[3,4],[a,b,c,gg(d,1)]]
## ReplacePart as operator
T ReplacePart([2,2] => zz)(ex) == [[1,2],[3,zz],[a,b,c,[d,1]]]
## ReplacePart returns an altered copy
T ex == [[1,2],[3,4], [a,b,c,[d,1]]]
## Delayed rule evaluates rhs every time
rop = ReplacePart([2,2] => RandomReal())
ropd = ReplacePart([2,2] .> RandomReal())
T rop(ex) == rop(ex)
T ! BooleanQ(ropd(ex) == ropd(ex))
## fix inconsistency in Set(Part,...) : typeof(mx) == Mxpr{sym1} and mx.head=sym2 and sym1 != sym2
ex = [[1,2],[3,4], [a,b,c,[d,1]]]
ex[3,4,0] = ff
T Head(ex[3,4]) == ff
## Before bug fix, following returned True
T ListQ(ex[3,4]) == False
## Not sure if we want this, but it is current behavior.
## tests avoiding comparing :a to zero
ex = [[1, 2], [3, 4], [a, b, c, [d, 1]]]
ex[3, 4, 2] = J(Dict(:a => "cat"))
ex[3, 4, 2, a] == "cat"
## Getting and setting at index 0
ClearAll(ex, f, g, z)
ex = f(1, 2, 3)
T ex[0] == f
## Issue #138
ex[0] = g
T ex == g(1, 2, 3)
## Issue #137
T If(BigIntInput(), 1[0] == BigInt, 1[0] == Int64 || 1[0] == Int32)
T z[0] == Symbol
Apply(ClearAll,UserSyms())
| Objective-J | 4 | UnofficialJuliaMirrorSnapshots/Symata.jl-a906b1d5-d016-55c4-aab3-8a20cba0db2a | symata_test/part_test.sj | [
"MIT"
] |
package com.baeldung.spring.cloud.connectors.heroku.product;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
@Service
@Transactional(readOnly = true)
public class ProductService {
private final ProductRepository productRepository;
@Autowired
public ProductService(ProductRepository productRepository) {
this.productRepository = productRepository;
}
public Optional<Product> findProductById(Long productId) {
return productRepository.findById(productId);
}
@Transactional(propagation = Propagation.REQUIRED)
public Product createProduct(Product product) {
Product newProduct = new Product();
newProduct.setSku(product.getSku());
return productRepository.save(newProduct);
}
}
| Java | 4 | DBatOWL/tutorials | spring-cloud/spring-cloud-connectors-heroku/src/main/java/com/baeldung/spring/cloud/connectors/heroku/product/ProductService.java | [
"MIT"
] |
-- Copyright 2014-2015 The Howl Developers
-- License: MIT (see LICENSE.md at the top-level directory of the distribution)
timer = howl.timer
{:get_monotonic_time} = require 'ljglibs.glib'
describe 'timer', ->
setup -> set_howl_loop!
describe 'asap(f, ...)', ->
it 'invokes <f> once as part of the next main loop iteration', (done) ->
timer.asap async ->
done!
it 'passes along any additional arguments as is', (done) ->
callback = async (...) ->
assert.same { 'one', nil, 3 }, { ... }
done!
timer.asap callback, 'one', nil, 3
describe 'after_exactly(seconds, f, ...)', ->
it 'invokes <f> once after approximately <seconds>', (done) ->
start = get_monotonic_time!
timer.after_exactly 0.2, async ->
elapsed = (get_monotonic_time! - start) / 1000
assert.is_near 200, elapsed, 10
done!
describe 'after_approximately(seconds, f, ...)', ->
it 'invokes <f> once after approximately <seconds>', (done) ->
settimeout 2
start = get_monotonic_time!
timer.after_approximately 1, async ->
elapsed = (get_monotonic_time! - start) / 1000
assert.is_near 1000, elapsed, 250
done!
describe 'cancel(handle)', ->
it 'cancels an asap timer', (done) ->
invoked = false
handle = timer.asap async -> invoked = true
timer.cancel handle
timer.after 0.05, async ->
assert.is_false invoked
done!
it 'cancels an after_exactly timer', (done) ->
invoked = false
handle = timer.after_exactly 0.05, async -> invoked = true
timer.cancel handle
timer.after 0.1, async ->
assert.is_false invoked
done!
it 'cancels an after_approximately timer', (done) ->
settimeout 2
invoked = false
handle = timer.after_approximately 0.5, async -> invoked = true
timer.cancel handle
timer.after 1.0, async ->
assert.is_false invoked
done!
| MoonScript | 5 | jasperpilgrim/howl | spec/timer_spec.moon | [
"MIT"
] |
\chapter{图}
无向图的节点定义如下:
\begin{Code}
// 无向图的节点
struct UndirectedGraphNode {
int label;
vector<UndirectedGraphNode *> neighbors;
UndirectedGraphNode(int x) : label(x) {};
};
\end{Code}
\section{Clone Graph} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\label{sec:clone-graph}
\subsubsection{描述}
Clone an undirected graph. Each node in the graph contains a \code{label} and a list of its \code{neighbours}.
OJ's undirected graph serialization:
Nodes are labeled uniquely.
We use \code{\#} as a separator for each node, and \code{,} as a separator for node label and each neighbour of the node.
As an example, consider the serialized graph \code{\{0,1,2\#1,2\#2,2\}}.
The graph has a total of three nodes, and therefore contains three parts as separated by \code{\#}.
\begin{enumerate}
\item First node is labeled as 0. Connect node 0 to both nodes 1 and 2.
\item Second node is labeled as 1. Connect node 1 to node 2.
\item Third node is labeled as 2. Connect node 2 to node 2 (itself), thus forming a self-cycle.
\end{enumerate}
Visually, the graph looks like the following:
\begin{Code}
1
/ \
/ \
0 --- 2
/ \
\_/
\end{Code}
\subsubsection{分析}
广度优先遍历或深度优先遍历都可以。
\subsubsection{DFS}
\begin{Code}
// LeetCode, Clone Graph
// DFS,时间复杂度O(n),空间复杂度O(n)
class Solution {
public:
UndirectedGraphNode *cloneGraph(const UndirectedGraphNode *node) {
if(node == nullptr) return nullptr;
// key is original node,value is copied node
unordered_map<const UndirectedGraphNode *,
UndirectedGraphNode *> copied;
clone(node, copied);
return copied[node];
}
private:
// DFS
static UndirectedGraphNode* clone(const UndirectedGraphNode *node,
unordered_map<const UndirectedGraphNode *,
UndirectedGraphNode *> &copied) {
// a copy already exists
if (copied.find(node) != copied.end()) return copied[node];
UndirectedGraphNode *new_node = new UndirectedGraphNode(node->label);
copied[node] = new_node;
for (auto nbr : node->neighbors)
new_node->neighbors.push_back(clone(nbr, copied));
return new_node;
}
};
\end{Code}
\subsubsection{BFS}
\begin{Code}
// LeetCode, Clone Graph
// BFS,时间复杂度O(n),空间复杂度O(n)
class Solution {
public:
UndirectedGraphNode *cloneGraph(const UndirectedGraphNode *node) {
if (node == nullptr) return nullptr;
// key is original node,value is copied node
unordered_map<const UndirectedGraphNode *,
UndirectedGraphNode *> copied;
// each node in queue is already copied itself
// but neighbors are not copied yet
queue<const UndirectedGraphNode *> q;
q.push(node);
copied[node] = new UndirectedGraphNode(node->label);
while (!q.empty()) {
const UndirectedGraphNode *cur = q.front();
q.pop();
for (auto nbr : cur->neighbors) {
// a copy already exists
if (copied.find(nbr) != copied.end()) {
copied[cur]->neighbors.push_back(copied[nbr]);
} else {
UndirectedGraphNode *new_node =
new UndirectedGraphNode(nbr->label);
copied[nbr] = new_node;
copied[cur]->neighbors.push_back(new_node);
q.push(nbr);
}
}
}
return copied[node];
}
};
\end{Code}
\subsubsection{相关题目}
\begindot
\item 无
\myenddot
| TeX | 5 | yuliping/LeetCode | C++/chapGraph.tex | [
"BSD-3-Clause"
] |
/*
Copyright © 2011 MLstate
This file is part of Opa.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
/**
* A Markdown implementation
*
* @author Nicolad Glondu, 2011
* @category TOOL
* @destination PUBLIC
* @stability EXPERIMENTAL
* @version 0.1
*/
package stdlib.tools.markdown
/**
* {1 About this module}
*
* Simple Markdwon implementation
* See http://daringfireball.net/projects/markdown/
* to learn more about Markdown.
*
* What you can do:
* - Create titles (both styles)
* - Insert links (both styles)
* - Insert images (both styles)
* - Make an simple or a strong emphasis (both ways: _ or *)
* - Make simple emphasis inside a strong one
* - Make strong emphasis inside a simple one
* - Write lists (ul or ol) with elements on one or more lines
* - Insert code (both ways: block or inside ``)
* - Insert quotes containing anything supported (including other quotes)
* - Insert linebreaks
* - Insert linefeeds
*
* What you cannot do:
* - Put any effect inside a title
* - Put any effect inside a link
* - Put any effect inside a emphasis
* - Put lists inside of lists
* - Put a title inside a lists
* - Put a block of code inside a list
*
*/
type Markdown.private.image =
{ alt : string
title : option(string)
uri : string }
/ { alt : string
img_id : string }
type Markdown.private.ref =
{ uri : string
title : option(string) }
type Markdown.private.link =
{ text : string
title : option(string)
uri : string }
/ { text : string
link_id : string }
type Markdown.private.sub_emph = {e_strong:string}/{e_text:string}
type Markdown.private.sub_strong = {s_emph:string}/{s_text:string}
type Markdown.private.content_part =
{ text : string }
/ { emph : list(Markdown.private.sub_emph) }
/ { strong : list(Markdown.private.sub_strong) }
/ { code : string }
/ { link : Markdown.private.link } // [example](http://url.com/ "Title")
/ { image : Markdown.private.image } // 
/ { br }
type Markdown.private.content = list(Markdown.private.content_part)
type Markdown.private.list_type = { bullet } / { number }
type Markdown.private.block =
{ header : int /** Level (h1-h6) */
content : Markdown.private.content }
/ { paragraph : Markdown.private.content }
/ { blockquote : list(Markdown.private.block) }
/ { list : Markdown.private.list_type
elements : list(Markdown.private.content) }
/ { code : string }
/ { hr }
type @abstract Markdown.t = {
blocks : list(Markdown.private.block)
refs : stringmap(Markdown.private.ref)
}
type Markdown.options = {
detect_text_links : bool
}
/**
* A section in the hierarchical model of the Markdown document.
*
* It consists of a markdown representation of section's title and
* its content (see type below).
*/
type Markdown.Hierarchical.section =
{ title : Markdown.t
; content : Markdown.Hierarchical.t
}
/**
* A hierarchical representation of a Markdown document.
* Consists of a prelude (text before the start of any section)
* and then a list of blocks, which are chapters/sections/...
* depending on the depth in the tree.
* Together with [Markdown.Hierarchical.section] this type models
* a tree structure of the document.
*/
type Markdown.Hierarchical.t =
{ prelude : Markdown.t
; blocks : list(Markdown.Hierarchical.section)
}
Markdown = {{
/**
* Export functions
*/
/* A simple linebreak in output file */
@private break =
<>
</>
@private aux_link(refs:stringmap(Markdown.private.ref))(l:Markdown.private.link) =
match l with
| ~{text title={some=title} uri} ->
<a href="{uri}" title="{title}">{text}</a>
| ~{text title={none} uri} ->
<a href="{uri}">{text}</a>
| ~{text link_id} ->
match StringMap.get(link_id, refs) with
| {some=~{uri title={some=title}}} ->
<a href="{uri}" title="{title}">{text}</a>
| {some=~{uri title={none}}} ->
<a href="{uri}">{text}</a>
| {none} ->
<>[{text}][{link_id}]</>
@private aux_image(refs:stringmap(Markdown.private.ref))(i:Markdown.private.image) =
match i with
| ~{alt title={some=title} uri} ->
<img alt="{alt}" src="{uri}" title="{title}"/>
| ~{alt title={none} uri} ->
<img alt="{alt}" src="{uri}"/>
| ~{alt img_id} ->
match StringMap.get(img_id, refs) with
| {some=~{uri title={some=title}}} ->
<img alt="{alt}" src="{uri}" title="{title}"/>
| {some=~{uri title={none}}} ->
<img alt="{alt}" src="{uri}"/>
| {none} ->
<>![{alt}][{img_id}]</>
@private auto_link(src:string):xhtml =
blanck = parser c=[ \t\n] -> c
chr = parser c=(!blanck .) -> c
create_link(text:text) =
link = Text.to_string(text)
<a target="_blank" href="{link}">{link}</a>
link = parser
| lnk=("http://" chr*) -> create_link(lnk)
| lnk=("https://" chr*) -> create_link(lnk)
| lnk=("ftp://" chr*) -> create_link(lnk)
text = parser t=((!link .)*) -> <>{t}</>
link_text = parser l=link t=text -> <>{l}{t}</>
main_parse = parser
| t=text lt=link_text* -> <>{t}{lt}</>
| lt=link_text* -> <>{lt}</>
| lt=link_text* l=link -> <>{lt}{l}</>
Parser.parse(main_parse, src)
@private aux_content(opt:Markdown.options, refs:stringmap(Markdown.private.ref))(c:Markdown.private.content) =
e_sub(pp) =
match pp:Markdown.private.sub_emph with
| ~{e_text} -> <>{e_text}</>
| ~{e_strong} -> <strong>{e_strong}</strong>
s_sub(pp) =
match pp:Markdown.private.sub_strong with
| ~{s_text} -> <>{s_text}</>
| ~{s_emph} -> <em>{s_emph}</em>
sub(p:Markdown.private.content_part) =
match p with
| ~{text} -> if opt.detect_text_links then <>{auto_link(text)}</>
else <>{text}</>
| ~{emph} ->
<em>{List.fold((elt, acc -> acc <+> e_sub(elt)), emph, <></>)}</em>
| ~{strong} ->
<strong>{List.fold((elt, acc -> acc <+> s_sub(elt)), strong, <></>)}</strong>
| ~{code} -> <code>{code}</code>
| ~{link} -> aux_link(refs)(link)
| ~{image} -> aux_image(refs)(image)
| {br} -> <br/>;
<>{List.fold((elt,acc -> acc <+> sub(elt)), c, <></>)}</>
@private rec aux_block(opt:Markdown.options, refs:stringmap(Markdown.private.ref))(b:Markdown.private.block) =
aux_cont = aux_content(opt, refs)
match b with
| ~{header content} ->
c = aux_cont(content)
match header with
| 1 -> <h1>{c}</h1>
| 2 -> <h2>{c}</h2>
| 3 -> <h3>{c}</h3>
| 4 -> <h4>{c}</h4>
| 5 -> <h5>{c}</h5>
| 6 -> <h6>{c}</h6>
| x -> if x<1 then <h1>{c}</h1> else <h6>{c}</h6>
end
| ~{paragraph} ->
<p>{aux_cont(paragraph)}</p>
| ~{blockquote} ->
<blockquote>
{List.fold(
elt, acc ->
acc <+> break <+> aux_block(opt, refs)(elt),
blockquote,<></>)}
</blockquote>
| ~{list elements} ->
elts = List.fold(
el, acc ->
acc <+> break <+> <li>{aux_cont(el)}</li>,
elements, <></>)
match list with
| {bullet} -> <ul>{elts}</ul>
| {number} -> <ol>{elts}</ol>
end
| ~{code} ->
<pre><code>{code}</code></pre>
| {hr} -> <hr/>
@private rec check_title(pos,max,str,res:option(int)):option(int) =
if pos < max then
c = String.substring_unsafe(pos,1,str)
if pos == 0 then
if c == "=" then check_title(pos+1,max,str,some(1))
else if c == "-" then check_title(pos+1,max,str,some(2))
else none
else match (c,res) with
| ("=",{some=1}) -> check_title(pos+1,max,str,res)
| ("-",{some=2}) -> check_title(pos+1,max,str,res)
| _ -> none
else res
/**
* Import functions
*/
@private prepare_parts(parts) =
add_acc(acc,res) =
if acc == [] then res
else List.add({tmp_block=List.rev(acc)},res)
is_special_blank(line) =
test = parser bq_white eol=eol -> eol
Parser.try_parse(test, line) |> Option.is_some
List.fold(
line, (acc,pline,res) ->
ll = String.strip_right(line)
len = String.length(ll)
match check_title(0,len,ll,none) with
| {some=1} ->
pline = String.strip_right(pline)
if pline == "" then (acc,line,res)
else
res = add_acc(acc,res)
res = List.add({tmp_header=(1,pline)}, res)
([],"",res)
| {some=2} ->
pline = String.strip_right(pline)
if pline == "" && len < 3 then (acc,line,res)
else
res = add_acc(acc,res)
res =
if pline == "" then List.add({tmp_hr=ll}, res)
else List.add({tmp_header=(2,pline)}, res)
([],"",res)
| _ ->
acc =
if pline == "" then acc
else List.add(pline,acc)
if ll == "" && not(is_special_blank(line)) then
([],"",add_acc(acc,res))
else (acc,line,res),
parts, ([],"",[]))
|> (acc, pline, res) ->
acc = if pline == "" then acc else List.add(pline,acc)
add_acc(acc,res)
|> List.rev
|> List.fold(
elt, (prev,res) ->
match prev with
| {none} -> (some(elt), res)
| {some=pr} ->
match (pr,elt) with
| ({tmp_hr=h},{tmp_hr=_}) ->
(none, List.add({tmp_header=(2,h)}, res))
| _ ->
(some(elt), List.add(pr,res)),
_, (none,[]))
|> (prev,res) ->
match prev with
| {none} -> res
| {some=pr} -> List.add(pr,res)
|> List.rev
@private tts = Text.to_string
@private sp = parser c=[ \t] -> c
@private not_sp = parser c=(!sp .) -> c
@private not_cbracket = parser c=(!"]" .) -> c
@private not_dquote = parser c=(![\"] .) -> c
@private title = parser "\"" ttl=(not_dquote*) "\"" -> tts(ttl)
@private bq_white = parser
| " " -> {}
| "\t" -> {}
@private eol = parser endline=(.*) -> tts(endline)
@private detect_specials(parts) =
start = parser
| " " -> {}
| " " -> {}
| " " -> {}
| "" -> {}
header = parser
| "######" -> 6
| "#####" -> 5
| "####" -> 4
| "###" -> 3
| "##" -> 2
| "#" -> 1
special = parser
| bq_white eol=eol -> {tmp_code=eol}
| start ">" " "? eol=eol -> {tmp_blockquote=[eol]}
| start lvl=header eol=eol -> {tmp_header=(lvl,eol)}
| start "[" ref=(not_cbracket*) "]:" sp* lnk=(not_sp*) sp* ttl=title? sp* ->
{tmp_ref=(tts(ref),tts(lnk),ttl)}
| start [-*+] sp* eol=eol -> {tmp_list=({bullet},[[eol]])}
| start [0-9]+ "." sp* eol=eol -> {tmp_list=({number},[[eol]])}
| eol=eol -> {tmp_block=[eol]}
add_cur((cur,acc)) =
if cur == {tmp_block=[]} then acc
else List.add(cur,acc)
List.map(
part ->
match part with
| {tmp_block=l} ->
List.fold(
line, (cur,acc) ->
sp = Parser.parse(special, line)
match (sp,cur) with
| ({tmp_block=b},{tmp_block=bb}) ->
({tmp_block=List.append(bb,b)}, acc)
| ({tmp_code=c}, {tmp_code=cc}) ->
({tmp_code="{cc}\n{c}"}, acc)
| ({tmp_blockquote=l}, {tmp_blockquote=ll}) ->
({tmp_blockquote=List.append(ll,l)}, acc)
| ({tmp_list=(t,l)}, {tmp_list=(tt,ll)}) ->
if t == tt then ({tmp_list=(t, List.append(l,ll))}, acc)
else (sp, add_cur((cur,acc)))
| ({tmp_code=c}, {tmp_list=(t,l)}) ->
if l == [] then (sp, add_cur((cur,acc)))
else
last = List.add(c, List.head(l))
({tmp_list=(t, List.add(last,List.tail(l)))}, acc)
| _ -> (sp, add_cur((cur,acc))),
l, ({tmp_block=[]},[]) )
|> add_cur |> List.rev
| _ -> [part],
parts) |> List.flatten
@private process_parts(p) =
prepare_parts(p)
|> detect_specials
@private generic_multiple(unit:Parser.general_parser('a), not_elt_fun:string->'a):Parser.general_parser(list('a)) =
not_elt = parser res=((!unit .)*) -> not_elt_fun(tts(res))
elts = parser e1=unit e2=not_elt -> [e1,e2]
parser start=not_elt? body=elts* stop=unit? ->
start = match start with {some=e} -> [[e]] | {none} -> []
stop = match stop with {some=e} -> [[e]] | {none} -> []
List.append(start, List.append(body, stop)) |> List.flatten
@private allowed = parser c=[ \t\n.,] -> c
@private star_end = parser c=(![ \t*] . "*" allowed) -> c
@private not_star = parser c=(!star_end .) -> c
@private not_dstar = parser c=(!(not_sp "**") .) -> c
@private under_end = parser c=(![ \t_] . "_" allowed) -> c
@private not_under = parser c=(!under_end .) -> c
@private not_dunder = parser c=(!(not_sp "__") .) -> c
@private strong(fun) = parser
| "**" c=(not_sp) "**" -> fun(tts(c))
| "**" c=(not_sp not_dstar* not_sp) "**" -> fun(tts(c))
| "__" c=(not_sp) "__" -> fun(tts(c))
| "__" c=(not_sp not_dunder* not_sp) "__" -> fun(tts(c))
@private emph(fun) = parser
| "*" c=(not_sp) "*" -> fun(tts(c))
| "*" c=(not_sp not_star* not_sp) "*" -> fun(tts(c))
| "_" c=(not_sp) "_" -> fun(tts(c))
| "_" c=(not_sp not_under* not_sp) "_" -> fun(tts(c))
@private addr(f1,f2) =
not_sp_par = parser c=(![ \t)] .) -> c
parser
| "[" txt=(not_cbracket*) "]" sp* "(" sp* lnk=(not_sp_par*) sp* ttl=title? ")" ->
f1(tts(txt), tts(lnk), ttl)
| "[" txt=(not_cbracket*) "]" sp* "[" ref=(not_cbracket*) "]" ->
f2(tts(txt), tts(ref))
@private prepare_content(src:string) =
not_bquot = parser
| "\\`" -> "`"
| c=(![`] .) -> tts(c)
sub_strong:Parser.general_parser(list(Markdown.private.sub_strong)) =
strong_elt = emph(t->{s_emph=t})
generic_multiple(strong_elt, (t->{s_text=t}))
sub_emph:Parser.general_parser(list(Markdown.private.sub_emph)) =
emph_elt = strong(t->{e_strong=t})
generic_multiple(emph_elt, (t->{e_text=t}))
elt =
strong_parse = strong(t -> {strong=Parser.parse(sub_strong,t)})
emph_parse = emph(t -> {emph=Parser.parse(sub_emph,t)})
img_parse = addr((alt,uri,title -> ~{alt uri title}),
(alt, img_id -> ~{alt img_id}))
link_parse = addr((text,uri,title -> ~{text uri title}),
(text, link_id -> ~{text link_id}))
parser
| " \n" -> {br}
| "`" code=not_bquot* "`" -> {code=String.concat("",code)}
| strong=strong_parse -> strong
| emph=emph_parse -> emph
| "!" img=img_parse -> {image=img}
| lnk=link_parse -> {link=lnk}
main = generic_multiple(elt, (t->{text=t}))
Parser.parse(main,src):Markdown.private.content
help_string = "
You can enter a message using a Markdown-like syntax.
Here is a list of all elements recognized.
## Paragraph
A group of text isolated by two or more linebreaks will be put
in a HTML paragraph <p>.
## Titles
You can enter titles using various syntax:
First level title
=================
will create:
First level title
=================
and
Second level title
------------------
will create:
Second level title
-----------------
You can also create titles by preceding text with as many `#` as the
level of the title, so
#### Title 4
will create:
#### Title 4
## Emphasis
You may want to put emphasis on some words in your texts.
You can do a *simple emphasis* by surrounding some text with
`*` or `_`: `*text*` will give in result *text*.
To put a **strong emphasis** on something, you can surround it with
`**` or `__`: `__text__` will give in result __text__.
You can put *a **strong emphasis** inside a simple one* or
__a _simple emphasis_ inside a strong one__.
## Lists
You can insert simple bullet lists simply by putting each element in
a line starting by a `-`, a `+` or a `*`. Mixing symbols will not create
different lists unless there is a blank line in the middle:
- one
- two
* three
+ four
will result in:
- one
- two
* three
+ four
If you want to put a linebreak in your source to avoid very long lines, you
can put four spaces or a tabulation at the beginning of your line to keep the
content as one list element:
- one
two
- three
four
will result in:
- one
two
- three
four
To insert numbered lists, you can follow the same rules and start your lines
with a number followed by a period. The numbers do not have to follow a logical
suit to be recognized:
1. one
two
3. three
42. four
444. five
will result in:
1. one
two
3. three
42. four
444. five
## Links
You can insert links inside your text in two ways:
some text [Inline-style](https://mlstate.com \"MLstate\") more text
or
some text [Reference-style][mlstate] some random text
[mlstate]: https://mlstate.com \"MLstate\"
In both cases, the title `(\"MLstate\")` is optional. The result of the above is:
some text [Inline-style](https://mlstate.com \"MLstate\") more text
or
some text [Reference-style][mlstate] some random text
[mlstate]: https://mlstate.com \"MLstate\"
Note that references are case-sensitive and can be used for several links.
## Images
Image insertion uses the same syntax than inserting links preceded by a `!`:

![HTML5][html5]
[html5]: http://www.w3.org/html/logo/badge/html5-badge-h-solo.png \"HTML5\"
both result in:

![HTML5][html5]
[html5]: http://www.w3.org/html/logo/badge/html5-badge-h-solo.png \"HTML5\"
You can use the same reference for a link and an image (referencing the same URL).
## Code
There are two ways of inserting code inside your text.
Firstly, you can surround it with `\\``, so `\\`some code\\`` will
result in `some code`.
You can also indent a paragraph with at least four spaces or a tabulation:
rec fact(x) =
if x < 1 then 1
else x * fact(x-1)
will result in:
rec fact(x) =
if x < 1 then 1
else x * fact(x-1)
## Quote
You can insert a quote in you texts by preceding it with `>`. You
can put a quote inside a quote:
> > An indented quote
> A standard quote
will result in:
> > An indented quote
> A standard quote
## Other
You can insert an html line break (`<br/>`) by putting two spaces at
the end of the line.
You can insert a horizontal line by writing a line containing only
the character `-` preceded by an empty line (otherwise it would result
in a second-level header).
--------------
Some text
with a linebreak
will result in:
--------------
Some text
with a linebreak
"
help_xhtml = xhtml_of_string(default_options, help_string)
@private @client toggle_help(src_id, res_id)(_) =
do Dom.toggle(#{src_id})
do Dom.toggle(#{res_id})
void
/**
* End user functions
*/
/**
* Default options for Markdown parser
*/
default_options = {
detect_text_links = false
} : Markdown.options
/**
* Transforms a string into a Markdown element
*
* @param opt Markdown configuration
* @param src Source string
*/
@server of_string(_opt:Markdown.options, src:string):Markdown.t =
src = "{src} "
parts = String.replace("\r", "", src)
|> String.explode_with("\n", _, false)
|> process_parts
process_tmp_block(b):Markdown.private.content =
String.concat("\n",b)
|> prepare_content
se = StringMap.empty
rec endprocess(parts) : Markdown.t =
(blocks, refs) = List.map(
tmp_elt ->
match tmp_elt with
| {tmp_block=b} -> ([{paragraph=process_tmp_block(b)}], se)
| {tmp_code=c} -> ([{code=c}], se)
| {tmp_header=(n,t)} -> ([{header=n content=[{text=t}]}], se)
| {tmp_hr=_} -> ([{hr}], se)
| {tmp_ref=(r,l,t)} -> ([], StringMap.singleton(r, {uri=l title=t}))
| {tmp_list=(list,elements)} ->
elements =
List.map(
elts -> process_tmp_block(List.rev(elts)),
List.rev(elements)
)
([~{list elements}],se)
| {tmp_blockquote=b} ->
subparts = process_parts(b)
~{blocks refs} = endprocess(subparts)
([{blockquote=blocks}], refs),
parts) |> List.unzip
blocks = List.flatten(blocks)
refs = List.fold(StringMap.union, refs, se)
~{blocks refs}
endprocess(parts)
/**
* Transforms a Markdown element into xhtml
*
* @param opt Markdown configuration
* @param src Markdown source element
*/
@server to_xhtml(opt:Markdown.options, src:Markdown.t) =
List.fold(
elt, acc ->
acc <+> break <+> aux_block(opt, src.refs)(elt),
src.blocks, <></>)
/**
* Directly transforms a Markdown source text into xhtml
* It is in fact nothing more than a [of_string] followed by a
* [to_xhtml].
*
* @param opt Markdown configuration
* @param src Source string
*/
@server xhtml_of_string(opt:Markdown.options, src:string):xhtml =
of_string(opt, src) |> to_xhtml(opt, _)
// maybe use WNotification widget?
// Nico G says : NO
// WNotification (implementation based on default one):
// - Open dialog: 16 requests
// - Close dialog: 42 request
// Manually: 0 request to open or close the dialog \o/
// Adam says: no reason for \o/, we should improve WNotification widget instead of not using it!
/**
* Main element of the Markdown help display
* Note that this does not show anything (you can add a CSS entry
* to hide markdown_help to be sure of this). Once placed in a page,
* use a [help_button] to add a button that will allow the user to
* see this help.
*
* @param id Identifier of the help element
*/
help_div(id) =
src_id = "{id}_source"
res_id = "{id}_result"
bg_style = css {
position: fixed;
z-index:2000;
top:0; left:0;
width:100%; height:100%;
background: #888;
opacity:0.7;
}
help_style = css {
position: fixed;
width: 560px;
z-index: 2001;
top: 50px;
background: white;
padding: 0;
border-radius: 6px;
}
header_style = css {
border-bottom:1px solid #eee;
padding: 5px 20px;
height:80px;
}
body_style = css {
padding: 20px;
height:450px;
overflow: auto;
}
<div style="display:none;" id=#{id} class="markdown_help">
<div class="markdown-bg" style={bg_style} onclick={_->Dom.hide(#{id})}></div>
<div style={help_style} class="markdown">
<div class="markdown-header" style={header_style}>
<h3>Markdown Syntax Help</h3>
<p>This help is written using this syntax.
To toggle between source and result <a onclick={toggle_help(src_id, res_id)}>click here</a>.
<br/>To close this help click outside.</p>
</div>
<div class="markdown-body" style={body_style}>
<div id=#{res_id}>{help_xhtml}</div>
<pre style="display:none;" id=#{src_id}>{help_string}</pre>
</div>
</div>
</div>
@private @client do_expand(id) =
do Dom.show(#{id})
bg_sel = "{id} .markdown-bg"
content_sel = "{id} .markdown"
body_sel = "{id} .markdown-body"
win_width = Dom.get_outer_width(#{bg_sel})
win_height = Dom.get_outer_height(#{bg_sel})
left = (win_width - 560)/2
height = win_height - 100
style = [ {height={px=height}}, {left={px=left}} ]
do Dom.set_style(#{content_sel}, style)
do Dom.set_style(#{body_sel}, [{height={px=(height-140)}}])
void
/**
* Displays a button to show Markdown help
* Note that there MUST be a [help_div] somewhere in the page for this
* to actually show something.
*
* @param id Identifier of the help element
* @param content Content of the link
*/
help_button(id, content:xhtml) =
<a class="markdown_help_button" onclick={_->do_expand(id)}>{content}</a>
/**
* This function builds a hierarchical representation (something one would
* use for instance to generate a Table of contents) of a given Markdown
* document.
*
* @param src a markdown document to analyze
* @param levels number of header levels to analyze; all headers after that
* level will be considered just a part of the running text. That
* means that the depth of the resulting document tree will be equal
* to the value of that parameter.
* @return a tree representation of the Markdown document (think: 'Table of
* contents').
*/
to_hierarchical(src : Markdown.t, levels : int) : Markdown.Hierarchical.t =
mk_paragraph(paragraph) =
{ src with blocks=[{~paragraph}] }
split_at_lvl(level, blocks) =
header =
| {header=hd_lvl content=_} -> hd_lvl == level
| _ -> false
match List.index_p(header, blocks) with
| {none} -> (blocks, [])
| {some=i} -> List.split_at(blocks, i)
rec process(level, blocks) =
if level > levels then
{ prelude = {src with ~blocks}
; blocks = []
}
else
(prelude_blocks, rest) = split_at_lvl(level, blocks)
rec aux(blocks) : list(Markdown.Hierarchical.section) =
match blocks with
| [] -> []
| [{header=_ ~content} | rest] ->
(this, next) = split_at_lvl(level, rest)
this_section =
{ title=mk_paragraph(content)
; content=process(level+1, this)
} : Markdown.Hierarchical.section
[this_section | aux(next)]
| _ -> error("Markdown.to_hierarchical :: should not happen...")
{ prelude={ src with blocks=prelude_blocks }
; blocks=aux(rest)
}
process(1, src.blocks)
}}
| Opa | 5 | Machiaweliczny/oppailang | lib/stdlib/tools/markdown/markdown.opa | [
"MIT"
] |
(set *timestamp* 0)
(define assq
{ A --> (list (A * B)) --> (maybe B) }
X [(@p X Y) | _] -> [just Y]
X [_ | Ps] -> (assq X Ps)
_ [] -> nothing)
(define maybe
{ B --> (A --> B) --> (maybe A) --> B }
D F nothing -> D
_ F [just X] -> (F X))
(define reified-name?
{ string --> boolean }
(@s "_" "." _) -> true
_ -> false)
(define mk-variable?
{ symbol --> boolean }
V -> true where (or (variable? V) (reified-name? (str V)))
_ -> false)
(define var
{ variable --> var }
V -> (let T (value *timestamp*)
(do (set *timestamp* (+ T 1))
(@p V T))))
(define empty-s
{ --> (list (substitution A)) }
-> [])
(define ext-s
{ var --> A --> (list (substitution A)) --> (list (substitution A))}
X V S -> [(@p X V) | S])
(define wvar
{ var --> (walkable A) }
V -> V)
(define create-var
{ variable --> (walkable A) }
V -> (wvar (var V)))
(define walk
{ (walkable A) --> (pairs A) --> (walkable A) }
(@p V T) S -> (maybe (@p V T) (/. W (walk W S)) (assq (@p V T) S))
W _ -> W)
(define mk-=
{ (walkable A) --> (walkable A) --> boolean }
(@p V _) (@p V _) -> true
V W -> (= V W))
(define mk-unify-
{ (walkable A) --> (walkable A) --> (pairs A) --> (maybe (pairs A)) }
V V S -> [just S]
(@p V T) W S -> [just (ext-s (@p V T) W S)]
V (@p W T) S -> [just (ext-s (@p W T) V S)]
[V | Vs] [W | Ws] S -> (maybe nothing
(mk-unify Vs Ws)
(mk-unify V W S))
V W S -> [just S] where (mk-= V W)
_ _ _ -> nothing)
(define mk-unify
{ (walkable A) --> (walkable A) --> (pairs A) --> (maybe (pairs A)) }
V W S -> (mk-unify- (walk V S) (walk W S) S))
(define mk-occurs-check
{ (walkable A) --> (walkable A) --> (pairs A) --> boolean }
X V S -> (mk-occurs-check- X (walk V S) S))
(define mk-occurs-check-
{ (walkable A) --> (walkable A) --> (pairs A) --> boolean }
(@p V T) (@p V T) S -> true
V [W | Ws] S -> (or (mk-occurs-check V W S)
(mk-occurs-check V Ws S))
_ _ _ -> false)
(define ext-s-check
{ var --> (walkable A) --> (pairs A) --> (maybe (pairs A)) }
(@p V T) W S -> nothing where (mk-occurs-check (@p V T) W S)
(@p V T) W S -> [just (ext-s (@p V T) W S)])
(define mk-unify-check-
{ (walkable A) --> (walkable A) --> (pairs A) --> (maybe (pairs A)) }
V V S -> [just S]
(@p V T) W S -> (ext-s-check (@p V T) W S)
V (@p W T) S -> (ext-s-check (@p W T) V S)
[V | Vs] [W | Ws] S -> (maybe nothing
(mk-unify-check Vs Ws)
(mk-unify-check V W S))
V W S -> [just S] where (mk-= V W)
_ _ _ -> nothing)
(define mk-unify-check
{ (walkable A) --> (walkable A) --> (pairs A) --> (maybe (pairs A)) }
V W S -> (mk-unify-check- (walk V S) (walk W S) S))
(define walk*-
{ (walkable A) --> (pairs A) --> (walkable A) }
(@p V T) S -> (@p V T)
[V | Vs] S -> [(walk* V S) | (walk* Vs S)]
V _ -> V)
(define walk*
{ (walkable A) --> (pairs A) --> (walkable A) }
V S -> (walk*- (walk V S) S))
(define reify-name
{ number --> var }
N -> (var (string->symbol (@s "_" "." (str N)))))
(define reify-s-
{ (walkable A) --> (pairs A) --> (pairs A) }
(@p V T) S -> (let W (reify-name (size-s S))
(ext-s (@p V T) W S))
[V | Vs] S -> (reify-s Vs (reify-s V S))
_ S -> S)
(define reify-s
{ (walkable A) --> (pairs A) --> (pairs A) }
V S -> (reify-s- (walk V S) S))
(define reify
{ (walkable A) --> (walkable A) }
W -> (walk* W (reify-s W (empty-s))))
(define mk-fail
{ A --> (datastream A) }
_ -> [])
(define mk-succeed
{ A --> (datastream A) }
S -> [S])
(define ===
{ (walkable A) --> (walkable A) --> (query A) }
V W S -> (maybe [] mk-succeed (mk-unify V W S)))
(define ===-check
{ (walkable A) --> (walkable A) --> (query A) }
V W S -> (maybe [] mk-succeed (mk-unify-check V W S)))
(define map-inf
{ (maybe number)
--> ((pairs A) --> (walkable A))
--> (datastream (pairs A))
--> (list (walkable A)) }
_ _ [] -> []
_ P [X] -> [(P X)]
nothing P (@p X F) -> [(P X) | (map-inf nothing P (thaw F))]
[just N] P (@p X F) -> [(P X) | (map-inf [just (- N 1)] P (thaw F))]
where (> N 1)
_ P (@p X F) -> [(P X)])
(define mk-bind
{ (datastream A) --> (A --> (datastream B)) --> (datastream B) }
[] G -> []
[X] G -> (G X)
(@p X F) G -> (mplus (G X) (freeze (mk-bind (thaw F) G))))
(define mplus
{ (datastream A) --> (lazy (datastream A)) --> (datastream A) }
[] G -> (thaw G)
[X] G -> (@p X G)
(@p X F) G -> (@p X (freeze (mplus (thaw F) G))))
(define mplusi
{ (datastream A) --> (lazy (datastream A)) --> (datastream A) }
[] F -> (thaw F)
[X] F -> (@p X F)
(@p X F) G -> (@p X (freeze (mplusi (thaw G) F))))
(define mk-bindi
{ (datastream A) --> (A --> (datastream B)) --> (datastream B) }
[] G -> []
[X] G -> (G X)
(@p X F) G -> (mplusi (G X) (freeze (mk-bindi (thaw F) G))))
(defmacro conde-macro
[conde] -> [mk-fail]
[conde [else G | Gs]] -> [all G | Gs]
[conde [G | Gs] | Cs] -> [anye [all G | Gs] [conde | Cs]])
(defmacro anye-macro
[anye G1 G2] -> (let S (gensym (protect S))
[lambdag@ S [mplus [G1 S] [lambdaf@ [G2 S]]]]))
(defmacro alli-macro
[alli] -> [mk-succeed]
[alli G] -> (let S (gensym (protect S))
[lambdag@ S [G S]])
[alli G1 | Gs] -> (let S (gensym (protect S))
[lambdag@ S [mk-bindi [G1 S] [alli | Gs]]]))
(defmacro anyi-macro
[anyi G1 G2] -> (let S (gensym (protect S))
[lambdag@ S [mplusi [G1 S] [lambdaf@ [G2 S]]]]))
(defmacro condi-macro
[condi] -> [mk-fail]
[condi [else G | Gs]] -> [all G | Gs]
[condi [G | Gs] | Cs] -> [anyi [all G | Gs] [condi | Cs]])
(define ifa-impl-
{ (datastream (pairs A)) --> (query A) --> (query A) --> (query A) }
[] G1 G2 S -> (G2 S)
[S] G1 _ _ -> (G1 S)
(@p S F) G1 _ _ -> (mk-bind (@p S F) G1))
(define ifa-impl
{ (query A) --> (query A) --> (query A) --> (query A) }
G0 G1 G2 S -> (ifa-impl- (G0 S) G1 G2 S))
(defmacro ifa-macro
[ifa G0 G1 G2] -> [ifa-impl G0 G1 G2])
(defmacro conda-macro
[conda] -> [mk-fail]
[conda [else G | Gs]] -> [all G | Gs]
[conda [G0 G | Gs] C | Cs] -> [ifa G0 [all G | Gs] [conda C | Cs]])
(define ifu-impl-
{ (datastream (pairs A)) --> (query A) --> (query A) --> (query A) }
[] G1 G2 S -> (G2 S)
[S] G1 G2 _ -> (G1 S)
(@p S F) G1 _ _ -> (G1 S))
(define ifu-impl
{ (query A) --> (query A) --> (query A) --> (query A) }
G0 G1 G2 S -> (ifu-impl- (G0 S) G1 G2 S))
(defmacro ifu-macro
[ifu G0 G1 G2] -> [ifu-impl G0 G1 G2])
(defmacro condu-macro
[condu] -> [mk-fail]
[condu [else G | Gs]] -> [all G | Gs]
[condu [G0 G| Gs] C | Cs] -> [ifu G0 [all G | Gs] [condu C | Cs]])
| Shen | 3 | mthom/shen-minikanren | minikanren.shen | [
"BSD-3-Clause"
] |
# frozen_string_literal: true
class UnencryptedBook < ActiveRecord::Base
self.table_name = "encrypted_books"
end
class EncryptedBook < ActiveRecord::Base
self.table_name = "encrypted_books"
encrypts :name, deterministic: true
end
class EncryptedBookWithDowncaseName < ActiveRecord::Base
self.table_name = "encrypted_books"
validates :name, uniqueness: true
encrypts :name, deterministic: true, downcase: true
end
class EncryptedBookThatIgnoresCase < ActiveRecord::Base
self.table_name = "encrypted_books"
encrypts :name, deterministic: true, ignore_case: true
end
| Ruby | 4 | jstncarvalho/rails | activerecord/test/models/book_encrypted.rb | [
"MIT"
] |
extends Area2D
const MOTION_SPEED = 150
export var left = false
var _motion = 0
var _you_hidden = false
onready var _screen_size_y = get_viewport_rect().size.y
func _process(delta):
# Is the master of the paddle.
if is_network_master():
_motion = Input.get_action_strength("move_down") - Input.get_action_strength("move_up")
if not _you_hidden and _motion != 0:
_hide_you_label()
_motion *= MOTION_SPEED
# Using unreliable to make sure position is updated as fast
# as possible, even if one of the calls is dropped.
rpc_unreliable("set_pos_and_motion", position, _motion)
else:
if not _you_hidden:
_hide_you_label()
translate(Vector2(0, _motion * delta))
# Set screen limits.
position.y = clamp(position.y, 16, _screen_size_y - 16)
# Synchronize position and speed to the other peers.
puppet func set_pos_and_motion(pos, motion):
position = pos
_motion = motion
func _hide_you_label():
_you_hidden = true
get_node("You").hide()
func _on_paddle_area_enter(area):
if is_network_master():
# Random for new direction generated on each peer.
area.rpc("bounce", left, randf())
| GDScript | 4 | jonbonazza/godot-demo-projects | networking/multiplayer_pong/logic/paddle.gd | [
"MIT"
] |
size: 2048px 800px;
dpi: 240;
limit-x: -12 22;
limit-y: -35 55;
axes {
position: bottom left;
}
lines {
data-x: csv("test/testdata/irregular_data1.csv" x);
data-y: csv("test/testdata/irregular_data1.csv" y);
color: 4;
marker-size: 3pt;
}
lines {
data-x: csv("test/testdata/irregular_data2.csv" x);
data-y: csv("test/testdata/irregular_data2.csv" y);
color: 6;
marker-size: 3pt;
}
legend {
position: bottom left;
background: #fff;
item {
label: "Series A";
color: 4;
}
item {
label: "Series B";
color: 6;
}
}
| CLIPS | 4 | asmuth-archive/travistest | test/examples/charts_custom_irregular_data.clp | [
"Apache-2.0"
] |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% This file is part of Logtalk <https://logtalk.org/>
% Copyright (c) 2010, Victor Lagerkvist
% SPDX-License-Identifier: BSD-3-Clause
%
% Redistribution and use in source and binary forms, with or without
% modification, are permitted provided that the following conditions are met:
%
% * Redistributions of source code must retain the above copyright notice, this
% list of conditions and the following disclaimer.
%
% * Redistributions in binary form must reproduce the above copyright notice,
% this list of conditions and the following disclaimer in the documentation
% and/or other materials provided with the distribution.
%
% * Neither the name of the copyright holder nor the names of its
% contributors may be used to endorse or promote products derived from
% this software without specific prior written permission.
%
% THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
% AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
% IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
% DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
% FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
% DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
% SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
% CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
% OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
% OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
:- object(bfs_interpreter,
implements(interpreterp)).
:- info([
version is 1:0:0,
author is 'Victor Lagerkvist',
date is 2010-06-13,
comment is 'Breadth-first interpreter for general logic programs.'
]).
prove(Goal, DB) :-
prove(Goal, -1, DB).
prove(Goal, Limit, DB) :-
State = state([Goal], 0, []),
queue::jump(State, Q0 - Q0, Q),
prove_branch(Q, Limit, DB).
prove_branch(Q, _, _) :-
queue::head(Q, State),
State = state([], _, Bindings), %Goal state.
execute_bindings(Bindings).
prove_branch(Q, Limit, DB) :-
queue::serve(Q, State, Q1),
State = state(Goals, Depth, Bindings),
0 =\= Depth - Limit,
( Goals = [not(G)|Gs] ->
( prove(G, DB) ->
prove_branch(Q1, Limit, DB) %The whole branch failed. Move on!
; Depth1 is Depth + 1,
State1 = state(Gs, Depth1, Bindings),
queue::join(State1, Q1, Q2),
counter::increment, %Inference counting.
prove_branch(Q2, Limit, DB) %and continue with the rest of the branches.
)
; expand_state(State, NewGoals, DB),
queue::join_all(NewGoals, Q1, Q2),
prove_branch(Q2, Limit, DB)
).
expand_state(state([], _, _), [], _) :- !.
expand_state(state([Goal|Goals], Depth0, Bindings), NewGoals, DB) :-
Depth is Depth0 + 1,
%%Find all bodies which unifies with Goal. Since rules are
%%represented as difference lists it is easy to append the
%%new body with Goals. Goal in the template is a placeholder,
%%and is later used in add_bindings/5 to create a unifier
%%between the old goal and the resolvent.
bagof(state(Body, Depth, Goal),
(
rule(Goal, Body, Goals, DB),
counter::increment %Inference counting.
),
NewGoals0),
!,
add_bindings(NewGoals0, Goal, Bindings, NewGoals, []).
expand_state(_, [], _).
add_bindings([], _, _, Tail, Tail).
add_bindings([State0|States0], Goal, Bindings, [State|States], Tail) :-
State0 = state(Goals, Depth, Goal0),
State = state(Goals, Depth, [Goal = Goal0|Bindings]),
add_bindings(States0, Goal, Bindings, States, Tail).
execute_bindings([]).
execute_bindings([X = Y|Bs]) :-
X = Y,
execute_bindings(Bs).
rule(Head, Body, Tail, DB) :-
( Head = {Goal} ->
call(Goal),
Body = Tail
; DB::rule(Head, Body, Tail)
).
:- end_object.
| Logtalk | 5 | PaulBrownMagic/logtalk3 | contributions/verdi_neruda/bfs_interpreter.lgt | [
"Apache-2.0"
] |
Scriptname CAMTEST_OverShoulderME extends activemagiceffect
{Play with camera effects}
;--=== Imports ===--
Import Utility
Import Game
;--=== Properties ===--
Actor Property PlayerRef Auto
ActorBase Property CAMTEST_CameraActor Auto
;--=== Variables ===--
Actor Player
Actor Camera
Actor Target
Float PosX
Float PosY
Float PosZ
Float SpeedMult
ObjectReference Mist
ObjectReference Fog
;--=== Events ===--
Event OnInit()
Player = PlayerRef
EndEvent
Event onEffectStart(Actor akTarget, Actor akCaster)
Camera = Player.PlaceActorAtMe(CAMTEST_CameraActor)
Camera.EnableAI(False)
Camera.SetScale(0.1)
Camera.TranslateTo(Player.X + 40,Player.Y,Player.Z,0,0,0,800,30)
DisablePlayerControls(abMovement = true, abFighting = true, abCamSwitch = true, abLooking = true, abSneaking = true, abMenu = true, abActivate = true, abJournalTabs = false)
SetPlayerAIDriven(True)
ForceThirdPerson()
SetHUDCartMode()
SetInChargen(True, True, False)
SetCameraTarget(Camera)
ForceFirstPerson()
Wait(1)
Camera.SplineTranslateTo(Player.X + 4000,Player.Y,Player.Z + 1000,15,0,Camera.GetHeadingAngle(Player) + Camera.GetAngleZ(),1800,800,100)
; Camera.SetLookAt(Player)
Wait(10)
Camera.SplineTranslateTo(Player.X + 1000,Player.Y - 500,Player.Z + 500,25,0,Camera.GetHeadingAngle(Player) + Camera.GetAngleZ(),1800,800,100)
Wait(10)
SetHUDCartMode(False)
SetCameraTarget(Player)
SetInChargen(False, False, False)
EnablePlayerControls()
SetPlayerAIDriven(False)
EndEvent
Event onUpdate()
EndEvent
Event onEffectFinish(Actor akTarget, Actor akCaster)
EndEvent
;--=== Functions ===--
| Papyrus | 3 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Papyrus/CAMTEST_OverShoulderME.psc | [
"MIT"
] |
const r = await fetch("https://google.com");
console.log(r.status);
| TypeScript | 3 | petamoriken/deno | cli/tests/testdata/deno_land_unsafe_ssl.ts | [
"MIT"
] |
--# -path=.:../abstract:../common
concrete DocumentationTha of Documentation = CatTha ** open
HTML in {
lincat
Inflection = {t : Str; s1,s2 : Str} ;
Definition = {s : Str} ;
Document = {s : Str} ;
Tag = {s : Str} ;
lin
NoDefinition t = {s=t.s};
MkDefinition t d = {s="<p>"++t.s++d.s++"</p>"};
MkDefinitionEx t d e = {s="<p>"++t.s++d.s++"</p><p>"++e.s++"</p>"};
}
| Grammatical Framework | 3 | daherb/gf-rgl | src/thai/DocumentationTha.gf | [
"BSD-3-Clause"
] |
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::Scheduler
#
# A service client - single point of access to the REST API.
#
class SchedulerManagementClient < MsRestAzure::AzureServiceClient
include Azure::ARM::Scheduler::Models
include MsRestAzure
# @return job_collections
attr_reader :job_collections
#
# Creates initializes a new instance of the SchedulerManagementClient class.
# @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
# @param base_url [String] the base URI of the service.
# @param options [Array] filters to be applied to the HTTP requests.
#
def initialize(credentials, base_url = nil, options = nil)
super(credentials, options)
@base_url = base_url || 'https://management.azure.com'
fail ArgumentError, 'credentials is nil' if credentials.nil?
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials)
@credentials = credentials
@job_collections = JobCollections.new(self)
@jobs = Jobs.new(self)
@api_version = '2016-01-01'
@long_running_operation_retry_timeout = 30
@generate_client_request_id = true
if MacOS.version >= :mavericks
version = `#{MAVERICKS_PKG_PATH}/usr/bin/clang --version`
else
version = `/usr/bin/clang --version`
end
version = version[/clang-(\d+\.\d+\.\d+(\.\d+)?)/, 1] || "0"
version < latest_version
end
end
end | Ruby | 4 | sbj42/vscode | extensions/vscode-colorize-tests/test/colorize-fixtures/test.rb | [
"MIT"
] |
17379
1737.9
173.79
17.379
1.7379
16693
1669.3
166.93
16.693
1.6693
16116
1611.6
161.16
16.116
1.6116
15713
1571.3
157.13
15.713
1.5713
11895
1189.5
118.95
11.895
1.1895
10409
1040.9
104.09
10.409
1.0409
10252
1025.2
102.52
10.252
1.0252
9853
985.3
98.53
9.853
9748
974.8
97.48
9.748
9492
949.2
94.92
9.492
9190
919
91.9
9.19
8912
891.2
89.12
8.912
8895
889.5
88.95
8.895
8491
849.1
84.91
8.491
8372
837.2
83.72
8.372
8252
825.2
82.52
8.252
7450
745
74.5
7.45
7360
736
73.6
7.36
7273
727.3
72.73
7.273
7080
708
70.8
7.08
7063
706.3
70.63
7.063
6567
656.7
65.67
6.567
6462
646.2
64.62
6.462
6291
629.1
62.91
6.291
6211
621.1
62.11
6.211
5671
567.1
56.71
5.671
5373
537.3
53.73
5.373
5220
522
52.2
5.22
5167
516.7
51.67
5.167
5007
500.7
50.07
5.007
3963
396.3
39.63
3.963
3895
389.5
38.95
3.895
3796
379.6
37.96
3.796
3481
348.1
34.81
3.481
3200
320
32
3.2
2845
284.5
28.45
2.845
2774
277.4
27.74
2.774
2641
264.1
26.41
2.641
2566
256.6
25.66
2.566
2511
251.1
25.11
2.511
2479
247.9
24.79
2.479
2127
212.7
21.27
2.127
1989
198.9
19.89
1.989
1989
198.9
19.89
1.989
1933
193.3
19.33
1.933
1801
180.1
18.01
1.801
1590
159
15.9
1.59
1385
138.5
13.85
1.385
1370
137
13.7
1.37
1316
131.6
13.16
1.316
1205
120.5
12.05
1.205
1194
119.4
11.94
1.194
1153
115.3
11.53
1.153
1150
115
11.5
1.15
1031
103.1
10.31
1.031
1018
101.8
10.18
1.018
950
95
9.5
931
93.1
9.31
898
89.8
8.98
865
86.5
8.65
822
82.2
8.22
803
80.3
8.03
700
70
7
624
62.4
6.24
559
55.9
5.59
541
54.1
5.41
523
52.3
5.23
495
49.5
4.95
456
45.6
4.56
414
41.4
4.14
386
38.6
3.86
375
37.5
3.75
348
34.8
3.48
344
34.4
3.44
327
32.7
3.27
288
28.8
2.88
272
27.2
2.72
263
26.3
2.63
253
25.3
2.53
251
25.1
2.51
248
24.8
2.48
224
22.4
2.24
222
22.2
2.22
213
21.3
2.13
201
20.1
2.01
184
18.4
1.84
176
17.6
1.76
166
16.6
1.66
163
16.3
1.63
144
14.4
1.44
143
14.3
1.43
123
12.3
1.23
116
11.6
1.16
95
9.5
80
8
79
7.9
79
7.9
64
6.4
62
6.2
56
5.6
54
5.4
47
4.7
45
4.5
45
4.5
44
4.4
43
4.3
43
4.3
37
3.7
32
3.2
31
3.1
29
2.9
25
2.5
22
2.2
15
1.5
10
10
6
6
5
4
4
4
3
3
3
3
2
2
2
1root:EMpNB8Zp56:0:0:Super-User,,,,,,,:/:/bin/sh
2roottcsh:*:0:0:Super-User
3sysadm:*:0:0:System
4diag:*:0:996:Hardware
5daemon:*:1:1:daemons:/:/bin/sh
6bin:*:2:2:System
7nuucp:BJnuQbAo:6:10:UUCP.Admin:/usr/spool/uucppublic:/usr/lib/uucp/uucico
8uucp:*:3:5:UUCP.Admin:/usr/lib/uucp:
9sys:*:4:0:System
10adm:*:5:3:Accounting
11lp:*:9:9:Print
1.1
12auditor:*:11:0:Audit
1.2
13dbadmin:*:12:0:Security
1.3
14bootes:dcon:50:1:Tom
1.4
15cdjuke:dcon:51:1:Tom
1.5
16rfindd:*:66:1:Rfind
1.6
17EZsetup:*:992:998:System
1.7
18demos:*:993:997:Demonstration
1.8
19tutor:*:994:997:Tutorial
1.9
20tour:*:995:997:IRIS
2
21guest:nfP4/Wpvio/Rw:998:998:Guest
2.1
224Dgifts:0nWRTZsOMt.:999:998:4Dgifts
22.4
2.24
23nobody:*:60001:60001:SVR4
2.3
24noaccess:*:60002:60002:uid
2.4
25nobody:*:-2:-2:original
2.5
26rje:*:8:8:RJE
2.6
27changes:*:11:11:system
2.7
28dist:sorry:9999:4:file
2.8
29man:*:99:995:On-line
2.9
30phoneca:*:991:991:phone
3
1r
2r
3s
4d
5d
6b
7n
8u
9s
10
11
1.1
12
1.2
13
1.3
14
1.4
15
1.5
16
1.6
17
1.7
18
1.8
19
1.9
20
2
21
2.1
22
2.2
23
2.3
24
2.4
25
2.5
26
2.6
27
2.7
28
2.8
29
2.9
30
3
| Logos | 0 | Crestwave/goawk | testdata/output/t.3.x | [
"MIT"
] |
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
@java.lang.annotation.Target(value = {java.lang.annotation.ElementType.TYPE, java.lang.annotation.ElementType.METHOD, java.lang.annotation.ElementType.PARAMETER})
@kotlin.annotation.Target(allowedTargets = {kotlin.annotation.AnnotationTarget.CLASS, kotlin.annotation.AnnotationTarget.FUNCTION, kotlin.annotation.AnnotationTarget.VALUE_PARAMETER, kotlin.annotation.AnnotationTarget.EXPRESSION})
public abstract @interface Anno2 /* Anno2*/ {
}
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
@java.lang.annotation.Target(value = {java.lang.annotation.ElementType.TYPE, java.lang.annotation.ElementType.METHOD, java.lang.annotation.ElementType.PARAMETER})
@kotlin.annotation.Target(allowedTargets = {kotlin.annotation.AnnotationTarget.CLASS, kotlin.annotation.AnnotationTarget.FUNCTION, kotlin.annotation.AnnotationTarget.VALUE_PARAMETER, kotlin.annotation.AnnotationTarget.EXPRESSION})
public abstract @interface Anno3 /* Anno3*/ {
}
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
@java.lang.annotation.Target(value = {java.lang.annotation.ElementType.TYPE, java.lang.annotation.ElementType.METHOD, java.lang.annotation.ElementType.PARAMETER})
@kotlin.annotation.Target(allowedTargets = {kotlin.annotation.AnnotationTarget.CLASS, kotlin.annotation.AnnotationTarget.FUNCTION, kotlin.annotation.AnnotationTarget.VALUE_PARAMETER, kotlin.annotation.AnnotationTarget.EXPRESSION})
public abstract @interface Anno4 /* Anno4*/ {
}
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
@java.lang.annotation.Target(value = {java.lang.annotation.ElementType.TYPE, java.lang.annotation.ElementType.METHOD, java.lang.annotation.ElementType.PARAMETER})
@kotlin.annotation.Target(allowedTargets = {kotlin.annotation.AnnotationTarget.CLASS, kotlin.annotation.AnnotationTarget.FUNCTION, kotlin.annotation.AnnotationTarget.VALUE_PARAMETER, kotlin.annotation.AnnotationTarget.EXPRESSION})
public abstract @interface Anno5 /* Anno5*/ {
}
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
@java.lang.annotation.Target(value = {java.lang.annotation.ElementType.TYPE, java.lang.annotation.ElementType.METHOD, java.lang.annotation.ElementType.PARAMETER})
@kotlin.annotation.Target(allowedTargets = {kotlin.annotation.AnnotationTarget.CLASS, kotlin.annotation.AnnotationTarget.FUNCTION, kotlin.annotation.AnnotationTarget.VALUE_PARAMETER, kotlin.annotation.AnnotationTarget.EXPRESSION})
public abstract @interface Anno6 /* Anno6*/ {
}
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
public abstract @interface AnnoWithCompanion /* AnnoWithCompanion*/ {
@kotlin.jvm.JvmField()
public static final int x;
@org.jetbrains.annotations.NotNull()
public static final AnnoWithCompanion.Companion Companion;
class Companion ...
}
public static final class Companion /* AnnoWithCompanion.Companion*/ {
private Companion();// .ctor()
public final void foo();// foo()
}
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
public abstract @interface Anno /* Anno*/ {
public abstract Anno[] x() default {@Anno(p = "a"), @Anno(p = "b")};// x()
public abstract java.lang.String p() default "";// p()
}
@Deprecated(message = "This anno is deprecated, use === instead", replaceWith = @ReplaceWith(expression = "this === other"))
@java.lang.annotation.Documented()
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.SOURCE)
@java.lang.annotation.Target(value = {java.lang.annotation.ElementType.TYPE, java.lang.annotation.ElementType.METHOD, java.lang.annotation.ElementType.PARAMETER})
@kotlin.annotation.MustBeDocumented()
@kotlin.annotation.Retention(value = kotlin.annotation.AnnotationRetention.SOURCE)
@kotlin.annotation.Target(allowedTargets = {kotlin.annotation.AnnotationTarget.CLASS, kotlin.annotation.AnnotationTarget.FUNCTION, kotlin.annotation.AnnotationTarget.VALUE_PARAMETER, kotlin.annotation.AnnotationTarget.EXPRESSION})
public abstract @interface Fancy /* Fancy*/ {
}
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
public abstract @interface ReplaceWith /* ReplaceWith*/ {
public abstract java.lang.String expression();// expression()
}
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
public abstract @interface AnnotatedAttribute /* AnnotatedAttribute*/ {
@Anno()
public abstract java.lang.String x();// x()
}
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
public abstract @interface Deprecated /* Deprecated*/ {
public abstract ReplaceWith replaceWith() default @ReplaceWith(expression = "");// replaceWith()
public abstract java.lang.String message();// message()
}
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
public abstract @interface Ann /* Ann*/ {
public abstract java.lang.Class<? extends java.lang.Object> arg2();// arg2()
public abstract java.lang.Class<?> arg1();// arg1()
}
@Anno()
public final class F /* F*/ implements java.lang.Runnable {
@org.jetbrains.annotations.NotNull()
private java.lang.String prop;
@Anno(p = "f")
public final void f(@Anno() @org.jetbrains.annotations.NotNull() java.lang.String);// f(java.lang.String)
@org.jetbrains.annotations.NotNull()
public final java.lang.String getProp();// getProp()
public F();// .ctor()
public final void setProp(@org.jetbrains.annotations.NotNull() java.lang.String);// setProp(java.lang.String)
}
public final class Foo /* Foo*/ {
@org.jetbrains.annotations.Nullable()
private java.lang.String x;
@Anno()
public Foo(error.NonExistentClass);// .ctor(error.NonExistentClass)
@Anno()
public final void f4(@org.jetbrains.annotations.NotNull() java.lang.String);// f4(java.lang.String)
@Anno()
public final void setX(@org.jetbrains.annotations.Nullable() java.lang.String);// setX(java.lang.String)
@org.jetbrains.annotations.Nullable()
public final java.lang.String getX();// getX()
}
@Ann(arg1 = String::class, arg2 = Int::class)
public final class MyClass /* MyClass*/ {
public MyClass();// .ctor()
}
public final class Example /* Example*/ {
@Ann()
@org.jetbrains.annotations.NotNull()
private final java.lang.String foo;
@org.jetbrains.annotations.NotNull()
private final java.lang.String bar;
@org.jetbrains.annotations.NotNull()
private final java.lang.String quux;
@Ann()
@org.jetbrains.annotations.NotNull()
public final java.lang.String getBar();// getBar()
@org.jetbrains.annotations.NotNull()
public final java.lang.String getFoo();// getFoo()
@org.jetbrains.annotations.NotNull()
public final java.lang.String getQuux();// getQuux()
public Example(@org.jetbrains.annotations.NotNull() java.lang.String, @org.jetbrains.annotations.NotNull() java.lang.String, @Ann() @org.jetbrains.annotations.NotNull() java.lang.String);// .ctor(java.lang.String, java.lang.String, java.lang.String)
} | Java | 4 | Mu-L/kotlin | compiler/testData/asJava/ultraLightClasses/annotations.java | [
"ECL-2.0",
"Apache-2.0"
] |
import "ecere"
class ControlsSample : Window
{
text = "Common Controls Sample";
borderStyle = fixed;
hasMaximize = true;
hasMinimize = true;
hasClose = true;
tabCycle = true;
size = { 280, 100 };
Button button1
{
this, caption = "Push Me", altP, isDefault = true, position = { 32, 40 };
bool NotifyClicked(Button button, int x, int y, Modifiers mods)
{
MessageBox { text = "Hello, World!!", contents = editBox1.contents }.Modal();
return true;
}
};
EditBox editBox1 { this, caption = "EditBox 1", altE, size = { 78, 19 }, position = { 112, 40 }, contents = "contents" };
Label label1 { parent = this, size = { 45, 13 }, position = { 120, 16 }, labeledWindow = editBox1 };
}
ControlsSample controlsSample {};
| eC | 3 | N-eil/ecere-sdk | samples/guiAndGfx/Controls/controls.ec | [
"BSD-3-Clause"
] |
module B where
x :: Boolean
x = false
| PureScript | 2 | metaleap/purs-with-dump-coreimp | examples/failing/ExportConflictValue/B.purs | [
"BSD-3-Clause"
] |
__includes["Code.nls"]
@#$#@#$#@
GRAPHICS-WINDOW
220
10
733
524
-1
-1
5.0
1
10
1
1
1
0
1
1
1
0
100
0
100
1
1
1
ticks
30.0
BUTTON
10
10
80
50
NIL
setup
NIL
1
T
OBSERVER
NIL
NIL
NIL
NIL
1
BUTTON
90
10
160
50
NIL
go
T
1
T
OBSERVER
NIL
NIL
NIL
NIL
1
@#$#@#$#@
## WHAT IS IT?
## HOW IT WORKS
## HOW TO USE IT
@#$#@#$#@
default
true
0
Polygon -7500403 true true 150 5 40 250 150 205 260 250
@#$#@#$#@
NetLogo 6.1.0
@#$#@#$#@
@#$#@#$#@
@#$#@#$#@
@#$#@#$#@
@#$#@#$#@
default
0.0
-0.2 0 0.0 1.0
0.0 1 1.0 0.0
0.2 0 0.0 1.0
link direction
true
0
Line -7500403 true 150 150 90 180
Line -7500403 true 150 150 210 180
@#$#@#$#@
0
@#$#@#$#@
| NetLogo | 0 | mlange-42/yarner | examples/netlogo/nlogo/Model.nlogo | [
"MIT"
] |
;;;
;;; Parse user given s-expressions in commands
;;;
(in-package #:pgloader.parser)
(defun not-doublequote (char)
(not (eql #\" char)))
(defun symbol-character-p (character)
(not (member character '(#\Space #\( #\)))))
(defun symbol-first-character-p (character)
(and (symbol-character-p character)
(not (member character '(#\+ #\-)))))
(defrule sexp-symbol (and (symbol-first-character-p character)
(* (symbol-character-p character)))
(:lambda (schars)
(if (char= #\: (car schars))
(read-from-string (text schars))
(pgloader.transforms:intern-symbol
(text schars)
'(("nil" . cl:nil)
("cl:t" . cl:t)
("precision" . pgloader.transforms::precision)
("scale" . pgloader.transforms::scale)
("split-sequence" . split-sequence:split-sequence))))))
(defrule sexp-char (and #\# #\\
(alpha-char-p character)
(+ (or (alpha-char-p character)
(digit-char-p character)
#\_)))
(:lambda (char-name)
(read-from-string (text char-name))))
(defrule sexp-string-char (or (not-doublequote character) (and #\\ #\")))
(defrule sexp-string (and #\" (* sexp-string-char) #\")
(:destructure (q1 string q2)
(declare (ignore q1 q2))
(text string)))
(defrule sexp-integer (+ (or "0" "1" "2" "3" "4" "5" "6" "7" "8" "9"))
(:lambda (list)
(parse-integer (text list) :radix 10)))
(defrule sexp-list (and open-paren sexp (* sexp) close-paren)
(:destructure (open car cdr close)
(declare (ignore open close))
(cons car cdr)))
(defrule sexp-atom (and ignore-whitespace
(or sexp-char sexp-string sexp-integer sexp-symbol))
(:lambda (atom)
(bind (((_ a) atom)) a)))
(defrule sexp (or sexp-atom sexp-list))
| Common Lisp | 4 | micaelle/pgloader | src/parsers/command-sexp.lisp | [
"PostgreSQL"
] |
/*
* Copyright 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
* https://www.openssl.org/source/license.html
*/
#include <openssl/core.h>
#include <openssl/core_dispatch.h>
#include <openssl/core_names.h>
#include <openssl/provider.h>
#include <openssl/crypto.h>
#include <openssl/evp.h>
#include "testutil.h"
#define MYPROPERTIES "foo.bar=yes"
static OSSL_FUNC_provider_query_operation_fn testprov_query;
static OSSL_FUNC_digest_get_params_fn tmpmd_get_params;
static OSSL_FUNC_digest_digest_fn tmpmd_digest;
static int tmpmd_get_params(OSSL_PARAM params[])
{
OSSL_PARAM *p = NULL;
p = OSSL_PARAM_locate(params, OSSL_DIGEST_PARAM_BLOCK_SIZE);
if (p != NULL && !OSSL_PARAM_set_size_t(p, 1))
return 0;
p = OSSL_PARAM_locate(params, OSSL_DIGEST_PARAM_SIZE);
if (p != NULL && !OSSL_PARAM_set_size_t(p, 1))
return 0;
return 1;
}
static int tmpmd_digest(void *provctx, const unsigned char *in, size_t inl,
unsigned char *out, size_t *outl, size_t outsz)
{
return 0;
}
static const OSSL_DISPATCH testprovmd_functions[] = {
{ OSSL_FUNC_DIGEST_GET_PARAMS, (void (*)(void))tmpmd_get_params },
{ OSSL_FUNC_DIGEST_DIGEST, (void (*)(void))tmpmd_digest },
{ 0, NULL }
};
static const OSSL_ALGORITHM testprov_digests[] = {
{ "testprovmd", MYPROPERTIES, testprovmd_functions },
{ NULL, NULL, NULL }
};
static const OSSL_ALGORITHM *testprov_query(void *provctx,
int operation_id,
int *no_cache)
{
*no_cache = 0;
return operation_id == OSSL_OP_DIGEST ? testprov_digests : NULL;
}
static const OSSL_DISPATCH testprov_dispatch_table[] = {
{ OSSL_FUNC_PROVIDER_QUERY_OPERATION, (void (*)(void))testprov_query },
{ 0, NULL }
};
static int testprov_provider_init(const OSSL_CORE_HANDLE *handle,
const OSSL_DISPATCH *in,
const OSSL_DISPATCH **out,
void **provctx)
{
*provctx = (void *)handle;
*out = testprov_dispatch_table;
return 1;
}
enum {
DEFAULT_PROPS_FIRST = 0,
DEFAULT_PROPS_AFTER_LOAD,
DEFAULT_PROPS_AFTER_FETCH,
DEFAULT_PROPS_FINAL
};
static int test_default_props_and_providers(int propsorder)
{
OSSL_LIB_CTX *libctx;
OSSL_PROVIDER *testprov = NULL;
EVP_MD *testprovmd = NULL;
int res = 0;
if (!TEST_ptr(libctx = OSSL_LIB_CTX_new())
|| !TEST_true(OSSL_PROVIDER_add_builtin(libctx, "testprov",
testprov_provider_init)))
goto err;
if (propsorder == DEFAULT_PROPS_FIRST
&& !TEST_true(EVP_set_default_properties(libctx, MYPROPERTIES)))
goto err;
if (!TEST_ptr(testprov = OSSL_PROVIDER_load(libctx, "testprov")))
goto err;
if (propsorder == DEFAULT_PROPS_AFTER_LOAD
&& !TEST_true(EVP_set_default_properties(libctx, MYPROPERTIES)))
goto err;
if (!TEST_ptr(testprovmd = EVP_MD_fetch(libctx, "testprovmd", NULL)))
goto err;
if (propsorder == DEFAULT_PROPS_AFTER_FETCH) {
if (!TEST_true(EVP_set_default_properties(libctx, MYPROPERTIES)))
goto err;
EVP_MD_free(testprovmd);
if (!TEST_ptr(testprovmd = EVP_MD_fetch(libctx, "testprovmd", NULL)))
goto err;
}
res = 1;
err:
EVP_MD_free(testprovmd);
OSSL_PROVIDER_unload(testprov);
OSSL_LIB_CTX_free(libctx);
return res;
}
int setup_tests(void)
{
ADD_ALL_TESTS(test_default_props_and_providers, DEFAULT_PROPS_FINAL);
return 1;
}
| C | 4 | pmesnier/openssl | test/user_property_test.c | [
"Apache-2.0"
] |
--TEST--
Delimiters crash test
--FILE--
<?php
var_dump(preg_match('', ''));
var_dump(preg_match(' ', ''));
var_dump(preg_match('@@', ''));
var_dump(preg_match('12', ''));
var_dump(preg_match('<>', ''));
var_dump(preg_match('~a', ''));
var_dump(preg_match('@\@\@@', '@@'));
var_dump(preg_match('//z', '@@'));
var_dump(preg_match('{', ''));
?>
--EXPECTF--
Warning: preg_match(): Empty regular expression in %sdelimiters.php on line 3
bool(false)
Warning: preg_match(): Empty regular expression in %sdelimiters.php on line 4
bool(false)
int(1)
Warning: preg_match(): Delimiter must not be alphanumeric or backslash in %sdelimiters.php on line 6
bool(false)
int(1)
Warning: preg_match(): No ending delimiter '~' found in %sdelimiters.php on line 8
bool(false)
int(1)
Warning: preg_match(): Unknown modifier 'z' in %sdelimiters.php on line 10
bool(false)
Warning: preg_match(): No ending matching delimiter '}' found in %sdelimiters.php on line 11
bool(false)
| PHP | 3 | guomoumou123/php5.5.10 | ext/pcre/tests/delimiters.phpt | [
"PHP-3.01"
] |
# is and of are not in turtle
@prefix : <http://example.org/stuff/1.0/> .
:a is :b of :c .
| Turtle | 2 | joshrose/audacity | lib-src/lv2/serd/tests/bad/bad-06.ttl | [
"CC-BY-3.0"
] |
let mut x = 0;
while true {
x += 1;
if x == 5 {
break;
}
}
println(x);
let mut y = 0;
while y < 10 {
if y == 4 {
y += 1;
continue;
}
y = y + 2;
}
println(y);
let mut z = 0;
while z < 1000 {
while z < 7 {
z += 1;
if z > 5 {
break;
}
}
z = z + 2;
if z > 15 {
break;
}
}
println(z);
let mut a = 0;
const D = 2;
while a < 10 {
a = a + D;
}
println(a);
| Ox | 3 | 54k1/oxide-lang | tests/scripts/while.ox | [
"MIT"
] |
#
# @expect="/nlist[@name='profile']/nlist[@name='h']/nlist[@name='a']/long[@name='y']=10 and /nlist[@name='profile']/nlist[@name='i']/string[@name='b']='bb'"
# @format=pan
#
object template default25;
type f = {
'x' ? long
'y' ? long
} = dict('y', 10);
type g = {
'a' ? f
'b' ? string
} = dict('a', undef);
bind '/' = g{};
'/h' = undef;
'/i/b' = 'bb';
| Pan | 2 | aka7/pan | panc/src/test/pan/Functionality/default/default25.pan | [
"Apache-2.0"
] |
<html>
<title><%= @title || default_title() %></title>
<%= @inner_content %>
</html>
| HTML+EEX | 2 | faheempatel/phoenix | test/fixtures/templates/layout/app.html.eex | [
"MIT"
] |
library ieee;
use ieee.std_logic_1164.all;
-- We don't have VHDL primitives yet, so declare them in examples for now.
package components is
component OSCH
generic (
NOM_FREQ : string := "2.08"
);
port(
STDBY : in std_logic;
OSC : out std_logic;
SEDSTDBY : out std_logic
);
end component;
end components;
| VHDL | 4 | antmicro/nextpnr | machxo2/examples/prims.vhd | [
"0BSD"
] |
-- This code is made available 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.
-- Given daily input and a particular year, analyze how
-- stock prices changed on days dividends were paid out.
define dividend_analysis (daily, year, daily_symbol, daily_open, daily_close)
returns analyzed {
divs = load 'NYSE_dividends' as (exchange:chararray,
symbol:chararray, date:chararray, dividends:float);
divsthisyear = filter divs by date matches '$year-.*';
dailythisyear = filter $daily by date matches '$year-.*';
jnd = join divsthisyear by symbol, dailythisyear by $daily_symbol;
$analyzed = foreach jnd generate dailythisyear::$daily_symbol,
$daily_close - $daily_open;
};
daily = load 'NYSE_daily' as (exchange:chararray, symbol:chararray,
date:chararray, open:float, high:float, low:float, close:float,
volume:int, adj_close:float);
results = dividend_analysis(daily, '2009', 'symbol', 'open', 'close');
dump results;
| PigLatin | 4 | adineskumar/alanfgates-programmingpig | examples/ch6/macro.pig | [
"Apache-2.0"
] |
/*
* Copyright 2002-2017 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.aop.config;
import java.util.List;
import org.w3c.dom.Node;
import org.springframework.aop.framework.ProxyFactoryBean;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.beans.factory.config.BeanDefinitionHolder;
import org.springframework.beans.factory.support.AbstractBeanDefinition;
import org.springframework.beans.factory.support.BeanDefinitionReaderUtils;
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.beans.factory.support.ManagedList;
import org.springframework.beans.factory.support.RootBeanDefinition;
import org.springframework.beans.factory.xml.BeanDefinitionDecorator;
import org.springframework.beans.factory.xml.ParserContext;
import org.springframework.util.Assert;
import org.springframework.util.ClassUtils;
import org.springframework.util.StringUtils;
/**
* Base implementation for
* {@link org.springframework.beans.factory.xml.BeanDefinitionDecorator BeanDefinitionDecorators}
* wishing to add an {@link org.aopalliance.intercept.MethodInterceptor interceptor}
* to the resulting bean.
*
* <p>This base class controls the creation of the {@link ProxyFactoryBean} bean definition
* and wraps the original as an inner-bean definition for the {@code target} property
* of {@link ProxyFactoryBean}.
*
* <p>Chaining is correctly handled, ensuring that only one {@link ProxyFactoryBean} definition
* is created. If a previous {@link org.springframework.beans.factory.xml.BeanDefinitionDecorator}
* already created the {@link org.springframework.aop.framework.ProxyFactoryBean} then the
* interceptor is simply added to the existing definition.
*
* <p>Subclasses have only to create the {@code BeanDefinition} to the interceptor that
* they wish to add.
*
* @author Rob Harrop
* @author Juergen Hoeller
* @since 2.0
* @see org.aopalliance.intercept.MethodInterceptor
*/
public abstract class AbstractInterceptorDrivenBeanDefinitionDecorator implements BeanDefinitionDecorator {
@Override
public final BeanDefinitionHolder decorate(Node node, BeanDefinitionHolder definitionHolder, ParserContext parserContext) {
BeanDefinitionRegistry registry = parserContext.getRegistry();
// get the root bean name - will be the name of the generated proxy factory bean
String existingBeanName = definitionHolder.getBeanName();
BeanDefinition targetDefinition = definitionHolder.getBeanDefinition();
BeanDefinitionHolder targetHolder = new BeanDefinitionHolder(targetDefinition, existingBeanName + ".TARGET");
// delegate to subclass for interceptor definition
BeanDefinition interceptorDefinition = createInterceptorDefinition(node);
// generate name and register the interceptor
String interceptorName = existingBeanName + '.' + getInterceptorNameSuffix(interceptorDefinition);
BeanDefinitionReaderUtils.registerBeanDefinition(
new BeanDefinitionHolder(interceptorDefinition, interceptorName), registry);
BeanDefinitionHolder result = definitionHolder;
if (!isProxyFactoryBeanDefinition(targetDefinition)) {
// create the proxy definition
RootBeanDefinition proxyDefinition = new RootBeanDefinition();
// create proxy factory bean definition
proxyDefinition.setBeanClass(ProxyFactoryBean.class);
proxyDefinition.setScope(targetDefinition.getScope());
proxyDefinition.setLazyInit(targetDefinition.isLazyInit());
// set the target
proxyDefinition.setDecoratedDefinition(targetHolder);
proxyDefinition.getPropertyValues().add("target", targetHolder);
// create the interceptor names list
proxyDefinition.getPropertyValues().add("interceptorNames", new ManagedList<String>());
// copy autowire settings from original bean definition.
proxyDefinition.setAutowireCandidate(targetDefinition.isAutowireCandidate());
proxyDefinition.setPrimary(targetDefinition.isPrimary());
if (targetDefinition instanceof AbstractBeanDefinition) {
proxyDefinition.copyQualifiersFrom((AbstractBeanDefinition) targetDefinition);
}
// wrap it in a BeanDefinitionHolder with bean name
result = new BeanDefinitionHolder(proxyDefinition, existingBeanName);
}
addInterceptorNameToList(interceptorName, result.getBeanDefinition());
return result;
}
@SuppressWarnings("unchecked")
private void addInterceptorNameToList(String interceptorName, BeanDefinition beanDefinition) {
List<String> list = (List<String>) beanDefinition.getPropertyValues().get("interceptorNames");
Assert.state(list != null, "Missing 'interceptorNames' property");
list.add(interceptorName);
}
private boolean isProxyFactoryBeanDefinition(BeanDefinition existingDefinition) {
return ProxyFactoryBean.class.getName().equals(existingDefinition.getBeanClassName());
}
protected String getInterceptorNameSuffix(BeanDefinition interceptorDefinition) {
String beanClassName = interceptorDefinition.getBeanClassName();
return (StringUtils.hasLength(beanClassName) ?
StringUtils.uncapitalize(ClassUtils.getShortName(beanClassName)) : "");
}
/**
* Subclasses should implement this method to return the {@code BeanDefinition}
* for the interceptor they wish to apply to the bean being decorated.
*/
protected abstract BeanDefinition createInterceptorDefinition(Node node);
}
| Java | 5 | nicchagil/spring-framework | spring-aop/src/main/java/org/springframework/aop/config/AbstractInterceptorDrivenBeanDefinitionDecorator.java | [
"Apache-2.0"
] |
#version 3.6;
// By Jonathan Hunt <jonathan@xlcus.com>
#include "functions.inc"
/****************************************************************************/
#declare FeatureRadiosity = true; // Set to true to enable radiosity.
#declare FeatureFocalBlur = true; // Set to true to enable focal blur.
#declare FeatureLoadPositions = false; // Set to true to cache the pebble positions.
#declare FeatureSavePositions = false; // Set to true to reload the cached positions.
#declare PositionsFilename = "pebblecache.dat";
#declare PebbleCount = 768; // The total number of pebbles in the scene.
#declare BigPebbleCount = 256; // How many of these are large filler pebbles.
#declare PebbleMaxRadius = 3; // The largest pebble size.
#declare PebbleMinRadius = 0.5; // The smallest pebble size.
#declare PebbleSizeExponent = 3; // How quickly the size drops off.
#declare RandPeb = seed(70); // The seed for the pebble shapes and placement.
#declare RandPat = seed(83); // The seed for the pebble patterns.
#declare RandCol = seed(12); // The seed for the pebble colour schemes.
/****************************************************************************/
camera
{
location <0, 10, -39>
look_at <0, 0, -21>
angle 55
#if (FeatureFocalBlur)
aperture 0.25
blur_samples 256
focal_point<0, 0, -21>
confidence 0.95
variance 1/256
#end
}
/****************************************************************************/
#if (FeatureRadiosity)
global_settings {
radiosity {
pretrace_start 0.08
pretrace_end 0.01
count 500
normal on
nearest_count 10
error_bound 0.02
recursion_limit 1
low_error_factor 0.2
gray_threshold 0.0
minimum_reuse 0.015
brightness 1
adc_bailout 0.01/2
}
}
#else
light_source
{
<80, 160, -80>
color rgb<1, 1, 1>
}
#end
/****************************************************************************/
// The basic texture that all of the pebbles have. A very fine bump pattern
// to add a bit of roughness, and a finish with ambient turned off and diffuse
// at maximum in preparation for the radiosity.
#declare PebbleNormalAndFinish = texture
{
normal
{
bumps 0.2
scale 0.005
}
finish
{
diffuse 1.0
ambient 0.0
}
}
/****************************************************************************/
// This will be our light source when radiosity is turned on.
// A very slightly orange sky.
sky_sphere
{
pigment
{
color rgb<1, 0.95, 0.85>
}
}
/****************************************************************************/
#declare PebbleShapeTemplateCount = 6; // The number of base shape templates we want to use.
#declare PebbleShapeVariationCount = 20; // How many variations of each templates shall we generate.
#declare PebbleShapeCount = PebbleShapeTemplateCount * PebbleShapeVariationCount;
// A macro to generate a random pebble shape of the specified template type.
#macro GenerateShape(TypeIndex)
#switch (TypeIndex)
#case (0) // This shape template generates flattened spheres.
#declare Result = sphere
{
<0, 0, 0>, 1
scale <0.8, 0.2 + rand(RandPeb) * 0.2, 1>
}
#break
#case (1) // This shape template generates skewed rounded cuboids.
#declare Result = superellipsoid
{
<0.4, 0.7>
matrix
<
1, 0, 0,
0, 1, 0.5,
0, 0, 1,
0, 0, 0
>
scale <0.5, 0.4, 0.8>
}
#else
// This shape template generates knobbly spheres and is the default so that we
// can weight in favour of this shape by specifying a larger template count.
#declare NoiseXScale = 1.0 + rand(RandPeb) * 0.5;
#declare NoiseYScale = 1.0 + rand(RandPeb) * 0.5;
#declare NoiseZScale = 1.0 + rand(RandPeb) * 0.5;
#declare NoiseXOffset = rand(RandPeb) * 256;
#declare NoiseYOffset = rand(RandPeb) * 256;
#declare NoiseZOffset = rand(RandPeb) * 256;
#declare Result = isosurface
{
function { f_sphere(x, y, z, 1) + f_noise3d(x * NoiseXScale + NoiseXOffset, y * NoiseYScale + NoiseYOffset, z * NoiseZScale + NoiseZOffset) * 0.5 }
contained_by { sphere { 0, 1 } }
max_gradient 1.8
scale <1, 0.6 + rand(RandPeb) * 0.2, 1>
}
#break
#end
Result
#end
#declare PebbleShapes = array[PebbleShapeCount]
// Generate an array of random pebble shapes by creating multiple variations of each template type.
#declare PebbleShapeTemplateLoop = 0;
#while (PebbleShapeTemplateLoop < PebbleShapeTemplateCount)
#declare PebbleShapeVariationLoop = 0;
#while (PebbleShapeVariationLoop < PebbleShapeVariationCount)
#declare PebbleShapes[PebbleShapeTemplateLoop * PebbleShapeVariationCount + PebbleShapeVariationLoop] = GenerateShape(PebbleShapeTemplateLoop);
#declare PebbleShapeVariationLoop = PebbleShapeVariationLoop + 1;
#end
#declare PebbleShapeTemplateLoop = PebbleShapeTemplateLoop + 1;
#end
/****************************************************************************/
#declare PebblePatternCount = 6;
#declare PebblePatterns = array[PebblePatternCount]
// A selection of base patterns for the pebbles.
#declare PebblePatterns[0] = pigment
{
wrinkles
scale 0.02
noise_generator 2
}
#declare PebblePatterns[1] = pigment
{
bozo
turbulence 2.0
scale 0.05
noise_generator 2
}
#declare PebblePatterns[2] = pigment
{
bozo
turbulence 4.0
scale 0.1
noise_generator 3
}
#declare PebblePatterns[3] = pigment
{
wrinkles
turbulence 1.0
scale 0.05
}
#declare PebblePatterns[4] = pigment
{
granite
turbulence 0.2
scale 0.15
}
#declare PebblePatterns[5] = pigment
{
granite
scale 0.6
turbulence 2.0
}
/****************************************************************************/
#declare PebbleColourCount = 15;
#declare PebbleColours = array[PebbleColourCount]
// A selection of different colour schemes for the pebbles.
#declare PebbleColours[0] = color_map
{
[0.0 color rgb<0.7, 0.7, 0.7>]
[0.7 color rgb<0.8, 0.8, 0.8>]
[1.0 color rgb<1, 1, 1>]
}
#declare PebbleColours[1] = color_map
{
[0.0 color rgb<0.5, 0.5, 0.5>]
[0.3 color rgb<0.9, 0.9, 0.9>]
[0.8 color rgb<1.0, 1.0, 1.0>]
[1.0 color rgb<1.0, 1.0, 0.5>]
}
#declare PebbleColours[2] = color_map
{
[0.0 color rgb<0.4, 0.4, 0.6>]
[0.2 color rgb<1.0, 1.0, 1.0>]
[0.7 color rgb<0.9, 0.9, 1.0>]
[1.0 color rgb<0.8, 0.8, 0.4>]
}
#declare PebbleColours[3] = color_map
{
[0.0 color rgb<0.6, 0.4, 0.4>]
[0.4 color rgb<0.8, 0.7, 0.6>]
[0.6 color rgb<0.8, 0.7, 0.7>]
[1.0 color rgb<1.0, 1.0, 1.0>]
}
#declare PebbleColours[4] = color_map
{
[0.0 color rgb<0.8, 0.6, 0.4>]
[0.3 color rgb<0.8, 0.7, 0.5>]
[0.8 color rgb<1.0, 0.9, 0.8>]
[1.0 color rgb<1.0, 1.0, 1.0>]
}
#declare PebbleColours[5] = color_map
{
[0.0 color rgb<0.0, 0.0, 0.0>]
[0.3 color rgb<0.5, 0.5, 0.6>]
[0.7 color rgb<0.6, 0.6, 0.6>]
[0.8 color rgb<0.9, 0.9, 1.0>]
[1.0 color rgb<1.0, 1.0, 1.0>]
}
#declare PebbleColours[6] = color_map
{
[0.0 color rgb<0.7, 0.4, 0.4> ]
[0.3 color rgb<0.8, 0.8, 0.75>]
[0.7 color rgb<0.9, 0.9, 0.85>]
[0.8 color rgb<0.9, 0.9, 0.9> ]
[1.0 color rgb<1.0, 1.0, 1.0> ]
}
#declare PebbleColours[7] = color_map
{
[0.0 color rgb<0.0, 0.0, 0.0>]
[0.2 color rgb<0.7, 0.7, 0.7>]
[0.7 color rgb<0.6, 0.6, 0.6>]
[0.8 color rgb<0.9, 0.9, 0.9>]
[1.0 color rgb<1.0, 1.0, 1.0>]
}
#declare PebbleColours[8] = color_map
{
[0.0 color rgb<0.5, 0.5, 0.5>]
[0.2 color rgb<0.6, 0.6, 0.6>]
[0.4 color rgb<0.7, 0.7, 0.7>]
[0.6 color rgb<0.8, 0.8, 0.8>]
[0.8 color rgb<0.9, 0.9, 0.9>]
[1.0 color rgb<1.0, 1.0, 1.0>]
}
#declare PebbleColours[9] = color_map
{
[0.00 color rgb<0.5, 0.5, 0.5> ]
[0.25 color rgb<0.7, 0.7, 0.73> ]
[0.50 color rgb<0.8, 0.8, 0.8> ]
[0.75 color rgb<1.0, 0.97, 0.97>]
[1.00 color rgb<1.0, 1.0, 1.0> ]
}
#declare PebbleColours[10] = color_map
{
[0.0 color rgb<0.3, 0.2, 0.0>]
[0.2 color rgb<0.7, 0.6, 0.5>]
[0.7 color rgb<0.9, 0.8, 0.6>]
[0.8 color rgb<0.9, 0.9, 0.9>]
[1.0 color rgb<1.0, 1.0, 1.0>]
}
#declare PebbleColours[11] = color_map
{
[0.0 color rgb<0.1, 0.1, 0.1>]
[0.3 color rgb<0.6, 0.6, 0.6>]
[0.7 color rgb<0.8, 0.8, 0.8>]
[1.0 color rgb<0.9, 0.9, 0.9>]
}
#declare PebbleColours[12] = color_map
{
[0.0 color rgb<0.8, 0.8, 0.8>]
[1.0 color rgb<1.0, 1.0, 1.0>]
}
#declare PebbleColours[13] = color_map
{
[0.0 color rgb<0.7, 0.7, 0.7>]
[1.0 color rgb<0.9, 0.9, 0.9>]
}
#declare PebbleColours[14] = color_map
{
[0.0 color rgb<0.6, 0.6, 0.6>]
[1.0 color rgb<0.8, 0.8, 0.8>]
}
/****************************************************************************/
#declare DecalColourCount = 5;
#declare DecalColours = array[DecalColourCount]
// A selection of different colour schemes for the dirt/speckle/line overlays.
#declare DecalColours[0] = color_map
{
[0.0 color rgb<0.8, 0.8, 0.8>]
[0.4 color rgb<0.95, 0.95, 0.95>]
[1.0 color rgb<1, 1, 1>]
}
#declare DecalColours[1] = color_map
{
[0.0 color rgbt<0.5, 0.5, 0.5, 0>]
[0.4 color rgbt<0.2, 0.2, 0.2, 0.6>]
[1.0 color rgbt<0, 0, 0, 0.6>]
}
#declare DecalColours[2] = color_map
{
[0.5 color rgbt<0, 0, 0, 1.0>]
[1.0 color rgbt<0, 0, 0, 0.5>]
}
#declare DecalColours[3] = color_map
{
[0.0 color rgbt<1, 1, 1, 1.0>]
[1.0 color rgbt<1, 1, 1, 0.5>]
}
#declare DecalColours[4] = color_map
{
[0.5 color rgbt<0.2, 0.2, 0.2, 1.0>]
[1.0 color rgbt<0.2, 0.2, 0.2, 0.0>]
}
/****************************************************************************/
#declare DecalPatternCount = 17;
#declare DecalPatterns = array[DecalPatternCount]
// A selection of different dirt/speckle/line textures which will be
// overlayed over the base textures to make them more interesting.
#declare DecalPatterns[0] = pigment
{
wrinkles
scale 0.1
noise_generator 2
pigment_map
{
[0.75 color rgbt <1, 1, 1, 1> ]
[0.85 PebblePatterns[0] color_map { DecalColours[0] } ]
}
}
#declare DecalPatterns[1] = pigment
{
wrinkles
scale 0.1
noise_generator 2
pigment_map
{
[0.75 color rgbt <1, 1, 1, 1> ]
[0.85 PebblePatterns[0] color_map { DecalColours[1] } ]
}
}
#declare DecalPatterns[2] = pigment
{
marble
scale 2
turbulence 0.5
pigment_map
{
[0.92 color rgbt <1, 1, 1, 1> ]
[0.96 PebblePatterns[0] color_map { DecalColours[0] } ]
}
}
#declare DecalPatterns[3] = pigment
{
marble
scale 2
turbulence 4
pigment_map
{
[0.95 color rgbt <1, 1, 1, 1> ]
[1.00 PebblePatterns[0] scale 5 color_map { DecalColours[2] } ]
}
}
#declare DecalPatterns[4] = pigment
{
bozo
scale 0.2
noise_generator 3
pigment_map
{
[0.85 color rgbt <1, 1, 1, 1> ]
[0.9 PebblePatterns[0] color_map { DecalColours[0] } ]
}
}
#declare DecalPatterns[5] = pigment
{
bozo
scale 0.2
noise_generator 2
turbulence 1
pigment_map
{
[0.75 color rgbt <1, 1, 1, 1> ]
[0.80 PebblePatterns[0] color_map { DecalColours[1] } ]
}
}
#declare DecalPatterns[6] = pigment
{
bozo
scale 0.2
noise_generator 3
turbulence 2
pigment_map
{
[0.85 color rgbt <1, 1, 1, 1> ]
[0.9 PebblePatterns[0] color_map { DecalColours[0] } ]
}
}
#declare DecalPatterns[7] = pigment
{
bozo
scale 0.2
noise_generator 2
turbulence 4
pigment_map
{
[0.75 color rgbt <1, 1, 1, 1> ]
[0.80 PebblePatterns[0] color_map { DecalColours[1] } ]
}
}
#declare DecalPatterns[8] = pigment
{
marble
scale 0.1
turbulence 1
pigment_map
{
[0.90 color rgbt <1, 1, 1, 1> ]
[1.00 PebblePatterns[0] scale 5 color_map { DecalColours[0] } ]
}
}
#declare DecalPatterns[9] = pigment
{
marble
scale 0.1
turbulence 1
pigment_map
{
[0.75 color rgbt <1, 1, 1, 1> ]
[0.80 PebblePatterns[0] scale 5 color_map { DecalColours[2] } ]
}
}
#declare DecalPatterns[10] = pigment
{
wrinkles
scale 0.5
noise_generator 2
pigment_map
{
[0.6 color rgbt <1, 1, 1, 1> ]
[0.7 PebblePatterns[2] color_map { DecalColours[3] } ]
}
}
#declare DecalPatterns[11] = pigment
{
wrinkles
scale 0.5
noise_generator 2
pigment_map
{
[0.7 color rgbt <1, 1, 1, 1> ]
[0.8 PebblePatterns[2] scale 4 color_map { DecalColours[4] } ]
}
}
#declare DecalPatterns[12] = pigment
{
crackle
scale 0.2
noise_generator 2
pigment_map
{
[0.5 color rgbt <1, 1, 1, 1> ]
[0.7 PebblePatterns[2] color_map { DecalColours[0] } ]
}
}
#declare DecalPatterns[13] = pigment
{
crackle
scale 0.1
noise_generator 2
pigment_map
{
[0.5 color rgbt <1, 1, 1, 1> ]
[0.7 PebblePatterns[2] color_map { DecalColours[1] } ]
}
}
#declare DecalPatterns[14] = pigment
{
waves
scale 0.02
noise_generator 3
turbulence 2
pigment_map
{
[0.65 color rgbt <1, 1, 1, 1> ]
[1.0 PebblePatterns[2] color_map { DecalColours[0] } ]
}
}
#declare DecalPatterns[15] = pigment
{
quilted
scale 0.5
noise_generator 3
turbulence 1
pigment_map
{
[0.4 color rgbt <1, 1, 1, 1> ]
[0.6 PebblePatterns[2] color_map { DecalColours[0] } ]
}
}
#declare DecalPatterns[16] = pigment
{
quilted
scale 0.5
noise_generator 3
turbulence 1
pigment_map
{
[0.3 color rgbt <1, 1, 1, 1> ]
[0.6 PebblePatterns[2] color_map { DecalColours[1] } ]
}
}
/****************************************************************************/
// This macro is a quick, dirty and inaccurate intersection test for two pebbles.
// It projects a ray from the centre of one pebble towards the centre of the other,
// and then back the other way to see if the surface of the pebbles overlap on this
// line. It works in most cases if the pebbles aren't too different from spheres,
// and so is adequate for this scene.
#macro Overlaps(ACentre, A, BCentre, B)
#if (vlength(ACentre-BCentre) > PebbleMaxRadius*2)
#declare Result = false;
#else
#declare Dir = vnormalize(BCentre-ACentre);
#declare AEdge = trace(A, BCentre + Dir * 100, -Dir);
#declare BEdge = trace(B, ACentre - Dir * 100, Dir);
#declare Result = (vdot(AEdge, Dir) >= vdot(BEdge, Dir));
#end
Result
#end
/****************************************************************************/
#declare Pebbles = array[PebbleCount]; // The pebbles are stored in here as they are generated.
#declare YSpread = 62; // The depth of the region in which the pebbles are places.
#declare XSpread = 60; // The width of the region in which the pebbles are places.
// The pebbles are sorted into a flat (non-recursive) space partition map
// as they are generated to speed up the intersection tests.
#declare MapYSize = int(YSpread/(PebbleMaxRadius*2))+1;
#declare MapXSize = int(XSpread/(PebbleMaxRadius*2))+1;
#declare Map = array[MapYSize][MapXSize][PebbleCount];
#declare MapCentres = array[MapYSize][MapXSize][PebbleCount];
#declare MapTotals = array[MapYSize][MapXSize];
// Clear the spare partition map.
#declare MapYLoop = 0;
#while (MapYLoop < MapYSize)
#declare MapXLoop = 0;
#while (MapXLoop < MapXSize)
#declare MapTotals[MapYLoop][MapXLoop] = 0;
#declare MapXLoop = MapXLoop + 1;
#end
#declare MapYLoop = MapYLoop + 1;
#end
/****************************************************************************/
// Open the position cache file if we need to.
#if (FeatureLoadPositions)
#fopen PositionsFile PositionsFilename read
#else
#if (FeatureSavePositions)
#fopen PositionsFile PositionsFilename write
#end
#end
// Generate the pebbles.
#declare PebbleLoop = 0;
#while (PebbleLoop < PebbleCount)
// Pick a random shape.
#declare PebbleShapeIndex = int(rand(RandPeb)*PebbleShapeCount);
// Try and find a valid position for it until we succeed.
#declare PositionOK = false;
#declare Attempts = 0;
#while (!PositionOK)
// Pick a random distance away from the camera.
#declare Yu = pow(rand(RandPeb), 2);
// Pick a random left/right position, but scale by the
// distance to bring it into the camera view.
#declare Xu = (rand(RandPeb)-0.5) * (Yu+0.2);
#if (PebbleLoop < BigPebbleCount)
// We're generating the filler pebbles so pick the maximum size.
#declare CandidateScale = PebbleMaxRadius;
// Pick a height starting at 0, but moving down to -1 as we get towards
// the end of the filler pebbles. If we're having trouble, move down
// even more as the attempts increase.
#declare H = -PebbleMaxRadius * PebbleLoop / BigPebbleCount - Attempts / 256;
#else
// Generate a size for the normal pebbles, starting with the maximum
// size and dropping down to the minimum size along a power curve.
#declare CandidateScale = PebbleMinRadius + pow(1 - (PebbleLoop-BigPebbleCount) / (PebbleCount-BigPebbleCount), PebbleSizeExponent) * (PebbleMaxRadius-PebbleMinRadius);
// Pick a height starting at 0, but moving up to 1 as we get towards
// the end of the pebbles. If we're having trouble, move up even more
// as the attempts increase.
#declare H = PebbleMinRadius * (PebbleLoop-BigPebbleCount) / (PebbleCount-BigPebbleCount) + Attempts / 4096;
#end
// Pick a random rotation.
#declare CandidateRotation = <rand(RandPeb)*30-15, rand(RandPeb)*360, rand(RandPeb)*30-15>;
// Generate the position vector.
#declare CandidateCentre = <Xu*XSpread, H, Yu*YSpread-YSpread/2>;
#if (FeatureLoadPositions)
// If we're loading cached positions, just overwrite the previously
// calculated data with the data from the file.
#read (PositionsFile, PebbleShapeIndex, CandidateScale, CandidateRotation, CandidateCentre)
#end
// Declare our candidate object by combining all of the data.
#declare Candidate = object
{
PebbleShapes[PebbleShapeIndex]
scale CandidateScale
rotate CandidateRotation
translate CandidateCentre
}
// Now we need to check this candidate object against any pebbles that
// we've placed down already. We only need to check the ones near
// by, so work out which space partition map section we need to check.
#declare MapY = int(Yu*YSpread/(PebbleMaxRadius*2));
#declare MapX = int((Xu*XSpread+XSpread/2)/(PebbleMaxRadius*2));
// Loop over the pebbles in this section.
#declare Total = MapTotals[MapY][MapX];
#declare PositionOK = true;
#declare CheckLoop = 0;
#while (CheckLoop < Total & PositionOK & !FeatureLoadPositions)
// Check each one for an overlap.
#if (Overlaps(CandidateCentre, Candidate, MapCentres[MapY][MapX][CheckLoop], Map[MapY][MapX][CheckLoop]))
// If we overlap, then this candidate is invalid, so stop checking it
#declare PositionOK = false;
#end
#declare CheckLoop = CheckLoop + 1;
#end
// If the position was ok, we'll drop out of the loop, but otherwise prepare for the next attempt.
#declare Attempts = Attempts + 1;
#end
// We're out of the loop, so we've found a valid position.
#if (!FeatureLoadPositions & FeatureSavePositions)
// If we're caching positions, then save the data to the file.
#write (PositionsFile, PebbleShapeIndex, ",", CandidateScale, ",", CandidateRotation, ",", CandidateCentre, ",\n")
#end
// Show our progress in the debug output.
#debug concat(str(PebbleLoop, 0, 0), " ", str(CandidateScale, 0, 2), " ", str(Attempts, 0, 0), "\n")
// Store the valid pebble away.
#declare Pebbles[PebbleLoop] = Candidate;
// Now we also need to add it to the space partition map. We add it to the
// section it's centre is located in and also the neighbours in case it
// overlaps the edge of the section.
#declare StartYDelta = MapY-1;
#if (StartYDelta < 0)
#declare StartYDelta = 0;
#end
#declare EndYDelta = MapY+1;
#if (EndYDelta >= MapYSize)
#declare EndYDelta = MapYSize-1;
#end
#declare StartXDelta = MapX-1;
#if (StartXDelta < 0)
#declare StartXDelta = 0;
#end
#declare EndXDelta = MapX+1;
#if (EndXDelta >= MapXSize)
#declare EndXDelta = MapXSize-1;
#end
#declare MapYLoop = StartYDelta;
#while (MapYLoop <= EndYDelta)
#declare MapXLoop = StartXDelta;
#while (MapXLoop <= EndXDelta)
#declare Total = MapTotals[MapYLoop][MapXLoop];
#declare MapCentres[MapYLoop][MapXLoop][Total] = CandidateCentre;
#declare Map[MapYLoop][MapXLoop][Total] = Candidate;
#declare MapTotals[MapYLoop][MapXLoop] = Total + 1;
#declare MapXLoop = MapXLoop + 1;
#end
#declare MapYLoop = MapYLoop + 1;
#end
// We're done for this pebble, so move on to the next.
#declare PebbleLoop = PebbleLoop + 1;
#end
// Close the position cache file if we need to.
#if (FeatureLoadPositions | FeatureSavePositions)
#fclose PositionsFile
#end
// Now that we've worked out where all the pebbles are going to be,
// we need to output them.
#declare PebbleLoop = 0;
#while (PebbleLoop < PebbleCount)
object
{
// Retrieve the stored shape
Pebbles[PebbleLoop]
texture
{
// Add the default texture
PebbleNormalAndFinish
pigment
{
// Select a random pattern.
PebblePatterns[rand(RandPat)*PebblePatternCount]
color_map
{
// Choose a random colour scheme.
PebbleColours[rand(RandCol)*PebbleColourCount]
}
}
// Randomize the pattern's position and rotation.
translate <rand(RandPat)*100, rand(RandPat)*100, rand(RandPat)*100>
rotate <rand(RandPat)*360, rand(RandPat)*360, rand(RandPat)*360>
}
// Decide randomly which of the dirt/speckle/line overlay textures we want to use.
#declare DecalLoop = 0;
#while (DecalLoop < DecalPatternCount)
#if (rand(RandPat) < 0.2)
texture
{
PebbleNormalAndFinish
DecalPatterns[DecalLoop]
translate <rand(RandPat)*100, rand(RandPat)*100, rand(RandPat)*100>
rotate <rand(RandPat)*360, rand(RandPat)*360, rand(RandPat)*360>
}
#end
#declare DecalLoop = DecalLoop + 1;
#end
}
#declare PebbleLoop = PebbleLoop + 1;
#end
/****************************************************************************/
// Add a base plane with one of the pebble patterns, just in
// case there are any slight gaps in the placement.
plane
{
y, -1
texture
{
PebbleNormalAndFinish
pigment
{
PebblePatterns[0]
color_map
{
PebbleColours[0]
}
}
}
#declare DecalLoop = 0;
#while (DecalLoop < DecalPatternCount)
texture
{
PebbleNormalAndFinish
DecalPatterns[DecalLoop]
}
#declare DecalLoop = DecalLoop + 1;
#end
}
/****************************************************************************/
| POV-Ray SDL | 5 | SDRausty/TermuxPovray | pebbles/pebbles.pov | [
"Apache-2.0"
] |
"""Tests for the ness_alarm component."""
| Python | 0 | domwillcode/home-assistant | tests/components/ness_alarm/__init__.py | [
"Apache-2.0"
] |
TDTxtLeafNode {
#name : 'analysis',
#contents : Text {
#string : '==============================\r==============================\r',
#runs : RunArray {
#runs : [
62
],
#values : [
[
TextEmphasis {
#emphasisCode : 1,
#setMode : true
}
]
],
#lastIndex : 32,
#lastRun : 1,
#lastOffset : 31
}
}
} | STON | 2 | dalehenrich/filetree | tode/analysis.ston | [
"MIT"
] |
staload "libats/ML/SATS/string.sats"
staload "SATS/error.sats"
implement redundant_cli_flag () =
prerr!("\33[33mWarning:\33[0m Flag -s/--no-style has no effect when --html is not present\n")
implement bad_file (s) =
if s != "" then
prerr!("\33[33mWarning:\33[0m could not open file at " + s + "\n")
else
()
implement bad_directory (s) =
(prerr!("\33[31mError:\33[0m flag " + s + " found where a directory name was expected\n") ; exit(1))
implement bad_flag (s) =
(prerr!("\33[31mError:\33[0m flag " + s + " must appear occur at most once\n") ; exit(1))
implement error_flag (s) =
(prerr!("\33[31mError:\33[0m flag '" + s + "' not recognized. Try 'poly --help'\n") ; exit(1))
implement internal_error () =
(prerr!("\33[31mError:\33[0m internal error\n") ; exit(1))
implement bad_exclude (s) =
(prerr!("\33[31mError:\33[0m flag "
+ s
+ " must be followed by an argument and must occur alone\n") ; exit(1))
implement maybe_err (next) =
(prerr("\33[31mError:\33[0m directory '" + next + "' does not exist\n") ; exit(1))
| ATS | 4 | lambdaxymox/polyglot | DATS/error.dats | [
"BSD-3-Clause"
] |
package com.baeldung.gson.primitives.models;
public class BooleanExample {
public boolean value;
public String toString() {
return "{boolean: " + value + "}";
}
}
| Java | 4 | DBatOWL/tutorials | gson/src/main/java/com/baeldung/gson/primitives/models/BooleanExample.java | [
"MIT"
] |
server {
server_name _;
listen *:80 default_server;
listen [::]:80 default_server;
root {{NGINX_DOCROOT}}/default;
server_tokens off;
server_name_in_redirect off;
limit_req zone=req_zone burst=100 nodelay;
set $naxsi_flag_enable 0;
access_log {{LOG_PREFIX}}/access.log main_ext if=$no_logs;
userid on;
userid_name _uid;
userid_path /;
userid_expires max;
userid_domain $domain;
include /etc/nginx/bots.d/blockbots.conf;
include /etc/nginx/bots.d/ddos.conf;
include /etc/nginx/header.d/httpd.conf;
include /etc/nginx/conf.d/certbot.conf;
include /etc/nginx/conf.d/secure.conf;
include /etc/nginx/conf.d/health.conf;
include /etc/nginx/conf.d/purge.conf;
include /etc/nginx/conf.d/failed.conf;
}
| ApacheConf | 3 | ivanli/docker-nginx-2 | conf/nginx/sites-available/default.vhost | [
"MIT"
] |
import numpy as np
import pytest
from pandas import (
Series,
bdate_range,
date_range,
period_range,
)
import pandas._testing as tm
class TestBetween:
# TODO: redundant with test_between_datetime_values?
def test_between(self):
series = Series(date_range("1/1/2000", periods=10))
left, right = series[[2, 7]]
result = series.between(left, right)
expected = (series >= left) & (series <= right)
tm.assert_series_equal(result, expected)
def test_between_datetime_values(self):
ser = Series(bdate_range("1/1/2000", periods=20).astype(object))
ser[::2] = np.nan
result = ser[ser.between(ser[3], ser[17])]
expected = ser[3:18].dropna()
tm.assert_series_equal(result, expected)
result = ser[ser.between(ser[3], ser[17], inclusive="neither")]
expected = ser[5:16].dropna()
tm.assert_series_equal(result, expected)
def test_between_period_values(self):
ser = Series(period_range("2000-01-01", periods=10, freq="D"))
left, right = ser[[2, 7]]
result = ser.between(left, right)
expected = (ser >= left) & (ser <= right)
tm.assert_series_equal(result, expected)
def test_between_inclusive_string(self): # :issue:`40628`
series = Series(date_range("1/1/2000", periods=10))
left, right = series[[2, 7]]
result = series.between(left, right, inclusive="both")
expected = (series >= left) & (series <= right)
tm.assert_series_equal(result, expected)
result = series.between(left, right, inclusive="left")
expected = (series >= left) & (series < right)
tm.assert_series_equal(result, expected)
result = series.between(left, right, inclusive="right")
expected = (series > left) & (series <= right)
tm.assert_series_equal(result, expected)
result = series.between(left, right, inclusive="neither")
expected = (series > left) & (series < right)
tm.assert_series_equal(result, expected)
def test_between_error_args(self): # :issue:`40628`
series = Series(date_range("1/1/2000", periods=10))
left, right = series[[2, 7]]
value_error_msg = (
"Inclusive has to be either string of 'both',"
"'left', 'right', or 'neither'."
)
with pytest.raises(ValueError, match=value_error_msg):
series = Series(date_range("1/1/2000", periods=10))
series.between(left, right, inclusive="yes")
def test_between_inclusive_warning(self):
series = Series(date_range("1/1/2000", periods=10))
left, right = series[[2, 7]]
with tm.assert_produces_warning(FutureWarning):
result = series.between(left, right, inclusive=False)
expected = (series > left) & (series < right)
tm.assert_series_equal(result, expected)
with tm.assert_produces_warning(FutureWarning):
result = series.between(left, right, inclusive=True)
expected = (series >= left) & (series <= right)
tm.assert_series_equal(result, expected)
| Python | 5 | ajayiagbebaku/NFL-Model | venv/Lib/site-packages/pandas/tests/series/methods/test_between.py | [
"MIT"
] |
/*
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <Kernel/FileSystem/Inode.h>
#include <Kernel/Memory/PrivateInodeVMObject.h>
namespace Kernel::Memory {
ErrorOr<NonnullRefPtr<PrivateInodeVMObject>> PrivateInodeVMObject::try_create_with_inode(Inode& inode)
{
return adopt_nonnull_ref_or_enomem(new (nothrow) PrivateInodeVMObject(inode, inode.size()));
}
ErrorOr<NonnullRefPtr<VMObject>> PrivateInodeVMObject::try_clone()
{
return adopt_nonnull_ref_or_enomem<VMObject>(new (nothrow) PrivateInodeVMObject(*this));
}
PrivateInodeVMObject::PrivateInodeVMObject(Inode& inode, size_t size)
: InodeVMObject(inode, size)
{
}
PrivateInodeVMObject::PrivateInodeVMObject(PrivateInodeVMObject const& other)
: InodeVMObject(other)
{
}
PrivateInodeVMObject::~PrivateInodeVMObject()
{
}
}
| C++ | 3 | r00ster91/serenity | Kernel/Memory/PrivateInodeVMObject.cpp | [
"BSD-2-Clause"
] |
{% extends 'tests/_data/fixtures/views/templates/a.volt' %}{% block body %}[B]{% endblock %}
| Volt | 1 | tidytrax/cphalcon | tests/_data/fixtures/views/templates/b.volt | [
"BSD-3-Clause"
] |
- dashboard: transactions_conversions_and_revenue
title: Transactions, Conversions, and Revenue
layout: newspaper
elements:
- name: Top Acquisition Sources by Revenue
title: Top Acquisition Sources by Revenue
model: google_analytics_block
explore: ga_sessions
type: looker_line
fields:
- trafficSource.source
- ga_sessions.session_count
- totals.transactions_count
- totals.transactionRevenue_total
sorts:
- ga_sessions.session_count desc
limit: 5
column_limit: 50
dynamic_fields:
- table_calculation: transaction_conversion_rate
label: Transaction Conversion Rate
expression: "${totals.transactions_count}/${ga_sessions.session_count}"
value_format:
value_format_name: percent_2
_kind_hint: measure
_type_hint: number
- table_calculation: avg_revenue_per_transaction
label: Avg Revenue per Transaction
expression: "${totals.transactionRevenue_total}/${totals.transactions_count}"
value_format:
value_format_name: usd_0
_kind_hint: measure
_type_hint: number
- table_calculation: total_transaction_revenue
label: Total Transaction Revenue
expression: "${totals.transactionRevenue_total}"
value_format:
value_format_name: usd
_kind_hint: measure
_type_hint: number
query_timezone: America/New_York
stacking: ''
show_value_labels: true
label_density: 25
legend_position: center
x_axis_gridlines: false
y_axis_gridlines: true
show_view_names: true
limit_displayed_rows: false
y_axis_combined: true
show_y_axis_labels: true
show_y_axis_ticks: true
y_axis_tick_density: default
y_axis_tick_density_custom: 5
show_x_axis_label: true
show_x_axis_ticks: true
x_axis_scale: auto
y_axis_scale_mode: linear
show_null_points: true
point_style: circle
interpolation: monotone
value_labels: legend
label_type: labPer
ordering: none
show_null_labels: false
show_totals_labels: false
show_silhouette: false
totals_color: "#808080"
series_types:
total_transaction_revenue: column
inner_radius: 50
hidden_fields:
- ga_sessions.session_count
- totals.transactions_count
- totals.transactionRevenue_total
series_colors:
transaction_conversion_rate: "#1D98D3"
total_transaction_revenue: "#3B4260"
avg_revenue_per_transaction: "#39A736"
y_axes:
- label: ''
maxValue:
minValue:
orientation: left
showLabels: true
showValues: true
tickDensity: default
tickDensityCustom: 5
type: linear
unpinAxis: false
valueFormat:
series:
- id: transaction_conversion_rate
name: Transaction Conversion Rate
axisId: transaction_conversion_rate
- label: Transaction Revenue
maxValue:
minValue:
orientation: right
showLabels: true
showValues: true
tickDensity: default
tickDensityCustom: 5
type: linear
unpinAxis: false
valueFormat: "$#"
series:
- id: total_transaction_revenue
name: Total Transaction Revenue
axisId: total_transaction_revenue
- id: avg_revenue_per_transaction
name: Avg Revenue per Transaction
axisId: avg_revenue_per_transaction
label_color:
- "#1D98D3"
- "#39A736"
- "#fff"
listen:
Date: ga_sessions.partition_date
Campaign: trafficSource.campaign
First Time Visitor: ga_sessions.first_time_visitor
row: 5
col: 12
width: 12
height: 9
- name: First Page Visited (Full Detail)
title: First Page Visited (Full Detail)
model: google_analytics_block
explore: ga_sessions
type: table
fields:
- first_page.pageTitle
- ga_sessions.session_count
- totals.page_views_session
- totals.pageviews_total
- totals.timeonsite_average_per_session
- ga_sessions.unique_visitors
- totals.transactions_count
- totals.transactionRevenue_total
sorts:
- totals.transactionRevenue_total desc
limit: 10
column_limit: 50
dynamic_fields:
- table_calculation: transaction_conversion_rate
label: Transaction Conversion Rate
expression: "${totals.transactions_count}/${ga_sessions.session_count}"
value_format:
value_format_name: percent_2
_kind_hint: measure
_type_hint: number
- table_calculation: total_transaction_revenue
label: Total Transaction Revenue
expression: "${totals.transactionRevenue_total}"
value_format:
value_format_name: usd_0
_kind_hint: measure
_type_hint: number
query_timezone: America/New_York
show_view_names: false
show_row_numbers: true
truncate_column_names: false
hide_totals: false
hide_row_totals: false
table_theme: gray
limit_displayed_rows: false
stacking: ''
show_value_labels: false
label_density: 25
legend_position: center
x_axis_gridlines: false
y_axis_gridlines: true
y_axis_combined: false
show_y_axis_labels: true
show_y_axis_ticks: true
y_axis_tick_density: default
y_axis_tick_density_custom: 5
show_x_axis_label: true
show_x_axis_ticks: true
x_axis_scale: auto
y_axis_scale_mode: linear
ordering: none
show_null_labels: false
show_totals_labels: false
show_silhouette: false
totals_color: "#808080"
font_size: '12'
series_types:
__FILE: bq_connectors_ga360/ga_sessions_and_visitors.dashboard.lookml
__LINE_NUM: 394
hidden_fields:
- totals.transactionRevenue_total
enable_conditional_formatting: false
conditional_formatting_include_totals: false
conditional_formatting_include_nulls: false
listen:
Date: ga_sessions.partition_date
Campaign: trafficSource.campaign
First Time Visitor: ga_sessions.first_time_visitor
row: 30
col: 0
width: 24
height: 6
- name: Revenue and Conversion Rate by Session Length
title: Revenue and Conversion Rate by Session Length
model: google_analytics_block
explore: ga_sessions
type: looker_line
fields:
- totals.timeonsite_tier
- ga_sessions.session_count
- totals.transactions_count
- totals.transactionRevenue_total
filters:
totals.timeonsite_tier: "-Undefined"
sorts:
- totals.timeonsite_tier
limit: 500
column_limit: 50
dynamic_fields:
- table_calculation: transaction_conversion_rate
label: Transaction Conversion Rate
expression: "${totals.transactions_count}/${ga_sessions.session_count}"
value_format:
value_format_name: percent_2
_kind_hint: measure
_type_hint: number
- table_calculation: avg_revenue_per_transaction
label: Avg Revenue per Transaction
expression: "${totals.transactionRevenue_total}/${ga_sessions.session_count}"
value_format:
value_format_name: usd
_kind_hint: measure
_type_hint: number
- table_calculation: total_transaction_revenue
label: Total Transaction Revenue
expression: "${totals.transactionRevenue_total}"
value_format:
value_format_name: usd_0
_kind_hint: measure
_type_hint: number
query_timezone: America/New_York
stacking: ''
show_value_labels: true
label_density: 25
legend_position: center
x_axis_gridlines: false
y_axis_gridlines: true
show_view_names: false
limit_displayed_rows: false
y_axis_combined: true
show_y_axis_labels: true
show_y_axis_ticks: true
y_axis_tick_density: default
y_axis_tick_density_custom: 5
show_x_axis_label: true
show_x_axis_ticks: true
x_axis_scale: auto
y_axis_scale_mode: linear
show_null_points: true
point_style: circle
interpolation: monotone
ordering: none
show_null_labels: false
show_totals_labels: false
show_silhouette: false
totals_color: "#808080"
series_types:
total_transaction_revenue: column
series_colors:
ga_sessions.session_count: "#3B4260"
total_transaction_revenue: "#3B4260"
avg_revenue_per_transaction: "#39A736"
hidden_fields:
- ga_sessions.session_count
- totals.transactions_count
- totals.transactionRevenue_total
y_axes:
- label:
maxValue:
minValue:
orientation: left
showLabels: true
showValues: true
tickDensity: default
tickDensityCustom: 5
type: linear
unpinAxis: false
valueFormat:
series:
- id: transaction_conversion_rate
name: Transaction Conversion Rate
axisId: transaction_conversion_rate
- label: Transaction Revenue
maxValue:
minValue:
orientation: right
showLabels: true
showValues: true
tickDensity: default
tickDensityCustom: 5
type: linear
unpinAxis: false
valueFormat:
series:
- id: total_transaction_revenue
name: Total Transaction Revenue
axisId: total_transaction_revenue
- id: avg_revenue_per_transaction
name: Avg Revenue per Transaction
axisId: avg_revenue_per_transaction
label_color:
- "#1D98D3"
- "#39A736"
- "#fff"
listen:
Date: ga_sessions.partition_date
Campaign: trafficSource.campaign
First Time Visitor: ga_sessions.first_time_visitor
row: 14
col: 0
width: 12
height: 9
- name: Total Sessions
title: Total Sessions
model: google_analytics_block
explore: ga_sessions
type: single_value
fields:
- ga_sessions.session_count
limit: 500
column_limit: 50
query_timezone: America/New_York
custom_color_enabled: false
custom_color: forestgreen
show_single_value_title: true
show_comparison: false
comparison_type: value
comparison_reverse_colors: false
show_comparison_label: true
stacking: ''
show_value_labels: false
label_density: 25
legend_position: center
x_axis_gridlines: false
y_axis_gridlines: true
show_view_names: true
limit_displayed_rows: false
y_axis_combined: true
show_y_axis_labels: true
show_y_axis_ticks: true
y_axis_tick_density: default
y_axis_tick_density_custom: 5
show_x_axis_label: true
show_x_axis_ticks: true
x_axis_scale: auto
y_axis_scale_mode: linear
ordering: none
show_null_labels: false
show_totals_labels: false
show_silhouette: false
totals_color: "#808080"
series_types:
__FILE: bq_connectors_ga360/bounce_rates.dashboard.lookml
__LINE_NUM: 138
listen:
Date: ga_sessions.partition_date
Campaign: trafficSource.campaign
First Time Visitor: ga_sessions.first_time_visitor
row: 2
col: 0
width: 4
height: 3
- name: Top Keywords by Revenue
title: Top Keywords by Revenue
model: google_analytics_block
explore: ga_sessions
type: looker_line
fields:
- trafficSource.keyword
- ga_sessions.total_visitors
- totals.transactions_count
- totals.transactionRevenue_total
filters:
trafficSource.keyword: "-NULL"
totals.transactionRevenue_total: ">0"
sorts:
- totals.transactionRevenue_total desc
limit: 5
column_limit: 50
dynamic_fields:
- table_calculation: percent_of_visitors_w_transactions
label: Percent of Visitors w/ Transactions
expression: "${totals.transactions_count}/${ga_sessions.total_visitors}"
value_format:
value_format_name: percent_2
_kind_hint: measure
_type_hint: number
- table_calculation: average_transaction_revenue
label: Average Transaction Revenue
expression: "${total_transaction_revenue}/${totals.transactions_count}"
value_format:
value_format_name: usd
_kind_hint: measure
_type_hint: number
- table_calculation: total_transaction_revenue
label: Total Transaction Revenue
expression: "${totals.transactionRevenue_total}"
value_format:
value_format_name: usd
_kind_hint: measure
_type_hint: number
query_timezone: America/Los_Angeles
stacking: ''
show_value_labels: true
label_density: 25
legend_position: center
x_axis_gridlines: false
y_axis_gridlines: true
show_view_names: false
limit_displayed_rows: false
y_axis_combined: false
show_y_axis_labels: true
show_y_axis_ticks: true
y_axis_tick_density: default
y_axis_tick_density_custom: 5
show_x_axis_label: true
show_x_axis_ticks: true
x_axis_scale: auto
y_axis_scale_mode: linear
show_null_points: true
point_style: circle
interpolation: monotone
show_totals_labels: false
show_silhouette: false
totals_color: "#808080"
ordering: none
show_null_labels: false
series_types:
totals.transactionRevenue_total: column
total_transaction_revenue: column
y_axis_labels: []
hidden_series: []
y_axis_orientation:
- left
- right
hidden_fields:
- ga_sessions.total_visitors
- totals.transactions_count
- totals.transactionRevenue_total
series_colors:
totals.transactionRevenue_total: "#3B4260"
percent_of_visitors_w_transactions: "#1D98D3"
total_transaction_revenue: "#3B4260"
average_transaction_revenue: "#39A736"
series_labels: {}
label_color:
- "#1D98D3"
- "#39A736"
- "#fff"
y_axes:
- label: ''
maxValue:
minValue:
orientation: left
showLabels: true
showValues: true
tickDensity: default
tickDensityCustom: 5
type: linear
unpinAxis: false
valueFormat:
series:
- id: percent_of_visitors_w_transactions
name: Percent of Visitors w/ Transactions
axisId: percent_of_visitors_w_transactions
- label: Transaction Revenue
maxValue:
minValue:
orientation: right
showLabels: true
showValues: true
tickDensity: default
tickDensityCustom: 5
type: linear
unpinAxis: false
valueFormat:
series:
- id: total_transaction_revenue
name: Total Transaction Revenue
axisId: total_transaction_revenue
- id: average_transaction_revenue
name: Average Transaction Revenue
axisId: average_transaction_revenue
listen:
Date: ga_sessions.partition_date
Campaign: trafficSource.campaign
First Time Visitor: ga_sessions.first_time_visitor
row: 5
col: 0
width: 12
height: 9
- title: Revenue Conversion Rate by Visit Tier
name: Revenue Conversion Rate by Visit Tier
model: google_analytics_block
explore: ga_sessions
type: looker_line
fields:
- ga_sessions.visitnumbertier
- totals.transactions_count
- totals.transactionRevenue_total
- ga_sessions.session_count
filters:
ga_sessions.visitnumbertier: "-Below 1"
sorts:
- ga_sessions.visitnumbertier
limit: 500
column_limit: 50
dynamic_fields:
- table_calculation: transaction_conversion_rate
label: Transaction Conversion Rate
expression: "${totals.transactions_count}/${ga_sessions.session_count}"
value_format:
value_format_name: percent_0
_kind_hint: measure
_type_hint: number
- table_calculation: avg_revenue_per_transaction
label: Avg Revenue per Transaction
expression: "${totals.transactionRevenue_total}/${totals.transactions_count}"
value_format:
value_format_name: usd_0
_kind_hint: measure
_type_hint: number
- table_calculation: total_transaction_revenue
label: Total Transaction Revenue
expression: "${totals.transactionRevenue_total}"
value_format:
value_format_name: usd_0
_kind_hint: measure
_type_hint: number
query_timezone: America/New_York
stacking: ''
show_value_labels: true
label_density: 25
legend_position: center
x_axis_gridlines: false
y_axis_gridlines: true
show_view_names: false
limit_displayed_rows: false
y_axis_combined: true
show_y_axis_labels: true
show_y_axis_ticks: true
y_axis_tick_density: default
y_axis_tick_density_custom: 5
show_x_axis_label: true
show_x_axis_ticks: true
x_axis_scale: auto
y_axis_scale_mode: linear
show_null_points: true
point_style: circle
interpolation: monotone
ordering: none
show_null_labels: false
show_totals_labels: false
show_silhouette: false
totals_color: "#808080"
series_types:
revenue: column
total_transaction_revenue: column
hidden_fields:
- totals.transactions_count
- totals.transactionRevenue_total
- ga_sessions.session_count
series_colors:
sessions: "#3B4260"
average_time_on_site_per_session: "#39A736"
average_pageview_per_session: "#F3BF0E"
total_transaction_revenue: "#3B4260"
avg_revenue_per_transaction: "#39A736"
y_axes:
- label:
maxValue:
minValue:
orientation: left
showLabels: true
showValues: true
tickDensity: default
tickDensityCustom: 5
type: linear
unpinAxis: false
valueFormat:
series:
- id: transaction_conversion_rate
name: Transaction Conversion Rate
axisId: transaction_conversion_rate
- label: Transaction Revenue
maxValue:
minValue:
orientation: right
showLabels: true
showValues: true
tickDensity: default
tickDensityCustom: 5
type: linear
unpinAxis: false
valueFormat:
series:
- id: total_transaction_revenue
name: Total Transaction Revenue
axisId: total_transaction_revenue
- id: avg_revenue_per_transaction
name: Avg Revenue per Transaction
axisId: avg_revenue_per_transaction
hidden_series:
- average_time_on_site_per_session
- average_pageview_per_session
label_color:
- "#1D98D3"
- "#39A736"
- "#ffff"
listen:
Date: ga_sessions.partition_date
Campaign: trafficSource.campaign
First Time Visitor: ga_sessions.first_time_visitor
row: 14
col: 12
width: 12
height: 9
- title: Total Revenue
name: Total Revenue
model: google_analytics_block
explore: ga_sessions
type: single_value
fields:
- totals.transactionRevenue_total
limit: 500
column_limit: 50
custom_color_enabled: false
custom_color: forestgreen
show_single_value_title: true
show_comparison: false
comparison_type: value
comparison_reverse_colors: false
show_comparison_label: true
listen:
Date: ga_sessions.partition_date
Campaign: trafficSource.campaign
First Time Visitor: ga_sessions.first_time_visitor
row: 2
col: 16
width: 4
height: 3
- title: Total Transactions
name: Total Transactions
model: google_analytics_block
explore: ga_sessions
type: single_value
fields:
- totals.transactions_count
limit: 500
column_limit: 50
custom_color_enabled: false
custom_color: forestgreen
show_single_value_title: true
show_comparison: false
comparison_type: value
comparison_reverse_colors: false
show_comparison_label: true
listen:
Date: ga_sessions.partition_date
Campaign: trafficSource.campaign
First Time Visitor: ga_sessions.first_time_visitor
row: 2
col: 8
width: 4
height: 3
- title: Average Revenue per Transaction
name: Average Revenue per Transaction
model: google_analytics_block
explore: ga_sessions
type: single_value
fields:
- totals.transactions_count
- totals.transactionRevenue_total
limit: 500
column_limit: 50
dynamic_fields:
- table_calculation: revenue_per_transaction
label: Revenue per Transaction
expression: "${totals.transactionRevenue_total}/${totals.transactions_count}"
value_format:
value_format_name: usd
_kind_hint: measure
_type_hint: number
custom_color_enabled: false
custom_color: forestgreen
show_single_value_title: true
show_comparison: false
comparison_type: value
comparison_reverse_colors: false
show_comparison_label: true
hidden_fields:
- totals.transactions_count
- totals.transactionRevenue_total
listen:
Date: ga_sessions.partition_date
Campaign: trafficSource.campaign
First Time Visitor: ga_sessions.first_time_visitor
row: 2
col: 12
width: 4
height: 3
- title: Transaction Conversion Rate
name: Transaction Conversion Rate
model: google_analytics_block
explore: ga_sessions
type: single_value
fields:
- totals.transactions_count
- ga_sessions.session_count
limit: 500
column_limit: 50
dynamic_fields:
- table_calculation: revenue_per_transaction
label: Revenue per Transaction
expression: "${totals.transactions_count}/${ga_sessions.session_count}"
value_format:
value_format_name: percent_2
_kind_hint: measure
_type_hint: number
custom_color_enabled: false
custom_color: forestgreen
show_single_value_title: true
show_comparison: false
comparison_type: value
comparison_reverse_colors: false
show_comparison_label: true
hidden_fields:
- totals.transactions_count
- ga_sessions.session_count
listen:
Date: ga_sessions.partition_date
Campaign: trafficSource.campaign
First Time Visitor: ga_sessions.first_time_visitor
row: 2
col: 4
width: 4
height: 3
- title: Unique Visitors
name: Unique Visitors
model: google_analytics_block
explore: ga_sessions
type: single_value
fields:
- ga_sessions.unique_visitors
limit: 500
column_limit: 50
custom_color_enabled: false
custom_color: forestgreen
show_single_value_title: true
show_comparison: false
comparison_type: value
comparison_reverse_colors: false
show_comparison_label: true
stacking: ''
show_value_labels: false
label_density: 25
legend_position: center
x_axis_gridlines: false
y_axis_gridlines: true
show_view_names: true
limit_displayed_rows: false
y_axis_combined: true
show_y_axis_labels: true
show_y_axis_ticks: true
y_axis_tick_density: default
y_axis_tick_density_custom: 5
show_x_axis_label: true
show_x_axis_ticks: true
x_axis_scale: auto
y_axis_scale_mode: linear
ordering: none
show_null_labels: false
show_totals_labels: false
show_silhouette: false
totals_color: "#808080"
series_types: {}
listen:
Date: ga_sessions.partition_date
Campaign: trafficSource.campaign
First Time Visitor: ga_sessions.first_time_visitor
row: 2
col: 20
width: 4
height: 3
- name: How are Conversion Rates and Revenue figures affected by session length,
frequency, and acquisition source?
type: text
title_text: How are Conversion Rates and Revenue figures affected by session length,
frequency, and acquisition source?
row: 0
col: 0
width: 24
height: 2
- title: Revenue and Conversion Rate by First Page Visited
name: Revenue and Conversion Rate by First Page Visited
model: google_analytics_block
explore: ga_sessions
type: looker_line
fields:
- ga_sessions.session_count
- totals.transactions_count
- totals.transactionRevenue_total
- first_page.pageTitle
sorts:
- ga_sessions.session_count desc
limit: 10
column_limit: 50
dynamic_fields:
- table_calculation: transaction_conversion_rate
label: Transaction Conversion Rate
expression: "${totals.transactions_count}/${ga_sessions.session_count}"
value_format:
value_format_name: percent_2
_kind_hint: measure
_type_hint: number
- table_calculation: avg_revenue_per_transaction
label: Avg Revenue per Transaction
expression: "${totals.transactionRevenue_total}/${totals.transactions_count}"
value_format:
value_format_name: usd_0
_kind_hint: measure
_type_hint: number
- table_calculation: total_transaction_revenue
label: Total Transaction Revenue
expression: "${totals.transactionRevenue_total}"
value_format:
value_format_name: usd_0
_kind_hint: measure
_type_hint: number
stacking: ''
show_value_labels: true
label_density: 25
legend_position: center
x_axis_gridlines: false
y_axis_gridlines: true
show_view_names: true
limit_displayed_rows: false
y_axis_combined: true
show_y_axis_labels: true
show_y_axis_ticks: true
y_axis_tick_density: default
y_axis_tick_density_custom: 5
show_x_axis_label: true
show_x_axis_ticks: true
x_axis_scale: auto
y_axis_scale_mode: linear
show_null_points: true
point_style: circle
interpolation: monotone
ordering: none
show_null_labels: false
show_totals_labels: false
show_silhouette: false
totals_color: "#808080"
hidden_fields:
- ga_sessions.session_count
- totals.transactions_count
- totals.transactionRevenue_total
series_types:
total_transaction_revenue: column
y_axes:
- label: ''
maxValue:
minValue:
orientation: left
showLabels: true
showValues: true
tickDensity: default
tickDensityCustom: 5
type: linear
unpinAxis: false
valueFormat:
series:
- id: transaction_conversion_rate
name: Transaction Conversion Rate
axisId: transaction_conversion_rate
- label: Transaction Revenue
maxValue:
minValue:
orientation: right
showLabels: true
showValues: true
tickDensity: default
tickDensityCustom: 5
type: linear
unpinAxis: false
valueFormat:
series:
- id: avg_revenue_per_transaction
name: Avg Revenue per Transaction
axisId: avg_revenue_per_transaction
- id: total_transaction_revenue
name: Total Transaction Revenue
axisId: total_transaction_revenue
label_color:
- "#1D98D3"
- "#39A736"
- "#ffff"
series_colors:
total_transaction_revenue: "#3B4260"
avg_revenue_per_transaction: "#39A736"
listen:
Date: ga_sessions.partition_date
Campaign: trafficSource.campaign
First Time Visitor: ga_sessions.first_time_visitor
row: 23
col: 0
width: 24
height: 7
filters:
- name: Campaign
title: Campaign
type: field_filter
default_value: ''
model: google_analytics_block
explore: ga_sessions
field: trafficSource.campaign
listens_to_filters: []
allow_multiple_values: true
required: false
- name: Date
title: Date
type: date_filter
default_value: 14 days
allow_multiple_values: true
required: false
- name: First Time Visitor
title: First Time Visitor
type: field_filter
default_value: ''
model: google_analytics_block
explore: ga_sessions
field: ga_sessions.first_time_visitor
listens_to_filters: []
allow_multiple_values: true
required: false
- name: Property
title: Property
type: string_filter
default_value: All Websites
allow_multiple_values: true
required: false | LookML | 3 | thomasbanghart/testing-remote-dep | lookml_dashboards/transactions_conversions_revenue.dashboard.lookml | [
"MIT"
] |
<cfscript>
new tests.packagecase.packagecase_nokC();
</cfscript>
| ColdFusion CFC | 0 | tonym128/CFLint | src/test/resources/com/cflint/tests/PackageCase/packagecase_nokC.cfc | [
"BSD-3-Clause"
] |
<cfoutput>
<!--- Reset --->
#startFormTag(action="create", id="pwresetForm")#
#textFieldTag(name="email", label="Email Address", type="email", required="true")#
<p class="help-block append">Enter your e-mail address to receive instructions for resetting your password.</p>
<div class="btn-group">
#submitTag(value="Send Reset Email", class="btn btn-primary")#
#linkTo(text="Cancel", controller="sessions", action="new", class="btn btn-default")#
</div>
#endFormTag()#
</cfoutput> | ColdFusion | 4 | fintecheando/RoomBooking | views/passwordresets/_create.cfm | [
"Apache-1.1"
] |
module Issue4022 where
open import Common.Prelude
open import Agda.Builtin.Equality
open import Agda.Builtin.Char.Properties
open import Agda.Builtin.String.Properties
open import Agda.Builtin.Float.Properties
open import Issue4022.Import
| Agda | 2 | cruhland/agda | test/interaction/Issue4022.agda | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.