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
|
---|---|---|---|---|---|
#!/usr/bin/perl
$count = 1;
@cookies = split(/;/, $ENV{'HTTP_COOKIE'});
foreach $pair (@cookies)
{
($name, $value) = split(/=/, $pair);
$name =~ s/^\s+//;
$name =~ s/\s+$//;
if ($name eq "redirect-cycle-count") {
$count = $value;
}
}
if ($count eq 1) {
print "Status: 302 Moved Temporarily\r\n";
print "Location: redirect-cycle-2.pl\r\n";
print "Content-type: text/html\r\n";
print "Set-Cookie: redirect-cycle-count=2\r\n";
print "\r\n";
print "<html>";
print "<body>";
print "<div>Page 1</div>";
print "</body>";
print "</html>";
} else {
print "Content-type: text/html\r\n";
print "\r\n";
print "<html>";
print "<head>";
print "<script type='text/javascript'>";
print "function startTest() { testRunner.dumpBackForwardList(); }";
print "</script>";
print "</head>";
print "<body onload='startTest();'>";
print "<div>Page 3</div>";
print "</body>";
print "</html>";
}
| Perl | 3 | zealoussnow/chromium | third_party/blink/web_tests/http/tests/navigation/resources/redirect-cycle-1.pl | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
Note 0
Copyright (C) 2017 Jonathan Hough. All rights reserved.
)
Note 'References'
[0] Deep Learning, Bengio Y., Courville, A., Chapter 8.
see: http://www.deeplearningbook.org/contents/optimization.html
[1] An overview of gradient descent optimization algorithms, Ruder, S.
see: arXiv:1609.04747
)
cocurrent 'jMlpOpt'
NB. Multilayer Perceptron Backprop Solvers. A collection
NB. of classes implementing various optimizations for the
NB. learning rate in MLP backpropagation networks.
coclass 'MLPSolver'
e=: 0.01
create=: destroy=: codestroy
calcGrad=: 4 : 0
0
)
destroy=: codestroy
NB. ADApative Moments solver.
NB. see: Deep Learning, Benjio; Godfellow; Courville
NB. 8.5.3 page 301.
coclass 'AdamSolver'
coinsert 'MLPSolver'
create=: 3 : 0
rho1=: 0.9 NB.y # 0.9
rho2=: 0.999 NB.y # 0.999
d=: 1e_2
e=: 0.02
t=: 0 NB. y # 0
s=: (($&0)@:$) &.> y NB. y # 0
r=: (($&0)@:$) &.> y NB. y # 0
)
reset=: 3 : 0
rho1=: 0.9 NB.y # 0.9
rho2=: 0.999 NB.y # 0.999
d=: 1e_8
e=: 0.02
t=: 0 NB. y # 0
s=: (($&0)@:$) &.> s NB. y # 0
r=: (($&0)@:$) &.> r NB. y # 0
)
calcGrad=: 4 : 0
t=: >:t
NB.===========Begin==========
rho1m=. 1 - rho1
rho2m=. 1 - rho2
a1=. (rho1&*)&.> s
a2=. (rho2&*)&.> r
s=: a1 ([+(rho1m&*@:]))&.> y
r=: a2 ([+(rho2m&*@:*:@:]))&.> y
rr1=. 1 -rho1^t
rr2=. 1 -rho2^t
shat=: (%&rr1)&.> s
rhat=: (%&rr2)&.> r
gr=. shat (e&*@:([ % (d&+@:%:@:])))&.> rhat
x -&.> gr
)
destroy=: codestroy
NB. Stochastic Gradient Descent Solver
NB. Simplest implementation, no momentum.
coclass 'SGDSolver'
coinsert 'MLPSolver'
create=: 3 : 0
e=: y
)
calcGrad=: 4 : 0
x (([-(e&*@:]))&.>) y
)
reset=: 3 : 0
r=. 0
)
destroy=: codestroy
NB. SGD solver with momentum.
coclass 'SGDMSolver'
coinsert 'SGDSolver'
vupdate=: ((2&*@:[) - (3&*@:]))&.>
create=: 3 : 0
'e a'=: y NB. learning rate;momentum
r=: '' NB. initial velocity matrix (boxed matrices, one matrix for each layer of ANN)
)
reset=: 3 : 0
r=: ''
)
calcGrad=: 4 : 0
if. r -: '' do. r=: ($&0@:$)&.>y end.
r=: r ((a&*@:[) - (e&*@:]))&.> y
x +&.> r
)
destroy=: codestroy
NB. AdaGrad implementation.
coclass 'AdaGradSolver'
coinsert 'SGDSolver'
d=: 1e_7
create=: 3 : 0
r=: (($&0)@:$) &.> y
e=: 0.01
)
reset=: 3 : 0
r=: 0
)
calcGrad=: 4 : 0
grad=. y
r=: r ([+(*:@:]))&.> grad
x -&.> grad *&.> e&%@:(d&+)&.>r
)
destroy=: codestroy
NB. RMSProp implementation
coclass 'RMSPropSolver'
coinsert 'MLPSolver'
create=: 3 : 0
d=: 1e_6
rho=: 0.99
e=: 0.01
r=: (($&0)@:$) &.> y
)
calcGrad=: 4 : 0
grad=. y
rm=. 1-rho
r=: r (rho&*@:[+(rm&*@:*:@:]))&.> grad
x -&.> grad *&.> e&%@:(d&+)&.>r
)
destroy=: codestroy
| J | 5 | jonghough/jlearn | mlp/mlpopt.ijs | [
"MIT"
] |
.class public LTestReservedNames;
.super Ljava/lang/Object;
.source "TestReservedNames.java"
# instance fields
.field public do:Ljava/lang/String; # reserved name
.field public 0f:Ljava/lang/String; # invalid identifier
# direct methods
.method public constructor <init>()V
.registers 1
.prologue
.line 3
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public try()Ljava/lang/String;
.registers 2
.prologue
.line 8
iget-object v0, p0, LTestReservedNames;->do:Ljava/lang/String;
return-object v0
.end method
| Smali | 3 | DSYliangweihao/jadx | jadx-core/src/test/smali/names/TestReservedNames.smali | [
"Apache-2.0"
] |
<g:each in="${selectedEncrypter}" var="prop">
<g:render template="/framework/pluginConfigPropertyFormField" model="${[prop:prop,
error: report?.errors ? report.errors[prop.name] : null,
fieldname: prop.name,
origfieldname: "orig."+prop.name,
]}" />
</g:each> | Groovy Server Pages | 2 | kbens/rundeck | rundeckapp/grails-app/views/passwordUtility/_renderSelectedEncrypter.gsp | [
"Apache-2.0"
] |
/*
* Copyright (C) 2008 The Guava Authors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package com.google.common.escape;
import com.google.common.annotations.GwtCompatible;
import com.google.common.base.Function;
import com.google.errorprone.annotations.DoNotMock;
/**
* An object that converts literal text into a format safe for inclusion in a particular context
* (such as an XML document). Typically (but not always), the inverse process of "unescaping" the
* text is performed automatically by the relevant parser.
*
* <p>For example, an XML escaper would convert the literal string {@code "Foo<Bar>"} into {@code
* "Foo<Bar>"} to prevent {@code "<Bar>"} from being confused with an XML tag. When the
* resulting XML document is parsed, the parser API will return this text as the original literal
* string {@code "Foo<Bar>"}.
*
* <p>An {@code Escaper} instance is required to be stateless, and safe when used concurrently by
* multiple threads.
*
* <p>Because, in general, escaping operates on the code points of a string and not on its
* individual {@code char} values, it is not safe to assume that {@code escape(s)} is equivalent to
* {@code escape(s.substring(0, n)) + escape(s.substring(n))} for arbitrary {@code n}. This is
* because of the possibility of splitting a surrogate pair. The only case in which it is safe to
* escape strings and concatenate the results is if you can rule out this possibility, either by
* splitting an existing long string into short strings adaptively around {@linkplain
* Character#isHighSurrogate surrogate} {@linkplain Character#isLowSurrogate pairs}, or by starting
* with short strings already known to be free of unpaired surrogates.
*
* <p>The two primary implementations of this interface are {@link CharEscaper} and {@link
* UnicodeEscaper}. They are heavily optimized for performance and greatly simplify the task of
* implementing new escapers. It is strongly recommended that when implementing a new escaper you
* extend one of these classes. If you find that you are unable to achieve the desired behavior
* using either of these classes, please contact the Java libraries team for advice.
*
* <p>Popular escapers are defined as constants in classes like {@link
* com.google.common.html.HtmlEscapers} and {@link com.google.common.xml.XmlEscapers}. To create
* your own escapers, use {@link CharEscaperBuilder}, or extend {@code CharEscaper} or {@code
* UnicodeEscaper}.
*
* @author David Beaumont
* @since 15.0
*/
@DoNotMock("Use Escapers.nullEscaper() or another methods from the *Escapers classes")
@GwtCompatible
@ElementTypesAreNonnullByDefault
public abstract class Escaper {
// TODO(dbeaumont): evaluate custom implementations, considering package private constructor.
/** Constructor for use by subclasses. */
protected Escaper() {}
/**
* Returns the escaped form of a given literal string.
*
* <p>Note that this method may treat input characters differently depending on the specific
* escaper implementation.
*
* <ul>
* <li>{@link UnicodeEscaper} handles <a href="http://en.wikipedia.org/wiki/UTF-16">UTF-16</a>
* correctly, including surrogate character pairs. If the input is badly formed the escaper
* should throw {@link IllegalArgumentException}.
* <li>{@link CharEscaper} handles Java characters independently and does not verify the input
* for well formed characters. A {@code CharEscaper} should not be used in situations where
* input is not guaranteed to be restricted to the Basic Multilingual Plane (BMP).
* </ul>
*
* @param string the literal string to be escaped
* @return the escaped form of {@code string}
* @throws NullPointerException if {@code string} is null
* @throws IllegalArgumentException if {@code string} contains badly formed UTF-16 or cannot be
* escaped for any other reason
*/
public abstract String escape(String string);
private final Function<String, String> asFunction = this::escape;
/** Returns a {@link Function} that invokes {@link #escape(String)} on this escaper. */
public final Function<String, String> asFunction() {
return asFunction;
}
}
| Java | 5 | ksodhi2/guava | guava/src/com/google/common/escape/Escaper.java | [
"Apache-2.0"
] |
(set-info :smt-lib-version 2.6)
(set-logic QF_UF)
(set-info :source |
Generating minimum transitivity constraints in P-time for deciding Equality Logic,
Ofer Strichman and Mirron Rozanov,
SMT Workshop 2005.
Translator: Leonardo de Moura. |)
(set-info :category "crafted")
(set-info :status unsat)
(declare-sort U 0)
(declare-fun x0 () U)
(declare-fun y0 () U)
(declare-fun z0 () U)
(assert (not (= x0 x0)))
(check-sat)
(exit)
| SMT | 3 | livinlife6751/infer | sledge/test/smt/QF_UF/eq_diamond/eq_diamond1.smt2 | [
"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_NNAPI_SL_INCLUDE_SUPPORT_LIBRARY_H_
#define TENSORFLOW_LITE_NNAPI_SL_INCLUDE_SUPPORT_LIBRARY_H_
#include <memory>
#include <string>
// Changed when importing from AOSP
#include "tensorflow/lite/nnapi/NeuralNetworksTypes.h"
#include "tensorflow/lite/nnapi/sl/public/NeuralNetworksSupportLibraryImpl.h"
namespace tflite {
namespace nnapi {
/**
* Helper struct, derived from the latest NnApiSLDriverImpl.
*
* Owns the .so handle, and will close it in destructor.
* Sets proper implStructFeatureLevel in constructor.
*
* It's derived from the latest NnApiSLDriverImplFL* struct,
* so it contains all possible functionality.
*
* When a new NnApiSLDriverImpl is introduced, this class
* has to switch base class to it and provide constructors for
* all existing NnApiSLDriverImplFL* structs.
*
* There's expectation that for M>N, NnApiSLDriverImplFL(M) is
* a strict superset of NnApiSLDriverImplFL(N), and *NnApiSLDriverImplFL(M) can
* be reinterpret_cast to *NnApiSLDriverImplFL(N) safely.
*
* The base->implFeatureLevel is set to the actual Feature Level
* implemented by the SLDriverImpl,
*/
struct NnApiSupportLibrary : NnApiSLDriverImplFL5 {
NnApiSupportLibrary(const NnApiSLDriverImplFL5& impl, void* libHandle);
~NnApiSupportLibrary();
void* libHandle = nullptr;
};
/**
* Loads the NNAPI support library.
* The NnApiSupportLibrary structure is filled with all the pointers. If one
* function doesn't exist, a null pointer is stored.
*/
std::unique_ptr<const NnApiSupportLibrary> loadNnApiSupportLibrary(
const std::string& libName);
std::unique_ptr<const NnApiSupportLibrary> loadNnApiSupportLibrary(
void* libHandle);
} // namespace nnapi
} // namespace tflite
#endif // TENSORFLOW_LITE_NNAPI_SL_INCLUDE_SUPPORT_LIBRARY_H_
| C | 4 | ashutom/tensorflow-upstream | tensorflow/lite/nnapi/sl/include/SupportLibrary.h | [
"Apache-2.0"
] |
INSERT INTO drivers_license(id, license_number) values(1, 1234);
INSERT INTO person(id, name, drivers_license_id) values(1, 'Sam', 1);
| SQL | 3 | nicchagil/spring-framework | spring-test/src/test/resources/org/springframework/test/context/junit4/orm/db-test-data.sql | [
"Apache-2.0"
] |
/**
* This file is part of the Phalcon Framework.
*
* (c) Phalcon Team <[email protected]>
*
* For the full copyright and license information, please view the LICENSE.txt
* file that was distributed with this source code.
*
* Implementation of this file has been influenced by phalcon-api and AuraPHP
* @link https://github.com/phalcon/phalcon-api
* @license https://github.com/phalcon/phalcon-api/blob/master/LICENSE
* @link https://github.com/auraphp/Aura.Payload
* @license https://github.com/auraphp/Aura.Payload/blob/3.x/LICENSE
*
* @see Original inspiration for the https://github.com/phalcon/phalcon-api
*/
namespace Phalcon\Domain\Payload;
/**
* Holds the status codes for the payload
*/
class Status
{
const ACCEPTED = "ACCEPTED";
const AUTHENTICATED = "AUTHENTICATED";
const AUTHORIZED = "AUTHORIZED";
const CREATED = "CREATED";
const DELETED = "DELETED";
const ERROR = "ERROR";
const FAILURE = "FAILURE";
const FOUND = "FOUND";
const NOT_ACCEPTED = "NOT_ACCEPTED";
const NOT_AUTHENTICATED = "NOT_AUTHENTICATED";
const NOT_AUTHORIZED = "NOT_AUTHORIZED";
const NOT_CREATED = "NOT_CREATED";
const NOT_DELETED = "NOT_DELETED";
const NOT_FOUND = "NOT_FOUND";
const NOT_UPDATED = "NOT_UPDATED";
const NOT_VALID = "NOT_VALID";
const PROCESSING = "PROCESSING";
const SUCCESS = "SUCCESS";
const UPDATED = "UPDATED";
const VALID = "VALID";
/**
* Instantiation not allowed.
*/
final private function __construct()
{
}
}
| Zephir | 4 | tidytrax/cphalcon | phalcon/Domain/Payload/Status.zep | [
"BSD-3-Clause"
] |
#!/usr/bin/osascript
# @raycast.title Hate Current Track
# @raycast.author Bryan Schuetz
# @raycast.authorURL https://github.com/bryanschuetz
# @raycast.description Let the algorithm know how you feel about the currently playing track.
# @raycast.icon images/apple-music-logo.png
# @raycast.placeholder Hate it
# @raycast.mode silent
# @raycast.packageName Apple Music
# @raycast.schemaVersion 1
tell application "Music"
set disliked of current track to true
log "Litterally, the worst."
end tell | AppleScript | 4 | daviddzhou/script-commands | commands/media/apple-music/apple-music-hate-current-track.applescript | [
"MIT"
] |
\ #! /usr/stud/paysan/bin/forth
DECIMAL
\ : SECS TIME&DATE SWAP 60 * + SWAP 3600 * + NIP NIP NIP ;
CREATE FLAGS 8190 ALLOT
variable eflag
\ FLAGS 8190 + CONSTANT EFLAG
\ use secondary fill like pForth !!!
: FILL { caddr num charval -- }
num 0
?DO
charval caddr i + c!
LOOP
;
: PRIMES ( -- n ) FLAGS 8190 1 FILL 0 3 EFLAG @ FLAGS
DO I C@
IF DUP I + DUP EFLAG @ <
IF EFLAG @ SWAP
DO 0 I C! DUP +LOOP
ELSE DROP THEN SWAP 1+ SWAP
THEN 2 +
LOOP DROP ;
: BENCHMARK 0 100 0 DO PRIMES NIP LOOP ; \ !!! ONLY 100
\ SECS BENCHMARK . SECS SWAP - CR . .( secs)
: main
flags 8190 + eflag !
benchmark ( . ) drop
;
| Forth | 3 | 610t/retrobsd | src/cmd/pforth/fth/siev.fth | [
"BSD-3-Clause"
] |
property uparrowKeyCode : 126
property downarrowKeyCode : 125
property rightarrowKeyCode : 124
property leftarrowKeyCode : 123
to activateNetNewsWire()
tell application "NetNewsWire"
activate
end tell
end activateNetNewsWire
to multipleKeyCodes(keycode, numberOfKeys)
tell application "System Events"
tell process "NetNewsWire"
repeat numberOfKeys times
key code keycode
end repeat
end tell
end tell
end multipleKeyCodes
to establishMainWindowStartingState()
activateNetNewsWire()
multipleKeyCodes(downarrowKeyCode, 2)
multipleKeyCodes(rightarrowKeyCode, 2)
multipleKeyCodes(leftarrowKeyCode, 2)
multipleKeyCodes(uparrowKeyCode, 50)
end establishMainWindowStartingState
try
establishMainWindowStartingState()
-- hit the down arrow a few times to get into the feeds
on error message
return {test_result:false, script_result:message}
end try
return {test_result:true, script_result:"established starting state"}
| AppleScript | 4 | bubudrc/NetNewsWire | Tests/NetNewsWireTests/ScriptingTests/scripts/establishMainWindowStartingState.applescript | [
"MIT"
] |
#define OBJECTSHADER_COMPILE_VS
#define OBJECTSHADER_LAYOUT_SHADOW
#include "objectHF.hlsli"
| HLSL | 1 | rohankumardubey/WickedEngine | WickedEngine/shaders/shadowVS.hlsl | [
"MIT"
] |
PROGRAM
PRAGMA('project(#pragma link(libcurl.lib))')
INCLUDE('libcurl.inc')
MAP
PrintCookies(TCurlHttpClass pCurl)
END
SEP EQUATE('<9>') !Tab separates the fields
my_cookie STRING( '' |
& 'example.com' | !Hostname
& SEP & 'FALSE' | !Include subdomains
& SEP & '/' | !Path
& SEP & 'FALSE' | !Secure
& SEP & '0' | !Expiry in epoch time format. 0 == Session
& SEP & 'foo' | !Name
& SEP & 'bar' | !Value
)
curl TCurlHttpClass
res CURLcode, AUTO
CODE
curl.Init()
res = curl.AddHeaderCookie('username=Joe;userpwd=12345')
IF res <> CURLE_OK
MESSAGE('AddHeaderCookie failed: '& curl.StrError(res), 'cookies', ICON:Exclamation)
END
!my_cookie is imported immediately via AddCookie.
res = curl.AddCookie(my_cookie)
IF res <> CURLE_OK
MESSAGE('AddCookie failed: '& curl.StrError(res), 'cookies', ICON:Exclamation)
END
!The list of cookies in cookies.txt will not be imported until right
!before a transfer is performed. Cookies in the list that have the same
!hostname, path and name as in my_cookie are skipped. That is because
!libcurl has already imported my_cookie and it's considered a "live"
!cookie. A live cookie won't be replaced by one read from a file.
res = curl.ImportCookies('cookies.txt')
IF res <> CURLE_OK
MESSAGE('ImportCookies failed: '& curl.StrError(res), 'cookies', ICON:Exclamation)
END
!Cookies are exported after Cleanup is called. The server
!may have added, deleted or modified cookies by then. The cookies that
!were skipped on import are not exported.
res = curl.ExportCookies('cookies.txt')
IF res <> CURLE_OK
MESSAGE('ExportCookies failed: '& curl.StrError(res), 'cookies', ICON:Exclamation)
END
!send request
res = curl.SetUrl('http://www.example.com/')
IF res <> CURLE_OK
MESSAGE('SetUrl failed: '& curl.StrError(res), 'cookies', ICON:Exclamation)
END
res = curl.Perform() !cookies imported from cookies.txt
IF res <> CURLE_OK
MESSAGE('Perform failed: '& curl.StrError(res), 'cookies', ICON:Exclamation)
END
PrintCookies(curl)
!cookies exported to cookies.txt
!Cleanup() is automatically called in destructor
!curl.Cleanup()
PrintCookies PROCEDURE(TCurlHttpClass pCurl)
q QUEUE(TCurlSQueue)
END
qIndex LONG, AUTO
CODE
pCurl.GetCookieList(q)
LOOP qIndex = 1 TO RECORDS(q)
GET(q, qIndex)
MESSAGE(q.item, 'cookies', ICON:Asterisk)
END
| Clarion | 4 | mikeduglas/libcurl | examples/HTTP Cookies/cookies.clw | [
"curl"
] |
globalias() {
# Get last word to the left of the cursor:
# (z) splits into words using shell parsing
# (A) makes it an array even if there's only one element
local word=${${(Az)LBUFFER}[-1]}
if [[ $GLOBALIAS_FILTER_VALUES[(Ie)$word] -eq 0 ]]; then
zle _expand_alias
zle expand-word
fi
zle self-insert
}
zle -N globalias
# space expands all aliases, including global
bindkey -M emacs " " globalias
bindkey -M viins " " globalias
# control-space to make a normal space
bindkey -M emacs "^ " magic-space
bindkey -M viins "^ " magic-space
# normal space during searches
bindkey -M isearch " " magic-space
| Shell | 4 | chensanle/ohmyzsh | plugins/globalias/globalias.plugin.zsh | [
"MIT"
] |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
Describe "Get-Culture" -Tags "CI" {
It "Should return a type of CultureInfo for Get-Culture cmdlet" {
$culture = Get-Culture
$culture | Should -BeOfType CultureInfo
($culture).EnglishName | Should -BeExactly $Host.CurrentCulture.EnglishName
Get-Culture -NoUserOverrides | Should -BeOfType CultureInfo
}
It "Should have (Get-Culture).Name variable be equivalent to `$PSCulture" {
(Get-Culture).Name | Should -BeExactly $PSCulture
}
It "Should return the specified culture with '-Name' parameter" {
$ci = Get-Culture -Name ru-RU
$ci | Should -BeOfType CultureInfo
$ci.Name | Should -BeExactly "ru-RU"
$ci = Get-Culture -Name ru-RU -NoUserOverrides
$ci | Should -BeOfType CultureInfo
$ci.Name | Should -BeExactly "ru-RU"
}
It "Should return specified cultures with '-Name' parameter" {
$ciArray = Get-Culture "", "ru-RU"
$ciArray | Should -HaveCount 2
$ciArray[0] | Should -BeOfType CultureInfo
$ciArray[0].EnglishName | Should -BeExactly "Invariant Language (Invariant Country)"
$ciArray[1] | Should -BeOfType CultureInfo
$ciArray[1].Name | Should -BeExactly "ru-RU"
$ciArray[1].EnglishName | Should -BeExactly "Russian (Russia)"
}
It "Should accept values from a pipeline for '-Name' parameter" {
$ciArray = "", "ru-RU" | Get-Culture
$ciArray | Should -HaveCount 2
$ciArray[0] | Should -BeOfType CultureInfo
$ciArray[0].EnglishName | Should -BeExactly "Invariant Language (Invariant Country)"
$ciArray[1] | Should -BeOfType CultureInfo
$ciArray[1].Name | Should -BeExactly "ru-RU"
$ciArray[1].EnglishName | Should -BeExactly "Russian (Russia)"
}
It "Should return the culture array with '-ListAvailable' parameter" {
$ciArray = Get-Culture -ListAvailable
$ciArray.Count | Should -BeGreaterThan 0
$ciArray[0] | Should -BeOfType CultureInfo
}
It "Should write an error on unsupported culture name" {
{ Get-Culture -Name "abcdefghijkl" -ErrorAction Stop } | Should -PassThru -Throw -ErrorId "ParameterArgumentValidationError,Microsoft.PowerShell.Commands.GetCultureCommand"
}
}
Describe "`$PSCulture" -Tags "CI" {
It "`$PSCulture is the current thread culture" {
$PSCulture | Should -BeExactly $([System.Threading.Thread]::CurrentThread.CurrentCulture.Name)
}
It "`$PSUICulture is the current thread culture" {
$PSUICulture | Should -BeExactly $([System.Threading.Thread]::CurrentThread.CurrentUICulture.Name)
}
It "`$PSCulture follows the current thread culture" {
$oldCulture = [CultureInfo]::CurrentCulture
$newCulture = "ru-RU"
# Workaround to pass tests locally
if ($oldCulture -eq "ru-RU") {
$newCulture = "fr-FR"
}
try {
[CultureInfo]::currentculture = $newCulture
$PSCulture | Should -BeExactly $newCulture
$PSCulture | Should -BeExactly $([System.Threading.Thread]::CurrentThread.CurrentCulture.Name)
} finally {
[CultureInfo]::CurrentCulture = $oldCulture
}
}
It "`$PSUICulture follows the current thread culture" {
$oldUICulture = [CultureInfo]::CurrentUICulture
$newUICulture = "ru-RU"
if ($oldUICulture -eq "ru-RU") {
$newUICulture = "fr-FR"
}
try {
[CultureInfo]::CurrentUICulture = $newUICulture
$PSUICulture | Should -BeExactly $newUICulture
$PSUICulture | Should -BeExactly $([System.Threading.Thread]::CurrentThread.CurrentUICulture.Name)
} finally {
[CultureInfo]::CurrentUICulture = $oldUICulture
}
}
}
| PowerShell | 5 | rdtechie/PowerShell | test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Culture.Tests.ps1 | [
"MIT"
] |
;Change this file to customize zip2exe generated installers with a modern interface
!include "MUI.nsh"
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_LANGUAGE "English" | NSIS | 3 | vbillet/Torque3D | Engine/bin/tools/nsis/app/Contrib/zip2exe/Modern.nsh | [
"MIT"
] |
<html>
<head>
<title>Page B</title>
</head>
<body>
<h1>Page B</h1>
</body>
</html>
| HTML | 3 | adlerliu/500lines | web-server/code/05-refactored/subdir/b.html | [
"CC-BY-3.0"
] |
read n (leave some free space to stop the final loop)
>>,>++++++++[-<------>]
generate all integers from n to 0 separated by 0
<[[->+>+<<]>[-<+>]>-]
set result to 1 and move to integer '1'
<+<
While current integer is not null
[
multiply result by current integer
[->[->+>+<<]>[-<+>]<<]
store result at its new location (and reset temporary cells)
>>>[-<<<<+>>>>]<<[-]<
go to previous integer in the stack
<<]
| Brainfuck | 2 | CarbonDDR/al-go-rithms | math/factorial/brainfuck/fact.bf | [
"CC0-1.0"
] |
new class BoseNelsonSort {
new classmethod merge(array, a1, l1, a2, l2) {
if l1 == 1 and l2 == 1 {
compSwap(array, a1, a2);
} elif l1 == 1 and l2 == 2 {
compSwap(array, a1, a2 + 1);
compSwap(array, a1, a2);
} elif l1 == 2 and l2 == 1 {
compSwap(array, a1, a2);
compSwap(array, a1 + 1, a2);
} else {
new int m1 = l1 // 2,
m2 = (l2 // 2) if (l1 % 2 == 1) else ((l2 + 1) // 2);
this.merge(array, a1, m1, a2, m2);
this.merge(array, a1 + m1, l1 - m1, a2 + m2, l2 - m2);
this.merge(array, a1 + m1, l1 - m1, a2, m2);
}
}
new classmethod sort(array, a, l) {
if l > 1 {
new int m = l // 2;
this.sort(array, a, m);
this.sort(array, a + m, l - m);
this.merge(array, a, m, a + m, l - m);
}
}
}
@Sort(
"Concurrent Sorts",
"Bose Nelson Sort",
"Bose Nelson"
);
new function boseNelsonSortRun(array) {
BoseNelsonSort.sort(array, 0, len(array));
} | Opal | 4 | thatsOven/sorting-visualizer | sorts/BoseNelsonSort.opal | [
"MIT"
] |
.class public final Lconditions/TestConditions18;
.super Ljava/lang/Object;
.field private map:Ljava/util/Map;
.method public test(Ljava/lang/Object;)Z
.locals 1
if-eq p0, p1, :cond_1
instance-of v0, p1, Lconditions/TestConditions18;
if-eqz v0, :cond_0
check-cast p1, Lconditions/TestConditions18;
iget-object v0, p0, Lconditions/TestConditions18;->map:Ljava/util/Map;
iget-object p1, p1, Lconditions/TestConditions18;->map:Ljava/util/Map;
invoke-static {v0, p1}, Lconditions/TestConditions18;->st(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_0
goto :goto_0
:cond_0
const/4 p1, 0x0
return p1
:cond_1
:goto_0
const/4 p1, 0x1
return p1
.end method
.method private static st(Ljava/lang/Object;Ljava/lang/Object;)Z
.locals 1
const/4 v0, 0x0
return v0
.end method
| Smali | 3 | DSYliangweihao/jadx | jadx-core/src/test/smali/conditions/TestConditions18.smali | [
"Apache-2.0"
] |
@article{hinton2015distilling,
title={Distilling the knowledge in a neural network},
author={Hinton, Geoffrey and Vinyals, Oriol and Dean, Jeff},
journal={arXiv preprint arXiv:1503.02531},
year={2015}
}
@inproceedings{nguyen2015deep,
title={Deep neural networks are easily fooled: High confidence predictions for unrecognizable images},
author={Nguyen, Anh and Yosinski, Jason and Clune, Jeff},
booktitle={Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition},
pages={427--436},
year={2015}
}
@inproceedings{yosinski2014transferable,
title={How transferable are features in deep neural networks?},
author={Yosinski, Jason and Clune, Jeff and Bengio, Yoshua and Lipson, Hod},
booktitle={Advances in neural information processing systems},
pages={3320--3328},
year={2014}
}
@inproceedings{sharif2014cnn,
title={CNN features off-the-shelf: an astounding baseline for recognition},
author={Sharif Razavian, Ali and Azizpour, Hossein and Sullivan, Josephine and Carlsson, Stefan},
booktitle={Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops},
pages={806--813},
year={2014}
}
@inproceedings{oquab2014learning,
title={Learning and transferring mid-level image representations using convolutional neural networks},
author={Oquab, Maxime and Bottou, Leon and Laptev, Ivan and Sivic, Josef},
booktitle={Proceedings of the IEEE conference on computer vision and pattern recognition},
pages={1717--1724},
year={2014}
}
@inproceedings{zeiler2014visualizing,
title={Visualizing and understanding convolutional networks},
author={Zeiler, Matthew D and Fergus, Rob},
booktitle={European conference on computer vision},
pages={818--833},
year={2014},
organization={Springer}
}
@inproceedings{donahue2014decaf,
title={DeCAF: A Deep Convolutional Activation Feature for Generic Visual Recognition.},
author={Donahue, Jeff and Jia, Yangqing and Vinyals, Oriol and Hoffman, Judy and Zhang, Ning and Tzeng, Eric and Darrell, Trevor},
booktitle={Icml},
volume={32},
pages={647--655},
year={2014}
}
@inproceedings{srivastava2015training,
title={Training very deep networks},
author={Srivastava, Rupesh K and Greff, Klaus and Schmidhuber, J{\"u}rgen},
booktitle={Advances in neural information processing systems},
pages={2377--2385},
year={2015}
}
@article{ioffe2015batch,
title={Batch normalization: Accelerating deep network training by reducing internal covariate shift},
author={Ioffe, Sergey and Szegedy, Christian},
journal={arXiv preprint arXiv:1502.03167},
year={2015}
}
@inproceedings{he2015delving,
title={Delving deep into rectifiers: Surpassing human-level performance on imagenet classification},
author={He, Kaiming and Zhang, Xiangyu and Ren, Shaoqing and Sun, Jian},
booktitle={Proceedings of the IEEE international conference on computer vision},
pages={1026--1034},
year={2015}
}
@article{srivastava2014dropout,
title={Dropout: a simple way to prevent neural networks from overfitting.},
author={Srivastava, Nitish and Hinton, Geoffrey E and Krizhevsky, Alex and Sutskever, Ilya and Salakhutdinov, Ruslan},
journal={Journal of Machine Learning Research},
volume={15},
number={1},
pages={1929--1958},
year={2014}
}
@article{kingma2014adam,
title={Adam: A method for stochastic optimization},
author={Kingma, Diederik and Ba, Jimmy},
journal={arXiv preprint arXiv:1412.6980},
year={2014}
}
@article{hinton2012improving,
title={Improving neural networks by preventing co-adaptation of feature detectors},
author={Hinton, Geoffrey E and Srivastava, Nitish and Krizhevsky, Alex and Sutskever, Ilya and Salakhutdinov, Ruslan R},
journal={arXiv preprint arXiv:1207.0580},
year={2012}
}
@article{bergstra2012random,
title={Random search for hyper-parameter optimization},
author={Bergstra, James and Bengio, Yoshua},
journal={Journal of Machine Learning Research},
volume={13},
number={Feb},
pages={281--305},
year={2012}
}
@article{oord2016pixel,
title={Pixel recurrent neural networks},
author={Oord, Aaron van den and Kalchbrenner, Nal and Kavukcuoglu, Koray},
journal={arXiv preprint arXiv:1601.06759},
year={2016}
}
@inproceedings{salimans2016improved,
title={Improved techniques for training gans},
author={Salimans, Tim and Goodfellow, Ian and Zaremba, Wojciech and Cheung, Vicki and Radford, Alec and Chen, Xi},
booktitle={Advances in Neural Information Processing Systems},
pages={2226--2234},
year={2016}
}
@article{radford2015unsupervised,
title={Unsupervised representation learning with deep convolutional generative adversarial networks},
author={Radford, Alec and Metz, Luke and Chintala, Soumith},
journal={arXiv preprint arXiv:1511.06434},
year={2015}
}
@article{gregor2015draw,
title={DRAW: A recurrent neural network for image generation},
author={Gregor, Karol and Danihelka, Ivo and Graves, Alex and Rezende, Danilo Jimenez and Wierstra, Daan},
journal={arXiv preprint arXiv:1502.04623},
year={2015}
}
@inproceedings{goodfellow2014generative,
title={Generative adversarial nets},
author={Goodfellow, Ian and Pouget-Abadie, Jean and Mirza, Mehdi and Xu, Bing and Warde-Farley, David and Ozair, Sherjil and Courville, Aaron and Bengio, Yoshua},
booktitle={Advances in neural information processing systems},
pages={2672--2680},
year={2014}
}
@article{kingma2013auto,
title={Auto-encoding variational bayes},
author={Kingma, Diederik P and Welling, Max},
journal={arXiv preprint arXiv:1312.6114},
year={2013}
}
@inproceedings{le2013building,
title={Building high-level features using large scale unsupervised learning},
author={Le, Quoc V},
booktitle={Acoustics, Speech and Signal Processing (ICASSP), 2013 IEEE International Conference on},
pages={8595--8598},
year={2013},
organization={IEEE}
}
@inproceedings{szegedy2016rethinking,
title={Rethinking the inception architecture for computer vision},
author={Szegedy, Christian and Vanhoucke, Vincent and Ioffe, Sergey and Shlens, Jon and Wojna, Zbigniew},
booktitle={Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition},
pages={2818--2826},
year={2016}
}
@article{szegedy2016inception,
title={Inception-v4, inception-resnet and the impact of residual connections on learning},
author={Szegedy, Christian and Ioffe, Sergey and Vanhoucke, Vincent and Alemi, Alex},
journal={arXiv preprint arXiv:1602.07261},
year={2016}
}
@inproceedings{he2016identity,
title={Identity mappings in deep residual networks},
author={He, Kaiming and Zhang, Xiangyu and Ren, Shaoqing and Sun, Jian},
booktitle={European Conference on Computer Vision},
pages={630--645},
year={2016},
organization={Springer}
}
@inproceedings{he2016deep,
title={Deep residual learning for image recognition},
author={He, Kaiming and Zhang, Xiangyu and Ren, Shaoqing and Sun, Jian},
booktitle={Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition},
pages={770--778},
year={2016}
}
@inproceedings{szegedy2015going,
title={Going deeper with convolutions},
author={Szegedy, Christian and Liu, Wei and Jia, Yangqing and Sermanet, Pierre and Reed, Scott and Anguelov, Dragomir and Erhan, Dumitru and Vanhoucke, Vincent and Rabinovich, Andrew},
booktitle={Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition},
pages={1--9},
year={2015}
}
@article{simonyan2014very,
title={Very deep convolutional networks for large-scale image recognition},
author={Simonyan, Karen and Zisserman, Andrew},
journal={arXiv preprint arXiv:1409.1556},
year={2014}
}
@inproceedings{he2014spatial,
title={Spatial pyramid pooling in deep convolutional networks for visual recognition},
author={He, Kaiming and Zhang, Xiangyu and Ren, Shaoqing and Sun, Jian},
booktitle={European Conference on Computer Vision},
pages={346--361},
year={2014},
organization={Springer}
}
@article{chatfield2014return,
title={Return of the devil in the details: Delving deep into convolutional nets},
author={Chatfield, Ken and Simonyan, Karen and Vedaldi, Andrea and Zisserman, Andrew},
journal={arXiv preprint arXiv:1405.3531},
year={2014}
}
@article{sermanet2013overfeat,
title={Overfeat: Integrated recognition, localization and detection using convolutional networks},
author={Sermanet, Pierre and Eigen, David and Zhang, Xiang and Mathieu, Micha{\"e}l and Fergus, Rob and LeCun, Yann},
journal={arXiv preprint arXiv:1312.6229},
year={2013}
}
@article{goodfellow2013maxout,
title={Maxout Networks.},
author={Goodfellow, Ian J and Warde-Farley, David and Mirza, Mehdi and Courville, Aaron C and Bengio, Yoshua},
journal={ICML (3)},
volume={28},
pages={1319--1327},
year={2013}
}
@article{lin2013network,
title={Network in network},
author={Lin, Min and Chen, Qiang and Yan, Shuicheng},
journal={arXiv preprint arXiv:1312.4400},
year={2013}
}
@inproceedings{krizhevsky2012imagenet,
title={Imagenet classification with deep convolutional neural networks},
author={Krizhevsky, Alex and Sutskever, Ilya and Hinton, Geoffrey E},
booktitle={Advances in neural information processing systems},
pages={1097--1105},
year={2012}
}
@inproceedings{redmon2016you,
title={You only look once: Unified, real-time object detection},
author={Redmon, Joseph and Divvala, Santosh and Girshick, Ross and Farhadi, Ali},
booktitle={Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition},
pages={779--788},
year={2016}
}
@article{girshick2016region,
title={Region-based convolutional networks for accurate object detection and segmentation},
author={Girshick, Ross and Donahue, Jeff and Darrell, Trevor and Malik, Jitendra},
journal={IEEE transactions on pattern analysis and machine intelligence},
volume={38},
number={1},
pages={142--158},
year={2016},
publisher={IEEE}
}
@inproceedings{long2015fully,
title={Fully convolutional networks for semantic segmentation},
author={Long, Jonathan and Shelhamer, Evan and Darrell, Trevor},
booktitle={Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition},
pages={3431--3440},
year={2015}
}
@inproceedings{ren2015faster,
title={Faster r-cnn: Towards real-time object detection with region proposal networks},
author={Ren, Shaoqing and He, Kaiming and Girshick, Ross and Sun, Jian},
booktitle={Advances in neural information processing systems},
pages={91--99},
year={2015}
}
@inproceedings{girshick2015fast,
title={Fast r-cnn},
author={Girshick, Ross},
booktitle={Proceedings of the IEEE International Conference on Computer Vision},
pages={1440--1448},
year={2015}
}
@inproceedings{girshick2014rich,
title={Rich feature hierarchies for accurate object detection and semantic segmentation},
author={Girshick, Ross and Donahue, Jeff and Darrell, Trevor and Malik, Jitendra},
booktitle={Proceedings of the IEEE conference on computer vision and pattern recognition},
pages={580--587},
year={2014}
}
@article{chen2014semantic,
title={Semantic image segmentation with deep convolutional nets and fully connected crfs},
author={Chen, Liang-Chieh and Papandreou, George and Kokkinos, Iasonas and Murphy, Kevin and Yuille, Alan L},
journal={arXiv preprint arXiv:1412.7062},
year={2014}
}
@article{farabet2013learning,
title={Learning hierarchical features for scene labeling},
author={Farabet, Clement and Couprie, Camille and Najman, Laurent and LeCun, Yann},
journal={IEEE transactions on pattern analysis and machine intelligence},
volume={35},
number={8},
pages={1915--1929},
year={2013},
publisher={IEEE}
}
@article{dong2016image,
title={Image super-resolution using deep convolutional networks},
author={Dong, Chao and Loy, Chen Change and He, Kaiming and Tang, Xiaoou},
journal={IEEE transactions on pattern analysis and machine intelligence},
volume={38},
number={2},
pages={295--307},
year={2016},
publisher={IEEE}
}
@article{gatys2015neural,
title={A neural algorithm of artistic style},
author={Gatys, Leon A and Ecker, Alexander S and Bethge, Matthias},
journal={arXiv preprint arXiv:1508.06576},
year={2015}
}
@inproceedings{karpathy2015deep,
title={Deep visual-semantic alignments for generating image descriptions},
author={Karpathy, Andrej and Fei-Fei, Li},
booktitle={Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition},
pages={3128--3137},
year={2015}
}
@inproceedings{xu2015show,
title={Show, Attend and Tell: Neural Image Caption Generation with Visual Attention.},
author={Xu, Kelvin and Ba, Jimmy and Kiros, Ryan and Cho, Kyunghyun and Courville, Aaron C and Salakhutdinov, Ruslan and Zemel, Richard S and Bengio, Yoshua},
booktitle={ICML},
volume={14},
pages={77--81},
year={2015}
}
@inproceedings{vinyals2015show,
title={Show and tell: A neural image caption generator},
author={Vinyals, Oriol and Toshev, Alexander and Bengio, Samy and Erhan, Dumitru},
booktitle={Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition},
pages={3156--3164},
year={2015}
}
@inproceedings{donahue2015long,
title={Long-term recurrent convolutional networks for visual recognition and description},
author={Donahue, Jeffrey and Anne Hendricks, Lisa and Guadarrama, Sergio and Rohrbach, Marcus and Venugopalan, Subhashini and Saenko, Kate and Darrell, Trevor},
booktitle={Proceedings of the IEEE conference on computer vision and pattern recognition},
pages={2625--2634},
year={2015}
}
@inproceedings{antol2015vqa,
title={Vqa: Visual question answering},
author={Antol, Stanislaw and Agrawal, Aishwarya and Lu, Jiasen and Mitchell, Margaret and Batra, Dhruv and Lawrence Zitnick, C and Parikh, Devi},
booktitle={Proceedings of the IEEE International Conference on Computer Vision},
pages={2425--2433},
year={2015}
}
@inproceedings{taigman2014deepface,
title={Deepface: Closing the gap to human-level performance in face verification},
author={Taigman, Yaniv and Yang, Ming and Ranzato, Marc'Aurelio and Wolf, Lior},
booktitle={Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition},
pages={1701--1708},
year={2014}
}
@inproceedings{karpathy2014large,
title={Large-scale video classification with convolutional neural networks},
author={Karpathy, Andrej and Toderici, George and Shetty, Sanketh and Leung, Thomas and Sukthankar, Rahul and Fei-Fei, Li},
booktitle={Proceedings of the IEEE conference on Computer Vision and Pattern Recognition},
pages={1725--1732},
year={2014}
}
@inproceedings{toshev2014deeppose,
title={Deeppose: Human pose estimation via deep neural networks},
author={Toshev, Alexander and Szegedy, Christian},
booktitle={Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition},
pages={1653--1660},
year={2014}
}
@inproceedings{simonyan2014two,
title={Two-stream convolutional networks for action recognition in videos},
author={Simonyan, Karen and Zisserman, Andrew},
booktitle={Advances in neural information processing systems},
pages={568--576},
year={2014}
}
@article{ji20133d,
title={3D convolutional neural networks for human action recognition},
author={Ji, Shuiwang and Xu, Wei and Yang, Ming and Yu, Kai},
journal={IEEE transactions on pattern analysis and machine intelligence},
volume={35},
number={1},
pages={221--231},
year={2013},
publisher={IEEE}
}
@inproceedings{zheng2015conditional,
title={Conditional random fields as recurrent neural networks},
author={Zheng, Shuai and Jayasumana, Sadeep and Romera-Paredes, Bernardino and Vineet, Vibhav and Su, Zhizhong and Du, Dalong and Huang, Chang and Torr, Philip HS},
booktitle={Proceedings of the IEEE International Conference on Computer Vision},
pages={1529--1537},
year={2015}
}
@article{weston2014memory,
title={Memory networks},
author={Weston, Jason and Chopra, Sumit and Bordes, Antoine},
journal={arXiv preprint arXiv:1410.3916},
year={2014}
}
@article{graves2014neural,
title={Neural turing machines},
author={Graves, Alex and Wayne, Greg and Danihelka, Ivo},
journal={arXiv preprint arXiv:1410.5401},
year={2014}
}
@article{graves2013generating,
title={Generating sequences with recurrent neural networks},
author={Graves, Alex},
journal={arXiv preprint arXiv:1308.0850},
year={2013}
}
@article{chung2016character,
title={A character-level decoder without explicit segmentation for neural machine translation},
author={Chung, Junyoung and Cho, Kyunghyun and Bengio, Yoshua},
journal={arXiv preprint arXiv:1603.06147},
year={2016}
}
@article{jozefowicz2016exploring,
title={Exploring the limits of language modeling},
author={Jozefowicz, Rafal and Vinyals, Oriol and Schuster, Mike and Shazeer, Noam and Wu, Yonghui},
journal={arXiv preprint arXiv:1602.02410},
year={2016}
}
@inproceedings{hermann2015teaching,
title={Teaching machines to read and comprehend},
author={Hermann, Karl Moritz and Kocisky, Tomas and Grefenstette, Edward and Espeholt, Lasse and Kay, Will and Suleyman, Mustafa and Blunsom, Phil},
booktitle={Advances in Neural Information Processing Systems},
pages={1693--1701},
year={2015}
}
@article{luong2015effective,
title={Effective approaches to attention-based neural machine translation},
author={Luong, Minh-Thang and Pham, Hieu and Manning, Christopher D},
journal={arXiv preprint arXiv:1508.04025},
year={2015}
}
@article{bahdanau2014neural,
title={Neural machine translation by jointly learning to align and translate},
author={Bahdanau, Dzmitry and Cho, Kyunghyun and Bengio, Yoshua},
journal={arXiv preprint arXiv:1409.0473},
year={2014}
}
@inproceedings{sutskever2014sequence,
title={Sequence to sequence learning with neural networks},
author={Sutskever, Ilya and Vinyals, Oriol and Le, Quoc V},
booktitle={Advances in neural information processing systems},
pages={3104--3112},
year={2014}
}
@article{cho2014learning,
title={Learning phrase representations using RNN encoder-decoder for statistical machine translation},
author={Cho, Kyunghyun and Van Merri{\"e}nboer, Bart and Gulcehre, Caglar and Bahdanau, Dzmitry and Bougares, Fethi and Schwenk, Holger and Bengio, Yoshua},
journal={arXiv preprint arXiv:1406.1078},
year={2014}
}
@article{kalchbrenner2014convolutional,
title={A convolutional neural network for modelling sentences},
author={Kalchbrenner, Nal and Grefenstette, Edward and Blunsom, Phil},
journal={arXiv preprint arXiv:1404.2188},
year={2014}
}
@article{kim2014convolutional,
title={Convolutional neural networks for sentence classification},
author={Kim, Yoon},
journal={arXiv preprint arXiv:1408.5882},
year={2014}
}
@inproceedings{pennington2014glove,
title={Glove: Global Vectors for Word Representation.},
author={Pennington, Jeffrey and Socher, Richard and Manning, Christopher D},
booktitle={EMNLP},
volume={14},
pages={1532--1543},
year={2014}
}
@inproceedings{le2014distributed,
title={Distributed Representations of Sentences and Documents.},
author={Le, Quoc V and Mikolov, Tomas},
booktitle={ICML},
volume={14},
pages={1188--1196},
year={2014}
}
@inproceedings{mikolov2013distributed,
title={Distributed representations of words and phrases and their compositionality},
author={Mikolov, Tomas and Sutskever, Ilya and Chen, Kai and Corrado, Greg S and Dean, Jeff},
booktitle={Advances in neural information processing systems},
pages={3111--3119},
year={2013}
}
@article{mikolov2013efficient,
title={Efficient estimation of word representations in vector space},
author={Mikolov, Tomas and Chen, Kai and Corrado, Greg and Dean, Jeffrey},
journal={arXiv preprint arXiv:1301.3781},
year={2013}
}
@inproceedings{socher2013recursive,
title={Recursive deep models for semantic compositionality over a sentiment treebank},
author={Socher, Richard and Perelygin, Alex and Wu, Jean Y and Chuang, Jason and Manning, Christopher D and Ng, Andrew Y and Potts, Christopher and others},
booktitle={Proceedings of the conference on empirical methods in natural language processing (EMNLP)},
volume={1631},
pages={1642},
year={2013},
organization={Citeseer}
}
@inproceedings{bahdanau2016end,
title={End-to-end attention-based large vocabulary speech recognition},
author={Bahdanau, Dzmitry and Chorowski, Jan and Serdyuk, Dmitriy and Brakel, Philemon and Bengio, Yoshua},
booktitle={Acoustics, Speech and Signal Processing (ICASSP), 2016 IEEE International Conference on},
pages={4945--4949},
year={2016},
organization={IEEE}
}
@article{amodei2015deep,
title={Deep speech 2: End-to-end speech recognition in english and mandarin},
author={Amodei, Dario and Anubhai, Rishita and Battenberg, Eric and Case, Carl and Casper, Jared and Catanzaro, Bryan and Chen, Jingdong and Chrzanowski, Mike and Coates, Adam and Diamos, Greg and others},
journal={arXiv preprint arXiv:1512.02595},
year={2015}
}
@inproceedings{graves2013speech,
title={Speech recognition with deep recurrent neural networks},
author={Graves, Alex and Mohamed, Abdel-rahman and Hinton, Geoffrey},
booktitle={Acoustics, speech and signal processing (icassp), 2013 ieee international conference on},
pages={6645--6649},
year={2013},
organization={IEEE}
}
@article{hinton2012deep,
title={Deep neural networks for acoustic modeling in speech recognition: The shared views of four research groups},
author={Hinton, Geoffrey and Deng, Li and Yu, Dong and Dahl, George E and Mohamed, Abdel-rahman and Jaitly, Navdeep and Senior, Andrew and Vanhoucke, Vincent and Nguyen, Patrick and Sainath, Tara N and others},
journal={IEEE Signal Processing Magazine},
volume={29},
number={6},
pages={82--97},
year={2012},
publisher={IEEE}
}
@article{dahl2012context,
title={Context-dependent pre-trained deep neural networks for large-vocabulary speech recognition},
author={Dahl, George E and Yu, Dong and Deng, Li and Acero, Alex},
journal={IEEE Transactions on Audio, Speech, and Language Processing},
volume={20},
number={1},
pages={30--42},
year={2012},
publisher={IEEE}
}
@article{mohamed2012acoustic,
title={Acoustic modeling using deep belief networks},
author={Mohamed, Abdel-rahman and Dahl, George E and Hinton, Geoffrey},
journal={IEEE Transactions on Audio, Speech, and Language Processing},
volume={20},
number={1},
pages={14--22},
year={2012},
publisher={IEEE}
}
@article{levine2016end,
title={End-to-end training of deep visuomotor policies},
author={Levine, Sergey and Finn, Chelsea and Darrell, Trevor and Abbeel, Pieter},
journal={Journal of Machine Learning Research},
volume={17},
number={39},
pages={1--40},
year={2016}
}
@article{levine2016learning,
title={Learning hand-eye coordination for robotic grasping with deep learning and large-scale data collection},
author={Levine, Sergey and Pastor, Peter and Krizhevsky, Alex and Quillen, Deirdre},
journal={arXiv preprint arXiv:1603.02199},
year={2016}
}
@inproceedings{mnih2016asynchronous,
title={Asynchronous methods for deep reinforcement learning},
author={Mnih, Volodymyr and Badia, Adria Puigdomenech and Mirza, Mehdi and Graves, Alex and Lillicrap, Timothy P and Harley, Tim and Silver, David and Kavukcuoglu, Koray},
booktitle={International Conference on Machine Learning},
year={2016}
}
@inproceedings{van2016deep,
title={Deep Reinforcement Learning with Double Q-Learning.},
author={Van Hasselt, Hado and Guez, Arthur and Silver, David},
booktitle={AAAI},
pages={2094--2100},
year={2016}
}
@article{silver2016mastering,
title={Mastering the game of Go with deep neural networks and tree search},
author={Silver, David and Huang, Aja and Maddison, Chris J and Guez, Arthur and Sifre, Laurent and Van Den Driessche, George and Schrittwieser, Julian and Antonoglou, Ioannis and Panneershelvam, Veda and Lanctot, Marc and others},
journal={Nature},
volume={529},
number={7587},
pages={484--489},
year={2016},
publisher={Nature Publishing Group}
}
@article{lillicrap2015continuous,
title={Continuous control with deep reinforcement learning},
author={Lillicrap, Timothy P and Hunt, Jonathan J and Pritzel, Alexander and Heess, Nicolas and Erez, Tom and Tassa, Yuval and Silver, David and Wierstra, Daan},
journal={arXiv preprint arXiv:1509.02971},
year={2015}
}
@article{mnih2015human,
title={Human-level control through deep reinforcement learning},
author={Mnih, Volodymyr and Kavukcuoglu, Koray and Silver, David and Rusu, Andrei A and Veness, Joel and Bellemare, Marc G and Graves, Alex and Riedmiller, Martin and Fidjeland, Andreas K and Ostrovski, Georg and others},
journal={Nature},
volume={518},
number={7540},
pages={529--533},
year={2015},
publisher={Nature Research}
}
@article{lenz2015deep,
title={Deep learning for detecting robotic grasps},
author={Lenz, Ian and Lee, Honglak and Saxena, Ashutosh},
journal={The International Journal of Robotics Research},
volume={34},
number={4-5},
pages={705--724},
year={2015},
publisher={SAGE Publications Sage UK: London, England}
}
@article{mnih2013playing,
title={Playing atari with deep reinforcement learning},
author={Mnih, Volodymyr and Kavukcuoglu, Koray and Silver, David and Graves, Alex and Antonoglou, Ioannis and Wierstra, Daan and Riedmiller, Martin},
journal={arXiv preprint arXiv:1312.5602},
year={2013}
}
@article{ba2016layer,
title={Layer normalization},
author={Ba, Jimmy Lei and Kiros, Jamie Ryan and Hinton, Geoffrey E},
journal={arXiv preprint arXiv:1607.06450},
year={2016}
}
@inproceedings{andrychowicz2016learning,
title={Learning to learn by gradient descent by gradient descent},
author={Andrychowicz, Marcin and Denil, Misha and Gomez, Sergio and Hoffman, Matthew W and Pfau, David and Schaul, Tom and de Freitas, Nando},
booktitle={Advances in Neural Information Processing Systems},
pages={3981--3989},
year={2016}
}
@article{ganin2016domain,
title={Domain-adversarial training of neural networks},
author={Ganin, Yaroslav and Ustinova, Evgeniya and Ajakan, Hana and Germain, Pascal and Larochelle, Hugo and Laviolette, Fran{\c{c}}ois and Marchand, Mario and Lempitsky, Victor},
journal={Journal of Machine Learning Research},
volume={17},
number={59},
pages={1--35},
year={2016}
}
@article{van2016wavenet,
title={Wavenet: A generative model for raw audio},
author={van den Oord, A{\"a}ron and Dieleman, Sander and Zen, Heiga and Simonyan, Karen and Vinyals, Oriol and Graves, Alex and Kalchbrenner, Nal and Senior, Andrew and Kavukcuoglu, Koray},
journal={CoRR abs/1609.03499},
year={2016}
}
@inproceedings{zhang2016colorful,
title={Colorful image colorization},
author={Zhang, Richard and Isola, Phillip and Efros, Alexei A},
booktitle={European Conference on Computer Vision},
pages={649--666},
year={2016},
organization={Springer}
}
@inproceedings{zhu2016generative,
title={Generative visual manipulation on the natural image manifold},
author={Zhu, Jun-Yan and Kr{\"a}henb{\"u}hl, Philipp and Shechtman, Eli and Efros, Alexei A},
booktitle={European Conference on Computer Vision},
pages={597--613},
year={2016},
organization={Springer}
}
@inproceedings{ulyanov2016texture,
title={Texture networks: Feed-forward synthesis of textures and stylized images},
author={Ulyanov, Dmitry and Lebedev, Vadim and Vedaldi, Andrea and Lempitsky, Victor},
booktitle={Int. Conf. on Machine Learning (ICML)},
year={2016}
}
@inproceedings{liu2016ssd,
title={SSD: Single shot multibox detector},
author={Liu, Wei and Anguelov, Dragomir and Erhan, Dumitru and Szegedy, Christian and Reed, Scott and Fu, Cheng-Yang and Berg, Alexander C},
booktitle={European Conference on Computer Vision},
pages={21--37},
year={2016},
organization={Springer}
}
@article{iandola2016squeezenet,
title={SqueezeNet: AlexNet-level accuracy with 50x fewer parameters and< 0.5 MB model size},
author={Iandola, Forrest N and Han, Song and Moskewicz, Matthew W and Ashraf, Khalid and Dally, William J and Keutzer, Kurt},
journal={arXiv preprint arXiv:1602.07360},
year={2016}
}
@inproceedings{han2016eie,
title={EIE: efficient inference engine on compressed deep neural network},
author={Han, Song and Liu, Xingyu and Mao, Huizi and Pu, Jing and Pedram, Ardavan and Horowitz, Mark A and Dally, William J},
booktitle={Proceedings of the 43rd International Symposium on Computer Architecture},
pages={243--254},
year={2016},
organization={IEEE Press}
}
@article{courbariaux2016binarized,
title={Binarized neural networks: Training deep neural networks with weights and activations constrained to+ 1 or-1},
author={Courbariaux, Matthieu and Hubara, Itay and Soudry, Daniel and El-Yaniv, Ran and Bengio, Yoshua},
journal={arXiv preprint arXiv:1602.02830},
year={2016}
}
@article{xiong2016dynamic,
title={Dynamic memory networks for visual and textual question answering},
author={Xiong, Caiming and Merity, Stephen and Socher, Richard},
journal={arXiv},
volume={1603},
year={2016}
}
@inproceedings{yang2016stacked,
title={Stacked attention networks for image question answering},
author={Yang, Zichao and He, Xiaodong and Gao, Jianfeng and Deng, Li and Smola, Alex},
booktitle={Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition},
pages={21--29},
year={2016}
}
@article{graves2016hybrid,
title={Hybrid computing using a neural network with dynamic external memory},
author={Graves, Alex and Wayne, Greg and Reynolds, Malcolm and Harley, Tim and Danihelka, Ivo and Grabska-Barwi{\'n}ska, Agnieszka and Colmenarejo, Sergio G{\'o}mez and Grefenstette, Edward and Ramalho, Tiago and Agapiou, John and others},
journal={Nature},
volume={538},
number={7626},
pages={471--476},
year={2016},
publisher={Nature Research}
}
@article{wu2016google,
title={Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translation},
author={Wu, Yonghui and Schuster, Mike and Chen, Zhifeng and Le, Quoc V and Norouzi, Mohammad and Macherey, Wolfgang and Krikun, Maxim and Cao, Yuan and Gao, Qin and Macherey, Klaus and others},
journal={arXiv preprint arXiv:1609.08144},
year={2016}
}
| TeX | 2 | kavithasasikumar/Machine-learning | top100papers.bib | [
"CC0-1.0"
] |
(* ****** ****** *)
#include
"share/atspre_staload.hats"
#include
"share/atspre_staload_libats_ML.hats"
(* ****** ****** *)
#include
"$PATSHOMELOCS\
/atscntrb-hx-libjson-c/mylibies.hats"
#include
"$PATSHOMELOCS\
/atscntrb-hx-libjson-c/mylibies_link.hats"
#staload $JSON_ML
fun
jsonval_int
(x: int) = JSONint(g0i2i(x))
(* ****** ****** *)
//
#staload UN = $UNSAFE
//
(* ****** ****** *)
//
#include
"$PATSHOMELOCS\
/atscntrb-hx-teaching-bucs/mylibies.hats"
//
(* ****** ****** *)
//
abst@ype state_t0ype
//
typedef state = state_t0ype
//
(* ****** ****** *)
#define
Channel00Insert
"http://cs320.herokuapp.com/api/channel00/insert"
(* ****** ****** *)
#define
Channel01Readall
"http://cs320.herokuapp.com/api/channel01/readall"
(* ****** ****** *)
//
fun
channel00_insert_msg
(msg: string): void = let
val opt =
$BUCS520.streamopt_url_char<>
(string_append3
(Channel00Insert, "/", msg))
in
case+ opt of
| ~None_vt() => ()
| ~Some_vt(cs) => free(stream2list_vt(cs))
end // end of [channel00_insert_msg]
//
(* ****** ****** *)
//
extern
fun
state_check
(&state >> _): int
extern
fun
state_update
(&state >> _, char): void
extern
fun
state_initize
( state: &state? >> _
, nword: int, ntime: int): void
//
(* ****** ****** *)
local
assume
state_t0ype = @{
ntime= int
,
guess= list0(char)
,
word0=array0(char)
}
in
val int_t = TYPE{int}()
implement
state_check
(state) =
(
(
state.word0
).foldleft(int_t)
(0, lam(r, c) => if c = '_' then r else r+1)
)
implement
state_initize
(state, nw, nt) =
{
val () = state.ntime := nt
val () = state.guess := list0_nil()
val () = state.word0 := array0_make_elt(nw, '_')
}
end // end of [local]
(* ****** ****** *)
local
#staload
"./Hangman3_channel.dats"
in (* in-of-local *)
fun
streamize_channel01
(
// argless
) : stream_vt(string) = let
//
val
CH1 = $UN.cast{channel}(1)
//
implement
channel_readall<>(ch) = let
val opt =
$BUCS520.streamopt_url_char<>
(Channel01Readall)
in
case+ opt of
| ~None_vt() =>
None_vt()
| ~Some_vt(xs) =>
Some_vt
(strptr2string
(string_make_stream_vt($UN.castvwtp0(xs)))
) (* end of [Some_vt] *)
end // end of [channel_readall]
//
in
streamize_channel<>(CH1)
end // end of [streamize_channel01]
end // end of [local]
(* ****** ****** *)
//
extern
fun
GameMain(): void
extern
fun
GameLoop
(&state >> _, stream_vt(string), stream_vt(string)): int
and
GameLoop_guess
(&state >> _, stream_vt(string), stream_vt(string)): int
//
implement
GameMain((*void*)) =
{
//
val nt = 6
//
var
state: state
//
val lines =
streamize_channel01()
val lines =
stream_vt_map<string><string>
(lines) where
{
//
implement
stream_vt_map$fopr<string><string>
(line) =
trunc
(string2ptr(line)) where
{
//
fun
trunc(p0: ptr): string = let
//
val c0 = $UN.ptr0_get<char>(p0)
//
in
//
if
iseqz(c0)
then "" else
(
if
(c0 != ':')
then
trunc(ptr_succ<char>(p0))
else
$UN.cast{string}(ptr_succ<char>(p0))
)
//
end // end of [trunc]
} (* end of [stream_vt_map$fopr] *)
}
//
val-
~stream_vt_cons
(l0, lines) = !lines
val-
JSONint(nw) =
jsonval_ofstring(l0)
//
val nw =
$UN.cast{int}(nw)
val () =
state_initize(state, nw, nt)
//
val
lns =
streamize_fileref_line
(stdin_ref)
val
lns =
stream_vt_filter_cloptr
(lns, lam(ln) => isneqz(ln))
//
val
ntime = GameLoop(state, lns, lines)
//
} (* end of [GameMain] *)
//
(* ****** ****** *)
//
fun
word_display
(w0: array0(char)): void =
(w0).foreach()(lam(c) => print(c))
//
(* ****** ****** *)
implement
GameLoop
( state
, lns, lines) = let
//
reassume state_t0ype
//
val nt = state.ntime
val w0 = state.word0
val () = word_display(w0)
val () = println!((*void*))
val () = println!("Chances: ", nt)
//
val
is_solved =
(w0).forall()
(lam(c) => c != '_')
//
in
//
if
is_solved
then
(
let
val () = free(lns)
val () = free(lines)
val () =
println! ("Solved!") in nt
end
)
else
(
if
(nt > 0)
then
GameLoop_guess
(state, lns, lines)
else
let
val () = free(lns)
val () =
println! ("No more chances!")
val () =
(
case+ !lines of
| ~stream_vt_nil
((*void*)) => ()
| ~stream_vt_cons
(l0, lines) => let
val () = lazy_vt_free(lines)
in
println! ("The chosen word: ", l0)
end // end of [stream_vt_cons]
) : void // end of [val]
in
(0)
end // end of [else]
)
//
end // end of [GameLoop]
(* ****** ****** *)
implement
GameLoop_guess
( state
, lns, lines) = let
//
reassume state_t0ype
//
val-
~stream_vt_cons
(l0, lns) = !lns
//
val
l0 = g1ofg0(l0)
val () =
assertloc(isneqz(l0))
//
val c0 = l0[0]
val nt = state.ntime
val w0 = state.word0
//
val () =
channel00_insert_msg(l0)
//
val-
~stream_vt_cons
(l0, lines) = !lines
val-
JSONarray(jsvs) =
jsonval_ofstring(l0)
//
val () =
(jsvs).foreach()
(lam(jsv) => let
val-JSONint(n) = jsv
val n = $UN.cast{int}(n)
in
array0_set_at<char>(w0, n, c0)
end
)
//
val () =
if length(jsvs) = 0 then state.ntime := nt-1
//
in
GameLoop(state, lns, lines)
end // end of [GameLoop_guess]
(* ****** ****** *)
implement main0() = GameMain()
(* ****** ****** *)
(* end of [Hangman3_player1.dats] *)
| ATS | 4 | ats-lang/ATS-CodeBook | RECIPE/Hangman3/Hangman3_player1.dats | [
"MIT"
] |
class A.TRAIT {
method map {
object {
method asString { "a map" }
}
}
}
method m {
object {
inherits A.TRAIT
}
}
print "m.map = {m.map}"
print "A.trait.map = {A.TRAIT.map}"
| Grace | 3 | Dmitri-2/GraceWebsite | js-simple/tests/t152_inheritsReturnObject_test.grace | [
"MIT",
"BSD-3-Clause"
] |
CREATE TABLE `tb_flnycxasap` (
`col_rqtzrkfarg` timestamp NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
| SQL | 2 | yuanweikang2020/canal | parse/src/test/resources/ddl/alter/mysql_27.sql | [
"Apache-2.0"
] |
{{#if no_query}}
<li class="no_history {{displayed_class}}">No history available</li>
{{else}}
<li class="query_history {{displayed_class}}" id="query_history_{{id}}">
<div class="query_history_content">
<div class="query_id">[{{num}}]</div>
<pre class="query">{{query}}</pre>
<div class="right_container">
{{#if broken_query}}
<img src="images/warning-icon.png" class="broken_query"
title="This query produced an error" />
{{/if}}
<button class="btn delete_query" data-id={{id}}>Remove</button>
<button class="btn load_query" data-id={{id}}>Load</button>
</div>
</div>
</li>
{{/if}}
| Handlebars | 4 | zadcha/rethinkdb | admin/static/handlebars/dataexplorer-query_li.hbs | [
"Apache-2.0"
] |
<p>Hello!</p> | Java Server Pages | 0 | zeesh49/tutorials | spring-custom-aop/src/main/webapp/index.jsp | [
"MIT"
] |
implementation module SimpleHash
import StdEnv
primes =: [
53, 97, 193, 389, 769,
1543, 3079, 6151, 12289, 24593,
49157, 98317, 196613, 93241, 786433,
1572869, 3145739, 6291469, 12582917, 25165843,
50331653, 100663319, 201326611, 402653189, 805306457
]
:: Item a = { key::!String
, val::a
}
:: HashTable a = { nBuckets::Int
, table::!.{[Item a]}
, nItems::Int
}
hash :: !{#.Char} !(HashTable .a) -> Int
hash key ht=:{nBuckets}
= (abs (loop key (size key - 1) 0)) rem nBuckets
where
loop k n h
| n>(-1) = loop k (n-1) (5*h + toInt k.[n])
= h
htNew :: .Int -> .(HashTable a)
htNew n = { nBuckets = nprime
, table = {[] \\ i <- [1..nprime]}
, nItems = 0
}
where
nprime = hd (dropWhile (\x = x < n) primes)
htHasKey :: !{#.Char} !.(HashTable a) -> .Bool
htHasKey k ht=:{table}= findIn k table.[hash k ht]
htAdd :: !{#.Char} a !*(HashTable a) -> .(HashTable a)
htAdd k v ht=:{table,nItems}
#! i = hash k ht
#! (b,table) = uselect table i
= if (findIn k b)
{ht & table = update ht.table i (addItem k v b [])}
{ht & table = update ht.table i [{key=k,val=v}:b], nItems = nItems+1}
findIn k [] = False
findIn k [item:ls]
| item.key == k = True
= findIn k ls
addItem k v [] ls` = ls`
addItem k v [item:ls] ls`
| item.key == k = [{item & val=v}:ls] ++ ls`
= addItem k v ls [item:ls`] | Clean | 3 | kragen/shootout | bench/Include/clean/SimpleHash.icl | [
"BSD-3-Clause"
] |
// Copyright 2021 The Google Research Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// A FlumeC++ pipeline that transforms measurements into ScaM inputs.
#include <gflags/gflags.h>
#include "xxx/flume/public/flume.h"
#include "xxx/flume/public/recordio.h"
#include "xxx/flume/public/sstableio.h"
#include "xxx/preprocess/scam_featurize.h"
DEFINE_FLAG(string, input_file, "", "A RecordIO of DNA sequences.");
DEFINE_FLAG(string, output_file, "",
"An SSTable of N-gram ScaM GFVs keyed by DNA sequence.");
namespace research_biology {
namespace aptamers {
// Run the ScaM featurization on the input file and write to the output file.
void Run(const string& input_file, const string& output_file) {
// Initialize Flume.
flume::Flume flume;
SequenceCollection input = SequenceCollection::Read(
"ReadSequences",
flume::RecordIOFile::Source(input_file, flume::Strings()));
// Transform into ScaM GFV features.
FeatureVectorTable scam_features = FeaturizeSequences(input);
// Write to the specified output file.
flume::PSink<FeatureVectorEntry> output =
flume::SSTableSink<string, research_scam::GenericFeatureVector>(
output_file, flume::Strings(),
flume::Protos<research_scam::GenericFeatureVector>());
scam_features.Write("WriteFeatures", output);
}
} // namespace aptamers
} // namespace research_biology
int main(int argc, char** argv) {
gflags::ParseCommandLineFlags(&argc, &argv, true);
if (base::GetFlag(FLAGS_input_file).empty()) {
LOG(ERROR) << "--input_file is required";
return 1;
}
if (base::GetFlag(FLAGS_output_file).empty()) {
LOG(ERROR) << "--output_file is required";
return 1;
}
research_biology::aptamers::Run(base::GetFlag(FLAGS_input_file),
base::GetFlag(FLAGS_output_file));
return 0;
}
| C++ | 4 | DionysisChristopoulos/google-research | aptamers_mlpd/preprocess/scam_featurize_main.cc | [
"Apache-2.0"
] |
(in-package #:cl-user)
;;;; 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.
#+(or) (when (not (boundp 'sb-impl::default-external-format)
(setf sb-impl::default-external-format :UTF-8)))
(require "asdf")
(load (merge-pathnames "../../lib/cl/load-locally.lisp" *load-truename*))
(asdf:load-system :net.didierverna.clon)
(asdf:load-system :fiasco)
(asdf:load-asd (merge-pathnames "gen-cl/ThriftTest/thrift-gen-ThriftTest.asd" *load-truename*))
(asdf:load-system :thrift-gen-thrifttest)
(net.didierverna.clon:nickname-package)
(defpackage #:thrift-cross
(:use #:common-lisp #:fiasco)
(:export #:cross-test))
(in-package #:thrift-cross)
(defparameter *prot* nil)
(load (merge-pathnames "tests.lisp" *load-truename*) :external-format :UTF-8)
(clon:defsynopsis ()
(text :contents "The Common Lisp client for Thrift's cross-language test suite.")
(group (:header "Allowed options:")
(flag :short-name "h" :long-name "help"
:description "Print this help and exit.")
(stropt :long-name "host"
:description "The host to connect to."
:default-value "localhost"
:argument-name "ARG")
(stropt :long-name "port"
:description "Number of the port to listen for connections on."
:default-value "9090"
:argument-name "ARG"
:argument-type :optional)
(stropt :long-name "transport"
:description "Transport: transport to use (\"buffered\", \"framed\")"
:default-value "buffered"
:argument-name "ARG")
(stropt :long-name "protocol"
:description "Protocol: protocol to use (\"binary\", \"multi\")"
:default-value "binary"
:argument-name "ARG")))
(defun main ()
"Entry point for our standalone application."
(clon:make-context)
(when (clon:getopt :short-name "h")
(clon:help)
(clon:exit))
(let ((port "9090")
(host "localhost")
(framed nil)
(multiplexed nil))
(clon:do-cmdline-options (option name value source)
(print (list option name value source))
(if (string= name "host")
(setf host value))
(if (string= name "port")
(setf port value))
(if (string= name "transport")
(cond ((string= value "buffered") (setf framed nil))
((string= value "framed") (setf framed t))
(t (error "Unsupported transport."))))
(if (string= name "protocol")
(cond ((string= value "binary") (setf multiplexed nil))
((string= value "multi") (setf multiplexed t))
(t (error "Unsupported protocol.")))))
(terpri)
(setf *prot* (thrift.implementation::client (puri:parse-uri
(concatenate 'string "thrift://" host ":" port))
:framed framed
:multiplexed multiplexed))
(let ((result (cross-test :multiplexed multiplexed)))
(thrift.implementation::close *prot*)
(clon:exit result))))
(clon:dump "TestClient" main)
| Common Lisp | 4 | d-roenko/thrift | test/cl/make-test-client.lisp | [
"Apache-2.0"
] |
--TEST--
Test nullsafe in sub-chain of function argument
--FILE--
<?php
function takes_ref(&$foo) {
$foo = 'foo';
}
function &returns_ref($ref) {
global $foo;
return $foo;
}
global $foo;
$null = null;
takes_ref(returns_ref($null?->null()));
var_dump($foo);
?>
--EXPECT--
string(3) "foo"
| PHP | 3 | NathanFreeman/php-src | Zend/tests/nullsafe_operator/027.phpt | [
"PHP-3.01"
] |
* a scenario name is mandatory to load the gdx file - abort the run if not specified or file does not exist
$IF NOT SET in $ABORT "no input data file provided!"
$IF NOT EXIST '%in%' $ABORT "input GDX file '%in%' does not exist!"
** option to run MACRO standalone or interactively linked (iterating) with MESSAGE **
*$SETGLOBAL macromode "linked"
$SETGLOBAL macromode "standalone"
$INCLUDE MACRO/macro_data_load.gms
$INCLUDE MACRO/macro_core.gms
$INCLUDE MACRO/macro_calibration.gms
$INCLUDE MACRO/macro_reporting.gms
* dump all input data, processed data and results to a gdx file (with additional comment as name extension if provided)
$IF NOT SET out $SETGLOBAL out "output/MsgOutput.gdx"
execute_unload "%out%"
| GAMS | 4 | shaohuizhang/message_ix | message_ix/model/MACRO_run.gms | [
"Apache-2.0",
"CC-BY-4.0"
] |
// run-pass
// ignore-pretty issue #37195
// Testing that the parser for each file tracks its modules
// and paths independently. The load_another_mod module should
// not try to reuse the 'mod_dir_simple' path.
mod mod_dir_simple {
pub mod load_another_mod;
}
pub fn main() {
assert_eq!(mod_dir_simple::load_another_mod::test::foo(), 10);
}
| Rust | 4 | Eric-Arellano/rust | src/test/ui/modules/mod_dir_recursive.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
CONTENT HERE | Zimpl | 4 | haskellcamargo/ExtendedZPL | compiled/Main.zpl | [
"MIT"
] |
MsgBox, Hello`, World!
| AutoHotkey | 2 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/AutoHotkey/hello.ahk | [
"MIT"
] |
# put negative index greater than size
#
# @expect=org.quattor.pan.exceptions.EvaluationException
#
object template list9;
"/a" = {
t = list(1 ,2);
t[-3] = 100;
};
| Pan | 3 | aka7/pan | panc/src/test/pan/Functionality/list/list9.pan | [
"Apache-2.0"
] |
image {
width: 40;
height: 40;
flex-grow: 0;
flex-shrink: 0;
}
Label {
border-width: 1;
border-color: black;
padding: 0;
flex-grow: 1;
flex-shrink: 1;
}
| CSS | 3 | wiltonlazary/NativeScript | e2e/ui-tests-app/app/flexbox/flexbox-4834-page.css | [
"Apache-2.0"
] |
version https://git-lfs.github.com/spec/v1
oid sha256:1ce11b0b92e48073580b608326e9ff2d8a8eb7a47504deee9b6039080728ab94
size 576
| Nit | 0 | JGCRI/lds | indata/WaterFootprint/Report47-App-IV-RasterMaps/Coconuts/info/arc0007.nit | [
"BSD-3-Clause-LBNL"
] |
#tag Class
Protected Class App
Inherits Application
#tag Event
Sub NewDocument()
dim w as new WndAdmin
w.Show
End Sub
#tag EndEvent
#tag Event
Sub Open()
return
//
// Some test code below
//
//
// Create the pref folder
//
dim f as FolderItem = PrefFolder
dim u as new Kaju.UpdateChecker( f )
#pragma unused u
dim r as double
r = Kaju.VersionToDouble( "1.2a999" )
r = Kaju.VersionToDouble( "1.2b3" )
r = Kaju.VersionToDouble( "1.2" )
r = Kaju.VersionToDouble( "1.3.999d777" )
r = Kaju.VersionToDouble( "1.4 (45)" )
dim vers as string = Kaju.AppVersionString
vers = Kaju.VersionStringFor( 1, 3, 44 )
vers = Kaju.VersionStringFor( 1, 4, 0, App.Final, 22 )
'u.TestUpdate( kTestJSON1 )
'u.TestUpdate( kTestJSON2 )
'u.TestUpdate( kTestJSON2 )
'dim sh as new Kaju.ZipShell
'dim zipFile as FolderItem = SpecialFolder.Desktop.Child( f.Name + ".zip" )
'sh.Compress( f, zipFile )
'
'sh.Decompress( zipFile )
'
'MsgBox sh.ContentsOf( zipFile )
End Sub
#tag EndEvent
#tag Event
Sub OpenDocument(item As FolderItem)
//
// See if this document is open already
//
dim firstAdminWindow as WndAdmin
dim lastIndex as integer = WindowCount - 1
for i as integer = 0 to lastIndex
dim thisWnd as Window = Window( i )
if thisWnd IsA WndAdmin then
dim adminWnd as WndAdmin = WndAdmin( thisWnd )
if adminWnd.Document <> nil and adminWnd.Document.NativePath = item.NativePath then
adminWnd.Show
return
end if
if firstAdminWindow is nil then
firstAdminWindow = adminWnd
end if
end if
next
//
// If we get here, it's not already open
// so see if the front window can be used
//
if firstAdminWindow <> nil and firstAdminWindow.Document is nil and not firstAdminWindow.ContentsChanged then
//
// It's an empty window
//
firstAdminWindow.OpenDocument( item )
else
//
// Create a new window
//
dim w as new WndAdmin
w.OpenDocument( item )
end if
End Sub
#tag EndEvent
#tag MenuHandler
Function FileNew() As Boolean Handles FileNew.Action
NewDocument
Return True
End Function
#tag EndMenuHandler
#tag MenuHandler
Function FileOpen() As Boolean Handles FileOpen.Action
dim dlg as new OpenDialog
dlg.MultiSelect = true
dlg.PromptText = "Choose a Kaju document:"
dim f as FolderItem = dlg.ShowModal
if f <> nil then
for i as integer = 1 to dlg.Count
OpenDocument( dlg.Item( i - 1 ) )
next
end if
Return True
End Function
#tag EndMenuHandler
#tag ComputedProperty, Flags = &h0
#tag Getter
Get
dim f as FolderItem = SpecialFolder.ApplicationData.Child( "Kaju Admin" )
if not f.Exists then
f.CreateAsFolder
end if
return f
End Get
#tag EndGetter
PrefFolder As FolderItem
#tag EndComputedProperty
#tag Property, Flags = &h0
UpdateInitiater As Kaju.UpdateInitiater
#tag EndProperty
#tag Constant, Name = kEditClear, Type = String, Dynamic = False, Default = \"&Delete", Scope = Public
#Tag Instance, Platform = Windows, Language = Default, Definition = \"&Delete"
#Tag Instance, Platform = Linux, Language = Default, Definition = \"&Delete"
#tag EndConstant
#tag Constant, Name = kFileClose, Type = String, Dynamic = False, Default = \"Close &Window", Scope = Public
#tag EndConstant
#tag Constant, Name = kFileCloseShortcut, Type = String, Dynamic = False, Default = \"", Scope = Public
#Tag Instance, Platform = Mac OS, Language = Default, Definition = \"Cmd+W"
#Tag Instance, Platform = Windows, Language = Default, Definition = \"Ctrl+W"
#Tag Instance, Platform = Linux, Language = Default, Definition = \"Ctrl+W"
#tag EndConstant
#tag Constant, Name = kFileNew, Type = String, Dynamic = False, Default = \"&New Kaju Document", Scope = Public
#tag EndConstant
#tag Constant, Name = kFileNewShortcut, Type = String, Dynamic = False, Default = \"", Scope = Public
#Tag Instance, Platform = Mac OS, Language = Default, Definition = \"Cmd+N"
#Tag Instance, Platform = Windows, Language = Default, Definition = \"Ctrl+N"
#Tag Instance, Platform = Linux, Language = Default, Definition = \"Ctrl+N"
#tag EndConstant
#tag Constant, Name = kFileOpen, Type = String, Dynamic = False, Default = \"&Open Kaju Document...", Scope = Public
#tag EndConstant
#tag Constant, Name = kFileOpenShortcut, Type = String, Dynamic = False, Default = \"", Scope = Public
#Tag Instance, Platform = Windows, Language = Default, Definition = \"Ctrl+O"
#Tag Instance, Platform = Mac OS, Language = Default, Definition = \"Cmd+O"
#Tag Instance, Platform = Linux, Language = Default, Definition = \"Ctrl+O"
#tag EndConstant
#tag Constant, Name = kFileQuit, Type = String, Dynamic = False, Default = \"&Quit", Scope = Public
#Tag Instance, Platform = Windows, Language = Default, Definition = \"E&xit"
#tag EndConstant
#tag Constant, Name = kFileQuitShortcut, Type = String, Dynamic = False, Default = \"", Scope = Public
#Tag Instance, Platform = Mac OS, Language = Default, Definition = \"Cmd+Q"
#Tag Instance, Platform = Linux, Language = Default, Definition = \"Ctrl+Q"
#Tag Instance, Platform = Windows, Language = Default, Definition = \"Ctrl+Q"
#tag EndConstant
#tag Constant, Name = kFileSave, Type = String, Dynamic = False, Default = \"&Save", Scope = Public
#tag EndConstant
#tag Constant, Name = kFileSaveAs, Type = String, Dynamic = False, Default = \"Sav&e As...", Scope = Public
#tag EndConstant
#tag Constant, Name = kFileSaveShortcut, Type = String, Dynamic = False, Default = \"", Scope = Public
#Tag Instance, Platform = Mac OS, Language = Default, Definition = \"Cmd+S"
#Tag Instance, Platform = Windows, Language = Default, Definition = \"Ctrl+S"
#Tag Instance, Platform = Linux, Language = Default, Definition = \"Ctrl+S"
#tag EndConstant
#tag Constant, Name = kTestJSON1, Type = String, Dynamic = False, Default = \"[\n\t{\n\t\"Version\" : \"1.0.3\"\x2C\n\t\"MacBinary\" : \n\t\t{\n\t\t\"URL\" : \"http://www.sample.com/macdownload\"\x2C\n\t\t\"Signature\" : \"123456\"\n\t\t}\n\t} \n]", Scope = Private
#tag EndConstant
#tag Constant, Name = kTestJSON2, Type = String, Dynamic = False, Default = \"[\n\t{\n\t\"Version\" : \"1.0.3\"\x2C\n\t\"MacBinary\" : \n\t\t{\n\t\t\"URL\" : \"http://www.sample.com/macdownload\"\x2C\n\t\t\"Signature\" : \"123456\"\n\t\t}\x2C\n\t\"ReleaseNotes\" : \"<b>Version 1.0.3</b><br /><br /><p>This is a <i>really</i> important update that you should have.\"\n\t} \x2C\n\t{\n\t\"Version\" : \"1.1b1\"\x2C\n\t\"MacBinary\" : \n\t\t{\n\t\t\"URL\" : \"http://www.sample.com/macdownload\"\x2C\n\t\t\"Signature\" : \"123456\"\n\t\t}\x2C\n\t\"InfoURL\" : \"http://www.sample.com/moreinfo\"\n\t}\n]", Scope = Private
#tag EndConstant
#tag ViewBehavior
#tag EndViewBehavior
End Class
#tag EndClass
| Xojo | 4 | joneisen/Kaju | Kaju Admin App/App.xojo_code | [
"MIT"
] |
--TEST--
DOMDocument::$encoding - read/write tests (dom_document_encoding_read/dom_document_encoding_write)
--CREDITS--
Hans Zaunere
# TestFest 2009 NYPHP
--EXTENSIONS--
dom
--FILE--
<?php
require_once('dom_test.inc');
$dom = new DOMDocument;
$dom->loadXML($xmlstr);
if( !$dom )
{
echo "Error while parsing the document\n";
exit;
}
echo "Empty Encoding Read: '{$dom->encoding}'\n";
try {
$ret = $dom->encoding = 'NYPHP DOMinatrix';
echo "Adding invalid encoding: $ret\n";
} catch (\ValueError $e) {
echo $e->getMessage() . \PHP_EOL;
}
$ret = $dom->encoding = 'ISO-8859-1';
echo "Adding ISO-8859-1 encoding: $ret\n";
echo "ISO-8859-1 Encoding Read: {$dom->encoding}\n";
$ret = $dom->encoding = 'UTF-8';
echo "Adding UTF-8 encoding: $ret\n";
echo "UTF-8 Encoding Read: {$dom->encoding}\n";
$ret = $dom->encoding = 'UTF-16';
echo "Adding UTF-16 encoding: $ret\n";
echo "UTF-16 Encoding Read: {$dom->encoding}\n";
?>
--EXPECT--
Empty Encoding Read: ''
Invalid document encoding
Adding ISO-8859-1 encoding: ISO-8859-1
ISO-8859-1 Encoding Read: ISO-8859-1
Adding UTF-8 encoding: UTF-8
UTF-8 Encoding Read: UTF-8
Adding UTF-16 encoding: UTF-16
UTF-16 Encoding Read: UTF-16
| PHP | 4 | NathanFreeman/php-src | ext/dom/tests/DOMDocument_encoding_basic.phpt | [
"PHP-3.01"
] |
#+TITLE: lang/haskell
#+DATE: January 16, 2017
#+SINCE: v0.7
#+STARTUP: inlineimages
* Table of Contents :TOC:
- [[#description][Description]]
- [[#maintainers][Maintainers]]
- [[#module-flags][Module Flags]]
- [[#plugins][Plugins]]
- [[#prerequisites][Prerequisites]]
- [[#features][Features]]
- [[#configuration][Configuration]]
* Description
Adds Haskell support to Doom Emacs.
** Maintainers
This module has no dedicated maintainers.
** Module Flags
+ =+lsp= Enable LSP support with for [[https://github.com/haskell/haskell-language-server][haskell-language-server]] (requires the =:tools lsp= module).
** Plugins
+ [[https://github.com/haskell/haskell-mode][haskell-mode]]
+ [[https://github.com/emacs-lsp/lsp-haskell][lsp-haskell]] (=+lsp=, =:tools lsp=)
* Prerequisites
It is recommended to install the haskell tooling using [[https://www.haskell.org/ghcup/][ghcup]]. Only ghc is needed
for basic functionality:
#+BEGIN_SRC bash
ghcup install ghc
#+END_SRC
but =+lsp= users should also install the language server:
#+BEGIN_SRC bash
ghcup install hls
#+END_SRC
Installing [[https://www.haskell.org/cabal/][cabal]] or [[https://docs.haskellstack.org/en/stable/README/][stack]] as well is recommended, and can be done through
=ghcup=.
=haskell-mode= provides support for [[https://github.com/ndmitchell/hoogle][hoogle]], which can be installed through
system package manager, cabal, or stack.
=haskell-language-server= provides support for [[https://github.com/ndmitchell/hlint/][hlint]], and haskell code
formatters such as [[https://github.com/lspitzner/brittany][brittany]], [[https://github.com/ennocramer/floskell][floskell]], [[https://github.com/tweag/ormolu][ormolu]], [[https://github.com/fourmolu/fourmolu][fourmolu]], and [[https://github.com/haskell/stylish-haskell][stylish-haskell]],
which can be installed through system package manager, cabal, or stack.
* Features
This module intergrates the haskell packages into Doom by providing things such
as repl support, project root recognition, etc. It also provide the following
keybindings:
| Keybinding | Description |
|-------------------+-----------------------------------------------|
| =<localleader> b= | Build the current cabal project |
| =<localleader> c= | Visit the =.cabal= file of the current buffer |
| =<localleader> h= | Toggle visibility of the form at point |
| =<localleader> H= | hides all top level functions |
* Configuration
After installing your preferred formatter, make sure to set
=lsp-haskell-formatting-provider= to it.
Make sure to configure the lsp to use your perfered formatter, e.g.:
#+BEGIN_SRC elisp
;; ~/.doom.d/config.el
(after!
(setq lsp-haskell-formatting-provider "brittany"))
#+END_SRC
| Org | 4 | leezu/doom-emacs | modules/lang/haskell/README.org | [
"MIT"
] |
import numpy as np
import scipy.sparse as sp
import pytest
from sklearn.utils._testing import assert_allclose
from sklearn.utils._testing import assert_array_almost_equal
from sklearn.utils import check_random_state
from sklearn.datasets import load_iris
from sklearn.linear_model import Perceptron
iris = load_iris()
random_state = check_random_state(12)
indices = np.arange(iris.data.shape[0])
random_state.shuffle(indices)
X = iris.data[indices]
y = iris.target[indices]
X_csr = sp.csr_matrix(X)
X_csr.sort_indices()
class MyPerceptron:
def __init__(self, n_iter=1):
self.n_iter = n_iter
def fit(self, X, y):
n_samples, n_features = X.shape
self.w = np.zeros(n_features, dtype=np.float64)
self.b = 0.0
for t in range(self.n_iter):
for i in range(n_samples):
if self.predict(X[i])[0] != y[i]:
self.w += y[i] * X[i]
self.b += y[i]
def project(self, X):
return np.dot(X, self.w) + self.b
def predict(self, X):
X = np.atleast_2d(X)
return np.sign(self.project(X))
def test_perceptron_accuracy():
for data in (X, X_csr):
clf = Perceptron(max_iter=100, tol=None, shuffle=False)
clf.fit(data, y)
score = clf.score(data, y)
assert score > 0.7
def test_perceptron_correctness():
y_bin = y.copy()
y_bin[y != 1] = -1
clf1 = MyPerceptron(n_iter=2)
clf1.fit(X, y_bin)
clf2 = Perceptron(max_iter=2, shuffle=False, tol=None)
clf2.fit(X, y_bin)
assert_array_almost_equal(clf1.w, clf2.coef_.ravel())
def test_undefined_methods():
clf = Perceptron(max_iter=100)
for meth in ("predict_proba", "predict_log_proba"):
with pytest.raises(AttributeError):
getattr(clf, meth)
def test_perceptron_l1_ratio():
"""Check that `l1_ratio` has an impact when `penalty='elasticnet'`"""
clf1 = Perceptron(l1_ratio=0, penalty="elasticnet")
clf1.fit(X, y)
clf2 = Perceptron(l1_ratio=0.15, penalty="elasticnet")
clf2.fit(X, y)
assert clf1.score(X, y) != clf2.score(X, y)
# check that the bounds of elastic net which should correspond to an l1 or
# l2 penalty depending of `l1_ratio` value.
clf_l1 = Perceptron(penalty="l1").fit(X, y)
clf_elasticnet = Perceptron(l1_ratio=1, penalty="elasticnet").fit(X, y)
assert_allclose(clf_l1.coef_, clf_elasticnet.coef_)
clf_l2 = Perceptron(penalty="l2").fit(X, y)
clf_elasticnet = Perceptron(l1_ratio=0, penalty="elasticnet").fit(X, y)
assert_allclose(clf_l2.coef_, clf_elasticnet.coef_)
| Python | 5 | MaiRajborirug/scikit-learn | sklearn/linear_model/tests/test_perceptron.py | [
"BSD-3-Clause"
] |
#level-loading-view
.level-content
#control-bar-view
#canvas-wrapper
canvas(width=924, height=589)#webgl-surface
canvas(width=924, height=589)#normal-surface
#canvas-left-gradient.gradient
#canvas-top-gradient.gradient
#gold-view.secret.expanded
#level-chat-view
#duel-stats-view
#playback-view
#thang-hud
for team in ["humans", "ogres"]
div(class="spectate-code team-" + team)
img(src="/images/level/code_editor_background.png").code-background
span.code-background
.ace
.programming-language-container.rtl-allowed
span.programming-language-label(data-i18n='play_level.programming_language')
span.programming-language-label.spr :
span.programming-language
| Jade | 3 | cihatislamdede/codecombat | app/templates/play/spectate.jade | [
"CC-BY-4.0",
"MIT"
] |
{
"@context": {
"property": { "@id": "http://example.com/property", "@container": "@index" }
}
}
| JSONLD | 3 | fsteeg/json-ld-api | tests/compact/0064-context.jsonld | [
"W3C"
] |
SUMMARY = "Realtek out-of-tree kernel driver for rtl8192cu"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://include/autoconf.h;startline=1;endline=18;md5=25cbdd5262c1bef1021387c1fbe9d7ba"
inherit module
SRC_URI = "git://github.com/agherzan/rtl8192cu.git"
SRCREV = "8dc5b70d63154d85d71a213546a978393ccc2f16"
S = "${WORKDIR}/git"
EXTRA_OEMAKE += " \
CONFIG_PLATFORM_I386_PC=n \
KSRC=${STAGING_KERNEL_DIR} \
"
| BitBake | 2 | dtischler/px30-test | layers/meta-balena/meta-balena-common/recipes-kernel/rtl8192cu/rtl8192cu_4.0.2_9000.bb | [
"Apache-2.0"
] |
' Licensed to the .NET Foundation under one or more agreements.
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
Imports Microsoft.CodeAnalysis.VisualBasic.Syntax
Imports Microsoft.CodeAnalysis.Test.Utilities
Imports Roslyn.Test.Utilities
Namespace Microsoft.CodeAnalysis.VisualBasic.UnitTests.Semantics
Partial Public Class IOperationTests
Inherits SemanticModelTestBase
<CompilerTrait(CompilerFeature.IOperation)>
<Fact, WorkItem(10856, "https://github.com/dotnet/roslyn/issues/10856")>
Public Sub TupleExpression_NoConversions()
Dim source = <![CDATA[
Imports System
Class C
Shared Sub Main()
Dim t As (Integer, Integer) = (1, 2)'BIND:"(1, 2)"
End Sub
End Class]]>.Value
Dim expectedOperationTree = <![CDATA[
ITupleOperation (OperationKind.Tuple, Type: (System.Int32, System.Int32)) (Syntax: '(1, 2)')
NaturalType: (System.Int32, System.Int32)
Elements(2):
ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 1) (Syntax: '1')
ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 2) (Syntax: '2')
]]>.Value
Dim expectedDiagnostics = String.Empty
VerifyOperationTreeAndDiagnosticsForTest(Of TupleExpressionSyntax)(source, expectedOperationTree, expectedDiagnostics)
End Sub
<CompilerTrait(CompilerFeature.IOperation)>
<Fact, WorkItem(10856, "https://github.com/dotnet/roslyn/issues/10856")>
Public Sub TupleExpression_NoConversions_ParentVariableDeclaration()
Dim source = <![CDATA[
Imports System
Class C
Shared Sub Main()
Dim t As (Integer, Integer) = (1, 2)'BIND:"Dim t As (Integer, Integer) = (1, 2)"
End Sub
End Class]]>.Value
Dim expectedOperationTree = <![CDATA[
IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim t As (I ... r) = (1, 2)')
IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 't As (Integ ... r) = (1, 2)')
Declarators:
IVariableDeclaratorOperation (Symbol: t As (System.Int32, System.Int32)) (OperationKind.VariableDeclarator, Type: null) (Syntax: 't')
Initializer:
null
Initializer:
IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= (1, 2)')
ITupleOperation (OperationKind.Tuple, Type: (System.Int32, System.Int32)) (Syntax: '(1, 2)')
NaturalType: (System.Int32, System.Int32)
Elements(2):
ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 1) (Syntax: '1')
ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 2) (Syntax: '2')
]]>.Value
Dim expectedDiagnostics = String.Empty
VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics)
End Sub
<CompilerTrait(CompilerFeature.IOperation)>
<Fact, WorkItem(10856, "https://github.com/dotnet/roslyn/issues/10856")>
Public Sub TupleExpression_ImplicitConversions()
Dim source = <![CDATA[
Imports System
Class C
Shared Sub Main()
Dim t As (UInteger, UInteger) = (1, 2)'BIND:"(1, 2)"
End Sub
End Class]]>.Value
Dim expectedOperationTree = <![CDATA[
ITupleOperation (OperationKind.Tuple, Type: (System.UInt32, System.UInt32)) (Syntax: '(1, 2)')
NaturalType: (System.Int32, System.Int32)
Elements(2):
IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.UInt32, Constant: 1, IsImplicit) (Syntax: '1')
Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: True, IsReference: False, IsUserDefined: False) (MethodSymbol: null)
Operand:
ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 1) (Syntax: '1')
IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.UInt32, Constant: 2, IsImplicit) (Syntax: '2')
Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: True, IsReference: False, IsUserDefined: False) (MethodSymbol: null)
Operand:
ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 2) (Syntax: '2')
]]>.Value
Dim expectedDiagnostics = String.Empty
VerifyOperationTreeAndDiagnosticsForTest(Of TupleExpressionSyntax)(source, expectedOperationTree, expectedDiagnostics)
End Sub
<CompilerTrait(CompilerFeature.IOperation)>
<Fact, WorkItem(10856, "https://github.com/dotnet/roslyn/issues/10856")>
Public Sub TupleExpression_ImplicitConversions_ParentVariableDeclaration()
Dim source = <![CDATA[
Imports System
Class C
Shared Sub Main()
Dim t As (UInteger, UInteger) = (1, 2)'BIND:"Dim t As (UInteger, UInteger) = (1, 2)"
End Sub
End Class]]>.Value
Dim expectedOperationTree = <![CDATA[
IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim t As (U ... r) = (1, 2)')
IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 't As (UInte ... r) = (1, 2)')
Declarators:
IVariableDeclaratorOperation (Symbol: t As (System.UInt32, System.UInt32)) (OperationKind.VariableDeclarator, Type: null) (Syntax: 't')
Initializer:
null
Initializer:
IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= (1, 2)')
ITupleOperation (OperationKind.Tuple, Type: (System.UInt32, System.UInt32)) (Syntax: '(1, 2)')
NaturalType: (System.Int32, System.Int32)
Elements(2):
IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.UInt32, Constant: 1, IsImplicit) (Syntax: '1')
Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: True, IsReference: False, IsUserDefined: False) (MethodSymbol: null)
Operand:
ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 1) (Syntax: '1')
IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.UInt32, Constant: 2, IsImplicit) (Syntax: '2')
Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: True, IsReference: False, IsUserDefined: False) (MethodSymbol: null)
Operand:
ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 2) (Syntax: '2')
]]>.Value
Dim expectedDiagnostics = String.Empty
VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics)
End Sub
<CompilerTrait(CompilerFeature.IOperation)>
<Fact, WorkItem(10856, "https://github.com/dotnet/roslyn/issues/10856")>
Public Sub TupleExpression_ImplicitConversionFromNull()
Dim source = <![CDATA[
Imports System
Class C
Shared Sub Main()
Dim t As (UInteger, String) = (1, Nothing)'BIND:"(1, Nothing)"
End Sub
End Class]]>.Value
Dim expectedOperationTree = <![CDATA[
ITupleOperation (OperationKind.Tuple, Type: (System.UInt32, System.String)) (Syntax: '(1, Nothing)')
NaturalType: null
Elements(2):
IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.UInt32, Constant: 1, IsImplicit) (Syntax: '1')
Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: True, IsReference: False, IsUserDefined: False) (MethodSymbol: null)
Operand:
ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 1) (Syntax: '1')
IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.String, Constant: null, IsImplicit) (Syntax: 'Nothing')
Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null)
Operand:
ILiteralOperation (OperationKind.Literal, Type: null, Constant: null) (Syntax: 'Nothing')
]]>.Value
Dim expectedDiagnostics = String.Empty
VerifyOperationTreeAndDiagnosticsForTest(Of TupleExpressionSyntax)(source, expectedOperationTree, expectedDiagnostics)
End Sub
<CompilerTrait(CompilerFeature.IOperation)>
<Fact, WorkItem(10856, "https://github.com/dotnet/roslyn/issues/10856")>
Public Sub TupleExpression_ImplicitConversionFromNull_ParentVariableDeclaration()
Dim source = <![CDATA[
Imports System
Class C
Shared Sub Main()
Dim t As (UInteger, String) = (1, Nothing)'BIND:"Dim t As (UInteger, String) = (1, Nothing)"
End Sub
End Class]]>.Value
Dim expectedOperationTree = <![CDATA[
IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim t As (U ... 1, Nothing)')
IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 't As (UInte ... 1, Nothing)')
Declarators:
IVariableDeclaratorOperation (Symbol: t As (System.UInt32, System.String)) (OperationKind.VariableDeclarator, Type: null) (Syntax: 't')
Initializer:
null
Initializer:
IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= (1, Nothing)')
ITupleOperation (OperationKind.Tuple, Type: (System.UInt32, System.String)) (Syntax: '(1, Nothing)')
NaturalType: null
Elements(2):
IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.UInt32, Constant: 1, IsImplicit) (Syntax: '1')
Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: True, IsReference: False, IsUserDefined: False) (MethodSymbol: null)
Operand:
ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 1) (Syntax: '1')
IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.String, Constant: null, IsImplicit) (Syntax: 'Nothing')
Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null)
Operand:
ILiteralOperation (OperationKind.Literal, Type: null, Constant: null) (Syntax: 'Nothing')
]]>.Value
Dim expectedDiagnostics = String.Empty
VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics)
End Sub
<CompilerTrait(CompilerFeature.IOperation)>
<Fact, WorkItem(10856, "https://github.com/dotnet/roslyn/issues/10856")>
Public Sub TupleExpression_NamedArguments()
Dim source = <![CDATA[
Option Strict Off
Imports System
Class C
Shared Sub Main()
Dim t = (A:=1, B:=2)'BIND:"(A:=1, B:=2)"
End Sub
End Class]]>.Value
Dim expectedOperationTree = <![CDATA[
ITupleOperation (OperationKind.Tuple, Type: (A As System.Int32, B As System.Int32)) (Syntax: '(A:=1, B:=2)')
NaturalType: (A As System.Int32, B As System.Int32)
Elements(2):
ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 1) (Syntax: '1')
ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 2) (Syntax: '2')
]]>.Value
Dim expectedDiagnostics = String.Empty
VerifyOperationTreeAndDiagnosticsForTest(Of TupleExpressionSyntax)(source, expectedOperationTree, expectedDiagnostics)
End Sub
<CompilerTrait(CompilerFeature.IOperation)>
<Fact, WorkItem(10856, "https://github.com/dotnet/roslyn/issues/10856")>
Public Sub TupleExpression_NamedArguments_ParentVariableDeclaration()
Dim source = <![CDATA[
Option Strict Off
Imports System
Class C
Shared Sub Main()
Dim t = (A:=1, B:=2)'BIND:"Dim t = (A:=1, B:=2)"
End Sub
End Class]]>.Value
Dim expectedOperationTree = <![CDATA[
IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim t = (A:=1, B:=2)')
IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 't = (A:=1, B:=2)')
Declarators:
IVariableDeclaratorOperation (Symbol: t As (A As System.Int32, B As System.Int32)) (OperationKind.VariableDeclarator, Type: null) (Syntax: 't')
Initializer:
null
Initializer:
IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= (A:=1, B:=2)')
ITupleOperation (OperationKind.Tuple, Type: (A As System.Int32, B As System.Int32)) (Syntax: '(A:=1, B:=2)')
NaturalType: (A As System.Int32, B As System.Int32)
Elements(2):
ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 1) (Syntax: '1')
ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 2) (Syntax: '2')
]]>.Value
Dim expectedDiagnostics = String.Empty
VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics)
End Sub
<CompilerTrait(CompilerFeature.IOperation)>
<Fact, WorkItem(10856, "https://github.com/dotnet/roslyn/issues/10856")>
Public Sub TupleExpression_NamedElementsInTupleType()
Dim source = <![CDATA[
Option Strict Off
Imports System
Class C
Shared Sub Main()
Dim t As (A As Integer, B As Integer) = (1, 2)'BIND:"(1, 2)"
End Sub
End Class]]>.Value
Dim expectedOperationTree = <![CDATA[
ITupleOperation (OperationKind.Tuple, Type: (System.Int32, System.Int32)) (Syntax: '(1, 2)')
NaturalType: (System.Int32, System.Int32)
Elements(2):
ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 1) (Syntax: '1')
ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 2) (Syntax: '2')
]]>.Value
Dim expectedDiagnostics = String.Empty
VerifyOperationTreeAndDiagnosticsForTest(Of TupleExpressionSyntax)(source, expectedOperationTree, expectedDiagnostics)
End Sub
<CompilerTrait(CompilerFeature.IOperation)>
<Fact, WorkItem(10856, "https://github.com/dotnet/roslyn/issues/10856")>
Public Sub TupleExpression_NamedElementsInTupleType_ParentVariableDeclaration()
Dim source = <![CDATA[
Option Strict Off
Imports System
Class C
Shared Sub Main()
Dim t As (A As Integer, B As Integer) = (1, 2)'BIND:"Dim t As (A As Integer, B As Integer) = (1, 2)"
End Sub
End Class]]>.Value
Dim expectedOperationTree = <![CDATA[
IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim t As (A ... r) = (1, 2)')
IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 't As (A As ... r) = (1, 2)')
Declarators:
IVariableDeclaratorOperation (Symbol: t As (A As System.Int32, B As System.Int32)) (OperationKind.VariableDeclarator, Type: null) (Syntax: 't')
Initializer:
null
Initializer:
IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= (1, 2)')
IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: (A As System.Int32, B As System.Int32), IsImplicit) (Syntax: '(1, 2)')
Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null)
Operand:
ITupleOperation (OperationKind.Tuple, Type: (System.Int32, System.Int32)) (Syntax: '(1, 2)')
NaturalType: (System.Int32, System.Int32)
Elements(2):
ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 1) (Syntax: '1')
ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 2) (Syntax: '2')
]]>.Value
Dim expectedDiagnostics = String.Empty
VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics)
End Sub
<CompilerTrait(CompilerFeature.IOperation)>
<Fact, WorkItem(10856, "https://github.com/dotnet/roslyn/issues/10856")>
Public Sub TupleExpression_NamedElementsAndImplicitConversions()
Dim source = <![CDATA[
Option Strict Off
Imports System
Class C
Shared Sub Main()
Dim t As (A As Int16, B As String) = (A:=1, B:=Nothing)'BIND:"(A:=1, B:=Nothing)"
End Sub
End Class]]>.Value
Dim expectedOperationTree = <![CDATA[
ITupleOperation (OperationKind.Tuple, Type: (A As System.Int16, B As System.String)) (Syntax: '(A:=1, B:=Nothing)')
NaturalType: null
Elements(2):
IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Int16, Constant: 1, IsImplicit) (Syntax: '1')
Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: True, IsReference: False, IsUserDefined: False) (MethodSymbol: null)
Operand:
ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 1) (Syntax: '1')
IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.String, Constant: null, IsImplicit) (Syntax: 'Nothing')
Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null)
Operand:
ILiteralOperation (OperationKind.Literal, Type: null, Constant: null) (Syntax: 'Nothing')
]]>.Value
Dim expectedDiagnostics = String.Empty
VerifyOperationTreeAndDiagnosticsForTest(Of TupleExpressionSyntax)(source, expectedOperationTree, expectedDiagnostics)
End Sub
<CompilerTrait(CompilerFeature.IOperation)>
<Fact, WorkItem(10856, "https://github.com/dotnet/roslyn/issues/10856")>
Public Sub TupleExpression_NamedElementsAndImplicitConversions_ParentVariableDeclaration()
Dim source = <![CDATA[
Option Strict Off
Imports System
Class C
Shared Sub Main()
Dim t As (A As Int16, B As String) = (A:=1, B:=Nothing)'BIND:"Dim t As (A As Int16, B As String) = (A:=1, B:=Nothing)"
End Sub
End Class]]>.Value
Dim expectedOperationTree = <![CDATA[
IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim t As (A ... B:=Nothing)')
IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 't As (A As ... B:=Nothing)')
Declarators:
IVariableDeclaratorOperation (Symbol: t As (A As System.Int16, B As System.String)) (OperationKind.VariableDeclarator, Type: null) (Syntax: 't')
Initializer:
null
Initializer:
IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= (A:=1, B:=Nothing)')
ITupleOperation (OperationKind.Tuple, Type: (A As System.Int16, B As System.String)) (Syntax: '(A:=1, B:=Nothing)')
NaturalType: null
Elements(2):
IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Int16, Constant: 1, IsImplicit) (Syntax: '1')
Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: True, IsReference: False, IsUserDefined: False) (MethodSymbol: null)
Operand:
ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 1) (Syntax: '1')
IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.String, Constant: null, IsImplicit) (Syntax: 'Nothing')
Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null)
Operand:
ILiteralOperation (OperationKind.Literal, Type: null, Constant: null) (Syntax: 'Nothing')
]]>.Value
Dim expectedDiagnostics = String.Empty
VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics)
End Sub
<CompilerTrait(CompilerFeature.IOperation)>
<Fact, WorkItem(10856, "https://github.com/dotnet/roslyn/issues/10856")>
Public Sub TupleExpression_UserDefinedConversionsForArguments()
Dim source = <![CDATA[
Imports System
Class C
Private ReadOnly _x As Integer
Public Sub New(x As Integer)
_x = x
End Sub
Public Shared Widening Operator CType(value As Integer) As C
Return New C(value)
End Operator
Public Shared Widening Operator CType(c As C) As Short
Return CShort(c._x)
End Operator
Public Shared Widening Operator CType(c As C) As String
Return c._x.ToString()
End Operator
Public Sub M(c1 As C)
Dim t As (A As Int16, B As String) = (New C(0), c1)'BIND:"(New C(0), c1)"
End Sub
End Class]]>.Value
Dim expectedOperationTree = <![CDATA[
ITupleOperation (OperationKind.Tuple, Type: (System.Int16, c1 As System.String)) (Syntax: '(New C(0), c1)')
NaturalType: (C, c1 As C)
Elements(2):
IConversionOperation (TryCast: False, Unchecked) (OperatorMethod: Function C.op_Implicit(c As C) As System.Int16) (OperationKind.Conversion, Type: System.Int16, IsImplicit) (Syntax: 'New C(0)')
Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: True) (MethodSymbol: Function C.op_Implicit(c As C) As System.Int16)
Operand:
IObjectCreationOperation (Constructor: Sub C..ctor(x As System.Int32)) (OperationKind.ObjectCreation, Type: C) (Syntax: 'New C(0)')
Arguments(1):
IArgumentOperation (ArgumentKind.Explicit, Matching Parameter: x) (OperationKind.Argument, Type: null) (Syntax: '0')
ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 0) (Syntax: '0')
InConversion: CommonConversion (Exists: True, IsIdentity: True, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null)
OutConversion: CommonConversion (Exists: True, IsIdentity: True, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null)
Initializer:
null
IConversionOperation (TryCast: False, Unchecked) (OperatorMethod: Function C.op_Implicit(c As C) As System.String) (OperationKind.Conversion, Type: System.String, IsImplicit) (Syntax: 'c1')
Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: True) (MethodSymbol: Function C.op_Implicit(c As C) As System.String)
Operand:
IParameterReferenceOperation: c1 (OperationKind.ParameterReference, Type: C) (Syntax: 'c1')
]]>.Value
Dim expectedDiagnostics = String.Empty
VerifyOperationTreeAndDiagnosticsForTest(Of TupleExpressionSyntax)(source, expectedOperationTree, expectedDiagnostics)
End Sub
<CompilerTrait(CompilerFeature.IOperation)>
<Fact, WorkItem(10856, "https://github.com/dotnet/roslyn/issues/10856")>
Public Sub TupleExpression_UserDefinedConversionsForArguments_ParentVariableDeclaration()
Dim source = <![CDATA[
Imports System
Class C
Private ReadOnly _x As Integer
Public Sub New(x As Integer)
_x = x
End Sub
Public Shared Widening Operator CType(value As Integer) As C
Return New C(value)
End Operator
Public Shared Widening Operator CType(c As C) As Short
Return CShort(c._x)
End Operator
Public Shared Widening Operator CType(c As C) As String
Return c._x.ToString()
End Operator
Public Sub M(c1 As C)
Dim t As (A As Int16, B As String) = (New C(0), c1)'BIND:"Dim t As (A As Int16, B As String) = (New C(0), c1)"
End Sub
End Class]]>.Value
Dim expectedOperationTree = <![CDATA[
IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim t As (A ... w C(0), c1)')
IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 't As (A As ... w C(0), c1)')
Declarators:
IVariableDeclaratorOperation (Symbol: t As (A As System.Int16, B As System.String)) (OperationKind.VariableDeclarator, Type: null) (Syntax: 't')
Initializer:
null
Initializer:
IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= (New C(0), c1)')
IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: (A As System.Int16, B As System.String), IsImplicit) (Syntax: '(New C(0), c1)')
Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null)
Operand:
ITupleOperation (OperationKind.Tuple, Type: (System.Int16, c1 As System.String)) (Syntax: '(New C(0), c1)')
NaturalType: (C, c1 As C)
Elements(2):
IConversionOperation (TryCast: False, Unchecked) (OperatorMethod: Function C.op_Implicit(c As C) As System.Int16) (OperationKind.Conversion, Type: System.Int16, IsImplicit) (Syntax: 'New C(0)')
Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: True) (MethodSymbol: Function C.op_Implicit(c As C) As System.Int16)
Operand:
IObjectCreationOperation (Constructor: Sub C..ctor(x As System.Int32)) (OperationKind.ObjectCreation, Type: C) (Syntax: 'New C(0)')
Arguments(1):
IArgumentOperation (ArgumentKind.Explicit, Matching Parameter: x) (OperationKind.Argument, Type: null) (Syntax: '0')
ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 0) (Syntax: '0')
InConversion: CommonConversion (Exists: True, IsIdentity: True, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null)
OutConversion: CommonConversion (Exists: True, IsIdentity: True, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null)
Initializer:
null
IConversionOperation (TryCast: False, Unchecked) (OperatorMethod: Function C.op_Implicit(c As C) As System.String) (OperationKind.Conversion, Type: System.String, IsImplicit) (Syntax: 'c1')
Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: True) (MethodSymbol: Function C.op_Implicit(c As C) As System.String)
Operand:
IParameterReferenceOperation: c1 (OperationKind.ParameterReference, Type: C) (Syntax: 'c1')
]]>.Value
Dim expectedDiagnostics = String.Empty
VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics)
End Sub
<CompilerTrait(CompilerFeature.IOperation)>
<Fact, WorkItem(10856, "https://github.com/dotnet/roslyn/issues/10856")>
Public Sub TupleExpression_UserDefinedConversionFromTupleExpression()
Dim source = <![CDATA[
Imports System
Class C
Private ReadOnly _x As Integer
Public Sub New(x As Integer)
_x = x
End Sub
Public Shared Widening Operator CType(x As (Integer, String)) As C
Return New C(x.Item1)
End Operator
Public Shared Widening Operator CType(c As C) As (Integer, String)
Return (c._x, c._x.ToString)
End Operator
Public Sub M(c1 As C)
Dim t As C = (0, Nothing)'BIND:"(0, Nothing)"
End Sub
End Class]]>.Value
Dim expectedOperationTree = <![CDATA[
ITupleOperation (OperationKind.Tuple, Type: (System.Int32, System.Object)) (Syntax: '(0, Nothing)')
NaturalType: null
Elements(2):
ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 0) (Syntax: '0')
IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Object, Constant: null, IsImplicit) (Syntax: 'Nothing')
Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null)
Operand:
ILiteralOperation (OperationKind.Literal, Type: null, Constant: null) (Syntax: 'Nothing')
]]>.Value
Dim expectedDiagnostics = String.Empty
VerifyOperationTreeAndDiagnosticsForTest(Of TupleExpressionSyntax)(source, expectedOperationTree, expectedDiagnostics)
End Sub
<CompilerTrait(CompilerFeature.IOperation)>
<Fact, WorkItem(10856, "https://github.com/dotnet/roslyn/issues/10856")>
Public Sub TupleExpression_UserDefinedConversionFromTupleExpression_ParentVariableDeclaration()
Dim source = <![CDATA[
Imports System
Class C
Private ReadOnly _x As Integer
Public Sub New(x As Integer)
_x = x
End Sub
Public Shared Widening Operator CType(x As (Integer, String)) As C
Return New C(x.Item1)
End Operator
Public Shared Widening Operator CType(c As C) As (Integer, String)
Return (c._x, c._x.ToString)
End Operator
Public Sub M(c1 As C)
Dim t As C = (0, Nothing)'BIND:"Dim t As C = (0, Nothing)"
End Sub
End Class]]>.Value
Dim expectedOperationTree = <![CDATA[
IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim t As C ... 0, Nothing)')
IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 't As C = (0, Nothing)')
Declarators:
IVariableDeclaratorOperation (Symbol: t As C) (OperationKind.VariableDeclarator, Type: null) (Syntax: 't')
Initializer:
null
Initializer:
IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= (0, Nothing)')
IConversionOperation (TryCast: False, Unchecked) (OperatorMethod: Function C.op_Implicit(x As (System.Int32, System.String)) As C) (OperationKind.Conversion, Type: C, IsImplicit) (Syntax: '(0, Nothing)')
Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: True) (MethodSymbol: Function C.op_Implicit(x As (System.Int32, System.String)) As C)
Operand:
ITupleOperation (OperationKind.Tuple, Type: (System.Int32, System.Object)) (Syntax: '(0, Nothing)')
NaturalType: null
Elements(2):
ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 0) (Syntax: '0')
IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Object, Constant: null, IsImplicit) (Syntax: 'Nothing')
Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null)
Operand:
ILiteralOperation (OperationKind.Literal, Type: null, Constant: null) (Syntax: 'Nothing')
]]>.Value
Dim expectedDiagnostics = String.Empty
VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics)
End Sub
<CompilerTrait(CompilerFeature.IOperation)>
<Fact, WorkItem(10856, "https://github.com/dotnet/roslyn/issues/10856")>
Public Sub TupleExpression_UserDefinedConversionToTupleType()
Dim source = <![CDATA[
Imports System
Class C
Private ReadOnly _x As Integer
Public Sub New(x As Integer)
_x = x
End Sub
Public Shared Widening Operator CType(x As (Integer, String)) As C
Return New C(x.Item1)
End Operator
Public Shared Widening Operator CType(c As C) As (Integer, String)
Return (c._x, c._x.ToString)
End Operator
Public Sub M(c1 As C)
Dim t As (Integer, String) = c1'BIND:"c1"
End Sub
End Class]]>.Value
Dim expectedOperationTree = <![CDATA[
IParameterReferenceOperation: c1 (OperationKind.ParameterReference, Type: C) (Syntax: 'c1')
]]>.Value
Dim expectedDiagnostics = String.Empty
VerifyOperationTreeAndDiagnosticsForTest(Of IdentifierNameSyntax)(source, expectedOperationTree, expectedDiagnostics)
End Sub
<CompilerTrait(CompilerFeature.IOperation)>
<Fact, WorkItem(10856, "https://github.com/dotnet/roslyn/issues/10856")>
Public Sub TupleExpression_UserDefinedConversionToTupleType_ParentVariableDeclaration()
Dim source = <![CDATA[
Imports System
Class C
Private ReadOnly _x As Integer
Public Sub New(x As Integer)
_x = x
End Sub
Public Shared Widening Operator CType(x As (Integer, String)) As C
Return New C(x.Item1)
End Operator
Public Shared Widening Operator CType(c As C) As (Integer, String)
Return (c._x, c._x.ToString)
End Operator
Public Sub M(c1 As C)
Dim t As (Integer, String) = c1'BIND:"Dim t As (Integer, String) = c1"
End Sub
End Class]]>.Value
Dim expectedOperationTree = <![CDATA[
IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim t As (I ... tring) = c1')
IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 't As (Integ ... tring) = c1')
Declarators:
IVariableDeclaratorOperation (Symbol: t As (System.Int32, System.String)) (OperationKind.VariableDeclarator, Type: null) (Syntax: 't')
Initializer:
null
Initializer:
IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= c1')
IConversionOperation (TryCast: False, Unchecked) (OperatorMethod: Function C.op_Implicit(c As C) As (System.Int32, System.String)) (OperationKind.Conversion, Type: (System.Int32, System.String), IsImplicit) (Syntax: 'c1')
Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: True) (MethodSymbol: Function C.op_Implicit(c As C) As (System.Int32, System.String))
Operand:
IParameterReferenceOperation: c1 (OperationKind.ParameterReference, Type: C) (Syntax: 'c1')
]]>.Value
Dim expectedDiagnostics = String.Empty
VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics)
End Sub
<CompilerTrait(CompilerFeature.IOperation)>
<Fact, WorkItem(10856, "https://github.com/dotnet/roslyn/issues/10856")>
Public Sub TupleExpression_InvalidConversion()
Dim source = <![CDATA[
Class C
Private ReadOnly _x As Integer
Public Sub New(x As Integer)
_x = x
End Sub
Public Shared Widening Operator CType(value As Integer) As C
Return New C(value)
End Operator
Public Shared Widening Operator CType(c As C) As Integer
Return CShort(c._x)
End Operator
Public Shared Widening Operator CType(c As C) As String
Return c._x.ToString()
End Operator
Public Sub M(c1 As C)
Dim t As (Short, String) = (New C(0), c1)'BIND:"(New C(0), c1)"
End Sub
End Class]]>.Value
Dim expectedOperationTree = <![CDATA[
ITupleOperation (OperationKind.Tuple, Type: (System.Int16, c1 As System.String), IsInvalid) (Syntax: '(New C(0), c1)')
NaturalType: (C, c1 As C)
Elements(2):
IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Int16, IsInvalid, IsImplicit) (Syntax: 'New C(0)')
Conversion: CommonConversion (Exists: False, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null)
Operand:
IObjectCreationOperation (Constructor: Sub C..ctor(x As System.Int32)) (OperationKind.ObjectCreation, Type: C, IsInvalid) (Syntax: 'New C(0)')
Arguments(1):
IArgumentOperation (ArgumentKind.Explicit, Matching Parameter: x) (OperationKind.Argument, Type: null, IsInvalid) (Syntax: '0')
ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 0, IsInvalid) (Syntax: '0')
InConversion: CommonConversion (Exists: True, IsIdentity: True, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null)
OutConversion: CommonConversion (Exists: True, IsIdentity: True, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null)
Initializer:
null
IConversionOperation (TryCast: False, Unchecked) (OperatorMethod: Function C.op_Implicit(c As C) As System.String) (OperationKind.Conversion, Type: System.String, IsImplicit) (Syntax: 'c1')
Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: True) (MethodSymbol: Function C.op_Implicit(c As C) As System.String)
Operand:
IParameterReferenceOperation: c1 (OperationKind.ParameterReference, Type: C) (Syntax: 'c1')
]]>.Value
Dim expectedDiagnostics = <![CDATA[
BC30311: Value of type 'C' cannot be converted to 'Short'.
Dim t As (Short, String) = (New C(0), c1)'BIND:"(New C(0), c1)"
~~~~~~~~
]]>.Value
VerifyOperationTreeAndDiagnosticsForTest(Of TupleExpressionSyntax)(source, expectedOperationTree, expectedDiagnostics)
End Sub
<CompilerTrait(CompilerFeature.IOperation)>
<Fact, WorkItem(10856, "https://github.com/dotnet/roslyn/issues/10856")>
Public Sub TupleExpression_InvalidConversion_ParentVariableDeclaration()
Dim source = <![CDATA[
Class C
Private ReadOnly _x As Integer
Public Sub New(x As Integer)
_x = x
End Sub
Public Shared Widening Operator CType(value As Integer) As C
Return New C(value)
End Operator
Public Shared Widening Operator CType(c As C) As Integer
Return CShort(c._x)
End Operator
Public Shared Widening Operator CType(c As C) As String
Return c._x.ToString()
End Operator
Public Sub M(c1 As C)
Dim t As (Short, String) = (New C(0), c1)'BIND:"Dim t As (Short, String) = (New C(0), c1)"
End Sub
End Class
]]>.Value
Dim expectedOperationTree = <![CDATA[
IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim t As (S ... w C(0), c1)')
IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 't As (Short ... w C(0), c1)')
Declarators:
IVariableDeclaratorOperation (Symbol: t As (System.Int16, System.String)) (OperationKind.VariableDeclarator, Type: null) (Syntax: 't')
Initializer:
null
Initializer:
IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= (New C(0), c1)')
ITupleOperation (OperationKind.Tuple, Type: (System.Int16, c1 As System.String), IsInvalid) (Syntax: '(New C(0), c1)')
NaturalType: (C, c1 As C)
Elements(2):
IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Int16, IsInvalid, IsImplicit) (Syntax: 'New C(0)')
Conversion: CommonConversion (Exists: False, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null)
Operand:
IObjectCreationOperation (Constructor: Sub C..ctor(x As System.Int32)) (OperationKind.ObjectCreation, Type: C, IsInvalid) (Syntax: 'New C(0)')
Arguments(1):
IArgumentOperation (ArgumentKind.Explicit, Matching Parameter: x) (OperationKind.Argument, Type: null, IsInvalid) (Syntax: '0')
ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 0, IsInvalid) (Syntax: '0')
InConversion: CommonConversion (Exists: True, IsIdentity: True, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null)
OutConversion: CommonConversion (Exists: True, IsIdentity: True, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null)
Initializer:
null
IConversionOperation (TryCast: False, Unchecked) (OperatorMethod: Function C.op_Implicit(c As C) As System.String) (OperationKind.Conversion, Type: System.String, IsImplicit) (Syntax: 'c1')
Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: True) (MethodSymbol: Function C.op_Implicit(c As C) As System.String)
Operand:
IParameterReferenceOperation: c1 (OperationKind.ParameterReference, Type: C) (Syntax: 'c1')
]]>.Value
Dim expectedDiagnostics = <![CDATA[
BC30311: Value of type 'C' cannot be converted to 'Short'.
Dim t As (Short, String) = (New C(0), c1)'BIND:"Dim t As (Short, String) = (New C(0), c1)"
~~~~~~~~
]]>.Value
VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics)
End Sub
<CompilerTrait(CompilerFeature.IOperation, CompilerFeature.Dataflow)>
<Fact()>
Public Sub TupleFlow_01()
Dim source = <![CDATA[
Class C
Sub M(b As Boolean)'BIND:"Sub M(b As Boolean)"
Dim t As (Integer, Integer) = (1, If(b, 2, 3))
End Sub
End Class]]>.Value
Dim expectedDiagnostics = String.Empty
Dim expectedFlowGraph = <![CDATA[
Block[B0] - Entry
Statements (0)
Next (Regular) Block[B1]
Entering: {R1}
.locals {R1}
{
Locals: [t As (System.Int32, System.Int32)]
CaptureIds: [0] [1]
Block[B1] - Block
Predecessors: [B0]
Statements (1)
IFlowCaptureOperation: 0 (OperationKind.FlowCapture, Type: null, IsImplicit) (Syntax: '1')
Value:
ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 1) (Syntax: '1')
Jump if False (Regular) to Block[B3]
IParameterReferenceOperation: b (OperationKind.ParameterReference, Type: System.Boolean) (Syntax: 'b')
Next (Regular) Block[B2]
Block[B2] - Block
Predecessors: [B1]
Statements (1)
IFlowCaptureOperation: 1 (OperationKind.FlowCapture, Type: null, IsImplicit) (Syntax: '2')
Value:
ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 2) (Syntax: '2')
Next (Regular) Block[B4]
Block[B3] - Block
Predecessors: [B1]
Statements (1)
IFlowCaptureOperation: 1 (OperationKind.FlowCapture, Type: null, IsImplicit) (Syntax: '3')
Value:
ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 3) (Syntax: '3')
Next (Regular) Block[B4]
Block[B4] - Block
Predecessors: [B2] [B3]
Statements (1)
ISimpleAssignmentOperation (OperationKind.SimpleAssignment, Type: (System.Int32, System.Int32), IsImplicit) (Syntax: 't As (Integ ... f(b, 2, 3))')
Left:
ILocalReferenceOperation: t (IsDeclaration: True) (OperationKind.LocalReference, Type: (System.Int32, System.Int32), IsImplicit) (Syntax: 't')
Right:
ITupleOperation (OperationKind.Tuple, Type: (System.Int32, System.Int32)) (Syntax: '(1, If(b, 2, 3))')
NaturalType: (System.Int32, System.Int32)
Elements(2):
IFlowCaptureReferenceOperation: 0 (OperationKind.FlowCaptureReference, Type: System.Int32, Constant: 1, IsImplicit) (Syntax: '1')
IFlowCaptureReferenceOperation: 1 (OperationKind.FlowCaptureReference, Type: System.Int32, IsImplicit) (Syntax: 'If(b, 2, 3)')
Next (Regular) Block[B5]
Leaving: {R1}
}
Block[B5] - Exit
Predecessors: [B4]
Statements (0)
]]>.Value
VerifyFlowGraphAndDiagnosticsForTest(Of MethodBlockSyntax)(source, expectedFlowGraph, expectedDiagnostics)
End Sub
<CompilerTrait(CompilerFeature.IOperation, CompilerFeature.Dataflow)>
<Fact()>
Public Sub TupleFlow_02()
Dim source = <![CDATA[
Class C
Sub M(b As Boolean)'BIND:"Sub M(b As Boolean)"
Dim t As (Integer, (Integer, Integer)) = (1, (2, If(b, 2, 3)))
End Sub
End Class]]>.Value
Dim expectedDiagnostics = String.Empty
Dim expectedFlowGraph = <![CDATA[
Block[B0] - Entry
Statements (0)
Next (Regular) Block[B1]
Entering: {R1}
.locals {R1}
{
Locals: [t As (System.Int32, (System.Int32, System.Int32))]
CaptureIds: [0] [1] [2]
Block[B1] - Block
Predecessors: [B0]
Statements (2)
IFlowCaptureOperation: 0 (OperationKind.FlowCapture, Type: null, IsImplicit) (Syntax: '1')
Value:
ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 1) (Syntax: '1')
IFlowCaptureOperation: 1 (OperationKind.FlowCapture, Type: null, IsImplicit) (Syntax: '2')
Value:
ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 2) (Syntax: '2')
Jump if False (Regular) to Block[B3]
IParameterReferenceOperation: b (OperationKind.ParameterReference, Type: System.Boolean) (Syntax: 'b')
Next (Regular) Block[B2]
Block[B2] - Block
Predecessors: [B1]
Statements (1)
IFlowCaptureOperation: 2 (OperationKind.FlowCapture, Type: null, IsImplicit) (Syntax: '2')
Value:
ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 2) (Syntax: '2')
Next (Regular) Block[B4]
Block[B3] - Block
Predecessors: [B1]
Statements (1)
IFlowCaptureOperation: 2 (OperationKind.FlowCapture, Type: null, IsImplicit) (Syntax: '3')
Value:
ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 3) (Syntax: '3')
Next (Regular) Block[B4]
Block[B4] - Block
Predecessors: [B2] [B3]
Statements (1)
ISimpleAssignmentOperation (OperationKind.SimpleAssignment, Type: (System.Int32, (System.Int32, System.Int32)), IsImplicit) (Syntax: 't As (Integ ... (b, 2, 3)))')
Left:
ILocalReferenceOperation: t (IsDeclaration: True) (OperationKind.LocalReference, Type: (System.Int32, (System.Int32, System.Int32)), IsImplicit) (Syntax: 't')
Right:
ITupleOperation (OperationKind.Tuple, Type: (System.Int32, (System.Int32, System.Int32))) (Syntax: '(1, (2, If(b, 2, 3)))')
NaturalType: (System.Int32, (System.Int32, System.Int32))
Elements(2):
IFlowCaptureReferenceOperation: 0 (OperationKind.FlowCaptureReference, Type: System.Int32, Constant: 1, IsImplicit) (Syntax: '1')
ITupleOperation (OperationKind.Tuple, Type: (System.Int32, System.Int32)) (Syntax: '(2, If(b, 2, 3))')
NaturalType: (System.Int32, System.Int32)
Elements(2):
IFlowCaptureReferenceOperation: 1 (OperationKind.FlowCaptureReference, Type: System.Int32, Constant: 2, IsImplicit) (Syntax: '2')
IFlowCaptureReferenceOperation: 2 (OperationKind.FlowCaptureReference, Type: System.Int32, IsImplicit) (Syntax: 'If(b, 2, 3)')
Next (Regular) Block[B5]
Leaving: {R1}
}
Block[B5] - Exit
Predecessors: [B4]
Statements (0)
]]>.Value
VerifyFlowGraphAndDiagnosticsForTest(Of MethodBlockSyntax)(source, expectedFlowGraph, expectedDiagnostics)
End Sub
<CompilerTrait(CompilerFeature.IOperation, CompilerFeature.Dataflow)>
<Fact()>
Public Sub TupleFlow_03()
Dim source = <![CDATA[
Class C
Sub M(b As Boolean)'BIND:"Sub M(b As Boolean)"
M2((1, If(b, 2, 3)))
End Sub
Sub M2(arg As (Integer, Integer))
End Sub
End Class]]>.Value
Dim expectedDiagnostics = String.Empty
Dim expectedFlowGraph = <![CDATA[
Block[B0] - Entry
Statements (0)
Next (Regular) Block[B1]
Entering: {R1}
.locals {R1}
{
CaptureIds: [0] [1] [2]
Block[B1] - Block
Predecessors: [B0]
Statements (2)
IFlowCaptureOperation: 0 (OperationKind.FlowCapture, Type: null, IsImplicit) (Syntax: 'M2')
Value:
IInstanceReferenceOperation (ReferenceKind: ContainingTypeInstance) (OperationKind.InstanceReference, Type: C, IsImplicit) (Syntax: 'M2')
IFlowCaptureOperation: 1 (OperationKind.FlowCapture, Type: null, IsImplicit) (Syntax: '1')
Value:
ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 1) (Syntax: '1')
Jump if False (Regular) to Block[B3]
IParameterReferenceOperation: b (OperationKind.ParameterReference, Type: System.Boolean) (Syntax: 'b')
Next (Regular) Block[B2]
Block[B2] - Block
Predecessors: [B1]
Statements (1)
IFlowCaptureOperation: 2 (OperationKind.FlowCapture, Type: null, IsImplicit) (Syntax: '2')
Value:
ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 2) (Syntax: '2')
Next (Regular) Block[B4]
Block[B3] - Block
Predecessors: [B1]
Statements (1)
IFlowCaptureOperation: 2 (OperationKind.FlowCapture, Type: null, IsImplicit) (Syntax: '3')
Value:
ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 3) (Syntax: '3')
Next (Regular) Block[B4]
Block[B4] - Block
Predecessors: [B2] [B3]
Statements (1)
IExpressionStatementOperation (OperationKind.ExpressionStatement, Type: null) (Syntax: 'M2((1, If(b, 2, 3)))')
Expression:
IInvocationOperation ( Sub C.M2(arg As (System.Int32, System.Int32))) (OperationKind.Invocation, Type: System.Void) (Syntax: 'M2((1, If(b, 2, 3)))')
Instance Receiver:
IFlowCaptureReferenceOperation: 0 (OperationKind.FlowCaptureReference, Type: C, IsImplicit) (Syntax: 'M2')
Arguments(1):
IArgumentOperation (ArgumentKind.Explicit, Matching Parameter: arg) (OperationKind.Argument, Type: null) (Syntax: '(1, If(b, 2, 3))')
ITupleOperation (OperationKind.Tuple, Type: (System.Int32, System.Int32)) (Syntax: '(1, If(b, 2, 3))')
NaturalType: (System.Int32, System.Int32)
Elements(2):
IFlowCaptureReferenceOperation: 1 (OperationKind.FlowCaptureReference, Type: System.Int32, Constant: 1, IsImplicit) (Syntax: '1')
IFlowCaptureReferenceOperation: 2 (OperationKind.FlowCaptureReference, Type: System.Int32, IsImplicit) (Syntax: 'If(b, 2, 3)')
InConversion: CommonConversion (Exists: True, IsIdentity: True, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null)
OutConversion: CommonConversion (Exists: True, IsIdentity: True, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null)
Next (Regular) Block[B5]
Leaving: {R1}
}
Block[B5] - Exit
Predecessors: [B4]
Statements (0)
]]>.Value
VerifyFlowGraphAndDiagnosticsForTest(Of MethodBlockSyntax)(source, expectedFlowGraph, expectedDiagnostics)
End Sub
<CompilerTrait(CompilerFeature.IOperation, CompilerFeature.Dataflow)>
<Fact()>
Public Sub TupleFlow_04()
Dim source = <![CDATA[
Class C
Sub M(b As Boolean)'BIND:"Sub M(b As Boolean)"
Dim t As (Integer, Integer) = (If(b, 2, 3), 1)
End Sub
End Class]]>.Value
Dim expectedDiagnostics = String.Empty
Dim expectedFlowGraph = <![CDATA[
Block[B0] - Entry
Statements (0)
Next (Regular) Block[B1]
Entering: {R1}
.locals {R1}
{
Locals: [t As (System.Int32, System.Int32)]
CaptureIds: [0]
Block[B1] - Block
Predecessors: [B0]
Statements (0)
Jump if False (Regular) to Block[B3]
IParameterReferenceOperation: b (OperationKind.ParameterReference, Type: System.Boolean) (Syntax: 'b')
Next (Regular) Block[B2]
Block[B2] - Block
Predecessors: [B1]
Statements (1)
IFlowCaptureOperation: 0 (OperationKind.FlowCapture, Type: null, IsImplicit) (Syntax: '2')
Value:
ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 2) (Syntax: '2')
Next (Regular) Block[B4]
Block[B3] - Block
Predecessors: [B1]
Statements (1)
IFlowCaptureOperation: 0 (OperationKind.FlowCapture, Type: null, IsImplicit) (Syntax: '3')
Value:
ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 3) (Syntax: '3')
Next (Regular) Block[B4]
Block[B4] - Block
Predecessors: [B2] [B3]
Statements (1)
ISimpleAssignmentOperation (OperationKind.SimpleAssignment, Type: (System.Int32, System.Int32), IsImplicit) (Syntax: 't As (Integ ... , 2, 3), 1)')
Left:
ILocalReferenceOperation: t (IsDeclaration: True) (OperationKind.LocalReference, Type: (System.Int32, System.Int32), IsImplicit) (Syntax: 't')
Right:
ITupleOperation (OperationKind.Tuple, Type: (System.Int32, System.Int32)) (Syntax: '(If(b, 2, 3), 1)')
NaturalType: (System.Int32, System.Int32)
Elements(2):
IFlowCaptureReferenceOperation: 0 (OperationKind.FlowCaptureReference, Type: System.Int32, IsImplicit) (Syntax: 'If(b, 2, 3)')
ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 1) (Syntax: '1')
Next (Regular) Block[B5]
Leaving: {R1}
}
Block[B5] - Exit
Predecessors: [B4]
Statements (0)
]]>.Value
VerifyFlowGraphAndDiagnosticsForTest(Of MethodBlockSyntax)(source, expectedFlowGraph, expectedDiagnostics)
End Sub
End Class
End Namespace
| Visual Basic | 4 | ffMathy/roslyn | src/Compilers/VisualBasic/Test/IOperation/IOperation/IOperationTests_ITupleExpression.vb | [
"MIT"
] |
@import base
.heading
margin-bottom: 1em
&:not(:first-child)
padding-top: 0.5em
@include breakpoint(max, md)
.heading
word-wrap: break-word
@each $level, $size in (1: 4.4, 2: 3.4, 3: 2.6, 4: 2.2, 5: 1.8)
.h#{$level}
font: normal 500 #{$size}rem/#{1.1} var(--font-secondary)
.permalink
position: relative
&:before
content: "\00b6"
font-size: 0.9em
font-weight: normal
color: var(--color-subtle)
position: absolute
top: 0.15em
left: -2.85rem
opacity: 0
transition: opacity 0.2s ease
&:hover:before
opacity: 1
&:active:before
color: var(--color-theme)
&:target
display: inline-block
&:before
bottom: 0.15em
top: initial
@include breakpoint(min, md)
.abbr
cursor: help
border-bottom: 1px dotted var(--color-subtle-dark)
@supports(text-decoration: underline dotted)
.abbr
text-decoration: underline dotted var(--color-subtle-dark)
border-bottom: none
@include breakpoint(max, sm)
.abbr:after
content: " (" attr(aria-label) ")"
color: var(--color-subtle-dark)
text-decoration: none
.label
display: block
font: bold var(--font-size-lg)/var(--line-height-md) var(--font-secondary)
text-transform: uppercase
color: var(--color-dark)
.inline-list
& > *
display: inline
&:not(:last-child)
margin-right: 2rem
.no-gutter
margin-bottom: 0 !important
.clear:after
content: ""
clear: both
display: table
.action
font: var(--font-size-xs)/var(--line-height-sm) var(--font-primary)
color: var(--color-subtle-dark)
float: right
max-width: 33%
text-align: right
position: relative
top: 0.4rem
margin-right: 1rem
.help
color: var(--color-dark)
| Sass | 4 | snosrap/spaCy | website/src/styles/typography.module.sass | [
"MIT"
] |
--TEST--
mysqli_real_escape_string()
--EXTENSIONS--
mysqli
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
?>
--FILE--
<?php
require_once("connect.inc");
require('table.inc');
if ('фу\\\\бар' !== ($tmp = mysqli_real_escape_string($link, 'фу\\бар')))
printf("[004] Expecting фу\\\\бар, got %s\n", $tmp);
if ('бар\"фус' !== ($tmp = mysqli_real_escape_string($link, 'бар"фус')))
printf("[005] Expecting бар\"фус, got %s\n", $tmp);
if ("лала\'лали" !== ($tmp = mysqli_real_escape_string($link, "лала'лали")))
printf("[006] Expecting лала'лали, got %s\n", $tmp);
if ("абра\\nкадабра" !== ($tmp = mysqli_real_escape_string($link, "абра\nкадабра")))
printf("[007] Expecting абра\\nкадабра, got %s\n", $tmp);
if ("манда\\rин" !== ($tmp = mysqli_real_escape_string($link, "манда\rин")))
printf("[008] Expecting \\r, got %s\n", $tmp);
if ("иху\\0аху" !== ($tmp = mysqli_real_escape_string($link, "иху" . chr(0) . "аху")))
printf("[009] Expecting %s, got %s\n", "иху\\0аху", $tmp);
if (($exp='абра\\\\ка\"да\\'."'".'бра\Zсим\\nсала\\rби\\0м') !==
($tmp = mysqli_real_escape_string($link, "абра\\ка\"да'бра\032сим\nсала\rби" . chr(0) . "м")))
{
printf("[010] Expecting %s, got %s\n", $exp, $tmp, var_dump($exp, $tmp));
}
if ('富\\\\酒吧' !== ($tmp = mysqli_real_escape_string($link, '富\\酒吧')))
printf("[011] Expecting 富\\\\酒吧, got %s\n", $tmp);
if ('酒吧\"小题大做' !== ($tmp = mysqli_real_escape_string($link, '酒吧"小题大做')))
printf("[012] Expecting 酒吧\"小题大做, got %s\n", $tmp);
if ("拉拉\'西雅图" !== ($tmp = mysqli_real_escape_string($link, "拉拉'西雅图")))
printf("[013] Expecting 拉拉'西雅图, got %s\n", $tmp);
if ("阿卜拉\\n轻" !== ($tmp = mysqli_real_escape_string($link, "阿卜拉\n轻")))
printf("[014] Expecting 阿卜拉\\n轻, got %s\n", $tmp);
if ("张明安\\r在" !== ($tmp = mysqli_real_escape_string($link, "张明安\r在")))
printf("[015] Expecting 张明安\\r在, got %s\n", $tmp);
if ("竺可桢\\0空调器" !== ($tmp = mysqli_real_escape_string($link, "竺可桢" . chr(0) . "空调器")))
printf("[016] Expecting %s, got %s\n", "竺可桢\\0空调器", $tmp);
if (($exp='阿卜拉\\\\嘉\"达丰\\'."'".'乳罩\Z辛\\n萨拉\\r毕\\0米') !==
($tmp = mysqli_real_escape_string($link, "阿卜拉\\嘉\"达丰'乳罩\032辛\n萨拉\r毕" . chr(0) . "米")))
{
printf("[017] Expecting %s, got %s\n", $exp, $tmp, var_dump($exp, $tmp));
}
mysqli_close($link);
try {
mysqli_real_escape_string($link, 'foo');
} catch (Error $exception) {
echo $exception->getMessage() . "\n";
}
print "done!";
?>
--CLEAN--
<?php
require_once("clean_table.inc");
?>
--EXPECT--
mysqli object is already closed
done!
| PHP | 3 | NathanFreeman/php-src | ext/mysqli/tests/mysqli_real_escape_string_unicode.phpt | [
"PHP-3.01"
] |
[build]
publish = "built-storybooks"
command = "yarn bootstrap --core && yarn build-storybooks"
[build.environment]
NODE_VERSION = "12"
YARN_VERSION = "1.22.10"
DOTENV_DISPLAY_WARNING = "none"
STORYBOOK_EXAMPLE_APP ="true"
[[headers]]
for = "/*"
[headers.values]
Access-Control-Allow-Origin = "*"
| TOML | 3 | Fenixk/storybook | netlify.toml | [
"MIT"
] |
# Makes an ESTree AST node into an expression, if it's not one already.
{ is-expression } = require \esutils .ast
module.exports = (es-ast-node) ->
if es-ast-node |> is-expression
type : \ExpressionStatement expression : es-ast-node
else es-ast-node
| LiveScript | 3 | 0xflotus/eslisp | src/es-statementify.ls | [
"ISC"
] |
/*
* Copyright (C) 2013 The Android Open Source Project
*
* 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 ANDROID_INCLUDE_HARDWARE_MEMTRACK_H
#define ANDROID_INCLUDE_HARDWARE_MEMTRACK_H
#include <stdint.h>
#include <sys/cdefs.h>
#include <sys/types.h>
#include <hardware/hardware.h>
__BEGIN_DECLS
#define MEMTRACK_MODULE_API_VERSION_0_1 HARDWARE_MODULE_API_VERSION(0, 1)
/**
* The id of this module
*/
#define MEMTRACK_HARDWARE_MODULE_ID "memtrack"
/*
* The Memory Tracker HAL is designed to return information about device-specific
* memory usage. The primary goal is to be able to track memory that is not
* trackable in any other way, for example texture memory that is allocated by
* a process, but not mapped in to that process' address space.
* A secondary goal is to be able to categorize memory used by a process into
* GL, graphics, etc. All memory sizes should be in real memory usage,
* accounting for stride, bit depth, rounding up to page size, etc.
*
* A process collecting memory statistics will call getMemory for each
* combination of pid and memory type. For each memory type that it recognizes
* the HAL should fill out an array of memtrack_record structures breaking
* down the statistics of that memory type as much as possible. For example,
* getMemory(<pid>, MEMTRACK_TYPE_GL) might return:
* { { 4096, ACCOUNTED | PRIVATE | SYSTEM },
* { 40960, UNACCOUNTED | PRIVATE | SYSTEM },
* { 8192, ACCOUNTED | PRIVATE | DEDICATED },
* { 8192, UNACCOUNTED | PRIVATE | DEDICATED } }
* If the HAL could not differentiate between SYSTEM and DEDICATED memory, it
* could return:
* { { 12288, ACCOUNTED | PRIVATE },
* { 49152, UNACCOUNTED | PRIVATE } }
*
* Memory should not overlap between types. For example, a graphics buffer
* that has been mapped into the GPU as a surface should show up when
* MEMTRACK_TYPE_GRAPHICS is requested, and not when MEMTRACK_TYPE_GL
* is requested.
*/
enum memtrack_type {
MEMTRACK_TYPE_OTHER = 0,
MEMTRACK_TYPE_GL = 1,
MEMTRACK_TYPE_GRAPHICS = 2,
MEMTRACK_TYPE_MULTIMEDIA = 3,
MEMTRACK_TYPE_CAMERA = 4,
MEMTRACK_NUM_TYPES,
};
struct memtrack_record {
size_t size_in_bytes;
unsigned int flags;
};
/**
* Flags to differentiate memory that can already be accounted for in
* /proc/<pid>/smaps,
* (Shared_Clean + Shared_Dirty + Private_Clean + Private_Dirty = Size).
* In general, memory mapped in to a userspace process is accounted unless
* it was mapped with remap_pfn_range.
* Exactly one of these should be set.
*/
#define MEMTRACK_FLAG_SMAPS_ACCOUNTED (1 << 1)
#define MEMTRACK_FLAG_SMAPS_UNACCOUNTED (1 << 2)
/**
* Flags to differentiate memory shared across multiple processes vs. memory
* used by a single process. Only zero or one of these may be set in a record.
* If none are set, record is assumed to count shared + private memory.
*/
#define MEMTRACK_FLAG_SHARED (1 << 3)
#define MEMTRACK_FLAG_SHARED_PSS (1 << 4) /* shared / num_procesess */
#define MEMTRACK_FLAG_PRIVATE (1 << 5)
/**
* Flags to differentiate memory taken from the kernel's allocation pool vs.
* memory that is dedicated to non-kernel allocations, for example a carveout
* or separate video memory. Only zero or one of these may be set in a record.
* If none are set, record is assumed to count system + dedicated memory.
*/
#define MEMTRACK_FLAG_SYSTEM (1 << 6)
#define MEMTRACK_FLAG_DEDICATED (1 << 7)
/**
* Flags to differentiate memory accessible by the CPU in non-secure mode vs.
* memory that is protected. Only zero or one of these may be set in a record.
* If none are set, record is assumed to count secure + nonsecure memory.
*/
#define MEMTRACK_FLAG_NONSECURE (1 << 8)
#define MEMTRACK_FLAG_SECURE (1 << 9)
/**
* Every hardware module must have a data structure named HAL_MODULE_INFO_SYM
* and the fields of this data structure must begin with hw_module_t
* followed by module specific information.
*/
typedef struct memtrack_module {
struct hw_module_t common;
/**
* (*init)() performs memtrack management setup actions and is called
* once before any calls to getMemory().
* Returns 0 on success, -errno on error.
*/
int (*init)(const struct memtrack_module *module);
/**
* (*getMemory)() expects an array of record objects and populates up to
* *num_record structures with the sizes of memory plus associated flags for
* that memory. It also updates *num_records with the total number of
* records it could return if *num_records was large enough when passed in.
* Returning records with size 0 is expected, the number of records should
* not vary between calls to getMemory for the same memory type, even
* for different pids.
*
* The caller will often call getMemory for a type and pid with
* *num_records == 0 to determine how many records to allocate room for,
* this case should be a fast-path in the HAL, returning a constant and
* not querying any kernel files. If *num_records passed in is 0,
* then records may be NULL.
*
* This function must be thread-safe, it may get called from multiple
* threads at the same time.
*
* Returns 0 on success, -ENODEV if the type is not supported, -errno
* on other errors.
*/
int (*getMemory)(const struct memtrack_module *module,
pid_t pid,
int type,
struct memtrack_record *records,
size_t *num_records);
} memtrack_module_t;
__END_DECLS
#endif // ANDROID_INCLUDE_HARDWARE_MEMTRACK_H
| C | 4 | Neptos/openpilot | phonelibs/android_hardware_libhardware/include/hardware/memtrack.h | [
"MIT"
] |
# Equivalence
```haskell
module Equivalence where
import AlphaNormalization (alphaNormalize)
import BetaNormalization (betaNormalize)
import Binary (encode)
import Syntax (Expression)
```
Equivalence is a relationship between two expression of the form:
l ≡ r
... where:
* `l` (an input) is an expression to test for equivalence to `r`
* `r` (an input) is an expression to test for equivalence to `l`
```haskell
equivalent :: Expression -> Expression -> Bool
```
Two expressions are equivalent if they are identical after β-normalization,
α-normalization, and binary encoding:
l₀ ⇥ l₁ l₁ ↦ x encode(x) = b r₀ ⇥ r₁ r₁ ↦ y encode(y) = b
───────────────────────────────────────────────────────────────────
l₀ ≡ r₀
```haskell
equivalent l₀ r₀ = encode x == encode y
where
l₁ = betaNormalize l₀
r₁ = betaNormalize r₀
x = alphaNormalize l₁
y = alphaNormalize r₁
```
Note that this definition of equivalence does not include η-equivalence, so
`λ(f : Bool → Bool) → λ(x : Bool) → f x` and `λ(f : Bool → Bool) → f` are not
equivalent.
Note also that this means that `Double`s should not be compared using standard float equality.
| Literate Haskell | 5 | tesaguri/dhall-lang | standard/Equivalence.lhs | [
"BSD-3-Clause"
] |
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/
syntax = "proto3";
package tensorflow.tpu;
// Target type for compilation cache fetch operation.
enum CompilationCacheFetchTarget {
INVALID = 0;
MAIN = 1;
SHARDING = 2;
UNSHARDING = 3;
}
message TpuCompilationUidAndIndex {
int64 uid = 1;
int32 proto_index = 2;
}
message GetTpuProgramRequest {
oneof key_oneof {
string key = 1;
TpuCompilationUidAndIndex uid_and_index = 2;
}
CompilationCacheFetchTarget fetch_target = 3;
}
| Protocol Buffer | 3 | EricRemmerswaal/tensorflow | tensorflow/core/tpu/kernels/tpu_compilation_cache_common.proto | [
"Apache-2.0"
] |
// Regression test for #84632: Recursion limit is ignored
// for builtin macros that eagerly expands.
#![recursion_limit = "15"]
macro_rules! a {
() => ("");
(A) => (concat!("", a!()));
(A, $($A:ident),*) => (concat!("", a!($($A),*)))
//~^ ERROR recursion limit reached
//~| HELP consider increasing the recursion limit
}
fn main() {
a!(A, A, A, A, A);
a!(A, A, A, A, A, A, A, A, A, A, A);
}
| Rust | 4 | ohno418/rust | src/test/ui/macros/issue-84632-eager-expansion-recursion-limit.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
(set-info :smt-lib-version 2.6)
(set-logic QF_UF)
(set-info :source |
Generated by: Aman Goel ([email protected]), Karem A. Sakallah ([email protected])
Generated on: 2018-04-06
Generated by the tool Averroes 2 (successor of [1]) which implements safety property
verification on hardware systems.
This SMT problem belongs to a set of SMT problems generated by applying Averroes 2
to benchmarks derived from [2-5].
A total of 412 systems (345 from [2], 19 from [3], 26 from [4], 22 from [5]) were
syntactically converted from their original formats (using [6, 7]), and given to
Averroes 2 to perform property checking with abstraction (wide bit-vectors -> terms,
wide operators -> UF) using SMT solvers [8, 9].
[1] Lee S., Sakallah K.A. (2014) Unbounded Scalable Verification Based on Approximate
Property-Directed Reachability and Datapath Abstraction. In: Biere A., Bloem R. (eds)
Computer Aided Verification. CAV 2014. Lecture Notes in Computer Science, vol 8559.
Springer, Cham
[2] http://fmv.jku.at/aiger/index.html#beem
[3] http://www.cs.cmu.edu/~modelcheck/vcegar
[4] http://www.cprover.org/hardware/v2c
[5] http://github.com/aman-goel/verilogbench
[6] http://www.clifford.at/yosys
[7] http://github.com/chengyinwu/V3
[8] http://github.com/Z3Prover/z3
[9] http://github.com/SRI-CSL/yices2
id: loyd.2.prop1
query-maker: "Yices 2"
query-time: 0.001000 ms
query-class: abstract
query-category: oneshot
query-type: regular
status: unsat
|)
(set-info :license "https://creativecommons.org/licenses/by/4.0/")
(set-info :category "industrial")
;
(set-info :status unsat)
(declare-sort utt$8 0)
(declare-sort utt$32 0)
(declare-fun y$1 () Bool)
(declare-fun y$10 () Bool)
(declare-fun y$12 () Bool)
(declare-fun y$14 () Bool)
(declare-fun y$16 () Bool)
(declare-fun y$18 () Bool)
(declare-fun y$20 () Bool)
(declare-fun y$22 () Bool)
(declare-fun y$24 () Bool)
(declare-fun y$26 () Bool)
(declare-fun y$28 () Bool)
(declare-fun y$3 () Bool)
(declare-fun y$30 () Bool)
(declare-fun y$5 () Bool)
(declare-fun y$7 () Bool)
(declare-fun y$845 () Bool)
(declare-fun y$846 () Bool)
(declare-fun y$858 () Bool)
(declare-fun y$865 () Bool)
(declare-fun y$a_done () Bool)
(declare-fun y$a_not_done () Bool)
(declare-fun y$a_q () Bool)
(declare-fun y$dve_invalid () Bool)
(declare-fun y$id17 () Bool)
(declare-fun y$id17_op () Bool)
(declare-fun y$n0s32 () utt$32)
(declare-fun y$n0s8 () utt$8)
(declare-fun y$n1s32 () utt$32)
(declare-fun y$n1s8 () utt$8)
(declare-fun y$n2s32 () utt$32)
(declare-fun y$n2s8 () utt$8)
(declare-fun y$n3s32 () utt$32)
(declare-fun y$n3s8 () utt$8)
(declare-fun y$n4s32 () utt$32)
(declare-fun y$n4s8 () utt$8)
(declare-fun y$n5s32 () utt$32)
(declare-fun y$n5s8 () utt$8)
(declare-fun y$n6s32 () utt$32)
(declare-fun y$n6s8 () utt$8)
(declare-fun y$n7s32 () utt$32)
(declare-fun y$n7s8 () utt$8)
(declare-fun y$n8s32 () utt$32)
(declare-fun y$n8s8 () utt$8)
(declare-fun y$prop () Bool)
(declare-fun y$v_a_0 () utt$8)
(declare-fun y$v_a_1 () utt$8)
(declare-fun y$v_a_2 () utt$8)
(declare-fun y$v_a_3 () utt$8)
(declare-fun y$v_a_4 () utt$8)
(declare-fun y$v_a_5 () utt$8)
(declare-fun y$v_a_6 () utt$8)
(declare-fun y$v_a_7 () utt$8)
(declare-fun y$v_a_8 () utt$8)
(declare-fun y$v_x () utt$8)
(declare-fun y$v_y () utt$8)
(assert (distinct y$n0s8 y$n1s8 y$n2s8 y$n3s8 y$n4s8 y$n5s8 y$n6s8 y$n7s8 y$n8s8))
(assert (distinct y$n0s32 y$n3s32 y$n1s32 y$n2s32 y$n4s32 y$n5s32 y$n6s32 y$n7s32 y$n8s32))
(assert (= y$a_done (not y$1)))
(assert (= y$a_not_done (not y$3)))
(assert (= y$a_q (not y$5)))
(assert (= y$dve_invalid (not y$7)))
(assert (= y$10 (= y$n0s8 y$v_a_0)))
(assert (= y$12 (= y$n0s8 y$v_a_1)))
(assert (= y$14 (= y$n0s8 y$v_a_2)))
(assert (= y$16 (= y$n0s8 y$v_a_3)))
(assert (= y$18 (= y$n0s8 y$v_a_4)))
(assert (= y$20 (= y$n0s8 y$v_a_5)))
(assert (= y$22 (= y$n0s8 y$v_a_6)))
(assert (= y$24 (= y$n0s8 y$v_a_7)))
(assert (= y$26 (= y$n0s8 y$v_a_8)))
(assert (= y$28 (= y$n0s8 y$v_x)))
(assert (= y$30 (= y$n0s8 y$v_y)))
(assert (= y$prop (not y$858)))
(assert (= y$id17_op (and y$a_done y$7)))
(assert (= y$id17_op (not y$845)))
(assert (= y$846 (= y$prop y$845)))
(assert (= y$865 (and y$1 y$3 y$5 y$7 y$10 y$12 y$14 y$16 y$18 y$20 y$22 y$24 y$26 y$28 y$30 y$858 y$846)))
(assert y$865)
(check-sat)
(exit)
| SMT | 3 | livinlife6751/infer | sledge/test/smt/QF_UF/2018-Goel-hwbench/QF_UF_loyd.2.prop1_ab_reg_max.smt2 | [
"MIT"
] |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: compiler/ir/serialization.common/src/KotlinIr.proto
package org.jetbrains.kotlin.backend.common.serialization.proto;
public interface FileWrappedIdSignatureOrBuilder extends
// @@protoc_insertion_point(interface_extends:org.jetbrains.kotlin.backend.common.serialization.proto.FileWrappedIdSignature)
org.jetbrains.kotlin.protobuf.MessageLiteOrBuilder {
/**
* <code>required .org.jetbrains.kotlin.backend.common.serialization.proto.IdSignature delegate = 1;</code>
*/
boolean hasDelegate();
/**
* <code>required .org.jetbrains.kotlin.backend.common.serialization.proto.IdSignature delegate = 1;</code>
*/
org.jetbrains.kotlin.backend.common.serialization.proto.IdSignature getDelegate();
/**
* <code>required int32 file = 2;</code>
*/
boolean hasFile();
/**
* <code>required int32 file = 2;</code>
*/
int getFile();
} | Java | 4 | Mu-L/kotlin | compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/FileWrappedIdSignatureOrBuilder.java | [
"ECL-2.0",
"Apache-2.0"
] |
%%%
%%% Author:
%%% Christian Schulte <[email protected]>
%%%
%%% Contributors:
%%% Denys Duchier <[email protected]>
%%% Leif Kornstaedt <[email protected]>
%%%
%%% Copyright:
%%% Denys Duchier, 1998
%%% Christian Schulte, 1998
%%%
%%% Last change:
%%% $Date$ by $Author$
%%% $Revision$
%%%
%%% This file is part of Mozart, an implementation
%%% of Oz 3
%%% http://www.mozart-oz.org
%%%
%%% See the file "LICENSE" or
%%% http://www.mozart-oz.org/LICENSE.html
%%% for information on usage and redistribution
%%% of this file, and for a DISCLAIMER OF ALL
%%% WARRANTIES.
%%%
functor NewModule
import
System OS Boot Property Resolve
export
root: RM
manager: Manager
trace: ApiTrace
prepare
fun {IsNative Url}
{HasFeature {CondSelect Url info info} 'native'}
end
NONE = {NewName}
LINK = {NewName}
APPLY = {NewName}
ENTER = {NewName}
LOAD = {NewName}
SYSTEM = {NewName}
NOTYPE = {NewName}
proc {TraceOFF _ _}
skip
end
class UnsitedBaseManager
prop locking
feat ModuleMap TypeCheckProc
meth init(TypeChecker <= unit)
self.ModuleMap = {Dictionary.new}
self.TypeCheckProc = TypeChecker
end
meth !LINK(Url ExpectedType ?Entry ?Module)
%% Return module from "Url"
lock Key={UrlToAtom Url} ModMap=self.ModuleMap in
if {Dictionary.member ModMap Key} then
{self trace('link [found]' Url)}
else
{self trace('link [lazy]' Url)}
{Dictionary.put ModMap Key
{ByNeedFuture
fun {$}
if {CondSelect Url scheme unit}==OzScheme
then {self SYSTEM(Url $)}
else {self LOAD( Url $)}
end
end}}
end
Entry = {Dictionary.get ModMap Key}
Module =
if self.TypeCheckProc==unit then
%% avoid laziness if possible
if {IsDet Entry} then Entry.1
else {ByNeedFuture fun {$} Entry.1 end}
end
else
%% this could easily be improved to avoid
%% unnecessary laziness
{ByNeedFuture
fun {$}
case Entry of Module#ActualType then
case ExpectedType of !NOTYPE then Module
elsecase ActualType of !NOTYPE then Module
elsecase {Procedure.arity self.TypeCheckProc}
of 3 andthen
{self.TypeCheckProc ActualType ExpectedType}
then Module
[] 4 andthen
{self.TypeCheckProc
ActualType ExpectedType o(url: Key)} == ok
then Module
else
{Value.failed
system(module(typeMismatch Key
ActualType ExpectedType))}
end
end
end}
end
end
end
meth !APPLY(Url Func $)
{self trace('apply' Url)}
%% Applies a functor and returns a module
IM={Record.mapInd Func.'import'
fun {$ ModName Info}
EmbedUrl = if {HasFeature Info 'from'} then
{UrlMake Info.'from'}
else
{ModNameToUrl ModName}
end
in
UnsitedBaseManager,LINK({UrlResolve Url EmbedUrl}
{CondSelect Info 'type' NOTYPE} _ $)
end}
in
{Func.apply IM}
end
meth !ENTER(Url Module ActualType)
{self trace('enter' Url)}
%% Stores "Module" under "Url"
lock Key={UrlToAtom Url} in
if {Dictionary.member self.ModuleMap Key} then
raise system(module(alreadyInstalled Key)) end
else
{Dictionary.put self.ModuleMap Key Module#ActualType}
end
end
end
end
define
fun {NameOrUrlToUrl ModName UrlV}
{Resolve.expand
if UrlV==NONE then {ModNameToUrl ModName}
else {UrlMake UrlV}
end}
end
class BaseManager from UnsitedBaseManager
meth link(name: ModName <= NONE
url: UrlV <= NONE
type: ExpectedType <= NOTYPE
?Module <= _) = Message
Url = {NameOrUrlToUrl ModName UrlV}
in
Module = UnsitedBaseManager,LINK(Url ExpectedType _ $)
if {Not {HasFeature Message 1}} then
thread try {Wait Module} catch _ then skip end end
end
end
meth enter(name: ModName <= NONE
url: UrlV <= NONE
type: ActualType <= NOTYPE
Module)
Url = {NameOrUrlToUrl ModName UrlV}
in
UnsitedBaseManager,ENTER(Url Module ActualType)
end
meth apply(name: ModName <= NONE
url: UrlV <= NONE
Func
?Module <= _) = Message
Url = if ModName==NONE andthen UrlV==NONE then
{UrlMake {OS.getCWD}#'/'}
else
{NameOrUrlToUrl ModName UrlV}
end
in
Module = UnsitedBaseManager,APPLY(Url Func $)
if {Not {HasFeature Message 2}} then
thread try {Wait Module} catch _ then skip end end
end
end
end
proc {TraceON X1 X2}
{System.printError 'Module manager: '#X1#' '#{UrlToVs X2}#'\n'}
end
Trace = {NewCell
if {OS.getEnv 'OZ_TRACE_MODULE'}==false
then TraceOFF else TraceON end}
ApiTrace =
trace(set:proc {$ B}
{Assign Trace if B then TraceON else TraceOFF end}
end
get:fun {$ B} {Access Trace}==TraceON end)
PLATFORM = {Property.get 'platform.name'}
class RootManager from BaseManager
meth trace(M1 M2)
{{Access Trace} M1 M2}
end
meth !LOAD(Url $)
%% Takes a URL and returns a module
%% check if URL is annotated as denoting a `native functor'
if {IsNative Url} then
%% if yes, use the Foreign loader
{self Native(Url $)}
else
{self Pickle(Url Url $)}
end
end
meth Native(Url $)
{self trace('native module' Url)}
%% note that this method will not attempt to
%% localize. A derived class could redefine it
%% to attempt localization.
try
{Resolve.native.native {UrlToVs Url}#'-'#PLATFORM}#NOTYPE
catch system(foreign(dlOpen _) ...) then
raise system(module(notFound native {UrlToAtom Url})) end
[] error(url(_ _) ...) then
raise system(module(notFound native {UrlToAtom Url})) end
end
end
meth Pickle(Url ResUrl $) Func in
try
Func = {Resolve.pickle.load ResUrl}
catch error(url(O _) ...) then
raise system(module(notFound O {UrlToAtom Url})) end
end
{self APPLY(Url Func $)}#Func.'export'
end
meth SystemResolve(Auth Url $)
if Auth==boot orelse {IsNative Url} then Url
elsecase {Reverse {CondSelect Url path nil}}
of H|T then
if {Member &. H} then Url
else {AdjoinAt Url path
{Reverse {VirtualString.toString H#FunctorExt}|T}}
end
end
end
meth SystemApply(Auth Url $)
U = {self SystemResolve(Auth Url $)}
in
if {IsNative U} then
{self Native(U $)}
else
{self Pickle(U U $)}
end
end
meth GetSystemName(Url IsBoot $)
case {CondSelect Url path unit}
of [Name] then
%% drop the extension of any
{String.token Name &. $ _}
elseif IsBoot then
raise error(module(urlSyntax {UrlToAtom Url})) end
else unit
end
end
meth GetSystemBoot(Name $)
{self trace('boot module' Name)}
{Boot.getInternal Name}#NOTYPE
end
meth !SYSTEM(Url0 $)
Auth Url
in
try
Auth = {StringToAtom {CondSelect Url0 authority ""}}
Url = {self SystemResolve(Auth Url0 $)}
catch _ then
raise error(module(urlSyntax {UrlToAtom Url0})) end
end
{self trace('system method' Url)}
if {IsNative Url} then {self Native(Url $)}
elsecase {StringToAtom {CondSelect Url authority ""}}
of boot then
%% a boot module may either be provided internally
%% (i.e. statically linked in) or as a DLL
{self trace('boot module' Url)}
try {self GetSystemBoot({self GetSystemName(Url true $)} $)}
catch _ then
{self Native({UrlMake {UrlToAtom Url}#'.so{native}'} $)}
end
[] system then Name={self GetSystemName(Url false $)} in
{self trace('system module' Url)}
if Name \= unit andthen {IsNatSystemName Name} then
RootManager,SYSTEM({UrlMake OzScheme#'://boot/'#Name} $)
else
{self Pickle(Url Url $)}
end
[] contrib then
{self trace('contrib module' Url)}
{self Pickle(Url Url $)}
else
raise error(module(urlSyntax {UrlToAtom Url})) end
end
end
end
RM = {New RootManager init}
class Manager
from RootManager
prop sited
meth !SYSTEM(Url $)
{RM LINK(Url NOTYPE $ _)}
end
end
end
| Oz | 5 | Ahzed11/mozart2 | lib/main/init/Module.oz | [
"BSD-2-Clause"
] |
//
// Copyright (c) 2006, Brian Frank and Andy Frank
// Licensed under the Academic Free License version 3.0
//
// History:
// 10 Jan 06 Andy Frank Creation
//
using compiler
**
** Run the C# compiler to produce an exe or dll.
**
class CompileCs : Task
{
//////////////////////////////////////////////////////////////////////////
// Construction
//////////////////////////////////////////////////////////////////////////
**
** Initialize the .NET environment fields for csc.exe.
**
new make(BuildScript script)
: super(script)
{
// dotnetHomeDir
dotnetHomeDir = script.configDir("dotnetHome") ?:
throw fatal("Must config build prop 'dotnetHome'")
// derived files
cscExe = dotnetHomeDir + `csc.exe`
}
//////////////////////////////////////////////////////////////////////////
// Run
//////////////////////////////////////////////////////////////////////////
**
** Run the csc task
**
override Void run()
{
log.info("CompileCs")
try
{
// build command
cmd := [cscExe.osPath]
// default paramaters
cmd.add("/nologo")
cmd.add("/fullpaths")
cmd.add("/debug:full")
// /out:output
if (output != null)
{
cmd.add("/out:$output.osPath")
}
// /target:targetType
if (targetType != null)
{
cmd.add("/target:$targetType")
}
// /r:<libs>
if (libs != null && !libs.isEmpty)
{
s := libs.join(";") |File f->Str| { return f.osPath }
cmd.add("/r:$s")
}
// src files/dirs
src.each |File f|
{
if (f.isDir)
cmd.add((f + `x`).osPath[0..-2] + "*.cs")
else
cmd.add(f.osPath)
}
log.debug(cmd.join(" "))
r := Process(cmd).run.join
if (r != 0) throw Err.make
}
catch (Err err)
{
throw fatal("CompileCs failed")
}
}
//////////////////////////////////////////////////////////////////////////
// Fields
//////////////////////////////////////////////////////////////////////////
** Home directory for .NET installation
** configured via config prop
File? dotnetHomeDir
** C# compiler executable: {dotnetHomeDir}/csc.exe
File cscExe
** Output file created by the compiler.
File? output
** Output target type
Str? targetType
** List of dll libraries to link in
File[]? libs
** List of source files or directories to compile
File[] src := File[,]
}
| Fantom | 5 | fanx-dev/fantom | src/build/fan/tasks/CompileCs.fan | [
"AFL-3.0"
] |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
using namespace Microsoft.PowerShell.Commands
# Take a hashtable and return two copies,
# one with the key/value pair, the other without
function PermuteHashtableOnProperty
{
param([hashtable[]]$Hashtable, [string]$Key, [object]$Value)
foreach ($ht in $Hashtable)
{
$ht.Clone()
}
foreach ($ht in $Hashtable)
{
$ht2 = $ht.Clone()
$ht2.$Key = $Value
$ht2
}
}
# Take a base hashtable and produce all possible
# combinations of that hashtable with the keys
# and values in the key/value hashtable
function PermuteHashtable
{
param([hashtable]$InitialTable, [hashtable]$KeyValues)
$l = $InitialTable
foreach ($key in $KeyValues.Keys)
{
$l = PermuteHashtableOnProperty -Hashtable $l -Key $key -Value $KeyValues[$key]
}
$l
}
$guid = [guid]::NewGuid()
$modSpecRequired = @{
ModuleName = "ModSpecRequired"
RequiredVersion = "3.0.2"
}
$requiredOptionalConstraints = @{ Guid = $guid }
$modSpecRange = @{
ModuleName = "ModSpecRequired"
ModuleVersion = "3.0.1"
}
$rangeOptionalConstraints = @{ MaximumVersion = "3.2.0"; Guid = $guid }
Describe "ModuleSpecification objects and logic" -Tag "CI" {
BeforeAll {
$testCases = [System.Collections.Generic.List[hashtable]]::new()
foreach ($case in (PermuteHashtable -InitialTable $modSpecRequired -KeyValues $requiredOptionalConstraints))
{
$testCases.Add(@{
ModuleSpecification = $case
Keys = ($case.Keys -join ",")
})
}
foreach ($case in (PermuteHashtable -InitialTable $modSpecRange -KeyValues $rangeOptionalConstraints))
{
$testCases.Add(@{
ModuleSpecification = $case
Keys = ($case.Keys -join ",")
})
}
$testCases = $testCases.ToArray()
}
Context "ModuleSpecification construction and string parsing" {
BeforeAll {
$differentFieldCases = @(
@{
TestName = "Guid"
ModSpec1 = @{ Guid = [guid]::NewGuid(); ModuleName = "TestModule"; ModuleVersion = "1.0" }
ModSpec2 = @{ Guid = [guid]::NewGuid(); ModuleName = "TestModule"; ModuleVersion = "1.0" }
},
@{
TestName = "RequiredVersion"
ModSpec1 = @{ ModuleName = "Module"; RequiredVersion = "3.0" }
ModSpec2 = @{ ModuleName = "Module"; RequiredVersion = "3.1" }
},
@{
TestName = "Version/MaxVersion-present"
ModSpec1 = @{ ModuleName = "ThirdModule"; ModuleVersion = "2.1" }
ModSpec2 = @{ ModuleName = "ThirdModule"; MaximumVersion = "2.1" }
},
@{
TestName = "RequiredVersion/Version-present"
ModSpec1 = @{ ModuleName = "FourthModule"; RequiredVersion = "3.0" }
ModSpec2 = @{ ModuleName = "FourthModule"; ModuleVersion = "3.0" }
}
)
}
It "Can be created from a name" {
$ms = [ModuleSpecification]::new("NamedModule")
$ms | Should -Not -BeNull
$ms.Name | Should -BeExactly "NamedModule"
}
It "Can be created from Hashtable with keys: <Keys>" -TestCases $testCases {
param([hashtable]$ModuleSpecification, [string]$Keys)
$ms = [ModuleSpecification]::new($ModuleSpecification)
$ms.Name | Should -BeExactly $ModuleSpecification.ModuleName
if ($ModuleSpecification.Guid)
{
$ms.Guid | Should -Be $ModuleSpecification.Guid
}
if ($ModuleSpecification.ModuleVersion)
{
$ms.Version | Should -Be $ModuleSpecification.ModuleVersion
}
if ($ModuleSpecification.RequiredVersion)
{
$ms.RequiredVersion | Should -Be $ModuleSpecification.RequiredVersion
}
if ($ModuleSpecification.MaximumVersion)
{
$ms.MaximumVersion | Should -Be $ModuleSpecification.MaximumVersion
}
}
It "Can be reconstructed from self.ToString() with keys: <Keys>" -TestCases $testCases {
param([hashtable]$ModuleSpecification, [string]$Keys)
$ms = [ModuleSpecification]::new($ModuleSpecification)
[ModuleSpecification]$clone = $null
[ModuleSpecification]::TryParse(($ms.ToString()), [ref]$clone) | Should -BeTrue
$clone.Name | Should -Be $ModuleSpecification.ModuleName
if ($ModuleSpecification.RequiredVersion)
{
$clone.RequiredVersion | Should -Be $ModuleSpecification.RequiredVersion
}
if ($ModuleSpecification.Version)
{
$clone.Version | Should -Be $ModuleSpecification.Version
}
if ($ModuleSpecification.MaximumVersion)
{
$clone.MaximumVersion | Should -Be $ModuleSpecification.MaximumVersion
}
if ($ModuleSpecification.Guid)
{
$clone.Guid | Should -Be $ModuleSpecification.Guid
}
}
}
Context "ModuleSpecification comparison" {
BeforeAll {
$modSpecAsm = [ModuleSpecification].Assembly
$modSpecComparerType = $modSpecAsm.GetType("Microsoft.PowerShell.Commands.ModuleSpecificationComparer")
$comparer = [System.Activator]::CreateInstance($modSpecComparerType)
}
It "Module specifications with same fields <Keys> are equal" -TestCases $testCases {
param([hashtable]$ModuleSpecification, [string]$Keys)
$ms = [ModuleSpecification]::new($ModuleSpecification)
$ms2 = [ModuleSpecification]::new($ModuleSpecification)
$comparer.Equals($ms, $ms2) | Should -BeTrue
}
It "Module specifications with same fields <Keys> have the same hash code" -TestCases $testCases {
param([hashtable]$ModuleSpecification, [string]$Keys)
$ms = [ModuleSpecification]::new($ModuleSpecification)
$ms2 = [ModuleSpecification]::new($ModuleSpecification)
$comparer.GetHashCode($ms) | Should -Be $comparer.GetHashCode($ms2)
}
It "Module specifications with different <TestName> fields are not equal" -TestCases $differentFieldCases {
param($TestName, $ModSpec1, $ModSpec2)
$ms1 = [ModuleSpecification]::new($ModSpec1)
$ms2 = [ModuleSpecification]::new($ModSpec2)
$comparer.Equals($ms1, $ms2) | Should -BeFalse
}
It "Compares two null module specifications as equal" {
$comparer.Equals($null, $null) | Should -BeTrue
}
It "Compares a null module specification with another as unequal" {
$ms = [ModuleSpecification]::new(@{
MOduleName = "NonNullModule"
Guid = [guid]::NewGuid()
RequiredVersion = "3.2.1"
})
$comparer.Equals($ms, $null) | Should -BeFalse
}
It "Succeeds to get a hash code from a null module specification" {
$comparer.GetHashCode($null) | Should -Not -BeNull
}
}
Context "Invalid ModuleSpecification initialization" {
BeforeAll {
$testCases = @(
@{
TestName = "Version+RequiredVersion"
ModuleSpecification = @{ ModuleName = "BadVersionModule"; ModuleVersion = "3.1"; RequiredVersion = "3.1" }
ErrorId = 'ArgumentException'
},
@{
TestName = "NoName"
ModuleSpecification = @{ ModuleVersion = "0.2" }
ErrorId = 'MissingMemberException'
},
@{
TestName = "BadField"
ModuleSpecification = @{ ModuleName = "StrangeFieldModule"; RequiredVersion = "7.4"; Duck = "1.2" }
ErrorId = 'ArgumentException'
},
@{
TestName = "BadType"
ModuleSpecification = @{ ModuleName = "BadTypeModule"; RequiredVersion = "Hello!" }
ErrorId = 'PSInvalidCastException'
}
)
}
It "Cannot create from a null argument" {
{ [ModuleSpecification]::new($null) } | Should -Throw
}
It "Cannot create from invalid module hashtables: <TestName>" -TestCases $testCases {
param([string]$TestName, [hashtable]$ModuleSpecification)
{ [ModuleSpecification]::new($ModuleSpecification) } | Should -Throw -ErrorId $ErrorId
}
}
}
| PowerShell | 5 | rdtechie/PowerShell | test/powershell/engine/Module/ModuleSpecification.Tests.ps1 | [
"MIT"
] |
make N := ? : Set ;
make zero := ? : N ;
make suc := ? : N -> N ;
make Fin := ? : (n : N) -> Set ;
make f0 := ? : (n : N) -> Fin (suc n) ;
make fs := ? : (n : N)(x : Fin n) -> Fin (suc n) ;
make fin-elim := ? : (n : N)
(x : Fin n)
(P : (n : N) -> Fin n -> Set) ->
((k : N) -> P (suc k) (f0 k)) ->
((k : N)(y : Fin k) -> P k y -> P (suc k) (fs k y)) ->
P n x ;
make T := ? : Fin (suc zero) -> Set ;
make goal : (x : Fin (suc zero)) -> T x ;
lambda x ;
elim fin-elim (suc zero) x ;
show state ;
next ;
show state ; | PigLatin | 4 | mietek/epigram | test/Elim3.pig | [
"MIT"
] |
import sys.FileSystem;
function deleteDirectory(path:String) {
if (!FileSystem.isDirectory(path))
return FileSystem.deleteFile(path);
for (item in FileSystem.readDirectory(path))
deleteDirectory('$path/$item');
FileSystem.deleteDirectory(path);
}
function main() {
final definePairs = sys.io.File.getContent("out/Options.txt").split("\n");
for (definePair in definePairs)
for (index in 0...definePair.length) {
final char = definePair.charAt(index);
if (char == "=") break;
if (char == "-"){
deleteDirectory("out");
Sys.stderr().writeString("Generated `Options.txt` contains raw version of define flag: " + definePair + "\n");
Sys.exit(1);
}
}
deleteDirectory("out");
Sys.exit(0);
}
| Haxe | 3 | Mu-L/haxe | tests/misc/cpp/projects/Issue10184/CheckOptionsTxt.hx | [
"MIT"
] |
namespace tst1
inductive Foo : Type
| node : (ℕ → Foo) → Foo
| leaf : Foo
constant Bar : Type
constant P : Bar → Prop
constant Q : Bar → Type
axiom P_ax : ∀ b, P b
lemma foo_error : ∀ (foo : Foo) (b : Bar), P b
| (Foo.node f) := λ b, foo_error (f 0) b
| Foo.leaf := λ b, P_ax b
end tst1
namespace tst2
inductive Foo : Type
| node : (ℕ → Foo) → Foo
constant Bar : Type
constant P : Bar → Prop
constant Q : Bar → Type
lemma foo_error : ∀ (foo : Foo) (b : Bar), P b
| (Foo.node f) := λ b, foo_error (f 0) b
end tst2
| Lean | 4 | JLimperg/lean | tests/lean/run/reflexive_elim_prop_bug.lean | [
"Apache-2.0"
] |
{% include user %}
{% include sub/file %}
{% include "footer.html" %} | Liquid | 2 | hatemhosny/consolidate.js | test/fixtures/liquid/include.liquid | [
"Unlicense",
"MIT"
] |
# Copyright 2016 Google Inc. 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.
.class public La/a;
.super Landroid/app/Activity;
.field public static c:L0;
.field public static c:L1;
.field public static c:L00;
.field public static c:L01;
.field public static w:Ljava/lang/Throwable;
.field public static w:L0;
.field public static w:L1;
.field public static w:L00;
.field public static w:L01;
.field public static w:[L0;
.method public static testTypesSub(Z)V
.locals 06
sget-object v0, La/a;->c:L0;
sget-object v1, La/a;->c:L1;
if-eqz p0, :else
sget-object v0, La/a;->c:L00;
sget-object v1, La/a;->c:L01;
sget-object v2, La/a;->c:L0;
sget-object v3, La/a;->c:L0;
sget-object v4, La/a;->c:L00;
sget-object v5, La/a;->c:L01;
goto :end
:else
sget-object v0, La/a;->c:L01;
sget-object v1, La/a;->c:L0;
sget-object v2, La/a;->c:L00;
sget-object v3, La/a;->c:L1;
sget-object v4, La/a;->c:L00;
sget-object v5, La/a;->c:L01;
:end
invoke-static {v0}, LL/util;->print(Ljava/lang/Object;)V
invoke-static {v1}, LL/util;->print(Ljava/lang/Object;)V
invoke-static {v2}, LL/util;->print(Ljava/lang/Object;)V
invoke-static {v3}, LL/util;->print(Ljava/lang/Object;)V
invoke-static {v4}, LL/util;->print(Ljava/lang/Object;)V
invoke-static {v5}, LL/util;->print(Ljava/lang/Object;)V
sput-object v0, La/a;->w:L0;
sput-object v1, La/a;->w:L0;
sput-object v2, La/a;->w:L0;
sput-object v3, La/a;->w:Ljava/lang/Throwable;
sput-object v4, La/a;->w:Ljava/lang/Throwable;
sput-object v5, La/a;->w:L01;
return-void
.end method
.method public static testArrayTypesSub(ZZ)V
.locals 06
sget-object v0, La/a;->c:L0;
sget-object v1, La/a;->c:L1;
if-eqz p0, :else
sget-object v0, La/a;->c:L00;
sget-object v1, La/a;->c:L01;
sget-object v4, La/a;->c:L01;
goto :end
:else
sget-object v0, La/a;->c:L01;
sget-object v1, La/a;->c:L0;
sget-object v4, La/a;->c:L00;
:end
if-eqz p1, :elseb
sget-object v2, La/a;->c:L0;
sget-object v3, La/a;->c:L0;
sget-object v5, La/a;->c:L01;
goto :endb
:elseb
sget-object v2, La/a;->c:L00;
sget-object v3, La/a;->c:L1;
sget-object v5, La/a;->c:L00;
:endb
move-object v5, v4
instance-of v0, v1, L01;
if-eqz v0, :else2
filled-new-array {v1}, [L01;
move-result-object v0
goto :end2
:else2
filled-new-array {v1, v2}, [L0;
move-result-object v0
:end2
invoke-static {v0}, LL/util;->print(Ljava/lang/Object;)V
sput-object v0, La/a;->w:[L0;
const/16 v1, 0
aput-object v4, v0, v1
instance-of v1, v3, L0;
if-eqz v1, :else3
move-object v5, v3
goto :end3
:else3
:end3
const/16 v1, 0
:try1
aput-object v5, v0, v1
:try1e
goto :handlere
.catchall {:try1 .. :try1e} :handler
:handler
move-exception v0
:handlere
invoke-static {v0}, LL/util;->print(Ljava/lang/Object;)V
return-void
.end method
.method public static testFilledArray(Z)V
.locals 06
if-eqz p0, :else
sget-object v0, La/a;->c:L00;
check-cast v0, L0;
goto :end
:else
sget-object v0, La/a;->c:L01;
:end
filled-new-array {v0}, [L0;
move-result-object v1
invoke-static {v1}, LL/util;->print(Ljava/lang/Object;)V
move-object v3, v0
move-object v1, v0
instance-of v2, v1, L01;
if-eqz v2, :end2
filled-new-array {v3}, [L0;
move-result-object v1
invoke-static {v1}, LL/util;->print(Ljava/lang/Object;)V
filled-new-array {v0}, [L01;
move-result-object v1
invoke-static {v1}, LL/util;->print(Ljava/lang/Object;)V
:end2
filled-new-array {v0, v1}, [Ljava/lang/Object;
move-result-object v1
invoke-static {v1}, LL/util;->print(Ljava/lang/Object;)V
return-void
.end method
.method public static testArrayGet(Z)V
.locals 06
if-eqz p0, :else
sget-object v0, La/a;->c:L00;
filled-new-array {v0, v0}, [L00;
move-result-object v1
goto :end
:else
sget-object v0, La/a;->c:L1;
sget-object v1, La/a;->c:L1;
:end
instance-of v2, v1, [L0;
if-eqz v2, :end2
aget-object v2, v1, v2
sput-object v2, La/a;->w:L0;
check-cast v2, L00;
sput-object v2, La/a;->w:L00;
:end2
invoke-static {v0}, LL/util;->print(Ljava/lang/Object;)V
invoke-static {v1}, LL/util;->print(Ljava/lang/Object;)V
:try1
throw v0
return-void
:try1e
.catchall {:try1 .. :try1e} :handler
:handler
return-void
return-void
return-void
.end method
.method public static testTypes()V
.locals 04
const-string v0, "testTypes"
invoke-static {v0}, LL/util;->print(Ljava/lang/Object;)V
const v0, 0
invoke-static {v0}, La/a;->testTypesSub(Z)V
invoke-static {v0}, La/a;->testFilledArray(Z)V
invoke-static {v0}, La/a;->testArrayGet(Z)V
const v1, 0
invoke-static {v0, v1}, La/a;->testArrayTypesSub(ZZ)V
const v1, 1
invoke-static {v0, v1}, La/a;->testArrayTypesSub(ZZ)V
const v0, 1
invoke-static {v0}, La/a;->testTypesSub(Z)V
invoke-static {v0}, La/a;->testFilledArray(Z)V
invoke-static {v0}, La/a;->testArrayGet(Z)V
const v1, 0
invoke-static {v0, v1}, La/a;->testArrayTypesSub(ZZ)V
const v1, 1
invoke-static {v0, v1}, La/a;->testArrayTypesSub(ZZ)V
return-void
.end method
.method public static _init_()V
.locals 04
const-string v0, "_init_"
invoke-static {v0}, LL/util;->print(Ljava/lang/Object;)V
new-instance v0, L0;
invoke-direct {v0}, L0;-><init>()V
sput-object v0, La/a;->c:L0;
new-instance v0, L1;
invoke-direct {v0}, L1;-><init>()V
sput-object v0, La/a;->c:L1;
new-instance v0, L00;
invoke-direct {v0}, L00;-><init>()V
sput-object v0, La/a;->c:L00;
new-instance v0, L01;
invoke-direct {v0}, L01;-><init>()V
sput-object v0, La/a;->c:L01;
return-void
.end method
.method public static testBoolArraysSub(Z)V
.locals 07
const v0, 0
const v1, 1
if-eqz p0, :else
move v2, v0
move v3, v1
goto :end
:else
move v2, v1
move v3, v0
const v0, -1
:end
const v4, 6
filled-new-array/range {v0 .. v4}, [I
move-result-object v6
new-array v5, v4, [B
new-array v4, v4, [Z
aput-boolean v1, v4, v1
aput-byte v1, v5, v1
add-int/lit8 v1, v1, -1
aput-boolean v0, v4, v1
aput-byte v0, v5, v1
add-int/lit8 v1, v1, 2
aput-boolean v2, v4, v1
aput-byte v2, v5, v1
add-int/lit8 v1, v1, 1
aput-boolean v3, v4, v1
aput-byte v3, v5, v1
filled-new-array {v6, v5, v4}, [Ljava/lang/Cloneable;
move-result-object v6
invoke-static {v6}, LL/util;->print(Ljava/lang/Object;)V
fill-array-data v5, :data1
fill-array-data v4, :data1
invoke-static {v6}, LL/util;->print(Ljava/lang/Object;)V
return-void
:data1
.array-data 1
1t true 0t -14t
.end array-data
.end method
.method public static testBoolArrays()V
.locals 04
const-string v0, "testBoolArrays"
const v0, 0
invoke-static {v0}, La/a;->testBoolArraysSub(Z)V
const v1, 0
invoke-static {v0}, La/a;->testBoolArraysSub(Z)V
return-void
.end method
.method public onCreate(Landroid/os/Bundle;)V
.locals 12
move-object/from16 v10, p0
move-object/from16 v11, p1
invoke-super {v10, v11}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V
invoke-static {}, La/a;->_init_()V
invoke-static {}, La/a;->testTypes()V
invoke-static {}, La/a;->testBoolArrays()V
return-void
.end method
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Landroid/app/Activity;-><init>()V
return-void
.end method
# Android code with no Java equivalent
.method public static bad()V
.locals 04
const-string v0, "xydux ---"
filled-new-array {v0}, [Ljava/lang/Cloneable;
move-result-object v1
invoke-static {v1}, LL/util;->print(Ljava/lang/Object;)V
return-void
.end method
.method public static testInstanceOf(Ljava/util/AbstractMap;)Z
.locals 01
move-object v0, p0
instance-of p0, v0, Ljava/util/TreeMap;
if-eqz p0, :end2
#return p0
const p0, 1
:end2
return p0
.end method
| Smali | 3 | jbg168/enjarify | tests/test7/smali/a/a.smali | [
"Apache-2.0"
] |
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1008" height="1008" viewBox="0 0 1008 1008">
<title>Ten Years of Changelog</title>
<defs>
<linearGradient id="a" y1="1008" x2="1" y2="1008" gradientTransform="translate(462.82 -70449.14) scale(70.67)" gradientUnits="userSpaceOnUse">
<stop offset="0" stop-color="#231f20"/>
<stop offset="1" stop-color="#fff"/>
</linearGradient>
<linearGradient id="b" y1="1008" x2="1" y2="1008" gradientTransform="translate(476.16 -47472.48) scale(47.87)" gradientUnits="userSpaceOnUse">
<stop offset="0" stop-color="#fff"/>
<stop offset="1" stop-color="#231f20"/>
</linearGradient>
<clipPath id="c">
<rect width="1008" height="1008" fill="none"/>
</clipPath>
<clipPath id="g">
<path d="M504,744.17h-.78a40.91,40.91,0,0,0-29.48,13.23,41.36,41.36,0,0,0,0,56,40.91,40.91,0,0,0,29.48,13.23H504a40.87,40.87,0,0,0,29.13-12.07,1.11,1.11,0,0,0-1.57-1.58,39,39,0,0,1-56.22-1.1,39,39,0,0,1,27.89-65.48,38.66,38.66,0,0,1,28.33,11.42,1.11,1.11,0,0,0,1.57-1.58A40.87,40.87,0,0,0,504,744.17Z" fill="none"/>
</clipPath>
<mask id="h" x="459.18" y="744.17" width="74.42" height="82.47" maskUnits="userSpaceOnUse">
<rect x="459.18" y="744.17" width="74.42" height="82.47"/>
<g style="isolation:isolate">
<rect x="459.18" y="744.17" width="74.42" height="82.47" fill="url(#a)"/>
</g>
</mask>
<clipPath id="i">
<rect x="459.18" y="744.17" width="74.42" height="82.47" fill="none"/>
</clipPath>
<clipPath id="j">
<rect x="459.18" y="744.17" width="74.42" height="82.47" fill="none"/>
</clipPath>
<linearGradient id="k" y1="1008" x2="1" y2="1008" gradientTransform="translate(462.82 -70449.15) scale(70.67)" gradientUnits="userSpaceOnUse">
<stop offset="0" stop-color="#62c193"/>
<stop offset="1" stop-color="#62c193"/>
</linearGradient>
<clipPath id="l">
<path d="M503,757.55a27.86,27.86,0,0,0,0,55.69c.32,0,.63,0,.95,0a28,28,0,0,0,19.72-8.16,1.12,1.12,0,1,0-1.58-1.58,25.63,25.63,0,1,1,0-36.25,1.11,1.11,0,1,0,1.58-1.57,28,28,0,0,0-19.7-8.16h-1" fill="none"/>
</clipPath>
<mask id="m" x="473.89" y="757.54" width="50.25" height="55.72" maskUnits="userSpaceOnUse">
<rect x="473.89" y="757.54" width="50.25" height="55.72"/>
<g style="isolation:isolate">
<rect x="473.89" y="757.54" width="50.25" height="55.72" fill="url(#b)"/>
</g>
</mask>
<clipPath id="n">
<rect x="473.89" y="757.54" width="50.25" height="55.72" fill="none"/>
</clipPath>
<linearGradient id="p" y1="1008" y2="1008" gradientTransform="translate(476.16 -47472.48) scale(47.87)" xlink:href="#k"/>
</defs>
<mask id="ten_year_logo-mask" x="0" y="0" width="1008" height="1008">
<rect id="ten_year_logo-mask-background" x="0" y="0" width="1008" height="1008" />
<!-- Inner Lines -->
<g clip-path="url(#c)">
<path d="M104.75,637.42,31.47,596.9V545.49a1,1,0,0,0-1.95,0v52a1,1,0,0,0,.5.86l73.79,40.8a.94.94,0,0,0,.47.12,1,1,0,0,0,.85-.5,1,1,0,0,0-.38-1.33" />
<path d="M646.79,471.92v-2l-12.43,2.41V428.26c0-37.12-22-42.66-35.05-42.66-16.21,0-35.53,7.4-35.53,42.66v25.41l-12-11.36a1,1,0,0,0-.4-.22v2.52l12.42,11.74v93.91l-12.35-11.68-.07,0v2.66l12.42,11.74v26.8c0,35.26,19.32,42.66,35.53,42.66,13.09,0,35.05-5.54,35.05-42.66V565.92l12.43-2.41v-2l-12.43,2.4V551.66l12.43-2.41v-2L575.93,561V485.63Zm-47.48-84.37c7.19,0,17.19,1.78,24.31,10.19L567.2,413.39c4.69-21.34,20-25.84,32.11-25.84m-33.58,89.9,8.25,7.79v74.65l-8.25-7.79Zm33.58,143c-12.55,0-21.75-4.57-27.34-13.59l14.9-6.59,25.34,18a36.35,36.35,0,0,1-12.9,2.21m33.1-40.71c0,19.34-6.08,32-18.09,37.61l-26.09-18.51,13.64-26.64,30.54-5.91Zm0-27.71v12.28l-62,12a1,1,0,0,0-.77,1.14,1,1,0,0,0,1.14.77l28.7-5.55L586.27,598.4,571,605.17c-3.48-6.49-5.25-15-5.25-25.43v-25l8.55,8.07.06.06.27.16a1,1,0,0,0,.53,0Zm0-79.31-57.15,11-9.53-9V458.19l12.95,12.23a1,1,0,0,0,.85.25l52.88-10.23Zm0-14.26-36.56,7.07,36.56-33.09Zm0-28.65-40.25,36.43-12.51,2.42-13.92-13.15V428.26c0-.57,0-1.12,0-1.67l22,8.45a5.16,5.16,0,0,0,0,.67,4.58,4.58,0,1,0,.77-2.48l-22.67-8.71a67.3,67.3,0,0,1,1-9l58.13-16.12c5,6.84,7.5,16.55,7.5,28.85Z"/>
<path d="M972,498.89a1,1,0,0,0-.73-.14l-56.91,11v-.16c0-1.87.06-3.73.06-5.6q0-3.27-.06-6.51l49.2-9.52a1,1,0,0,0,.79-1V409.64l0-.06a.7.7,0,0,0-.05-.25l-.07-.14a.76.76,0,0,0-.12-.15l-.1-.11-.07-.05-72.25-40A404.89,404.89,0,0,0,876,330.39c-.12-.25-.23-.5-.35-.76l-.08-.17-.4-.84q-3.85-8.13-8.07-16.11c-.3-.58-.62-1.16-.93-1.74q-4.33-8.11-9-16l-1-1.71c-1.21-2-2.42-4-3.66-6a1,1,0,0,0-1.78.3.94.94,0,0,0,.12.73c1.15,1.85,2.35,3.81,3.87,6.35l-8.87,8.62c-2.9-4.92-5.89-9.77-8.92-14.44l6-7.42a4.45,4.45,0,0,0,2,.49,4.52,4.52,0,1,0-4.52-4.52,4.47,4.47,0,0,0,1,2.8l-5.63,6.94c-6.94-10.59-14.41-20.89-22.21-30.61l-.07-.08c.57-2.32,1.12-4.64,1.61-6.83a.88.88,0,0,0,.09-.38c.61-2.7,1.15-5.21,1.65-7.64,5.41,6.45,10.52,12.9,15.19,19.18a1,1,0,0,0,1.75-.44,1,1,0,0,0-.19-.72c-5-6.74-10.49-13.64-16.27-20.46a2,2,0,0,0-.19-.22.82.82,0,0,0-.18-.23c-.43-.51-.87-1-1.31-1.52q-6.57-7.66-13.48-15L800.29,220a409.6,409.6,0,0,0-58.87-50.83l-1.95-1.36c-3.32-2.32-6.66-4.6-10.05-6.83l-.16-.11a1,1,0,0,0-.65-.43l-1.14-.73c-2.3-1.49-4.68-3-7.12-4.53a.8.8,0,0,0-.28-.17c-4.4-2.73-8.09-4.94-11.6-7a1,1,0,0,0-.74-.09,1,1,0,0,0-.59.45,1,1,0,0,0-.09.74.92.92,0,0,0,.45.59c2.77,1.6,5.64,3.3,8.72,5.18H703.07a4.52,4.52,0,1,0,0,2h16.29c2.77,1.72,5.5,3.45,8.11,5.16v56.6L650,141.19a1,1,0,0,0-.69-.28H601.66l-19.44-26h46.32a406.74,406.74,0,0,1,41.88,16,1,1,0,0,0,1.29-.5,1,1,0,0,0-.5-1.28c-11.8-5.27-24-10-36.43-14.2q-2.81-.94-5.64-1.85L629,113l-.17,0a405,405,0,0,0-58.51-14l-2.74-.45Q557,96.85,546.43,95.77a.68.68,0,0,0-.37,0c-8-.82-15.83-1.4-23.29-1.73a1,1,0,0,0-1,.93,1,1,0,0,0,.26.7,1,1,0,0,0,.68.31c6.9.32,14.15.84,21.56,1.56a147.42,147.42,0,0,0-9.68,15.74.72.72,0,0,0-.17.32,280.82,280.82,0,0,0-13,27.87.64.64,0,0,0-.06.15c-2.16,5.31-4.26,10.88-6.26,16.56-4.23-.13-7.76-.19-11.09-.19a347.48,347.48,0,0,0-83.86,10.22V118.43A398,398,0,0,1,504,109.51a1,1,0,1,0,0-2,399.3,399.3,0,0,0-83.86,8.88v-12.3a412,412,0,0,1,51-7.3,4.48,4.48,0,0,0,4.31,3.2A4.52,4.52,0,1,0,471,94.9a410.64,410.64,0,0,0-50.85,7.27l-1.95.41a406.8,406.8,0,0,0-56,16.12c-.38.13-.94.34-1.65.62A407.27,407.27,0,0,0,261.33,173c-.6.44-1.21.87-1.81,1.32q-11,8.21-21.56,17.17l-.08.07c-7.16,6.11-14.17,12.52-20.78,19a.91.91,0,0,0-.17.16c-3,2.95-6.06,6-9.3,9.42a4.48,4.48,0,0,0-2.35-.67,4.57,4.57,0,1,0,3.75,2c3.12-3.27,6.08-6.27,9-9.16,8.23.22,16.3.61,24,1.17.28,4.82.42,9.64.42,14.33s-.14,9.59-.42,14.35c-6.76.48-13.93.85-21.31,1.08.13-5.06.2-10.24.2-15.43,0-3.09,0-6.24-.07-9.36a1,1,0,0,0-1.68-.66.94.94,0,0,0-.27.69c.05,3.11.07,6.25.07,9.33,0,5.16-.07,10.36-.21,15.49-6.24.17-12.53.27-18.66.23h-1.43v2h1.43c6.1,0,12.37-.06,18.6-.23-.2,6.59-.52,13.07-1,19.26-5.38.33-10.79.49-16.06.49s-10.63-.17-16.07-.5c-.26-3.77-.48-7.63-.65-11.45l0-.36H183l0,.39c.17,3.76.39,7.55.65,11.29-3.51-.24-6.76-.52-9.9-.87,1.69-2.32,3.21-4.37,4.65-6.26a1,1,0,0,0,.19-.72,1,1,0,0,0-1.11-.83,1,1,0,0,0-.64.37c-1.71,2.27-3.51,4.7-5.65,7.66a.54.54,0,0,0-.07.09c-5.25,7.26-10.29,14.74-15,22.32-.36.56-.7,1.13-1,1.69-1.07,1.73-2.13,3.45-3.16,5.18-.27.44-.55.88-.81,1.32l-.07.11-.29.49c-.9,1.53-1.8,3.06-2.66,4.56l-.43.76-.1.16c-.15.25-.3.51-.44.77-.65,1.14-1.3,2.29-2,3.48-4.46,8-8.73,16.34-12.69,24.75h0a.76.76,0,0,0-.08.18c-4,8.5-7.74,17.24-11.13,26a4,4,0,0,0-.68-.05,4.57,4.57,0,1,0,2.49.77c3.26-8.39,6.83-16.76,10.62-24.9a123.4,123.4,0,0,0,68,20.35c2.32,0,4.75-.08,7.24-.22-2.05,3.94-4.07,8.06-6,12.25h-1.22a135.66,135.66,0,0,1-38.31-5.51c0-.12,0-.24,0-.36a4.56,4.56,0,1,0-.6,2.22,137.31,137.31,0,0,0,24.2,4.8q-1,2.18-1.89,4.37c-3.76,8.9-7.22,18.15-10.27,27.5-4.86-.77-9.76-1.77-14.58-3a18.16,18.16,0,0,0-34-12.43c-3.83-1.89-7.51-3.86-10.93-5.86a1,1,0,0,0-.74-.11,1,1,0,0,0-.59.46.93.93,0,0,0-.1.73.92.92,0,0,0,.45.6c3.51,2.06,7.29,4.08,11.23,6a18.15,18.15,0,0,0,34.06,12.44c4.85,1.21,9.77,2.22,14.64,3-1.34,4.19-2.57,8.29-3.66,12.2l-39.4,12.69-22.55-22.69c1.15-4.41,2.34-8.69,3.53-12.72a1,1,0,0,0-.66-1.21,1,1,0,0,0-.74.08.94.94,0,0,0-.47.58c-1.11,3.75-2.2,7.68-3.25,11.66l-.39,1.52,0,.11c0,.19-.09.38-.14.57a409,409,0,0,0-10.32,56.3c0,.29-.07.57-.11.86l0,.19c0,.29,0,.59-.09.89-1,9.8-1.76,19.75-2.11,29.6L35,500.7a1,1,0,1,0,.37,1.92l58.43-11.33c-.13,4.34-.2,8.38-.21,12.32l-49.25,9.54a1,1,0,0,0-.79,1v77.43a1.31,1.31,0,0,0,.06.25c0,.05,0,.09.07.14a.4.4,0,0,0,.12.15l.09.11s.07,0,.06,0l0,0,69.57,38.47c.65,2,1.31,4,2,6,2,6,4.3,12,6.67,18,.08.2.15.4.23.61a1,1,0,0,0,.07.31,1.05,1.05,0,0,0,.17.29c.09.2.17.39.25.6,1.21,3,2.35,5.79,3.48,8.44a.83.83,0,0,0,.24.55l0,.06c2,4.67,4.21,9.54,6.55,14.47a1,1,0,0,0,.29.59,413.37,413.37,0,0,0,27,48.07l0,0a.55.55,0,0,0,.16.22c2.25,3.44,4.6,6.89,7,10.29l.36.52a1,1,0,0,0,.2.29l.58.8c3.6,5.09,7.35,10.16,11.16,15.05a.61.61,0,0,0,.11.14c2.1,2.7,3.87,4.93,5.57,7a1,1,0,0,0,1.38.14,1,1,0,0,0,.14-1.37c-1.32-1.62-2.69-3.33-4.28-5.35,3,.16,6,.28,8.9.35H192c2.46.06,4.68.09,6.78.1,4,4.81,8.3,9.73,12.81,14.65-4.95.36-9,.49-11.73.54a4.51,4.51,0,1,0,0,1.95c3,0,7.74-.22,13.41-.67,3.73,4,7.14,7.57,10.42,10.85,1.31,1.32,2.64,2.62,4,3.92-4.56,1.59-8.94,3-13,4-2-2-3.7-3.74-5.25-5.35a1,1,0,0,0-.69-.3.93.93,0,0,0-.69.27,1,1,0,0,0,0,1.38c1.68,1.74,3.51,3.6,5.55,5.64a.93.93,0,0,0,.2.2c5.06,5.07,10.26,10,15.48,14.71,6.15,5.54,12.61,11,19.21,16.26a1,1,0,0,0,.4.31c5.92,4.71,12.05,9.3,18.22,13.67l.21.15a1,1,0,0,0,.47.33l1.27.88a410.2,410.2,0,0,0,92.63,48.61,4,4,0,0,0,0,.6,4.57,4.57,0,1,0,.73-2.43A408.27,408.27,0,0,1,269,838.07V823.91a190.52,190.52,0,0,1,19.31-.13c0,.33,0,.66,0,1a16.89,16.89,0,0,0,33.5,3.12c22.89,4.65,44,12.76,61.13,23.47a22.7,22.7,0,0,0,14.72,10.81v6.26a1,1,0,0,0,.28.69l7.6,7.6a1,1,0,0,0,.69.28h8.77a26.66,26.66,0,0,0,23.86,15,26.23,26.23,0,0,0,15.28-4.85v19a4.52,4.52,0,1,0,1.95,0v-8.59a405.34,405.34,0,0,0,48,2.86A400.93,400.93,0,0,0,569.72,895v12.22A414.48,414.48,0,0,1,504,912.49a1,1,0,0,0,0,2,414.51,414.51,0,0,0,65.72-5.21l1.95-.32q8.08-1.33,16.1-3l2-.41a409.35,409.35,0,0,0,193.2-100.44l.33-.3.1-.08,1.13-1.06c6.43-6,12.58-12.15,18.28-18.19a1,1,0,0,0,.27-.7,1,1,0,0,0-.31-.68,1,1,0,0,0-.7-.27,1,1,0,0,0-.68.31c-5.82,6.18-12.13,12.45-18.76,18.64-3.78-1.9-7.59-3.89-11.34-5.92,4.59-4.19,9-8.39,13.08-12.49,7.26-7.26,14.35-15,21.1-22.83l1.2-1.38a1,1,0,0,0,.12-.15l.26-.31A395.17,395.17,0,0,0,842.23,711a92.84,92.84,0,0,0,28.36-26.54,409.42,409.42,0,0,1-43.19,69.13,4.36,4.36,0,0,0-1.92-.45,4.53,4.53,0,1,0,3.47,1.63,409.54,409.54,0,0,0,53.25-91c3.19-7.55,6.17-15.22,8.85-22.8.35-1,.69-2,1-3,.25-.73.51-1.45.75-2.18,4.22-12.46,7.86-25.3,10.87-38.23.14-.61.29-1.22.43-1.84a.58.58,0,0,0,.06-.23c0-.13,0-.25.08-.37a409.85,409.85,0,0,0,9.56-69.39.72.72,0,0,0,0-.37c.24-4.74.4-9.17.48-13.53l57.32-11.09a.92.92,0,0,0,.62-.41,1,1,0,0,0,.15-.73,1,1,0,0,0-.42-.63m-829.14-94a16.21,16.21,0,0,1-15.55-20.79,171.81,171.81,0,0,0,30.38,11.1,16.16,16.16,0,0,1-14.83,9.69m15.51-11.53A170.06,170.06,0,0,1,128,382.24a16.21,16.21,0,0,1,31.1,6.42,15.91,15.91,0,0,1-.71,4.68m802.18,15.89-54.78,10.6c-.62-3-1.29-6-2-9.24,0-.06,0-.12,0-.13-3-13-6.77-26.1-11.1-38.81ZM728,416.12a351.5,351.5,0,0,0,28.74-35.46l17.86,23.67-4.15,27.44-8.1,1.56Zm31.21,17.82L717.58,442V426.84c3-2.95,6-6,9-9.24Zm49.21-57.86L789,391.89l-5.48-7.35,22.78-13.33q1.07,2.43,2.1,4.87m-.41-5.86,10.47-6.13c2.34,5.25,4.56,10.6,6.62,15.93l-14.78-4.44c-.75-1.8-1.52-3.58-2.31-5.36M782.32,383l-2.85-3.82L802.06,362c1.1,2.31,2.22,4.75,3.43,7.44Zm-4-5.38L775.63,374l21.84-21.23c1.34,2.58,2.55,5,3.71,7.4Zm-3.85-5.16-2.64-3.55,20.65-25.47c1.25,2.25,2.56,4.67,4.07,7.56Zm13,20.69-11.72,9.55L757.88,379c3.08-4.39,6.1-8.92,9-13.47Zm-11,11.46,12.15-9.89L810.52,424l-38.08,7.36Zm13.66-11.12,19-15.5a327,327,0,0,1,14.51,43.51l-11,2.13Zm21.09-15.56,14.69,4.42a344.89,344.89,0,0,1,11.51,36.48l-11.85,2.3a329.33,329.33,0,0,0-14.35-43.2m8.89-14.8,42.06-24.62c1.83,3.94,3.61,8,5.3,12,4.43,10.47,8.44,21.21,11.91,31.94a1,1,0,0,0,.19.33l-7,11.61-45.19-13.6c-2.26-5.94-4.71-11.87-7.29-17.63m-.8-1.79c-1.54-3.4-3-6.42-4.32-9.19l39.23-29.83c2.49,4.8,4.88,9.65,7.12,14.42Zm-1.7,1-10.45,6.12c-1.21-2.7-2.37-5.21-3.54-7.65l9.79-7.45c1.33,2.73,2.71,5.67,4.2,9M802.77,359c-1.19-2.45-2.48-5-3.84-7.62l9-8.77c1.64,3.06,3.18,6.07,4.61,9ZM798,349.55c-1.49-2.83-2.87-5.38-4.21-7.77l8.14-10c1.82,3.14,3.48,6.11,5.07,9.05ZM792.74,340c-2-3.56-4-6.85-6-10.07,2.08-4.26,4.11-8.63,6-13,2.71,4.18,5.41,8.56,8,13Zm-1.31,1.62L770.6,367.27,768,363.75c.82-1.31,1.64-2.64,2.45-4a.89.89,0,0,0,.32-.53c4.88-8,9.52-16.39,13.78-24.82a.92.92,0,0,0,.24-.47l.33-.66c.23-.44.45-.88.67-1.33,1.92,3.15,3.83,6.38,5.66,9.61m-20.65,13.84V338.9a1,1,0,0,0-.28-.69L736.59,304.3a4.45,4.45,0,0,0,.72-2.42,4.52,4.52,0,1,0-4.52,4.52,4.45,4.45,0,0,0,2.42-.72l33.63,33.62v19.36c-.7,1.14-1.4,2.28-2.11,3.42l-28.14-37.7a.93.93,0,0,0-.57-.76L717.42,296V268.74l65.19,65.19c-3.72,7.32-7.69,14.55-11.83,21.5M738.6,386.57V327.65l27,36.2a349.22,349.22,0,0,1-48,60.24,137.08,137.08,0,0,0-4.9-36.54h25a1,1,0,0,0,1-1m-21,57.4,106.57-20.61c1,3.92,1.89,7.87,2.72,11.74L717.58,456.24Zm108.48-21,21.82-4.22a4.48,4.48,0,1,0-.39-1.91l-8.13,1.57A345,345,0,0,0,828.28,383l43.65,13.13-6.32,31.44-36.83,7.13c-.82-3.87-1.73-7.82-2.72-11.74m47.7-26.05,28.18,14.47c.7,3,1.35,6,1.94,8.79l-36.2,7ZM890,369.84l.36-.12-.34.17c4.39,12.66,8.22,25.78,11.37,39l-26.91-13.82,15.4-25.6Zm-1-2.72-8.11,13.49c-3.42-10.43-7.31-20.82-11.58-30.92-1.73-4.07-3.54-8.18-5.41-12.2l10.44-6.11c5.45,11.67,10.39,23.7,14.66,35.74m-15.49-37.51-10.44,6.11c-2.27-4.84-4.7-9.76-7.24-14.63l9.72-7.39c2.74,5.18,5.41,10.53,8,15.91m-17.77-33.47c3,5.11,6,10.42,8.89,15.81l-9.71,7.39c-2.54-4.82-5.25-9.72-8.07-14.55Zm-2.4,24.39-39.19,29.81c-1.49-3-3.08-6.07-4.73-9.16l36-35c2.77,4.76,5.43,9.59,7.93,14.34m-8.94-16.08-35.93,34.94c-1.61-3-3.32-6-5.22-9.26l32.38-39.92c3,4.58,5.91,9.37,8.77,14.24m-9.89-16-32.31,39.84c-2.78-4.71-5.61-9.27-8.42-13.56,1.06-2.44,2-4.7,2.9-6.87l.05-.12c1.8-4.41,3.52-8.84,5.09-13.16a1.09,1.09,0,0,0,.17-.13,1,1,0,0,0,.23-1c1.62-4.49,3.19-9.13,4.66-13.74a.71.71,0,0,0,0-.16c2.18-6.87,4.2-13.94,6-21,7.6,9.55,14.86,19.6,21.58,29.9m-29-11-27.58-27.59h35c-2.12,9.24-4.63,18.52-7.47,27.59m-64.1-99.63L766,202.5a4.45,4.45,0,0,0-.72,2.42,4.52,4.52,0,1,0,4.52-4.52,4.45,4.45,0,0,0-2.42.72l-26-26v-3.59A407.81,407.81,0,0,1,797.66,220H767.13l-25.71-25.7Zm0,19.14L766,221.66a1,1,0,0,0,.69.28h32.79c3.75,3.95,7.46,8,11,12.05H790.1a4.53,4.53,0,1,0,0,1.95h22.17c.67.78,1.33,1.56,2,2.35l1,1.17c-.52,2.57-1.09,5.3-1.82,8.53H776l-17.23-17.23a4.51,4.51,0,1,0-3.8,2.09,4.44,4.44,0,0,0,2.42-.71l47.49,47.49c-1.28,4-2.68,8.14-4.14,12.23l-42-42A4.51,4.51,0,1,0,755,252a4.38,4.38,0,0,0,2.42-.73L800,293.9c-1.4,3.84-2.93,7.81-4.55,11.82l-54-54ZM649,142.86l78.52,78.51v37.88a1,1,0,0,0,.28.69L766,298.2a4.45,4.45,0,0,0-.72,2.42,4.52,4.52,0,1,0,4.52-4.52,4.45,4.45,0,0,0-2.42.72l-38-38V163.31c3.38,2.23,6.75,4.54,10.05,6.86v81.94a1,1,0,0,0,.28.69l54.89,54.89c-3.37,8.19-7.11,16.4-11.11,24.41L717.42,266V228.11a.94.94,0,0,0-.29-.69l-63.61-63.61a4.47,4.47,0,0,0,.72-2.42,4.52,4.52,0,1,0-4.52,4.52,4.45,4.45,0,0,0,2.42-.72l63.33,63.32v64.88l-10.05-13.46V246a4.53,4.53,0,1,0-1.95,0v31.35l-10.05-13.47V246a4.53,4.53,0,1,0-1.95,0v15.27l-10.05-13.47V211.25a.94.94,0,0,0-.29-.69l-41.37-41.37a1,1,0,0,0-.69-.28H622.56l-19.45-26Zm20.18,74.84-23.8-23.8a4.45,4.45,0,0,0,.72-2.42,4.52,4.52,0,0,0-8.39-2.33L624,170.86h14.66l40.8,40.79v33.51l-10.05-13.47v-13.3a.94.94,0,0,0-.29-.69M638.4,238.06a23.63,23.63,0,0,1,.51,4.87,24,24,0,0,1-47.44,5,306.16,306.16,0,0,0,46.93-9.83M591.14,246a24,24,0,0,1,46.79-9.79A304.32,304.32,0,0,1,591.14,246m23.79-29a25.92,25.92,0,0,0-25.72,29.21,316.72,316.72,0,0,1-38.35,2.33,313.45,313.45,0,0,1-55.43-4.95c1.21-6.88,2.52-13.71,3.89-20.31a16.51,16.51,0,0,0,2.67.23,16.9,16.9,0,0,0,5.13-33c1.52-5.62,3.13-11.17,4.78-16.51A332,332,0,0,1,570,180.44v9a4.52,4.52,0,1,0,2,0v-8.55c5.42,1.13,10.85,2.41,16.14,3.8v24.12a4.52,4.52,0,1,0,1.94,0v-23.6a329.43,329.43,0,0,1,58.68,22.05l15,20.07c-7.77,3.08-15.8,5.87-23.91,8.31A26,26,0,0,0,614.93,217M455,619.09h-34.9V571.47l44.79,23.42-27.68,5.64a1,1,0,0,0-.76,1.15,1,1,0,0,0,1.15.76l29.31-6,3.68,36.24L456,640.06v-20a1,1,0,0,0-1-1m18.34,85.53-.35.13a86.28,86.28,0,0,0-17,8.86V688a111.37,111.37,0,0,1,10.9-4.68A148,148,0,0,0,487,704.71a150.67,150.67,0,0,0,14.22,11A69.46,69.46,0,0,0,456,734.79V715.72a84,84,0,0,1,17.64-9.33l.35-.14ZM456,686V666.79a147.27,147.27,0,0,0,9.81,15c-3.27,1.21-6.57,2.62-9.81,4.2M340.92,807.1a343.66,343.66,0,0,1-47.33-30.77c3.5-2.42,7.15-4.74,10.86-6.89a333.61,333.61,0,0,0,37.34,24.37,22.93,22.93,0,0,0-.87,13.29M306.3,768.38A178.25,178.25,0,0,1,333,756.18a26.5,26.5,0,0,0,9.7,35.51l-.16.32a332.43,332.43,0,0,1-36.27-23.63m-2.06-1.07a.89.89,0,0,0-.42.24c-4.05,2.33-8,4.86-11.83,7.53-3.22-2.53-6.37-5.08-9.37-7.61a4.59,4.59,0,1,0-1.27,1.48c2.9,2.44,5.91,4.89,9,7.3A149.48,149.48,0,0,0,269,794.83v-46a316.85,316.85,0,0,0,44.26-14c9.4-3.74,18.73-8,27.75-12.63H454.07V736c-17.36.76-30.64,1.6-43,2.72a.69.69,0,0,0-.25,0c-8.52.78-16.26,1.66-23.65,2.7a1.06,1.06,0,0,0-.47.07c-18.7,2.65-34.8,6.26-49.2,11-.77.25-1.52.51-2.27.77l-.06,0-.16,0a180.2,180.2,0,0,0-30.76,13.89m23.53-64.61a4.53,4.53,0,0,0-4.39,3.55H269V694.19H382.35A309.75,309.75,0,0,1,312.51,733,314.67,314.67,0,0,1,269,746.8V708.2h54.41a4.51,4.51,0,1,0,4.39-5.5m16.93,17.55a307.82,307.82,0,0,0,40.92-26.06h68.45v26.06Zm-75.73-28v-32l30.14-7V672a1,1,0,0,0,1.95,0V621H336a1,1,0,0,0,1-1V550l12.42-2.4v-2L336.93,548V458.43l12.42-2.4v-2l-12.42,2.41V414.88a1,1,0,0,0-1.53-.8L289.8,445.4V387a4.52,4.52,0,1,0-1.95,0v60.26a1,1,0,0,0,.53.86,1,1,0,0,0,1-.06L335,416.73v25.83l-113,21.9,6.56-28,38.48-25V439a1,1,0,0,0,2,0V373.21l80.13-57.45h32.74a4.53,4.53,0,1,0,0-1.95h-33a.94.94,0,0,0-.57.18L269,370.81V348.18a139.29,139.29,0,0,0,59.42-65.82h89.8V426.45l-12.42,2.41v2l12.42-2.4v69.44a1,1,0,0,0,0,.67V518l-12.42,2.41v2l12.42-2.4v49.48a1,1,0,0,0,0,.64v49.92a1,1,0,0,0,1,1h34.9v71.21Zm11.57-131.31L269,582.82V563.18ZM269,561.2V548.93l66-12.79v12.27Zm14-.74,52-10.06v68.69h-34.9a1,1,0,0,0-1,1V651.3l-30.14,7V587ZM226.87,434.79l-38.79-5.17-7.47-19.93,27.83-9A174.15,174.15,0,0,0,233.19,398Zm8.41-37.43L267,374.6v34.55l-38,24.69Zm-8.8,39.34-6.6,28.17-14.42,2.79L176,451.9l11.92-20.34Zm-24,31.55L178,473l-2.18-19ZM176,473.36l-22.38,4.34-11.7-13,31.81-11.12Zm-24.61,4.77-41.5,8.05c.36-8.15,1-16.38,1.84-24.48l28,3.51ZM335,444.55v12.28L109.54,500.51c0-3.82.13-7.86.31-12.33ZM190.48,312a118.39,118.39,0,0,1-12.12-1.78,101.8,101.8,0,0,1-8-18.25A147.31,147.31,0,0,0,187,294.46c.51,3.26,1.05,6.33,1.61,9.14h0c.6,3,1.25,5.82,1.92,8.38M244,213.61c8.15.63,15.77,1.43,22.65,2.39.3,4,.46,7.94.46,11.8s-.15,7.88-.45,11.8c-6.88,1-14.5,1.77-22.66,2.4.27-4.71.41-9.48.41-14.2s-.14-9.43-.41-14.19m63.21-46.93A121.85,121.85,0,0,1,269,329.51v-19.9c0-1.15,0-2.27,0-3.39V305.1a1,1,0,0,0,0-.7l0-3.07c0-1.83.1-3.64.16-5.44,0-1.16.1-2.34.15-3.52l.07-1.46a296.84,296.84,0,0,1,9.81-63.51l.1-.36c.34-1.22.7-2.43,1.06-3.64l.14-.5c.16-.53.31-1.06.47-1.58l.42-1.33.22-.68c.38-1.2.76-2.41,1.15-3.58l.11-.32a188.57,188.57,0,0,1,24.32-48.73m-21.6,35.56a117,117,0,0,0-4-14.16,72.24,72.24,0,0,1,7.14,6.91c-1.1,2.42-2.15,4.85-3.13,7.25m132.55,18.47v39l-54.53-54.54c5.13-2.4,10.45-4.73,15.84-6.92a284.32,284.32,0,0,0,38.69,22.5m-36.53-23.37a331.9,331.9,0,0,1,36.53-12.14v33.35a283.61,283.61,0,0,1-36.53-21.21m-30.1,28.14,54.93,54.93H379.55L339.1,240c.36-4.1.54-8.18.54-12.16,0-3.25-.12-6.59-.35-9.94,7.29-4.21,14.86-8.19,22.5-11.84l56.4,56.4v18h-8.94L352.94,224.1a1,1,0,0,0-1.38,1.38m-17,39.6a137.49,137.49,0,0,0,4.35-22.6l37.92,37.93H349.86Zm12.58,15.33H329.21a138.63,138.63,0,0,0,4.69-13.2Zm14.6-76.5a.51.51,0,0,0-.18.08c-7.56,3.59-15.09,7.53-22.4,11.71-.36-4.29-.94-8.61-1.72-12.87,9.39-5.19,19.14-10,29-14.3,3.53,2.78,7.31,5.58,11.22,8.35-5.43,2.23-10.79,4.6-15.9,7m-24,23.89A136.35,136.35,0,0,1,269,345.94V331.85A123.74,123.74,0,0,0,324.4,210.39c3.59-2.2,7.35-4.4,11.2-6.56a135.79,135.79,0,0,1,1.7,13.6c.26,3.48.39,7,.39,10.37m-13.6-19.5a123.9,123.9,0,0,0-15.59-43.38c.46-.64.93-1.27,1.39-1.89.81-1.08,1.64-2.15,2.49-3.22l.78-1c1.21-1.49,2.16-2.64,3.08-3.71l.22-.24a133.66,133.66,0,0,1,18.77,46.92c-3.81,2.12-7.56,4.31-11.14,6.49m-55.44,8c4,.59,7.77,1.24,11.2,1.94-2.05,6.43-3.88,13.21-5.46,20.17-1.8.31-3.72.62-5.73.92.28-3.84.43-7.71.43-11.52s-.15-7.64-.44-11.51M281.94,212c-.51,1.44-1,2.91-1.48,4.38-3.67-.75-7.69-1.45-12-2.07-.43-4.94-1.11-9.9-2-14.75a103.79,103.79,0,0,1,17.4,7.19c-.74,1.91-1.37,3.63-1.94,5.25m-13.43,29.33c1.79-.26,3.61-.55,5.42-.85-1,4.39-1.84,9.08-2.64,14-1.48.54-3.05,1.07-4.8,1.63.91-4.84,1.59-9.79,2-14.74m2.42,15.3c-1,6.59-1.86,13.36-2.47,20.13-3,1.71-6.12,3.32-9.37,4.79a132.66,132.66,0,0,0,7-23.3c1.64-.51,3.28-1.06,4.87-1.62m-2.67,22.47c-.33,4-.6,8.08-.79,12.17-.29.42-.58.84-.88,1.25l0,.07a103.54,103.54,0,0,1-19.27,10.75A103.65,103.65,0,0,0,258,284.14a112.42,112.42,0,0,0,10.26-5.06m-11.72,3.55a127.35,127.35,0,0,1-20.63,6.68,179,179,0,0,0,5.82-25.47,181.45,181.45,0,0,0,22.21-5,129.57,129.57,0,0,1-7.4,23.76m-1.12,2.58a98.73,98.73,0,0,1-11.57,19.5,113.25,113.25,0,0,1-16.38,5,108.58,108.58,0,0,0,7.75-18.19,133.87,133.87,0,0,0,20.2-6.27m-30.35,25A117.9,117.9,0,0,1,213,312a173.82,173.82,0,0,0,3.56-17.5,150.55,150.55,0,0,0,16.57-2.5,100.9,100.9,0,0,1-8,18.22m-11.39-10.7c-.85,4.75-1.79,9-2.77,12.67-3.09.24-6.18.36-9.19.36s-6-.12-9.15-.36a169.35,169.35,0,0,1-3.63-17.51c4.34.35,8.64.53,12.78.53s8.48-.18,12.77-.53c-.26,1.65-.53,3.27-.81,4.84m-23,27.52c-10.43-2.75-20.29-9.36-28.73-19.28A115.73,115.73,0,0,0,177.17,312c4.13,6.94,8.68,12,13.56,15.05m-11-14.56c3.77.7,7.57,1.22,11.31,1.55,1.86,6.54,3.91,11.17,6.12,13.8-6.19-1.73-12.18-7-17.43-15.35m13.41,1.7a119.38,119.38,0,0,0,17.23,0c-3.75,12.89-7.28,14.29-8.64,14.29-2.83,0-5.87-5.07-8.59-14.3m19.26-.17c3.88-.34,7.68-.85,11.32-1.52-5.29,8.39-11.31,13.68-17.51,15.38,2.22-2.64,4.3-7.29,6.19-13.86m13.78-2a119.27,119.27,0,0,0,15.28-4.26c-8.49,10-18.4,16.65-28.87,19.36,4.87-3.05,9.43-8.12,13.59-15.1M245,306.36a108.71,108.71,0,0,0,18-9.05c-11.11,13.85-25,23.47-40.48,28.08,8.18-4.06,15.89-10.56,22.51-19m22.3-11.52c-.12,3.17-.2,6.36-.24,9.49a101.07,101.07,0,0,1-33.46,18.9,88.25,88.25,0,0,0,33.7-28.39M447.05,527a1,1,0,0,0-.73-.15l-26.18,5.07V519.65L481,507.86v8.66l-60.9,43.37v-26l26.55-5.14a1,1,0,0,0,.78-1.15,1,1,0,0,0-.42-.62M438.3,400a4.53,4.53,0,0,0,4.52-4.52c0-.11,0-.22,0-.33l36.66-11-28.5,36-30.82,6V355.85l59.21,26.29-37.11,11.13A4.52,4.52,0,1,0,438.3,400m42.85-14.83c-.07,5.11-.11,10.13-.11,14.94v14.18l-27.14,5.26ZM481,416.27v12.27l-60.9,11.79V428.06Zm0,14.26v33.52c-2.29,1.59-4.62,3.17-6.92,4.68a16.89,16.89,0,0,0-30.8,9.61A16.7,16.7,0,0,0,445,485.6c-8.12,4.11-16.47,7.86-24.84,11.15V442.32Zm-7.54,40.93a14.94,14.94,0,0,1-25.83,15c8.77-4.52,17.46-9.55,25.83-15m-26.78,13.25a14.69,14.69,0,0,1-1.45-6.37,14.95,14.95,0,0,1,27.22-8.55c-8.35,5.4-17,10.42-25.77,14.92m-.8,2.59a16.89,16.89,0,0,0,29.22-16.91c1.91-1.25,3.89-2.58,5.9-4v39.46l-60.9,11.79V498.85c8.67-3.39,17.34-7.27,25.78-11.55M481,518.91v62.21l-13.4,13-47.5-24.83v-7Zm-12.21,76.76,12.22-11.83c.1,21.54,4.63,40.88,13.47,57.51l-21.95-8.76ZM420.14,353.72V282.36h18l45.36,45.36c-1.2,17.31-2,35.18-2.28,53.12Zm0-73.31v-16l16,16Zm20.75,1.95H451.5a1,1,0,0,0,0-1.95H438.94l-18.8-18.79V234.68l65.65,65.64c-.82,8.22-1.53,16.56-2.12,24.82Zm-20.75-50.44V221.63a301.19,301.19,0,0,0,73,23.52c-2.87,16.76-5.27,34.48-7.13,52.67Zm0-12.45V184.69A331.25,331.25,0,0,1,504,173.89c2,0,3.92,0,5.88.06-1.6,5.16-3.16,10.56-4.65,16.06a16.92,16.92,0,0,0-20.14,16.59,16.9,16.9,0,0,0,12.31,16.25c-1.39,6.66-2.7,13.52-3.89,20.38a299.12,299.12,0,0,1-73.37-23.76m86.47-27.08A14.95,14.95,0,0,1,502,221.56a13.9,13.9,0,0,1-2.27-.19c2.1-10,4.42-19.71,6.89-29m-8.81,28.55a14.95,14.95,0,0,1,6.92-29c-2.49,9.3-4.82,19.07-6.92,29m90.3-50.69v12.38c-5.28-1.38-10.7-2.64-16.14-3.77V166.6c5.34,1.07,10.77,2.3,16.14,3.65M572,164.61V142.86H588.1v25.37c-5.38-1.34-10.8-2.56-16.14-3.62M590,183.15V170.74a343.32,343.32,0,0,1,41.6,13.6l14.56,19.51A330.42,330.42,0,0,0,590,183.15m52.61,12.69a4.45,4.45,0,0,0,1.3-.56l23.52,23.51v10.29ZM629.44,181.4A342.25,342.25,0,0,0,590,168.73V142.86h10.64Zm-7.13-68.49H580.76L572,101.14a406.06,406.06,0,0,1,50.33,11.77M546.53,97.72c7.77.81,15.4,1.8,22.68,3l9.12,12.22H537a129.23,129.23,0,0,1,9.53-15.19m-10.59,17.14h43.84l19.44,26.05H572V124.34a1,1,0,1,0-2,0v16.57H523.72a276.24,276.24,0,0,1,12.22-26m-13,28H570v21.36a348.66,348.66,0,0,0-52.88-6c1.87-5.29,3.82-10.44,5.8-15.34m-6.48,17.27A345.19,345.19,0,0,1,570,166.21v12.24a334,334,0,0,0-57.5-6.4c.81-2.59,1.63-5.12,2.44-7.55.5-1.48,1-2.94,1.5-4.37M504,159.89c3.14,0,6.46.05,10.41.17-.42,1.22-.85,2.46-1.27,3.72-.82,2.46-1.69,5.15-2.66,8.23-2.47,0-4.53-.07-6.48-.07a333.18,333.18,0,0,0-84.75,11h-.08a.91.91,0,0,0-.52.16A330.83,330.83,0,0,0,379.75,196c-3.89-2.73-7.7-5.54-11.33-8.37l.32-.14,1.31-.57a342.13,342.13,0,0,1,134-27m-142-39,.58-.22.83-.29c.09,0,.15-.07.14-.08a407.27,407.27,0,0,1,54.63-15.73v12.33c-11.54,2.54-23,5.61-34,9.11a1,1,0,1,0,.59,1.85c10.83-3.43,22.07-6.45,33.42-9v49.77A346,346,0,0,0,379.47,181a258,258,0,0,1-30.8-26.75,4.39,4.39,0,0,0,.76-2.47,4.54,4.54,0,1,0-2.15,3.84,261.5,261.5,0,0,0,30,26.21c-2.87,1.13-5.5,2.2-8,3.27l-1.83.79-.81.36c-3.74-2.76-7.46-5.68-11.08-8.66a4.59,4.59,0,1,0-1.26,1.49c3.33,2.74,6.78,5.45,10.28,8.06-9.34,4.12-18.62,8.71-27.57,13.64a135.76,135.76,0,0,0-19.22-47.45C337.29,131.51,356.56,123,362,120.86m-17.65,7a130.41,130.41,0,0,0-14.15,10.58l-.21.19c-.61.52-1.23,1-1.85,1.61l-.8.73c-.44.39-.88.78-1.32,1.19l-.76.72-.5.48c-.31.28-.61.57-.92.87s-.68.66-1,1l-.51.49c-.23.24-.47.47-.7.7l-1.21,1.24-.51.54-.54.55q-.74.78-1.47,1.59l-1.21,1.32c-1.76-2.64-3.65-5.28-5.63-7.85,10.76-5.77,21.94-11.13,33.3-16m-35,16.89c2.13,2.75,4.16,5.58,6,8.42l-.11.13-.43.48c-2.53,2.93-5,6.06-7.42,9.29a122.61,122.61,0,0,0-8.65-12.36c3.56-2.08,7.12-4.08,10.57-6m-12.27,6.95a121,121,0,0,1,9.1,13.1,171.92,171.92,0,0,0-11.79,18.89A103.18,103.18,0,0,0,280.44,162c5.32-3.49,10.91-7,16.61-10.31m-22.93,14.55c1.56-1.07,3.11-2.13,4.68-3.17a100.78,100.78,0,0,1,14.43,22.77l-.2.37-.58,1.11a89.37,89.37,0,0,0-18.43-21Zm-2,1.33.19-.12a87.22,87.22,0,0,1,19.08,21.92c-.6,1.21-1.19,2.44-1.77,3.68a77.07,77.07,0,0,0-9.37-8.6A108,108,0,0,0,272,167.73a1.37,1.37,0,0,0,.2-.13m-1.8,1.25a104.66,104.66,0,0,1,6.86,13.34,100.62,100.62,0,0,0-13.93-8.29c2.35-1.71,4.72-3.41,7.07-5.05M260.47,176l1.06-.79a97.33,97.33,0,0,1,17.15,10.48,113,113,0,0,1,5.49,19,107.47,107.47,0,0,0-18.1-7.31,134.62,134.62,0,0,0-6.05-21Zm-2.08,1.56a132.46,132.46,0,0,1,5.55,19.16,185.18,185.18,0,0,0-23.17-5.1c5.6-4.74,11.53-9.46,17.62-14.06M241.77,199a1,1,0,0,0-.66.37,1,1,0,0,0-.2.71c.41,3.54.75,7.28,1,11.43-7-.51-14.4-.88-21.94-1.11,5.95-5.76,12.28-11.51,18.83-17.11a182.09,182.09,0,0,1,25.56,5.6A152.37,152.37,0,0,1,266.52,214c-6.89-.95-14.5-1.74-22.62-2.36-.28-4.26-.62-8.12-1.05-11.79a1,1,0,0,0-1.08-.86m2.14,45c8.12-.61,15.72-1.41,22.61-2.37a144.39,144.39,0,0,1-2.14,15.12,177.36,177.36,0,0,1-22.35,5.1c.85-5.79,1.48-11.79,1.88-17.85m-23.21,1.22c7.36-.23,14.5-.59,21.25-1.07-.41,6.15-1,12.21-1.91,18-6.48,1-13.3,1.76-20.28,2.23.42-6.17.74-12.62.94-19.19m-1.08,21.16c6.94-.47,13.7-1.2,20.11-2.18a175.15,175.15,0,0,1-5.94,25.64,146.37,146.37,0,0,1-17,2.67c1.17-7.89,2.11-16.68,2.8-26.13m-17.9.6c5.23,0,10.59-.16,15.92-.48-.69,9.45-1.65,18.26-2.85,26.2-4.36.37-8.75.56-13.07.56s-8.63-.19-13.09-.57c-1.19-7.93-2.15-16.74-2.84-26.19,5.39.32,10.75.48,15.93.48m-29.24-1.62c3.53.4,7.26.73,11.36,1,.7,9.47,1.64,18.27,2.81,26.15a146,146,0,0,1-17-2.66c-1.48-4.67-2.8-9.66-3.93-14.87,2.07-3,4.28-6.2,6.75-9.62m-8.25,11.86c1,4.26,2.06,8.34,3.24,12.14-3.17-.75-6.34-1.62-9.44-2.59,2-3.13,4.06-6.34,6.2-9.55M157,288.44c3.57,1.13,7.34,2.16,11.2,3a107.2,107.2,0,0,0,7.71,18.19,112.68,112.68,0,0,1-16.29-4.94,94,94,0,0,1-6.57-9.8c1.39-2.34,2.69-4.46,4-6.49m-5.08,8.4c1.34,2.25,2.76,4.42,4.22,6.47-2.14-.92-4.25-1.9-6.29-2.94.68-1.18,1.37-2.35,2.07-3.53m-3,5.23c3,1.55,6.26,3,9.53,4.28a67,67,0,0,0,22.34,18.92,81,81,0,0,1-33.45-20.4l1.58-2.8m-2.56,4.56a83.79,83.79,0,0,0,24.35,16.91,99.65,99.65,0,0,1-26.4-13.14c.68-1.26,1.36-2.52,2.05-3.77m55.44,43.14a121.43,121.43,0,0,1-67.2-20.17c2.8-5.91,5.75-11.78,8.78-17.47a101.92,101.92,0,0,0,58.42,18.26c1,0,2,0,3-.07A102.9,102.9,0,0,0,267,306.88v.33c0,.8,0,1.59,0,2.4v21.17a121.38,121.38,0,0,1-65.3,19m9.5,1.59A123.8,123.8,0,0,0,267,333.08v14a136,136,0,0,1-61.92,16.69c2-4.28,4.07-8.43,6.12-12.37m-7,14.33A137.89,137.89,0,0,0,267,349.26V372.2l-33,23.68a172.35,172.35,0,0,1-32.27,3c-3.49,0-7.07-.11-10.64-.33a331.27,331.27,0,0,1,13.11-32.9m-17.25,4.36c.69-1.65,1.41-3.29,2.13-4.93,4.35.4,8.6.61,12.65.61H202a331.86,331.86,0,0,0-13,32.72c-4-.29-8.12-.75-12.24-1.35,3-9.2,6.41-18.3,10.11-27M176.22,399c4.52.67,9,1.16,13.28,1.46a1,1,0,0,0,.27,0c4,.27,8,.41,11.87.41l-28.81,9.28c1-3.66,2.18-7.42,3.39-11.18m-68.14,4.1,22,22.09,5,21.73a4.51,4.51,0,1,0,1.93-.44h0l-4.86-21.12,46.68-15,7.53,20.13-12.35,21.06-33.79,11.81L112,459.76c1.15-10.36,2.68-20.54,4.53-30.27a1,1,0,0,0-1.5-1,1,1,0,0,0-.41.62c-1.87,9.77-3.4,20-4.55,30.4l-12-1.5a409.37,409.37,0,0,1,10-54.95M97.87,460l12,1.5c-.88,8.29-1.51,16.73-1.88,25.1l-12.17,2.36c.35-9.63,1-19.37,2.08-29m-2.14,31,12.15-2.35c-.17,4.53-.27,8.58-.3,12.33l-12.06,2.34c0-3.94.08-8.08.21-12.32m-48.42,101,53.57-10.38c1.28,6.71,2.78,13.59,4.46,20.37a.76.76,0,0,0,0,.27c1.93,7.83,4.12,15.71,6.51,23.4a.78.78,0,0,0,.07.33.47.47,0,0,0,.08.14l.11.35.51,1.66Zm132,19a4.52,4.52,0,0,0,.44-9l-2.53-21,17.69-3.43,52.67,44.76L215.2,646.1l-2.3-5.82a1,1,0,0,0-.52-.54L156.16,615.3l8.35-31.89,10.83-2.1,2.51,20.83a4.51,4.51,0,0,0,1.49,8.77M197.4,577l41.1-8,9.23,50.74Zm51.43,46.75,18,35.51-33.71,32.21L215.93,648ZM138.08,586.54a1,1,0,0,0-.77,1.14,1,1,0,0,0,1.15.77l23.93-4.63-8,30.69L147,611.33a1,1,0,0,0-.75,0l-13,5.12L107.17,601.2c-1.64-6.7-3.11-13.45-4.38-20.06l70.87-13.74,1.44,12Zm-24.55,37.67c-2.07-6.69-4-13.54-5.71-20.37L131,617.34Zm.58,1.87,32.51-12.81,64.62,28.1,20,50.88H215v-15.5a1,1,0,0,0-.28-.69h0l-40.41-40.4a.93.93,0,0,0-.69-.29H117.14c-1-3-2-6-3-9.29m3.7,11.24h55.37L213,677.15v15.1H199.42L188.31,664a1,1,0,0,0-.52-.54l-41.36-18a1,1,0,0,0-.75,0L124,654c-2.17-5.48-4.26-11.1-6.2-16.71m17.76,43.17,9.94-3.91,20.18,8.77,8.07,20.47L165,726l-3.1,1.23a412.13,412.13,0,0,1-26.31-46.74M163,728.89l3.09-1.22a1,1,0,0,0,.54-.52l9.1-20.92a1,1,0,0,0,0-.74l-8.36-21.23a1,1,0,0,0-.52-.54l-20.92-9.09a1,1,0,0,0-.75,0l-10.44,4.12c-2.18-4.6-4.23-9.13-6.1-13.47h33l23.47,23.47v33.19l-16,16c-2.05-2.94-4.1-6-6.11-9m7.25,10.63L186.74,723a.94.94,0,0,0,.29-.69v-34a1,1,0,0,0-.29-.69l-24-24a1,1,0,0,0-.69-.28H128a.71.71,0,0,0-.2,0c-1-2.37-2-4.83-3.08-7.49L146,647.46l40.62,17.66,16.24,41.21L185.22,747l-7.43,2.92c-2.54-3.38-5.09-6.86-7.56-10.36M191.56,755c-3.34-.09-6.78-.24-10.23-.45-.78-1-1.55-2-2.32-3l7.3-2.87a.93.93,0,0,0,.53-.52l18-41.36a1,1,0,0,0,0-.75l-4.65-11.8H213v39.3Zm2.71,0,20.41-20.42a1,1,0,0,0,.28-.69v-39.7h17.09l5,12.74-20.7,47.61c-7.36.43-14.79.58-22.09.46m21.94,38.88c4.1-1.13,8.47-2.52,13-4.13,3.75,3.61,7.62,7.19,11.51,10.65-4,2.52-7.61,4.69-10.84,6.44-4.58-4.14-9.18-8.5-13.68-13m15.22,14.35c3.24-1.79,6.88-4,10.82-6.48,4.18,3.68,8.43,7.28,12.64,10.69A89.58,89.58,0,0,0,248.82,823c-5.92-4.74-11.77-9.69-17.39-14.72M267,836.69c-5.54-4-11.13-8.15-16.63-12.5,1.15-2.48,6.08-12.37,16.63-24.35Zm0-39.76a130.34,130.34,0,0,0-11,13.88c-4-3.25-8-6.66-12-10.16,10.08-6.53,19.57-13.52,23.06-16.13Zm0-14.85c-1.83,1.38-12.83,9.66-24.58,17.23-3.77-3.34-7.52-6.81-11.17-10.3A319.38,319.38,0,0,0,267,773.17ZM267,771A320.15,320.15,0,0,1,229.7,787.5c-1.56-1.51-3.11-3-4.64-4.56h0c-2.87-2.86-5.93-6-9.33-9.68,14.05-1.26,34-4.35,51.29-11.89Zm0-11.72c-17.7,7.91-38.53,11-53,12.21-4.45-4.82-8.73-9.68-12.75-14.47A303.71,303.71,0,0,0,267,749.26Zm0-12a304.59,304.59,0,0,1-48.48,7.16L239,707.34a1,1,0,0,0,0-.75l-4.89-12.4H267Zm0-55H235.14L267,661.79Zm0-36.83-16.75-33.08L267,590.67Zm0-68.92-17.39,32.88-9.21-50.67,26.6-5.15Zm0-24.93L177,579l-1.44-12L267,549.31Zm-92.52,3.68h-.12a.88.88,0,0,0-.26.08l-72.42,14a1,1,0,0,0-.24,0,.75.75,0,0,0-.24.09l-55.75,10.8V514.92L335,458.81v75.34ZM305.15,839.73a15,15,0,0,1-15-15c0-.3,0-.6,0-.9a213.37,213.37,0,0,1,26.51,3.07c1,.18,2.06.38,3.09.58a14.88,14.88,0,0,1-14.68,12.21m14.92-14.15-3-.56a215.22,215.22,0,0,0-26.61-3.09,14.95,14.95,0,0,1,29.62,2.84q0,.4,0,.81M322,826c0-.44.05-.82.05-1.19a16.89,16.89,0,0,0-33.53-2.93A192.45,192.45,0,0,0,269,822V797.68a147.34,147.34,0,0,1,23-20.18,345,345,0,0,0,49.78,32.24,22.89,22.89,0,0,0,21.42,15c.72,0,1.44,0,2.15-.1a22.83,22.83,0,0,0,14.59,17,22.66,22.66,0,0,0,1.47,6.58C364.47,838.08,344,830.41,322,826m132.07,58.73a24.55,24.55,0,0,1-37.32-8.38.92.92,0,0,0,.05-.28,1,1,0,0,0-.58-.88,24.59,24.59,0,0,1-1-16.46,1,1,0,0,0-.67-1.2.94.94,0,0,0-.75.08,1,1,0,0,0-.46.59,26.39,26.39,0,0,0-1,7.31,26.11,26.11,0,0,0,1.8,9.58h-7.52l-7-7v-71l20.32-20.33a1,1,0,0,0,.28-.68,1,1,0,0,0-1.66-.69L397.87,796a1,1,0,0,0-.28.69v63.51a20.78,20.78,0,0,1-13.13-9.94l-.33.18.28-.27a20.81,20.81,0,0,1-2.63-9.32,1,1,0,0,0-.73-.9,20.86,20.86,0,0,1-13.82-15.53c2.49-.38,9.49-2,17.41-8.25a1,1,0,0,0,.36-.65.94.94,0,0,0-.21-.72,1,1,0,0,0-.65-.36.94.94,0,0,0-.72.2c-9.25,7.37-17.32,8-17.41,8h-.12a21.32,21.32,0,0,1-2.76.18,20.86,20.86,0,0,1-18.26-31l17.56-31.17,15.33,16.14-10.31,18.29c-2.1,3.79-5,4.25-7,3.42a4.37,4.37,0,0,1-2.75-5.09,46.78,46.78,0,0,1,4.55-9.7l.87-1.54a1,1,0,0,0,.08-.74,1,1,0,0,0-.46-.58,1,1,0,0,0-.75-.09,1,1,0,0,0-.58.47l-.73,1.3-.13.21a49,49,0,0,0-4.73,10.15,6.3,6.3,0,0,0,3.89,7.41,6.58,6.58,0,0,0,2.49.49c1.62,0,4.69-.62,7-4.76l10.66-18.91a1,1,0,0,0-.14-1.15l-16.73-17.62a1,1,0,0,0-.83-.3,1,1,0,0,0-.73.49L343.65,790a24.65,24.65,0,0,1-11.93-21.07,24.4,24.4,0,0,1,4.22-13.75c.71-.25,1.43-.5,2.16-.74,14.23-4.7,30.15-8.27,48.66-10.91l11.71,11.71v10.42l-7.86,7.86a1,1,0,0,0-.29.69.93.93,0,0,0,.29.69,1,1,0,0,0,1.38,0l8.14-8.14a1,1,0,0,0,.29-.69V754.82a.94.94,0,0,0-.29-.69l-10.95-11c6.87-.93,14-1.74,21.79-2.45a29.59,29.59,0,0,1,14.78,10.72,1,1,0,0,0,1.36.19,1,1,0,0,0,.19-1.37,33,33,0,0,0-12-9.93c10.77-.9,22.74-1.64,37.46-2.29a69.48,69.48,0,0,0-17.88,57.21L414.17,816a.94.94,0,0,0-.29.69v19.15a.93.93,0,0,0,.29.69l20.71,20.72c3.58,3.58,5.59,7.64,5.39,10.86a5.23,5.23,0,0,1-2.07,3.95.94.94,0,0,0-.37.65.92.92,0,0,0,.19.72,1,1,0,0,0,1.37.18,7.17,7.17,0,0,0,2.82-5.38c.24-3.77-2-8.39-5.95-12.36l-20.43-20.43V817.09l19.47-19.47a69.7,69.7,0,0,0,18.77,36.47ZM436.21,785.4A67.79,67.79,0,1,1,504,853.19a67.87,67.87,0,0,1-67.79-67.79M578.67,742a85.79,85.79,0,0,0-8.33-11.85c5.29-.8,10.6-1.74,15.82-2.8,1.64,2.31,3.19,4.7,4.61,7.12l.19.32,1.51-.89-.19-.32c-1.29-2.18-2.72-4.4-4.25-6.61l.27-.05,1.27-.26c3.58-.77,7.17-1.62,10.67-2.53V759.7c-1.82-.06-3.65-.11-5.47-.14a95.54,95.54,0,0,0-3.29-9.6l-.14-.34-1.62.66.14.34a91.23,91.23,0,0,1,3.08,8.91c-3.79-.06-7.14-.06-10.24,0-4.29,0-8.78.2-13.73.45a70.1,70.1,0,0,0-19.22-27.2c6.4-.66,12.63-1.44,18.55-2.31a85.27,85.27,0,0,1,8.86,12.43l.19.32,1.51-.88Zm9.05,161.93c-5.23,1.09-10.63,2.1-16.05,3V894.69c5.27-.9,10.67-2,16.05-3.1Zm0-14.34c-5.35,1.16-10.75,2.2-16.05,3.12V884a4.53,4.53,0,1,0-1.95,0v9.1A400.29,400.29,0,0,1,456,895.61v-10a26.54,26.54,0,0,0,5.76-7A101.32,101.32,0,0,0,504,887.78h.37V886H504a99.49,99.49,0,0,1-41.39-8.92,26.2,26.2,0,0,0,2.7-11.64,1,1,0,1,0-1.95,0A24.67,24.67,0,0,1,456,883V836a69.56,69.56,0,0,0,77,12.85c10.5-.87,21-2.21,31.15-4a84.58,84.58,0,0,1-79.75,22.88l-.36-.08-.4,1.7.36.09a86.39,86.39,0,0,0,83.1-25.13c7-1.28,13.89-2.78,20.61-4.45Zm0-51.73a340.72,340.72,0,0,1-50,8.6,70.15,70.15,0,0,0,18.11-14.41c10.72-1.68,21.43-3.9,31.87-6.61Zm-3.55-31.14a4.53,4.53,0,0,0,3.55,4.4v12.3C578,826,568,828.09,557.85,829.74a69.67,69.67,0,0,0,11.85-67.87c4.71-.22,9-.36,13-.41,3.29-.05,6.81,0,10.76,0a92.58,92.58,0,0,1,3.15,23.92v.37h1.75v-.37a94.1,94.1,0,0,0-3.08-23.89c5.06.11,10,.31,14.81.6a108.38,108.38,0,0,1,2.52,23.29,110.1,110.1,0,0,1-1.21,16.23,30.88,30.88,0,0,0-9.76,17.8c-3.92,1.21-7.95,2.38-12,3.46V811.12a4.51,4.51,0,1,0-5.5-4.4m41.3-90.78v45.47c-7.64-.79-15.47-1.34-23.28-1.64V723.61a208.93,208.93,0,0,0,23.28-7.67m-23.28,5.65V687a127.1,127.1,0,0,0,22.39,27.18,204.7,204.7,0,0,1-22.39,7.4M802.51,583l2.29,18.83a108.92,108.92,0,0,0-42.18-8.45l24.76-30ZM788.4,561.48l1.77-25.7,43.12-8.35a330.85,330.85,0,0,1-5.6,41.64h0l-24,12.26Zm16.1,21.65,22.69-11.61a327.71,327.71,0,0,1-9.87,36.69,97.15,97.15,0,0,0-10.44-5.53Zm30.77-56.08,12.23-2.36a342.15,342.15,0,0,1-18.34,92.19A87.94,87.94,0,0,0,819,609.27a331,331,0,0,0,16.25-82.22M830,620.28a71,71,0,0,1,15,19.8,45.14,45.14,0,0,0-18.73-9.74c1.24-3.14,2.47-6.45,3.76-10.06m.71-2c3.07-8.77,5.83-17.81,8.18-26.86a26.79,26.79,0,1,1,9.75,52,72,72,0,0,0-17.93-25.11M848,587.88a28.52,28.52,0,0,0-8.52,1.29c2.23-8.8,4.12-17.75,5.63-26.59L887.52,559l7.08,26-19.67,21.48A28.79,28.79,0,0,0,848,587.88m16-66.38,34.36-6.65c-.28,10.33-1,20.7-2,30.83l-8,10.64Zm-14.41.8c.23-4.37.37-8.42.44-12.36l48.46-9.38c0,1.15,0,2.29,0,3.44,0,2.77,0,5.67-.11,8.86Zm12.31-.4,24.6,35.24-41,3.45a344.46,344.46,0,0,0,4-36.29Zm-14.28.78-130,25.16V535.56l130.47-25.24c-.07,4-.22,8.12-.45,12.36m-59.41,13.48-1.69,24.59L754.29,559a4.51,4.51,0,1,0-4.43,5.26,4.53,4.53,0,0,0,4.35-3.31l31.21,1.68-25.36,30.72a112.45,112.45,0,0,0-16.48,1.57l-26-19V549.82Zm-47.25,59.26A103.06,103.06,0,0,0,716,603.65a138.83,138.83,0,0,0,1.55-20.58v-4.69Zm21.53-.14a106.72,106.72,0,0,1,42.94,8.87.65.65,0,0,0,.3.14,93.76,93.76,0,0,1,11.44,6.1.93.93,0,0,0,.39.26h.05a84.78,84.78,0,0,1,10.87,8.2c-1.41,4-2.76,7.59-4.11,11a45,45,0,0,0-29.74,4.23,60.28,60.28,0,0,0-64.27,0A45,45,0,0,0,709.75,629a141,141,0,0,0,5.91-23,105.21,105.21,0,0,1,46.81-10.72m40,79.61A14.57,14.57,0,0,0,813.65,689,48.18,48.18,0,0,1,796,712.37a43,43,0,0,1-1.45-76,48.91,48.91,0,0,1,19.12,24.38,14.56,14.56,0,0,0-11.16,14.12m11.76-12.26a43.34,43.34,0,0,1,0,24.52,12.57,12.57,0,0,1,0-24.52M779.55,716c0-5-7.5-8.89-17.08-8.89s-17.08,3.9-17.08,8.89c0,2,1.15,3.81,3.28,5.31a55.49,55.49,0,0,1-17.89-7.72,45,45,0,0,0,1.49-78.42,58.43,58.43,0,0,1,60.4,0,45,45,0,0,0,1.5,78.42,55.59,55.59,0,0,1-17.89,7.72c2.13-1.5,3.27-3.34,3.27-5.31m-17.08,7c-8.06,0-15.13-3.25-15.13-7s7.07-6.94,15.13-6.94,15.13,3.24,15.13,6.94-7.07,7-15.13,7m-40-48.1a14.56,14.56,0,0,0-11.17-14.12,49,49,0,0,1,19.13-24.38,43,43,0,0,1-1.45,76A48.13,48.13,0,0,1,711.3,689a14.57,14.57,0,0,0,11.17-14.13m-11.76,12.26a43.11,43.11,0,0,1,0-24.52,12.57,12.57,0,0,1,0,24.52m17.77-51.78a50.77,50.77,0,0,0-19.13,25.08,13.9,13.9,0,0,0-1.39-.07,14.52,14.52,0,1,0,0,29c.43,0,.89,0,1.39-.08a50,50,0,0,0,17.63,24,42.55,42.55,0,0,1-17.48,3.72,43.18,43.18,0,0,1-10.13-1.21,3,3,0,0,0,0-.31,4.57,4.57,0,1,0-.58,2.18,44.94,44.94,0,0,0,30-3.07,60.15,60.15,0,0,0,67.32,0,44.76,44.76,0,0,0,7.79,2.85,139.2,139.2,0,0,1-61.2,27.8c-4,.75-8.21,1.33-12.45,1.74,3-2.79,6-5.75,9.07-8.8a4.51,4.51,0,1,0-2.11-3.81,4.41,4.41,0,0,0,.73,2.43c-7.22,7.26-14.81,14.23-22.57,20.71-3.35-3.18-6.64-6.56-9.82-10.09-17.38-19.32-27.83-40.42-31.07-62.71,1.72-1.69,3.35-3.38,4.85-5A146.58,146.58,0,0,0,709.06,631a42.45,42.45,0,0,1,19.42,4.42m-19.72,52.06-.8,0a12.57,12.57,0,1,1,0-25.13c.26,0,.52,0,.8,0a45.06,45.06,0,0,0,0,25.08m-49,123.47a31.2,31.2,0,0,0-7.51-9.72,330.63,330.63,0,0,0,63-41c2.87,2.67,6,5.37,9.19,8a342.65,342.65,0,0,1-64.7,42.72m66.24-41.47a287.91,287.91,0,0,0,41.86,27.78c-2.31,2.09-4.77,4.25-7.33,6.44a341.2,341.2,0,0,0-49.22-22.55c4.92-3.69,9.86-7.61,14.69-11.67m-90.37,39.5c4.94-2.14,9.89-4.42,14.72-6.79a29.17,29.17,0,0,1,7.67,9.64c-6.61,3.31-13.38,6.44-20.12,9.29a347.19,347.19,0,0,1-33.43,12.12,28.64,28.64,0,0,1-1.34-8.67,29.6,29.6,0,0,1,.23-3.59,330.91,330.91,0,0,0,32.27-12m-31.92,9.85a28.92,28.92,0,0,1,44.9-18c-4.56,2.23-9.19,4.35-13.75,6.33a328.6,328.6,0,0,1-31.15,11.64m35,4.08c6.74-2.85,13.52-6,20.17-9.3a28.92,28.92,0,0,1-26.77,39.89,29.09,29.09,0,0,1-27-18.41,347.83,347.83,0,0,0,33.55-12.18m63.73-76a135.77,135.77,0,0,1-43.55-12.07A164.5,164.5,0,0,0,685.53,723a139.88,139.88,0,0,0,16.91,23.9M684.6,721.29a162.62,162.62,0,0,1-28.23,12.32,131.1,131.1,0,0,1-28.16-18.79c17.58-7.35,32.17-16.64,44.56-28.39a110.88,110.88,0,0,0,11.83,34.86m-30.89,13.17a177.41,177.41,0,0,1-26.29,6V716.71a132.47,132.47,0,0,0,26.29,17.75m2.51,1.25a137.75,137.75,0,0,0,48.15,13.35c3.07,3.39,6.26,6.67,9.51,9.75-6.87,5.68-14,11.08-21.12,16.07a360.13,360.13,0,0,0-65.34-13.26v-19.2a179.36,179.36,0,0,0,28.8-6.71m34.5,40.6a329.2,329.2,0,0,1-40.09,23.53,30.55,30.55,0,0,0-18.52-6.19,30.89,30.89,0,0,0-18.7,6.33,112.5,112.5,0,0,0,1-14.58,110.67,110.67,0,0,0-2.45-23.18,359.18,359.18,0,0,1,78.79,14.09m-88.07,57.44c-4.67,1.4-8.93,2.59-13,3.63V824.91c3.86-1,7.79-2.16,11.71-3.36q-.15,1.53-.15,3a30.72,30.72,0,0,0,1.42,9.23m66,44.18a406.2,406.2,0,0,1-79,25.59V891.16a393.9,393.9,0,0,0,44.45-12.56,1,1,0,0,0,.56-.5,1,1,0,0,0-1.2-1.34,391.64,391.64,0,0,1-43.81,12.4V839.39c4.31-1.1,8.78-2.34,13.62-3.79A30.88,30.88,0,0,0,663,824.52a30.56,30.56,0,0,0-2.37-11.84,345,345,0,0,0,48.87-30.2A340.33,340.33,0,0,1,759,805a395.8,395.8,0,0,1-37.25,28.06,1,1,0,0,0-.42.62.93.93,0,0,0,.14.73,1,1,0,0,0,1.35.28,396.43,396.43,0,0,0,38-28.67c4,2.25,7.58,4.37,11,6.47a407,407,0,0,1-103.13,65.45m112.39-73.78c-2.69,2.48-5.22,4.77-7.73,7-3.34-2.07-6.93-4.18-11-6.46,2.55-2.19,5-4.36,7.33-6.46,3.64,2,7.46,4,11.35,5.94m25.47-47a43.42,43.42,0,0,1,1-18.19,1,1,0,0,0-.68-1.2,1,1,0,0,0-.74.09,1,1,0,0,0-.46.59,45.19,45.19,0,0,0-.77,20.65c-7,8.25-14.4,16.27-22,23.82-4.28,4.29-8.83,8.62-13.51,12.89a287.43,287.43,0,0,1-41.86-27.68c3.55-3,7.09-6.14,10.52-9.3a4.45,4.45,0,0,0,2.57.83,4.52,4.52,0,1,0-4.52-4.52,4.43,4.43,0,0,0,.62,2.27c-3.5,3.22-7.11,6.4-10.73,9.47-3.24-2.66-6.32-5.35-9.19-8,3.7-3.1,7.42-6.36,11.07-9.69a144.09,144.09,0,0,0,15.17-2,141.12,141.12,0,0,0,63.26-29.14,45.62,45.62,0,0,0,9.1.93,44.84,44.84,0,0,0,14.9-2.53,50.7,50.7,0,0,0,8.39-3.58,394.2,394.2,0,0,1-32.19,44.29m82.67-116.93c-2.67,7.57-5.65,15.23-8.83,22.76-18.34,42.1-50.28,51.5-50.63,51.6A43,43,0,0,1,798,713.33a50,50,0,0,0,17.64-24c.5,0,1,.08,1.39.08a14.52,14.52,0,0,0,0-29c-.43,0-.89,0-1.4.07a50.81,50.81,0,0,0-19.12-25.08,42.58,42.58,0,0,1,19-4.42,43.13,43.13,0,0,1,31.74,14,59,59,0,0,1,2.65,36.57h-.27a4.53,4.53,0,1,0,2.15.55,61,61,0,0,0-2.28-36.71,28.73,28.73,0,0,0,26.21-36.67l20-21.82,6.57,8.67a406.57,406.57,0,0,1-13,44.75m-73,22.1c.27,0,.54,0,.8,0a12.57,12.57,0,0,1,0,25.13l-.8,0a45.31,45.31,0,0,0,0-25.08M902.74,593l-6.17-8.14-7.25-26.69,22.42-29.65a408.65,408.65,0,0,1-9,64.48m9.19-68-13.35,17.66c.9-9.36,1.48-18.85,1.72-28.24l12.1-2.34c-.08,4.13-.24,8.36-.47,12.92m.49-14.95-12.08,2.38c.06-3.06.1-5.84.1-8.48,0-1.27,0-2.54,0-3.81l12-2.33q0,3.06,0,6.14c0,2,0,4.07-.07,6.1M703.2,536.35v2l12.43-2.41v47.14a137.27,137.27,0,0,1-1.74,21.64,89.89,89.89,0,0,0-9,5.3,28.31,28.31,0,0,0-2.75-7.22,1.07,1.07,0,0,0-.33-.34c-.16,1-.32,2-.5,3a27.25,27.25,0,0,1,1.86,5.71q-1.95,1.37-3.74,2.78c-.29,1.09-.6,2.16-.92,3.23l0,0c1.5-1.26,3.12-2.51,5-3.83a25.76,25.76,0,0,1,.22,3.27,26.73,26.73,0,0,1-16.22,24.62c-.59.92-1.2,1.82-1.82,2.71a.74.74,0,0,0,.26,0,28.69,28.69,0,0,0,19.73-27.3,29.18,29.18,0,0,0-.37-4.55,89.16,89.16,0,0,1,8.22-5,143.28,143.28,0,0,1-35.58,71.31c-1.18,1.3-2.44,2.62-3.74,3.93a108.55,108.55,0,0,1-.8-15,63.35,63.35,0,0,1,1-10,.82.82,0,0,0,0-.27c-.74.69-1.49,1.38-2.25,2.06a64.46,64.46,0,0,0-.68,8.21,111.73,111.73,0,0,0,1,16.78c-12.64,12.23-27.63,21.82-45.84,29.32A125,125,0,0,1,602.68,684c-.8,0-1.61,0-2.42,0l0,38c-3.64,1-7.37,1.84-11.08,2.63l-1.63.34-.75.15a102.55,102.55,0,0,0-17.73-18.85l-.29-.24-1.12,1.35.29.24a101.57,101.57,0,0,1,17,17.88c-5.26,1-10.65,2-16,2.78A86.54,86.54,0,0,0,504,699h-.38v1.75H504a84.87,84.87,0,0,1,62.76,27.94c-6.07.87-12.49,1.65-19.1,2.31a69.49,69.49,0,0,0-43-15.39,148.5,148.5,0,0,1-16.34-12.38c-2.66-2.33-5.31-4.82-7.87-7.42a92.47,92.47,0,0,1,73.35,11.47l.31.2L555,706l-.32-.2A94.24,94.24,0,0,0,479,694.38a144.25,144.25,0,0,1-10.15-11.79A108,108,0,0,1,504,676.76h.37V675H504a109.38,109.38,0,0,0-36.25,6.12A145.27,145.27,0,0,1,456,662.78V642.25l15.69-7.91,24.3,9.71a100.84,100.84,0,0,0,18,23,4.65,4.65,0,1,0,1.33-1.42C494.18,645.46,483,616.91,483,583.07V582l12.43-12v-2.69l-.08,0-12.35,12V507.48l12.43-2.41v-2L483,505.49V465a1,1,0,0,0,0-1.11h0V430.15l12.43-2.41v-2L483,428.16V400.1c0-34.15,1.54-67.12,4.56-98l7.32,7.32a1,1,0,0,0,1.38,0,1,1,0,0,0,0-1.38l-8.45-8.45c1.88-18.66,4.33-36.85,7.3-54.06a315.21,315.21,0,0,0,55.76,5,318,318,0,0,0,38.67-2.36,25.92,25.92,0,1,0,50.74-10.64c8.38-2.52,16.67-5.41,24.64-8.58L736.65,325V385.6H711.39a1,1,0,0,0-.94,1.25,134.57,134.57,0,0,1,5.18,38.08v17.43l-12.43,2.41v2l12.43-2.4v12.27L703.2,459v2l124.88-24.16.15,0,38.29-7.42a.77.77,0,0,0,.2,0L905,422a.9.9,0,0,0,.24,0l57.14-11.06v75.35Z" />
<path d="M500.54,365.31a4.49,4.49,0,0,0-1.48-3.32,94.63,94.63,0,0,1,19.44-23c16.23-14,36.48-22.64,57.92-31.86,27.43-11.78,55.79-24,78.42-48.4a4.42,4.42,0,0,0,2.22.59,4.52,4.52,0,1,0-4.52-4.52,4.45,4.45,0,0,0,.85,2.62c-22.34,24.12-50.5,36.22-77.75,47.92-21.57,9.28-42,18-58.41,32.17A96.69,96.69,0,0,0,497.37,361a4.19,4.19,0,0,0-1.35-.22,4.52,4.52,0,1,0,4.52,4.52" />
<path d="M655.18,127.19a1,1,0,0,0-.32-.21.89.89,0,0,0-.36-.07H612.44a4.52,4.52,0,1,0,0,2h41.65L710.21,185a4.45,4.45,0,0,0-.72,2.42,4.52,4.52,0,1,0,4.52-4.52,4.45,4.45,0,0,0-2.42.72l-40.74-40.74H695.3a1,1,0,0,0,0-2H668.9Z" />
<path d="M608.74,310.5a1,1,0,0,0,1,1H703.3a1,1,0,0,0,0-2H609.71a1,1,0,0,0-1,1" />
<path d="M400.77,884.87h0a394.8,394.8,0,0,1-50.32-17.38C338.76,862.55,327.22,857,316.14,851a.92.92,0,0,0-.74-.08.94.94,0,0,0-.58.47.92.92,0,0,0-.08.74.94.94,0,0,0,.47.58c11.13,6,22.73,11.61,34.48,16.58a396.59,396.59,0,0,0,50.57,17.46,1.07,1.07,0,0,0,.25,0,1,1,0,0,0,.85-1.46,1,1,0,0,0-.59-.45" />
<path d="M566.17,854A93,93,0,0,1,529,874.6l-.36.1.48,1.69.36-.1a94.8,94.8,0,0,0,37.87-21l.28-.25-1.17-1.3Z" />
<path d="M549.24,884.16a107.9,107.9,0,0,1-27.86,8.48l-.38.06.28,1.73.37-.06A109.65,109.65,0,0,0,550,885.75l.34-.16-.73-1.59Z" />
<path d="M977.87,402.8l-72.51-40.11a1,1,0,1,0-1,1.7l72,39.83v59.15a1,1,0,1,0,2,0V403.65a1,1,0,0,0-.5-.85" />
</g>
</mask>
<!-- Gradient -->
<rect id="ten_year_logo-gradient_mask" x="0" y="0" width="1008" height="1008"/>
<!-- Outer Lines -->
<g clip-path="url(#c)">
<path d="M890.27,295a1,1,0,0,0,.19-1.36h0a1,1,0,0,0-1.37-.18l-22.92,17.35.93,1.74Z" fill="#3b3a3a"/>
<path d="M875.65,329.63c.12.26.23.51.35.76l53.5-31.21a1,1,0,0,0,.46-.6,1,1,0,0,0-.11-.74,1,1,0,0,0-1.33-.35l-53.35,31.13c.13.28.27.56.4.83Z" fill="#3b3a3a"/>
<path d="M904.14,595.64c-.14.62-.29,1.23-.43,1.84l23.59,30.24-34.46,8-.75,2.18,36.54-8.48,7.84,10.06a451.48,451.48,0,0,1-44.24,98.28,45.13,45.13,0,0,0-15.3-22.66,1,1,0,0,0-.72-.2,1,1,0,0,0-.65.36,1,1,0,0,0-.21.72,1,1,0,0,0,.37.65,43,43,0,0,1,15.1,23.43c-6.5,10.64-13.46,21-20.68,30.93a.94.94,0,0,0-.18.72,1,1,0,0,0,.39.64,1,1,0,0,0,1.36-.21c6.85-9.37,13.47-19.23,19.7-29.32a43.19,43.19,0,0,1,.35,12.89,30.14,30.14,0,0,0-12.3,24.22c0,.32,0,.63,0,1a42.87,42.87,0,0,1-16.57,10.32,37.91,37.91,0,0,0-26.85-11.07,1,1,0,1,0,0,2,36,36,0,0,1,24.71,9.78A43,43,0,0,1,807,759.65l-.26.31a.7.7,0,0,1-.13.15l-1.19,1.38a45,45,0,0,0,56.93,31.92,36.1,36.1,0,0,1,9.9,23.91,145.21,145.21,0,0,1-19.29,1,.2.2,0,0,0,0-.07,16.91,16.91,0,0,0-33.4-3.72,186.27,186.27,0,0,1-35.09-10.94l-1.13,1.06-.1.08-.33.3a184.75,184.75,0,0,0,36.34,11.42,16.9,16.9,0,0,0,33.58,3.81h0a143,143,0,0,0,19.38-1,35.92,35.92,0,0,1-3.35,14.27,1,1,0,0,0,.48,1.29,1,1,0,0,0,1.29-.47A37.81,37.81,0,0,0,874.2,819c3-.41,5.82-.88,8.54-1.44a1,1,0,0,0,.76-1.15,1,1,0,0,0-1.15-.76c-2.62.54-5.37,1-8.16,1.39a38.13,38.13,0,0,0-9.81-24.33,44.81,44.81,0,0,0,15.29-9.32,30,30,0,0,0,58,7,1,1,0,0,0,0-.75,1,1,0,0,0-.55-.51,1,1,0,0,0-1.25.58,28.09,28.09,0,0,1-54.38-8.05,44.75,44.75,0,0,0,12.11-24.84,28.06,28.06,0,0,1,37.82,5.52,1,1,0,0,0,1.73-.5,1,1,0,0,0-.21-.72,30,30,0,0,0-39.06-6.81,44.81,44.81,0,0,0-1-13.91,453.7,453.7,0,0,0,45-99L960.25,670a1,1,0,0,0,1.37.17,1,1,0,0,0,.37-.65,1,1,0,0,0-.2-.72l-23.15-29.67c3.78-12.15,7.08-24.64,9.82-37.12a10.4,10.4,0,0,0,1.3.09,11.09,11.09,0,0,0,2.91-21.78c2.35-13.93,4.07-28,5.11-42a1,1,0,0,0-1.94-.14c-1,13.83-2.75,27.88-5.09,41.76a8.74,8.74,0,0,0-1,0,11.08,11.08,0,0,0-3.2,21.68c-2.64,12-5.79,24-9.38,35.65L930,628l-5.4-73.36a1,1,0,0,0-.34-.67,1,1,0,0,0-.7-.23,1,1,0,0,0-.91,1l5.19,70.45L904.28,595c0,.12,0,.24-.08.36a.58.58,0,0,1-.06.24M836.06,833.23a15,15,0,0,1-15-15c0-.44,0-.9.08-1.4a177.77,177.77,0,0,0,29.7,3.38,14.91,14.91,0,0,1-14.82,13m15-14.92A174.59,174.59,0,0,1,821.48,815,15,15,0,0,1,851,818.28Zm30.41-39.52a28,28,0,0,1,9.87-20.25,43,43,0,0,1-9.87,20.25m70.9-196.58a9.13,9.13,0,0,1-2.57,17.89c-.27,0-.56,0-.88-.05,1.23-5.71,2.39-11.7,3.45-17.84M940.63,591a9.13,9.13,0,0,1,9.13-9.13l.66,0c-1.07,6.14-2.23,12.12-3.45,17.8a9.16,9.16,0,0,1-6.34-8.69" fill="#3b3a3a"/>
<path d="M728.44,148.34a1,1,0,0,0-1,1V159.7l1.14.73a1,1,0,0,1,.65.43l.16.11V149.31a1,1,0,0,0-1-1" fill="#3b3a3a"/>
<path d="M543.24,62a1,1,0,0,0-.64-.39.93.93,0,0,0-.72.18,1,1,0,0,0-.21,1.36l25.92,35.34,2.74.45Z" fill="#3b3a3a"/>
<path d="M88.34,665.82a1,1,0,0,0,.28-.69,1,1,0,0,0-1-1h0a1,1,0,0,0-.69.28L75.34,676.06a1,1,0,0,0-.28.69v57.14a1,1,0,0,0,.28.69L115.75,775a1,1,0,0,0,1.38,0,1,1,0,0,0,.28-.69,1,1,0,0,0-.28-.69L77,733.49V677.15Z" fill="#3b3a3a"/>
<path d="M168.06,739.82l-.36-.52-6.09,6.09H128.42L105,721.92V688.73l16.62-16.62a1,1,0,0,0,.28-.69,1,1,0,0,0-.28-.69,1,1,0,0,0-1.38,0l-16.91,16.9a1,1,0,0,0-.28.69v34a1,1,0,0,0,.28.69l24,24a.94.94,0,0,0,.69.29h34a.94.94,0,0,0,.69-.29l6.14-6.14-.58-.8a1,1,0,0,1-.2-.29" fill="#3b3a3a"/>
<path d="M122.5,655.67a1,1,0,0,1-.07-.31c-.08-.21-.15-.41-.24-.62L103.72,662a1,1,0,0,0-.54.52l-18,41.36a1,1,0,0,0,0,.75l16.53,42a1,1,0,0,0,.52.53l41.36,18a1.09,1.09,0,0,0,.39.08.92.92,0,0,0,.36-.07l8.67-3.41a1,1,0,1,0-.72-1.82L144,763.19l-40.62-17.66L87.15,704.31l17.66-40.62,18.11-7.13-.25-.61a.88.88,0,0,1-.17-.28" fill="#3b3a3a"/>
<path d="M114.85,703.89a1,1,0,0,0-.55,1.27l8.36,21.22a1,1,0,0,0,.52.54L144.1,736a1.09,1.09,0,0,0,.39.08,1,1,0,0,0,.39-1.87l-20.55-8.94-8.21-20.85a1,1,0,0,0-1.27-.55" fill="#3b3a3a"/>
<path d="M151.11,294.31c.26-.44.54-.88.81-1.32-1.36-2.44-2.66-5-3.89-7.76,2.3.93,4.67,1.79,7.05,2.58.35-.56.69-1.13,1-1.69-3.11-1-6.21-2.19-9.23-3.48-6.93-16.36-10.6-35.32-10.6-54.84,0-3.9.16-7.87.46-11.79,3.27-.46,6.67-.88,10.12-1.25a1,1,0,0,0,.87-1.08,1,1,0,0,0-1.08-.86c-3.32.36-6.6.76-9.75,1.19a150.51,150.51,0,0,1,2.14-15.11,177.62,177.62,0,0,1,22.38-5.13,234.6,234.6,0,0,0-2.44,34,1,1,0,1,0,1.95,0,232.79,232.79,0,0,1,2.5-34.35,250.54,250.54,0,0,1,38.27-2.84,1,1,0,1,0,0-2,253.82,253.82,0,0,0-38,2.77,176.09,176.09,0,0,1,6-25.69,151.3,151.3,0,0,1,32-3.35c20.87,0,40.81,4.11,57.8,11.89.6-.45,1.21-.88,1.81-1.32-17.46-8.19-38-12.52-59.61-12.52a154.22,154.22,0,0,0-31.28,3.15,101.47,101.47,0,0,1,8-18.2,119.2,119.2,0,0,1,23.29-2.29,1,1,0,1,0,0-1.95,120.75,120.75,0,0,0-21.94,2,54.11,54.11,0,0,1,4.75-6.5,1,1,0,1,0-1.47-1.28,57.11,57.11,0,0,0-5.86,8.29,114.68,114.68,0,0,0-15.2,4.25c11.5-13.58,25.21-20.74,39.72-20.74,16.78,0,33,5.81,46.89,16.82a1,1,0,0,0,1.37-.17,1,1,0,0,0-.16-1.37c-14.25-11.27-30.88-17.23-48.1-17.23a102.6,102.6,0,0,0-81.93,164.33,1,1,0,0,0,1.37.19,1,1,0,0,0,.19-1.37,99.71,99.71,0,0,1-20.26-60.57c0-23,11.27-45.15,31-61.1a108.24,108.24,0,0,0-8.9,17.67A73.79,73.79,0,0,0,109.65,198a1,1,0,0,0,.19,1.37,1,1,0,0,0,1.37-.2A70.18,70.18,0,0,1,121.84,188a118.35,118.35,0,0,0-6.39,30.12,73.46,73.46,0,0,0-7.06,2.26,1,1,0,0,0-.54.52,1,1,0,0,0,1.25,1.3c1.78-.69,3.87-1.37,6.21-2-.16,2.62-.24,5.19-.24,7.63a1,1,0,1,0,1.94,0c0-2.62.1-5.36.29-8.15a172.69,172.69,0,0,1,17.48-3.36c-.28,3.84-.43,7.71-.43,11.51a144.82,144.82,0,0,0,10,53.73c-11.35-5.13-20.81-11.61-28.13-19.26a1,1,0,0,0-1.38,0,1,1,0,0,0-.3.69,1,1,0,0,0,.27.69c7.9,8.25,18.2,15.15,30.61,20.51a112.7,112.7,0,0,0,5.35,10.78l.29-.49Zm10.63-102.57a181.15,181.15,0,0,0-22.24,5A129.47,129.47,0,0,1,147,172.85a127.88,127.88,0,0,1,20.6-6.62,181,181,0,0,0-5.81,25.51m14.17-45.82a107.55,107.55,0,0,0-7.68,18.16,131.46,131.46,0,0,0-20.15,6.2,98.53,98.53,0,0,1,11.52-19.39,113.42,113.42,0,0,1,16.31-5m-69.82,50.52a101,101,0,0,1,78.27-67.77c-9.47,3.86-18.37,10.91-25.93,20.58a108.2,108.2,0,0,0-18,9.13,91.08,91.08,0,0,1,14.67-14.58,1,1,0,0,0,.37-.65.91.91,0,0,0-.21-.71.94.94,0,0,0-.65-.37,1,1,0,0,0-.72.2,94.5,94.5,0,0,0-18.44,19.47c-13.13,9.42-23.15,21.31-29.32,34.7m30.73-33.32a104.71,104.71,0,0,1,19.34-10.83,104.28,104.28,0,0,0-10.67,19.07,102.85,102.85,0,0,0-19.25,10.74,103.6,103.6,0,0,1,10.58-19M117.45,217.6a115.67,115.67,0,0,1,7.36-32A97.41,97.41,0,0,1,144.4,174a132.69,132.69,0,0,0-7,23.42c-3.07,1-5.94,2-8.53,3a1,1,0,0,0-.54.52,1,1,0,0,0,1.25,1.3c2.29-.89,4.77-1.77,7.4-2.61-.91,4.83-1.59,9.78-2,14.74-6.68,1-12.56,2.08-17.49,3.31" fill="#3b3a3a"/>
<path d="M147.66,300.23l.43-.76a97.35,97.35,0,0,1-24.52-18.3,1,1,0,0,0-.69-.3,1,1,0,0,0-.69.27,1,1,0,0,0-.3.69,1,1,0,0,0,.28.69,99.38,99.38,0,0,0,25,18.64c.14-.26.29-.52.44-.77Z" fill="#3b3a3a"/>
<path d="M851.31,851.13a36.18,36.18,0,0,1-42.6-9.16c2.57-2.32,4.83-4.4,6.92-6.36a1,1,0,0,0-1.34-1.42c-2,1.93-4.29,4-6.82,6.27a35.77,35.77,0,0,1-7.62-22.18,1,1,0,1,0-2,0A37.67,37.67,0,0,0,806,841.77a456.5,456.5,0,0,1-100.55,68.12,11.07,11.07,0,0,0-20,9.35c-13.35,5.86-27.06,11.1-40.74,15.57a1,1,0,0,0-.63,1.23,1,1,0,0,0,.93.67,1,1,0,0,0,.3,0c13.74-4.49,27.51-9.75,40.94-15.65a11.08,11.08,0,0,0,20.75-5.41,10.93,10.93,0,0,0-.74-4,458.17,458.17,0,0,0,100.93-68.37,38.14,38.14,0,0,0,44.88,9.63,1,1,0,0,0,.5-.55,1,1,0,0,0-1.33-1.22m-164,67.31a9.12,9.12,0,0,1,16.4-7.68c-5.4,2.66-10.92,5.25-16.4,7.68m8.68,6.31a9.12,9.12,0,0,1-7.88-4.53c5.5-2.44,11-5,16.47-7.71A9.14,9.14,0,0,1,696,924.75" fill="#3b3a3a"/>
<path d="M96.06,458.62c0-.29.08-.57.11-.86l-18.91-2.65A429.81,429.81,0,0,1,91,385.74l15.5,15.72c.05-.19.09-.38.14-.57l0-.11.39-1.52L91.62,383.59c2-6.72,4-13.3,6.19-19.55a1,1,0,0,0-.6-1.23,1,1,0,0,0-1.24.6c-2,5.93-4,12.18-5.92,18.59L72.76,364.46a452.14,452.14,0,0,1,29.5-70.21,1,1,0,0,0-.41-1.31,1,1,0,0,0-1.32.41,455.15,455.15,0,0,0-29.31,69.54l-6.64-6.74a1,1,0,0,0-1.39,1.37L70.54,365c-3.64,11.37-6.87,23-9.59,34.64a12.14,12.14,0,0,0-1.42-.1,11.08,11.08,0,0,0-3.09,21.72c-1.82,9.94-3.34,20.14-4.5,30.33l-20.62-2.89a1,1,0,0,0-1.1.83.94.94,0,0,0,.19.72,1,1,0,0,0,.64.38l20.67,2.89c-.45,4-.84,8-1.16,11.87a1,1,0,0,0,.23.71.93.93,0,0,0,.66.34h.08a1,1,0,0,0,1-.9c.32-3.78.71-7.74,1.15-11.75l21.47,3c-1,9.42-1.76,18.85-2.16,28a1,1,0,0,0,1,1,1,1,0,0,0,1-.93c.4-9.12,1.12-18.49,2.14-27.86l18.89,2.65c0-.3.06-.6.09-.9ZM62.41,402a9.13,9.13,0,0,1-2.88,17.79,8,8,0,0,1-.82,0c1.1-5.87,2.35-11.84,3.7-17.75m-12,8.66a9.15,9.15,0,0,1,9.13-9.14,8.57,8.57,0,0,1,1,.06c-1.37,6-2.62,11.92-3.71,17.78a9.14,9.14,0,0,1-6.4-8.7m24.93,44.23-21.46-3c1.16-10.15,2.67-20.31,4.48-30.22a10,10,0,0,0,1.18.07A11.08,11.08,0,0,0,62.85,400c2.64-11.25,5.75-22.51,9.24-33.49l17.33,17.59a431.65,431.65,0,0,0-14.09,70.7" fill="#3b3a3a"/>
<path d="M77.25,660.48a.92.92,0,0,0,.33-.06,1,1,0,0,0,.55-.5,1,1,0,0,0,0-.75c-3.49-9.59-6.7-19.42-9.54-29.24a.94.94,0,0,0-.47-.58.9.9,0,0,0-.73-.08,1,1,0,0,0-.67,1.2c2.85,9.87,6.07,19.75,9.58,29.37a1,1,0,0,0,.92.64" fill="#3b3a3a"/>
<path d="M267.23,839.23l-.21-.15v23.18a431.46,431.46,0,0,1-68.83-56.67.94.94,0,0,0-.69-.29.88.88,0,0,0-.69.28.92.92,0,0,0-.29.68,1,1,0,0,0,.28.7A434,434,0,0,0,267,864.59v25.65c-6.07-3.73-11.88-7.48-17.3-11.16a454.85,454.85,0,0,1-93.52-84.65l19.5-7.68a1,1,0,0,0,.55-1.27,1,1,0,0,0-1.27-.55l-20.08,7.91c-3.58-4.31-6.81-8.35-9.89-12.34a1,1,0,0,0-1.37-.18,1,1,0,0,0-.17,1.37c2.93,3.8,6.05,7.7,9.52,11.91l-9.59,3.77-64.61-28.1-26-65.93a1,1,0,0,0-1.81.71l26.12,66.32a1,1,0,0,0,.52.53L143,799.32a1,1,0,0,0,.74,0l10.55-4.15a457.15,457.15,0,0,0,94.34,85.52c5.74,3.9,11.93,7.88,18.39,11.83v10.91a1,1,0,1,0,2,0v-9.73a452.66,452.66,0,0,0,235,65.35,1,1,0,1,0,0-1.95,450.2,450.2,0,0,1-235-65.68V865.87a436.4,436.4,0,0,0,41,23.61,1,1,0,0,0,.87-1.75A429.23,429.23,0,0,1,269,863.54v-23.1l-1.27-.88a1,1,0,0,1-.47-.33" fill="#3b3a3a"/>
<path d="M799.44,221.94h0" fill="#3b3a3a"/>
<path d="M629.14,113q2.83.9,5.64,1.85h84.87a16.83,16.83,0,0,0,16.85,15.93,1,1,0,1,0,0-1.95,14.9,14.9,0,0,1-14.9-14h14.7c6.76,4,13.54,8.36,20.16,12.81l-16.71,16.7a1,1,0,0,0-.28.69V167.8l1.95,1.36V145.47l16.68-16.69c9.8,6.67,19.45,13.78,28.67,21.16,10.18,8.13,20.25,16.94,29.94,26.17.82,7.94,1.24,16.21,1.27,24.63L776.27,159a1,1,0,0,0-1.38,0,1,1,0,0,0,0,1.37L818,203.49c0,5.5-.24,11-.61,16.5H800.29l1.88,1.95h15.06c-.52,7.08-1.19,12.32-1.58,15,.43.51.88,1,1.31,1.52a.69.69,0,0,1,.18.23,2,2,0,0,1,.19.22c.25-1.6,1.18-7.75,1.86-17h17.24l27.48,27.48a1,1,0,0,0,1.38,0,1,1,0,0,0,0-1.38l-27.77-27.76a1,1,0,0,0-.68-.29H819.32c.37-5.49.57-11.06.6-16.55a1,1,0,0,0,0-.6c0-8.42-.32-16.72-1.06-24.67A453,453,0,0,1,888,263.43l-31.9,29.63,1,1.71,31.92-29.65c3.6,5.79,6.85,11.27,9.93,16.74a1,1,0,0,0,1.33.37,1,1,0,0,0,.37-1.32c-3.12-5.55-6.55-11.31-10.17-17.14L923,233.65a1,1,0,0,0-.63-1.69.92.92,0,0,0-.7.26l-32.14,29.85a455.09,455.09,0,0,0-70.91-86.88,180.92,180.92,0,0,0-10.34-45.27,1,1,0,0,0-.51-.54,1,1,0,0,0-1.31,1.24,176.85,176.85,0,0,1,10,42.5c-9.24-8.71-18.79-17-28.4-24.71-9.16-7.32-18.74-14.39-28.49-21l18.79-18.78a1,1,0,0,0-1.38-1.38l-19,19c-5.83-3.94-11.81-7.77-17.79-11.41h13.1a1,1,0,0,0,.69-.29l22.91-22.92a1,1,0,0,0,0-1.38,1,1,0,0,0-1.37,0l-22.64,22.64H736.83c-4.28-2.56-8.56-5-12.74-7.34A14.94,14.94,0,0,1,746.72,103a1,1,0,0,0,.7.26,1,1,0,0,0,.68-.31,1,1,0,0,0-.05-1.37,16.88,16.88,0,0,0-25.67,3.09A450.84,450.84,0,0,0,675.87,82.5a11.08,11.08,0,0,0-20.66-7.83C647.63,72,640,69.53,632.38,67.31a1,1,0,0,0-1.21.66,1,1,0,0,0,.66,1.21c7.52,2.2,15.16,4.67,22.71,7.32a11.22,11.22,0,0,0-.38,2.88,11.08,11.08,0,0,0,21,4.94,447.57,447.57,0,0,1,46.24,22,16.63,16.63,0,0,0-1.75,6.59H628.84l.17,0Zm94-5.76c3.18,1.77,6.51,3.67,9.89,5.66H721.6a14.69,14.69,0,0,1,1.51-5.66M665.24,88.52a9.15,9.15,0,0,1-9.13-9.14,8.91,8.91,0,0,1,.28-2.23c5.75,2,11.45,4.21,17,6.43a9.17,9.17,0,0,1-8.1,4.94m8.82-6.76c-5.52-2.22-11.23-4.38-17-6.43a9.13,9.13,0,0,1,17,6.43" fill="#3b3a3a"/>
<path d="M783.82,121.8a1,1,0,0,0,.69-.29l29.18-29.18A1,1,0,0,0,812.31,91l-29.18,29.18a1,1,0,0,0-.28.69,1,1,0,0,0,.28.69,1,1,0,0,0,.69.29" fill="#3b3a3a"/>
<path d="M786.15,137.64a1,1,0,0,0,1.37,0l33.31-33.31a1,1,0,1,0-1.38-1.38l-33.3,33.31a1,1,0,0,0,0,1.38" fill="#3b3a3a"/>
<path d="M420.14,82.67c9.69-1.91,19.52-3.5,29.22-4.73a1,1,0,1,0-.24-1.94c-9.62,1.22-19.37,2.8-29,4.69V58.57a460.58,460.58,0,0,1,145.67-3.5,1,1,0,0,0,.26-1.93,462.31,462.31,0,0,0-145.93,3.45V43.74a1,1,0,1,0-1.95,0V57a451,451,0,0,0-121.74,42,1,1,0,0,0,.89,1.74A448.72,448.72,0,0,1,418.19,58.94V81.07A427.13,427.13,0,0,0,286,131.6a1,1,0,0,0-.46.59,1,1,0,0,0,1.44,1.09A425.3,425.3,0,0,1,418.19,83.06v19.52l1.95-.41Z" fill="#3b3a3a"/>
<path d="M587.77,925.38c-5.29,1-10.71,2-16.11,2.85V908.91l-1.94.32v19.3a435.07,435.07,0,0,1-142.65-1.89,1,1,0,0,0-1.12.78,1,1,0,0,0,.78,1.14,437.65,437.65,0,0,0,143,1.94v33.12a1,1,0,1,0,1.94,0V930.2c5.38-.84,10.79-1.79,16.11-2.83v32.88a1,1,0,1,0,2,0V927a426,426,0,0,0,168.39-74.26,1,1,0,0,0,.22-1.36,1,1,0,0,0-.64-.39,1,1,0,0,0-.73.18A424.16,424.16,0,0,1,589.72,925V905.5l-2,.41Z" fill="#3b3a3a"/>
<path d="M884.58,705.35a.93.93,0,0,0,.46.12,1,1,0,0,0,.86-.52,430.74,430.74,0,0,0,24.1-54.6,1,1,0,0,0,0-.74,1,1,0,0,0-1.8.08,429.65,429.65,0,0,1-24,54.35,1,1,0,0,0,.4,1.31" fill="#3b3a3a"/>
</g>
<!-- Text -->
<g clip-path="url(#c)">
<path d="M314.08,633.47a.6.6,0,0,0-.6.6v45.15a.6.6,0,0,0,.6.6H441a.6.6,0,0,0,.6-.6V634.07a.6.6,0,0,0-.6-.6H405.77V328.78a.6.6,0,0,0-.6-.6H353.29a.61.61,0,0,0-.35.11l-50.46,36.18a.58.58,0,0,0-.25.49v55.69a.6.6,0,0,0,.94.49l46.18-31.72V633.47Zm117.86,36.65v-27H414.86a1.1,1.1,0,0,1,0-2.2H433a1.1,1.1,0,0,1,1.1,1.1v29.15a1.1,1.1,0,0,1-1.1,1.1H348a1.1,1.1,0,1,1,0-2.2ZM333.37,388.63a1.1,1.1,0,0,1,1.71,1.1,1.1,1.1,0,0,1-.46.71l-23.17,15.91a1.07,1.07,0,0,1-1.13.07,1.1,1.1,0,0,1-.59-1V369.06a1.1,1.1,0,0,1,.46-.89l45-32.28a1,1,0,0,1,.64-.21h41.31a1.1,1.1,0,0,1,1.1,1.1V544.1a1.1,1.1,0,0,1-2.2,0V337.88H356.21l-44.28,31.75v33.73ZM356.85,641V430.49a1.1,1.1,0,1,1,2.2,0V642.07a1.1,1.1,0,0,1-1.1,1.1H323.18v28.05a1.1,1.1,0,0,1-2.2,0V642.07a1.1,1.1,0,0,1,1.1-1.1Z" fill="#fffef6"/>
<path d="M613,500c-7.39,1.43-11.42,6.33-11.41,15.88v4.39c0,8.92,4.71,12.75,11.41,11.46,7.56-1.46,11.44-6.43,11.44-15.88v-4.4c0-8.92-4.71-12.75-11.44-11.45m5.39,17c0,5.92-1.89,8.74-5.39,9.42s-5.38-1.42-5.36-7.34v-4.39c0-5.92,1.85-8.74,5.35-9.42s5.43,1.41,5.41,7.33Z" fill="#fffef6"/>
<polygon points="651.32 492.96 632.74 496.56 632.72 527.48 638.77 526.31 638.79 513.67 650.02 511.5 650.03 506.21 638.8 508.38 638.79 500.72 651.32 498.3 651.32 492.96" fill="#fffef6"/>
<path d="M686.06,491.12c2.94-.57,4.61.9,5.15,3.71l5.79-1.12c-1-5.95-5-9-10.93-7.88-7.39,1.43-11.41,6.33-11.4,15.87v4.4c0,9,4.8,12.74,11.41,11.46,7-1.36,10.07-5.13,10.88-12.1l-5.88,1.14c-.67,3.26-2,5.08-5,5.67-3.5.67-5.38-1.61-5.37-7.34v-4.4c0-5.92,1.85-8.73,5.35-9.41" fill="#fffef6"/>
<polygon points="721.94 491.56 711.62 493.56 711.62 481.29 705.57 482.46 705.55 513.38 711.59 512.21 711.61 498.85 721.93 496.86 721.92 510.21 727.96 509.04 727.98 478.12 721.94 479.29 721.94 491.56" fill="#fffef6"/>
<path d="M743.75,475.06,733.36,508l6.74-1.3,1.8-6.22,10-1.93,1.83,5.52,6.17-1.2-10.34-28.92Zm-.24,19.81,3.41-11.55,3.32,10.25Z" fill="#fffef6"/>
<polygon points="782.9 486.89 771.07 469.77 766.24 470.71 766.21 501.63 771.96 500.52 771.98 481.38 783.75 498.24 788.63 497.3 788.65 466.37 782.91 467.48 782.9 486.89" fill="#fffef6"/>
<path d="M809.23,477.22v5.29l5-1c-.34,3.78-1.7,6.24-5.11,6.9s-5.39-1.42-5.37-7.34v-4.39c0-5.92,1.85-8.74,5.35-9.42,3-.58,4.63,1,5.16,3.71l5.78-1.12c-.94-5.55-4.67-9.09-10.93-7.88-7.47,1.45-11.41,6.34-11.4,16.33v3.94c0,8.87,4.7,12.76,11.4,11.46,7.69-1.49,11-6.25,11-15.79v-2.82Z" fill="#fffef6"/>
<polygon points="846.99 455.07 828.42 458.67 828.4 489.59 846.97 486 846.98 480.71 834.45 483.13 834.46 475.07 845.69 472.89 845.7 467.6 834.47 469.78 834.47 462.83 846.99 460.41 846.99 455.07" fill="#fffef6"/>
<polygon points="862.64 452.04 856.59 453.21 856.57 484.14 875.15 480.54 875.15 475.25 862.63 477.68 862.64 452.04" fill="#fffef6"/>
<path d="M890.87,446.17c-7.38,1.43-11.41,6.33-11.4,15.88v4.39c0,8.92,4.71,12.76,11.4,11.46,7.56-1.46,11.44-6.43,11.45-15.88v-4.39c0-8.93-4.71-12.76-11.45-11.46m5.4,17c0,5.92-1.89,8.74-5.39,9.42s-5.38-1.42-5.36-7.34v-4.39c0-5.92,1.85-8.74,5.34-9.42s5.43,1.42,5.41,7.34Z" fill="#fffef6"/>
<path d="M921.1,455.56v5.29l5-1c-.34,3.78-1.7,6.24-5.11,6.9s-5.39-1.42-5.37-7.34v-4.39c0-5.92,1.85-8.74,5.35-9.42,3-.58,4.63,1,5.15,3.71l5.79-1.12c-.94-5.55-4.67-9.09-10.93-7.88-7.47,1.45-11.41,6.33-11.41,16.33v3.94c0,8.87,4.71,12.76,11.4,11.46,7.69-1.49,11-6.25,11-15.79v-2.82Z" fill="#fffef6"/>
<polygon points="71.89 536.84 80.09 535.25 80.07 560.84 86.12 559.67 86.14 534.08 94.35 532.49 94.35 527.16 71.89 531.5 71.89 536.84" fill="#fffef6"/>
<polygon points="119.5 527.62 119.49 522.29 100.92 525.88 100.9 556.8 119.47 553.21 119.48 547.92 106.95 550.35 106.96 542.28 118.19 540.11 118.2 534.82 106.97 536.99 106.97 530.04 119.5 527.62" fill="#fffef6"/>
<polygon points="144.89 536.77 133.06 519.66 128.22 520.59 128.2 551.52 133.95 550.41 133.96 531.27 145.74 548.13 150.62 547.18 150.64 516.26 144.9 517.37 144.89 536.77" fill="#fffef6"/>
<polygon points="182.77 521.55 177.47 511.06 170.73 512.36 180.01 528.85 180 541.49 186.04 540.32 186.06 527.68 195.35 507.6 188.14 509 182.77 521.55" fill="#fffef6"/>
<polygon points="201.11 537.4 219.68 533.81 219.69 528.52 207.16 530.94 207.17 522.88 218.4 520.7 218.41 515.41 207.18 517.59 207.18 510.64 219.7 508.21 219.7 502.88 201.13 506.48 201.11 537.4" fill="#fffef6"/>
<path d="M234.84,500l-10.38,32.93,6.74-1.3,1.8-6.22,10-1.93,1.83,5.51,6.18-1.19-10.35-28.92Zm-.24,19.81L238,508.21l3.33,10.25Z" fill="#fffef6"/>
<path d="M278.19,499.58c-.92-4.75-5.08-7-11.08-5.88l-10.67,2.07,0,30.92,6.05-1.17,0-12.15,5.1-1,5.33,11.11,6.39-1.24-6.15-11.89c4.14-2.46,6-5.95,5-10.79m-11.63,7.72-4.06.78v-8.15l4.06-.79c3.15-.61,5.14-.27,5.61,2.14.73,3.76-1.37,5.2-5.6,6" fill="#fffef6"/>
<path d="M298,500.59c-3.55-.3-5.33-.94-5.73-3s1-4.06,4.2-4.67,4.56.15,5.86,2l4.4-4.12c-2.25-2.84-5.54-4.08-10.64-3.1-8.34,1.62-10.81,6.89-9.83,11.95.82,4.23,4.41,6.13,9.19,6.51,3.83.33,5.31,1.26,5.63,2.94.39,2-.53,4.18-4.59,5-3.07.59-4.9-.08-6.5-1.84l-4.37,4c2.28,2.74,6.24,4,11.38,3,8.16-1.58,11.19-6.78,10.14-12.18-.85-4.41-4.31-6.07-9.14-6.48" fill="#fffef6"/>
<path d="M646.79,547.27h0v32.47c0,34.49-17.75,55.09-47.48,55.09-30,0-47.95-20.6-47.95-55.09V428.26c0-34.49,17.93-55.09,47.95-55.09,29.73,0,47.48,20.6,47.48,55.09v43.66L677.33,466l25.87-5V424.93c0-19.68-3.89-37.09-11.58-51.76h32a.59.59,0,0,0,.59-.6V324.5a.61.61,0,0,0-.17-.43.59.59,0,0,0-.42-.17H599.07c-29.06.05-54.1,8.5-72.41,24.43-20.44,17.8-31.24,44.45-31.24,77.08V583.07c0,31.92,10.83,58.27,31.32,76.19,18.32,16,44.09,24.84,72.57,24.84h1l2.42-.05c27.14-.67,51.61-9.39,69.2-24.78l.22-.19c.76-.68,1.51-1.37,2.25-2.06A86.13,86.13,0,0,0,685.65,644c.62-.89,1.23-1.79,1.82-2.71a92.86,92.86,0,0,0,11-24c.32-1.07.63-2.14.92-3.23.73-2.77,1.35-5.6,1.88-8.49.18-1,.34-2,.5-3a127.75,127.75,0,0,0,1.43-19.38V536.35ZM676.28,364a1.11,1.11,0,0,1,.94-.54h37.31V333.6H685.91a1.1,1.1,0,1,1,0-2.2h29.72a1.09,1.09,0,0,1,1.09,1.1v32.07a1.09,1.09,0,0,1-1.09,1.1H679.07l5.48,10.17c7.4,13.75,11.15,30.26,11.15,49.09v28.6a1.1,1.1,0,0,1-2.2,0v-28.6c0-18.46-3.66-34.62-10.89-48l-6.35-11.8a1.07,1.07,0,0,1,0-1.08m-19.8,64.25v32.86a1.1,1.1,0,1,1-2.19,0V428.26c0-38.6-21.07-62.59-55-62.59a1.1,1.1,0,0,1,0-2.2c35.27,0,57.17,24.83,57.17,64.79m-151.36-2.85V542.12a1.1,1.1,0,0,1-2.2,0V425.41c0-30.83,9.64-54.86,28.67-71.42,16.92-14.73,40.26-22.55,67.49-22.59H633.8a1.1,1.1,0,0,1,0,2.2H599.09c-26.7,0-49.54,7.67-66.06,22-18.52,16.12-27.91,39.59-27.91,69.76m141,241.2a1.09,1.09,0,0,1-.58.61c-13.63,6.14-29.61,9.38-46.22,9.38-26.67,0-50.68-8.16-67.63-23a1.11,1.11,0,0,1-.37-.76,1.1,1.1,0,0,1,1-1.17,1.18,1.18,0,0,1,.8.27c16.54,14.47,40,22.44,66.18,22.44,16.3,0,32-3.17,45.32-9.18a1.1,1.1,0,0,1,1.48,1.39m10.37-86.87c0,40-21.9,64.79-57.17,64.79-35.56,0-57.65-24.83-57.65-64.79V428.26c0-19.91,5.53-36.47,16-47.9a1.09,1.09,0,0,1,1.55-.07,1.11,1.11,0,0,1,.07,1.56c-10.1,11-15.43,27.06-15.43,46.41V579.74c0,38.6,21.25,62.59,55.45,62.59,33.91,0,55-24,55-62.59v-25a1.1,1.1,0,1,1,2.19,0Zm39.22,3.33c0,21.85-5.28,40.64-15.68,55.83a1.12,1.12,0,0,1-.91.48,1.12,1.12,0,0,1-1.08-.9,1.11,1.11,0,0,1,.17-.83c10.15-14.81,15.3-33.18,15.3-54.58V547.16a1.1,1.1,0,0,1,2.2,0Z" fill="#fffef6"/>
</g>
<!-- Logo -->
<g clip-path="url(#c)">
<path d="M510.74,780.58c-2.37-2.69-4.17-3.65-6.74-3.65A8.53,8.53,0,0,0,504,794c2.57,0,4.41-1,6.82-3.69l4.21,3.93c-3.49,3.73-6.74,5.3-11,5.3a14.07,14.07,0,1,1,0-28.13c4.17,0,7.38,1.53,10.83,5.22Z" fill="#fff"/>
</g>
<!-- Logo Outer Circle -->
<g clip-path="url(#g)">
<g mask="url(#h)">
<g clip-path="url(#i)">
<g clip-path="url(#j)">
<rect x="459.18" y="744.17" width="74.42" height="82.47" fill="url(#k)"/>
</g>
</g>
</g>
</g>
<!-- Logo Inner Circle -->
<g clip-path="url(#l)">
<g mask="url(#m)">
<g clip-path="url(#n)">
<g clip-path="url(#n)">
<rect x="473.89" y="757.54" width="50.25" height="55.72" fill="url(#p)"/>
</g>
</g>
</g>
</g>
</svg>
| HTML+EEX | 3 | gustavoarmoa/changelog.com | lib/changelog_web/templates/page/_ten/ten_year_logo.html.eex | [
"MIT"
] |
@echo off
rem opencon - launch the openconsole binary.
rem Runs the OpenConsole.exe binary generated by the build in the debug directory.
rem Passes any args along.
if not exist %OPENCON%\bin\%ARCH%\%_LAST_BUILD_CONF%\OpenConsole.exe (
echo Could not locate the OpenConsole.exe in %OPENCON%\bin\%ARCH%\%_LAST_BUILD_CONF%. Double check that it has been built and try again.
goto :eof
)
setlocal
rem Generate a unique name, so that we can debug multiple revisions of the binary at the same time if needed.
set rand_val=%random%
set _r=%random%
set _last_build=%OPENCON%\bin\%ARCH%\%_LAST_BUILD_CONF%
set copy_dir=OpenConsole\%_r%
(xcopy /Y %_last_build%\OpenConsole.exe %TEMP%\%copy_dir%\OpenConsole.exe*) > nul
(xcopy /Y %_last_build%\OpenConsole.exe %TEMP%\%copy_dir%\conhost.exe*) > nul
(xcopy /Y %_last_build%\VtPipeTerm.exe %TEMP%\%copy_dir%\VtPipeTerm.exe*) > nul
(xcopy /Y %_last_build%\Nihilist.exe %TEMP%\%copy_dir%\Nihilist.exe*) > nul
(xcopy /Y %_last_build%\console.dll %TEMP%\%copy_dir%\console.dll*) > nul
echo Launching `%TEMP%\%copy_dir%\OpenConsole.exe %*`...
start %TEMP%\%copy_dir%\OpenConsole.exe %*
| Batchfile | 4 | hessedoneen/terminal | tools/opencon.cmd | [
"MIT"
] |
import { add } from "./other";
add(1, 2);
| ActionScript | 1 | romdotdog/assemblyscript | tests/extension/assembly/index.as | [
"Apache-2.0"
] |
type User {
name: String
birthday: Int
}
extend type User {
age: Int
}
| GraphQL | 3 | tumido/prettier | tests/format/graphql/type-extension-definition/type-extendsion-syntax.graphql | [
"MIT"
] |
# Copyright 2017 gRPC authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
cdef class Operation:
cdef void c(self) except *
cdef void un_c(self) except *
# TODO(https://github.com/grpc/grpc/issues/7950): Eliminate this!
cdef grpc_op c_op
cdef class SendInitialMetadataOperation(Operation):
cdef readonly object _initial_metadata;
cdef readonly int _flags
cdef grpc_metadata *_c_initial_metadata
cdef size_t _c_initial_metadata_count
cdef void c(self) except *
cdef void un_c(self) except *
cdef class SendMessageOperation(Operation):
cdef readonly bytes _message
cdef readonly int _flags
cdef grpc_byte_buffer *_c_message_byte_buffer
cdef void c(self) except *
cdef void un_c(self) except *
cdef class SendCloseFromClientOperation(Operation):
cdef readonly int _flags
cdef void c(self) except *
cdef void un_c(self) except *
cdef class SendStatusFromServerOperation(Operation):
cdef readonly object _trailing_metadata
cdef readonly object _code
cdef readonly object _details
cdef readonly int _flags
cdef grpc_metadata *_c_trailing_metadata
cdef size_t _c_trailing_metadata_count
cdef grpc_slice _c_details
cdef void c(self) except *
cdef void un_c(self) except *
cdef class ReceiveInitialMetadataOperation(Operation):
cdef readonly int _flags
cdef tuple _initial_metadata
cdef grpc_metadata_array _c_initial_metadata
cdef void c(self) except *
cdef void un_c(self) except *
cdef class ReceiveMessageOperation(Operation):
cdef readonly int _flags
cdef grpc_byte_buffer *_c_message_byte_buffer
cdef bytes _message
cdef void c(self) except *
cdef void un_c(self) except *
cdef class ReceiveStatusOnClientOperation(Operation):
cdef readonly int _flags
cdef grpc_metadata_array _c_trailing_metadata
cdef grpc_status_code _c_code
cdef grpc_slice _c_details
cdef const char* _c_error_string
cdef tuple _trailing_metadata
cdef object _code
cdef str _details
cdef str _error_string
cdef void c(self) except *
cdef void un_c(self) except *
cdef class ReceiveCloseOnServerOperation(Operation):
cdef readonly int _flags
cdef object _cancelled
cdef int _c_cancelled
cdef void c(self) except *
cdef void un_c(self) except *
| Cython | 3 | samotarnik/grpc | src/python/grpcio/grpc/_cython/_cygrpc/operation.pxd.pxi | [
"Apache-2.0"
] |
CNoise noise => AmbPan3 pan => dac;
0.1 => noise.gain;
"pink" => noise.mode;
pi/2 => pan.elevation;
while(true)
{
//pan.azimuth()+pi/1024 => pan.azimuth;
//pan.elevation() + pi/512 => pan.elevation;
5::ms => now;
}
| ChucK | 2 | ccdarabundit/chugins | AmbPan/AmbPan3-test.ck | [
"MIT"
] |
package com.baeldung.maven.plugins;
import java.util.ArrayList;
import java.util.List;
public class Data {
List<String> textList = new ArrayList();
public void addText(String text) {
textList.add(text);
}
public List getTextList() {
return this.textList;
}
}
| Java | 3 | zeesh49/tutorials | maven/src/main/java/com/baeldung/maven/plugins/Data.java | [
"MIT"
] |
class_name Combatant
extends Node
export(int) var damage = 1
export(int) var defense = 1
var active = false setget set_active
signal turn_finished
func set_active(value):
active = value
set_process(value)
set_process_input(value)
if not active:
return
if $Health.armor >= $Health.base_armor + defense:
$Health.armor = $Health.base_armor
func attack(target):
target.take_damage(damage)
emit_signal("turn_finished")
func consume(item):
item.use(self)
emit_signal("turn_finished")
func defend():
$Health.armor += defense
emit_signal("turn_finished")
func flee():
emit_signal("turn_finished")
func take_damage(damage_to_take):
$Health.take_damage(damage_to_take)
$Sprite/AnimationPlayer.play("take_damage")
| GDScript | 4 | jonbonazza/godot-demo-projects | 2d/role_playing_game/combat/combatants/Combatant.gd | [
"MIT"
] |
using System;
using System.IO;
using System.Reflection;
using System.Threading.Tasks;
namespace Ryujinx.Common
{
public static class EmbeddedResources
{
private readonly static Assembly ResourceAssembly;
static EmbeddedResources()
{
ResourceAssembly = Assembly.GetAssembly(typeof(EmbeddedResources));
}
public static byte[] Read(string filename)
{
var (assembly, path) = ResolveManifestPath(filename);
return Read(assembly, path);
}
public static Task<byte[]> ReadAsync(string filename)
{
var (assembly, path) = ResolveManifestPath(filename);
return ReadAsync(assembly, path);
}
public static byte[] Read(Assembly assembly, string filename)
{
using (var stream = GetStream(assembly, filename))
{
if (stream == null)
{
return null;
}
using (var mem = new MemoryStream())
{
stream.CopyTo(mem);
return mem.ToArray();
}
}
}
public async static Task<byte[]> ReadAsync(Assembly assembly, string filename)
{
using (var stream = GetStream(assembly, filename))
{
if (stream == null)
{
return null;
}
using (var mem = new MemoryStream())
{
await stream.CopyToAsync(mem);
return mem.ToArray();
}
}
}
public static string ReadAllText(string filename)
{
var (assembly, path) = ResolveManifestPath(filename);
return ReadAllText(assembly, path);
}
public static Task<string> ReadAllTextAsync(string filename)
{
var (assembly, path) = ResolveManifestPath(filename);
return ReadAllTextAsync(assembly, path);
}
public static string ReadAllText(Assembly assembly, string filename)
{
using (var stream = GetStream(assembly, filename))
{
if (stream == null)
{
return null;
}
using (var reader = new StreamReader(stream))
{
return reader.ReadToEnd();
}
}
}
public async static Task<string> ReadAllTextAsync(Assembly assembly, string filename)
{
using (var stream = GetStream(assembly, filename))
{
if (stream == null)
{
return null;
}
using (var reader = new StreamReader(stream))
{
return await reader.ReadToEndAsync();
}
}
}
public static Stream GetStream(string filename)
{
var (assembly, path) = ResolveManifestPath(filename);
return GetStream(assembly, path);
}
public static Stream GetStream(Assembly assembly, string filename)
{
var namespace_ = assembly.GetName().Name;
var manifestUri = namespace_ + "." + filename.Replace('/', '.');
var stream = assembly.GetManifestResourceStream(manifestUri);
return stream;
}
private static (Assembly, string) ResolveManifestPath(string filename)
{
var segments = filename.Split(new[] { '/' }, 2, StringSplitOptions.RemoveEmptyEntries);
if (segments.Length >= 2)
{
foreach (var assembly in AppDomain.CurrentDomain.GetAssemblies())
{
if (assembly.GetName().Name == segments[0])
{
return (assembly, segments[1]);
}
}
}
return (ResourceAssembly, filename);
}
}
} | C# | 5 | BSoDGamingYT/Ryujinx | Ryujinx.Common/Utilities/EmbeddedResources.cs | [
"MIT"
] |
Mozilla/5.0 (Linux; Android 6.0.1; Cube Talk8x (U27GT-C8) Build/M4B30X; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/51.0.2704.106 Safari/537.36
Mozilla/5.0 (Linux; Android 6.0.1; Cube Talk8x (U27GT-C8) Build/M4B30X; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/51.0.2704.106 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 4.4.2; U51GT-C8 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Safari/537.36
| Text | 0 | 5tr1x/SecLists | Fuzzing/User-Agents/operating-platform/samsung-gt-c8.txt | [
"MIT"
] |
Gramatika
0 $accept: program $end
1 program: declaration_list
2 declaration_list: declaration_list declaration
3 | declaration
4 declaration: var_declaration
5 | fun_declaration
6 var_declaration: type_specifier ID ';'
7 | type_specifier ID '[' NUM ']' ';'
8 type_specifier: INT
9 | VOID
10 fun_declaration: type_specifier ID '(' params ')' compound_stmt
11 params: param_list
12 | VOID
13 param_list: param_list ',' param
14 | param
15 param: type_specifier ID
16 | type_specifier ID '[' ']'
17 compound_stmt: '{' local_declarations statement_list '}'
18 local_declarations: local_declarations var_declaration
19 | %empty
20 statement_list: %empty
21 | statement_list statement
22 statement: expression_stmt
23 | compound_stmt
24 | selection_stmt
25 | iteration_stmt
26 | return_stmt
27 expression_stmt: expression ';'
28 | ';'
29 selection_stmt: IF '(' expression ')' statement
30 | IF '(' expression ')' statement ELSE statement
31 iteration_stmt: WHILE '(' expression ')' statement
32 return_stmt: RETURN ';'
33 | RETURN expression ';'
34 expression: var '=' expression
35 | simple_expression
36 var: ID
37 | ID '[' expression ']'
38 simple_expression: additive_expression relop additive_expression
39 | additive_expression
40 relop: LTE
41 | '<'
42 | '>'
43 | GTE
44 | EQUAL
45 | NOTEQUAL
46 additive_expression: additive_expression addop term
47 | term
48 addop: '+'
49 | '-'
50 term: term mulop factor
51 | factor
52 mulop: '*'
53 | '/'
54 factor: '(' expression ')'
55 | var
56 | call
57 | NUM
58 call: ID '(' args ')'
59 args: arg_list
60 | %empty
61 arg_list: arg_list ',' expression
62 | expression
Terminály s pravidly, ve kterých se objevují
$end (0) 0
'(' (40) 10 29 30 31 54 58
')' (41) 10 29 30 31 54 58
'*' (42) 52
'+' (43) 48
',' (44) 13 61
'-' (45) 49
'/' (47) 53
';' (59) 6 7 27 28 32 33
'<' (60) 41
'=' (61) 34
'>' (62) 42
'[' (91) 7 16 37
']' (93) 7 16 37
'{' (123) 17
'}' (125) 17
error (256)
ELSE (258) 30
IF (259) 29 30
INT (260) 8
RETURN (261) 32 33
VOID (262) 9 12
WHILE (263) 31
ID (264) 6 7 10 15 16 36 37 58
NUM (265) 7 57
LTE (266) 40
GTE (267) 43
EQUAL (268) 44
NOTEQUAL (269) 45
LOWER_THAN_ELSE (270)
Neterminály s pravidly, ve kterých se objevují
$accept (31)
vlevo: 0
program (32)
vlevo: 1, vpravo: 0
declaration_list (33)
vlevo: 2 3, vpravo: 1 2
declaration (34)
vlevo: 4 5, vpravo: 2 3
var_declaration (35)
vlevo: 6 7, vpravo: 4 18
type_specifier (36)
vlevo: 8 9, vpravo: 6 7 10 15 16
fun_declaration (37)
vlevo: 10, vpravo: 5
params (38)
vlevo: 11 12, vpravo: 10
param_list (39)
vlevo: 13 14, vpravo: 11 13
param (40)
vlevo: 15 16, vpravo: 13 14
compound_stmt (41)
vlevo: 17, vpravo: 10 23
local_declarations (42)
vlevo: 18 19, vpravo: 17 18
statement_list (43)
vlevo: 20 21, vpravo: 17 21
statement (44)
vlevo: 22 23 24 25 26, vpravo: 21 29 30 31
expression_stmt (45)
vlevo: 27 28, vpravo: 22
selection_stmt (46)
vlevo: 29 30, vpravo: 24
iteration_stmt (47)
vlevo: 31, vpravo: 25
return_stmt (48)
vlevo: 32 33, vpravo: 26
expression (49)
vlevo: 34 35, vpravo: 27 29 30 31 33 34 37 54 61 62
var (50)
vlevo: 36 37, vpravo: 34 55
simple_expression (51)
vlevo: 38 39, vpravo: 35
relop (52)
vlevo: 40 41 42 43 44 45, vpravo: 38
additive_expression (53)
vlevo: 46 47, vpravo: 38 39 46
addop (54)
vlevo: 48 49, vpravo: 46
term (55)
vlevo: 50 51, vpravo: 46 47 50
mulop (56)
vlevo: 52 53, vpravo: 50
factor (57)
vlevo: 54 55 56 57, vpravo: 50 51
call (58)
vlevo: 58, vpravo: 56
args (59)
vlevo: 59 60, vpravo: 58
arg_list (60)
vlevo: 61 62, vpravo: 59 61
State 0
0 $accept: . program $end
1 program: . declaration_list
2 declaration_list: . declaration_list declaration
3 | . declaration
4 declaration: . var_declaration
5 | . fun_declaration
6 var_declaration: . type_specifier ID ';'
7 | . type_specifier ID '[' NUM ']' ';'
8 type_specifier: . INT
9 | . VOID
10 fun_declaration: . type_specifier ID '(' params ')' compound_stmt
INT posunout a přejít do stavu 1
VOID posunout a přejít do stavu 2
program přejít do stavu 3
declaration_list přejít do stavu 4
declaration přejít do stavu 5
var_declaration přejít do stavu 6
type_specifier přejít do stavu 7
fun_declaration přejít do stavu 8
State 1
8 type_specifier: INT .
$výchozí reduce using rule 8 (type_specifier)
State 2
9 type_specifier: VOID .
$výchozí reduce using rule 9 (type_specifier)
State 3
0 $accept: program . $end
$end posunout a přejít do stavu 9
State 4
1 program: declaration_list . [$end]
2 declaration_list: declaration_list . declaration
4 declaration: . var_declaration
5 | . fun_declaration
6 var_declaration: . type_specifier ID ';'
7 | . type_specifier ID '[' NUM ']' ';'
8 type_specifier: . INT
9 | . VOID
10 fun_declaration: . type_specifier ID '(' params ')' compound_stmt
INT posunout a přejít do stavu 1
VOID posunout a přejít do stavu 2
$výchozí reduce using rule 1 (program)
declaration přejít do stavu 10
var_declaration přejít do stavu 6
type_specifier přejít do stavu 7
fun_declaration přejít do stavu 8
State 5
3 declaration_list: declaration .
$výchozí reduce using rule 3 (declaration_list)
State 6
4 declaration: var_declaration .
$výchozí reduce using rule 4 (declaration)
State 7
6 var_declaration: type_specifier . ID ';'
7 | type_specifier . ID '[' NUM ']' ';'
10 fun_declaration: type_specifier . ID '(' params ')' compound_stmt
ID posunout a přejít do stavu 11
State 8
5 declaration: fun_declaration .
$výchozí reduce using rule 5 (declaration)
State 9
0 $accept: program $end .
$výchozí přijmout
State 10
2 declaration_list: declaration_list declaration .
$výchozí reduce using rule 2 (declaration_list)
State 11
6 var_declaration: type_specifier ID . ';'
7 | type_specifier ID . '[' NUM ']' ';'
10 fun_declaration: type_specifier ID . '(' params ')' compound_stmt
';' posunout a přejít do stavu 12
'[' posunout a přejít do stavu 13
'(' posunout a přejít do stavu 14
State 12
6 var_declaration: type_specifier ID ';' .
$výchozí reduce using rule 6 (var_declaration)
State 13
7 var_declaration: type_specifier ID '[' . NUM ']' ';'
NUM posunout a přejít do stavu 15
State 14
8 type_specifier: . INT
9 | . VOID
10 fun_declaration: type_specifier ID '(' . params ')' compound_stmt
11 params: . param_list
12 | . VOID
13 param_list: . param_list ',' param
14 | . param
15 param: . type_specifier ID
16 | . type_specifier ID '[' ']'
INT posunout a přejít do stavu 1
VOID posunout a přejít do stavu 16
type_specifier přejít do stavu 17
params přejít do stavu 18
param_list přejít do stavu 19
param přejít do stavu 20
State 15
7 var_declaration: type_specifier ID '[' NUM . ']' ';'
']' posunout a přejít do stavu 21
State 16
9 type_specifier: VOID . [ID]
12 params: VOID . [')']
')' reduce using rule 12 (params)
$výchozí reduce using rule 9 (type_specifier)
State 17
15 param: type_specifier . ID
16 | type_specifier . ID '[' ']'
ID posunout a přejít do stavu 22
State 18
10 fun_declaration: type_specifier ID '(' params . ')' compound_stmt
')' posunout a přejít do stavu 23
State 19
11 params: param_list . [')']
13 param_list: param_list . ',' param
',' posunout a přejít do stavu 24
$výchozí reduce using rule 11 (params)
State 20
14 param_list: param .
$výchozí reduce using rule 14 (param_list)
State 21
7 var_declaration: type_specifier ID '[' NUM ']' . ';'
';' posunout a přejít do stavu 25
State 22
15 param: type_specifier ID . [')', ',']
16 | type_specifier ID . '[' ']'
'[' posunout a přejít do stavu 26
$výchozí reduce using rule 15 (param)
State 23
10 fun_declaration: type_specifier ID '(' params ')' . compound_stmt
17 compound_stmt: . '{' local_declarations statement_list '}'
'{' posunout a přejít do stavu 27
compound_stmt přejít do stavu 28
State 24
8 type_specifier: . INT
9 | . VOID
13 param_list: param_list ',' . param
15 param: . type_specifier ID
16 | . type_specifier ID '[' ']'
INT posunout a přejít do stavu 1
VOID posunout a přejít do stavu 2
type_specifier přejít do stavu 17
param přejít do stavu 29
State 25
7 var_declaration: type_specifier ID '[' NUM ']' ';' .
$výchozí reduce using rule 7 (var_declaration)
State 26
16 param: type_specifier ID '[' . ']'
']' posunout a přejít do stavu 30
State 27
17 compound_stmt: '{' . local_declarations statement_list '}'
18 local_declarations: . local_declarations var_declaration
19 | . %empty
$výchozí reduce using rule 19 (local_declarations)
local_declarations přejít do stavu 31
State 28
10 fun_declaration: type_specifier ID '(' params ')' compound_stmt .
$výchozí reduce using rule 10 (fun_declaration)
State 29
13 param_list: param_list ',' param .
$výchozí reduce using rule 13 (param_list)
State 30
16 param: type_specifier ID '[' ']' .
$výchozí reduce using rule 16 (param)
State 31
6 var_declaration: . type_specifier ID ';'
7 | . type_specifier ID '[' NUM ']' ';'
8 type_specifier: . INT
9 | . VOID
17 compound_stmt: '{' local_declarations . statement_list '}'
18 local_declarations: local_declarations . var_declaration
20 statement_list: . %empty [IF, RETURN, WHILE, ID, NUM, ';', '(', '{', '}']
21 | . statement_list statement
INT posunout a přejít do stavu 1
VOID posunout a přejít do stavu 2
$výchozí reduce using rule 20 (statement_list)
var_declaration přejít do stavu 32
type_specifier přejít do stavu 33
statement_list přejít do stavu 34
State 32
18 local_declarations: local_declarations var_declaration .
$výchozí reduce using rule 18 (local_declarations)
State 33
6 var_declaration: type_specifier . ID ';'
7 | type_specifier . ID '[' NUM ']' ';'
ID posunout a přejít do stavu 35
State 34
17 compound_stmt: . '{' local_declarations statement_list '}'
17 | '{' local_declarations statement_list . '}'
21 statement_list: statement_list . statement
22 statement: . expression_stmt
23 | . compound_stmt
24 | . selection_stmt
25 | . iteration_stmt
26 | . return_stmt
27 expression_stmt: . expression ';'
28 | . ';'
29 selection_stmt: . IF '(' expression ')' statement
30 | . IF '(' expression ')' statement ELSE statement
31 iteration_stmt: . WHILE '(' expression ')' statement
32 return_stmt: . RETURN ';'
33 | . RETURN expression ';'
34 expression: . var '=' expression
35 | . simple_expression
36 var: . ID
37 | . ID '[' expression ']'
38 simple_expression: . additive_expression relop additive_expression
39 | . additive_expression
46 additive_expression: . additive_expression addop term
47 | . term
50 term: . term mulop factor
51 | . factor
54 factor: . '(' expression ')'
55 | . var
56 | . call
57 | . NUM
58 call: . ID '(' args ')'
IF posunout a přejít do stavu 36
RETURN posunout a přejít do stavu 37
WHILE posunout a přejít do stavu 38
ID posunout a přejít do stavu 39
NUM posunout a přejít do stavu 40
';' posunout a přejít do stavu 41
'(' posunout a přejít do stavu 42
'{' posunout a přejít do stavu 27
'}' posunout a přejít do stavu 43
compound_stmt přejít do stavu 44
statement přejít do stavu 45
expression_stmt přejít do stavu 46
selection_stmt přejít do stavu 47
iteration_stmt přejít do stavu 48
return_stmt přejít do stavu 49
expression přejít do stavu 50
var přejít do stavu 51
simple_expression přejít do stavu 52
additive_expression přejít do stavu 53
term přejít do stavu 54
factor přejít do stavu 55
call přejít do stavu 56
State 35
6 var_declaration: type_specifier ID . ';'
7 | type_specifier ID . '[' NUM ']' ';'
';' posunout a přejít do stavu 12
'[' posunout a přejít do stavu 13
State 36
29 selection_stmt: IF . '(' expression ')' statement
30 | IF . '(' expression ')' statement ELSE statement
'(' posunout a přejít do stavu 57
State 37
32 return_stmt: RETURN . ';'
33 | RETURN . expression ';'
34 expression: . var '=' expression
35 | . simple_expression
36 var: . ID
37 | . ID '[' expression ']'
38 simple_expression: . additive_expression relop additive_expression
39 | . additive_expression
46 additive_expression: . additive_expression addop term
47 | . term
50 term: . term mulop factor
51 | . factor
54 factor: . '(' expression ')'
55 | . var
56 | . call
57 | . NUM
58 call: . ID '(' args ')'
ID posunout a přejít do stavu 39
NUM posunout a přejít do stavu 40
';' posunout a přejít do stavu 58
'(' posunout a přejít do stavu 42
expression přejít do stavu 59
var přejít do stavu 51
simple_expression přejít do stavu 52
additive_expression přejít do stavu 53
term přejít do stavu 54
factor přejít do stavu 55
call přejít do stavu 56
State 38
31 iteration_stmt: WHILE . '(' expression ')' statement
'(' posunout a přejít do stavu 60
State 39
36 var: ID . [LTE, GTE, EQUAL, NOTEQUAL, ';', ']', ')', ',', '=', '<', '>', '+', '-', '*', '/']
37 | ID . '[' expression ']'
58 call: ID . '(' args ')'
'[' posunout a přejít do stavu 61
'(' posunout a přejít do stavu 62
$výchozí reduce using rule 36 (var)
State 40
57 factor: NUM .
$výchozí reduce using rule 57 (factor)
State 41
28 expression_stmt: ';' .
$výchozí reduce using rule 28 (expression_stmt)
State 42
34 expression: . var '=' expression
35 | . simple_expression
36 var: . ID
37 | . ID '[' expression ']'
38 simple_expression: . additive_expression relop additive_expression
39 | . additive_expression
46 additive_expression: . additive_expression addop term
47 | . term
50 term: . term mulop factor
51 | . factor
54 factor: . '(' expression ')'
54 | '(' . expression ')'
55 | . var
56 | . call
57 | . NUM
58 call: . ID '(' args ')'
ID posunout a přejít do stavu 39
NUM posunout a přejít do stavu 40
'(' posunout a přejít do stavu 42
expression přejít do stavu 63
var přejít do stavu 51
simple_expression přejít do stavu 52
additive_expression přejít do stavu 53
term přejít do stavu 54
factor přejít do stavu 55
call přejít do stavu 56
State 43
17 compound_stmt: '{' local_declarations statement_list '}' .
$výchozí reduce using rule 17 (compound_stmt)
State 44
23 statement: compound_stmt .
$výchozí reduce using rule 23 (statement)
State 45
21 statement_list: statement_list statement .
$výchozí reduce using rule 21 (statement_list)
State 46
22 statement: expression_stmt .
$výchozí reduce using rule 22 (statement)
State 47
24 statement: selection_stmt .
$výchozí reduce using rule 24 (statement)
State 48
25 statement: iteration_stmt .
$výchozí reduce using rule 25 (statement)
State 49
26 statement: return_stmt .
$výchozí reduce using rule 26 (statement)
State 50
27 expression_stmt: expression . ';'
';' posunout a přejít do stavu 64
State 51
34 expression: var . '=' expression
55 factor: var . [LTE, GTE, EQUAL, NOTEQUAL, ';', ']', ')', ',', '<', '>', '+', '-', '*', '/']
'=' posunout a přejít do stavu 65
$výchozí reduce using rule 55 (factor)
State 52
35 expression: simple_expression .
$výchozí reduce using rule 35 (expression)
State 53
38 simple_expression: additive_expression . relop additive_expression
39 | additive_expression . [';', ']', ')', ',']
40 relop: . LTE
41 | . '<'
42 | . '>'
43 | . GTE
44 | . EQUAL
45 | . NOTEQUAL
46 additive_expression: additive_expression . addop term
48 addop: . '+'
49 | . '-'
LTE posunout a přejít do stavu 66
GTE posunout a přejít do stavu 67
EQUAL posunout a přejít do stavu 68
NOTEQUAL posunout a přejít do stavu 69
'<' posunout a přejít do stavu 70
'>' posunout a přejít do stavu 71
'+' posunout a přejít do stavu 72
'-' posunout a přejít do stavu 73
$výchozí reduce using rule 39 (simple_expression)
relop přejít do stavu 74
addop přejít do stavu 75
State 54
47 additive_expression: term . [LTE, GTE, EQUAL, NOTEQUAL, ';', ']', ')', ',', '<', '>', '+', '-']
50 term: term . mulop factor
52 mulop: . '*'
53 | . '/'
'*' posunout a přejít do stavu 76
'/' posunout a přejít do stavu 77
$výchozí reduce using rule 47 (additive_expression)
mulop přejít do stavu 78
State 55
51 term: factor .
$výchozí reduce using rule 51 (term)
State 56
56 factor: call .
$výchozí reduce using rule 56 (factor)
State 57
29 selection_stmt: IF '(' . expression ')' statement
30 | IF '(' . expression ')' statement ELSE statement
34 expression: . var '=' expression
35 | . simple_expression
36 var: . ID
37 | . ID '[' expression ']'
38 simple_expression: . additive_expression relop additive_expression
39 | . additive_expression
46 additive_expression: . additive_expression addop term
47 | . term
50 term: . term mulop factor
51 | . factor
54 factor: . '(' expression ')'
55 | . var
56 | . call
57 | . NUM
58 call: . ID '(' args ')'
ID posunout a přejít do stavu 39
NUM posunout a přejít do stavu 40
'(' posunout a přejít do stavu 42
expression přejít do stavu 79
var přejít do stavu 51
simple_expression přejít do stavu 52
additive_expression přejít do stavu 53
term přejít do stavu 54
factor přejít do stavu 55
call přejít do stavu 56
State 58
32 return_stmt: RETURN ';' .
$výchozí reduce using rule 32 (return_stmt)
State 59
33 return_stmt: RETURN expression . ';'
';' posunout a přejít do stavu 80
State 60
31 iteration_stmt: WHILE '(' . expression ')' statement
34 expression: . var '=' expression
35 | . simple_expression
36 var: . ID
37 | . ID '[' expression ']'
38 simple_expression: . additive_expression relop additive_expression
39 | . additive_expression
46 additive_expression: . additive_expression addop term
47 | . term
50 term: . term mulop factor
51 | . factor
54 factor: . '(' expression ')'
55 | . var
56 | . call
57 | . NUM
58 call: . ID '(' args ')'
ID posunout a přejít do stavu 39
NUM posunout a přejít do stavu 40
'(' posunout a přejít do stavu 42
expression přejít do stavu 81
var přejít do stavu 51
simple_expression přejít do stavu 52
additive_expression přejít do stavu 53
term přejít do stavu 54
factor přejít do stavu 55
call přejít do stavu 56
State 61
34 expression: . var '=' expression
35 | . simple_expression
36 var: . ID
37 | . ID '[' expression ']'
37 | ID '[' . expression ']'
38 simple_expression: . additive_expression relop additive_expression
39 | . additive_expression
46 additive_expression: . additive_expression addop term
47 | . term
50 term: . term mulop factor
51 | . factor
54 factor: . '(' expression ')'
55 | . var
56 | . call
57 | . NUM
58 call: . ID '(' args ')'
ID posunout a přejít do stavu 39
NUM posunout a přejít do stavu 40
'(' posunout a přejít do stavu 42
expression přejít do stavu 82
var přejít do stavu 51
simple_expression přejít do stavu 52
additive_expression přejít do stavu 53
term přejít do stavu 54
factor přejít do stavu 55
call přejít do stavu 56
State 62
34 expression: . var '=' expression
35 | . simple_expression
36 var: . ID
37 | . ID '[' expression ']'
38 simple_expression: . additive_expression relop additive_expression
39 | . additive_expression
46 additive_expression: . additive_expression addop term
47 | . term
50 term: . term mulop factor
51 | . factor
54 factor: . '(' expression ')'
55 | . var
56 | . call
57 | . NUM
58 call: . ID '(' args ')'
58 | ID '(' . args ')'
59 args: . arg_list
60 | . %empty [')']
61 arg_list: . arg_list ',' expression
62 | . expression
ID posunout a přejít do stavu 39
NUM posunout a přejít do stavu 40
'(' posunout a přejít do stavu 42
$výchozí reduce using rule 60 (args)
expression přejít do stavu 83
var přejít do stavu 51
simple_expression přejít do stavu 52
additive_expression přejít do stavu 53
term přejít do stavu 54
factor přejít do stavu 55
call přejít do stavu 56
args přejít do stavu 84
arg_list přejít do stavu 85
State 63
54 factor: '(' expression . ')'
')' posunout a přejít do stavu 86
State 64
27 expression_stmt: expression ';' .
$výchozí reduce using rule 27 (expression_stmt)
State 65
34 expression: . var '=' expression
34 | var '=' . expression
35 | . simple_expression
36 var: . ID
37 | . ID '[' expression ']'
38 simple_expression: . additive_expression relop additive_expression
39 | . additive_expression
46 additive_expression: . additive_expression addop term
47 | . term
50 term: . term mulop factor
51 | . factor
54 factor: . '(' expression ')'
55 | . var
56 | . call
57 | . NUM
58 call: . ID '(' args ')'
ID posunout a přejít do stavu 39
NUM posunout a přejít do stavu 40
'(' posunout a přejít do stavu 42
expression přejít do stavu 87
var přejít do stavu 51
simple_expression přejít do stavu 52
additive_expression přejít do stavu 53
term přejít do stavu 54
factor přejít do stavu 55
call přejít do stavu 56
State 66
40 relop: LTE .
$výchozí reduce using rule 40 (relop)
State 67
43 relop: GTE .
$výchozí reduce using rule 43 (relop)
State 68
44 relop: EQUAL .
$výchozí reduce using rule 44 (relop)
State 69
45 relop: NOTEQUAL .
$výchozí reduce using rule 45 (relop)
State 70
41 relop: '<' .
$výchozí reduce using rule 41 (relop)
State 71
42 relop: '>' .
$výchozí reduce using rule 42 (relop)
State 72
48 addop: '+' .
$výchozí reduce using rule 48 (addop)
State 73
49 addop: '-' .
$výchozí reduce using rule 49 (addop)
State 74
36 var: . ID
37 | . ID '[' expression ']'
38 simple_expression: additive_expression relop . additive_expression
46 additive_expression: . additive_expression addop term
47 | . term
50 term: . term mulop factor
51 | . factor
54 factor: . '(' expression ')'
55 | . var
56 | . call
57 | . NUM
58 call: . ID '(' args ')'
ID posunout a přejít do stavu 39
NUM posunout a přejít do stavu 40
'(' posunout a přejít do stavu 42
var přejít do stavu 88
additive_expression přejít do stavu 89
term přejít do stavu 54
factor přejít do stavu 55
call přejít do stavu 56
State 75
36 var: . ID
37 | . ID '[' expression ']'
46 additive_expression: additive_expression addop . term
50 term: . term mulop factor
51 | . factor
54 factor: . '(' expression ')'
55 | . var
56 | . call
57 | . NUM
58 call: . ID '(' args ')'
ID posunout a přejít do stavu 39
NUM posunout a přejít do stavu 40
'(' posunout a přejít do stavu 42
var přejít do stavu 88
term přejít do stavu 90
factor přejít do stavu 55
call přejít do stavu 56
State 76
52 mulop: '*' .
$výchozí reduce using rule 52 (mulop)
State 77
53 mulop: '/' .
$výchozí reduce using rule 53 (mulop)
State 78
36 var: . ID
37 | . ID '[' expression ']'
50 term: term mulop . factor
54 factor: . '(' expression ')'
55 | . var
56 | . call
57 | . NUM
58 call: . ID '(' args ')'
ID posunout a přejít do stavu 39
NUM posunout a přejít do stavu 40
'(' posunout a přejít do stavu 42
var přejít do stavu 88
factor přejít do stavu 91
call přejít do stavu 56
State 79
29 selection_stmt: IF '(' expression . ')' statement
30 | IF '(' expression . ')' statement ELSE statement
')' posunout a přejít do stavu 92
State 80
33 return_stmt: RETURN expression ';' .
$výchozí reduce using rule 33 (return_stmt)
State 81
31 iteration_stmt: WHILE '(' expression . ')' statement
')' posunout a přejít do stavu 93
State 82
37 var: ID '[' expression . ']'
']' posunout a přejít do stavu 94
State 83
62 arg_list: expression .
$výchozí reduce using rule 62 (arg_list)
State 84
58 call: ID '(' args . ')'
')' posunout a přejít do stavu 95
State 85
59 args: arg_list . [')']
61 arg_list: arg_list . ',' expression
',' posunout a přejít do stavu 96
$výchozí reduce using rule 59 (args)
State 86
54 factor: '(' expression ')' .
$výchozí reduce using rule 54 (factor)
State 87
34 expression: var '=' expression .
$výchozí reduce using rule 34 (expression)
State 88
55 factor: var .
$výchozí reduce using rule 55 (factor)
State 89
38 simple_expression: additive_expression relop additive_expression . [';', ']', ')', ',']
46 additive_expression: additive_expression . addop term
48 addop: . '+'
49 | . '-'
'+' posunout a přejít do stavu 72
'-' posunout a přejít do stavu 73
$výchozí reduce using rule 38 (simple_expression)
addop přejít do stavu 75
State 90
46 additive_expression: additive_expression addop term . [LTE, GTE, EQUAL, NOTEQUAL, ';', ']', ')', ',', '<', '>', '+', '-']
50 term: term . mulop factor
52 mulop: . '*'
53 | . '/'
'*' posunout a přejít do stavu 76
'/' posunout a přejít do stavu 77
$výchozí reduce using rule 46 (additive_expression)
mulop přejít do stavu 78
State 91
50 term: term mulop factor .
$výchozí reduce using rule 50 (term)
State 92
17 compound_stmt: . '{' local_declarations statement_list '}'
22 statement: . expression_stmt
23 | . compound_stmt
24 | . selection_stmt
25 | . iteration_stmt
26 | . return_stmt
27 expression_stmt: . expression ';'
28 | . ';'
29 selection_stmt: . IF '(' expression ')' statement
29 | IF '(' expression ')' . statement
30 | . IF '(' expression ')' statement ELSE statement
30 | IF '(' expression ')' . statement ELSE statement
31 iteration_stmt: . WHILE '(' expression ')' statement
32 return_stmt: . RETURN ';'
33 | . RETURN expression ';'
34 expression: . var '=' expression
35 | . simple_expression
36 var: . ID
37 | . ID '[' expression ']'
38 simple_expression: . additive_expression relop additive_expression
39 | . additive_expression
46 additive_expression: . additive_expression addop term
47 | . term
50 term: . term mulop factor
51 | . factor
54 factor: . '(' expression ')'
55 | . var
56 | . call
57 | . NUM
58 call: . ID '(' args ')'
IF posunout a přejít do stavu 36
RETURN posunout a přejít do stavu 37
WHILE posunout a přejít do stavu 38
ID posunout a přejít do stavu 39
NUM posunout a přejít do stavu 40
';' posunout a přejít do stavu 41
'(' posunout a přejít do stavu 42
'{' posunout a přejít do stavu 27
compound_stmt přejít do stavu 44
statement přejít do stavu 97
expression_stmt přejít do stavu 46
selection_stmt přejít do stavu 47
iteration_stmt přejít do stavu 48
return_stmt přejít do stavu 49
expression přejít do stavu 50
var přejít do stavu 51
simple_expression přejít do stavu 52
additive_expression přejít do stavu 53
term přejít do stavu 54
factor přejít do stavu 55
call přejít do stavu 56
State 93
17 compound_stmt: . '{' local_declarations statement_list '}'
22 statement: . expression_stmt
23 | . compound_stmt
24 | . selection_stmt
25 | . iteration_stmt
26 | . return_stmt
27 expression_stmt: . expression ';'
28 | . ';'
29 selection_stmt: . IF '(' expression ')' statement
30 | . IF '(' expression ')' statement ELSE statement
31 iteration_stmt: . WHILE '(' expression ')' statement
31 | WHILE '(' expression ')' . statement
32 return_stmt: . RETURN ';'
33 | . RETURN expression ';'
34 expression: . var '=' expression
35 | . simple_expression
36 var: . ID
37 | . ID '[' expression ']'
38 simple_expression: . additive_expression relop additive_expression
39 | . additive_expression
46 additive_expression: . additive_expression addop term
47 | . term
50 term: . term mulop factor
51 | . factor
54 factor: . '(' expression ')'
55 | . var
56 | . call
57 | . NUM
58 call: . ID '(' args ')'
IF posunout a přejít do stavu 36
RETURN posunout a přejít do stavu 37
WHILE posunout a přejít do stavu 38
ID posunout a přejít do stavu 39
NUM posunout a přejít do stavu 40
';' posunout a přejít do stavu 41
'(' posunout a přejít do stavu 42
'{' posunout a přejít do stavu 27
compound_stmt přejít do stavu 44
statement přejít do stavu 98
expression_stmt přejít do stavu 46
selection_stmt přejít do stavu 47
iteration_stmt přejít do stavu 48
return_stmt přejít do stavu 49
expression přejít do stavu 50
var přejít do stavu 51
simple_expression přejít do stavu 52
additive_expression přejít do stavu 53
term přejít do stavu 54
factor přejít do stavu 55
call přejít do stavu 56
State 94
37 var: ID '[' expression ']' .
$výchozí reduce using rule 37 (var)
State 95
58 call: ID '(' args ')' .
$výchozí reduce using rule 58 (call)
State 96
34 expression: . var '=' expression
35 | . simple_expression
36 var: . ID
37 | . ID '[' expression ']'
38 simple_expression: . additive_expression relop additive_expression
39 | . additive_expression
46 additive_expression: . additive_expression addop term
47 | . term
50 term: . term mulop factor
51 | . factor
54 factor: . '(' expression ')'
55 | . var
56 | . call
57 | . NUM
58 call: . ID '(' args ')'
61 arg_list: arg_list ',' . expression
ID posunout a přejít do stavu 39
NUM posunout a přejít do stavu 40
'(' posunout a přejít do stavu 42
expression přejít do stavu 99
var přejít do stavu 51
simple_expression přejít do stavu 52
additive_expression přejít do stavu 53
term přejít do stavu 54
factor přejít do stavu 55
call přejít do stavu 56
State 97
29 selection_stmt: IF '(' expression ')' statement . [IF, RETURN, WHILE, ID, NUM, ';', '(', '{', '}']
30 | IF '(' expression ')' statement . ELSE statement
ELSE posunout a přejít do stavu 100
$výchozí reduce using rule 29 (selection_stmt)
Conflict between rule 29 and token ELSE resolved as shift (LOWER_THAN_ELSE < ELSE).
State 98
31 iteration_stmt: WHILE '(' expression ')' statement .
$výchozí reduce using rule 31 (iteration_stmt)
State 99
61 arg_list: arg_list ',' expression .
$výchozí reduce using rule 61 (arg_list)
State 100
17 compound_stmt: . '{' local_declarations statement_list '}'
22 statement: . expression_stmt
23 | . compound_stmt
24 | . selection_stmt
25 | . iteration_stmt
26 | . return_stmt
27 expression_stmt: . expression ';'
28 | . ';'
29 selection_stmt: . IF '(' expression ')' statement
30 | . IF '(' expression ')' statement ELSE statement
30 | IF '(' expression ')' statement ELSE . statement
31 iteration_stmt: . WHILE '(' expression ')' statement
32 return_stmt: . RETURN ';'
33 | . RETURN expression ';'
34 expression: . var '=' expression
35 | . simple_expression
36 var: . ID
37 | . ID '[' expression ']'
38 simple_expression: . additive_expression relop additive_expression
39 | . additive_expression
46 additive_expression: . additive_expression addop term
47 | . term
50 term: . term mulop factor
51 | . factor
54 factor: . '(' expression ')'
55 | . var
56 | . call
57 | . NUM
58 call: . ID '(' args ')'
IF posunout a přejít do stavu 36
RETURN posunout a přejít do stavu 37
WHILE posunout a přejít do stavu 38
ID posunout a přejít do stavu 39
NUM posunout a přejít do stavu 40
';' posunout a přejít do stavu 41
'(' posunout a přejít do stavu 42
'{' posunout a přejít do stavu 27
compound_stmt přejít do stavu 44
statement přejít do stavu 101
expression_stmt přejít do stavu 46
selection_stmt přejít do stavu 47
iteration_stmt přejít do stavu 48
return_stmt přejít do stavu 49
expression přejít do stavu 50
var přejít do stavu 51
simple_expression přejít do stavu 52
additive_expression přejít do stavu 53
term přejít do stavu 54
factor přejít do stavu 55
call přejít do stavu 56
State 101
30 selection_stmt: IF '(' expression ')' statement ELSE statement .
$výchozí reduce using rule 30 (selection_stmt)
| Bison | 5 | YKG/y | testdata/ok/so-ok.y.bison | [
"BSD-3-Clause"
] |
c sdsdotsub.f
c
c The program is a fortran wrapper for sdsdot.
c Witten by Keita Teranishi. 2/11/1998
c
subroutine sdsdotsub(n,x,incx,y,incy,dot)
c
external sdsdot
real sdsdot,dot
integer n,incx,incy
real x(*),y(*)
c
dot=sdsdot(n,x,incx,y,incy)
return
end
| FORTRAN | 4 | yatonon/dlib-face | dlib/external/cblas/sdsdotsub.f | [
"BSL-1.0"
] |
// TASKING VX-toolset for ARM
// Project linker script file
//
#if defined(__PROC_XMC4500X1024__)
#include "xmc45xx.lsl"
#elif defined(__PROC_XMC4400X512__)
#include "xmc44xx.lsl"
#elif defined(__PROC_XMC4200X256__)
#include "xmc42xx.lsl"
#else
#include <device.lsl>
#endif
section_layout ::linear
{
group heap "heap" ( size = 100 );
}
section_layout ::linear
{
group stack "stack" ( size = 2k );
}
| LSL | 3 | JVVJV/FreeRTOS | FreeRTOS/Demo/CORTEX_M4F_Infineon_XMC4000_Tasking/RTOSDemo.lsl | [
"MIT"
] |
import {Injectable} from '@angular/core';
class SomeDep {}
@Injectable()
class MyAlternateService {
}
@Injectable({providedIn: 'root', useClass: MyAlternateService, deps: [SomeDep]})
export class MyService {
}
| TypeScript | 4 | John-Cassidy/angular | packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_di/di/useclass_with_deps.ts | [
"MIT"
] |
package com.baeldung.annotations;
@interface Intervals {
Interval[] value();
}
| Java | 4 | zeesh49/tutorials | core-java-8/src/main/java/com/baeldung/annotations/Intervals.java | [
"MIT"
] |
import { Expensive } from './sharedCode'
import faker from 'faker'
// Ensure a large libraries is added so that splitChunks would trigger if enabled.
console.log(faker)
Expensive()
self.postMessage(true)
| JavaScript | 2 | blomqma/next.js | test/integration/worker-webpack5/lib/worker.js | [
"MIT"
] |
extends "res://src/Tools/ShapeDrawer.gd"
func _get_shape_points_filled(size: Vector2) -> PoolVector2Array:
var array := []
var t_of := _thickness - 1
for y in range(size.y + t_of * 2):
for x in range(size.x + t_of * 2):
array.append(Vector2(x, y))
return PoolVector2Array(array)
func _get_shape_points(size: Vector2) -> PoolVector2Array:
if _thickness == 1:
return PoolVector2Array(_get_rectangle_points(Vector2(0, 0), size))
else:
var array := []
var t_of := _thickness - 1
for i in range(1 + 2 * t_of):
array += _get_rectangle_points(Vector2(i, i), size + Vector2(2, 2) * (t_of - i))
return PoolVector2Array(array)
func _get_rectangle_points(pos: Vector2, size: Vector2) -> Array:
var array := []
var y1 = size.y + pos.y - 1
for x in range(pos.x, size.x + pos.x):
var t := Vector2(x, pos.y)
var b := Vector2(x, y1)
array.append(t)
array.append(b)
var x1 = size.x + pos.x - 1
for y in range(pos.y + 1, size.y + pos.y):
var l := Vector2(pos.x, y)
var r := Vector2(x1, y)
array.append(l)
array.append(r)
return array
| GDScript | 4 | triptych/Pixelorama | src/Tools/RectangleTool.gd | [
"MIT"
] |
# Copyright 2019 gRPC authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import enum
cdef str _GRPC_ASYNCIO_ENGINE = os.environ.get('GRPC_ASYNCIO_ENGINE', 'poller').upper()
cdef _AioState _global_aio_state = _AioState()
class AsyncIOEngine(enum.Enum):
# NOTE(lidiz) the support for custom_io_manager is removed in favor of the
# EventEngine project, which will be the only IO platform in Core.
CUSTOM_IO_MANAGER = 'custom_io_manager'
POLLER = 'poller'
cdef _default_asyncio_engine():
return AsyncIOEngine.POLLER
cdef grpc_completion_queue *global_completion_queue():
return _global_aio_state.cq.c_ptr()
cdef class _AioState:
def __cinit__(self):
self.lock = threading.RLock()
self.refcount = 0
self.engine = None
self.cq = None
cdef _initialize_poller():
# Initializes gRPC Core, must be called before other Core API
grpc_init()
# Creates the only completion queue
_global_aio_state.cq = PollerCompletionQueue()
cdef _actual_aio_initialization():
# Picks the engine for gRPC AsyncIO Stack
_global_aio_state.engine = AsyncIOEngine.__members__.get(
_GRPC_ASYNCIO_ENGINE,
_default_asyncio_engine(),
)
_LOGGER.debug('Using %s as I/O engine', _global_aio_state.engine)
# Initializes the process-level state accordingly
if _global_aio_state.engine is AsyncIOEngine.POLLER:
_initialize_poller()
else:
raise ValueError('Unsupported engine type [%s]' % _global_aio_state.engine)
def _grpc_shutdown_wrapper(_):
"""A thin Python wrapper of Core's shutdown function.
Define functions are not allowed in "cdef" functions, and Cython complains
about a simple lambda with a C function.
"""
grpc_shutdown()
cdef _actual_aio_shutdown():
if _global_aio_state.engine is AsyncIOEngine.POLLER:
(<PollerCompletionQueue>_global_aio_state.cq).shutdown()
grpc_shutdown()
else:
raise ValueError('Unsupported engine type [%s]' % _global_aio_state.engine)
cdef _initialize_per_loop():
cdef object loop = get_working_loop()
if _global_aio_state.engine is AsyncIOEngine.POLLER:
_global_aio_state.cq.bind_loop(loop)
cpdef init_grpc_aio():
"""Initializes the gRPC AsyncIO module.
Expected to be invoked on critical class constructors.
E.g., AioChannel, AioServer.
"""
with _global_aio_state.lock:
_global_aio_state.refcount += 1
if _global_aio_state.refcount == 1:
_actual_aio_initialization()
_initialize_per_loop()
cpdef shutdown_grpc_aio():
"""Shuts down the gRPC AsyncIO module.
Expected to be invoked on critical class destructors.
E.g., AioChannel, AioServer.
"""
with _global_aio_state.lock:
assert _global_aio_state.refcount > 0
_global_aio_state.refcount -= 1
if not _global_aio_state.refcount:
_actual_aio_shutdown()
| Cython | 4 | warlock135/grpc | src/python/grpcio/grpc/_cython/_cygrpc/aio/grpc_aio.pyx.pxi | [
"Apache-2.0"
] |
include sys/types, sys/stat, unistd
include fcntl
import unistd
open: extern func(CString, Int) -> Int
PIPE_BUF: extern Int
STDIN_FILENO : extern FileDescriptor
STDOUT_FILENO: extern FileDescriptor
STDERR_FILENO: extern FileDescriptor
// FIXME deprecated ? looks like an ancestor of File
FileDescriptor: cover from Int {
write: func ~string (str: String) -> Int {
write(str toCString(), str size)
}
read: func ~evilAlloc (len: Int) -> Pointer {
buf := gc_malloc(len)
read(buf, len) // todo: check errors
return buf
}
write: extern(write) func(Pointer, Int) -> Int
read: extern(read) func(Pointer, Int) -> Int
close: extern(close) func -> Int
/*
dup2: func(fd: FileDescriptor) -> FileDescriptor {
return dup2(This, fd)
}
*/
_errMsg: func(var: Int, funcName: String) {
if (var < 0) {
printf("Error in FileDescriptor : %s\n", funcName toCString())
}
}
setNonBlocking: func {
version (unix || apple) {
flags := fcntl(this, F_GETFL, 0)
flags |= O_NONBLOCK
fcntl(this, F_SETFL, flags)
}
}
setBlocking: func {
version (unix || apple) {
flags := fcntl(this, F_GETFL, 0)
flags &= ~O_NONBLOCK
fcntl(this, F_SETFL, flags)
}
}
}
version (unix || apple) {
F_SETFL, F_GETFL: extern Int
O_NONBLOCK: extern Int
fcntl: extern func (FileDescriptor, Int, Int) -> Int
}
| ooc | 4 | fredrikbryntesson/launchtest | sdk/os/FileDescriptor.ooc | [
"MIT"
] |
(* ****** ****** *)
(*
**
** HX-2018-01:
** For implementing
** broadcast-based sessions
** that are dynamically typed
**
*)
(* ****** ****** *)
#include
"share/atspre_staload.hats"
#include
"share\
/atspre_staload_libats_ML.hats"
(* ****** ****** *)
//
#staload
UN = "prelude/SATS/unsafe.sats"
//
(* ****** ****** *)
#staload "./../SATS/basics.sats"
(* ****** ****** *)
//
typedef role = int
//
(* ****** ****** *)
//
implement
print_ssdt(dt) =
fprint_ssdt(stdout_ref, dt)
implement
prerr_ssdt(ssdt) =
fprint_ssdt(stderr_ref, ssdt)
//
implement
fprint_ssdt
(out, ssdt0) =
(
case+ ssdt0 of
//
| SSDTint() =>
fprint(out, "SSDTint()")
//
| SSDTbool() =>
fprint(out, "SSDTbool()")
//
| SSDTdouble() =>
fprint(out, "SSDTdouble()")
| SSDTstring() =>
fprint(out, "SSDTstring()")
//
| SSDTlist(ssdt1) =>
fprint!(out, "SSDTlist(", ssdt1, ")")
//
) (* end of [fprint_ssdt] *)
//
(* ****** ****** *)
implement
print_prtcl(prot) =
fprint_prtcl(stdout_ref, prot)
implement
prerr_prtcl(prot) =
fprint_prtcl(stderr_ref, prot)
(* ****** ****** *)
implement
fprint_val<prtcl> = fprint_prtcl
(* ****** ****** *)
implement
fprint_prtcl
(out, prot0) =
(
case+ prot0 of
//
| PRTCLnil() =>
fprint(out, "PRTCLnil()")
//
| PRTCLbmsg(r, ssdt) =>
fprint!(out, "PRTCLbmsg(", r, ", ", ssdt, ")")
//
| PRTCLlazy(lprot) =>
fprint!(out, "PRTCLlazy(", "...", ")")
//
| PRTCLjoin(prots) =>
fprint!(out, "PRTCLjoin(", prots, ")")
//
| PRTCLaconj(r, prots) =>
fprint!(out, "PRTCLaconj(", r, ", ", "...", ")")
| PRTCLmconj(r, prots) =>
fprint!(out, "PRTCLmconj(", r, ", ", "...", ")")
)
//
// end of [ssprot]
(* ****** ****** *)
implement
prtcl_join
(ps) =
(
case+ ps of
| list0_nil() =>
PRTCLnil()
| list0_cons
(p1, ps2) =>
(
case+ ps2 of
| list0_nil() => p1
| list0_cons _ => PRTCLjoin(ps)
)
)
implement
prtcl_join_cons
(p0, ps) =
(
case+ p0 of
| PRTCLnil() => prtcl_join(ps)
| _(*non-PRTCLnil*) =>
(
PRTCLjoin(list0_cons(p0, ps))
)
) (* prtcl_join_cons *)
(* ****** ****** *)
implement
prtcl_option
(r0, p0) =
(
PRTCLaconj
( r0
, list0_tuple<prtcl>(PRTCLnil, p0))
) (* prtcl_option *)
implement
prtcl_optrep
(r0, p0) =
(
prtcl_option
( r0
, PRTCLjoin
(list0_tuple<prtcl>
( p0
, PRTCLlazy
($delay(prtcl_optrep(r0, p0))))))
)
(* ****** ****** *)
implement
prtcl_repeat(p0) =
PRTCLjoin(
list0_tuple<prtcl>
(p0, PRTCLlazy($delay(prtcl_repeat(p0))))
) (* prtcl_repeat *)
(* ****** ****** *)
//
extern
fun{}
chanrole_bmsg_recv_int
(CH: channel(), r: role): int
extern
fun{}
chanrole_bmsg_send_int
(CH: channel(), r: role, x: int): void
//
(* ****** ****** *)
local
reassume protocol_vtype
in (* in-of-local *)
implement
prtcl_join_uncons
(p0) =
(
case+ p0 of
| PRTCLjoin(ps) =>
Some_vt(p1) where
{
val-
list0_cons(p1, ps) = ps
val ((*void*)) =
(p0 := prtcl_join(ps))
// end of [val]
}
| _(*non-PRTCLjoin*) => None_vt((*void*))
)
end // end of [local]
(* ****** ****** *)
local
reassume protocol_vtype
in (* in-of-local *)
implement
{}(*tmp*)
chanprot_elim_nil
(
CH, prot
) = let
val P0 = prot
in
(
case+ P0 of
| PRTCLnil() => ()
| ((*rest-of-PRTCL*)) =>
let
val () =
prerrln!
("chanprot_elim_nil: prot = ", P0)
in
let val () =
assertloc(false) in ((*void*)) end
// end of [if]
end (* end of [let] *)
)
end // end of [chanprot_elim_nil]
end // end of [local]
(* ****** ****** *)
local
reassume protocol_vtype
in (* in-of-local *)
implement
chanprot_bmsg_recv_int<>
(
CH, prot
) = let
val P0 = prot
in
(
case+ P0 of
| PRTCLbmsg
(r, dt) => let
val-SSDTint() = dt
val ((*void*)) =
(prot := PRTCLnil())
in
chanrole_bmsg_recv_int<>(CH, r)
end // end of [PRTCLbmsg]
| PRTCLjoin(PS) =>
(x0) where
{
val-
list0_cons
(P1, PS) = PS
// end of [val]
val () =
prot := P1
val x0 =
chanprot_bmsg_recv_int<>(CH, prot)
val () =
(prot := prtcl_join_cons(prot, PS))
} (* end of [PRTCLjoin] *)
| PRTCLlazy(LP) =>
let
val () = (prot := !LP)
in
chanprot_bmsg_recv_int<>(CH, prot)
end // end of [PRTCLlazy]
| ((*rest-of-PRTCL*)) =>
let
val () =
prerrln!
("chanprot_bmsg_recv_int: prot = ", P0)
in
let val () =
assertloc(false) in $UN.cast{int}(0) end
// end of [if]
end (* end of [let] *)
)
end // end of [chanprot_bmsg_recv_int]
(* ****** ****** *)
implement
chanprot_bmsg_send_int<>
(
CH, prot, x
) = let
val P0 = prot
in
(
case+ P0 of
| PRTCLbmsg
(r, dt) => let
val-SSDTint() = dt
val ((*void*)) =
(prot := PRTCLnil())
// end of [val]
in
chanrole_bmsg_send_int<>(CH, r, x)
end // end of [PRTCLbmsg]
| PRTCLjoin(PS) =>
{
val-
list0_cons
(P1, PS) = PS
// end of [val]
val () =
prot := P1
val () =
chanprot_bmsg_send_int<>(CH, prot, x)
val () =
(prot := prtcl_join_cons(prot, PS))
// end of [val]
} (* end of [PRTCLjoin] *)
| PRTCLlazy(LP) =>
let
val () = (prot := !LP)
in
chanprot_bmsg_send_int<>(CH, prot, x)
end // end of [PRTCLlazy]
| ((*rest-of-PRTCL*)) =>
let
val () =
prerrln!
("chanprot_bmsg_send_int: prot = ", P0)
in
let val () = assertloc(false) in ((*void*)) end
end (* end of [let] *)
)
end // end of [chanprot_bmsg_send_int]
end // end of [local]
(* ****** ****** *)
//
implement
chanprot_bmsg_recv<int> = chanprot_bmsg_recv_int<>
implement
chanprot_bmsg_send<int> = chanprot_bmsg_send_int<>
//
(* ****** ****** *)
local
reassume protocol_vtype
in (* in-of-local *)
implement
{}(*tmp*)
chanprot_conj_aneg
(CH, prot) = let
//
val P0 = prot
//
in
//
case+ P0 of
| PRTCLjoin(PS) =>
opt where
{
val-
list0_cons
(P1, PS) = PS
// end of [val]
val () =
prot := P1
val opt =
chanprot_conj_aneg<>(CH, prot)
val () =
(prot := prtcl_join_cons(prot, PS))
// end of [val]
} (* end of [PRTCLjoin] *)
| PRTCLlazy(LP) =>
let
val () = (prot := !LP)
in
chanprot_conj_aneg<>(CH, prot)
end // end of [PRTCLlazy]
| PRTCLaconj(r, PS) =>
opt where
{
val opt =
chanrole_bmsg_recv_int<>(CH, r)
val ((*void*)) =
prot := list0_get_at_exn(PS, opt)
} // end of [PRTCLaconj]
| ((*rest-of-PRTCL*)) =>
let
val () =
prerrln!
("chanprot_conj_aneg: prot = ", P0)
in
let val () = assertloc(false) in $UN.cast{int}(0) end
end (* end of [let] *)
//
end // end of [chanprot_conj_aneg]
implement
{}(*tmp*)
chanprot_conj_apos
(CH, prot, opt) = let
//
val P0 = prot
//
in
//
case+ P0 of
| PRTCLjoin(PS) =>
{
val-
list0_cons
(P1, PS) = PS
// end of [val]
val () =
prot := P1
val () =
chanprot_conj_apos<>(CH, prot, opt)
val () =
(prot := prtcl_join_cons(prot, PS))
// end of [val]
} (* end of [PRTCLjoin] *)
| PRTCLlazy(LP) =>
let
val () = (prot := !LP)
in
chanprot_conj_apos<>(CH, prot, opt)
end // end of [PRTCLlazy]
| PRTCLaconj(r, PS) => let
val () =
prot :=
list0_get_at_exn(PS, opt)
in
chanrole_bmsg_send_int<>(CH, r, opt)
end // end of [PRTCLaconj]
| ((*rest-of-PRTCL*)) =>
let
val () =
prerrln!
("chanprot_conj_aneg: prot = ", P0)
in
let val () = assertloc(false) in ((*void*)) end
end (* end of [let] *)
//
end // end of [chanprot_conj_apos]
end // end of [local]
(* ****** ****** *)
(* end of [basics.dats] *)
| ATS | 5 | ats-lang/ATS-CodeBook | PLAYGROUND/mysession-bucs520-2018-01/DATS/basics.dats | [
"MIT"
] |
(ns jepsen.clickhouse-keeper.zookeeperdb
(:require [clojure.tools.logging :refer :all]
[jepsen.clickhouse-keeper.utils :refer :all]
[clojure.java.io :as io]
[jepsen
[control :as c]
[db :as db]]
[jepsen.os.ubuntu :as ubuntu]))
(defn zk-node-ids
"Returns a map of node names to node ids."
[test]
(->> test
:nodes
(map-indexed (fn [i node] [node (inc i)]))
(into {})))
(defn zk-node-id
"Given a test and a node name from that test, returns the ID for that node."
[test node]
((zk-node-ids test) node))
(defn zoo-cfg-servers
"Constructs a zoo.cfg fragment for servers."
[test mynode]
(->> (zk-node-ids test)
(map (fn [[node id]]
(str "server." id "=" (if (= (name node) mynode) "0.0.0.0" (name node)) ":2888:3888")))
(clojure.string/join "\n")))
(defn zookeeper-db
"Zookeeper DB for a particular version."
[version]
(reify db/DB
(setup! [_ test node]
(c/su
(info node "Installing ZK" version)
(c/exec :apt-get :update)
(c/exec :apt-get :install (str "zookeeper=" version))
(c/exec :apt-get :install (str "zookeeperd=" version))
(c/exec :echo (zk-node-id test node) :> "/etc/zookeeper/conf/myid")
(c/exec :echo (str (slurp (io/resource "zoo.cfg"))
"\n"
(zoo-cfg-servers test node))
:> "/etc/zookeeper/conf/zoo.cfg")
(info node "ZK restarting")
(c/exec :service :zookeeper :restart)
(info "Connecting to zk" (name node))
(zk-connect (name node) 2181 1000)
(info node "ZK ready")))
(teardown! [_ test node]
(info node "tearing down ZK")
(c/su
(c/exec :service :zookeeper :stop :|| true)
(c/exec :rm :-rf
(c/lit "/var/lib/zookeeper/version-*")
(c/lit "/var/log/zookeeper/*"))))
db/LogFiles
(log-files [_ test node]
["/var/log/zookeeper/zookeeper.log"])))
| Clojure | 4 | pdv-ru/ClickHouse | tests/jepsen.clickhouse-keeper/src/jepsen/clickhouse_keeper/zookeeperdb.clj | [
"Apache-2.0"
] |
# This file is a part of Julia. License is MIT: https://julialang.org/license
using Test, Libdl, MPFR_jll
@testset "MPFR_jll" begin
vn = VersionNumber(unsafe_string(ccall((:mpfr_get_version,libmpfr), Cstring, ())))
@test vn == v"4.1.0"
end
| Julia | 4 | jonas-schulze/julia | stdlib/MPFR_jll/test/runtests.jl | [
"MIT"
] |
<?php
$z = new ZipArchive;
$z->open('a.zip', ZIPARCHIVE::CREATE);
/* or 'remove_all_path' => 0*/
$options = array(
'remove_path' => '/home/francis/myimages',
'add_path' => 'images/',
);
$found = $z->addGlob("/home/pierre/cvs/gd/libgd/tests/*.png", 0, $options);
var_dump($found);
$z->close();
| PHP | 4 | thiagooak/php-src | ext/zip/examples/addglob.php | [
"PHP-3.01"
] |
(* ****** ****** *)
(*
**
** HX-2018-01:
** For testing
** broadcast-based sessions
** that are dynamically typed
**
*)
(* ****** ****** *)
#include
"share/atspre_staload.hats"
#include
"share\
/atspre_staload_libats_ML.hats"
(* ****** ****** *)
#staload"./../../SATS/basics.sats"
#staload"./../../DATS/basics.dats"
(* ****** ****** *)
extern
fun
myserver
{id:int}
(CH: channel(id), prot: protocol(id)): void
extern
fun
myserver_optrep
{id:int}
( CH: channel(id)
, prot: protocol(id), lines: stream_vt(string)): void
(* ****** ****** *)
#define N 100
(* ****** ****** *)
//
#staload UN = $UNSAFE
//
#staload "./mybasis.dats"
//
(* ****** ****** *)
implement
myserver
(CH, prot) = let
//
var prot = prot
//
(*
val () =
println!
( "myserver: prot = "
, $UN.castvwtp1{prtcl}(prot))
*)
//
val x1 = randint(N)
val x2 = randint(N)
val () =
chanprot_bmsg_send<int>
(CH, prot, x1)
val () =
chanprot_bmsg_send<int>
(CH, prot, x2)
//
val y3 =
chanprot_bmsg_recv<int>(CH, prot)
//
val () =
println!("x1 = ", x1)
val () =
println!("x2 = ", x2)
val () =
println!("y3 = ", y3)
//
val x4 =
(
if x1*x2 = y3 then 1 else 0
// end of [if]
) : int // end of [val]
val () =
chanprot_bmsg_send<int>(CH, prot, x4)
//
val () =
chanprot_elim_nil(CH, prot)
in
//
if (x4 > 0)
then println!("Correct!") else println!("Incorrect!")
//
end // end of [let] // end of [myserver]
(* ****** ****** *)
implement
myserver_optrep
(CH, prot, lines) = let
//
var prot = prot
//
val () =
println! (">>test or quit?")
(*
val () =
println!
( "myserver_optrep: prot = "
, $UN.castvwtp1{prtcl}(prot))
*)
//
in
//
case+ !lines of
| ~stream_vt_nil() => let
val () =
chanprot_conj_apos<>
(CH, prot, 0(*exit*))
in
chanprot_elim_nil<>(CH, prot)
end // end of [stream_vt_nil]
| ~stream_vt_cons
(line, lines) =>
(
case+ line of
| "quit" => let
val () =
lazy_vt_free(lines)
val () =
chanprot_conj_apos<>
(CH, prot, 0(*exit*))
// end of [val]
in
chanprot_elim_nil<>(CH, prot)
end // end of [quit]
| _(*non-quit*) => let
val () =
chanprot_conj_apos<>
(CH, prot, 1(*exit*))
// end of [val]
val-
~Some_vt(P0) =
prtcl_join_uncons(prot)
val () = myserver(CH, P0)
in
myserver_optrep(CH, prot, lines)
end // end of [non-quit]
)
end (* end of [myserver_optrep] *)
(* ****** ****** *)
local
#dynload"./mybasis.dats"
#include
"./../../DATS/basics.dats"
in (*in-of-local*)
implement
main0() = () where
{
//
val
prot =
prtcl_optrep(0, myprtcl())
val
[id:int]
prot =
$UN.castvwtp0{protocol()}(prot)
//
val () = channel00_clearall()
val () = channel01_clearall()
//
val CH =
$UN.cast
{channel(id)}(list0_tuple<int>(0))
//
val ((*void*)) =
myserver_optrep
(CH, prot, lines) where
{
val
lines =
streamize_fileref_line(stdin_ref)
}
//
} (* end of [main0] *)
end // end of [local]
(* ****** ****** *)
(* end of [myserver.dats] *)
| ATS | 4 | ats-lang/ATS-CodeBook | PLAYGROUND/mysession-bucs520-2018-01/TEST/test01/myserver.dats | [
"MIT"
] |
BresultJ B D D | PureBasic | 0 | cnheider/onnx | onnx/backend/test/data/node/test_max_float16/test_data_set_0/output_0.pb | [
"MIT"
] |
package com.baeldung.scopes
import java.util.logging.Logger
x = 200
logger = Logger.getLogger("Scopes.groovy")
def getGlobalResult() {
logger.info(x.toString())
return 1 + x
}
def defineGlobalVariable() {
z = 234
logger = Logger.getLogger("Scopes.groovy")
logger.info(z.toString())
}
logger.info("- Global variable")
logger.info(x.toString())
logger.info("- Access global variable from inside function")
logger.info(getGlobalResult().toString())
logger.info("- function called to create variable")
defineGlobalVariable()
logger.info("- Variable created inside a function")
logger.info(z.toString())
| Groovy | 3 | DBatOWL/tutorials | core-groovy/src/main/groovy/com/baeldung/scopes/Scopes.groovy | [
"MIT"
] |
const globula = require("glob")
const fs = require("fs-extra")
describe(`query generation`, () => {
const gqlDirectory = `${process.cwd()}/test-site/WordPress/GraphQL`
const graphqlFilePaths = globula.sync(`${gqlDirectory}/**/*.graphql`)
const graphqlQueriesByType = graphqlFilePaths.reduce((accumulator, path) => {
const relativePath = path.replace(`${gqlDirectory}/`, ``)
// relative paths are named like Page/query.graphql and Post/query.graphql
const [typeName, fileName] = relativePath.split(`/`)
// filenames are named like node-preview-query.graphql
// so the first index will be the type of the query
const key = fileName.split(`-`)[1]
if (!accumulator[typeName]) {
accumulator[typeName] = {
typeName,
}
}
accumulator[typeName][key] = path
return accumulator
}, [])
Object.values(graphqlQueriesByType).forEach(({ typeName, ...queries }) => {
Object.entries(queries).forEach(([queryTitle, queryFilePath]) => {
test(`${typeName} node ${queryTitle} query hasn't changed`, () => {
const fileContents = fs.readFileSync(queryFilePath, {
encoding: `utf8`,
})
expect(fileContents).toMatchSnapshot()
})
})
})
})
| JavaScript | 4 | waltercruz/gatsby | integration-tests/gatsby-source-wordpress/test-fns/query-generation.js | [
"MIT"
] |
#!/bin/bash
##############################################################################
# Build LLVM code analyzer and analyze torch code dependency.
##############################################################################
#
# Example usage:
#
# 1. Analyze torch and generate yaml file of op dependency transitive closure:
# LLVM_DIR=${HOME}/src/llvm8/build/install \
# ANALYZE_TORCH=1 tools/code_analyzer/build.sh
#
# 2. Analyze test project and compare with expected result:
# LLVM_DIR=${HOME}/src/llvm8/build/install \
# ANALYZE_TEST=1 tools/code_analyzer/build.sh
#
# 3. Analyze torch and generate yaml file of op dependency with debug path:
# LLVM_DIR=${HOME}/src/llvm8/build/install \
# ANALYZE_TORCH=1 tools/code_analyzer/build.sh -debug_path=true
#
# If you're a Facebook employee, chances are you're running on CentOS 8.
# If that's the case, you can install all the dependencies you need with:
#
# sudo dnf install llvm-devel llvm-static clang ncurses-devel
#
# and then set LLVM_DIR=/usr
set -ex
SRC_ROOT="$( cd "$(dirname "$0")"/../.. ; pwd -P)"
ANALYZER_SRC_HOME="${SRC_ROOT}/tools/code_analyzer"
# Clang/LLVM path
export LLVM_DIR="${LLVM_DIR:-/usr/lib/llvm-8}"
export CC="${LLVM_DIR}/bin/clang"
export CXX="${LLVM_DIR}/bin/clang++"
EXTRA_ANALYZER_FLAGS=$@
BUILD_ROOT="${BUILD_ROOT:-${SRC_ROOT}/build_code_analyzer}"
WORK_DIR="${BUILD_ROOT}/work"
rm -rf "${BUILD_ROOT}"
mkdir -p "${BUILD_ROOT}"
mkdir -p "${WORK_DIR}"
cd "${BUILD_ROOT}"
build_analyzer() {
cmake "${ANALYZER_SRC_HOME}" -DCMAKE_BUILD_TYPE=Release
if [ -z "${MAX_JOBS}" ]; then
if [ "$(uname)" == 'Darwin' ]; then
MAX_JOBS=$(sysctl -n hw.ncpu)
else
MAX_JOBS=$(nproc)
fi
fi
make "-j${MAX_JOBS}"
}
build_torch_mobile() {
TORCH_BUILD_ROOT="${BUILD_ROOT}/build_mobile"
TORCH_INSTALL_PREFIX="${TORCH_BUILD_ROOT}/install"
BUILD_ROOT="${TORCH_BUILD_ROOT}" "${SRC_ROOT}/scripts/build_mobile.sh" \
-DCMAKE_CXX_FLAGS="-S -emit-llvm -DSTRIP_ERROR_MESSAGES" \
${MOBILE_BUILD_FLAGS}
}
build_test_project() {
TEST_SRC_ROOT="${SRC_ROOT}/test/mobile/op_deps"
TEST_BUILD_ROOT="${BUILD_ROOT}/build_test"
TEST_INSTALL_PREFIX="${TEST_BUILD_ROOT}/install"
BUILD_ROOT="${TEST_BUILD_ROOT}" \
TORCH_INSTALL_PREFIX="${TORCH_INSTALL_PREFIX}" \
"${TEST_SRC_ROOT}/build.sh" \
-DCMAKE_CXX_FLAGS="-S -emit-llvm -DSTRIP_ERROR_MESSAGES"
}
call_analyzer() {
ANALYZER_BIN="${BUILD_ROOT}/analyzer" \
INPUT="${INPUT}" OUTPUT="${OUTPUT}" \
EXTRA_ANALYZER_FLAGS="${EXTRA_ANALYZER_FLAGS}" \
"${ANALYZER_SRC_HOME}/run_analyzer.sh"
}
analyze_torch_mobile() {
INPUT="${WORK_DIR}/torch.ll"
OUTPUT="${WORK_DIR}/torch_result.yaml"
if [ ! -f "${INPUT}" ]; then
# Link libtorch into a single module
# TODO: invoke llvm-link from cmake directly to avoid this hack.
# TODO: include *.c.o when there is meaningful fan-out from pure-c code.
"${LLVM_DIR}/bin/llvm-link" -S \
$(find "${TORCH_BUILD_ROOT}" -name '*.cpp.o' -o -name '*.cc.o') \
-o "${INPUT}"
fi
# Analyze dependency
call_analyzer
}
print_output_file_path() {
echo "Deployed file at: ${OUTPUT}"
}
analyze_test_project() {
INPUT="${WORK_DIR}/test.ll"
OUTPUT="${WORK_DIR}/test_result.yaml"
# Link into a single module (only need c10 and OpLib srcs)
# TODO: invoke llvm-link from cmake directly to avoid this hack.
"${LLVM_DIR}/bin/llvm-link" -S \
$(find "${TORCH_BUILD_ROOT}" -path '*/c10*' \( -name '*.cpp.o' -o -name '*.cc.o' \)) \
$(find "${TEST_BUILD_ROOT}" -path '*/OpLib*' \( -name '*.cpp.o' -o -name '*.cc.o' \)) \
-o "${INPUT}"
# Analyze dependency
call_analyzer
}
check_test_result() {
if cmp -s "${OUTPUT}" "${TEST_SRC_ROOT}/expected_deps.yaml"; then
echo "Test result is the same as expected."
else
echo "Test result is DIFFERENT from expected!"
diff -u "${TEST_SRC_ROOT}/expected_deps.yaml" "${OUTPUT}"
exit 1
fi
}
build_analyzer
if [ -n "${ANALYZE_TORCH}" ]; then
build_torch_mobile
analyze_torch_mobile
if [ -n "${DEPLOY}" ]; then
print_output_file_path
fi
fi
if [ -n "${ANALYZE_TEST}" ]; then
build_torch_mobile
build_test_project
analyze_test_project
check_test_result
fi
| Shell | 5 | Hacky-DH/pytorch | tools/code_analyzer/build.sh | [
"Intel"
] |
## Vulnerable Application
This module will perform banner grabbing on devices that use the Modbus protocol by sending
a payload with the function code 43 to read the target device's identification information.
For more technical information, you can refer to this link: https://en.wikipedia.org/wiki/Modbus#Available_function/command_codes.
By default the service is running on port 502, so any device with this port open could be a potential target.
## Verification Steps
1. Do: `use auxiliary/scanner/scada/modbus_banner_grabbing`
2. Do: `set RHOST <IP>` where IP is the IP address of the target.
3. Do: `run`
The response from the target device may contain several objects. Some of these objects can be seen below:
`vendor name, product code, revision number (in *major version*.*minor version* format), vendor url, product name, model name`
If the target was unable to process the Modbus message, a Modbus exception message will be returned from the target,
which will then be output to the screen.
Successful results from the scan will be stored as a `note` in the framework. You can access these notes by typing `note` in the console.
```
msf5 auxiliary(scanner/scada/modbus_banner_grabbing) > notes
Notes
=====
Time Host Service Port Protocol Type Data
---- ---- ------- ---- -------- ---- ----
2020-07-06 13:25:50 UTC 192.168.1.1 modbus 502 tcp modbus.vendorname "Schneider Electric"
2020-07-06 13:25:50 UTC 192.168.1.1 modbus 502 tcp modbus.productcode "BMX NOE 0100"
2020-07-06 13:25:50 UTC 192.168.1.1 modbus 502 tcp modbus.revision "V3.10"
```
## Options
There are no non-default options for this module.
## Scenarios
The following scenarios describe some of the responses you may receive from the target:
### Schneider Electric BMX NOE 0100 - Successful Response
```
msf6 > use auxiliary/scanner/scada/modbus_banner_grabbing
msf6 auxiliary(scanner/scada/modbus_banner_grabbing) > set RHOSTS 192.168.1.1
RHOSTS => 192.168.1.1
msf6 auxiliary(scanner/scada/modbus_banner_grabbing) > run
[*] 192.168.1.1:502 - Number of Objects: 3
[+] 192.168.1.1:502 - VendorName: Schneider Electric
[+] 192.168.1.1:502 - ProductCode: BMX NOE 0100
[+] 192.168.1.1:502 - Revision: V3.10
[*] 192.168.1.1:502 - Scanned 1 of 1 hosts (100% complete)
[*] Auxiliary module execution completed
```
### Schneider Electric BMX NOE 0100 - No Reply
The target never replied to the attacker's request.
```
msf6 > use auxiliary/scanner/scada/modbus_banner_grabbing
msf6 auxiliary(scanner/scada/modbus_banner_grabbing) > set RHOSTS 192.168.1.2
RHOSTS => 192.168.1.2
msf6 auxiliary(scanner/scada/modbus_banner_grabbing) > run
[-] 192.168.1.2:502 - MODBUS - No reply
[*] 192.168.1.2:502 - Scanned 1 of 1 hosts (100% complete)
[*] Auxiliary module execution completed
```
### Schneider Electric BMX NOE 0100 - Network Error
Some network error occurred, such as a connection error, a network timeout, or the connection was refused.
Alternatively, the host may be unreachable.
```
msf6 > use auxiliary/scanner/scada/modbus_banner_grabbing
msf6 auxiliary(scanner/scada/modbus_banner_grabbing) > set RHOSTS 192.168.1.3
RHOSTS => 192.168.1.3
msf6 auxiliary(scanner/scada/modbus_banner_grabbing) > run
[-] 192.168.1.3:502 - MODBUS - Network error during payload: The connection timed out (217.71.253.52:502).
[*] 192.168.1.3:502 - Scanned 1 of 1 hosts (100% complete)
[*] Auxiliary module execution completed
```
### Schneider Electric BMX NOE 0100 - Modbus Exception Code (i.e. Memory Parity Error)
```
msf6 > use auxiliary/scanner/scada/modbus_banner_grabbing
msf6 auxiliary(scanner/scada/modbus_banner_grabbing) > set RHOSTS 192.168.1.4
RHOSTS => 192.168.1.4
msf6 auxiliary(scanner/scada/modbus_banner_grabbing) > run
[-] 192.168.1.4:502 - Memory Parity Error: Slave detected a parity error in memory.
[*] 192.168.1.4:502 - Scanned 1 of 1 hosts (100% complete)
[*] Auxiliary module execution completed
```
| Markdown | 4 | OsmanDere/metasploit-framework | documentation/modules/auxiliary/scanner/scada/modbus_banner_grabbing.md | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
QT.gui_private.VERSION = 5.9.4
QT.gui_private.name = QtGui
QT.gui_private.module =
QT.gui_private.libs = $$QT_MODULE_LIB_BASE
QT.gui_private.includes = $$QT_MODULE_INCLUDE_BASE/QtGui/5.9.4 $$QT_MODULE_INCLUDE_BASE/QtGui/5.9.4/QtGui
QT.gui_private.frameworks =
QT.gui_private.depends = core_private gui
QT.gui_private.uses =
QT.gui_private.module_config = v2 internal_module
QT.gui_private.enabled_features = angle_d3d11_qdtd direct2d directwrite directwrite2 egl freetype gif harfbuzz ico jpeg multiprocess png
QT.gui_private.disabled_features = xcb accessibility-atspi-bridge directfb egl_x11 eglfs eglfs_brcm eglfs_egldevice eglfs_gbm eglfs_mali eglfs_openwfd eglfs_rcar eglfs_viv eglfs_viv_wl evdev fontconfig integrityfb integrityhid kms libinput libinput-axis-api linuxfb mirclient mtdev system-freetype system-harfbuzz system-jpeg system-png system-xcb tslib vnc xkbcommon-evdev xlib
| QMake | 2 | PLohrmannAMD/renderdoc | qrenderdoc/3rdparty/qt/x64/mkspecs/modules/qt_lib_gui_private.pri | [
"MIT"
] |
server {
listen 8881 default_server;
server_name _;
root /var/www/site-with-php5.6;
index index.php;
location / {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php5.6-fpm.sock; # adjust for the listen setting discussed above
}
}
| ApacheConf | 4 | AysadKozanoglu/Docker-Nginx-multiple-PHP | site-with-php5.6.vhost | [
"Unlicense"
] |
-module(petstore_inline_object).
-export([encode/1]).
-export_type([petstore_inline_object/0]).
-type petstore_inline_object() ::
#{ 'name' => binary(),
'status' => binary()
}.
encode(#{ 'name' := Name,
'status' := Status
}) ->
#{ 'name' => Name,
'status' => Status
}.
| Erlang | 4 | therockstorm/openapi-generator | samples/client/petstore/erlang-client/src/petstore_inline_object.erl | [
"Apache-2.0"
] |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Screen property</title>
</head>
<body>
<script>
nw.Screen.Init();
if (nw.Screen.screens && nw.Screen.screens.length > 0) {
document.write('<h1 id="result">success</h1>');
} else {
document.write('<h1 id="result">failure: expect nw.Screen.screens to have non-zero length</h1>');
}
</script>
</body>
</html> | HTML | 3 | namaljayathunga/nw.js | test/remoting/screen-property/index.html | [
"MIT"
] |
cd /D "%~dp0"
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" -arch=amd64 -host_arch=amd64 -winsdk=10.0.18362.0
powershell -file update_appxmanifest_version.ps1 || exit /b 1
call makeappx build /v /overwrite /f PackagingLayout.xml /id "PowerToys-x64" /op bin\ || exit /b 1
setlocal EnableDelayedExpansion
for /f "tokens=3delims=<>" %%i in ('findstr "<Version>" "..\Version.props"') do (
set MSIXVERSION=%%i
)
setlocal DisableDelayedExpansion
ren "bin\PowerToys-x64.msix" PowerToysSetup-%MSIXVERSION%-x64.msix
| Batchfile | 3 | tameemzabalawi/PowerToys | installer/MSIX/build_msix_cdpx.cmd | [
"MIT"
] |
--TEST--
Bug #66127 (Segmentation fault with ArrayObject unset)
--INI--
error_reporting = E_ALL & ~E_NOTICE
--FILE--
<?php
function crash()
{
set_error_handler(function () {});
$var = 1;
trigger_error('error');
$var2 = $var;
$var3 = $var;
trigger_error('error');
}
$items = new ArrayObject();
unset($items[0]);
unset($items[0][0]);
crash();
echo "Worked!\n";
?>
--EXPECT--
Worked!
| PHP | 2 | thiagooak/php-src | ext/spl/tests/bug66127.phpt | [
"PHP-3.01"
] |
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package org.jetbrains.kotlin.js.backend.ast;
import org.jetbrains.kotlin.js.util.AstUtil;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
public class JsContinue extends SourceInfoAwareJsNode implements JsStatement {
protected JsNameRef label;
public JsContinue() {
this(null);
}
public JsContinue(@Nullable JsNameRef label) {
super();
this.label = label;
}
public JsNameRef getLabel() {
return label;
}
@Override
public void accept(JsVisitor v) {
v.visitContinue(this);
}
@Override
public void acceptChildren(JsVisitor v) {
if (label != null){
v.accept(label);
}
}
@Override
public void traverse(JsVisitorWithContext v, JsContext ctx) {
if (v.visit(this, ctx)) {
if (label != null){
label = v.accept(label);
}
}
v.endVisit(this, ctx);
}
@NotNull
@Override
public JsContinue deepCopy() {
if (label == null) return new JsContinue();
return new JsContinue(AstUtil.deepCopy(label)).withMetadataFrom(this);
}
}
| Java | 4 | qussarah/declare | js/js.ast/src/org/jetbrains/kotlin/js/backend/ast/JsContinue.java | [
"Apache-2.0"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.