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
#tag Module Protected Module GraphicsHelpersWFS #tag Method, Flags = &h1 Protected Function CanBeDisplayed(g as Graphics, text as String) As Boolean // Note, this function is *supposed* to fire a FunctionNotFoundException // in the case that we cannot load the GetGlyphIndices API. The API is // only supported on Windows 2000 and up. We could return false if we can't // load the function (or true), but that's incorrect -- the string could be displayed // or not; we simply don't know. So the onus is on the caller to fall back however // they see fit on older systems. // We're going to ensure that the font is properly setup on the graphics // object by calling StringWidth here. This selects the font into the object // and ensures code like this works: // g.TextFont = "Marlett" // CanBeDisplayed( g, "Testing" ) call g.StringWidth( text ) Soft Declare Function GetGlyphIndicesW Lib "Gdi32" ( hdc as Integer, lpstr as WString, cch as Integer, retData as Ptr, flags as Integer ) as Integer // Make a MemoryBlock large enough to hold all of the glyph information Dim glyphs as new MemoryBlock( Len( text ) * 2 ) Const GGI_MARK_NONEXISTING_GLYPHS = 1 Dim numConverted as Integer // Convert the text (automatically into UTF16) into glyph information, // while marking all of the non-available glyphs. numConverted = GetGlyphIndicesW( g.Handle( Graphics.HandleTypeHDC ), _ text, Len( text ), glyphs, GGI_MARK_NONEXISTING_GLYPHS ) // Now loop over all of the glyphs, and see if we can find any that // aren't displayable. for i as Integer = 0 to numConverted - 1 if glyphs.UInt16Value( i * 2 ) = &hFFFF then // We found one, so this string cannot be displayed properly return false end if next i return true End Function #tag EndMethod #tag Method, Flags = &h1 Protected Function CaptureScreen(withCursor as Boolean = false) As Picture #if TargetWin32 // DISCLAIMER!!! READ THIS!!!! // The following declare uses a very unsupported feature in REALbasic. This means a few // things. 1) Don't rely on this call working forever -- it's entirely possible that upgrading to // a new version of REALbasic will cause this declare to break. 2) Don't try to use declares // into the plugins APIs yourself. And 3) Since this is not a supported way to use declares, you // get everything you deserve if you use a declare like this. You will eventually come down // with the plague and someone will drink all your beer. Basically... don't use this sort of thing! // The declare will be removed as soon as there is a sanctioned way to get this functionality // from REALbasic. This declare should (hypothetically) work in 5.5 only (tho it may work in // version 5 as well). Consider all other versions of REALbasic unsupported. #if RBVersion < 2006.01 then Declare Function REALGraphicsDC Lib "" ( gfx as Graphics ) as Integer #endif Declare Sub BitBlt Lib "GDI32" ( dest as Integer, x as Integer, y as Integer, width as Integer, height as Integer, _ src as Integer, srcX as Integer, srcY as Integer, rops as Integer ) Declare Function SelectObject Lib "GDI32" ( hdc as Integer, hIcon as Integer ) as Integer Declare Sub DeleteDC Lib "GDI32" ( hdc as Integer ) Declare Function GetDC Lib "User32" ( hwnd as Integer ) as Integer Declare Function CreateCompatibleBitmap Lib "Gdi32" ( hdc as Integer, width as Integer, height as Integer ) as Integer Declare Sub GetObjectA Lib "GDI32" ( hBitmap as Integer, size as Integer, struct as Ptr ) Declare Function GetCursorInfo Lib "user32.dll" (lpCursor as ptr) As Integer Declare Function DrawIcon Lib "user32" Alias "DrawIcon" (hdc As integer, x As integer, y As integer, hIcon As integer) As integer Declare Function DrawIconEx Lib "user32" Alias "DrawIconEx" (hdc As integer, xLeft As integer, yTop As integer, hIcon As integer, cxWidth As integer, cyWidth As integer, istepIfAniCur As integer, hbrFlickerFreeDraw As integer, diFlags As integer) As integer Declare Sub DeleteObject Lib "Gdi32" ( obj as Integer ) Const DI_MASK = &H1 // We want to get the screen's DC first dim screenHDC as Integer screenHDC = GetDC( 0 ) Dim hBitmap, width, height as Integer width = SystemMetricsWFS.VirtualScreenWidth height = SystemMetricsWFS.VirtualScreenHeight hBitmap = CreateCompatibleBitmap( screenHDC, width, height ) if hBitmap = 0 then return nil // Get the bits per pixel of the picture dim bps as Integer dim bitmapInfo as new MemoryBlock( 24 ) GetObjectA( hBitmap, 24, bitmapInfo ) bps = bitmapInfo.Short( 18 ) DeleteObject( hBitmap ) ' Now we want to move this handle into a picture object dim ret as Picture ret = NewPicture( width, height, bps ) if ret = nil then return nil // Select the bitmap into the picture's HDC dim desthdc, srchdc as Integer #if RBVersion < 2006.01 then desthdc = REALGraphicsDC( ret.Graphics ) #else desthdc = ret.Graphics.Handle( Graphics.HandleTypeHDC ) #endif // Copy the bitmap data Const CAPTUREBLT = &h40000000 Const SRCCOPY = &hCC0020 BitBlt( desthdc, 0, 0, width, height, screenHDC, 0, 0, SRCCOPY + CAPTUREBLT ) if withCursor then Dim mbCursor as new MemoryBlock( 20 ) mbCursor.Long( 0 ) = mbCursor.Size dim cursRet as Integer = GetCursorInfo( mbCursor ) if cursRet = 0 then return ret dim cursPict as new Picture( 32, 32, 32 ) // Draw the cursor #if RBVersion < 2006.01 then dim desthdc2 as Integer = REALGraphicsDC( cursPict.Graphics ) #else dim desthdc2 as Integer = cursPict.Graphics.Handle( Graphics.HandleTypeHDC ) #endif cursRet = DrawIcon( desthdc2, 0, 0, mbCursor.Long( 8 ) ) if cursRet = 0 then return ret // Draw the cursor's mask #if RBVersion < 2006.01 then dim desthdc3 as Integer = REALGraphicsDC( cursPict.Mask.Graphics ) #else dim desthdc3 as Integer = cursPict.Mask.Graphics.Handle( Graphics.HandleTypeHDC ) #endif cursRet = DrawIconEx( desthdc3, 0, 0, mbCursor.Long( 8 ), 0, 0, 0, 0, DI_MASK ) if cursRet = 0 then return ret // Now let's make sure we draw the cursor at the proper location ret.Graphics.DrawPicture( cursPict, mbCursor.Long( 12 ), mbCursor.Long( 16 ), 32, 32, 0, 0, 32, 32 ) end if return ret #else #pragma unused withCursor #endif return nil End Function #tag EndMethod #tag Method, Flags = &h1 Protected Function ChooseFont(owner as Window = nil) As StyleRun #if TargetWin32 Soft Declare Function ChooseFontA Lib "ComDlg32" ( lpcf as Ptr ) as Boolean Soft Declare Function ChooseFontW Lib "ComDlg32" ( lpcf as Ptr ) as Boolean Declare Function GetDC Lib "User32" ( hwnd as Integer ) as Integer Declare Sub ReleaseDC Lib "User32" ( dc as Integer ) // The size of the CHOOSEFONT structure is the // same whether it's the W version or the A version. We // just need to treat the pointers differently dim mb as new MemoryBlock( 15 * 4 ) dim ret as new StyleRun mb.Long( 0 ) = mb.Size if owner <> nil then mb.Long( 4 ) = owner.WinHWND mb.Long( 8 ) = GetDC( owner.WinHWND ) else mb.Long( 8 ) = GetDC( 0 ) end dim unicodeSavvy as Boolean = System.IsFunctionAvailable( "ChooseFontW", "ComDlg32" ) dim temp as new LogicalFontWFS dim theLogFont as MemoryBlock = temp.ToMemoryBlock( unicodeSavvy ) mb.Ptr( 12 ) = theLogFont mb.Long( 20 ) = &h1 + &h100 dim success as Boolean if unicodeSavvy then success = ChooseFontW( mb ) else success = ChooseFontA( mb ) end if if success then if unicodeSavvy then ret.Font = theLogFont.WString( 28 ) else ret.Font = theLogFont.CString( 28 ) end if ret.Size = mb.Long( 16 ) / 10 ret.Bold = (theLogFont.Long( 16 ) > 400) ret.Italic = theLogFont.BooleanValue( 20 ) ret.Underline = theLogFont.BooleanValue( 21 ) ret.TextColor = mb.ColorValue( 24, 32 ) ' Be sure to release the device context ReleaseDC( mb.Long( 8 ) ) return ret end ' Be sure to release the device context ReleaseDC( mb.Long( 8 ) ) return nil #else #pragma unused owner #endif End Function #tag EndMethod #tag Method, Flags = &h1 Protected Function ChooseLogicalFont(owner as Window = nil) As LogicalFontWFS #if TargetWin32 Soft Declare Function ChooseFontA Lib "ComDlg32" ( lpcf as Ptr ) as Boolean Soft Declare Function ChooseFontW Lib "ComDlg32" ( lpcf as Ptr ) as Boolean Declare Function GetDC Lib "User32" ( hwnd as Integer ) as Integer Declare Sub ReleaseDC Lib "User32" ( dc as Integer ) // The size of the CHOOSEFONT structure is the // same whether it's the W version or the A version. We // just need to treat the pointers differently dim mb as new MemoryBlock( 15 * 4 ) dim ret as new LogicalFontWFS mb.Long( 0 ) = mb.Size if owner <> nil then mb.Long( 4 ) = owner.WinHWND mb.Long( 8 ) = GetDC( owner.WinHWND ) else mb.Long( 8 ) = GetDC( 0 ) end dim unicodeSavvy as Boolean = System.IsFunctionAvailable( "ChooseFontW", "ComDlg32" ) dim theLogFont as MemoryBlock = ret.ToMemoryBlock( unicodeSavvy ) mb.Ptr( 12 ) = theLogFont mb.Long( 20 ) = &h1 + &h100 dim success as Boolean if unicodeSavvy then success = ChooseFontW( mb ) else success = ChooseFontA( mb ) end if if success then ret = new LogicalFontWFS( theLogFont, unicodeSavvy ) ' Be sure to release the device context ReleaseDC( mb.Long( 8 ) ) return ret end ' Be sure to release the device context ReleaseDC( mb.Long( 8 ) ) return nil #else #pragma unused owner #endif End Function #tag EndMethod #tag Method, Flags = &h1 Protected Sub DialogUnitsToPixels(g as Graphics, ByRef top as Integer, ByRef left as Integer, ByRef width as Integer, ByRef height as Integer) #if TargetWin32 // Get the HDC for the window's Graphics context dim handle as Integer = g.Handle( Graphics.HandleTypeHDC ) // Now we can figure out the default width and height Declare Sub GetTextExtentPoint32A Lib "GDI32" ( hdc as Integer, _ str as CString, num as Integer, size as Ptr ) Declare Sub GetTextMetricsA Lib "GDI32" ( hdc as Integer, metrics as Ptr ) Declare Function GetStockObject Lib "GDI32" ( index as Integer ) as Integer Declare Function SelectObject Lib "GDI32" ( hdc as Integer, obj as Integer ) as Integer // We need to do our calculations based on the // default GUI font, not the system font. This is // because the system font is that old fixed-width // terrible thing from Windows 1.0 Const DEFAULT_GUI_FONT = 17 dim oldFont as Integer = SelectObject( handle, GetStockObject( DEFAULT_GUI_FONT ) ) // Get the text extent and metrics dim size as new MemoryBlock( 8 ) dim metrics as new MemoryBlock( 56 ) dim str as String = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" GetTextExtentPoint32A( handle, str, Len( str ), size ) GetTextMetricsA( handle, metrics ) // Restore the old font call SelectObject( handle, oldFont ) // Now we know the height and the width. But we need // the width of the average character. dim baseUnitX, baseUnitY as Integer baseUnitX = (size.Long( 0 ) / 26 + 1) / 2 baseUnitY = metrics.Long( 0 ) // Now, the forumal for DLU conversion is: // pixelX = (dialogunitX * baseunitX) / 4 // pixelY = (dialogunitY * baseunitY) / 8 // Do the conversion top = (top * baseUnitY) / 8 left = (left * baseUnitX) / 4 width = (width * baseUnitX) / 4 height = (height * baseUnitY) / 8 #else #pragma unused g #pragma unused top #pragma unused left #pragma unused width #pragma unused height #endif End Sub #tag EndMethod #tag Method, Flags = &h1 Protected Function GetStockIcon(id as Integer, smallIcon as Boolean = false, selected as Boolean = false, linkOverlay as Boolean = false) As Picture #if TargetWin32 Soft Declare Sub SHGetStockIconInfo Lib "Shell32" ( id as Integer, flags as Integer, info as Ptr ) Declare Sub DestroyIcon Lib "User32" (hIcon as Integer ) if System.IsFunctionAvailable( "SHGetStockIconInfo", "Shell32" ) then dim info as new MemoryBlock( 536 ) info.Long( 0 ) = info.Size dim flags as Integer = &h100 if smallIcon then flags = flags + &h1 if linkOverlay then flags = flags + &h8000 if selected then flags = flags + &h10000 SHGetStockIconInfo( id, flags, info ) dim ret as Picture = IconHandleToPicture( info.Long( 4 ) ) DestroyIcon( info.Long( 4 ) ) return ret end if #else #pragma unused id #pragma unused smallIcon #pragma unused selected #pragma unused linkOverlay #endif End Function #tag EndMethod #tag Method, Flags = &h21 Private Function GetTextCharset(g as Graphics) As Integer #if TargetWin32 Declare Function GetTextCharset Lib "Gdi32" ( hdc as Integer ) as Integer // Select the font into the Graphics object by making a // call to StringWidth. This way, you can call this // function directly after setting the text font. call g.StringWidth( "X" ) return GetTextCharset( g.Handle( Graphics.HandleTypeHDC ) ) #else #pragma unused g #endif End Function #tag EndMethod #tag Method, Flags = &h21 Private Function IconHandleToPicture(iconHandle as Integer) As Picture #if TargetWin32 // DISCLAIMER!!! READ THIS!!!! // The following declare uses a very unsupported feature in REALbasic. This means a few // things. 1) Don't rely on this call working forever -- it's entirely possible that upgrading to // a new version of REALbasic will cause this declare to break. 2) Don't try to use declares // into the plugins APIs yourself. And 3) Since this is not a supported way to use declares, you // get everything you deserve if you use a declare like this. You will eventually come down // with the plague and someone will drink all your beer. Basically... don't use this sort of thing! // The declare will be removed as soon as there is a sanctioned way to get this functionality // from REALbasic. This declare should (hypothetically) work in 5.5 only (tho it may work in // version 5 as well). Consider all other versions of REALbasic unsupported. #if RBVersion < 2006.01 then Declare Function REALGraphicsDC Lib "" ( gfx as Graphics ) as Integer #endif Declare Sub GetIconInfo Lib "User32" ( hIcon as Integer, iconInfo as Ptr ) Declare Sub GetObjectA Lib "GDI32" ( hBitmap as Integer, size as Integer, struct as Ptr ) Declare Sub BitBlt Lib "GDI32" ( dest as Integer, x as Integer, y as Integer, width as Integer, height as Integer, _ src as Integer, srcX as Integer, srcY as Integer, rops as Integer ) Declare Function CreateCompatibleDC Lib "GDI32" ( hdc as Integer ) as Integer Declare Function SelectObject Lib "GDI32" ( hdc as Integer, hIcon as Integer ) as Integer Declare Sub DeleteDC Lib "GDI32" ( hdc as Integer ) if iconHandle = 0 then return nil ' Let's get some information about the icon dim iconInfo as new MemoryBlock( 20 ) GetIconInfo( iconHandle, iconInfo ) dim cx, cy, bps as Integer dim bitmapInfo as new MemoryBlock( 24 ) GetObjectA( iconInfo.Long( 16 ), 24, bitmapInfo ) cx = bitmapInfo.Long( 4 ) cy = bitmapInfo.Long( 8 ) bps = bitmapInfo.Short( 18 ) ' Now we want to move this handle into a picture object dim ret as Picture ret = NewPicture( cx, cy, bps ) dim desthdc, srchdc as Integer #if RBVersion < 2006.01 then desthdc = REALGraphicsDC( ret.Graphics ) #else desthdc = ret.Graphics.Handle( Graphics.HandleTypeHDC ) #endif srchdc = CreateCompatibleDC( desthdc ) Call SelectObject( srchdc, iconInfo.Long( 16 ) ) BitBlt( desthdc, 0, 0, cx, cy, srchdc, 0, 0, &hCC0020 ) dim desthdc2, srchdc2 as Integer #if RBVersion < 2006.01 then desthdc2 = REALGraphicsDC( ret.Mask.Graphics ) #else desthdc2 = ret.Mask.Graphics.Handle( Graphics.HandleTypeHDC ) #endif srchdc2 = CreateCompatibleDC( desthdc2 ) Call SelectObject( srchdc2, iconInfo.Long( 12 ) ) BitBlt( desthdc2, 0, 0, cx, cy, srchdc2, 0, 0, &hCC0020 ) DeleteDC( srchdc ) DeleteDC( srchdc2 ) return ret #else #pragma unused iconHandle #endif End Function #tag EndMethod #tag Method, Flags = &h1 Protected Function IsSymbolFont(g as Graphics) As Boolean return GetTextCharset( g ) = kSymbolFont End Function #tag EndMethod #tag Method, Flags = &h1 Protected Function LoadIcon(appInstance as FolderItem, iconNum as Integer = - 1) As Picture #if TargetWin32 Soft Declare Function LoadImageA Lib "User32" ( instance as Integer, iconName as CString, type as Integer, _ cxDesired as Integer, cyDesired as Integer, loadFlags as Integer ) as Integer Soft Declare Function LoadImageW Lib "User32" ( instance as Integer, iconName as WString, type as Integer, _ cxDesired as Integer, cyDesired as Integer, loadFlags as Integer ) as Integer Soft Declare Function LoadImageA Lib "User32" ( instance as Integer, iconName as Integer, type as Integer, _ cxDesired as Integer, cyDesired as Integer, loadFlags as Integer ) as Integer Soft Declare Function GetModuleHandleA Lib "Kernel32" ( absPath as CString ) as Integer Soft Declare Function GetModuleHandleW Lib "Kernel32" ( absPath as WString ) as Integer Declare Sub DestroyIcon Lib "User32" (hIcon as Integer ) Soft Declare Function LoadLibraryA Lib "Kernel32" (name as CString ) as Integer Soft Declare Function LoadLibraryW Lib "Kernel32" (name as WString ) as Integer Declare Function SetErrorMode Lib "Kernel32" ( mode as Integer ) as Integer // Turn off the error dialog that LoadLibrary will generate when it's // passed a file that is not a library. Const SEM_FAILCRITICALERRORS = &h1 dim oldMode as Integer = SetErrorMode( SEM_FAILCRITICALERRORS ) dim unicodeSavvy as Boolean = System.IsFunctionAvailable( "LoadLibraryW", "Kernel32" ) dim moduleHandle as Integer = 0 if appInstance <> nil then if unicodeSavvy then moduleHandle = GetModuleHandleW( appInstance.AbsolutePath ) else moduleHandle = GetModuleHandleA( appInstance.AbsolutePath ) end if if moduleHandle = 0 then if unicodeSavvy then moduleHandle = LoadLibraryW( appInstance.AbsolutePath ) else moduleHandle = LoadLibraryA( appInstance.AbsolutePath ) end if end end // Set the error mode back so that the application behaves as normal Call SetErrorMode( oldMode ) dim loadFlags as Integer loadFlags = &h40 ' we want the default sizes dim iconHandle as Integer if iconNum = -1 and appInstance <> nil then ' The user wants us to just load it as a file (usually a .ico file) loadFlags = Bitwise.BitOr( loadFlags, &h10 ) if unicodeSavvy then iconHandle = LoadImageW( 0, appInstance.AbsolutePath, 1, 0, 0, loadFlags ) else iconHandle = LoadImageA( 0, appInstance.AbsolutePath, 1, 0, 0, loadFlags ) end if else ' The user wants us to load the file from a resource iconHandle = LoadImageA( moduleHandle, iconNum, 1, 0, 0, loadFlags ) end dim ret as Picture = IconHandleToPicture( iconHandle ) DestroyIcon( iconHandle ) return ret #else #pragma unused appInstance #pragma unused iconNum #endif End Function #tag EndMethod #tag Constant, Name = kSymbolFont, Type = Double, Dynamic = False, Default = \"2", Scope = Private #tag EndConstant #tag ViewBehavior #tag ViewProperty Name="Index" Visible=true Group="ID" InitialValue="-2147483648" InheritedFrom="Object" #tag EndViewProperty #tag ViewProperty Name="Left" Visible=true Group="Position" InitialValue="0" InheritedFrom="Object" #tag EndViewProperty #tag ViewProperty Name="Name" Visible=true Group="ID" InheritedFrom="Object" #tag EndViewProperty #tag ViewProperty Name="Super" Visible=true Group="ID" InheritedFrom="Object" #tag EndViewProperty #tag ViewProperty Name="Top" Visible=true Group="Position" InitialValue="0" InheritedFrom="Object" #tag EndViewProperty #tag EndViewBehavior End Module #tag EndModule
REALbasic
5
bskrtich/WFS
Windows Functionality Suite/Graphics Helpers/Modules/GraphicsHelpersWFS.rbbas
[ "MIT" ]
# Copyright 2017-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # Auto-Generated by cargo-ebuild 0.1.5 EAPI=6 CRATES=" adler32-1.0.3 aho-corasick-0.6.6 ansi_term-0.11.0 arrayref-0.3.4 arrayvec-0.4.7 atoi-0.2.3 atty-0.2.11 backtrace-0.3.9 backtrace-sys-0.1.23 badtouch-0.6.1 base64-0.9.2 bcrypt-0.2.0 bit-vec-0.5.0 bitflags-0.9.1 bitflags-1.0.3 block-buffer-0.3.3 block-cipher-trait-0.5.3 blowfish-0.3.0 bufstream-0.1.3 build_const-0.2.1 byte-tools-0.2.0 byteorder-1.2.4 bytes-0.4.9 cc-1.0.18 cfg-if-0.1.4 chrono-0.4.5 clap-2.32.0 cloudabi-0.0.3 colored-1.6.1 constant_time_eq-0.1.3 core-foundation-0.2.3 core-foundation-sys-0.2.3 crc-1.8.1 crossbeam-deque-0.3.1 crossbeam-epoch-0.4.3 crossbeam-utils-0.3.2 crypto-mac-0.6.2 cssparser-0.23.10 cssparser-macros-0.3.4 digest-0.7.5 dtoa-0.4.3 dtoa-short-0.3.2 encoding_rs-0.7.2 env_logger-0.5.11 error-chain-0.12.0 fake-simd-0.1.2 flate2-1.0.2 fnv-1.0.6 foreign-types-0.3.2 foreign-types-shared-0.1.1 fuchsia-zircon-0.3.3 fuchsia-zircon-sys-0.3.3 futf-0.1.4 futures-0.1.23 futures-cpupool-0.1.8 gcc-0.3.54 generic-array-0.9.0 getch-0.2.0 hlua-badtouch-0.4.2 hmac-0.6.2 html5ever-0.22.3 httparse-1.3.2 humantime-1.1.1 hyper-0.11.27 hyper-tls-0.1.4 idna-0.1.5 iovec-0.1.2 itoa-0.4.2 keccak-0.1.0 kernel32-sys-0.2.2 kuchiki-0.7.0 language-tags-0.2.2 lazy_static-0.2.11 lazy_static-1.0.2 lazycell-0.6.0 lber-0.1.6 ldap3-0.6.0 libc-0.2.42 libflate-0.1.16 log-0.3.9 log-0.4.3 lua52-sys-0.1.1 mac-0.1.1 markup5ever-0.7.2 matches-0.1.7 md-5-0.7.0 memchr-2.0.1 memoffset-0.2.1 mime-0.3.8 mime_guess-2.0.0-alpha.6 miniz-sys-0.1.10 mio-0.6.15 mio-uds-0.6.6 miow-0.2.1 mysql-14.0.0 mysql_common-0.8.0 named_pipe-0.3.0 native-tls-0.1.5 net2-0.2.33 new_debug_unreachable-1.0.1 nix-0.11.0 nodrop-0.1.12 nom-2.2.1 num-bigint-0.2.0 num-integer-0.1.39 num-traits-0.2.5 num_cpus-1.8.0 opaque-debug-0.1.1 openssl-0.9.24 openssl-sys-0.9.33 pbr-1.0.1 percent-encoding-1.0.1 phf-0.7.22 phf_codegen-0.7.22 phf_generator-0.7.22 phf_shared-0.7.22 pkg-config-0.3.12 precomputed-hash-0.1.1 proc-macro2-0.3.8 proc-macro2-0.4.9 procedural-masquerade-0.1.6 quick-error-1.2.2 quote-0.5.2 quote-0.6.4 rand-0.3.22 rand-0.4.2 rand-0.5.4 rand_core-0.2.1 redox_syscall-0.1.40 redox_termios-0.1.1 regex-1.0.2 regex-syntax-0.6.2 relay-0.1.1 remove_dir_all-0.5.1 reqwest-0.8.7 rustc-demangle-0.1.9 safemem-0.2.0 schannel-0.1.13 scoped-tls-0.1.2 scopeguard-0.3.3 security-framework-0.1.16 security-framework-sys-0.1.16 selectors-0.19.0 serde-1.0.70 serde_derive-1.0.70 serde_json-1.0.24 serde_urlencoded-0.5.2 servo_arc-0.1.1 sha-1-0.7.0 sha1-0.6.0 sha2-0.7.1 sha3-0.7.3 siphasher-0.2.3 slab-0.3.0 slab-0.4.0 smallvec-0.2.1 smallvec-0.6.3 stable_deref_trait-1.1.0 string_cache-0.7.3 string_cache_codegen-0.4.1 string_cache_shared-0.3.0 strsim-0.7.0 structopt-0.2.10 structopt-derive-0.2.10 syn-0.13.11 syn-0.14.5 take-0.1.0 tempdir-0.3.7 tendril-0.4.0 termcolor-1.0.1 termion-1.5.1 termios-0.2.2 termios-0.3.0 textwrap-0.10.0 thread_local-0.3.5 threadpool-1.7.1 time-0.1.40 tokio-0.1.7 tokio-codec-0.1.0 tokio-core-0.1.17 tokio-executor-0.1.2 tokio-fs-0.1.2 tokio-io-0.1.7 tokio-proto-0.1.1 tokio-reactor-0.1.2 tokio-service-0.1.0 tokio-tcp-0.1.0 tokio-threadpool-0.1.5 tokio-timer-0.2.4 tokio-tls-0.1.4 tokio-udp-0.1.1 tokio-uds-0.1.7 tokio-uds-proto-0.1.1 toml-0.4.6 try-lock-0.1.0 twox-hash-1.1.1 typenum-1.10.0 ucd-util-0.1.1 unicase-1.4.2 unicase-2.1.0 unicode-bidi-0.3.4 unicode-normalization-0.1.7 unicode-width-0.1.5 unicode-xid-0.1.0 unreachable-1.0.0 url-1.7.1 utf-8-0.7.4 utf8-ranges-1.0.0 uuid-0.6.5 vcpkg-0.2.4 vec_map-0.8.1 version_check-0.1.4 void-1.0.2 want-0.0.4 winapi-0.2.8 winapi-0.3.5 winapi-build-0.1.1 winapi-i686-pc-windows-gnu-0.4.0 winapi-x86_64-pc-windows-gnu-0.4.0 wincolor-1.0.0 ws2_32-sys-0.2.1 " inherit cargo DESCRIPTION="Scriptable network authentication cracker" HOMEPAGE="https://github.com/kpcyrd/badtouch" SRC_URI="$(cargo_crate_uris ${CRATES})" RESTRICT="mirror" LICENSE="GPL-3+" SLOT="0" KEYWORDS="~amd64 ~arm64 ~x86" IUSE="doc libressl" RDEPEND="!libressl? ( dev-libs/openssl:0= ) libressl? ( dev-libs/libressl:0= ) " DEPEND="${RDEPEND} >=virtual/rust-1.28.0" src_test() { cargo test || die "tests failed" } src_install() { cargo_src_install doman docs/badtouch.1 dodoc README.md dodoc scripts/* }
Gentoo Ebuild
3
gentoo/gentoo-rust
net-analyzer/badtouch/badtouch-0.6.1.ebuild
[ "BSD-3-Clause" ]
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.spark.sql.catalyst.optimizer import org.apache.spark.sql.catalyst.dsl.expressions._ import org.apache.spark.sql.catalyst.dsl.plans._ import org.apache.spark.sql.catalyst.expressions.objects.LambdaVariable import org.apache.spark.sql.catalyst.plans.PlanTest import org.apache.spark.sql.catalyst.plans.logical.{LocalRelation, LogicalPlan} import org.apache.spark.sql.catalyst.rules.RuleExecutor import org.apache.spark.sql.types.BooleanType class ReassignLambdaVariableIDSuite extends PlanTest { object Optimize extends RuleExecutor[LogicalPlan] { val batches = Batch("Optimizer Batch", FixedPoint(100), ReassignLambdaVariableID) :: Nil } test("basic: replace positive IDs with unique negative IDs") { val testRelation = LocalRelation('col.int) val var1 = LambdaVariable("a", BooleanType, true, id = 2) val var2 = LambdaVariable("b", BooleanType, true, id = 4) val query = testRelation.where(var1 && var2) val optimized = Optimize.execute(query) val expected = testRelation.where(var1.copy(id = -1) && var2.copy(id = -2)) comparePlans(optimized, expected) } test("ignore LambdaVariable with negative IDs") { val testRelation = LocalRelation('col.int) val var1 = LambdaVariable("a", BooleanType, true, id = -2) val var2 = LambdaVariable("b", BooleanType, true, id = -4) val query = testRelation.where(var1 && var2) val optimized = Optimize.execute(query) comparePlans(optimized, query) } test("fail if positive ID LambdaVariable and negative LambdaVariable both exist") { val testRelation = LocalRelation('col.int) val var1 = LambdaVariable("a", BooleanType, true, id = -2) val var2 = LambdaVariable("b", BooleanType, true, id = 4) val query = testRelation.where(var1 && var2) val e = intercept[IllegalStateException](Optimize.execute(query)) assert(e.getMessage.contains("should be all positive or negative")) } }
Scala
4
OlegPt/spark
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/optimizer/ReassignLambdaVariableIDSuite.scala
[ "Apache-2.0" ]
print "Hello World!\n";
Standard ML
0
PushpneetSingh/Hello-world
SML/hello-world.sml
[ "MIT" ]
; inherits: ecma,jsx
Scheme
1
hmac/nvim-treesitter
queries/javascript/injections.scm
[ "Apache-2.0" ]
require! \jsdom { window } = new jsdom.JSDOM '<!doctype html><html><body></body></html>' global <<< document: window.document navigator: user-agent: \JSDOM window: window # introduction of the following poperty is caused by a react 16 bug. # for more information visit https://github.com/facebook/react/issues/9102 requestAnimationFrame:-> throw new Error 'requestAnimationFrame is not supported in Node' require! \./simple-select require! \./multi-select require! \./highlighted-text
LiveScript
3
rodcope1/react-selectize-rodcope1
test/index.ls
[ "Apache-2.0" ]
package com.airbnb.lottie.network; import androidx.annotation.NonNull; import java.io.File; /** * Interface for providing the custom cache directory where animations downloaded via url are saved. * * @see com.airbnb.lottie.Lottie#initialize */ public interface LottieNetworkCacheProvider { /** * Called during cache operations * * @return cache directory */ @NonNull File getCacheDir(); }
Java
4
headsvk/lottie-android
lottie/src/main/java/com/airbnb/lottie/network/LottieNetworkCacheProvider.java
[ "Apache-2.0" ]
#include <stdio.h> void printhello(){ printf("Helloworld\n"); }
C
2
Havoc-OS/androidprebuilts_go_linux-x86
src/internal/xcoff/testdata/printhello.c
[ "BSD-3-Clause" ]
#include <MsgBoxConstants.au3> MsgBox($MB_OK, "Hi!", "Hello World!")
AutoIt
2
JStearsman/hello-worlds
examples/AutoIt.au3
[ "Unlicense" ]
// @target: es3 var x: number = 02343
TypeScript
1
nilamjadhav/TypeScript
tests/cases/compiler/isLiteral2.ts
[ "Apache-2.0" ]
export async function getStaticProps(ctx) { let toLocale = ctx.params.locale if (toLocale === 'from-ctx') { toLocale = ctx.locale } return { redirect: { destination: `/${toLocale}/home`, permanent: false, }, } } export async function getStaticPaths() { return { paths: [], fallback: true } } export default function Component() { return 'gsp-fallback-redirect' }
JavaScript
4
nazarepiedady/next.js
test/e2e/i18n-data-fetching-redirect/app/pages/gsp-fallback-redirect/[locale].js
[ "MIT" ]
module org-openroadm-de-operations { namespace "http://org/openroadm/de/operations"; prefix org-openroadm-de-operations; import org-openroadm-resource { prefix org-openroadm-resource; } import org-openroadm-common-types { prefix org-openroadm-common-types; } organization "Open ROADM MSA"; contact "OpenROADM.org"; description "YANG definitions of operations. Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016, AT&T Intellectual Property. All other rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the Members of the Open ROADM MSA Agreement nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."; revision 2016-10-14 { description "Version 1.2"; } rpc restart { description "Restart a resource with warm/cold option. If no resource is provided or only the device name is provded, then the device itself will be restarted. Note that resources on the device will not be restartable"; input { uses org-openroadm-resource:resource; leaf option{ type enumeration{ enum "warm"{ value 1; } enum "cold"{ value 2; } } } } output { uses org-openroadm-common-types:rpc-response-status; } } notification restart-notification { description "This Notification is sent when a resource on a device has completed a restart. This is sent as a result of restarts triggered via the restart RPC and other means. The resource identified is the from the RPC request or the equivalment if the restart was triggered another way."; uses org-openroadm-resource:resource; } }
YANG
5
meodaiduoi/onos
models/openroadm/src/main/yang/org-openroadm-de-operations@2016-10-14.yang
[ "Apache-2.0" ]
t app appmode photo t app test vin_rotate 90 sleep 5 t app button shutter PR d:\autoexec.ash REBOOT yes
AGS Script
1
waltersgrey/autoexechack
rotation/panorama/90/autoexec.ash
[ "MIT" ]
<span class="bd-color" style="background: hsl(14, 100%, 53%);"></span> <code>hsl(14, 100%, 53%)</code>
HTML
1
kalpitzeta/bulma
docs/_includes/color/orange.html
[ "MIT" ]
digraph callgraph { N1 [ label = "a", flag = true ]; N1 -> N7 ; N5 [ label = "f", flag = false ]; N5 -> N4 ; N0 [ label = "b", flag = true ]; N0 -> N1 ; N7 [ label = "main", flag = true ]; N6 [ label = "e", flag = true ]; N6 -> N7 ; N4 [ label = "d", flag = true ]; N4 -> N6 ; N4 -> N3 ; N2 [ label = "g", flag = false ]; N2 -> N1 ; N3 [ label = "c", flag = true ]; N3 -> N0 ; }
Graphviz (DOT)
3
JacobBarthelmeh/infer
infer/tests/build_systems/incremental_analysis_change_procedure/reverse_analysis_callgraph.dot
[ "MIT" ]
<figure class="attachment attachment--preview"> <%= image_tag(remote_image.url, width: remote_image.width, height: remote_image.height) %> <% if caption = remote_image.try(:caption) %> <figcaption class="attachment__caption"> <%= caption %> </figcaption> <% end %> </figure>
HTML+ERB
4
mdesantis/rails
actiontext/app/views/action_text/attachables/_remote_image.html.erb
[ "MIT" ]
mutation DeleteTeam($teamID: ID!) { deleteTeam(teamID: $teamID) }
GraphQL
2
miily8310s/hoppscotch
packages/hoppscotch-app/helpers/backend/gql/mutations/DeleteTeam.graphql
[ "MIT" ]
data division. linkage section. 01 require. procedure division. local http. local server. perform require using "http" giving http. perform createServer in http using doget giving server. perform listen in server using 8000. display "listening on port 8000". doget section using request, response. perform write in response using "<h1>Hello, world</h1>". perform end in response.
COBOL
4
jmptrader/CobolScript
samples/webserver/webserver.cob
[ "MIT" ]
MEMORY { FLASH_TEXT (rx) : ORIGIN = 0x08000000, LENGTH = 32K RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 8K } _stack_size = 2K; INCLUDE "targets/arm.ld"
Linker Script
3
attriaayush/tinygo
targets/stm32l031k6.ld
[ "Apache-2.0" ]
10 5 0 0 0 1 5 1 3 4 5 2 [0] [0] [0] [0] [0] 1 1 5 8 9 10 6 7 [-1] [25] [11] [17] [-3] 2 1 4 10 8 6 7 [0] [0] [0] [0] 3 1 5 7 10 6 9 8 [2] [0] [3] [10] [0] 4 1 5 7 9 10 6 8 [-4] [2] [11] [-4] [10] 5 1 4 6 9 7 8 [13] [23] [-3] [3] 6 1 4 11 2 4 3 [5] [-21] [-11] [-13] 7 1 1 11 [8] 8 1 1 11 [10] 9 1 1 11 [1] 10 1 4 11 4 2 3 [7] [-17] [-8] [-17] 11 1 0 0 1 0 0 0 0 0 0 1 1 9 3 2 2 4 1 2 1 1 2 2 1 2 3 3 1 5 3 3 5 4 5 4 1 6 2 4 1 2 4 5 1 8 4 3 3 2 4 6 1 5 4 3 5 1 2 7 1 8 5 2 5 4 4 8 1 10 5 2 4 5 5 9 1 1 2 2 3 2 4 10 1 7 1 5 5 2 3 11 1 0 0 0 0 0 0 7 7 7 7 7
Eagle
1
klorel/or-tools
examples/data/rcpsp/single_mode_max_delay/sm_j10/psp167.sch
[ "Apache-2.0" ]
%% %unicode 5.1 %public %class UnicodeScripts_f %type int %standalone %include ../../resources/common-unicode-enumerated-property-java %% \p{Script:This will never be a script name} { setCurCharPropertyValue("Never a script name"); } <<EOF>> { printOutput(); return 1; }
JFlex
3
Mivik/jflex
testsuite/testcases/src/test/cases/unicode-scripts/unicode-scripts-f.flex
[ "BSD-3-Clause" ]
# Test the behavior of order-only dependencies. # We run the build in a sandbox in the temp directory to ensure we don't # interact with the source dirs. # # RUN: rm -rf %t.build # RUN: mkdir -p %t.build # RUN: cp %s %t.build/build.ninja # RUN: echo "input-1" > %t.build/input-1 # RUN: echo "input-2" > %t.build/input-2 # RUN: echo "input-3" > %t.build/input-3 # RUN: %{llbuild} ninja build --jobs 1 --chdir %t.build &> %t1.out # RUN: %{FileCheck} --check-prefix=CHECK-INITIAL --input-file=%t1.out %s # RUN: %{FileCheck} --check-prefix=CHECK-INITIAL-OUTPUT --input-file=%t.build/output %s # Verify that the first build builds output-2 after output-1 and output-3. # # CHECK-INITIAL: [1/{{.*}}] "cp input-1 output-1" # CHECK-INITIAL: [2/{{.*}}] "cp input-3 output-3" # CHECK-INITIAL: [3/{{.*}}] "cp input-2 output-2" # CHECK-INITIAL: [4/{{.*}}] "cat output-1 output-2 output-3 > output" # # Verify the output matches expectations. # # CHECK-INITIAL-OUTPUT: input-1 # CHECK-INITIAL-OUTPUT-NEXT: input-2 # CHECK-INITIAL-OUTPUT-NEXT: input-3 # Run a second build, after modifying "input-1". Only output-1 and the final # output should rebuild, since the dependencies are order only. # # RUN: echo "input-1-mod" >> %t.build/input-1 # RUN: %{llbuild} ninja build --strict --jobs 1 --chdir %t.build &> %t2.out # RUN: %{FileCheck} --check-prefix=CHECK-AFTER-MOD --input-file=%t2.out %s # Check the second build. # # CHECK-AFTER-MOD: [1/{{.*}}] "cp input-1 output-1" # CHECK-AFTER-MOD: [2/{{.*}}] "cat output-1 output-2 output-3 > output" rule CP command = cp ${in} ${out} description = "${command}" rule CAT command = cat ${in} > ${out} description = "${command}" build output-1: CP input-1 build output-2: CP input-2 || output-1 output-3 build output-3: CP input-3 || output-1 build output: CAT output-1 output-2 output-3 default output
Ninja
5
trombonehero/swift-llbuild
tests/Ninja/Build/order-only-deps.ninja
[ "Apache-2.0" ]
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Drag-Drop</title> </head> <body> <style> main { text-align: center; margin: 20px auto; max-width: 400px; } </style> <main class="foo"> <h1>Drag-drop is here</h1> <input type="text"/> <div id="uppyDragDrop"></div> <div id="uppyDragDrop-progress"></div> <input type="text"/> </main> <script src="./index.js" type="module"></script> </body> </html>
HTML
3
camiloforero/uppy
private/dev/dragdrop.html
[ "MIT" ]
#***************************************************************************** # * # Make file for VMS * # Author : J.Jansen (joukj@hrem.nano.tudelft.nl) * # Date : 13 February 2006 * # * #***************************************************************************** .first define wx [--.include.wx] .ifdef __WXMOTIF__ CXX_DEFINE = /define=(__WXMOTIF__=1)/name=(as_is,short)\ /assume=(nostdnew,noglobal_array_new) CC_DEFINE = /define=(__WXMOTIF__=1)/name=(as_is,short) .else .ifdef __WXGTK__ CXX_DEFINE = /define=(__WXGTK__=1)/float=ieee/name=(as_is,short)/ieee=denorm\ /assume=(nostdnew,noglobal_array_new) CC_DEFINE = /define=(__WXGTK__=1)/float=ieee/name=(as_is,short)/ieee=denorm .else .ifdef __WXGTK2__ CXX_DEFINE = /define=(__WXGTK__=1,VMS_GTK2)/float=ieee/name=(as_is,short)/ieee=denorm\ /assume=(nostdnew,noglobal_array_new) CC_DEFINE = /define=(__WXGTK__=1,VMS_GTK2)/float=ieee/name=(as_is,short)/ieee=denorm .else .ifdef __WXX11__ CXX_DEFINE = /define=(__WXX11__=1,__WXUNIVERSAL__==1)/float=ieee\ /name=(as_is,short)/assume=(nostdnew,noglobal_array_new) CC_DEFINE = /define=(__WXX11__=1,__WXUNIVERSAL__==1)/float=ieee\ /name=(as_is,short) .else CXX_DEFINE = CC_DEFINE = .endif .endif .endif .endif .suffixes : .cpp .cpp.obj : cxx $(CXXFLAGS)$(CXX_DEFINE) $(MMS$TARGET_NAME).cpp .c.obj : cc $(CFLAGS)$(CC_DEFINE) $(MMS$TARGET_NAME).c OBJECTS = xml.obj\ SOURCES = xml.cpp\ all : $(SOURCES) $(MMS)$(MMSQUALIFIERS) $(OBJECTS) .ifdef __WXMOTIF__ library [--.lib]libwx_motif.olb $(OBJECTS) .else .ifdef __WXGTK__ library [--.lib]libwx_gtk.olb $(OBJECTS) .else .ifdef __WXGTK2__ library [--.lib]libwx_gtk2.olb $(OBJECTS) .else .ifdef __WXX11__ library [--.lib]libwx_x11_univ.olb $(OBJECTS) .endif .endif .endif .endif xml.obj : xml.cpp
Module Management System
3
gamekit-developers/gamekit
wxWidgets-2.9.1/src/xml/descrip.mms
[ "Zlib", "MIT" ]
[{ "@id": "_:cl1", "http://www.w3.org/1999/02/22-rdf-syntax-ns#value": [{"@value": "en-US"}], "http://www.w3.org/1999/02/22-rdf-syntax-ns#language": [{"@value": "en-us"}], "http://www.w3.org/1999/02/22-rdf-syntax-ns#direction": [{"@value": "rtl"}] }, { "@id": "http://example.com/a", "http://example.org/label": [{"@id": "_:cl1"}] }]
JSONLD
3
donbowman/rdflib
test/jsonld/1.1/fromRdf/di08-out.jsonld
[ "BSD-3-Clause" ]
class_name Cel extends Reference # A class for cel properties. # The term "cel" comes from "celluloid" (https://en.wikipedia.org/wiki/Cel). # The "image" variable is where the image data of each cel are. var image : Image setget image_changed var image_texture : ImageTexture var opacity : float func _init(_image := Image.new(), _opacity := 1.0, _image_texture : ImageTexture = null) -> void: if _image_texture: image_texture = _image_texture else: image_texture = ImageTexture.new() self.image = _image opacity = _opacity func image_changed(value : Image) -> void: image = value if !image.is_empty(): image_texture.create_from_image(image, 0)
GDScript
4
triptych/Pixelorama
src/Classes/Cel.gd
[ "MIT" ]
module openconfig-optical-amplifier { yang-version "1"; // namespace namespace "http://openconfig.net/yang/optical-amplfier"; prefix "oc-opt-amp"; import openconfig-transport-line-common { prefix oc-line-com; revision-date "2016-03-31"; } import openconfig-extensions { prefix oc-ext; revision-date "2015-10-09"; } // import tailf-common {prefix "tailf";} // tailf:export netconf; // tailf:export rest; // meta organization "OpenConfig working group"; contact "OpenConfig working group www.openconfig.net"; description "This model describes configuration and operational state data for optical amplifiers, deployed as part of a transport line system."; oc-ext:openconfig-version "0.1.0"; revision "2016-03-31" { description "Initial public release"; reference "0.1.0"; } revision "2015-12-11" { description "Initial revision"; reference "TBD"; } // extension statements // feature statements // identity statements identity OPTICAL_AMPLIFIER_TYPE { description "Type definition for different types of optical amplifiers"; } identity EDFA { base OPTICAL_AMPLIFIER_TYPE; description "Erbium doped fiber amplifer (EDFA)"; } identity FORWARD_RAMAN { base OPTICAL_AMPLIFIER_TYPE; description "Forward pumping Raman amplifier"; } identity BACKWARD_RAMAN { base OPTICAL_AMPLIFIER_TYPE; description "Backward pumping Raman amplifier"; } identity HYBRID { base OPTICAL_AMPLIFIER_TYPE; description "Hybrid backward pumping Raman + EDFA amplifier"; } identity GAIN_RANGE { description "Base type for expressing the gain range for a switched gain amplifier. The gain range is expressed as a generic setting, e.g., LOW/MID/HIGH. The actual db range will be determined by the implementation."; } identity LOW_GAIN_RANGE { base GAIN_RANGE; description "LOW gain range setting"; } identity MID_GAIN_RANGE { base GAIN_RANGE; description "MID gain range setting"; } identity HIGH_GAIN_RANGE { base GAIN_RANGE; description "HIGH gain range setting"; } identity FIXED_GAIN_RANGE { base GAIN_RANGE; description "Fixed or non-switched gain amplfier"; } identity OPTICAL_AMPLIFIER_MODE { description "Type definition for different types of optical amplifier operating modes"; } identity CONSTANT_POWER { base OPTICAL_AMPLIFIER_MODE; description "Constant power mode"; } identity CONSTANT_GAIN { base OPTICAL_AMPLIFIER_MODE; description "Constant gain mode"; } // grouping statements grouping optical-amplifier-config { description "Configuration data for optical amplifiers"; leaf name { type string; description "User-defined name assigned to identify a specific amplifier in the device"; } leaf type { type identityref { base OPTICAL_AMPLIFIER_TYPE; } description "Type of the amplifier"; } leaf target-gain { type decimal64 { fraction-digits 2; range 0..max; } units dB; description "Positive gain applied by the amplifier."; } leaf target-gain-tilt { type decimal64 { fraction-digits 2; } units dB; description "Gain tilt control"; } leaf gain-range { type identityref { base GAIN_RANGE; } description "Selected gain range. The gain range is a platform-defined value indicating the switched gain amplifier setting"; } leaf amp-mode { type identityref { base OPTICAL_AMPLIFIER_MODE; } description "The operating mode of the amplifier"; } leaf output-power { type decimal64 { fraction-digits 2; } units dBm; description "Output optical power of the amplifier."; } } grouping optical-amplifier-state { description "Operational state data for optical amplifiers"; leaf actual-gain { type decimal64 { fraction-digits 2; range 0..max; } units dB; description "Actual gain applied by the amplifier."; } leaf actual-gain-tilt { type decimal64 { fraction-digits 2; } units dB; description "The actual gain tilt."; } leaf input-power { type decimal64 { fraction-digits 2; } units dBm; description "Input optical power of the amplifier."; } } grouping optical-amplifier-top { description "Top-level grouping for optical amplifier data"; container optical-amplifiers { description "Enclosing container for list of amplifiers"; list amplifier { key "name"; description "List of optical amplifiers present in the device"; leaf name { type leafref { path "../config/name"; } description "Reference to the name of the amplifier"; } container config { description "Configuration data for the amplifier"; uses optical-amplifier-config; } container state { config false; description "Operational state data for the amplifier"; uses optical-amplifier-config; uses optical-amplifier-state; } } uses oc-line-com:optical-osc-top; } } // data definition statements uses optical-amplifier-top; }
YANG
5
Shinkirou/onos
models/openconfig-infinera/src/main/yang/openconfig-optical-amplifier@2016-03-31.yang
[ "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 System.Collections.Generic Imports System.Collections.Immutable Imports System.Collections.ObjectModel Imports System.Reflection.Metadata Imports System.Runtime.InteropServices Imports System.Threading Imports Microsoft.CodeAnalysis.PooledObjects Imports Microsoft.CodeAnalysis.VisualBasic.Symbols Namespace Microsoft.CodeAnalysis.VisualBasic.Symbols.Metadata.PE ''' <summary> ''' The base class to represent a namespace imported from a PE/module. ''' Namespaces that differ only by casing in name are merged. ''' </summary> Friend MustInherit Class PENamespaceSymbol Inherits PEOrSourceOrMergedNamespaceSymbol ''' <summary> ''' A map of namespaces immediately contained within this namespace ''' grouped by their name (case-insensitively). ''' </summary> Protected m_lazyMembers As Dictionary(Of String, ImmutableArray(Of Symbol)) ''' <summary> ''' A map of types immediately contained within this namespace ''' grouped by their name (case-insensitively). ''' </summary> Protected m_lazyTypes As Dictionary(Of String, ImmutableArray(Of PENamedTypeSymbol)) ''' <summary> ''' A map of NoPia local types immediately contained in this assembly. ''' Maps fully-qualified type name to the row id. ''' </summary> Private _lazyNoPiaLocalTypes As Dictionary(Of String, TypeDefinitionHandle) ' Lazily filled in collection of all contained modules. Private _lazyModules As ImmutableArray(Of NamedTypeSymbol) ' Lazily filled in collection of all contained types. Private _lazyFlattenedTypes As ImmutableArray(Of NamedTypeSymbol) Friend NotOverridable Overrides ReadOnly Property Extent As NamespaceExtent Get Return New NamespaceExtent(Me.ContainingPEModule) End Get End Property Public Overrides Function GetModuleMembers() As ImmutableArray(Of NamedTypeSymbol) ' Since this gets called a LOT during binding, it's worth caching the result. If _lazyModules.IsDefault Then ' We have to read all the types to discover which ones are modules, so I'm not ' sure there is any better strategy on first call then getting all type members ' and filtering them. ' Ordered. Dim modules = GetTypeMembers().WhereAsArray(Function(t) t.TypeKind = TYPEKIND.Module) ImmutableInterlocked.InterlockedCompareExchange(_lazyModules, modules, Nothing) End If Return _lazyModules End Function Public Overrides Function GetModuleMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) ' This is not called during binding, so caching isn't very critical. Return GetTypeMembers(name).WhereAsArray(Function(t) t.TypeKind = TYPEKIND.Module) End Function Public NotOverridable Overloads Overrides Function GetMembers() As ImmutableArray(Of Symbol) EnsureAllMembersLoaded() Return m_lazyMembers.Flatten() End Function Friend Overrides ReadOnly Property EmbeddedSymbolKind As EmbeddedSymbolKind Get Return EmbeddedSymbolKind.None End Get End Property Public NotOverridable Overloads Overrides Function GetMembers(name As String) As ImmutableArray(Of Symbol) EnsureAllMembersLoaded() Dim m As ImmutableArray(Of Symbol) = Nothing If m_lazyMembers.TryGetValue(name, m) Then Return m End If Return ImmutableArray(Of Symbol).Empty End Function Public NotOverridable Overloads Overrides Function GetTypeMembers() As ImmutableArray(Of NamedTypeSymbol) Dim result = _lazyFlattenedTypes If Not result.IsDefault Then Return result End If EnsureAllMembersLoaded() result = StaticCast(Of NamedTypeSymbol).From(m_lazyTypes.Flatten()) _lazyFlattenedTypes = result Return result End Function Public NotOverridable Overloads Overrides Function GetTypeMembers(name As String) As ImmutableArray(Of NamedTypeSymbol) EnsureAllMembersLoaded() Dim t As ImmutableArray(Of PENamedTypeSymbol) = Nothing If m_lazyTypes.TryGetValue(name, t) Then Return StaticCast(Of NamedTypeSymbol).From(t) End If Return ImmutableArray(Of NamedTypeSymbol).Empty End Function Public Overloads Overrides Function GetTypeMembers(name As String, arity As Integer) As ImmutableArray(Of NamedTypeSymbol) Return GetTypeMembers(name).WhereAsArray(Function(type, arity_) type.Arity = arity_, arity) End Function Public NotOverridable Overrides ReadOnly Property Locations As ImmutableArray(Of Location) Get Return StaticCast(Of Location).From(ContainingPEModule.MetadataLocation) End Get End Property Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) Get Return ImmutableArray(Of SyntaxReference).Empty End Get End Property ''' <summary> ''' Returns PEModuleSymbol containing the namespace. ''' </summary> ''' <returns>PEModuleSymbol containing the namespace.</returns> Friend MustOverride ReadOnly Property ContainingPEModule As PEModuleSymbol Protected MustOverride Sub EnsureAllMembersLoaded() ''' <summary> ''' Initializes m_Namespaces and m_Types maps with information about ''' namespaces and types immediately contained within this namespace. ''' </summary> ''' <param name="typesByNS"> ''' The sequence of groups of TypeDef row ids for types contained within the namespace, ''' recursively including those from nested namespaces. The row ids must be grouped by the ''' fully-qualified namespace name in case-sensitive manner. There could be multiple groups ''' for each fully-qualified namespace name. The groups must be sorted by their key in ''' case-insensitive manner. Empty string must be used as namespace name for types ''' immediately contained within Global namespace. Therefore, all types in THIS namespace, ''' if any, must be in several first IGroupings. ''' </param> Protected Sub LoadAllMembers(typesByNS As IEnumerable(Of IGrouping(Of String, TypeDefinitionHandle))) Debug.Assert(typesByNS IsNot Nothing) ' A sequence of TypeDef handles for types immediately contained within this namespace. Dim nestedTypes As IEnumerable(Of IGrouping(Of String, TypeDefinitionHandle)) = Nothing ' A sequence with information about namespaces immediately contained within this namespace. ' For each pair: ' Key - contains simple name of a child namespace. ' Value - contains a sequence similar to the one passed to this function, but ' calculated for the child namespace. Dim nestedNamespaces As IEnumerable(Of KeyValuePair(Of String, IEnumerable(Of IGrouping(Of String, TypeDefinitionHandle)))) = Nothing 'TODO: Perhaps there is a cheaper way to calculate the length of the name without actually building it with ToDisplayString. Dim isGlobalNamespace As Boolean = Me.IsGlobalNamespace MetadataHelpers.GetInfoForImmediateNamespaceMembers( isGlobalNamespace, If(isGlobalNamespace, 0, ToDisplayString(SymbolDisplayFormat.QualifiedNameOnlyFormat).Length), typesByNS, CaseInsensitiveComparison.Comparer, nestedTypes, nestedNamespaces) LazyInitializeTypes(nestedTypes) LazyInitializeNamespaces(nestedNamespaces) End Sub ''' <summary> ''' Create symbols for nested namespaces and initialize m_Namespaces map. ''' </summary> Private Sub LazyInitializeNamespaces( childNamespaces As IEnumerable(Of KeyValuePair(Of String, IEnumerable(Of IGrouping(Of String, TypeDefinitionHandle)))) ) If m_lazyMembers Is Nothing Then Dim members As New Dictionary(Of String, ImmutableArray(Of Symbol))(CaseInsensitiveComparison.Comparer) ' Add namespaces For Each child In childNamespaces Dim ns = New PENestedNamespaceSymbol(child.Key, Me, child.Value) members.Add(ns.Name, ImmutableArray.Create(Of Symbol)(ns)) Next ' Merge in the types For Each typeSymbols As ImmutableArray(Of PENamedTypeSymbol) In m_lazyTypes.Values Dim name = typeSymbols(0).Name Dim symbols As ImmutableArray(Of Symbol) = Nothing If Not members.TryGetValue(name, symbols) Then members.Add(name, StaticCast(Of Symbol).From(typeSymbols)) Else members(name) = symbols.Concat(StaticCast(Of Symbol).From(typeSymbols)) End If Next Interlocked.CompareExchange(m_lazyMembers, members, Nothing) End If End Sub ''' <summary> ''' Create symbols for nested types and initialize m_Types map. ''' </summary> Private Sub LazyInitializeTypes(typeGroups As IEnumerable(Of IGrouping(Of String, TypeDefinitionHandle))) If m_lazyTypes Is Nothing Then Dim moduleSymbol = ContainingPEModule Dim children = ArrayBuilder(Of PENamedTypeSymbol).GetInstance() Dim skipCheckForPiaType = Not moduleSymbol.Module.ContainsNoPiaLocalTypes() Dim noPiaLocalTypes As Dictionary(Of String, TypeDefinitionHandle) = Nothing Dim isGlobal = Me.IsGlobalNamespace For Each g In typeGroups For Each t In g If skipCheckForPiaType OrElse Not moduleSymbol.Module.IsNoPiaLocalType(t) Then Dim type = If(isGlobal, New PENamedTypeSymbol(moduleSymbol, Me, t), New PENamedTypeSymbolWithEmittedNamespaceName(moduleSymbol, Me, t, g.Key)) children.Add(type) Else ' The dictionary of NoPIA local types must be indexed by fully-qualified names ' (namespace + type name), and key comparison must be case-sensitive. The ' reason is this PENamespaceSymbol is a merged namespace of all namespaces ' from the same module in metadata but with potentially different casing. ' When resolving a NoPIA type, the casing must match however, so it is not ' sufficient to simply use the type name. In C#, namespaces with different ' casing are not merged so type name is sufficient there. Try Dim typeDefName As String = moduleSymbol.Module.GetTypeDefNameOrThrow(t) If noPiaLocalTypes Is Nothing Then noPiaLocalTypes = New Dictionary(Of String, TypeDefinitionHandle)() End If Dim qualifiedName = MetadataHelpers.BuildQualifiedName(g.Key, typeDefName) noPiaLocalTypes(qualifiedName) = t Catch mrEx As BadImageFormatException End Try End If Next Next Dim typesDict As Dictionary(Of String, ImmutableArray(Of PENamedTypeSymbol)) = children.ToDictionary(Function(c) c.Name, CaseInsensitiveComparison.Comparer) children.Free() If _lazyNoPiaLocalTypes Is Nothing Then Interlocked.CompareExchange(_lazyNoPiaLocalTypes, noPiaLocalTypes, Nothing) End If If Interlocked.CompareExchange(m_lazyTypes, typesDict, Nothing) Is Nothing Then ' Build cache of TypeDef Tokens ' Potentially this can be done in the background. moduleSymbol.OnNewTypeDeclarationsLoaded(typesDict) End If End If End Sub ''' <summary> ''' For test purposes only. ''' </summary> Friend ReadOnly Property AreTypesLoaded As Boolean Get Return m_lazyTypes IsNot Nothing End Get End Property ''' <summary> ''' Return the set of types that should be checked for presence of extension methods in order to build ''' a map of extension methods for the namespace. ''' </summary> Friend Overrides ReadOnly Property TypesToCheckForExtensionMethods As ImmutableArray(Of NamedTypeSymbol) Get If ContainingPEModule.MightContainExtensionMethods Then ' Note that we are using GetTypeMembers rather than GetModuleMembers because non-Modules imported ' from metadata can contain extension methods. Return Me.GetTypeMembers() ' Ordered. End If Return ImmutableArray(Of NamedTypeSymbol).Empty End Get End Property Friend Overloads Function LookupMetadataType(ByRef emittedTypeName As MetadataTypeName, <Out> ByRef isNoPiaLocalType As Boolean) As NamedTypeSymbol Dim result = LookupMetadataType(emittedTypeName) isNoPiaLocalType = False If TypeOf result Is MissingMetadataTypeSymbol Then EnsureAllMembersLoaded() Dim typeDef As TypeDefinitionHandle = Nothing ' See if this is a NoPia local type, which we should unify. If _lazyNoPiaLocalTypes IsNot Nothing AndAlso _lazyNoPiaLocalTypes.TryGetValue(emittedTypeName.FullName, typeDef) Then result = DirectCast(New MetadataDecoder(ContainingPEModule).GetTypeOfToken(typeDef, isNoPiaLocalType), NamedTypeSymbol) Debug.Assert(isNoPiaLocalType) End If End If Return result End Function End Class End Namespace
Visual Basic
5
ffMathy/roslyn
src/Compilers/VisualBasic/Portable/Symbols/Metadata/PE/PENamespaceSymbol.vb
[ "MIT" ]
// This example is copied from this article: https://developers.google.com/web/updates/2017/12/audio-worklet class GainProcessor extends AudioWorkletProcessor { constructor() { super(); this.port.onmessage = (event) => { this.port.postMessage(event.data); }; } // eslint-disable-next-line class-methods-use-this process([input], [output], { gain }) { for (const [channel, inputChannel] of input.entries()) { const outputChannel = output[channel]; // eslint-disable-next-line unicorn/no-for-loop for (let i = 0; i < inputChannel.length; i += 1) { outputChannel[i] = inputChannel[i] * (gain.length === 1 ? gain[0] : gain[i]); } } return true; } } GainProcessor.parameterDescriptors = [ { defaultValue: 1, name: 'gain' } ]; registerProcessor('gain-processor', GainProcessor); // @todo The filename is .xs instead of .js to prevent prettier from adding a final line break. // This is a comment which is meant to be the last line of the file with no following line break.
XS
4
dunnky/standardized-audio-context
test/fixtures/gain-processor-with-comment.xs
[ "MIT" ]
shlide(1) ["Version 1.0"] # NAME shlide - a slide deck presentation tool written in pure bash # SYNOPSIS shlide _deck-directory/_ # DESCRIPTION Create a directory for your slides. Name each slide starting with a number and a hyphen, like so: $ mkdir deck++ $ touch deck/1-first-slide.txt++ $ touch deck/2-another.txt *Note*: Make sure to prefix the first 9 slides with a *0* (e.g. 01-foo.txt, 02-bar.txt ...), if you have more than 10 slides. Finally, run: $ shlide deck/ # CONTROLS Next slide: *j*, *n*, *;*, *space*, *enter* Previous slide: *k*, *p*, *,*, *backspace* Jump to first slide: *0* Jump to last slide: *G* Reload: *r* Quit: *q* # FORMATTING Slide content can be formatted like so: Welcome to ${GRN}shlide${RST}. ${STR}Here${RST} are a few bullet points: \- first point++ \- second point++ \* ${ITA}sub point${RST}++ \* ${BLD}another${RST} sub point *Note*: Make sure to add ${RST} (reset) at the end. A full list of formatting options are below: ## Colors [[ *Key* :- *Effect* |- BLK :- black |- RED :- red |- GRN :- green |- YLW :- yellow |- BLU :- blue |- PUR :- purple |- CYN :- cyan |- RST :- reset ## Styles [[ *Key* :- *Effect* |- BLD :- bold |- DIM :- dim |- ITA :- italics |- UND :- underline |- FLS :- flashing |- REV :- reverse |- INV :- invert |- STR :- strikethrough # LICENSES shlide is licensed under the MIT license.
SuperCollider
4
puneethkanna/shlide
shlide.1.scd
[ "MIT" ]
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.todomvc.duel</groupId> <artifactId>todomvc</artifactId> <version>0.2.0</version> <packaging>war</packaging> <name>TodoMVC</name> <description>TodoMVC example written in DUEL</description> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <resourcesDir>${project.basedir}/src/main/resources</resourcesDir> <staticapps.version>0.9.11</staticapps.version> <merge.version>0.6.0</merge.version> <duel.version>0.9.7</duel.version> <slf4j.version>1.7.12</slf4j.version> <javac.version>1.7</javac.version> <duel.clientPrefix>todos.views</duel.clientPrefix> <duel.serverPrefix>com.todomvc.duel.views</duel.serverPrefix> <duel.sourceDir>${resourcesDir}/views/</duel.sourceDir> <duel.clientPath>/js/</duel.clientPath> <merge.cdnMapFile>/cdn.properties</merge.cdnMapFile> <merge.cdnRoot>/cdn/</merge.cdnRoot> <merge.cdnFiles>.ico .png .jpg .gif .cur .eot .woff .ttf .svg .svgz</merge.cdnFiles> <staticapps.config>${project.basedir}/staticapp.json</staticapps.config> </properties> <dependencies> <!-- SLF4J runtime --> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-jdk14</artifactId> <version>${slf4j.version}</version> </dependency> <!-- DUEL runtime --> <dependency> <groupId>org.duelengine</groupId> <artifactId>duel-runtime</artifactId> <version>${duel.version}</version> </dependency> <!-- DUEL staticapps --> <dependency> <groupId>org.duelengine</groupId> <artifactId>duel-staticapps</artifactId> <version>${staticapps.version}</version> </dependency> </dependencies> <build> <finalName>${project.artifactId}</finalName> <resources> <resource> <directory>${resourcesDir}</directory> <excludes> <!-- exclude DUEL sources from target output --> <exclude>**/*.duel</exclude> </excludes> </resource> </resources> <plugins> <!-- Tomcat 7 config --> <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.2</version> <configuration> <path>/</path> <port>8080</port> <uriEncoding>UTF-8</uriEncoding> <warSourceDirectory>${project.build.directory}/${project.build.finalName}/</warSourceDirectory> </configuration> </plugin> <!-- DUEL Compiler --> <plugin> <groupId>org.duelengine</groupId> <artifactId>duel-maven-plugin</artifactId> <version>${duel.version}</version> <executions> <execution> <goals> <goal>generate</goal> </goals> <configuration> <clientPrefix>${duel.clientPrefix}</clientPrefix> <serverPrefix>${duel.serverPrefix}</serverPrefix> <inputDir>${duel.sourceDir}</inputDir> <outputClientPath>${duel.clientPath}</outputClientPath> </configuration> </execution> </executions> </plugin> <!-- Merge Builder --> <plugin> <groupId>org.duelengine</groupId> <artifactId>merge-maven-plugin</artifactId> <version>${merge.version}</version> <executions> <execution> <goals> <goal>merge</goal> </goals> <configuration> <cdnMapFile>${merge.cdnMapFile}</cdnMapFile> <cdnRoot>${merge.cdnRoot}</cdnRoot> <cdnFiles>${merge.cdnFiles}</cdnFiles> </configuration> </execution> </executions> </plugin> <!-- Static App Builder --> <plugin> <groupId>org.duelengine</groupId> <artifactId>duel-staticapps-maven-plugin</artifactId> <version>${staticapps.version}</version> <executions> <execution> <goals> <goal>generate</goal> </goals> <configuration> <configPath>${staticapps.config}</configPath> </configuration> </execution> </executions> </plugin> </plugins> <pluginManagement> <plugins> <!-- Java compiler --> <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>${javac.version}</source> <target>${javac.version}</target> </configuration> </plugin> </plugins> </pluginManagement> </build> </project>
XML
4
dtelaroli/todomvc
examples/duel/pom.xml
[ "MIT" ]
DROP TABLE "public"."t6";
SQL
1
gh-oss-contributor/graphql-engine-1
cli/commands/testdata/config-v2-test-project/migrations/1620138189381_create_table_public_t6/down.sql
[ "Apache-2.0", "MIT" ]
#define TORCH_ASSERT_NO_OPERATORS #include <ATen/Dispatch.h> #include <ATen/native/DispatchStub.h> #include <ATen/native/cuda/Loops.cuh> #include <ATen/native/BinaryOps.h> #include <ATen/native/TensorIterator.h> #include <type_traits> // NOTE: CUDA on Windows requires that the enclosing function // of a __device__ lambda not have internal linkage. namespace at { namespace native { void remainder_kernel_cuda(TensorIteratorBase& iter) { if (isIntegralType(iter.common_dtype(), /*includeBool*/ false)) { AT_DISPATCH_INTEGRAL_TYPES(iter.common_dtype(), "remainder_cuda", [&]() { gpu_kernel_with_scalars(iter, []GPU_LAMBDA(scalar_t a, scalar_t b) -> scalar_t { scalar_t r = a % b; if (!std::is_unsigned<scalar_t>::value && (r != 0) && ((r < 0) != (b < 0))) { r += b; } return r; }); }); } else { AT_DISPATCH_FLOATING_TYPES_AND2(kHalf, kBFloat16, iter.common_dtype(), "remainder_cuda", [&]() { gpu_kernel_with_scalars(iter, []GPU_LAMBDA(scalar_t a, scalar_t b) __ubsan_ignore_float_divide_by_zero__ -> scalar_t { auto mod = ::fmod(a, b); if (!std::is_unsigned<scalar_t>::value && (mod != 0) && ((b < 0) != (mod < 0))) { mod += b; } return mod; }); }); } } void fmod_kernel_cuda(TensorIteratorBase& iter) { if (isIntegralType(iter.common_dtype(), /*includeBool*/ false)) { AT_DISPATCH_INTEGRAL_TYPES(iter.common_dtype(), "fmod_cuda", [&]() { gpu_kernel_with_scalars(iter, []GPU_LAMBDA(scalar_t a, scalar_t b) -> scalar_t { return a % b; }); }); } else { AT_DISPATCH_FLOATING_TYPES_AND(kHalf, iter.common_dtype(), "fmod_cuda", [&]() { gpu_kernel_with_scalars(iter, []GPU_LAMBDA(scalar_t a, scalar_t b) __ubsan_ignore_float_divide_by_zero__ -> scalar_t { return ::fmod(a, b); }); }); } } REGISTER_DISPATCH(remainder_stub, &remainder_kernel_cuda); REGISTER_DISPATCH(fmod_stub, &fmod_kernel_cuda); }} // namespace at::native
Cuda
4
PaliC/pytorch
aten/src/ATen/native/cuda/BinaryRemainderKernel.cu
[ "Intel" ]
= Documentation for JWT Feature The jwt feature adds support for JSON API access for all other features that ship with Rodauth, using JWT (JSON Web Tokens) to hold the session information. It depends on the json feature. In order to use this feature, you have to set the +jwt_secret+ configuration option the secret used to cryptographically protect the token. To use this JSON API, when processing responses for requests to a Rodauth endpoint, check for the Authorization header, and use the value of the response Authorization header as the request Authorization header in future requests, if the response Authorization header is set. If the response Authorization header is not set, then continue to use the previous Authorization header. When using this feature, consider using the <tt>json: :only</tt> option when loading the rodauth plugin, if you want Rodauth to only handle JSON requests. If you don't use the <tt>json: :only</tt> option, the jwt feature will probably result in an error if a request to a Rodauth endpoint comes in with a Content-Type that isn't application/json, unless you also set <tt>only_json? false</tt> in your rodauth configuration. If you would like to check if a valid JWT was submitted with the current request in your Roda app, you can call the +rodauth.valid_jwt?+ method. If +rodauth.valid_jwt?+ returns true, the contents of the jwt can be retrieved from +rodauth.session+. == Auth Value Methods invalid_jwt_format_error_message :: The error message to use when a JWT with an invalid format is submitted in the Authorization header. jwt_algorithm :: The JWT algorithm to use, +HS256+ by default. jwt_authorization_ignore :: A regexp matched against the Authorization header, which skips JWT processing if it matches. By default, HTTP Basic and Digest authentication are ignored. jwt_authorization_remove :: A regexp to remove from the Authorization header before processing the JWT. By default, a Bearer prefix is removed. jwt_decode_opts :: An optional hash to pass to +JWT.decode+. Can be used to set JWT verifiers. jwt_secret :: The JWT secret to use. Access to this should be protected the same as a session secret. jwt_session_key :: A key to nest the session hash under in the JWT payload. nil by default, for no nesting. jwt_symbolize_deeply? :: Whether to symbolize the session hash deeply. false by default. use_jwt? :: Whether to use the JWT in the Authorization header for authentication information. If false, falls back to using the rack session. By default, the Authorization header is used if it is present, if +only_json?+ is true, or if the request uses a json content type. == Auth Methods jwt_session_hash :: The session hash used to create the session_jwt. Can be used to set JWT claims. jwt_token :: Retrieve the JWT token from the request, by default taking it from the Authorization header. session_jwt :: An encoded JWT for the current session. set_jwt_token(token) :: Set the JWT token in the response, by default storing it in the Authorization header.
RDoc
4
BearerPipelineTest/rodauth
doc/jwt.rdoc
[ "MIT" ]
// https://dom.spec.whatwg.org/#documentorshadowroot interface mixin DocumentOrShadowRoot { }; Document includes DocumentOrShadowRoot; ShadowRoot includes DocumentOrShadowRoot; // https://html.spec.whatwg.org/multipage/dom.html#documentorshadowroot partial interface mixin DocumentOrShadowRoot { readonly attribute Element? activeElement; };
WebIDL
4
Unique184/jsdom
lib/jsdom/living/nodes/DocumentOrShadowRoot.webidl
[ "MIT" ]
"""The radiotherm component data.""" from __future__ import annotations from dataclasses import dataclass from typing import Any import radiotherm from radiotherm.thermostat import CommonThermostat from homeassistant.core import HomeAssistant from homeassistant.helpers import device_registry as dr from .const import TIMEOUT @dataclass class RadioThermUpdate: """An update from a radiotherm device.""" tstat: dict[str, Any] humidity: int | None @dataclass class RadioThermInitData: """An data needed to init the integration.""" tstat: CommonThermostat host: str name: str mac: str model: str | None fw_version: str | None api_version: int | None def _get_init_data(host: str) -> RadioThermInitData: tstat = radiotherm.get_thermostat(host) tstat.timeout = TIMEOUT name: str = tstat.name["raw"] sys: dict[str, Any] = tstat.sys["raw"] mac: str = dr.format_mac(sys["uuid"]) model: str = tstat.model.get("raw") return RadioThermInitData( tstat, host, name, mac, model, sys.get("fw_version"), sys.get("api_version") ) async def async_get_init_data(hass: HomeAssistant, host: str) -> RadioThermInitData: """Get the RadioInitData.""" return await hass.async_add_executor_job(_get_init_data, host) def _get_data(device: CommonThermostat) -> RadioThermUpdate: # Request the current state from the thermostat. # Radio thermostats are very slow, and sometimes don't respond # very quickly. So we need to keep the number of calls to them # to a bare minimum or we'll hit the Home Assistant 10 sec warning. We # have to make one call to /tstat to get temps but we'll try and # keep the other calls to a minimum. Even with this, these # thermostats tend to time out sometimes when they're actively # heating or cooling. tstat: dict[str, Any] = device.tstat["raw"] humidity: int | None = None if isinstance(device, radiotherm.thermostat.CT80): humidity = device.humidity["raw"] return RadioThermUpdate(tstat, humidity) async def async_get_data( hass: HomeAssistant, device: CommonThermostat ) -> RadioThermUpdate: """Fetch the data from the thermostat.""" return await hass.async_add_executor_job(_get_data, device)
Python
5
mib1185/core
homeassistant/components/radiotherm/data.py
[ "Apache-2.0" ]
exec("swigtest.start", -1); // Test on NULL null = getNull(); checkequal(SWIG_this(null), 0, "SWIG_this(null)"); null = SWIG_ptr(0); checkequal(isNull(null), %T, "func(null)"); // Test on variable expected_foo_addr = getFooAddress(); foo_addr = SWIG_this(pfoo_get()); checkequal(foo_addr, expected_foo_addr, "SWIG_this(pfoo_get())"); pfoo = SWIG_ptr(foo_addr); checkequal(equalFooPointer(pfoo), %T, "equalFooPointer(pfoo)"); // Test conversion of mlist type pointers stA = new_structA(); checkequal(typeof(stA), "_p_structA"); p = SWIG_ptr(stA); checkequal(typeof(p), "pointer"); exec("swigtest.quit", -1);
Scilab
3
kyletanyag/LL-Smartcard
cacreader/swig-4.0.2/Examples/test-suite/scilab/scilab_pointer_conversion_functions_runme.sci
[ "BSD-3-Clause" ]
<!-- Number badge --> <span class="mdl-badge" data-badge="4">Inbox</span>
HTML
2
greatwqs/staffjoy
frontend/third_party/node/material_design_lite/badge/snippets/badge-on-text-text.html
[ "MIT" ]
(module (memory 1 1) (import "spectest" "print" (func $print (param i32))) (import "asyncify" "start_unwind" (func $asyncify_start_unwind (param i32))) (import "asyncify" "stop_unwind" (func $asyncify_stop_unwind)) (import "asyncify" "start_rewind" (func $asyncify_start_rewind (param i32))) (import "asyncify" "stop_rewind" (func $asyncify_stop_rewind)) (global $sleeping (mut i32) (i32.const 0)) (start $runtime) (func $main (call $print (i32.const 10)) (call $before) (call $print (i32.const 20)) (call $sleep) (call $print (i32.const 30)) (call $after) (call $print (i32.const 40)) ) (func $before (call $print (i32.const 1)) ) (func $sleep (call $print (i32.const 1000)) (if (i32.eqz (global.get $sleeping)) (block (call $print (i32.const 2000)) (global.set $sleeping (i32.const 1)) (i32.store (i32.const 16) (i32.const 24)) (i32.store (i32.const 20) (i32.const 1024)) (call $asyncify_start_unwind (i32.const 16)) ) (block (call $print (i32.const 3000)) (call $asyncify_stop_rewind) (global.set $sleeping (i32.const 0)) ) ) (call $print (i32.const 4000)) ) (func $after (call $print (i32.const 2)) ) (func $runtime (call $print (i32.const 100)) ;; call main the first time, let the stack unwind (call $main) (call $print (i32.const 200)) (call $asyncify_stop_unwind) (call $print (i32.const 300)) ;; ...can do some async stuff around here... ;; set the rewind in motion (call $asyncify_start_rewind (i32.const 16)) (call $print (i32.const 400)) (call $main) (call $print (i32.const 500)) ) ;; interesting escaped name (func $DOS_ReadFile\28unsigned\20short\2c\20unsigned\20char*\2c\20unsigned\20short*\2c\20bool\29 (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) ) )
WebAssembly
3
phated/binaryen
test/unit/input/asyncify-pure.wat
[ "Apache-2.0" ]
data { int<lower=1> M; // number of countries int<lower=1> N0; // number of initial days for which to estimate infections int<lower=1> N[M]; // days of observed data for country m. each entry must be <= N2 int<lower=1> N2; // days of observed data + # of days to forecast int<lower=1> A; // number of age bands int<lower=1> SI_CUT; // number of days in serial interval to consider int<lower=1> P_RES; // number of predictors for residential contacts int<lower=1> P_NONRES; // number of predictors for non-residential contacts int WKEND_IDX_N[M]; // number of weekend indices in each location // data real pop[M]; matrix<lower=0, upper=1>[A,M] popByAge; // proportion of age bracket in population in location int epidemicStart[M]; int deaths[N2, M]; // reported deaths -- the rows with i > N contain -1 and should be ignored int<lower=0> wkend_idx[N2,M]; //indices of 1:N2 that correspond to weekends in location m matrix[N2,P_RES] covariates_res[M]; // predictors for residential contacts matrix[N2,P_NONRES] covariates_nonres[M]; // predictors for non-residential contacts // priors matrix[A,A] cntct_weekdays_mean[M]; // mean of prior contact rates between age groups on weekdays matrix[A,A] cntct_weekends_mean[M]; // mean of prior contact rates between age groups on weekends real<lower=0> ifr_country_scale[M]; // relative probability of death for location, s days after infection, for age band a matrix<lower=0>[N2,A] ifr_age; // probability of death for age band a, stored N2 times row_vector[N2] rev_ifr_daysSinceInfection; // probability of death s days after infection in reverse order row_vector[SI_CUT] rev_serial_interval; // fixed pre-calculated serial interval using empirical data from Neil in reverse order int<lower=1, upper=A> init_A; // age band in which initial cases occur in the first N0 days } transformed data{ vector<lower=0>[M] avg_cntct; vector[A] ones_vector_A; row_vector[A] ones_row_vector_A; ones_vector_A= rep_vector(1.,A); ones_row_vector_A= rep_row_vector(1.,A); for( m in 1:M ) { avg_cntct[m] = popByAge[:,m]' * ( cntct_weekdays_mean[m] * ones_vector_A ) * 5./7.; avg_cntct[m] += popByAge[:,m]' * ( cntct_weekends_mean[m] * ones_vector_A ) * 2./7.; } } parameters { vector<lower=0>[M] R0; // R0 //real<lower=0> kappa; // variance parameter for country-specific R0 real<lower=0> tau; // prior rate of expected number of cases per day in the first N0 days, for each country real<lower=0> e_cases_N0[M]; // expected number of cases per day in the first N0 days, for each country vector[P_RES] beta_res_wkend_state[M]; // regression coefficients for time varying multipliers on residential contacts on weekends vector[P_RES] beta_res_wkday_state[M]; // regression coefficients for time varying multipliers on residential contacts on weekdays vector[P_NONRES] beta_nonres_wkday_state[M]; // regression coefficients for time varying multipliers on non-residential contacts on weekdays real<lower=0> phi; // overdispersion parameter for likelihood model real<lower=0> ifr_noise[M]; real<lower=0> kappa; } transformed parameters { // dummy variables // real<lower=0> saturation_adj; // probability of infection given contact in location m vector<lower=0>[M] rho0; // expected deaths by calendar day (1st dim) age (2nd dim) and country (3rd dim), under self-renewal model // and expected deaths by calendar day (rows) and country (cols), under self-renewal model matrix<lower=0>[N2,A] E_deathsByAge[M]; matrix<lower=0>[N2,M] E_deaths= rep_matrix(0., N2, M); // expected new cases by calendar day, age, and location under self-renewal model // and a container to store the precomputed cases by age matrix<lower=0>[N2,A] E_casesByAge[M]; row_vector<lower=0>[A] tmp_row_vector_A; // scaling of contacts after intervention effect on day t in location m matrix<lower=0>[N2, M] impact_intv_nonres; matrix<lower=0>[N2, M] impact_intv_res; // define probability of infection given contact in location m rho0 = R0 ./ avg_cntct; // define multipliers for residential contacts in each location for both weekdays and weekends // define multipliers for non-residential contacts in each location for both weekdays and weekends // multiply the multipliers with rho0 in each location // TODO use https://mc-stan.org/docs/2_18/stan-users-guide/QR-reparameterization-section.html for (m in 1:M) { impact_intv_res[:,m] = exp( covariates_res[m] * beta_res_wkday_state[m] ); impact_intv_nonres[:,m] = exp( covariates_nonres[m] * beta_nonres_wkday_state[m] ); impact_intv_res[ wkend_idx[1:WKEND_IDX_N[m],m], m] = exp( covariates_res[m][ wkend_idx[1:WKEND_IDX_N[m],m], :] * beta_res_wkend_state[m] ); impact_intv_nonres[ wkend_idx[1:WKEND_IDX_N[m],m] ,m] = rep_vector(0., WKEND_IDX_N[m]); impact_intv_res[:,m] *= rho0[m]; impact_intv_nonres[:,m] *= rho0[m]; } // init expected cases by age and location // init expected cases by age and location in first N0 days for (m in 1:M) { E_casesByAge[m] = rep_matrix( 0., N2, A ); E_casesByAge[m][1:N0,init_A] = rep_vector( e_cases_N0[m], N0 ); } // calculate expected cases by age and country under self-renewal model after first N0 days // and adjusted for saturation for (m in 1:M) { for (t in (N0+1):N2) { tmp_row_vector_A = rev_serial_interval[max(1,(SI_CUT-t+2)):SI_CUT] * E_casesByAge[m][max(1,(t-SI_CUT)):(t-1),:]; E_casesByAge[m][t,:] = tmp_row_vector_A * ( impact_intv_res[t,m] * cntct_weekends_mean[m] + impact_intv_nonres[t,m] * cntct_weekdays_mean[m] ); } } // calculate expected deaths by age and country for (m in 1:M) { E_deathsByAge[m] = rep_matrix( 0., N2, A ); E_deathsByAge[m][1,:] = 1e-15 * E_casesByAge[m][1,:]; for (t in 2:N2) { E_deathsByAge[m][t,:] = rev_ifr_daysSinceInfection[(N2-(t-1)+1):N2 ] * E_casesByAge[m][1:(t-1),:]; } E_deathsByAge[m] .*= ifr_age; E_deathsByAge[m] *= (ifr_country_scale[m] * ifr_noise[m]); } // calculate expected deaths by country for (m in 1:M) { E_deaths[:,m] = E_deathsByAge[m] * ones_vector_A; } } model { // priors tau ~ exponential(0.03); e_cases_N0 ~ exponential(1/tau); phi ~ normal(0,5); for(m in 1:M) { beta_res_wkend_state[m] ~ normal(0,2); beta_res_wkday_state[m] ~ normal(0,2); beta_nonres_wkday_state[m] ~ normal(0,2); } ifr_noise ~ normal(1,0.1); kappa ~ normal(0,0.5); R0 ~ normal(3.28, kappa); // citation: https://academic.oup.com/jtm/article/27/2/taaa021/5735319 // likelihood for(m in 1:M){ deaths[epidemicStart[m]:N[m], m] ~ neg_binomial_2(E_deaths[epidemicStart[m]:N[m], m], phi); } } generated quantities { matrix<lower=0>[N2,M] Rt; // Rt for each location matrix<lower=0>[N2,A] RtByAge[M]; // Rt for each age band and each location matrix<lower=0>[N2,A] tmp; for( m in 1:M ) { RtByAge[m] = rep_matrix( ones_row_vector_A*cntct_weekends_mean[m] , N2); RtByAge[m] .*= rep_matrix( impact_intv_res[:,m], A); tmp = rep_matrix( ones_row_vector_A*cntct_weekdays_mean[m] , N2); tmp .*= rep_matrix( impact_intv_nonres[:,m], A); RtByAge[m] += tmp; Rt[:,m] = RtByAge[m] * popByAge[:,m]; } }
Stan
5
viniciuszendron/covid19model
covid19AgeModel/inst/stan-models-deprecated/base_age_google_mobility_200427b.stan
[ "MIT" ]
#| exec /usr/bin/env sbcl --noinform --quit --eval "(defparameter *script-name* \"$0\")" --load "$0" --end-toplevel-options "$@" |# ;;; This script clusterizes values from the taginfo database and ;;; prints information about clusters. ;;; Silently loads sqlite. (with-open-file (*standard-output* "/dev/null" :direction :output :if-exists :supersede) (ql:quickload "sqlite")) (defun latin-char-p (char) (or (and (char>= char #\a) (char<= char #\z)) (and (char>= char #\A) (char<= char #\Z)))) (defun starts-with (text prefix) "Returns non-nil if text starts with prefix." (and (>= (length text) (length prefix)) (loop for u being the element of text for v being the element of prefix always (char= u v)))) (defun get-postcode-pattern (postcode fn) "Simplifies postcode in the following way: * all latin letters are replaced by 'A' * all digits are replaced by 'N' * hyphens and dots are replaced by a space * other characters are capitalized This format follows https://en.wikipedia.org/wiki/List_of_postal_codes. " (let ((pattern (map 'string #'(lambda (c) (cond ((latin-char-p c) #\A) ((digit-char-p c) #\N) ((or (char= #\- c) (char= #\. c)) #\Space) (T c))) (string-upcase postcode)))) (funcall fn postcode pattern))) (defun get-phone-or-flat-pattern (phone fn) "Simplifies phone or flat numbers in the following way: * all letters are replaced by 'A' * all digits are replaced by 'N' * other characters are capitalized " (let ((pattern (map 'string #'(lambda (c) (cond ((alpha-char-p c) #\A) ((digit-char-p c) #\N) (T c))) (string-upcase phone)))) (funcall fn phone pattern))) (defun group-by (cmp list) "cmp -> [a] -> [[a]] Groups equal adjacent elements of the list. Equality is checked with cmp. " (let ((buckets (reduce #'(lambda (buckets cur) (cond ((null buckets) (cons (list cur) nil)) ((funcall cmp (caar buckets) cur) (cons (cons cur (car buckets)) (cdr buckets))) (T (cons (list cur) buckets)))) list :initial-value nil))) (reverse (mapcar #'reverse buckets)))) (defun split-by (fn list) "fn -> [a] -> [[a]] Splits list by separators, where separators are defined by fn predicate. " (loop for e in list with buckets = nil for prev-sep = T then cur-sep for cur-sep = (funcall fn e) do (cond (cur-sep T) (prev-sep (push (list e) buckets)) (T (push e (car buckets)))) finally (return (reverse (mapcar #'reverse buckets))))) (defun split-string-by (fn string) "fn -> string -> [string] Splits string by separators, where separators are defined by fn predicate. " (mapcar #'(lambda (list) (concatenate 'string list)) (split-by fn (concatenate 'list string)))) (defun drop-while (fn list) (cond ((null list) nil) ((funcall fn (car list)) (drop-while fn (cdr list))) (T list))) (defun take-while (fn list) (if (null list) nil (loop for value in list while (funcall fn value) collecting value))) (defparameter *building-synonyms* '("building" "bldg" "bld" "bl" "unit" "block" "blk" "корпус" "корп" "кор" "литер" "лит" "строение" "стр" "блок" "бл")) (defparameter *house-number-seps* '(#\Space #\Tab #\" #\\ #\( #\) #\. #\# #\~)) (defparameter *house-number-groups-seps* '(#\, #\| #\; #\+)) (defun building-synonym-p (s) (find s *building-synonyms* :test #'string=)) (defun short-building-synonym-p (s) (or (string= "к" s) (string= "с" s))) (defstruct token value type) (defun get-char-type (c) (cond ((digit-char-p c) :number) ((find c *house-number-seps* :test #'char=) :separator) ((find c *house-number-groups-seps* :test #'char=) :group-separator) ((char= c #\-) :hyphen) ((char= c #\/) :slash) (T :string))) (defun transform-string-token (fn value) "Transforms building token value into one or more tokens in accordance to its value. For example, 'литA' is transformed to tokens 'лит' (building part) and 'А' (letter). " (flet ((emit (value type) (funcall fn value type))) (cond ((building-synonym-p value) (emit value :building-part)) ((and (= 4 (length value)) (starts-with value "лит")) (emit (subseq value 0 3) :building-part) (emit (subseq value 3) :letter)) ((and (= 2 (length value)) (short-building-synonym-p (subseq value 0 1))) (emit (subseq value 0 1) :building-part) (emit (subseq value 1) :letter)) ((= 1 (length value)) (emit value (if (short-building-synonym-p value) :letter-or-building-part :letter))) (T (emit value :string))))) (defun tokenize-house-number (house-number) "house-number => [token]" (let ((parts (group-by #'(lambda (lhs rhs) (eq (get-char-type lhs) (get-char-type rhs))) (string-downcase house-number))) (tokens nil)) (flet ((add-token (value type) (push (make-token :value value :type type) tokens))) (dolist (part parts) (let ((value (concatenate 'string part)) (type (get-char-type (car part)))) (case type (:string (transform-string-token #'add-token value)) (:separator T) (otherwise (add-token value type))))) (loop for prev = nil then curr for curr in tokens do (when (eq :letter-or-building-part (token-type curr)) (cond ((null prev) (setf (token-type curr) :letter)) ((eq :number (token-type prev)) (setf (token-type curr) :building-part))))) (reverse tokens)))) (defun house-number-with-optional-suffix-p (tokens) (case (length tokens) (1 (eq (token-type (first tokens)) :number)) (2 (let ((first-type (token-type (first tokens))) (second-type (token-type (second tokens)))) (and (eq first-type :number) (or (eq second-type :string) (eq second-type :letter) (eq second-type :letter-or-building-part))))) (otherwise nil))) (defun get-house-number-sub-numbers (house-number) "house-number => [[token]] As house-number can be actually a collection of separated house numbers, this function returns a list of possible house numbers. Current implementation splits house number if and only if house-number matches the following rule: NUMBERS ::= (NUMBER STRING-SUFFIX?) | (NUMBER STRING-SUFFIX?) SEP NUMBERS " (let* ((tokens (tokenize-house-number house-number)) (groups (split-by #'(lambda (token) (eq :group-separator (token-type token))) tokens))) (if (every #'house-number-with-optional-suffix-p groups) groups (list tokens)))) (defun join-house-number-tokens (tokens) "Joins token values with spaces." (format nil "~{~a~^ ~}" (mapcar #'token-value tokens))) (defun join-house-number-parse (tokens) "Joins parsed house number tokens with spaces." (format nil "~{~a~^ ~}" (mapcar #'(lambda (token) (let ((token-type (token-type token)) (token-value (token-value token))) (case token-type (:number "N") (:building-part "B") (:letter "L") (:letter-or-building-part "U") (:string "S") ((:hyphen :slash :group-separator) token-value) (otherwise (assert NIL NIL (format nil "Unknown token type: ~a" token-type)))))) tokens))) (defun get-house-number-pattern (house-number fn) (dolist (number (get-house-number-sub-numbers house-number)) (let ((house-number (join-house-number-tokens number)) (pattern (join-house-number-parse number))) (funcall fn house-number pattern)))) (defun get-house-number-strings (house-number fn) "Returns all strings from the house number." (dolist (number (get-house-number-sub-numbers house-number)) (dolist (string (mapcar #'token-value (remove-if-not #'(lambda (token) (case (token-type token) ((:string :letter :letter-or-building-part :building-part) T) (otherwise nil))) number))) (funcall fn string string)))) (defstruct type-settings pattern-simplifier field-name) (defparameter *value-type-settings* `(:postcode ,(make-type-settings :pattern-simplifier #'get-postcode-pattern :field-name "addr:postcode") :phone ,(make-type-settings :pattern-simplifier #'get-phone-or-flat-pattern :field-name "contact:phone") :flat ,(make-type-settings :pattern-simplifier #'get-phone-or-flat-pattern :field-name "addr:flats") :house-number ,(make-type-settings :pattern-simplifier #'get-house-number-pattern :field-name "addr:housenumber") :house-number-strings ,(make-type-settings :pattern-simplifier #'get-house-number-strings :field-name "addr:housenumber"))) (defstruct cluster "A cluster of values with the same pattern, i.e. all six-digits series or all four-digits-two-letters series." (key "") (num-samples 0) (samples nil)) (defun add-sample (cluster sample &optional (count 1)) "Adds a value sample to a cluster of samples." (push sample (cluster-samples cluster)) (incf (cluster-num-samples cluster) count)) (defparameter *seps* '(#\Space #\Tab #\Newline #\Backspace #\Return #\Rubout #\Linefeed #\")) (defun trim (string) "Removes leading and trailing garbage from a string." (string-trim *seps* string)) (defun get-pattern-clusters (values simplifier) "Constructs a list of clusters by a list of values." (let ((table (make-hash-table :test #'equal)) (clusters nil)) (loop for (value count) in values do (funcall simplifier (trim value) #'(lambda (value pattern) (let ((cluster (gethash pattern table (make-cluster :key pattern)))) (add-sample cluster value count) (setf (gethash pattern table) cluster))))) (maphash #'(lambda (pattern cluster) (declare (ignore pattern)) (push cluster clusters)) table) clusters)) (defun make-keyword (name) (values (intern (string-upcase name) "KEYWORD"))) (when (/= 3 (length *posix-argv*)) (format t "Usage: ~a value path-to-taginfo-db.db~%" *script-name*) (format t "~%value can be one of the following:~%") (format t "~{ ~a~%~}" (loop for field in *value-type-settings* by #'cddr collecting (string-downcase field))) (exit :code -1)) (defparameter *value-type* (second *posix-argv*)) (defparameter *db-path* (third *posix-argv*)) (defparameter *type-settings* (getf *value-type-settings* (make-keyword *value-type*))) (defparameter *values* (sqlite:with-open-database (db *db-path*) (let ((query (format nil "select value, count_all from tags where key=\"~a\";" (type-settings-field-name *type-settings*)))) (sqlite:execute-to-list db query)))) (defparameter *clusters* (sort (get-pattern-clusters *values* (type-settings-pattern-simplifier *type-settings*)) #'(lambda (lhs rhs) (> (cluster-num-samples lhs) (cluster-num-samples rhs))))) (defparameter *total* (loop for cluster in *clusters* summing (cluster-num-samples cluster))) (format t "Total: ~a~%" *total*) (loop for cluster in *clusters* for prev-prefix-sum = 0 then curr-prefix-sum for curr-prefix-sum = (+ prev-prefix-sum (cluster-num-samples cluster)) do (let ((key (cluster-key cluster)) (num-samples (cluster-num-samples cluster)) (samples (cluster-samples cluster))) ; Prints number of values in a cluster, accumulated ; percent of values clustered so far, simplified version ; of a value and examples of values. (format t "~a (~2$%) ~a [~{~a~^, ~}~:[~;, ...~]]~%" num-samples (* 100 (/ curr-prefix-sum *total*)) key (subseq samples 0 (min (length samples) 5)) (> num-samples 5))))
Common Lisp
5
smartyw/organicmaps
search/search_quality/clusterize-tag-values.lisp
[ "Apache-2.0" ]
30 5 2 0 0 1 31 21 2 17 26 5 15 19 11 8 31 4 18 12 6 27 16 1 30 22 13 29 7 20 28 23 14 3 25 10 24 9 [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] 1 5 2 31 10 [5 5 9 2 10] [6 -4 -3 0 -1 3 -2 5 15 -4 -2 0 22 6 23 3 2 1 6 2 3 -9 24 0 13] 2 5 2 10 31 [10 23 -1 7 22 11 0 13 26 7 13 5 8 10 6 2 12 1 0 3 27 17 -4 20 6] [9 10 5 4 9] 3 5 2 31 12 [6 8 5 5 9] [-4 18 -1 0 5 0 22 4 19 -7 15 6 2 6 13 13 -1 4 5 0 19 -7 20 5 6] 4 5 2 31 30 [8 5 5 6 8] [12 1 10 19 8 0 9 13 -2 10 1 1 7 9 -3 12 16 10 12 15 0 -1 5 -5 13] 5 5 2 23 31 [-2 -2 11 -4 10 25 9 20 7 13 25 0 12 18 0 15 18 3 0 11 1 0 6 0 0] [6 10 9 8 3] 6 5 2 15 31 [0 3 2 0 2 9 1 0 0 -5 0 3 2 3 0 2 -2 0 1 0 5 5 9 3 6] [1 10 1 3 3] 7 5 2 20 31 [0 8 3 5 8 0 0 7 2 2 0 -4 0 15 18 3 0 0 3 1 0 -2 7 0 10] [3 3 6 1 4] 8 5 2 31 29 [5 8 8 4 6] [10 11 12 -2 -2 -6 -6 17 -4 18 2 21 10 0 2 6 0 0 -2 7 6 0 1 -3 2] 9 5 2 31 10 [6 10 2 2 4] [6 14 8 18 14 -5 14 -7 11 24 2 -1 0 -1 -1 2 2 2 -1 4 10 4 8 -1 2] 10 5 2 31 16 [10 10 2 8 9] [5 -4 1 14 6 1 15 12 -9 17 -1 1 6 3 0 15 16 6 -3 23 26 9 20 14 27] 11 5 2 31 17 [5 3 2 1 6] [2 12 13 11 8 -1 9 2 7 7 2 2 -1 -1 4 2 0 0 2 1 -5 16 12 0 -2] 12 5 2 18 31 [0 0 4 6 9 -4 6 -5 27 0 19 2 11 -7 3 -2 2 0 -1 -2 2 3 8 9 4] [4 9 8 3 4] 13 5 2 25 31 [12 15 8 -4 0 10 5 4 -2 -4 8 4 8 -2 9 2 8 -1 8 17 0 3 2 2 1] [8 5 3 6 1] 14 5 2 27 31 [15 11 13 0 20 19 21 2 1 2 2 0 0 2 0 19 17 -8 21 -2 -1 12 -1 10 3] [7 8 1 10 5] 15 5 2 11 31 [3 2 5 9 2 11 10 1 5 8 3 4 10 16 -5 6 12 -3 0 6 -2 6 0 1 7] [3 6 8 6 3] 16 5 3 25 26 31 [-233 -161 -255 -181 -255 -154 -104 -96 -257 -112 -258 -209 -118 -123 -255 -231 -265 -239 -165 -264 -205 -228 -98 -198 -134] [13 15 14 -7 0 -6 3 24 -3 13 3 9 18 8 18 10 11 7 -2 -2 0 -1 -2 2 3] [7 8 8 6 3] 17 5 5 31 25 16 6 24 [10 10 5 10 2] [-105 -200 -189 -130 -221 -249 -76 -89 -103 -125 -255 -67 -254 -154 -254 -237 -239 -168 -255 -148 -123 -82 -130 -234 -101] [-63 -80 -214 -169 -113 -157 -190 -210 -67 -171 -81 -123 -157 -239 -102 -192 -194 -182 -120 -57 -140 -186 -140 -155 -235] [-98 -156 -109 -104 -94 -82 -241 -67 -81 -220 -252 -151 -151 -227 -138 -146 -169 -84 -116 -257 -235 -172 -68 -235 -225] [-8 10 1 15 -1 0 -1 7 19 3 -4 12 6 13 13 7 29 -6 11 -6 3 1 0 4 2] 18 5 2 31 14 [4 1 4 10 9] [10 2 10 7 -2 0 2 2 1 2 11 8 0 9 0 17 -3 -2 15 28 21 16 27 5 6] 19 5 2 21 31 [2 -4 7 8 0 -1 0 20 13 -6 13 25 11 13 5 0 12 -1 12 12 3 2 2 5 -1] [8 9 9 7 2] 20 5 2 31 26 [5 1 4 2 7] [1 12 9 14 -4 3 3 3 0 0 7 -1 7 6 1 0 6 0 4 5 6 -6 6 10 -5] 21 5 3 31 29 13 [6 5 5 6 4] [7 -4 7 10 18 9 12 1 4 0 8 11 -3 5 4 9 5 4 -3 -3 5 7 11 8 7] [3 12 0 6 13 7 -4 5 -3 12 -2 -1 11 14 6 14 -5 9 14 12 -3 6 0 1 0] 22 5 3 31 19 23 [1 8 4 10 9] [-157 -208 -67 -112 -121 -98 -80 -108 -79 -245 -216 -127 -169 -75 -148 -243 -146 -52 -238 -60 -160 -130 -71 -173 -103] [2 0 0 1 2 -7 18 -7 -4 16 2 3 6 2 12 13 14 11 27 13 -7 21 22 6 10] 23 5 6 28 31 1 11 17 24 [0 -1 1 2 0 -9 20 20 -8 23 -1 22 12 13 0 -4 2 5 15 5 0 0 0 0 3] [2 10 8 5 1] [-239 -217 -142 -162 -175 -214 -115 -180 -77 -147 -131 -152 -86 -154 -190 -203 -149 -167 -102 -240 -59 -56 -105 -63 -114] [-211 -230 -74 -88 -272 -104 -176 -208 -235 -165 -228 -85 -175 -95 -130 -111 -212 -204 -92 -128 -140 -236 -247 -200 -234] [-146 -272 -199 -183 -251 -116 -186 -187 -219 -131 -128 -201 -206 -122 -180 -176 -214 -274 -230 -240 -176 -131 -248 -217 -69] [-252 -229 -107 -103 -175 -245 -168 -210 -94 -75 -243 -256 -80 -180 -85 -228 -137 -179 -150 -230 -102 -99 -158 -245 -123] 24 5 2 31 23 [10 6 10 3 7] [25 29 26 12 18 10 -4 0 2 1 22 7 -2 15 10 4 8 -1 0 8 17 2 14 -1 9] 25 5 2 16 31 [-4 9 6 9 8 -5 16 14 6 10 4 5 11 12 7 0 -3 2 12 4 1 5 0 -4 -3] [5 6 5 5 5] 26 5 5 30 22 25 31 11 [11 23 6 25 1 -4 1 -5 12 3 21 4 12 20 6 2 3 0 0 2 4 1 0 -1 -2] [4 16 7 25 10 5 -5 6 13 -1 -5 -2 5 18 12 0 1 0 0 0 2 0 -1 3 0] [-158 -211 -115 -214 -70 -263 -221 -122 -124 -91 -140 -147 -138 -104 -174 -69 -192 -251 -200 -179 -221 -238 -247 -127 -94] [10 7 7 1 3] [14 22 -2 -5 21 -6 14 21 19 13 19 14 1 -1 5 2 0 3 0 3 8 5 3 1 7] 27 5 2 19 31 [6 12 6 15 8 -2 -1 4 0 12 -8 0 -4 4 -1 6 0 1 5 4 -4 -2 11 8 12] [5 6 10 2 8] 28 5 1 31 [1 2 10 1 9] 29 5 1 31 [10 2 10 7 3] 30 5 1 31 [2 4 6 3 8] 31 1 0 0 1 0 0 0 0 0 0 0 0 1 1 5 3 5 5 1 1 4 4 2 5 3 5 5 1 1 4 4 3 9 3 5 5 1 1 4 4 4 2 3 5 5 1 1 4 4 5 10 3 5 5 1 1 4 4 2 1 9 2 5 3 5 5 1 4 2 10 2 5 3 5 5 1 4 3 5 2 5 3 5 5 1 4 4 4 2 5 3 5 5 1 4 5 9 2 5 3 5 5 1 4 3 1 6 3 5 1 3 4 5 5 2 8 3 5 1 3 4 5 5 3 5 3 5 1 3 4 5 5 4 5 3 5 1 3 4 5 5 5 9 3 5 1 3 4 5 5 4 1 8 1 5 5 3 2 3 1 2 5 1 5 5 3 2 3 1 3 5 1 5 5 3 2 3 1 4 6 1 5 5 3 2 3 1 5 8 1 5 5 3 2 3 1 5 1 6 4 4 4 2 3 1 1 2 10 4 4 4 2 3 1 1 3 9 4 4 4 2 3 1 1 4 8 4 4 4 2 3 1 1 5 3 4 4 4 2 3 1 1 6 1 1 3 1 5 2 1 2 1 2 10 3 1 5 2 1 2 1 3 1 3 1 5 2 1 2 1 4 3 3 1 5 2 1 2 1 5 3 3 1 5 2 1 2 1 7 1 3 2 2 1 2 1 3 4 2 3 2 2 1 2 1 3 4 3 6 2 2 1 2 1 3 4 4 1 2 2 1 2 1 3 4 5 4 2 2 1 2 1 3 4 8 1 5 3 1 3 2 3 3 2 2 8 3 1 3 2 3 3 2 3 8 3 1 3 2 3 3 2 4 4 3 1 3 2 3 3 2 5 6 3 1 3 2 3 3 2 9 1 6 5 2 4 2 2 3 3 2 10 5 2 4 2 2 3 3 3 2 5 2 4 2 2 3 3 4 2 5 2 4 2 2 3 3 5 4 5 2 4 2 2 3 3 10 1 10 3 5 2 1 3 4 3 2 10 3 5 2 1 3 4 3 3 2 3 5 2 1 3 4 3 4 8 3 5 2 1 3 4 3 5 9 3 5 2 1 3 4 3 11 1 5 1 5 2 2 3 4 2 2 3 1 5 2 2 3 4 2 3 2 1 5 2 2 3 4 2 4 1 1 5 2 2 3 4 2 5 6 1 5 2 2 3 4 2 12 1 4 1 2 3 1 5 3 2 2 9 1 2 3 1 5 3 2 3 8 1 2 3 1 5 3 2 4 3 1 2 3 1 5 3 2 5 4 1 2 3 1 5 3 2 13 1 8 4 5 3 5 3 3 3 2 5 4 5 3 5 3 3 3 3 3 4 5 3 5 3 3 3 4 6 4 5 3 5 3 3 3 5 1 4 5 3 5 3 3 3 14 1 7 3 3 3 4 1 1 5 2 8 3 3 3 4 1 1 5 3 1 3 3 3 4 1 1 5 4 10 3 3 3 4 1 1 5 5 5 3 3 3 4 1 1 5 15 1 3 4 1 1 1 3 1 5 2 6 4 1 1 1 3 1 5 3 8 4 1 1 1 3 1 5 4 6 4 1 1 1 3 1 5 5 3 4 1 1 1 3 1 5 16 1 7 1 5 1 5 3 2 1 2 8 1 5 1 5 3 2 1 3 8 1 5 1 5 3 2 1 4 6 1 5 1 5 3 2 1 5 3 1 5 1 5 3 2 1 17 1 10 1 1 3 2 2 2 1 2 10 1 1 3 2 2 2 1 3 5 1 1 3 2 2 2 1 4 10 1 1 3 2 2 2 1 5 2 1 1 3 2 2 2 1 18 1 4 5 1 4 4 4 2 5 2 1 5 1 4 4 4 2 5 3 4 5 1 4 4 4 2 5 4 10 5 1 4 4 4 2 5 5 9 5 1 4 4 4 2 5 19 1 8 3 1 4 4 5 5 4 2 9 3 1 4 4 5 5 4 3 9 3 1 4 4 5 5 4 4 7 3 1 4 4 5 5 4 5 2 3 1 4 4 5 5 4 20 1 5 5 2 5 1 3 4 3 2 1 5 2 5 1 3 4 3 3 4 5 2 5 1 3 4 3 4 2 5 2 5 1 3 4 3 5 7 5 2 5 1 3 4 3 21 1 6 2 1 1 1 4 1 2 2 5 2 1 1 1 4 1 2 3 5 2 1 1 1 4 1 2 4 6 2 1 1 1 4 1 2 5 4 2 1 1 1 4 1 2 22 1 1 3 1 1 3 2 1 5 2 8 3 1 1 3 2 1 5 3 4 3 1 1 3 2 1 5 4 10 3 1 1 3 2 1 5 5 9 3 1 1 3 2 1 5 23 1 2 3 2 3 1 2 3 2 2 10 3 2 3 1 2 3 2 3 8 3 2 3 1 2 3 2 4 5 3 2 3 1 2 3 2 5 1 3 2 3 1 2 3 2 24 1 10 1 1 5 3 5 1 5 2 6 1 1 5 3 5 1 5 3 10 1 1 5 3 5 1 5 4 3 1 1 5 3 5 1 5 5 7 1 1 5 3 5 1 5 25 1 5 2 5 5 5 3 4 3 2 6 2 5 5 5 3 4 3 3 5 2 5 5 5 3 4 3 4 5 2 5 5 5 3 4 3 5 5 2 5 5 5 3 4 3 26 1 10 2 1 2 1 4 2 5 2 7 2 1 2 1 4 2 5 3 7 2 1 2 1 4 2 5 4 1 2 1 2 1 4 2 5 5 3 2 1 2 1 4 2 5 27 1 5 1 1 3 1 4 1 5 2 6 1 1 3 1 4 1 5 3 10 1 1 3 1 4 1 5 4 2 1 1 3 1 4 1 5 5 8 1 1 3 1 4 1 5 28 1 1 5 5 5 5 3 1 3 2 2 5 5 5 5 3 1 3 3 10 5 5 5 5 3 1 3 4 1 5 5 5 5 3 1 3 5 9 5 5 5 5 3 1 3 29 1 10 1 3 4 3 2 5 2 2 2 1 3 4 3 2 5 2 3 10 1 3 4 3 2 5 2 4 7 1 3 4 3 2 5 2 5 3 1 3 4 3 2 5 2 30 1 2 2 2 3 2 5 2 5 2 4 2 2 3 2 5 2 5 3 6 2 2 3 2 5 2 5 4 3 2 2 3 2 5 2 5 5 8 2 2 3 2 5 2 5 31 1 0 0 0 0 0 0 0 0 24 25 27 23 27 77 173
Eagle
1
klorel/or-tools
examples/data/rcpsp/multi_mode_max_delay/mm_j30/psp222.sch
[ "Apache-2.0" ]
--- "tauri-macros": patch --- Fixes a name collision when the command function is named `message` or `resolver`.
Markdown
0
facklambda/tauri
.changes/cmd-touch-bindings.md
[ "Apache-2.0", "MIT" ]
// run-pass // aux-build:xcrate_generic_fn_nested_return.rs extern crate xcrate_generic_fn_nested_return as test; pub fn main() { assert!(test::decode::<()>().is_err()); }
Rust
3
Eric-Arellano/rust
src/test/ui/cross-crate/xcrate_generic_fn_nested_return.rs
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
size: 1024px 512px; dpi: 96; margin: 8em; axis { align: y; label-placement: linear(1); tick-offset: 0; limit: 0 16; }
CLIPS
2
asmuth-archive/travistest
test/plot-axis/axis_vert_tick_center.clp
[ "Apache-2.0" ]
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <title>自定义模块 - layui</title> <link rel="stylesheet" href="../src/css/layui.css"> <style> </style> </head> <body> <script src="../src/layui.js"></script> <script> layui.config({ base: './js/' }).extend({ index: 'index' ,test: 'child/test' }).use('test'); layui.use('index') </script> </body> </html>
HTML
4
Death-Dinner-Git/aliveHouse
public/static/plugins/layui/test/extend.html
[ "Apache-2.0" ]
.q-circular-progress display: inline-block position: relative vertical-align: middle width: 1em height: 1em line-height: 1 &.q-focusable border-radius: 50% &__svg width: 100% height: 100% &__text font-size: .25em &--indeterminate .q-circular-progress__svg transform-origin: 50% 50% animation: q-spin 2s linear infinite #{"/* rtl:ignore */"} .q-circular-progress__circle stroke-dasharray: 1 400 stroke-dashoffset: 0 animation: q-circular-progress-circle 1.5s ease-in-out infinite #{"/* rtl:ignore */"} @keyframes q-circular-progress-circle 0% stroke-dasharray: 1, 400 stroke-dashoffset: 0 50% stroke-dasharray: 400, 400 stroke-dashoffset: -100 100% stroke-dasharray: 400, 400 stroke-dashoffset: -300
Sass
4
ygyg70/quasar
ui/src/components/circular-progress/QCircularProgress.sass
[ "MIT" ]
<!DOCTYPE html> <html> <head> <title>Text-decoration:underline tests</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <script type="text/javascript" src="../../test.js"></script> <script type="text/javascript"> function setUp() { var container = document.querySelector('#test'); container.innerHTML = ''; ['arial','verdana','courier new'].forEach(function(e) { var div = document.createElement('div'); div.style.fontFamily = e; container.appendChild(div); for(var i=1;i<=10;i*=2) { var text = document.createElement('div'); text.innerText = 'Testing texts'; text.style.marginTop = '1px'; text.style.fontSize = (16+i*6) + 'px'; div.appendChild(text); } }); } </script> <style> .small{ font-size:14px; } .medium{ font-size:18px; } .large{ font-size:24px; } div{ text-decoration:underline; line-height: 1em; } .lineheight{ line-height:40px; } h2 { clear:both; } </style> </head> <body> test <u>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</u> label u <div id="test"> Creating content through JavaScript </div> </body> </html>
HTML
3
abhijit-paul/html2canvas
tests/reftests/text/underline.html
[ "MIT" ]
///////////////////////////////////////////// // // ~~ [ Strange Crystal ] ~~ // version 4 out of 4 // // by Michael Scharrer // https://mscharrer.net // // CC-BY-4.0 license // https://creativecommons.org/licenses/by/4.0/ // ///////////////////////////////////////////// #version 3.7; #include "spectral.inc" #declare s = seed(44); #declare box_count = 40; global_settings { assumed_gamma 1 max_trace_level 16 adc_bailout 0.006 photons { count 10000000 autostop 0 jitter .4 max_trace_level 7 adc_bailout 0.02 } } background { rgb 0.03 } camera { right x*image_width/image_height location <3,5,-2> look_at <-2, 1, 0> } #macro sublight(col, pos) light_source { <-5.7,4.5,11.5> + pos <1,.9,.7> * col area_light <0.83, 0, 0>, <0, 0, 0.83>, 2, 2 adaptive 0.01 jitter } #end //reddish light sublight(<.50, .25, .25>, 0.11*y) //bluish light sublight(<.25, .50, .25>, 0.00*y) //greenish light sublight(<.25, .25, .50>, -0.11*y) //whole crystal #declare crystal_base = merge { #declare i = 0; #while (i < box_count) box { -1 1 rotate 360*<rand(s), rand(s), rand(s)> } #declare i = i + 1; #end } //the cut through the crystal #declare crystal_separator = blob { sphere { <-2,0,0> 4 2.9 } cylinder { <1,-4,0> <1,4,0> 1.5 (-2.2) } sphere { <.2,.7,-.8> 0.5 (-1) } scale 1.3 } //the actual crystal difference { union { //left piece intersection { object { crystal_base } object { crystal_separator } rotate 10*z translate -.25*x } sphere {<0.5,-0,-6.5>, 1 M_Spectral_Filter( D_Average(D_CC_A4, 1, Value_1, 1), IOR_CrownGlass_SK5,15) } //right piece difference { union { object { crystal_base } box { <-0.7,-0.8,-1.5>,<-0.5,-0.2,-1.4> rotate <17,-56,43> texture { pigment { colour <255,0,0,0,0> }} } } object { crystal_separator } rotate -10*z translate .25*x } //small shard intersection { object { crystal_base } sphere { 0 3 translate -4*x } rotate -90*z rotate 90*y translate -3.0*y scale 0.5 translate <-3.5, 0, 1> } rotate -30*y translate <-3.5,1,5.5> } //cut off at the bottom plane { y 0.01 } pigment { rgbt <0.5, 1.0, 0.5, 0.9> } finish { ambient 0 diffuse 0 reflection <0.65, 0.55, 0.48> } interior { ior 1.8 } photons{ target reflection on refraction on collect off } } //floor plane { y 0 hollow no_reflection #declare inner_pigm = pigment { bozo color_map { [0 rgb 0.6] [1 rgb 1.0] } scale 0.2 } pigment { crackle pigment_map { [0.000 rgb .2] [0.015 inner_pigm] } turbulence 0.1 scale 0.06 } finish { ambient <0.032,0.032,0.038> } photons { collect on } } //fake floor reflector plane { y (-1) hollow no_image no_shadow pigment { rgb 0.2 } finish { diffuse 0 ambient 1 reflection 0.2 } photons{ collect off } }
POV-Ray SDL
4
mixdowninc/orbuculum
Tools/povray/pr.pov
[ "BSD-3-Clause" ]
(set-logic QF_AUFBV) (declare-fun SymVar_0 () (_ BitVec 64)) (assert (= ((_ extract 63 63)SymVar_0) (_ bv1 1) ) ) (check-sat) (get-model) ;(get-value (SymVar_1))
SMT
3
o2e/Triton
src/samples/smt/sf.smt2
[ "Apache-2.0" ]
/* * Copyright (c) 2009 Stanford University. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * - Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * - Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the * distribution. * - Neither the name of the Stanford University nor the names of * its contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL STANFORD * UNIVERSITY OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. */ /** * Linker script to run code in Flash 0. * Start-up code copies data into SRAM 0 and zeroes BSS segment. * * @author Wanja Hofer <wanja@cs.fau.de> * @author Thomas Schmid */ /* Output format is always little endian, irrespective of -EL or -EB flags */ OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") /* Output architecture is ARM */ OUTPUT_ARCH(arm) /* The first program instruction is the __init() start-up code */ ENTRY(__init) /* The IRQ vector table is put at the beginning of SRAM 0 */ /* We reserve 0x100 bytes by setting the SRAM 0 base address below accordingly */ _vect_start = 0x20000000; /* Stack at the end of SRAM 0 */ _estack = 0x20007ffc; /* Don't relocate the vector table */ /*PROVIDE (__relocate_vector = 0);*/ /* We have the SAM3U4E with 2 x 128K Flash and 48K SRAM. * SRAM is 32K SRAM 0 and 16K SRAM 1. * Defined in AT91 ARM Cortex-M3 based Microcontrollers, SAM3U Series, Preliminary, p. 2, p. 28, p. 29 */ MEMORY { sram0 (W!RX) : org = 0x20000000, len = 0x08000 /* SRAM 0, 32K (- 0x100 vector table) */ sram1 (W!RX) : org = 0x20080000, len = 0x04000 /* SRAM 1, 16K */ flash0 (W!RX) : org = 0x00080000, len = 0x20000 /* Flash 0, 128K */ flash1 (W!RX) : org = 0x00100000, len = 0x20000 /* Flash 1, 128K */ } SECTIONS { /* Text is linked into Flash 0 */ .text : { . = ALIGN(4); _stext = .; /* KEEP(*(.boot*)) */ KEEP(*(.vectors)) *(.init*) *(.text*) *(.fini*) *(.rodata*) *(.glue_7) /* ARM/Thumb interworking code */ *(.glue_7t) /* ARM/Thumb interworking code */ . = ALIGN(4); _etext = .; } > flash0 /* Data will be loaded into RAM by start-up code */ .data : AT (_etext) { . = ALIGN(4); _sdata = .; _svect = .; KEEP(*(.vectors)) /* Interrupt vector table in first 204 bytes */ _evect = .; *(.ramfunc) /* functions linked into RAM */ *(.data.*) *(.data) . = ALIGN(4); _edata = .; } > sram0 /* BSS will be zeroed by start-up code */ .bss (NOLOAD) : { . = ALIGN(4); _sbss = .; *(.bss.*) *(.bss) . = ALIGN(4); } > sram0 /* _ebss should be inside .bss, but for some reason, it then is not defined * at the end of the BSS section. This leads to non-zeroed BSS data, since the * start-up code uses that symbol. For now, this workaround is OK and does no * harm. */ _ebss = .; } end = .;
Logos
4
mtaghiza/tinyos-main-1
tos/platforms/sam3u_ek/sam3u-ek-flash.x
[ "BSD-3-Clause" ]
<!DOCTYPE HTML> <html> <head> <meta charset="UTF-8"/> <title> À propos des codes barres 1D </title> <link href="../style.css" rel="stylesheet" type="text/css"/> </head> <body> <p> Les codes barres traditionnels, tels que ceux imprimés sur l'emballage des produits commerciaux, sont appelés codes barres 1D. Il existe plusieurs types couramment utilisés, par exemple UPC et EAN. La plupart ressemblent à ceci : </p> <p class="imgcenter"><img src="../images/big-1d.png"/></p> <p> Ces codes barres 1D contiennent un code unique qui décrit typiquement un produit, comme un CD ou un livre. Vous pouvez chercher ce code sur Internet pour trouver les prix ou les critiques d'un article. </p> <p> Si vous scannez un livre, vous pouvez également chercher un mot ou une phrase dans le contenu du livre, et trouver toutes les pages où ils apparaissent : </p> <p class="imgcenter"><img src="../images/search-book-contents.jpg"/></p> </body> </html>
HTML
2
newcoremobile/nccameraqr
android/src/main/assets/html-fr/about1d.html
[ "Unlicense" ]
#!/bin/tcsh root -l BxAnalysis.C -q
Tcsh
1
ckamtsikis/cmssw
RecoVertex/BeamSpotProducer/scripts/root/BxAnalysis/Run.csh
[ "Apache-2.0" ]
Red [ Title: "Red call test program" Author: "Bruno Anselme & Peter W A Wood" File: %call-test.red Tabs: 4 Rights: "Copyright (C) 2014-2015 Bruno Anselme & Peter W A Wood. All rights reserved." License: "BSD-3 - https://github.com/red/red/blob/origin/BSD-3-License.txt" ] #include %../../../system/library/call/call.red read-argument: routine [ /local args [str-array!] str [red-string!] ][ if system/args-count <> 2 [ SET_RETURN(none-value) exit ] args: system/args-list + 1 ;-- skip binary filename str: string/load args/item (1 + length? args/item) UTF-8 SET_RETURN(str) ] test-name: read-argument call-string: either 'Windows = system/platform ["called-test.exe"] ["./called-test"] append call-string " " append call-string test-name if test-name = "option-1" [ output: "" call/output call-string output prin output quit ] if test-name = "option-2" [ error: "" call/error "no-such-pgm" error prin error quit ]
Red
3
0xflotus/red
tests/source/library/call-test.red
[ "BSL-1.0", "BSD-3-Clause" ]
"""Implementation of DLNA DMS as a media source. URIs look like "media-source://dlna_dms/<source_id>/<media_identifier>" Media identifiers can look like: * `/path/to/file`: slash-separated path through the Content Directory * `:ObjectID`: colon followed by a server-assigned ID for an object * `?query`: question mark followed by a query string to search for, see [DLNA ContentDirectory SearchCriteria](http://www.upnp.org/specs/av/UPnP-av-ContentDirectory-v1-Service.pdf) for the syntax. """ from __future__ import annotations from homeassistant.components.media_player.const import ( MEDIA_CLASS_CHANNEL, MEDIA_CLASS_DIRECTORY, MEDIA_TYPE_CHANNEL, MEDIA_TYPE_CHANNELS, ) from homeassistant.components.media_player.errors import BrowseError from homeassistant.components.media_source.error import Unresolvable from homeassistant.components.media_source.models import ( BrowseMediaSource, MediaSource, MediaSourceItem, ) from homeassistant.core import HomeAssistant from .const import DOMAIN, LOGGER, PATH_OBJECT_ID_FLAG, ROOT_OBJECT_ID, SOURCE_SEP from .dms import DidlPlayMedia, get_domain_data async def async_get_media_source(hass: HomeAssistant): """Set up DLNA DMS media source.""" LOGGER.debug("Setting up DLNA media sources") return DmsMediaSource(hass) class DmsMediaSource(MediaSource): """Provide DLNA Media Servers as media sources.""" name = "DLNA Servers" def __init__(self, hass: HomeAssistant) -> None: """Initialize DLNA source.""" super().__init__(DOMAIN) self.hass = hass async def async_resolve_media(self, item: MediaSourceItem) -> DidlPlayMedia: """Resolve a media item to a playable item.""" dms_data = get_domain_data(self.hass) if not dms_data.sources: raise Unresolvable("No sources have been configured") source_id, media_id = _parse_identifier(item) if not source_id: raise Unresolvable(f"No source ID in {item.identifier}") if not media_id: raise Unresolvable(f"No media ID in {item.identifier}") try: source = dms_data.sources[source_id] except KeyError as err: raise Unresolvable(f"Unknown source ID: {source_id}") from err return await source.async_resolve_media(media_id) async def async_browse_media(self, item: MediaSourceItem) -> BrowseMediaSource: """Browse media.""" dms_data = get_domain_data(self.hass) if not dms_data.sources: raise BrowseError("No sources have been configured") source_id, media_id = _parse_identifier(item) LOGGER.debug("Browsing for %s / %s", source_id, media_id) if not source_id and len(dms_data.sources) > 1: # Browsing the root of dlna_dms with more than one server, return # all known servers. base = BrowseMediaSource( domain=DOMAIN, identifier="", media_class=MEDIA_CLASS_DIRECTORY, media_content_type=MEDIA_TYPE_CHANNELS, title=self.name, can_play=False, can_expand=True, children_media_class=MEDIA_CLASS_CHANNEL, ) base.children = [ BrowseMediaSource( domain=DOMAIN, identifier=f"{source_id}/{PATH_OBJECT_ID_FLAG}{ROOT_OBJECT_ID}", media_class=MEDIA_CLASS_CHANNEL, media_content_type=MEDIA_TYPE_CHANNEL, title=source.name, can_play=False, can_expand=True, thumbnail=source.icon, ) for source_id, source in dms_data.sources.items() ] return base if not source_id: # No source specified, default to the first registered source_id = next(iter(dms_data.sources)) try: source = dms_data.sources[source_id] except KeyError as err: raise BrowseError(f"Unknown source ID: {source_id}") from err return await source.async_browse_media(media_id) def _parse_identifier(item: MediaSourceItem) -> tuple[str | None, str | None]: """Parse the source_id and media identifier from a media source item.""" if not item.identifier: return None, None source_id, _, media_id = item.identifier.partition(SOURCE_SEP) return source_id or None, media_id or None
Python
5
MrDelik/core
homeassistant/components/dlna_dms/media_source.py
[ "Apache-2.0" ]
#! /bin/sh -e # DP: Add options and specs for languages that are not built from a source # DP: (but built from separate sources). dir= if [ $# -eq 3 -a "$2" = '-d' ]; then pdir="-d $3" dir="$3/" elif [ $# -ne 1 ]; then echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" exit 1 fi case "$1" in -patch) patch $pdir -f --no-backup-if-mismatch -p0 < $0 ;; -unpatch) patch $pdir -f --no-backup-if-mismatch -R -p0 < $0 ;; *) echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" exit 1 esac exit 0 --- gcc/Makefile.in~ 2006-07-11 14:03:25.865618000 +0200 +++ gcc/Makefile.in 2006-07-11 21:15:30.011548776 +0200 @@ -424,8 +424,8 @@ xm_include_list=@xm_include_list@ xm_defines=@xm_defines@ lang_checks=check-gcc -lang_opt_files=@lang_opt_files@ $(srcdir)/c.opt $(srcdir)/common.opt -lang_specs_files=@lang_specs_files@ +lang_opt_files=$(sort @lang_opt_files@ $(foreach lang,$(debian_extra_langs),$(srcdir)/$(lang)/lang.opt)) $(srcdir)/c.opt $(srcdir)/common.opt +lang_specs_files=$(sort @lang_specs_files@ $(foreach lang,$(debian_extra_langs),$(srcdir)/$(lang)/lang-specs.h)) lang_tree_files=@lang_tree_files@ target_cpu_default=@target_cpu_default@ GCC_THREAD_FILE=@thread_file@
Darcs Patch
4
JrCs/opendreambox
recipes/gcc/gcc-4.3.4/debian/gcc-driver-extra-langs.dpatch
[ "MIT" ]
.class public Lothers/TestFieldInitOrder2; .super Ljava/lang/Object; .field private static final VALUE:Ljava/lang/String; .field static final ZPREFIX:Ljava/lang/String; = "SOME_" # direct methods .method static constructor <clinit>()V .registers 2 new-instance v0, Ljava/lang/StringBuilder; invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V sget-object v1, Lothers/TestFieldInitOrder2;->ZPREFIX:Ljava/lang/String; invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 const-string v1, "VALUE" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 sput-object v0, Lothers/TestFieldInitOrder2;->VALUE:Ljava/lang/String; return-void .end method .method public constructor <init>()V .registers 1 invoke-direct {p0}, Ljava/lang/Object;-><init>()V return-void .end method .method public check()V .registers 3 sget-object v0, Lothers/TestFieldInitOrder2;->VALUE:Ljava/lang/String; invoke-static {v0}, Ljadx/tests/api/utils/assertj/JadxAssertions;->assertThat(Ljava/lang/String;)Ljadx/tests/api/utils/assertj/JadxCodeAssertions; move-result-object v0 const-string v1, "SOME_VALUE" invoke-virtual {v0, v1}, Ljadx/tests/api/utils/assertj/JadxCodeAssertions;->isEqualTo(Ljava/lang/String;)Lorg/assertj/core/api/AbstractStringAssert; return-void .end method
Smali
4
Dev-kishan1999/jadx
jadx-core/src/test/smali/others/TestFieldInitOrder2.smali
[ "Apache-2.0" ]
desc_sv=Filsystem för diskar och nätverk
SystemVerilog
0
GalaxyGFX/webmin
mount/module.info.sv
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
package app import lib.* fun runAppAndReturnOk(): String { if (prop != 1) error("prop is '$prop', but is expected to be '1'") val funcValue = func() if (funcValue != 2) error("func() is '$funcValue', but is expected to be '2'") val inlineFuncValue = inlineFunc() if (inlineFuncValue != 3) error("inlineFunc() is '$inlineFuncValue', but is expected to be '3'") if (constant != 4) error("constant is '$constant', but is expected to be '4'") return "OK" }
Kotlin
4
AndrewReitz/kotlin
plugins/jvm-abi-gen/testData/compile/topLevel/app/app.kt
[ "ECL-2.0", "Apache-2.0" ]
""" """ import System import System.Reflection import Boo.Lang.Compiler.Ast class Foo: protected properties: ProtectedProperty as string macro properties: for stmt as DeclarationStatement in properties.Body.Statements: name = stmt.Declaration.Name type = stmt.Declaration.Type yield [| $name as $type: get: raise NotImplementedException() |] yield [| // backing field private $("_$name") as $type |] def GetProperty(name as string): return typeof(Foo).GetProperty(name, BindingFlags.Public|BindingFlags.NonPublic|BindingFlags.Instance) def GetField(name as string): return typeof(Foo).GetField(name, BindingFlags.Public|BindingFlags.NonPublic|BindingFlags.Instance) assert GetProperty("ProtectedProperty").GetGetMethod(true).IsFamily assert GetField("_ProtectedProperty").IsPrivate
Boo
4
popcatalin81/boo
tests/testcases/macros/member-macro-nodes-inherit-visibility-only-when-not-set.boo
[ "BSD-3-Clause" ]
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py # RUN: llc -march=amdgcn -mcpu=tahiti -run-pass=regbankselect -regbankselect-fast -verify-machineinstrs -o - %s | FileCheck -check-prefix=GFX6 %s # RUN: llc -march=amdgcn -mcpu=tahiti -run-pass=regbankselect -regbankselect-greedy -verify-machineinstrs -o - %s | FileCheck -check-prefix=GFX6 %s # RUN: llc -march=amdgcn -mcpu=gfx900 -run-pass=regbankselect -regbankselect-fast -verify-machineinstrs -o - %s | FileCheck -check-prefix=GFX9 %s # RUN: llc -march=amdgcn -mcpu=gfx900 -run-pass=regbankselect -regbankselect-greedy -verify-machineinstrs -o - %s | FileCheck -check-prefix=GFX9 %s --- name: smulh_s32_ss legalized: true body: | bb.0: liveins: $sgpr0, $sgpr1 ; GFX6-LABEL: name: smulh_s32_ss ; GFX6: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0 ; GFX6: [[COPY1:%[0-9]+]]:sgpr(s32) = COPY $sgpr1 ; GFX6: [[COPY2:%[0-9]+]]:vgpr(s32) = COPY [[COPY1]](s32) ; GFX6: [[SMULH:%[0-9]+]]:vgpr(s32) = G_SMULH [[COPY]], [[COPY2]] ; GFX9-LABEL: name: smulh_s32_ss ; GFX9: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0 ; GFX9: [[COPY1:%[0-9]+]]:sgpr(s32) = COPY $sgpr1 ; GFX9: [[SMULH:%[0-9]+]]:sgpr(s32) = G_SMULH [[COPY]], [[COPY1]] %0:_(s32) = COPY $sgpr0 %1:_(s32) = COPY $sgpr1 %2:_(s32) = G_SMULH %0, %1 ... --- name: smulh_s32_sv legalized: true body: | bb.0: liveins: $sgpr0, $vgpr0 ; GFX6-LABEL: name: smulh_s32_sv ; GFX6: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0 ; GFX6: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY $vgpr0 ; GFX6: [[SMULH:%[0-9]+]]:vgpr(s32) = G_SMULH [[COPY]], [[COPY1]] ; GFX9-LABEL: name: smulh_s32_sv ; GFX9: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0 ; GFX9: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY $vgpr0 ; GFX9: [[SMULH:%[0-9]+]]:vgpr(s32) = G_SMULH [[COPY]], [[COPY1]] %0:_(s32) = COPY $sgpr0 %1:_(s32) = COPY $vgpr0 %2:_(s32) = G_SMULH %0, %1 ... --- name: smulh_s32_vs legalized: true body: | bb.0: liveins: $sgpr0, $vgpr0 ; GFX6-LABEL: name: smulh_s32_vs ; GFX6: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0 ; GFX6: [[COPY1:%[0-9]+]]:sgpr(s32) = COPY $sgpr0 ; GFX6: [[COPY2:%[0-9]+]]:vgpr(s32) = COPY [[COPY1]](s32) ; GFX6: [[SMULH:%[0-9]+]]:vgpr(s32) = G_SMULH [[COPY]], [[COPY2]] ; GFX9-LABEL: name: smulh_s32_vs ; GFX9: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0 ; GFX9: [[COPY1:%[0-9]+]]:sgpr(s32) = COPY $sgpr0 ; GFX9: [[COPY2:%[0-9]+]]:vgpr(s32) = COPY [[COPY1]](s32) ; GFX9: [[SMULH:%[0-9]+]]:vgpr(s32) = G_SMULH [[COPY]], [[COPY2]] %0:_(s32) = COPY $vgpr0 %1:_(s32) = COPY $sgpr0 %2:_(s32) = G_SMULH %0, %1 ... --- name: smulh_s32_vv legalized: true body: | bb.0: liveins: $vgpr0, $vgpr1 ; GFX6-LABEL: name: smulh_s32_vv ; GFX6: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0 ; GFX6: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY $vgpr1 ; GFX6: [[SMULH:%[0-9]+]]:vgpr(s32) = G_SMULH [[COPY]], [[COPY1]] ; GFX9-LABEL: name: smulh_s32_vv ; GFX9: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0 ; GFX9: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY $vgpr1 ; GFX9: [[SMULH:%[0-9]+]]:vgpr(s32) = G_SMULH [[COPY]], [[COPY1]] %0:_(s32) = COPY $vgpr0 %1:_(s32) = COPY $vgpr1 %2:_(s32) = G_SMULH %0, %1 ...
Mirah
3
arunkumarbhattar/llvm
test/CodeGen/AMDGPU/GlobalISel/regbankselect-smulh.mir
[ "Apache-2.0" ]
'use strict'; jest.mock('scheduler', () => jest.requireActual('scheduler/unstable_mock'));
JavaScript
3
GBKstc/react-analysis
scripts/jest/setupTests.build.js
[ "MIT" ]
<!-- Inputs --> <ng-content></ng-content> <!-- Track --> <div class="mdc-slider__track"> <div class="mdc-slider__track--inactive"></div> <div class="mdc-slider__track--active"> <div class="mdc-slider__track--active_fill" #trackActive></div> </div> <div *ngIf="showTickMarks" class="mdc-slider__tick-marks" #tickMarkContainer> <div *ngFor="let tickMark of _tickMarks" [class]="_getTickMarkClass(tickMark)"></div> </div> </div> <!-- Thumbs --> <mat-slider-visual-thumb *ngFor="let thumb of _inputs" [discrete]="discrete" [disableRipple]="_isRippleDisabled()" [thumbPosition]="thumb._thumbPosition" [valueIndicatorText]="_getValueIndicatorText(thumb._thumbPosition)"> </mat-slider-visual-thumb>
HTML
4
tungyingwaltz/components
src/material-experimental/mdc-slider/slider.html
[ "MIT" ]
<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24" viewBox="0 0 24 24" width="24"><g><rect fill="none" height="24" width="24" y="0"/></g><g><g><path d="M21,12l-8-3.56V6h-1c-0.55,0-1-0.45-1-1s0.45-1,1-1s1,0.45,1,1h2c0-1.84-1.66-3.3-3.56-2.95 C10.26,2.27,9.29,3.22,9.06,4.4C8.76,5.96,9.66,7.34,11,7.82v0.63l-8,3.56L3,16h4v6h10v-6h4V12z M19,14h-2v-1H7v1H5v-0.7l7-3.11 l7,3.11V14z"/></g></g></svg>
SVG
1
good-gym/material-ui
packages/material-ui-icons/material-icons/dry_cleaning_sharp_24px.svg
[ "MIT" ]
fn main() { let a: i8 = loop { 1 //~ ERROR mismatched types }; let b: i8 = loop { break 1; }; } fn foo() -> i8 { let a: i8 = loop { 1 //~ ERROR mismatched types }; let b: i8 = loop { break 1; }; loop { 1 //~ ERROR mismatched types } loop { return 1; } loop { 1 //~ ERROR mismatched types } }
Rust
3
mbc-git/rust
src/test/ui/loops/loop-no-implicit-break.rs
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
ISPRIME(N) QUIT:(N=2) 1 NEW I,R SET R=N#2 IF R FOR I=3:2:(N**.5) SET R=N#I Q:'R KILL I QUIT R
M
3
LaudateCorpus1/RosettaCodeData
Task/Primality-by-trial-division/MUMPS/primality-by-trial-division.mumps
[ "Info-ZIP" ]
# ignore-none no-std is not supported # ignore-nvptx64-nvidia-cuda FIXME: can't find crate for `std` include ../../run-make-fulldeps/tools.mk # Tests that we don't ICE during incremental compilation after modifying a # function span such that its previous end line exceeds the number of lines # in the new file, but its start line/column and length remain the same. SRC=$(TMPDIR)/src INCR=$(TMPDIR)/incr all: mkdir $(SRC) mkdir $(INCR) cp a.rs $(SRC)/main.rs $(RUSTC) -C incremental=$(INCR) $(SRC)/main.rs --target $(TARGET) cp b.rs $(SRC)/main.rs $(RUSTC) -C incremental=$(INCR) $(SRC)/main.rs --target $(TARGET)
Makefile
3
mbc-git/rust
src/test/run-make/incr-prev-body-beyond-eof/Makefile
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
Foobarius NixEffector = Foobarius mimic Foobarius NixEffector documentation = "You don't want to know" Foobarius NixEffector private = method("this method should be private and is untested", 42) Foobarius NixEffector private2 = method("this method should also be private and is also untested", 42)
Ioke
0
olabini/ioke
examples/project/lib/foobarius/nix_effector.ik
[ "ICU", "MIT" ]
component { public void function foo() { if (something) { doSomething(); } else { doSomethingElse(); } } }
ColdFusion CFC
2
tonym128/CFLint
src/test/resources/com/cflint/tests/Complexity/ifelse.cfc
[ "BSD-3-Clause" ]
grammar Combined; options { language=ObjC; } stat: identifier+ ; identifier : ID ; ID : ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'0'..'9'|'_')* ; INT : ('0'..'9')+ ; WS : ( ' ' | '\t' | '\r' | '\n' )+ { $channel=99; } ;
G-code
4
DanielMabadeje/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials
java/java2py/antlr-3.1.3/runtime/ObjC/Framework/examples/combined/Combined.g
[ "Apache-2.0" ]
# THIS FILE WAS AUTOMATICALLY GENERATED BY script/ssl_server_defaults.cr # on 2020-10-09 20:33:59 UTC. abstract class OpenSSL::SSL::Context # The list of secure ciphers on **modern** compatibility level as per Mozilla # recommendations. # # The oldest clients supported by this configuration are: # * Firefox 63 # * Android 10.0 # * Chrome 70 # * Edge 75 # * Java 11 # * OpenSSL 1.1.1 # * Opera 57 # * Safari 12.1 # # This list represents version 5.6 of the modern configuration # available at https://ssl-config.mozilla.org/guidelines/5.6.json. # # See https://wiki.mozilla.org/Security/Server_Side_TLS for details. CIPHERS_MODERN = "TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:!RC4:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS" # The list of secure ciphersuites on **modern** compatibility level as per Mozilla # recommendations. # # The oldest clients supported by this configuration are: # * Firefox 63 # * Android 10.0 # * Chrome 70 # * Edge 75 # * Java 11 # * OpenSSL 1.1.1 # * Opera 57 # * Safari 12.1 # # This list represents version 5.6 of the modern configuration # available at https://ssl-config.mozilla.org/guidelines/5.6.json. # # See https://wiki.mozilla.org/Security/Server_Side_TLS for details. CIPHER_SUITES_MODERN = "TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256" # The list of secure ciphers on **intermediate** compatibility level as per Mozilla # recommendations. # # The oldest clients supported by this configuration are: # * Firefox 27 # * Android 4.4.2 # * Chrome 31 # * Edge # * IE 11 on Windows 7 # * Java 8u31 # * OpenSSL 1.0.1 # * Opera 20 # * Safari 9 # # This list represents version 5.6 of the intermediate configuration # available at https://ssl-config.mozilla.org/guidelines/5.6.json. # # See https://wiki.mozilla.org/Security/Server_Side_TLS for details. CIPHERS_INTERMEDIATE = "TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:!RC4:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS" # The list of secure ciphersuites on **intermediate** compatibility level as per Mozilla # recommendations. # # The oldest clients supported by this configuration are: # * Firefox 27 # * Android 4.4.2 # * Chrome 31 # * Edge # * IE 11 on Windows 7 # * Java 8u31 # * OpenSSL 1.0.1 # * Opera 20 # * Safari 9 # # This list represents version 5.6 of the intermediate configuration # available at https://ssl-config.mozilla.org/guidelines/5.6.json. # # See https://wiki.mozilla.org/Security/Server_Side_TLS for details. CIPHER_SUITES_INTERMEDIATE = "TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256" # The list of secure ciphers on **old** compatibility level as per Mozilla # recommendations. # # The oldest clients supported by this configuration are: # * Firefox 1 # * Android 2.3 # * Chrome 1 # * Edge 12 # * IE8 on Windows XP # * Java 6 # * OpenSSL 0.9.8 # * Opera 5 # * Safari 1 # # This list represents version 5.6 of the old configuration # available at https://ssl-config.mozilla.org/guidelines/5.6.json. # # See https://wiki.mozilla.org/Security/Server_Side_TLS for details. CIPHERS_OLD = "TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA256:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!RC4:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS" # The list of secure ciphersuites on **old** compatibility level as per Mozilla # recommendations. # # The oldest clients supported by this configuration are: # * Firefox 1 # * Android 2.3 # * Chrome 1 # * Edge 12 # * IE8 on Windows XP # * Java 6 # * OpenSSL 0.9.8 # * Opera 5 # * Safari 1 # # This list represents version 5.6 of the old configuration # available at https://ssl-config.mozilla.org/guidelines/5.6.json. # # See https://wiki.mozilla.org/Security/Server_Side_TLS for details. CIPHER_SUITES_OLD = "TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256" end
Crystal
4
n00p3/crystal
src/openssl/ssl/defaults.cr
[ "Apache-2.0" ]
? my $context = $main::context; ? $_mt->wrapper_file("wrapper.mt")->(sub { <style> .headerlink { display: none; } </style> <title>Tutorial - JSX</title> ?= $_mt->render_file("header.mt") ?= $_mt->render_file("breadcrumb.mt", [ qw(Documents doc.html) ], [ qw(Tutorial) ]) <div id="main"> <h2 id="background">Background</h2> <p> JSX is a statically-typed, object-oriented programming language compiling to standalone JavaScript. The reason why JSX was developed is our need for a more robust programming language than JavaScript. JSX is, however, fairly close to JavaScript especially in its statements and expressions. </p> <p> Statically-typed programming language is robust because certain sorts of problems, for example typos in variable names or missing function definitions, are detected at compile-time. This is important especially in middle- to large-scale software development in which a number of engineers may be engaged. </p> <p> Therefore, JSX is designed as a statically-typed language. All the values and variables have a static type and you can only assign a correctly-typed value to a variable. In addition, all the functions including closures have types which are determined by the types of parameters and the return values, where you cannot call a function with incorrectly typed arguments. </p> <p> Also, another important reason why JSX was developed is to boost JavaScript performance. JavaScript itself is not so slow but large-scale development tends to have many abstraction layers, e.g. proxy classes and accessor methods, which often have negative impact on performance. JSX boosts performance by <em>inline expansion</em>: function bodies are expanded to where they are being called, if the functions being called could be determined at compile-time. This is the power of the statically-typed language in terms of performance. </p> <h2 id="run-hello-world">Run "Hello, World!"</h2> <p> Let's start by running our first JSX program: <code>hello.jsx</code>. We use the <code>jsx</code> command, which is the JSX compiler in the JSX distribution, to compile JSX source code to JavaScript. </p> <p> First, install <a href="https://npmjs.org/package/jsx">jsx</a> with npm:<br /> ?= $context->{prettify}->('bash', q{$ npm install -g jsx}) </p> <p> Then, make the code below as <code>hello.jsx</code>: </p> <?= $context->{prettify}->('jsx', <<'EOT') class _Main { static function main(args : string[]) : void { log "Hello, world!"; } } EOT ?> <p> Now you can run a JSX program with the following command and you will get <code>Hello, world</code> on the console. </p> ?= $context->{prettify}->('bash', q{$ jsx --run hello.jsx}) <p> We will look into the detail of <code>hello.jsx</code> in the next section. </p> <h2 id="program-structure">Program Structure</h2> <p> Here is <code>hello.jsx</code>, the source code of the "Hello world!" example. You can see several features of JSX in this program, namely, static types and class structure within the source code. </p> <?= $context->{prettify}->('jsx', <<'EOT') class _Main { static function main(args : string[]) : void { log "Hello, world!"; } } EOT ?> <p> Class <code>_Main</code> has a static member function (a.k.a. a class method) named <code>main</code>, that takes an array of strings and returns nothing. <code>_Main.main(:string[]):void</code> is the entry point of JSX applications that is called when a user invokes an application from command line. JSX, like Java, does not allow top-level statements or functions. </p> <p> The <code>log</code> statement is mapped to <code>console.log()</code> in JavaScript, which displays the arguments to stdout with a newline. </p> <p> Next, we look into another typical library class, <code>Point</code>:</p> <?= $context->{prettify}->('jsx', <<'EOT') class Point { var x = 0; var y = 0; function constructor() { } function constructor(x : number, y : number) { this.set(x, y); } function constructor(other : Point) { this.set(other); } function set(x : number, y : number) : void { this.x = x; this.y = y; } function set(other : Point) : void { this.set(other.x, other.y); } } EOT ?> <p> As you can see, member variables of Point, <code>var x</code> and <code>var y</code>, are declared without types, but their types are deducted from their initial values to be <code>number</code>. </p> <p> You might be surprised at multiple definition of constructors: one takes no parameters and the others take parameters. They are overloaded by their types of parameters. When you construct the class with <code>new Point()</code>, the first constructor, which takes no parameters, is called. The second with two parameters will be called on <code>new Point(2, 3)</code> and the third with one parameter will be called as a copy constructor. Other forms of construction, e.g. <code>new Point(42)</code> or <code>new Point("foo", "bar")</code> will cause compilation errors of mismatching signatures. The <code>Point#set()</code> functions are also overloaded and the compiler know how to call the correct one. </p> <h2 id="static-typing">Static Typing</h2> <p> Basic type concept will be described in this section. Primitive types, object types, variant type, and Nullable types exist in JSX. </p> <h3 id="primitive-types">Pritimive Types</h3> <p> There are three pritimive types in JSX: <code>string</code>, <code>number</code>, and <code>boolean</code>. The three are non-nullable, immutable types. The code snippet below declares three variables <code>s</code>, <code>n</code>, <code>b</code> with their repective types, annocated to the right of the name of the variables using the <code>:</code> mark. </p> <?= $context->{prettify}->('jsx', <<'EOT') var s : string; var n : number; var b : boolean; EOT ?> <p> Type annotations can be omitted when a variable is initialized at the same moment of declaration. </p> <?= $context->{prettify}->('jsx', <<'EOT') var s = "hello"; // s is string, initialized as "hello" var n = 42; // n is number, initialized as 42 var b = true; // b is boolean, initialized as true EOT ?> <h3 id="object-types">Object Types</h3> <p> Object types are types of values to hold reference to objects - which are instances of classes. For example, functions, <code>string[]</code> (array of strings), <code>Date</code> are all object types. Whether they are mutable or not depends on the definition of each class. </p> <p> Most of the objects (values of object types) are constructed using the <code>new</code> operator. </p> <?= $context->{prettify}->('jsx', <<'EOT') var d = new Date(); // instantiate an object of class Date var a = new Array.<string>(); // instantiate an array of string var m = new Map.<number>(); // instantiate an associative map of strings to numbers EOT ?> <p> <code>Array</code> and <code>Map</code> types can also be instatiated by using their initializer expressions. </p> <?= $context->{prettify}->('jsx', <<'EOT') var a1 = [] : Array.<string>; // a1 is Array.<string>, and is empty var a2 = [ 1, 2, 3 ]; // a2 is Array.<number> with three elements var m1 : {} : Map.<number>; // m1 is Map.<number> var m2 = { // m2 is Map.<string> en: "Good morning", de: "Guten Morgen", ja: "おはようございます" }; EOT ?> <p> Variables of the <code>Function</code> class can only be instantiated as a static function or by using function expression or function statement (the details are described laterwards). </p> <h3 id="variant-type">The Variant Type</h3> <p> Variant type, which means "no static type information," is useful for interacting with existing JavaScript APIs. Some JavaScript libraries may return a variant value, which type cannot be determined at compile time. All you can do on variant values is to check equality of a variant value to another variant value. You have to cast it to another type before doing anything else on the value. </p> <?= $context->{prettify}->('jsx', <<'EOT') function guessTheType(v : variant) : void { if (typeof v == "string") { log "v is string and the value is:" + v as string; } else { log "v is not string"; } } EOT ?> <h3 id="nullable-types">Nullable Types</h3> <p> Nullable type is a meta type which indicates a value may be null. It is prohibited to assign <code>null</code> to the primitive types (note: Object types are nullable by default). <code>Nullable</code> types should instead be used for such purposes. </p> <?= $context->{prettify}->('jsx', <<'EOT') var s1 : string; s1 = "abc"; // ok s1 = null; // compile error! cannot assign null to string var s2 : Nullable.<string>; s2 = "abc"; // ok s2 = null; // ok EOT ?> <p> The most prominent use case of <code>Nullable</code> types is when interacting with an array. For example, an out-of-bounds access to an array returns <code>null</code>. </p> <?= $context->{prettify}->('jsx', <<'EOT') var a = [ 1, 2, 3 ]; // creates Array.<number> with three elements a[3]; // out-of-bounds access, returns null EOT ?> <p> There are APIs that return <code>Nullable</code> types also exists. For example, the return type of <code>Array.&lt;string&gt;#shift()</code> is <code>Nullable.&lt;string&gt;</code>. When you use a Nullable value, you have to make sure of the value is not null. </p> <?= $context->{prettify}->('jsx', <<'EOT') function shiftOrReturnEmptyString(args : string[]) : string { if (args.length > 0) return args.shift(); else return ""; } EOT ?> <div class="note"> When the source code is compiled in debug mode (which is the default), the compiler will insert run-time type-checking code. An exception will be raised (or the debugger will be activated) when misuse of a null value as actual value is detected. Run-time type checks can be omitted by compiling the source code with the <code>--release</code> option. </div> <p> Please refer to the <a href="doc/typeref.html">Types</a> section of the language reference for more information. </p> <h2 id="expressions">Expressions</h2> <p> <em>The definitions of operators in JSX are almost equivalent to JavaScript</em>, however there are few exceptions. </p> <ul> <li> arithmetic operators (<code>+</code>, <code>-</code>, <code>*</code>, <code>/</code>...) only accept numbers as the operands <?= $context->{prettify}->('jsx', <<'EOT') var a = 3; a + 1; // OK, returns 4 a * a; // OK, returns 9 a + "abc"; // compile error EOT ?> <div class="note">Note: concatenation operator <code>+</code> exists for concatenation of strings</div> </li> <li>the dot property accessor can only access the defined properties <?= $context->{prettify}->('jsx', <<'EOT') class Point { var x : number; var y : number; function print() : void { log this.z; // compile error! no property named z } } EOT ?> </li> <li>the [] property accessor can only be applied to values of type <code>Map</code> or <code>variant</code> <?= $context->{prettify}->('jsx', <<'EOT') var m = { // m is Map.<string> hello: "world!" }; log m["hello"]; // OK log m.hello; // compile error! EOT ?> </li> <li>introduction of the <code>as</code> operator, used for type conversion between primitive types / casting object types <?= $context->{prettify}->('jsx', <<'EOT') var n = 123; var s = "value of n is " + (n as string); log s; // print "value of n is 123" EOT ?> </li> <li>logical operators (<code>&&</code>, <code>||</code>) returns boolean, and the introduction of binary <code>?:</code> operator as the equivalent to the <code>||</code> operator of JavaScript</li> </ul> <p> A complete list of operators can be found in the <a href="doc/operatorref.html">Operator Reference</a>. </p> <h2 id="statements">Statements</h2> <p> <em>JSX supports most of the statement types provided by JavaScript.</em> The exceptions are:</p> <ul> <li>log statement <?= $context->{prettify}->('jsx', << 'EOT') log "hello, world"; // log strings to console, can turned off with compile option: --release EOT ?> </li> <li>assert statement <?= $context->{prettify}->('jsx', << 'EOT') var n = 123; assert n != 0; // assertions. also can be turned off with --release EOT ?> <li>try-catch-finally statement <?= $context->{prettify}->('jsx', << 'EOT') try { ... } catch (e : TypeError) { // got TypeError } catch (e : Error) { // got Error, which is not TypeError } catch (e : variant) { // applications may throw any kind of value } finally { ... } EOT ?> </li> <li>no <code>with</code> statement</li> </ul> <p> A complete list of statements can be found in the <a href="doc/statementref.html">Statement Reference</a>. </p> <h2 id="classes-and-interfaces">Classes and Interfaces</h2> <p> JSX is a class-based object-oriented language, and its class model is similar to Java. </p> <ul> <li>a class may extend another class (single inheritance)</li> <li>a class may implement multiple interfaces and mixins</li> <li>all classes share a single root class: the <code>Object</code> class</li> </ul> <?= $context->{prettify}->('jsx', <<'EOT') interface Flyable { abstract function fly() : void; } abstract class Animal { function eat() : void { log "An animal is eating!"; } } class Bat extends Animal implements Flyable { override function fly() : void { log "A bat is flying!"; } } abstract class Insect { } class Bee extends Insect implements Flyable { override function fly() : void { log "A bee is flying!"; } } class _Main { static function main(args : string[]) : void { // fo bar var bat = new Bat(); var animal : Animal = bat; // OK. A bat is an animal. animal.eat(); var flyable : Flyable = bat; // OK. A bat can fly flyable.fly(); // for Bee var bee = new Bee(); flyable = bee; // A bee is also flyable flyable.fly(); } } EOT ?> <p> In the example, the Bat class extends the Animal class, so it inherits the <code>Animal#eat()</code> member function, and it can be assigned to a variable typed to Animal. The class also implements the <code>Flyable</code> interface overriding the <code>Flyable#fly()</code> member function, so it can be assigned to a variable typed <code>Flyable</code>. There's also another flyable class, <code>Bee</code>. By using the <code>Flyable</code> interface, it is possible to deal with both classes as a flyable being, even if the organ of a bee is completely different from that of a bat. </p> <div class="note"> When overriding a member function, the use the <code>override</code> keyword is mandatory. Otherwise the compiler will report an error. In other words, you are saved from unexpected interface changes in the base classes which cause compilation errors in derived classes instead of undesirable runtime errors. </div> <h2 id="function-and-closures">Functions and Closures</h2> <p> In JSX, functions are first-class objects and they have static types. You can declare a variable of a function type like <code>var f : function(arg : number) : number</code>, a function that takes a number as an argument and returns another number (or, just returns the same value as the argument; but it's not important here). The variable <code>f</code> can be called as <code>f(42)</code> from which you will get a number value. </p> It is possible to define closures using the <code>function</code> expression or the <code>function</code> statement. They are typically used to implement callbacks ore event listeners which are popular in GUI programming. Closures are similar to JavaScript except for what <code>this</code> points at: when a closure is defined within a member function, it refers to the receiver of the member function. See the following example. </p> <?= $context->{prettify}->('jsx', <<'EOT') class _Main { var foo = 42; function constructor() { var f = function() : void { log this.foo; }; f(); // says 42 } static function main(args : string[]) : void { var o = new _Main(); } } EOT ?> <p> Type annocations of function expressions / statements may be omitted if they can be inferred by the compiler. In the exmaple below, both the type of the argument <code>n</code> and the return type of the function expression is inferred from the definition of <code>Array#map</code> to be <code>number</code>. </p> <?= $context->{prettify}->('jsx', <<'EOT') var doubled = [ 1, 2, 3 ].map(function (n) { return n * 2; }); EOT ?> <h2 id="modules">Modules</h2> <p> JSX has a module system. You can use JSX class libraries by the <code>import</code> statement. For example, the following program uses <code>timer.jsx</code> module, which exports the <code>Timer</code> class. </p> <?= $context->{prettify}->('jsx', <<'EOT') import "timer.jsx"; class _Main { static function main(args : string[]) : void { Timer.setTimeout(function() : void { log "Hello, world!"; }, 1000); } } EOT ?> <p> A module may export multiple classes, but you can specify what modules you import or name a namespace which the module is imported into. </p> <h2 id="on-web-browsers">Interface to Web Browsers</h2> <p> The <code>js/web.jsx</code> module provides the interface to web browser APIs, e.g. the <code>window</code> object and DOM APIs. The example below shows how to insert a text node into an HTML. </p> <?= $context->{prettify}->('jsx', <<'EOT'); // hello.jsx import "js/web.jsx"; class _Main { static function main(args : string[]) : void { var document = dom.window.document; var text = document.createTextNode("Hello, world!"); document.getElementById("hello").appendChild(text); } } EOT ?> <?= $context->{prettify}->('html', <<'EOT'); <!DOCTYPE html> <html> <head> <title>Hello, world!</title> <script src="hello.jsx.js"></script> </head> <body> <p id="hello"></p> </body> </html> EOT ?> <p> Once you compile <code>hello.jsx</code> by the following command, then you can access the HTML and you will see it saying "Hello, world!." </p> <?= $context->{prettify}->('bash', <<'EOT') $ bin/jsx --executable web --output hello.jsx.js hello.jsx EOT ?> <h2 id="further-learning">Further Learning</h2> <div> More documents can be found on the <a href="https://github.com/jsx/JSX/wiki">wiki</a>. </div> <div> If you are looking for examples, please refer to the <a href="/#examples">examples</a> on this web site, the <code>example</code> directory of the distribution, or to the links on <a href="https://github.com/jsx/JSX/wiki/Resources">Resources</a> page of the wiki. </div> </div> ? })
Mathematica
5
monkpit/JSX
doc/src/doc/tutorial.mt
[ "MIT" ]
<%-- Copyright 2013 Netflix, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --%> <g:if test="${fastPropertyInfoUrl}"> <tr> <td colspan="2"><a href="${fastPropertyInfoUrl}">Fast Property Documentation</a></td> </tr> </g:if> <tr class="prop"> <td class="name">Timestamp:</td> <td class="value">${fastProperty.timestamp}</td> </tr> <g:if test="${fastProperty.ttl}"> <tr class="prop"> <td class="name">Expires:</td> <td class="value">${fastProperty.expires}</td> </tr> </g:if> <g:if test="${fastProperty.constraints}"> <tr class="prop"> <td class="name">Constraints:</td> <td class="value">${fastProperty.constraints}</td> </tr> </g:if> <g:if test="${fastProperty.cmcTicket}"> <tr class="prop"> <td class="name">${ticketLabel.encodeAsHTML()}:</td> <td class="value">${fastProperty.cmcTicket?.encodeAsHTML()}</td> </tr> </g:if> <tr class="prop"> <td class="name">Source:</td> <td class="value">${fastProperty.sourceOfUpdate?.encodeAsHTML()}</td> </tr> <tr class="prop"> <td class="name">ID:</td> <td class="value">${fastProperty.id}</td> </tr> <tr> <td colspan="2"> <h2>Scoping (highest priority first):</h2> </td> <g:if test="${fastProperty.serverId}"> <tr class="prop"> <td class="name">Instance ID:</td> <td class="value"><g:linkObject type="instance" name="${fastProperty.serverId}">${fastProperty.serverId}</g:linkObject></td> </tr> </g:if> <g:if test="${fastProperty.asg}"> <tr class="prop"> <td class="name">ASG:</td> <td class="value"><g:linkObject type="autoScaling" name="${fastProperty.asg}">${fastProperty.asg}</g:linkObject></td> </tr> </g:if> <g:if test="${fastProperty.ami}"> <tr class="prop"> <td class="name">AMI:</td> <td class="value"><g:linkObject type="image" name="${fastProperty.ami}">${fastProperty.ami}</g:linkObject></td> </tr> </g:if> <g:if test="${fastProperty.cluster}"> <tr class="prop"> <td class="name">Cluster:</td> <td class="value"><g:linkObject type="cluster" name="${fastProperty.cluster}">${fastProperty.cluster}</g:linkObject></td> </tr> </g:if> <g:if test="${fastProperty.appId}"> <tr class="prop"> <td class="name">Application:</td> <td class="value"><g:linkObject type="application" name="${fastProperty.appId?.toLowerCase()}">${fastProperty.appId}</g:linkObject></td> </tr> </g:if> <tr class="prop"> <td class="name">Env:</td> <td class="value">${fastProperty.env}</td> </tr> <g:if test="${fastProperty.countries}"> <tr class="prop"> <td class="name">Countries:</td> <td class="value">${fastProperty.countries?.encodeAsHTML()}</td> </tr> </g:if> <g:if test="${fastProperty.stack}"> <tr class="prop"> <td class="name">Stack:</td> <td class="value"><g:linkObject type="stack" name="${fastProperty.stack?.encodeAsHTML()}">${fastProperty.stack?.encodeAsHTML()}</g:linkObject></td> </tr> </g:if> <g:if test="${fastProperty.zone}"> <tr class="prop"> <td class="name">Zone:</td> <td class="value"><g:availabilityZone value="${fastProperty.zone}"/></td> </tr> </g:if> <g:if test="${fastProperty.region}"> <tr class="prop"> <td class="name">Region:</td> <td class="value">${fastProperty.region}</td> </tr> </g:if>
Groovy Server Pages
3
claymccoy/asgard
grails-app/views/fastProperty/_fastPropertyAttributes.gsp
[ "Apache-2.0" ]
// deno-lint-ignore no-explicit-any const [, errorInfo] = (Deno as any).core.evalContext( '/* aaaaaaaaaaaaaaaaa */ throw new Error("foo")', new URL("eval_context_conflicting_source.ts", import.meta.url).href, ); throw errorInfo.thrown;
TypeScript
3
petamoriken/deno
cli/tests/testdata/eval_context_throw_with_conflicting_source.ts
[ "MIT" ]
<mt:Ignore> # ======================= # # ウィジェット-コールトゥアクション # # ======================= </mt:Ignore> <mt:Pages tag="@cta" limit="1"> <mt:PageBody mteval="1" /> <mt:PageMore mteval="1" /> </mt:Pages>
MTML
1
webbingstudio/mt_theme_echo_bootstrap
dist/themes/echo_bootstrap/templates/widget_cta.mtml
[ "MIT" ]
\require "a@0.1"
LilyPond
0
HolgerPeters/lyp
spec/user_files/circular_invalid.ly
[ "MIT" ]
fn closure_to_loc() { let mut x = |c| c + 1; x = |c| c + 1; //~^ ERROR mismatched types } fn closure_from_match() { let x = match 1usize { 1 => |c| c + 1, 2 => |c| c - 1, _ => |c| c - 1 }; //~^^^^ ERROR type annotations needed } fn main() { }
Rust
3
Eric-Arellano/rust
src/test/ui/issues/issue-24036.rs
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
all: mkdir -p ../../../../data/exploits/CVE-2020-1054 cp -vf Release/x64/CVE-2020-1054.x64.dll ../../../../data/exploits/CVE-2020-1054/exploit.dll
Makefile
1
OsmanDere/metasploit-framework
external/source/exploits/CVE-2020-1054/Makefile
[ "BSD-2-Clause", "BSD-3-Clause" ]
MultiselectSplitInteractionHandler = require '../../src/components/multiselect-split-interaction-handler' WorkspaceStore = require '../../src/flux/stores/workspace-store' FocusedContentStore = require '../../src/flux/stores/focused-content-store' Thread = require('../../src/flux/models/thread').default Actions = require('../../src/flux/actions').default _ = require 'underscore' describe "MultiselectSplitInteractionHandler", -> beforeEach -> @item = new Thread(id:'123') @itemFocus = new Thread({id: 'focus'}) @itemKeyboardFocus = new Thread({id: 'keyboard-focus'}) @itemAfterFocus = new Thread(id:'after-focus') @itemAfterKeyboardFocus = new Thread(id:'after-keyboard-focus') data = [@item, @itemFocus, @itemAfterFocus, @itemKeyboardFocus, @itemAfterKeyboardFocus] @onFocusItem = jasmine.createSpy('onFocusItem') @onSetCursorPosition = jasmine.createSpy('onSetCursorPosition') @selection = [] @dataSource = selection: toggle: jasmine.createSpy('toggle') expandTo: jasmine.createSpy('expandTo') add: jasmine.createSpy('add') walk: jasmine.createSpy('walk') clear: jasmine.createSpy('clear') count: => @selection.length items: => @selection top: => @selection[-1] get: (idx) -> data[idx] getById: (id) -> _.find data, (item) -> item.id is id indexOfId: (id) -> _.findIndex data, (item) -> item.id is id count: -> data.length @props = dataSource: @dataSource keyboardCursorId: 'keyboard-focus' focused: @itemFocus focusedId: 'focus' onFocusItem: @onFocusItem onSetCursorPosition: @onSetCursorPosition @collection = 'threads' @isRootSheet = true @handler = new MultiselectSplitInteractionHandler(@props) spyOn(WorkspaceStore, 'topSheet').andCallFake => {root: @isRootSheet} it "should always show focus", -> expect(@handler.shouldShowFocus()).toEqual(true) it "should show the keyboard cursor when multiple items are selected", -> @selection = [] expect(@handler.shouldShowKeyboardCursor()).toEqual(false) @selection = [@item] expect(@handler.shouldShowKeyboardCursor()).toEqual(false) @selection = [@item, @itemFocus] expect(@handler.shouldShowKeyboardCursor()).toEqual(true) describe "onClick", -> it "should focus the list item and indicate it was focused via click", -> @handler.onClick(@item) expect(@onFocusItem).toHaveBeenCalledWith(@item) describe "onMetaClick", -> describe "when there is currently a focused item", -> it "should turn the focused item into the first selected item", -> @handler.onMetaClick(@item) expect(@dataSource.selection.add).toHaveBeenCalledWith(@itemFocus) it "should clear the focus", -> @handler.onMetaClick(@item) expect(@onFocusItem).toHaveBeenCalledWith(null) it "should toggle selection", -> @handler.onMetaClick(@item) expect(@dataSource.selection.toggle).toHaveBeenCalledWith(@item) it "should call _checkSelectionAndFocusConsistency", -> spyOn(@handler, '_checkSelectionAndFocusConsistency') @handler.onMetaClick(@item) expect(@handler._checkSelectionAndFocusConsistency).toHaveBeenCalled() describe "onShiftClick", -> describe "when there is currently a focused item", -> it "should turn the focused item into the first selected item", -> @handler.onMetaClick(@item) expect(@dataSource.selection.add).toHaveBeenCalledWith(@itemFocus) it "should clear the focus", -> @handler.onMetaClick(@item) expect(@onFocusItem).toHaveBeenCalledWith(null) it "should expand selection", -> @handler.onShiftClick(@item) expect(@dataSource.selection.expandTo).toHaveBeenCalledWith(@item) it "should call _checkSelectionAndFocusConsistency", -> spyOn(@handler, '_checkSelectionAndFocusConsistency') @handler.onMetaClick(@item) expect(@handler._checkSelectionAndFocusConsistency).toHaveBeenCalled() describe "onEnter", -> describe "onSelect (x key on keyboard)", -> it "should call _checkSelectionAndFocusConsistency", -> spyOn(@handler, '_checkSelectionAndFocusConsistency') @handler.onMetaClick(@item) expect(@handler._checkSelectionAndFocusConsistency).toHaveBeenCalled() describe "onShift", -> it "should call _checkSelectionAndFocusConsistency", -> spyOn(@handler, '_checkSelectionAndFocusConsistency') @handler.onMetaClick(@item) expect(@handler._checkSelectionAndFocusConsistency).toHaveBeenCalled() describe "when the select option is passed", -> it "should turn the existing focused item into a selected item", -> @handler.onShift(1, {select: true}) expect(@dataSource.selection.add).toHaveBeenCalledWith(@itemFocus) it "should walk the selection to the shift target", -> @handler.onShift(1, {select: true}) expect(@dataSource.selection.walk).toHaveBeenCalledWith({current: @itemFocus, next: @itemAfterFocus}) describe "when one or more items is selected", -> it "should move the keyboard cursor", -> @selection = [@itemFocus, @itemAfterFocus, @itemKeyboardFocus] @handler.onShift(1, {}) expect(@onSetCursorPosition).toHaveBeenCalledWith(@itemAfterKeyboardFocus) describe "when no items are selected", -> it "should move the focus", -> @handler.onShift(1, {}) expect(@onFocusItem).toHaveBeenCalledWith(@itemAfterFocus) describe "_checkSelectionAndFocusConsistency", -> describe "when only one item is selected", -> beforeEach -> @selection = [@item] @props.focused = null @handler = new MultiselectSplitInteractionHandler(@props) it "should clear the selection and make the item focused", -> @handler._checkSelectionAndFocusConsistency() expect(@dataSource.selection.clear).toHaveBeenCalled() expect(@onFocusItem).toHaveBeenCalledWith(@item)
CoffeeScript
3
cnheider/nylas-mail
packages/client-app/spec/components/multiselect-split-interaction-handler-spec.coffee
[ "MIT" ]
#N canvas 720 236 851 575 12; #N canvas 0 22 450 300 (subpatch) 0; #X array table2-ex 10 float 3; #A 0 1 4 2 8 5 6 1 1 4 2; #X coords 0 10 10 0 250 150 1 0 0; #X restore 557 340 graph; #X obj 36 434 snapshot~; #X obj 55 402 metro 200; #X obj 36 165 sig~; #X floatatom 36 139 6 1 8 0 - - - 0; #X floatatom 36 460 6 0 0 0 - - - 0; #X text 104 142 incoming signal is index. Indices should range from 1 to (size-2) so that the 4-point interpolation is meaningful. You can shift-drag the number box to see the effect of interpolation., f 67; #X text 162 213 "set" message permits you to switch between arrays ; #X text 192 316 creation argument initializes array name; #X obj 113 24 tabread4~; #X obj 26 537 tabwrite~; #X obj 161 537 tabread; #X obj 220 537 tabwrite; #X obj 285 537 tabsend~; #X obj 350 537 tabreceive~; #X obj 97 537 tabplay~; #X text 630 532 updated for Pd version 0.42; #X floatatom 166 250 3 0 10 0 - - - 0; #X obj 267 486 ../2.control.examples/15.array; #X obj 532 275 ../3.audio.examples/B15.tabread4~-onset; #X text 195 242 right inlet sets onset into table. You can use this to improve the accuracy of indexing into the array. Click and open this example for mre details =>, f 51; #X obj 267 507 ../2.control.examples/16.more.arrays; #X text 211 450 Check also the "array" examples from the Pd tutorial by clicking and opening the files below., f 44; #X text 27 506 see also these objects:; #X text 74 62 Tabread4~ is used to build samplers and other table lookup algorithms. The interpolation scheme is 4-point polynomial as used in delread4~ and tabosc4~., f 77; #X obj 437 537 tabosc4~; #X obj 505 537 soundfiler; #N canvas 515 381 401 220 init-table 0; #X obj 35 42 loadbang; #X msg 35 74 \; table2-ex resize 10 \; table2-ex bounds 0 10 10 0 \; table2-ex xlabel -0.2 0 1 2 3 4 5 6 7 8 9 \; table2-ex ylabel -0.3 0 1 2 3 4 5 6 7 8 9 10 \; table2-ex 0 1 4 2 8 5 6 1 1 4 2; #X connect 0 0 1 0; #X restore 712 316 pd init-table; #X obj 36 316 tabread4~ table2-ex; #X msg 63 213 set table2-ex; #X obj 55 378 loadbang; #X text 167 361 DSP on/off; #X msg 150 384 \; pd dsp \$1; #X obj 150 361 tgl 15 0 empty empty empty 17 7 0 10 #fcfcfc #000000 #000000 0 1; #X text 193 24 - 4-point-interpolating table lookup for signals; #N canvas 831 536 593 441 Dealing_with_"\$0" 0; #X text 36 33 '\$0' - the patch ID number used to force locality in Pd - is widely used in send/receive names as well as array names. This is specially useful in abstractions so each copy has local names instead of global., f 70; #X text 462 275 <= array with local name, f 13; #X obj 221 291 f \$0; #X msg 121 210 set \$1; #X obj 121 184 symbol \$0-x; #X obj 121 161 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc #000000 #000000; #X text 227 197 You can also load '\$0' in a float object and send it to a message that works like a send to send messages to an array. , f 40; #X text 140 158 click to set name; #X floatatom 67 188 6 1 8 0 - - - 0; #X obj 311 276 array define \$0-x 10; #X msg 221 320 \; \$1-x 0 1 0 -1 0 1 0 -1 1 0 -1; #X obj 221 264 loadbang; #X obj 67 251 tabread4~; #X obj 67 345 snapshot~; #X obj 86 313 metro 200; #X floatatom 67 371 6 0 0 0 - - - 0; #X obj 86 289 loadbang; #X text 36 86 You can use "\$0" in an array name and if you need to set the array name you can load it in a symbol object \, since "\$0" doesn't work in messages., f 70; #X connect 2 0 10 0; #X connect 3 0 12 0; #X connect 4 0 3 0; #X connect 5 0 4 0; #X connect 8 0 12 0; #X connect 11 0 2 0; #X connect 12 0 13 0; #X connect 13 0 15 0; #X connect 14 0 13 0; #X connect 16 0 14 0; #X restore 289 398 pd Dealing_with_"\$0"; #X text 291 360 open subpatch to see how to deal with '\$0', f 21 ; #X obj 39 117 hsl 128 15 1 8 0 0 empty empty empty -2 -8 0 10 #fcfcfc #000000 #000000 0 1; #X connect 1 0 5 0; #X connect 2 0 1 0; #X connect 3 0 28 0; #X connect 4 0 3 0; #X connect 17 0 28 1; #X connect 28 0 1 0; #X connect 29 0 28 0; #X connect 30 0 2 0; #X connect 33 0 32 0; #X connect 37 0 4 0;
Pure Data
4
myQwil/pure-data
doc/5.reference/tabread4~-help.pd
[ "TCL" ]
<?xml version='1.0' encoding='UTF-8'?> <?python # # Copyright (c) SAS Institute Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # from urllib import quote import time ?> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#" py:extends="'library.kid'"> <table py:def="sourceTroveInfo(trove)" class="vheader"> <tr class="even"><td>Trove name:</td><td>${trove.getName()}</td></tr> <tr class="odd"><td>Change log:</td> <td> <?python cl = trove.getChangeLog() timestamp = time.ctime(trove.getVersion().timeStamps()[-1]) ?> <div><i>${timestamp}</i> by <i>${cl.getName()} (${cl.getContact()})</i></div> <p><code>${cl.getMessage()}</code></p> </td> </tr> </table> <table py:def="binaryTroveInfo(trove)" class="vheader"> <?python sourceVersion = str(trove.getVersion().getSourceVersion()) sourceLink = "troveInfo?t=%s;v=%s" % (quote(trove.getSourceName()), quote(sourceVersion)) ?> <tr class="even"><td>Trove name:</td><td>${trove.getName()}</td></tr> <tr class="odd"><td>Version:</td><td>${trove.getVersion().asString()}</td></tr> <tr class="even"><td>Flavor:</td><td>${trove.getFlavor()}</td></tr> <tr class="odd"><td>Built from trove:</td><td><a href="${sourceLink}">${trove.getSourceName()}</a></td></tr> <?python buildTime = trove.getBuildTime() if not buildTime: buildTime = '(unknown)' else: buildTime = time.ctime(buildTime) ?> <tr class="even"><td>Build time:</td><td>${buildTime} using Conary ${trove.getConaryVersion()}</td></tr> <tr class="odd"><td>Provides:</td> <td class="top"> <div py:for="dep in str(trove.provides.deps).split('\n')">${dep.decode('utf8', 'replace')}</div> <div py:if="not trove.provides.deps"> Trove satisfies no dependencies. </div> </td> </tr> <tr class="even"><td>Requires:</td> <td> <div py:for="dep in str(trove.requires.deps).split('\n')">${dep.decode('utf8', 'replace')}</div> <div py:if="not trove.requires.deps"> Trove has no requirements. </div> </td> </tr> </table> <head/> <body> <div id="inner"> <h3>Trove Information:</h3> <table py:if="metadata"> <tr class="even"><td>Summary:</td><td>${metadata.getShortDesc()}</td></tr> <tr class="odd"><td>Description:</td><td>${metadata.getLongDesc()}</td></tr> <tr class="even"> <td>Categories:</td> <td><div py:for="category in metadata.getCategories()" py:content="category"/></td> </tr> <tr class="odd"> <td>Licenses:</td> <td><div py:for="lic in metadata.getLicenses()" py:content="lic"/></td> </tr> <tr class="even"> <td>Urls:</td> <td><div py:for="url in metadata.getUrls()"><a href="${url}">${url}</a></div></td> </tr> </table> <hr /> <div py:strip="True" py:if="troves[0].getName().endswith(':source')"> ${sourceTroveInfo(troves[0])} <p><a href="files?t=${quote(troveName)};v=${quote(str(troves[0].getVersion()))};f=${quote(troves[0].getFlavor().freeze())}">Show Files</a></p> </div> <div py:strip="True" py:if="not trove.getName().endswith(':source')" py:for="trove in troves"> ${binaryTroveInfo(trove)} <p><a href="files?t=${quote(troveName)};v=${quote(str(trove.getVersion()))};f=${quote(trove.getFlavor().freeze())}"> Show ${troveName.startswith('group-') and 'Troves' or 'Files'}</a> </p> </div> <div py:strip="True" py:if="len(versionList) > 1"> <h3>All Versions:</h3> <ul> <li py:for="ver in versionList"> <a href="troveInfo?t=${quote(troveName)};v=${quote(str(ver))}" py:if="ver != reqVer">${ver.asString()}</a> <span py:strip="True" py:if="ver == reqVer"><b>${ver.asString()}</b> (selected)</span> </li> </ul> </div> </div> </body> </html>
Genshi
4
sassoftware/conary
conary/server/templates/trove_info.kid
[ "Apache-2.0" ]
(kicad_pcb (version 20171130) (host pcbnew "(5.0.0-rc2-dev-252-gb5f1fdd98)") (general (thickness 1.6) (drawings 76) (tracks 161) (zones 0) (modules 13) (nets 1) ) (page A4) (layers (0 F.Cu signal) (31 B.Cu signal) (32 B.Adhes user) (33 F.Adhes user) (34 B.Paste user) (35 F.Paste user) (36 B.SilkS user) (37 F.SilkS user) (38 B.Mask user) (39 F.Mask user) (40 Dwgs.User user) (41 Cmts.User user) (42 Eco1.User user) (43 Eco2.User user) (44 Edge.Cuts user) (45 Margin user) (46 B.CrtYd user) (47 F.CrtYd user) (48 B.Fab user) (49 F.Fab user) ) (setup (last_trace_width 0.8) (trace_clearance 0.4) (zone_clearance 0.508) (zone_45_only no) (trace_min 0.2) (segment_width 0.2) (edge_width 0.15) (via_size 0.8) (via_drill 0.4) (via_min_size 0.4) (via_min_drill 0.3) (uvia_size 0.3) (uvia_drill 0.1) (uvias_allowed no) (uvia_min_size 0.2) (uvia_min_drill 0.1) (pcb_text_width 0.3) (pcb_text_size 1.5 1.5) (mod_edge_width 0.15) (mod_text_size 1 1) (mod_text_width 0.15) (pad_size 1.6 1.6) (pad_drill 1) (pad_to_mask_clearance 0.2) (aux_axis_origin 0 0) (visible_elements FFFFFF7F) (pcbplotparams (layerselection 0x010fc_ffffffff) (usegerberextensions false) (usegerberattributes false) (usegerberadvancedattributes false) (creategerberjobfile false) (excludeedgelayer true) (linewidth 0.100000) (plotframeref false) (viasonmask false) (mode 1) (useauxorigin false) (hpglpennumber 1) (hpglpenspeed 20) (hpglpendiameter 15) (psnegative false) (psa4output false) (plotreference true) (plotvalue true) (plotinvisibletext false) (padsonsilk false) (subtractmaskfromsilk false) (outputformat 1) (mirror false) (drillshape 0) (scaleselection 1) (outputdirectory gerber)) ) (net 0 "") (net_class Default "This is the default net class." (clearance 0.4) (trace_width 0.8) (via_dia 0.8) (via_drill 0.4) (uvia_dia 0.3) (uvia_drill 0.1) ) (module Resistors_SMD:R_0805_HandSoldering (layer F.Cu) (tedit 5AB0FA54) (tstamp 5AB103A0) (at 121.92 60.96) (descr "Resistor SMD 0805, hand soldering") (tags "resistor 0805") (attr smd) (fp_text reference I2C (at 0 -1.7) (layer F.SilkS) hide (effects (font (size 1 1) (thickness 0.15))) ) (fp_text value R_0805_HandSoldering (at 0 1.75) (layer F.Fab) hide (effects (font (size 1 1) (thickness 0.15))) ) (fp_line (start 2.35 0.9) (end -2.35 0.9) (layer F.CrtYd) (width 0.05)) (fp_line (start 2.35 0.9) (end 2.35 -0.9) (layer F.CrtYd) (width 0.05)) (fp_line (start -2.35 -0.9) (end -2.35 0.9) (layer F.CrtYd) (width 0.05)) (fp_line (start -2.35 -0.9) (end 2.35 -0.9) (layer F.CrtYd) (width 0.05)) (fp_line (start -0.6 -0.88) (end 0.6 -0.88) (layer F.SilkS) (width 0.12)) (fp_line (start 0.6 0.88) (end -0.6 0.88) (layer F.SilkS) (width 0.12)) (fp_line (start -1 -0.62) (end 1 -0.62) (layer F.Fab) (width 0.1)) (fp_line (start 1 -0.62) (end 1 0.62) (layer F.Fab) (width 0.1)) (fp_line (start 1 0.62) (end -1 0.62) (layer F.Fab) (width 0.1)) (fp_line (start -1 0.62) (end -1 -0.62) (layer F.Fab) (width 0.1)) (fp_text user %R (at 0 0) (layer F.Fab) (effects (font (size 0.5 0.5) (thickness 0.075))) ) (pad 2 smd rect (at 1.35 0) (size 1.5 1.3) (layers F.Cu F.Paste F.Mask)) (pad 1 smd rect (at -1.35 0) (size 1.5 1.3) (layers F.Cu F.Paste F.Mask)) (model ${KISYS3DMOD}/Resistors_SMD.3dshapes/R_0805.wrl (at (xyz 0 0 0)) (scale (xyz 1 1 1)) (rotate (xyz 0 0 0)) ) ) (module Modules:Arduino_UNO_R3 (layer B.Cu) (tedit 5AD7886F) (tstamp 5AB108B8) (at 120.65 66.04) (descr "Arduino UNO R3, http://www.mouser.com/pdfdocs/Gravitech_Arduino_Nano3_0.pdf") (tags "Arduino UNO R3") (fp_text reference REF** (at 1.27 3.81 180) (layer B.SilkS) hide (effects (font (size 1 1) (thickness 0.15)) (justify mirror)) ) (fp_text value Arduino_UNO_R3 (at 0 -22.86) (layer B.Fab) hide (effects (font (size 1 1) (thickness 0.15)) (justify mirror)) ) (fp_text user %R (at 0 -20.32 -180) (layer B.Fab) (effects (font (size 1 1) (thickness 0.15)) (justify mirror)) ) (fp_line (start 38.35 2.79) (end 38.35 0) (layer B.CrtYd) (width 0.05)) (fp_line (start 38.35 0) (end 40.89 -2.54) (layer B.CrtYd) (width 0.05)) (fp_line (start 40.89 -2.54) (end 40.89 -35.31) (layer B.CrtYd) (width 0.05)) (fp_line (start 40.89 -35.31) (end 38.35 -37.85) (layer B.CrtYd) (width 0.05)) (fp_line (start 38.35 -37.85) (end 38.35 -49.28) (layer B.CrtYd) (width 0.05)) (fp_line (start 38.35 -49.28) (end 36.58 -51.05) (layer B.CrtYd) (width 0.05)) (fp_line (start 36.58 -51.05) (end -28.19 -51.05) (layer B.CrtYd) (width 0.05)) (fp_line (start -28.19 -51.05) (end -28.19 -41.53) (layer B.CrtYd) (width 0.05)) (fp_line (start -28.19 -41.53) (end -34.54 -41.53) (layer B.CrtYd) (width 0.05)) (fp_line (start -34.54 -41.53) (end -34.54 -29.59) (layer B.CrtYd) (width 0.05)) (fp_line (start -34.54 -29.59) (end -28.19 -29.59) (layer B.CrtYd) (width 0.05)) (fp_line (start -28.19 -29.59) (end -28.19 -9.78) (layer B.CrtYd) (width 0.05)) (fp_line (start -28.19 -9.78) (end -30.1 -9.78) (layer B.CrtYd) (width 0.05)) (fp_line (start -30.1 -9.78) (end -30.1 -0.38) (layer B.CrtYd) (width 0.05)) (fp_line (start -30.1 -0.38) (end -28.19 -0.38) (layer B.CrtYd) (width 0.05)) (fp_line (start -28.19 -0.38) (end -28.19 2.79) (layer B.CrtYd) (width 0.05)) (fp_line (start -28.19 2.79) (end 38.35 2.79) (layer B.CrtYd) (width 0.05)) (fp_line (start 40.77 -35.31) (end 40.77 -2.54) (layer B.SilkS) (width 0.12)) (fp_line (start 40.77 -2.54) (end 38.23 0) (layer B.SilkS) (width 0.12)) (fp_line (start 38.23 0) (end 38.23 2.67) (layer B.SilkS) (width 0.12)) (fp_line (start 38.23 2.67) (end -28.07 2.67) (layer B.SilkS) (width 0.12)) (fp_line (start -28.07 2.67) (end -28.07 -0.51) (layer B.SilkS) (width 0.12)) (fp_line (start -28.07 -0.51) (end -29.97 -0.51) (layer B.SilkS) (width 0.12)) (fp_line (start -29.97 -0.51) (end -29.97 -9.65) (layer B.SilkS) (width 0.12)) (fp_line (start -29.97 -9.65) (end -28.07 -9.65) (layer B.SilkS) (width 0.12)) (fp_line (start -28.07 -9.65) (end -28.07 -29.72) (layer B.SilkS) (width 0.12)) (fp_line (start -28.07 -29.72) (end -34.42 -29.72) (layer B.SilkS) (width 0.12)) (fp_line (start -34.42 -29.72) (end -34.42 -41.4) (layer B.SilkS) (width 0.12)) (fp_line (start -34.42 -41.4) (end -28.07 -41.4) (layer B.SilkS) (width 0.12)) (fp_line (start -28.07 -41.4) (end -28.07 -50.93) (layer B.SilkS) (width 0.12)) (fp_line (start -28.07 -50.93) (end 36.58 -50.93) (layer B.SilkS) (width 0.12)) (fp_line (start 36.58 -50.93) (end 38.23 -49.28) (layer B.SilkS) (width 0.12)) (fp_line (start 38.23 -49.28) (end 38.23 -37.85) (layer B.SilkS) (width 0.12)) (fp_line (start 38.23 -37.85) (end 40.77 -35.31) (layer B.SilkS) (width 0.12)) (fp_line (start -34.29 -29.84) (end -18.41 -29.84) (layer B.Fab) (width 0.1)) (fp_line (start -18.41 -29.84) (end -18.41 -41.27) (layer B.Fab) (width 0.1)) (fp_line (start -18.41 -41.27) (end -34.29 -41.27) (layer B.Fab) (width 0.1)) (fp_line (start -34.29 -41.27) (end -34.29 -29.84) (layer B.Fab) (width 0.1)) (fp_line (start -29.84 -0.64) (end -16.51 -0.64) (layer B.Fab) (width 0.1)) (fp_line (start -16.51 -0.64) (end -16.51 -9.53) (layer B.Fab) (width 0.1)) (fp_line (start -16.51 -9.53) (end -29.84 -9.53) (layer B.Fab) (width 0.1)) (fp_line (start -29.84 -9.53) (end -29.84 -0.64) (layer B.Fab) (width 0.1)) (fp_line (start 38.1 -37.85) (end 38.1 -49.28) (layer B.Fab) (width 0.1)) (fp_line (start 40.64 -2.54) (end 40.64 -35.31) (layer B.Fab) (width 0.1)) (fp_line (start 40.64 -35.31) (end 38.1 -37.85) (layer B.Fab) (width 0.1)) (fp_line (start 38.1 2.54) (end 38.1 0) (layer B.Fab) (width 0.1)) (fp_line (start 38.1 0) (end 40.64 -2.54) (layer B.Fab) (width 0.1)) (fp_line (start 38.1 -49.28) (end 36.58 -50.8) (layer B.Fab) (width 0.1)) (fp_line (start 36.58 -50.8) (end -27.94 -50.8) (layer B.Fab) (width 0.1)) (fp_line (start -27.94 -50.8) (end -27.94 2.54) (layer B.Fab) (width 0.1)) (fp_line (start -27.94 2.54) (end 38.1 2.54) (layer B.Fab) (width 0.1)) (pad 32 thru_hole oval (at -9.14 -48.26 270) (size 1.6 1.6) (drill 1) (layers *.Cu *.Mask)) (pad 31 thru_hole oval (at -6.6 -48.26 270) (size 1.6 1.6) (drill 1) (layers *.Cu *.Mask)) (pad 1 thru_hole rect (at 0 0 270) (size 1.6 1.6) (drill 1) (layers *.Cu *.Mask)) (pad 17 thru_hole oval (at 30.48 -48.26 270) (size 1.6 1.6) (drill 1) (layers *.Cu *.Mask)) (pad 2 thru_hole oval (at 2.54 0 270) (size 1.6 1.6) (drill 1) (layers *.Cu *.Mask)) (pad 18 thru_hole oval (at 27.94 -48.26 270) (size 1.6 1.6) (drill 1) (layers *.Cu *.Mask)) (pad 3 thru_hole oval (at 5.08 0 270) (size 1.6 1.6) (drill 1) (layers *.Cu *.Mask)) (pad 19 thru_hole oval (at 25.4 -48.26 270) (size 1.6 1.6) (drill 1) (layers *.Cu *.Mask)) (pad 4 thru_hole oval (at 7.62 0 270) (size 1.6 1.6) (drill 1) (layers *.Cu *.Mask)) (pad 20 thru_hole oval (at 22.86 -48.26 270) (size 1.6 1.6) (drill 1) (layers *.Cu *.Mask)) (pad 5 thru_hole oval (at 10.16 0 270) (size 1.6 1.6) (drill 1) (layers *.Cu *.Mask)) (pad 21 thru_hole oval (at 20.32 -48.26 270) (size 1.6 1.6) (drill 1) (layers *.Cu *.Mask)) (pad 6 thru_hole oval (at 12.7 0 270) (size 1.6 1.6) (drill 1) (layers *.Cu *.Mask)) (pad 22 thru_hole oval (at 17.78 -48.26 270) (size 1.6 1.6) (drill 1) (layers *.Cu *.Mask)) (pad 7 thru_hole oval (at 15.24 0 270) (size 1.6 1.6) (drill 1) (layers *.Cu *.Mask)) (pad 23 thru_hole oval (at 13.72 -48.26 270) (size 1.6 1.6) (drill 1) (layers *.Cu *.Mask)) (pad 8 thru_hole oval (at 17.78 0 270) (size 1.6 1.6) (drill 1) (layers *.Cu *.Mask)) (pad 24 thru_hole oval (at 11.18 -48.26 270) (size 1.6 1.6) (drill 1) (layers *.Cu *.Mask)) (pad 9 thru_hole oval (at 22.86 0 270) (size 1.6 1.6) (drill 1) (layers *.Cu *.Mask)) (pad 25 thru_hole oval (at 8.64 -48.26 270) (size 1.6 1.6) (drill 1) (layers *.Cu *.Mask)) (pad 10 thru_hole oval (at 25.4 0 270) (size 1.6 1.6) (drill 1) (layers *.Cu *.Mask)) (pad 26 thru_hole oval (at 6.1 -48.26 270) (size 1.6 1.6) (drill 1) (layers *.Cu *.Mask)) (pad 11 thru_hole oval (at 27.94 0 270) (size 1.6 1.6) (drill 1) (layers *.Cu *.Mask)) (pad 27 thru_hole oval (at 3.56 -48.26 270) (size 1.6 1.6) (drill 1) (layers *.Cu *.Mask)) (pad 12 thru_hole oval (at 30.48 0 270) (size 1.6 1.6) (drill 1) (layers *.Cu *.Mask)) (pad 28 thru_hole oval (at 1.02 -48.26 270) (size 1.6 1.6) (drill 1) (layers *.Cu *.Mask)) (pad 13 thru_hole oval (at 33.02 0 270) (size 1.6 1.6) (drill 1) (layers *.Cu *.Mask)) (pad 29 thru_hole oval (at -1.52 -48.26 270) (size 1.6 1.6) (drill 1) (layers *.Cu *.Mask)) (pad 14 thru_hole oval (at 35.56 0 270) (size 1.6 1.6) (drill 1) (layers *.Cu *.Mask)) (pad 30 thru_hole oval (at -4.06 -48.26 270) (size 1.6 1.6) (drill 1) (layers *.Cu *.Mask)) (pad 15 thru_hole oval (at 35.56 -48.26 270) (size 1.6 1.6) (drill 1) (layers *.Cu *.Mask)) (pad 16 thru_hole oval (at 33.02 -48.26 270) (size 1.6 1.6) (drill 1) (layers *.Cu *.Mask)) ) (module Socket_Strips:Socket_Strip_Straight_1x04_Pitch2.54mm (layer F.Cu) (tedit 5AB0F740) (tstamp 5AB11462) (at 135.89 23.495 90) (descr "Through hole straight socket strip, 1x04, 2.54mm pitch, single row") (tags "Through hole socket strip THT 1x04 2.54mm single row") (fp_text reference REF** (at 0 -2.33 90) (layer F.SilkS) hide (effects (font (size 1 1) (thickness 0.15))) ) (fp_text value Socket_Strip_Straight_1x04_Pitch2.54mm (at 0 9.95 90) (layer F.Fab) hide (effects (font (size 1 1) (thickness 0.15))) ) (fp_line (start -1.27 -1.27) (end -1.27 8.89) (layer F.Fab) (width 0.1)) (fp_line (start -1.27 8.89) (end 1.27 8.89) (layer F.Fab) (width 0.1)) (fp_line (start 1.27 8.89) (end 1.27 -1.27) (layer F.Fab) (width 0.1)) (fp_line (start 1.27 -1.27) (end -1.27 -1.27) (layer F.Fab) (width 0.1)) (fp_line (start -1.33 1.27) (end -1.33 8.95) (layer F.SilkS) (width 0.12)) (fp_line (start -1.33 8.95) (end 1.33 8.95) (layer F.SilkS) (width 0.12)) (fp_line (start 1.33 8.95) (end 1.33 1.27) (layer F.SilkS) (width 0.12)) (fp_line (start 1.33 1.27) (end -1.33 1.27) (layer F.SilkS) (width 0.12)) (fp_line (start -1.33 0) (end -1.33 -1.33) (layer F.SilkS) (width 0.12)) (fp_line (start -1.33 -1.33) (end 0 -1.33) (layer F.SilkS) (width 0.12)) (fp_line (start -1.8 -1.8) (end -1.8 9.4) (layer F.CrtYd) (width 0.05)) (fp_line (start -1.8 9.4) (end 1.8 9.4) (layer F.CrtYd) (width 0.05)) (fp_line (start 1.8 9.4) (end 1.8 -1.8) (layer F.CrtYd) (width 0.05)) (fp_line (start 1.8 -1.8) (end -1.8 -1.8) (layer F.CrtYd) (width 0.05)) (fp_text user %R (at 0 -2.33 90) (layer F.Fab) (effects (font (size 1 1) (thickness 0.15))) ) (pad 1 thru_hole rect (at 0 0 90) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)) (pad 2 thru_hole oval (at 0 2.54 90) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)) (pad 3 thru_hole oval (at 0 5.08 90) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)) (pad 4 thru_hole oval (at 0 7.62 90) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)) (model ${KISYS3DMOD}/Socket_Strips.3dshapes/Socket_Strip_Straight_1x04_Pitch2.54mm.wrl (offset (xyz 0 -3.809999942779541 0)) (scale (xyz 1 1 1)) (rotate (xyz 0 0 270)) ) ) (module Socket_Strips:Socket_Strip_Straight_1x04_Pitch2.54mm (layer F.Cu) (tedit 5AB0F74B) (tstamp 5AB11465) (at 135.89 28.575 90) (descr "Through hole straight socket strip, 1x04, 2.54mm pitch, single row") (tags "Through hole socket strip THT 1x04 2.54mm single row") (fp_text reference REF** (at 0 -2.33 90) (layer F.SilkS) hide (effects (font (size 1 1) (thickness 0.15))) ) (fp_text value Socket_Strip_Straight_1x04_Pitch2.54mm (at 0 9.95 90) (layer F.Fab) hide (effects (font (size 1 1) (thickness 0.15))) ) (fp_line (start -1.27 -1.27) (end -1.27 8.89) (layer F.Fab) (width 0.1)) (fp_line (start -1.27 8.89) (end 1.27 8.89) (layer F.Fab) (width 0.1)) (fp_line (start 1.27 8.89) (end 1.27 -1.27) (layer F.Fab) (width 0.1)) (fp_line (start 1.27 -1.27) (end -1.27 -1.27) (layer F.Fab) (width 0.1)) (fp_line (start -1.33 1.27) (end -1.33 8.95) (layer F.SilkS) (width 0.12)) (fp_line (start -1.33 8.95) (end 1.33 8.95) (layer F.SilkS) (width 0.12)) (fp_line (start 1.33 8.95) (end 1.33 1.27) (layer F.SilkS) (width 0.12)) (fp_line (start 1.33 1.27) (end -1.33 1.27) (layer F.SilkS) (width 0.12)) (fp_line (start -1.33 0) (end -1.33 -1.33) (layer F.SilkS) (width 0.12)) (fp_line (start -1.33 -1.33) (end 0 -1.33) (layer F.SilkS) (width 0.12)) (fp_line (start -1.8 -1.8) (end -1.8 9.4) (layer F.CrtYd) (width 0.05)) (fp_line (start -1.8 9.4) (end 1.8 9.4) (layer F.CrtYd) (width 0.05)) (fp_line (start 1.8 9.4) (end 1.8 -1.8) (layer F.CrtYd) (width 0.05)) (fp_line (start 1.8 -1.8) (end -1.8 -1.8) (layer F.CrtYd) (width 0.05)) (fp_text user %R (at 0 -2.33 90) (layer F.Fab) (effects (font (size 1 1) (thickness 0.15))) ) (pad 1 thru_hole rect (at 0 0 90) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)) (pad 2 thru_hole oval (at 0 2.54 90) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)) (pad 3 thru_hole oval (at 0 5.08 90) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)) (pad 4 thru_hole oval (at 0 7.62 90) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)) (model ${KISYS3DMOD}/Socket_Strips.3dshapes/Socket_Strip_Straight_1x04_Pitch2.54mm.wrl (offset (xyz 0 -3.809999942779541 0)) (scale (xyz 1 1 1)) (rotate (xyz 0 0 270)) ) ) (module Socket_Strips:Socket_Strip_Straight_1x07_Pitch2.54mm (layer F.Cu) (tedit 5AB0F78D) (tstamp 5AB115E6) (at 135.89 41.91 90) (descr "Through hole straight socket strip, 1x07, 2.54mm pitch, single row") (tags "Through hole socket strip THT 1x07 2.54mm single row") (fp_text reference REF** (at 0 -2.33 90) (layer F.SilkS) hide (effects (font (size 1 1) (thickness 0.15))) ) (fp_text value Socket_Strip_Straight_1x07_Pitch2.54mm (at 0 17.57 90) (layer F.Fab) hide (effects (font (size 1 1) (thickness 0.15))) ) (fp_line (start -1.27 -1.27) (end -1.27 16.51) (layer F.Fab) (width 0.1)) (fp_line (start -1.27 16.51) (end 1.27 16.51) (layer F.Fab) (width 0.1)) (fp_line (start 1.27 16.51) (end 1.27 -1.27) (layer F.Fab) (width 0.1)) (fp_line (start 1.27 -1.27) (end -1.27 -1.27) (layer F.Fab) (width 0.1)) (fp_line (start -1.33 1.27) (end -1.33 16.57) (layer F.SilkS) (width 0.12)) (fp_line (start -1.33 16.57) (end 1.33 16.57) (layer F.SilkS) (width 0.12)) (fp_line (start 1.33 16.57) (end 1.33 1.27) (layer F.SilkS) (width 0.12)) (fp_line (start 1.33 1.27) (end -1.33 1.27) (layer F.SilkS) (width 0.12)) (fp_line (start -1.33 0) (end -1.33 -1.33) (layer F.SilkS) (width 0.12)) (fp_line (start -1.33 -1.33) (end 0 -1.33) (layer F.SilkS) (width 0.12)) (fp_line (start -1.8 -1.8) (end -1.8 17.05) (layer F.CrtYd) (width 0.05)) (fp_line (start -1.8 17.05) (end 1.8 17.05) (layer F.CrtYd) (width 0.05)) (fp_line (start 1.8 17.05) (end 1.8 -1.8) (layer F.CrtYd) (width 0.05)) (fp_line (start 1.8 -1.8) (end -1.8 -1.8) (layer F.CrtYd) (width 0.05)) (fp_text user %R (at 0 -2.33 90) (layer F.Fab) (effects (font (size 1 1) (thickness 0.15))) ) (pad 1 thru_hole rect (at 0 0 90) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)) (pad 2 thru_hole oval (at 0 2.54 90) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)) (pad 3 thru_hole oval (at 0 5.08 90) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)) (pad 4 thru_hole oval (at 0 7.62 90) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)) (pad 5 thru_hole oval (at 0 10.16 90) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)) (pad 6 thru_hole oval (at 0 12.7 90) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)) (pad 7 thru_hole oval (at 0 15.24 90) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)) (model ${KISYS3DMOD}/Socket_Strips.3dshapes/Socket_Strip_Straight_1x07_Pitch2.54mm.wrl (offset (xyz 0 -7.619999885559082 0)) (scale (xyz 1 1 1)) (rotate (xyz 0 0 270)) ) ) (module Socket_Strips:Socket_Strip_Straight_1x08_Pitch2.54mm (layer F.Cu) (tedit 5AB0F79D) (tstamp 5AB115ED) (at 135.89 36.83 90) (descr "Through hole straight socket strip, 1x08, 2.54mm pitch, single row") (tags "Through hole socket strip THT 1x08 2.54mm single row") (fp_text reference REF** (at 0 -2.33 90) (layer F.SilkS) hide (effects (font (size 1 1) (thickness 0.15))) ) (fp_text value Socket_Strip_Straight_1x08_Pitch2.54mm (at 0 20.11 90) (layer F.Fab) hide (effects (font (size 1 1) (thickness 0.15))) ) (fp_line (start -1.27 -1.27) (end -1.27 19.05) (layer F.Fab) (width 0.1)) (fp_line (start -1.27 19.05) (end 1.27 19.05) (layer F.Fab) (width 0.1)) (fp_line (start 1.27 19.05) (end 1.27 -1.27) (layer F.Fab) (width 0.1)) (fp_line (start 1.27 -1.27) (end -1.27 -1.27) (layer F.Fab) (width 0.1)) (fp_line (start -1.33 1.27) (end -1.33 19.11) (layer F.SilkS) (width 0.12)) (fp_line (start -1.33 19.11) (end 1.33 19.11) (layer F.SilkS) (width 0.12)) (fp_line (start 1.33 19.11) (end 1.33 1.27) (layer F.SilkS) (width 0.12)) (fp_line (start 1.33 1.27) (end -1.33 1.27) (layer F.SilkS) (width 0.12)) (fp_line (start -1.33 0) (end -1.33 -1.33) (layer F.SilkS) (width 0.12)) (fp_line (start -1.33 -1.33) (end 0 -1.33) (layer F.SilkS) (width 0.12)) (fp_line (start -1.8 -1.8) (end -1.8 19.55) (layer F.CrtYd) (width 0.05)) (fp_line (start -1.8 19.55) (end 1.8 19.55) (layer F.CrtYd) (width 0.05)) (fp_line (start 1.8 19.55) (end 1.8 -1.8) (layer F.CrtYd) (width 0.05)) (fp_line (start 1.8 -1.8) (end -1.8 -1.8) (layer F.CrtYd) (width 0.05)) (fp_text user %R (at 0 -2.33 90) (layer F.Fab) (effects (font (size 1 1) (thickness 0.15))) ) (pad 1 thru_hole rect (at 0 0 90) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)) (pad 2 thru_hole oval (at 0 2.54 90) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)) (pad 3 thru_hole oval (at 0 5.08 90) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)) (pad 4 thru_hole oval (at 0 7.62 90) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)) (pad 5 thru_hole oval (at 0 10.16 90) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)) (pad 6 thru_hole oval (at 0 12.7 90) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)) (pad 7 thru_hole oval (at 0 15.24 90) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)) (pad 8 thru_hole oval (at 0 17.78 90) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask)) (model ${KISYS3DMOD}/Socket_Strips.3dshapes/Socket_Strip_Straight_1x08_Pitch2.54mm.wrl (offset (xyz 0 -8.889999866485596 0)) (scale (xyz 1 1 1)) (rotate (xyz 0 0 270)) ) ) (module Buttons_Switches_THT:SW_PUSH_6mm_h4.3mm (layer F.Cu) (tedit 5AB0FAA3) (tstamp 5AB0F8AF) (at 109.855 60.96) (descr "tactile push button, 6x6mm e.g. PHAP33xx series, height=4.3mm") (tags "tact sw push 6mm") (fp_text reference BUS (at 3.25 -2) (layer F.SilkS) (effects (font (size 1 1) (thickness 0.15))) ) (fp_text value SW_PUSH_6mm_h4.3mm (at 3.75 6.7) (layer F.Fab) hide (effects (font (size 1 1) (thickness 0.15))) ) (fp_text user %R (at 3.25 2.25) (layer F.Fab) (effects (font (size 1 1) (thickness 0.15))) ) (fp_line (start 3.25 -0.75) (end 6.25 -0.75) (layer F.Fab) (width 0.1)) (fp_line (start 6.25 -0.75) (end 6.25 5.25) (layer F.Fab) (width 0.1)) (fp_line (start 6.25 5.25) (end 0.25 5.25) (layer F.Fab) (width 0.1)) (fp_line (start 0.25 5.25) (end 0.25 -0.75) (layer F.Fab) (width 0.1)) (fp_line (start 0.25 -0.75) (end 3.25 -0.75) (layer F.Fab) (width 0.1)) (fp_line (start 7.75 6) (end 8 6) (layer F.CrtYd) (width 0.05)) (fp_line (start 8 6) (end 8 5.75) (layer F.CrtYd) (width 0.05)) (fp_line (start 7.75 -1.5) (end 8 -1.5) (layer F.CrtYd) (width 0.05)) (fp_line (start 8 -1.5) (end 8 -1.25) (layer F.CrtYd) (width 0.05)) (fp_line (start -1.5 -1.25) (end -1.5 -1.5) (layer F.CrtYd) (width 0.05)) (fp_line (start -1.5 -1.5) (end -1.25 -1.5) (layer F.CrtYd) (width 0.05)) (fp_line (start -1.5 5.75) (end -1.5 6) (layer F.CrtYd) (width 0.05)) (fp_line (start -1.5 6) (end -1.25 6) (layer F.CrtYd) (width 0.05)) (fp_line (start -1.25 -1.5) (end 7.75 -1.5) (layer F.CrtYd) (width 0.05)) (fp_line (start -1.5 5.75) (end -1.5 -1.25) (layer F.CrtYd) (width 0.05)) (fp_line (start 7.75 6) (end -1.25 6) (layer F.CrtYd) (width 0.05)) (fp_line (start 8 -1.25) (end 8 5.75) (layer F.CrtYd) (width 0.05)) (fp_line (start 1 5.5) (end 5.5 5.5) (layer F.SilkS) (width 0.12)) (fp_line (start -0.25 1.5) (end -0.25 3) (layer F.SilkS) (width 0.12)) (fp_line (start 5.5 -1) (end 1 -1) (layer F.SilkS) (width 0.12)) (fp_line (start 6.75 3) (end 6.75 1.5) (layer F.SilkS) (width 0.12)) (fp_circle (center 3.25 2.25) (end 1.25 2.5) (layer F.Fab) (width 0.1)) (pad 2 thru_hole circle (at 0 4.5 90) (size 2 2) (drill 1.1) (layers *.Cu *.Mask)) (pad 1 thru_hole circle (at 0 0 90) (size 2 2) (drill 1.1) (layers *.Cu *.Mask)) (pad 2 thru_hole circle (at 6.5 4.5 90) (size 2 2) (drill 1.1) (layers *.Cu *.Mask)) (pad 1 thru_hole circle (at 6.5 0 90) (size 2 2) (drill 1.1) (layers *.Cu *.Mask)) (model ${KISYS3DMOD}/Buttons_Switches_THT.3dshapes/SW_PUSH_6mm_h4.3mm.wrl (offset (xyz 0.1269999980926514 0 0)) (scale (xyz 0.3937 0.3937 0.3937)) (rotate (xyz 0 0 0)) ) ) (module LEDs:LED_0805_HandSoldering (layer F.Cu) (tedit 5AB0FAB2) (tstamp 5AB0F955) (at 104.14 63.5) (descr "Resistor SMD 0805, hand soldering") (tags "resistor 0805") (attr smd) (fp_text reference SPI (at 0 -1.7) (layer F.SilkS) (effects (font (size 1 1) (thickness 0.15))) ) (fp_text value LED_0805_HandSoldering (at 0 1.75) (layer F.Fab) hide (effects (font (size 1 1) (thickness 0.15))) ) (fp_line (start -0.4 -0.4) (end -0.4 0.4) (layer F.Fab) (width 0.1)) (fp_line (start -0.4 0) (end 0.2 -0.4) (layer F.Fab) (width 0.1)) (fp_line (start 0.2 0.4) (end -0.4 0) (layer F.Fab) (width 0.1)) (fp_line (start 0.2 -0.4) (end 0.2 0.4) (layer F.Fab) (width 0.1)) (fp_line (start -1 0.62) (end -1 -0.62) (layer F.Fab) (width 0.1)) (fp_line (start 1 0.62) (end -1 0.62) (layer F.Fab) (width 0.1)) (fp_line (start 1 -0.62) (end 1 0.62) (layer F.Fab) (width 0.1)) (fp_line (start -1 -0.62) (end 1 -0.62) (layer F.Fab) (width 0.1)) (fp_line (start 1 0.75) (end -2.2 0.75) (layer F.SilkS) (width 0.12)) (fp_line (start -2.2 -0.75) (end 1 -0.75) (layer F.SilkS) (width 0.12)) (fp_line (start -2.35 -0.9) (end 2.35 -0.9) (layer F.CrtYd) (width 0.05)) (fp_line (start -2.35 -0.9) (end -2.35 0.9) (layer F.CrtYd) (width 0.05)) (fp_line (start 2.35 0.9) (end 2.35 -0.9) (layer F.CrtYd) (width 0.05)) (fp_line (start 2.35 0.9) (end -2.35 0.9) (layer F.CrtYd) (width 0.05)) (fp_line (start -2.2 -0.75) (end -2.2 0.75) (layer F.SilkS) (width 0.12)) (pad 1 smd rect (at -1.35 0) (size 1.5 1.3) (layers F.Cu F.Paste F.Mask)) (pad 2 smd rect (at 1.35 0) (size 1.5 1.3) (layers F.Cu F.Paste F.Mask)) (model ${KISYS3DMOD}/LEDs.3dshapes/LED_0805.wrl (at (xyz 0 0 0)) (scale (xyz 1 1 1)) (rotate (xyz 0 0 0)) ) ) (module LEDs:LED_0805_HandSoldering (layer F.Cu) (tedit 5AB0FA75) (tstamp 5AB0F9AF) (at 99.06 63.5) (descr "Resistor SMD 0805, hand soldering") (tags "resistor 0805") (attr smd) (fp_text reference I2C (at 0 -1.7) (layer F.SilkS) (effects (font (size 1 1) (thickness 0.15))) ) (fp_text value LED_0805_HandSoldering (at 0 1.75) (layer F.Fab) hide (effects (font (size 1 1) (thickness 0.15))) ) (fp_line (start -0.4 -0.4) (end -0.4 0.4) (layer F.Fab) (width 0.1)) (fp_line (start -0.4 0) (end 0.2 -0.4) (layer F.Fab) (width 0.1)) (fp_line (start 0.2 0.4) (end -0.4 0) (layer F.Fab) (width 0.1)) (fp_line (start 0.2 -0.4) (end 0.2 0.4) (layer F.Fab) (width 0.1)) (fp_line (start -1 0.62) (end -1 -0.62) (layer F.Fab) (width 0.1)) (fp_line (start 1 0.62) (end -1 0.62) (layer F.Fab) (width 0.1)) (fp_line (start 1 -0.62) (end 1 0.62) (layer F.Fab) (width 0.1)) (fp_line (start -1 -0.62) (end 1 -0.62) (layer F.Fab) (width 0.1)) (fp_line (start 1 0.75) (end -2.2 0.75) (layer F.SilkS) (width 0.12)) (fp_line (start -2.2 -0.75) (end 1 -0.75) (layer F.SilkS) (width 0.12)) (fp_line (start -2.35 -0.9) (end 2.35 -0.9) (layer F.CrtYd) (width 0.05)) (fp_line (start -2.35 -0.9) (end -2.35 0.9) (layer F.CrtYd) (width 0.05)) (fp_line (start 2.35 0.9) (end 2.35 -0.9) (layer F.CrtYd) (width 0.05)) (fp_line (start 2.35 0.9) (end -2.35 0.9) (layer F.CrtYd) (width 0.05)) (fp_line (start -2.2 -0.75) (end -2.2 0.75) (layer F.SilkS) (width 0.12)) (pad 1 smd rect (at -1.35 0) (size 1.5 1.3) (layers F.Cu F.Paste F.Mask)) (pad 2 smd rect (at 1.35 0) (size 1.5 1.3) (layers F.Cu F.Paste F.Mask)) (model ${KISYS3DMOD}/LEDs.3dshapes/LED_0805.wrl (at (xyz 0 0 0)) (scale (xyz 1 1 1)) (rotate (xyz 0 0 0)) ) ) (module Resistors_SMD:R_0805_HandSoldering (layer F.Cu) (tedit 5AB0FA54) (tstamp 5AB0FA68) (at 104.14 66.04) (descr "Resistor SMD 0805, hand soldering") (tags "resistor 0805") (attr smd) (fp_text reference I2C (at 0 -1.7) (layer F.SilkS) hide (effects (font (size 1 1) (thickness 0.15))) ) (fp_text value R_0805_HandSoldering (at 0 1.75) (layer F.Fab) hide (effects (font (size 1 1) (thickness 0.15))) ) (fp_text user %R (at 0 0) (layer F.Fab) (effects (font (size 0.5 0.5) (thickness 0.075))) ) (fp_line (start -1 0.62) (end -1 -0.62) (layer F.Fab) (width 0.1)) (fp_line (start 1 0.62) (end -1 0.62) (layer F.Fab) (width 0.1)) (fp_line (start 1 -0.62) (end 1 0.62) (layer F.Fab) (width 0.1)) (fp_line (start -1 -0.62) (end 1 -0.62) (layer F.Fab) (width 0.1)) (fp_line (start 0.6 0.88) (end -0.6 0.88) (layer F.SilkS) (width 0.12)) (fp_line (start -0.6 -0.88) (end 0.6 -0.88) (layer F.SilkS) (width 0.12)) (fp_line (start -2.35 -0.9) (end 2.35 -0.9) (layer F.CrtYd) (width 0.05)) (fp_line (start -2.35 -0.9) (end -2.35 0.9) (layer F.CrtYd) (width 0.05)) (fp_line (start 2.35 0.9) (end 2.35 -0.9) (layer F.CrtYd) (width 0.05)) (fp_line (start 2.35 0.9) (end -2.35 0.9) (layer F.CrtYd) (width 0.05)) (pad 1 smd rect (at -1.35 0) (size 1.5 1.3) (layers F.Cu F.Paste F.Mask)) (pad 2 smd rect (at 1.35 0) (size 1.5 1.3) (layers F.Cu F.Paste F.Mask)) (model ${KISYS3DMOD}/Resistors_SMD.3dshapes/R_0805.wrl (at (xyz 0 0 0)) (scale (xyz 1 1 1)) (rotate (xyz 0 0 0)) ) ) (module Resistors_SMD:R_0805_HandSoldering (layer F.Cu) (tedit 5AB0FA2E) (tstamp 5AB0FA36) (at 99.06 66.04) (descr "Resistor SMD 0805, hand soldering") (tags "resistor 0805") (attr smd) (fp_text reference REF** (at 0 -1.7) (layer F.SilkS) hide (effects (font (size 1 1) (thickness 0.15))) ) (fp_text value R_0805_HandSoldering (at 0 1.75) (layer F.Fab) hide (effects (font (size 1 1) (thickness 0.15))) ) (fp_text user %R (at 0 0) (layer F.Fab) (effects (font (size 0.5 0.5) (thickness 0.075))) ) (fp_line (start -1 0.62) (end -1 -0.62) (layer F.Fab) (width 0.1)) (fp_line (start 1 0.62) (end -1 0.62) (layer F.Fab) (width 0.1)) (fp_line (start 1 -0.62) (end 1 0.62) (layer F.Fab) (width 0.1)) (fp_line (start -1 -0.62) (end 1 -0.62) (layer F.Fab) (width 0.1)) (fp_line (start 0.6 0.88) (end -0.6 0.88) (layer F.SilkS) (width 0.12)) (fp_line (start -0.6 -0.88) (end 0.6 -0.88) (layer F.SilkS) (width 0.12)) (fp_line (start -2.35 -0.9) (end 2.35 -0.9) (layer F.CrtYd) (width 0.05)) (fp_line (start -2.35 -0.9) (end -2.35 0.9) (layer F.CrtYd) (width 0.05)) (fp_line (start 2.35 0.9) (end 2.35 -0.9) (layer F.CrtYd) (width 0.05)) (fp_line (start 2.35 0.9) (end -2.35 0.9) (layer F.CrtYd) (width 0.05)) (pad 1 smd rect (at -1.35 0) (size 1.5 1.3) (layers F.Cu F.Paste F.Mask)) (pad 2 smd rect (at 1.35 0) (size 1.5 1.3) (layers F.Cu F.Paste F.Mask)) (model ${KISYS3DMOD}/Resistors_SMD.3dshapes/R_0805.wrl (at (xyz 0 0 0)) (scale (xyz 1 1 1)) (rotate (xyz 0 0 0)) ) ) (module Symbols:OSHW-Logo_5.7x6mm_SilkScreen (layer F.Cu) (tedit 0) (tstamp 5AB1199C) (at 121.285 29.21 90) (descr "Open Source Hardware Logo") (tags "Logo OSHW") (attr virtual) (fp_text reference REF*** (at 0 0 90) (layer F.SilkS) hide (effects (font (size 1 1) (thickness 0.15))) ) (fp_text value OSHW-Logo_5.7x6mm_SilkScreen (at 0.75 0 90) (layer F.Fab) hide (effects (font (size 1 1) (thickness 0.15))) ) (fp_poly (pts (xy -1.908759 1.469184) (xy -1.882247 1.482282) (xy -1.849553 1.505106) (xy -1.825725 1.529996) (xy -1.809406 1.561249) (xy -1.79924 1.603166) (xy -1.793872 1.660044) (xy -1.791944 1.736184) (xy -1.791831 1.768917) (xy -1.792161 1.840656) (xy -1.793527 1.891927) (xy -1.7965 1.927404) (xy -1.801649 1.951763) (xy -1.809543 1.96968) (xy -1.817757 1.981902) (xy -1.870187 2.033905) (xy -1.93193 2.065184) (xy -1.998536 2.074592) (xy -2.065558 2.06098) (xy -2.086792 2.051354) (xy -2.137624 2.024859) (xy -2.137624 2.440052) (xy -2.100525 2.420868) (xy -2.051643 2.406025) (xy -1.991561 2.402222) (xy -1.931564 2.409243) (xy -1.886256 2.425013) (xy -1.848675 2.455047) (xy -1.816564 2.498024) (xy -1.81415 2.502436) (xy -1.803967 2.523221) (xy -1.79653 2.54417) (xy -1.791411 2.569548) (xy -1.788181 2.603618) (xy -1.786413 2.650641) (xy -1.785677 2.714882) (xy -1.785544 2.787176) (xy -1.785544 3.017822) (xy -1.923861 3.017822) (xy -1.923861 2.592533) (xy -1.962549 2.559979) (xy -2.002738 2.53394) (xy -2.040797 2.529205) (xy -2.079066 2.541389) (xy -2.099462 2.55332) (xy -2.114642 2.570313) (xy -2.125438 2.595995) (xy -2.132683 2.633991) (xy -2.137208 2.687926) (xy -2.139844 2.761425) (xy -2.140772 2.810347) (xy -2.143911 3.011535) (xy -2.209926 3.015336) (xy -2.27594 3.019136) (xy -2.27594 1.77065) (xy -2.137624 1.77065) (xy -2.134097 1.840254) (xy -2.122215 1.888569) (xy -2.10002 1.918631) (xy -2.065559 1.933471) (xy -2.030742 1.936436) (xy -1.991329 1.933028) (xy -1.965171 1.919617) (xy -1.948814 1.901896) (xy -1.935937 1.882835) (xy -1.928272 1.861601) (xy -1.924861 1.831849) (xy -1.924749 1.787236) (xy -1.925897 1.74988) (xy -1.928532 1.693604) (xy -1.932456 1.656658) (xy -1.939063 1.633223) (xy -1.949749 1.61748) (xy -1.959833 1.60838) (xy -2.00197 1.588537) (xy -2.05184 1.585332) (xy -2.080476 1.592168) (xy -2.108828 1.616464) (xy -2.127609 1.663728) (xy -2.136712 1.733624) (xy -2.137624 1.77065) (xy -2.27594 1.77065) (xy -2.27594 1.458614) (xy -2.206782 1.458614) (xy -2.16526 1.460256) (xy -2.143838 1.466087) (xy -2.137626 1.477461) (xy -2.137624 1.477798) (xy -2.134742 1.488938) (xy -2.12203 1.487673) (xy -2.096757 1.475433) (xy -2.037869 1.456707) (xy -1.971615 1.454739) (xy -1.908759 1.469184)) (layer F.SilkS) (width 0.01)) (fp_poly (pts (xy -1.38421 2.406555) (xy -1.325055 2.422339) (xy -1.280023 2.450948) (xy -1.248246 2.488419) (xy -1.238366 2.504411) (xy -1.231073 2.521163) (xy -1.225974 2.542592) (xy -1.222679 2.572616) (xy -1.220797 2.615154) (xy -1.219937 2.674122) (xy -1.219707 2.75344) (xy -1.219703 2.774484) (xy -1.219703 3.017822) (xy -1.280059 3.017822) (xy -1.318557 3.015126) (xy -1.347023 3.008295) (xy -1.354155 3.004083) (xy -1.373652 2.996813) (xy -1.393566 3.004083) (xy -1.426353 3.01316) (xy -1.473978 3.016813) (xy -1.526764 3.015228) (xy -1.575036 3.008589) (xy -1.603218 3.000072) (xy -1.657753 2.965063) (xy -1.691835 2.916479) (xy -1.707157 2.851882) (xy -1.707299 2.850223) (xy -1.705955 2.821566) (xy -1.584356 2.821566) (xy -1.573726 2.854161) (xy -1.55641 2.872505) (xy -1.521652 2.886379) (xy -1.475773 2.891917) (xy -1.428988 2.889191) (xy -1.391514 2.878274) (xy -1.381015 2.871269) (xy -1.362668 2.838904) (xy -1.35802 2.802111) (xy -1.35802 2.753763) (xy -1.427582 2.753763) (xy -1.493667 2.75885) (xy -1.543764 2.773263) (xy -1.574929 2.795729) (xy -1.584356 2.821566) (xy -1.705955 2.821566) (xy -1.703987 2.779647) (xy -1.68071 2.723845) (xy -1.636948 2.681647) (xy -1.630899 2.677808) (xy -1.604907 2.665309) (xy -1.572735 2.65774) (xy -1.52776 2.654061) (xy -1.474331 2.653216) (xy -1.35802 2.653169) (xy -1.35802 2.604411) (xy -1.362953 2.566581) (xy -1.375543 2.541236) (xy -1.377017 2.539887) (xy -1.405034 2.5288) (xy -1.447326 2.524503) (xy -1.494064 2.526615) (xy -1.535418 2.534756) (xy -1.559957 2.546965) (xy -1.573253 2.556746) (xy -1.587294 2.558613) (xy -1.606671 2.5506) (xy -1.635976 2.530739) (xy -1.679803 2.497063) (xy -1.683825 2.493909) (xy -1.681764 2.482236) (xy -1.664568 2.462822) (xy -1.638433 2.441248) (xy -1.609552 2.423096) (xy -1.600478 2.418809) (xy -1.56738 2.410256) (xy -1.51888 2.404155) (xy -1.464695 2.401708) (xy -1.462161 2.401703) (xy -1.38421 2.406555)) (layer F.SilkS) (width 0.01)) (fp_poly (pts (xy -0.993356 2.40302) (xy -0.974539 2.40866) (xy -0.968473 2.421053) (xy -0.968218 2.426647) (xy -0.967129 2.44223) (xy -0.959632 2.444676) (xy -0.939381 2.433993) (xy -0.927351 2.426694) (xy -0.8894 2.411063) (xy -0.844072 2.403334) (xy -0.796544 2.40274) (xy -0.751995 2.408513) (xy -0.715602 2.419884) (xy -0.692543 2.436088) (xy -0.687996 2.456355) (xy -0.690291 2.461843) (xy -0.70702 2.484626) (xy -0.732963 2.512647) (xy -0.737655 2.517177) (xy -0.762383 2.538005) (xy -0.783718 2.544735) (xy -0.813555 2.540038) (xy -0.825508 2.536917) (xy -0.862705 2.529421) (xy -0.888859 2.532792) (xy -0.910946 2.544681) (xy -0.931178 2.560635) (xy -0.946079 2.5807) (xy -0.956434 2.608702) (xy -0.963029 2.648467) (xy -0.966649 2.703823) (xy -0.968078 2.778594) (xy -0.968218 2.82374) (xy -0.968218 3.017822) (xy -1.09396 3.017822) (xy -1.09396 2.401683) (xy -1.031089 2.401683) (xy -0.993356 2.40302)) (layer F.SilkS) (width 0.01)) (fp_poly (pts (xy -0.201188 3.017822) (xy -0.270346 3.017822) (xy -0.310488 3.016645) (xy -0.331394 3.011772) (xy -0.338922 3.001186) (xy -0.339505 2.994029) (xy -0.340774 2.979676) (xy -0.348779 2.976923) (xy -0.369815 2.985771) (xy -0.386173 2.994029) (xy -0.448977 3.013597) (xy -0.517248 3.014729) (xy -0.572752 3.000135) (xy -0.624438 2.964877) (xy -0.663838 2.912835) (xy -0.685413 2.85145) (xy -0.685962 2.848018) (xy -0.689167 2.810571) (xy -0.690761 2.756813) (xy -0.690633 2.716155) (xy -0.553279 2.716155) (xy -0.550097 2.770194) (xy -0.542859 2.814735) (xy -0.53306 2.839888) (xy -0.495989 2.87426) (xy -0.451974 2.886582) (xy -0.406584 2.876618) (xy -0.367797 2.846895) (xy -0.353108 2.826905) (xy -0.344519 2.80305) (xy -0.340496 2.76823) (xy -0.339505 2.71593) (xy -0.341278 2.664139) (xy -0.345963 2.618634) (xy -0.352603 2.588181) (xy -0.35371 2.585452) (xy -0.380491 2.553) (xy -0.419579 2.535183) (xy -0.463315 2.532306) (xy -0.504038 2.544674) (xy -0.534087 2.572593) (xy -0.537204 2.578148) (xy -0.546961 2.612022) (xy -0.552277 2.660728) (xy -0.553279 2.716155) (xy -0.690633 2.716155) (xy -0.690568 2.69554) (xy -0.689664 2.662563) (xy -0.683514 2.580981) (xy -0.670733 2.51973) (xy -0.649471 2.474449) (xy -0.617878 2.440779) (xy -0.587207 2.421014) (xy -0.544354 2.40712) (xy -0.491056 2.402354) (xy -0.43648 2.406236) (xy -0.389792 2.418282) (xy -0.365124 2.432693) (xy -0.339505 2.455878) (xy -0.339505 2.162773) (xy -0.201188 2.162773) (xy -0.201188 3.017822)) (layer F.SilkS) (width 0.01)) (fp_poly (pts (xy 0.281524 2.404237) (xy 0.331255 2.407971) (xy 0.461291 2.797773) (xy 0.481678 2.728614) (xy 0.493946 2.685874) (xy 0.510085 2.628115) (xy 0.527512 2.564625) (xy 0.536726 2.53057) (xy 0.571388 2.401683) (xy 0.714391 2.401683) (xy 0.671646 2.536857) (xy 0.650596 2.603342) (xy 0.625167 2.683539) (xy 0.59861 2.767193) (xy 0.574902 2.841782) (xy 0.520902 3.011535) (xy 0.462598 3.015328) (xy 0.404295 3.019122) (xy 0.372679 2.914734) (xy 0.353182 2.849889) (xy 0.331904 2.7784) (xy 0.313308 2.715263) (xy 0.312574 2.71275) (xy 0.298684 2.669969) (xy 0.286429 2.640779) (xy 0.277846 2.629741) (xy 0.276082 2.631018) (xy 0.269891 2.64813) (xy 0.258128 2.684787) (xy 0.242225 2.736378) (xy 0.223614 2.798294) (xy 0.213543 2.832352) (xy 0.159007 3.017822) (xy 0.043264 3.017822) (xy -0.049263 2.725471) (xy -0.075256 2.643462) (xy -0.098934 2.568987) (xy -0.11918 2.505544) (xy -0.134874 2.456632) (xy -0.144898 2.425749) (xy -0.147945 2.416726) (xy -0.145533 2.407487) (xy -0.126592 2.403441) (xy -0.087177 2.403846) (xy -0.081007 2.404152) (xy -0.007914 2.407971) (xy 0.039957 2.58401) (xy 0.057553 2.648211) (xy 0.073277 2.704649) (xy 0.085746 2.748422) (xy 0.093574 2.77463) (xy 0.09502 2.778903) (xy 0.101014 2.77399) (xy 0.113101 2.748532) (xy 0.129893 2.705997) (xy 0.150003 2.64985) (xy 0.167003 2.59913) (xy 0.231794 2.400504) (xy 0.281524 2.404237)) (layer F.SilkS) (width 0.01)) (fp_poly (pts (xy 1.038411 2.405417) (xy 1.091411 2.41829) (xy 1.106731 2.42511) (xy 1.136428 2.442974) (xy 1.15922 2.463093) (xy 1.176083 2.488962) (xy 1.187998 2.524073) (xy 1.195942 2.57192) (xy 1.200894 2.635996) (xy 1.203831 2.719794) (xy 1.204947 2.775768) (xy 1.209052 3.017822) (xy 1.138932 3.017822) (xy 1.096393 3.016038) (xy 1.074476 3.009942) (xy 1.068812 2.999706) (xy 1.065821 2.988637) (xy 1.052451 2.990754) (xy 1.034233 2.999629) (xy 0.988624 3.013233) (xy 0.930007 3.016899) (xy 0.868354 3.010903) (xy 0.813638 2.995521) (xy 0.80873 2.993386) (xy 0.758723 2.958255) (xy 0.725756 2.909419) (xy 0.710587 2.852333) (xy 0.711746 2.831824) (xy 0.835508 2.831824) (xy 0.846413 2.859425) (xy 0.878745 2.879204) (xy 0.93091 2.889819) (xy 0.958787 2.891228) (xy 1.005247 2.88762) (xy 1.036129 2.873597) (xy 1.043664 2.866931) (xy 1.064076 2.830666) (xy 1.068812 2.797773) (xy 1.068812 2.753763) (xy 1.007513 2.753763) (xy 0.936256 2.757395) (xy 0.886276 2.768818) (xy 0.854696 2.788824) (xy 0.847626 2.797743) (xy 0.835508 2.831824) (xy 0.711746 2.831824) (xy 0.713971 2.792456) (xy 0.736663 2.735244) (xy 0.767624 2.69658) (xy 0.786376 2.679864) (xy 0.804733 2.668878) (xy 0.828619 2.66218) (xy 0.863957 2.658326) (xy 0.916669 2.655873) (xy 0.937577 2.655168) (xy 1.068812 2.650879) (xy 1.06862 2.611158) (xy 1.063537 2.569405) (xy 1.045162 2.544158) (xy 1.008039 2.52803) (xy 1.007043 2.527742) (xy 0.95441 2.5214) (xy 0.902906 2.529684) (xy 0.86463 2.549827) (xy 0.849272 2.559773) (xy 0.83273 2.558397) (xy 0.807275 2.543987) (xy 0.792328 2.533817) (xy 0.763091 2.512088) (xy 0.74498 2.4958) (xy 0.742074 2.491137) (xy 0.75404 2.467005) (xy 0.789396 2.438185) (xy 0.804753 2.428461) (xy 0.848901 2.411714) (xy 0.908398 2.402227) (xy 0.974487 2.400095) (xy 1.038411 2.405417)) (layer F.SilkS) (width 0.01)) (fp_poly (pts (xy 1.635255 2.401486) (xy 1.683595 2.411015) (xy 1.711114 2.425125) (xy 1.740064 2.448568) (xy 1.698876 2.500571) (xy 1.673482 2.532064) (xy 1.656238 2.547428) (xy 1.639102 2.549776) (xy 1.614027 2.542217) (xy 1.602257 2.537941) (xy 1.55427 2.531631) (xy 1.510324 2.545156) (xy 1.47806 2.57571) (xy 1.472819 2.585452) (xy 1.467112 2.611258) (xy 1.462706 2.658817) (xy 1.459811 2.724758) (xy 1.458631 2.80571) (xy 1.458614 2.817226) (xy 1.458614 3.017822) (xy 1.320297 3.017822) (xy 1.320297 2.401683) (xy 1.389456 2.401683) (xy 1.429333 2.402725) (xy 1.450107 2.407358) (xy 1.457789 2.417849) (xy 1.458614 2.427745) (xy 1.458614 2.453806) (xy 1.491745 2.427745) (xy 1.529735 2.409965) (xy 1.58077 2.401174) (xy 1.635255 2.401486)) (layer F.SilkS) (width 0.01)) (fp_poly (pts (xy 2.032581 2.40497) (xy 2.092685 2.420597) (xy 2.143021 2.452848) (xy 2.167393 2.47694) (xy 2.207345 2.533895) (xy 2.230242 2.599965) (xy 2.238108 2.681182) (xy 2.238148 2.687748) (xy 2.238218 2.753763) (xy 1.858264 2.753763) (xy 1.866363 2.788342) (xy 1.880987 2.819659) (xy 1.906581 2.852291) (xy 1.911935 2.8575) (xy 1.957943 2.885694) (xy 2.01041 2.890475) (xy 2.070803 2.871926) (xy 2.08104 2.866931) (xy 2.112439 2.851745) (xy 2.13347 2.843094) (xy 2.137139 2.842293) (xy 2.149948 2.850063) (xy 2.174378 2.869072) (xy 2.186779 2.87946) (xy 2.212476 2.903321) (xy 2.220915 2.919077) (xy 2.215058 2.933571) (xy 2.211928 2.937534) (xy 2.190725 2.954879) (xy 2.155738 2.975959) (xy 2.131337 2.988265) (xy 2.062072 3.009946) (xy 1.985388 3.016971) (xy 1.912765 3.008647) (xy 1.892426 3.002686) (xy 1.829476 2.968952) (xy 1.782815 2.917045) (xy 1.752173 2.846459) (xy 1.737282 2.756692) (xy 1.735647 2.709753) (xy 1.740421 2.641413) (xy 1.86099 2.641413) (xy 1.872652 2.646465) (xy 1.903998 2.650429) (xy 1.949571 2.652768) (xy 1.980446 2.653169) (xy 2.035981 2.652783) (xy 2.071033 2.650975) (xy 2.090262 2.646773) (xy 2.09833 2.639203) (xy 2.099901 2.628218) (xy 2.089121 2.594381) (xy 2.06198 2.56094) (xy 2.026277 2.535272) (xy 1.99056 2.524772) (xy 1.942048 2.534086) (xy 1.900053 2.561013) (xy 1.870936 2.599827) (xy 1.86099 2.641413) (xy 1.740421 2.641413) (xy 1.742599 2.610236) (xy 1.764055 2.530949) (xy 1.80047 2.471263) (xy 1.852297 2.430549) (xy 1.91999 2.408179) (xy 1.956662 2.403871) (xy 2.032581 2.40497)) (layer F.SilkS) (width 0.01)) (fp_poly (pts (xy -2.538261 1.465148) (xy -2.472479 1.494231) (xy -2.42254 1.542793) (xy -2.388374 1.610908) (xy -2.369907 1.698651) (xy -2.368583 1.712351) (xy -2.367546 1.808939) (xy -2.380993 1.893602) (xy -2.408108 1.962221) (xy -2.422627 1.984294) (xy -2.473201 2.031011) (xy -2.537609 2.061268) (xy -2.609666 2.073824) (xy -2.683185 2.067439) (xy -2.739072 2.047772) (xy -2.787132 2.014629) (xy -2.826412 1.971175) (xy -2.827092 1.970158) (xy -2.843044 1.943338) (xy -2.85341 1.916368) (xy -2.859688 1.882332) (xy -2.863373 1.83431) (xy -2.864997 1.794931) (xy -2.865672 1.759219) (xy -2.739955 1.759219) (xy -2.738726 1.79477) (xy -2.734266 1.842094) (xy -2.726397 1.872465) (xy -2.712207 1.894072) (xy -2.698917 1.906694) (xy -2.651802 1.933122) (xy -2.602505 1.936653) (xy -2.556593 1.917639) (xy -2.533638 1.896331) (xy -2.517096 1.874859) (xy -2.507421 1.854313) (xy -2.503174 1.827574) (xy -2.50292 1.787523) (xy -2.504228 1.750638) (xy -2.507043 1.697947) (xy -2.511505 1.663772) (xy -2.519548 1.64148) (xy -2.533103 1.624442) (xy -2.543845 1.614703) (xy -2.588777 1.589123) (xy -2.637249 1.587847) (xy -2.677894 1.602999) (xy -2.712567 1.634642) (xy -2.733224 1.68662) (xy -2.739955 1.759219) (xy -2.865672 1.759219) (xy -2.866479 1.716621) (xy -2.863948 1.658056) (xy -2.856362 1.614007) (xy -2.842681 1.579248) (xy -2.821865 1.548551) (xy -2.814147 1.539436) (xy -2.765889 1.494021) (xy -2.714128 1.467493) (xy -2.650828 1.456379) (xy -2.619961 1.455471) (xy -2.538261 1.465148)) (layer F.SilkS) (width 0.01)) (fp_poly (pts (xy -1.356699 1.472614) (xy -1.344168 1.478514) (xy -1.300799 1.510283) (xy -1.25979 1.556646) (xy -1.229168 1.607696) (xy -1.220459 1.631166) (xy -1.212512 1.673091) (xy -1.207774 1.723757) (xy -1.207199 1.744679) (xy -1.207129 1.810693) (xy -1.587083 1.810693) (xy -1.578983 1.845273) (xy -1.559104 1.88617) (xy -1.524347 1.921514) (xy -1.482998 1.944282) (xy -1.456649 1.94901) (xy -1.420916 1.943273) (xy -1.378282 1.928882) (xy -1.363799 1.922262) (xy -1.31024 1.895513) (xy -1.264533 1.930376) (xy -1.238158 1.953955) (xy -1.224124 1.973417) (xy -1.223414 1.979129) (xy -1.235951 1.992973) (xy -1.263428 2.014012) (xy -1.288366 2.030425) (xy -1.355664 2.05993) (xy -1.43111 2.073284) (xy -1.505888 2.069812) (xy -1.565495 2.051663) (xy -1.626941 2.012784) (xy -1.670608 1.961595) (xy -1.697926 1.895367) (xy -1.710322 1.811371) (xy -1.711421 1.772936) (xy -1.707022 1.684861) (xy -1.706482 1.682299) (xy -1.580582 1.682299) (xy -1.577115 1.690558) (xy -1.562863 1.695113) (xy -1.53347 1.697065) (xy -1.484575 1.697517) (xy -1.465748 1.697525) (xy -1.408467 1.696843) (xy -1.372141 1.694364) (xy -1.352604 1.689443) (xy -1.34569 1.681434) (xy -1.345445 1.678862) (xy -1.353336 1.658423) (xy -1.373085 1.629789) (xy -1.381575 1.619763) (xy -1.413094 1.591408) (xy -1.445949 1.580259) (xy -1.463651 1.579327) (xy -1.511539 1.590981) (xy -1.551699 1.622285) (xy -1.577173 1.667752) (xy -1.577625 1.669233) (xy -1.580582 1.682299) (xy -1.706482 1.682299) (xy -1.692392 1.61551) (xy -1.666038 1.560025) (xy -1.633807 1.520639) (xy -1.574217 1.477931) (xy -1.504168 1.455109) (xy -1.429661 1.453046) (xy -1.356699 1.472614)) (layer F.SilkS) (width 0.01)) (fp_poly (pts (xy 0.014017 1.456452) (xy 0.061634 1.465482) (xy 0.111034 1.48437) (xy 0.116312 1.486777) (xy 0.153774 1.506476) (xy 0.179717 1.524781) (xy 0.188103 1.536508) (xy 0.180117 1.555632) (xy 0.16072 1.58385) (xy 0.15211 1.594384) (xy 0.116628 1.635847) (xy 0.070885 1.608858) (xy 0.02735 1.590878) (xy -0.02295 1.581267) (xy -0.071188 1.58066) (xy -0.108533 1.589691) (xy -0.117495 1.595327) (xy -0.134563 1.621171) (xy -0.136637 1.650941) (xy -0.123866 1.674197) (xy -0.116312 1.678708) (xy -0.093675 1.684309) (xy -0.053885 1.690892) (xy -0.004834 1.697183) (xy 0.004215 1.69817) (xy 0.082996 1.711798) (xy 0.140136 1.734946) (xy 0.17803 1.769752) (xy 0.199079 1.818354) (xy 0.205635 1.877718) (xy 0.196577 1.945198) (xy 0.167164 1.998188) (xy 0.117278 2.036783) (xy 0.0468 2.061081) (xy -0.031435 2.070667) (xy -0.095234 2.070552) (xy -0.146984 2.061845) (xy -0.182327 2.049825) (xy -0.226983 2.02888) (xy -0.268253 2.004574) (xy -0.282921 1.993876) (xy -0.320643 1.963084) (xy -0.275148 1.917049) (xy -0.229653 1.871013) (xy -0.177928 1.905243) (xy -0.126048 1.930952) (xy -0.070649 1.944399) (xy -0.017395 1.945818) (xy 0.028049 1.935443) (xy 0.060016 1.913507) (xy 0.070338 1.894998) (xy 0.068789 1.865314) (xy 0.04314 1.842615) (xy -0.00654 1.82694) (xy -0.060969 1.819695) (xy -0.144736 1.805873) (xy -0.206967 1.779796) (xy -0.248493 1.740699) (xy -0.270147 1.68782) (xy -0.273147 1.625126) (xy -0.258329 1.559642) (xy -0.224546 1.510144) (xy -0.171495 1.476408) (xy -0.098874 1.458207) (xy -0.045072 1.454639) (xy 0.014017 1.456452)) (layer F.SilkS) (width 0.01)) (fp_poly (pts (xy 0.610762 1.466055) (xy 0.674363 1.500692) (xy 0.724123 1.555372) (xy 0.747568 1.599842) (xy 0.757634 1.639121) (xy 0.764156 1.695116) (xy 0.766951 1.759621) (xy 0.765836 1.824429) (xy 0.760626 1.881334) (xy 0.754541 1.911727) (xy 0.734014 1.953306) (xy 0.698463 1.997468) (xy 0.655619 2.036087) (xy 0.613211 2.061034) (xy 0.612177 2.06143) (xy 0.559553 2.072331) (xy 0.497188 2.072601) (xy 0.437924 2.062676) (xy 0.41504 2.054722) (xy 0.356102 2.0213) (xy 0.31389 1.977511) (xy 0.286156 1.919538) (xy 0.270651 1.843565) (xy 0.267143 1.803771) (xy 0.26759 1.753766) (xy 0.402376 1.753766) (xy 0.406917 1.826732) (xy 0.419986 1.882334) (xy 0.440756 1.917861) (xy 0.455552 1.92802) (xy 0.493464 1.935104) (xy 0.538527 1.933007) (xy 0.577487 1.922812) (xy 0.587704 1.917204) (xy 0.614659 1.884538) (xy 0.632451 1.834545) (xy 0.640024 1.773705) (xy 0.636325 1.708497) (xy 0.628057 1.669253) (xy 0.60432 1.623805) (xy 0.566849 1.595396) (xy 0.52172 1.585573) (xy 0.475011 1.595887) (xy 0.439132 1.621112) (xy 0.420277 1.641925) (xy 0.409272 1.662439) (xy 0.404026 1.690203) (xy 0.402449 1.732762) (xy 0.402376 1.753766) (xy 0.26759 1.753766) (xy 0.268094 1.69758) (xy 0.285388 1.610501) (xy 0.319029 1.54253) (xy 0.369018 1.493664) (xy 0.435356 1.463899) (xy 0.449601 1.460448) (xy 0.53521 1.452345) (xy 0.610762 1.466055)) (layer F.SilkS) (width 0.01)) (fp_poly (pts (xy 0.993367 1.654342) (xy 0.994555 1.746563) (xy 0.998897 1.81661) (xy 1.007558 1.867381) (xy 1.021704 1.901772) (xy 1.0425 1.922679) (xy 1.07111 1.933) (xy 1.106535 1.935636) (xy 1.143636 1.932682) (xy 1.171818 1.921889) (xy 1.192243 1.90036) (xy 1.206079 1.865199) (xy 1.214491 1.81351) (xy 1.218643 1.742394) (xy 1.219703 1.654342) (xy 1.219703 1.458614) (xy 1.35802 1.458614) (xy 1.35802 2.062179) (xy 1.288862 2.062179) (xy 1.24717 2.060489) (xy 1.225701 2.054556) (xy 1.219703 2.043293) (xy 1.216091 2.033261) (xy 1.201714 2.035383) (xy 1.172736 2.04958) (xy 1.106319 2.07148) (xy 1.035875 2.069928) (xy 0.968377 2.046147) (xy 0.936233 2.027362) (xy 0.911715 2.007022) (xy 0.893804 1.981573) (xy 0.881479 1.947458) (xy 0.873723 1.901121) (xy 0.869516 1.839007) (xy 0.86784 1.757561) (xy 0.867624 1.694578) (xy 0.867624 1.458614) (xy 0.993367 1.458614) (xy 0.993367 1.654342)) (layer F.SilkS) (width 0.01)) (fp_poly (pts (xy 2.217226 1.46388) (xy 2.29008 1.49483) (xy 2.313027 1.509895) (xy 2.342354 1.533048) (xy 2.360764 1.551253) (xy 2.363961 1.557183) (xy 2.354935 1.57034) (xy 2.331837 1.592667) (xy 2.313344 1.60825) (xy 2.262728 1.648926) (xy 2.22276 1.615295) (xy 2.191874 1.593584) (xy 2.161759 1.58609) (xy 2.127292 1.58792) (xy 2.072561 1.601528) (xy 2.034886 1.629772) (xy 2.011991 1.675433) (xy 2.001597 1.741289) (xy 2.001595 1.741331) (xy 2.002494 1.814939) (xy 2.016463 1.868946) (xy 2.044328 1.905716) (xy 2.063325 1.918168) (xy 2.113776 1.933673) (xy 2.167663 1.933683) (xy 2.214546 1.918638) (xy 2.225644 1.911287) (xy 2.253476 1.892511) (xy 2.275236 1.889434) (xy 2.298704 1.903409) (xy 2.324649 1.92851) (xy 2.365716 1.97088) (xy 2.320121 2.008464) (xy 2.249674 2.050882) (xy 2.170233 2.071785) (xy 2.087215 2.070272) (xy 2.032694 2.056411) (xy 1.96897 2.022135) (xy 1.918005 1.968212) (xy 1.894851 1.930149) (xy 1.876099 1.875536) (xy 1.866715 1.806369) (xy 1.866643 1.731407) (xy 1.875824 1.659409) (xy 1.894199 1.599137) (xy 1.897093 1.592958) (xy 1.939952 1.532351) (xy 1.997979 1.488224) (xy 2.066591 1.461493) (xy 2.141201 1.453073) (xy 2.217226 1.46388)) (layer F.SilkS) (width 0.01)) (fp_poly (pts (xy 2.677898 1.456457) (xy 2.710096 1.464279) (xy 2.771825 1.492921) (xy 2.82461 1.536667) (xy 2.861141 1.589117) (xy 2.86616 1.600893) (xy 2.873045 1.63174) (xy 2.877864 1.677371) (xy 2.879505 1.723492) (xy 2.879505 1.810693) (xy 2.697178 1.810693) (xy 2.621979 1.810978) (xy 2.569003 1.812704) (xy 2.535325 1.817181) (xy 2.51802 1.82572) (xy 2.514163 1.83963) (xy 2.520829 1.860222) (xy 2.53277 1.884315) (xy 2.56608 1.924525) (xy 2.612368 1.944558) (xy 2.668944 1.943905) (xy 2.733031 1.922101) (xy 2.788417 1.895193) (xy 2.834375 1.931532) (xy 2.880333 1.967872) (xy 2.837096 2.007819) (xy 2.779374 2.045563) (xy 2.708386 2.06832) (xy 2.632029 2.074688) (xy 2.558199 2.063268) (xy 2.546287 2.059393) (xy 2.481399 2.025506) (xy 2.43313 1.974986) (xy 2.400465 1.906325) (xy 2.382385 1.818014) (xy 2.382175 1.816121) (xy 2.380556 1.719878) (xy 2.3871 1.685542) (xy 2.514852 1.685542) (xy 2.526584 1.690822) (xy 2.558438 1.694867) (xy 2.605397 1.697176) (xy 2.635154 1.697525) (xy 2.690648 1.697306) (xy 2.725346 1.695916) (xy 2.743601 1.692251) (xy 2.749766 1.68521) (xy 2.748195 1.67369) (xy 2.746878 1.669233) (xy 2.724382 1.627355) (xy 2.689003 1.593604) (xy 2.65778 1.578773) (xy 2.616301 1.579668) (xy 2.574269 1.598164) (xy 2.539012 1.628786) (xy 2.517854 1.666062) (xy 2.514852 1.685542) (xy 2.3871 1.685542) (xy 2.39669 1.635229) (xy 2.428698 1.564191) (xy 2.474701 1.508779) (xy 2.532821 1.471009) (xy 2.60118 1.452896) (xy 2.677898 1.456457)) (layer F.SilkS) (width 0.01)) (fp_poly (pts (xy -0.754012 1.469002) (xy -0.722717 1.48395) (xy -0.692409 1.505541) (xy -0.669318 1.530391) (xy -0.6525 1.562087) (xy -0.641006 1.604214) (xy -0.633891 1.660358) (xy -0.630207 1.734106) (xy -0.629008 1.829044) (xy -0.628989 1.838985) (xy -0.628713 2.062179) (xy -0.76703 2.062179) (xy -0.76703 1.856418) (xy -0.767128 1.780189) (xy -0.767809 1.724939) (xy -0.769651 1.686501) (xy -0.773233 1.660706) (xy -0.779132 1.643384) (xy -0.787927 1.630368) (xy -0.80018 1.617507) (xy -0.843047 1.589873) (xy -0.889843 1.584745) (xy -0.934424 1.602217) (xy -0.949928 1.615221) (xy -0.96131 1.627447) (xy -0.969481 1.64054) (xy -0.974974 1.658615) (xy -0.97832 1.685787) (xy -0.980051 1.72617) (xy -0.980697 1.783879) (xy -0.980792 1.854132) (xy -0.980792 2.062179) (xy -1.119109 2.062179) (xy -1.119109 1.458614) (xy -1.04995 1.458614) (xy -1.008428 1.460256) (xy -0.987006 1.466087) (xy -0.980795 1.477461) (xy -0.980792 1.477798) (xy -0.97791 1.488938) (xy -0.965199 1.487674) (xy -0.939926 1.475434) (xy -0.882605 1.457424) (xy -0.817037 1.455421) (xy -0.754012 1.469002)) (layer F.SilkS) (width 0.01)) (fp_poly (pts (xy 1.79946 1.45803) (xy 1.842711 1.471245) (xy 1.870558 1.487941) (xy 1.879629 1.501145) (xy 1.877132 1.516797) (xy 1.860931 1.541385) (xy 1.847232 1.5588) (xy 1.818992 1.590283) (xy 1.797775 1.603529) (xy 1.779688 1.602664) (xy 1.726035 1.58901) (xy 1.68663 1.58963) (xy 1.654632 1.605104) (xy 1.64389 1.614161) (xy 1.609505 1.646027) (xy 1.609505 2.062179) (xy 1.471188 2.062179) (xy 1.471188 1.458614) (xy 1.540347 1.458614) (xy 1.581869 1.460256) (xy 1.603291 1.466087) (xy 1.609502 1.477461) (xy 1.609505 1.477798) (xy 1.612439 1.489713) (xy 1.625704 1.488159) (xy 1.644084 1.479563) (xy 1.682046 1.463568) (xy 1.712872 1.453945) (xy 1.752536 1.451478) (xy 1.79946 1.45803)) (layer F.SilkS) (width 0.01)) (fp_poly (pts (xy 0.376964 -2.709982) (xy 0.433812 -2.40843) (xy 0.853338 -2.235488) (xy 1.104984 -2.406605) (xy 1.175458 -2.45425) (xy 1.239163 -2.49679) (xy 1.293126 -2.532285) (xy 1.334373 -2.55879) (xy 1.359934 -2.574364) (xy 1.366895 -2.577722) (xy 1.379435 -2.569086) (xy 1.406231 -2.545208) (xy 1.44428 -2.509141) (xy 1.490579 -2.463933) (xy 1.542123 -2.412636) (xy 1.595909 -2.358299) (xy 1.648935 -2.303972) (xy 1.698195 -2.252705) (xy 1.740687 -2.207549) (xy 1.773407 -2.171554) (xy 1.793351 -2.14777) (xy 1.798119 -2.13981) (xy 1.791257 -2.125135) (xy 1.77202 -2.092986) (xy 1.74243 -2.046508) (xy 1.70451 -1.988844) (xy 1.660282 -1.92314) (xy 1.634654 -1.885664) (xy 1.587941 -1.817232) (xy 1.546432 -1.75548) (xy 1.51214 -1.703481) (xy 1.48708 -1.664308) (xy 1.473264 -1.641035) (xy 1.471188 -1.636145) (xy 1.475895 -1.622245) (xy 1.488723 -1.58985) (xy 1.507738 -1.543515) (xy 1.531003 -1.487794) (xy 1.556584 -1.427242) (xy 1.582545 -1.366414) (xy 1.60695 -1.309864) (xy 1.627863 -1.262148) (xy 1.643349 -1.227819) (xy 1.651472 -1.211432) (xy 1.651952 -1.210788) (xy 1.664707 -1.207659) (xy 1.698677 -1.200679) (xy 1.75034 -1.190533) (xy 1.816176 -1.177908) (xy 1.892664 -1.163491) (xy 1.93729 -1.155177) (xy 2.019021 -1.139616) (xy 2.092843 -1.124808) (xy 2.155021 -1.111564) (xy 2.201822 -1.100695) (xy 2.229509 -1.093011) (xy 2.235074 -1.090573) (xy 2.240526 -1.07407) (xy 2.244924 -1.0368) (xy 2.248272 -0.98312) (xy 2.250574 -0.917388) (xy 2.251832 -0.843963) (xy 2.252048 -0.767204) (xy 2.251227 -0.691468) (xy 2.249371 -0.621114) (xy 2.246482 -0.5605) (xy 2.242565 -0.513984) (xy 2.237622 -0.485925) (xy 2.234657 -0.480084) (xy 2.216934 -0.473083) (xy 2.179381 -0.463073) (xy 2.126964 -0.451231) (xy 2.064652 -0.438733) (xy 2.0429 -0.43469) (xy 1.938024 -0.41548) (xy 1.85518 -0.400009) (xy 1.79163 -0.387663) (xy 1.744637 -0.377827) (xy 1.711463 -0.369886) (xy 1.689371 -0.363224) (xy 1.675624 -0.357227) (xy 1.667484 -0.351281) (xy 1.666345 -0.350106) (xy 1.654977 -0.331174) (xy 1.637635 -0.294331) (xy 1.61605 -0.244087) (xy 1.591954 -0.184954) (xy 1.567079 -0.121444) (xy 1.543157 -0.058068) (xy 1.521919 0.000662) (xy 1.505097 0.050235) (xy 1.494422 0.086139) (xy 1.491627 0.103862) (xy 1.49186 0.104483) (xy 1.501331 0.11897) (xy 1.522818 0.150844) (xy 1.554063 0.196789) (xy 1.592807 0.253485) (xy 1.636793 0.317617) (xy 1.649319 0.335842) (xy 1.693984 0.401914) (xy 1.733288 0.4622) (xy 1.765088 0.513235) (xy 1.787245 0.55156) (xy 1.797617 0.573711) (xy 1.798119 0.576432) (xy 1.789405 0.590736) (xy 1.765325 0.619072) (xy 1.728976 0.658396) (xy 1.683453 0.705661) (xy 1.631852 0.757823) (xy 1.577267 0.811835) (xy 1.522794 0.864653) (xy 1.471529 0.913231) (xy 1.426567 0.954523) (xy 1.391004 0.985485) (xy 1.367935 1.00307) (xy 1.361554 1.005941) (xy 1.346699 0.999178) (xy 1.316286 0.980939) (xy 1.275268 0.954297) (xy 1.243709 0.932852) (xy 1.186525 0.893503) (xy 1.118806 0.847171) (xy 1.05088 0.800913) (xy 1.014361 0.776155) (xy 0.890752 0.692547) (xy 0.786991 0.74865) (xy 0.73972 0.773228) (xy 0.699523 0.792331) (xy 0.672326 0.803227) (xy 0.665402 0.804743) (xy 0.657077 0.793549) (xy 0.640654 0.761917) (xy 0.617357 0.712765) (xy 0.588414 0.64901) (xy 0.55505 0.573571) (xy 0.518491 0.489364) (xy 0.479964 0.399308) (xy 0.440694 0.306321) (xy 0.401908 0.21332) (xy 0.36483 0.123223) (xy 0.330689 0.038948) (xy 0.300708 -0.036587) (xy 0.276116 -0.100466) (xy 0.258136 -0.149769) (xy 0.247997 -0.181579) (xy 0.246366 -0.192504) (xy 0.259291 -0.206439) (xy 0.287589 -0.22906) (xy 0.325346 -0.255667) (xy 0.328515 -0.257772) (xy 0.4261 -0.335886) (xy 0.504786 -0.427018) (xy 0.563891 -0.528255) (xy 0.602732 -0.636682) (xy 0.620628 -0.749386) (xy 0.616897 -0.863452) (xy 0.590857 -0.975966) (xy 0.541825 -1.084015) (xy 0.5274 -1.107655) (xy 0.452369 -1.203113) (xy 0.36373 -1.279768) (xy 0.264549 -1.33722) (xy 0.157895 -1.375071) (xy 0.046836 -1.392922) (xy -0.065561 -1.390375) (xy -0.176227 -1.36703) (xy -0.282094 -1.32249) (xy -0.380095 -1.256355) (xy -0.41041 -1.229513) (xy -0.487562 -1.145488) (xy -0.543782 -1.057034) (xy -0.582347 -0.957885) (xy -0.603826 -0.859697) (xy -0.609128 -0.749303) (xy -0.591448 -0.63836) (xy -0.552581 -0.530619) (xy -0.494323 -0.429831) (xy -0.418469 -0.339744) (xy -0.326817 -0.264108) (xy -0.314772 -0.256136) (xy -0.276611 -0.230026) (xy -0.247601 -0.207405) (xy -0.233732 -0.192961) (xy -0.233531 -0.192504) (xy -0.236508 -0.176879) (xy -0.248311 -0.141418) (xy -0.267714 -0.089038) (xy -0.293488 -0.022655) (xy -0.324409 0.054814) (xy -0.359249 0.14045) (xy -0.396783 0.231337) (xy -0.435783 0.324559) (xy -0.475023 0.417197) (xy -0.513276 0.506335) (xy -0.549317 0.589055) (xy -0.581917 0.662441) (xy -0.609852 0.723575) (xy -0.631895 0.769541) (xy -0.646818 0.797421) (xy -0.652828 0.804743) (xy -0.671191 0.799041) (xy -0.705552 0.783749) (xy -0.749984 0.761599) (xy -0.774417 0.74865) (xy -0.878178 0.692547) (xy -1.001787 0.776155) (xy -1.064886 0.818987) (xy -1.13397 0.866122) (xy -1.198707 0.910503) (xy -1.231134 0.932852) (xy -1.276741 0.963477) (xy -1.31536 0.987747) (xy -1.341952 1.002587) (xy -1.35059 1.005724) (xy -1.363161 0.997261) (xy -1.390984 0.973636) (xy -1.431361 0.937302) (xy -1.481595 0.890711) (xy -1.538988 0.836317) (xy -1.575286 0.801392) (xy -1.63879 0.738996) (xy -1.693673 0.683188) (xy -1.737714 0.636354) (xy -1.768695 0.600882) (xy -1.784398 0.579161) (xy -1.785905 0.574752) (xy -1.778914 0.557985) (xy -1.759594 0.524082) (xy -1.730091 0.476476) (xy -1.692545 0.418599) (xy -1.6491 0.353884) (xy -1.636745 0.335842) (xy -1.591727 0.270267) (xy -1.55134 0.211228) (xy -1.51784 0.162042) (xy -1.493486 0.126028) (xy -1.480536 0.106502) (xy -1.479285 0.104483) (xy -1.481156 0.088922) (xy -1.491087 0.054709) (xy -1.507347 0.006355) (xy -1.528205 -0.051629) (xy -1.551927 -0.11473) (xy -1.576784 -0.178437) (xy -1.601042 -0.238239) (xy -1.622971 -0.289624) (xy -1.640838 -0.328081) (xy -1.652913 -0.349098) (xy -1.653771 -0.350106) (xy -1.661154 -0.356112) (xy -1.673625 -0.362052) (xy -1.69392 -0.36854) (xy -1.724778 -0.376191) (xy -1.768934 -0.38562) (xy -1.829126 -0.397441) (xy -1.908093 -0.412271) (xy -2.00857 -0.430723) (xy -2.030325 -0.43469) (xy -2.094802 -0.447147) (xy -2.151011 -0.459334) (xy -2.193987 -0.470074) (xy -2.21876 -0.478191) (xy -2.222082 -0.480084) (xy -2.227556 -0.496862) (xy -2.232006 -0.534355) (xy -2.235428 -0.588206) (xy -2.237819 -0.654056) (xy -2.239177 -0.727547) (xy -2.239499 -0.80432) (xy -2.238781 -0.880017) (xy -2.237021 -0.95028) (xy -2.234216 -1.01075) (xy -2.230362 -1.05707) (xy -2.225457 -1.084881) (xy -2.2225 -1.090573) (xy -2.206037 -1.096314) (xy -2.168551 -1.105655) (xy -2.113775 -1.117785) (xy -2.045445 -1.131893) (xy -1.967294 -1.14717) (xy -1.924716 -1.155177) (xy -1.843929 -1.170279) (xy -1.771887 -1.18396) (xy -1.712111 -1.195533) (xy -1.668121 -1.204313) (xy -1.643439 -1.209613) (xy -1.639377 -1.210788) (xy -1.632511 -1.224035) (xy -1.617998 -1.255943) (xy -1.597771 -1.301953) (xy -1.573766 -1.357508) (xy -1.547918 -1.418047) (xy -1.52216 -1.479014) (xy -1.498427 -1.535849) (xy -1.478654 -1.583994) (xy -1.464776 -1.61889) (xy -1.458726 -1.635979) (xy -1.458614 -1.636726) (xy -1.465472 -1.650207) (xy -1.484698 -1.68123) (xy -1.514272 -1.726711) (xy -1.552173 -1.783568) (xy -1.59638 -1.848717) (xy -1.622079 -1.886138) (xy -1.668907 -1.954753) (xy -1.710499 -2.017048) (xy -1.744825 -2.069871) (xy -1.769857 -2.110073) (xy -1.783565 -2.1345) (xy -1.785544 -2.139976) (xy -1.777034 -2.152722) (xy -1.753507 -2.179937) (xy -1.717968 -2.218572) (xy -1.673423 -2.265577) (xy -1.622877 -2.317905) (xy -1.569336 -2.372505) (xy -1.515805 -2.42633) (xy -1.465289 -2.47633) (xy -1.420794 -2.519457) (xy -1.385325 -2.552661) (xy -1.361887 -2.572894) (xy -1.354046 -2.577722) (xy -1.34128 -2.570933) (xy -1.310744 -2.551858) (xy -1.26541 -2.522439) (xy -1.208244 -2.484619) (xy -1.142216 -2.440339) (xy -1.09241 -2.406605) (xy -0.840764 -2.235488) (xy -0.631001 -2.321959) (xy -0.421237 -2.40843) (xy -0.364389 -2.709982) (xy -0.30754 -3.011534) (xy 0.320115 -3.011534) (xy 0.376964 -2.709982)) (layer F.SilkS) (width 0.01)) ) (module Symbols:KiCad-Logo2_6mm_SilkScreen (layer F.Cu) (tedit 0) (tstamp 5AB119A9) (at 121.285 42.545 90) (descr "KiCad Logo") (tags "Logo KiCad") (attr virtual) (fp_text reference REF*** (at 0 0 90) (layer F.SilkS) hide (effects (font (size 1 1) (thickness 0.15))) ) (fp_text value KiCad-Logo2_6mm_SilkScreen (at 0.75 0 90) (layer F.Fab) hide (effects (font (size 1 1) (thickness 0.15))) ) (fp_poly (pts (xy -6.121371 2.269066) (xy -6.081889 2.269467) (xy -5.9662 2.272259) (xy -5.869311 2.28055) (xy -5.787919 2.295232) (xy -5.718723 2.317193) (xy -5.65842 2.347322) (xy -5.603708 2.38651) (xy -5.584167 2.403532) (xy -5.55175 2.443363) (xy -5.52252 2.497413) (xy -5.499991 2.557323) (xy -5.487679 2.614739) (xy -5.4864 2.635956) (xy -5.494417 2.694769) (xy -5.515899 2.759013) (xy -5.546999 2.819821) (xy -5.583866 2.86833) (xy -5.589854 2.874182) (xy -5.640579 2.915321) (xy -5.696125 2.947435) (xy -5.759696 2.971365) (xy -5.834494 2.987953) (xy -5.923722 2.998041) (xy -6.030582 3.002469) (xy -6.079528 3.002845) (xy -6.141762 3.002545) (xy -6.185528 3.001292) (xy -6.214931 2.998554) (xy -6.234079 2.993801) (xy -6.247077 2.986501) (xy -6.254045 2.980267) (xy -6.260626 2.972694) (xy -6.265788 2.962924) (xy -6.269703 2.94834) (xy -6.272543 2.926326) (xy -6.27448 2.894264) (xy -6.275684 2.849536) (xy -6.276328 2.789526) (xy -6.276583 2.711617) (xy -6.276622 2.635956) (xy -6.27687 2.535041) (xy -6.276817 2.454427) (xy -6.275857 2.415822) (xy -6.129867 2.415822) (xy -6.129867 2.856089) (xy -6.036734 2.856004) (xy -5.980693 2.854396) (xy -5.921999 2.850256) (xy -5.873028 2.844464) (xy -5.871538 2.844226) (xy -5.792392 2.82509) (xy -5.731002 2.795287) (xy -5.684305 2.752878) (xy -5.654635 2.706961) (xy -5.636353 2.656026) (xy -5.637771 2.6082) (xy -5.658988 2.556933) (xy -5.700489 2.503899) (xy -5.757998 2.4646) (xy -5.83275 2.438331) (xy -5.882708 2.429035) (xy -5.939416 2.422507) (xy -5.999519 2.417782) (xy -6.050639 2.415817) (xy -6.053667 2.415808) (xy -6.129867 2.415822) (xy -6.275857 2.415822) (xy -6.27526 2.391851) (xy -6.270998 2.345055) (xy -6.26283 2.311778) (xy -6.249556 2.289759) (xy -6.229974 2.276739) (xy -6.202883 2.270457) (xy -6.167082 2.268653) (xy -6.121371 2.269066)) (layer F.SilkS) (width 0.01)) (fp_poly (pts (xy -4.712794 2.269146) (xy -4.643386 2.269518) (xy -4.590997 2.270385) (xy -4.552847 2.271946) (xy -4.526159 2.274403) (xy -4.508153 2.277957) (xy -4.496049 2.28281) (xy -4.487069 2.289161) (xy -4.483818 2.292084) (xy -4.464043 2.323142) (xy -4.460482 2.358828) (xy -4.473491 2.39051) (xy -4.479506 2.396913) (xy -4.489235 2.403121) (xy -4.504901 2.40791) (xy -4.529408 2.411514) (xy -4.565661 2.414164) (xy -4.616565 2.416095) (xy -4.685026 2.417539) (xy -4.747617 2.418418) (xy -4.995334 2.421467) (xy -4.998719 2.486378) (xy -5.002105 2.551289) (xy -4.833958 2.551289) (xy -4.760959 2.551919) (xy -4.707517 2.554553) (xy -4.670628 2.560309) (xy -4.647288 2.570304) (xy -4.634494 2.585656) (xy -4.629242 2.607482) (xy -4.628445 2.627738) (xy -4.630923 2.652592) (xy -4.640277 2.670906) (xy -4.659383 2.683637) (xy -4.691118 2.691741) (xy -4.738359 2.696176) (xy -4.803983 2.697899) (xy -4.839801 2.698045) (xy -5.000978 2.698045) (xy -5.000978 2.856089) (xy -4.752622 2.856089) (xy -4.671213 2.856202) (xy -4.609342 2.856712) (xy -4.563968 2.85787) (xy -4.532054 2.85993) (xy -4.510559 2.863146) (xy -4.496443 2.867772) (xy -4.486668 2.874059) (xy -4.481689 2.878667) (xy -4.46461 2.90556) (xy -4.459111 2.929467) (xy -4.466963 2.958667) (xy -4.481689 2.980267) (xy -4.489546 2.987066) (xy -4.499688 2.992346) (xy -4.514844 2.996298) (xy -4.537741 2.999113) (xy -4.571109 3.000982) (xy -4.617675 3.002098) (xy -4.680167 3.002651) (xy -4.761314 3.002833) (xy -4.803422 3.002845) (xy -4.893598 3.002765) (xy -4.963924 3.002398) (xy -5.017129 3.001552) (xy -5.05594 3.000036) (xy -5.083087 2.997659) (xy -5.101298 2.994229) (xy -5.1133 2.989554) (xy -5.121822 2.983444) (xy -5.125156 2.980267) (xy -5.131755 2.97267) (xy -5.136927 2.96287) (xy -5.140846 2.948239) (xy -5.143684 2.926152) (xy -5.145615 2.893982) (xy -5.146812 2.849103) (xy -5.147448 2.788889) (xy -5.147697 2.710713) (xy -5.147734 2.637923) (xy -5.1477 2.544707) (xy -5.147465 2.471431) (xy -5.14683 2.415458) (xy -5.145594 2.374151) (xy -5.143556 2.344872) (xy -5.140517 2.324984) (xy -5.136277 2.31185) (xy -5.130635 2.302832) (xy -5.123391 2.295293) (xy -5.121606 2.293612) (xy -5.112945 2.286172) (xy -5.102882 2.280409) (xy -5.088625 2.276112) (xy -5.067383 2.273064) (xy -5.036364 2.271051) (xy -4.992777 2.26986) (xy -4.933831 2.269275) (xy -4.856734 2.269083) (xy -4.802001 2.269067) (xy -4.712794 2.269146)) (layer F.SilkS) (width 0.01)) (fp_poly (pts (xy -3.691703 2.270351) (xy -3.616888 2.275581) (xy -3.547306 2.28375) (xy -3.487002 2.29455) (xy -3.44002 2.307673) (xy -3.410406 2.322813) (xy -3.40586 2.327269) (xy -3.390054 2.36185) (xy -3.394847 2.397351) (xy -3.419364 2.427725) (xy -3.420534 2.428596) (xy -3.434954 2.437954) (xy -3.450008 2.442876) (xy -3.471005 2.443473) (xy -3.503257 2.439861) (xy -3.552073 2.432154) (xy -3.556 2.431505) (xy -3.628739 2.422569) (xy -3.707217 2.418161) (xy -3.785927 2.418119) (xy -3.859361 2.422279) (xy -3.922011 2.430479) (xy -3.96837 2.442557) (xy -3.971416 2.443771) (xy -4.005048 2.462615) (xy -4.016864 2.481685) (xy -4.007614 2.500439) (xy -3.978047 2.518337) (xy -3.928911 2.534837) (xy -3.860957 2.549396) (xy -3.815645 2.556406) (xy -3.721456 2.569889) (xy -3.646544 2.582214) (xy -3.587717 2.594449) (xy -3.541785 2.607661) (xy -3.505555 2.622917) (xy -3.475838 2.641285) (xy -3.449442 2.663831) (xy -3.42823 2.685971) (xy -3.403065 2.716819) (xy -3.390681 2.743345) (xy -3.386808 2.776026) (xy -3.386667 2.787995) (xy -3.389576 2.827712) (xy -3.401202 2.857259) (xy -3.421323 2.883486) (xy -3.462216 2.923576) (xy -3.507817 2.954149) (xy -3.561513 2.976203) (xy -3.626692 2.990735) (xy -3.706744 2.998741) (xy -3.805057 3.001218) (xy -3.821289 3.001177) (xy -3.886849 2.999818) (xy -3.951866 2.99673) (xy -4.009252 2.992356) (xy -4.051922 2.98714) (xy -4.055372 2.986541) (xy -4.097796 2.976491) (xy -4.13378 2.963796) (xy -4.15415 2.95219) (xy -4.173107 2.921572) (xy -4.174427 2.885918) (xy -4.158085 2.854144) (xy -4.154429 2.850551) (xy -4.139315 2.839876) (xy -4.120415 2.835276) (xy -4.091162 2.836059) (xy -4.055651 2.840127) (xy -4.01597 2.843762) (xy -3.960345 2.846828) (xy -3.895406 2.849053) (xy -3.827785 2.850164) (xy -3.81 2.850237) (xy -3.742128 2.849964) (xy -3.692454 2.848646) (xy -3.65661 2.845827) (xy -3.630224 2.84105) (xy -3.608926 2.833857) (xy -3.596126 2.827867) (xy -3.568 2.811233) (xy -3.550068 2.796168) (xy -3.547447 2.791897) (xy -3.552976 2.774263) (xy -3.57926 2.757192) (xy -3.624478 2.741458) (xy -3.686808 2.727838) (xy -3.705171 2.724804) (xy -3.80109 2.709738) (xy -3.877641 2.697146) (xy -3.93778 2.686111) (xy -3.98446 2.67572) (xy -4.020637 2.665056) (xy -4.049265 2.653205) (xy -4.073298 2.639251) (xy -4.095692 2.622281) (xy -4.119402 2.601378) (xy -4.12738 2.594049) (xy -4.155353 2.566699) (xy -4.17016 2.545029) (xy -4.175952 2.520232) (xy -4.176889 2.488983) (xy -4.166575 2.427705) (xy -4.135752 2.37564) (xy -4.084595 2.332958) (xy -4.013283 2.299825) (xy -3.9624 2.284964) (xy -3.9071 2.275366) (xy -3.840853 2.269936) (xy -3.767706 2.268367) (xy -3.691703 2.270351)) (layer F.SilkS) (width 0.01)) (fp_poly (pts (xy -2.923822 2.291645) (xy -2.917242 2.299218) (xy -2.912079 2.308987) (xy -2.908164 2.323571) (xy -2.905324 2.345585) (xy -2.903387 2.377648) (xy -2.902183 2.422375) (xy -2.901539 2.482385) (xy -2.901284 2.560294) (xy -2.901245 2.635956) (xy -2.901314 2.729802) (xy -2.901638 2.803689) (xy -2.902386 2.860232) (xy -2.903732 2.902049) (xy -2.905846 2.931757) (xy -2.9089 2.951973) (xy -2.913066 2.965314) (xy -2.918516 2.974398) (xy -2.923822 2.980267) (xy -2.956826 2.999947) (xy -2.991991 2.998181) (xy -3.023455 2.976717) (xy -3.030684 2.968337) (xy -3.036334 2.958614) (xy -3.040599 2.944861) (xy -3.043673 2.924389) (xy -3.045752 2.894512) (xy -3.04703 2.852541) (xy -3.047701 2.795789) (xy -3.047959 2.721567) (xy -3.048 2.637537) (xy -3.048 2.324485) (xy -3.020291 2.296776) (xy -2.986137 2.273463) (xy -2.953006 2.272623) (xy -2.923822 2.291645)) (layer F.SilkS) (width 0.01)) (fp_poly (pts (xy -1.950081 2.274599) (xy -1.881565 2.286095) (xy -1.828943 2.303967) (xy -1.794708 2.327499) (xy -1.785379 2.340924) (xy -1.775893 2.372148) (xy -1.782277 2.400395) (xy -1.80243 2.427182) (xy -1.833745 2.439713) (xy -1.879183 2.438696) (xy -1.914326 2.431906) (xy -1.992419 2.418971) (xy -2.072226 2.417742) (xy -2.161555 2.428241) (xy -2.186229 2.43269) (xy -2.269291 2.456108) (xy -2.334273 2.490945) (xy -2.380461 2.536604) (xy -2.407145 2.592494) (xy -2.412663 2.621388) (xy -2.409051 2.680012) (xy -2.385729 2.731879) (xy -2.344824 2.775978) (xy -2.288459 2.811299) (xy -2.21876 2.836829) (xy -2.137852 2.851559) (xy -2.04786 2.854478) (xy -1.95091 2.844575) (xy -1.945436 2.843641) (xy -1.906875 2.836459) (xy -1.885494 2.829521) (xy -1.876227 2.819227) (xy -1.874006 2.801976) (xy -1.873956 2.792841) (xy -1.873956 2.754489) (xy -1.942431 2.754489) (xy -2.0029 2.750347) (xy -2.044165 2.737147) (xy -2.068175 2.71373) (xy -2.076877 2.678936) (xy -2.076983 2.674394) (xy -2.071892 2.644654) (xy -2.054433 2.623419) (xy -2.021939 2.609366) (xy -1.971743 2.601173) (xy -1.923123 2.598161) (xy -1.852456 2.596433) (xy -1.801198 2.59907) (xy -1.766239 2.6088) (xy -1.74447 2.628353) (xy -1.73278 2.660456) (xy -1.72806 2.707838) (xy -1.7272 2.770071) (xy -1.728609 2.839535) (xy -1.732848 2.886786) (xy -1.739936 2.912012) (xy -1.741311 2.913988) (xy -1.780228 2.945508) (xy -1.837286 2.97047) (xy -1.908869 2.98834) (xy -1.991358 2.998586) (xy -2.081139 3.000673) (xy -2.174592 2.994068) (xy -2.229556 2.985956) (xy -2.315766 2.961554) (xy -2.395892 2.921662) (xy -2.462977 2.869887) (xy -2.473173 2.859539) (xy -2.506302 2.816035) (xy -2.536194 2.762118) (xy -2.559357 2.705592) (xy -2.572298 2.654259) (xy -2.573858 2.634544) (xy -2.567218 2.593419) (xy -2.549568 2.542252) (xy -2.524297 2.488394) (xy -2.494789 2.439195) (xy -2.468719 2.406334) (xy -2.407765 2.357452) (xy -2.328969 2.318545) (xy -2.235157 2.290494) (xy -2.12915 2.274179) (xy -2.032 2.270192) (xy -1.950081 2.274599)) (layer F.SilkS) (width 0.01)) (fp_poly (pts (xy -1.300114 2.273448) (xy -1.276548 2.287273) (xy -1.245735 2.309881) (xy -1.206078 2.342338) (xy -1.15598 2.385708) (xy -1.093843 2.441058) (xy -1.018072 2.509451) (xy -0.931334 2.588084) (xy -0.750711 2.751878) (xy -0.745067 2.532029) (xy -0.743029 2.456351) (xy -0.741063 2.399994) (xy -0.738734 2.359706) (xy -0.735606 2.332235) (xy -0.731245 2.314329) (xy -0.725216 2.302737) (xy -0.717084 2.294208) (xy -0.712772 2.290623) (xy -0.678241 2.27167) (xy -0.645383 2.274441) (xy -0.619318 2.290633) (xy -0.592667 2.312199) (xy -0.589352 2.627151) (xy -0.588435 2.719779) (xy -0.587968 2.792544) (xy -0.588113 2.848161) (xy -0.589032 2.889342) (xy -0.590887 2.918803) (xy -0.593839 2.939255) (xy -0.59805 2.953413) (xy -0.603682 2.963991) (xy -0.609927 2.972474) (xy -0.623439 2.988207) (xy -0.636883 2.998636) (xy -0.652124 3.002639) (xy -0.671026 2.999094) (xy -0.695455 2.986879) (xy -0.727273 2.964871) (xy -0.768348 2.931949) (xy -0.820542 2.886991) (xy -0.885722 2.828875) (xy -0.959556 2.762099) (xy -1.224845 2.521458) (xy -1.230489 2.740589) (xy -1.232531 2.816128) (xy -1.234502 2.872354) (xy -1.236839 2.912524) (xy -1.239981 2.939896) (xy -1.244364 2.957728) (xy -1.250424 2.969279) (xy -1.2586 2.977807) (xy -1.262784 2.981282) (xy -1.299765 3.000372) (xy -1.334708 2.997493) (xy -1.365136 2.9731) (xy -1.372097 2.963286) (xy -1.377523 2.951826) (xy -1.381603 2.935968) (xy -1.384529 2.912963) (xy -1.386492 2.880062) (xy -1.387683 2.834516) (xy -1.388292 2.773573) (xy -1.388511 2.694486) (xy -1.388534 2.635956) (xy -1.38846 2.544407) (xy -1.388113 2.472687) (xy -1.387301 2.418045) (xy -1.385833 2.377732) (xy -1.383519 2.348998) (xy -1.380167 2.329093) (xy -1.375588 2.315268) (xy -1.369589 2.304772) (xy -1.365136 2.298811) (xy -1.35385 2.284691) (xy -1.343301 2.274029) (xy -1.331893 2.267892) (xy -1.31803 2.267343) (xy -1.300114 2.273448)) (layer F.SilkS) (width 0.01)) (fp_poly (pts (xy 0.230343 2.26926) (xy 0.306701 2.270174) (xy 0.365217 2.272311) (xy 0.408255 2.276175) (xy 0.438183 2.282267) (xy 0.457368 2.29109) (xy 0.468176 2.303146) (xy 0.472973 2.318939) (xy 0.474127 2.33897) (xy 0.474133 2.341335) (xy 0.473131 2.363992) (xy 0.468396 2.381503) (xy 0.457333 2.394574) (xy 0.437348 2.403913) (xy 0.405846 2.410227) (xy 0.360232 2.414222) (xy 0.297913 2.416606) (xy 0.216293 2.418086) (xy 0.191277 2.418414) (xy -0.0508 2.421467) (xy -0.054186 2.486378) (xy -0.057571 2.551289) (xy 0.110576 2.551289) (xy 0.176266 2.551531) (xy 0.223172 2.552556) (xy 0.255083 2.554811) (xy 0.275791 2.558742) (xy 0.289084 2.564798) (xy 0.298755 2.573424) (xy 0.298817 2.573493) (xy 0.316356 2.607112) (xy 0.315722 2.643448) (xy 0.297314 2.674423) (xy 0.293671 2.677607) (xy 0.280741 2.685812) (xy 0.263024 2.691521) (xy 0.23657 2.695162) (xy 0.197432 2.697167) (xy 0.141662 2.697964) (xy 0.105994 2.698045) (xy -0.056445 2.698045) (xy -0.056445 2.856089) (xy 0.190161 2.856089) (xy 0.27158 2.856231) (xy 0.33341 2.856814) (xy 0.378637 2.858068) (xy 0.410248 2.860227) (xy 0.431231 2.863523) (xy 0.444573 2.868189) (xy 0.453261 2.874457) (xy 0.45545 2.876733) (xy 0.471614 2.90828) (xy 0.472797 2.944168) (xy 0.459536 2.975285) (xy 0.449043 2.985271) (xy 0.438129 2.990769) (xy 0.421217 2.995022) (xy 0.395633 2.99818) (xy 0.358701 3.000392) (xy 0.307746 3.001806) (xy 0.240094 3.002572) (xy 0.153069 3.002838) (xy 0.133394 3.002845) (xy 0.044911 3.002787) (xy -0.023773 3.002467) (xy -0.075436 3.001667) (xy -0.112855 3.000167) (xy -0.13881 2.997749) (xy -0.156078 2.994194) (xy -0.167438 2.989282) (xy -0.175668 2.982795) (xy -0.180183 2.978138) (xy -0.186979 2.969889) (xy -0.192288 2.959669) (xy -0.196294 2.9448) (xy -0.199179 2.922602) (xy -0.201126 2.890393) (xy -0.202319 2.845496) (xy -0.202939 2.785228) (xy -0.203171 2.706911) (xy -0.2032 2.640994) (xy -0.203129 2.548628) (xy -0.202792 2.476117) (xy -0.202002 2.420737) (xy -0.200574 2.379765) (xy -0.198321 2.350478) (xy -0.195057 2.330153) (xy -0.190596 2.316066) (xy -0.184752 2.305495) (xy -0.179803 2.298811) (xy -0.156406 2.269067) (xy 0.133774 2.269067) (xy 0.230343 2.26926)) (layer F.SilkS) (width 0.01)) (fp_poly (pts (xy 1.018309 2.269275) (xy 1.147288 2.273636) (xy 1.256991 2.286861) (xy 1.349226 2.309741) (xy 1.425802 2.34307) (xy 1.488527 2.387638) (xy 1.539212 2.444236) (xy 1.579663 2.513658) (xy 1.580459 2.515351) (xy 1.604601 2.577483) (xy 1.613203 2.632509) (xy 1.606231 2.687887) (xy 1.583654 2.751073) (xy 1.579372 2.760689) (xy 1.550172 2.816966) (xy 1.517356 2.860451) (xy 1.475002 2.897417) (xy 1.41719 2.934135) (xy 1.413831 2.936052) (xy 1.363504 2.960227) (xy 1.306621 2.978282) (xy 1.239527 2.990839) (xy 1.158565 2.998522) (xy 1.060082 3.001953) (xy 1.025286 3.002251) (xy 0.859594 3.002845) (xy 0.836197 2.9731) (xy 0.829257 2.963319) (xy 0.823842 2.951897) (xy 0.819765 2.936095) (xy 0.816837 2.913175) (xy 0.814867 2.880396) (xy 0.814225 2.856089) (xy 0.970844 2.856089) (xy 1.064726 2.856089) (xy 1.119664 2.854483) (xy 1.17606 2.850255) (xy 1.222345 2.844292) (xy 1.225139 2.84379) (xy 1.307348 2.821736) (xy 1.371114 2.7886) (xy 1.418452 2.742847) (xy 1.451382 2.682939) (xy 1.457108 2.667061) (xy 1.462721 2.642333) (xy 1.460291 2.617902) (xy 1.448467 2.5854) (xy 1.44134 2.569434) (xy 1.418 2.527006) (xy 1.38988 2.49724) (xy 1.35894 2.476511) (xy 1.296966 2.449537) (xy 1.217651 2.429998) (xy 1.125253 2.418746) (xy 1.058333 2.41627) (xy 0.970844 2.415822) (xy 0.970844 2.856089) (xy 0.814225 2.856089) (xy 0.813668 2.835021) (xy 0.81305 2.774311) (xy 0.812825 2.695526) (xy 0.8128 2.63392) (xy 0.8128 2.324485) (xy 0.840509 2.296776) (xy 0.852806 2.285544) (xy 0.866103 2.277853) (xy 0.884672 2.27304) (xy 0.912786 2.270446) (xy 0.954717 2.26941) (xy 1.014737 2.26927) (xy 1.018309 2.269275)) (layer F.SilkS) (width 0.01)) (fp_poly (pts (xy 3.744665 2.271034) (xy 3.764255 2.278035) (xy 3.76501 2.278377) (xy 3.791613 2.298678) (xy 3.80627 2.319561) (xy 3.809138 2.329352) (xy 3.808996 2.342361) (xy 3.804961 2.360895) (xy 3.796146 2.387257) (xy 3.781669 2.423752) (xy 3.760645 2.472687) (xy 3.732188 2.536365) (xy 3.695415 2.617093) (xy 3.675175 2.661216) (xy 3.638625 2.739985) (xy 3.604315 2.812423) (xy 3.573552 2.87588) (xy 3.547648 2.927708) (xy 3.52791 2.965259) (xy 3.51565 2.985884) (xy 3.513224 2.988733) (xy 3.482183 3.001302) (xy 3.447121 2.999619) (xy 3.419 2.984332) (xy 3.417854 2.983089) (xy 3.406668 2.966154) (xy 3.387904 2.93317) (xy 3.363875 2.88838) (xy 3.336897 2.836032) (xy 3.327201 2.816742) (xy 3.254014 2.67015) (xy 3.17424 2.829393) (xy 3.145767 2.884415) (xy 3.11935 2.932132) (xy 3.097148 2.968893) (xy 3.081319 2.991044) (xy 3.075954 2.995741) (xy 3.034257 3.002102) (xy 2.999849 2.988733) (xy 2.989728 2.974446) (xy 2.972214 2.942692) (xy 2.948735 2.896597) (xy 2.92072 2.839285) (xy 2.889599 2.77388) (xy 2.856799 2.703507) (xy 2.82375 2.631291) (xy 2.791881 2.560355) (xy 2.762619 2.493825) (xy 2.737395 2.434826) (xy 2.717636 2.386481) (xy 2.704772 2.351915) (xy 2.700231 2.334253) (xy 2.700277 2.333613) (xy 2.711326 2.311388) (xy 2.73341 2.288753) (xy 2.73471 2.287768) (xy 2.761853 2.272425) (xy 2.786958 2.272574) (xy 2.796368 2.275466) (xy 2.807834 2.281718) (xy 2.82001 2.294014) (xy 2.834357 2.314908) (xy 2.852336 2.346949) (xy 2.875407 2.392688) (xy 2.90503 2.454677) (xy 2.931745 2.511898) (xy 2.96248 2.578226) (xy 2.990021 2.637874) (xy 3.012938 2.687725) (xy 3.029798 2.724664) (xy 3.039173 2.745573) (xy 3.04054 2.748845) (xy 3.046689 2.743497) (xy 3.060822 2.721109) (xy 3.081057 2.684946) (xy 3.105515 2.638277) (xy 3.115248 2.619022) (xy 3.148217 2.554004) (xy 3.173643 2.506654) (xy 3.193612 2.474219) (xy 3.21021 2.453946) (xy 3.225524 2.443082) (xy 3.24164 2.438875) (xy 3.252143 2.4384) (xy 3.27067 2.440042) (xy 3.286904 2.446831) (xy 3.303035 2.461566) (xy 3.321251 2.487044) (xy 3.343739 2.526061) (xy 3.372689 2.581414) (xy 3.388662 2.612903) (xy 3.41457 2.663087) (xy 3.437167 2.704704) (xy 3.454458 2.734242) (xy 3.46445 2.748189) (xy 3.465809 2.74877) (xy 3.472261 2.737793) (xy 3.486708 2.70929) (xy 3.507703 2.666244) (xy 3.533797 2.611638) (xy 3.563546 2.548454) (xy 3.57818 2.517071) (xy 3.61625 2.436078) (xy 3.646905 2.373756) (xy 3.671737 2.328071) (xy 3.692337 2.296989) (xy 3.710298 2.278478) (xy 3.72721 2.270504) (xy 3.744665 2.271034)) (layer F.SilkS) (width 0.01)) (fp_poly (pts (xy 4.188614 2.275877) (xy 4.212327 2.290647) (xy 4.238978 2.312227) (xy 4.238978 2.633773) (xy 4.238893 2.72783) (xy 4.238529 2.801932) (xy 4.237724 2.858704) (xy 4.236313 2.900768) (xy 4.234133 2.930748) (xy 4.231021 2.951267) (xy 4.226814 2.964949) (xy 4.221348 2.974416) (xy 4.217472 2.979082) (xy 4.186034 2.999575) (xy 4.150233 2.998739) (xy 4.118873 2.981264) (xy 4.092222 2.959684) (xy 4.092222 2.312227) (xy 4.118873 2.290647) (xy 4.144594 2.274949) (xy 4.1656 2.269067) (xy 4.188614 2.275877)) (layer F.SilkS) (width 0.01)) (fp_poly (pts (xy 4.963065 2.269163) (xy 5.041772 2.269542) (xy 5.102863 2.270333) (xy 5.148817 2.27167) (xy 5.182114 2.273683) (xy 5.205236 2.276506) (xy 5.220662 2.280269) (xy 5.230871 2.285105) (xy 5.235813 2.288822) (xy 5.261457 2.321358) (xy 5.264559 2.355138) (xy 5.248711 2.385826) (xy 5.238348 2.398089) (xy 5.227196 2.40645) (xy 5.211035 2.411657) (xy 5.185642 2.414457) (xy 5.146798 2.415596) (xy 5.09028 2.415821) (xy 5.07918 2.415822) (xy 4.933244 2.415822) (xy 4.933244 2.686756) (xy 4.933148 2.772154) (xy 4.932711 2.837864) (xy 4.931712 2.886774) (xy 4.929928 2.921773) (xy 4.927137 2.945749) (xy 4.923117 2.961593) (xy 4.917645 2.972191) (xy 4.910666 2.980267) (xy 4.877734 3.000112) (xy 4.843354 2.998548) (xy 4.812176 2.975906) (xy 4.809886 2.9731) (xy 4.802429 2.962492) (xy 4.796747 2.950081) (xy 4.792601 2.93285) (xy 4.78975 2.907784) (xy 4.787954 2.871867) (xy 4.786972 2.822083) (xy 4.786564 2.755417) (xy 4.786489 2.679589) (xy 4.786489 2.415822) (xy 4.647127 2.415822) (xy 4.587322 2.415418) (xy 4.545918 2.41384) (xy 4.518748 2.410547) (xy 4.501646 2.404992) (xy 4.490443 2.396631) (xy 4.489083 2.395178) (xy 4.472725 2.361939) (xy 4.474172 2.324362) (xy 4.492978 2.291645) (xy 4.50025 2.285298) (xy 4.509627 2.280266) (xy 4.523609 2.276396) (xy 4.544696 2.273537) (xy 4.575389 2.271535) (xy 4.618189 2.270239) (xy 4.675595 2.269498) (xy 4.75011 2.269158) (xy 4.844233 2.269068) (xy 4.86426 2.269067) (xy 4.963065 2.269163)) (layer F.SilkS) (width 0.01)) (fp_poly (pts (xy 6.228823 2.274533) (xy 6.260202 2.296776) (xy 6.287911 2.324485) (xy 6.287911 2.63392) (xy 6.287838 2.725799) (xy 6.287495 2.79784) (xy 6.286692 2.85278) (xy 6.285241 2.89336) (xy 6.282952 2.922317) (xy 6.279636 2.942391) (xy 6.275105 2.956321) (xy 6.269169 2.966845) (xy 6.264514 2.9731) (xy 6.233783 2.997673) (xy 6.198496 3.000341) (xy 6.166245 2.985271) (xy 6.155588 2.976374) (xy 6.148464 2.964557) (xy 6.144167 2.945526) (xy 6.141991 2.914992) (xy 6.141228 2.868662) (xy 6.141155 2.832871) (xy 6.141155 2.698045) (xy 5.644444 2.698045) (xy 5.644444 2.8207) (xy 5.643931 2.876787) (xy 5.641876 2.915333) (xy 5.637508 2.941361) (xy 5.630056 2.959897) (xy 5.621047 2.9731) (xy 5.590144 2.997604) (xy 5.555196 3.000506) (xy 5.521738 2.983089) (xy 5.512604 2.973959) (xy 5.506152 2.961855) (xy 5.501897 2.943001) (xy 5.499352 2.91362) (xy 5.498029 2.869937) (xy 5.497443 2.808175) (xy 5.497375 2.794) (xy 5.496891 2.677631) (xy 5.496641 2.581727) (xy 5.496723 2.504177) (xy 5.497231 2.442869) (xy 5.498262 2.39569) (xy 5.499913 2.36053) (xy 5.502279 2.335276) (xy 5.505457 2.317817) (xy 5.509544 2.306041) (xy 5.514634 2.297835) (xy 5.520266 2.291645) (xy 5.552128 2.271844) (xy 5.585357 2.274533) (xy 5.616735 2.296776) (xy 5.629433 2.311126) (xy 5.637526 2.326978) (xy 5.642042 2.349554) (xy 5.644006 2.384078) (xy 5.644444 2.435776) (xy 5.644444 2.551289) (xy 6.141155 2.551289) (xy 6.141155 2.432756) (xy 6.141662 2.378148) (xy 6.143698 2.341275) (xy 6.148035 2.317307) (xy 6.155447 2.301415) (xy 6.163733 2.291645) (xy 6.195594 2.271844) (xy 6.228823 2.274533)) (layer F.SilkS) (width 0.01)) (fp_poly (pts (xy -2.9464 -2.510946) (xy -2.935535 -2.397007) (xy -2.903918 -2.289384) (xy -2.853015 -2.190385) (xy -2.784293 -2.102316) (xy -2.699219 -2.027484) (xy -2.602232 -1.969616) (xy -2.495964 -1.929995) (xy -2.38895 -1.911427) (xy -2.2833 -1.912566) (xy -2.181125 -1.93207) (xy -2.084534 -1.968594) (xy -1.995638 -2.020795) (xy -1.916546 -2.087327) (xy -1.849369 -2.166848) (xy -1.796217 -2.258013) (xy -1.759199 -2.359477) (xy -1.740427 -2.469898) (xy -1.738489 -2.519794) (xy -1.738489 -2.607733) (xy -1.68656 -2.607733) (xy -1.650253 -2.604889) (xy -1.623355 -2.593089) (xy -1.596249 -2.569351) (xy -1.557867 -2.530969) (xy -1.557867 -0.339398) (xy -1.557876 -0.077261) (xy -1.557908 0.163241) (xy -1.557972 0.383048) (xy -1.558076 0.583101) (xy -1.558227 0.764344) (xy -1.558434 0.927716) (xy -1.558706 1.07416) (xy -1.55905 1.204617) (xy -1.559474 1.320029) (xy -1.559987 1.421338) (xy -1.560597 1.509484) (xy -1.561312 1.58541) (xy -1.56214 1.650057) (xy -1.563089 1.704367) (xy -1.564167 1.74928) (xy -1.565383 1.78574) (xy -1.566745 1.814687) (xy -1.568261 1.837063) (xy -1.569938 1.853809) (xy -1.571786 1.865868) (xy -1.573813 1.87418) (xy -1.576025 1.879687) (xy -1.577108 1.881537) (xy -1.581271 1.888549) (xy -1.584805 1.894996) (xy -1.588635 1.9009) (xy -1.593682 1.906286) (xy -1.600871 1.911178) (xy -1.611123 1.915598) (xy -1.625364 1.919572) (xy -1.644514 1.923121) (xy -1.669499 1.92627) (xy -1.70124 1.929042) (xy -1.740662 1.931461) (xy -1.788686 1.933551) (xy -1.846237 1.935335) (xy -1.914237 1.936837) (xy -1.99361 1.93808) (xy -2.085279 1.939089) (xy -2.190166 1.939885) (xy -2.309196 1.940494) (xy -2.44329 1.940939) (xy -2.593373 1.941243) (xy -2.760367 1.94143) (xy -2.945196 1.941524) (xy -3.148783 1.941548) (xy -3.37205 1.941525) (xy -3.615922 1.94148) (xy -3.881321 1.941437) (xy -3.919704 1.941432) (xy -4.186682 1.941389) (xy -4.432002 1.941318) (xy -4.656583 1.941213) (xy -4.861345 1.941066) (xy -5.047206 1.940869) (xy -5.215088 1.940616) (xy -5.365908 1.9403) (xy -5.500587 1.939913) (xy -5.620044 1.939447) (xy -5.725199 1.938897) (xy -5.816971 1.938253) (xy -5.896279 1.937511) (xy -5.964043 1.936661) (xy -6.021182 1.935697) (xy -6.068617 1.934611) (xy -6.107266 1.933397) (xy -6.138049 1.932047) (xy -6.161885 1.930555) (xy -6.179694 1.928911) (xy -6.192395 1.927111) (xy -6.200908 1.925145) (xy -6.205266 1.923477) (xy -6.213728 1.919906) (xy -6.221497 1.91727) (xy -6.228602 1.914634) (xy -6.235073 1.911062) (xy -6.240939 1.905621) (xy -6.246229 1.897375) (xy -6.250974 1.88539) (xy -6.255202 1.868731) (xy -6.258943 1.846463) (xy -6.262227 1.817652) (xy -6.265083 1.781363) (xy -6.26754 1.736661) (xy -6.269629 1.682611) (xy -6.271378 1.618279) (xy -6.272817 1.54273) (xy -6.273976 1.45503) (xy -6.274883 1.354243) (xy -6.275569 1.239434) (xy -6.276063 1.10967) (xy -6.276395 0.964015) (xy -6.276593 0.801535) (xy -6.276687 0.621295) (xy -6.276708 0.42236) (xy -6.276685 0.203796) (xy -6.276646 -0.035332) (xy -6.276622 -0.29596) (xy -6.276622 -0.338111) (xy -6.276636 -0.601008) (xy -6.276661 -0.842268) (xy -6.276671 -1.062835) (xy -6.276642 -1.263648) (xy -6.276548 -1.445651) (xy -6.276362 -1.609784) (xy -6.276059 -1.756989) (xy -6.275614 -1.888208) (xy -6.275034 -1.998133) (xy -5.972197 -1.998133) (xy -5.932407 -1.940289) (xy -5.921236 -1.924521) (xy -5.911166 -1.910559) (xy -5.902138 -1.897216) (xy -5.894097 -1.883307) (xy -5.886986 -1.867644) (xy -5.880747 -1.849042) (xy -5.875325 -1.826314) (xy -5.870662 -1.798273) (xy -5.866701 -1.763733) (xy -5.863385 -1.721508) (xy -5.860659 -1.670411) (xy -5.858464 -1.609256) (xy -5.856745 -1.536856) (xy -5.855444 -1.452025) (xy -5.854505 -1.353578) (xy -5.85387 -1.240326) (xy -5.853484 -1.111084) (xy -5.853288 -0.964666) (xy -5.853227 -0.799884) (xy -5.853243 -0.615553) (xy -5.85328 -0.410487) (xy -5.853289 -0.287867) (xy -5.853265 -0.070918) (xy -5.853231 0.124642) (xy -5.853243 0.299999) (xy -5.853358 0.456341) (xy -5.85363 0.594857) (xy -5.854118 0.716734) (xy -5.854876 0.82316) (xy -5.855962 0.915322) (xy -5.857431 0.994409) (xy -5.85934 1.061608) (xy -5.861744 1.118107) (xy -5.864701 1.165093) (xy -5.868266 1.203755) (xy -5.872495 1.23528) (xy -5.877446 1.260855) (xy -5.883173 1.28167) (xy -5.889733 1.298911) (xy -5.897183 1.313765) (xy -5.905579 1.327422) (xy -5.914976 1.341069) (xy -5.925432 1.355893) (xy -5.931523 1.364783) (xy -5.970296 1.4224) (xy -5.438732 1.4224) (xy -5.315483 1.422365) (xy -5.212987 1.422215) (xy -5.12942 1.421878) (xy -5.062956 1.421286) (xy -5.011771 1.420367) (xy -4.974041 1.419051) (xy -4.94794 1.417269) (xy -4.931644 1.414951) (xy -4.923328 1.412026) (xy -4.921168 1.408424) (xy -4.923339 1.404075) (xy -4.924535 1.402645) (xy -4.949685 1.365573) (xy -4.975583 1.312772) (xy -4.999192 1.25077) (xy -5.007461 1.224357) (xy -5.012078 1.206416) (xy -5.015979 1.185355) (xy -5.019248 1.159089) (xy -5.021966 1.125532) (xy -5.024215 1.082599) (xy -5.026077 1.028204) (xy -5.027636 0.960262) (xy -5.028972 0.876688) (xy -5.030169 0.775395) (xy -5.031308 0.6543) (xy -5.031685 0.6096) (xy -5.032702 0.484449) (xy -5.03346 0.380082) (xy -5.033903 0.294707) (xy -5.03397 0.226533) (xy -5.033605 0.173765) (xy -5.032748 0.134614) (xy -5.031341 0.107285) (xy -5.029325 0.089986) (xy -5.026643 0.080926) (xy -5.023236 0.078312) (xy -5.019044 0.080351) (xy -5.014571 0.084667) (xy -5.004216 0.097602) (xy -4.982158 0.126676) (xy -4.949957 0.169759) (xy -4.909174 0.224718) (xy -4.86137 0.289423) (xy -4.808105 0.361742) (xy -4.75094 0.439544) (xy -4.691437 0.520698) (xy -4.631155 0.603072) (xy -4.571655 0.684536) (xy -4.514498 0.762957) (xy -4.461245 0.836204) (xy -4.413457 0.902147) (xy -4.372693 0.958654) (xy -4.340516 1.003593) (xy -4.318485 1.034834) (xy -4.313917 1.041466) (xy -4.290996 1.078369) (xy -4.264188 1.126359) (xy -4.238789 1.175897) (xy -4.235568 1.182577) (xy -4.21389 1.230772) (xy -4.201304 1.268334) (xy -4.195574 1.30416) (xy -4.194456 1.3462) (xy -4.19509 1.4224) (xy -3.040651 1.4224) (xy -3.131815 1.328669) (xy -3.178612 1.278775) (xy -3.228899 1.222295) (xy -3.274944 1.168026) (xy -3.295369 1.142673) (xy -3.325807 1.103128) (xy -3.365862 1.049916) (xy -3.414361 0.984667) (xy -3.470135 0.909011) (xy -3.532011 0.824577) (xy -3.598819 0.732994) (xy -3.669387 0.635892) (xy -3.742545 0.534901) (xy -3.817121 0.43165) (xy -3.891944 0.327768) (xy -3.965843 0.224885) (xy -4.037646 0.124631) (xy -4.106184 0.028636) (xy -4.170284 -0.061473) (xy -4.228775 -0.144064) (xy -4.280486 -0.217508) (xy -4.324247 -0.280176) (xy -4.358885 -0.330439) (xy -4.38323 -0.366666) (xy -4.396111 -0.387229) (xy -4.397869 -0.391332) (xy -4.38991 -0.402658) (xy -4.369115 -0.429838) (xy -4.336847 -0.471171) (xy -4.29447 -0.524956) (xy -4.243347 -0.589494) (xy -4.184841 -0.663082) (xy -4.120314 -0.744022) (xy -4.051131 -0.830612) (xy -3.978653 -0.921152) (xy -3.904246 -1.01394) (xy -3.844517 -1.088298) (xy -2.833511 -1.088298) (xy -2.827602 -1.075341) (xy -2.813272 -1.053092) (xy -2.812225 -1.051609) (xy -2.793438 -1.021456) (xy -2.773791 -0.984625) (xy -2.769892 -0.976489) (xy -2.766356 -0.96806) (xy -2.76323 -0.957941) (xy -2.760486 -0.94474) (xy -2.758092 -0.927062) (xy -2.756019 -0.903516) (xy -2.754235 -0.872707) (xy -2.752712 -0.833243) (xy -2.751419 -0.783731) (xy -2.750326 -0.722777) (xy -2.749403 -0.648989) (xy -2.748619 -0.560972) (xy -2.747945 -0.457335) (xy -2.74735 -0.336684) (xy -2.746805 -0.197626) (xy -2.746279 -0.038768) (xy -2.745745 0.140089) (xy -2.745206 0.325207) (xy -2.744772 0.489145) (xy -2.744509 0.633303) (xy -2.744484 0.759079) (xy -2.744765 0.867871) (xy -2.745419 0.961077) (xy -2.746514 1.040097) (xy -2.748118 1.106328) (xy -2.750297 1.16117) (xy -2.753119 1.206021) (xy -2.756651 1.242278) (xy -2.760961 1.271341) (xy -2.766117 1.294609) (xy -2.772185 1.313479) (xy -2.779233 1.329351) (xy -2.787329 1.343622) (xy -2.79654 1.357691) (xy -2.80504 1.370158) (xy -2.822176 1.396452) (xy -2.832322 1.414037) (xy -2.833511 1.417257) (xy -2.822604 1.418334) (xy -2.791411 1.419335) (xy -2.742223 1.420235) (xy -2.677333 1.42101) (xy -2.59903 1.421637) (xy -2.509607 1.422091) (xy -2.411356 1.422349) (xy -2.342445 1.4224) (xy -2.237452 1.42218) (xy -2.14061 1.421548) (xy -2.054107 1.420549) (xy -1.980132 1.419227) (xy -1.920874 1.417626) (xy -1.87852 1.415791) (xy -1.85526 1.413765) (xy -1.851378 1.412493) (xy -1.859076 1.397591) (xy -1.867074 1.38956) (xy -1.880246 1.372434) (xy -1.897485 1.342183) (xy -1.909407 1.317622) (xy -1.936045 1.258711) (xy -1.93912 0.081845) (xy -1.942195 -1.095022) (xy -2.387853 -1.095022) (xy -2.48567 -1.094858) (xy -2.576064 -1.094389) (xy -2.65663 -1.093653) (xy -2.724962 -1.092684) (xy -2.778656 -1.09152) (xy -2.815305 -1.090197) (xy -2.832504 -1.088751) (xy -2.833511 -1.088298) (xy -3.844517 -1.088298) (xy -3.82927 -1.107278) (xy -3.75509 -1.199463) (xy -3.683069 -1.288796) (xy -3.614569 -1.373576) (xy -3.550955 -1.452102) (xy -3.493588 -1.522674) (xy -3.443833 -1.583591) (xy -3.403052 -1.633153) (xy -3.385888 -1.653822) (xy -3.299596 -1.754484) (xy -3.222997 -1.837741) (xy -3.154183 -1.905562) (xy -3.091248 -1.959911) (xy -3.081867 -1.967278) (xy -3.042356 -1.997883) (xy -4.174116 -1.998133) (xy -4.168827 -1.950156) (xy -4.17213 -1.892812) (xy -4.193661 -1.824537) (xy -4.233635 -1.744788) (xy -4.278943 -1.672505) (xy -4.295161 -1.64986) (xy -4.323214 -1.612304) (xy -4.36143 -1.561979) (xy -4.408137 -1.501027) (xy -4.461661 -1.431589) (xy -4.520331 -1.355806) (xy -4.582475 -1.27582) (xy -4.646421 -1.193772) (xy -4.710495 -1.111804) (xy -4.773027 -1.032057) (xy -4.832343 -0.956673) (xy -4.886771 -0.887793) (xy -4.934639 -0.827558) (xy -4.974275 -0.778111) (xy -5.004006 -0.741592) (xy -5.022161 -0.720142) (xy -5.02522 -0.716844) (xy -5.028079 -0.724851) (xy -5.030293 -0.755145) (xy -5.031857 -0.807444) (xy -5.032767 -0.881469) (xy -5.03302 -0.976937) (xy -5.032613 -1.093566) (xy -5.031704 -1.213555) (xy -5.030382 -1.345667) (xy -5.028857 -1.457406) (xy -5.026881 -1.550975) (xy -5.024206 -1.628581) (xy -5.020582 -1.692426) (xy -5.015761 -1.744717) (xy -5.009494 -1.787656) (xy -5.001532 -1.823449) (xy -4.991627 -1.8543) (xy -4.979531 -1.882414) (xy -4.964993 -1.909995) (xy -4.950311 -1.935034) (xy -4.912314 -1.998133) (xy -5.972197 -1.998133) (xy -6.275034 -1.998133) (xy -6.275001 -2.004383) (xy -6.274195 -2.106456) (xy -6.27317 -2.195367) (xy -6.2719 -2.272059) (xy -6.27036 -2.337473) (xy -6.268524 -2.392551) (xy -6.266367 -2.438235) (xy -6.263863 -2.475466) (xy -6.260987 -2.505187) (xy -6.257713 -2.528338) (xy -6.254015 -2.545861) (xy -6.249869 -2.558699) (xy -6.245247 -2.567792) (xy -6.240126 -2.574082) (xy -6.234478 -2.578512) (xy -6.228279 -2.582022) (xy -6.221504 -2.585555) (xy -6.215508 -2.589124) (xy -6.210275 -2.5917) (xy -6.202099 -2.594028) (xy -6.189886 -2.596122) (xy -6.172541 -2.597993) (xy -6.148969 -2.599653) (xy -6.118077 -2.601116) (xy -6.078768 -2.602392) (xy -6.02995 -2.603496) (xy -5.970527 -2.604439) (xy -5.899404 -2.605233) (xy -5.815488 -2.605891) (xy -5.717683 -2.606425) (xy -5.604894 -2.606847) (xy -5.476029 -2.607171) (xy -5.329991 -2.607408) (xy -5.165686 -2.60757) (xy -4.98202 -2.60767) (xy -4.777897 -2.60772) (xy -4.566753 -2.607733) (xy -2.9464 -2.607733) (xy -2.9464 -2.510946)) (layer F.SilkS) (width 0.01)) (fp_poly (pts (xy 0.328429 -2.050929) (xy 0.48857 -2.029755) (xy 0.65251 -1.989615) (xy 0.822313 -1.930111) (xy 1.000043 -1.850846) (xy 1.01131 -1.845301) (xy 1.069005 -1.817275) (xy 1.120552 -1.793198) (xy 1.162191 -1.774751) (xy 1.190162 -1.763614) (xy 1.199733 -1.761067) (xy 1.21895 -1.756059) (xy 1.223561 -1.751853) (xy 1.218458 -1.74142) (xy 1.202418 -1.715132) (xy 1.177288 -1.675743) (xy 1.144914 -1.626009) (xy 1.107143 -1.568685) (xy 1.065822 -1.506524) (xy 1.022798 -1.442282) (xy 0.979917 -1.378715) (xy 0.939026 -1.318575) (xy 0.901971 -1.26462) (xy 0.8706 -1.219603) (xy 0.846759 -1.186279) (xy 0.832294 -1.167403) (xy 0.830309 -1.165213) (xy 0.820191 -1.169862) (xy 0.79785 -1.187038) (xy 0.76728 -1.21356) (xy 0.751536 -1.228036) (xy 0.655047 -1.303318) (xy 0.548336 -1.358759) (xy 0.432832 -1.393859) (xy 0.309962 -1.40812) (xy 0.240561 -1.406949) (xy 0.119423 -1.389788) (xy 0.010205 -1.353906) (xy -0.087418 -1.299041) (xy -0.173772 -1.22493) (xy -0.249185 -1.131312) (xy -0.313982 -1.017924) (xy -0.351399 -0.931333) (xy -0.395252 -0.795634) (xy -0.427572 -0.64815) (xy -0.448443 -0.492686) (xy -0.457949 -0.333044) (xy -0.456173 -0.173027) (xy -0.443197 -0.016439) (xy -0.419106 0.132918) (xy -0.383982 0.27124) (xy -0.337908 0.394724) (xy -0.321627 0.428978) (xy -0.25338 0.543064) (xy -0.172921 0.639557) (xy -0.08143 0.71767) (xy 0.019911 0.776617) (xy 0.12992 0.815612) (xy 0.247415 0.833868) (xy 0.288883 0.835211) (xy 0.410441 0.82429) (xy 0.530878 0.791474) (xy 0.648666 0.737439) (xy 0.762277 0.662865) (xy 0.853685 0.584539) (xy 0.900215 0.540008) (xy 1.081483 0.837271) (xy 1.12658 0.911433) (xy 1.167819 0.979646) (xy 1.203735 1.039459) (xy 1.232866 1.08842) (xy 1.25375 1.124079) (xy 1.264924 1.143984) (xy 1.266375 1.147079) (xy 1.258146 1.156718) (xy 1.232567 1.173999) (xy 1.192873 1.197283) (xy 1.142297 1.224934) (xy 1.084074 1.255315) (xy 1.021437 1.28679) (xy 0.957621 1.317722) (xy 0.89586 1.346473) (xy 0.839388 1.371408) (xy 0.791438 1.390889) (xy 0.767986 1.399318) (xy 0.634221 1.437133) (xy 0.496327 1.462136) (xy 0.348622 1.47514) (xy 0.221833 1.477468) (xy 0.153878 1.476373) (xy 0.088277 1.474275) (xy 0.030847 1.471434) (xy -0.012597 1.468106) (xy -0.026702 1.466422) (xy -0.165716 1.437587) (xy -0.307243 1.392468) (xy -0.444725 1.33375) (xy -0.571606 1.26412) (xy -0.649111 1.211441) (xy -0.776519 1.103239) (xy -0.894822 0.976671) (xy -1.001828 0.834866) (xy -1.095348 0.680951) (xy -1.17319 0.518053) (xy -1.217044 0.400756) (xy -1.267292 0.217128) (xy -1.300791 0.022581) (xy -1.317551 -0.178675) (xy -1.317584 -0.382432) (xy -1.300899 -0.584479) (xy -1.267507 -0.780608) (xy -1.21742 -0.966609) (xy -1.213603 -0.978197) (xy -1.150719 -1.14025) (xy -1.073972 -1.288168) (xy -0.980758 -1.426135) (xy -0.868473 -1.558339) (xy -0.824608 -1.603601) (xy -0.688466 -1.727543) (xy -0.548509 -1.830085) (xy -0.402589 -1.912344) (xy -0.248558 -1.975436) (xy -0.084268 -2.020477) (xy 0.011289 -2.037967) (xy 0.170023 -2.053534) (xy 0.328429 -2.050929)) (layer F.SilkS) (width 0.01)) (fp_poly (pts (xy 2.673574 -1.133448) (xy 2.825492 -1.113433) (xy 2.960756 -1.079798) (xy 3.080239 -1.032275) (xy 3.184815 -0.970595) (xy 3.262424 -0.907035) (xy 3.331265 -0.832901) (xy 3.385006 -0.753129) (xy 3.42791 -0.660909) (xy 3.443384 -0.617839) (xy 3.456244 -0.578858) (xy 3.467446 -0.542711) (xy 3.47712 -0.507566) (xy 3.485396 -0.47159) (xy 3.492403 -0.43295) (xy 3.498272 -0.389815) (xy 3.503131 -0.340351) (xy 3.50711 -0.282727) (xy 3.51034 -0.215109) (xy 3.512949 -0.135666) (xy 3.515067 -0.042564) (xy 3.516824 0.066027) (xy 3.518349 0.191942) (xy 3.519772 0.337012) (xy 3.521025 0.479778) (xy 3.522351 0.635968) (xy 3.523556 0.771239) (xy 3.524766 0.887246) (xy 3.526106 0.985645) (xy 3.5277 1.068093) (xy 3.529675 1.136246) (xy 3.532156 1.19176) (xy 3.535269 1.236292) (xy 3.539138 1.271498) (xy 3.543889 1.299034) (xy 3.549648 1.320556) (xy 3.556539 1.337722) (xy 3.564689 1.352186) (xy 3.574223 1.365606) (xy 3.585266 1.379638) (xy 3.589566 1.385071) (xy 3.605386 1.40791) (xy 3.612422 1.423463) (xy 3.612444 1.423922) (xy 3.601567 1.426121) (xy 3.570582 1.428147) (xy 3.521957 1.429942) (xy 3.458163 1.431451) (xy 3.381669 1.432616) (xy 3.294944 1.43338) (xy 3.200457 1.433686) (xy 3.18955 1.433689) (xy 2.766657 1.433689) (xy 2.763395 1.337622) (xy 2.760133 1.241556) (xy 2.698044 1.292543) (xy 2.600714 1.360057) (xy 2.490813 1.414749) (xy 2.404349 1.444978) (xy 2.335278 1.459666) (xy 2.251925 1.469659) (xy 2.162159 1.474646) (xy 2.073845 1.474313) (xy 1.994851 1.468351) (xy 1.958622 1.462638) (xy 1.818603 1.424776) (xy 1.692178 1.369932) (xy 1.58026 1.298924) (xy 1.483762 1.212568) (xy 1.4036 1.111679) (xy 1.340687 0.997076) (xy 1.296312 0.870984) (xy 1.283978 0.814401) (xy 1.276368 0.752202) (xy 1.272739 0.677363) (xy 1.272245 0.643467) (xy 1.27231 0.640282) (xy 2.032248 0.640282) (xy 2.041541 0.715333) (xy 2.069728 0.77916) (xy 2.118197 0.834798) (xy 2.123254 0.839211) (xy 2.171548 0.874037) (xy 2.223257 0.89662) (xy 2.283989 0.90854) (xy 2.359352 0.911383) (xy 2.377459 0.910978) (xy 2.431278 0.908325) (xy 2.471308 0.902909) (xy 2.506324 0.892745) (xy 2.545103 0.87585) (xy 2.555745 0.870672) (xy 2.616396 0.834844) (xy 2.663215 0.792212) (xy 2.675952 0.776973) (xy 2.720622 0.720462) (xy 2.720622 0.524586) (xy 2.720086 0.445939) (xy 2.718396 0.387988) (xy 2.715428 0.348875) (xy 2.711057 0.326741) (xy 2.706972 0.320274) (xy 2.691047 0.317111) (xy 2.657264 0.314488) (xy 2.61034 0.312655) (xy 2.554993 0.311857) (xy 2.546106 0.311842) (xy 2.42533 0.317096) (xy 2.32266 0.333263) (xy 2.236106 0.360961) (xy 2.163681 0.400808) (xy 2.108751 0.447758) (xy 2.064204 0.505645) (xy 2.03948 0.568693) (xy 2.032248 0.640282) (xy 1.27231 0.640282) (xy 1.274178 0.549712) (xy 1.282522 0.470812) (xy 1.298768 0.39959) (xy 1.324405 0.328864) (xy 1.348401 0.276493) (xy 1.40702 0.181196) (xy 1.485117 0.09317) (xy 1.580315 0.014017) (xy 1.690238 -0.05466) (xy 1.81251 -0.111259) (xy 1.944755 -0.154179) (xy 2.009422 -0.169118) (xy 2.145604 -0.191223) (xy 2.294049 -0.205806) (xy 2.445505 -0.212187) (xy 2.572064 -0.210555) (xy 2.73395 -0.203776) (xy 2.72653 -0.262755) (xy 2.707238 -0.361908) (xy 2.676104 -0.442628) (xy 2.632269 -0.505534) (xy 2.574871 -0.551244) (xy 2.503048 -0.580378) (xy 2.415941 -0.593553) (xy 2.312686 -0.591389) (xy 2.274711 -0.587388) (xy 2.13352 -0.56222) (xy 1.996707 -0.521186) (xy 1.902178 -0.483185) (xy 1.857018 -0.46381) (xy 1.818585 -0.44824) (xy 1.792234 -0.438595) (xy 1.784546 -0.436548) (xy 1.774802 -0.445626) (xy 1.758083 -0.474595) (xy 1.734232 -0.523783) (xy 1.703093 -0.593516) (xy 1.664507 -0.684121) (xy 1.65791 -0.699911) (xy 1.627853 -0.772228) (xy 1.600874 -0.837575) (xy 1.578136 -0.893094) (xy 1.560806 -0.935928) (xy 1.550048 -0.963219) (xy 1.546941 -0.972058) (xy 1.55694 -0.976813) (xy 1.583217 -0.98209) (xy 1.611489 -0.985769) (xy 1.641646 -0.990526) (xy 1.689433 -0.999972) (xy 1.750612 -1.01318) (xy 1.820946 -1.029224) (xy 1.896194 -1.04718) (xy 1.924755 -1.054203) (xy 2.029816 -1.079791) (xy 2.11748 -1.099853) (xy 2.192068 -1.115031) (xy 2.257903 -1.125965) (xy 2.319307 -1.133296) (xy 2.380602 -1.137665) (xy 2.44611 -1.139713) (xy 2.504128 -1.140111) (xy 2.673574 -1.133448)) (layer F.SilkS) (width 0.01)) (fp_poly (pts (xy 6.186507 -0.527755) (xy 6.186526 -0.293338) (xy 6.186552 -0.080397) (xy 6.186625 0.112168) (xy 6.186782 0.285459) (xy 6.187064 0.440576) (xy 6.187509 0.57862) (xy 6.188156 0.700692) (xy 6.189045 0.807894) (xy 6.190213 0.901326) (xy 6.191701 0.98209) (xy 6.193546 1.051286) (xy 6.195789 1.110015) (xy 6.198469 1.159379) (xy 6.201623 1.200478) (xy 6.205292 1.234413) (xy 6.209513 1.262286) (xy 6.214327 1.285198) (xy 6.219773 1.304249) (xy 6.225888 1.32054) (xy 6.232712 1.335173) (xy 6.240285 1.349249) (xy 6.248645 1.363868) (xy 6.253839 1.372974) (xy 6.288104 1.433689) (xy 5.429955 1.433689) (xy 5.429955 1.337733) (xy 5.429224 1.29437) (xy 5.427272 1.261205) (xy 5.424463 1.243424) (xy 5.423221 1.241778) (xy 5.411799 1.248662) (xy 5.389084 1.266505) (xy 5.366385 1.285879) (xy 5.3118 1.326614) (xy 5.242321 1.367617) (xy 5.16527 1.405123) (xy 5.087965 1.435364) (xy 5.057113 1.445012) (xy 4.988616 1.459578) (xy 4.905764 1.469539) (xy 4.816371 1.474583) (xy 4.728248 1.474396) (xy 4.649207 1.468666) (xy 4.611511 1.462858) (xy 4.473414 1.424797) (xy 4.346113 1.367073) (xy 4.230292 1.290211) (xy 4.126637 1.194739) (xy 4.035833 1.081179) (xy 3.969031 0.970381) (xy 3.914164 0.853625) (xy 3.872163 0.734276) (xy 3.842167 0.608283) (xy 3.823311 0.471594) (xy 3.814732 0.320158) (xy 3.814006 0.242711) (xy 3.8161 0.185934) (xy 4.645217 0.185934) (xy 4.645424 0.279002) (xy 4.648337 0.366692) (xy 4.654 0.443772) (xy 4.662455 0.505009) (xy 4.665038 0.51735) (xy 4.69684 0.624633) (xy 4.738498 0.711658) (xy 4.790363 0.778642) (xy 4.852781 0.825805) (xy 4.9261 0.853365) (xy 5.010669 0.861541) (xy 5.106835 0.850551) (xy 5.170311 0.834829) (xy 5.219454 0.816639) (xy 5.273583 0.790791) (xy 5.314244 0.767089) (xy 5.3848 0.720721) (xy 5.3848 -0.42947) (xy 5.317392 -0.473038) (xy 5.238867 -0.51396) (xy 5.154681 -0.540611) (xy 5.069557 -0.552535) (xy 4.988216 -0.549278) (xy 4.91538 -0.530385) (xy 4.883426 -0.514816) (xy 4.825501 -0.471819) (xy 4.776544 -0.415047) (xy 4.73539 -0.342425) (xy 4.700874 -0.251879) (xy 4.671833 -0.141334) (xy 4.670552 -0.135467) (xy 4.660381 -0.073212) (xy 4.652739 0.004594) (xy 4.64767 0.09272) (xy 4.645217 0.185934) (xy 3.8161 0.185934) (xy 3.821857 0.029895) (xy 3.843802 -0.165941) (xy 3.879786 -0.344668) (xy 3.929759 -0.506155) (xy 3.993668 -0.650274) (xy 4.071462 -0.776894) (xy 4.163089 -0.885885) (xy 4.268497 -0.977117) (xy 4.313662 -1.008068) (xy 4.414611 -1.064215) (xy 4.517901 -1.103826) (xy 4.627989 -1.127986) (xy 4.74933 -1.137781) (xy 4.841836 -1.136735) (xy 4.97149 -1.125769) (xy 5.084084 -1.103954) (xy 5.182875 -1.070286) (xy 5.271121 -1.023764) (xy 5.319986 -0.989552) (xy 5.349353 -0.967638) (xy 5.371043 -0.952667) (xy 5.379253 -0.948267) (xy 5.380868 -0.959096) (xy 5.382159 -0.989749) (xy 5.383138 -1.037474) (xy 5.383817 -1.099521) (xy 5.38421 -1.173138) (xy 5.38433 -1.255573) (xy 5.384188 -1.344075) (xy 5.383797 -1.435893) (xy 5.383171 -1.528276) (xy 5.38232 -1.618472) (xy 5.38126 -1.703729) (xy 5.380001 -1.781297) (xy 5.378556 -1.848424) (xy 5.376938 -1.902359) (xy 5.375161 -1.94035) (xy 5.374669 -1.947333) (xy 5.367092 -2.017749) (xy 5.355531 -2.072898) (xy 5.337792 -2.120019) (xy 5.311682 -2.166353) (xy 5.305415 -2.175933) (xy 5.280983 -2.212622) (xy 6.186311 -2.212622) (xy 6.186507 -0.527755)) (layer F.SilkS) (width 0.01)) (fp_poly (pts (xy -2.273043 -2.973429) (xy -2.176768 -2.949191) (xy -2.090184 -2.906359) (xy -2.015373 -2.846581) (xy -1.954418 -2.771506) (xy -1.909399 -2.68278) (xy -1.883136 -2.58647) (xy -1.877286 -2.489205) (xy -1.89214 -2.395346) (xy -1.92584 -2.307489) (xy -1.976528 -2.22823) (xy -2.042345 -2.160164) (xy -2.121434 -2.105888) (xy -2.211934 -2.067998) (xy -2.2632 -2.055574) (xy -2.307698 -2.048053) (xy -2.341999 -2.045081) (xy -2.37496 -2.046906) (xy -2.415434 -2.053775) (xy -2.448531 -2.06075) (xy -2.541947 -2.092259) (xy -2.625619 -2.143383) (xy -2.697665 -2.212571) (xy -2.7562 -2.298272) (xy -2.770148 -2.325511) (xy -2.786586 -2.361878) (xy -2.796894 -2.392418) (xy -2.80246 -2.42455) (xy -2.804669 -2.465693) (xy -2.804948 -2.511778) (xy -2.800861 -2.596135) (xy -2.787446 -2.665414) (xy -2.762256 -2.726039) (xy -2.722846 -2.784433) (xy -2.684298 -2.828698) (xy -2.612406 -2.894516) (xy -2.537313 -2.939947) (xy -2.454562 -2.96715) (xy -2.376928 -2.977424) (xy -2.273043 -2.973429)) (layer F.SilkS) (width 0.01)) ) (dimension 53.34 (width 0.3) (layer Dwgs.User) (gr_text "53.340 mm" (at 166.45 41.91 90) (layer Dwgs.User) (effects (font (size 1.5 1.5) (thickness 0.3))) ) (feature1 (pts (xy 161.29 15.24) (xy 167.8 15.24))) (feature2 (pts (xy 161.29 68.58) (xy 167.8 68.58))) (crossbar (pts (xy 165.1 68.58) (xy 165.1 15.24))) (arrow1a (pts (xy 165.1 15.24) (xy 165.686421 16.366504))) (arrow1b (pts (xy 165.1 15.24) (xy 164.513579 16.366504))) (arrow2a (pts (xy 165.1 68.58) (xy 165.686421 67.453496))) (arrow2b (pts (xy 165.1 68.58) (xy 164.513579 67.453496))) ) (dimension 66.04 (width 0.3) (layer Dwgs.User) (gr_text "66.040 mm" (at 128.27 73.74) (layer Dwgs.User) (effects (font (size 1.5 1.5) (thickness 0.3))) ) (feature1 (pts (xy 161.29 69.85) (xy 161.29 75.09))) (feature2 (pts (xy 95.25 69.85) (xy 95.25 75.09))) (crossbar (pts (xy 95.25 72.39) (xy 161.29 72.39))) (arrow1a (pts (xy 161.29 72.39) (xy 160.163496 72.976421))) (arrow1b (pts (xy 161.29 72.39) (xy 160.163496 71.803579))) (arrow2a (pts (xy 95.25 72.39) (xy 96.376504 72.976421))) (arrow2b (pts (xy 95.25 72.39) (xy 96.376504 71.803579))) ) (gr_text D13 (at 121.92 15.875) (layer F.SilkS) (tstamp 5AB11F84) (effects (font (size 0.8 0.8) (thickness 0.15))) ) (gr_text D11 (at 127 15.875) (layer F.SilkS) (tstamp 5AB11F2A) (effects (font (size 0.8 0.8) (thickness 0.15))) ) (gr_text MOSI (at 127 19.685) (layer F.SilkS) (tstamp 5AB11F28) (effects (font (size 0.8 0.8) (thickness 0.15))) ) (gr_text SCK (at 121.92 19.685) (layer F.SilkS) (tstamp 5AB11ECE) (effects (font (size 0.8 0.8) (thickness 0.15))) ) (gr_text SCL (at 111.76 19.685) (layer F.SilkS) (tstamp 5AB11E74) (effects (font (size 0.8 0.8) (thickness 0.15))) ) (gr_text SDA (at 114.3 19.685) (layer F.SilkS) (tstamp 5AB11D68) (effects (font (size 0.8 0.8) (thickness 0.15))) ) (gr_text "OLED Tester rev2\nby Aleksander Alekseev\nhttps://eax.me/" (at 144.145 58.42) (layer F.SilkS) (effects (font (size 1.5 1.5) (thickness 0.3))) ) (gr_text A5 (at 156.21 67.945) (layer F.SilkS) (tstamp 5AB11353) (effects (font (size 0.8 0.8) (thickness 0.15))) ) (gr_text A4 (at 153.67 67.945) (layer F.SilkS) (tstamp 5AB11351) (effects (font (size 0.8 0.8) (thickness 0.15))) ) (gr_text A3 (at 151.13 67.945) (layer F.SilkS) (tstamp 5AB1134F) (effects (font (size 0.8 0.8) (thickness 0.15))) ) (gr_text A2 (at 148.59 67.945) (layer F.SilkS) (tstamp 5AB1134D) (effects (font (size 0.8 0.8) (thickness 0.15))) ) (gr_text A1 (at 146.05 67.945) (layer F.SilkS) (tstamp 5AB1134B) (effects (font (size 0.8 0.8) (thickness 0.15))) ) (gr_text A0 (at 143.51 67.945) (layer F.SilkS) (tstamp 5AB11298) (effects (font (size 0.8 0.8) (thickness 0.15))) ) (gr_text GND (at 133.35 64.135) (layer F.SilkS) (tstamp 5AB111E5) (effects (font (size 0.8 0.8) (thickness 0.15))) ) (gr_text 3V3 (at 128.27 64.135) (layer F.SilkS) (tstamp 5AB11132) (effects (font (size 0.8 0.8) (thickness 0.15))) ) (gr_text BUS (at 143.51 64.135) (layer F.SilkS) (tstamp 5AB1107F) (effects (font (size 0.8 0.8) (thickness 0.15))) ) (gr_text SPI (at 146.05 64.135) (layer F.SilkS) (tstamp 5AB10F74) (effects (font (size 0.8 0.8) (thickness 0.15))) ) (gr_text I2C (at 148.59 64.135) (layer F.SilkS) (tstamp 5AB10F19) (effects (font (size 0.8 0.8) (thickness 0.15))) ) (gr_text RES (at 151.13 64.135) (layer F.SilkS) (tstamp 5AB10DB7) (effects (font (size 0.8 0.8) (thickness 0.15))) ) (gr_text DC (at 153.67 64.135) (layer F.SilkS) (tstamp 5AB10CA9) (effects (font (size 0.8 0.8) (thickness 0.15))) ) (gr_text CS (at 156.21 64.135) (layer F.SilkS) (tstamp 5AB10C4F) (effects (font (size 0.8 0.8) (thickness 0.15))) ) (gr_line (start 118.11 52.705) (end 112.395 58.42) (layer Edge.Cuts) (width 0.15)) (gr_text SPI (at 132.08 39.37 90) (layer F.SilkS) (effects (font (size 1.5 1.5) (thickness 0.3))) ) (gr_line (start 133.35 34.29) (end 134.62 34.29) (layer F.SilkS) (width 0.2)) (gr_line (start 133.35 44.45) (end 133.35 34.29) (layer F.SilkS) (width 0.2)) (gr_line (start 134.62 44.45) (end 133.35 44.45) (layer F.SilkS) (width 0.2)) (gr_text I2C (at 132.08 26.67 90) (layer F.SilkS) (effects (font (size 1.5 1.5) (thickness 0.3))) ) (gr_line (start 133.35 20.955) (end 134.62 20.955) (layer F.SilkS) (width 0.2)) (gr_line (start 133.35 31.115) (end 133.35 20.955) (layer F.SilkS) (width 0.2)) (gr_line (start 134.62 31.115) (end 133.35 31.115) (layer F.SilkS) (width 0.2)) (gr_text SDA (at 143.51 26.035) (layer F.SilkS) (tstamp 5AB0FF37) (effects (font (size 0.8 0.8) (thickness 0.15))) ) (gr_text SDA (at 143.51 20.955) (layer F.SilkS) (tstamp 5AB0FF32) (effects (font (size 0.8 0.8) (thickness 0.15))) ) (gr_text SCL (at 140.97 26.035) (layer F.SilkS) (tstamp 5AB0FF2F) (effects (font (size 0.8 0.8) (thickness 0.15))) ) (gr_text SCL (at 140.97 20.955) (layer F.SilkS) (tstamp 5AB0FF13) (effects (font (size 0.8 0.8) (thickness 0.15))) ) (gr_text VCC (at 138.43 20.955) (layer F.SilkS) (tstamp 5AB0FF11) (effects (font (size 0.8 0.8) (thickness 0.15))) ) (gr_text VCC (at 135.89 26.035) (layer F.SilkS) (tstamp 5AB0FF0F) (effects (font (size 0.8 0.8) (thickness 0.15))) ) (gr_text GND (at 138.43 26.035) (layer F.SilkS) (tstamp 5AB0FF0C) (effects (font (size 0.8 0.8) (thickness 0.15))) ) (gr_text GND (at 135.89 20.955) (layer F.SilkS) (tstamp 5AB0FF09) (effects (font (size 0.8 0.8) (thickness 0.15))) ) (gr_text CS (at 151.13 39.37) (layer F.SilkS) (tstamp 5AB0FE56) (effects (font (size 0.8 0.8) (thickness 0.15))) ) (gr_text DC (at 148.59 39.37) (layer F.SilkS) (tstamp 5AB0FE52) (effects (font (size 0.8 0.8) (thickness 0.15))) ) (gr_text DIN (at 143.51 39.37) (layer F.SilkS) (tstamp 5AB0FE48) (effects (font (size 0.8 0.8) (thickness 0.15))) ) (gr_text CLK (at 140.97 39.37) (layer F.SilkS) (tstamp 5AB0FE43) (effects (font (size 0.8 0.8) (thickness 0.15))) ) (gr_text VCC (at 138.43 39.37) (layer F.SilkS) (tstamp 5AB0FE24) (effects (font (size 0.8 0.8) (thickness 0.15))) ) (gr_text GND (at 135.89 39.37) (layer F.SilkS) (tstamp 5AB0FE1C) (effects (font (size 0.8 0.8) (thickness 0.15))) ) (gr_text RES (at 146.05 39.37) (layer F.SilkS) (tstamp 5AB0FE0F) (effects (font (size 0.8 0.8) (thickness 0.15))) ) (gr_text VCC (at 153.67 34.29) (layer F.SilkS) (effects (font (size 0.8 0.8) (thickness 0.15))) ) (gr_text GND (at 151.13 34.29) (layer F.SilkS) (effects (font (size 0.8 0.8) (thickness 0.15))) ) (gr_text NC (at 148.59 34.29) (layer F.SilkS) (effects (font (size 0.8 0.8) (thickness 0.15))) ) (gr_text DIN (at 146.05 34.29) (layer F.SilkS) (effects (font (size 0.8 0.8) (thickness 0.15))) ) (gr_text CLK (at 143.51 34.29) (layer F.SilkS) (effects (font (size 0.8 0.8) (thickness 0.15))) ) (gr_text CS (at 140.97 34.29) (layer F.SilkS) (effects (font (size 0.8 0.8) (thickness 0.15))) ) (gr_text DC (at 138.43 34.29) (layer F.SilkS) (effects (font (size 0.8 0.8) (thickness 0.15))) ) (gr_text RES (at 135.89 34.29) (layer F.SilkS) (effects (font (size 0.8 0.8) (thickness 0.15))) ) (gr_line (start 118.11 52.705) (end 118.11 24.13) (layer Edge.Cuts) (width 0.15)) (gr_line (start 96.52 58.42) (end 112.395 58.42) (layer Edge.Cuts) (width 0.2)) (gr_line (start 95.25 59.69) (end 96.52 58.42) (layer Edge.Cuts) (width 0.2)) (gr_line (start 95.25 67.31) (end 95.25 59.69) (layer Edge.Cuts) (width 0.2)) (gr_line (start 96.52 68.58) (end 95.25 67.31) (layer Edge.Cuts) (width 0.2)) (gr_line (start 97.79 68.58) (end 96.52 68.58) (layer Edge.Cuts) (width 0.2)) (gr_line (start 119.38 68.58) (end 97.79 68.58) (layer Edge.Cuts) (width 0.2)) (gr_line (start 157.48 68.58) (end 119.38 68.58) (layer Edge.Cuts) (width 0.15)) (gr_line (start 158.75 67.31) (end 157.48 68.58) (layer Edge.Cuts) (width 0.15)) (gr_line (start 158.75 66.04) (end 158.75 67.31) (layer Edge.Cuts) (width 0.15)) (gr_line (start 161.29 63.5) (end 158.75 66.04) (layer Edge.Cuts) (width 0.15)) (gr_line (start 161.29 30.48) (end 161.29 63.5) (layer Edge.Cuts) (width 0.15)) (gr_line (start 158.75 27.94) (end 161.29 30.48) (layer Edge.Cuts) (width 0.15)) (gr_line (start 158.75 16.51) (end 158.75 27.94) (layer Edge.Cuts) (width 0.15)) (gr_line (start 157.48 15.24) (end 158.75 16.51) (layer Edge.Cuts) (width 0.15)) (gr_line (start 110.49 15.24) (end 157.48 15.24) (layer Edge.Cuts) (width 0.15)) (gr_line (start 109.22 16.51) (end 110.49 15.24) (layer Edge.Cuts) (width 0.15)) (gr_line (start 109.22 21.59) (end 109.22 16.51) (layer Edge.Cuts) (width 0.15)) (gr_line (start 110.49 22.86) (end 109.22 21.59) (layer Edge.Cuts) (width 0.15)) (gr_line (start 116.84 22.86) (end 110.49 22.86) (layer Edge.Cuts) (width 0.15)) (gr_line (start 118.11 24.13) (end 116.84 22.86) (layer Edge.Cuts) (width 0.15)) (segment (start 132.08 30.48) (end 126.746 25.146) (width 0.8) (layer B.Cu) (net 0)) (segment (start 126.75 18.91137) (end 126.746 18.91537) (width 0.8) (layer B.Cu) (net 0)) (segment (start 126.746 18.91537) (end 126.746 25.146) (width 0.8) (layer B.Cu) (net 0)) (segment (start 126.75 17.78) (end 126.75 18.91137) (width 0.8) (layer B.Cu) (net 0)) (segment (start 146.05 34.925) (end 141.605 30.48) (width 0.8) (layer B.Cu) (net 0)) (segment (start 146.05 36.83) (end 146.05 34.925) (width 0.8) (layer B.Cu) (net 0)) (segment (start 141.605 30.48) (end 132.08 30.48) (width 0.8) (layer B.Cu) (net 0)) (segment (start 143.51 35.56) (end 139.7 31.75) (width 0.8) (layer B.Cu) (net 0)) (segment (start 143.51 36.83) (end 143.51 35.56) (width 0.8) (layer B.Cu) (net 0)) (segment (start 139.7 31.75) (end 130.81 31.75) (width 0.8) (layer B.Cu) (net 0)) (segment (start 130.81 31.75) (end 121.67 22.61) (width 0.8) (layer B.Cu) (net 0)) (segment (start 121.67 22.61) (end 121.67 17.78) (width 0.8) (layer B.Cu) (net 0)) (segment (start 153.67 34.29) (end 145.415 26.035) (width 0.8) (layer B.Cu) (net 0)) (segment (start 153.67 36.83) (end 153.67 34.29) (width 0.8) (layer B.Cu) (net 0)) (segment (start 145.415 26.035) (end 144.78 26.035) (width 0.8) (layer B.Cu) (net 0)) (segment (start 144.78 26.035) (end 137.16 26.035) (width 0.8) (layer B.Cu) (net 0)) (segment (start 115.57 20.32) (end 141.605 20.32) (width 0.8) (layer F.Cu) (net 0)) (segment (start 141.605 20.32) (end 143.51 22.225) (width 0.8) (layer F.Cu) (net 0)) (segment (start 111.51 20.07) (end 113.03 21.59) (width 0.8) (layer F.Cu) (net 0)) (segment (start 111.51 17.78) (end 111.51 20.07) (width 0.8) (layer F.Cu) (net 0)) (segment (start 140.335 21.59) (end 140.97 22.225) (width 0.8) (layer F.Cu) (net 0)) (segment (start 113.03 21.59) (end 140.335 21.59) (width 0.8) (layer F.Cu) (net 0)) (segment (start 140.97 22.225) (end 140.97 23.495) (width 0.8) (layer F.Cu) (net 0)) (segment (start 138.43 30.48) (end 138.43 28.575) (width 0.8) (layer F.Cu) (net 0)) (segment (start 142.24 34.29) (end 138.43 30.48) (width 0.8) (layer F.Cu) (net 0)) (segment (start 150.495 34.29) (end 142.24 34.29) (width 0.8) (layer F.Cu) (net 0)) (segment (start 133.35 35.56) (end 133.35 41.02) (width 0.8) (layer F.Cu) (net 0)) (segment (start 151.13 36.83) (end 151.13 34.925) (width 0.8) (layer F.Cu) (net 0)) (segment (start 138.43 30.48) (end 133.35 35.56) (width 0.8) (layer F.Cu) (net 0)) (segment (start 151.13 34.925) (end 150.495 34.29) (width 0.8) (layer F.Cu) (net 0)) (segment (start 133.35 41.02) (end 134.24 41.91) (width 0.8) (layer F.Cu) (net 0)) (segment (start 134.24 41.91) (end 135.89 41.91) (width 0.8) (layer F.Cu) (net 0)) (segment (start 135.89 46.355) (end 125.73 56.515) (width 0.8) (layer F.Cu) (net 0)) (segment (start 125.73 56.515) (end 125.73 60.96) (width 0.8) (layer F.Cu) (net 0)) (segment (start 135.89 41.91) (end 135.89 46.355) (width 0.8) (layer F.Cu) (net 0)) (segment (start 125.73 55.88) (end 116.84 55.88) (width 0.8) (layer B.Cu) (net 0)) (segment (start 126.295685 57.15) (end 118.11 57.15) (width 0.8) (layer B.Cu) (net 0)) (segment (start 125.73 58.42) (end 119.38 58.42) (width 0.8) (layer B.Cu) (net 0)) (segment (start 148.59 64.77) (end 139.7 55.88) (width 0.8) (layer B.Cu) (net 0)) (segment (start 139.7 55.88) (end 125.73 55.88) (width 0.8) (layer B.Cu) (net 0)) (segment (start 148.59 66.04) (end 148.59 64.77) (width 0.8) (layer B.Cu) (net 0)) (segment (start 146.05 66.04) (end 146.05 64.90863) (width 0.8) (layer B.Cu) (net 0)) (segment (start 146.05 64.90863) (end 138.29137 57.15) (width 0.8) (layer B.Cu) (net 0)) (segment (start 138.29137 57.15) (end 126.295685 57.15) (width 0.8) (layer B.Cu) (net 0)) (segment (start 126.295685 57.15) (end 125.73 57.15) (width 0.8) (layer B.Cu) (net 0)) (via (at 116.84 55.88) (size 0.8) (drill 0.4) (layers F.Cu B.Cu) (net 0)) (via (at 118.11 57.15) (size 0.8) (drill 0.4) (layers F.Cu B.Cu) (net 0)) (segment (start 108.585 62.865) (end 111.76 62.865) (width 0.8) (layer F.Cu) (net 0)) (segment (start 116.205 55.88) (end 116.84 55.88) (width 0.8) (layer F.Cu) (net 0)) (segment (start 111.76 62.865) (end 113.03 61.595) (width 0.8) (layer F.Cu) (net 0)) (segment (start 107.315 61.595) (end 108.585 62.865) (width 0.8) (layer F.Cu) (net 0)) (segment (start 113.03 61.595) (end 113.03 59.055) (width 0.8) (layer F.Cu) (net 0)) (segment (start 100.965 61.595) (end 107.315 61.595) (width 0.8) (layer F.Cu) (net 0)) (segment (start 100.41 63.5) (end 100.41 62.15) (width 0.8) (layer F.Cu) (net 0)) (segment (start 100.41 62.15) (end 100.965 61.595) (width 0.8) (layer F.Cu) (net 0)) (segment (start 113.03 59.055) (end 116.205 55.88) (width 0.8) (layer F.Cu) (net 0)) (segment (start 113.665 67.31) (end 114.3 66.675) (width 0.8) (layer F.Cu) (net 0)) (segment (start 114.3 66.675) (end 114.3 59.69) (width 0.8) (layer F.Cu) (net 0)) (segment (start 107.95 67.31) (end 113.665 67.31) (width 0.8) (layer F.Cu) (net 0)) (segment (start 115.57 58.42) (end 116.84 58.42) (width 0.8) (layer F.Cu) (net 0)) (segment (start 107.315 66.675) (end 107.95 67.31) (width 0.8) (layer F.Cu) (net 0)) (segment (start 107.315 63.775) (end 107.315 66.675) (width 0.8) (layer F.Cu) (net 0)) (segment (start 107.04 63.5) (end 107.315 63.775) (width 0.8) (layer F.Cu) (net 0)) (segment (start 105.49 63.5) (end 107.04 63.5) (width 0.8) (layer F.Cu) (net 0)) (segment (start 114.3 59.69) (end 115.57 58.42) (width 0.8) (layer F.Cu) (net 0)) (segment (start 116.84 58.42) (end 118.11 57.15) (width 0.8) (layer F.Cu) (net 0)) (segment (start 125.73 58.42) (end 135.89 58.42) (width 0.8) (layer B.Cu) (net 0)) (segment (start 135.89 58.42) (end 143.51 66.04) (width 0.8) (layer B.Cu) (net 0)) (segment (start 118.11 59.69) (end 119.38 58.42) (width 0.8) (layer F.Cu) (net 0)) (segment (start 116.355 60.96) (end 118.11 60.96) (width 0.8) (layer F.Cu) (net 0)) (segment (start 118.11 60.96) (end 120.57 60.96) (width 0.8) (layer F.Cu) (net 0)) (segment (start 118.11 60.96) (end 118.11 59.69) (width 0.8) (layer F.Cu) (net 0)) (via (at 119.38 58.42) (size 0.8) (drill 0.4) (layers F.Cu B.Cu) (net 0)) (segment (start 125.73 63.5) (end 132.08 63.5) (width 0.8) (layer B.Cu) (net 0)) (segment (start 114.3 63.5) (end 125.73 63.5) (width 0.8) (layer B.Cu) (net 0)) (segment (start 125.73 60.96) (end 125.73 63.5) (width 0.8) (layer B.Cu) (net 0)) (via (at 125.73 60.96) (size 0.8) (drill 0.4) (layers F.Cu B.Cu) (net 0)) (segment (start 123.27 60.96) (end 125.73 60.96) (width 0.8) (layer F.Cu) (net 0)) (segment (start 128.27 63.5) (end 128.27 66.04) (width 0.8) (layer F.Cu) (net 0)) (segment (start 128.27 55.88) (end 128.27 63.5) (width 0.8) (layer F.Cu) (net 0)) (segment (start 116.355 63.985) (end 116.84 63.5) (width 0.8) (layer F.Cu) (net 0)) (segment (start 116.84 63.5) (end 128.27 63.5) (width 0.8) (layer F.Cu) (net 0)) (segment (start 116.355 65.46) (end 116.355 63.985) (width 0.8) (layer F.Cu) (net 0)) (segment (start 133.35 64.77) (end 133.35 66.04) (width 0.8) (layer B.Cu) (net 0)) (segment (start 132.08 63.5) (end 133.35 64.77) (width 0.8) (layer B.Cu) (net 0)) (segment (start 113.03 64.77) (end 114.3 63.5) (width 0.8) (layer B.Cu) (net 0)) (segment (start 113.03 66.04) (end 113.03 64.77) (width 0.8) (layer B.Cu) (net 0)) (segment (start 111.76 67.31) (end 113.03 66.04) (width 0.8) (layer B.Cu) (net 0)) (segment (start 105.41 67.31) (end 111.76 67.31) (width 0.8) (layer B.Cu) (net 0)) (via (at 105.41 67.31) (size 0.8) (drill 0.4) (layers F.Cu B.Cu) (net 0)) (segment (start 100.41 66.04) (end 100.41 67.67999) (width 0.8) (layer F.Cu) (net 0)) (segment (start 105.30001 67.67999) (end 105.49 67.49) (width 0.8) (layer F.Cu) (net 0)) (segment (start 100.41 67.67999) (end 105.30001 67.67999) (width 0.8) (layer F.Cu) (net 0)) (segment (start 105.49 67.49) (end 105.49 66.04) (width 0.8) (layer F.Cu) (net 0)) (segment (start 102.79 63.5) (end 102.79 66.04) (width 0.8) (layer F.Cu) (net 0)) (segment (start 97.71 63.5) (end 97.71 66.04) (width 0.8) (layer F.Cu) (net 0)) (segment (start 151.13 63.5) (end 151.13 66.04) (width 0.8) (layer B.Cu) (net 0)) (segment (start 146.05 58.42) (end 151.13 63.5) (width 0.8) (layer B.Cu) (net 0)) (segment (start 146.05 41.91) (end 146.05 58.42) (width 0.8) (layer B.Cu) (net 0)) (segment (start 148.59 58.42) (end 153.67 63.5) (width 0.8) (layer B.Cu) (net 0)) (segment (start 153.67 63.5) (end 153.67 66.04) (width 0.8) (layer B.Cu) (net 0)) (segment (start 148.59 41.91) (end 148.59 58.42) (width 0.8) (layer B.Cu) (net 0)) (segment (start 151.13 58.42) (end 156.21 63.5) (width 0.8) (layer B.Cu) (net 0)) (segment (start 156.21 63.5) (end 156.21 66.04) (width 0.8) (layer B.Cu) (net 0)) (segment (start 151.13 41.91) (end 151.13 58.42) (width 0.8) (layer B.Cu) (net 0)) (segment (start 148.59 43.18) (end 148.59 41.91) (width 0.8) (layer F.Cu) (net 0)) (segment (start 147.32 44.45) (end 148.59 43.18) (width 0.8) (layer F.Cu) (net 0)) (segment (start 149.86 45.72) (end 151.13 44.45) (width 0.8) (layer F.Cu) (net 0)) (segment (start 138.43 45.72) (end 149.86 45.72) (width 0.8) (layer F.Cu) (net 0)) (segment (start 151.13 44.45) (end 151.13 41.91) (width 0.8) (layer F.Cu) (net 0)) (segment (start 138.43 44.45) (end 147.32 44.45) (width 0.8) (layer F.Cu) (net 0)) (segment (start 133.35 45.72) (end 138.43 45.72) (width 0.8) (layer B.Cu) (net 0)) (segment (start 134.62 44.45) (end 138.43 44.45) (width 0.8) (layer B.Cu) (net 0)) (via (at 138.43 45.72) (size 0.8) (drill 0.4) (layers F.Cu B.Cu) (net 0)) (via (at 138.43 44.45) (size 0.8) (drill 0.4) (layers F.Cu B.Cu) (net 0)) (segment (start 137.16 44.45) (end 137.16 46.99) (width 0.8) (layer F.Cu) (net 0)) (segment (start 138.43 43.18) (end 137.16 44.45) (width 0.8) (layer F.Cu) (net 0)) (segment (start 138.43 41.91) (end 138.43 43.18) (width 0.8) (layer F.Cu) (net 0)) (segment (start 137.16 46.99) (end 138.43 46.99) (width 0.8) (layer F.Cu) (net 0)) (segment (start 138.43 46.99) (end 139.7 46.99) (width 0.8) (layer F.Cu) (net 0)) (segment (start 128.27 55.88) (end 137.16 46.99) (width 0.8) (layer F.Cu) (net 0)) (segment (start 153.67 43.18) (end 153.67 45.72) (width 0.8) (layer F.Cu) (net 0)) (segment (start 152.4 46.99) (end 153.67 45.72) (width 0.8) (layer F.Cu) (net 0)) (segment (start 153.67 43.18) (end 153.67 36.83) (width 0.8) (layer F.Cu) (net 0)) (segment (start 139.7 46.99) (end 152.4 46.99) (width 0.8) (layer F.Cu) (net 0)) (segment (start 132.08 44.45) (end 133.35 45.72) (width 0.8) (layer B.Cu) (net 0)) (segment (start 132.08 34.29) (end 132.08 44.45) (width 0.8) (layer B.Cu) (net 0)) (segment (start 133.35 33.02) (end 132.08 34.29) (width 0.8) (layer B.Cu) (net 0)) (segment (start 138.43 33.02) (end 133.35 33.02) (width 0.8) (layer B.Cu) (net 0)) (segment (start 140.97 36.83) (end 140.97 35.56) (width 0.8) (layer B.Cu) (net 0)) (segment (start 140.97 35.56) (end 138.43 33.02) (width 0.8) (layer B.Cu) (net 0)) (segment (start 133.35 35.56) (end 133.35 43.18) (width 0.8) (layer B.Cu) (net 0)) (segment (start 133.35 43.18) (end 134.62 44.45) (width 0.8) (layer B.Cu) (net 0)) (segment (start 134.62 34.29) (end 133.35 35.56) (width 0.8) (layer B.Cu) (net 0)) (segment (start 137.16 34.29) (end 134.62 34.29) (width 0.8) (layer B.Cu) (net 0)) (segment (start 138.43 36.83) (end 138.43 35.56) (width 0.8) (layer B.Cu) (net 0)) (segment (start 138.43 35.56) (end 137.16 34.29) (width 0.8) (layer B.Cu) (net 0)) (segment (start 135.89 38.1) (end 135.89 36.83) (width 0.8) (layer B.Cu) (net 0)) (segment (start 137.16 39.37) (end 135.89 38.1) (width 0.8) (layer B.Cu) (net 0)) (segment (start 144.78 39.37) (end 137.16 39.37) (width 0.8) (layer B.Cu) (net 0)) (segment (start 146.05 40.64) (end 144.78 39.37) (width 0.8) (layer B.Cu) (net 0)) (segment (start 146.05 41.91) (end 146.05 40.64) (width 0.8) (layer B.Cu) (net 0)) (segment (start 146.05 38.1) (end 146.05 36.83) (width 0.8) (layer F.Cu) (net 0)) (segment (start 143.51 40.64) (end 146.05 38.1) (width 0.8) (layer F.Cu) (net 0)) (segment (start 143.51 41.91) (end 143.51 40.64) (width 0.8) (layer F.Cu) (net 0)) (segment (start 143.51 38.1) (end 143.51 36.83) (width 0.8) (layer F.Cu) (net 0)) (segment (start 140.97 40.64) (end 143.51 38.1) (width 0.8) (layer F.Cu) (net 0)) (segment (start 140.97 41.91) (end 140.97 40.64) (width 0.8) (layer F.Cu) (net 0)) (segment (start 138.43 27.305) (end 138.43 28.575) (width 0.8) (layer F.Cu) (net 0)) (segment (start 135.89 24.765) (end 138.43 27.305) (width 0.8) (layer F.Cu) (net 0)) (segment (start 135.89 23.495) (end 135.89 24.765) (width 0.8) (layer F.Cu) (net 0)) (segment (start 138.43 24.765) (end 138.43 23.495) (width 0.8) (layer B.Cu) (net 0)) (segment (start 135.89 27.305) (end 138.43 24.765) (width 0.8) (layer B.Cu) (net 0)) (segment (start 135.89 28.575) (end 135.89 27.305) (width 0.8) (layer B.Cu) (net 0)) (segment (start 140.97 28.575) (end 140.97 23.495) (width 0.8) (layer F.Cu) (net 0)) (segment (start 143.51 28.575) (end 143.51 23.495) (width 0.8) (layer F.Cu) (net 0)) (segment (start 114.3 19.05) (end 114.18863 19.05) (width 0.8) (layer F.Cu) (net 0)) (segment (start 114.18863 19.05) (end 114.05 18.91137) (width 0.8) (layer F.Cu) (net 0)) (segment (start 114.05 18.91137) (end 114.05 17.78) (width 0.8) (layer F.Cu) (net 0)) (segment (start 115.57 20.32) (end 114.3 19.05) (width 0.8) (layer F.Cu) (net 0)) (segment (start 143.51 23.495) (end 143.51 22.225) (width 0.8) (layer F.Cu) (net 0)) )
KiCad
5
TargetTriple/stm32-ssd1306
examples/oled-tester/hardware/oled-tester.kicad_pcb
[ "MIT" ]
ruleset org.sovrin.edge { meta { use module io.picolabs.wrangler alias wrangler use module org.sovrin.agent_message alias a_msg shares __testing, get_vk, get_did, invitation_via, ui } global { __testing = { "queries": [ { "name": "__testing" } , { "name": "get_vk", "args": [ "label" ] } , { "name": "get_did", "args": [ "vk" ] } , { "name": "invitation_via", "args": [ "label" ] } , { "name": "ui" } ] , "events": [ { "domain": "edge", "type": "new_router", "attrs": [ "host", "eci", "label" ] } , { "domain": "edge", "type": "poll_needed", "attrs": [ "label" ] } , { "domain": "edge", "type": "poll_all_needed" } , { "domain": "edge", "type": "router_connection_deletion_requested", "attrs": [ "label" ] } ] } get_vk = function(label){ extendedLabel = label + " to " + wrangler:name(); ent:routerConnections{[extendedLabel,"their_vk"]} } get_did = function(vk){ wrangler:channel() .filter(function(x){x{["sovrin","indyPublic"]} == vk}) .head(){"id"} } invitation_via = function(label){ extendedLabel = label + " to " + wrangler:name(); eci = ent:routerConnections{[extendedLabel,"my_did"]}; routing = ent:routerConnections{[extendedLabel,"their_routing"]}; endpoint = <<#{ent:routerHost}/sky/event/#{eci}/null/sovrin/new_message>>; i = a_msg:connInviteMap(null,wrangler:name(),get_vk(label),endpoint,routing); <<#{ent:routerHost}/sky/cloud/#{eci}/org.sovrin.agent/html.html>> + "?c_i=" + math:base64encode(i.encode()) } ui = function() { ent:routerConnections.keys().length() == 0 => null | { "routerName": ent:routerName, "routerHost": ent:routerHost, "routerRequestECI": ent:routerRequestECI, "routerConnections": ent:routerConnections, "invitationViaRouter": invitation_via(ent:routerName), } } cleanup_router = defaction(eci,vk,oldTags){ needed = oldTags.length() > 0 => "Yes" | "No" url = <<#{ent:routerHost}/sky/event/#{eci}/cleanup/router/messages_not_needed>> choose needed { Yes => http:post(url,json={"vk":vk,"msgTags":oldTags}, autosend={"eci":meta:eci,"domain":"edge","type":"http_post_response"}); No => noop(); } } } rule initialize_a_router { select when wrangler ruleset_added where event:attr("rids") >< meta:rid fired { ent:routerConnections := {}; ent:msgTags := {}; raise edge event "new_router" attributes event:attrs } } rule edge_new_router { select when edge new_router host re#(https?://.+)# eci re#(.+)# label re#(.+)# setting(host,eci,label) pre { extendedLabel = label + " to " + wrangler:name() } wrangler:createChannel(meta:picoId,extendedLabel,"router") setting(channel) fired { raise edge event "need_router_connection" attributes { "channel": channel, "label": label, }; ent:routerHost := host; ent:routerRequestECI := eci; ent:routerName := label // we only get one router for now } } // // router connection with a pre-existing channel // rule make_router_connection { select when edge need_router_connection pre { channel = event:attr("channel") routerRequestURL = <<#{ent:routerHost}/sky/event/#{ent:routerRequestECI}/null/router/request>> extendedLabel = event:attr("label") + " to " + wrangler:name() } http:post(routerRequestURL,qs={ "final_key":channel{["sovrin","indyPublic"]}, "label":extendedLabel, }) setting(response) fired { raise edge event "new_router_connection" attributes event:attrs.put(response.decode()) } } rule record_new_router_connection { select when edge new_router_connection pre { ok = event:attr("status_code") == 200 directives = ok => event:attr("content").decode(){"directives"} | null connection = ok => directives .filter(function(x){x{"name"}=="request accepted"}) .head(){["options","connection"]} | null endpoint = <<#{ent:routerHost}/sky/event/#{connection{"my_did"}}/null/sovrin/new_message>> } if ok && connection{"label"} then noop() fired { ent:routerConnections{[connection{"label"}]} := connection; raise edge event "new_router_connection_recorded" attributes event:attrs.put("routing", connection.put("endpoint",endpoint)) } else { ent:failedResponse := event:attrs } } rule poll_for_messages { select when edge poll_needed label re#(.+)# setting(label) pre { extendedLabel = label + " to " + wrangler:name() router_eci = ent:routerConnections{[extendedLabel,"my_did"]} url = <<#{ent:routerHost}/sky/cloud/#{router_eci}/org.sovrin.router/stored_msgs>> vk = get_vk(label) exceptions = ent:msgTags{vk}.defaultsTo([]) eci = vk => get_did(vk) | null res = eci => http:get(url,qs={"vk":vk,"exceptions":exceptions}) | {} messages = res{"status_code"} == 200 => res{"content"}.decode() | null } if vk && eci && messages then cleanup_router(router_eci,vk,exceptions) fired { clear ent:msgTags{vk}; raise edge event "new_messages" attributes { "messages":messages, "eci": eci, "vk": vk} } } rule initialize_msgTags { select when edge new_messages vk re#(.+)# setting(vk) where ent:msgTags{vk}.isnull() fired { ent:msgTags{vk} := [] } } rule process_each_message { select when edge new_messages foreach event:attr("messages") setting(x) pre { vk = event:attr("vk") eci = event:attr("eci") message = x.decode() } if not (ent:msgTags{vk} >< message{"tag"}) then event:send({"eci":eci, "domain":"sovrin", "type": "new_message", "attrs": message .put(["need_router_connection"],true) }) fired { ent:msgTags{vk} := ent:msgTags{vk}.append(message{"tag"}) } } rule poll_at_system_startup { select when system online or edge poll_all_needed foreach ent:routerConnections.keys() setting(extendedLabel) pre { label = extendedLabel.extract(re#(.+) to .+#).head() } if label then send_directive("polling",{"label":label}) fired { raise edge event "poll_needed" attributes {"label":label} } } // // clean up internal data structures as needed // rule clean_up_router_connection { select when edge router_connection_deletion_requested label re#(.+)# setting(label) pre { extendedLabel = label + " to " + wrangler:name() vk = ent:routerConnections{[extendedLabel,"their_vk"]} eci = ent:routerConnections{[extendedLabel,"my_did"]} ok = ent:routerHost && eci url = <<#{ent:routerHost}/sky/event/#{eci}/cleanup/router/router_connection_deletion_requested>> } if ok then every { http:post(url,qs={"vk":vk}) setting(response) send_directive("router connection deleted",{"vk":vk,"response":response}) } fired { clear ent:routerConnections{extendedLabel}; raise edge event "router_connection_deleted" attributes {}; } } rule remove_router { select when edge router_removal_requested or wrangler rulesets_need_to_cleanup where ent:routerHost && ent:routerName pre { extendedLabel = ent:routerName + " to " + wrangler:name() ok = ent:routerConnections >< extendedLabel && ent:routerConnections.keys().length() == 1 } if ok then noop() fired { raise wrangler event "channel_deletion_requested" attributes {"name":extendedLabel} if wrangler:channel(extendedLabel); raise edge event "router_connection_deletion_requested" attributes {"label":ent:routerName}; } } rule remove_this_ruleset { select when edge router_connection_deleted where ent:routerConnections.keys().length() == 0 fired { raise wrangler event "uninstall_rulesets_requested" attributes {"rid":meta:rid}; } } }
KRL
3
Picolab/G2S
krl/org.sovrin.edge.krl
[ "MIT" ]
{eq} = require './_helpers' suite 'count' -> test 'single file - no filename' -> eq '--count "#x" test/data/a.js', '3', it test 'single file - with filename' -> eq '--count --filename "#x" test/data/a.js', 'test/data/a.js:3', it test 'multiple files - no filename' -> eq '--count --no-filename "#/^z/" test/data/a.js test/data/b.js', [ '3' '2' ], it test 'multiple files - with filename' -> eq '--count "#/^z/" test/data/a.js test/data/b.js', [ 'test/data/a.js:3' 'test/data/b.js:2' ], it
LiveScript
4
GerHobbelt/grasp
test/count.ls
[ "MIT" ]
/* * Copyright (c) 2005 Hewlett-Packard Company * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * - Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * - Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the * distribution. * - Neither the name of the copyright holders nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDER OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY * WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #include "Time.h" interface Time { command error_t gmtime(const time_t *timer, struct tm *tm); command error_t localtime(const time_t *timer, struct tm *tm); command error_t asctime(const struct tm *tm, char *buf, int buflen); command error_t time(time_t *timer); command void setCurrentTime(time_t current_time); command void setZoneInfo(uint16_t g_year, time_t g_year_time, uint8_t g_zero_day, uint16_t g_dst_fday, uint16_t g_dst_lday); event void tick(); }
nesC
3
mtaghiza/tinyos-main-1
tos/platforms/sam3u_ek/chips/sd/Time.nc
[ "BSD-3-Clause" ]
import ../Thread import native/win32/[types, errors] version(windows) { /** * Win32 implementation of threads. */ ThreadWin32: class extends Thread { handle: Handle threadID: UInt init: func ~win (=_code) {} start: func -> Bool { handle = _beginthreadex( null, // default security attributes 0, // default stack size _code as Closure thunk, // thread start address _code as Closure context,// argument to thread function 0, // start thread as soon as it is created threadID&) as Handle // returns the thread identifier handle != INVALID_HANDLE_VALUE } wait: func -> Bool { result := WaitForSingleObject(handle, INFINITE) result == WAIT_OBJECT_0 } wait: func ~timed (seconds: Double) -> Bool { millis := (seconds * 1000.0 + 0.5) as Long result := WaitForSingleObject(handle, millis) match result { case WAIT_TIMEOUT => false // still running case WAIT_OBJECT_0 => true // has exited! case => // couldn't wait Exception new(This, "wait~timed failed with %ld" format(result as Long)) throw() false } } alive?: func -> Bool { result := WaitForSingleObject(handle, 0) // if it's equal, it has terminated, otherwise, it's still alive result != WAIT_OBJECT_0 } _currentThread: static func -> This { thread := This new(func {}) thread handle = GetCurrentThread() thread } _yield: static func -> Bool { // I secretly curse whoever thought of this function name SwitchToThread() } } /* C interface */ include windows // CreateThread causes memory leaks, see: // http://stackoverflow.com/questions/331536/, and // http://support.microsoft.com/kb/104641/en-us // CreateThread: extern func (...) -> Handle version (gc) { // Use Boehm-provided replacement for _beginthreadex _beginthreadex: extern(GC_beginthreadex) func (security: Pointer, stackSize: UInt, startAddress: Pointer, arglist: Pointer, initflag: UInt, thrdaddr: UInt*) -> Handle } version (!gc) { _beginthreadex: extern func (security: Pointer, stackSize: UInt, startAddress: Pointer, arglist: Pointer, initflag: UInt, thrdaddr: UInt*) -> Handle } GetCurrentThread: extern func -> Handle WaitForSingleObject: extern func (...) -> Long SwitchToThread: extern func -> Bool INFINITE: extern Long WAIT_OBJECT_0: extern Long WAIT_TIMEOUT: extern Long }
ooc
5
fredrikbryntesson/launchtest
sdk/threading/native/ThreadWin32.ooc
[ "MIT" ]
{contentType text} User-agent: * Disallow: Sitemap: {$config->baseUrl}/sitemap.xml
Latte
1
gitetsu/aws-sdk-php
build/docs/theme/robots.txt.latte
[ "Apache-2.0" ]
// run-rustfix use std::collections::BTreeMap; fn main() { println!("{}", std::mem:size_of::<BTreeMap<u32, u32>>()); //~^ ERROR casts cannot be followed by a function call }
Rust
3
Eric-Arellano/rust
src/test/ui/type/ascription/issue-54516.rs
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
\documentclass[submission,copyright,creativecommons]{eptcs} \providecommand{\event}{MSFP 2018} % Name of the event you are submitting to \usepackage{breakurl} % Not needed if you use pdflatex only. \usepackage{underscore} % Only needed if you use pdflatex. \usepackage{pig} \usepackage{stmaryrd} \usepackage{upgreek} \usepackage[all]{xy} \ColourEpigram \newcommand{\D}[1]{\blue{\ensuremath{\mathsf{#1}}}} \newcommand{\C}[1]{\red{\ensuremath{\mathsf{#1}}}} \newcommand{\F}[1]{\green{\ensuremath{\mathsf{#1}}}} \newcommand{\V}[1]{\purple{\ensuremath{\mathit{#1}}}} \title{Everybody's Got To Be Somewhere} \author{ Conor McBride \institute{Mathematically Structured Programming Group\\ Department of Computer and Information Sciences\\ University of Strathclyde, Glasgow} \email{conor.mcbride@@strath.ac.uk} } \def\titlerunning{Everybody's Got To Be Somewhere} \def\authorrunning{C.T. McBride} %include lhs2TeX.fmt %include lhs2TeX.sty %include polycode.fmt \DeclareMathAlphabet{\mathkw}{OT1}{cmss}{bx}{n} %subst keyword a = "\mathkw{" a "}" %subst conid a = "\V{" a "}" %subst varid a = "\V{" a "}" %format constructor = "\mathkw{constructor}" %if False \begin{code} module EGTBS where \end{code} %endif %format Sg = "\D{\Upsigma}" %format * = "\F{\times}" %format _*_ = _ * _ %format fst = "\F{fst}" %format snd = "\F{snd}" %format , = "\C{,}" %format _,_ = _ , _ %if False \begin{code} record Sg (S : Set)(T : S -> Set) : Set where constructor _,_ field fst : S snd : T fst open Sg public _*_ : Set -> Set -> Set S * T = Sg S \ _ -> T infixr 4 _,_ _*_ data Zero : Set where record One : Set where constructor <> data Two : Set where ff tt : Two not : Two -> Two not ff = tt not tt = ff _/\_ _\/_ _<+>_ : Two -> Two -> Two b /\ ff = ff b /\ tt = b b \/ ff = b b \/ tt = tt ff <+> b = b tt <+> b = not b Tt : Two -> Set Tt ff = Zero Tt tt = One \end{code} %endif \begin{document} \maketitle This paper gives a nameless \emph{co}-de-Bruijn representation of syntax with binding. It owes a great deal to the work of Pollack and Sato \textbf{[citation]} on canonical representation of variable binding by mapping the use sites of each variable. The key to any nameless representation of syntax is how it manages the way, at a variable usage site, we choose to use \emph{one} variable and thus, implicitly not any of the others in scope. The business of selecting from variables in scope may, in general, be treated by considering how to embed the selection into the whole scope. \section{\textbf{OPE}: The Category of Order-Preserving Embeddings} A \emph{scope} will be given by a backward (or `snoc') list giving the \emph{kinds} of variables. %format where = "\mathkw{where}" %format Set = "\D{Set}" %format Bwd = "\D{Bwd}" %format B0 = "\C{[]}" %format - = "\C{\mbox{{}-}\!,}" %format _-_ = _ - _ \begin{code} data Bwd (K : Set) : Set where B0 : Bwd K _-_ : Bwd K -> K -> Bwd K infixl 7 _-_ \end{code} Scopes constitute the objects of a category whose arrows are the order-preserving embeddings, or `thinnings'. I write the step constructors postfix, as thinnings (like contexts) grow on the right. \newcommand{\apo}{\mbox{'}} %format <= = "\D{\le}" %format _<=_ = _ <= _ %format oz = "\C{oz}" %format os = "\C{os}" %format o' = "\C{o\apo}" %format _o' = _ o' %format _os = _ os \begin{code} data _<=_ {K} : Bwd K -> Bwd K -> Set where oz : B0 <= B0 _os : forall {iz jz k} -> iz <= jz -> ( iz - k) <= (jz - k) _o' : forall {iz jz k} -> iz <= jz -> iz <= (jz - k) infixl 8 _os _o' \end{code} \begin{code} src trg : forall {K}{iz jz : Bwd K} -> iz <= jz -> Bwd K src {iz = iz} th = iz trg {jz = jz} th = jz \end{code} Every scope has the identity thinning, and thinnings compose (diagramatically). %format oi = "\F{oi}" %format <&= = "\F{\fatsemi}" %format _<&=_ = _ <&= _ %format th = "\V{\theta}" %format ph = "\V{\phi}" %format ps = "\V{\psi}" \noindent \parbox[t]{3in}{ \begin{code} oi : forall {K}{kz : Bwd K} -> kz <= kz oi {kz = B0} = oz oi {kz = iz - k} = oi os -- |os| preserves |oi| \end{code}} \hfill \parbox[t]{3in}{ \begin{code} _<&=_ : forall {K}{iz jz kz : Bwd K} -> iz <= jz -> jz <= kz -> iz <= kz th <&= ph o' = (th <&= ph) o' th o' <&= ph os = (th <&= ph) o' th os <&= ph os = (th <&= ph) os -- |os| preserves |<&=| oz <&= oz = oz \end{code}} It is worth noting at this stage that context extension, |(_ - k)|, on objects extends to a functor, acting on arrows by |os|, with the functor laws holding definitionally. Let us refer to this functor as \emph{weakening}. %format == = "\D{=\!\!=}" %format _==_ = _ == _ %if False \begin{code} data _==_ {X : Set}(x : X) : X -> Set where refl : x == x {-# BUILTIN EQUALITY _==_ #-} infixr 6 _==_ infixr 7 _<&=_ infixr 6 _<=_ \end{code} %endif The categorical laws are provable by functional inductions omitted for lack of incident. %format law-oi<&= = "\F{law-}" oi <&= %format law-<&=oi = "\F{law-}" <&= oi %format law-<&=<&= = "\F{law-}" <&= <&= \begin{code} law-oi<&= : forall {K}{iz jz : Bwd K} (th : iz <= jz) -> oi <&= th == th law-<&=oi : forall {K}{iz jz : Bwd K} (th : iz <= jz) -> th <&= oi == th law-<&=<&= : forall {K}{iz jz kz lz : Bwd K} (th : iz <= jz)(ph : jz <= kz)(ps : kz <= lz) -> th <&= (ph <&= ps) == (th <&= ph) <&= ps \end{code} %if False \begin{code} law-oi<&= oz = refl law-oi<&= (th os) rewrite law-oi<&= th = refl law-oi<&= (th o') rewrite law-oi<&= th = refl law-<&=oi oz = refl law-<&=oi (th os) rewrite law-<&=oi th = refl law-<&=oi (th o') rewrite law-<&=oi th = refl law-<&=<&= th ph (ps o') rewrite law-<&=<&= th ph ps = refl law-<&=<&= th (ph o') (ps os) rewrite law-<&=<&= th ph ps = refl law-<&=<&= (th o') (ph os) (ps os) rewrite law-<&=<&= th ph ps = refl law-<&=<&= (th os) (ph os) (ps os) rewrite law-<&=<&= th ph ps = refl law-<&=<&= oz oz oz = refl \end{code} %endif Let us refer to this category as $\textbf{OPE}$. We shall unpack more of its structure later, but let us have an example. As one might expect, order-preserving embeddings have a strong antisymmetry property. The \emph{only} invertible arrows are the identities. %format antisym = "\F{antisym}" \begin{code} antisym : forall {K}{iz jz : Bwd K}(th : iz <= jz)(ph : jz <= iz) -> Sg (iz == jz) \ { refl -> th == oi * ph == oi } \end{code} Note that we must match on the proof of |iz == jz| even to claim that |th| and |ph| are the identity. %if False \begin{code} antisym oz oz = refl , refl , refl antisym (th os) (ph os) with antisym th ph antisym (.oi os) (.oi os) | refl , refl , refl = refl , refl , refl antisym (th os) (ph o') with antisym (th o') ph antisym (th os) (ph o') | refl , () , c antisym (th o') (ph os) with antisym th (ph o') antisym (th o') (ph os) | refl , b , () antisym (th o') (ph o') with antisym (oi o' <&= th) (oi o' <&= ph) antisym (th os o') (ph o') | refl , () , c antisym (th o' o') (ph o') | refl , () , c \end{code} %endif A simple consequence is that only the identity has the same source and target. %format law-oi = "\F{law-oi}" \begin{code} law-oi : forall {K}{kz : Bwd K}(th : kz <= kz) -> th == oi law-oi th with antisym th th law-oi .oi | refl , refl , refl = refl \end{code} \section{De Bruijn Syntax via OPE} It is not unusual to find natural numbers as bound variables, perhaps with some bound enforced by typing, either by an inequality or by using a `finite set of size $n$' construction, often called `Fin'. However, we may also see scope membership as exactly singleton embedding: %format <- = "\F{\leftarrow}" %format _<-_ = _ <- _ \begin{code} _<-_ : forall {K} -> K -> Bwd K -> Set k <- kz = B0 - k <= kz \end{code} Now we may give the well scoped but untyped de Bruijn $\lambda$-terms using membership for variables. %format One = "\D{One}" %format <> = "\C{\langle\rangle}" %format LamTm = "\D{LamTm}" %format var = "\C{\scriptstyle\#}" %format $ = "\C{\scriptstyle\$}" %format _$_ = _ $ _ %format lam = "\C{\uplambda}" \begin{code} data LamTm (iz : Bwd One) : Set where var : <> <- iz -> LamTm iz _$_ : LamTm iz -> LamTm iz -> LamTm iz lam : LamTm (iz - <>) -> LamTm iz infixl 5 _$_ \end{code} Variables are represented by pointing, which saves any bother about choosing names for them. We have just one way to encode a given term in a given scope. It is only when we point to one of the variables in scope that we exclude the possibility of choosing any of the others. That is to say de Bruijn index representation effectively uses thinnings to discard unwanted variables at the \emph{latest} possible opportunity, in the \emph{leaves} of the syntax trees. Note the way the scope index |iz| is used in the data type: it occurs as the target of a thinning in the |var| constructor and acted on by the weakening functor. Correspondingly, thinnings act functorially on terms, ultimately by postcomposition, but because terms keep their thinnings at their leaves, we must hunt the entire tree to find them, weakening as we go under |lam|. %format ^L = "\F{\uparrow}" %format _^L_ = _ ^L _ \begin{code} _^L_ : forall {iz jz} -> LamTm iz -> iz <= jz -> LamTm jz var i ^L th = var (i <&= th) (f $ s) ^L th = (f ^L th) $ (s ^L th) lam t ^L th = lam (t ^L th os) infixl 7 _^L_ \end{code} The point of this paper is to consider the other canonical placement of the thinnings, nearest the \emph{roots} of syntax trees, discarding unwanted variables at the \emph{earliest} possible opportunity. \section{Things-with-Thinnings} Let us develop the habit of working with well scoped terms packed with a thinning at the root, discarding those variables from the scope which are not in the \emph{support} of the term. %format / = "\D{/}" %format /_ = / _ %format _/_ = _ / _ %format ^ = "\C{\uparrow}" %format _^_ = _ ^ _ %format support = "\F{support}" %format thing = "\F{thing}" %format thinning = "\F{thinning}" \begin{code} record _/_ {K}(T : Bwd K -> Set)(scope : Bwd K) : Set where constructor _^_ field {support} : Bwd K thing : T support thinning : support <= scope infixl 7 _^_ open _/_ \end{code} The categorical structure of thinnings induces a monadic structure on things-with-thinnings. %format map/ = "\F{map/}" %format unit/ = "\F{unit/}" %format mult/ = "\F{mult/}" %format thin/ = "\F{thin/}" \begin{code} map/ : forall {K S T} -> ({kz : Bwd K} -> S kz -> T kz) -> {kz : Bwd K} -> S / kz -> T / kz map/ f (s ^ th) = f s ^ th unit/ : forall {K T}{kz : Bwd K} -> T kz -> T / kz unit/ t = t ^ oi mult/ : forall {K T}{kz : Bwd K} -> (T /_) / kz -> T / kz mult/ (t ^ th ^ ph) = t ^ (th <&= ph) \end{code} In particular, things-with-thinnings are easy to thin further, indeed, parametrically so. \begin{code} thin/ : forall {K T}{iz jz : Bwd K} -> T / iz -> iz <= jz -> T / jz thin/ t th = mult/ (t ^ th) \end{code} However, it is not enough to allow a thinning at the root: |LamTm / iz| is a poor representation of terms over |iz|, as we may choose whether to discard unwanted variables either at root or at leaves. To recover a canonical positioning of thinnings, we must enforce the property that a term's |support| is \emph{relevant}: if a variable is not discarded by the |thinning|, it \emph{must} be used in the |thing|. Or as Spike Milligan put it, `Everybody's got to be somewhere.'. \section{Slices of Thinnings} The thing-with-thinning construction makes crucial use of `arrows into |scope| from some |support|', which we might learn to recognize as objects in the slice category $\textbf{OPE}/|scope|$. By way of a reminder, if $\mathbb{C}$ is a category and $I$ one of its objects, the slice category $\mathbb{C}/I$ has as its objects pairs $(S, f)$, where $S$ is an object of $\mathbb{C}$ and $f : S \to I$ is an arrow in $\mathbb{C}$. A morphism in $(S, f) \to (T, g)$ is some $h : S \to T$ such that $f = h;g$. \[\xymatrix{ S \ar[rr]^h \ar[dr]^f & & T \ar[dl]^g \\ & I \ar@@{.}@@(ul,dl)[ul]\ar@@{.}@@(ul,ur)[ul] \ar@@{.}@@(ur,dr)[ur]\ar@@{.}@@(ur,ul)[ur] & }\qquad\mbox{$h$ is an arrow from $(S,f)$ to $(T,g)$}\] In our case, selections from `what's in scope' are related by inclusion. However, we also acquire some crucial colimit (zero, sum) structure, which will allow us to recover limit (one, product) structure for things-with-thinnings. The empty scope gives us an initial object in the slice. %format oe = "\F{oe}" \begin{code} oe : forall {K}{kz : Bwd K} -> B0 <= kz oe {kz = B0} = oz oe {kz = iz - k} = oe o' \end{code} We may readily show that the initial object is unique. %format law-oe = "\F{law-}" oe \begin{code} law-oe : forall {K}{kz : Bwd K}(th : B0 <= kz) -> th == oe \end{code} %if False \begin{code} law-oe oz = refl law-oe (th o') rewrite law-oe th = refl \end{code} %endif and thus establish that there is a unique arrow from $(|B0|,|oe|)$ to any other arrow in the slice. The initial object gives us a way to make \emph{constants} with empty support, i.e., noting that no variables are \emph{relevant}. %format OneR = One "_{R}" %format <>R = "\F{\langle\rangle}_{R}" \begin{code} data OneR {K} : Bwd K -> Set where -- `$R$' for \emph{relevant} <> : OneR B0 <>R : forall {K}{kz : Bwd K} -> OneR / kz <>R = <> ^ oe \end{code} Now, suppose we wish to construct pairs in a relevant way, ensuring that every variable in scope is used at least once. We shall need something like the following. %format *R = "\D{*}_R" %format _*R_ = _ *R _ %format <[ = "\C{\langle\!{}[}" %format ]> = "\C{]\!{}\rangle}" %format _<[_]>_ = _ <[ _ ]> _ %format lsupport = "\F{lsupport}" %format rsupport = "\F{rsupport}" %format outl = "\F{outl}" %format director = "\F{director}" %format outr = "\F{outr}" %format Cop = "\D{Cop}" %format ,R = "\F{,}_{R}" %format _,R_ = _ ,R _ \begin{spec} record _*R_ {K}(S T : Bwd K -> Set)(scope : Bwd K) : Set where constructor _<[_]>_ field {lsupport rsupport} : Bwd K outl : S lsupport director : Cop lsupport rsupport scope outr : T rsupport \end{spec} Each component has its own support, but we must police the invariant that these two supports together cover the whole |scope|, and also know into which component to direct each variable. We should be able to recover ordinary pairing for things-with-thinnings, \begin{spec} _,R_ : forall {K S T}{kz : Bwd K} -> S / kz -> T / kz -> (S *R T) / kz \end{spec} Both components have some of the |kz| as support. The support of the pair is the smallest subscope of |kz| that embeds the support of the components. Categorically, it is the coproduct of objects in the slice category. To code up the notion, we shall need to express the relationship between the supports of the components and the support of the pair: everything in the latter should appear in at least one of the former, but possibly both. In other words, everybody's got to be somewhere. %format czz = "\C{czz}" %format cs' = "\C{cs\apo}" %format c's = "\C{c\apo s}" %format css = "\C{css}" %format _cs' = _ cs' %format _c's = _ c's %format _css = _ css \begin{code} data Cop {K} : Bwd K -> Bwd K -> Bwd K -> Set where czz : Cop B0 B0 B0 _cs' : forall {iz jz kz k} -> Cop iz jz kz -> Cop ( iz - k ) jz ( kz - k) _c's : forall {iz jz kz k} -> Cop iz jz kz -> Cop iz ( jz - k) ( kz - k) _css : forall {iz jz kz k} -> Cop iz jz kz -> Cop ( iz - k ) ( jz - k) ( kz - k) infixl 8 _cs' _c's _css \end{code} Of course, whenever we have a |Cop iz jz kz| we must have embeddings |iz <= kz| and |jz <= kz|. %format lope = "\F{lope}" %format rope = "\F{rope}" %format ch = "\V{\chi}" \noindent \parbox{3.2in}{ \begin{code} lope : forall {K}{iz jz kz : Bwd K} -> Cop iz jz kz -> iz <= kz lope czz = oz lope (ch cs') = (lope ch) os lope (ch c's) = (lope ch) o' lope (ch css) = (lope ch) os \end{code}} \hfill \parbox{3.2in}{ \begin{code} rope : forall {K}{iz jz kz : Bwd K} -> Cop iz jz kz -> jz <= kz rope czz = oz rope (ch cs') = (rope ch) o' rope (ch c's) = (rope ch) os rope (ch css) = (rope ch) os \end{code}} Let us compute coproducts! A thinning is, in effect, a vector of `used or not' bits. We are computing their pointwise disjunction `used on either side' in a proof-relevant way. Specifically, we compute some |ch ^ ps : Cop iz jz / kz| so that $(\cdot,|ps|)$ is the coproduct object in the slice over |kz|, with |lope ch| and |rope ch| the two injections. We are thus obliged to show that these injections are arrows in the slice, which amounts to factoring both of our original thinning through |ps|. %format cop = "\F{cop}" %format refl = "\C{refl}" %format . = "." \begin{code} cop : forall {K}{iz jz kz : Bwd K} (th : iz <= kz)(ph : jz <= kz) -> Sg (Cop iz jz / kz) \ { (ch ^ ps) -> th == lope ch <&= ps * ph == rope ch <&= ps } cop oz oz = czz ^ oz , refl , refl cop (th os) (ph os) with cop th ph cop (.(lope ch <&= ps) os) (.(rope ch <&= ps) os) | ch ^ ps , refl , refl = ch css ^ ps os , refl , refl cop (th os) (ph o') with cop th ph cop (.(lope ch <&= ps) os) (.(rope ch <&= ps) o') | ch ^ ps , refl , refl = ch cs' ^ ps os , refl , refl cop (th o') (ph os) with cop th ph cop (.(lope ch <&= ps) o') (.(rope ch <&= ps) os) | ch ^ ps , refl , refl = ch c's ^ ps os , refl , refl cop (th o') (ph o') with cop th ph cop (.(lope ch <&= ps) o') (.(rope ch <&= ps) o') | ch ^ ps , refl , refl = ch ^ ps o' , refl , refl \end{code} Observe that wherever one of the input thinnings has an |os|, meaning that a variable is used on one side or the other, we grow the coproduct witness and ensure that its thinning has an |os| to keep the variable available. However, when both input thinnings have |o'|, meaning that neither side uses the variable, the coproduct remains the same and its thinning gets an |o'| to discard the variable. %if False \begin{code} record _*R_ {K}(S T : Bwd K -> Set)(scope : Bwd K) : Set where constructor _<[_]>_ field {lsupport rsupport} : Bwd K outl : S lsupport director : Cop lsupport rsupport scope outr : T rsupport \end{code} infixr 4 _*R_ %endif \begin{code} _,R_ : forall {K S T}{kz : Bwd K} -> S / kz -> T / kz -> (S *R T) / kz (s ^ th) ,R (t ^ ph) with cop th ph (s ^ .(lope ch <&= ps)) ,R (t ^ .(rope ch <&= ps)) | ch ^ ps , refl , refl = (s <[ ch ]> t) ^ ps \end{code} \begin{code} Pairwise : (Two -> Two -> Set) -> forall {K}{iz jz kz : Bwd K} -> iz <= kz -> jz <= kz -> Set Pairwise F oz oz = One Pairwise F (th os) (ph os) = Pairwise F th ph * (F tt tt) Pairwise F (th os) (ph o') = Pairwise F th ph * (F tt ff) Pairwise F (th o') (ph os) = Pairwise F th ph * (F ff tt) Pairwise F (th o') (ph o') = Pairwise F th ph * (F ff ff) cong : forall {S T : Set}(f : S -> T){x y : S} -> x == y -> f x == f y cong f refl = refl mkINT : forall {K}{iz jz kz : Bwd K}(th : iz <= kz)(ph : jz <= kz) -> Sg _ \ hz -> Sg (hz <= iz) \ th' -> Sg (hz <= jz) \ ph' -> (th' <&= th) == (ph' <&= ph) mkINT oz oz = _ , oz , oz , refl mkINT (th' os) (ph' os) with mkINT th' ph' ... | _ , th , ph , q = _ , th os , ph os , cong _os q mkINT (th' os) (ph' o') with mkINT th' ph' ... | _ , th , ph , q = _ , th o' , ph , cong _o' q mkINT (th' o') (ph' os) with mkINT th' ph' ... | _ , th , ph , q = _ , th , ph o' , cong _o' q mkINT (th' o') (ph' o') with mkINT th' ph' ... | _ , th , ph , q = _ , th , ph , cong _o' q COP : forall {K}(iz jz kz : Bwd K) -> Set COP iz jz kz = Sg (iz <= kz) \ th -> Sg (jz <= kz) \ ph -> Pairwise (\ a b -> Tt (a \/ b)) th ph DealR : forall {K}(iz jz kz : Bwd K) -> Set DealR iz jz kz = Sg (iz <= kz) \ th -> Sg (jz <= kz) \ ph -> Pairwise (\ a b -> Tt (a <+> b)) th ph mkCOP : forall {K}{iz jz kz : Bwd K}(th' : iz <= kz)(ph' : jz <= kz) -> Sg (COP iz jz / kz) \ { ((th , ph , c) ^ ps) -> th' == th <&= ps * ph' == ph <&= ps } mkCOP oz oz = (oz , oz , _) ^ oz , refl , refl mkCOP (th' os) (ph' os) with mkCOP th' ph' mkCOP (.(th <&= ps) os) (.(ph <&= ps) os) | (th , ph , c) ^ ps , refl , refl = (th os , ph os , c , <>) ^ ps os , refl , refl mkCOP (th' os) (ph' o') with mkCOP th' ph' mkCOP (.(th <&= ps) os) (.(ph <&= ps) o') | (th , ph , c) ^ ps , refl , refl = (th os , ph o' , c , <>) ^ ps os , refl , refl mkCOP (th' o') (ph' os) with mkCOP th' ph' mkCOP (.(th <&= ps) o') (.(ph <&= ps) os) | (th , ph , c) ^ ps , refl , refl = (th o' , ph os , c , <>) ^ ps os , refl , refl mkCOP (th' o') (ph' o') with mkCOP th' ph' mkCOP (.(th <&= ps) o') (.(ph <&= ps) o') | (th , ph , c) ^ ps , refl , refl = (th , ph , c) ^ ps o' , refl , refl record _*RR_ {K}(S T : Bwd K -> Set)(scope : Bwd K) : Set where constructor _<->_!_ field outll : S / scope outrr : T / scope cover : Pairwise (\ a b -> Tt (a \/ b)) (thinning outll) (thinning outrr) _,RR_ : forall {K S T}{kz : Bwd K} -> S / kz -> T / kz -> (S *RR T) / kz (s ^ th') ,RR (t ^ ph') with mkCOP th' ph' (s ^ .(th <&= ps)) ,RR (t ^ .(ph <&= ps)) | (th , ph , c) ^ ps , refl , refl = ((s ^ th) <-> (t ^ ph) ! c) ^ ps lemma : forall (F : Two -> Two -> Set){K}{iz jz kz kz' : Bwd K}(th : iz <= kz')(ph : jz <= kz') -> Pairwise F th ph -> (ps : kz <= kz') -> let (iz' , thl , thr , ql) = mkINT th ps (jz' , phl , phr , qr) = mkINT ph ps in Pairwise F thr phr lemma F oz oz z oz = <> lemma F (th os) (ph os) (x , y) (ps os) = lemma F th ph x ps , y lemma F (th os) (ph os) (x , y) (ps o') = lemma F th ph x ps lemma F (th os) (ph o') (x , y) (ps os) = lemma F th ph x ps , y lemma F (th os) (ph o') (x , y) (ps o') = lemma F th ph x ps lemma F (th o') (ph os) (x , y) (ps os) = lemma F th ph x ps , y lemma F (th o') (ph os) (x , y) (ps o') = lemma F th ph x ps lemma F (th o') (ph o') (x , y) (ps os) = lemma F th ph x ps , y lemma F (th o') (ph o') (x , y) (ps o') = lemma F th ph x ps \end{code} \section{Monoidal Structure of Order-Preserving Embeddings} In order to talk about binding, we need to talk about context extension. We have seen extension by a single `snoc', but simultaneous binding also makes sense. Concatenation induces a monoidal structure on scopes. %format ++ = "\F{+\!\!+}" %format _++_ = _ ++ _ \begin{code} _++_ : forall {K} -> Bwd K -> Bwd K -> Bwd K kz ++ B0 = kz kz ++ (iz - j) = (kz ++ iz) - j infixl 7 _++_ \end{code} We can extend this monoidal structure to arrows: %format <++= = ++ "_{" <= "}" %format _<++=_ = _ <++= _ \begin{code} _<++=_ : forall {K}{iz jz iz' jz' : Bwd K} -> iz <= jz -> iz' <= jz' -> (iz ++ iz') <= (jz ++ jz') th <++= oz = th th <++= (ph os) = ( th <++= ph) os th <++= (ph o') = ( th <++= ph) o' \end{code} Moreover, given a embedding into a concatenated scope, we can split it into the local end and the global end. %format -! = "\F{\dashv}" %format _-!_ = _ -! _ \begin{code} _-!_ : forall {K}{iz kz}(jz : Bwd K)(ps : iz <= (kz ++ jz)) -> Sg (Bwd K) \ kz' -> Sg (Bwd K) \ jz' -> Sg (kz' <= kz) \ th -> Sg (jz' <= jz) \ ph -> Sg (iz == (kz' ++ jz')) \ { refl -> ps == (th <++= ph) } B0 -! ps = _ , _ , ps , oz , refl , refl (kz - k) -! (ps os) with kz -! ps (kz - k) -! (.(th <++= ph) os) | _ , _ , th , ph , refl , refl = _ , _ , th , ph os , refl , refl (kz - k) -! (ps o') with kz -! ps (kz - k) -! (.(th <++= ph) o') | _ , _ , th , ph , refl , refl = _ , _ , th , ph o' , refl , refl \end{code} Thus equipped, we can say how to bind some variables. The key is to say at the binding site which of the bound variables will actually be used: if they are not used, we should not even bring them into scope. %format !- = "\D{\vdash}" %format _!-_ = _ !- _ %format \\ = "\C{\fatbslash}" %format _\\_ = _ \\ _ \begin{code} data _!-_ {K}(jz : Bwd K)(T : Bwd K -> Set)(kz : Bwd K) : Set where _\\_ : forall {iz} -> iz <= jz -> T (kz ++ iz) -> (jz !- T) kz infixr 5 _!-_ infixr 6 _\\_ \end{code} We have a smart constructor for thinned bindings: %format \\R = "\F{\fatbslash}_R" %format _\\R_ = _ \\R _ \begin{code} _\\R_ : forall {K T}{kz}(jz : Bwd K) -> T / (kz ++ jz) -> (jz !- T) / kz jz \\R (t ^ ps) with jz -! ps jz \\R (t ^ .(th <++= ph)) | _ , _ , th , ph , refl , refl = (ph \\ t) ^ th infixr 6 _\\R_ \end{code} The monoid of scopes is generated from its singletons. By the time we \emph{use} a variable, it should be the only thing in scope. %format VaR = "\D{Va}_R" %format only = "\C{only}" \begin{code} data VaR {K}(k : K) : Bwd K -> Set where only : VaR k (B0 - k) \end{code} The associated smart constructor computes the thinned representation of variables. %format vaR = "\F{va}_R" \begin{code} vaR : forall {K}{k}{kz : Bwd K} -> k <- kz -> VaR k / kz vaR x = only ^ x \end{code} \section{Co-De-Bruijn Representations of Untyped Lambda Calculus} We can now give the type of lambda terms for which all \emph{free} variables are relevant as follows. %format LamTmR = LamTm "_R" %format app = "\C{app}" \begin{code} data LamTmR (kz : Bwd One) : Set where var : VaR <> kz -> LamTmR kz app : (LamTmR *R LamTmR) kz -> LamTmR kz lam : (B0 - <> !- LamTmR) kz -> LamTmR kz \end{code} Converting from de Bruijn to co-de-Bruijn representations is easy, given our smart constructors: %format lamTmR = "\F{lamTm}_R" \begin{code} lamTmR : forall {kz : Bwd One} -> LamTm kz -> LamTmR / kz lamTmR (var x) = map/ var (vaR x) lamTmR (f $ s) = map/ app (lamTmR f ,R lamTmR s) lamTmR (lam t) = map/ lam (_ \\R lamTmR t) \end{code} %format combK = "\F{\mathbb{K}}" %format combS = "\F{\mathbb{S}}" For example, the de Bruijn representations of the |K| and |S| combinators are \begin{code} combK combS : LamTm B0 combK = lam (lam (var (oe os o'))) combS = lam (lam (lam (var (oe os o' o') $ var (oe os) $ (var (oe os o') $ var (oe os))))) \end{code} %if False \begin{code} codbK codbS : LamTmR / B0 codbK = lam (oz os \\ lam (oz o' \\ var only)) ^ oz codbS = lam (oz os \\ lam (oz os \\ lam (oz os \\ app ( app (var only <[ czz cs' c's ]> var only) <[ czz cs' c's css ]> app (var only <[ czz cs' c's ]> var only)) ))) ^ oz \end{code} %endif and these become the much more explicit co-de-Bruijn terms \begin{spec} lamTmR combK = lam (oz os \\ lam (oz o' \\ var only)) ^ oz lamTmR combS = lam (oz os \\ lam (oz os \\ lam (oz os \\ app ( app (var only <[ czz cs' c's ]> var only) <[ czz cs' c's css ]> app (var only <[ czz cs' c's ]> var only)) ))) ^ oz \end{spec} Staring bravely, we can see that |combK| uses its first argument to deliver what is plainly a constant function: the second |lam| discards its argument, leaving only one variable in scope. Meanwhile, it is plain that |combS| uses all three inputs (`function', `argument', `environment'): in the subsequent application, the function goes left, the argument goes right, and the environment is shared. \section{A Universe of Metasyntaxes-with-Binding} %format Kind = "\D{Kind}" %format Scope = "\F{Scope}" %format => = "\C{\Rightarrow}" %format _=>_ = _ => _ There is nothing specific to the $\lambda$-calculus about de Bruijn representation or its co-de-Bruijn counterpart. We may develop the notions generically for multisorted syntaxes. If the sorts of our syntax are drawn from set $I$, then we may characterize terms-with-binding as inhabiting |Kind|s |kz => i|, which specify an extension of the scope with new bindings |kz| and the sort |i| for the body of the binder. \begin{code} Scope : Set -> Set data Kind (I : Set) : Set where _=>_ : Scope I -> I -> Kind I infix 6 _=>_ Scope I = Bwd (Kind I) \end{code} Notice that |Kind|s offer higher-order abstraction: a bound variable itself has a |Kind|, being an object sort parametrized by a scope of bound variables, where the latter is, as in previous sections, a |Bwd| list, with the |K| parameter now fixed to be |Kind I|. Object variables have sorts; \emph{meta}-variables have |Kind|s. For example, when we write the $\beta$-rule \[ (\lambda x.\,t[x])\:s \;\leadsto\; t[s] \] the $t$ and the $s$ are not variables of the object calculus like $x$. They stand as placeholders, $s$ for some term and $t[x]$ for some term with a parameter which can be instantiated, and is instantiated by $x$ on the left and $s$ on the right. The kind of $t$ is |B0 - (B0 => <>) => <>|. %format Desc = "\D{Desc}" %format Set1 = Set "_1" %format RecD = "\C{Rec}_D" %format SgD = "\C{\Upsigma}_D" %format OneD = "\C{One}_D" %format *D = "\C{\times}_D" %format _*D_ = _ *D _ %format Datoid = "\D{Datoid}" %format Data = "\F{Data}" %format decide = "\F{decide}" %format Zero = "\D{Zero}" %format Decide = "\D{Decide}" %format yes = "\C{yes}" %format no = "\C{no}" We may give the syntax of each sort as a function mapping sorts to |Desc|riptions \[ |D : I -> Desc I| \] where |Desc| is as follows: \begin{spec} data Desc (I : Set) : Set1 where RecD : Kind I -> Desc I OneD : Desc I _*D_ : Desc I -> Desc I -> Desc I SgD : (S : Datoid) -> (Data S -> Desc I) -> Desc I \end{spec} We may ask for a subterm with a given |Kind|, so it can bind variables by listing their |Kind|s left of |=>|. Descriptions are closed under unit and pairing. We may also ask for terms to be tagged by some sort of `constructor' inhabiting some |Datoid|, i.e., a set with a decidable equality, given as follows: \begin{code} data Decide (X : Set) : Set where yes : X -> Decide X no : (X -> Zero) -> Decide X record Datoid : Set1 where field Data : Set decide : (x y : Data) -> Decide (x == y) open Datoid \end{code} %if False \begin{code} data Desc (I : Set) : Set1 where RecD : Kind I -> Desc I SgD : (S : Datoid) -> (Data S -> Desc I) -> Desc I OneD : Desc I _*D_ : Desc I -> Desc I -> Desc I \end{code} %endif For our $\lambda$-calculus example, let us have the enumeration %format LamTag = "\D{LamTag}" %format LAMTAG = "\F{LAMTAG}" \begin{code} data LamTag : Set where app lam : LamTag LAMTAG : Datoid Data LAMTAG = LamTag decide LAMTAG app app = yes refl decide LAMTAG app lam = no \ () decide LAMTAG lam app = no \ () decide LAMTAG lam lam = yes refl \end{code} and then take %format LamD = "\F{Lam}_D" \begin{code} LamD : One -> Desc One LamD <> = SgD LAMTAG \ { app -> RecD (B0 => <>) *D RecD (B0 => <>) ; lam -> RecD (B0 - (B0 => <>) => <>) } \end{code} Note that we do not and cannot include a tag or description for the use sites of variables in terms: use of variables in scope pertains not to the specific syntax, but to the general notion of what it is to be a syntax. At use sites, higher-kinded variables must be instantiated with parameters, just like $t[x]$ in the $\beta$-rule example, above. We can compute from a given |Scope| the |Desc|ription of the spine of actual parameters required. %format SpD = "\F{Sp}_D" \begin{code} SpD : forall {I} -> Scope I -> Desc I SpD B0 = OneD SpD (kz - k) = SpD kz *D RecD k \end{code} \subsection{Interpreting |Desc| as de Bruijn Syntax} %format [! = "\F{\llbracket}" %format !! = "\F{\mid}" %format !] = "\F{\rrbracket}" %format [!_!!_!] = [! _ !! _ !] Let us give the de Bruijn interpretation of our syntax descriptions. We give meaning to |Desc| in the traditional manner, interpreting them as strictly positive operators in some |R| which gives the semantics to |RecD|. We shall `tie the knot', taking a fixpoint, shortly. \begin{code} [!_!!_!] : forall {I} -> Desc I -> (I -> Scope I -> Set) -> Scope I -> Set [! RecD (jz => i) !! R !] kz = R i (kz ++ jz) [! SgD S T !! R !] kz = Sg (Data S) \ s -> [! T s !! R !] kz [! OneD !! R !] kz = One [! S *D T !! R !] kz = [! S !! R !] kz * [! T !! R !] kz \end{code} Note that we work with scope-indexed sets and an index |kz| giving the kinds of the variables in scope. In recursive positions, the scope grows by the bindings indicated by the given |Kind|. Tying the knot, we find that a term is either a variable instantiated with its spine of actual parameters, or it is a construct of the syntax for the demanded sort, with subterms in recursive positions. %format Tm = "\D{Tm}" %format #$ = "\C{\scriptstyle \#\$}" %format _#$_ = _ #$ _ %format [ = "\C{[}" %format ] = "\C{]}" %format [_] = [ _ ] \begin{code} data Tm {I}(D : I -> Desc I)(i : I)(kz : Scope I) : Set where _#$_ : forall {jz} -> (jz => i) <- kz -> [! SpD jz !! Tm D !] kz -> Tm D i kz [_] : [! D i !! Tm D !] kz -> Tm D i kz infixr 5 _#$_ \end{code} In this setting, |combK| and |combS| become %format combKD = combK "_D" %format combSD = combS "_D" \begin{code} combKD combSD : Tm LamD <> B0 combKD = [ lam , [ lam , oe os o' #$ <> ] ] combSD = [ lam , [ lam , [ lam , [ app , [ app , oe os o' o' #$ <> , oe os #$ <> ] , [ app , oe os o' #$ <> , oe os #$ <> ] ] ] ] ] \end{code} \section{Interpreting |Desc| as co-de-Bruijn Syntax} We may, of course, also interpret |Desc|riptions in co-de-Bruijn style, enforcing that all variables in scope are relevant, and demanding that binding sites make clear which variables are to be used. Let us work in |Scope I -> Set| where practical. %format !]R = "\F{\rrbracket}" %format [!_!!_!]R = [! _ !! _ !]R %format TmR = Tm "_R" %format # = "\C{\scriptstyle \#}" \begin{code} [!_!!_!]R : forall {I} -> Desc I -> (I -> Scope I -> Set) -> Scope I -> Set [! RecD (jz => i) !! R !]R = jz !- R i [! SgD S T !! R !]R = \ kz -> Sg (Data S) \ s -> [! T s !! R !]R kz [! OneD !! R !]R = OneR [! S *D T !! R !]R = [! S !! R !]R *R [! T !! R !]R data TmR {I}(D : I -> Desc I)(i : I)(kz : Scope I) : Set where # : forall {jz} -> (VaR (jz => i) *R [! SpD jz !! TmR D !]R) kz -> TmR D i kz [_] : [! D i !! TmR D !]R kz -> TmR D i kz \end{code} \begin{code} [!_!!_!]RR : forall {I} -> Desc I -> (I -> Scope I -> Set) -> Scope I -> Set [! RecD (jz => i) !! R !]RR = jz !- R i [! SgD S T !! R !]RR = \ kz -> Sg (Data S) \ s -> [! T s !! R !]RR kz [! OneD !! R !]RR = OneR [! S *D T !! R !]RR = [! S !! R !]RR *RR [! T !! R !]RR data TmRR {I}(D : I -> Desc I)(i : I)(kz : Scope I) : Set where # : forall {jz} -> (VaR (jz => i) *RR [! SpD jz !! TmRR D !]RR) kz -> TmRR D i kz [_] : [! D i !! TmRR D !]RR kz -> TmRR D i kz \end{code} Let us compute co-de-Bruijn terms from de Bruijn terms, generically. %format code = "\F{code}" %format codes = "\F{codes}" %format ,_ = , _ \begin{code} code : forall {I}{D : I -> Desc I}{i iz} -> Tm D i iz -> TmR D i / iz codes : forall {I}{D : I -> Desc I} S {iz} -> [! S !! Tm D !] iz -> [! S !! TmR D !]R / iz code (_#$_ {jz} x ts) = map/ # (vaR x ,R codes (SpD jz) ts) code {D = D}{i = i} [ ts ] = map/ [_] (codes (D i) ts) codes (RecD (jz => i)) t = jz \\R code t codes (SgD S T) (s , ts) = map/ (s ,_) (codes (T s) ts) codes OneD <> = <>R codes (S *D T) (ss , ts) = codes S ss ,R codes T ts \end{code} The |code| translations of |combKD| and |combSD| are, respectively, \begin{spec} [ lam , oz os \\ [ lam , oz o' \\ # (only <[ czz cs' ]> <>) ] ] ^ oz \end{spec} and \begin{spec} [ lam , oz os \\ [ lam , oz os \\ [ lam , oz os \\ [ app , ( (oz \\ [ app , ((oz \\ # (only <[ czz cs' ]> <>)) <[ czz cs' c's ]> (oz \\ # (only <[ czz cs' ]> <>))) ]) <[ czz cs' c's css ]> (oz \\ [ app , ((oz \\ # (only <[ czz cs' ]> <>)) <[ czz cs' c's ]> (oz \\ # (only <[ czz cs' ]> <>))) ])) ] ] ] ] ^ oz \end{spec} exactly as we hand-coded them, above, with a little extra noise, |oz \\|, recording the fact that |app| binds no variables in either function or argument subterms. \begin{code} data All {K}(P : K -> Set) : Bwd K -> Set where B0 : All P B0 _-_ : forall {kz k} -> All P kz -> P k -> All P (kz - k) all : forall {K P Q} -> ({k : K} -> P k -> Q k) -> {kz : Bwd K} -> All P kz -> All Q kz all f B0 = B0 all f (pz - p) = all f pz - f p _<?=_ : forall {K P}{iz jz : Bwd K} -> iz <= jz -> All P jz -> All P iz oz <?= B0 = B0 (th os) <?= (pz - p) = (th <?= pz) - p (th o') <?= (pz - p) = th <?= pz _<??=_ : forall {I R}{iz jz kz : Scope I} -> iz <= jz -> [! SpD jz !! R !]RR / kz -> [! SpD iz !! R !]RR / kz oz <??= (<> ^ ps) = <>R (th os) <??= ((rz ^ phl) <-> (r ^ phr) ! _ ^ ps) = (th <??= (rz ^ (phl <&= ps))) ,RR (r ^ (phr <&= ps)) (th o') <??= ((rz ^ phl) <-> (r ^ phr) ! _ ^ ps) = th <??= (rz ^ (phl <&= ps)) data Deal {K} : Bwd K -> Bwd K -> Bwd K -> Set where dzz : Deal B0 B0 B0 ds' : forall {iz i jz kz} -> Deal iz jz kz -> Deal (iz - i) jz (kz - i) d's : forall {iz jz j kz} -> Deal iz jz kz -> Deal iz (jz - j) (kz - j) dealRefine : forall {K}{iz' jz' kz kz' : Bwd K} -> kz <= kz' -> Deal iz' jz' kz' -> Sg _ \ iz -> Sg _ \ jz -> iz <= iz' * Deal iz jz kz * jz <= jz' dealRefine oz dzz = B0 , B0 , oz , dzz , oz dealRefine (ps os) (ds' de) with dealRefine ps de ... | _ , _ , th , ga , ph = _ , _ , th os , ds' ga , ph dealRefine (ps os) (d's de) with dealRefine ps de ... | _ , _ , th , ga , ph = _ , _ , th , d's ga , ph os dealRefine (ps o') (ds' de) with dealRefine ps de ... | _ , _ , th , ga , ph = _ , _ , th o' , ga , ph dealRefine (ps o') (d's de) with dealRefine ps de ... | _ , _ , th , ga , ph = _ , _ , th , ga , ph o' TmK : forall {I}(D : I -> Desc I)(kz : Scope I)(k : Kind I) -> Set TmK D kz (jz => i) = (jz !- TmR D i) / kz wTmK : forall {I}{D : I -> Desc I}{kz kz' : Scope I} -> kz <= kz' -> {k : Kind I} -> TmK D kz k -> TmK D kz' k wTmK th {jz => i} t = thin/ t th record Morph {I}(D : I -> Desc I)(iz kz : Scope I) : Set where constructor _<:_$>_ field {leave write} : Scope I leaven : leave <= kz fate : Deal leave write iz written : All (TmK D kz) write open Morph record MorphR {I}(D : I -> Desc I)(iz kz : Scope I) : Set where constructor mor field {leave write} : Scope I leaven : leave <= kz fate : DealR leave write iz written : [! SpD write !! TmRR D !]RR / kz open MorphR morphRefine : forall {I}{D : I -> Desc I}{iz iz' kz}(th : iz <= iz')(m : Morph D iz' kz) -> Sg (Morph D iz kz) \ m' -> write m' <= write m morphRefine {I}{D}{iz}{iz'}{jz} ps (th' <: de $> pz) with dealRefine ps de ... | le , wr , th , ga , ph = (th <&= th') <: ga $> (ph <?= pz) , ph morR : forall {I}{D : I -> Desc I}{hz iz iz' kz}(th : iz <= iz') -> (Sg (MorphR D iz' kz) \ m -> write m <= hz) -> (Sg (MorphR D iz kz) \ m -> write m <= hz) morR ps (mor th (psl , psr , d') sz , ze) with mkINT psl ps | mkINT psr ps | lemma (\ a b -> Tt (a <+> b)) psl psr d' ps ... | _ , psll , pslr , ql | _ , psrl , psrr , qr | d = mor (psll <&= th) (pslr , psrr , d) (psrl <??= sz) , psrl <&= ze data Hered {I}(kz : Scope I) : Set where hered : (forall {jz i} -> (jz => i) <- kz -> Hered jz) -> Hered kz here : forall {I}{kz : Scope I} -> Hered kz -> forall {jz i} -> (jz => i) <- kz -> Hered jz here (hered h) = h inherit : forall {I}(kz : Scope I) -> Hered kz inherit B0 = hered \ () inherit (kz - (jz => i)) = hered \ { (x os) -> inherit jz ; (x o') -> here (inherit kz) x } spAll : forall {I}{D : I -> Desc I} jz {kz : Scope I} -> [! SpD jz !! TmR D !]R / kz -> All (TmK D kz) jz spAll B0 (<> ^ th) = B0 spAll (jz - (iz => i)) ((ts <[ ch ]> t) ^ th) = spAll jz (ts ^ (lope ch <&= th)) - (t ^ (rope ch <&= th)) dealL : forall {K}{iz : Bwd K} -> Deal iz B0 iz dealL {iz = B0} = dzz dealL {iz = _ - _} = ds' dealL deal+L : forall {K}{iz jz kz}(lz : Bwd K) -> Deal iz jz kz -> Deal (iz ++ lz) jz (kz ++ lz) deal+L B0 de = de deal+L (lz - l) de = ds' (deal+L lz de) dealLR : forall {K}{iz jz : Bwd K} -> Deal iz jz (iz ++ jz) dealLR {jz = B0} = dealL dealLR {jz = _ - _} = d's dealLR leftCover : forall {K}(kz : Bwd K) -> Pairwise (\ a b -> Tt (a <+> b)) (oi {kz = kz}) oe leftCover B0 = <> leftCover (kz - k) = leftCover kz , <> left+Cover : forall {K iz jz kz}(th : iz <= kz)(ph : jz <= kz) -> Pairwise (\ a b -> Tt (a <+> b)) th ph -> (lz : Bwd K) -> Pairwise (\ a b -> Tt (a <+> b)) (th <++= oi {kz = lz}) (ph <++= oe {kz = lz}) left+Cover th ph c B0 = c left+Cover th ph c (lz - l) = left+Cover th ph c lz , <> dealLR' : forall {K}(iz jz : Bwd K) -> DealR iz jz (iz ++ jz) dealLR' iz B0 = oi , oe , leftCover iz dealLR' iz (jz - j) with dealLR' iz jz ... | th , ph , c = th o' , ph os , c , <> morphWeak : forall {I}{D : I -> Desc I}{iz kz iz' kz'} -> Morph D iz kz -> iz' <= kz' -> Morph D (iz ++ iz') (kz ++ kz') morphWeak {iz' = iz'}{kz' = kz'} (th <: de $> tz) ph = (th <++= ph) <: deal+L iz' de $> all (wTmK (oi <++= oe {kz = kz'})) tz morWk : forall {I}{D : I -> Desc I}{hz iz kz iz' kz'} -> (Sg (MorphR D iz kz) \ m -> write m <= hz) -> iz' <= kz' -> (Sg (MorphR D (iz ++ iz') (kz ++ kz')) \ m -> write m <= hz) morWk (mor th (thl , thr , c) (sz ^ ps) , ze) ph = mor (th <++= ph) ((thl <++= oi {kz = src ph}) , (thr <++= oe {kz = src ph}) , left+Cover thl thr c (src ph)) (sz ^ (ps <++= oe {kz = trg ph})) , ze act : forall {I}{D : I -> Desc I}{hz iz kz i} -> (m : Morph D iz kz) -> write m <= hz -> Hered hz -> TmR D i iz -> TmR D i / kz acts : forall {I}{D : I -> Desc I}{hz iz kz} T -> (m : Morph D iz kz) -> write m <= hz -> Hered hz -> [! T !! TmR D !]R iz -> [! T !! TmR D !]R / kz act m th h (# (only <[ ch ]> ts)) with morphRefine (lope ch) m | morphRefine (rope ch) m act m th h (# {jz = jz} (only <[ ch ]> ts)) | ml , thl | mr , thr with acts (SpD jz) mr (thr <&= th) h ts act m th h (# {jz} (only <[ ch ]> ts)) | leaven <: ds' dzz $> written , thl | mr , thr | ts' = map/ # (vaR leaven ,R ts') act m th (hered h) (# {jz} (only <[ ch ]> ts)) | leaven <: d's dzz $> (B0 - ((ps \\ t) ^ ph)) , thl | mr , thr | ts' = act (ph <: dealLR $> (ps <?= spAll jz ts')) ps (h (thl <&= th)) t act {D = D}{i = i} m th h [ ts ] = map/ [_] (acts (D i) m th h ts) acts (RecD (jz => i)) m th h (ph \\ t) = jz \\R act (morphWeak m ph) th h t acts (SgD S T) m th h (s , t) = map/ (s ,_) (acts (T s) m th h t) acts OneD m th h <> = <>R acts (S *D T) m th h (s <[ ch ]> t) with morphRefine (lope ch) m | morphRefine (rope ch) m ... | ml , thl | mr , thr = acts S ml (thl <&= th) h s ,R acts T mr (thr <&= th) h t actR : forall {I}{D : I -> Desc I}{hz iz kz i} -> (Sg (MorphR D iz kz) \ m -> write m <= hz) -> Hered hz -> TmRR D i iz -> TmRR D i / kz actsR : forall {I}{D : I -> Desc I}{hz iz kz} T -> (Sg (MorphR D iz kz) \ m -> write m <= hz) -> Hered hz -> [! T !! TmRR D !]RR iz -> [! T !! TmRR D !]RR / kz actR m h (# {jz} ((only ^ thl) <-> (tz ^ thr) ! _)) with morR thl m | actsR (SpD jz) (morR thr m) h tz actR m h (# {jz} ((only ^ thl) <-> tz ^ thr ! _)) | mor ph (dl os , dr os , _ , ()) sz , ze | tz' actR m h (# {jz} ((only ^ thl) <-> tz ^ thr ! _)) | mor ph (oz os , oz o' , <> , <>) _ , ze | tz' = map/ # (vaR ph ,RR tz') actR m (hered h) (# {jz} ((only ^ thl) <-> tz ^ thr ! _)) | mor _ (oz o' , oz os , <> , <>) ((_ <-> (ph \\ s) ^ ps' ! _) ^ ps) , ze | tz' = actR (mor (ps' <&= ps) (dealLR' (src ps') (src ph)) (ph <??= tz') , ph) (h ze) s actR m h (# {jz} ((only ^ thl) <-> tz ^ thr ! _)) | mor ph (dl o' , dr o' , _ , ()) sz , ze | tz' actR {D = D}{i = i} m h [ ts ] = map/ [_] (actsR (D i) m h ts) actsR (RecD (jz => i)) m h (ph \\ t) = jz \\R actR (morWk m ph) h t actsR (SgD S T) m h (s , t) = map/ (s ,_) (actsR (T s) m h t) actsR OneD m h <> = <>R actsR (S *D T) m h ((s ^ th) <-> (t ^ ph) ! _) = actsR S (morR th m) h s ,RR actsR T (morR ph m) h t co : forall {I}{D : I -> Desc I}{iz jz kz} -> MorphR D iz jz -> MorphR D jz kz -> MorphR D iz kz co (mor ph (thl , thr , c) (sz ^ ps)) m1 with morR ph (m1 , oi) | actsR (SpD (src thr)) (morR ps (m1 , oi)) (inherit _) sz ... | mor ph1 (thl1 , thr1 , c1) (sz1 ^ ps1) , _ | sz0 ^ ps0 = mor ph1 (thl1 <&= thl , {!!} , {!!}) {!!} \end{code} \bibliographystyle{eptcs} \bibliography{EGTBS} \end{document}
Literate Agda
4
gallais/EGTBS
old-EGTBS.lagda
[ "BSD-3-Clause" ]
--# -path=.:../abstract:../common:../prelude -- Adam Slaski, 2009 <adam.slaski@gmail.com> concrete VerbPol of Verb = CatPol ** open ResPol, Prelude in { flags optimize=all_subs ; coding=utf8 ; lin UseV v = defVP v; PassV2 v = setImienne (defVP (castv2 v)) True; SlashV2a v = (defVP (castv2 v)) ** {c=v.c; postfix=\\_,_=>""}; Slash2V3 v3 np = setSlash (defVP (castv3 v3)) (\\p,gn => v3.c.s ++ np.dep ! (npcase !<p,v3.c.c>) ) v3.c2; Slash3V3 v3 np = (setSlash (defVP (castv3 v3)) (\\p,gn => v3.c2.s ++ np.dep ! (npcase !<p,v3.c2.c>) )) v3.c; -- ComplSlash : VPSlash -> NP -> VP ; -- love it ComplSlash vps np = setSufix2 vps (\\p,gn => vps.sufix!p!gn ++ vps.c.s ++ np.dep !(npcase !<p,vps.c.c>) ++ vps.postfix!p!gn); -- AdvVP : VP -> Adv -> VP ; -- sleep here AdvVP vp adv = setPrefix vp (vp.prefix ++ adv.s); -- AdVVP : AdV -> VP -> VP ; -- always sleep AdVVP adV vp = setPrefix vp (vp.prefix ++ adV.s); -- ReflVP : VPSlash -> VP ; -- love himself ReflVP vps = setSufix vps (\\p,gn => vps.sufix!p!gn ++ vps.c.s ++ siebie ! (extract_case! vps.c.c) ++ vps.postfix!p!gn); -- CompAP : AP -> Comp ; -- (be) small CompAP ap = { s = \\gn => ap.s ! AF gn Nom }; CompCN cn = { s = \\gn => cn.s ! numGenNum gn ! Nom }; --- AR 7/12/2010 -- CompNP : NP -> Comp ; -- (be) a man CompNP np = { s = \\gn => np.dep !InstrC }; -- CompAdv : Adv -> Comp ; -- (be) here CompAdv adv = { s = \\_ => adv.s }; -- UseComp : Comp -> VP ; -- be warm UseComp c = setImienne (setSufix (defVP {si = \\_=>[]; sp = \\_=>[]; asp = Imperfective; refl = ""; ppartp,pparti= record2table empty11forms }) (\\_,gn => c.s!gn)) True; -- ComplVV : VV -> VP -> VP ; -- want to run ComplVV vv vp = setSufix (defVP vv) (\\p,gn => vp.prefix ++ vp.verb.si !VInfM ++ vp.sufix !p!gn); -- ComplVQ : VQ -> QS -> VP ; -- wonder who runs ComplVQ vq qs = setSufix (defVP vq) (\\p,gn => "," ++ qs.s); -- ComplVS : VS -> S -> VP ; -- say that she runs ComplVS vs s = setSufix (defVP vs) (\\p,gn => [", że"] ++ s.s); -- ComplVA : VA -> AP -> VP ; -- become red ComplVA va a = setSufix (defVP (castva va)) (\\_,gn => va.c.s ++ case va.c.adv of { False => a.s!(AF gn va.c.c); True => a.adv } ); -- SlashV2V : V2V -> VP -> VPSlash ; -- beg (her) to go SlashV2V v vp = setPostfix (defVP (castv2 v)) (\\p,gn => vp.prefix ++ vp.verb.si !VInfM ++ vp.sufix !p!gn) v.c; -- SlashV2S : V2S -> S -> VPSlash ; -- answer (to him) that it is good SlashV2S v s = setPostfix (defVP (castv2 v)) (\\_,_ => [", że"] ++ s.s) v.c; -- SlashV2Q : V2Q -> QS -> VPSlash ; -- ask (him) who came SlashV2Q v qs = setPostfix (defVP (castv2 v)) (\\_,_ => "," ++ qs.s) v.c; -- SlashVV : VV -> VPSlash -> VPSlash ; -- want to buy SlashVV v vps = setPostfix (setSufix (defVP v) (\\p,gn => vps.prefix ++ vps.verb.si !VInfM ++ vps.sufix !p!gn)) --???? why !pg vps.postfix vps.c; -- SlashV2VNP : V2V -> NP -> VPSlash -> VPSlash ; -- beg me to buy SlashV2VNP v np vps = setPostfix (setSufix (defVP (castv2 v)) (\\p,gn => np.dep !(npcase !<p,v.c.c>) ++ vps.prefix ++ vps.verb.si !VInfM ++ vps.sufix !p!gn)) vps.postfix vps.c; -- SlashV2A : V2A -> AP -> VPSlash ; -- paint (it) red SlashV2A va a = setPostfix (defVP (castv2a va)) (\\_,gn => va.c.s ++ case va.c.adv of { False => a.s!(AF gn va.c.c); True => a.adv }) va.c2; oper castv2 : (Verb ** { c:Complement }) -> Verb = \v2 -> {si=v2.si;sp=v2.sp;asp=v2.asp;refl=v2.refl; ppartp=v2.ppartp; pparti=v2.pparti}; castv3 : (Verb ** { c,c2:Complement }) -> Verb = \v2 -> {si=v2.si;sp=v2.sp;asp=v2.asp;refl=v2.refl; ppartp=v2.ppartp; pparti=v2.pparti}; castva : (Verb ** { c:{c:Case; s:Str}}) -> Verb = \v2 -> {si=v2.si;sp=v2.sp;asp=v2.asp;refl=v2.refl; ppartp=v2.ppartp; pparti=v2.pparti}; castv2a : (Verb ** { c:{c:Case; s:Str}; c2:Complement}) -> Verb = \v2 -> {si=v2.si;sp=v2.sp;asp=v2.asp;refl=v2.refl; ppartp=v2.ppartp; pparti=v2.pparti}; defVP : Verb -> VerbPhrase = \v -> { prefix = ""; sufix = \\p,gn => ""; verb = v; imienne = False; exp = False }; setPrefix : VerbPhrase -> Str -> VerbPhrase = \vp,s -> { prefix = s; sufix = vp.sufix; postfix = vp.postfix; verb = vp.verb; imienne = vp.imienne; exp = vp.exp -- adding adverb is not an expansion }; setSufix : VerbPhrase -> (Polarity => GenNum => Str) -> VerbPhrase = \vp,s -> { prefix = vp.prefix; sufix = s; verb = vp.verb; imienne = vp.imienne; exp = True }; setSufix2 : VerbPhraseSlash -> (Polarity => GenNum => Str) -> VerbPhrase = \vp,s -> { prefix = vp.prefix; sufix = s; verb = vp.verb; imienne = vp.imienne; exp = True }; setSlash : VerbPhrase -> (Polarity => GenNum => Str) -> Complement -> VerbPhraseSlash = \vp,s,c -> { prefix = vp.prefix; sufix = s; postfix = \\_,_=>""; verb = vp.verb; imienne = vp.imienne; exp = True; c = c }; setPostfix : VerbPhrase -> (Polarity => GenNum => Str) -> Complement -> VerbPhraseSlash = \vp,s,c -> { prefix = vp.prefix; sufix = vp.sufix; postfix = s; verb = vp.verb; imienne = vp.imienne; exp = True; c=c }; setImienne : VerbPhrase -> Bool -> VerbPhrase = \vp,b -> { prefix = vp.prefix; sufix = vp.sufix; postfix = vp.postfix; verb = vp.verb; imienne = b; exp = True }; } ;
Grammatical Framework
4
daherb/gf-rgl
src/polish/VerbPol.gf
[ "BSD-3-Clause" ]
scale 2 rotate color green stroke wave(1000)*20 do 10 times rotate 5,1,2 scale wave(1000)+0.5 box end
Cycript
3
marcinbiegun/creativecoding-sketches
Cyril/data/code_old/7.cy
[ "MIT" ]
"""Sensor for the Austrian "Zentralanstalt für Meteorologie und Geodynamik".""" from __future__ import annotations import csv from dataclasses import dataclass from datetime import datetime, timedelta import gzip import json import logging import os from typing import Union from aiohttp.hdrs import USER_AGENT import requests import voluptuous as vol from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, ) from homeassistant.const import ( AREA_SQUARE_METERS, ATTR_ATTRIBUTION, CONF_LATITUDE, CONF_LONGITUDE, CONF_MONITORED_CONDITIONS, CONF_NAME, DEGREE, LENGTH_METERS, PERCENTAGE, PRESSURE_HPA, SPEED_KILOMETERS_PER_HOUR, TEMP_CELSIUS, __version__, ) from homeassistant.core import HomeAssistant import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity_platform import AddEntitiesCallback from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType from homeassistant.util import Throttle, dt as dt_util _LOGGER = logging.getLogger(__name__) ATTR_STATION = "station" ATTR_UPDATED = "updated" ATTRIBUTION = "Data provided by ZAMG" CONF_STATION_ID = "station_id" DEFAULT_NAME = "zamg" MIN_TIME_BETWEEN_UPDATES = timedelta(minutes=10) VIENNA_TIME_ZONE = dt_util.get_time_zone("Europe/Vienna") DTypeT = Union[type[int], type[float], type[str]] @dataclass class ZamgRequiredKeysMixin: """Mixin for required keys.""" col_heading: str dtype: DTypeT @dataclass class ZamgSensorEntityDescription(SensorEntityDescription, ZamgRequiredKeysMixin): """Describes Zamg sensor entity.""" SENSOR_TYPES: tuple[ZamgSensorEntityDescription, ...] = ( ZamgSensorEntityDescription( key="pressure", name="Pressure", native_unit_of_measurement=PRESSURE_HPA, col_heading="LDstat hPa", dtype=float, ), ZamgSensorEntityDescription( key="pressure_sealevel", name="Pressure at Sea Level", native_unit_of_measurement=PRESSURE_HPA, col_heading="LDred hPa", dtype=float, ), ZamgSensorEntityDescription( key="humidity", name="Humidity", native_unit_of_measurement=PERCENTAGE, col_heading="RF %", dtype=int, ), ZamgSensorEntityDescription( key="wind_speed", name="Wind Speed", native_unit_of_measurement=SPEED_KILOMETERS_PER_HOUR, col_heading=f"WG {SPEED_KILOMETERS_PER_HOUR}", dtype=float, ), ZamgSensorEntityDescription( key="wind_bearing", name="Wind Bearing", native_unit_of_measurement=DEGREE, col_heading=f"WR {DEGREE}", dtype=int, ), ZamgSensorEntityDescription( key="wind_max_speed", name="Top Wind Speed", native_unit_of_measurement=SPEED_KILOMETERS_PER_HOUR, col_heading=f"WSG {SPEED_KILOMETERS_PER_HOUR}", dtype=float, ), ZamgSensorEntityDescription( key="wind_max_bearing", name="Top Wind Bearing", native_unit_of_measurement=DEGREE, col_heading=f"WSR {DEGREE}", dtype=int, ), ZamgSensorEntityDescription( key="sun_last_hour", name="Sun Last Hour", native_unit_of_measurement=PERCENTAGE, col_heading=f"SO {PERCENTAGE}", dtype=int, ), ZamgSensorEntityDescription( key="temperature", name="Temperature", native_unit_of_measurement=TEMP_CELSIUS, device_class=SensorDeviceClass.TEMPERATURE, col_heading=f"T {TEMP_CELSIUS}", dtype=float, ), ZamgSensorEntityDescription( key="precipitation", name="Precipitation", native_unit_of_measurement=f"l/{AREA_SQUARE_METERS}", col_heading=f"N l/{AREA_SQUARE_METERS}", dtype=float, ), ZamgSensorEntityDescription( key="dewpoint", name="Dew Point", native_unit_of_measurement=TEMP_CELSIUS, device_class=SensorDeviceClass.TEMPERATURE, col_heading=f"TP {TEMP_CELSIUS}", dtype=float, ), # The following probably not useful for general consumption, # but we need them to fill in internal attributes ZamgSensorEntityDescription( key="station_name", name="Station Name", col_heading="Name", dtype=str, ), ZamgSensorEntityDescription( key="station_elevation", name="Station Elevation", native_unit_of_measurement=LENGTH_METERS, col_heading=f"Höhe {LENGTH_METERS}", dtype=int, ), ZamgSensorEntityDescription( key="update_date", name="Update Date", col_heading="Datum", dtype=str, ), ZamgSensorEntityDescription( key="update_time", name="Update Time", col_heading="Zeit", dtype=str, ), ) SENSOR_KEYS: list[str] = [desc.key for desc in SENSOR_TYPES] API_FIELDS: dict[str, tuple[str, DTypeT]] = { desc.col_heading: (desc.key, desc.dtype) for desc in SENSOR_TYPES } PLATFORM_SCHEMA = cv.PLATFORM_SCHEMA.extend( { vol.Required(CONF_MONITORED_CONDITIONS, default=["temperature"]): vol.All( cv.ensure_list, [vol.In(SENSOR_KEYS)] ), vol.Optional(CONF_STATION_ID): cv.string, vol.Optional(CONF_NAME, default=DEFAULT_NAME): cv.string, vol.Inclusive( CONF_LATITUDE, "coordinates", "Latitude and longitude must exist together" ): cv.latitude, vol.Inclusive( CONF_LONGITUDE, "coordinates", "Latitude and longitude must exist together" ): cv.longitude, } ) def setup_platform( hass: HomeAssistant, config: ConfigType, add_entities: AddEntitiesCallback, discovery_info: DiscoveryInfoType | None = None, ) -> None: """Set up the ZAMG sensor platform.""" name = config[CONF_NAME] latitude = config.get(CONF_LATITUDE, hass.config.latitude) longitude = config.get(CONF_LONGITUDE, hass.config.longitude) station_id = config.get(CONF_STATION_ID) or closest_station( latitude, longitude, hass.config.config_dir ) if station_id not in _get_ogd_stations(): _LOGGER.error( "Configured ZAMG %s (%s) is not a known station", CONF_STATION_ID, station_id, ) return probe = ZamgData(station_id=station_id) try: probe.update() except (ValueError, TypeError) as err: _LOGGER.error("Received error from ZAMG: %s", err) return monitored_conditions = config[CONF_MONITORED_CONDITIONS] add_entities( [ ZamgSensor(probe, name, description) for description in SENSOR_TYPES if description.key in monitored_conditions ], True, ) class ZamgSensor(SensorEntity): """Implementation of a ZAMG sensor.""" entity_description: ZamgSensorEntityDescription def __init__(self, probe, name, description: ZamgSensorEntityDescription): """Initialize the sensor.""" self.entity_description = description self.probe = probe self._attr_name = f"{name} {description.key}" @property def native_value(self): """Return the state of the sensor.""" return self.probe.get_data(self.entity_description.key) @property def extra_state_attributes(self): """Return the state attributes.""" return { ATTR_ATTRIBUTION: ATTRIBUTION, ATTR_STATION: self.probe.get_data("station_name"), ATTR_UPDATED: self.probe.last_update.isoformat(), } def update(self): """Delegate update to probe.""" self.probe.update() class ZamgData: """The class for handling the data retrieval.""" API_URL = "http://www.zamg.ac.at/ogd/" API_HEADERS = {USER_AGENT: f"home-assistant.zamg/ {__version__}"} def __init__(self, station_id): """Initialize the probe.""" self._station_id = station_id self.data = {} @property def last_update(self): """Return the timestamp of the most recent data.""" date, time = self.data.get("update_date"), self.data.get("update_time") if date is not None and time is not None: return datetime.strptime(date + time, "%d-%m-%Y%H:%M").replace( tzinfo=VIENNA_TIME_ZONE ) @classmethod def current_observations(cls): """Fetch the latest CSV data.""" try: response = requests.get(cls.API_URL, headers=cls.API_HEADERS, timeout=15) response.raise_for_status() response.encoding = "UTF8" return csv.DictReader( response.text.splitlines(), delimiter=";", quotechar='"' ) except requests.exceptions.HTTPError: _LOGGER.error("While fetching data") @Throttle(MIN_TIME_BETWEEN_UPDATES) def update(self): """Get the latest data from ZAMG.""" if self.last_update and ( self.last_update + timedelta(hours=1) > datetime.utcnow().replace(tzinfo=dt_util.UTC) ): return # Not time to update yet; data is only hourly for row in self.current_observations(): if row.get("Station") == self._station_id: self.data = { API_FIELDS[col_heading][0]: API_FIELDS[col_heading][1]( v.replace(",", ".") ) for col_heading, v in row.items() if col_heading in API_FIELDS and v } break else: raise ValueError(f"No weather data for station {self._station_id}") def get_data(self, variable): """Get the data.""" return self.data.get(variable) def _get_ogd_stations(): """Return all stations in the OGD dataset.""" return {r["Station"] for r in ZamgData.current_observations()} def _get_zamg_stations(): """Return {CONF_STATION: (lat, lon)} for all stations, for auto-config.""" capital_stations = _get_ogd_stations() req = requests.get( "https://www.zamg.ac.at/cms/en/documents/climate/" "doc_metnetwork/zamg-observation-points", timeout=15, ) stations = {} for row in csv.DictReader(req.text.splitlines(), delimiter=";", quotechar='"'): if row.get("synnr") in capital_stations: try: stations[row["synnr"]] = tuple( float(row[coord].replace(",", ".")) for coord in ("breite_dezi", "länge_dezi") ) except KeyError: _LOGGER.error("ZAMG schema changed again, cannot autodetect station") return stations def zamg_stations(cache_dir): """Return {CONF_STATION: (lat, lon)} for all stations, for auto-config. Results from internet requests are cached as compressed json, making subsequent calls very much faster. """ cache_file = os.path.join(cache_dir, ".zamg-stations.json.gz") if not os.path.isfile(cache_file): stations = _get_zamg_stations() with gzip.open(cache_file, "wt") as cache: json.dump(stations, cache, sort_keys=True) return stations with gzip.open(cache_file, "rt") as cache: return {k: tuple(v) for k, v in json.load(cache).items()} def closest_station(lat, lon, cache_dir): """Return the ZONE_ID.WMO_ID of the closest station to our lat/lon.""" if lat is None or lon is None or not os.path.isdir(cache_dir): return stations = zamg_stations(cache_dir) def comparable_dist(zamg_id): """Calculate the pseudo-distance from lat/lon.""" station_lat, station_lon = stations[zamg_id] return (lat - station_lat) ** 2 + (lon - station_lon) ** 2 return min(stations, key=comparable_dist)
Python
5
MrDelik/core
homeassistant/components/zamg/sensor.py
[ "Apache-2.0" ]
blank_issues_enabled: true contact_links: - name: Ask A Question url: https://github.com/3b1b/manim/discussions/categories/q-a about: Please ask questions you encountered here.
YAML
0
OrKedar/geo-manimgl-app
.github/ISSUE_TEMPLATE/config.yml
[ "MIT" ]
<div class="footer"> <div class="container"> <p> <span class="item">© 2014–2015 haskell.org</span> <span class="item footer-contribute"> Got changes to contribute? <a href="https://github.com/haskell-infra/hl"> Fork or comment on Github</a> </span> <span class="pull-right"> <span>Proudly hosted by </span> <a href="https://www.rackspace.com/"><img src="img/rackspace.svg" alt="rackspace" height="20" width="20"></a> </span> </p> </div> </div> <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-83290513-1', 'auto'); // ga('create', 'UA-78576289-1', 'auto'); // testing account ga('send', 'pageview'); function dl(me) { ga('send','event',{eventCategory:'Download', eventAction:'Download HP', eventLabel:me.href}) return true } </script>
mupad
3
TikhonJelvis/haskell-platform
website/templates/plan-a/footer.mu
[ "BSD-3-Clause" ]
<#macro guide title summary includedOptions=""> :title: ${title} :summary: ${summary} [[${ctx.getAnchor(title)}]] = {title} {summary} <#nested> <#if includedOptions?has_content> == Relevant options |=== |Key|CLI|ENV|Description|Default|Values <#list ctx.options.getOptions(includedOptions) as option> |${option.key} |${option.keyCli} |${option.keyEnv} |${option.description} |${option.defaultValue!} |${option.expectedValues?join(", ")} <#if option?has_next> </#if> </#list> |=== </#if> </#macro>
AsciiDoc
4
sre4ever/keycloak
docs/guides/src/main/templates/guide.adoc
[ "Apache-2.0" ]
--TEST-- Bug #19566 (get_declared_classes() segfaults) --FILE-- <?php class foo {} $result = get_declared_classes(); var_dump(array_search('foo', $result)); ?> --EXPECTF-- int(%d)
PHP
4
guomoumou123/php5.5.10
tests/lang/bug19566.phpt
[ "PHP-3.01" ]
package Test3; import FIFO::*; module mkTb (); Reg#(int) cnt <- mkReg(0); Wire#(int) w1 <- mkWire; // w1 用于构造隐式条件 rule up_counter; cnt <= cnt + 1; if(cnt < 2) w1 <= cnt + 1; // 只有在 cnt<2 时写 w1 if(cnt > 5) $finish; endrule Reg#(int) x <- mkReg(1); Reg#(int) y <- mkReg(2); (* descending_urgency = "y2x, x2y" *) rule x2y; y <= x + 1; // 读 x,写 y endrule rule y2x; x <= y + w1; // 读 y,写 x ,注意读 w1 是有隐式条件的! endrule rule show; $display("cnt=%1d x=%1d y=%1d", cnt, x, y); endrule endmodule endpackage
Bluespec
4
Xiefengshang/BSV_Tutorial_cn
src/9.RuleUrgency/Test3.bsv
[ "MIT" ]
unit t_main; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, aPLib, ExtCtrls, StdCtrls, ComCtrls; type TfrmMain = class(TForm) aPLib: TaPLib; Button1: TButton; Button2: TButton; Panel1: TPanel; OD: TOpenDialog; GroupBox1: TGroupBox; PB: TProgressBar; Label3: TLabel; Label4: TLabel; Label1: TLabel; Label2: TLabel; Label5: TLabel; CancelBtn: TButton; procedure Button1Click(Sender: TObject); procedure Button2Click(Sender: TObject); procedure CancelBtnClick(Sender: TObject); private { Private declarations } public Cancel : Boolean; FileSize : DWORD; end; (*$IFDEF DYNAMIC_VERSION*) function CallBack(w0, w1, w2 : DWORD; cbparam : Pointer) : DWORD;stdcall; (*$ELSE*) function CallBack(w0, w1, w2 : DWORD; cbparam : Pointer) : DWORD;cdecl; (*$ENDIF*) var frmMain: TfrmMain; implementation {$R *.DFM} function CallBack(w0, w1, w2 : DWORD; cbparam : Pointer) : DWORD; begin with frmMain do begin Label4.Caption := FormatFloat('##%', ((FileSize - (w1-w2))/FileSize) * 100); PB.Position := Round(w1/FileSize*100); Application.ProcessMessages; if Cancel then Result := aP_pack_break else Result := aP_pack_continue; end; end; procedure TfrmMain.Button1Click(Sender: TObject); var FileIn, FileOut : TFileStream; Length : DWORD; Buffer : Pointer; begin if not OD.Execute then Exit; FileIn := TFileStream.Create(OD.FileName,fmOpenRead or fmShareDenyWrite); GetMem(Buffer, FileIn.Size); Length := FileIn.Size; FileIn.Read(Buffer^, Length); aPLib.Source := Buffer; aPLib.Length := Length; aPlib.CallBack := @CallBack; FileSize := FileIn.Size; Cancel := False; CancelBtn.Enabled := True; aPLib.Pack; FileIn.Destroy; if aPLib.Length = 0 then Exit; FileOut := TFileStream.Create(ExtractFilePath(OD.FileName)+'out.apk', fmCreate); FileOut.Write(aPLib.Destination^, aPLib.Length); FileOut.Destroy; CancelBtn.Enabled := False; ShowMessage('Packed file name is out.apk !'); end; procedure TfrmMain.Button2Click(Sender: TObject); var FileIn, FileOut : TFileStream; Length : DWORD; Buffer : Pointer; begin if not OD.Execute then Exit; FileIn := TFileStream.Create(OD.FileName,fmOpenRead or fmShareDenyWrite); GetMem(Buffer, Length); Length := FileIn.Size; FileIn.Read(Buffer^, Length); aPLib.Source := Buffer; aPLib.Length := Length; aPLib.DePack; FileIn.Destroy; FileOut := TFileStream.Create(ExtractFilePath(OD.FileName)+'out.dat', fmCreate or fmOpenWrite); FileOut.Write(aPLib.Destination^, aPLib.Length); FileOut.Destroy; ShowMessage('Original file name is out.dat !'); end; procedure TfrmMain.CancelBtnClick(Sender: TObject); begin Cancel := True; end; end.
Pascal
3
nehalem501/gendev
tools/files/applib/contrib/delphi/t_main.pas
[ "BSD-3-Clause" ]
Opt("WinTitleMatchMode", 2) If WinExists("VLC") Then WinActivate("VLC", "") EndIf Send("{Media_Next}")
AutoIt
3
Aleks130699/majordomo
rc/scripts/vlc_next.au3
[ "MIT" ]
--TEST-- Bug #77613 (method visibility change) --FILE-- <?php class A { public function __construct() { static $foo; } } class B extends A { } class C extends B { private function __construct() {} } ?> OK --EXPECT-- OK
PHP
4
thiagooak/php-src
Zend/tests/bug77613.phpt
[ "PHP-3.01" ]