hexsha
stringlengths
40
40
size
int64
5
1.05M
ext
stringclasses
98 values
lang
stringclasses
21 values
max_stars_repo_path
stringlengths
3
945
max_stars_repo_name
stringlengths
4
118
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
945
max_issues_repo_name
stringlengths
4
118
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
134k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
945
max_forks_repo_name
stringlengths
4
135
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
1.05M
avg_line_length
float64
1
1.03M
max_line_length
int64
2
1.03M
alphanum_fraction
float64
0
1
74472e5cdaae0ef3ddf933b119918d5f09f2e453
11,408
asm
Assembly
ASM/hexdump_nasm.asm
k1nm3nh4ck3r/OpenSecurityTrainingTaiwan
4f3a2337387851b6ca7c2cb63e1d62e9a564ab5b
[ "MIT" ]
9
2019-02-15T02:51:21.000Z
2019-09-07T08:42:27.000Z
ASM/hexdump_nasm.asm
k1nm3nh4ck3r/OpenSecurityTrainingTaiwan
4f3a2337387851b6ca7c2cb63e1d62e9a564ab5b
[ "MIT" ]
null
null
null
ASM/hexdump_nasm.asm
k1nm3nh4ck3r/OpenSecurityTrainingTaiwan
4f3a2337387851b6ca7c2cb63e1d62e9a564ab5b
[ "MIT" ]
3
2019-03-02T08:18:31.000Z
2019-03-02T17:39:03.000Z
[bits 16] ;org 100h CR EQU 0dh LF EQU 0ah MAX EQU 0ffh ; 0-max segment code ..start: mov ax,data ; Move segment address of data segment into AX mov ds,ax ; Copy address from AX into DS mov ax,stack ; Move segment address of stack segment into AX mov ss,ax ; Copy address from AX into SS mov sp,stacktop ; Point SP to the top of the stack ;push dx ;mov dx, codedumpstr ;call print_string ;pop dx ;mov cx, cs ;push ds ;mov bx, ss ;mov ds, bx ;mov bx, sp ;mov bx, word [bx + 18] ;pop ds ;sub bx, 3 ;call address_dump call print_register_detail call dump_all mov ax, 4c00h int 21h ret print_register_detail: pusha push si push di push dx ;mov ax, ax mov dx, axstr call print_string call print_num_detail mov dx, bxstr call print_string mov ax, bx call print_num_detail mov dx, cxstr call print_string mov ax, cx call print_num_detail mov dx, dxstr call print_string pop dx mov ax, dx call print_num_detail mov dx, sistr call print_string mov ax, si call print_num_detail mov dx, distr call print_string mov ax, di call print_num_detail mov dx, bpstr call print_string mov ax, bp call print_num_detail mov dx, spstr call print_string mov ax, sp add ax, 22 call print_num_detail mov dx, csstr call print_string mov ax, cs call print_num_detail mov dx, dsstr call print_string mov ax, ds call print_num_detail mov dx, esstr call print_string mov ax, es call print_num_detail mov dx, ssstr call print_string mov ax, ss call print_num_detail mov dx, ipstr call print_string push ds mov ax, ss mov ds, ax mov bx, sp add bx, 22 ;call debug_stack mov ax, [bx] ; get return address sub ax, 3 ; get ip before call pop ds call print_num_detail mov dx, flagstr call print_string pushf pop ax call print_num_detail pop di pop si popa ret print_num_detail: pusha mov cx, 30h mov dx, base2str call print_string call print_ax_withprefix_bin mov dx, base8str call print_string call print_ax_withprefix_oct mov dx, base10str call print_string call print_ax_withprefix_dec mov dx, base16str call print_string call print_ax_withprefix_hex call print_newline popa ret address_dump: ; cx is the section, bx is address pusha mov dx, bx push ds mov bx, cx mov ds, bx mov bx, dx lea bx, [bx] pop ds call print_address_header call print_hex_dump ; print line mov cx, 75 print_addrhead_line_dump_end: mov dl, '=' mov ah, 2 int 21h loop print_addrhead_line_dump_end call print_newline popa ret print_address_header: ; cx is the section, bx is the address pusha push bx push dx mov dx, addressdumpstr call print_string pop dx mov ax, cx mov bl, 10h call print_ax_withprefix mov dl, ':' mov ah, 2 int 21h pop bx mov ax, bx mov bl, 10h call print_ax_withprefix call print_newline ; print space mov cx, 11 print_addrhead_space: mov dl, ' ' mov ah, 2 int 21h loop print_addrhead_space ; print hex char header mov cx, 16 print_addrhead_hex: push cx mov ax, 16 sub ax, cx mov cx, ax ; if ax < 16 cmp ax, 16 jge no_prefix_print_addrhead mov dl, '0' mov ah, 2 int 21h no_prefix_print_addrhead: mov ax, cx call print_ax_hex mov dl, ' ' mov ah, 2 int 21h pop cx loop print_addrhead_hex ; print split space ;mov dl, ' ' ;mov ah, 2 ;int 21h ; print hex char header mov cx, 16 print_addrhead_hex_char: push cx mov ax, 16 sub ax, cx mov cx, ax mov ax, cx call print_ax_hex pop cx loop print_addrhead_hex_char call print_newline ; print line mov cx, 75 print_addrhead_line: mov dl, '=' mov ah, 2 int 21h loop print_addrhead_line call print_newline popa ret print_hex_dump: pusha mov dx, cx ;mov ax, 05678h push ax ;mov ax, 01234h push ax mov cx, 0 print_hex_dump_start: cmp cx, MAX jg print_hex_dump_exit pusha add cx, bx push ds mov ax, ss mov ds, ax mov bx, sp ; 34, 36 taint analysis ;mov dx, 05678h mov [bx+18], dx ;34 ;mov cx, 01234h mov [bx+20], cx ;36 ;mov word ptr [bx+10], ax ;mov word ptr [bx+12], ax pop ds ;push ds ;call debug_stack ;pop ds popa ;call debug_stack call print_address push ds push bx push cx push dx mov ds, dx add bx, cx mov al, byte [bx] pop dx pop cx pop bx pop ds push bx mov bl, 10h call print_hex_char pop bx push dx mov dl, ' ' mov al, 0 mov ah, 02 int 21h pop dx call print_printable_char_slashn inc cx jmp print_hex_dump_start print_hex_dump_exit: pop ax pop ax popa ret print_address: pusha mov ax, cx xor dx, dx mov bx, 16 div bx cmp dx, 0 jnz print_address_no pusha push ds mov bx, ss mov ds, bx mov bx, sp mov ax, word [bx+36] pop ds mov bl, 10h call print_ax_withprefix mov dl, ':' mov ah, 2 int 21h push ds mov bx, ss mov ds, bx mov bx, sp mov ax, word [bx+38] pop ds mov bl, 10h call print_ax_withprefix mov dl, ' ' mov ah, 2 int 21h mov dl, ' ' mov ah, 2 int 21h popa print_address_no: popa ret get_wordnum_max: ; ax = number, bl = base push bx push cx push dx mov bh, 0 xor cx, cx get_wordnum_max_start: cmp ax, 0 jz get_wordnum_max_end xor dx, dx mov bh, 0 div bx inc cx jmp get_wordnum_max_start get_wordnum_max_end: mov ax, cx pop dx pop cx pop bx ret print_hex_char: ; al is the char pusha ; prefix = base xor ah,ah mov bl, 10h push ax call get_wordnum_max ; print stack mov bx, ax pop ax cmp bx, 2 jge no_prefix push ax mov dl, '0' mov ah, 2 int 21h pop ax no_prefix: push dx push bx xor dx,dx mov bl, 10h call print_ax pop bx pop dx popa ret print_printable_char_slashn: pusha ; compare to cx & print \n push ax push bx push dx mov ax, cx inc ax xor dx, dx mov bx, 16 div bx cmp dx, 0 jnz print_slashn_no pop dx pop bx pop ax call print_printable_line call print_newline jmp print_slashn_no_exit print_slashn_no: pop dx pop bx pop ax print_slashn_no_exit: popa ret print_printable_line: pusha mov ax, cx mov cx, 0 print_printable_line_start: cmp cx, 15 jg print_printable_line_exit push ax push ds push bx mov ds, dx add bx, ax sub bx, 15 add bx, cx mov al, byte [bx] pop bx pop ds call print_printable_char pop ax inc cx jmp print_printable_line_start print_printable_line_exit: popa ret print_printable_char: ; al is character pusha cmp al, 32 jl print_nonprintable_char cmp al, 126 jg print_nonprintable_char mov dl, al mov al, 0 mov ah, 2 int 21h jmp print_printable_char_end print_nonprintable_char: mov dl, '.' mov al, 0 mov ah, 2 int 21h print_printable_char_end: popa ret print_string: ; ds:dx = string push dx push ax mov ah, 09h int 21h pop ax pop dx ret print_newline: ; just print new line push dx push ax mov dl, CR mov ah, 02h int 21h mov dl, LF int 21h pop ax pop dx ret print_ax_withprefix_hex: pusha ;mov ax, cx mov bl, 10h call print_ax_withprefix popa ret print_ax_withprefix_dec: pusha ;mov ax, cx mov bl, 0ah call print_ax_withprefix popa ret print_ax_withprefix_oct: pusha ;mov ax, cx mov bl, 8h call print_ax_withprefix popa ret print_ax_withprefix_bin: pusha ;mov ax, cx mov bl, 2h call print_ax_withprefix popa ret print_ax_hex: pusha ;mov ax, cx mov bl, 10h call print_ax popa ret print_ax_dec: pusha ;mov ax, cx mov bl, 0ah call print_ax popa ret print_ax_oct: pusha ;mov ax, cx mov bl, 8h call print_ax popa ret print_ax_bin: pusha ;mov ax, cx mov bl, 2h call print_ax popa ret get_ax_logbasecountmax: ; bl = base ;pusha push bx push cx push dx mov bh, 0 xor cx, cx mov ax, 0ffffh get_wordbase_max_start: cmp ax, 0 jz get_wordbase_max_end xor dx, dx mov bh, 0 div bx inc cx jmp get_wordbase_max_start get_wordbase_max_end: mov ax, cx pop dx pop cx pop bx ret print_prefix0: ; cx = count pusha mov cx, ax cmp cx, 0 jz exit_print_prefix0 start_print_prefix0: mov dl, '0' mov ah, 2 int 21h loop start_print_prefix0 exit_print_prefix0: popa ret print_ax_withprefix: ; ax = number, bl = base pusha mov bh, 0 xor cx, cx cmp ax, 0 jnz start_divide10_withprefix call get_ax_logbasecountmax call print_prefix0 jmp exit_print_out_withprefix start_divide10_withprefix: cmp ax, 0 jz start_print_out_withprefix xor dx, dx ;mov bx, 0ah div bx push dx inc cx jmp start_divide10_withprefix start_print_out_withprefix: pusha call get_ax_logbasecountmax sub ax, cx call print_prefix0 popa start_print_out_loop_withprefix: cmp cx, 0 jle exit_print_out_withprefix pop ax mov bx, hexstrtable xlat mov dl, al mov ah, 02h int 21h loop start_print_out_loop_withprefix exit_print_out_withprefix: popa ret print_ax: ; ax = number, bl = base pusha mov bh, 0 xor cx, cx cmp ax, 0 jz output_zero start_divide10: cmp ax, 0 jz start_print_out xor dx, dx ;mov bx, 0ah div bx push dx inc cx jmp start_divide10 start_print_out: cmp cx, 0 jle exit_print_out pop ax output_zero: mov bx, hexstrtable xlat mov dl, al mov ah, 02h int 21h loop start_print_out exit_print_out: popa ret dump_all: pusha ; stack dump push dx mov dx, stackdumpstr call print_string pop dx mov cx, ss mov bx, sp add bx, 18 call address_dump ; pc code dump push dx mov dx, codedumpstr call print_string pop dx mov cx, cs ;call print_cssection_dump_getip ;print_cssection_dump_getip: ;pop bx push ds mov bx, ss mov ds, bx mov bx, sp mov bx, word [bx + 18] pop ds sub bx, 3 ;call print_register_detail ;call debug_stack ;int 3 call address_dump ; ss dump push dx mov dx, ssstr2 call print_string pop dx mov cx, ss mov bx, 0 call address_dump ; cs dump push dx mov dx, csstr2 call print_string pop dx mov cx, cs mov bx, 0 call address_dump ; ds dump push dx mov dx, dsstr2 call print_string pop dx mov cx, ds mov bx, 0 call address_dump ;es dump push dx mov dx, esstr2 call print_string pop dx mov cx, es mov bx, 0 call address_dump popa ret segment data hexstrtable db '0123456789ABCDEF', 0 axstr db 'AX = $' bxstr db 'BX = $' cxstr db 'CX = $' dxstr db 'DX = $' sistr db 'SI = $' distr db 'DI = $' bpstr db 'BP = $' spstr db 'SP = $' csstr db 'CS = $' dsstr db 'DS = $' esstr db 'ES = $' ssstr db 'SS = $' ipstr db 'IP = $' stackdumpstr db 'Stack dump at SP = $' codedumpstr db 'Code dump at IP = $' addressdumpstr db 'dump at = $' csstr2 db 'CS $' dsstr2 db 'DS $' esstr2 db 'ES $' ssstr2 db 'SS $' flagstr db 'FLAG = $' base2str db '2:$' base8str db 'b, 8:0o$' base10str db ', 10:$' base16str db ', 16:0x$' segment stack stack resb 64 stacktop:
14.873533
62
0.656907
2dad977eee17f8a611e893a7ccd74fe37d23fa64
527
kt
Kotlin
app/src/main/java/ru/luckycactus/steamroulette/domain/games/SetGamesHiddenUseCase.kt
luckycactus/steam-roulette
285530179743f1274595eebb07211cd470ef7928
[ "Apache-2.0" ]
5
2020-04-18T10:33:10.000Z
2021-09-13T19:13:44.000Z
app/src/main/java/ru/luckycactus/steamroulette/domain/games/SetGamesHiddenUseCase.kt
luckycactus/steam-roulette
285530179743f1274595eebb07211cd470ef7928
[ "Apache-2.0" ]
null
null
null
app/src/main/java/ru/luckycactus/steamroulette/domain/games/SetGamesHiddenUseCase.kt
luckycactus/steam-roulette
285530179743f1274595eebb07211cd470ef7928
[ "Apache-2.0" ]
null
null
null
package ru.luckycactus.steamroulette.domain.games import ru.luckycactus.steamroulette.domain.core.usecase.SuspendUseCase import javax.inject.Inject class SetGamesHiddenUseCase @Inject constructor( private val gamesRepository: GamesRepository ) : SuspendUseCase<SetGamesHiddenUseCase.Params, Unit>() { override suspend fun execute(params: Params) { gamesRepository.setOwnedGamesHidden(params.gameIds, params.hide) } data class Params( val gameIds: List<Int>, val hide: Boolean ) }
29.277778
72
0.755218
6e4ce336e82bce9da7fb7a8ef5a9c9652bfa5cad
1,355
swift
Swift
Favourite Check Ins for Service NSW/QrCodeCameraDelegate.swift
ryanjchr/favourite-check-ins-for-nsw
a1c3d9be38c15b77582ea0fe0a4f529c9afb9a7a
[ "MIT" ]
null
null
null
Favourite Check Ins for Service NSW/QrCodeCameraDelegate.swift
ryanjchr/favourite-check-ins-for-nsw
a1c3d9be38c15b77582ea0fe0a4f529c9afb9a7a
[ "MIT" ]
null
null
null
Favourite Check Ins for Service NSW/QrCodeCameraDelegate.swift
ryanjchr/favourite-check-ins-for-nsw
a1c3d9be38c15b77582ea0fe0a4f529c9afb9a7a
[ "MIT" ]
null
null
null
import Foundation import AVFoundation class QrCodeCameraDelegate: NSObject, AVCaptureMetadataOutputObjectsDelegate { var scanInterval: Double = 1.0 var lastTime = Date(timeIntervalSince1970: 0) var onResult: (String) -> Void = { _ in } var mockData: String? func metadataOutput(_ output: AVCaptureMetadataOutput, didOutput metadataObjects: [AVMetadataObject], from connection: AVCaptureConnection) { if let metadataObject = metadataObjects.first { guard let readableObject = metadataObject as? AVMetadataMachineReadableCodeObject else { return } guard let stringValue = readableObject.stringValue else { return } foundBarcode(stringValue) } } @objc func onSimulateScanning(){ // Fake business data in the form Service NSW QR codes store it foundBarcode(mockData ?? "https://www.service.nsw.gov.au/campaign/service-nsw-mobile-app?data=eyJ0IjoiY292aWQxOV9idXNpbmVzcyIsImJpZCI6IjAwMDAwMDAwMDAwMCIsImJuYW1lIjoiRmFrZSBCdXNpbmVzcyIsImJhZGRyZXNzIjoiOTk5OSBNY0V2b3kgU3RyZWV0LCBBbGV4YW5kcmlhIE5TVywgQVVTVFJBTElBIn0") } func foundBarcode(_ stringValue: String) { let now = Date() if now.timeIntervalSince(lastTime) >= scanInterval { lastTime = now self.onResult(stringValue) } } }
39.852941
275
0.712915
f644bd58bd71a8c5ee3f594d437fdfe71d86c952
2,692
ps1
PowerShell
Rivet/Functions/Columns/New-XmlColumn.ps1
webmd-health-services/Rivet
b9335738eeec9ad80648fe9b996ca00b11584517
[ "Apache-2.0" ]
4
2017-06-22T01:57:18.000Z
2020-10-31T17:45:52.000Z
Rivet/Functions/Columns/New-XmlColumn.ps1
RivetDB/Rivet
1d2fc020756ad13eac47e91f9cd936823cf02d05
[ "Apache-2.0" ]
19
2017-08-11T18:01:48.000Z
2021-06-04T00:23:55.000Z
Rivet/Functions/Columns/New-XmlColumn.ps1
RivetDB/Rivet
1d2fc020756ad13eac47e91f9cd936823cf02d05
[ "Apache-2.0" ]
1
2019-06-14T15:24:19.000Z
2019-06-14T15:24:19.000Z
function New-XmlColumn { <# .SYNOPSIS Creates a column object representing an Xml datatype. .DESCRIPTION Use this function in the `Column` script block for `Add-Table`: Add-Table -Name 'WebConfigs' -Column { Xml 'WebConfig' -XmlSchemaCollection 'webconfigschema' } Remember you have to have already created the XML schema before creating a column that uses it. ## ALIASES * Xml .EXAMPLE Add-Table 'WebConfigs' { Xml 'WebConfig' -XmlSchemaCollection 'webconfigschema' } Demonstrates how to create an optional `xml` column which uses the `webconfigschema` schema collection. .EXAMPLE Add-Table 'WebConfigs' { Xml 'WebConfig' -XmlSchemaCollection 'webconfigschema' -NotNull } Demonstrates how to create a required `xml` column. .EXAMPLE Add-Table 'WebConfigs' { Xml 'WebConfig' -XmlSchemaCollection 'webconfigschema'' -Document } Demonstrates how to create an `xml` column that holds an entire XML document. #> [CmdletBinding(DefaultParameterSetName='Nullable')] param( [Parameter(Mandatory,Position=0)] # The column's name. [String]$Name, [Parameter(Position=1)] # Name of an XML schema collection [String]$XmlSchemaCollection, # Specifies that this is a well-formed XML document instead of an XML fragment. [switch]$Document, [Parameter(Mandatory,ParameterSetName='NotNull')] # Don't allow `NULL` values in this column. [switch]$NotNull, [Parameter(ParameterSetName='Nullable')] # Store nulls as Sparse. [switch]$Sparse, # A SQL Server expression for the column's default value [String]$Default, # The name of the default constraint for the column's default expression. Required if the Default parameter is given. [String]$DefaultConstraintName, # A description of the column. [String]$Description ) $nullable = [Rivet.Nullable]::Null if( $PSCmdlet.ParameterSetName -eq 'NotNull' ) { $nullable = [Rivet.Nullable]::NotNull } else { if( $Sparse ) { $nullable = [Rivet.Nullable]::Sparse } } if( $XmlSchemaCollection ) { [Rivet.Column]::Xml($Name, $Document, $XmlSchemaCollection, $nullable, $Default, $DefaultConstraintName, $Description) } else { [Rivet.Column]::Xml($Name, $nullable, $Default, $DefaultConstraintName, $Description) } } Set-Alias -Name 'Xml' -Value 'New-XmlColumn'
29.911111
127
0.618871
5a5e9a29c9cd564a6cc45d28c56bbdd1a5271725
2,179
html
HTML
docs/api/math/Cylindrical.html
sean041/three.js
c21050599ecc97564502e931377000e9ef598512
[ "MIT" ]
1
2018-08-09T18:34:32.000Z
2018-08-09T18:34:32.000Z
docs/api/math/Cylindrical.html
sean041/three.js
c21050599ecc97564502e931377000e9ef598512
[ "MIT" ]
2
2019-03-22T10:51:53.000Z
2019-05-15T17:28:22.000Z
docs/api/math/Cylindrical.html
sean041/three.js
c21050599ecc97564502e931377000e9ef598512
[ "MIT" ]
3
2019-02-23T19:06:42.000Z
2019-05-15T05:30:30.000Z
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <base href="../../" /> <script src="list.js"></script> <script src="page.js"></script> <link type="text/css" rel="stylesheet" href="page.css" /> </head> <body> <h1>[name]</h1> <p class="desc"> A point's [link:https://en.wikipedia.org/wiki/Cylindrical_coordinate_system cylindrical coordinates]. </p> <h2>Constructor</h2> <h3>[name]( [param:Float radius], [param:Float theta], [param:Float y] )</h3> <p> [page:Float radius] - distance from the origin to a point in the x-z plane. Default is *1.0*.<br /> [page:Float theta] - counterclockwise angle in the x-z plane measured in radians from the positive z-axis. Default is *0*.<br /> [page:Float y] - height above the x-z plane. Default is *0*. </p> <h2>Properties</h2> <h3>[property:Float radius]</h3> <h3>[property:Float theta]</h3> <h3>[property:Float y]</h3> <h2>Methods</h2> <h3>[method:Cylindrical clone]()</h3> <p> Returns a new cylindrical with the same [page:.radius radius], [page:.theta theta] and [page:.y y] properties as this one. </p> <h3>[method:Cylindrical copy]( [param:Cylindrical other] )</h3> <p> Copies the values of the passed Cylindrical's [page:.radius radius], [page:.theta theta] and [page:.y y] properties to this cylindrical. </p> <h3>[method:Cylindrical set]( [param:Float radius], [param:Float theta], [param:Float y] )</h3> <p>Sets values of this cylindrical's [page:.radius radius], [page:.theta theta] and [page:.y y] properties.</p> <h3>[method:Cylindrical setFromVector3]( [param:Vector3 vec3] )</h3> <p> Sets values of this cylindrical's [page:.radius radius], [page:.theta theta] and [page:.y y] properties from the [page:Vector3 Vector3].<br /><br /> The [page:.radius radius] is set the vector's distance from the origin as measured along the the x-z plane, while [page:.theta theta] is set from its direction on the the x-z plane and [page:.y y] is set from the vector's y component. </p> <h2>Source</h2> [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js] </body> </html>
30.263889
104
0.656264
cb466fea7806b467d5e2d16c682aefe5501604f2
5,999
h
C
third_party/nuke/lib/Fuser/ShaderNode.h
hickb/dwa_usd_plugins
dba7f65c080fc70c55e1cccf70f9fe944ab53b07
[ "Apache-2.0" ]
85
2019-07-27T04:21:19.000Z
2021-12-16T04:06:29.000Z
third_party/nuke/lib/Fuser/ShaderNode.h
hickb/dwa_usd_plugins
dba7f65c080fc70c55e1cccf70f9fe944ab53b07
[ "Apache-2.0" ]
10
2019-07-31T14:45:46.000Z
2020-09-02T18:15:51.000Z
third_party/nuke/lib/Fuser/ShaderNode.h
hickb/dwa_usd_plugins
dba7f65c080fc70c55e1cccf70f9fe944ab53b07
[ "Apache-2.0" ]
16
2019-07-28T06:53:02.000Z
2021-08-11T23:51:40.000Z
// // Copyright 2019 DreamWorks Animation // // Licensed under the Apache License, Version 2.0 (the "Apache License") // with the following modification; you may not use this file except in // compliance with the Apache License and the following modification to it: // Section 6. Trademarks. is deleted and replaced with: // // 6. Trademarks. This License does not grant permission to use the trade // names, trademarks, service marks, or product names of the Licensor // and its affiliates, except as required to comply with Section 4(c) of // the License and to reproduce the content of the NOTICE file. // // You may obtain a copy of the Apache License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the Apache License with the above modification is // distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the Apache License for the specific // language governing permissions and limitations under the Apache License. // /// @file Fuser/ShaderNode.h /// /// @author Jonathan Egstad #ifndef Fuser_ShaderNode_h #define Fuser_ShaderNode_h #include "Node.h" #include "AttributeTypes.h" namespace Fsr { typedef std::map<std::string, int32_t> NamedInputMap; /*! A ShaderNode contains attributes and ShaderNode inputs and outputs. In the scope of Fuser it's simply a storage node that may have additional ShaderNode children and stores the attributes from a (usually) imported Shader from USD or other scenegraph system. This node and its children are translated into real shader implementations for whatever system is trying to use them. TODO: continue fleshing this concept out */ class FSR_EXPORT ShaderNode : public Fsr::Node { public: /*! */ struct InputBinding { std::string name; std::string type; std::string value; ShaderNode* source_shader; std::string source_output_name; //! InputBinding() : source_shader(NULL) {} InputBinding(const InputBinding& b) { name = b.name; type = b.type; value = b.value; source_shader = b.source_shader; source_output_name = b.source_output_name; } }; protected: std::vector<InputBinding> m_inputs; //!< Input connections NamedInputMap m_input_name_map; //!< Map of input names to m_inputs index std::vector<ShaderNode*> m_outputs; protected: //! Subclass implementation of connectInput(). virtual void _connectInput(uint32_t input_index, ShaderNode* to_shader, const char* to_shader_output_name); public: //! ShaderNode(Node* parent=NULL); //! ShaderNode(const ArgSet& args, Node* parent=NULL); /*! Must have a virtual destructor! Dtor necessary to avoid GCC 'undefined reference to `vtable...' link error. */ virtual ~ShaderNode(); //! Specialized to return child cast to ShaderNode. ShaderNode* getChild(unsigned index) const { assert(index < m_children.size()); return static_cast<ShaderNode*>(m_children[index]); } //! Returns NULL if named node not in child list. Specialized to return child cast to ShaderNode. ShaderNode* getChildByName(const char* child_name) const; ShaderNode* getChildByName(const std::string& child_name) const { return this->getChildByName(child_name.c_str()); } //! Returns NULL if a node with the path is not found in child list. Specialized to return child cast to ShaderNode. ShaderNode* getChildByPath(const char* child_path) const; ShaderNode* getChildByPath(const std::string& child_path) const { return this->getChildByPath(child_path.c_str()); } //! Returns the number of inputs. uint32_t numInputs() const { return (uint32_t)m_inputs.size(); } //! Sets the number of inputs of this shader. New inputs beyond the current are set to NULL. void setNumInputs(uint32_t numInputs); //! Returns binding for input. No range checking! const InputBinding& getInput(uint32_t input) const { return m_inputs[input]; } //! Return a named input's index or -1 if not found. int32_t getInputByName(const char* input_name) const; //! Return the input name if assigned. No range checking! const char* getInputName(uint32_t input) const { return m_inputs[input].name.c_str(); } //! Return the input name if assigned. No range checking! const char* getInputType(uint32_t input) const { return m_inputs[input].type.c_str(); } //! Returns shader pointer for input. No range checking! ShaderNode* getInputConnection(uint32_t input) const { return m_inputs[input].source_shader; } //! Assign an input's values but don't connect it. void setInput(uint32_t input, const char* name, const char* type, const char* value=""); //! void setInputValue(uint32_t input, const char* value); //! Returns true if input can connect to shader. virtual bool canConnect(uint32_t input, ShaderNode* to_shader, const char* to_shader_output_name); //! Assign the input ShaderNode pointer for input, returning true if connection was made. bool connectInput(uint32_t input, ShaderNode* to_shader, const char* to_shader_output_name="rgb"); //! Print some info about shader settings. void printInfo(std::ostream&, const char* prefix="") const; }; } // namespace Fsr #endif // end of Fuser/ShaderNode.h // // Copyright 2019 DreamWorks Animation //
35.708333
137
0.657276
d5099befc17f1946fdb818da4e34565c047efa72
1,312
dart
Dart
apps/flutter_parent/lib/utils/common_widgets/view_attachment/viewers/unknown_attachment_type_viewer.dart
annhienktuit/canvas-android
7f8b454ce3949ddd4bbcce15e2c66fa5061cc0f0
[ "Apache-2.0" ]
93
2019-04-07T22:57:47.000Z
2022-02-27T20:20:22.000Z
apps/flutter_parent/lib/utils/common_widgets/view_attachment/viewers/unknown_attachment_type_viewer.dart
annhienktuit/canvas-android
7f8b454ce3949ddd4bbcce15e2c66fa5061cc0f0
[ "Apache-2.0" ]
939
2019-04-04T17:55:31.000Z
2022-03-31T14:57:48.000Z
apps/flutter_parent/lib/utils/common_widgets/view_attachment/viewers/unknown_attachment_type_viewer.dart
annhienktuit/canvas-android
7f8b454ce3949ddd4bbcce15e2c66fa5061cc0f0
[ "Apache-2.0" ]
72
2019-04-11T09:26:25.000Z
2022-03-02T13:44:12.000Z
// Copyright (C) 2020 - present Instructure, Inc. // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, version 3 of the License. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. import 'package:flutter/material.dart'; import 'package:flutter_parent/l10n/app_localizations.dart'; import 'package:flutter_parent/models/attachment.dart'; import 'package:flutter_parent/utils/common_widgets/empty_panda_widget.dart'; class UnknownAttachmentTypeViewer extends StatelessWidget { final Attachment attachment; const UnknownAttachmentTypeViewer(this.attachment, {Key key}) : super(key: key); @override Widget build(BuildContext context) { return EmptyPandaWidget( svgPath: 'assets/svg/panda-not-supported.svg', title: L10n(context).unsupportedFileTitle, subtitle: L10n(context).unsupportedFileMessage, ); } }
38.588235
82
0.762195
29f8193bf1bd29d7919aaa74f883d6e760038d20
3,961
go
Go
sender/csv/csv.go
wenhaochen/logkit
54459dffb26f1e0600c6abcf0a31bc6ee4f7186b
[ "Apache-2.0" ]
null
null
null
sender/csv/csv.go
wenhaochen/logkit
54459dffb26f1e0600c6abcf0a31bc6ee4f7186b
[ "Apache-2.0" ]
null
null
null
sender/csv/csv.go
wenhaochen/logkit
54459dffb26f1e0600c6abcf0a31bc6ee4f7186b
[ "Apache-2.0" ]
null
null
null
package csv import ( "encoding/csv" "encoding/json" "fmt" "os" "reflect" "strconv" "time" "github.com/qiniu/pandora-go-sdk/base/ratelimit" "github.com/qiniu/logkit/conf" "github.com/qiniu/logkit/sender" . "github.com/qiniu/logkit/sender/config" "github.com/qiniu/logkit/utils/models" ) const ( defaultRotateSize = 10 * 1024 * 1024 // 10MB defaultPathPrefix = "./sync.csv" ) func init() { sender.RegisterConstructor(TypeCSV, NewSender) } type writer struct { w *csv.Writer file *os.File apprSize int64 fields []string delimeter string rotateSize int64 pathPrefix string } func (w *writer) Write(rawdata []models.Data) error { if len(rawdata) == 0 { return nil } if w.NeedRotate() { if err := w.RotateNow(); err != nil { return err } } var bytes int64 records := make([][]string, 0, len(rawdata)) for _, d := range rawdata { record := make([]string, 0, len(d)) for _, field := range w.fields { value := asString(d[field]) bytes += int64(len(value)) record = append(record, value) } records = append(records, record) } return w.WriteAll(records, bytes) } func asString(i interface{}) string { switch v := i.(type) { case string: return v case []byte: return string(v) } rv := reflect.ValueOf(i) switch rv.Kind() { case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: return strconv.FormatInt(rv.Int(), 10) case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64: return strconv.FormatUint(rv.Uint(), 10) case reflect.Float64: return strconv.FormatFloat(rv.Float(), 'f', -1, 64) case reflect.Float32: return strconv.FormatFloat(rv.Float(), 'f', -1, 32) case reflect.Bool: return strconv.FormatBool(rv.Bool()) case reflect.Map, reflect.Slice, reflect.Array: data, _ := json.Marshal(rv.Interface()) return string(data) } return fmt.Sprintf("%v", i) } func (w *writer) WriteAll(records [][]string, bytes int64) error { if w.w != nil { if err := w.w.WriteAll(records); err != nil { return err } } w.apprSize += bytes w.apprSize += int64(len(w.fields) * len(records)) return nil } func (w *writer) NeedRotate() bool { if w.w == nil { return true } return w.apprSize >= w.rotateSize } func (w *writer) RotateNow() (err error) { if err = w.Close(); err != nil { return } w.file, err = w.CreateFile() if err != nil { return } w.w = csv.NewWriter(w.file) w.apprSize = 0 return nil } func (w *writer) CreateFile() (*os.File, error) { now := time.Now() pathname := fmt.Sprintf("%s-%.2d%.2d%.2d%.2d%.2d", w.pathPrefix, now.Month(), now.Day(), now.Hour(), now.Minute(), now.Second()) return os.Create(pathname) } func (w *writer) Close() error { if w.w != nil { w.w.Flush() w.w = nil } if w.file != nil { if err := w.file.Close(); err != nil { return err } } return nil } type Sender struct { w *writer name string limiter *ratelimit.Limiter } func NewSender(conf conf.MapConf) (s sender.Sender, err error) { fields, err := conf.GetStringList(KeyCSVFields) if err != nil { return } delimeter, err := conf.GetStringOr(KeyCSVDelimiter, ",") if err != nil { return } rotateSize, err := conf.GetInt64Or(KeyCSVRotateSize, defaultRotateSize) if err != nil { return } pathPrefix, _ := conf.GetStringOr(KeyCSVPathPrefix, defaultPathPrefix) w := &writer{ fields: fields, delimeter: delimeter, rotateSize: rotateSize, pathPrefix: pathPrefix, } name, _ := conf.GetStringOr(KeyName, fmt.Sprintf("sqlfile(path_prefix:%s)", pathPrefix)) rate, _ := conf.GetInt64Or(KeyMaxSendRate, -1) return &Sender{ w: w, name: name, limiter: ratelimit.NewLimiter(rate), }, nil } func (s *Sender) Send(records []models.Data) error { s.limiter.Assign(int64(len(records))) return s.w.Write(records) } func (s *Sender) Name() string { return s.name } func (s *Sender) Close() error { s.limiter.Close() return s.w.Close() }
20.630208
89
0.656905
dda6560132f6d4455ac3cf933aef5bad64c6acfc
1,329
php
PHP
templates/user_preferences.php
glome/glome-wp
9601164454d4dc4d0e653cab6deedbc51acb8b70
[ "MIT" ]
1
2015-06-07T17:38:47.000Z
2015-06-07T17:38:47.000Z
templates/user_preferences.php
glome/glome-wp
9601164454d4dc4d0e653cab6deedbc51acb8b70
[ "MIT" ]
3
2015-05-12T16:28:43.000Z
2015-09-13T19:30:32.000Z
templates/user_preferences.php
glome/glome-wp
9601164454d4dc4d0e653cab6deedbc51acb8b70
[ "MIT" ]
null
null
null
<div class="wrap"> <form method="post" action=""> <input type="hidden" name="page" value="glome" /> <table class="form-table"> <tr class="row-odd"> <th scope="row"><?php _e('Personal tracking', 'glome_plugin'); ?></th> <td> <fieldset> <label for="glome_plugin_allow_tracking_me"> <?php $checkbox = 'unchecked'; if (isset ($settings['allow_tracking_me']) && $settings['allow_tracking_me'] == 1) { $checkbox = 'checked'; } ?> <input type="checkbox" id="glome_plugin_allow_tracking_me" name="glome_plugin_settings[allow_tracking_me]" <?php echo $checkbox;?> /> <?php _e('Allow tracking me', 'glome_plugin'); ?> </label> <br/> </fieldset> </td> </tr> </table> <p class="submit"> <input type="submit" name="glome_plugin_settings[save_profile]" class="button-primary" value="<?php _e('Save Changes', 'glome_plugin') ?>" /> </p> </form> </div>
44.3
155
0.427389
62b40b92adca4295069b903fa6238b7b34a715a3
7,964
html
HTML
lesson5-semantics-aria/03-first-steps/solution/index.html
czeise/ud891
540c36eb1a2238714e77deaaacbf347dcad88c9a
[ "MIT" ]
471
2016-06-20T16:29:26.000Z
2022-03-22T02:44:54.000Z
lesson5-semantics-aria/03-first-steps/solution/index.html
czeise/ud891
540c36eb1a2238714e77deaaacbf347dcad88c9a
[ "MIT" ]
49
2016-06-21T17:49:44.000Z
2020-11-01T00:48:04.000Z
lesson5-semantics-aria/03-first-steps/solution/index.html
czeise/ud891
540c36eb1a2238714e77deaaacbf347dcad88c9a
[ "MIT" ]
1,951
2016-06-21T17:13:15.000Z
2022-03-31T18:12:28.000Z
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Custom checkboxes</title> <meta name="description" content="Custom checkboxes with a screen reader"> <!-- Mobile --> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> iframe#content { position: fixed; top: 0; left: 0; margin: 0; border: 0; padding: 0; width: 100vw; height: 100vh; } </style> </head> <body> <iframe id="content" src="checkboxes.html"></iframe> <script> function injectChromeVox(frame) { var templates = document.querySelectorAll('template'); var frameHead = frame.contentDocument.head; var frameBody = frame.contentDocument.body; var i = 0; function appendNext() { var template = templates[i++]; if (!template) return; var clone = frame.contentDocument.importNode(template.content, true); var firstElementChild = clone.firstElementChild; if (firstElementChild.tagName === "SCRIPT" && firstElementChild.hasAttribute('src') || firstElementChild.tagName === "LINK" && firstElementChild.hasAttribute('href')) { firstElementChild.onload = appendNext; } else { window.setTimeout(appendNext, 0); } switch (template.className) { case "head": frameHead.appendChild(clone); return; case "start": frameBody.insertBefore(clone, frameBody.firstElementChild); return; case "end": frameBody.appendChild(clone); return; } } appendNext(); } var frame = document.getElementById('content'); frame.addEventListener('load', injectChromeVox.bind(null, frame)); </script> <template class="head"> <link rel="stylesheet" href="../../../lesson3-semantics-built-in/02-chromevox-lite/embed.css"> </template> <template class="start"> <button class="hide-unless-focused" id="enable-cvox">Enable ChromeVox Lite</button> </template> <template class="end"> <style> .cvoxembed { z-index: 3; width: 100%; height: 100px; background: rgba(0, 0, 0, 0); position: fixed; left: 0px; bottom: -50px; right: 0px; border: 0; display: flex; flex-direction: row; font-family: arial, helvetica, sans-serif; font-size: 10pt; transition: all 0.2s ease-in-out; } body[cvox-enabled] .cvoxembed { bottom: 0px; } </style> <iframe id="cvoxembed" class="cvoxembed" aria-hidden="true" src="../../../lesson3-semantics-built-in/02-chromevox-lite/chromevox_embed.html"></iframe> </template> <template class="end"> <script> // First inject stubs that do nothing. window.accessibility = {}; window.accessibility.speak = function(text, queueMode, params) { } window.accessibility.isSpeaking = function() { } window.accessibility.stop = function() { } window.accessibility.braille = function() {}; // Prevent ChromeVox from playing an earcon on startup. window.saveAudio = window.Audio; window.Audio = function() {}; </script> </template> <template class="end"> <script src="../../../lesson3-semantics-built-in/02-chromevox-lite/chromeandroidvox.js"></script> </template> <template class="end"> <script> // Now disable ChromeVox. window.setTimeout(function() { // Hide chromevox indicator var cvoxIndicator = document.querySelector('.cvox_indicator_container'); if (cvoxIndicator) cvoxIndicator.parentElement.removeChild(cvoxIndicator); }, 101); cvox.ChromeVox.host.activateOrDeactivateChromeVox(false); cvox.ChromeVoxEventWatcher.focusFollowsMouse=false; cvox.ChromeVox.host.mustRedispatchClickEvent = function() { return false; } var embed = document.getElementById('cvoxembed'); // ChromeVox embed commands. function cvoxEmbedEnable() { if (document.body.hasAttribute('cvox-enabled')) return; embed.classList.add('cvoxembed-enabled'); window.setTimeout(function() { document.body.setAttribute('cvox-enabled', true); cvox.ChromeVox.host.activateOrDeactivateChromeVox(true); cvox.ChromeVoxEventWatcher.focusFollowsMouse=false; cvox.ChromeVox.executeUserCommand('jumpToTop'); embed.contentWindow.postMessage({ command: 'enable' }, '*'); }, 200); } function cvoxEmbedDisable() { if (!document.body.hasAttribute('cvox-enabled')) return; document.body.removeAttribute('cvox-enabled'); window.accessibility.stop(); cvox.ChromeVox.host.activateOrDeactivateChromeVox(false); embed.classList.remove('cvoxembed-enabled'); } function cvoxEmbedNext() { cvox.ChromeVox.executeUserCommand('forward'); } function cvoxEmbedPrevious() { cvox.ChromeVox.executeUserCommand('backward'); } function cvoxEmbedTop() { cvox.ChromeVox.executeUserCommand('jumpToTop'); } function cvoxEmbedHeading() { cvox.ChromeVox.executeUserCommand('nextHeading'); } function cvoxEmbedClick() { cvox.ChromeVox.executeUserCommand('forceClickOnCurrentItem'); } // Listen for messages from the iframe. window.addEventListener('message', function(e) { switch (e.data) { case 'enable': cvoxEmbedEnable(); break; case 'disable': cvoxEmbedDisable(); break; case 'next': cvoxEmbedNext(); break; case 'previous': cvoxEmbedPrevious(); break; case 'heading': cvoxEmbedHeading(); break; case 'top': cvoxEmbedTop(); break; case 'click': cvoxEmbedClick(); break; } }); // Stop talking if the user changes tab window.addEventListener('blur', function(e) { window.accessibility.stop(); }); // Stop talking if the user changes tab window.addEventListener('blur', function(e) { window.accessibility.stop(); }); cvoxEmbedDisable(); embed.contentWindow.postMessage({ command: 'setLang', lang: document.documentElement.lang }, '*'); // Finally replace the stubs with a real implementation now // that ChromeVox won't speak on startup. window.accessibility.speak = function(text, queueMode, params) { embed.contentWindow.postMessage({ command: 'speak', text: text, queueMode: queueMode, params: params}, '*'); } window.accessibility.isSpeaking = function() { } window.accessibility.stop = function() { embed.contentWindow.postMessage({ command: 'stop' }, '*'); } window.accessibility.braille = function() {}; window.Audio = window.saveAudio; cvox.ChromeVox.earcons.audioMap = {}; document.getElementById('enable-cvox').addEventListener('click', function() { cvoxEmbedEnable(); }); </script> </template> </body> </html>
34.929825
156
0.557258
ce720e8aeddd611801595c6e56747e97e0df1cd5
33
lua
Lua
opentracing/init.lua
james-callahan/opentracing-lua
a0032e02f8173ada15a725959697e70abb11b635
[ "Apache-2.0" ]
25
2018-07-20T18:14:04.000Z
2021-06-27T06:36:34.000Z
opentracing/init.lua
james-callahan/opentracing-lua
a0032e02f8173ada15a725959697e70abb11b635
[ "Apache-2.0" ]
6
2018-05-25T05:10:49.000Z
2021-07-15T02:53:48.000Z
opentracing/init.lua
james-callahan/opentracing-lua
a0032e02f8173ada15a725959697e70abb11b635
[ "Apache-2.0" ]
5
2018-07-10T22:29:56.000Z
2021-01-07T11:01:09.000Z
return { _VERSION = '0.1.0'; }
8.25
21
0.515152
89296efc6bf8e657c3124d8101d585b631844e01
2,091
asm
Assembly
src/test/asm/fact.asm
cjfrisz/maf6502
8986afd5c9c3fd6ef12dc0061a8b56ce2803aa30
[ "MIT" ]
5
2018-08-28T13:10:30.000Z
2020-04-12T04:06:29.000Z
src/test/asm/fact.asm
cjfrisz/maf6502
8986afd5c9c3fd6ef12dc0061a8b56ce2803aa30
[ "MIT" ]
null
null
null
src/test/asm/fact.asm
cjfrisz/maf6502
8986afd5c9c3fd6ef12dc0061a8b56ce2803aa30
[ "MIT" ]
null
null
null
;------------------------- ; 6502asm.com version ;------------------------- ; lda #4 ; ; cmp #0 ; bne continue ; lda #1 ; jmp abyss ; for 6502asm.com ; continue: ; tax ; iterate: ; dex ; cpx #1 ; beq end ; tay ; txa ; pha ; tya ; jmp multiply ; return: ; tay ; pla ; tax ; tya ; jmp iterate ; end: ; jmp abyss ; for 6502asm.com ; ; multiply: ; sta $0000 ; stash A operand value in memory ; lda #0 ; initialize A as the result register ; loop: ; cpx #0 ; base case: X is zero and we're done iterating ; beq return ; if we're done, jump to the end ; adc $0000 ; add the original operand value to A ; dex ; decrement X ; jmp loop ; jump back to the ; ; abyss: ; sta $200 ;------------------------- ; maf6502 target version ;------------------------- lda #5 ; test input, aka, the only fact argument cmp #0 ; special case zero (even though fact doesn't accept 0) ;-) bne continue ; skip the zero case lda #1 ; load 1 in A, our result register brk ; FINISHED continue: tax ; copy A to X to seed iteration iterate: dex ; decrement X so we can do n * (n-1) cpx #1 ; base case: (n-1) == 1 beq end ; if so, jump to the end tay ; otherwise, stash A in Y txa ; copy our current iteration value to A pha ; stash the iteration variable on the stack tya ; retrieve A's value from Y sta $0000 ; put A into memory lda #0 ; initialize A as the result register loop: cpx #0 ; base case: X is zero and we're done iterating beq return ; if we're done, jump back to fact adc $0000 ; otherwise, add the original operand value to A dex ; decrement X jmp loop ; jump back to the top of the multiplication loop return: tay ; stash A in Y pla ; retrieve our iterator value for factorial from the stack tax ; put the iterator back into X tya ; get the multiplication result from Y into A jmp iterate ; go back to the top of fact's iteration end: brk
26.468354
75
0.572453
66977032d4fc2cabd4d0f4d59573936e4ed2ee27
261
swift
Swift
Fit/Sync.swift
gvillaloboz/POW
81e119a145d7c711009843479c2168787a05fd72
[ "AML" ]
null
null
null
Fit/Sync.swift
gvillaloboz/POW
81e119a145d7c711009843479c2168787a05fd72
[ "AML" ]
null
null
null
Fit/Sync.swift
gvillaloboz/POW
81e119a145d7c711009843479c2168787a05fd72
[ "AML" ]
null
null
null
// // Sync.swift // POW // // Created by Gabriela Villalobos on 06.08.17. // Copyright © 2017 Apple. All rights reserved. // import Foundation import RealmSwift final class Sync: Object{ // MARK: - Properties dynamic var timestamp = Date() }
15.352941
48
0.655172
75606488c9e2dc04b26553b678f015b25e7b48da
43,984
cs
C#
AWG/AWG PI Step Definitions/AwgMultiToneGroup_steps.cs
shashanktiwary/lab-bot
0ae391eaec7effd190d72e6aec37919c83879ca1
[ "Apache-2.0" ]
1
2021-02-20T18:31:50.000Z
2021-02-20T18:31:50.000Z
AWG/AWG PI Step Definitions/AwgMultiToneGroup_steps.cs
shashanktiwary/lab-bot
0ae391eaec7effd190d72e6aec37919c83879ca1
[ "Apache-2.0" ]
7
2019-10-11T15:59:49.000Z
2019-10-14T13:28:03.000Z
AWG/AWG PI Step Definitions/AwgMultiToneGroup_steps.cs
shashanktiwary/lab-bot
0ae391eaec7effd190d72e6aec37919c83879ca1
[ "Apache-2.0" ]
4
2019-10-11T16:54:52.000Z
2021-08-25T08:10:35.000Z
//========================================================================== // AwgMultiToneGroup_steps.cs // This file contains the low-order PI step definitions for the AWG PI Capture Playback Group commands. // // Low-level steps set and get the values for commands, and test the raw values as returned from the // instrument. They DO NOT interpret values in any way! Interpretation, normalization, etc. need to // occur in the High-level step definitions. Notice the use of the word "value" in the steps - this // usually implies that the query returns a 0 or 1 or abbreviated text value (like SOFT) that should // be interpreted as ON or OFF or SOFTWARE to make the step more user-friendly. We do that in the // High-order step definitions. // // PLEASE use the following regular expressions to match specified numeric formats and other values: // <NR1> - ((?<!\S)[-+]?\d+(?!\S)) // <NR3> - ([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?) // AWG number - AWG([1-4])? -OR - // - (?: the)? AWG([1-4])? (depends on language usage) // File path strings - ""(.+)"" used when you want the string that is delimited by the quotes File path strings // //========================================================================== using System; using TechTalk.SpecFlow; namespace AwgTestFramework { /// <summary> /// This class contains the PI step definitions for the %AWG PI MultiTone Group commands. /// \ingroup highpi pisteps /// /// </summary> [Binding] //Very important! This entry needs to be made in each step definition file. public class AwgMultiToneSteps { private readonly AwgMultiToneGroup _awgMultiToneGroup = new AwgMultiToneGroup(); #region MultiTone #region MTONE:RESEt //sdas2 9/1/2015 /// <summary> /// Reset MultiTone Module /// </summary> /// <param name="awgNumber"></param> [When(@"I reset for MultiTone plugin for AWG ([1-4])")] public void WhenIResetForMultiTonePluginForAWG(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.AwgMultiToneReset(awg); } #endregion #region MTONe:LOAD [When(@"I load the MultiTone module for AWG ([1-4])")] public void WhenILoadTheMultiToneModuleForAWG(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.AwgMultiToneLoad(awg); } #endregion #region MTONe:TYPE[?] [When(@"I set the MultiTone type to Tones for AWG ([1-4])")] public void SetTheMultiToneTypeToTones(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneType(awg, AwgMultiToneGroup.MultiToneType.Tones); } [When(@"I set the MultiTone type to Chirp for AWG ([1-4])")] public void SetTheMultiToneTypeToChirp(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneType(awg, AwgMultiToneGroup.MultiToneType.Chirp); } [When(@"I get the MultiTone type for AWG ([1-4])")] public void GetTheMultiToneType(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.GetMultiToneType(awg); } [Then(@"the MultiTone type should be Tones for AWG ([1-4])")] public void ThenTheMultiToneTypeShouldBeTones(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.MultiToneTypeShouldBe(awg, AwgMultiToneGroup.MultiToneType.Tones); } [Then(@"the MultiTone type should be Chirp for AWG ([1-4])")] public void ThenTheMultiToneTypeShouldBeChirp(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.MultiToneTypeShouldBe(awg, AwgMultiToneGroup.MultiToneType.Chirp); } #endregion #region MTONe:COMPile [When(@"I compile the MultiTone module for AWG ([1-4])")] public void WhenICompileTheMultiToneModuleForAWG(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.AwgMultiToneCompile(awg); } #endregion #region MTONe:COMPile:CANCel [When(@"I cancel compilation for the MultiTone module for AWG ([1-4])")] public void WhenICancelCompileTheMultiToneModuleForAWG(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.AwgMultiToneCancelCompile(awg); } #endregion #region MTONe:COMPile:NAME[?] [When(@"I set the MultiTone signal name to (.*) for AWG ([1-4])")] public void SetTheMultiToneSignalNameTo(string name, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneName(awg, name); } [When(@"I get the MultiTone signal name for AWG ([1-4])")] public void GetTheMultiToneSignalName(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.GetMultiToneName(awg); } [Then(@"the MultiTone signal name should be (.*) for AWG ([1-4])")] public void ThenTheMultiToneSignalNameShouldBe(string name, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.MultiToneNameShouldBe(awg, name); } #endregion #region MTONe:COMPile:CHANnel[?] [When(@"I set the MultiTone compilation settings to Compile Only for AWG ([1-4])")] public void SetMultiToneToCompileOnly(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneChannel(awg, 0); } [When(@"I set the MultiTone compilation settings to Compile and Assign to Channel ([1-4]) for AWG ([1-4])")] public void SetMultiToneToCompileAndAssignToChannel(string channelNo, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); var channel = Convert.ToInt32(channelNo); _awgMultiToneGroup.SetMultiToneChannel(awg, channel); } [When(@"I get the MultiTone compilation settings for Compile and Assign to Channel for AWG ([1-4])")] public void GetTheMultiToneChannel(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.GetMultiToneChannel(awg); } [Then(@"the MultiTone Compile and Assign to Channel status should be ([1-4]) for AWG ([1-4])")] public void ThenTheMultiToneCompileAndAssignShouldBe(string name, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.MultiToneChannelShouldBe(awg, name); } [Then(@"the MultiTone Compile and Assign to Channel status should be Compile Only for AWG ([1-4])")] public void ThenTheMultiToneCompileAndAssignShouldBe(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.MultiToneChannelShouldBe(awg, "NONE"); } #endregion #region MTONe:COMPile:PLAY[?] [When(@"I set the MultiTone compilation settings to play after compilation for AWG ([1-4])")] public void SetTheMultiTonePlayToOn(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneChannelPlay(awg, AwgMultiToneGroup.BoolState.On); } [When(@"I set the MultiTone compilation settings to not play after compilation for AWG ([1-4])")] public void SetTheMultiTonePlayToOff(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneChannelPlay(awg, AwgMultiToneGroup.BoolState.Off); } [When(@"I get the MultiTone play after compile setting for AWG ([1-4])")] public void GetTheMultiTonePlayState(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.GetMultiToneChannelPlay(awg); } [Then(@"the MultiTone play after compile setting should be on for AWG ([1-4])")] public void ThenTheMultiTonePlayStateShouldBeOn(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.MultiToneChannelPlayShouldBe(awg, AwgMultiToneGroup.BoolState.On); } [Then(@"the MultiTone play after compile setting should be off for AWG ([1-4])")] public void ThenTheMultiTonePlayStateShouldBeOff(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.MultiToneChannelPlayShouldBe(awg, AwgMultiToneGroup.BoolState.Off); } #endregion #region MTONe:COMPile:SRATe[?] [When(@"I set the MultiTone signal sampling rate to ([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?) Hz for AWG ([1-4])")] public void SetTheMultiToneSignalSampleRateTo(string value, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneSamplingRate(awg, AwgMultiToneGroup.NumericEntryAs.Value, value); } [When(@"I set the MultiTone signal sampling rate to the lowest possible value for AWG ([1-4])")] public void SetTheMultiToneSignalSampleRateToMin(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneSamplingRate(awg, AwgMultiToneGroup.NumericEntryAs.Min, ""); } [When(@"I set the MultiTone signal sampling rate to the highest possible value for AWG ([1-4])")] public void SetTheMultiToneSignalSampleRateToMax(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneSamplingRate(awg, AwgMultiToneGroup.NumericEntryAs.Max, ""); } [When(@"I get the MultiTone signal sample rate for AWG ([1-4])")] public void GetTheMultiToneSampleRate(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.GetMultiToneSamplingRate(awg); } [Then(@"the MultiTone signal sample rate should be ([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?) Hz for AWG ([1-4])")] public void ThenTheMultiToneSampleRateShouldBe(string value, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.MultiToneSamplingRateShouldBe(awg, value); } #endregion #region MTONe:COMPile:SRATe:AUTO[?] [When(@"I set the MultiTone compilation settings to automatically calculate sample rate for AWG ([1-4])")] public void SetTheMultiToneAutoSRToOn(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneAutoSamplingRate(awg, AwgMultiToneGroup.BoolState.On); } [When(@"I set the MultiTone compilation settings to not automatically calculate sample rate for AWG ([1-4])")] public void SetTheMultiToneAutoSRToOff(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneAutoSamplingRate(awg, AwgMultiToneGroup.BoolState.Off); } [When(@"I get the MultiTone Auto sample rate compile setting for AWG ([1-4])")] public void GetTheMultiToneAutoSR(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.GetMultiToneAutoSamplingRate(awg); } [Then(@"the MultiTone auto sample rate compile setting should be on for AWG ([1-4])")] public void ThenTheMultiToneAutoSRShouldBeOn(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.MultiToneSamplingRateAutoShouldBe(awg, AwgMultiToneGroup.BoolState.On); } [Then(@"the MultiTone auto sample rate compile setting should be off for AWG ([1-4])")] public void ThenTheMultiToneAutoSRShouldBeOff(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.MultiToneSamplingRateAutoShouldBe(awg, AwgMultiToneGroup.BoolState.Off); } #endregion #region MTONe:TONes:STARt[?] [When(@"I set the MultiTone tones start frequency to ([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?) Hz for AWG ([1-4])")] public void SetTheMultiToneStartFreqTo(string value, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneToneStart(awg, AwgMultiToneGroup.NumericEntryAs.Value, value); } [When(@"I set the MultiTone tones start frequency to the lowest possible value for AWG ([1-4])")] public void SetTheMultiToneStartFreqToMin(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneToneStart(awg, AwgMultiToneGroup.NumericEntryAs.Min, ""); } [When(@"I set the MultiTone tones start frequency to the highest possible value for AWG ([1-4])")] public void SetTheMultiToneStartFreqToMax(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneToneStart(awg, AwgMultiToneGroup.NumericEntryAs.Max, ""); } [When(@"I get the MultiTone tones start frequency for AWG ([1-4])")] public void GetTheMultiToneStartFreq(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.GetMultiToneToneStart(awg); } [Then(@"the MultiTone tones start frequency should be ([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?) Hz for AWG ([1-4])")] public void ThenTheMultiToneStartFreqShouldBe(string value, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.MultiToneToneStartShouldBe(awg, value); } #endregion #region MTONe:TONes:END[?] [When(@"I set the MultiTone tones end frequency to ([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?) Hz for AWG ([1-4])")] public void SetTheMultiToneEndFreqTo(string value, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneToneEnd(awg, AwgMultiToneGroup.NumericEntryAs.Value, value); } [When(@"I set the MultiTone tones end frequency to the lowest possible value for AWG ([1-4])")] public void SetTheMultiToneEndFreqToMin(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneToneEnd(awg, AwgMultiToneGroup.NumericEntryAs.Min, ""); } [When(@"I set the MultiTone tones end frequency to the highest possible value for AWG ([1-4])")] public void SetTheMultiToneEndFreqToMax(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneToneEnd(awg, AwgMultiToneGroup.NumericEntryAs.Max, ""); } [When(@"I get the MultiTone tones end frequency for AWG ([1-4])")] public void GetTheMultiToneEndFreq(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.GetMultiToneToneEnd(awg); } [Then(@"the MultiTone tones end frequency should be ([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?) Hz for AWG ([1-4])")] public void ThenTheMultiToneEndFreqShouldBe(string value, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.MultiToneToneEndShouldBe(awg, value); } #endregion #region MTONe:TONes:SPACing[?] [When(@"I set the MultiTone tones spacing to ([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?) Hz for AWG ([1-4])")] public void SetTheMultiToneSpacingFreqTo(string value, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneToneSpacing(awg, AwgMultiToneGroup.NumericEntryAs.Value, value); } [When(@"I set the MultiTone tones spacing to the lowest possible value for AWG ([1-4])")] public void SetTheMultiToneSpacingFreqToMin(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneToneSpacing(awg, AwgMultiToneGroup.NumericEntryAs.Min, ""); } [When(@"I set the MultiTone tones spacing to the highest possible value for AWG ([1-4])")] public void SetTheMultiToneSpacingFreqToMax(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneToneSpacing(awg, AwgMultiToneGroup.NumericEntryAs.Max, ""); } [When(@"I get the MultiTone tones spacing for AWG ([1-4])")] public void GetTheMultiToneSpacingFreq(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.GetMultiToneToneSpacing(awg); } [Then(@"the MultiTone tones spacing should be ([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?) Hz for AWG ([1-4])")] public void ThenTheMultiToneSpacingFreqShouldBe(string value, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.MultiToneToneSpacingShouldBe(awg, value); } #endregion #region MTONe:TONes:NTONes[?] [When(@"I set the MultiTone number of Tones to ([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?) for AWG ([1-4])")] public void SetTheMultiToneNTonesTo(string value, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneToneNTones(awg, AwgMultiToneGroup.NumericEntryAs.Value, value); } [When(@"I set the MultiTone number of Tones to the lowest possible value for AWG ([1-4])")] public void SetTheMultiToneNTonesToMin(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneToneNTones(awg, AwgMultiToneGroup.NumericEntryAs.Min, ""); } [When(@"I set the MultiTone number of Tones to the highest possible value for AWG ([1-4])")] public void SetTheMultiToneNTonesToMax(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneToneNTones(awg, AwgMultiToneGroup.NumericEntryAs.Max, ""); } [When(@"I get the MultiTone number of Tones for AWG ([1-4])")] public void GetTheMultiToneNTones(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.GetMultiToneToneNTones(awg); } [Then(@"the MultiTone number of Tones should be ([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?) for AWG ([1-4])")] public void ThenTheMultiToneNTonesShouldBe(string value, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.MultiToneToneNumTonesShouldBe(awg, value); } #endregion #region MTONe:TONes:PHASe[?] [When(@"I set the MultiTone tones phase to Random for AWG ([1-4])")] public void SetTheMultiTonePhaseToRandom(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneTonePhase(awg, AwgMultiToneGroup.TonePhaseType.Random); } [When(@"I set the MultiTone tones phase to Newman for AWG ([1-4])")] public void SetTheMultiTonePhaseToNewman(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneTonePhase(awg, AwgMultiToneGroup.TonePhaseType.Newman); } [When(@"I set the MultiTone tones phase to User Defined for AWG ([1-4])")] public void SetTheMultiTonePhaseToUserDefined(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneTonePhase(awg, AwgMultiToneGroup.TonePhaseType.UserDefined); } [When(@"I get the MultiTone tones phase for AWG ([1-4])")] public void GetTheMultiTonePhase(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.GetMultiToneTonePhase(awg); } [Then(@"the MultiTone tone phase should be Random for AWG ([1-4])")] public void ThenTheMultiTonePhaseShouldBeRandom(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.MultiToneTonePhaseShouldBe(awg, AwgMultiToneGroup.TonePhaseType.Random); } [Then(@"the MultiTone tone phase should be Newman for AWG ([1-4])")] public void ThenTheMultiTonePhaseShouldBeNewman(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.MultiToneTonePhaseShouldBe(awg, AwgMultiToneGroup.TonePhaseType.Newman); } [Then(@"the MultiTone tone phase should be User Defined for AWG ([1-4])")] public void ThenTheMultiTonePhaseShouldBeUserDefined(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.MultiToneTonePhaseShouldBe(awg, AwgMultiToneGroup.TonePhaseType.UserDefined); } #endregion #region MTONe:TONes:PHASe:UDEFined[?] [When(@"I set the MultiTone tones user defined phase to ((?<!\S)[-+]?\d+(?!\S)) degrees for AWG ([1-4])")] public void SetTheMultiToneUserDefinedPhaseTo(string value, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneTonePhaseUserDefined(awg, AwgMultiToneGroup.NumericEntryAs.Value, value); } [When(@"I set the MultiTone tones user defined phase to the lowest possible value for AWG ([1-4])")] public void SetTheMultiToneUserDefinedPhaseToMin(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneTonePhaseUserDefined(awg, AwgMultiToneGroup.NumericEntryAs.Min, ""); } [When(@"I set the MultiTone tones user defined phase to the highest possible value for AWG ([1-4])")] public void SetTheMultiToneUserDefinedPhaseToMax(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneTonePhaseUserDefined(awg, AwgMultiToneGroup.NumericEntryAs.Max, ""); } [When(@"I get the MultiTone tones user defined phase for AWG ([1-4])")] public void GetTheMultiToneUserDefinedPhase(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.GetMultiToneTonePhaseUserDefined(awg); } [Then(@"the MultiTone tones user defined phase should be ((?<!\S)[-+]?\d+(?!\S)) degrees for AWG ([1-4])")] public void ThenTheMultiToneUserDefinedPhaseShouldBe(string value, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.MultiToneTonePhaseUserDefinedShouldBe(awg, value); } #endregion #region MTONe:TONes:NOTCh:ADD [When(@"I add a MultiTone tone notch with a start frequency of ([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?) Hz and an end frequency of ([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?) Hz for AWG ([1-4])")] public void AddMultiToneNotch(string startValue, string endValue, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneToneNotchAdd(awg, AwgMultiToneGroup.NumericEntryAs.Value, startValue, AwgMultiToneGroup.NumericEntryAs.Value, endValue); } [When(@"I add a MultiTone tone notch with the lowest possible values for start and end for AWG ([1-4])")] public void AddMultiToneNotchMin(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneToneNotchAdd(awg, AwgMultiToneGroup.NumericEntryAs.Min, "", AwgMultiToneGroup.NumericEntryAs.Min, ""); } [When(@"I add a MultiTone tone notch with the highest possible values for start and end for AWG ([1-4])")] public void AddMultiToneNotchMax(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneToneNotchAdd(awg, AwgMultiToneGroup.NumericEntryAs.Max, "", AwgMultiToneGroup.NumericEntryAs.Max, ""); } #endregion #region MTONe:TONes:NOTCh:ENABle[?] [When(@"I enable notches for MultiTone tones for AWG ([1-4])")] public void SetTheMultiToneNotchesToOn(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneToneNotchEnable(awg, AwgMultiToneGroup.BoolState.On); } [When(@"I disable notches for MultiTone tones for AWG ([1-4])")] public void SetTheMultiToneNotchesToOff(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneToneNotchEnable(awg, AwgMultiToneGroup.BoolState.Off); } [When(@"I get the MultiTone tone notch enable setting for AWG ([1-4])")] public void GetTheMultiToneNotchEnableState(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.GetMultiToneToneNotchEnable(awg); } [Then(@"the MultiTone tone notch enable setting should be on for AWG ([1-4])")] public void ThenTheMultiToneNotchEnableShouldBeOn(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.MultiToneToneNotchEnableShouldBe(awg, AwgMultiToneGroup.BoolState.On); } [Then(@"the MultiTone tone notch enable setting should be off for AWG ([1-4])")] public void ThenTheMultiToneNotchEnableShouldBeOff(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.MultiToneToneNotchEnableShouldBe(awg, AwgMultiToneGroup.BoolState.Off); } #endregion #region MTONe:TONes:NOTCh[?] [When(@"I set MultiTone tone notch ([1-9]|1[0-6]) with a start frequency of ([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?) Hz and an end frequency of ([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?) Hz for AWG ([1-4])")] public void SetMultiToneNotch(string notchNumber, string startValue, string endValue, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneToneNotch(awg, AwgMultiToneGroup.NumericEntryAs.Value, startValue, AwgMultiToneGroup.NumericEntryAs.Value, endValue, notchNumber); } [When(@"I set MultiTone tone notch ([1-9]|1[0-6]) with the lowest possible values for start and end for AWG ([1-4])")] public void SetMultiToneNotchMin(string notchNumber, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneToneNotchAdd(awg, AwgMultiToneGroup.NumericEntryAs.Min, "", AwgMultiToneGroup.NumericEntryAs.Min, ""); } [When(@"I set MultiTone tone notch ([1-9]|1[0-6]) with the highest possible values for start and end for AWG ([1-4])")] public void SetMultiToneNotchMax(string notchNumber, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneToneNotchAdd(awg, AwgMultiToneGroup.NumericEntryAs.Max, "", AwgMultiToneGroup.NumericEntryAs.Max, ""); } [When(@"I get the MultiTone tones notch ([1-9]|1[0-6]) start and end frequency for AWG ([1-4])")] public void GetTheMultiToneNotchStartEndFreq(string notchNumber, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.GetMultiToneToneNotch(awg, notchNumber); } [Then(@"the MultiTone tones notch start frequency should be ([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?) Hz and the end frequency should be ([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?) Hz for AWG ([1-4])")] public void ThenTheMultiToneNotchFreqShouldBe(string startValue, string endValue, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.MultiToneNotchShouldBe(awg, startValue, endValue); } #endregion #region MTONe:TONes:NOTCh:STARt[?] [When(@"I set MultiTone tone notch ([1-9]|1[0-6]) with a start frequency of ([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?) Hz for AWG ([1-4])")] public void SetMultiToneNotchStart(string notchNumber, string startValue, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneToneNotchStart(awg, AwgMultiToneGroup.NumericEntryAs.Value, startValue, notchNumber); } [When(@"I set MultiTone tone notch ([1-9]|1[0-6]) with the lowest possible values for start frequency for AWG ([1-4])")] public void SetMultiToneNotchStartMin(string notchNumber, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneToneNotchStart(awg, AwgMultiToneGroup.NumericEntryAs.Min, "", notchNumber); } [When(@"I set MultiTone tone notch ([1-9]|1[0-6]) with the highest possible values for start frequency for AWG ([1-4])")] public void SetMultiToneNotchStartMax(string notchNumber, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneToneNotchStart(awg, AwgMultiToneGroup.NumericEntryAs.Max, "", notchNumber); } [When(@"I get the MultiTone tones notch ([1-9]|1[0-6]) start frequency for AWG ([1-4])")] public void GetTheMultiToneNotchStartFreq(string notchNumber, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.GetMultiToneToneNotchStart(awg, notchNumber); } [Then(@"the MultiTone tones notch start frequency should be ([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?) Hz for AWG ([1-4])")] public void ThenTheMultiToneNotchStartFreqShouldBe(string startValue, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.MultiToneNotchStartShouldBe(awg, startValue); } #endregion #region MTONe:TONes:NOTCh:END[?] [When(@"I set MultiTone tone notch ([1-9]|1[0-6]) with a end frequency of ([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?) Hz for AWG ([1-4])")] public void SetMultiToneNotchEnd(string notchNumber, string endValue, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneToneNotchEnd(awg, AwgMultiToneGroup.NumericEntryAs.Value, endValue, notchNumber); } [When(@"I set MultiTone tone notch ([1-9]|1[0-6]) with the lowest possible values for end frequency for AWG ([1-4])")] public void SetMultiToneNotchEndMin(string notchNumber, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneToneNotchEnd(awg, AwgMultiToneGroup.NumericEntryAs.Min, "", notchNumber); } [When(@"I set MultiTone tone notch ([1-9]|1[0-6]) with the highest possible values for end frequency for AWG ([1-4])")] public void SetMultiToneNotchEndMax(string notchNumber, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneToneNotchEnd(awg, AwgMultiToneGroup.NumericEntryAs.Max, "", notchNumber); } [When(@"I get the MultiTone tones notch ([1-9]|1[0-6]) end frequency for AWG ([1-4])")] public void GetTheMultiToneNotchEndFreq(string notchNumber, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.GetMultiToneToneNotchEnd(awg, notchNumber); } [Then(@"the MultiTone tones notch end frequency should be ([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?) Hz for AWG ([1-4])")] public void ThenTheMultiToneNotchEndFreqShouldBe(string endValue, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.MultiToneNotchEndShouldBe(awg, endValue); } #endregion #region MTONe:TONes:NOTCh:DELete [When(@"I delete MultiTone tone notch ([1-9]|1[0-6]) for AWG ([1-4])")] public void DeleteMultiToneNotch(string notchNumber, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.DeleteMultiToneToneNotch(awg, AwgMultiToneGroup.DeleteEntryAs.Value, notchNumber); } [When(@"I delete all MultiTone tone notches for AWG ([1-4])")] public void DeleteAllMultiToneNotches(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.DeleteMultiToneToneNotch(awg, AwgMultiToneGroup.DeleteEntryAs.All, "1"); } #endregion #region MTONe:TONes:NOTCh:COUNt? [When(@"I get the MultiTone tones notch count for AWG ([1-4])")] public void GetTheMultiToneNotchCount(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.GetMultiToneToneNotchCount(awg); } [Then(@"the MultiTone tones notch count should be ([0-9]|1[0-6]) for AWG ([1-4])")] public void ThenTheMultiToneNotchCountShouldBe(string value, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.MultiToneNotchCountShouldBe(awg, value); } #endregion #region MTONe:CHIRp:LOW[?] [When(@"I set the MultiTone chirp low frequency to ([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?) Hz for AWG ([1-4])")] public void SetTheMultiToneChirpLowTo(string value, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneChirpLow(awg, AwgMultiToneGroup.NumericEntryAs.Value, value); } [When(@"I set the MultiTone chirp low frequency to the lowest possible value for AWG ([1-4])")] public void SetTheMultiToneChirpLowToMin(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneChirpLow(awg, AwgMultiToneGroup.NumericEntryAs.Min, ""); } [When(@"I set the MultiTone chirp low frequency to the highest possible value for AWG ([1-4])")] public void SetTheMultiToneChirpLowToMax(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneChirpLow(awg, AwgMultiToneGroup.NumericEntryAs.Max, ""); } [When(@"I get the MultiTone chirp low frequency for AWG ([1-4])")] public void GetTheMultiToneChirpLow(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.GetMultiToneChirpLow(awg); } [Then(@"the MultiTone chirp low frequency should be ([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?) Hz for AWG ([1-4])")] public void ThenTheMultiToneChirpLowShouldBe(string value, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.MultiToneChirpLowShouldBe(awg, value); } #endregion #region MTONe:CHIRp:HIGH[?] [When(@"I set the MultiTone chirp high frequency to ([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?) Hz for AWG ([1-4])")] public void SetTheMultiToneChirpHighTo(string value, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneChirpHigh(awg, AwgMultiToneGroup.NumericEntryAs.Value, value); } [When(@"I set the MultiTone chirp high frequency to the lowest possible value for AWG ([1-4])")] public void SetTheMultiToneChirpHighToMin(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneChirpHigh(awg, AwgMultiToneGroup.NumericEntryAs.Min, ""); } [When(@"I set the MultiTone chirp high frequency to the highest possible value for AWG ([1-4])")] public void SetTheMultiToneChirpHighToMax(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneChirpHigh(awg, AwgMultiToneGroup.NumericEntryAs.Max, ""); } [When(@"I get the MultiTone chirp high frequency for AWG ([1-4])")] public void GetTheMultiToneChirpHigh(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.GetMultiToneChirpHigh(awg); } [Then(@"the MultiTone chirp high frequency should be ([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?) Hz for AWG ([1-4])")] public void ThenTheMultiToneChirpHighShouldBe(string value, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.MultiToneChirpHighShouldBe(awg, value); } #endregion #region MTONe:CHIRp:SRATe[?] [When(@"I set the MultiTone chirp sweep rate to ([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?) Hz/uSec for AWG ([1-4])")] public void SetTheMultiToneChirpSweepRateTo(string value, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneChirpSweepRate(awg, AwgMultiToneGroup.NumericEntryAs.Value, value); } [When(@"I set the MultiTone chirp sweep rate to the lowest possible value for AWG ([1-4])")] public void SetTheMultiToneChirpSweepRateToMin(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneChirpSweepRate(awg, AwgMultiToneGroup.NumericEntryAs.Min, ""); } [When(@"I set the MultiTone chirp sweep rate to the highest possible value for AWG ([1-4])")] public void SetTheMultiToneChirpSweepRateToMax(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneChirpSweepRate(awg, AwgMultiToneGroup.NumericEntryAs.Max, ""); } [When(@"I get the MultiTone chirp sweep rate for AWG ([1-4])")] public void GetTheMultiToneChirpSweepRate(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.GetMultiToneChirpSweepRate(awg); } [Then(@"the MultiTone chirp sweep rate should be ([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?) Hz/uSec for AWG ([1-4])")] public void ThenTheMultiToneChirpSweepRateShouldBe(string value, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.MultiToneChirpSweepRateShouldBe(awg, value); } #endregion #region MTONe:CHIRp:STIMe[?] [When(@"I set the MultiTone chirp sweep time to ([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?) Sec for AWG ([1-4])")] public void SetTheMultiToneChirpSweepTimeTo(string value, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneChirpSweepTime(awg, AwgMultiToneGroup.NumericEntryAs.Value, value); } [When(@"I set the MultiTone chirp sweep time to the lowest possible value for AWG ([1-4])")] public void SetTheMultiToneChirpSweepTimeToMin(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneChirpSweepTime(awg, AwgMultiToneGroup.NumericEntryAs.Min, ""); } [When(@"I set the MultiTone chirp sweep time to the highest possible value for AWG ([1-4])")] public void SetTheMultiToneChirpSweepTimeToMax(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneChirpSweepTime(awg, AwgMultiToneGroup.NumericEntryAs.Max, ""); } [When(@"I get the MultiTone chirp sweep time for AWG ([1-4])")] public void GetTheMultiToneChirpSweepTime(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.GetMultiToneChirpSweepTime(awg); } [Then(@"the MultiTone chirp sweep time should be ([-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?) Sec for AWG ([1-4])")] public void ThenTheMultiToneChirpSweepTimeShouldBe(string value, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.MultiToneChirpSweepTimeShouldBe(awg, value); } #endregion #region MTONe:CHIRp:FSWeep[?] [When(@"I set the MultiTone chirp frequency to sweep from low to high for AWG ([1-4])")] public void SetTheMultiToneChirpFrequencySweepToLHigh(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneChirpFrequencySweep(awg, AwgMultiToneGroup.ChirpFrequencySweep.LowHigh); } [When(@"I set the MultiTone chirp frequency to sweep from high to low for AWG ([1-4])")] public void SetTheMultiToneChirpFrequencySweepToHLow(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneChirpFrequencySweep(awg, AwgMultiToneGroup.ChirpFrequencySweep.HighLow); } [When(@"I get the MultiTone frequency sweep for AWG ([1-4])")] public void GetTheMultiToneChirpFrequencySweep(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.GetMultiToneFrequencySweep(awg); } [Then(@"the MultiTone chirp frequency should sweep from low to high for AWG ([1-4])")] public void ThenTheMultiToneChirpFrequencySweepShouldBeLHigh(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.MultiToneFrequencySweepShouldBe(awg, AwgMultiToneGroup.ChirpFrequencySweep.LowHigh); } [Then(@"the MultiTone chirp frequency should sweep from high to low for AWG ([1-4])")] public void ThenTheMultiToneChirpFrequencySweepShouldBeHLow(string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.MultiToneFrequencySweepShouldBe(awg, AwgMultiToneGroup.ChirpFrequencySweep.HighLow); } #endregion #endregion MultiTone } }
44.473205
218
0.638596
e442ca8b9ef2f14b0e94ada1fab6a6c905bebd95
2,678
go
Go
restapi/webhook.go
cloudawan/cloudone
8f2995fb4f7e9a3187c655adb2d2b9664ab1a0d8
[ "Apache-2.0" ]
1
2015-09-04T04:02:36.000Z
2015-09-04T04:02:36.000Z
restapi/webhook.go
cloudawan/cloudone
8f2995fb4f7e9a3187c655adb2d2b9664ab1a0d8
[ "Apache-2.0" ]
null
null
null
restapi/webhook.go
cloudawan/cloudone
8f2995fb4f7e9a3187c655adb2d2b9664ab1a0d8
[ "Apache-2.0" ]
null
null
null
// Copyright 2015 CloudAwan LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package restapi import ( "encoding/json" "github.com/cloudawan/cloudone/utility/configuration" "github.com/cloudawan/cloudone/webhook" "github.com/emicklei/go-restful" ) type GithubPost struct { User string ImageInformation string Signature string Payload string } func registerWebServiceWebhook() { ws := new(restful.WebService) ws.Path("/api/v1/webhooks") ws.Consumes(restful.MIME_JSON) ws.Produces(restful.MIME_JSON) restful.Add(ws) // The webhook has its own verification ws.Route(ws.POST("/github/").Filter(auditLog).To(postGithub). Doc("Trigger image build from github webhook data"). Do(returns200, returns400, returns404, returns422, returns500). Reads(Namesapce{})) } func postGithub(request *restful.Request, response *restful.Response) { kubeApiServerEndPoint, kubeApiServerToken, err := configuration.GetAvailablekubeApiServerEndPoint() if err != nil { jsonMap := make(map[string]interface{}) jsonMap["Error"] = "Get kube apiserver endpoint and token failure" jsonMap["ErrorMessage"] = err.Error() errorMessageByteSlice, _ := json.Marshal(jsonMap) log.Error(jsonMap) response.WriteErrorString(404, string(errorMessageByteSlice)) return } githubPost := GithubPost{} err = request.ReadEntity(&githubPost) if err != nil { jsonMap := make(map[string]interface{}) jsonMap["Error"] = "Read body failure" jsonMap["ErrorMessage"] = err.Error() errorMessageByteSlice, _ := json.Marshal(jsonMap) log.Error(jsonMap) response.WriteErrorString(400, string(errorMessageByteSlice)) return } err = webhook.Notify(githubPost.User, githubPost.ImageInformation, githubPost.Signature, githubPost.Payload, kubeApiServerEndPoint, kubeApiServerToken) if err != nil { jsonMap := make(map[string]interface{}) jsonMap["Error"] = "Notify webhook failure" jsonMap["ErrorMessage"] = err.Error() jsonMap["kubeApiServerEndPoint"] = kubeApiServerEndPoint errorMessageByteSlice, _ := json.Marshal(jsonMap) log.Error(jsonMap) response.WriteErrorString(422, string(errorMessageByteSlice)) return } }
33.061728
152
0.746079
8084522b0593b335b60a07305d51c36158b7aca0
4,995
java
Java
app/src/main/java/com/example/umang/calculator/MainActivity.java
umangahuja1/Calculator
f610e3ca347a1f93f81a8a11c2a62b7593b2ac60
[ "MIT" ]
1
2019-07-08T17:20:53.000Z
2019-07-08T17:20:53.000Z
app/src/main/java/com/example/umang/calculator/MainActivity.java
umangahuja1/Calculator
f610e3ca347a1f93f81a8a11c2a62b7593b2ac60
[ "MIT" ]
null
null
null
app/src/main/java/com/example/umang/calculator/MainActivity.java
umangahuja1/Calculator
f610e3ca347a1f93f81a8a11c2a62b7593b2ac60
[ "MIT" ]
2
2019-07-02T19:06:52.000Z
2019-07-10T09:46:53.000Z
package com.example.umang.calculator; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.TextView; import static android.R.attr.value; public class MainActivity extends AppCompatActivity { String answer = ""; double two= 0, result=0; char sign; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } public void equalTo(View view) { if(answer !="") { result = computeInfixExpr(answer); if (result % 1 == 0) { answer = String.valueOf((int) result); } else { answer = String.format("%.6f", result); answer = removeTrailingZeros(answer); } displayMessage(answer); } } public void one(View view) { answer += "1"; displayMessage(answer); } public void two(View view) { answer += "2"; displayMessage(answer); } public void three(View view) { answer += "3"; displayMessage(answer); } public void four(View view) { answer += "4"; displayMessage(answer); } public void five(View view) { answer += "5"; displayMessage(answer); } public void six(View view) { answer += "6"; displayMessage(answer); } public void seven(View view) { answer += "7"; displayMessage(answer); } public void eight(View view) { answer += "8"; displayMessage(answer); } public void nine(View view) { answer += "9"; displayMessage(answer); } public void zero(View view) { answer += "0"; displayMessage(answer); } public void ac(View view) { answer = ""; displayMessage(String.valueOf(0)); } public void divide(View view) { answer += " / "; displayMessage(answer); } public void plus(View view) { answer += " + "; displayMessage(answer); } public void multiply(View view) { answer += " x "; displayMessage(answer); } public void minus(View view) { answer += " - "; displayMessage(answer); } public void dot(View view) { answer += "."; displayMessage(answer); } public void back(View view) { String str = answer; if (str != null && str.length() > 0) { if(str.charAt(str.length() - 1) == ' ') str = str.substring(0, str.length() - 3); else str = str.substring(0, str.length() - 1); } answer = str; displayMessage(answer); } public void displayMessage(String answer) { TextView answerView = (TextView) findViewById(R.id.answer_view); answerView.setText(answer); } public String removeTrailingZeros(String str ){ if (str == null){ return null;} char[] chars = str.toCharArray();int length,index ;length = str.length(); index = length -1; for (; index >=0;index--) { if (chars[index] != '0'){ break;} } return (index == length-1) ? str :str.substring(0,index+1); } public double computeInfixExpr(String input) { String[] expr = input.split(" "); int i = 0; double operRight=0; double operLeft = Double.valueOf(expr[i++]); while (i < expr.length) { String operator = expr[i++]; if(i!=expr.length) operRight = Double.valueOf(expr[i++]); switch (operator) { case "x": operLeft = operLeft * operRight; break; case "/": operLeft = operLeft / operRight; break; case "+": case "-": while (i < expr.length) { String operator2 = expr[i++]; if (operator2.equals("+") || operator2.equals("-")) { i--; break; } if (operator2.equals("x")) { operRight = operRight * Double.valueOf(expr[i++]); } if (operator2.equals("/")) { operRight = operRight / Double.valueOf(expr[i++]); } } if (operator.equals("+")) operLeft = operLeft + operRight; else operLeft = operLeft - operRight; } } return operLeft; } }
23.450704
81
0.471672
f0f6e93643dec7d103c39b13fdf8268332627e59
2,472
dart
Dart
lib/models/grocery_product.dart
RodrigoGax/Experimenting_with_Flutter
7daf4cd886954cf666cbe4e8b6b1593bc1a65751
[ "MIT" ]
null
null
null
lib/models/grocery_product.dart
RodrigoGax/Experimenting_with_Flutter
7daf4cd886954cf666cbe4e8b6b1593bc1a65751
[ "MIT" ]
null
null
null
lib/models/grocery_product.dart
RodrigoGax/Experimenting_with_Flutter
7daf4cd886954cf666cbe4e8b6b1593bc1a65751
[ "MIT" ]
null
null
null
class GroceryProduct { const GroceryProduct( {this.price, this.name, this.description, this.image, this.weight}); final double price; final String name, description, image, weight; } const groceryProducts = <GroceryProduct>[ GroceryProduct( price: 31.00, name: 'Aguacate', description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec aliquet, massa et cursus viverra, lorem purus rhoncus ante, pellentesque consequat dolor arcu id mauris.', image: 'assets/avocado.png', weight: '500 g'), GroceryProduct( price: 37.00, name: 'Pitahaya', description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec aliquet, massa et cursus viverra, lorem purus rhoncus ante, pellentesque consequat dolor arcu id mauris.', image: 'assets/pitahaya.png', weight: '500 g'), GroceryProduct( price: 16.90, name: 'Plátano', description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec aliquet, massa et cursus viverra, lorem purus rhoncus ante, pellentesque consequat dolor arcu id mauris.', image: 'assets/banana.png', weight: '1 kg'), GroceryProduct( price: 19.90, name: 'Mango', description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec aliquet, massa et cursus viverra, lorem purus rhoncus ante, pellentesque consequat dolor arcu id mauris.', image: 'assets/mango.png', weight: '500 g'), GroceryProduct( price: 29.90, name: 'Piña', description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec aliquet, massa et cursus viverra, lorem purus rhoncus ante, pellentesque consequat dolor arcu id mauris.', image: 'assets/pineapple.png', weight: '1 kg'), GroceryProduct( price: 24.80, name: 'Cereza', description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec aliquet, massa et cursus viverra, lorem purus rhoncus ante, pellentesque consequat dolor arcu id mauris.', image: 'assets/cherry.png', weight: '500 g'), GroceryProduct( price: 29.90, name: 'Naranja', description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec aliquet, massa et cursus viverra, lorem purus rhoncus ante, pellentesque consequat dolor arcu id mauris.', image: 'assets/orange.png', weight: '1 kg') ];
41.2
180
0.673544
116eb93db756ec25f3d5558594dfd37cb9be8abc
651
html
HTML
docs/epi/John Mitchel.html
bond-lab/epigraphs
f8cfe2ea42459788b79989b1a9ed805b659f890f
[ "MIT" ]
null
null
null
docs/epi/John Mitchel.html
bond-lab/epigraphs
f8cfe2ea42459788b79989b1a9ed805b659f890f
[ "MIT" ]
null
null
null
docs/epi/John Mitchel.html
bond-lab/epigraphs
f8cfe2ea42459788b79989b1a9ed805b659f890f
[ "MIT" ]
1
2020-06-06T09:51:29.000Z
2020-06-06T09:51:29.000Z
<html> <body> <h1>Author: John Mitchel</h1> <h3>Cited by</h3> <ul> <li><a href='Joseph O'Connor.html' class='author'>Joseph O'Connor</a> (1) <ul> <li>IN: <i>Star of the Sea</i> (2002) Fiction, Irish <br>EPIGRAPH: <i><b>England is truly a great public criminal. England! All England! ....she must be punished; that punishment will, as I believe, come upon her by and through Ireland; and so Ireland will be avenged... The Atlantic ocean be never so deep as the hell which shall belch down on the oppressors of my race.</i></b> <br>FROM: <i>Irish nationalist, 1856</i>, (1856), NULL, Ireland </ul> </ul> </body> </html>
43.4
342
0.65745
f056587ea945052209153f421a5cb7898e82cd98
4,021
py
Python
modules/augmentation.py
AdamMiltonBarker/hias-all-oneapi-classifier
7afdbcde0941b287df2e153d64e14d06f2341aa2
[ "MIT" ]
1
2021-04-30T21:13:11.000Z
2021-04-30T21:13:11.000Z
modules/augmentation.py
AdamMiltonBarker/hias-all-oneapi-classifier
7afdbcde0941b287df2e153d64e14d06f2341aa2
[ "MIT" ]
3
2021-09-18T20:02:05.000Z
2021-09-21T19:18:16.000Z
modules/augmentation.py
AIIAL/oneAPI-Acute-Lymphoblastic-Leukemia-Classifier
05fb9cdfa5069b16cfe439be6d94d21b9eb21723
[ "MIT" ]
1
2021-09-19T01:19:40.000Z
2021-09-19T01:19:40.000Z
#!/usr/bin/env python """ HIAS AI Model Data Augmentation Class. Provides data augmentation methods. MIT License Copyright (c) 2021 Asociación de Investigacion en Inteligencia Artificial Para la Leucemia Peter Moss Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and / or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Contributors: - Adam Milton-Barker - First version - 2021-5-2 """ import cv2 import random import numpy as np from numpy.random import seed from scipy import ndimage from skimage import transform as tm class augmentation(): """ HIAS AI Model Data Augmentation Class Provides data augmentation methods. """ def __init__(self, helpers): """ Initializes the class. """ self.helpers = helpers self.seed = self.helpers.confs["data"]["seed"] seed(self.seed) self.helpers.logger.info( "Augmentation class initialization complete.") def grayscale(self, data): """ Creates a grayscale copy. """ gray = cv2.cvtColor(data, cv2.COLOR_BGR2GRAY) return np.dstack([gray, gray, gray]).astype(np.float32)/255. def equalize_hist(self, data): """ Creates a histogram equalized copy. """ img_to_yuv = cv2.cvtColor(data, cv2.COLOR_BGR2YUV) img_to_yuv[:, :, 0] = cv2.equalizeHist(img_to_yuv[:, :, 0]) hist_equalization_result = cv2.cvtColor(img_to_yuv, cv2.COLOR_YUV2BGR) return hist_equalization_result.astype(np.float32)/255. def reflection(self, data): """ Creates a reflected copy. """ return cv2.flip(data, 0).astype(np.float32)/255., cv2.flip(data, 1).astype(np.float32)/255. def gaussian(self, data): """ Creates a gaussian blurred copy. """ return ndimage.gaussian_filter( data, sigma=5.11).astype(np.float32)/255. def translate(self, data): """ Creates transformed copy. """ cols, rows, chs = data.shape return cv2.warpAffine( data, np.float32([[1, 0, 84], [0, 1, 56]]), (rows, cols), borderMode=cv2.BORDER_CONSTANT, borderValue=(144, 159, 162)).astype(np.float32)/255. def rotation(self, data, label, tdata, tlabels): """ Creates rotated copies. """ cols, rows, chs = data.shape for i in range(0, self.helpers.confs["data"]["rotations"]): # Seed needs to be set each time randint is called random.seed(self.seed) rand_deg = random.randint(-180, 180) matrix = cv2.getRotationMatrix2D( (cols/2, rows/2), rand_deg, 0.70) rotated = cv2.warpAffine( data, matrix, (rows, cols), borderMode=cv2.BORDER_CONSTANT, borderValue=(144, 159, 162)) rotated = rotated.astype(np.float32)/255. tdata.append(rotated) tlabels.append(label) return tdata, tlabels def shear(self, data): """ Creates a histogram equalized copy. """ at = tm.AffineTransform(shear=0.5) return tm.warp(data, inverse_map=at)
32.691057
99
0.665257
1dbdfc29ec47a8dfe84652e3c2d8039841e56827
6,627
swift
Swift
I'm HUNGRY!/I'm HUNGRY!/I'm HUNGRY!/Cart.swift
ZYChimne/ZYChimne-A-food-order-app-in-swift
67ab6f876d213337c7b6f97c31db828e60dd6e1d
[ "MIT" ]
null
null
null
I'm HUNGRY!/I'm HUNGRY!/I'm HUNGRY!/Cart.swift
ZYChimne/ZYChimne-A-food-order-app-in-swift
67ab6f876d213337c7b6f97c31db828e60dd6e1d
[ "MIT" ]
null
null
null
I'm HUNGRY!/I'm HUNGRY!/I'm HUNGRY!/Cart.swift
ZYChimne/ZYChimne-A-food-order-app-in-swift
67ab6f876d213337c7b6f97c31db828e60dd6e1d
[ "MIT" ]
null
null
null
// // Cart.swift // I'm HUNGRY! // // Created by ZYC on 2020/5/26. // Copyright © 2020 ZYC. All rights reserved. // import UIKit class Cart: UITableViewController { var restaurants:[String]=[] var foods:[String]=[] var prices:[String]=[] var nos:[String]=[] @IBOutlet weak var toolBar: UITabBarItem! @IBOutlet weak var totalPrice: UITextView! @IBAction func commit(_ sender: Any) { } override func viewDidLoad() { super.viewDidLoad() // Uncomment the following line to preserve selection between presentations // self.clearsSelectionOnViewWillAppear = false self.navigationItem.rightBarButtonItem = self.editButtonItem } // MARK: - Table view data source override func numberOfSections(in tableView: UITableView) -> Int { // #warning Incomplete implementation, return the number of sections return 1 } override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { // #warning Incomplete implementation, return the number of rows return foods.count } override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell = tableView.dequeueReusableCell(withIdentifier: "cartIdentifier", for: indexPath) cell.textLabel?.text=foods[indexPath.row]+"-"+restaurants[indexPath.row] cell.imageView?.image=UIImage(named: "\(foods[indexPath.row])") cell.detailTextLabel?.text=nos[indexPath.row] return cell } func dataFilePath() -> String { let urls=FileManager.default.urls(for: .documentDirectory, in: .userDomainMask) let url=(urls.first?.appendingPathComponent("_______data.sqlite").path)! return url } override func viewWillAppear(_ animated: Bool) { var database:OpaquePointer?=nil let databasePath=dataFilePath() let result=sqlite3_open(databasePath,&database) if(result != SQLITE_OK){ sqlite3_close(database) print("Fail to open database") return } let query="SELECT name, food, price, no FROM Restaurant" var statement:OpaquePointer?=nil if(sqlite3_prepare_v2(database, query, -1, &statement, nil) == SQLITE_OK){ while(sqlite3_step(statement) == SQLITE_ROW){ let no=String.init(cString:UnsafePointer<UTF8Char>(sqlite3_column_text(statement, 3)!)) let foodName=String.init(cString:UnsafePointer<UTF8Char>(sqlite3_column_text(statement, 1)!)) if(Int(no) != 0){ if(foods.contains(foodName)){ for cnt in 0 ... (foods.count-1){ if foodName==foods[cnt] { nos[cnt]=no } } }else{ restaurants.append(String.init(cString:UnsafePointer<UTF8Char>(sqlite3_column_text(statement, 0)!))) foods.append(foodName) prices.append(String.init(cString:UnsafePointer<UTF8Char>(sqlite3_column_text(statement, 2)!))) nos.append(no) } } } sqlite3_finalize(statement) } sqlite3_close(database) loadPrice() if(foods.count>0){ toolBar.badgeValue=String(foods.count) }else { toolBar.badgeValue=nil } tableView.reloadData() } /* // Override to support conditional editing of the table view. override func tableView(_ tableView: UITableView, canEditRowAt indexPath: IndexPath) -> Bool { // Return false if you do not want the specified item to be editable. return true } */ //Override to support editing the table view. override func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCell.EditingStyle, forRowAt indexPath: IndexPath) { if editingStyle == .delete { // Delete the row from the data source var database:OpaquePointer?=nil let databasePath=dataFilePath() var result=sqlite3_open(databasePath,&database) if(result != SQLITE_OK){ sqlite3_close(database) print("Fail to open database") return } let no=0 let updateSQL="UPDATE restaurant SET no='\(no)' WHERE food='\(foods[indexPath.row])'" var err:UnsafeMutablePointer<Int8>?=nil result=sqlite3_exec(database, updateSQL, nil, nil, &err) if(result != SQLITE_OK){ sqlite3_close(database) print("Fail to remove") return } sqlite3_close(database) foods.remove(at: indexPath.row) restaurants.remove(at: indexPath.row) nos.remove(at: indexPath.row) prices.remove(at: indexPath.row) loadPrice() if(foods.count>0){ toolBar.badgeValue=String(foods.count) }else { toolBar.badgeValue=nil } tableView.deleteRows(at: [indexPath], with: .fade) } // else if editingStyle == .insert { // // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view // } } func loadPrice(){ var total=0 if(!foods.isEmpty){ for cnt in 0 ... (foods.count-1){ total += Int(nos[cnt])! * Int(prices[cnt])! } } totalPrice.text=String(total)+" CNY" } /* // Override to support rearranging the table view. override func tableView(_ tableView: UITableView, moveRowAt fromIndexPath: IndexPath, to: IndexPath) { } */ /* // Override to support conditional rearranging of the table view. override func tableView(_ tableView: UITableView, canMoveRowAt indexPath: IndexPath) -> Bool { // Return false if you do not want the item to be re-orderable. return true } */ /* // MARK: - Navigation // In a storyboard-based application, you will often want to do a little preparation before navigation override func prepare(for segue: UIStoryboardSegue, sender: Any?) { // Get the new view controller using segue.destination. // Pass the selected object to the new view controller. } */ }
35.438503
137
0.590312
2f206b5c3358d29fcda7ef35b8466e0721dcd429
3,161
php
PHP
app/Http/Controllers/TodoController.php
davidzyc/todolist
9112059135519d4c0bcf98e3cdc4ce22830a5e74
[ "MIT" ]
null
null
null
app/Http/Controllers/TodoController.php
davidzyc/todolist
9112059135519d4c0bcf98e3cdc4ce22830a5e74
[ "MIT" ]
null
null
null
app/Http/Controllers/TodoController.php
davidzyc/todolist
9112059135519d4c0bcf98e3cdc4ce22830a5e74
[ "MIT" ]
null
null
null
<?php namespace App\Http\Controllers; use App\Todo; use Validator; use Illuminate\Http\Request; use Carbon\Carbon; use Illuminate\Support\Facades\Auth; class TodoController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // $todos = Auth::user()->todos()->orderBy('priority', 'desc')->orderBy('created_at','desc')->get(); return view('todo.index', ["todos" => $todos]); // dd($todos); } /** * Show the form for creating a new resource. * * @return \Illuminate\Http\Response */ public function create() { // return view('todo.create'); } /** * Store a newly created resource in storage. * * @param \Illuminate\Http\Request $request * @return \Illuminate\Http\Response */ public function store(Request $request) { // $validator = Validator::make($request->all(), Todo::$rules, Todo::$messages); if($validator->fails()){ return back()->with(['errors'=>$validator->messages()]); } // dd($request->all()); Auth::user()->todos()->create($request->all()); return redirect()->action('TodoController@index')->with(['status' => 'Success', 'info' => 'Todo Create Success']); } /** * Display the specified resource. * * @param \App\Todo $todo * @return \Illuminate\Http\Response */ public function show(Todo $todo) { // // $todo = Auth::user()->todos->all(); // dd($todo); return view('todo.show', ["todo" => $todo]); } /** * Show the form for editing the specified resource. * * @param \App\Todo $todo * @return \Illuminate\Http\Response */ public function edit(Todo $todo) { // return view('todo.edit', ["todo" => $todo]); } /** * Update the specified resource in storage. * * @param \Illuminate\Http\Request $request * @param \App\Todo $todo * @return \Illuminate\Http\Response */ public function update(Request $request, Todo $todo) { // $validator = Validator::make($request->all(), Todo::$rules, Todo::$messages); if($validator->fails()){ return back()->with(['errors'=>$validator->messages()]); } // dd($request->all()); $todo->update($request->all()); return redirect()->action('TodoController@index')->with(['status' => 'Success', 'info' => 'Todo Update Success']); } /** * Remove the specified resource from storage. * * @param \App\Todo $todo * @return \Illuminate\Http\Response */ public function destroy(Todo $todo) { // $todo->delete(); return back()->with(['status' => 'Success', 'info' => 'Todo Delete Success']); } public function toggle(Todo $todo){ $todo->status = $todo->status ? 0 : 1; $todo->save(); return back()->with(['status' => 'Success', 'info' => 'Todo Mark Success']); } }
26.341667
122
0.541601
c5d3f45681d31b774b79106d88e9cc6c00af6485
13,056
cpp
C++
src/Plugins/JavaScript/JavaScriptInstance.cpp
realXtend/tundra-urho3d
436d41c3e3dd1a9b629703ee76fd0ef2ee212ef8
[ "Apache-2.0" ]
13
2015-02-25T02:42:38.000Z
2018-07-31T11:40:56.000Z
src/Plugins/JavaScript/JavaScriptInstance.cpp
realXtend/tundra-urho3d
436d41c3e3dd1a9b629703ee76fd0ef2ee212ef8
[ "Apache-2.0" ]
8
2015-02-12T22:27:05.000Z
2017-01-21T15:59:17.000Z
src/Plugins/JavaScript/JavaScriptInstance.cpp
realXtend/tundra-urho3d
436d41c3e3dd1a9b629703ee76fd0ef2ee212ef8
[ "Apache-2.0" ]
12
2015-03-25T21:10:50.000Z
2019-04-10T09:03:10.000Z
// For conditions of distribution and use, see copyright notice in LICENSE #include "StableHeaders.h" #include "JavaScript.h" #include "JavaScriptInstance.h" #include "ScriptAsset.h" #include "Framework.h" #include "LoggingFunctions.h" #include "AssetAPI.h" #include "Script.h" #include "BindingsHelpers.h" #include <Urho3D/Core/Profiler.h> #include <Urho3D/IO/FileSystem.h> #include <Urho3D/IO/File.h> using namespace JSBindings; namespace Tundra { #define JS_PROFILE(name) Urho3D::AutoProfileBlock profile_ ## name (module_->GetSubsystem<Urho3D::Profiler>(), #name) HashMap<void*, JavaScriptInstance*> JavaScriptInstance::instanceMap; static const String signalSupportCode = "_connections = {};\n" "function _ConnectSignal(key, obj, func) {\n" "if (!_connections.hasOwnProperty(key)) _connections[key] = [];\n" "var connections = _connections[key];\n" "if (!func) { func = obj; obj = null; }\n" "if (!func || typeof func != 'function') return;\n" "for (var i = 0; i < connections.length; ++i) { if (connections[i].obj == obj && connections[i].func == func) return; }\n" // Check duplicate "connections.push({ 'obj' : obj, 'func' : func });\n" "}\n" "function _DisconnectSignal(key, obj, func) {\n" "if (!_connections.hasOwnProperty(key)) return;\n" "var connections = _connections[key];\n" "if (!func) { func = obj; obj = null; }\n" "for (var i = 0; i < connections.length; ++i) { if (connections[i].obj == obj && connections[i].func == func) { connections.splice(i, 1); return; } }\n" "return connections.length == 0;\n" // Return true if all connections removed, in which case the C++ wrapper can be removed "}\n" "function _OnSignal(key, params) {\n" "if (!_connections.hasOwnProperty(key)) return\n" "var connections = _connections[key]\n" "for (var i = 0; i < connections.length; ++i) { connections[i].func.apply(connections[i].obj, params); }\n" "}\n" "_scriptObjects = {};\n" "function _StoreScriptObject(key, obj) {\n" "_scriptObjects[key] = obj;\n" "}\n" "function _RemoveScriptObject(key) {\n" "if (_scriptObjects.hasOwnProperty(key)) {\n" "var obj = _scriptObjects[key];\n" "if (obj && obj.OnScriptObjectDestroyed && typeof obj.OnScriptObjectDestroyed == 'function') obj.OnScriptObjectDestroyed()\n" "delete _scriptObjects[key];\n" "}\n" "}\n" "function _RemoveScriptObjects() {\n" "for (key in _scriptObjects) {\n" "if (_scriptObjects.hasOwnProperty(key)) {\n" "var obj = _scriptObjects[key];\n" "if (obj && obj.OnScriptObjectDestroyed && typeof obj.OnScriptObjectDestroyed == 'function') obj.OnScriptObjectDestroyed()\n" "}\n" "}\n" "_scriptObjects = {};\n" "}\n"; JavaScriptInstance::JavaScriptInstance(JavaScript *module, Script* owner) : IScriptInstance(module->GetContext()), ctx_(0), module_(module), owner_(owner), evaluated_(false) { assert(module); CreateEngine(); } JavaScriptInstance::JavaScriptInstance(const String &fileName, JavaScript *module, Script* owner) : IScriptInstance(module->GetContext()), ctx_(0), sourceFile_(fileName), module_(module), owner_(owner), evaluated_(false) { assert(module); CreateEngine(); Load(); } JavaScriptInstance::JavaScriptInstance(ScriptAssetPtr scriptRef, JavaScript *module, Script* owner) : IScriptInstance(module->GetContext()), ctx_(0), module_(module), owner_(owner), evaluated_(false) { assert(module); // Make sure we do not push null or empty script assets as sources if (scriptRef && !scriptRef->scriptContent.Empty()) scriptRefs_.Push(scriptRef); CreateEngine(); Load(); } JavaScriptInstance::JavaScriptInstance(const Vector<ScriptAssetPtr>& scriptRefs, JavaScript *module, Script* owner) : IScriptInstance(module->GetContext()), ctx_(0), module_(module), owner_(owner), evaluated_(false) { assert(module); // Make sure we do not push null or empty script assets as sources for (unsigned i = 0; i < scriptRefs.Size(); ++i) if (scriptRefs[i] && !scriptRefs[i]->scriptContent.Empty()) scriptRefs_.Push(scriptRefs[i]); CreateEngine(); Load(); } void JavaScriptInstance::CreateEngine() { ctx_ = duk_create_heap_default(); instanceMap[ctx_] = this; Evaluate(signalSupportCode, "JSInstanceInternal"); Script *ec = dynamic_cast<Script*>(owner_.Get()); module_->PrepareScriptInstance(this, ec); module_->ScriptInstanceCreated.Emit(this); } void JavaScriptInstance::DeleteEngine() { if (ctx_) { program_ = ""; ScriptUnloading.Emit(this); // As a convention, we call a function 'OnScriptDestroyed' for each JS script // so that they can clean up their data before the script is removed from the object, // or when the system is unloading. Execute("OnScriptDestroyed", false); instanceMap.Erase(ctx_); duk_destroy_heap(ctx_); ctx_ = 0; } } JavaScriptInstance::~JavaScriptInstance() { DeleteEngine(); } HashMap<String, uint> JavaScriptInstance::DumpEngineInformation() { /// \todo Implement return HashMap<String, uint>(); } void JavaScriptInstance::Load() { JS_PROFILE(JSInstance_Load); if (!ctx_) CreateEngine(); if (sourceFile_.Empty() && scriptRefs_.Empty()) { LogError("JavascriptInstance::Load: No script content to load!"); return; } // Can't specify both a file source and an Asset API source. if (!sourceFile_.Empty() && !scriptRefs_.Empty()) { LogError("JavascriptInstance::Load: Cannot specify both an local input source file and a list of script refs to load!"); return; } bool useAssetAPI = !scriptRefs_.Empty(); // Determine based on code origin whether it can be trusted with system access or not if (useAssetAPI) { trusted_ = true; for (unsigned i = 0; i < scriptRefs_.Size(); ++i) trusted_ = trusted_ && scriptRefs_[i]->IsTrusted(); } else // Local file: always trusted. { program_ = LoadScript(sourceFile_); trusted_ = true; // This is a file on the local filesystem. We are making an assumption nobody can inject untrusted code here. // Actually, we are assuming the attacker does not know the absolute location of the asset cache locally here, since if he makes // the client to load a script into local cache, he could use this code path to automatically load that unsafe script from cache, and make it trusted. -jj. } /// \todo Check validity at this point } String JavaScriptInstance::LoadScript(const String &fileName) { JS_PROFILE(JSInstance_LoadScript); String filename = fileName.Trimmed(); // First check if the include was supposed to go through the Asset API. ScriptAssetPtr asset = Urho3D::DynamicCast<ScriptAsset>(module_->GetFramework()->Asset()->FindAsset(fileName)); if (asset) return asset->scriptContent; /// @bug When including other scripts from startup scripts the only way to include is with relative paths. /// As you cannot use !rel: ref in startup scripts (loaded without EC_Script) so you cannot use local:// refs either. /// You have to do engine.IncludeFile("lib/class.js") etc. and this below code needs to find the file whatever the working dir is // Otherwise, treat fileName as a local file to load up. // Check install dir and the clean rel path. String installRelativePath = AddTrailingSlash(module_->Fw()->InstallationDirectory() + "jsmodules") + filename; String pathToFile; Urho3D::FileSystem* fs = module_->GetSubsystem<Urho3D::FileSystem>(); if (fs->FileExists(installRelativePath)) pathToFile = installRelativePath; else if (fs->FileExists(filename)) pathToFile = filename; if (pathToFile.Empty()) { LogError("JavascriptInstance::LoadScript: Failed to load script from file " + filename + "!"); return ""; } Urho3D::File scriptFile(module_->GetContext(), pathToFile, Urho3D::FILE_READ); if (!scriptFile.IsOpen()) { LogError("JavascriptInstance::LoadScript: Failed to load script from file " + filename + "!"); return ""; } String result; result.Resize(scriptFile.GetSize()); scriptFile.Read(&result[0], result.Length()); scriptFile.Close(); String trimmedResult = result.Trimmed(); if (trimmedResult.Empty()) { LogWarning("JavascriptInstance::LoadScript: Warning Loaded script from file " + filename + ", but the content was empty."); return ""; } return result; } void JavaScriptInstance::Unload() { DeleteEngine(); } void JavaScriptInstance::Run() { JS_PROFILE(JSInstance_Run); // Need to have either absolute file path source or an Asset API source. if (scriptRefs_.Empty() && program_.Empty()) { LogError("JavascriptInstance::Run: Cannot run, no script reference loaded."); return; } // Can't specify both a file source and an Asset API source. assert(sourceFile_.Empty() || scriptRefs_.Empty()); // If we've already evaluated this script once before, create a new script engine to run it again, or otherwise // the effects would stack (we'd possibly register into signals twice, or other odd side effects). // We never allow a script to be run twice in this kind of "stacking" manner. if (evaluated_) { Unload(); Load(); } if (!ctx_) { LogError("JavascriptInstance::Run: Cannot run, script engine not created."); return; } // If no script specified at all, we'll have to abort. if (program_.Empty() && scriptRefs_.Empty()) return; bool useAssets = !scriptRefs_.Empty(); size_t numScripts = useAssets ? scriptRefs_.Size() : 1; includedFiles_.Clear(); for (size_t i = 0; i < numScripts; ++i) { JS_PROFILE(JSInstance_Evaluate); String scriptSourceFilename = (useAssets ? scriptRefs_[i]->Name() : sourceFile_); const String &scriptContent = (useAssets ? scriptRefs_[i]->scriptContent : program_); if (!Evaluate(scriptContent, scriptSourceFilename)) break; } evaluated_ = true; ScriptEvaluated.Emit(this); } bool JavaScriptInstance::Evaluate(const String& script, const String& fileName) { if (!ctx_) { LogError("[Javascript] Cannot evaluate, script engine not created."); return false; } duk_push_string(ctx_, script.CString()); duk_push_string(ctx_, fileName.CString()); bool success = duk_eval_raw(ctx_, NULL, 0, DUK_COMPILE_EVAL | DUK_COMPILE_SAFE) == 0; if (!success) LogError("[JavaScript] Evaluate: " + GetErrorString(ctx_)); duk_pop(ctx_); // Pop result/error return success; } bool JavaScriptInstance::Execute(const String& functionName, bool logError) { if (!ctx_) { LogError("[JavaScript] Cannot execute function " + functionName + ", script engine not created."); return false; } duk_push_global_object(ctx_); duk_get_prop_string(ctx_, -1, functionName.CString()); duk_remove(ctx_, -2); // Remove global object bool success = duk_pcall(ctx_, 0) == 0; if (!success && logError) LogError("[JavaScript] Execute: " + GetErrorString(ctx_)); duk_pop(ctx_); // Pop result/error return success; } void JavaScriptInstance::IncludeFile(const String &path) { for(uint i = 0; i < includedFiles_.Size(); ++i) if (includedFiles_[i].ToLower() == path.ToLower()) { LogDebug("[JavaScript] IncludeFile: Not including already included file " + path); return; } String script = LoadScript(path); /* context->setActivationObject(context->parentContext()->activationObject()); context->setThisObject(context->parentContext()->thisObject()); */ Evaluate(script, path); includedFiles_.Push(path); } void JavaScriptInstance::RegisterService(const String& name, Urho3D::Object* object) { if (!ctx_) { LogError("[JavaScript] RegisterService: Cannot register object, script engine not created."); } duk_push_global_object(ctx_); PushWeakObject(ctx_, object); duk_put_prop_string(ctx_, -2, name.CString()); duk_pop(ctx_); } JavaScriptInstance* JavaScriptInstance::InstanceFromContext(duk_context* ctx) { HashMap<void*, JavaScriptInstance*>::ConstIterator i = instanceMap.Find(ctx); return i != instanceMap.End() ? i->second_ : nullptr; } }
33.823834
164
0.643842
17b2151ff6fba7969ae2195d9226693b5fc40c61
1,070
cs
C#
Source/EID.Wrapper/Pkcs11/Wrapper/AttributeUtil.cs
jdt/EID.Wrapper
39c561c06c1fef21f02bcf4e4fd2b44120214ef2
[ "MIT" ]
4
2015-03-05T16:37:57.000Z
2021-12-27T11:42:07.000Z
Source/EID.Wrapper/Pkcs11/Wrapper/AttributeUtil.cs
jdt/EID.Wrapper
39c561c06c1fef21f02bcf4e4fd2b44120214ef2
[ "MIT" ]
14
2015-02-16T19:54:11.000Z
2022-01-24T16:35:00.000Z
Source/EID.Wrapper/Pkcs11/Wrapper/AttributeUtil.cs
jdt/EID.Wrapper
39c561c06c1fef21f02bcf4e4fd2b44120214ef2
[ "MIT" ]
5
2019-02-18T14:38:53.000Z
2022-01-24T15:17:33.000Z
using System; using System.Runtime.InteropServices; namespace Net.Sf.Pkcs11.Wrapper { public class AttributeUtil { public static CK_ATTRIBUTE CreateClassAttribute(){ return createAttribute((uint)CKA.CLASS,new byte[0]); } public static CK_ATTRIBUTE CreateClassAttribute(CKO objectClass){ return createAttribute((uint)CKA.CLASS,BitConverter.GetBytes((uint)objectClass)); } public static CK_ATTRIBUTE createAttribute(uint type, byte[]val ){ CK_ATTRIBUTE attr= new CK_ATTRIBUTE(); attr.type=type; if(val!=null && val.Length>0){ attr.ulValueLen=(uint)val.Length; attr.pValue=Marshal.AllocHGlobal(val.Length); Marshal.Copy(val,0,attr.pValue,val.Length); }else{ attr.ulValueLen=(uint)val.Length; attr.pValue=IntPtr.Zero; } return attr; } public static CK_ATTRIBUTE createAttribute(uint type, int size ){ return createAttribute(type,new byte[size]); } public static CK_ATTRIBUTE createAttribute(CKA type, int size ){ return createAttribute((uint)type,new byte[size]); } } }
24.318182
84
0.714953
20eae28727fdb2298a9e1e00e761ef2036c9b8c2
30,371
cpp
C++
boinc_new/sched_old/sched_customize.cpp
tomasbrod/tbboinc
c125cc355b2dc9a1e536b5e5ded028d4e7f4613a
[ "MIT" ]
null
null
null
boinc_new/sched_old/sched_customize.cpp
tomasbrod/tbboinc
c125cc355b2dc9a1e536b5e5ded028d4e7f4613a
[ "MIT" ]
4
2020-09-07T15:54:45.000Z
2020-09-27T16:47:16.000Z
boinc_new/sched_old/sched_customize.cpp
tomasbrod/tbboinc
c125cc355b2dc9a1e536b5e5ded028d4e7f4613a
[ "MIT" ]
null
null
null
// This file is part of BOINC. // http://boinc.berkeley.edu // Copyright (C) 2008 University of California // // BOINC is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // // BOINC is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with BOINC. If not, see <http://www.gnu.org/licenses/>. // // This file contains functions that can be customized to // implement project-specific scheduling policies. // The functions are: // // wu_is_infeasible_custom() // Decide whether host can run a job using a particular app version. // In addition it can: // - set the app version's resource usage and/or FLOPS rate estimate // (by assigning to bav.host_usage) // - modify command-line args // (by assigning to bav.host_usage.cmdline) // - set the job's FLOPS count // (by assigning to wu.rsc_fpops_est) // // app_plan() // Decide whether host can use an app version, // and if so what resources it will use // TODO: get rid of this, and just use XML spec // // // WARNING: if you modify this file, you must prevent it from // being overwritten the next time you update BOINC source code. // You can either: // 1) write-protect this file, or // 2) put this in a differently-named file and change the Makefile.am // (and write-protect that) // In either case, put your version under source-code control, e.g. SVN #include "config.h" #include <string> using std::string; #include "str_util.h" #include "util.h" #include "sched_check.h" #include "sched_config.h" #include "sched_main.h" #include "sched_msgs.h" #include "sched_send.h" #include "sched_score.h" #include "sched_shmem.h" #include "sched_version.h" #include "sched_customize.h" #include "plan_class_spec.h" #ifndef ATI_MIN_RAM #define ATI_MIN_RAM 256*MEGA #endif #ifndef OPENCL_ATI_MIN_RAM #define OPENCL_ATI_MIN_RAM 256*MEGA #endif #ifndef OPENCL_INTEL_GPU_MIN_RAM #define OPENCL_INTEL_GPU_MIN_RAM 256*MEGA #endif #ifndef CUDA_MIN_RAM #define CUDA_MIN_RAM 256*MEGA #endif #ifndef CUDAFERMI_MIN_RAM #define CUDAFERMI_MIN_RAM 384*MEGA #endif #ifndef CUDA23_MIN_RAM #define CUDA23_MIN_RAM 384*MEGA #endif #ifndef OPENCL_NVIDIA_MIN_RAM #define OPENCL_NVIDIA_MIN_RAM CUDA_MIN_RAM #endif PLAN_CLASS_SPECS plan_class_specs; /* is there a plan class spec that restricts the worunit (or batch) */ bool wu_restricted_plan_class; GPU_REQUIREMENTS gpu_requirements[NPROC_TYPES]; bool wu_is_infeasible_custom( WORKUNIT& wu, APP& /*app*/, BEST_APP_VERSION& bav ) { #if 0 // example 1: if WU name contains "_v1", don't use GPU apps. // Note: this is slightly suboptimal. // If the host is able to accept both GPU and CPU jobs, // we'll skip this job rather than send it for the CPU. // Fixing this would require a big architectural change. // if (strstr(wu.name, "_v1") && bav.host_usage.uses_gpu()) { return true; } #endif #if 0 // example 2: for NVIDIA GPU app, // wu.batch is the minimum number of GPU processors. // Don't send if #procs is less than this. // if (!strcmp(app.name, "foobar") && bav.host_usage.proc_type == PROC_TYPE_NVIDIA_GPU) { int n = g_request->coprocs.nvidia.prop.multiProcessorCount; if (n < wu.batch) { return true; } } #endif #if 0 // example 3: require that wu.opaque = user.donated // if (wu.opaque && wu.opaque != g_reply->user.donated) { return true; } #endif // WU restriction if (wu_restricted_plan_class) { if (plan_class_specs.classes.size() > 0) { if (plan_class_specs.wu_is_infeasible(bav.avp->plan_class, &wu)) { return true; } } } return false; } #ifndef isnum #define isnum(x) (((x)>='0') && ((x)<='9')) #endif #ifndef isnumorx #define isnumorx(x) (isnum(x) || ((x=='X') || (x=='x'))) #endif // the following is for an app that can use anywhere from 1 to 64 threads // static inline bool app_plan_mt(SCHEDULER_REQUEST&, HOST_USAGE& hu) { double ncpus = g_wreq->effective_ncpus; // number of usable CPUs, taking user prefs into account if (ncpus < 2) return false; int nthreads = (int)ncpus; if (nthreads > 64) nthreads = 64; hu.avg_ncpus = nthreads; sprintf(hu.cmdline, "--nthreads %d", nthreads); hu.projected_flops = capped_host_fpops()*hu.avg_ncpus*.99; // the .99 ensures that on uniprocessors a sequential app // will be used in preferences to this hu.peak_flops = capped_host_fpops()*hu.avg_ncpus; if (config.debug_version_select) { log_messages.printf(MSG_NORMAL, "[version] Multi-thread app projected %.2fGS\n", hu.projected_flops/1e9 ); } return true; } bool app_plan_opencl_cpu_intel(SCHEDULER_REQUEST& sreq, HOST_USAGE& hu) { OPENCL_CPU_PROP ocp; if (!sreq.host.get_opencl_cpu_prop("intel", ocp)) { return false; } return app_plan_mt(sreq, hu); } static bool ati_check(COPROC_ATI& c, HOST_USAGE& hu, int min_driver_version, bool need_amd_libs, double min_ram, double ndevs, // # of GPUs used; can be fractional double cpu_frac, // fraction of FLOPS performed by CPU double flops_scale, int min_hd_model=0 ) { if (c.version_num) { gpu_requirements[PROC_TYPE_AMD_GPU].update(min_driver_version, min_ram); } if (min_hd_model) { char *p=strcasestr(c.name,"hd"); if (p) { p+=2; while (p && !isnum(*p)) p++; char modelnum[64]; int i=0; while ((i<63) && p[i] && isnumorx(p[i])) { modelnum[i]=p[i]; if ((modelnum[i]=='x') || (modelnum[i]=='X')) { modelnum[i]='0'; } i++; } modelnum[i]=0; i=atoi(modelnum); if (i<min_hd_model) { if (config.debug_version_select) { log_messages.printf(MSG_NORMAL, "[version] Requires ATI HD%4d+. Found HD%4d\n", min_hd_model, i ); } return false; } } } if (need_amd_libs) { if (!c.amdrt_detected) { if (config.debug_version_select) { log_messages.printf(MSG_NORMAL, "[version] AMD run time libraries not found\n" ); } return false; } } else { if (!c.atirt_detected) { if (config.debug_version_select) { log_messages.printf(MSG_NORMAL, "[version] ATI run time libraries not found\n" ); } return false; } } if (c.version_num < min_driver_version) { if (config.debug_version_select) { int app_major=min_driver_version/10000000; int app_minor=(min_driver_version%10000000)/10000; int app_rev=(min_driver_version%10000); int dev_major=c.version_num/10000000; int dev_minor=(c.version_num%10000000)/10000; int dev_rev=(c.version_num%10000); log_messages.printf(MSG_NORMAL, "[version] Bad display driver revision %d.%d.%d<%d.%d.%d.\n", dev_major,dev_minor,dev_rev,app_major,app_minor,app_rev ); } return false; } if (c.available_ram < min_ram) { if (config.debug_version_select) { log_messages.printf(MSG_NORMAL, "[version] Insufficient GPU RAM %f>%f.\n", min_ram, c.available_ram ); } return false; } hu.gpu_ram = min_ram; hu.proc_type = PROC_TYPE_AMD_GPU; hu.gpu_usage = ndevs; coproc_perf( capped_host_fpops(), flops_scale * hu.gpu_usage*c.peak_flops, cpu_frac, hu.projected_flops, hu.avg_ncpus ); hu.peak_flops = hu.gpu_usage*c.peak_flops + hu.avg_ncpus*capped_host_fpops(); return true; } static inline bool app_plan_ati( SCHEDULER_REQUEST& sreq, char* plan_class, HOST_USAGE& hu ) { COPROC_ATI& c = sreq.coprocs.ati; if (!c.count) { if (config.debug_version_select) { log_messages.printf(MSG_NORMAL,"[version] Host has no ATI GPUs\n"); } return false; } if (!strcmp(plan_class, "ati")) { if (!ati_check(c, hu, ati_version_int(1, 0, 0), true, ATI_MIN_RAM, 1, .01, .20 )) { return false; } } if (!strcmp(plan_class, "ati13amd")) { if (!ati_check(c, hu, ati_version_int(1, 3, 0), true, ATI_MIN_RAM, 1, .01, .21 )) { return false; } } if (!strcmp(plan_class, "ati13ati")) { if (!ati_check(c, hu, ati_version_int(1, 3, 186), false, ATI_MIN_RAM, 1, .01, .22 )) { return false; } } if (!strcmp(plan_class, "ati14")) { if (!ati_check(c, hu, ati_version_int(1, 4, 0), false, ATI_MIN_RAM, 1, .01, .23 )) { return false; } } #ifdef SETIATHOME // ati_opencl_<ver> plan classes are for running // opencl ati apps on pre-v7 boinc core clients if (!strcmp(plan_class, "ati_opencl_100")) { if (!ati_check(c, hu, ati_version_int(1, 4, 1386), false, OPENCL_ATI_MIN_RAM, 1, .01, .14, 4600 )) { return false; } } #endif if (config.debug_version_select) { log_messages.printf(MSG_NORMAL, "[version] %s ATI app projected %.2fG peak %.2fG %.3f CPUs\n", plan_class, hu.projected_flops/1e9, hu.peak_flops/1e9, hu.avg_ncpus ); } return true; } // Change values for these parameters in shed_customize.h! #ifndef CUDA_MIN_DRIVER_VERSION #define CUDA_MIN_DRIVER_VERSION 17700 #endif #ifndef CUDA23_MIN_CUDA_VERSION #define CUDA23_MIN_CUDA_VERSION 2030 #endif #ifndef CUDA23_MIN_DRIVER_VERSION #define CUDA23_MIN_DRIVER_VERSION 19038 #endif #ifndef CUDA3_MIN_CUDA_VERSION #define CUDA3_MIN_CUDA_VERSION 3000 #endif #ifndef CUDA3_MIN_DRIVER_VERSION #define CUDA3_MIN_DRIVER_VERSION 19500 #endif #ifndef CUDA_OPENCL_MIN_DRIVER_VERSION #define CUDA_OPENCL_MIN_DRIVER_VERSION 19713 #endif #ifndef CUDA_OPENCL_101_MIN_DRIVER_VERSION #define CUDA_OPENCL_101_MIN_DRIVER_VERSION 28013 #endif static bool cuda_check(COPROC_NVIDIA& c, HOST_USAGE& hu, int min_cc, int max_cc, int min_cuda_version, int min_driver_version, double min_ram, double ndevs, // # of GPUs used; can be fractional double cpu_frac, // fraction of FLOPS performed by CPU double flops_scale ) { int cc = c.prop.major*100 + c.prop.minor; if (min_cc && (cc < min_cc)) { if (config.debug_version_select) { log_messages.printf(MSG_NORMAL, "[version] App requires compute capability > %d.%d (has %d.%d).\n", min_cc/100,min_cc%100, c.prop.major,c.prop.minor ); } return false; } if (max_cc && cc >= max_cc) { if (config.debug_version_select) { log_messages.printf(MSG_NORMAL, "[version] App requires compute capability <= %d.%d (has %d.%d).\n", max_cc/100,max_cc%100, c.prop.major,c.prop.minor ); } return false; } if (c.display_driver_version) { gpu_requirements[PROC_TYPE_NVIDIA_GPU].update(min_driver_version, min_ram); } // Old BOINC clients report display driver version; // newer ones report CUDA RT version. // Some Linux doesn't return either. // if (!c.cuda_version && !c.display_driver_version) { if (config.debug_version_select) { log_messages.printf(MSG_NORMAL, "[version] Client did not provide cuda or driver version.\n" ); } return false; } if (c.cuda_version) { if (min_cuda_version && (c.cuda_version < min_cuda_version)) { if (config.debug_version_select) { double app_version=(double)(min_cuda_version/1000)+(double)(min_cuda_version%100)/100.0; double client_version=(double)(c.cuda_version/1000)+(double)(c.cuda_version%100)/100.0; log_messages.printf(MSG_NORMAL, "[version] Bad CUDA version %f>%f.\n", app_version, client_version ); } return false; } } if (c.display_driver_version) { if (min_driver_version && (c.display_driver_version < min_driver_version)) { if (config.debug_version_select) { double app_version=(double)(min_driver_version)/100.0; double client_version=(double)(c.display_driver_version)/100.0; log_messages.printf(MSG_NORMAL, "[version] Bad display driver revision %f>%f.\n", app_version, client_version ); } return false; } } if (c.available_ram < min_ram) { if (config.debug_version_select) { log_messages.printf(MSG_NORMAL, "[version] Insufficient GPU RAM %f>%f.\n", min_ram, c.available_ram ); } return false; } hu.gpu_ram = min_ram; hu.proc_type = PROC_TYPE_NVIDIA_GPU; hu.gpu_usage = ndevs; coproc_perf( capped_host_fpops(), flops_scale * hu.gpu_usage*c.peak_flops, cpu_frac, hu.projected_flops, hu.avg_ncpus ); hu.peak_flops = hu.gpu_usage*c.peak_flops + hu.avg_ncpus*capped_host_fpops(); return true; } // the following is for an app that uses an NVIDIA GPU // static inline bool app_plan_nvidia( SCHEDULER_REQUEST& sreq, char* plan_class, HOST_USAGE& hu ) { COPROC_NVIDIA& c = sreq.coprocs.nvidia; if (!c.count) { if (config.debug_version_select) { log_messages.printf(MSG_NORMAL, "[version] Host has no NVIDIA GPUs.\n"); } return false; } // Macs require 6.10.28 // if (strstr(sreq.host.os_name, "Darwin") && (sreq.core_client_version < 61028)) { if (config.debug_version_select) { log_messages.printf(MSG_NORMAL, "[version] CUDA on MacOS requires BOINC 6.10.28 or higher.\n"); } return false; } // for CUDA 2.3, we need to check the CUDA RT version. // Old BOINC clients report display driver version; // newer ones report CUDA RT version #ifdef SETIATHOME // cuda_opencl_<ver> plan classes are for running opencl apps on // pre-boinc-v7 core clients. May be useful for other projects // if (!strcmp(plan_class, "cuda_opencl_100")) { if (!cuda_check(c, hu, 100, 0, 0,CUDA_OPENCL_MIN_DRIVER_VERSION, CUDA_MIN_RAM, 1, .01, 0.14 )) { return false; } } else if (!strcmp(plan_class, "cuda_opencl_101")) { if (!cuda_check(c, hu, 200, 0, 0,CUDA_OPENCL_101_MIN_DRIVER_VERSION, CUDA_MIN_RAM, 1, .01, 0.14 )) { return false; } } else #endif // SETIATHOME if (!strcmp(plan_class, "cuda_fermi")) { if (!cuda_check(c, hu, 200, 0, CUDA3_MIN_CUDA_VERSION, CUDA3_MIN_DRIVER_VERSION, CUDAFERMI_MIN_RAM, 1, .01, .22 )) { return false; } } else if (!strcmp(plan_class, "cuda23")) { if (!cuda_check(c, hu, 100, 200, // change to zero if app is compiled to byte code CUDA23_MIN_CUDA_VERSION, CUDA23_MIN_DRIVER_VERSION, CUDA23_MIN_RAM, 1, .01, .21 )) { return false; } } else if (!strcmp(plan_class, "cuda")) { if (!cuda_check(c, hu, 100, 200, // change to zero if app is compiled to byte code 0, CUDA_MIN_DRIVER_VERSION, CUDA_MIN_RAM, 1, .01, .20 )) { return false; } } else { log_messages.printf(MSG_CRITICAL, "UNKNOWN PLAN CLASS %s\n", plan_class ); return false; } if (config.debug_version_select) { log_messages.printf(MSG_NORMAL, "[version] %s app projected %.2fG peak %.2fG %.3f CPUs\n", plan_class, hu.projected_flops/1e9, hu.peak_flops/1e9, hu.avg_ncpus ); } return true; } // The following is for a non-CPU-intensive application. // Say that we'll use 1% of a CPU. // This will cause the client (6.7+) to run it at non-idle priority // static inline bool app_plan_nci(SCHEDULER_REQUEST&, HOST_USAGE& hu) { hu.avg_ncpus = .01; hu.projected_flops = capped_host_fpops()*1.01; // The *1.01 is needed to ensure that we'll send this app // version rather than a non-plan-class one hu.peak_flops = capped_host_fpops()*.01; return true; } // the following is for an app version that requires a processor with SSE3, // and will run 10% faster than the non-SSE3 version // NOTE: clients return "pni" instead of "sse3" // static inline bool app_plan_sse3( SCHEDULER_REQUEST& sreq, HOST_USAGE& hu ) { downcase_string(sreq.host.p_features); if (!strstr(sreq.host.p_features, "pni")) { // Pre-6.x clients report CPU features in p_model // if (!strstr(sreq.host.p_model, "pni")) { //add_no_work_message("Your CPU lacks SSE3"); return false; } } hu.avg_ncpus = 1; hu.projected_flops = 1.1*capped_host_fpops(); hu.peak_flops = capped_host_fpops(); return true; } static inline bool opencl_check( COPROC& cp, HOST_USAGE& hu, int min_opencl_device_version, double min_global_mem_size, double ndevs, double cpu_frac, double flops_scale ) { if (cp.opencl_prop.opencl_device_version_int < min_opencl_device_version) { if (config.debug_version_select) { log_messages.printf(MSG_NORMAL, "[version] [opencl_check] App requires OpenCL verion >= %d (has %d).\n", min_opencl_device_version, cp.opencl_prop.opencl_device_version_int ); } return false; } #ifdef SETIATHOME // fix for ATI drivers that report zero or negative global memory size // on some cards. Probably no longer necessary. if (cp.opencl_prop.global_mem_size < cp.opencl_prop.local_mem_size) { cp.opencl_prop.global_mem_size=cp.opencl_prop.local_mem_size; } #endif if (cp.opencl_prop.global_mem_size && (cp.opencl_prop.global_mem_size < min_global_mem_size)) { if (config.debug_version_select) { log_messages.printf(MSG_NORMAL, "[version] [opencl_check] Insufficient GPU RAM %f>%ld.\n", min_global_mem_size, cp.opencl_prop.global_mem_size ); } return false; } hu.gpu_ram = min_global_mem_size; if (!strcmp(cp.type, proc_type_name_xml(PROC_TYPE_NVIDIA_GPU))) { hu.proc_type = PROC_TYPE_NVIDIA_GPU; hu.gpu_usage = ndevs; } else if (!strcmp(cp.type, proc_type_name_xml(PROC_TYPE_AMD_GPU))) { hu.proc_type = PROC_TYPE_AMD_GPU; hu.gpu_usage = ndevs; } else if (!strcmp(cp.type, proc_type_name_xml(PROC_TYPE_INTEL_GPU))) { hu.proc_type = PROC_TYPE_INTEL_GPU; hu.gpu_usage = ndevs; } coproc_perf( capped_host_fpops(), flops_scale * ndevs * cp.peak_flops, cpu_frac, hu.projected_flops, hu.avg_ncpus ); hu.peak_flops = ndevs*cp.peak_flops + hu.avg_ncpus*capped_host_fpops(); return true; } static inline bool app_plan_opencl( SCHEDULER_REQUEST& sreq, const char* plan_class, HOST_USAGE& hu ) { // opencl_*_<ver> plan classes check for a trailing integer which is // used as the opencl version number. This is compatible with the old // opencl_nvidia_101 and opencl_ati_101 plan classes, but doens't require // modifications if someone wants a opencl_nvidia_102 plan class. const char *p=plan_class+strlen(plan_class); while (isnum(p[-1])) { p--; } int ver=atoi(p); if (config.debug_version_select) { log_messages.printf(MSG_NORMAL, "[version] plan_class %s uses OpenCl version %d\n", plan_class, ver ); } if (strstr(plan_class, "nvidia")) { COPROC_NVIDIA& c = sreq.coprocs.nvidia; if (!c.count) return false; if (!c.have_opencl) return false; if (strstr(plan_class,"opencl_nvidia") == plan_class) { return opencl_check( c, hu, ver, OPENCL_NVIDIA_MIN_RAM, 1, .01, .14 ); } else { log_messages.printf(MSG_CRITICAL, "Unknown plan class: %s\n", plan_class ); return false; } } else if (strstr(plan_class, "amd")) { COPROC_ATI& c = sreq.coprocs.ati; if (!c.count) { if (config.debug_version_select) { log_messages.printf(MSG_NORMAL, "[version] [opencl] HOST has no ATI/AMD GPUs\n" ); } return false; } if (!c.have_opencl) { if (config.debug_version_select) { log_messages.printf(MSG_NORMAL, "[version] [opencl] GPU/Driver/BOINC revision doesn not support OpenCL\n" ); } return false; } if (strstr(plan_class,"opencl_ati") == plan_class) { return opencl_check( c, hu, ver, OPENCL_ATI_MIN_RAM, 1, .01, .14 ); } else { log_messages.printf(MSG_CRITICAL, "[version] [opencl] Unknown plan class: %s\n", plan_class ); return false; } } else if (strstr(plan_class, "intel_gpu")) { COPROC_INTEL& c = sreq.coprocs.intel_gpu; if (!c.count) { if (config.debug_version_select) { log_messages.printf(MSG_NORMAL, "[version] [opencl] HOST has no INTEL GPUs\n" ); } return false; } if (!c.have_opencl) { if (config.debug_version_select) { log_messages.printf(MSG_NORMAL, "[version] [opencl] GPU/Driver/BOINC revision doesn not support OpenCL\n" ); } return false; } if (strstr(plan_class,"opencl_intel_gpu") == plan_class) { return opencl_check( c, hu, ver, OPENCL_INTEL_GPU_MIN_RAM, 1, .1, .2 ); } else { log_messages.printf(MSG_CRITICAL, "[version] [opencl] Unknown plan class: %s\n", plan_class ); return false; } // maybe add a clause for multicore CPU } else { log_messages.printf(MSG_CRITICAL, "[version] [opencl] Unknown plan class: %s\n", plan_class ); return false; } } // handles vbox[32|64][_[mt]|[hwaccel]] // "mt" is tailored to the needs of CERN: // use 1 or 2 CPUs static inline bool app_plan_vbox( SCHEDULER_REQUEST& sreq, char* plan_class, HOST_USAGE& hu ) { bool can_use_multicore = true; // host must run 7.0+ client // if (sreq.core_client_major_version < 7) { add_no_work_message("BOINC client 7.0+ required for Virtualbox jobs"); return false; } // host must have VirtualBox 3.2 or later // if (strlen(sreq.host.virtualbox_version) == 0) { add_no_work_message("VirtualBox is not installed"); return false; } int n, maj, min, rel; n = sscanf(sreq.host.virtualbox_version, "%d.%d.%d", &maj, &min, &rel); if ((n != 3) || (maj < 3) || (maj == 3 and min < 2)) { add_no_work_message("VirtualBox version 3.2 or later is required"); return false; } // host must have VM acceleration in order to run hwaccel jobs // NOTE: 64-bit VM's require hard acceleration extensions or they fail // to boot. // if (strstr(plan_class, "hwaccel") || strstr(plan_class, "64")) { if ((!strstr(sreq.host.p_features, "vmx") && !strstr(sreq.host.p_features, "svm")) || sreq.host.p_vm_extensions_disabled ) { add_no_work_message( "VirtualBox jobs require hardware acceleration support. Your " "processor does not support the required instruction set." ); return false; } } // host must have VM acceleration in order to run multi-core jobs // if (strstr(plan_class, "mt")) { if ((!strstr(sreq.host.p_features, "vmx") && !strstr(sreq.host.p_features, "svm")) || sreq.host.p_vm_extensions_disabled ) { can_use_multicore = false; } } // only send the version for host's primary platform. // A Win64 host can't run a 32-bit VM app: // it will look in the 32-bit half of the registry and fail // PLATFORM* p = g_request->platforms.list[0]; if (is_64b_platform(p->name)) { if (!strstr(plan_class, "64")) return false; } else { if (strstr(plan_class, "64")) return false; } double flops_scale = 1; hu.avg_ncpus = 1; if (strstr(plan_class, "mt")) { if (can_use_multicore) { // Use number of usable CPUs, taking user prefs into account double ncpus = g_wreq->effective_ncpus; hu.avg_ncpus = ncpus; sprintf(hu.cmdline, "--nthreads %f", ncpus); } // use the non-mt version rather than the mt version with 1 CPU // flops_scale = .99; } hu.projected_flops = flops_scale * capped_host_fpops()*hu.avg_ncpus; hu.peak_flops = capped_host_fpops()*hu.avg_ncpus; if (config.debug_version_select) { log_messages.printf(MSG_NORMAL, "[version] %s app projected %.2fG\n", plan_class, hu.projected_flops/1e9 ); } return true; } // app planning function. // See http://boinc.berkeley.edu/trac/wiki/AppPlan // bool app_plan(SCHEDULER_REQUEST& sreq, char* plan_class, HOST_USAGE& hu, const WORKUNIT* wu) { char buf[256]; static bool check_plan_class_spec = true; static bool have_plan_class_spec = false; static bool bad_plan_class_spec = false; if (config.debug_version_select) { log_messages.printf(MSG_NORMAL, "[version] Checking plan class '%s'\n", plan_class ); } if (check_plan_class_spec) { check_plan_class_spec = false; safe_strcpy(buf, config.project_dir); safe_strcat(buf, "/plan_class_spec.xml"); int retval = plan_class_specs.parse_file(buf); if (retval == ERR_FOPEN) { have_plan_class_spec = false; } else if (retval) { log_messages.printf(MSG_CRITICAL, "Error parsing plan class spec file '%s': %s\n", buf, boincerror(retval) ); bad_plan_class_spec = true; } else { if (config.debug_version_select) { log_messages.printf(MSG_NORMAL, "[version] reading plan classes from file '%s'\n", buf ); } have_plan_class_spec = true; } } if (bad_plan_class_spec) { return false; } if (have_plan_class_spec) { return plan_class_specs.check(sreq, plan_class, hu, wu); } if (!strcmp(plan_class, "mt")) { return app_plan_mt(sreq, hu); } else if (strstr(plan_class, "opencl_cpu_intel")) { return app_plan_opencl_cpu_intel(sreq, hu); } else if (strstr(plan_class, "opencl") == plan_class) { return app_plan_opencl(sreq, plan_class, hu); } else if (strstr(plan_class, "ati") == plan_class) { return app_plan_ati(sreq, plan_class, hu); } else if (strstr(plan_class, "cuda")) { return app_plan_nvidia(sreq, plan_class, hu); } else if (!strcmp(plan_class, "nci")) { return app_plan_nci(sreq, hu); } else if (!strcmp(plan_class, "sse3")) { return app_plan_sse3(sreq, hu); } else if (strstr(plan_class, "vbox")) { return app_plan_vbox(sreq, plan_class, hu); } log_messages.printf(MSG_CRITICAL, "Unknown plan class: %s\n", plan_class ); return false; } void handle_file_xfer_results() { for (unsigned int i=0; i<g_request->file_xfer_results.size(); i++) { RESULT& r = g_request->file_xfer_results[i]; log_messages.printf(MSG_NORMAL, "completed file xfer %s\n", r.name ); g_reply->result_acks.push_back(string(r.name)); } }
30.462387
104
0.579599
04c272dcfeff39619535ad1545a2e168767b4ac7
635
asm
Assembly
oeis/019/A019560.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/019/A019560.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/019/A019560.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A019560: Coordination sequence for C_4 lattice. ; 1,32,192,608,1408,2720,4672,7392,11008,15648,21440,28512,36992,47008,58688,72160,87552,104992,124608,146528,170880,197792,227392,259808,295168,333600,375232,420192,468608,520608,576320,635872,699392,767008,838848,915040,995712,1080992,1171008,1265888,1365760,1470752,1580992,1696608,1817728,1944480,2076992,2215392,2359808,2510368,2667200,2830432,3000192,3176608,3359808,3549920,3747072,3951392,4163008,4382048,4608640,4842912,5084992,5335008,5593088,5859360,6133952,6416992,6708608,7008928,7318080 mul $0,2 mov $2,$0 pow $0,2 add $0,2 mul $2,8 mul $0,$2 trn $0,3 div $0,3 add $0,1
48.846154
500
0.807874
f0d99a8a8af0b2cbf28d8db0761598d0ba784bf0
2,198
html
HTML
project/doc/allclasses-noframe.html
CUB3D/FileAPI-2.0
edada9f5b1b160b7937f16ec1b402c72ccabe329
[ "Apache-2.0" ]
null
null
null
project/doc/allclasses-noframe.html
CUB3D/FileAPI-2.0
edada9f5b1b160b7937f16ec1b402c72ccabe329
[ "Apache-2.0" ]
null
null
null
project/doc/allclasses-noframe.html
CUB3D/FileAPI-2.0
edada9f5b1b160b7937f16ec1b402c72ccabe329
[ "Apache-2.0" ]
null
null
null
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (version 1.7.0_55) on Mon Feb 23 22:22:17 GMT 2015 --> <title>All Classes</title> <meta name="date" content="2015-02-23"> <link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style"> </head> <body> <h1 class="bar">All Classes</h1> <div class="indexContainer"> <ul> <li><a href="cub3d/file/reader/BasicReader.html" title="class in cub3d.file.reader">BasicReader</a></li> <li><a href="cub3d/file/writer/BasicWriter.html" title="class in cub3d.file.writer">BasicWriter</a></li> <li><a href="cub3d/file/reader/CallReader.html" title="class in cub3d.file.reader">CallReader</a></li> <li><a href="cub3d/file/writer/CallWriter.html" title="class in cub3d.file.writer">CallWriter</a></li> <li><a href="cub3d/file/main/DataReadException.html" title="class in cub3d.file.main">DataReadException</a></li> <li><a href="cub3d/file/main/Element.html" title="class in cub3d.file.main">Element</a></li> <li><a href="cub3d/file/main/FileAPI.html" title="class in cub3d.file.main">FileAPI</a></li> <li><a href="cub3d/file/main/FileUtils.html" title="class in cub3d.file.main">FileUtils</a></li> <li><a href="cub3d/file/main/Options.html" title="class in cub3d.file.main">Options</a></li> <li><a href="cub3d/file/main/ParseException.html" title="class in cub3d.file.main">ParseException</a></li> <li><a href="cub3d/file/reader/PropertieReader.html" title="class in cub3d.file.reader">PropertieReader</a></li> <li><a href="cub3d/file/writer/PropertieWriter.html" title="class in cub3d.file.writer">PropertieWriter</a></li> <li><a href="cub3d/file/reader/Reader.html" title="class in cub3d.file.reader">Reader</a></li> <li><a href="cub3d/file/main/Value.html" title="class in cub3d.file.main">Value</a></li> <li><a href="cub3d/file/writer/Writer.html" title="class in cub3d.file.writer">Writer</a></li> <li><a href="cub3d/file/reader/ZipReader.html" title="class in cub3d.file.reader">ZipReader</a></li> <li><a href="cub3d/file/writer/ZipWriter.html" title="class in cub3d.file.writer">ZipWriter</a></li> </ul> </div> </body> </html>
62.8
112
0.716561
855a1f6b38d477b18bb673c11682858d1a6469ba
2,071
js
JavaScript
app/javascript/components/FeaturedHop.js
ivan-direct/hops-and-adjuncts
392fa5b62df776736c91506ae6a50c40050e1068
[ "MIT" ]
null
null
null
app/javascript/components/FeaturedHop.js
ivan-direct/hops-and-adjuncts
392fa5b62df776736c91506ae6a50c40050e1068
[ "MIT" ]
1
2021-12-11T23:27:36.000Z
2021-12-11T23:27:36.000Z
app/javascript/components/FeaturedHop.js
ivan-direct/hops-and-adjuncts
392fa5b62df776736c91506ae6a50c40050e1068
[ "MIT" ]
null
null
null
import { Card } from "antd"; import React, { Component } from "react"; import { Link } from "react-router-dom"; import ErrorCard from "./ErrorCard"; import { getRequest } from "./NetworkHelper"; class FeaturedHop extends Component { static truncatedString(beers) { const size = beers.length > 10 ? 10 : beers.length; const newArray = []; for (let index = 0; index < size; index += 1) { const element = beers[index]; newArray.push(element); } return newArray; } constructor(props) { super(props); this.state = { hop: { id: null, name: null, rating: null, ranking: null, beers: [], }, }; } componentDidMount() { this.loadHops(); } loadHops = () => { const url = "api/v1/hops/featured"; getRequest(url).then((response) => { const { data } = response; if (data.error_message === undefined) { const { hop } = data; const newEl = { key: hop.id, id: hop.id, name: hop.name, rating: hop.rating, ranking: hop.ranking, beers: hop.beers, }; this.setState({ hop: newEl }); } }); }; render() { const { hop } = this.state; const beerNames = FeaturedHop.truncatedString(hop.beers) .map((beer) => beer.name) .join(", "); const ellipsis = hop.beers.length > 10 ? "..." : ""; const hopPresent = hop.id != null; return ( <> {hopPresent && ( <Card key={hop.id} title={<Link to={`/hops/${hop.id}`} className="hop-link">{hop.name}</Link>} bordered style={{ width: "65%", marginBottom: "16px" }} > <p>{`Rating: ${hop.rating}`}</p> <p>{`Ranking: ${hop.ranking}`}</p> <p style={{ maxWidth: "450px" }}> {hop.beers && `Beers: ${beerNames}${ellipsis}`} </p> </Card> )} {!hopPresent && <ErrorCard />} </> ); } } export default FeaturedHop;
24.654762
87
0.499276
fe016e124ab3aa78ce2bc81e6f7f9b4b7d9373a4
3,018
cpp
C++
src/ppl/cv/x86/calchist_unittest.cpp
ouonline/ppl.cv
4a3bdda3054c3664f043130c5ed35970edb512df
[ "Apache-2.0" ]
291
2021-06-30T13:38:19.000Z
2022-03-31T08:53:17.000Z
src/ppl/cv/x86/calchist_unittest.cpp
zzb254188/ppl.cv
2e70d85c1a2f427f2f55dd3b1c7d4238516b5af4
[ "Apache-2.0" ]
22
2021-07-05T08:00:16.000Z
2022-03-31T01:28:36.000Z
src/ppl/cv/x86/calchist_unittest.cpp
zzb254188/ppl.cv
2e70d85c1a2f427f2f55dd3b1c7d4238516b5af4
[ "Apache-2.0" ]
58
2021-06-30T13:43:24.000Z
2022-03-26T15:56:50.000Z
// 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. #include "ppl/cv/x86/calchist.h" #include "ppl/cv/x86/test.h" #include <memory> #include <gtest/gtest.h> #include "ppl/cv/debug.h" #include <opencv2/imgproc.hpp> template<typename T> void CalcHistTest(int height, int width) { constexpr int c = 1; int histSize = 256; std::unique_ptr<uint8_t> src(new uint8_t[width * height * c]); std::unique_ptr<uint8_t> mask(new uint8_t[width * height * c]); std::unique_ptr<int> dst(new int[histSize]); //for uint8_t //init ppl::cv::debug::randomFill<uint8_t>(src.get(), width * height * c, 0, 255); ppl::cv::debug::randomFill<uint8_t>(mask.get(), width * height * c, 0, 2); memset(dst.get(), 0, sizeof(int)*histSize); //without mask ppl::cv::x86::CalcHist<uint8_t>(height, width, width * c, src.get(), dst.get()); //opencv cv::Mat srcMat(height, width, CV_MAKETYPE(cv::DataType<T>::depth, 1), src.get()); cv::Mat maskMat(height, width, CV_MAKETYPE(cv::DataType<T>::depth, 1), mask.get()); cv::Mat dstMat_opencv; int channels = 0; float data_range[2] = {0,256}; const float* ranges[1] = {data_range}; cv::calcHist(&srcMat, 1, &channels, cv::Mat(), dstMat_opencv, 1, &histSize, ranges, true, false); //check int* hist = dst.get(); for(int i = 0; i < 256; i++){ float hist_opencv = dstMat_opencv.at<float>(i); if(abs(hist_opencv - hist[i]) > 1e-6) { FAIL() << "hist " << i << " error!!!" << "\n"; } } //with mask memset(dst.get(), 0, sizeof(int)*255); ppl::cv::x86::CalcHist<uint8_t>(height, width, width * c, src.get(), dst.get(), width * c, mask.get()); //opencv cv::Mat dstMat_opencv_mask; cv::calcHist(&srcMat, 1, &channels, maskMat, dstMat_opencv_mask, 1, &histSize, ranges, true, false); //check hist = dst.get(); for(int i = 0; i < 256; i++){ float hist_opencv = dstMat_opencv_mask.at<float>(i); if(abs(hist_opencv - hist[i]) > 1e-6) { FAIL() << "mask hist " << i << " error!!!" << "\n"; } } } TEST(CalcHistTest_UINT8, x86) { CalcHistTest<uint8_t>(640, 720); CalcHistTest<uint8_t>(720, 1080); CalcHistTest<uint8_t>(1080, 1920); }
34.295455
107
0.63552
c7f2ec5563316fd5cf076417f1d3ebea2263e052
1,067
java
Java
source/game/content/commands/newcommandsystem/impl/CommandItemUpdate.java
FavyTeam/Elderscape_server
38bf75396e4e13222be67d5f15eb0b9862dca6bb
[ "MIT" ]
3
2019-05-09T16:59:13.000Z
2019-05-09T18:29:57.000Z
source/game/content/commands/newcommandsystem/impl/CommandItemUpdate.java
FavyTeam/Elderscape_server
38bf75396e4e13222be67d5f15eb0b9862dca6bb
[ "MIT" ]
null
null
null
source/game/content/commands/newcommandsystem/impl/CommandItemUpdate.java
FavyTeam/Elderscape_server
38bf75396e4e13222be67d5f15eb0b9862dca6bb
[ "MIT" ]
7
2019-07-11T23:04:40.000Z
2021-08-02T14:27:13.000Z
package game.content.commands.newcommandsystem.impl; import core.ServerConfiguration; import core.ServerConstants; import game.content.commands.newcommandsystem.CommandAbstract; import game.content.donator.DonatorTokenUse.DonatorRankSpentData; import game.player.Player; public class CommandItemUpdate extends CommandAbstract { @Override public int getRequiredRights() { return ServerConstants.ADMINISTRATOR; } @Override public DonatorRankSpentData getDonatorRankRequired() { return null; } @Override public String[] getName() { return new String[] {"itemupdate"}; } @Override public String matchingType() { return "EQUALS"; } @Override public String getCorrectUsageExample() { return null; } @Override public String getDescription() { return null; } @Override public void executeCommand(Player player, String command) { ServerConfiguration.FORCE_ITEM_UPDATE = !ServerConfiguration.FORCE_ITEM_UPDATE; player.getPA().sendMessage("Item update every game tick is: " + ServerConfiguration.FORCE_ITEM_UPDATE); } }
21.77551
105
0.773196
4a37ee2c280c75ab9c0d63a6236c1b1d0366ec46
226
cs
C#
source/Calamari.Shared/Integration/Processes/Semaphores/ISemaphore.cs
WS-QA/Calamari
de3c85fa3a087b5ced1e75e09d5c6a40fab1f2a6
[ "Apache-2.0" ]
null
null
null
source/Calamari.Shared/Integration/Processes/Semaphores/ISemaphore.cs
WS-QA/Calamari
de3c85fa3a087b5ced1e75e09d5c6a40fab1f2a6
[ "Apache-2.0" ]
null
null
null
source/Calamari.Shared/Integration/Processes/Semaphores/ISemaphore.cs
WS-QA/Calamari
de3c85fa3a087b5ced1e75e09d5c6a40fab1f2a6
[ "Apache-2.0" ]
1
2021-02-22T20:29:54.000Z
2021-02-22T20:29:54.000Z
namespace Calamari.Integration.Processes.Semaphores { public interface ISemaphore { string Name { get; } void ReleaseLock(); bool WaitOne(); bool WaitOne(int millisecondsToWait); } }
22.6
51
0.632743
282c97e1553824a669492a2b5c7a7e6d7a68c807
4,790
cpp
C++
examples/dcdc/dcdcAbstDBA.cpp
yinanl/rocs
bf2483903e39f4c0ea254a9ef56720a1259955ad
[ "BSD-3-Clause" ]
null
null
null
examples/dcdc/dcdcAbstDBA.cpp
yinanl/rocs
bf2483903e39f4c0ea254a9ef56720a1259955ad
[ "BSD-3-Clause" ]
null
null
null
examples/dcdc/dcdcAbstDBA.cpp
yinanl/rocs
bf2483903e39f4c0ea254a9ef56720a1259955ad
[ "BSD-3-Clause" ]
null
null
null
/** * DCDC converter reach-and-stay control with the abstraction-based engine. * * Created by Yinan Li on Jan 11, 2021. * Hybrid Systems Group, University of Waterloo. */ #include <iostream> #include <string> #include <sys/stat.h> #include "src/DBAparser.h" #include "src/system.hpp" #include "src/abstraction.hpp" #include "src/bsolver.hpp" #include "src/hdf5io.h" // #include "src/matlabio.h" #include "dcdc.hpp" int main(int argc, char *argv[]) { /* Input arguments: * dcdcAbstRS dbafile */ if (argc != 2) { std::cout << "Improper number of arguments.\n"; std::exit(1); } std::vector<std::string> tokens; boost::split(tokens, argv[1], boost::is_any_of(".")); /* set the state space */ double xlb[] = {0.649, 0.9898}; double xub[] = {1.65, 1.19}; /* set the target */ double glb[] = {1.15, 1.09}; double gub[] = {1.55, 1.17}; /* define the control system */ rocs::DTSwSys<dcde> dcdcInv("dcdc", tau, dcde::n, dcde::m); dcdcInv.init_workspace(xlb, xub); /** * Abstraction */ const double eta[]{0.001, 0.0002}; rocs::abstraction< rocs::DTSwSys<dcde> > abst(&dcdcInv); abst.init_state(eta, xlb, xub); std::cout << "The number of abstraction states: " << abst._x._nv << '\n'; auto target = [&abst, &eta, &glb, &gub](size_t& id) { std::vector<double> x(abst._x._dim); abst._x.id_to_val(x, id); double c[]{eta[0]/2.0, eta[1]/2.0}; //+1e-10; if(x[0]-c[0] >= glb[0] && x[0]+c[0] <= gub[0] && x[1]-c[1] >= glb[1] && x[1]+c[1] <= gub[1]) return 1; else return 0; }; abst.assign_labels(target); abst.assign_label_outofdomain(0); /* Compute abstraction */ clock_t tb, te; std::string transfile = "abst_" + tokens[0] + ".h5"; struct stat buffer; float tabst; if(stat(transfile.c_str(), &buffer) == 0) { /* Read from a file */ std::cout << "Transitions have been computed. Reading transitions...\n"; rocs::h5FileHandler transRdr(transfile, H5F_ACC_RDONLY); tb = clock(); transRdr.read_transitions(abst._ts); te = clock(); tabst = (float)(te - tb)/CLOCKS_PER_SEC; std::cout << "Time of reading abstraction: " << tabst << '\n'; } else { std::cout << "Transitions haven't been computed. Computing transitions...\n"; /* Robustness margins */ double e1[] = {0,0,0}; double e2[] = {0,0,0}; tb = clock(); abst.assign_transitions(e1, e2); te = clock(); tabst = (float)(te - tb)/CLOCKS_PER_SEC; std::cout << "Time of computing abstraction: " << tabst << '\n'; /* Write transitions to file */ rocs::h5FileHandler transWtr(transfile, H5F_ACC_TRUNC); transWtr.write_transitions(abst._ts); } std::cout << "# of transitions: " << abst._ts._ntrans << '\n'; std::vector<size_t> targetIDs; std::vector< std::vector<double> > targetPts; //initial invariant set std::vector<double> x(abst._x._dim); for(size_t i = 0; i < abst._labels.size(); ++i) { if(abst._labels[i] > 0) { targetIDs.push_back(i); abst._x.id_to_val(x, i); targetPts.push_back(x); } } /** * Read DBA from spec*.txt file */ std::cout << "Reading the specification...\n"; rocs::UintSmall nAP = 0, nNodes = 0, q0 = 0; std::vector<rocs::UintSmall> acc; std::vector<std::vector<rocs::UintSmall>> arrayM; std::string specfile = std::string(argv[1]); if (!rocs::read_spec(specfile, nNodes, nAP, q0, arrayM, acc)) std::exit(1); /** * Solve a Buchi game on the product of NTS and DBA. */ std::cout << "Start solving a Buchi game on the product of the abstraction and DBA...\n"; rocs::BSolver solver; // memories will be allocated for psolver solver.construct_dba((int)nAP, (int)nNodes, (int)q0, acc, arrayM); tb = clock(); solver.load_abstraction(abst); solver.generate_product(abst); solver.solve_buchigame_on_product(); te = clock(); float tsyn = (float)(te - tb)/CLOCKS_PER_SEC; std::cout << "Time of synthesizing controller: " << tsyn << '\n'; /** * Display and save memoryless controllers. */ std::cout << "Writing the controller...\n"; std::string datafile = "controller_abst_" + tokens[0] + ".h5"; rocs::h5FileHandler ctlrWtr(datafile, H5F_ACC_TRUNC); ctlrWtr.write_problem_setting< rocs::DTSwSys<dcde> >(dcdcInv); ctlrWtr.write_2d_array<double>(targetPts, "G"); ctlrWtr.write_array<double>(eta, 2, "eta"); ctlrWtr.write_2d_array<double>(abst._x._data, "xgrid"); ctlrWtr.write_discrete_controller(&(solver._sol)); std::cout << "Controller writing is done.\n"; std::cout << "Total time of used (abstraction+synthesis): " << tabst+tsyn << '\n'; return 0; }
31.30719
93
0.606263
8d0fe02f702b37fb8136e6fda8608542811bcaa8
1,886
asm
Assembly
programs/oeis/017/A017102.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/017/A017102.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/017/A017102.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A017102: a(n) = (8n + 3)^2. ; 9,121,361,729,1225,1849,2601,3481,4489,5625,6889,8281,9801,11449,13225,15129,17161,19321,21609,24025,26569,29241,32041,34969,38025,41209,44521,47961,51529,55225,59049,63001,67081,71289,75625,80089,84681,89401,94249,99225,104329,109561,114921,120409,126025,131769,137641,143641,149769,156025,162409,168921,175561,182329,189225,196249,203401,210681,218089,225625,233289,241081,249001,257049,265225,273529,281961,290521,299209,308025,316969,326041,335241,344569,354025,363609,373321,383161,393129,403225,413449,423801,434281,444889,455625,466489,477481,488601,499849,511225,522729,534361,546121,558009,570025,582169,594441,606841,619369,632025,644809,657721,670761,683929,697225,710649,724201,737881,751689,765625,779689,793881,808201,822649,837225,851929,866761,881721,896809,912025,927369,942841,958441,974169,990025,1006009,1022121,1038361,1054729,1071225,1087849,1104601,1121481,1138489,1155625,1172889,1190281,1207801,1225449,1243225,1261129,1279161,1297321,1315609,1334025,1352569,1371241,1390041,1408969,1428025,1447209,1466521,1485961,1505529,1525225,1545049,1565001,1585081,1605289,1625625,1646089,1666681,1687401,1708249,1729225,1750329,1771561,1792921,1814409,1836025,1857769,1879641,1901641,1923769,1946025,1968409,1990921,2013561,2036329,2059225,2082249,2105401,2128681,2152089,2175625,2199289,2223081,2247001,2271049,2295225,2319529,2343961,2368521,2393209,2418025,2442969,2468041,2493241,2518569,2544025,2569609,2595321,2621161,2647129,2673225,2699449,2725801,2752281,2778889,2805625,2832489,2859481,2886601,2913849,2941225,2968729,2996361,3024121,3052009,3080025,3108169,3136441,3164841,3193369,3222025,3250809,3279721,3308761,3337929,3367225,3396649,3426201,3455881,3485689,3515625,3545689,3575881,3606201,3636649,3667225,3697929,3728761,3759721,3790809,3822025,3853369,3884841,3916441,3948169,3980025 mul $0,8 add $0,3 mov $1,$0 pow $1,2
235.75
1,817
0.847826
7c604def0e4b3f1c232c890c0274e3d93f23a8d3
640
swift
Swift
test/IRGen/fixed_class_initialization.swift
gandhi56/swift
2d851ff61991bb8964079661339671c2fd21d88a
[ "Apache-2.0" ]
72,551
2015-12-03T16:45:13.000Z
2022-03-31T18:57:59.000Z
test/IRGen/fixed_class_initialization.swift
gandhi56/swift
2d851ff61991bb8964079661339671c2fd21d88a
[ "Apache-2.0" ]
39,352
2015-12-03T16:55:06.000Z
2022-03-31T23:43:41.000Z
test/IRGen/fixed_class_initialization.swift
gandhi56/swift
2d851ff61991bb8964079661339671c2fd21d88a
[ "Apache-2.0" ]
13,845
2015-12-03T16:45:13.000Z
2022-03-31T11:32:29.000Z
// RUN: %target-swift-frontend -target x86_64-apple-macosx10.15 -module-name main -emit-ir %s | %FileCheck --check-prefix=CHECK --check-prefix=HAS_OPT_SELF %s // RUN: %target-swift-frontend -target x86_64-apple-macosx10.14 -module-name main -emit-ir %s | %FileCheck --check-prefix=CHECK --check-prefix=NO_OPT_SELF %s // REQUIRES: objc_interop // REQUIRES: OS=macosx && CPU=x86_64 class C { var x: Int = 0 } public func foof() -> Any.Type { return C.self } // CHECK-LABEL: define {{.*}} %swift.metadata_response @"$s4main1CCMa" // HAS_OPT_SELF: call {{.*}} @objc_opt_self // NO_OPT_SELF: call {{.*}} @swift_getInitializedObjCClass
35.555556
158
0.703125
808be0a36058ee731f652610ef2a46f44b7aed88
9,346
java
Java
snomed/com.b2international.snowowl.snomed.core.rest.tests/src/com/b2international/snowowl/snomed/core/rest/SnomedRf2ContentImportTest.java
kalufya/snow-owl
538fe7eaa3e9a8f5f2b712ddaea08b525d9744c3
[ "Apache-2.0" ]
null
null
null
snomed/com.b2international.snowowl.snomed.core.rest.tests/src/com/b2international/snowowl/snomed/core/rest/SnomedRf2ContentImportTest.java
kalufya/snow-owl
538fe7eaa3e9a8f5f2b712ddaea08b525d9744c3
[ "Apache-2.0" ]
null
null
null
snomed/com.b2international.snowowl.snomed.core.rest.tests/src/com/b2international/snowowl/snomed/core/rest/SnomedRf2ContentImportTest.java
kalufya/snow-owl
538fe7eaa3e9a8f5f2b712ddaea08b525d9744c3
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2020-2021 B2i Healthcare Pte Ltd, http://b2i.sg * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.b2international.snowowl.snomed.core.rest; import static org.assertj.core.api.Assertions.assertThat; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import java.io.File; import java.io.IOException; import java.nio.file.*; import java.nio.file.attribute.BasicFileAttributes; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.*; import java.util.Map.Entry; import java.util.concurrent.TimeUnit; import java.util.stream.Stream; import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.Test; import com.b2international.snowowl.core.codesystem.CodeSystemRequests; import com.b2international.snowowl.core.util.PlatformUtil; import com.b2international.snowowl.snomed.common.SnomedConstants.Concepts; import com.b2international.snowowl.snomed.common.SnomedTerminologyComponentConstants; import com.b2international.snowowl.snomed.core.domain.Rf2ReleaseType; import com.b2international.snowowl.test.commons.Resources; import com.b2international.snowowl.test.commons.SnomedContentRule; import com.google.common.base.Splitter; import com.google.common.collect.HashMultimap; import com.google.common.collect.ImmutableMap; import com.google.common.collect.Multimap; import com.google.common.collect.Multimaps; /** * @since 7.11 */ public class SnomedRf2ContentImportTest extends AbstractSnomedApiTest { private static final Splitter TAB_SPLITTER = Splitter.on('\t'); private static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("yyyyMMdd"); private static final Set<String> UNSUPPORTED_FILE_TYPES = Set.of("sct2_Identifier", "der2_cciRefset"); private static Multimap<String, String> originalLines; @BeforeClass public static void beforeClass() throws IOException { final File miniFile = PlatformUtil.toAbsolutePathBundleEntry(Resources.class, Resources.Snomed.MINI_RF2_INT).toFile(); final File complexMapFile = PlatformUtil.toAbsolutePathBundleEntry(Resources.class, Resources.Snomed.MINI_RF2_COMPLEX_BLOCK_MAP).toFile(); originalLines = getLines(miniFile); originalLines.putAll(getLines(complexMapFile)); } @AfterClass public static void afterClass() { originalLines.clear(); originalLines = null; } @Test public void verifyFullContent() throws Exception { final Map<String, Object> config = ImmutableMap.of( "type", Rf2ReleaseType.FULL.name(), "includeUnpublished", false ); final File result = SnomedExportRestRequests.doExport(branchPath, config); assertNotNull(result); assertRf2Equals(originalLines, getLines(result)); } @Test public void verifySnapshotContent() throws Exception { final Map<String, Object> config = ImmutableMap.of( "type", Rf2ReleaseType.SNAPSHOT.name(), "includeUnpublished", false ); final File result = SnomedExportRestRequests.doExport(branchPath, config); assertNotNull(result); assertRf2Equals(getSnapshotLines(originalLines), getLines(result)); } @Test public void verifyDeltaContent() throws Exception { final Map<String, Object> config = ImmutableMap.of( "type", Rf2ReleaseType.DELTA.name(), "startEffectiveTime", "20200131", "endEffectiveTime", "20200131", "includeUnpublished", false ); final File result = SnomedExportRestRequests.doExport(branchPath, config); assertNotNull(result); final Date effectiveTime = DATE_FORMAT.parse("20200131"); assertRf2Equals(getDeltaLines(originalLines, effectiveTime, effectiveTime), getLines(result)); } @Test public void verifyAutomaticDialectConfiguration() throws Exception { final Map<String, Object> settings = CodeSystemRequests.prepareGetCodeSystem(SnomedContentRule.SNOMEDCT_ID) .buildAsync() .execute(getBus()) .getSync(1, TimeUnit.MINUTES) .getSettings(); assertThat(settings) .containsEntry(SnomedTerminologyComponentConstants.CODESYSTEM_LANGUAGE_CONFIG_KEY, List.of( // this entry is pre-configured, should be kept after import Map.of( "languageTag", "en", "languageRefSetIds", List.of(Concepts.REFSET_LANGUAGE_TYPE_UK, Concepts.REFSET_LANGUAGE_TYPE_US) ), // these two entries come from the default dialect configuration map, should be appended Map.of( "languageTag", "en-gb", "languageRefSetIds", List.of(Concepts.REFSET_LANGUAGE_TYPE_UK) ), Map.of( "languageTag", "en-us", "languageRefSetIds", List.of(Concepts.REFSET_LANGUAGE_TYPE_US) ) )); } private void assertRf2Equals(final Multimap<String, String> expected, final Multimap<String, String> result) { final Multimap<String, String> missingFromResult = Multimaps.filterEntries(expected, entry -> !result.containsEntry(entry.getKey(), entry.getValue())); if (!missingFromResult.isEmpty()) { missingFromResult.asMap().forEach((k,v) -> v.forEach(line -> System.err.println("Missing from result: " + line))); } final Multimap<String, String> missingFromExpected = Multimaps.filterEntries(result, entry -> !expected.containsEntry(entry.getKey(), entry.getValue())); if (!missingFromExpected.isEmpty()) { missingFromExpected.asMap().forEach((k,v) -> v.forEach(line -> System.err.println("Missing from expected: " + line))); } assertTrue(missingFromResult.isEmpty()); assertTrue(missingFromExpected.isEmpty()); } private static Multimap<String, String> getDeltaLines(final Multimap<String, String> lines, final Date startEffectiveTime, final Date endEffectiveTime) throws IOException, ParseException { final Multimap<String, String> deltaLines = HashMultimap.<String, String>create(); for (final Entry<String, Collection<String>> entry : lines.asMap().entrySet()) { final String header = entry.getKey(); final Collection<String> fileLines = entry.getValue(); final Multimap<String, String> idToLineMap = Multimaps.index(fileLines, line -> TAB_SPLITTER.split(line).iterator().next()); for (final Entry<String, Collection<String>> idEntry : idToLineMap.asMap().entrySet()) { final Collection<String> idLines = idEntry.getValue(); for (final String line : idLines) { final Date effectiveTime = DATE_FORMAT.parse(TAB_SPLITTER.splitToList(line).get(1)); if (effectiveTime.compareTo(startEffectiveTime) == 0 || effectiveTime.compareTo(endEffectiveTime) == 0 || (effectiveTime.after(startEffectiveTime) && effectiveTime.before(endEffectiveTime))) { deltaLines.put(header, line); } } } } return deltaLines; } private static Multimap<String, String> getSnapshotLines(final Multimap<String, String> lines) throws IOException { final Multimap<String, String> snapshotLines = HashMultimap.<String, String>create(); for (final Entry<String, Collection<String>> entry : lines.asMap().entrySet()) { final String header = entry.getKey(); final Collection<String> fileLines = entry.getValue(); final Multimap<String, String> idToLineMap = Multimaps.index(fileLines, line -> TAB_SPLITTER.split(line).iterator().next()); for (final Entry<String, Collection<String>> idEntry : idToLineMap.asMap().entrySet()) { final Collection<String> idLines = idEntry.getValue(); if (idLines.size() == 1) { snapshotLines.putAll(header, idLines); } else { final Optional<String> lastLine = idLines.stream() .max( (l1,l2) -> { try { return DATE_FORMAT.parse(TAB_SPLITTER.splitToList(l1).get(1)).compareTo(DATE_FORMAT.parse(TAB_SPLITTER.splitToList(l2).get(1))); } catch (final ParseException e) { return 0; } }); if (lastLine.isPresent()) { snapshotLines.put(header, lastLine.get()); } } } } return snapshotLines; } private static Multimap<String, String> getLines(final File input) throws IOException { final Multimap<String, String> lines = HashMultimap.create(); try (FileSystem fs = FileSystems.newFileSystem(input.toPath(), SnomedRf2ContentImportTest.class.getClassLoader())) { for (final Path path : fs.getRootDirectories()) { Files.walkFileTree(path, new SimpleFileVisitor<Path>() { @Override public FileVisitResult visitFile(final Path file, final BasicFileAttributes attrs) throws IOException { if (UNSUPPORTED_FILE_TYPES.stream().noneMatch(fileNamePrefix -> file.getFileName().toString().startsWith(fileNamePrefix))) { String header; try (Stream<String> linesInFile = Files.lines(file)) { header = linesInFile.findFirst().get(); } try (Stream<String> linesInFile = Files.lines(file)) { linesInFile.skip(1).forEach(line -> lines.put(header, line)); } } return super.visitFile(file, attrs); } }); } } return lines; } }
33.618705
189
0.738391
bcb319bd901309c29ca94b9a5460538e11cb5c05
1,765
js
JavaScript
dist/libs/common-components/esm2015/lib/back-formatting.service.js
Kareem-Alakwah/groupdocs
a366eb4d82dbf6bd8c842b951f769efa2c553a70
[ "MIT" ]
null
null
null
dist/libs/common-components/esm2015/lib/back-formatting.service.js
Kareem-Alakwah/groupdocs
a366eb4d82dbf6bd8c842b951f769efa2c553a70
[ "MIT" ]
8
2019-07-05T07:38:28.000Z
2021-12-01T13:27:01.000Z
dist/libs/common-components/esm2015/lib/back-formatting.service.js
Kareem-Alakwah/groupdocs
a366eb4d82dbf6bd8c842b951f769efa2c553a70
[ "MIT" ]
4
2019-08-16T07:11:13.000Z
2020-12-01T12:33:29.000Z
/** * @fileoverview added by tsickle * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ import { Injectable } from '@angular/core'; import { FormattingService } from "./formatting.service"; import * as i0 from "@angular/core"; export class BackFormattingService extends FormattingService { constructor() { super(); } } BackFormattingService.decorators = [ { type: Injectable, args: [{ providedIn: 'root' },] } ]; /** @nocollapse */ BackFormattingService.ctorParameters = () => []; /** @nocollapse */ BackFormattingService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function BackFormattingService_Factory() { return new BackFormattingService(); }, token: BackFormattingService, providedIn: "root" }); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFjay1mb3JtYXR0aW5nLnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AZ3JvdXBkb2NzLmV4YW1wbGVzLmFuZ3VsYXIvY29tbW9uLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJsaWIvYmFjay1mb3JtYXR0aW5nLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBQyxVQUFVLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFDLGlCQUFpQixFQUFDLE1BQU0sc0JBQXNCLENBQUM7O0FBS3ZELE1BQU0sT0FBTyxxQkFBc0IsU0FBUSxpQkFBaUI7SUFFMUQ7UUFDRSxLQUFLLEVBQUUsQ0FBQztJQUNWLENBQUM7OztZQVBGLFVBQVUsU0FBQztnQkFDVixVQUFVLEVBQUUsTUFBTTthQUNuQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7SW5qZWN0YWJsZX0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQge0Zvcm1hdHRpbmdTZXJ2aWNlfSBmcm9tIFwiLi9mb3JtYXR0aW5nLnNlcnZpY2VcIjtcblxuQEluamVjdGFibGUoe1xuICBwcm92aWRlZEluOiAncm9vdCdcbn0pXG5leHBvcnQgY2xhc3MgQmFja0Zvcm1hdHRpbmdTZXJ2aWNlIGV4dGVuZHMgRm9ybWF0dGluZ1NlcnZpY2Uge1xuXG4gIGNvbnN0cnVjdG9yKCkge1xuICAgIHN1cGVyKCk7XG4gIH1cbn1cbiJdfQ==
84.047619
938
0.85779
652012211d75f39757469a76ffbd1e2d590d912a
289
py
Python
server/src/tests/samples/typeConstraint3.py
higoshi/pyright
183c0ef56d2c010d28018149949cda1a40aa59b8
[ "MIT" ]
null
null
null
server/src/tests/samples/typeConstraint3.py
higoshi/pyright
183c0ef56d2c010d28018149949cda1a40aa59b8
[ "MIT" ]
null
null
null
server/src/tests/samples/typeConstraint3.py
higoshi/pyright
183c0ef56d2c010d28018149949cda1a40aa59b8
[ "MIT" ]
null
null
null
# This sample exercises the type analyzer's assert type constraint logic. from typing import Union def foo(a: Union[str, int]) -> int: if True: # This should generate an error because # a could be a str. return a assert isinstance(a, int) return a
19.266667
73
0.643599
9c5d6c50e13b9186bfd3dd2174ac68a2dc14ca66
252
asm
Assembly
programs/oeis/001/A001148.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/001/A001148.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/001/A001148.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A001148: Final digit of 3^n. ; 1,3,9,7,1,3,9,7,1,3,9,7,1,3,9,7,1,3,9,7,1,3,9,7,1,3,9,7,1,3,9,7,1,3,9,7,1,3,9,7,1,3,9,7,1,3,9,7,1,3,9,7,1,3,9,7,1,3,9,7,1,3,9,7,1,3,9,7,1,3,9,7,1,3,9,7,1,3,9,7,1 mod $0,4 mov $1,$0 gcd $1,4 mul $0,$1 mul $0,2 add $0,1
25.2
163
0.52381
fb7734b7d347c3481348d5452e29545792c5354d
1,425
c
C
c17/17-10.c
fATwaer/APUE
148c4aaba9d61e00e11dfb86e2e5bfedd700fe0a
[ "MIT" ]
4
2018-10-20T15:01:36.000Z
2020-09-09T17:21:37.000Z
c17/17-10.c
fATwaer/APUE
148c4aaba9d61e00e11dfb86e2e5bfedd700fe0a
[ "MIT" ]
null
null
null
c17/17-10.c
fATwaer/APUE
148c4aaba9d61e00e11dfb86e2e5bfedd700fe0a
[ "MIT" ]
null
null
null
#include "apue.h" #include <sys/socket.h> #include <sys/un.h> #include <errno.h> #include <time.h> #define CLI_PATH "/var/tmp/" #define CLI_PERM S_IRWXU /* * client connet to a server * return fd if all ok, < 0 on err; */ int cli_conn(const char *name) { int fd, len, err, rval; struct sockaddr_un un, sun; int do_unlink; if (strlen(name) >= sizeof(un.sun_path)) { errno = ENAMETOOLONG; return (-1); } if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) < 0) return (-1); memset(&un, 0, sizeof(un)); un.sun_family = AF_UNIX; sprintf(un.sun_path, "%s%05ld", CLI_PATH, (long)getpid()); len = offsetof(struct sockaddr_un, sun_path) + strlen(un.sun_path); unlink(un.sun_path); if (bind(fd, (struct sockaddr *)&un, len) < 0) { rval = -2; goto errout; } if (chmod(un.sun_path, CLI_PERM) < 0) { rval = -3; do_unlink = 1; goto errout; } memset(&sun, 0, sizeof(sun)); sun.sun_family = AF_UNIX; strcpy(sun.sun_path, name); len = offsetof(struct sockaddr_un, sun_path) + strlen(name); if (connect(fd, (struct sockaddr *)&sun, len) < 0) { rval = -4; do_unlink = 1; goto errout; } return (fd); errout: err = errno; close(fd); if (do_unlink) unlink(un.sun_path); errno = err; return (rval); }
22.265625
71
0.552281
1028a8fee75d2cb7f71eee7c991aa45be3cfa433
6,005
ps1
PowerShell
test/powershell/engine/Api/ProxyCommand.Tests.ps1
Jellyfrog/PowerShell
450d884668ca477c6581ce597958f021fac30bff
[ "MIT" ]
3
2020-01-24T14:32:12.000Z
2021-01-10T07:07:29.000Z
test/powershell/engine/Api/ProxyCommand.Tests.ps1
Jellyfrog/PowerShell
450d884668ca477c6581ce597958f021fac30bff
[ "MIT" ]
84
2019-11-11T09:39:20.000Z
2021-06-25T15:28:29.000Z
test/powershell/engine/Api/ProxyCommand.Tests.ps1
Jellyfrog/PowerShell
450d884668ca477c6581ce597958f021fac30bff
[ "MIT" ]
2
2020-02-29T09:58:16.000Z
2021-06-05T17:03:19.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. using namespace System.Management.Automation using namespace System.Collections.ObjectModel Describe 'ProxyCommand Tests' -Tags "CI" { BeforeAll { function NormalizeCRLF { param ($helpObj) if($helpObj.Synopsis.Contains("`r`n")) { $helpObjText = ($helpObj.Synopsis).replace("`r`n", [System.Environment]::NewLine).trim() } else { $helpObjText = ($helpObj.Synopsis).replace("`n", [System.Environment]::NewLine).trim() } return $helpObjText } function GetSectionText { param ($object) $texts = $object | Out-String -Stream | ForEach-Object { if (![string]::IsNullOrWhiteSpace($_)) { $_.Trim() } } $texts -join "" } function ProxyTest { [CmdletBinding(DefaultParameterSetName='Name')] param ( [Parameter(ParameterSetName="Name", Mandatory=$true)] [ValidateSet("Orange", "Apple")] [string] $Name, [Parameter(ParameterSetName="Id", Mandatory=$true)] [ValidateRange(1,5)] [int] $Id, [Parameter(ValueFromPipeline)] [string] $Message ) DynamicParam { $ParamAttrib = [parameter]::new() $ParamAttrib.Mandatory = $true $AttribColl = [Collection[System.Attribute]]::new() $AttribColl.Add($ParamAttrib) $RuntimeParam = [RuntimeDefinedParameter]::new('LastName', [string], $AttribColl) $RuntimeParamDic = [RuntimeDefinedParameterDictionary]::new() $RuntimeParamDic.Add('LastName', $RuntimeParam) return $RuntimeParamDic } Begin { $AllMessages = @() if ($PSCmdlet.ParameterSetName -eq "Name") { $MyString = $Name, $PSBoundParameters['LastName'] -join "," } else { $MyString = $Id, $PSBoundParameters['LastName'] -join "," } } Process { if ($Message) { $AllMessages += $Message } } End { $MyString + " - " + ($AllMessages -join ";") } } } It "Test ProxyCommand.GetHelpComments" { $helpObj = Get-Help Get-Alias -Full $helpContent = [System.Management.Automation.ProxyCommand]::GetHelpComments($helpObj) $funcBody = @" <# {0} #> param({1}) "@ $params = $helpObj.parameters.parameter $paramString = '${0}' -f $params[0].name for ($i = 1; $i -lt $params.Length; $i++) { $paramString += ',${0}' -f $params[$i].name } $bodyToUse = $funcBody -f $helpContent, $paramString $bodySB = [scriptblock]::Create($bodyToUse) Set-Item -Path function:\TestHelpComment -Value $bodySB $newHelpObj = Get-Help TestHelpComment -Full $helpObjText = NormalizeCRLF -helpObj $helpObj $newHelpObjText = NormalizeCRLF -helpObj $newHelpObj $helpObjText | Should -Be $newHelpObjText $oldDespText = GetSectionText $helpObj.description $newDespText = GetSectionText $newHelpObj.description $oldDespText | Should -Be $newDespText $oldParameters = @($helpObj.parameters.parameter) $newParameters = @($newHelpObj.parameters.parameter) $oldParameters.Length | Should -Be $newParameters.Length $oldParameters.name -join "," | Should -Be ($newParameters.name -join ",") $oldExamples = @($helpObj.examples.example) $newExamples = @($newHelpObj.examples.example) $oldExamples.Length | Should -Be $newExamples.Length } It "Test generate proxy command" { $cmdInfo = Get-Command -Name Get-Content $cmdMetadata = [CommandMetadata]::new($cmdInfo) $proxyBody = [ProxyCommand]::Create($cmdMetadata, "--DummyHelpContent--") $proxyBody | Should -Match '--DummyHelpContent--' $proxyBodySB = [scriptblock]::Create($proxyBody) Set-Item -Path function:\MyGetContent -Value $proxyBodySB $expectedContent = "Hello World" Set-Content -Path $TestDrive\content.txt -Value $expectedContent -Encoding Unicode $myContent = MyGetContent -Path $TestDrive\content.txt -Encoding Unicode $myContent | Should -Be $expectedContent } It "Test generate individual components" { $cmdInfo = Get-Command -Name ProxyTest $cmdMetadata = [CommandMetadata]::new($cmdInfo) $template = @" {0} param( {1} ) DynamicParam {{ {2} }} Begin {{ {3} }} Process {{ {4} }} End {{ {5} }} "@ $cmdletBindig = [ProxyCommand]::GetCmdletBindingAttribute($cmdMetadata) $params = [ProxyCommand]::GetParamBlock($cmdMetadata) $dynamicParams = [ProxyCommand]::GetDynamicParam($cmdMetadata) $begin = [ProxyCommand]::GetBegin($cmdMetadata) $process = [ProxyCommand]::GetProcess($cmdMetadata) $end = [ProxyCommand]::GetEnd($cmdMetadata) $funcBody = $template -f $cmdletBindig, $params, $dynamicParams, $begin, $process, $end $bodySB = [scriptblock]::Create($funcBody) Set-Item -Path function:\MyProxyTest -Value $bodySB $cmdMyProxyTest = Get-Command MyProxyTest $dyParam = $cmdMyProxyTest.Parameters.GetEnumerator() | Where-Object { $_.Value.IsDynamic } $dyParam.Key | Should -Be 'LastName' $result = "Msg1", "Msg2" | MyProxyTest -Name Apple -LastName Last $result | Should -Be "Apple,Last - Msg1;Msg2" $result = "Msg1", "Msg2" | MyProxyTest -Id 3 -LastName Last $result | Should -Be "3,Last - Msg1;Msg2" } }
32.814208
104
0.570025
f98f9ab1c39f9333f52f6ca2435b8eae88d2d36d
9,851
go
Go
qrcodegeneratordeclare/qrcodegeneratordeclare.pb.go
Basic-Components/qrcodegenerator
1410285c60dc96e468f408e824e96077010477c4
[ "MIT" ]
null
null
null
qrcodegeneratordeclare/qrcodegeneratordeclare.pb.go
Basic-Components/qrcodegenerator
1410285c60dc96e468f408e824e96077010477c4
[ "MIT" ]
1
2020-03-25T06:33:06.000Z
2020-03-25T06:33:06.000Z
qrcodegeneratordeclare/qrcodegeneratordeclare.pb.go
Basic-Components/qrcodegenerator
1410285c60dc96e468f408e824e96077010477c4
[ "MIT" ]
null
null
null
// Code generated by protoc-gen-go. DO NOT EDIT. // source: qrcodegeneratordeclare.proto package qrcodegeneratordeclare import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type StatusData_Status int32 const ( StatusData_SUCCEED StatusData_Status = 0 StatusData_ERROR StatusData_Status = 1 ) var StatusData_Status_name = map[int32]string{ 0: "SUCCEED", 1: "ERROR", } var StatusData_Status_value = map[string]int32{ "SUCCEED": 0, "ERROR": 1, } func (x StatusData_Status) String() string { return proto.EnumName(StatusData_Status_name, int32(x)) } func (StatusData_Status) EnumDescriptor() ([]byte, []int) { return fileDescriptor_a86dcee61a57643c, []int{1, 0} } type Request struct { Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Request) Reset() { *m = Request{} } func (m *Request) String() string { return proto.CompactTextString(m) } func (*Request) ProtoMessage() {} func (*Request) Descriptor() ([]byte, []int) { return fileDescriptor_a86dcee61a57643c, []int{0} } func (m *Request) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Request.Unmarshal(m, b) } func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Request.Marshal(b, m, deterministic) } func (m *Request) XXX_Merge(src proto.Message) { xxx_messageInfo_Request.Merge(m, src) } func (m *Request) XXX_Size() int { return xxx_messageInfo_Request.Size(m) } func (m *Request) XXX_DiscardUnknown() { xxx_messageInfo_Request.DiscardUnknown(m) } var xxx_messageInfo_Request proto.InternalMessageInfo func (m *Request) GetData() string { if m != nil { return m.Data } return "" } type StatusData struct { Status StatusData_Status `protobuf:"varint,1,opt,name=status,proto3,enum=qrcodegeneratordeclare.StatusData_Status" json:"status,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *StatusData) Reset() { *m = StatusData{} } func (m *StatusData) String() string { return proto.CompactTextString(m) } func (*StatusData) ProtoMessage() {} func (*StatusData) Descriptor() ([]byte, []int) { return fileDescriptor_a86dcee61a57643c, []int{1} } func (m *StatusData) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_StatusData.Unmarshal(m, b) } func (m *StatusData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_StatusData.Marshal(b, m, deterministic) } func (m *StatusData) XXX_Merge(src proto.Message) { xxx_messageInfo_StatusData.Merge(m, src) } func (m *StatusData) XXX_Size() int { return xxx_messageInfo_StatusData.Size(m) } func (m *StatusData) XXX_DiscardUnknown() { xxx_messageInfo_StatusData.DiscardUnknown(m) } var xxx_messageInfo_StatusData proto.InternalMessageInfo func (m *StatusData) GetStatus() StatusData_Status { if m != nil { return m.Status } return StatusData_SUCCEED } func (m *StatusData) GetMsg() string { if m != nil { return m.Msg } return "" } type Response struct { Status *StatusData `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` Data string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Response) Reset() { *m = Response{} } func (m *Response) String() string { return proto.CompactTextString(m) } func (*Response) ProtoMessage() {} func (*Response) Descriptor() ([]byte, []int) { return fileDescriptor_a86dcee61a57643c, []int{2} } func (m *Response) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Response.Unmarshal(m, b) } func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Response.Marshal(b, m, deterministic) } func (m *Response) XXX_Merge(src proto.Message) { xxx_messageInfo_Response.Merge(m, src) } func (m *Response) XXX_Size() int { return xxx_messageInfo_Response.Size(m) } func (m *Response) XXX_DiscardUnknown() { xxx_messageInfo_Response.DiscardUnknown(m) } var xxx_messageInfo_Response proto.InternalMessageInfo func (m *Response) GetStatus() *StatusData { if m != nil { return m.Status } return nil } func (m *Response) GetData() string { if m != nil { return m.Data } return "" } func init() { proto.RegisterEnum("qrcodegeneratordeclare.StatusData_Status", StatusData_Status_name, StatusData_Status_value) proto.RegisterType((*Request)(nil), "qrcodegeneratordeclare.Request") proto.RegisterType((*StatusData)(nil), "qrcodegeneratordeclare.StatusData") proto.RegisterType((*Response)(nil), "qrcodegeneratordeclare.Response") } func init() { proto.RegisterFile("qrcodegeneratordeclare.proto", fileDescriptor_a86dcee61a57643c) } var fileDescriptor_a86dcee61a57643c = []byte{ // 234 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x50, 0xbf, 0x4b, 0xc4, 0x30, 0x14, 0xbe, 0x9c, 0x9a, 0xb3, 0xef, 0x40, 0xca, 0x1b, 0xe4, 0x10, 0xc5, 0x92, 0x49, 0x97, 0x1b, 0xea, 0xe6, 0x26, 0x77, 0x19, 0x45, 0x4c, 0x71, 0xe9, 0x16, 0xdb, 0x47, 0x11, 0xb4, 0x69, 0x93, 0xd4, 0x7f, 0xc0, 0x7f, 0x5c, 0x9a, 0x56, 0x8b, 0x60, 0xb9, 0xed, 0x0b, 0xf9, 0xde, 0xf7, 0x0b, 0x2e, 0x5b, 0x5b, 0x98, 0x92, 0x2a, 0xaa, 0xc9, 0x6a, 0x6f, 0x6c, 0x49, 0xc5, 0xbb, 0xb6, 0xb4, 0x6d, 0xac, 0xf1, 0x06, 0xcf, 0xff, 0xff, 0x15, 0x57, 0xb0, 0x52, 0xd4, 0x76, 0xe4, 0x3c, 0x22, 0x1c, 0x97, 0xda, 0xeb, 0x0d, 0x4b, 0xd8, 0x4d, 0xa4, 0x02, 0x16, 0x5f, 0x0c, 0x20, 0xf3, 0xda, 0x77, 0x6e, 0xaf, 0xbd, 0xc6, 0x07, 0xe0, 0x2e, 0xbc, 0x02, 0xe9, 0x2c, 0xbd, 0xdd, 0xce, 0x98, 0x4e, 0x37, 0x23, 0x54, 0xe3, 0x21, 0xc6, 0x70, 0xf4, 0xe1, 0xaa, 0xcd, 0x32, 0x98, 0xf4, 0x50, 0x24, 0xc0, 0x07, 0x0e, 0xae, 0x61, 0x95, 0xbd, 0xec, 0x76, 0x52, 0xee, 0xe3, 0x05, 0x46, 0x70, 0x22, 0x95, 0x7a, 0x52, 0x31, 0x13, 0x39, 0x9c, 0x2a, 0x72, 0x8d, 0xa9, 0x1d, 0xe1, 0xfd, 0x9f, 0x08, 0xeb, 0x54, 0x1c, 0x8e, 0xf0, 0xeb, 0xfd, 0xd3, 0x70, 0x39, 0x35, 0x4c, 0x73, 0x88, 0x9e, 0x6d, 0x46, 0xf6, 0xf3, 0xad, 0x20, 0x7c, 0x04, 0x2e, 0xeb, 0x5e, 0x0d, 0xaf, 0xe7, 0x64, 0xc7, 0xb5, 0x2e, 0x92, 0x79, 0xc2, 0x90, 0x54, 0x2c, 0x5e, 0x79, 0xd8, 0xfe, 0xee, 0x3b, 0x00, 0x00, 0xff, 0xff, 0x8e, 0xe7, 0x55, 0x20, 0x9b, 0x01, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 // QrServiceClient is the client API for QrService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type QrServiceClient interface { Encode(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) } type qrServiceClient struct { cc *grpc.ClientConn } func NewQrServiceClient(cc *grpc.ClientConn) QrServiceClient { return &qrServiceClient{cc} } func (c *qrServiceClient) Encode(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) { out := new(Response) err := c.cc.Invoke(ctx, "/qrcodegeneratordeclare.QrService/Encode", in, out, opts...) if err != nil { return nil, err } return out, nil } // QrServiceServer is the server API for QrService service. type QrServiceServer interface { Encode(context.Context, *Request) (*Response, error) } // UnimplementedQrServiceServer can be embedded to have forward compatible implementations. type UnimplementedQrServiceServer struct { } func (*UnimplementedQrServiceServer) Encode(ctx context.Context, req *Request) (*Response, error) { return nil, status.Errorf(codes.Unimplemented, "method Encode not implemented") } func RegisterQrServiceServer(s *grpc.Server, srv QrServiceServer) { s.RegisterService(&_QrService_serviceDesc, srv) } func _QrService_Encode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(Request) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(QrServiceServer).Encode(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/qrcodegeneratordeclare.QrService/Encode", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QrServiceServer).Encode(ctx, req.(*Request)) } return interceptor(ctx, in, info, handler) } var _QrService_serviceDesc = grpc.ServiceDesc{ ServiceName: "qrcodegeneratordeclare.QrService", HandlerType: (*QrServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Encode", Handler: _QrService_Encode_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "qrcodegeneratordeclare.proto", }
33.736301
161
0.716679
5b688d4261e66c7f6263f1431e53f97c8c16e57e
3,143
cpp
C++
main.cpp
ofurman/IsingModel
81e54368fb702512472bd77a21f1b63a42c1a74a
[ "MIT" ]
null
null
null
main.cpp
ofurman/IsingModel
81e54368fb702512472bd77a21f1b63a42c1a74a
[ "MIT" ]
null
null
null
main.cpp
ofurman/IsingModel
81e54368fb702512472bd77a21f1b63a42c1a74a
[ "MIT" ]
2
2021-03-08T13:28:46.000Z
2021-05-17T18:10:07.000Z
// // main.cpp // nematiccrystals // // Created by Oleksii Furman on 17/05/2019. // Copyright © 2019 Oleksii Furman. All rights reserved. // #include <iostream> #include <cstdlib> #include <cmath> #include <random> #include <fstream> #include <map> #define size 20 int lattice[size][size]; using namespace std; double calculate_energy(int trial, int i, int j); int modulo(int a,int b) { int c = (int)a % (int)b; if (c < 0) { return c+b; } else { return c; } } void initialize(mt19937& eng) { for (int i = 0; i < size; i++) { for (int j = 0; j < size; j++) { lattice[i][j] = 0; } } } void cy_ising_step(mt19937& eng, uniform_real_distribution<double>& dist, float T) { int i, j; double U1, U0, dU; for (i=0; i < size; i++) { for (j=0; j<size; j++) { int fiNew = lattice[i][j] + round((rand()%1000/1000.0-0.5)*10); if (fiNew >= 90) { fiNew -= 180; } else if (fiNew <= -90){ fiNew += 180; } U1 = calculate_energy(fiNew, i, j); U0 = calculate_energy(lattice[i][j], i, j); dU = U1 - U0; if (dU <= 0) { lattice[i][j] = fiNew; } else if (exp(-dU/T) > rand()%1000/1000.0) { lattice[i][j] = fiNew; } } } } double calculate_Qxx(){ double Qxx = 0.0; for(int i = 0; i<size; i++) for(int j = 0; j<size; j++) Qxx += 2 * pow(cos(lattice[i][j]*M_PI/180), 2) - 1; return Qxx/pow(size, 2); } double calculate_Qxy(){ double Qxy = 0.0; for(int i = 0; i<size; i++) for(int j = 0; j<size; j++) Qxy += 2 * cos(lattice[i][j]*M_PI/180) * sin(lattice[i][j]*M_PI/180); return Qxy/pow(size, 2); } double calculate_S(){ double Qxx = calculate_Qxx(); double Qxy = calculate_Qxy(); return sqrt(pow(Qxx, 2) + pow(Qxy, 2)); } double calculate_energy(int trial, int i, int j){ return -1.5*(pow(cos(M_PI*(trial-lattice[modulo((i - 1),size)][j])/180), 2) +pow(cos(M_PI*(trial-lattice[modulo((i + 1),size)][j])/180), 2) +pow(cos(M_PI*(trial-lattice[i][modulo((j - 1), size)])/180), 2) +pow(cos(M_PI*(trial-lattice[i][modulo((j + 1), size)])/180), 2))+2; } void parallel_temperature(unsigned long steps, unsigned long K0, double T) { random_device rd; mt19937 eng(rd()); uniform_real_distribution<double> dist(0,1); initialize(eng); int factor = 1000; double S = 0; int i; for (i = 0; i < steps; i++) { cy_ising_step(eng, dist, T); if (i < K0) { continue; } if (modulo(i, factor) == 0) { S += calculate_S(); } } //TEMPERATURE ITERATOR S = S/((steps-K0)/factor); cout << S << "," << T << "\n"; } int main(int argc, const char * argv[]) { // string arg = argv[1]; // double temperature = atof(arg.c_str()); srand(time(NULL)); parallel_temperature(230000, 30000, 0.8); return 0; }
25.346774
105
0.504613
35fabf540229e641dc5f7a7fa49e575883288b01
753
lua
Lua
game/dota_addons/dota2_incomingdamage/scripts/vscripts/talents/modifier_special_bonus_exampletalent.lua
Jochnickel/dota2_i_am_at_uni
cf2e2934dfda9aec51119267ec3d8f88d25424f9
[ "Unlicense" ]
null
null
null
game/dota_addons/dota2_incomingdamage/scripts/vscripts/talents/modifier_special_bonus_exampletalent.lua
Jochnickel/dota2_i_am_at_uni
cf2e2934dfda9aec51119267ec3d8f88d25424f9
[ "Unlicense" ]
null
null
null
game/dota_addons/dota2_incomingdamage/scripts/vscripts/talents/modifier_special_bonus_exampletalent.lua
Jochnickel/dota2_i_am_at_uni
cf2e2934dfda9aec51119267ec3d8f88d25424f9
[ "Unlicense" ]
null
null
null
require("talents/modifier_special_bonus_base") modifier_special_bonus_exampletalent = class(modifier_special_bonus_base) function modifier_special_bonus_exampletalent:DeclareFunctions() return { MODIFIER_PROPERTY_CASTTIME_PERCENTAGE, MODIFIER_PROPERTY_COOLDOWN_PERCENTAGE, -- https://developer.valvesoftware.com/wiki/Dota_2_Workshop_Tools/Scripting/API#modifierfunction } end -- 90% castpoint reduction function modifier_special_bonus_exampletalent:GetModifierPercentageCasttime( event ) -- return 90 return self:GetAbility():GetSpecialValueFor("value") end function modifier_special_bonus_exampletalent:GetModifierPercentageCooldown( event ) -- return 90 return self:GetAbility():GetSpecialValueFor("value") end
34.227273
100
0.822045
e453b5cd91d3796b6c3d2b0bbd3deb0636c05286
3,821
go
Go
cmd/stanza/offsets.go
observIQ/opentelemetry-log-collection
60f97a70e358db8d8a6f0085090cdaaaa6d0bca8
[ "Apache-2.0" ]
null
null
null
cmd/stanza/offsets.go
observIQ/opentelemetry-log-collection
60f97a70e358db8d8a6f0085090cdaaaa6d0bca8
[ "Apache-2.0" ]
null
null
null
cmd/stanza/offsets.go
observIQ/opentelemetry-log-collection
60f97a70e358db8d8a6f0085090cdaaaa6d0bca8
[ "Apache-2.0" ]
1
2021-03-02T15:48:01.000Z
2021-03-02T15:48:01.000Z
// Copyright The OpenTelemetry Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package main import ( "fmt" "io" "os" "github.com/opentelemetry/opentelemetry-log-collection/database" "github.com/opentelemetry/opentelemetry-log-collection/operator/helper" "github.com/spf13/cobra" "go.etcd.io/bbolt" ) var stdout io.Writer = os.Stdout // NewOffsetsCmd returns the root command for managing offsets func NewOffsetsCmd(rootFlags *RootFlags) *cobra.Command { offsets := &cobra.Command{ Use: "offsets", Short: "Manage input operator offsets", Args: cobra.NoArgs, Run: func(command *cobra.Command, args []string) { stdout.Write([]byte("No offsets subcommand specified. See `stanza offsets help` for details\n")) }, } offsets.AddCommand(NewOffsetsClearCmd(rootFlags)) offsets.AddCommand(NewOffsetsListCmd(rootFlags)) return offsets } // NewOffsetsClearCmd returns the command for clearing offsets func NewOffsetsClearCmd(rootFlags *RootFlags) *cobra.Command { var all bool offsetsClear := &cobra.Command{ Use: "clear [flags] [operator_ids]", Short: "Clear persisted offsets from the database", Args: cobra.ArbitraryArgs, Run: func(command *cobra.Command, args []string) { db, err := database.OpenDatabase(rootFlags.DatabaseFile) exitOnErr("Failed to open database", err) defer db.Close() defer func() { _ = db.Sync() }() if all { if len(args) != 0 { stdout.Write([]byte("Providing a list of operator IDs does nothing with the --all flag\n")) } err := db.Update(func(tx *bbolt.Tx) error { offsetsBucket := tx.Bucket(helper.OffsetsBucket) if offsetsBucket != nil { return tx.DeleteBucket(helper.OffsetsBucket) } return nil }) exitOnErr("Failed to delete offsets", err) } else { if len(args) == 0 { stdout.Write([]byte("Must either specify a list of operators or the --all flag\n")) os.Exit(1) } for _, operatorID := range args { err = db.Update(func(tx *bbolt.Tx) error { offsetBucket := tx.Bucket(helper.OffsetsBucket) if offsetBucket == nil { return nil } return offsetBucket.DeleteBucket([]byte(operatorID)) }) exitOnErr("Failed to delete offsets", err) } } }, } offsetsClear.Flags().BoolVar(&all, "all", false, "clear offsets for all inputs") return offsetsClear } // NewOffsetsListCmd returns the command for listing offsets func NewOffsetsListCmd(rootFlags *RootFlags) *cobra.Command { offsetsList := &cobra.Command{ Use: "list", Short: "List operators with persisted offsets", Args: cobra.NoArgs, Run: func(command *cobra.Command, args []string) { db, err := database.OpenDatabase(rootFlags.DatabaseFile) exitOnErr("Failed to open database", err) defer db.Close() err = db.View(func(tx *bbolt.Tx) error { offsetBucket := tx.Bucket(helper.OffsetsBucket) if offsetBucket == nil { return nil } return offsetBucket.ForEach(func(key, value []byte) error { stdout.Write(append(key, '\n')) return nil }) }) if err != nil { exitOnErr("Failed to read database", err) } }, } return offsetsList } func exitOnErr(msg string, err error) { if err != nil { os.Stderr.WriteString(fmt.Sprintf("%s: %s\n", msg, err)) os.Exit(1) } }
27.890511
99
0.68647
0b18c63409761cac5e2b2ac3d3070f0e59fab449
14,359
html
HTML
html/struct_response_message.html
hidronautics/PoolsideGUI_docs
cc13e8b1bf0424e734e7817fc0c3bbbc43dad26d
[ "MIT" ]
1
2020-09-26T18:12:34.000Z
2020-09-26T18:12:34.000Z
html/struct_response_message.html
hidronautics/PoolsideGUI_docs
cc13e8b1bf0424e734e7817fc0c3bbbc43dad26d
[ "MIT" ]
null
null
null
html/struct_response_message.html
hidronautics/PoolsideGUI_docs
cc13e8b1bf0424e734e7817fc0c3bbbc43dad26d
[ "MIT" ]
null
null
null
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.17"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>PoolsideGUI: ResponseMessage Struct Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/searchdata.js"></script> <script type="text/javascript" src="search/search.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectlogo"><img alt="Logo" src="download.jpeg"/></td> <td id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">PoolsideGUI &#160;<span id="projectnumber">beta</span> </div> <div id="projectbrief">GUI for control and configuration of the underwater vehicle by hydronaitics team</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.17 --> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */ var searchBox = new SearchBox("searchBox", "search",false,'Search'); /* @license-end */ </script> <script type="text/javascript" src="menudata.js"></script> <script type="text/javascript" src="menu.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */ $(function() { initMenu('',true,false,'search.php','Search'); $(document).ready(function() { init_search(); }); }); /* @license-end */</script> <div id="main-nav"></div> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> </div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> &#124; <a href="#pub-attribs">Public Attributes</a> &#124; <a href="#pub-static-attribs">Static Public Attributes</a> &#124; <a href="struct_response_message-members.html">List of all members</a> </div> <div class="headertitle"> <div class="title">ResponseMessage Struct Reference</div> </div> </div><!--header--> <div class="contents"> <p>Structure for storing and processing data from the STM32 configuration response message protocol Shore send requests and STM send responses. <a href="struct_response_message.html#details">More...</a></p> <p><code>#include &lt;<a class="el" href="messages_8h_source.html">messages.h</a>&gt;</code></p> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr class="memitem:aca1891a6af29ae0ed020cc9118fa8859"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_response_message.html#aca1891a6af29ae0ed020cc9118fa8859">ResponseMessage</a> ()</td></tr> <tr class="memdesc:aca1891a6af29ae0ed020cc9118fa8859"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor for <a class="el" href="struct_response_message.html" title="Structure for storing and processing data from the STM32 configuration response message protocol Shor...">ResponseMessage</a>. <a href="struct_response_message.html#aca1891a6af29ae0ed020cc9118fa8859">More...</a><br /></td></tr> <tr class="separator:aca1891a6af29ae0ed020cc9118fa8859"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a9a80aa9a804fc2344a2dd889bffd1207"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_response_message.html#a9a80aa9a804fc2344a2dd889bffd1207">parseVector</a> (std::vector&lt; char &gt; &amp;input)</td></tr> <tr class="memdesc:a9a80aa9a804fc2344a2dd889bffd1207"><td class="mdescLeft">&#160;</td><td class="mdescRight">Parse string bitwise correctly into <a class="el" href="struct_response_message.html" title="Structure for storing and processing data from the STM32 configuration response message protocol Shor...">ResponseMessage</a> and check 16bit checksum. <a href="struct_response_message.html#a9a80aa9a804fc2344a2dd889bffd1207">More...</a><br /></td></tr> <tr class="separator:a9a80aa9a804fc2344a2dd889bffd1207"><td class="memSeparator" colspan="2">&#160;</td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a> Public Attributes</h2></td></tr> <tr class="memitem:aeafa567a72b43be91fd8502ade1fff64"><td class="memItemLeft" align="right" valign="top"><a id="aeafa567a72b43be91fd8502ade1fff64"></a> float&#160;</td><td class="memItemRight" valign="bottom"><b>roll</b></td></tr> <tr class="separator:aeafa567a72b43be91fd8502ade1fff64"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ae4bfa3f669cbde144dc991bb3c7f9ad9"><td class="memItemLeft" align="right" valign="top"><a id="ae4bfa3f669cbde144dc991bb3c7f9ad9"></a> float&#160;</td><td class="memItemRight" valign="bottom"><b>pitch</b></td></tr> <tr class="separator:ae4bfa3f669cbde144dc991bb3c7f9ad9"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a2cfaa81d176bb9ae55f703f48681a7b1"><td class="memItemLeft" align="right" valign="top"><a id="a2cfaa81d176bb9ae55f703f48681a7b1"></a> float&#160;</td><td class="memItemRight" valign="bottom"><b>yaw</b></td></tr> <tr class="separator:a2cfaa81d176bb9ae55f703f48681a7b1"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a7937b54abe11cdaab73be13b3e97f949"><td class="memItemLeft" align="right" valign="top"><a id="a7937b54abe11cdaab73be13b3e97f949"></a> float&#160;</td><td class="memItemRight" valign="bottom"><b>rollSpeed</b></td></tr> <tr class="separator:a7937b54abe11cdaab73be13b3e97f949"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ad04c2fc9ad54ea1a34ef0685a53695d8"><td class="memItemLeft" align="right" valign="top"><a id="ad04c2fc9ad54ea1a34ef0685a53695d8"></a> float&#160;</td><td class="memItemRight" valign="bottom"><b>pitchSpeed</b></td></tr> <tr class="separator:ad04c2fc9ad54ea1a34ef0685a53695d8"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a686d955154009be16fb61d7a6b7c104c"><td class="memItemLeft" align="right" valign="top"><a id="a686d955154009be16fb61d7a6b7c104c"></a> float&#160;</td><td class="memItemRight" valign="bottom"><b>yawSpeed</b></td></tr> <tr class="separator:a686d955154009be16fb61d7a6b7c104c"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a342d96ef0d8626cb5b7165839a9e005d"><td class="memItemLeft" align="right" valign="top"><a id="a342d96ef0d8626cb5b7165839a9e005d"></a> float&#160;</td><td class="memItemRight" valign="bottom"><b>depth</b></td></tr> <tr class="separator:a342d96ef0d8626cb5b7165839a9e005d"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a113ad4fcf9573021909ac314e7d20307"><td class="memItemLeft" align="right" valign="top"><a id="a113ad4fcf9573021909ac314e7d20307"></a> float&#160;</td><td class="memItemRight" valign="bottom"><b>in_pressure</b></td></tr> <tr class="separator:a113ad4fcf9573021909ac314e7d20307"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a7900060285efa1013f759b7394240f02"><td class="memItemLeft" align="right" valign="top"><a id="a7900060285efa1013f759b7394240f02"></a> uint8_t&#160;</td><td class="memItemRight" valign="bottom"><b>dev_state</b></td></tr> <tr class="separator:a7900060285efa1013f759b7394240f02"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a7cf129a4e2588d9c59d9abf9293512fb"><td class="memItemLeft" align="right" valign="top"><a id="a7cf129a4e2588d9c59d9abf9293512fb"></a> int16_t&#160;</td><td class="memItemRight" valign="bottom"><b>leak_data</b></td></tr> <tr class="separator:a7cf129a4e2588d9c59d9abf9293512fb"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a1427df8df5d60c123029ef99ccde4df1"><td class="memItemLeft" align="right" valign="top"><a id="a1427df8df5d60c123029ef99ccde4df1"></a> uint16_t&#160;</td><td class="memItemRight" valign="bottom"><b>vma_current</b> [VmaAmount]</td></tr> <tr class="separator:a1427df8df5d60c123029ef99ccde4df1"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a04fd5e84a979a2487e83d945687c1c2e"><td class="memItemLeft" align="right" valign="top"><a id="a04fd5e84a979a2487e83d945687c1c2e"></a> uint16_t&#160;</td><td class="memItemRight" valign="bottom"><b>dev_current</b> [DevAmount]</td></tr> <tr class="separator:a04fd5e84a979a2487e83d945687c1c2e"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a794df0f338b7da86c02523c476870401"><td class="memItemLeft" align="right" valign="top"><a id="a794df0f338b7da86c02523c476870401"></a> uint16_t&#160;</td><td class="memItemRight" valign="bottom"><b>vma_errors</b></td></tr> <tr class="separator:a794df0f338b7da86c02523c476870401"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ab2550023a65ef060a59ccb277d1884b1"><td class="memItemLeft" align="right" valign="top"><a id="ab2550023a65ef060a59ccb277d1884b1"></a> uint16_t&#160;</td><td class="memItemRight" valign="bottom"><b>dev_errors</b></td></tr> <tr class="separator:ab2550023a65ef060a59ccb277d1884b1"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ac466f57bc0bec1d32866bf54ad96e2b6"><td class="memItemLeft" align="right" valign="top"><a id="ac466f57bc0bec1d32866bf54ad96e2b6"></a> uint8_t&#160;</td><td class="memItemRight" valign="bottom"><b>pc_errors</b></td></tr> <tr class="separator:ac466f57bc0bec1d32866bf54ad96e2b6"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a52d574fbbae5eb8ec7aaa606ab6f5f08"><td class="memItemLeft" align="right" valign="top"><a id="a52d574fbbae5eb8ec7aaa606ab6f5f08"></a> uint16_t&#160;</td><td class="memItemRight" valign="bottom"><b>checksum</b></td></tr> <tr class="separator:a52d574fbbae5eb8ec7aaa606ab6f5f08"><td class="memSeparator" colspan="2">&#160;</td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a> Static Public Attributes</h2></td></tr> <tr class="memitem:ad75ae471c8aa119b7a7e21aae6eafb71"><td class="memItemLeft" align="right" valign="top"><a id="ad75ae471c8aa119b7a7e21aae6eafb71"></a> const static uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_response_message.html#ad75ae471c8aa119b7a7e21aae6eafb71">length</a> = 70</td></tr> <tr class="memdesc:ad75ae471c8aa119b7a7e21aae6eafb71"><td class="mdescLeft">&#160;</td><td class="mdescRight">Length in bytes of the response message protocol. <br /></td></tr> <tr class="separator:ad75ae471c8aa119b7a7e21aae6eafb71"><td class="memSeparator" colspan="2">&#160;</td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p>Structure for storing and processing data from the STM32 configuration response message protocol Shore send requests and STM send responses. </p> </div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2> <a id="aca1891a6af29ae0ed020cc9118fa8859"></a> <h2 class="memtitle"><span class="permalink"><a href="#aca1891a6af29ae0ed020cc9118fa8859">&#9670;&nbsp;</a></span>ResponseMessage()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">ResponseMessage::ResponseMessage </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Constructor for <a class="el" href="struct_response_message.html" title="Structure for storing and processing data from the STM32 configuration response message protocol Shor...">ResponseMessage</a>. </p> </div> </div> <h2 class="groupheader">Member Function Documentation</h2> <a id="a9a80aa9a804fc2344a2dd889bffd1207"></a> <h2 class="memtitle"><span class="permalink"><a href="#a9a80aa9a804fc2344a2dd889bffd1207">&#9670;&nbsp;</a></span>parseVector()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool ResponseMessage::parseVector </td> <td>(</td> <td class="paramtype">std::vector&lt; char &gt; &amp;&#160;</td> <td class="paramname"><em>input</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Parse string bitwise correctly into <a class="el" href="struct_response_message.html" title="Structure for storing and processing data from the STM32 configuration response message protocol Shor...">ResponseMessage</a> and check 16bit checksum. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">&amp;input</td><td>String to parse. </td></tr> </table> </dd> </dl> </div> </div> <hr/>The documentation for this struct was generated from the following files:<ul> <li><a class="el" href="messages_8h_source.html">messages.h</a></li> <li>messages.cpp</li> </ul> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated by &#160;<a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.17 </small></address> </body> </html>
68.052133
456
0.725468
6b3e1e1c9b069239924e5e9cd138ea883b81b3cd
5,976
html
HTML
bookings/templates/bookings.html
getmobilehq/mykontainer-backend
20ee12f056ce7be75a71b02bcf2b055fe6643a36
[ "Unlicense", "MIT" ]
null
null
null
bookings/templates/bookings.html
getmobilehq/mykontainer-backend
20ee12f056ce7be75a71b02bcf2b055fe6643a36
[ "Unlicense", "MIT" ]
null
null
null
bookings/templates/bookings.html
getmobilehq/mykontainer-backend
20ee12f056ce7be75a71b02bcf2b055fe6643a36
[ "Unlicense", "MIT" ]
null
null
null
<!DOCTYPE html> <html xmlns=""> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Bookings for {{date}}</title> </head> <body> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan="2"><img src="" width="150" /></td> </tr> <tr> <td colspan="2">&nbsp;</td> </tr> <tr> <td width="49%"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td style="font-family:Verdana, Geneva, sans-serif; font-weight:600; font-size:15px;">{{user.shipping_company.name}}</td> </tr> <tr> {% comment %} <td style="font-family:Verdana, Geneva, sans-serif; font-weight:600; font-size:15px;">Holding Bay Details: </td> {% endcomment %} </tr> <tr> <td style="font-family:Verdana, Geneva, sans-serif; font-weight:500; font-size:14px;">{{user.bay_area.name}}</td> </tr> <td style="font-family:Verdana, Geneva, sans-serif; font-weight:300; font-size:13px;">{{user.bay_area.address}} </td> </tr> <tr> <td>&nbsp;</td> </tr> </table></td> </tr> </table></td> <td width="51%" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="right"><img src="logo.png" alt="" width="150" /></td> </tr> <tr> <td style="font-family:Verdana, Geneva, sans-serif; font-weight:300; font-size:13px;" align="right"></td> </tr> <tr> <td style="font-family:Verdana, Geneva, sans-serif; font-weight:300; font-size:13px;" align="right">&nbsp;</td> </tr> <tr> <td style="font-family:Verdana, Geneva, sans-serif; font-weight:300; font-size:13px;" align="right">Booking Date:{{date}}</td> </tr> </table></td> </tr> <tr> <td colspan="2">&nbsp;</td> </tr> <tr> <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td style="font-family:Verdana, Geneva, sans-serif; font-weight:600; font-size:13px; border-top:1px solid #333; border-bottom:1px solid #333; border-left:1px solid #333; border-right:1px solid #333;" width="34%" height="32" align="center">Customer Name</td> <td style="font-family:Verdana, Geneva, sans-serif; font-weight:600; font-size:13px; border-top:1px solid #333; border-bottom:1px solid #333; border-right:1px solid #333;" width="30%" align="center">Customer Company</td> <td style="font-family:Verdana, Geneva, sans-serif; font-weight:600; font-size:13px; border-top:1px solid #333; border-bottom:1px solid #333; border-right:1px solid #333;" width="30%" align="center">Designation</td> <td style="font-family:Verdana, Geneva, sans-serif; font-weight:600; font-size:13px; border-top:1px solid #333; border-bottom:1px solid #333; border-right:1px solid #333;" width="30%" align="center">Container Number</td> <td style="font-family:Verdana, Geneva, sans-serif; font-weight:600; font-size:13px; border-top:1px solid #333; border-bottom:1px solid #333; border-right:1px solid #333;" width="30%" align="center">Laden Number</td> <td style="font-family:Verdana, Geneva, sans-serif; font-weight:600; font-size:13px; border-top:1px solid #333; border-bottom:1px solid #333; border-right:1px solid #333;" width="30%" align="center">Container Size</td> </tr> {% for booking in bookings %} <tr> <td style="font-family:Verdana, Geneva, sans-serif; font-weight:300; font-size:13px; border-bottom:1px solid #333; border-left:1px solid #333; border-right:1px solid #333;" height="32" align="center">{{booking.user.first_name | capfirst}} {{booking.user.last_name| capfirst}}</td> <td style="font-family:Verdana, Geneva, sans-serif; font-weight:300; font-size:13px; border-bottom:1px solid #333; border-right:1px solid #333;" align="center">{{booking.user.company_name}}</td> <td style="font-family:Verdana, Geneva, sans-serif; font-weight:300; font-size:13px; border-bottom:1px solid #333; border-right:1px solid #333;" align="center">{{booking.user.user_type}}</td> <td style="font-family:Verdana, Geneva, sans-serif; font-weight:300; font-size:13px; border-bottom:1px solid #333; border-right:1px solid #333;" align="center">{{booking.container_number}}</td> <td style="font-family:Verdana, Geneva, sans-serif; font-weight:300; font-size:13px; border-bottom:1px solid #333; border-right:1px solid #333;" align="center">{{booking.laden_number}}</td> <td style="font-family:Verdana, Geneva, sans-serif; font-weight:300; font-size:13px; border-bottom:1px solid #333; border-right:1px solid #333;" align="center">{{booking.container_size}}</td> </tr> {% endfor %} </table></td> </tr> <tr> <td colspan="2">&nbsp;</td> </tr> <tr> <td colspan="2">&nbsp;</td> </tr> {% comment %} <tr> <td style="font-family:Verdana, Geneva, sans-serif; font-weight:600; font-size:13px;" colspan="2">Please Note:</td> </tr> <tr> <td style="font-family:Verdana, Geneva, sans-serif; font-weight:300; font-size:13px;" colspan="2">This is a.</td> </tr> <tr> <td colspan="2">&nbsp;</td> </tr> {% endcomment %} <tr> <td style="font-family:Verdana, Geneva, sans-serif; font-weight:400; font-size:13px;" colspan="2">Thank you for using our service</td> </tr> <td colspan="2">&nbsp;</td> </tr> <tr> <td colspan="2">&nbsp;</td> </tr> <tr> <td style="font-family:Verdana, Geneva, sans-serif; font-weight:300; font-size:13px;" colspan="2" align="center">{{ bookings.count}} total booking{{bookings.count | pluralize}} for {{date}} </td> </tr> <tr> <td colspan="2">&nbsp;</td> </tr> <tr> <td colspan="2">&nbsp;</td> </tr> <tr> <td colspan="2">&nbsp;</td> </tr> </table> </body> </html>
51.076923
288
0.623494
9adbdb6fc566e28047c576018df5ac825f9c5d6b
160
sql
SQL
db/schema.sql
tr8b5/Club-Social
c7aa50ee0326e79252adc930e6e80a4fee09862e
[ "Unlicense" ]
null
null
null
db/schema.sql
tr8b5/Club-Social
c7aa50ee0326e79252adc930e6e80a4fee09862e
[ "Unlicense" ]
null
null
null
db/schema.sql
tr8b5/Club-Social
c7aa50ee0326e79252adc930e6e80a4fee09862e
[ "Unlicense" ]
3
2021-02-03T16:46:14.000Z
2021-02-04T13:46:44.000Z
-- Drops the clubSocial if it exists currently -- DROP DATABASE IF EXISTS clubSocial_db; -- Creates the "clubSocial" database -- CREATE DATABASE clubSocial_db;
32
49
0.78125
d0d3042d663ec01b474f554a7972907bc701e1a6
8,604
css
CSS
public/styles/styles.css
2B-OR-2B/final-project
329b0b504f5534c47285b5ad68487194c9622c87
[ "MIT" ]
null
null
null
public/styles/styles.css
2B-OR-2B/final-project
329b0b504f5534c47285b5ad68487194c9622c87
[ "MIT" ]
null
null
null
public/styles/styles.css
2B-OR-2B/final-project
329b0b504f5534c47285b5ad68487194c9622c87
[ "MIT" ]
null
null
null
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400&display=swap');/*font-family: 'Montserrat', sans-serif;*/ @import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400&display=swap');/*font-family: 'Rubik', sans-serif;*/ @import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@200;300;400&display=swap');/*font-family: 'Roboto Slab', serif;*/ @import url('https://fonts.googleapis.com/css2?family=Courgette&display=swap'); @media screen and (min-width: 400px) { body,div,h1,h2,span,p,a,i,section{ font-family: 'Roboto Slab', serif; } body{ background-image:linear-gradient(to right,rgba(124, 117, 57, 0.336) 20%, rgba(53, 59, 15, 0.212) 80%),url('.././img/body4.jpg'); background-attachment: fixed; background-repeat: no-repeat; background-size: cover; height: 100%; overflow-x: hidden; top: 0; bottom: 0; left: 0; right: 0; margin: 0 0 0 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; } .header{ width: 98%; background-image: linear-gradient(to right, rgba(230, 227, 220, 0.514) 20%, rgba(0, 0, 0, 0.2)80%),url('../img/header2.jpg') ; background-attachment: fixed; background-repeat: no-repeat; background-size: cover; display: flex; justify-content: space-around; flex-direction: column; height: 75vh; padding-left:2%; /* padding-bottom: 5%; */ /* 25%; */ } .nav { top:0; left: 0; color: white; background-color:rgba(85, 33, 72, 0.822) ; position: fixed; display: flex; flex-direction: row; justify-content: space-between; align-items: center; width: 100%; height: 10%; padding:5px 15px; z-index: 50; } .inner_cont_nav{ display: flex; flex-direction: row; width: 80%; justify-content: flex-start; align-items: center; padding: 10px; } .nav ul { width: 60%; display: flex; list-style: none; flex-direction: row; justify-content: space-evenly; align-items: center; margin-left: 20px; } .nav ul li { text-decoration: none; font-family: 'Roboto Slab', serif; font-size: 1.2em; } .nav ul i{ cursor: pointer; } .lastItem{ margin-right: 40px; } .lastItem span , .lastItem i { cursor: pointer;} .lastItem span,a{ text-decoration: none; color:white; font-size: 23px; font-family: 'Roboto Slab', serif; } .greeting{ width: 80%; height: 40%; display: flex; flex-direction: column; align-items: flex-start; } .greeting span p { position: relative; font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 1.4em; margin-left: 35px; background: linear-gradient(90deg, rgba(182, 92, 159, 0.822), #fff, #000); background-repeat: no-repeat; background-size: 80%; animation: animate 12s infinite; -webkit-background-clip: text; -webkit-text-fill-color: rgba(255, 255, 255, 0); } @keyframes animate { 0% { background-position: -350%; } 100% { background-position: 700%; } } .greeting span h1 { font-size: 50px; padding-left: 32%; } .greeting span h2{ font-size: 35px; } .index-main{ display: flex; flex-direction: column; justify-content: space-around; } .rand-recipe{ width: 100%; height: 650px; display: flex; flex-direction: row; justify-content: space-evenly; flex-wrap: wrap; background-color: white; padding-top:0.5%; box-shadow: 1px 2px 20px 8px rgba(54, 51, 53, 0.705) ; } .rand-recipe h2{ width: 80%; } .randomImgHome{ width: 100%; height: 100%; border-radius: 1rem; } .about{ position: relative; width: 27%; height: 70%; box-shadow: 0 6px 18px rgb(0, 0, 0); border-radius: 1rem; } .img__description { z-index: 1; position: absolute; top: 0; bottom: 0; left: 0; right: 0; width: 100%; height: 50%; background: rgba(85, 33, 72, 0.479); color: #fff; visibility: hidden; opacity: 0; padding-top:56%; transition: all 0.7s ease-in-out 0s; margin-block-start: 0px; border-radius: 1rem; } .about:hover .img__description { visibility: visible; opacity: 1; } #intsection{ height: 70%; width: 100%; background-color: white; display: flex; flex-direction: row; justify-content: center; flex-wrap: wrap; padding-bottom: 2%; box-shadow: 1px 2px 20px 8px rgba(54, 51, 53, 0.705) ; /* background-color:#ffeeee ; */ } #abo{ width: 80%; } hr{ width: 50%; background-color:rgba(182, 92, 159, 0.822) ; height: 5px; margin-bottom: 15px; } .introduction{ width: 40%; margin-left: 2.5%; } .introduction img{ width: 100%; height: 100%; border-radius: 1rem; } .introduction p{ line-height: 2em; } .introduction button{ padding: 8px 15px; border-radius: 10px; font-weight: bolder; background-color:rgba(85, 33, 72, 0.822); margin-left: 70%; outline: none; border:none; } .introduction button a{ font-size: 1.3em; } .introduction button:hover{ box-shadow: 0 6px 18px rgba(177, 104, 158, 0.822) ; } #transparent{ width: 75%; height: 30%; padding: 7% 0; font-size: 50px; color:white; margin:auto; } #transparent p,h2{ text-align: center; font-size: 35px; } #map{ height: 200px; width: 350px; } #Copyright{ color: white; font-size: larger; } footer{text-align:center;background-color: rgba(85, 33, 72, 0.822);padding:1% 0; text-transform:uppercase;animation:fadeIn 5s ease-in-out;animation-delay:16s;} .contact{background-color:#ead8e2f5;height:300px;padding:0% 10%;margin-bottom: 0;} .contact .contact-info{ color:rgb(160, 150, 150);padding:3% 0; font-weight: bolder; font-size: larger; display:flex;justify-content:space-around; animation:fadeIn 5s ease-in-out;animation-delay:16s; margin-bottom: -40%;} .contact .contact-info .contact-box{padding-left:2%;} .contact .contact-info .contact-box h3{font-size:25px;margin:3% 0;color:#555;text-transform:uppercase;} .contact .contact-info .contact-box p{font-size:12px;} h4{font-size:25px;margin:3%;color:#555;text-transform:uppercase;} .contact .foot{padding-left:8%;display:flex;padding-top:3%;animation:fadeIn 5s ease-in-out;animation-delay:16s;} .contact .foot .foot-box{width:33.3333%;padding:0 3%;margin-left:61%;margin-top:0%;} .contact .foot .foot-box .foot-icon{margin-left:3%;margin-top:80%;} .contact .foot .foot-box .foot-icon i{color:#555;margin-left:5%;} .contact .foot .foot-box .foot-icon i:hover{color:#999;} .contact .foot .foot-box h3{color:rgb(184, 172, 172);text-transform:uppercase;} .contact .foot .foot-box p{color:#555;} .contact .foot .foot-box input{background-color:#222;border:1px #555 solid; color:#999;padding:5px 15px;border-radius:10px;} } /* scroll bar */ /* width */ ::-webkit-scrollbar { width: 15px; } /* Track */ ::-webkit-scrollbar-track { box-shadow: inset 0 0 5px grey; border-radius: 10px; } /* Handle */ ::-webkit-scrollbar-thumb { background: #4d2543da; border-radius: 10px; cursor: pointer; } /* Handle on hover */ ::-webkit-scrollbar-thumb:hover { background: #52334a; cursor: pointer; } .titleH2{ font-family: 'Courgette', cursive; }
26.8875
144
0.550325
9c312f9b09fdb52ab220bf94c2ae9360a4b1942d
466
cpp
C++
CH2/CH208/PushButtonTest/mywidget.cpp
captainwong/Qt5-src
f99b29bd80449a30d4285659b2992afac6e3f4da
[ "MIT" ]
null
null
null
CH2/CH208/PushButtonTest/mywidget.cpp
captainwong/Qt5-src
f99b29bd80449a30d4285659b2992afac6e3f4da
[ "MIT" ]
null
null
null
CH2/CH208/PushButtonTest/mywidget.cpp
captainwong/Qt5-src
f99b29bd80449a30d4285659b2992afac6e3f4da
[ "MIT" ]
null
null
null
#include "mywidget.h" #include <qapplication.h> #include <qpushbutton.h> #include <qfont.h> MyWidget::MyWidget(QWidget *parent) : QWidget(parent) { setMinimumSize( 200, 120 ); setMaximumSize( 200, 120 ); QPushButton *quit = new QPushButton( "Quit", this); quit->setGeometry( 62, 40, 75, 30 ); quit->setFont( QFont( "Times", 18, QFont::Bold ) ); connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) ); } MyWidget::~MyWidget() { }
20.26087
59
0.630901
22e53eccc4ada66001cc62ee698eee507a43f9ee
9,372
cpp
C++
src/plugin/delta2bboxPlugin/delta2bboxPlugin.cpp
vicentefernandes/amirstan_plugin
23af34d19aa2b06b96965a4de1246a0bc6783bd2
[ "MIT" ]
null
null
null
src/plugin/delta2bboxPlugin/delta2bboxPlugin.cpp
vicentefernandes/amirstan_plugin
23af34d19aa2b06b96965a4de1246a0bc6783bd2
[ "MIT" ]
null
null
null
src/plugin/delta2bboxPlugin/delta2bboxPlugin.cpp
vicentefernandes/amirstan_plugin
23af34d19aa2b06b96965a4de1246a0bc6783bd2
[ "MIT" ]
null
null
null
#include "delta2bboxPlugin.h" #include <assert.h> #include <chrono> #include "amirCommon.h" #include "common.h" #include "delta2bbox.h" #include "serialize.hpp" namespace amirstan { namespace plugin { namespace { static const char *PLUGIN_VERSION{"1"}; static const char *PLUGIN_NAME{"Delta2BBoxPluginDynamic"}; } // namespace Delta2BBoxPluginDynamic::Delta2BBoxPluginDynamic( const std::string &name, int minNumBBox, const std::vector<float> &targetMeans, const std::vector<float> &targetStds) : PluginDynamicBase(name), mMinNumBBox(minNumBBox), mTargetMeans(targetMeans), mTargetStds(targetStds) {} Delta2BBoxPluginDynamic::Delta2BBoxPluginDynamic(const std::string name, const void *data, size_t length) : PluginDynamicBase(name) { deserialize_value(&data, &length, &mMinNumBBox); const int mean_std_size = 4; const char *d = static_cast<const char *>(data); float *mean_data = (float *)deserToHost<char>(d, mean_std_size * sizeof(float)); mTargetMeans = std::vector<float>(&mean_data[0], &mean_data[0] + mean_std_size); float *std_data = (float *)deserToHost<char>(d, mean_std_size * sizeof(float)); mTargetStds = std::vector<float>(&std_data[0], &std_data[0] + mean_std_size); initialize(); } nvinfer1::IPluginV2DynamicExt *Delta2BBoxPluginDynamic::clone() const PLUGIN_NOEXCEPT { Delta2BBoxPluginDynamic *plugin = new Delta2BBoxPluginDynamic( mLayerName, mMinNumBBox, mTargetMeans, mTargetStds); plugin->setPluginNamespace(getPluginNamespace()); return plugin; } nvinfer1::DimsExprs Delta2BBoxPluginDynamic::getOutputDimensions( int outputIndex, const nvinfer1::DimsExprs *inputs, int nbInputs, nvinfer1::IExprBuilder &exprBuilder) PLUGIN_NOEXCEPT { assert(nbInputs == 3 || nbInputs == 4); auto out_bbox = inputs[0].d[1]; auto final_bbox = exprBuilder.operation(nvinfer1::DimensionOperation::kMAX, *exprBuilder.constant(mMinNumBBox), *out_bbox); nvinfer1::DimsExprs ret; ret.nbDims = 3; ret.d[0] = inputs[0].d[0]; ret.d[1] = final_bbox; switch (outputIndex) { case 0: ret.d[2] = inputs[0].d[2]; break; case 1: ret.d[2] = inputs[1].d[2]; break; default: break; } return ret; } bool Delta2BBoxPluginDynamic::supportsFormatCombination( int pos, const nvinfer1::PluginTensorDesc *inOut, int nbInputs, int nbOutputs) PLUGIN_NOEXCEPT { const auto *in = inOut; const auto *out = inOut + nbInputs; switch (pos) { case 0: return in[0].type == nvinfer1::DataType::kFLOAT && in[0].format == nvinfer1::TensorFormat::kLINEAR; case 1: return in[1].type == nvinfer1::DataType::kFLOAT && in[1].format == nvinfer1::TensorFormat::kLINEAR; case 2: return in[2].type == in[1].type && in[2].format == in[1].format; } // output switch (pos - nbInputs) { case 0: return out[0].type == in[0].type && out[0].format == in[0].format; case 1: return out[1].type == in[1].type && out[1].format == in[1].format; } if (nbInputs == 4 && pos == 3) { return in[3].type == nvinfer1::DataType::kINT32 && in[3].format == nvinfer1::TensorFormat::kLINEAR; } return false; } void Delta2BBoxPluginDynamic::configurePlugin( const nvinfer1::DynamicPluginTensorDesc *inputs, int nbInputs, const nvinfer1::DynamicPluginTensorDesc *outputs, int nbOutputs) PLUGIN_NOEXCEPT { mNeedClipRange = nbInputs == 4; // Validate input arguments } size_t Delta2BBoxPluginDynamic::getWorkspaceSize( const nvinfer1::PluginTensorDesc *inputs, int nbInputs, const nvinfer1::PluginTensorDesc *outputs, int nbOutputs) const PLUGIN_NOEXCEPT { return 0; } int Delta2BBoxPluginDynamic::enqueue( const nvinfer1::PluginTensorDesc *inputDesc, const nvinfer1::PluginTensorDesc *outputDesc, const void *const *inputs, void *const *outputs, void *workSpace, cudaStream_t stream) PLUGIN_NOEXCEPT { int batch_size = inputDesc[0].dims.d[0]; int num_inboxes = inputDesc[0].dims.d[1]; int num_classes = inputDesc[0].dims.d[2]; int num_outboxes = outputDesc[0].dims.d[1]; int dim_inboxes = inputDesc[1].dims.nbDims; int num_box_classes = inputDesc[1].dims.d[dim_inboxes - 1] / 4; void *out_cls = outputs[0]; void *out_bbox = outputs[1]; const void *in_cls = inputs[0]; const void *in_bbox = inputs[1]; const void *anchor = inputs[2]; int *clip_range = mNeedClipRange ? (int *)(inputs[3]) : nullptr; if (num_inboxes != num_outboxes) { fill_zeros<float, float>((float *)out_cls, (float *)out_bbox, outputDesc[0].dims.d[0] * outputDesc[0].dims.d[1] * outputDesc[0].dims.d[2], outputDesc[1].dims.d[0] * outputDesc[1].dims.d[1] * outputDesc[1].dims.d[2], stream); } cudaMemcpyAsync(out_cls, in_cls, batch_size * num_inboxes * num_classes * sizeof(float), cudaMemcpyDeviceToDevice, stream); delta2bbox<float>((float *)out_bbox, (float *)in_bbox, (float *)anchor, clip_range, batch_size, num_inboxes, num_box_classes, mTargetMeans.data(), mTargetStds.data(), stream); return 0; } nvinfer1::DataType Delta2BBoxPluginDynamic::getOutputDataType( int index, const nvinfer1::DataType *inputTypes, int nbInputs) const PLUGIN_NOEXCEPT { switch (index) { case 0: return inputTypes[0]; default: return inputTypes[1]; } } // IPluginV2 Methods const char *Delta2BBoxPluginDynamic::getPluginType() const PLUGIN_NOEXCEPT { return PLUGIN_NAME; } const char *Delta2BBoxPluginDynamic::getPluginVersion() const PLUGIN_NOEXCEPT { return PLUGIN_VERSION; } int Delta2BBoxPluginDynamic::getNbOutputs() const PLUGIN_NOEXCEPT { return 2; } size_t Delta2BBoxPluginDynamic::getSerializationSize() const PLUGIN_NOEXCEPT { return mTargetMeans.size() * sizeof(float) + mTargetStds.size() * sizeof(float) + sizeof(mMinNumBBox); } void Delta2BBoxPluginDynamic::serialize(void *buffer) const PLUGIN_NOEXCEPT { serialize_value(&buffer, mMinNumBBox); const int mean_std_size = 4; char *d = static_cast<char *>(buffer); serFromHost(d, mTargetMeans.data(), mean_std_size); serFromHost(d, mTargetStds.data(), mean_std_size); } ////////////////////// creator ///////////////////////////// Delta2BBoxPluginDynamicCreator::Delta2BBoxPluginDynamicCreator() { mPluginAttributes = std::vector<PluginField>({PluginField("min_num_bbox"), PluginField("target_means"), PluginField("target_stds")}); mFC.nbFields = mPluginAttributes.size(); mFC.fields = mPluginAttributes.data(); } const char *Delta2BBoxPluginDynamicCreator::getPluginName() const PLUGIN_NOEXCEPT { return PLUGIN_NAME; } const char *Delta2BBoxPluginDynamicCreator::getPluginVersion() const PLUGIN_NOEXCEPT { return PLUGIN_VERSION; } IPluginV2 *Delta2BBoxPluginDynamicCreator::createPlugin( const char *name, const PluginFieldCollection *fc) PLUGIN_NOEXCEPT { int minNumBBox = 1000; std::vector<float> targetMeans; std::vector<float> targetStds; for (int i = 0; i < fc->nbFields; i++) { if (fc->fields[i].data == nullptr) { continue; } std::string field_name(fc->fields[i].name); if (field_name.compare("min_num_bbox") == 0) { minNumBBox = static_cast<const int *>(fc->fields[i].data)[0]; } if (field_name.compare("target_means") == 0) { int data_size = fc->fields[i].length; const float *data_start = static_cast<const float *>(fc->fields[i].data); targetMeans = std::vector<float>(data_start, data_start + data_size); } if (field_name.compare("target_stds") == 0) { int data_size = fc->fields[i].length; const float *data_start = static_cast<const float *>(fc->fields[i].data); targetStds = std::vector<float>(data_start, data_start + data_size); } } if (targetMeans.size() != 4) { std::cerr << "target mean must contain 4 elements" << std::endl; } if (targetStds.size() != 4) { std::cerr << "target std must contain 4 elements" << std::endl; } Delta2BBoxPluginDynamic *plugin = new Delta2BBoxPluginDynamic(name, minNumBBox, targetMeans, targetStds); plugin->setPluginNamespace(getPluginNamespace()); return plugin; } IPluginV2 *Delta2BBoxPluginDynamicCreator::deserializePlugin( const char *name, const void *serialData, size_t serialLength) PLUGIN_NOEXCEPT { // This object will be deleted when the network is destroyed, which will // call FCPluginDynamic::destroy() auto plugin = new Delta2BBoxPluginDynamic(name, serialData, serialLength); plugin->setPluginNamespace(getPluginNamespace()); return plugin; } } // namespace plugin } // namespace amirstan
32.769231
81
0.642659
77557dfbb66790772ac64092a65b71ec793e5dcb
485
ps1
PowerShell
build.ps1
sharwell/xunit.analyzers
00fec62fcd1219e1f6e4510560faacc2fe00feee
[ "Apache-2.0" ]
120
2017-05-03T11:32:01.000Z
2022-03-24T17:02:09.000Z
build.ps1
sharwell/xunit.analyzers
00fec62fcd1219e1f6e4510560faacc2fe00feee
[ "Apache-2.0" ]
103
2017-05-03T17:48:01.000Z
2021-08-21T22:21:05.000Z
build.ps1
sharwell/xunit.analyzers
00fec62fcd1219e1f6e4510560faacc2fe00feee
[ "Apache-2.0" ]
56
2017-05-05T18:28:12.000Z
2022-01-11T09:50:13.000Z
#!/usr/bin/env pwsh #Requires -Version 5.1 Set-StrictMode -Version Latest $ErrorActionPreference = "Stop" if ($null -eq (Get-Command "dotnet" -ErrorAction Ignore)) { throw "Could not find 'dotnet'; please install the .NET Core SDK" } Push-Location (Split-Path $MyInvocation.MyCommand.Definition) try { & dotnet run --project tools/builder --no-launch-profile -- $args if (-not $?) { Exit $LASTEXITCODE } } finally { Pop-Location }
22.045455
71
0.643299
b26321e367d073335f477144513edb7e389cf4a3
2,147
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_36_594.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_36_594.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_36_594.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r15 push %rdi push %rdx lea addresses_UC_ht+0x1bdba, %r10 nop nop nop add $3429, %r15 movups (%r10), %xmm2 vpextrq $0, %xmm2, %rdx nop nop nop xor %rdi, %rdi pop %rdx pop %rdi pop %r15 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r12 push %r13 push %rcx push %rdi push %rsi // Store mov $0x1ba, %r13 nop nop nop xor $13193, %r12 movw $0x5152, (%r13) nop nop nop nop nop dec %r12 // Store lea addresses_normal+0xc1ba, %rcx nop and %r10, %r10 movb $0x51, (%rcx) nop nop nop nop xor %r11, %r11 // Store lea addresses_D+0x12974, %r13 nop add %rsi, %rsi movw $0x5152, (%r13) nop add $35727, %rsi // Store lea addresses_WC+0xd7ba, %r10 cmp $12156, %r13 mov $0x5152535455565758, %rcx movq %rcx, %xmm4 vmovups %ymm4, (%r10) sub %r11, %r11 // Faulty Load lea addresses_RW+0x105ba, %r13 nop nop nop nop nop and $24995, %r11 movups (%r13), %xmm0 vpextrq $1, %xmm0, %r10 lea oracles, %rsi and $0xff, %r10 shlq $12, %r10 mov (%rsi,%r10,1), %r10 pop %rsi pop %rdi pop %rcx pop %r13 pop %r12 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': False, 'type': 'addresses_RW'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 6, 'same': False, 'type': 'addresses_P'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': True, 'size': 1, 'congruent': 10, 'same': False, 'type': 'addresses_normal'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': True, 'size': 2, 'congruent': 1, 'same': False, 'type': 'addresses_D'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 9, 'same': False, 'type': 'addresses_WC'}, 'OP': 'STOR'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0, 'same': True, 'type': 'addresses_RW'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 11, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'} {'32': 36} 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 */
19
126
0.639497
9861894515e9ce9dde827e81f946324e24737417
362
dart
Dart
book_search/lib/bookCard.dart
georgiani/GoogleBooksSearch
ab1ef9ea7af9cb4a22d322f69b867a5a4ce83614
[ "MIT" ]
null
null
null
book_search/lib/bookCard.dart
georgiani/GoogleBooksSearch
ab1ef9ea7af9cb4a22d322f69b867a5a4ce83614
[ "MIT" ]
null
null
null
book_search/lib/bookCard.dart
georgiani/GoogleBooksSearch
ab1ef9ea7af9cb4a22d322f69b867a5a4ce83614
[ "MIT" ]
null
null
null
import 'package:book_search/bookSearchModel.dart'; import 'package:flutter/material.dart'; class BookCard extends StatelessWidget { final Book book; BookCard({this.book}); @override Widget build(BuildContext context) { return ListTile( leading: Icon(Icons.book), title: Text(book.title), subtitle: Text(book.author), ); } }
21.294118
50
0.69337
e9384bcb31c4733905c706aeac82d3915a5f8f8b
12,000
go
Go
imagetest/fixtures.go
Linskeyd/guest-test-infra
f1d907ebd191881477b739ac9a0d6bdbacab6f34
[ "Apache-2.0" ]
null
null
null
imagetest/fixtures.go
Linskeyd/guest-test-infra
f1d907ebd191881477b739ac9a0d6bdbacab6f34
[ "Apache-2.0" ]
null
null
null
imagetest/fixtures.go
Linskeyd/guest-test-infra
f1d907ebd191881477b739ac9a0d6bdbacab6f34
[ "Apache-2.0" ]
null
null
null
// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package imagetest import ( "fmt" "io/ioutil" "strings" "github.com/GoogleCloudPlatform/compute-image-tools/daisy" "github.com/google/uuid" "google.golang.org/api/compute/v1" ) const ( createVMsStepName = "create-vms" createDisksStepName = "create-disks" createNetworkStepName = "create-networks" createFirewallStepName = "create-firewalls" createSubnetworkStepName = "create-sub-networks" successMatch = "FINISHED-TEST" ) // TestVM is a test VM. type TestVM struct { name string testWorkflow *TestWorkflow instance *daisy.Instance } // AddUser add user public key to metadata ssh-keys. func (t *TestVM) AddUser(user, publicKey string) { keyline := fmt.Sprintf("%s:%s", user, publicKey) if keys, ok := t.instance.Metadata["ssh-keys"]; ok { keyline = fmt.Sprintf("%s\n%s", keys, keyline) } t.AddMetadata("ssh-keys", keyline) } // Skip marks a test workflow to be skipped. func (t *TestWorkflow) Skip(message string) { t.skipped = true t.skippedMessage = message } // SkippedMessage returns the skip reason message for the workflow. func (t *TestWorkflow) SkippedMessage() string { return t.skippedMessage } // LockProject indicates this test modifies project-level data and must have // exclusive use of the project. func (t *TestWorkflow) LockProject() { t.lockProject = true } // CreateTestVM adds the necessary steps to create a VM with the specified // name to the workflow. func (t *TestWorkflow) CreateTestVM(name string) (*TestVM, error) { parts := strings.Split(name, ".") vmname := strings.ReplaceAll(parts[0], "_", "-") createDisksStep, err := t.appendCreateDisksStep(vmname) if err != nil { return nil, err } // createDisksStep doesn't depend on any other steps. createVMStep, i, err := t.appendCreateVMStep(vmname, name) if err != nil { return nil, err } if err := t.wf.AddDependency(createVMStep, createDisksStep); err != nil { return nil, err } waitStep, err := t.addWaitStep(vmname, vmname, false) if err != nil { return nil, err } if err := t.wf.AddDependency(waitStep, createVMStep); err != nil { return nil, err } if createSubnetworkStep, ok := t.wf.Steps[createSubnetworkStepName]; ok { if err := t.wf.AddDependency(createVMStep, createSubnetworkStep); err != nil { return nil, err } } if createNetworkStep, ok := t.wf.Steps[createNetworkStepName]; ok { if err := t.wf.AddDependency(createVMStep, createNetworkStep); err != nil { return nil, err } } return &TestVM{name: vmname, testWorkflow: t, instance: i}, nil } // AddMetadata adds the specified key:value pair to metadata during VM creation. func (t *TestVM) AddMetadata(key, value string) { if t.instance.Metadata == nil { t.instance.Metadata = make(map[string]string) } t.instance.Metadata[key] = value return } // RunTests runs only the named tests on the testVM. // // From go help test: // -run regexp // Run only those tests and examples matching the regular expression. // For tests, the regular expression is split by unbracketed slash (/) // characters into a sequence of regular expressions, and each part // of a test's identifier must match the corresponding element in // the sequence, if any. Note that possible parents of matches are // run too, so that -run=X/Y matches and runs and reports the result // of all tests matching X, even those without sub-tests matching Y, // because it must run them to look for those sub-tests. func (t *TestVM) RunTests(runtest string) { t.AddMetadata("_test_run", runtest) } // SetShutdownScript sets the `shutdown-script` metadata key for a VM. func (t *TestVM) SetShutdownScript(script string) { t.AddMetadata("shutdown-script", script) } // SetShutdownScriptURL sets the`shutdown-script-url` metadata key for a VM. func (t *TestVM) SetShutdownScriptURL(script string) error { fileName := fmt.Sprintf("/shutdown_script-%s", uuid.New()) if err := ioutil.WriteFile(fileName, []byte(script), 755); err != nil { return err } t.testWorkflow.wf.Sources["shutdown-script"] = fileName t.AddMetadata("shutdown-script-url", "${SOURCESPATH}/shutdown-script") return nil } // SetStartupScript sets the `startup-script` metadata key for a VM. func (t *TestVM) SetStartupScript(script string) { t.AddMetadata("startup-script", script) } // Reboot stops the VM, waits for it to shutdown, then starts it again. Your // test package must handle being run twice. func (t *TestVM) Reboot() error { // TODO: better solution than a shared counter for name collisions. t.testWorkflow.counter++ stepSuffix := fmt.Sprintf("%s-%d", t.name, t.testWorkflow.counter) lastStep, err := t.testWorkflow.getLastStepForVM(t.name) if err != nil { return fmt.Errorf("failed resolve last step") } stopInstancesStep, err := t.testWorkflow.addStopStep(stepSuffix, t.name) if err != nil { return err } if err := t.testWorkflow.wf.AddDependency(stopInstancesStep, lastStep); err != nil { return err } waitStopStep, err := t.testWorkflow.addWaitStep("stopped-"+stepSuffix, t.name, true) if err != nil { return err } if err := t.testWorkflow.wf.AddDependency(waitStopStep, stopInstancesStep); err != nil { return err } startInstancesStep, err := t.testWorkflow.addStartStep(stepSuffix, t.name) if err != nil { return err } if err := t.testWorkflow.wf.AddDependency(startInstancesStep, waitStopStep); err != nil { return err } waitStartedStep, err := t.testWorkflow.addWaitStep("started-"+stepSuffix, t.name, false) if err != nil { return err } if err := t.testWorkflow.wf.AddDependency(waitStartedStep, startInstancesStep); err != nil { return err } return nil } // ResizeDiskAndReboot resize the disk of the current test VMs and reboot func (t *TestVM) ResizeDiskAndReboot(diskSize int) error { t.testWorkflow.counter++ stepSuffix := fmt.Sprintf("%s-%d", t.name, t.testWorkflow.counter) lastStep, err := t.testWorkflow.getLastStepForVM(t.name) if err != nil { return fmt.Errorf("failed resolve last step") } diskResizeStep, err := t.testWorkflow.addDiskResizeStep(stepSuffix, t.name, diskSize) if err != nil { return err } if err := t.testWorkflow.wf.AddDependency(diskResizeStep, lastStep); err != nil { return err } return t.Reboot() } // EnableSecureBoot make the current test VMs in workflow with secure boot. func (t *TestVM) EnableSecureBoot() { t.instance.ShieldedInstanceConfig = &compute.ShieldedInstanceConfig{ EnableSecureBoot: true, } } // AddCustomNetwork add current test VMs in workflow using provided network and // subnetwork. If subnetwork is empty, not using subnetwork, in this case // network has to be in auto mode VPC. func (t *TestVM) AddCustomNetwork(network *Network, subnetwork *Subnetwork) error { var subnetworkName string if subnetwork == nil { subnetworkName = "" if !*network.network.AutoCreateSubnetworks { return fmt.Errorf("network %s is not auto mode, subnet is required", network.name) } } else { subnetworkName = subnetwork.name } // Add network config. networkInterface := compute.NetworkInterface{ Network: network.name, Subnetwork: subnetworkName, AccessConfigs: []*compute.AccessConfig{ { Type: "ONE_TO_ONE_NAT", }, }, } if t.instance.NetworkInterfaces == nil { t.instance.NetworkInterfaces = []*compute.NetworkInterface{&networkInterface} } else { t.instance.NetworkInterfaces = append(t.instance.NetworkInterfaces, &networkInterface) } return nil } // AddAliasIPRanges add alias ip range to current test VMs. func (t *TestVM) AddAliasIPRanges(aliasIPRange, rangeName string) error { // TODO: If we haven't set any NetworkInterface struct, does it make sense to support adding alias IPs? if t.instance.NetworkInterfaces == nil { return fmt.Errorf("Must call AddCustomNetwork prior to AddAliasIPRanges") } t.instance.NetworkInterfaces[0].AliasIpRanges = append(t.instance.NetworkInterfaces[0].AliasIpRanges, &compute.AliasIpRange{ IpCidrRange: aliasIPRange, SubnetworkRangeName: rangeName, }) return nil } // SetPrivateIP set IPv4 internal IP address for target network to the current test VMs. func (t *TestVM) SetPrivateIP(network *Network, networkIP string) error { if t.instance.NetworkInterfaces == nil { return fmt.Errorf("Must call AddCustomNetwork prior to AddPrivateIP") } for _, nic := range t.instance.NetworkInterfaces { if nic.Network == network.name { nic.NetworkIP = networkIP return nil } } return fmt.Errorf("not found network interface %s", network.name) } // Network represent network used by vm in setup.go. type Network struct { name string testWorkflow *TestWorkflow network *daisy.Network } // Subnetwork represent subnetwork used by vm in setup.go. type Subnetwork struct { name string testWorkflow *TestWorkflow subnetwork *daisy.Subnetwork network *Network } // CreateNetwork creates custom network. Using AddCustomNetwork method provided by // TestVM to config network on vm func (t *TestWorkflow) CreateNetwork(networkName string, autoCreateSubnetworks bool) (*Network, error) { createNetworkStep, network, err := t.appendCreateNetworkStep(networkName, autoCreateSubnetworks) if err != nil { return nil, err } createVMsStep, ok := t.wf.Steps[createVMsStepName] if ok { if err := t.wf.AddDependency(createVMsStep, createNetworkStep); err != nil { return nil, err } } return &Network{networkName, t, network}, nil } // CreateSubnetwork creates custom subnetwork. Using AddCustomNetwork method // provided by TestVM to config network on vm func (n *Network) CreateSubnetwork(name string, ipRange string) (*Subnetwork, error) { createSubnetworksStep, subnetwork, err := n.testWorkflow.appendCreateSubnetworksStep(name, ipRange, n.name) if err != nil { return nil, err } createNetworkStep, ok := n.testWorkflow.wf.Steps[createNetworkStepName] if !ok { return nil, fmt.Errorf("create-network step missing") } if err := n.testWorkflow.wf.AddDependency(createSubnetworksStep, createNetworkStep); err != nil { return nil, err } return &Subnetwork{name, n.testWorkflow, subnetwork, n}, nil } // AddSecondaryRange add secondary IP range to Subnetwork func (s Subnetwork) AddSecondaryRange(rangeName, ipRange string) { s.subnetwork.SecondaryIpRanges = append(s.subnetwork.SecondaryIpRanges, &compute.SubnetworkSecondaryRange{ IpCidrRange: ipRange, RangeName: rangeName, }) } func (t *TestWorkflow) appendCreateFirewallStep(firewallName, networkName, protocol string, ports []string) (*daisy.Step, *daisy.FirewallRule, error) { firewall := &daisy.FirewallRule{ Firewall: compute.Firewall{ Name: firewallName, Network: networkName, Allowed: []*compute.FirewallAllowed{ { IPProtocol: protocol, Ports: ports, }, }, }, } createFirewallRules := &daisy.CreateFirewallRules{} *createFirewallRules = append(*createFirewallRules, firewall) createFirewallStep, ok := t.wf.Steps[createFirewallStepName] if ok { // append to existing step. *createFirewallStep.CreateFirewallRules = append(*createFirewallStep.CreateFirewallRules, firewall) } else { var err error createFirewallStep, err = t.wf.NewStep(createFirewallStepName) if err != nil { return nil, nil, err } createFirewallStep.CreateFirewallRules = createFirewallRules } return createFirewallStep, firewall, nil }
30.534351
151
0.728583
4da892c5a9cf4eef7d262a2d86630bb263418ec7
314
html
HTML
src/lgr_advanced/lgr_validator/templates/lgr_validator/_validated_style.html
GuillaumeBlanchet/lgr-django
429ca5ddb9311cfb1a7ddc906b32d57780585f40
[ "BSD-3-Clause" ]
1
2018-09-19T11:03:11.000Z
2018-09-19T11:03:11.000Z
src/lgr_advanced/lgr_validator/templates/lgr_validator/_validated_style.html
GuillaumeBlanchet/lgr-django
429ca5ddb9311cfb1a7ddc906b32d57780585f40
[ "BSD-3-Clause" ]
15
2017-06-29T14:05:01.000Z
2021-09-22T19:56:23.000Z
src/lgr_advanced/lgr_validator/templates/lgr_validator/_validated_style.html
GuillaumeBlanchet/lgr-django
429ca5ddb9311cfb1a7ddc906b32d57780585f40
[ "BSD-3-Clause" ]
7
2017-06-14T17:59:19.000Z
2019-08-09T03:16:03.000Z
<style> td.rule-detail-cell { /* make it blend into the row above */ padding: 0 !important; border-top: none !important; } div.rule-detail { /* add the padding to offset the padding that we removed from the containing <td> */ padding: 8px; } </style>
28.545455
92
0.563694
2f2a33c1e10e49232327ad2830574b75ab0ecd2f
3,937
cs
C#
NWDEngine/NWDDataManager/NWDDataManager.cs
NetWorkedData/NetWorkedData
65e39b82d06099069a0c19d839fb5b788717a426
[ "Apache-2.0" ]
null
null
null
NWDEngine/NWDDataManager/NWDDataManager.cs
NetWorkedData/NetWorkedData
65e39b82d06099069a0c19d839fb5b788717a426
[ "Apache-2.0" ]
null
null
null
NWDEngine/NWDDataManager/NWDDataManager.cs
NetWorkedData/NetWorkedData
65e39b82d06099069a0c19d839fb5b788717a426
[ "Apache-2.0" ]
null
null
null
//===================================================================================================================== // // ideMobi 2020© // //===================================================================================================================== // Define the use of Log and Benchmark only for this file! // Add NWD_VERBOSE in scripting define symbols (Edit->Project Settings…->Player->[Choose Plateform]->Other Settings->Scripting Define Symbols) #if NWD_VERBOSE #if UNITY_EDITOR #define NWD_LOG #define NWD_BENCHMARK #elif DEBUG //#define NWD_LOG //#define NWD_BENCHMARK #endif #else #undef NWD_LOG #undef NWD_BENCHMARK #endif //===================================================================================================================== using System; using System.Collections.Generic; using UnityEngine; //===================================================================================================================== namespace NetWorkedData { //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ public partial class NWDDataManager // TODO : put in static? { //------------------------------------------------------------------------------------------------------------- /// <summary> /// If Alert already show in log... /// </summary> bool ErrorInSaltAlreadyLogWarning = false; //------------------------------------------------------------------------------------------------------------- public bool TestSaltMemorizationForAllClass() { bool rReturn = true; foreach (Type tType in ClassTypeList) { if (NWDBasisHelper.FindTypeInfos(tType).SaltValid == false) { if (ErrorInSaltAlreadyLogWarning == false) { Debug.LogWarning("Erreur in salt for " + NWDBasisHelper.FindTypeInfos(tType).ClassName); } rReturn = false; break; } } if (rReturn == false) { ErrorInSaltAlreadyLogWarning = true; //Regenerate salt automatically ? #if UNITY_EDITOR NWDAppConfiguration.SharedInstance().GenerateCSharpFile(NWDAppConfiguration.SharedInstance().SelectedEnvironment()); #endif } return rReturn; } //------------------------------------------------------------------------------------------------------------- public bool DataLoaded() // loaded but not indexed// TODO rename DataAreLoaded { bool rReturn = true; if (EditorDatabaseLoaded == false || DeviceDatabaseLoaded == false) { rReturn = false; } return rReturn; } //------------------------------------------------------------------------------------------------------------- public bool DatasAreIndexed() // loaded and indexed { return DatasIndexed; } //------------------------------------------------------------------------------------------------------------- public bool DatasAreNotReady() { return !DatasIndexed; } //------------------------------------------------------------------------------------------------------------- public bool DatasAreReady() { return DatasIndexed; } //------------------------------------------------------------------------------------------------------------- } //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ } //=====================================================================================================================
42.333333
142
0.323851
8e9be3619fd25e3462b8fa8af5fb123aa7689279
2,160
kt
Kotlin
app/src/main/java/com/numero/jetpack_compose_example/ui/components/ListScreen.kt
NUmeroAndDev/JetpackComposeExample
746548613d35af8e80c907656a5877f4b4d1ffca
[ "MIT" ]
null
null
null
app/src/main/java/com/numero/jetpack_compose_example/ui/components/ListScreen.kt
NUmeroAndDev/JetpackComposeExample
746548613d35af8e80c907656a5877f4b4d1ffca
[ "MIT" ]
3
2019-10-15T01:58:25.000Z
2020-01-31T03:50:31.000Z
app/src/main/java/com/numero/jetpack_compose_example/ui/components/ListScreen.kt
NUmeroAndDev/JetpackComposeExample
746548613d35af8e80c907656a5877f4b4d1ffca
[ "MIT" ]
null
null
null
package com.numero.jetpack_compose_example.ui.components import androidx.compose.Composable import androidx.ui.foundation.VerticalScroller import androidx.ui.graphics.Color import androidx.ui.layout.Column import androidx.ui.material.Divider import androidx.ui.material.ListItem import androidx.ui.material.Scaffold import androidx.ui.unit.dp import com.numero.jetpack_compose_example.core.widget.Toolbar import com.numero.jetpack_compose_example.ui.Screen import com.numero.jetpack_compose_example.ui.navigateTo @Composable fun ListScreen() { Scaffold( topAppBar = { Toolbar( title = "List", isShowArrowBack = true, onBackPressed = { // TODO implement back press navigateTo(Screen.Home) } ) }, bodyContent = { ListContent() } ) } @Composable private fun ListContent() { VerticalScroller { Column { (0..5).forEachIndexed { index, _ -> ListItem( text = "OneLineItem $index", onClick = { } ) Divider(color = Color.LightGray, height = 1.dp) } (0..5).forEachIndexed { index, _ -> ListItem( text = "TwoLineItem $index", secondaryText = "SecondaryText", onClick = { } ) Divider(color = Color.LightGray, height = 1.dp) } (0..5).forEachIndexed { index, _ -> ListItem( text = "ThreeLineItem $index", secondaryText = "SecondaryText", overlineText = "OverlineText", metaText = "MetaText", onClick = { } ) Divider(color = Color.LightGray, height = 1.dp) } } } }
31.764706
63
0.474074
0ac1f751d7e4e516483f928ae9149a294f1b1411
851
go
Go
persistence/sql/persister_profile.go
nmlc/kratos
bc5645aaca76571fe2ae006e0ead9f6181850bef
[ "Apache-2.0" ]
null
null
null
persistence/sql/persister_profile.go
nmlc/kratos
bc5645aaca76571fe2ae006e0ead9f6181850bef
[ "Apache-2.0" ]
null
null
null
persistence/sql/persister_profile.go
nmlc/kratos
bc5645aaca76571fe2ae006e0ead9f6181850bef
[ "Apache-2.0" ]
null
null
null
package sql import ( "context" "github.com/gofrs/uuid" "github.com/ory/x/sqlcon" "github.com/ory/kratos/selfservice/flow/profile" ) var _ profile.RequestPersister = new(Persister) func (p *Persister) CreateProfileRequest(_ context.Context, r *profile.Request) error { r.IdentityID = r.Identity.ID return sqlcon.HandleError(p.c.Create(r)) // This must not be eager or identities will be created / updated } func (p *Persister) GetProfileRequest(_ context.Context, id uuid.UUID) (*profile.Request, error) { var r profile.Request if err := p.c.Eager().Find(&r, id); err != nil { return nil, sqlcon.HandleError(err) } return &r, nil } func (p *Persister) UpdateProfileRequest(ctx context.Context, r *profile.Request) error { return sqlcon.HandleError(p.c.Update(r)) // This must not be eager or identities will be created / updated }
27.451613
107
0.730905
05836de7d19d4ab6952c1ec728a4fa6ade6183a1
770
swift
Swift
Sources/JSONHTTPClient.swift
hkellaway/HottPotato
1c3e73545c62c46e1cc13ed7266d548bb584a85e
[ "MIT" ]
2
2020-07-29T19:54:50.000Z
2021-03-27T12:46:26.000Z
Sources/JSONHTTPClient.swift
hkellaway/HottPotato
1c3e73545c62c46e1cc13ed7266d548bb584a85e
[ "MIT" ]
null
null
null
Sources/JSONHTTPClient.swift
hkellaway/HottPotato
1c3e73545c62c46e1cc13ed7266d548bb584a85e
[ "MIT" ]
null
null
null
// // JSONHTTPClient.swift // HottPotato // // Created by Harlan Kellaway on 5/10/19. // Copyright © 2019 Harlan Kellaway. All rights reserved. // import Foundation /// HTTP client that assumes JSON is being returned in requests. public protocol JSONHTTPClient: HTTPClient { func sendModelRequest<T: Decodable>(with urlRequest: HTTPRequest, modelType: T.Type, success: @escaping (T) -> (), failure: @escaping (Error) -> ()) func sendJSONRequest(with urlRequest: HTTPRequest, success: @escaping (_ data: JSONData, _ json: JSON) -> (), failure: @escaping (Error) -> ()) }
30.8
83
0.536364
2f1bbd784fac238666915da89a3aecfcc933853a
1,137
java
Java
src/br/com/projeto/Servlet/RemoveComentarioServlet.java
alynenogu/Monografia
4510f13ad61bf150d7354c985ce26d5dd3e8496d
[ "Apache-2.0" ]
null
null
null
src/br/com/projeto/Servlet/RemoveComentarioServlet.java
alynenogu/Monografia
4510f13ad61bf150d7354c985ce26d5dd3e8496d
[ "Apache-2.0" ]
null
null
null
src/br/com/projeto/Servlet/RemoveComentarioServlet.java
alynenogu/Monografia
4510f13ad61bf150d7354c985ce26d5dd3e8496d
[ "Apache-2.0" ]
null
null
null
package br.com.projeto.Servlet; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import br.com.projeto.DAO.CategoriaDAO; import br.com.projeto.DAO.ComentarioDAO; import br.com.projeto.modelo.Categoria; import br.com.projeto.modelo.Comentario; @WebServlet("/excluirComentario") public class RemoveComentarioServlet extends HttpServlet { protected void service(HttpServletRequest request, HttpServletResponse response) throws IOException,ServletException{ PrintWriter out = response.getWriter(); int idComentario = Integer.parseInt(request.getParameter("idComentario").trim()); Comentario comentario = new Comentario(); comentario.setIdComentario(idComentario); ComentarioDAO dao = new ComentarioDAO(); dao.removeComentario(comentario); out.println("<html>"); out.println("<body>"); out.println("Excluido com sucesso!"); out.println("</body>"); out.println("</html>"); } }
29.153846
117
0.780123
8a6b0d3c433b37219e3b261e212edbac48974b56
2,034
asm
Assembly
demo/hello-world.asm
rene6502/6502-vga-prop
ff4fc8fbf63a24a79945991787a9cbab5aed0927
[ "Unlicense" ]
null
null
null
demo/hello-world.asm
rene6502/6502-vga-prop
ff4fc8fbf63a24a79945991787a9cbab5aed0927
[ "Unlicense" ]
null
null
null
demo/hello-world.asm
rene6502/6502-vga-prop
ff4fc8fbf63a24a79945991787a9cbab5aed0927
[ "Unlicense" ]
null
null
null
* = $2d00 VIDEO_START = $0200 VIDEO_END = $2c7f CTL_SCREEN = $0200 TILEMAP = $0210 PALETTES = $0b70 FRAME = $0c70 CHARSET = $0c80 SCREEN_NONE = %0000 SCREEN_CTRL = %0001 SCREEN_TILE = %0010 SCREEN_CHAR = %0100 BLACK = $00 WHITE = $fc DARK_GREEN = $10 GREEN = $30 BLUE = $0c RED = $c0 DARK_YELLOW = $50 YELLOW = $f0 CYAN = $3c MAGENTA = $cc ; zero page .virtual $00 TEMP .byte ? ; general purpose byte, always assume that subroutines will change this .endvirtual start: jsr clear_memory lda #BLACK sta PALETTES+16+0 ; set color #0 (background) of palette #1 to black lda #GREEN sta PALETTES+16+1 ; set color #1 (foreground) of palette #1 to green ldx #$0 ldy #$0 _loop: lda MSG,x sta TILEMAP+(14*40+14)*2,y iny lda #1 sta TILEMAP+(14*40+14)*2,y iny inx lda MSG,x bne _loop lda #SCREEN_CTRL | SCREEN_TILE jsr copy_vram rts ; IN A copy bits copy_vram: sta CTL_SCREEN ; enable copy lda FRAME _wait: cmp FRAME beq _wait lda #SCREEN_NONE ; disable copy sta CTL_SCREEN rts ; clear complete video ram clear_memory: lda #<VIDEO_START sta DEST_ADDRL lda #>VIDEO_START sta DEST_ADDRH ldy #0 _next: lda #$00 sta (DEST_ADDRL), y lda DEST_ADDRL cmp #<VIDEO_END bne _incr lda DEST_ADDRH cmp #>VIDEO_END bne _incr rts _incr: inc DEST_ADDRL ; increment start address bne _cont inc DEST_ADDRH _cont: jmp _next rts MSG .text "Hello, world!",0 ; zero page .virtual $00 DEST_ADDRL .byte ? ; copy destination address DEST_ADDRH .byte ? ; copy destination address .endvirtual
19.371429
91
0.527532
237272a011ebf49a2308464cddc2e8eca735b631
2,183
kt
Kotlin
src/main/kotlin/io/docops/asciidoc/buttons/service/ScriptLoader.kt
docops-info/docops-button-render
9ce1591b4ae88325c8bbd33e6ac141f2d56be83c
[ "Apache-2.0" ]
null
null
null
src/main/kotlin/io/docops/asciidoc/buttons/service/ScriptLoader.kt
docops-info/docops-button-render
9ce1591b4ae88325c8bbd33e6ac141f2d56be83c
[ "Apache-2.0" ]
null
null
null
src/main/kotlin/io/docops/asciidoc/buttons/service/ScriptLoader.kt
docops-info/docops-button-render
9ce1591b4ae88325c8bbd33e6ac141f2d56be83c
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2020 The DocOps Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package io.docops.asciidoc.buttons.service import java.lang.RuntimeException import java.lang.StringBuilder import kotlin.script.experimental.api.EvaluationResult import kotlin.script.experimental.api.ResultValue import kotlin.script.experimental.api.ResultWithDiagnostics import kotlin.script.experimental.host.StringScriptSource import kotlin.script.experimental.jvm.dependenciesFromCurrentContext import kotlin.script.experimental.jvm.jvm import kotlin.script.experimental.jvm.util.isError import kotlin.script.experimental.jvmhost.BasicJvmScriptingHost import kotlin.script.experimental.jvmhost.createJvmCompilationConfigurationFromTemplate class ScriptLoader { inline fun <reified T> parseKotlinScript(source: String): T { val compilationConfig = createJvmCompilationConfigurationFromTemplate<Any> { jvm { dependenciesFromCurrentContext(wholeClasspath = true) } } val target = BasicJvmScriptingHost().eval(StringScriptSource(source), compilationConfig, null) if(!target.isError()) { val obj = (target as ResultWithDiagnostics.Success<EvaluationResult>).value val ret = (obj.returnValue as ResultValue.Value).value ret?.let { return ret as T } throw RuntimeException("Parsing source failed \n $source") } else { val sb = StringBuilder() target.reports.forEach { scriptDiagnostic -> sb.append(scriptDiagnostic.message) } throw RuntimeException(sb.toString()) } } }
41.980769
102
0.729272
69722a3f97040453e0429f9dcfdbe5d71fbaba26
88
sql
SQL
server/src/main/resources/db/migration/V202204070003__add_workspace_to_system.sql
archguard/archguard
181fbc09411b80bd5ed1d205d57ddb66ecd7e676
[ "MIT" ]
6
2022-03-31T01:16:03.000Z
2022-03-31T06:08:07.000Z
server/src/main/resources/db/migration/V202204070003__add_workspace_to_system.sql
archguard/archguard
181fbc09411b80bd5ed1d205d57ddb66ecd7e676
[ "MIT" ]
null
null
null
server/src/main/resources/db/migration/V202204070003__add_workspace_to_system.sql
archguard/archguard
181fbc09411b80bd5ed1d205d57ddb66ecd7e676
[ "MIT" ]
null
null
null
alter table archguard.system_info add column `workdir` varchar(255) not null default '';
88
88
0.795455
708783ee5e1fc03729cc1833a57a9aed0fe6b4af
5,576
go
Go
vendor/github.com/elastic/beats/vendor/github.com/aws/aws-sdk-go-v2/service/iam/api_op_ResetServiceSpecificCredential.go
lstyles/nsgflowlogsbeat
06aa15a7eaaf24cf70dd2520ed7d2186f4135c09
[ "Apache-2.0" ]
1
2021-05-17T01:31:15.000Z
2021-05-17T01:31:15.000Z
vendor/github.com/elastic/beats/vendor/github.com/aws/aws-sdk-go-v2/service/iam/api_op_ResetServiceSpecificCredential.go
lstyles/nsgflowlogsbeat
06aa15a7eaaf24cf70dd2520ed7d2186f4135c09
[ "Apache-2.0" ]
null
null
null
vendor/github.com/elastic/beats/vendor/github.com/aws/aws-sdk-go-v2/service/iam/api_op_ResetServiceSpecificCredential.go
lstyles/nsgflowlogsbeat
06aa15a7eaaf24cf70dd2520ed7d2186f4135c09
[ "Apache-2.0" ]
null
null
null
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package iam import ( "context" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/internal/awsutil" ) // Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ResetServiceSpecificCredentialRequest type ResetServiceSpecificCredentialInput struct { _ struct{} `type:"structure"` // The unique identifier of the service-specific credential. // // This parameter allows (through its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters that can consist of any upper or lowercased letter // or digit. // // ServiceSpecificCredentialId is a required field ServiceSpecificCredentialId *string `min:"20" type:"string" required:"true"` // The name of the IAM user associated with the service-specific credential. // If this value is not specified, then the operation assumes the user whose // credentials are used to call the operation. // // This parameter allows (through its regex pattern (http://wikipedia.org/wiki/regex)) // a string of characters consisting of upper and lowercase alphanumeric characters // with no spaces. You can also include any of the following characters: _+=,.@- UserName *string `min:"1" type:"string"` } // String returns the string representation func (s ResetServiceSpecificCredentialInput) String() string { return awsutil.Prettify(s) } // Validate inspects the fields of the type to determine if they are valid. func (s *ResetServiceSpecificCredentialInput) Validate() error { invalidParams := aws.ErrInvalidParams{Context: "ResetServiceSpecificCredentialInput"} if s.ServiceSpecificCredentialId == nil { invalidParams.Add(aws.NewErrParamRequired("ServiceSpecificCredentialId")) } if s.ServiceSpecificCredentialId != nil && len(*s.ServiceSpecificCredentialId) < 20 { invalidParams.Add(aws.NewErrParamMinLen("ServiceSpecificCredentialId", 20)) } if s.UserName != nil && len(*s.UserName) < 1 { invalidParams.Add(aws.NewErrParamMinLen("UserName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ResetServiceSpecificCredentialResponse type ResetServiceSpecificCredentialOutput struct { _ struct{} `type:"structure"` // A structure with details about the updated service-specific credential, including // the new password. // // This is the only time that you can access the password. You cannot recover // the password later, but you can reset it again. ServiceSpecificCredential *ServiceSpecificCredential `type:"structure"` } // String returns the string representation func (s ResetServiceSpecificCredentialOutput) String() string { return awsutil.Prettify(s) } const opResetServiceSpecificCredential = "ResetServiceSpecificCredential" // ResetServiceSpecificCredentialRequest returns a request value for making API operation for // AWS Identity and Access Management. // // Resets the password for a service-specific credential. The new password is // AWS generated and cryptographically strong. It cannot be configured by the // user. Resetting the password immediately invalidates the previous password // associated with this user. // // // Example sending a request using ResetServiceSpecificCredentialRequest. // req := client.ResetServiceSpecificCredentialRequest(params) // resp, err := req.Send(context.TODO()) // if err == nil { // fmt.Println(resp) // } // // Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ResetServiceSpecificCredential func (c *Client) ResetServiceSpecificCredentialRequest(input *ResetServiceSpecificCredentialInput) ResetServiceSpecificCredentialRequest { op := &aws.Operation{ Name: opResetServiceSpecificCredential, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &ResetServiceSpecificCredentialInput{} } req := c.newRequest(op, input, &ResetServiceSpecificCredentialOutput{}) return ResetServiceSpecificCredentialRequest{Request: req, Input: input, Copy: c.ResetServiceSpecificCredentialRequest} } // ResetServiceSpecificCredentialRequest is the request type for the // ResetServiceSpecificCredential API operation. type ResetServiceSpecificCredentialRequest struct { *aws.Request Input *ResetServiceSpecificCredentialInput Copy func(*ResetServiceSpecificCredentialInput) ResetServiceSpecificCredentialRequest } // Send marshals and sends the ResetServiceSpecificCredential API request. func (r ResetServiceSpecificCredentialRequest) Send(ctx context.Context) (*ResetServiceSpecificCredentialResponse, error) { r.Request.SetContext(ctx) err := r.Request.Send() if err != nil { return nil, err } resp := &ResetServiceSpecificCredentialResponse{ ResetServiceSpecificCredentialOutput: r.Request.Data.(*ResetServiceSpecificCredentialOutput), response: &aws.Response{Request: r.Request}, } return resp, nil } // ResetServiceSpecificCredentialResponse is the response type for the // ResetServiceSpecificCredential API operation. type ResetServiceSpecificCredentialResponse struct { *ResetServiceSpecificCredentialOutput response *aws.Response } // SDKResponseMetdata returns the response metadata for the // ResetServiceSpecificCredential request. func (r *ResetServiceSpecificCredentialResponse) SDKResponseMetdata() *aws.Response { return r.response }
37.931973
139
0.756456
e882659a15a13f2dde39c39ce6102a1e4deebc72
485
kts
Kotlin
settings.gradle.kts
gfreivasc/crane
9dfdd415d6427228db1ecbfec65a2194e492d226
[ "Apache-2.0" ]
7
2021-02-25T22:42:58.000Z
2021-03-18T03:33:52.000Z
settings.gradle.kts
gfreivasc/crane
9dfdd415d6427228db1ecbfec65a2194e492d226
[ "Apache-2.0" ]
null
null
null
settings.gradle.kts
gfreivasc/crane
9dfdd415d6427228db1ecbfec65a2194e492d226
[ "Apache-2.0" ]
null
null
null
@file:Suppress("UnstableApiUsage") enableFeaturePreview("VERSION_CATALOGS") dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { google() mavenCentral() } } include( ":crane", ":crane-annotations", ":crane-router", ":crane-router-tests:tests", ":crane-router-tests:fake-android", ":crane-router-tests:dummy-module-a", ":crane-router-tests:dummy-module-b", ":samples:basic", ":samples:complete", )
23.095238
62
0.721649
c38c8bb3a97667a94a1613b18b2bc6b65ba198d3
6,556
go
Go
workitem/typegroup_repository_blackbox_test.go
hrishin/fabric8-wit
e483be8f1947aa05e52cd738ac9b8fd35c0e919f
[ "Apache-2.0" ]
null
null
null
workitem/typegroup_repository_blackbox_test.go
hrishin/fabric8-wit
e483be8f1947aa05e52cd738ac9b8fd35c0e919f
[ "Apache-2.0" ]
3
2018-03-14T05:55:17.000Z
2018-03-20T10:34:38.000Z
workitem/typegroup_repository_blackbox_test.go
kwk/fabric8-wit
ad01f5c785d54a27f2a9d98070be6ee01a066c2e
[ "Apache-2.0" ]
null
null
null
package workitem_test import ( "testing" "time" "github.com/fabric8-services/fabric8-wit/convert" "github.com/fabric8-services/fabric8-wit/errors" "github.com/fabric8-services/fabric8-wit/gormsupport" "github.com/fabric8-services/fabric8-wit/gormtestsupport" "github.com/fabric8-services/fabric8-wit/ptr" "github.com/fabric8-services/fabric8-wit/resource" tf "github.com/fabric8-services/fabric8-wit/test/testfixture" "github.com/fabric8-services/fabric8-wit/workitem" errs "github.com/pkg/errors" uuid "github.com/satori/go.uuid" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" ) type workItemTypeGroupRepoTest struct { gormtestsupport.DBTestSuite repo workitem.WorkItemTypeGroupRepository } func TestWorkItemTypeGroupRepository(t *testing.T) { suite.Run(t, &workItemTypeGroupRepoTest{DBTestSuite: gormtestsupport.NewDBTestSuite()}) } func (s *workItemTypeGroupRepoTest) SetupTest() { s.DBTestSuite.SetupTest() s.repo = workitem.NewWorkItemTypeGroupRepository(s.DB) } func (s *workItemTypeGroupRepoTest) TestExists() { s.T().Run("group exists", func(t *testing.T) { // given fxt := tf.NewTestFixture(t, s.DB, tf.WorkItemTypeGroups(1)) // when err := s.repo.CheckExists(s.Ctx, fxt.WorkItemTypeGroups[0].ID) // then require.NoError(s.T(), err) }) s.T().Run("group doesn't exist", func(t *testing.T) { // given nonExistingWorkItemTypeGroupID := uuid.NewV4() // when err := s.repo.CheckExists(s.Ctx, nonExistingWorkItemTypeGroupID) // then require.IsType(t, errors.NotFoundError{}, err) }) } func compareTypeGroups(t *testing.T, expected, actual workitem.WorkItemTypeGroup) { assert.Equal(t, expected.ID, actual.ID) assert.Equal(t, expected.SpaceTemplateID, actual.SpaceTemplateID) assert.Equal(t, expected.Bucket, actual.Bucket) assert.Equal(t, expected.Name, actual.Name) assert.Equal(t, expected.Icon, actual.Icon) assert.Equal(t, expected.Position, actual.Position) assert.Equal(t, expected.TypeList, actual.TypeList) } func (s *workItemTypeGroupRepoTest) TestCreate() { // given fxt := tf.NewTestFixture(s.T(), s.DB, tf.WorkItemTypes(3)) ID := uuid.NewV4() expected := workitem.WorkItemTypeGroup{ ID: ID, SpaceTemplateID: fxt.SpaceTemplates[0].ID, Bucket: workitem.BucketIteration, Name: "work item type group " + ID.String(), Description: ptr.String("description for type group"), Icon: "a world on the back of a turtle", Position: 42, TypeList: []uuid.UUID{ fxt.WorkItemTypes[0].ID, fxt.WorkItemTypes[1].ID, fxt.WorkItemTypes[2].ID, }, } s.T().Run("ok", func(t *testing.T) { actual, err := s.repo.Create(s.Ctx, expected) require.NoError(t, err) compareTypeGroups(t, expected, *actual) t.Run("load same work item and check it is the same", func(t *testing.T) { actual, err := s.repo.Load(s.Ctx, ID) require.NoError(t, err) compareTypeGroups(t, expected, *actual) }) }) s.T().Run("invalid", func(t *testing.T) { t.Run("unknown space template", func(t *testing.T) { g := expected g.SpaceTemplateID = uuid.NewV4() _, err := s.repo.Create(s.Ctx, g) require.Error(t, err) }) t.Run("unknown work item type", func(t *testing.T) { g := expected g.TypeList = []uuid.UUID{uuid.NewV4()} _, err := s.repo.Create(s.Ctx, g) require.Error(t, err) }) t.Run("empty type list", func(t *testing.T) { g := expected g.TypeList = []uuid.UUID{} _, err := s.repo.Create(s.Ctx, g) require.Error(t, err) }) }) } func (s *workItemTypeGroupRepoTest) TestLoad() { s.T().Run("group exists", func(t *testing.T) { // given fxt := tf.NewTestFixture(t, s.DB, tf.WorkItemTypeGroups(1)) // when actual, err := s.repo.Load(s.Ctx, fxt.WorkItemTypeGroups[0].ID) require.NoError(t, err) compareTypeGroups(t, *fxt.WorkItemTypeGroups[0], *actual) }) s.T().Run("group doesn't exist", func(t *testing.T) { // when _, err := s.repo.Load(s.Ctx, uuid.NewV4()) // then require.Error(t, err) }) } func (s *workItemTypeGroupRepoTest) TestList() { s.T().Run("ok", func(t *testing.T) { // given fxt := tf.NewTestFixture(t, s.DB, tf.WorkItemTypeGroups(3)) // when actual, err := s.repo.List(s.Ctx, fxt.SpaceTemplates[0].ID) // then require.NoError(t, err) require.Len(t, actual, len(fxt.WorkItemTypeGroups)) for idx := range fxt.WorkItemTypeGroups { compareTypeGroups(t, *fxt.WorkItemTypeGroups[idx], *actual[idx]) } }) s.T().Run("space template not found", func(t *testing.T) { // when groups, err := s.repo.List(s.Ctx, uuid.NewV4()) // then require.Error(t, err) require.IsType(t, errors.NotFoundError{}, errs.Cause(err)) require.Empty(t, groups) }) } func TestWorkItemTypeGroup_Equal(t *testing.T) { t.Parallel() resource.Require(t, resource.UnitTest) // given a := workitem.WorkItemTypeGroup{ ID: uuid.NewV4(), SpaceTemplateID: uuid.NewV4(), Name: "foo", Description: ptr.String("Description for foo"), Bucket: workitem.BucketRequirement, Position: 42, Icon: "bar", TypeList: []uuid.UUID{ uuid.NewV4(), uuid.NewV4(), uuid.NewV4(), }, } t.Run("equality", func(t *testing.T) { t.Parallel() b := a assert.True(t, a.Equal(b)) }) t.Run("types", func(t *testing.T) { t.Parallel() b := convert.DummyEqualer{} assert.False(t, a.Equal(b)) }) t.Run("Lifecycle", func(t *testing.T) { t.Parallel() b := a b.Lifecycle = gormsupport.Lifecycle{CreatedAt: time.Now().Add(time.Duration(1000))} assert.False(t, a.Equal(b)) }) t.Run("Name", func(t *testing.T) { t.Parallel() b := a b.Name = "bar" assert.False(t, a.Equal(b)) }) t.Run("Description", func(t *testing.T) { t.Parallel() b := a b.Description = ptr.String("bar") assert.False(t, a.Equal(b)) }) t.Run("SpaceTemplateID", func(t *testing.T) { t.Parallel() b := a b.SpaceTemplateID = uuid.NewV4() assert.False(t, a.Equal(b)) }) t.Run("Bucket", func(t *testing.T) { t.Parallel() b := a b.Bucket = workitem.BucketIteration assert.False(t, a.Equal(b)) }) t.Run("Icon", func(t *testing.T) { t.Parallel() b := a b.Icon = "blabla" assert.False(t, a.Equal(b)) }) t.Run("TypeList", func(t *testing.T) { t.Parallel() b := a // different IDs b.TypeList = []uuid.UUID{uuid.NewV4(), uuid.NewV4(), uuid.NewV4()} assert.False(t, a.Equal(b)) // different length b.TypeList = []uuid.UUID{uuid.NewV4(), uuid.NewV4()} assert.False(t, a.Equal(b)) }) }
28.258621
88
0.663057
fb886cb5bb5425bfd0cd2a07b006ace6266f6dda
328
java
Java
src/main/java/com/eiranling/_enum/ButtonStyle.java
eiranling/StoryboardFX
95989960009c2070755b1f49479b37bb36b6a02b
[ "Apache-2.0" ]
null
null
null
src/main/java/com/eiranling/_enum/ButtonStyle.java
eiranling/StoryboardFX
95989960009c2070755b1f49479b37bb36b6a02b
[ "Apache-2.0" ]
null
null
null
src/main/java/com/eiranling/_enum/ButtonStyle.java
eiranling/StoryboardFX
95989960009c2070755b1f49479b37bb36b6a02b
[ "Apache-2.0" ]
null
null
null
package com.eiranling._enum; public enum ButtonStyle { CONFIRM("confirm-button"), REMOVE("remove-button"), EDIT("edit-button"); private String styleClass; ButtonStyle(String styleClass) { this.styleClass = styleClass; } public String getStyleClass() { return styleClass; } }
17.263158
37
0.646341
62bb70557ccbbee631148d23cf14bff7070fe49f
1,864
html
HTML
app/views/tools/licenced_quotas.html
mattlavis-transform/ott-prototype
98c4f2fc941759395be82bd7b6d53d500b46f181
[ "MIT" ]
1
2022-03-28T12:24:00.000Z
2022-03-28T12:24:00.000Z
app/views/tools/licenced_quotas.html
mattlavis-transform/ottp2
8cb17016770ac305ee4acaf7396aa1a623af6c0d
[ "MIT" ]
null
null
null
app/views/tools/licenced_quotas.html
mattlavis-transform/ottp2
8cb17016770ac305ee4acaf7396aa1a623af6c0d
[ "MIT" ]
1
2020-12-08T14:43:03.000Z
2020-12-08T14:43:03.000Z
{% extends "layout.html" %} {% block pageTitle %} Trade Tariff: Search by quota {% endblock %} {% block beforeContent %} {{ govukBreadcrumbs({ items: [ { text: "Home", href: "/sections/" + context.scope_id }, { text: "Tools", href: "/tools/" + context.scope_id }, { text: "Licenced quotas", href: "" } ] }) }} {% endblock %} {% block content %} <div class="govuk-grid-row"> <div class="govuk-grid-column-full"> <span class="govuk-caption-xl"> {{ context.title }} {% include "includes/scope_switcher_panel.html" %} </span> <h1 class="govuk-heading-l">Licenced quotas</h1> {{ govukInsetText({ text: "A licenced quota lorem ipsum." }) }} <table class="govuk-table govuk-table--m"> {# <caption class="govuk-table__caption govuk-table__caption--m">Dates and amounts</caption> #} <thead class="govuk-table__head"> <tr class="govuk-table__row"> <th scope="col" class="govuk-table__header">Order number</th> <th scope="col" class="govuk-table__header">Origins</th> <th scope="col" class="govuk-table__header">Commodities</th> </tr> </thead> <tbody class="govuk-table__body"> {% for q in licenced_quotas %} <tr class="govuk-table__row"> <td class="govuk-table__cell">{{ q.ordernumber }}</td> <td class="govuk-table__cell nw">{{ q.countries | filter_erga_omnes() }}</td> <td class="govuk-table__cell">{{ q.commodities | add_comm_code_href() | safe }}</td> </tr> {% endfor %} </tbody> </table> <p class="govuk-body">Data correct as of 17 Nov 20.</p> {{ govukBackLink({ text: "Back", href: "/quotas" }) }} </div> </div> {% endblock %} </html>
27.820896
103
0.553648
e4da611a5e4b17080e9abb1a17bcbc1671f3c720
607
go
Go
thunder/resource_thunder_fw_radius_server_test.go
a10networks/terraform-provider-vThunder
c97b557e9f51d38231d834cd90d2541235198246
[ "BSD-2-Clause" ]
4
2020-10-17T00:07:06.000Z
2021-09-11T21:44:42.000Z
thunder/resource_thunder_fw_radius_server_test.go
a10networks/terraform-provider-thunder
50fe189add4fc51ca17b648945e63685bf350177
[ "BSD-2-Clause" ]
5
2020-10-09T06:47:26.000Z
2021-09-11T21:44:26.000Z
thunder/resource_thunder_fw_radius_server_test.go
a10networks/terraform-provider-vThunder
c97b557e9f51d38231d834cd90d2541235198246
[ "BSD-2-Clause" ]
3
2020-10-13T06:09:53.000Z
2021-12-03T15:29:08.000Z
package thunder import ( "testing" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" ) var TEST_FW_RADIUS_SERVER_RESOURCE = ` resource "thunder_fw_radius_server" "FwRadiusTest" { listen_port = "1024" } ` //Acceptance test func TestAccFwRadiusServer_create(t *testing.T) { resource.Test(t, resource.TestCase{ Providers: testAccProviders, Steps: []resource.TestStep{ { Config: TEST_FW_RADIUS_SERVER_RESOURCE, Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr("thunder_fw_radius_server.FwRadiusTest", "listen_port", "1024"), ), }, }, }) }
20.931034
100
0.741351
66e615a1b2a77257ce6fa15535c65ccf988b44c4
4,779
cpp
C++
src/View/CustomList/SListItemRoom/slistitemroom.cpp
Flone-dnb/Silent
b1bb0d1735e1a86cca197f970e31970fc789a16c
[ "Zlib" ]
6
2020-04-14T13:55:13.000Z
2021-12-01T06:34:32.000Z
src/View/CustomList/SListItemRoom/slistitemroom.cpp
Flone-dnb/FChat-client
b1bb0d1735e1a86cca197f970e31970fc789a16c
[ "Zlib" ]
1
2021-12-06T20:39:51.000Z
2021-12-08T13:44:36.000Z
src/View/CustomList/SListItemRoom/slistitemroom.cpp
Flone-dnb/FChat-client
b1bb0d1735e1a86cca197f970e31970fc789a16c
[ "Zlib" ]
3
2020-04-21T09:26:37.000Z
2021-12-01T06:34:33.000Z
// This file is part of the Silent. // Copyright Aleksandr "Flone" Tretyakov (github.com/Flone-dnb). // Licensed under the ZLib license. // Refer to the LICENSE file included. #include "slistitemroom.h" #include <QMessageBox> #include "View/CustomList/SListWidget/slistwidget.h" #include "View/CustomList/SListItemUser/slistitemuser.h" SListItemRoom::SListItemRoom(QString sName, SListWidget* pList, QString sPassword, size_t iMaxUsers) { pRoomNameLabel = nullptr; pRoomPropsLabel = nullptr; pUIWidget = nullptr; setupUI(); bIsWelcomeRoom = false; this->pList = pList; sRoomName = sName; this->sPassword = sPassword; this->iMaxUsers = iMaxUsers; updateText(); } void SListItemRoom::addUser(SListItemUser *pUser) { if (vUsers.size() == iMaxUsers && iMaxUsers != 0) { QMessageBox::warning(nullptr, "Error", "Reached the maximum amount of users in this room."); return; } vUsers.push_back(pUser); pUser->setRoom(this); int iStartRow = pList->row(this); int iInsertRowIndex = -1; for (int i = iStartRow + 1; i < pList->count(); i++) { if (dynamic_cast<SListItem*>(pList->item(i))->isRoom()) { // Found next room. iInsertRowIndex = i; break; } } if (iInsertRowIndex == -1) { // Next room wasn't found. pList->addItem(pUser); } else { pList->insertItem(iInsertRowIndex, pUser); } // Update info. updateText(); } void SListItemRoom::deleteUser(SListItemUser *pUser) { delete pUser; for (size_t i = 0; i < vUsers.size(); i++) { if (vUsers[i] == pUser) { vUsers.erase( vUsers.begin() + i ); } } // Update info. updateText(); } void SListItemRoom::setupUI() { if (pRoomNameLabel) { delete pRoomNameLabel; } if (pRoomPropsLabel) { delete pRoomPropsLabel; } if (pUIWidget) { delete pUIWidget; } pUIWidget = new QWidget(); QHBoxLayout* pLayout = new QHBoxLayout(pUIWidget); QFont font; font.setFamily("Segoe UI"); font.setPointSize(11); font.setKerning(true); pRoomNameLabel = new QLabel(""); pRoomNameLabel->setFont(font); pRoomNameLabel->setAlignment(Qt::AlignmentFlag::AlignLeft | Qt::AlignmentFlag::AlignVCenter); pRoomNameLabel->setMargin(0); pRoomPropsLabel = new QLabel(""); pRoomPropsLabel->setFont(font); pRoomPropsLabel->setAlignment(Qt::AlignmentFlag::AlignRight | Qt::AlignmentFlag::AlignVCenter); pRoomPropsLabel->setMargin(0); pLayout->addWidget(pRoomNameLabel); pLayout->addWidget(pRoomPropsLabel); pLayout->setStretch(0, 80); pLayout->setStretch(1, 20); pLayout->setContentsMargins(5, 2, 15, 2); pLayout->setSizeConstraint(QLayout::SetDefaultConstraint); setSizeHint(pUIWidget->sizeHint()); } void SListItemRoom::deleteAll() { for (size_t i = 0; i < vUsers.size(); i++) { delete vUsers[i]; } vUsers.clear(); // Update info. updateText(); } void SListItemRoom::setRoomName(QString sName) { sRoomName = sName; updateText(); } void SListItemRoom::setRoomPassword(QString sPassword) { this->sPassword = sPassword; updateText(); } void SListItemRoom::setRoomMaxUsers(size_t iMaxUsers) { this->iMaxUsers = iMaxUsers; updateText(); } void SListItemRoom::setIsWelcomeRoom(bool bIsWelcomeRoom) { this->bIsWelcomeRoom = bIsWelcomeRoom; } void SListItemRoom::eraseUserFromRoom(SListItemUser *pUser) { for (size_t i = 0; i < vUsers.size(); i++) { if (vUsers[i] == pUser) { vUsers.erase( vUsers.begin() + i ); pList->takeItem(pList->row(pUser)); break; } } // Update info. updateText(); } std::vector<SListItemUser *> SListItemRoom::getUsers() { return vUsers; } size_t SListItemRoom::getUsersCount() { return vUsers.size(); } QString SListItemRoom::getRoomName() { return sRoomName; } QString SListItemRoom::getPassword() { return sPassword; } size_t SListItemRoom::getMaxUsers() { return iMaxUsers; } bool SListItemRoom::getIsWelcomeRoom() { return bIsWelcomeRoom; } QWidget* SListItemRoom::getUIWidget() { return pUIWidget; } SListItemRoom::~SListItemRoom() { delete pRoomNameLabel; delete pRoomPropsLabel; delete pUIWidget; } void SListItemRoom::updateText() { pRoomNameLabel->setText(sRoomName); if (iMaxUsers != 0) { pRoomPropsLabel->setText(QString::number(vUsers.size()) + " / " + QString::number(iMaxUsers)); } else { pRoomPropsLabel->setText(QString::number(vUsers.size())); } }
18.964286
102
0.632141
80272b1e4f052268cca02db8f9546c03c3aa2070
1,670
java
Java
src/day10/PrimeNumbers.java
anishLearnsToCode/java-wac-batch-32
7a95553ca5099ad4435bc39ff6c04f35a59fe971
[ "MIT" ]
3
2020-07-15T10:30:23.000Z
2020-07-24T09:17:33.000Z
src/day10/PrimeNumbers.java
lakshay-23/java-wac-batch-32
7a95553ca5099ad4435bc39ff6c04f35a59fe971
[ "MIT" ]
null
null
null
src/day10/PrimeNumbers.java
lakshay-23/java-wac-batch-32
7a95553ca5099ad4435bc39ff6c04f35a59fe971
[ "MIT" ]
4
2020-07-28T16:57:45.000Z
2022-01-04T11:27:43.000Z
package day10; import java.util.Iterator; public class PrimeNumbers implements Iterable<Integer> { private final int range; public PrimeNumbers(int range) { this.range = range; } @Override public Iterator<Integer> iterator() { return new PrimeNumbersIterator(); } /* sqrt(1) + sqrt(2) + ... + sqrt(range) <= sqrt(range) + sqrt(range) + .... sqrt(range) ~O(range * sqrt(range)) */ private class PrimeNumbersIterator implements Iterator<Integer> { private int primeNumber = 2; @Override public boolean hasNext() { return primeNumber <= range; } @Override public Integer next() { int current = primeNumber; primeNumber = findNextPrimeNumber(); return current; } /* finds next prime number and updates primeNumber variable time complexity: O((n)^1/2 * distance_between_ciurrent_prime and next prime) n * e^(sqrt(n)) space complexity: O(1) */ private int findNextPrimeNumber() { for (int number = primeNumber + 1 ; ; number++) { if (isPrime(number)) { return number; } } } /* time complexity: O(number ^ (1/2)) space complexity: O(1) */ private boolean isPrime(int number) { for (int i = 2 ; i * i <= number ; i++) { if (number % i == 0) { return false; } } return true; } } }
25.30303
88
0.494012
a86d2e9c79059b3538b76e6983f84fa2c508b581
878
asm
Assembly
programs/oeis/060/A060647.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/060/A060647.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/060/A060647.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A060647: Number of alpha-beta evaluations in a tree of depth n and branching factor b=3. ; 1,3,5,11,17,35,53,107,161,323,485,971,1457,2915,4373,8747,13121,26243,39365,78731,118097,236195,354293,708587,1062881,2125763,3188645,6377291,9565937,19131875,28697813,57395627,86093441,172186883,258280325,516560651,774840977,1549681955,2324522933,4649045867,6973568801,13947137603,20920706405,41841412811,62762119217,125524238435,188286357653,376572715307,564859072961,1129718145923,1694577218885,3389154437771,5083731656657,10167463313315,15251194969973,30502389939947,45753584909921,91507169819843,137260754729765,274521509459531,411782264189297,823564528378595,1235346792567893,2470693585135787,3706040377703681,7412080755407363 mov $2,$0 mod $0,2 mul $2,2 add $2,2 mov $3,$0 mov $0,$2 add $0,17 lpb $0 sub $0,4 mov $1,$3 mul $3,3 add $3,2 lpe div $1,81 mul $1,2 add $1,1
43.9
634
0.81549
530a3a9081a3294b3cc6db4ca24dfb4c9b32d908
2,616
dart
Dart
lib/manager/settings/manager/global_app_preference_cubit.dart
definitelyme/washryte
e2f43c4867488821ab46681c15ad2cb2f1bf2762
[ "Apache-2.0" ]
null
null
null
lib/manager/settings/manager/global_app_preference_cubit.dart
definitelyme/washryte
e2f43c4867488821ab46681c15ad2cb2f1bf2762
[ "Apache-2.0" ]
null
null
null
lib/manager/settings/manager/global_app_preference_cubit.dart
definitelyme/washryte
e2f43c4867488821ab46681c15ad2cb2f1bf2762
[ "Apache-2.0" ]
null
null
null
library global_app_preference_cubit.dart; import 'dart:io'; import 'package:washryte/core/data/response/index.dart'; import 'package:washryte/core/domain/entities/entities.dart'; import 'package:washryte/manager/settings/external/preference_repository.dart'; import 'package:bloc/bloc.dart'; import 'package:dartz/dartz.dart'; import 'package:flutter/widgets.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; import 'package:image_picker/image_picker.dart'; import 'package:injectable/injectable.dart'; import 'package:kt_dart/kt.dart'; part 'global_app_preference_cubit.freezed.dart'; part 'global_app_preference_state.dart'; @singleton class GlobalAppPreferenceCubit extends Cubit<GlobalPreferenceState> with _ImagePickerMixin { final PreferenceRepository _preferences; GlobalAppPreferenceCubit(this._preferences) : super(GlobalPreferenceState.initial()); bool get isFirstAppLaunch => _preferences.getBool(PrefKeys.APP_LAUNCHED_PREF_KEY, ifNull: true); void updateLaunchSettings() async => await _preferences.setBool(key: PrefKeys.APP_LAUNCHED_PREF_KEY, value: false); void toggleLoading([bool? isLoading, Option<AppHttpResponse?>? status]) => emit(state.copyWith( isLoading: isLoading ?? !state.isLoading, status: status ?? state.status, )); void feedbackTypeChanged(FeedbackType? value) => emit(state.copyWith(feedbackType: value!)); void supportMessageChanged(String value) => emit(state.copyWith(supportMessage: BasicTextField(value))); } mixin _ImagePickerMixin on Cubit<GlobalPreferenceState> { final ImagePicker _picker = ImagePicker(); void pickImage(ImageSource source, [int? index]) async { File? file; var _result = await _picker.pickImage(source: source); if (_result == null) file = await _attemptFileRetrieval(_picker); else file = File(_result.path); if (file != null) { emit(state.copyWith( supportImages: index != null ? state.supportImages.mapIndexedNotNull((i, img) => i == index ? file! : img) : state.supportImages.plusElement(file), )); } } void removeImage([int? index]) { var _index = index ?? state.supportImages.size - 1; emit(state.copyWith( supportImages: state.supportImages.minusElement(state.supportImages.elementAt(_index)), )); } Future<File?> _attemptFileRetrieval(ImagePicker? picker) async { if (picker == null) return null; final _response = await _picker.retrieveLostData(); if (!_response.isEmpty && _response.file != null) return File(_response.file!.path); return null; } }
34.88
117
0.736621
2b50071f197852fbbb0b9ac9db08dd01454ea95c
1,146
kt
Kotlin
app/src/main/java/star/iota/acgrip/MyApp.kt
iota9star/acg.rip
5825689d5af38e9925765c7e709d1fd38f14aa80
[ "Apache-2.0" ]
9
2018-07-16T18:25:22.000Z
2022-01-17T03:17:35.000Z
app/src/main/java/star/iota/acgrip/MyApp.kt
harry159821/ACG.RIP
5825689d5af38e9925765c7e709d1fd38f14aa80
[ "Apache-2.0" ]
null
null
null
app/src/main/java/star/iota/acgrip/MyApp.kt
harry159821/ACG.RIP
5825689d5af38e9925765c7e709d1fd38f14aa80
[ "Apache-2.0" ]
1
2018-12-11T17:04:50.000Z
2018-12-11T17:04:50.000Z
/* * Copyright 2017. iota9star * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package star.iota.acgrip import android.app.Application import com.scwang.smartrefresh.header.DropboxHeader import com.scwang.smartrefresh.layout.SmartRefreshLayout import com.scwang.smartrefresh.layout.footer.ClassicsFooter class MyApp : Application() { companion object { init { SmartRefreshLayout.setDefaultRefreshHeaderCreater { context, _ -> DropboxHeader(context) } SmartRefreshLayout.setDefaultRefreshFooterCreater { context, _ -> ClassicsFooter(context) } } } }
34.727273
103
0.723386
4a9b154b8049073764007c547ddc47b7327dd46a
1,018
cs
C#
src/NHSD.BuyingCatalogue.Identity.Api/Repositories/ScopeRepository.cs
nhs-digital-gp-it-futures/BuyingCatalogueIdentity
d30b923e3ba1bce059e40ddd2366623d34ec1fd1
[ "MIT" ]
1
2020-07-03T12:08:52.000Z
2020-07-03T12:08:52.000Z
src/NHSD.BuyingCatalogue.Identity.Api/Repositories/ScopeRepository.cs
nhs-digital-gp-it-futures/BuyingCatalogueIdentity
d30b923e3ba1bce059e40ddd2366623d34ec1fd1
[ "MIT" ]
119
2020-03-12T11:08:33.000Z
2021-12-13T11:08:08.000Z
src/NHSD.BuyingCatalogue.Identity.Api/Repositories/ScopeRepository.cs
nhs-digital-gp-it-futures/BuyingCatalogueIdentity
d30b923e3ba1bce059e40ddd2366623d34ec1fd1
[ "MIT" ]
1
2020-07-03T12:08:54.000Z
2020-07-03T12:08:54.000Z
using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using NHSD.BuyingCatalogue.Identity.Api.Settings; namespace NHSD.BuyingCatalogue.Identity.Api.Repositories { internal sealed class ScopeRepository : IScopeRepository { private readonly List<string> scopes = new(); [SuppressMessage( "Globalization", "CA1308:Normalize strings to uppercase", Justification = "OpenId scopes are lower case and must match")] public ScopeRepository( IEnumerable<ResourceSetting> apiResources, IEnumerable<IdentityResourceSetting> identityResources) { if (apiResources is not null) scopes.AddRange(apiResources.Select(r => r.ResourceName)); if (identityResources is not null) scopes.AddRange(identityResources.Select(r => r.ResourceType.ToLowerInvariant())); } public IReadOnlyCollection<string> Scopes => scopes; } }
33.933333
98
0.670923
757c8eeedaad474355671738a3cd46012f50a9fe
3,686
cs
C#
src/BloomExe/Utils/BloomUnauthorizedAccessException.cs
StephenMcConnel/BloomDesktop
ef184acc3fcec5807bd79c4ef8f42ae06f529584
[ "MIT" ]
36
2015-02-05T17:52:45.000Z
2022-03-17T01:17:59.000Z
src/BloomExe/Utils/BloomUnauthorizedAccessException.cs
StephenMcConnel/BloomDesktop
ef184acc3fcec5807bd79c4ef8f42ae06f529584
[ "MIT" ]
1,633
2015-01-05T15:42:36.000Z
2022-03-29T21:57:30.000Z
src/BloomExe/Utils/BloomUnauthorizedAccessException.cs
StephenMcConnel/BloomDesktop
ef184acc3fcec5807bd79c4ef8f42ae06f529584
[ "MIT" ]
16
2015-01-06T15:06:49.000Z
2021-07-12T19:42:49.000Z
using SIL.IO; using System; using System.Diagnostics; using System.IO; using System.Security.AccessControl; namespace Bloom.Utils { /// <summary> /// This class is basically the same as System.UnauthorizedAccessException, /// except it appends the file permissions to the exception message. /// </summary> [System.Serializable] public class BloomUnauthorizedAccessException : UnauthorizedAccessException { /// <summary> /// Creates a new BloomUnauthorizedAccessException wrapping System.UnauthorizedAccessException /// </summary> /// <param name="path">The path that was being accessed when the exception was thrown</param> /// <param name="innerException">The exception that was thrown, which will become the innerException of this exception.</param> public BloomUnauthorizedAccessException(string path, UnauthorizedAccessException innerException) : base(GetMessage(path, innerException), innerException) { } /// <summary> /// Takes the message from the innerException and appends additional debugging info /// like the permissions of the file /// </summary> protected static string GetMessage(string path, UnauthorizedAccessException innerException) { try { string additionalMessage = GetPermissionString(path); string originalMessage = ""; if (innerException != null) { originalMessage = innerException.Message + "\n"; } string combinedMessage = originalMessage + additionalMessage; return combinedMessage; } catch (Exception e) { // Some emergency fallback code to prevent this code from throwing an exception Debug.Fail("Unexpected exception: " + e.ToString()); return innerException?.Message ?? $"Access to the path '{path}' is denied."; } } /// <summary> /// Returns the file permission string in SDDL form. /// For help deciphering this string, check websites such as /// * https://docs.microsoft.com/en-us/windows/win32/secauthz/security-descriptor-string-format /// * https://docs.microsoft.com/en-us/windows/win32/secauthz/ace-strings /// * https://itconnect.uw.edu/wares/msinf/other-help/understanding-sddl-syntax/ /// </summary> /// <param name="path">The string path that we were trying to access at the time the exception was thrown</param> /// <returns>A SDDL string (just the access control sections of it) represnting the access control rules of that file</returns> protected static string GetPermissionString(string path) { if (RobustFile.Exists(path)) { string permissions = GetPermissionString(new FileInfo(path)); return $"Permissions SDDL for file '{path}' is '{permissions}'."; } else { // Check its containing directory instead. // Process in a loop in case we get a path that contains folders which have not been created yet. string dirName = Path.GetDirectoryName(path); while (dirName != null && !Directory.Exists(dirName)) { dirName = Path.GetDirectoryName(dirName); } if (dirName != null) { string permissions = GetPermissionString(new DirectoryInfo(dirName)); return $"Permissions SDDL for directory '{dirName}' is '{permissions}'."; } else { return ""; } } } protected static string GetPermissionString(FileInfo fileInfo) { var fileSecurity = fileInfo.GetAccessControl(); var sddl = fileSecurity?.GetSecurityDescriptorSddlForm(AccessControlSections.Access); return sddl; } protected static string GetPermissionString(DirectoryInfo dirInfo) { var dirSecurity = dirInfo.GetAccessControl(); var sddl = dirSecurity?.GetSecurityDescriptorSddlForm(AccessControlSections.Access); return sddl; } } }
34.448598
129
0.720022
f50a2b7843cbf51deff1e3370a691c5d84cd5843
8,288
cpp
C++
dotNetInstallerLib/InstallerCommandLineInfo.cpp
sanjeevpunj/dotnetinstaller
bc3cb3e97e3ac850a03fe80549eacad789acf4ca
[ "MIT" ]
null
null
null
dotNetInstallerLib/InstallerCommandLineInfo.cpp
sanjeevpunj/dotnetinstaller
bc3cb3e97e3ac850a03fe80549eacad789acf4ca
[ "MIT" ]
null
null
null
dotNetInstallerLib/InstallerCommandLineInfo.cpp
sanjeevpunj/dotnetinstaller
bc3cb3e97e3ac850a03fe80549eacad789acf4ca
[ "MIT" ]
1
2019-05-29T16:19:37.000Z
2019-05-29T16:19:37.000Z
#include "StdAfx.h" #include <Version/Version.h> #include "InstallerCommandLineInfo.h" #include "InstallerLog.h" #include "InstallUILevel.h" #include "InstallerLauncher.h" #include "InstallerSession.h" shared_any<InstallerCommandLineInfo *, close_delete> InstallerCommandLineInfo::Instance; InstallerCommandLineInfo::InstallerCommandLineInfo() : m_displayCab(false) , m_extractCab(false) , m_displayHelp(false) , m_lastArgFlag(unknown) , m_reboot(false) , m_autostart(false) , m_noreboot(false) , m_enableRunOnReboot(true) , m_displayConfig(false) , m_displaySplash(true) , m_loadMSLU(false) { } void InstallerCommandLineInfo::ParseParam(const TCHAR* pszParam, BOOL bFlag, BOOL /*bLast*/) { if (bFlag) { m_lastArgFlag = unknown; if ((_wcsicmp(pszParam, TEXT("?")) == 0) || (_wcsicmp(pszParam, TEXT("help")) == 0)) { m_displayHelp = true; } else if (_wcsicmp(pszParam, TEXT("log")) == 0) { InstallerLog::Instance->EnableLog(); } // specify log filename and path else if (_wcsicmp(pszParam, TEXT("logfile")) == 0) { m_lastArgFlag = logfile; } // specify configuration filename and path else if (_wcsicmp(pszParam, TEXT("configfile")) == 0) { m_lastArgFlag = configfile; } // enable silent installs from the command line else if (_wcsicmp(pszParam, TEXT("q")) == 0) { InstallUILevelSetting::Instance->SetRuntimeLevel(InstallUILevelSilent); } // disable silent installs from the command line else if (_wcsicmp(pszParam, TEXT("nq")) == 0) { InstallUILevelSetting::Instance->SetRuntimeLevel(InstallUILevelFull); } // enable silent installs from the command line else if (_wcsicmp(pszParam, TEXT("qb")) == 0) { InstallUILevelSetting::Instance->SetRuntimeLevel(InstallUILevelBasic); } // install (default) else if (_wcsicmp(pszParam, TEXT("i")) == 0) { InstallerSession::Instance->sequence = SequenceInstall; } // uninstall else if (_wcsicmp(pszParam, TEXT("x")) == 0) { InstallerSession::Instance->sequence = SequenceUninstall; } // accept another command to use in RegistryRun else if (_wcsicmp(pszParam, TEXT("launcher")) == 0) { m_lastArgFlag = launcher; } // accept arguments to use with the launcher RegistryRun command else if (_wcsicmp(pszParam, TEXT("launcherArgs")) == 0) { m_lastArgFlag = launcherArgs; } // accept arguments to use in complete command args else if (_wcsicmp(pszParam, TEXT("completeCommandArgs")) == 0) { m_lastArgFlag = completeCommandArgs; } else if (_wcsicmp(pszParam, TEXT("extractCab")) == 0) { m_extractCab = true; } else if (_wcsicmp(pszParam, TEXT("displayCab")) == 0) { m_displayCab = true; } else if (_wcsicmp(pszParam, TEXT("displayConfig")) == 0) { m_displayConfig = true; } else if (_wcsicmp(pszParam, TEXT("componentArgs")) == 0) { m_lastArgFlag = componentArgs; } else if (_wcsicmp(pszParam, TEXT("controlArgs")) == 0) { m_lastArgFlag = controlArgs; } else if (_wcsicmp(pszParam, TEXT("reboot")) == 0) { m_reboot = true; } else if (_wcsicmp(pszParam, TEXT("autostart")) == 0) { m_autostart = true; } else if (_wcsicmp(pszParam, TEXT("noreboot")) == 0) { m_noreboot = true; } else if (_wcsicmp(pszParam, TEXT("noRunOnReboot")) == 0) { m_enableRunOnReboot = false; } else if (_wcsicmp(pszParam, TEXT("nosplash")) == 0) { m_displaySplash = false; } else if (_wcsicmp(pszParam, TEXT("loadMSLU")) == 0) { m_loadMSLU = true; } else { THROW_EX(L"Invalid command-line parameter: /" << pszParam); } } else { switch (m_lastArgFlag) { case configfile: configFile = pszParam; break; case logfile: logFile = pszParam; InstallerLog::Instance->SetLogFile(pszParam); break; case launcher: InstallerLauncher::Instance->SetLauncherPath(pszParam); break; case launcherArgs: // NOTE: Actual LauncherArgs must be enclosed in quotes // IMPORTANT: If first character after the quote is a flag character (e.g. "-" or "/"), // the argument is (incorrectly?) interpreted as a flag. // To work around this, leave a space between the opening quote and the first // launcherArg charater // EXAMPLE: To set LauncherArgs as /q -Z, the format should be as follows (note quotes and spacing): // /launcherArgs " /q -Z" InstallerLauncher::Instance->SetLauncherArgs(pszParam); break; case completeCommandArgs: m_completeCommandArgs = pszParam; break; case componentArgs: { std::vector<std::wstring> l_componentArgsArray = DVLib::split(pszParam, L":", 2); if (l_componentArgsArray.size() != 2) { std::string error = "Invalid component argument: "; error.append(DVLib::wstring2string(pszParam)); throw std::exception(error.c_str()); } componentCmdArgs[l_componentArgsArray[0]] = l_componentArgsArray[1]; } break; case controlArgs: { std::vector<std::wstring> l_controlArgsArray = DVLib::split(pszParam, L":", 2); if (l_controlArgsArray.size() != 2) { std::string error = "Invalid control argument: "; error.append(DVLib::wstring2string(pszParam)); throw std::exception(error.c_str()); } controlCmdArgs[l_controlArgsArray[0]] = l_controlArgsArray[1]; } break; default: THROW_EX(L"Unexpected command-line argument: " << pszParam); break; } m_lastArgFlag = unknown; } } std::wstring InstallerCommandLineInfo::GetUsage() const { std::wstringstream hs; hs << L"Usage: " << DVLib::GetFileNameW(DVLib::GetModuleFileNameW()) << L" [args]" << std::endl; hs << std::endl; hs << L" /? or /help : this help screen" << std::endl; hs << L" /i : install (default)" << std::endl; hs << L" /x : uninstall" << std::endl; hs << L" /q : force silent (no UI) mode" << std::endl; hs << L" /qb : force basic UI mode" << std::endl; hs << L" /nq : force full UI mode" << std::endl; hs << L" /nosplash : do not display splash screen" << std::endl; hs << L" /Log : enable logging" << std::endl; hs << L" /LogFile [path] : specify log file" << std::endl; hs << L" /ConfigFile [path] : specify configuration file" << std::endl; hs << L" /ExtractCab: extract embedded components" << std::endl; hs << L" /DisplayCab: display a list of embedded components" << std::endl; hs << L" /DisplayConfig: display a list of configurations" << std::endl; hs << L" /ComponentArgs [\"id|display_name\":\"value\" ...] : additional component args" << std::endl; hs << L" /ControlArgs [\"id\":\"value\" ...] : additional control values" << std::endl; hs << L" /CompleteCommandArgs [args] : additional complete command" << std::endl; hs << std::endl; hs << L"Built by dotNetInstaller (DNI), version " << TEXT(VERSION_VALUE); return hs.str(); }
37.165919
113
0.542712
f0e64625349464e7851514dcc0c00aed8bc729f7
1,197
html
HTML
static/assets/js/wxeditor/tpls/paper-cp/other/017-dividing-line-07.html
mn3711698/wrobot
c29fffb58f47c39d4f142d430f81712d00e02f18
[ "MIT" ]
23
2020-09-22T14:25:40.000Z
2021-11-07T20:27:52.000Z
static/assets/js/wxeditor/tpls/paper-cp/other/017-dividing-line-07.html
a04512/wrobot
d8ae9e23637ba0a984c15a868e5c0093fdc74c23
[ "MIT" ]
null
null
null
static/assets/js/wxeditor/tpls/paper-cp/other/017-dividing-line-07.html
a04512/wrobot
d8ae9e23637ba0a984c15a868e5c0093fdc74c23
[ "MIT" ]
6
2021-02-03T02:15:40.000Z
2022-02-10T14:05:48.000Z
<div style=" width: 0; display: inline-block; vertical-align: middle;"> <div style=" -ms-transform: rotate(0.1deg); -moz-transform: rotate(0.1deg); -webkit-transform: rotate(0.1deg); -o-transform: rotate(0.1deg); transform: rotate(0.1deg);"> <div style="width: 0; display: inline-block; vertical-align: middle; border-top: 0.8em solid transparent !important; border-left: 1em solid; border-bottom: 0.8em solid transparent !important;" tn-bind-aux-prop="{ borderLeftColor: compAux.bgc1 }"></div> </div> </div><div style=" width: 100%; margin: 0 -1em 0 0; border-bottom: 2px solid; display: inline-block; vertical-align: middle" tn-bind-aux-prop="{ borderBottomColor: compAux.bdc1 }"> </div><div style=" width: 0; margin: auto; display: inline-block; vertical-align: middle; border-top: 0.8em solid transparent !important; border-right: 1em solid; border-bottom: 0.8em solid transparent !important;" tn-bind-aux-prop="{ borderRightColor: compAux.bgc1 }"></div>
57
89
0.583124
cae7ca2bc1c3c2abf4d80f128b5e8f5264238008
7,259
sql
SQL
sql/yjbb/603901.sql
liangzi4000/grab-share-info
4dc632442d240c71955bbf927ecf276d570a2292
[ "MIT" ]
null
null
null
sql/yjbb/603901.sql
liangzi4000/grab-share-info
4dc632442d240c71955bbf927ecf276d570a2292
[ "MIT" ]
null
null
null
sql/yjbb/603901.sql
liangzi4000/grab-share-info
4dc632442d240c71955bbf927ecf276d570a2292
[ "MIT" ]
null
null
null
EXEC [EST].[Proc_yjbb_Ins] @Code = N'603901',@CutoffDate = N'2017-09-30',@EPS = N'0.14',@EPSDeduct = N'0',@Revenue = N'9.55亿',@RevenueYoy = N'39.51',@RevenueQoq = N'16.73',@Profit = N'5721.83万',@ProfitYoy = N'-18.62',@ProfiltQoq = N'-16.90',@NAVPerUnit = N'2.3394',@ROE = N'6.24',@CashPerUnit = N'-0.0379',@GrossProfitRate = N'28.90',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2017-10-31' EXEC [EST].[Proc_yjbb_Ins] @Code = N'603901',@CutoffDate = N'2017-06-30',@EPS = N'0.1',@EPSDeduct = N'0.09',@Revenue = N'5.74亿',@RevenueYoy = N'28.53',@RevenueQoq = N'31.41',@Profit = N'3902.46万',@ProfitYoy = N'-9.77',@ProfiltQoq = N'27.79',@NAVPerUnit = N'2.2935',@ROE = N'4.28',@CashPerUnit = N'-0.1519',@GrossProfitRate = N'30.04',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2017-08-30' EXEC [EST].[Proc_yjbb_Ins] @Code = N'603901',@CutoffDate = N'2016-12-31',@EPS = N'0.22',@EPSDeduct = N'0.18',@Revenue = N'10.05亿',@RevenueYoy = N'11.65',@RevenueQoq = N'35.06',@Profit = N'8867.67万',@ProfitYoy = N'16.37',@ProfiltQoq = N'-32.13',@NAVPerUnit = N'2.2393',@ROE = N'10.35',@CashPerUnit = N'0.2125',@GrossProfitRate = N'32.86',@Distribution = N'10派0.45',@DividenRate = N'0.36',@AnnounceDate = N'2017-03-31' EXEC [EST].[Proc_yjbb_Ins] @Code = N'603901',@CutoffDate = N'2017-03-31',@EPS = N'0.04',@EPSDeduct = N'0',@Revenue = N'2.48亿',@RevenueYoy = N'29.95',@RevenueQoq = N'-22.69',@Profit = N'1713.17万',@ProfitYoy = N'9.79',@ProfiltQoq = N'-6.73',@NAVPerUnit = N'2.2822',@ROE = N'1.89',@CashPerUnit = N'-0.1972',@GrossProfitRate = N'30.43',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2017-04-29' EXEC [EST].[Proc_yjbb_Ins] @Code = N'603901',@CutoffDate = N'2016-06-30',@EPS = N'0.11',@EPSDeduct = N'0.1',@Revenue = N'4.47亿',@RevenueYoy = N'3.57',@RevenueQoq = N'33.98',@Profit = N'4324.94万',@ProfitYoy = N'10.56',@ProfiltQoq = N'77.16',@NAVPerUnit = N'2.1198',@ROE = N'5.15',@CashPerUnit = N'-0.0077',@GrossProfitRate = N'32.02',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2017-08-30' EXEC [EST].[Proc_yjbb_Ins] @Code = N'603901',@CutoffDate = N'2016-09-30',@EPS = N'0.18',@EPSDeduct = N'0',@Revenue = N'6.84亿',@RevenueYoy = N'4.69',@RevenueQoq = N'-7.10',@Profit = N'7030.98万',@ProfitYoy = N'20.24',@ProfiltQoq = N'-2.11',@NAVPerUnit = N'2.1865',@ROE = N'8.29',@CashPerUnit = N'0.0896',@GrossProfitRate = N'32.73',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2017-10-31' EXEC [EST].[Proc_yjbb_Ins] @Code = N'603901',@CutoffDate = N'2015-09-30',@EPS = N'0.17',@EPSDeduct = N'0',@Revenue = N'6.54亿',@RevenueYoy = N'5.35',@RevenueQoq = N'-9.95',@Profit = N'5847.63万',@ProfitYoy = N'12.35',@ProfiltQoq = N'-22.03',@NAVPerUnit = N'8.0218',@ROE = N'10.09',@CashPerUnit = N'-0.4926',@GrossProfitRate = N'31.70',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2016-10-29' EXEC [EST].[Proc_yjbb_Ins] @Code = N'603901',@CutoffDate = N'2015-06-30',@EPS = N'0.125',@EPSDeduct = N'0.1175',@Revenue = N'4.31亿',@RevenueYoy = N'7.73',@RevenueQoq = N'33.91',@Profit = N'3911.80万',@ProfitYoy = N'17.50',@ProfiltQoq = N'73.74',@NAVPerUnit = N'7.8239',@ROE = N'8.27',@CashPerUnit = N'-0.7231',@GrossProfitRate = N'31.97',@Distribution = N'10转10',@DividenRate = N'-',@AnnounceDate = N'2016-08-17' EXEC [EST].[Proc_yjbb_Ins] @Code = N'603901',@CutoffDate = N'2015-12-31',@EPS = N'0.21',@EPSDeduct = N'0.17',@Revenue = N'9.00亿',@RevenueYoy = N'1.42',@RevenueQoq = N'10.95',@Profit = N'7620.22万',@ProfitYoy = N'2.72',@ProfiltQoq = N'-8.43',@NAVPerUnit = N'4.0984',@ROE = N'11.97',@CashPerUnit = N'-0.0329',@GrossProfitRate = N'31.73',@Distribution = N'10转10派0.65',@DividenRate = N'0.40',@AnnounceDate = N'2017-03-31' EXEC [EST].[Proc_yjbb_Ins] @Code = N'603901',@CutoffDate = N'2014-12-31',@EPS = N'0.42',@EPSDeduct = N'0.34',@Revenue = N'8.88亿',@RevenueYoy = N'20.61',@RevenueQoq = N'21.42',@Profit = N'7418.59万',@ProfitYoy = N'3.77',@ProfiltQoq = N'18.04',@NAVPerUnit = N'5.3532',@ROE = N'20.20',@CashPerUnit = N'0.7466',@GrossProfitRate = N'31.48',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2016-03-31' EXEC [EST].[Proc_yjbb_Ins] @Code = N'603901',@CutoffDate = N'2015-03-31',@EPS = N'0.1',@EPSDeduct = N'0.17',@Revenue = N'1.84亿',@RevenueYoy = N'10.02',@RevenueQoq = N'-31.01',@Profit = N'1428.99万',@ProfitYoy = N'17.87',@ProfiltQoq = N'-35.45',@NAVPerUnit = N'5.3354',@ROE = N'3.50',@CashPerUnit = N'-0.9403',@GrossProfitRate = N'32.23',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2016-04-22' EXEC [EST].[Proc_yjbb_Ins] @Code = N'603901',@CutoffDate = N'2014-06-30',@EPS = N'0.44',@EPSDeduct = N'0.45',@Revenue = N'4.00亿',@RevenueYoy = N'-',@RevenueQoq = N'38.88',@Profit = N'3329.15万',@ProfitYoy = N'-',@ProfiltQoq = N'74.61',@NAVPerUnit = N'4.8203',@ROE = N'9.53',@CashPerUnit = N'-0.3737',@GrossProfitRate = N'32.31',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2015-08-21' EXEC [EST].[Proc_yjbb_Ins] @Code = N'603901',@CutoffDate = N'2014-03-31',@EPS = N'0.16',@EPSDeduct = N'0.14',@Revenue = N'1.68亿',@RevenueYoy = N'-',@RevenueQoq = N'-',@Profit = N'1212.34万',@ProfitYoy = N'-',@ProfiltQoq = N'-',@NAVPerUnit = N'0.0000',@ROE = N'3.48',@CashPerUnit = N'-1.1700',@GrossProfitRate = N'33.42',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2015-05-28' EXEC [EST].[Proc_yjbb_Ins] @Code = N'603901',@CutoffDate = N'2013-12-31',@EPS = N'0.95',@EPSDeduct = N'0.4',@Revenue = N'7.36亿',@RevenueYoy = N'20.17',@RevenueQoq = N'-',@Profit = N'7149.38万',@ProfitYoy = N'7.55',@ProfiltQoq = N'-',@NAVPerUnit = N'4.5595',@ROE = N'23.09',@CashPerUnit = N'0.6367',@GrossProfitRate = N'34.75',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2014-04-30' EXEC [EST].[Proc_yjbb_Ins] @Code = N'603901',@CutoffDate = N'2012-12-31',@EPS = N'0.89',@EPSDeduct = N'0.87',@Revenue = N'6.13亿',@RevenueYoy = N'19.32',@RevenueQoq = N'-',@Profit = N'6647.31万',@ProfitYoy = N'32.07',@ProfiltQoq = N'-',@NAVPerUnit = N'3.7885',@ROE = N'26.34',@CashPerUnit = N'0.6685',@GrossProfitRate = N'35.60',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2014-04-30' EXEC [EST].[Proc_yjbb_Ins] @Code = N'603901',@CutoffDate = N'2011-12-31',@EPS = N'0.72',@EPSDeduct = N'0.8',@Revenue = N'5.13亿',@RevenueYoy = N'-',@RevenueQoq = N'-',@Profit = N'5033.00万',@ProfitYoy = N'-',@ProfiltQoq = N'-',@NAVPerUnit = N'2.9508',@ROE = N'33.25',@CashPerUnit = N'0.6208',@GrossProfitRate = N'33.65',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2014-04-30' EXEC [EST].[Proc_yjbb_Ins] @Code = N'603901',@CutoffDate = N'2014-09-30',@EPS = N'0.69',@EPSDeduct = N'0',@Revenue = N'6.21亿',@RevenueYoy = N'-',@RevenueQoq = N'-5.43',@Profit = N'5204.66万',@ProfitYoy = N'-',@ProfiltQoq = N'-11.40',@NAVPerUnit = N'0.0000',@ROE = N'14.58',@CashPerUnit = N'0.0000',@GrossProfitRate = N'31.78',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2015-10-24' EXEC [EST].[Proc_yjbb_Ins] @Code = N'603901',@CutoffDate = N'2016-03-31',@EPS = N'0.04',@EPSDeduct = N'0',@Revenue = N'1.91亿',@RevenueYoy = N'3.54',@RevenueQoq = N'-22.61',@Profit = N'1560.46万',@ProfitYoy = N'9.20',@ProfiltQoq = N'-11.97',@NAVPerUnit = N'4.1832',@ROE = N'1.89',@CashPerUnit = N'-0.2929',@GrossProfitRate = N'31.49',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2017-04-29'
403.277778
416
0.640446
70de4e29b92f83616e608dd4b581ab9ed1bd2e86
2,100
go
Go
model/communal/agency/customer.go
bububa/oppo-omni
786a72ca8cab83b989ef705c9d010aee9fff527b
[ "MIT" ]
null
null
null
model/communal/agency/customer.go
bububa/oppo-omni
786a72ca8cab83b989ef705c9d010aee9fff527b
[ "MIT" ]
null
null
null
model/communal/agency/customer.go
bububa/oppo-omni
786a72ca8cab83b989ef705c9d010aee9fff527b
[ "MIT" ]
null
null
null
package agency import ( "github.com/bububa/oppo-omni/enum" "github.com/bububa/oppo-omni/model" ) type CustomerListRequest struct { model.BaseRequest ID uint64 `json:"id,omitempty"` // 定向ID OwnerName string `json:"ownerName,omitempty"` // 广告主ID AuditStatus *enum.CustomerAuditStatus `json:"audit_status"` // 审核状态 Page int `json:"page,omitempty"` // 当前页 PageSize int `json:"pageCount,omitempty"` // 每页数量 } type CustomerListResponse struct { model.BaseResponse Data *CustomerListResult `json:"data,omitempty"` } type CustomerListResult struct { ItemCount int `json:"itemCount,omitempty"` TotalCount int `json:"totalCount,omitempty"` Items []Customer `json:"items,omitempty"` } type Customer struct { OwnerID uint64 `json:"ownerId,omitempty"` // 广告主ID AccID uint64 `json:"accId,omitempty"` // 账务ID OwnerName string `json:"ownerName,omitempty"` // 广告主名称 AuditStatus enum.CustomerAuditStatus `json:"auditStatus,omitempty"` // 审核状态 InsertTime int64 `json:"insertTime,omitempty"` // 创建时间(秒) UpdateTime int64 `json:"updateTime,omitempty"` // 最后更新时间(秒) CashBalance int64 `json:"cashBal,omitempty"` // 现金余额(分) CashLockBalance int64 `json:"cashLockBal,omitempty"` // 现金账户锁定金额(分) CashCost int64 `json:"cashCost,omitempty"` // 现金账户消耗(分) RebateBalance int64 `json:"rebateBal,omitempty"` // 返回账户余额(分) RebateDayBudget int64 `json:"rebateDayBudget,omitempty"` // 返回账户日预算(分) RebateCost int64 `json:"rebateCost,omitempty"` // 返回账户消耗(分) VirtualBalance int64 `json:"virBal,omitempty"` // 虚拟账户金额(分) VirtalCost int64 `json:"virCost,omitempty"` // 虚拟账户消耗(分) }
47.727273
91
0.558095
b155bc7937fd5f3e2e1397b66669ea9c43ae7317
259
css
CSS
src/components/blog-post.module.css
WonderPanda/christyn-writes-wip
f58528c7cbce248fb8c50189b38c023eb3076cc9
[ "MIT" ]
1
2019-03-27T13:43:01.000Z
2019-03-27T13:43:01.000Z
src/components/blog-post.module.css
WonderPanda/christyn-writes-wip
f58528c7cbce248fb8c50189b38c023eb3076cc9
[ "MIT" ]
null
null
null
src/components/blog-post.module.css
WonderPanda/christyn-writes-wip
f58528c7cbce248fb8c50189b38c023eb3076cc9
[ "MIT" ]
null
null
null
.post h2 { margin-top: 25px; margin-bottom: 15px; font-size: 22px; font-weight: 700; } .post p { margin-bottom: 20px; font-size: 16px; line-height: 18.4px; } .post img { width: 90%; border-radius: 0.25rem; } .post a { color: #117aa8; }
11.772727
25
0.602317
0b2242c98f153e44bcbb14ec8721042c75e0511e
76
py
Python
bin/pymodules/objectedit/__init__.py
mattire/naali
28c9cdc84c6a85e0151a222e55ae35c9403f0212
[ "Apache-2.0" ]
1
2018-04-02T15:38:10.000Z
2018-04-02T15:38:10.000Z
bin/pymodules/objectedit/__init__.py
mattire/naali
28c9cdc84c6a85e0151a222e55ae35c9403f0212
[ "Apache-2.0" ]
null
null
null
bin/pymodules/objectedit/__init__.py
mattire/naali
28c9cdc84c6a85e0151a222e55ae35c9403f0212
[ "Apache-2.0" ]
null
null
null
#from editgui import EditGUI #from only_layout import OnlyLayout as EditGUI
25.333333
46
0.842105
808faac9dc0a252e2f062ba8fbc608101d4e79ed
2,888
java
Java
RationesCurare/src/main/java/it/mikymaione/RationesCurare/UI/Fragments/GestioneCasse_Dettaglio.java
mikymaione/RationesCurareAPK
08c9f462a680a9a3f9cbb15b0886c61fe53e6209
[ "MIT" ]
1
2019-10-28T13:53:43.000Z
2019-10-28T13:53:43.000Z
RationesCurare/src/main/java/it/mikymaione/RationesCurare/UI/Fragments/GestioneCasse_Dettaglio.java
mikymaione/RationesCurareAPK
08c9f462a680a9a3f9cbb15b0886c61fe53e6209
[ "MIT" ]
null
null
null
RationesCurare/src/main/java/it/mikymaione/RationesCurare/UI/Fragments/GestioneCasse_Dettaglio.java
mikymaione/RationesCurareAPK
08c9f462a680a9a3f9cbb15b0886c61fe53e6209
[ "MIT" ]
null
null
null
/* MIT License Copyright (c) 2018 Michele Maione Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ package it.mikymaione.RationesCurare.UI.Fragments; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.EditText; import it.mikymaione.RationesCurare.DB.Tables.Cassa; import it.mikymaione.RationesCurare.DB.Wrappers.cCasse; import it.mikymaione.RationesCurare.Globals.cErrore; import it.mikymaione.RationesCurare.R; import it.mikymaione.RationesCurare.UI.Templates.baseDati; public class GestioneCasse_Dettaglio extends baseDati<String> { private EditText eNome; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { MyView = super.onCreateView(inflater, container, savedInstanceState); eNome = (EditText) MyView.findViewById(R.id.eNome); Carica(); return MyView; } @Override protected cErrore<Long> Salva() { cCasse d = new cCasse(DB); Cassa m = new Cassa(); m.nome = eNome.getText().toString(); return d.Salva(MyID, m); } @Override protected void SettaDatiNeiControlli() { cCasse c = new cCasse(DB); Cassa tabella = c.Carica(MyID); eNome.setText(tabella.nome); } @Override protected void Svuota() { eNome.setText(""); } @Override protected View GetFirstControlToFocus() { return eNome; } @Override protected int get_R_layout_fragment_name() { return R.layout.fragment_gestione_casse__dettaglio; } @Override public CharSequence GetTitolo() { if (MyID != null && !MyID.equals("")) { return "Dettaglio cassa " + MyID; } else { return "Nuova cassa"; } } }
31.736264
460
0.705679
4af460c5c50607cc1773e44f0a78bd9820ba4cd7
454
asm
Assembly
oeis/012/A012027.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/012/A012027.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/012/A012027.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A012027: E.g.f. cosh(sin(arctan(x))) = cosh(x/sqrt(1+x^2)) (even powers only). ; Submitted by Christian Krause ; 1,1,-11,301,-15287,1239481,-146243459,23567903269,-4951201340399,1307274054385393,-420773143716828539,160635990248839962781,-70764171306270411101351,34822234810202848704345001 mul $0,2 mov $1,1 mov $3,$0 lpb $3 sub $0,2 mul $1,$3 sub $3,1 mul $1,$3 sub $4,2 div $1,$4 mul $1,$0 add $2,$1 sub $3,1 lpe mov $0,$2 add $0,1
21.619048
177
0.680617
3fe32eac514c7523ccd70ee569a70d7887c70727
68,009
lua
Lua
Xv7/xv7_1.lua
DnoYT/Gteam
00b3b673232fbd07637ff6530aaa4ee2933d9be0
[ "Apache-2.0" ]
1
2022-03-18T20:07:21.000Z
2022-03-18T20:07:21.000Z
Xv7/xv7_1.lua
DnoYT/Gteam
00b3b673232fbd07637ff6530aaa4ee2933d9be0
[ "Apache-2.0" ]
null
null
null
Xv7/xv7_1.lua
DnoYT/Gteam
00b3b673232fbd07637ff6530aaa4ee2933d9be0
[ "Apache-2.0" ]
null
null
null
hx1=[[ repeat goto hx166 ::hx167:: while true do if not xs then end goto hx168 end ::hx166:: while true do goto hx167 end until true ::hx168:: repeat goto hx167 ::hx168:: while true do if not xs then end goto hx169 end ::hx167:: while true do goto hx168 end until true ::hx169:: repeat goto hx168 ::hx169:: while true do if not xs then end goto hx170 end ::hx168:: while true do goto hx169 end until true ::hx170:: repeat goto hx169 ::hx170:: while true do if not xs then end goto hx171 end ::hx169:: while true do goto hx170 end until true ::hx171:: repeat goto hx170 ::hx171:: while true do if not xs then end goto hx172 end ::hx170:: while true do goto hx171 end until true ::hx172:: repeat goto hx171 ::hx172:: while true do if not xs then end goto hx173 end ::hx171:: while true do goto hx172 end until true ::hx173:: repeat goto hx172 ::hx173:: while true do if not xs then end goto hx174 end ::hx172:: while true do goto hx173 end until true ::hx174:: repeat goto hx173 ::hx174:: while true do if not xs then end goto hx175 end ::hx173:: while true do goto hx174 end until true ::hx175:: repeat goto hx174 ::hx175:: while true do if not xs then end goto hx176 end ::hx174:: while true do goto hx175 end until true ::hx176:: repeat goto hx175 ::hx176:: while true do if not xs then end goto hx177 end ::hx175:: while true do goto hx176 end until true ::hx177:: repeat goto hx176 ::hx177:: while true do if not xs then end goto hx178 end ::hx176:: while true do goto hx177 end until true ::hx178:: repeat goto hx177 ::hx178:: while true do if not xs then end goto hx179 end ::hx177:: while true do goto hx178 end until true ::hx179:: repeat goto hx178 ::hx179:: while true do if not xs then end goto hx180 end ::hx178:: while true do goto hx179 end until true ::hx180:: repeat goto hx179 ::hx180:: while true do if not xs then end goto hx181 end ::hx179:: while true do goto hx180 end until true ::hx181:: repeat goto hx180 ::hx181:: while true do if not xs then end goto hx182 end ::hx180:: while true do goto hx181 end until true ::hx182:: repeat goto hx181 ::hx182:: while true do if not xs then end goto hx183 end ::hx181:: while true do goto hx182 end until true ::hx183:: repeat goto hx182 ::hx183:: while true do if not xs then end goto hx184 end ::hx182:: while true do goto hx183 end until true ::hx184:: repeat goto hx183 ::hx184:: while true do if not xs then end goto hx185 end ::hx183:: while true do goto hx184 end until true ::hx185:: repeat goto hx184 ::hx185:: while true do if not xs then end goto hx186 end ::hx184:: while true do goto hx185 end until true ::hx186:: repeat goto hx185 ::hx186:: while true do if not xs then end goto hx187 end ::hx185:: while true do goto hx186 end until true ::hx187:: repeat goto hx186 ::hx187:: while true do if not xs then end goto hx188 end ::hx186:: while true do goto hx187 end until true ::hx188:: repeat goto hx187 ::hx188:: while true do if not xs then end goto hx189 end ::hx187:: while true do goto hx188 end until true ::hx189:: repeat goto hx188 ::hx189:: while true do if not xs then end goto hx190 end ::hx188:: while true do goto hx189 end until true ::hx190:: repeat goto hx189 ::hx190:: while true do if not xs then end goto hx191 end ::hx189:: while true do goto hx190 end until true ::hx191:: repeat goto hx190 ::hx191:: while true do if not xs then end goto hx192 end ::hx190:: while true do goto hx191 end until true ::hx192:: repeat goto hx191 ::hx192:: while true do if not xs then end goto hx193 end ::hx191:: while true do goto hx192 end until true ::hx193:: repeat goto hx192 ::hx193:: while true do if not xs then end goto hx194 end ::hx192:: while true do goto hx193 end until true ::hx194:: repeat goto hx193 ::hx194:: while true do if not xs then end goto hx195 end ::hx193:: while true do goto hx194 end until true ::hx195:: repeat goto hx194 ::hx195:: while true do if not xs then end goto hx196 end ::hx194:: while true do goto hx195 end until true ::hx196:: repeat goto hx195 ::hx196:: while true do if not xs then end goto hx197 end ::hx195:: while true do goto hx196 end until true ::hx197:: repeat goto hx196 ::hx197:: while true do if not xs then end goto hx198 end ::hx196:: while true do goto hx197 end until true ::hx198:: repeat goto hx197 ::hx198:: while true do if not xs then end goto hx199 end ::hx197:: while true do goto hx198 end until true ::hx199:: repeat goto hx198 ::hx199:: while true do if not xs then end goto hx200 end ::hx198:: while true do goto hx199 end until true ::hx200:: repeat goto hx199 ::hx200:: while true do if not xs then end goto hx201 end ::hx199:: while true do goto hx200 end until true ::hx201:: repeat goto hx200 ::hx201:: while true do if not xs then end goto hx202 end ::hx200:: while true do goto hx201 end until true ::hx202:: repeat goto hx201 ::hx202:: while true do if not xs then end goto hx203 end ::hx201:: while true do goto hx202 end until true ::hx203:: repeat goto hx202 ::hx203:: while true do if not xs then end goto hx204 end ::hx202:: while true do goto hx203 end until true ::hx204:: repeat goto hx203 ::hx204:: while true do if not xs then end goto hx205 end ::hx203:: while true do goto hx204 end until true ::hx205:: repeat goto hx204 ::hx205:: while true do if not xs then end goto hx206 end ::hx204:: while true do goto hx205 end until true ::hx206:: repeat goto hx205 ::hx206:: while true do if not xs then end goto hx207 end ::hx205:: while true do goto hx206 end until true ::hx207:: repeat goto hx206 ::hx207:: while true do if not xs then end goto hx208 end ::hx206:: while true do goto hx207 end until true ::hx208:: repeat goto hx207 ::hx208:: while true do if not xs then end goto hx209 end ::hx207:: while true do goto hx208 end until true ::hx209:: repeat goto hx208 ::hx209:: while true do if not xs then end goto hx210 end ::hx208:: while true do goto hx209 end until true ::hx210:: repeat goto hx209 ::hx210:: while true do if not xs then end goto hx211 end ::hx209:: while true do goto hx210 end until true ::hx211:: repeat goto hx210 ::hx211:: while true do if not xs then end goto hx212 end ::hx210:: while true do goto hx211 end until true ::hx212:: repeat goto hx211 ::hx212:: while true do if not xs then end goto hx213 end ::hx211:: while true do goto hx212 end until true ::hx213:: repeat goto hx212 ::hx213:: while true do if not xs then end goto hx214 end ::hx212:: while true do goto hx213 end until true ::hx214:: repeat goto hx213 ::hx214:: while true do if not xs then end goto hx215 end ::hx213:: while true do goto hx214 end until true ::hx215:: repeat goto hx214 ::hx215:: while true do if not xs then end goto hx216 end ::hx214:: while true do goto hx215 end until true ::hx216:: repeat goto hx215 ::hx216:: while true do if not xs then end goto hx217 end ::hx215:: while true do goto hx216 end until true ::hx217:: repeat goto hx216 ::hx217:: while true do if not xs then end goto hx218 end ::hx216:: while true do goto hx217 end until true ::hx218:: repeat goto hx217 ::hx218:: while true do if not xs then end goto hx219 end ::hx217:: while true do goto hx218 end until true ::hx219:: repeat goto hx218 ::hx219:: while true do if not xs then end goto hx220 end ::hx218:: while true do goto hx219 end until true ::hx220:: repeat goto hx219 ::hx220:: while true do if not xs then end goto hx221 end ::hx219:: while true do goto hx220 end until true ::hx221:: repeat goto hx220 ::hx221:: while true do if not xs then end goto hx222 end ::hx220:: while true do goto hx221 end until true ::hx222:: repeat goto hx221 ::hx222:: while true do if not xs then end goto hx223 end ::hx221:: while true do goto hx222 end until true ::hx223:: repeat goto hx222 ::hx223:: while true do if not xs then end goto hx224 end ::hx222:: while true do goto hx223 end until true ::hx224:: repeat goto hx223 ::hx224:: while true do if not xs then end goto hx225 end ::hx223:: while true do goto hx224 end until true ::hx225:: repeat goto hx224 ::hx225:: while true do if not xs then end goto hx226 end ::hx224:: while true do goto hx225 end until true ::hx226:: repeat goto hx225 ::hx226:: while true do if not xs then end goto hx227 end ::hx225:: while true do goto hx226 end until true ::hx227:: repeat goto hx226 ::hx227:: while true do if not xs then end goto hx228 end ::hx226:: while true do goto hx227 end until true ::hx228:: repeat goto hx227 ::hx228:: while true do if not xs then end goto hx229 end ::hx227:: while true do goto hx228 end until true ::hx229:: repeat goto hx228 ::hx229:: while true do if not xs then end goto hx230 end ::hx228:: while true do goto hx229 end until true ::hx230:: repeat goto hx229 ::hx230:: while true do if not xs then end goto hx231 end ::hx229:: while true do goto hx230 end until true ::hx231:: repeat goto hx230 ::hx231:: while true do if not xs then end goto hx232 end ::hx230:: while true do goto hx231 end until true ::hx232:: repeat goto hx231 ::hx232:: while true do if not xs then end goto hx233 end ::hx231:: while true do goto hx232 end until true ::hx233:: repeat goto hx232 ::hx233:: while true do if not xs then end goto hx234 end ::hx232:: while true do goto hx233 end until true ::hx234:: repeat goto hx233 ::hx234:: while true do if not xs then end goto hx235 end ::hx233:: while true do goto hx234 end until true ::hx235:: repeat goto hx234 ::hx235:: while true do if not xs then end goto hx236 end ::hx234:: while true do goto hx235 end until true ::hx236:: repeat goto hx235 ::hx236:: while true do if not xs then end goto hx237 end ::hx235:: while true do goto hx236 end until true ::hx237:: repeat goto hx236 ::hx237:: while true do if not xs then end goto hx238 end ::hx236:: while true do goto hx237 end until true ::hx238:: repeat goto hx237 ::hx238:: while true do if not xs then end goto hx239 end ::hx237:: while true do goto hx238 end until true ::hx239:: repeat goto hx238 ::hx239:: while true do if not xs then end goto hx240 end ::hx238:: while true do goto hx239 end until true ::hx240:: repeat goto hx239 ::hx240:: while true do if not xs then end goto hx241 end ::hx239:: while true do goto hx240 end until true ::hx241:: repeat goto hx240 ::hx241:: while true do if not xs then end goto hx242 end ::hx240:: while true do goto hx241 end until true ::hx242:: repeat goto hx241 ::hx242:: while true do if not xs then end goto hx243 end ::hx241:: while true do goto hx242 end until true ::hx243:: repeat goto hx242 ::hx243:: while true do if not xs then end goto hx244 end ::hx242:: while true do goto hx243 end until true ::hx244:: repeat goto hx243 ::hx244:: while true do if not xs then end goto hx245 end ::hx243:: while true do goto hx244 end until true ::hx245:: repeat goto hx244 ::hx245:: while true do if not xs then end goto hx246 end ::hx244:: while true do goto hx245 end until true ::hx246:: repeat goto hx245 ::hx246:: while true do if not xs then end goto hx247 end ::hx245:: while true do goto hx246 end until true ::hx247:: repeat goto hx246 ::hx247:: while true do if not xs then end goto hx248 end ::hx246:: while true do goto hx247 end until true ::hx248:: repeat goto hx247 ::hx248:: while true do if not xs then end goto hx249 end ::hx247:: while true do goto hx248 end until true ::hx249:: repeat goto hx248 ::hx249:: while true do if not xs then end goto hx250 end ::hx248:: while true do goto hx249 end until true ::hx250:: repeat goto hx249 ::hx250:: while true do if not xs then end goto hx251 end ::hx249:: while true do goto hx250 end until true ::hx251:: repeat goto hx250 ::hx251:: while true do if not xs then end goto hx252 end ::hx250:: while true do goto hx251 end until true ::hx252:: repeat goto hx251 ::hx252:: while true do if not xs then end goto hx253 end ::hx251:: while true do goto hx252 end until true ::hx253:: repeat goto hx252 ::hx253:: while true do if not xs then end goto hx254 end ::hx252:: while true do goto hx253 end until true ::hx254:: repeat goto hx253 ::hx254:: while true do if not xs then end goto hx255 end ::hx253:: while true do goto hx254 end until true ::hx255:: repeat goto hx254 ::hx255:: while true do if not xs then end goto hx256 end ::hx254:: while true do goto hx255 end until true ::hx256:: repeat goto hx255 ::hx256:: while true do if not xs then end goto hx257 end ::hx255:: while true do goto hx256 end until true ::hx257:: repeat goto hx256 ::hx257:: while true do if not xs then end goto hx258 end ::hx256:: while true do goto hx257 end until true ::hx258:: repeat goto hx257 ::hx258:: while true do if not xs then end goto hx259 end ::hx257:: while true do goto hx258 end until true ::hx259:: repeat goto hx258 ::hx259:: while true do if not xs then end goto hx260 end ::hx258:: while true do goto hx259 end until true ::hx260:: repeat goto hx259 ::hx260:: while true do if not xs then end goto hx261 end ::hx259:: while true do goto hx260 end until true ::hx261:: repeat goto hx260 ::hx261:: while true do if not xs then end goto hx262 end ::hx260:: while true do goto hx261 end until true ::hx262:: repeat goto hx261 ::hx262:: while true do if not xs then end goto hx263 end ::hx261:: while true do goto hx262 end until true ::hx263:: repeat goto hx262 ::hx263:: while true do if not xs then end goto hx264 end ::hx262:: while true do goto hx263 end until true ::hx264:: repeat goto hx263 ::hx264:: while true do if not xs then end goto hx265 end ::hx263:: while true do goto hx264 end until true ::hx265:: repeat goto hx264 ::hx265:: while true do if not xs then end goto hx266 end ::hx264:: while true do goto hx265 end until true ::hx266:: repeat goto hx265 ::hx266:: while true do if not xs then end goto hx267 end ::hx265:: while true do goto hx266 end until true ::hx267:: repeat goto hx266 ::hx267:: while true do if not xs then end goto hx268 end ::hx266:: while true do goto hx267 end until true ::hx268:: repeat goto hx267 ::hx268:: while true do if not xs then end goto hx269 end ::hx267:: while true do goto hx268 end until true ::hx269:: repeat goto hx268 ::hx269:: while true do if not xs then end goto hx270 end ::hx268:: while true do goto hx269 end until true ::hx270:: repeat goto hx269 ::hx270:: while true do if not xs then end goto hx271 end ::hx269:: while true do goto hx270 end until true ::hx271:: repeat goto hx270 ::hx271:: while true do if not xs then end goto hx272 end ::hx270:: while true do goto hx271 end until true ::hx272:: repeat goto hx271 ::hx272:: while true do if not xs then end goto hx273 end ::hx271:: while true do goto hx272 end until true ::hx273:: repeat goto hx272 ::hx273:: while true do if not xs then end goto hx274 end ::hx272:: while true do goto hx273 end until true ::hx274:: repeat goto hx273 ::hx274:: while true do if not xs then end goto hx275 end ::hx273:: while true do goto hx274 end until true ::hx275:: repeat goto hx274 ::hx275:: while true do if not xs then end goto hx276 end ::hx274:: while true do goto hx275 end until true ::hx276:: repeat goto hx275 ::hx276:: while true do if not xs then end goto hx277 end ::hx275:: while true do goto hx276 end until true ::hx277:: repeat goto hx276 ::hx277:: while true do if not xs then end goto hx278 end ::hx276:: while true do goto hx277 end until true ::hx278:: repeat goto hx277 ::hx278:: while true do if not xs then end goto hx279 end ::hx277:: while true do goto hx278 end until true ::hx279:: repeat goto hx278 ::hx279:: while true do if not xs then end goto hx280 end ::hx278:: while true do goto hx279 end until true ::hx280:: repeat goto hx279 ::hx280:: while true do if not xs then end goto hx281 end ::hx279:: while true do goto hx280 end until true ::hx281:: repeat goto hx280 ::hx281:: while true do if not xs then end goto hx282 end ::hx280:: while true do goto hx281 end until true ::hx282:: repeat goto hx281 ::hx282:: while true do if not xs then end goto hx283 end ::hx281:: while true do goto hx282 end until true ::hx283:: repeat goto hx282 ::hx283:: while true do if not xs then end goto hx284 end ::hx282:: while true do goto hx283 end until true ::hx284:: repeat goto hx283 ::hx284:: while true do if not xs then end goto hx285 end ::hx283:: while true do goto hx284 end until true ::hx285:: repeat goto hx284 ::hx285:: while true do if not xs then end goto hx286 end ::hx284:: while true do goto hx285 end until true ::hx286:: repeat goto hx285 ::hx286:: while true do if not xs then end goto hx287 end ::hx285:: while true do goto hx286 end until true ::hx287:: repeat goto hx286 ::hx287:: while true do if not xs then end goto hx288 end ::hx286:: while true do goto hx287 end until true ::hx288:: repeat goto hx287 ::hx288:: while true do if not xs then end goto hx289 end ::hx287:: while true do goto hx288 end until true ::hx289:: repeat goto hx288 ::hx289:: while true do if not xs then end goto hx290 end ::hx288:: while true do goto hx289 end until true ::hx290:: repeat goto hx289 ::hx290:: while true do if not xs then end goto hx291 end ::hx289:: while true do goto hx290 end until true ::hx291:: repeat goto hx290 ::hx291:: while true do if not xs then end goto hx292 end ::hx290:: while true do goto hx291 end until true ::hx292:: repeat goto hx291 ::hx292:: while true do if not xs then end goto hx293 end ::hx291:: while true do goto hx292 end until true ::hx293:: repeat goto hx292 ::hx293:: while true do if not xs then end goto hx294 end ::hx292:: while true do goto hx293 end until true ::hx294:: repeat goto hx293 ::hx294:: while true do if not xs then end goto hx295 end ::hx293:: while true do goto hx294 end until true ::hx295:: repeat goto hx294 ::hx295:: while true do if not xs then end goto hx296 end ::hx294:: while true do goto hx295 end until true ::hx296:: repeat goto hx295 ::hx296:: while true do if not xs then end goto hx297 end ::hx295:: while true do goto hx296 end until true ::hx297:: repeat goto hx296 ::hx297:: while true do if not xs then end goto hx298 end ::hx296:: while true do goto hx297 end until true ::hx298:: repeat goto hx297 ::hx298:: while true do if not xs then end goto hx299 end ::hx297:: while true do goto hx298 end until true ::hx299:: repeat goto hx298 ::hx299:: while true do if not xs then end goto hx300 end ::hx298:: while true do goto hx299 end until true ::hx300:: repeat goto hx299 ::hx300:: while true do if not xs then end goto hx301 end ::hx299:: while true do goto hx300 end until true ::hx301:: repeat goto hx300 ::hx301:: while true do if not xs then end goto hx302 end ::hx300:: while true do goto hx301 end until true ::hx302:: repeat goto hx301 ::hx302:: while true do if not xs then end goto hx303 end ::hx301:: while true do goto hx302 end until true ::hx303:: repeat goto hx302 ::hx303:: while true do if not xs then end goto hx304 end ::hx302:: while true do goto hx303 end until true ::hx304:: repeat goto hx303 ::hx304:: while true do if not xs then end goto hx305 end ::hx303:: while true do goto hx304 end until true ::hx305:: repeat goto hx304 ::hx305:: while true do if not xs then end goto hx306 end ::hx304:: while true do goto hx305 end until true ::hx306:: repeat goto hx305 ::hx306:: while true do if not xs then end goto hx307 end ::hx305:: while true do goto hx306 end until true ::hx307:: repeat goto hx306 ::hx307:: while true do if not xs then end goto hx308 end ::hx306:: while true do goto hx307 end until true ::hx308:: repeat goto hx307 ::hx308:: while true do if not xs then end goto hx309 end ::hx307:: while true do goto hx308 end until true ::hx309:: repeat goto hx308 ::hx309:: while true do if not xs then end goto hx310 end ::hx308:: while true do goto hx309 end until true ::hx310:: repeat goto hx309 ::hx310:: while true do if not xs then end goto hx311 end ::hx309:: while true do goto hx310 end until true ::hx311:: repeat goto hx310 ::hx311:: while true do if not xs then end goto hx312 end ::hx310:: while true do goto hx311 end until true ::hx312:: repeat goto hx311 ::hx312:: while true do if not xs then end goto hx313 end ::hx311:: while true do goto hx312 end until true ::hx313:: repeat goto hx312 ::hx313:: while true do if not xs then end goto hx314 end ::hx312:: while true do goto hx313 end until true ::hx314:: repeat goto hx313 ::hx314:: while true do if not xs then end goto hx315 end ::hx313:: while true do goto hx314 end until true ::hx315:: repeat goto hx314 ::hx315:: while true do if not xs then end goto hx316 end ::hx314:: while true do goto hx315 end until true ::hx316:: repeat goto hx315 ::hx316:: while true do if not xs then end goto hx317 end ::hx315:: while true do goto hx316 end until true ::hx317:: repeat goto hx316 ::hx317:: while true do if not xs then end goto hx318 end ::hx316:: while true do goto hx317 end until true ::hx318:: repeat goto hx317 ::hx318:: while true do if not xs then end goto hx319 end ::hx317:: while true do goto hx318 end until true ::hx319:: repeat goto hx318 ::hx319:: while true do if not xs then end goto hx320 end ::hx318:: while true do goto hx319 end until true ::hx320:: repeat goto hx319 ::hx320:: while true do if not xs then end goto hx321 end ::hx319:: while true do goto hx320 end until true ::hx321:: repeat goto hx320 ::hx321:: while true do if not xs then end goto hx322 end ::hx320:: while true do goto hx321 end until true ::hx322:: repeat goto hx321 ::hx322:: while true do if not xs then end goto hx323 end ::hx321:: while true do goto hx322 end until true ::hx323:: repeat goto hx322 ::hx323:: while true do if not xs then end goto hx324 end ::hx322:: while true do goto hx323 end until true ::hx324:: repeat goto hx323 ::hx324:: while true do if not xs then end goto hx325 end ::hx323:: while true do goto hx324 end until true ::hx325:: repeat goto hx324 ::hx325:: while true do if not xs then end goto hx326 end ::hx324:: while true do goto hx325 end until true ::hx326:: repeat goto hx325 ::hx326:: while true do if not xs then end goto hx327 end ::hx325:: while true do goto hx326 end until true ::hx327:: repeat goto hx326 ::hx327:: while true do if not xs then end goto hx328 end ::hx326:: while true do goto hx327 end until true ::hx328:: repeat goto hx327 ::hx328:: while true do if not xs then end goto hx329 end ::hx327:: while true do goto hx328 end until true ::hx329:: repeat goto hx328 ::hx329:: while true do if not xs then end goto hx330 end ::hx328:: while true do goto hx329 end until true ::hx330:: repeat goto hx329 ::hx330:: while true do if not xs then end goto hx331 end ::hx329:: while true do goto hx330 end until true ::hx331:: repeat goto hx330 ::hx331:: while true do if not xs then end goto hx332 end ::hx330:: while true do goto hx331 end until true ::hx332:: repeat goto hx331 ::hx332:: while true do if not xs then end goto hx333 end ::hx331:: while true do goto hx332 end until true ::hx333:: repeat goto hx332 ::hx333:: while true do if not xs then end goto hx334 end ::hx332:: while true do goto hx333 end until true ::hx334:: repeat goto hx333 ::hx334:: while true do if not xs then end goto hx335 end ::hx333:: while true do goto hx334 end until true ::hx335:: repeat goto hx334 ::hx335:: while true do if not xs then end goto hx336 end ::hx334:: while true do goto hx335 end until true ::hx336:: repeat goto hx335 ::hx336:: while true do if not xs then end goto hx337 end ::hx335:: while true do goto hx336 end until true ::hx337:: repeat goto hx336 ::hx337:: while true do if not xs then end goto hx338 end ::hx336:: while true do goto hx337 end until true ::hx338:: repeat goto hx337 ::hx338:: while true do if not xs then end goto hx339 end ::hx337:: while true do goto hx338 end until true ::hx339:: repeat goto hx338 ::hx339:: while true do if not xs then end goto hx340 end ::hx338:: while true do goto hx339 end until true ::hx340:: repeat goto hx339 ::hx340:: while true do if not xs then end goto hx341 end ::hx339:: while true do goto hx340 end until true ::hx341:: repeat goto hx340 ::hx341:: while true do if not xs then end goto hx342 end ::hx340:: while true do goto hx341 end until true ::hx342:: repeat goto hx341 ::hx342:: while true do if not xs then end goto hx343 end ::hx341:: while true do goto hx342 end until true ::hx343:: repeat goto hx342 ::hx343:: while true do if not xs then end goto hx344 end ::hx342:: while true do goto hx343 end until true ::hx344:: repeat goto hx343 ::hx344:: while true do if not xs then end goto hx345 end ::hx343:: while true do goto hx344 end until true ::hx345:: repeat goto hx344 ::hx345:: while true do if not xs then end goto hx346 end ::hx344:: while true do goto hx345 end until true ::hx346:: repeat goto hx345 ::hx346:: while true do if not xs then end goto hx347 end ::hx345:: while true do goto hx346 end until true ::hx347:: repeat goto hx346 ::hx347:: while true do if not xs then end goto hx348 end ::hx346:: while true do goto hx347 end until true ::hx348:: repeat goto hx347 ::hx348:: while true do if not xs then end goto hx349 end ::hx347:: while true do goto hx348 end until true ::hx349:: repeat goto hx348 ::hx349:: while true do if not xs then end goto hx350 end ::hx348:: while true do goto hx349 end until true ::hx350:: repeat goto hx349 ::hx350:: while true do if not xs then end goto hx351 end ::hx349:: while true do goto hx350 end until true ::hx351:: repeat goto hx350 ::hx351:: while true do if not xs then end goto hx352 end ::hx350:: while true do goto hx351 end until true ::hx352:: repeat goto hx351 ::hx352:: while true do if not xs then end goto hx353 end ::hx351:: while true do goto hx352 end until true ::hx353:: repeat goto hx352 ::hx353:: while true do if not xs then end goto hx354 end ::hx352:: while true do goto hx353 end until true ::hx354:: repeat goto hx353 ::hx354:: while true do if not xs then end goto hx355 end ::hx353:: while true do goto hx354 end until true ::hx355:: repeat goto hx354 ::hx355:: while true do if not xs then end goto hx356 end ::hx354:: while true do goto hx355 end until true ::hx356:: repeat goto hx355 ::hx356:: while true do if not xs then end goto hx357 end ::hx355:: while true do goto hx356 end until true ::hx357:: repeat goto hx356 ::hx357:: while true do if not xs then end goto hx358 end ::hx356:: while true do goto hx357 end until true ::hx358:: repeat goto hx357 ::hx358:: while true do if not xs then end goto hx359 end ::hx357:: while true do goto hx358 end until true ::hx359:: repeat goto hx358 ::hx359:: while true do if not xs then end goto hx360 end ::hx358:: while true do goto hx359 end until true ::hx360:: repeat goto hx359 ::hx360:: while true do if not xs then end goto hx361 end ::hx359:: while true do goto hx360 end until true ::hx361:: repeat goto hx360 ::hx361:: while true do if not xs then end goto hx362 end ::hx360:: while true do goto hx361 end until true ::hx362:: repeat goto hx361 ::hx362:: while true do if not xs then end goto hx363 end ::hx361:: while true do goto hx362 end until true ::hx363:: repeat goto hx362 ::hx363:: while true do if not xs then end goto hx364 end ::hx362:: while true do goto hx363 end until true ::hx364:: repeat goto hx363 ::hx364:: while true do if not xs then end goto hx365 end ::hx363:: while true do goto hx364 end until true ::hx365:: repeat goto hx364 ::hx365:: while true do if not xs then end goto hx366 end ::hx364:: while true do goto hx365 end until true ::hx366:: repeat goto hx365 ::hx366:: while true do if not xs then end goto hx367 end ::hx365:: while true do goto hx366 end until true ::hx367:: repeat goto hx366 ::hx367:: while true do if not xs then end goto hx368 end ::hx366:: while true do goto hx367 end until true ::hx368:: repeat goto hx367 ::hx368:: while true do if not xs then end goto hx369 end ::hx367:: while true do goto hx368 end until true ::hx369:: repeat goto hx368 ::hx369:: while true do if not xs then end goto hx370 end ::hx368:: while true do goto hx369 end until true ::hx370:: repeat goto hx369 ::hx370:: while true do if not xs then end goto hx371 end ::hx369:: while true do goto hx370 end until true ::hx371:: repeat goto hx370 ::hx371:: while true do if not xs then end goto hx372 end ::hx370:: while true do goto hx371 end until true ::hx372:: repeat goto hx371 ::hx372:: while true do if not xs then end goto hx373 end ::hx371:: while true do goto hx372 end until true ::hx373:: repeat goto hx372 ::hx373:: while true do if not xs then end goto hx374 end ::hx372:: while true do goto hx373 end until true ::hx374:: repeat goto hx373 ::hx374:: while true do if not xs then end goto hx375 end ::hx373:: while true do goto hx374 end until true ::hx375:: repeat goto hx374 ::hx375:: while true do if not xs then end goto hx376 end ::hx374:: while true do goto hx375 end until true ::hx376:: repeat goto hx375 ::hx376:: while true do if not xs then end goto hx377 end ::hx375:: while true do goto hx376 end until true ::hx377:: repeat goto hx376 ::hx377:: while true do if not xs then end goto hx378 end ::hx376:: while true do goto hx377 end until true ::hx378:: repeat goto hx377 ::hx378:: while true do if not xs then end goto hx379 end ::hx377:: while true do goto hx378 end until true ::hx379:: repeat goto hx378 ::hx379:: while true do if not xs then end goto hx380 end ::hx378:: while true do goto hx379 end until true ::hx380:: repeat goto hx379 ::hx380:: while true do if not xs then end goto hx381 end ::hx379:: while true do goto hx380 end until true ::hx381:: repeat goto hx380 ::hx381:: while true do if not xs then end goto hx382 end ::hx380:: while true do goto hx381 end until true ::hx382:: repeat goto hx381 ::hx382:: while true do if not xs then end goto hx383 end ::hx381:: while true do goto hx382 end until true ::hx383:: repeat goto hx382 ::hx383:: while true do if not xs then end goto hx384 end ::hx382:: while true do goto hx383 end until true ::hx384:: repeat goto hx383 ::hx384:: while true do if not xs then end goto hx385 end ::hx383:: while true do goto hx384 end until true ::hx385:: repeat goto hx384 ::hx385:: while true do if not xs then end goto hx386 end ::hx384:: while true do goto hx385 end until true ::hx386:: repeat goto hx385 ::hx386:: while true do if not xs then end goto hx387 end ::hx385:: while true do goto hx386 end until true ::hx387:: repeat goto hx386 ::hx387:: while true do if not xs then end goto hx388 end ::hx386:: while true do goto hx387 end until true ::hx388:: repeat goto hx387 ::hx388:: while true do if not xs then end goto hx389 end ::hx387:: while true do goto hx388 end until true ::hx389:: repeat goto hx388 ::hx389:: while true do if not xs then end goto hx390 end ::hx388:: while true do goto hx389 end until true ::hx390:: repeat goto hx389 ::hx390:: while true do if not xs then end goto hx391 end ::hx389:: while true do goto hx390 end until true ::hx391:: repeat goto hx390 ::hx391:: while true do if not xs then end goto hx392 end ::hx390:: while true do goto hx391 end until true ::hx392:: repeat goto hx391 ::hx392:: while true do if not xs then end goto hx393 end ::hx391:: while true do goto hx392 end until true ::hx393:: repeat goto hx392 ::hx393:: while true do if not xs then end goto hx394 end ::hx392:: while true do goto hx393 end until true ::hx394:: repeat goto hx393 ::hx394:: while true do if not xs then end goto hx395 end ::hx393:: while true do goto hx394 end until true ::hx395:: repeat goto hx394 ::hx395:: while true do if not xs then end goto hx396 end ::hx394:: while true do goto hx395 end until true ::hx396:: repeat goto hx395 ::hx396:: while true do if not xs then end goto hx397 end ::hx395:: while true do goto hx396 end until true ::hx397:: repeat goto hx396 ::hx397:: while true do if not xs then end goto hx398 end ::hx396:: while true do goto hx397 end until true ::hx398:: repeat goto hx397 ::hx398:: while true do if not xs then end goto hx399 end ::hx397:: while true do goto hx398 end until true ::hx399:: repeat goto hx398 ::hx399:: while true do if not xs then end goto hx400 end ::hx398:: while true do goto hx399 end until true ::hx400:: repeat goto hx399 ::hx400:: while true do if not xs then end goto hx401 end ::hx399:: while true do goto hx400 end until true ::hx401:: repeat goto hx400 ::hx401:: while true do if not xs then end goto hx402 end ::hx400:: while true do goto hx401 end until true ::hx402:: repeat goto hx401 ::hx402:: while true do if not xs then end goto hx403 end ::hx401:: while true do goto hx402 end until true ::hx403:: repeat goto hx402 ::hx403:: while true do if not xs then end goto hx404 end ::hx402:: while true do goto hx403 end until true ::hx404:: repeat goto hx403 ::hx404:: while true do if not xs then end goto hx405 end ::hx403:: while true do goto hx404 end until true ::hx405:: repeat goto hx404 ::hx405:: while true do if not xs then end goto hx406 end ::hx404:: while true do goto hx405 end until true ::hx406:: repeat goto hx405 ::hx406:: while true do if not xs then end goto hx407 end ::hx405:: while true do goto hx406 end until true ::hx407:: repeat goto hx406 ::hx407:: while true do if not xs then end goto hx408 end ::hx406:: while true do goto hx407 end until true ::hx408:: repeat goto hx407 ::hx408:: while true do if not xs then end goto hx409 end ::hx407:: while true do goto hx408 end until true ::hx409:: repeat goto hx408 ::hx409:: while true do if not xs then end goto hx410 end ::hx408:: while true do goto hx409 end until true ::hx410:: repeat goto hx409 ::hx410:: while true do if not xs then end goto hx411 end ::hx409:: while true do goto hx410 end until true ::hx411:: repeat goto hx410 ::hx411:: while true do if not xs then end goto hx412 end ::hx410:: while true do goto hx411 end until true ::hx412:: repeat goto hx411 ::hx412:: while true do if not xs then end goto hx413 end ::hx411:: while true do goto hx412 end until true ::hx413:: repeat goto hx412 ::hx413:: while true do if not xs then end goto hx414 end ::hx412:: while true do goto hx413 end until true ::hx414:: repeat goto hx413 ::hx414:: while true do if not xs then end goto hx415 end ::hx413:: while true do goto hx414 end until true ::hx415:: repeat goto hx414 ::hx415:: while true do if not xs then end goto hx416 end ::hx414:: while true do goto hx415 end until true ::hx416:: repeat goto hx415 ::hx416:: while true do if not xs then end goto hx417 end ::hx415:: while true do goto hx416 end until true ::hx417:: repeat goto hx416 ::hx417:: while true do if not xs then end goto hx418 end ::hx416:: while true do goto hx417 end until true ::hx418:: repeat goto hx417 ::hx418:: while true do if not xs then end goto hx419 end ::hx417:: while true do goto hx418 end until true ::hx419:: repeat goto hx418 ::hx419:: while true do if not xs then end goto hx420 end ::hx418:: while true do goto hx419 end until true ::hx420:: repeat goto hx419 ::hx420:: while true do if not xs then end goto hx421 end ::hx419:: while true do goto hx420 end until true ::hx421:: repeat goto hx420 ::hx421:: while true do if not xs then end goto hx422 end ::hx420:: while true do goto hx421 end until true ::hx422:: repeat goto hx421 ::hx422:: while true do if not xs then end goto hx423 end ::hx421:: while true do goto hx422 end until true ::hx423:: repeat goto hx422 ::hx423:: while true do if not xs then end goto hx424 end ::hx422:: while true do goto hx423 end until true ::hx424:: repeat goto hx423 ::hx424:: while true do if not xs then end goto hx425 end ::hx423:: while true do goto hx424 end until true ::hx425:: repeat goto hx424 ::hx425:: while true do if not xs then end goto hx426 end ::hx424:: while true do goto hx425 end until true ::hx426:: repeat goto hx425 ::hx426:: while true do if not xs then end goto hx427 end ::hx425:: while true do goto hx426 end until true ::hx427:: repeat goto hx426 ::hx427:: while true do if not xs then end goto hx428 end ::hx426:: while true do goto hx427 end until true ::hx428:: repeat goto hx427 ::hx428:: while true do if not xs then end goto hx429 end ::hx427:: while true do goto hx428 end until true ::hx429:: repeat goto hx428 ::hx429:: while true do if not xs then end goto hx430 end ::hx428:: while true do goto hx429 end until true ::hx430:: repeat goto hx429 ::hx430:: while true do if not xs then end goto hx431 end ::hx429:: while true do goto hx430 end until true ::hx431:: repeat goto hx430 ::hx431:: while true do if not xs then end goto hx432 end ::hx430:: while true do goto hx431 end until true ::hx432:: repeat goto hx431 ::hx432:: while true do if not xs then end goto hx433 end ::hx431:: while true do goto hx432 end until true ::hx433:: repeat goto hx432 ::hx433:: while true do if not xs then end goto hx434 end ::hx432:: while true do goto hx433 end until true ::hx434:: repeat goto hx433 ::hx434:: while true do if not xs then end goto hx435 end ::hx433:: while true do goto hx434 end until true ::hx435:: repeat goto hx434 ::hx435:: while true do if not xs then end goto hx436 end ::hx434:: while true do goto hx435 end until true ::hx436:: repeat goto hx435 ::hx436:: while true do if not xs then end goto hx437 end ::hx435:: while true do goto hx436 end until true ::hx437:: repeat goto hx436 ::hx437:: while true do if not xs then end goto hx438 end ::hx436:: while true do goto hx437 end until true ::hx438:: repeat goto hx437 ::hx438:: while true do if not xs then end goto hx439 end ::hx437:: while true do goto hx438 end until true ::hx439:: repeat goto hx438 ::hx439:: while true do if not xs then end goto hx440 end ::hx438:: while true do goto hx439 end until true ::hx440:: repeat goto hx439 ::hx440:: while true do if not xs then end goto hx441 end ::hx439:: while true do goto hx440 end until true ::hx441:: repeat goto hx440 ::hx441:: while true do if not xs then end goto hx442 end ::hx440:: while true do goto hx441 end until true ::hx442:: repeat goto hx441 ::hx442:: while true do if not xs then end goto hx443 end ::hx441:: while true do goto hx442 end until true ::hx443:: repeat goto hx442 ::hx443:: while true do if not xs then end goto hx444 end ::hx442:: while true do goto hx443 end until true ::hx444:: repeat goto hx443 ::hx444:: while true do if not xs then end goto hx445 end ::hx443:: while true do goto hx444 end until true ::hx445:: repeat goto hx444 ::hx445:: while true do if not xs then end goto hx446 end ::hx444:: while true do goto hx445 end until true ::hx446:: repeat goto hx445 ::hx446:: while true do if not xs then end goto hx447 end ::hx445:: while true do goto hx446 end until true ::hx447:: repeat goto hx446 ::hx447:: while true do if not xs then end goto hx448 end ::hx446:: while true do goto hx447 end until true ::hx448:: repeat goto hx447 ::hx448:: while true do if not xs then end goto hx449 end ::hx447:: while true do goto hx448 end until true ::hx449:: repeat goto hx448 ::hx449:: while true do if not xs then end goto hx450 end ::hx448:: while true do goto hx449 end until true ::hx450:: repeat goto hx449 ::hx450:: while true do if not xs then end goto hx451 end ::hx449:: while true do goto hx450 end until true ::hx451:: repeat goto hx450 ::hx451:: while true do if not xs then end goto hx452 end ::hx450:: while true do goto hx451 end until true ::hx452:: repeat goto hx451 ::hx452:: while true do if not xs then end goto hx453 end ::hx451:: while true do goto hx452 end until true ::hx453:: repeat goto hx452 ::hx453:: while true do if not xs then end goto hx454 end ::hx452:: while true do goto hx453 end until true ::hx454:: repeat goto hx453 ::hx454:: while true do if not xs then end goto hx455 end ::hx453:: while true do goto hx454 end until true ::hx455:: repeat goto hx454 ::hx455:: while true do if not xs then end goto hx456 end ::hx454:: while true do goto hx455 end until true ::hx456:: repeat goto hx455 ::hx456:: while true do if not xs then end goto hx457 end ::hx455:: while true do goto hx456 end until true ::hx457:: repeat goto hx456 ::hx457:: while true do if not xs then end goto hx458 end ::hx456:: while true do goto hx457 end until true ::hx458:: repeat goto hx457 ::hx458:: while true do if not xs then end goto hx459 end ::hx457:: while true do goto hx458 end until true ::hx459:: repeat goto hx458 ::hx459:: while true do if not xs then end goto hx460 end ::hx458:: while true do goto hx459 end until true ::hx460:: repeat goto hx459 ::hx460:: while true do if not xs then end goto hx461 end ::hx459:: while true do goto hx460 end until true ::hx461:: repeat goto hx460 ::hx461:: while true do if not xs then end goto hx462 end ::hx460:: while true do goto hx461 end until true ::hx462:: repeat goto hx461 ::hx462:: while true do if not xs then end goto hx463 end ::hx461:: while true do goto hx462 end until true ::hx463:: repeat goto hx462 ::hx463:: while true do if not xs then end goto hx464 end ::hx462:: while true do goto hx463 end until true ::hx464:: repeat goto hx463 ::hx464:: while true do if not xs then end goto hx465 end ::hx463:: while true do goto hx464 end until true ::hx465:: repeat goto hx464 ::hx465:: while true do if not xs then end goto hx466 end ::hx464:: while true do goto hx465 end until true ::hx466:: repeat goto hx465 ::hx466:: while true do if not xs then end goto hx467 end ::hx465:: while true do goto hx466 end until true ::hx467:: repeat goto hx466 ::hx467:: while true do if not xs then end goto hx468 end ::hx466:: while true do goto hx467 end until true ::hx468:: repeat goto hx467 ::hx468:: while true do if not xs then end goto hx469 end ::hx467:: while true do goto hx468 end until true ::hx469:: repeat goto hx468 ::hx469:: while true do if not xs then end goto hx470 end ::hx468:: while true do goto hx469 end until true ::hx470:: repeat goto hx469 ::hx470:: while true do if not xs then end goto hx471 end ::hx469:: while true do goto hx470 end until true ::hx471:: repeat goto hx470 ::hx471:: while true do if not xs then end goto hx472 end ::hx470:: while true do goto hx471 end until true ::hx472:: repeat goto hx471 ::hx472:: while true do if not xs then end goto hx473 end ::hx471:: while true do goto hx472 end until true ::hx473:: repeat goto hx472 ::hx473:: while true do if not xs then end goto hx474 end ::hx472:: while true do goto hx473 end until true ::hx474:: repeat goto hx473 ::hx474:: while true do if not xs then end goto hx475 end ::hx473:: while true do goto hx474 end until true ::hx475:: repeat goto hx474 ::hx475:: while true do if not xs then end goto hx476 end ::hx474:: while true do goto hx475 end until true ::hx476:: repeat goto hx475 ::hx476:: while true do if not xs then end goto hx477 end ::hx475:: while true do goto hx476 end until true ::hx477:: repeat goto hx476 ::hx477:: while true do if not xs then end goto hx478 end ::hx476:: while true do goto hx477 end until true ::hx478:: repeat goto hx477 ::hx478:: while true do if not xs then end goto hx479 end ::hx477:: while true do goto hx478 end until true ::hx479:: repeat goto hx478 ::hx479:: while true do if not xs then end goto hx480 end ::hx478:: while true do goto hx479 end until true ::hx480:: repeat goto hx479 ::hx480:: while true do if not xs then end goto hx481 end ::hx479:: while true do goto hx480 end until true ::hx481:: repeat goto hx480 ::hx481:: while true do if not xs then end goto hx482 end ::hx480:: while true do goto hx481 end until true ::hx482:: repeat goto hx481 ::hx482:: while true do if not xs then end goto hx483 end ::hx481:: while true do goto hx482 end until true ::hx483:: repeat goto hx482 ::hx483:: while true do if not xs then end goto hx484 end ::hx482:: while true do goto hx483 end until true ::hx484:: repeat goto hx483 ::hx484:: while true do if not xs then end goto hx485 end ::hx483:: while true do goto hx484 end until true ::hx485:: repeat goto hx484 ::hx485:: while true do if not xs then end goto hx486 end ::hx484:: while true do goto hx485 end until true ::hx486:: repeat goto hx485 ::hx486:: while true do if not xs then end goto hx487 end ::hx485:: while true do goto hx486 end until true ::hx487:: repeat goto hx486 ::hx487:: while true do if not xs then end goto hx488 end ::hx486:: while true do goto hx487 end until true ::hx488:: repeat goto hx487 ::hx488:: while true do if not xs then end goto hx489 end ::hx487:: while true do goto hx488 end until true ::hx489:: repeat goto hx488 ::hx489:: while true do if not xs then end goto hx490 end ::hx488:: while true do goto hx489 end until true ::hx490:: repeat goto hx489 ::hx490:: while true do if not xs then end goto hx491 end ::hx489:: while true do goto hx490 end until true ::hx491:: repeat goto hx490 ::hx491:: while true do if not xs then end goto hx492 end ::hx490:: while true do goto hx491 end until true ::hx492:: repeat goto hx491 ::hx492:: while true do if not xs then end goto hx493 end ::hx491:: while true do goto hx492 end until true ::hx493:: repeat goto hx492 ::hx493:: while true do if not xs then end goto hx494 end ::hx492:: while true do goto hx493 end until true ::hx494:: repeat goto hx493 ::hx494:: while true do if not xs then end goto hx495 end ::hx493:: while true do goto hx494 end until true ::hx495:: repeat goto hx494 ::hx495:: while true do if not xs then end goto hx496 end ::hx494:: while true do goto hx495 end until true ::hx496:: repeat goto hx495 ::hx496:: while true do if not xs then end goto hx497 end ::hx495:: while true do goto hx496 end until true ::hx497:: repeat goto hx496 ::hx497:: while true do if not xs then end goto hx498 end ::hx496:: while true do goto hx497 end until true ::hx498:: repeat goto hx497 ::hx498:: while true do if not xs then end goto hx499 end ::hx497:: while true do goto hx498 end until true ::hx499:: repeat goto hx498 ::hx499:: while true do if not xs then end goto hx500 end ::hx498:: while true do goto hx499 end until true ::hx500:: repeat goto hx499 ::hx500:: while true do if not xs then end goto hx501 end ::hx499:: while true do goto hx500 end until true ::hx501:: repeat goto hx500 ::hx501:: while true do if not xs then end goto hx502 end ::hx500:: while true do goto hx501 end until true ::hx502:: repeat goto hx501 ::hx502:: while true do if not xs then end goto hx503 end ::hx501:: while true do goto hx502 end until true ::hx503:: repeat goto hx502 ::hx503:: while true do if not xs then end goto hx504 end ::hx502:: while true do goto hx503 end until true ::hx504:: repeat goto hx503 ::hx504:: while true do if not xs then end goto hx505 end ::hx503:: while true do goto hx504 end until true ::hx505:: repeat goto hx504 ::hx505:: while true do if not xs then end goto hx506 end ::hx504:: while true do goto hx505 end until true ::hx506:: repeat goto hx505 ::hx506:: while true do if not xs then end goto hx507 end ::hx505:: while true do goto hx506 end until true ::hx507:: repeat goto hx506 ::hx507:: while true do if not xs then end goto hx508 end ::hx506:: while true do goto hx507 end until true ::hx508:: repeat goto hx507 ::hx508:: while true do if not xs then end goto hx509 end ::hx507:: while true do goto hx508 end until true ::hx509:: repeat goto hx508 ::hx509:: while true do if not xs then end goto hx510 end ::hx508:: while true do goto hx509 end until true ::hx510:: repeat goto hx509 ::hx510:: while true do if not xs then end goto hx511 end ::hx509:: while true do goto hx510 end until true ::hx511:: repeat goto hx510 ::hx511:: while true do if not xs then end goto hx512 end ::hx510:: while true do goto hx511 end until true ::hx512:: repeat goto hx511 ::hx512:: while true do if not xs then end goto hx513 end ::hx511:: while true do goto hx512 end until true ::hx513:: repeat goto hx512 ::hx513:: while true do if not xs then end goto hx514 end ::hx512:: while true do goto hx513 end until true ::hx514:: repeat goto hx513 ::hx514:: while true do if not xs then end goto hx515 end ::hx513:: while true do goto hx514 end until true ::hx515:: repeat goto hx514 ::hx515:: while true do if not xs then end goto hx516 end ::hx514:: while true do goto hx515 end until true ::hx516:: repeat goto hx515 ::hx516:: while true do if not xs then end goto hx517 end ::hx515:: while true do goto hx516 end until true ::hx517:: repeat goto hx516 ::hx517:: while true do if not xs then end goto hx518 end ::hx516:: while true do goto hx517 end until true ::hx518:: repeat goto hx517 ::hx518:: while true do if not xs then end goto hx519 end ::hx517:: while true do goto hx518 end until true ::hx519:: repeat goto hx518 ::hx519:: while true do if not xs then end goto hx520 end ::hx518:: while true do goto hx519 end until true ::hx520:: repeat goto hx519 ::hx520:: while true do if not xs then end goto hx521 end ::hx519:: while true do goto hx520 end until true ::hx521:: repeat goto hx520 ::hx521:: while true do if not xs then end goto hx522 end ::hx520:: while true do goto hx521 end until true ::hx522:: repeat goto hx521 ::hx522:: while true do if not xs then end goto hx523 end ::hx521:: while true do goto hx522 end until true ::hx523:: repeat goto hx522 ::hx523:: while true do if not xs then end goto hx524 end ::hx522:: while true do goto hx523 end until true ::hx524:: repeat goto hx523 ::hx524:: while true do if not xs then end goto hx525 end ::hx523:: while true do goto hx524 end until true ::hx525:: repeat goto hx524 ::hx525:: while true do if not xs then end goto hx526 end ::hx524:: while true do goto hx525 end until true ::hx526:: repeat goto hx525 ::hx526:: while true do if not xs then end goto hx527 end ::hx525:: while true do goto hx526 end until true ::hx527:: repeat goto hx526 ::hx527:: while true do if not xs then end goto hx528 end ::hx526:: while true do goto hx527 end until true ::hx528:: repeat goto hx527 ::hx528:: while true do if not xs then end goto hx529 end ::hx527:: while true do goto hx528 end until true ::hx529:: repeat goto hx528 ::hx529:: while true do if not xs then end goto hx530 end ::hx528:: while true do goto hx529 end until true ::hx530:: repeat goto hx529 ::hx530:: while true do if not xs then end goto hx531 end ::hx529:: while true do goto hx530 end until true ::hx531:: repeat goto hx530 ::hx531:: while true do if not xs then end goto hx532 end ::hx530:: while true do goto hx531 end until true ::hx532:: repeat goto hx531 ::hx532:: while true do if not xs then end goto hx533 end ::hx531:: while true do goto hx532 end until true ::hx533:: repeat goto hx532 ::hx533:: while true do if not xs then end goto hx534 end ::hx532:: while true do goto hx533 end until true ::hx534:: repeat goto hx533 ::hx534:: while true do if not xs then end goto hx535 end ::hx533:: while true do goto hx534 end until true ::hx535:: repeat goto hx534 ::hx535:: while true do if not xs then end goto hx536 end ::hx534:: while true do goto hx535 end until true ::hx536:: repeat goto hx535 ::hx536:: while true do if not xs then end goto hx537 end ::hx535:: while true do goto hx536 end until true ::hx537:: repeat goto hx536 ::hx537:: while true do if not xs then end goto hx538 end ::hx536:: while true do goto hx537 end until true ::hx538:: repeat goto hx537 ::hx538:: while true do if not xs then end goto hx539 end ::hx537:: while true do goto hx538 end until true ::hx539:: repeat goto hx538 ::hx539:: while true do if not xs then end goto hx540 end ::hx538:: while true do goto hx539 end until true ::hx540:: repeat goto hx539 ::hx540:: while true do if not xs then end goto hx541 end ::hx539:: while true do goto hx540 end until true ::hx541:: repeat goto hx540 ::hx541:: while true do if not xs then end goto hx542 end ::hx540:: while true do goto hx541 end until true ::hx542:: repeat goto hx541 ::hx542:: while true do if not xs then end goto hx543 end ::hx541:: while true do goto hx542 end until true ::hx543:: repeat goto hx542 ::hx543:: while true do if not xs then end goto hx544 end ::hx542:: while true do goto hx543 end until true ::hx544:: repeat goto hx543 ::hx544:: while true do if not xs then end goto hx545 end ::hx543:: while true do goto hx544 end until true ::hx545:: repeat goto hx544 ::hx545:: while true do if not xs then end goto hx546 end ::hx544:: while true do goto hx545 end until true ::hx546:: repeat goto hx545 ::hx546:: while true do if not xs then end goto hx547 end ::hx545:: while true do goto hx546 end until true ::hx547:: repeat goto hx546 ::hx547:: while true do if not xs then end goto hx548 end ::hx546:: while true do goto hx547 end until true ::hx548:: repeat goto hx547 ::hx548:: while true do if not xs then end goto hx549 end ::hx547:: while true do goto hx548 end until true ::hx549:: repeat goto hx548 ::hx549:: while true do if not xs then end goto hx550 end ::hx548:: while true do goto hx549 end until true ::hx550:: repeat goto hx549 ::hx550:: while true do if not xs then end goto hx551 end ::hx549:: while true do goto hx550 end until true ::hx551:: repeat goto hx550 ::hx551:: while true do if not xs then end goto hx552 end ::hx550:: while true do goto hx551 end until true ::hx552:: repeat goto hx551 ::hx552:: while true do if not xs then end goto hx553 end ::hx551:: while true do goto hx552 end until true ::hx553:: repeat goto hx552 ::hx553:: while true do if not xs then end goto hx554 end ::hx552:: while true do goto hx553 end until true ::hx554:: repeat goto hx553 ::hx554:: while true do if not xs then end goto hx555 end ::hx553:: while true do goto hx554 end until true ::hx555:: repeat goto hx554 ::hx555:: while true do if not xs then end goto hx556 end ::hx554:: while true do goto hx555 end until true ::hx556:: repeat goto hx555 ::hx556:: while true do if not xs then end goto hx557 end ::hx555:: while true do goto hx556 end until true ::hx557:: repeat goto hx556 ::hx557:: while true do if not xs then end goto hx558 end ::hx556:: while true do goto hx557 end until true ::hx558:: repeat goto hx557 ::hx558:: while true do if not xs then end goto hx559 end ::hx557:: while true do goto hx558 end until true ::hx559:: repeat goto hx558 ::hx559:: while true do if not xs then end goto hx560 end ::hx558:: while true do goto hx559 end until true ::hx560:: repeat goto hx559 ::hx560:: while true do if not xs then end goto hx561 end ::hx559:: while true do goto hx560 end until true ::hx561:: repeat goto hx560 ::hx561:: while true do if not xs then end goto hx562 end ::hx560:: while true do goto hx561 end until true ::hx562:: repeat goto hx561 ::hx562:: while true do if not xs then end goto hx563 end ::hx561:: while true do goto hx562 end until true ::hx563:: repeat goto hx562 ::hx563:: while true do if not xs then end goto hx564 end ::hx562:: while true do goto hx563 end until true ::hx564:: repeat goto hx563 ::hx564:: while true do if not xs then end goto hx565 end ::hx563:: while true do goto hx564 end until true ::hx565:: repeat goto hx564 ::hx565:: while true do if not xs then end goto hx566 end ::hx564:: while true do goto hx565 end until true ::hx566:: repeat goto hx565 ::hx566:: while true do if not xs then end goto hx567 end ::hx565:: while true do goto hx566 end until true ::hx567:: repeat goto hx566 ::hx567:: while true do if not xs then end goto hx568 end ::hx566:: while true do goto hx567 end until true ::hx568:: repeat goto hx567 ::hx568:: while true do if not xs then end goto hx569 end ::hx567:: while true do goto hx568 end until true ::hx569:: repeat goto hx568 ::hx569:: while true do if not xs then end goto hx570 end ::hx568:: while true do goto hx569 end until true ::hx570:: repeat goto hx569 ::hx570:: while true do if not xs then end goto hx571 end ::hx569:: while true do goto hx570 end until true ::hx571:: repeat goto hx570 ::hx571:: while true do if not xs then end goto hx572 end ::hx570:: while true do goto hx571 end until true ::hx572:: repeat goto hx571 ::hx572:: while true do if not xs then end goto hx573 end ::hx571:: while true do goto hx572 end until true ::hx573:: repeat goto hx572 ::hx573:: while true do if not xs then end goto hx574 end ::hx572:: while true do goto hx573 end until true ::hx574:: repeat goto hx573 ::hx574:: while true do if not xs then end goto hx575 end ::hx573:: while true do goto hx574 end until true ::hx575:: repeat goto hx574 ::hx575:: while true do if not xs then end goto hx576 end ::hx574:: while true do goto hx575 end until true ::hx576:: repeat goto hx575 ::hx576:: while true do if not xs then end goto hx577 end ::hx575:: while true do goto hx576 end until true ::hx577:: repeat goto hx576 ::hx577:: while true do if not xs then end goto hx578 end ::hx576:: while true do goto hx577 end until true ::hx578:: repeat goto hx577 ::hx578:: while true do if not xs then end goto hx579 end ::hx577:: while true do goto hx578 end until true ::hx579:: repeat goto hx578 ::hx579:: while true do if not xs then end goto hx580 end ::hx578:: while true do goto hx579 end until true ::hx580:: repeat goto hx579 ::hx580:: while true do if not xs then end goto hx581 end ::hx579:: while true do goto hx580 end until true ::hx581:: repeat goto hx580 ::hx581:: while true do if not xs then end goto hx582 end ::hx580:: while true do goto hx581 end until true ::hx582:: repeat goto hx581 ::hx582:: while true do if not xs then end goto hx583 end ::hx581:: while true do goto hx582 end until true ::hx583:: repeat goto hx582 ::hx583:: while true do if not xs then end goto hx584 end ::hx582:: while true do goto hx583 end until true ::hx584:: repeat goto hx583 ::hx584:: while true do if not xs then end goto hx585 end ::hx583:: while true do goto hx584 end until true ::hx585:: repeat goto hx584 ::hx585:: while true do if not xs then end goto hx586 end ::hx584:: while true do goto hx585 end until true ::hx586:: repeat goto hx585 ::hx586:: while true do if not xs then end goto hx587 end ::hx585:: while true do goto hx586 end until true ::hx587:: repeat goto hx586 ::hx587:: while true do if not xs then end goto hx588 end ::hx586:: while true do goto hx587 end until true ::hx588:: repeat goto hx587 ::hx588:: while true do if not xs then end goto hx589 end ::hx587:: while true do goto hx588 end until true ::hx589:: repeat goto hx588 ::hx589:: while true do if not xs then end goto hx590 end ::hx588:: while true do goto hx589 end until true ::hx590:: repeat goto hx589 ::hx590:: while true do if not xs then end goto hx591 end ::hx589:: while true do goto hx590 end until true ::hx591:: repeat goto hx590 ::hx591:: while true do if not xs then end goto hx592 end ::hx590:: while true do goto hx591 end until true ::hx592:: repeat goto hx591 ::hx592:: while true do if not xs then end goto hx593 end ::hx591:: while true do goto hx592 end until true ::hx593:: repeat goto hx592 ::hx593:: while true do if not xs then end goto hx594 end ::hx592:: while true do goto hx593 end until true ::hx594:: repeat goto hx593 ::hx594:: while true do if not xs then end goto hx595 end ::hx593:: while true do goto hx594 end until true ::hx595:: repeat goto hx594 ::hx595:: while true do if not xs then end goto hx596 end ::hx594:: while true do goto hx595 end until true ::hx596:: repeat goto hx595 ::hx596:: while true do if not xs then end goto hx597 end ::hx595:: while true do goto hx596 end until true ::hx597:: repeat goto hx596 ::hx597:: while true do if not xs then end goto hx598 end ::hx596:: while true do goto hx597 end until true ::hx598:: repeat goto hx597 ::hx598:: while true do if not xs then end goto hx599 end ::hx597:: while true do goto hx598 end until true ::hx599:: repeat goto hx598 ::hx599:: while true do if not xs then end goto hx600 end ::hx598:: while true do goto hx599 end until true ::hx600:: repeat goto hx599 ::hx600:: while true do if not xs then end goto hx601 end ::hx599:: while true do goto hx600 end until true ::hx601:: repeat goto hx600 ::hx601:: while true do if not xs then end goto hx602 end ::hx600:: while true do goto hx601 end until true ::hx602:: repeat goto hx601 ::hx602:: while true do if not xs then end goto hx603 end ::hx601:: while true do goto hx602 end until true ::hx603:: repeat goto hx602 ::hx603:: while true do if not xs then end goto hx604 end ::hx602:: while true do goto hx603 end until true ::hx604:: repeat goto hx603 ::hx604:: while true do if not xs then end goto hx605 end ::hx603:: while true do goto hx604 end until true ::hx605:: repeat goto hx604 ::hx605:: while true do if not xs then end goto hx606 end ::hx604:: while true do goto hx605 end until true ::hx606:: repeat goto hx605 ::hx606:: while true do if not xs then end goto hx607 end ::hx605:: while true do goto hx606 end until true ::hx607:: repeat goto hx606 ::hx607:: while true do if not xs then end goto hx608 end ::hx606:: while true do goto hx607 end until true ::hx608:: repeat goto hx607 ::hx608:: while true do if not xs then end goto hx609 end ::hx607:: while true do goto hx608 end until true ::hx609:: repeat goto hx608 ::hx609:: while true do if not xs then end goto hx610 end ::hx608:: while true do goto hx609 end until true ::hx610:: repeat goto hx609 ::hx610:: while true do if not xs then end goto hx611 end ::hx609:: while true do goto hx610 end until true ::hx611:: repeat goto hx610 ::hx611:: while true do if not xs then end goto hx612 end ::hx610:: while true do goto hx611 end until true ::hx612:: repeat goto hx611 ::hx612:: while true do if not xs then end goto hx613 end ::hx611:: while true do goto hx612 end until true ::hx613:: repeat goto hx612 ::hx613:: while true do if not xs then end goto hx614 end ::hx612:: while true do goto hx613 end until true ::hx614:: repeat goto hx613 ::hx614:: while true do if not xs then end goto hx615 end ::hx613:: while true do goto hx614 end until true ::hx615:: repeat goto hx614 ::hx615:: while true do if not xs then end goto hx616 end ::hx614:: while true do goto hx615 end until true ::hx616:: repeat goto hx615 ::hx616:: while true do if not xs then end goto hx617 end ::hx615:: while true do goto hx616 end until true ::hx617:: repeat goto hx616 ::hx617:: while true do if not xs then end goto hx618 end ::hx616:: while true do goto hx617 end until true ::hx618:: repeat goto hx617 ::hx618:: while true do if not xs then end goto hx619 end ::hx617:: while true do goto hx618 end until true ::hx619:: repeat goto hx618 ::hx619:: while true do if not xs then end goto hx620 end ::hx618:: while true do goto hx619 end until true ::hx620:: repeat goto hx619 ::hx620:: while true do if not xs then end goto hx621 end ::hx619:: while true do goto hx620 end until true ::hx621:: repeat goto hx620 ::hx621:: while true do if not xs then end goto hx622 end ::hx620:: while true do goto hx621 end until true ::hx622:: repeat goto hx621 ::hx622:: while true do if not xs then end goto hx623 end ::hx621:: while true do goto hx622 end until true ::hx623:: repeat goto hx622 ::hx623:: while true do if not xs then end goto hx624 end ::hx622:: while true do goto hx623 end until true ::hx624:: repeat goto hx623 ::hx624:: while true do if not xs then end goto hx625 end ::hx623:: while true do goto hx624 end until true ::hx625:: repeat goto hx624 ::hx625:: while true do if not xs then end goto hx626 end ::hx624:: while true do goto hx625 end until true ::hx626:: repeat goto hx625 ::hx626:: while true do if not xs then end goto hx627 end ::hx625:: while true do goto hx626 end until true ::hx627:: repeat goto hx626 ::hx627:: while true do if not xs then end goto hx628 end ::hx626:: while true do goto hx627 end until true ::hx628:: repeat goto hx627 ::hx628:: while true do if not xs then end goto hx629 end ::hx627:: while true do goto hx628 end until true ::hx629:: repeat goto hx628 ::hx629:: while true do if not xs then end goto hx630 end ::hx628:: while true do goto hx629 end until true ::hx630:: repeat goto hx629 ::hx630:: while true do if not xs then end goto hx631 end ::hx629:: while true do goto hx630 end until true ::hx631:: repeat goto hx630 ::hx631:: while true do if not xs then end goto hx632 end ::hx630:: while true do goto hx631 end until true ::hx632:: repeat goto hx631 ::hx632:: while true do if not xs then end goto hx633 end ::hx631:: while true do goto hx632 end until true ::hx633:: repeat goto hx632 ::hx633:: while true do if not xs then end goto hx634 end ::hx632:: while true do goto hx633 end until true ::hx634:: repeat goto hx633 ::hx634:: while true do if not xs then end goto hx635 end ::hx633:: while true do goto hx634 end until true ::hx635:: repeat goto hx634 ::hx635:: while true do if not xs then end goto hx636 end ::hx634:: while true do goto hx635 end until true ::hx636:: repeat goto hx635 ::hx636:: while true do if not xs then end goto hx637 end ::hx635:: while true do goto hx636 end until true ::hx637:: repeat goto hx636 ::hx637:: while true do if not xs then end goto hx638 end ::hx636:: while true do goto hx637 end until true ::hx638:: repeat goto hx637 ::hx638:: while true do if not xs then end goto hx639 end ::hx637:: while true do goto hx638 end until true ::hx639:: repeat goto hx638 ::hx639:: while true do if not xs then end goto hx640 end ::hx638:: while true do goto hx639 end until true ::hx640:: repeat goto hx639 ::hx640:: while true do if not xs then end goto hx641 end ::hx639:: while true do goto hx640 end until true ::hx641:: repeat goto hx640 ::hx641:: while true do if not xs then end goto hx642 end ::hx640:: while true do goto hx641 end until true ::hx642:: repeat goto hx641 ::hx642:: while true do if not xs then end goto hx643 end ::hx641:: while true do goto hx642 end until true ::hx643:: repeat goto hx642 ::hx643:: while true do if not xs then end goto hx644 end ::hx642:: while true do goto hx643 end until true ::hx644:: repeat goto hx643 ::hx644:: while true do if not xs then end goto hx645 end ::hx643:: while true do goto hx644 end until true ::hx645:: repeat goto hx644 ::hx645:: while true do if not xs then end goto hx646 end ::hx644:: while true do goto hx645 end until true ::hx646:: repeat goto hx645 ::hx646:: while true do if not xs then end goto hx647 end ::hx645:: while true do goto hx646 end until true ::hx647:: repeat goto hx646 ::hx647:: while true do if not xs then end goto hx648 end ::hx646:: while true do goto hx647 end until true ::hx648:: repeat goto hx647 ::hx648:: while true do if not xs then end goto hx649 end ::hx647:: while true do goto hx648 end until true ::hx649:: repeat goto hx648 ::hx649:: while true do if not xs then end goto hx650 end ::hx648:: while true do goto hx649 end until true ::hx650:: repeat goto hx649 ::hx650:: while true do if not xs then end goto hx651 end ::hx649:: while true do goto hx650 end until true ::hx651:: repeat goto hx650 ::hx651:: while true do if not xs then end goto hx652 end ::hx650:: while true do goto hx651 end until true ::hx652:: repeat goto hx651 ::hx652:: while true do if not xs then end goto hx653 end ::hx651:: while true do goto hx652 end until true ::hx653:: repeat goto hx652 ::hx653:: while true do if not xs then end goto hx654 end ::hx652:: while true do goto hx653 end until true ::hx654:: repeat goto hx653 ::hx654:: while true do if not xs then end goto hx655 end ::hx653:: while true do goto hx654 end until true ::hx655:: repeat goto hx654 ::hx655:: while true do if not xs then end goto hx656 end ::hx654:: while true do goto hx655 end until true ::hx656:: repeat goto hx655 ::hx656:: while true do if not xs then end goto hx657 end ::hx655:: while true do goto hx656 end until true ::hx657:: repeat goto hx656 ::hx657:: while true do if not xs then end goto hx658 end ::hx656:: while true do goto hx657 end until true ::hx658:: repeat goto hx657 ::hx658:: while true do if not xs then end goto hx659 end ::hx657:: while true do goto hx658 end until true ::hx659:: repeat goto hx658 ::hx659:: while true do if not xs then end goto hx660 end ::hx658:: while true do goto hx659 end until true ::hx660:: repeat goto hx659 ::hx660:: while true do if not xs then end goto hx661 end ::hx659:: while true do goto hx660 end until true ::hx661:: repeat goto hx660 ::hx661:: while true do if not xs then end goto hx662 end ::hx660:: while true do goto hx661 end until true ::hx662:: repeat goto hx661 ::hx662:: while true do if not xs then end goto hx663 end ::hx661:: while true do goto hx662 end until true ::hx663:: repeat goto hx662 ::hx663:: while true do if not xs then end goto hx664 end ::hx662:: while true do goto hx663 end until true ::hx664:: repeat goto hx663 ::hx664:: while true do if not xs then end goto hx665 end ::hx663:: while true do goto hx664 end until true ::hx665:: repeat goto hx664 ::hx665:: while true do if not xs then end goto hx666 end ::hx664:: while true do goto hx665 end until true ::hx666:: repeat goto hx665 ::hx666:: while true do if not xs then end goto hx667 end ::hx665:: while true do goto hx666 end until true ::hx667:: ]]
68,009
68,009
0.727889
b1a65c7b53717459effb0614b8010cd8d5dd45af
17,158
sql
SQL
src/main/resources/sql/h2/import-tests.sql
t3ctechnologies/Anchel_Core
6c3f9c5787d181453dbebfdeb98aa8e5669a85ee
[ "MIT" ]
null
null
null
src/main/resources/sql/h2/import-tests.sql
t3ctechnologies/Anchel_Core
6c3f9c5787d181453dbebfdeb98aa8e5669a85ee
[ "MIT" ]
null
null
null
src/main/resources/sql/h2/import-tests.sql
t3ctechnologies/Anchel_Core
6c3f9c5787d181453dbebfdeb98aa8e5669a85ee
[ "MIT" ]
null
null
null
-- h2 dedicated sequence CREATE SEQUENCE IF NOT EXISTS h2_sequence INCREMENT BY 100000 START WITH 1 CACHE 1; -- ldap connection INSERT INTO ldap_connection(id, uuid, label, provider_url, security_auth, security_principal, security_credentials, creation_date, modification_date) VALUES (50, 'a9b2058f-811f-44b7-8fe5-7a51961eb098', 'baseLDAP', 'ldap://localhost:33389', 'simple', null, null, now(), now()); -- user domain pattern INSERT INTO ldap_pattern( id, uuid, pattern_type, label, description, auth_command, search_user_command, system, auto_complete_command_on_first_and_last_name, auto_complete_command_on_all_attributes, search_page_size, search_size_limit, completion_page_size, completion_size_limit, creation_date, modification_date) VALUES ( 50, 'e4db2f22-2496-4b7d-b5e5-232872652c68', 'USER_LDAP_PATTERN', 'basePattern', 'basePattern', 'ldap.search(domain, "(&(objectClass=*)(mail=*)(givenName=*)(sn=*)(|(mail="+login+")(uid="+login+")))");', 'ldap.search(domain, "(&(objectClass=*)(mail="+mail+")(givenName="+first_name+")(sn="+last_name+"))");', false, 'ldap.search(domain, "(&(objectClass=*)(mail=*)(givenName=*)(sn=*)(|(&(sn=" + first_name + ")(givenName=" + last_name + "))(&(sn=" + last_name + ")(givenName=" + first_name + "))))");', 'ldap.search(domain, "(&(objectClass=*)(mail=*)(givenName=*)(sn=*)(|(mail=" + pattern + ")(sn=" + pattern + ")(givenName=" + pattern + ")))");', 0, 100, 0, 10, now(), now()); INSERT INTO ldap_attribute(id, field, attribute, sync, system, enable, ldap_pattern_id, completion) VALUES (50, 'user_mail', 'mail', false, true, true, 50, true); INSERT INTO ldap_attribute(id, field, attribute, sync, system, enable, ldap_pattern_id, completion) VALUES (51, 'user_firstname', 'givenName', false, true, true, 50, true); INSERT INTO ldap_attribute(id, field, attribute, sync, system, enable, ldap_pattern_id, completion) VALUES (52, 'user_lastname', 'sn', false, true, true, 50, true); INSERT INTO ldap_attribute(id, field, attribute, sync, system, enable, ldap_pattern_id, completion) VALUES (53, 'user_uid', 'uid', false, true, true, 50, false); -- user provider INSERT INTO user_provider(id, uuid, provider_type, base_dn, creation_date, modification_date, ldap_connection_id, ldap_pattern_id) VALUES (50, '93fd0e8b-fa4c-495d-978f-132e157c2292', 'LDAP_PROVIDER', 'dc=t3c,dc=io', now(), now(), 50, 50); -- Top domain (example domain) INSERT INTO domain_abstract(id, type , uuid, label, enable, template, description, default_role, default_locale, user_provider_id, domain_policy_id, parent_id, auth_show_order, mailconfig_id, welcome_messages_id) VALUES (2, 1, 'MyDomain', 'MyDomain', true, false, 'a simple description', 0, 'en', null, 1, 1, 2, null, 1); -- Sub domain (example domain) INSERT INTO domain_abstract(id, type , uuid, label, enable, template, description, default_role, default_locale, user_provider_id, domain_policy_id, parent_id, auth_show_order, mailconfig_id, welcome_messages_id) VALUES (3, 2, 'MySubDomain', 'MySubDomain', true, false, 'a simple description', 0, 'en', 50, 1, 2, 3, null, 1); -- Guest domain (example domain) INSERT INTO domain_abstract(id, type , uuid, label, enable, template, description, default_role, default_locale, user_provider_id, domain_policy_id, parent_id, auth_show_order, mailconfig_id, welcome_messages_id) VALUES (4, 3, 'GuestDomain', 'GuestDomain', true, false, 'a simple description', 0, 'en', null, 1, 2, 4, null, 1); UPDATE domain_abstract SET mime_policy_id=1 WHERE id < 100000; UPDATE domain_abstract SET mailconfig_id = 1; INSERT INTO account(id, mail, account_type, ls_uuid, creation_date, modification_date, role_id, locale, external_mail_locale, cmis_locale, enable, password, destroyed, domain_id, purge_step) VALUES (10, 'user1@t3c.io', 2, 'aebe1b64-39c0-11e5-9fa8-080027b8274b', now(), now(), 0, 'en', 'en', 'en', true, null, 0, 2, 'IN_USE'); INSERT INTO users(account_id, first_name, last_name, can_upload, comment, restricted, CAN_CREATE_GUEST, inconsistent) VALUES (10, 'John', 'Do', true, '', false, true, false); INSERT INTO account(id, mail, account_type, ls_uuid, creation_date, modification_date, role_id, locale, external_mail_locale, cmis_locale, enable, password, destroyed, domain_id, purge_step) VALUES (11, 'user2@t3c.io', 2, 'd896140a-39c0-11e5-b7f9-080027b8274b', now(), now(), 0, 'en', 'en', 'en', true, null, 0, 2, 'IN_USE'); INSERT INTO users(account_id, first_name, last_name, can_upload, comment, restricted, CAN_CREATE_GUEST, inconsistent) VALUES (11, 'Jane', 'Simth', true, '', false, true, false); INSERT INTO account(id, mail, account_type, ls_uuid, creation_date, modification_date, role_id, locale, external_mail_locale, cmis_locale, enable, password, destroyed, domain_id, purge_step) VALUES (12, 'user3@t3c.io', 2, 'e524e1ba-39c0-11e5-b704-080027b8274b', now(), now(), 0, 'en', 'en', 'en', true, null, 0, 2, 'IN_USE'); INSERT INTO users(account_id, first_name, last_name, can_upload, comment, restricted, CAN_CREATE_GUEST, inconsistent) VALUES (12, 'Foo', 'Bar', true, '', false, true, false); SET @john_do_id = SELECT 10; SET @jane_simth_id = SELECT 11; INSERT INTO account(id, mail, account_type, ls_uuid, creation_date, modification_date, role_id, locale, external_mail_locale, cmis_locale, enable, password, destroyed, domain_id, purge_step) VALUES (13, 'guest@t3c.io', 3, '46455499-f703-46a2-9659-24ed0fa0d63c', now(), now(), 0, 'en', 'en', 'en', true, 'JYRd2THzjEqTGYq3gjzUh2UBso8=', 0, 4, 'IN_USE'); INSERT INTO users(account_id, first_name, last_name, can_upload, comment, restricted, CAN_CREATE_GUEST, inconsistent) VALUES (13, 'Guest', 'Test', true, '', false, true, false); SET @guest1_id = SELECT 13; UPDATE policy SET status = true where id=27; -- TESTS -- default domain policy INSERT INTO domain_access_policy(id) VALUES (100001); INSERT INTO domain_access_rule(id, domain_access_rule_type, domain_id, domain_access_policy_id, rule_index) VALUES (100001, 0, null, 100001,0); INSERT INTO domain_policy(id, uuid, label, domain_access_policy_id) VALUES (100001, 'TestAccessPolicy0-test', 'TestAccessPolicy0-test', 100001); -- Root domain (application domain) INSERT INTO domain_abstract(id, type , uuid, label, enable, template, description, default_role, default_locale, user_provider_id, domain_policy_id, parent_id, welcome_messages_id) VALUES (100001, 0, 'TEST_Domain-0', 'TEST_Domain-0', true, false, 'The root test application domain', 3, 'en', null, 100001, null, 1); -- id : 100001 -- topDomainName -- id : 100002 INSERT INTO domain_abstract(id, type , uuid, label, enable, template, description, default_role, default_locale, user_provider_id, domain_policy_id, parent_id, auth_show_order, welcome_messages_id) VALUES (100002, 1, 'TEST_Domain-0-1', 'TEST_Domain-0-1 (Topdomain)', true, false, 'a simple description', 0, 'en', null, 100001, 100001, 2, 1); -- topDomainName2 -- id : 100003 INSERT INTO domain_abstract(id, type , uuid, label, enable, template, description, default_role, default_locale, user_provider_id, domain_policy_id, parent_id, auth_show_order, welcome_messages_id) VALUES (100003, 1, 'TEST_Domain-0-2', 'TEST_Domain-0-2 (Topdomain)', true, false, 'a simple description', 0, 'en', null, 100001, 100001, 3, 1); -- subDomainName1 -- id : 100004 INSERT INTO domain_abstract(id, type , uuid, label, enable, template, description, default_role, default_locale, user_provider_id, domain_policy_id, parent_id, auth_show_order, welcome_messages_id) VALUES (100004, 2, 'TEST_Domain-0-1-1', 'TEST_Domain-0-1-1 (Subdomain)', true, false, 'a simple description', 0, 'en', null, 100001, 100002, 4, 1); -- subDomainName2 -- id : 100005 INSERT INTO domain_abstract(id, type , uuid, label, enable, template, description, default_role, default_locale, user_provider_id, domain_policy_id, parent_id, auth_show_order, welcome_messages_id) VALUES (100005, 2, 'TEST_Domain-0-1-2', 'TEST_Domain-0-1-2 (Subdomain)', true, false, 'a simple description', 0, 'en', null, 100001, 100002, 5, 1); -- Guest domain (example domain) -- id : 100006 INSERT INTO domain_abstract(id, type , uuid, label, enable, template, description, default_role, default_locale, user_provider_id, domain_policy_id, parent_id, auth_show_order, welcome_messages_id) VALUES (100006, 3, 'guestDomainName1', 'guestDomainName1 (GuestDomain)', true, false, 'a simple description', 0, 'en', null, 100001, 100002, 6, 1); -- Default mime policy INSERT INTO mime_policy(id, domain_id, uuid, name, mode, displayable, version, creation_date, modification_date) VALUES(100001, 100001, 'ec51317c-086c-442a-a4bf-1afdf8774079', 'Default Mime Policy de test', 0, 0, 1, now(), now()); UPDATE domain_abstract SET mime_policy_id=1 WHERE id >= 100001; INSERT INTO account(id, Mail, account_type, ls_uuid, creation_date, modification_date, role_id, locale, external_mail_locale, cmis_locale, enable, password, destroyed, domain_id, purge_step) VALUES (100001, 'root@localhost.localdomain@test', 6, 'root@localhost.localdomain@test', current_date(), current_date(), 3, 'en', 'en', 'en', true, 'JYRd2THzjEqTGYq3gjzUh2UBso8=', 0, 100001, 'IN_USE'); INSERT INTO users(account_id, First_name, Last_name, Can_upload, Comment, Restricted, CAN_CREATE_GUEST, inconsistent) VALUES (100001, 'Administrator', 'Anchel', true, '', false, false, false); -- root domain de test -- Functionality : TEST_TIME_STAMPING INSERT INTO policy(id, status, default_status, policy, system) VALUES (110013, true, true, 1, false); INSERT INTO policy(id, status, default_status, policy, system) VALUES (110014, true, true, 1, false); INSERT INTO functionality(id, system, identifier, policy_activation_id, policy_configuration_id, domain_id) VALUES (110007, false, 'TEST_TIME_STAMPING', 110013, 110014, 100001); INSERT INTO functionality_string(functionality_id, string_value) VALUES (110007, 'http://server/service'); -- Functionality : TEST_FILESIZE_MAX INSERT INTO policy(id, status, default_status, policy, system) VALUES (110001, true, true, 1, false); INSERT INTO policy(id, status, default_status, policy, system) VALUES (110002, true, true, 1, false); INSERT INTO functionality(id, system, identifier, policy_activation_id, policy_configuration_id, domain_id) VALUES (110001, false, 'TEST_FILESIZE_MAX', 110001, 110002, 100001); -- Size : MEGA INSERT INTO unit(id, unit_type, unit_value) VALUES (110001, 1, 1); -- Value : 200 INSERT INTO functionality_unit(functionality_id, integer_value, unit_id) VALUES (110001, 200, 110001); -- Functionality : TEST_QUOTA_GLOBAL INSERT INTO policy(id, status, default_status, policy, system) VALUES (110003, true, true, 1, false); INSERT INTO policy(id, status, default_status, policy, system) VALUES (110004, true, true, 1, false); INSERT INTO functionality(id, system, identifier, policy_activation_id, policy_configuration_id, domain_id) VALUES (110002, true, 'TEST_QUOTA_GLOBAL', 110003, 110004, 100001); -- Size : GIGA INSERT INTO unit(id, unit_type, unit_value) VALUES (110002, 1, 2); -- Value : 1 INSERT INTO functionality_unit(functionality_id, integer_value, unit_id) VALUES (110002, 1, 110002); -- Functionality : TEST_QUOTA_USER INSERT INTO policy(id, status, default_status, policy, system) VALUES (110005, true, true, 1, false); INSERT INTO policy(id, status, default_status, policy, system) VALUES (110006, true, true, 1, false); INSERT INTO functionality(id, system, identifier, policy_activation_id, policy_configuration_id, domain_id) VALUES (110003, false, 'TEST_QUOTA_USER', 110005, 110006, 100001); -- Size : GIGA INSERT INTO unit(id, unit_type, unit_value) VALUES (110003, 1, 1); -- Value : 500 INSERT INTO functionality_unit(functionality_id, integer_value, unit_id) VALUES (110003, 500, 110003); -- Functionality : GUESTS INSERT INTO policy(id, status, default_status, policy, system) VALUES (110027, true, true, 1, false); INSERT INTO policy(id, status, default_status, policy, system) VALUES (110028, true, true, 1, false); INSERT INTO functionality(id, system, identifier, policy_activation_id, policy_configuration_id, domain_id) VALUES (110014, true, 'GUESTS', 110027, 110028, 100001); -- Functionality : TEST_FUNC1 INSERT INTO policy(id, status, default_status, policy, system) VALUES (110059, true, true, 2, false); INSERT INTO policy(id, status, default_status, policy, system) VALUES (110060, true, true, 1, false); INSERT INTO functionality(id, system, identifier, policy_activation_id, policy_configuration_id, domain_id) VALUES (110029, false, 'TEST_FUNC1', 110059, 110060, 100001); INSERT INTO functionality_string(functionality_id, string_value) VALUES (110029, 'blabla'); -- Functionality : TEST_FUNC2 INSERT INTO policy(id, status, default_status, policy, system) VALUES (110061, true, true, 2, false); INSERT INTO policy(id, status, default_status, policy, system) VALUES (110062, true, true, 2, false); INSERT INTO functionality(id, system, identifier, policy_activation_id, policy_configuration_id, domain_id) VALUES(110030, false, 'TEST_FUNC2', 110061, 110062, 100001); INSERT INTO functionality_string(functionality_id, string_value) VALUES (110030, 'blabla'); -- Functionality : TEST_FUNC3 INSERT INTO policy(id, status, default_status, policy, system) VALUES (110049, true, true, 0, true); INSERT INTO policy(id, status, default_status, policy, system) VALUES (110050, true, true, 1, false); INSERT INTO functionality(id, system, identifier, policy_activation_id, policy_configuration_id, domain_id) VALUES (110025, false, 'TEST_FUNC3', 110049, 110050, 100001); INSERT INTO functionality_string(functionality_id, string_value) VALUES (110025, 'blabla'); -- Functionality : TEST_FUNC4 INSERT INTO policy(id, status, default_status, policy, system) VALUES (110017, true, true, 1, false); INSERT INTO policy(id, status, default_status, policy, system) VALUES (110018, true, true, 1, true); INSERT INTO functionality(id, system, identifier, policy_activation_id, policy_configuration_id, domain_id) VALUES (110009, false, 'TEST_FUNC4', 110017, 110018, 100001); INSERT INTO functionality_string(functionality_id, string_value) VALUES (110009, 'blabla'); -- Functionality : TEST_FUNC5 INSERT INTO policy(id, status, default_status, policy, system) VALUES (110025, true, true, 1, false); INSERT INTO policy(id, status, default_status, policy, system) VALUES (110026, false, false, 1, true); INSERT INTO functionality(id, system, identifier, policy_activation_id, policy_configuration_id, domain_id) VALUES (110013, true, 'TEST_FUNC5', 110025, 110026, 100001); INSERT INTO functionality_string(functionality_id, string_value) VALUES (110013, 'blabla'); -- topDomainName 1 -- Functionality : TEST_FILESIZE_MAX INSERT INTO policy(id, status, default_status, policy, system) VALUES (111001, true, true, 1, false); INSERT INTO policy(id, status, default_status, policy, system) VALUES (111002, true, true, 1, false); INSERT INTO functionality(id, system, identifier, policy_activation_id, policy_configuration_id, domain_id) VALUES (111001, false, 'TEST_FILESIZE_MAX', 111001, 111002, 100002); -- Size : MEGA INSERT INTO unit(id, unit_type, unit_value) VALUES (111001, 1, 1); -- Value : 200 INSERT INTO functionality_unit(functionality_id, integer_value, unit_id) VALUES (111001, 100, 111001); -- Functionality : TEST_QUOTA_USER INSERT INTO policy(id, status, default_status, policy, system) VALUES (111005, true, true, 1, false); INSERT INTO policy(id, status, default_status, policy, system) VALUES (111006, true, true, 1, false); INSERT INTO functionality(id, system, identifier, policy_activation_id, policy_configuration_id, domain_id) VALUES (111003, false, 'TEST_QUOTA_USER', 111005, 111006, 100002); -- Size : GIGA INSERT INTO unit(id, unit_type, unit_value) VALUES (111003, 1, 1); -- Value : 500 INSERT INTO functionality_unit(functionality_id, integer_value, unit_id) VALUES (111003, 250, 111003); -- subDomainName 1 -- Functionality : TEST_FILESIZE_MAX INSERT INTO policy(id, status, default_status, policy, system) VALUES (112001, true, true, 1, false); INSERT INTO policy(id, status, default_status, policy, system) VALUES (112002, true, true, 1, false); INSERT INTO functionality(id, system, identifier, policy_activation_id, policy_configuration_id, domain_id) VALUES (112001, false, 'TEST_FILESIZE_MAX', 112001, 112002, 100004); -- Size : MEGA INSERT INTO unit(id, unit_type, unit_value) VALUES (112001, 1, 1); -- Value : 200 INSERT INTO functionality_unit(functionality_id, integer_value, unit_id) VALUES (112001, 50, 112001); -- subDomainName 2 -- Functionality : TEST_QUOTA_USER INSERT INTO policy(id, status, default_status, policy, system) VALUES (113005, true, true, 1, false); INSERT INTO policy(id, status, default_status, policy, system) VALUES (113006, true, true, 1, false); INSERT INTO functionality(id, system, identifier, policy_activation_id, policy_configuration_id, domain_id) VALUES (113003, false, 'TEST_QUOTA_USER', 113005, 113006, 100005); -- Size : GIGA INSERT INTO unit(id, unit_type, unit_value) VALUES (113003, 1, 1); -- Value : 500 INSERT INTO functionality_unit(functionality_id, integer_value, unit_id) VALUES (113003, 125, 113003); UPDATE domain_abstract SET mailconfig_id = 1;
73.956897
1,000
0.758247
4665d8dae77a4f7afb4aabadd90541628557fe78
2,068
lua
Lua
Lua/WikiParser/WikiText/FunctionEmmy.lua
Stanzilla/vscode-wow-api
8398c25b93731e762b4714e59877116a8c87d610
[ "MIT" ]
1
2021-11-24T00:21:53.000Z
2021-11-24T00:21:53.000Z
Lua/WikiParser/WikiText/FunctionEmmy.lua
Stanzilla/vscode-wow-api
8398c25b93731e762b4714e59877116a8c87d610
[ "MIT" ]
null
null
null
Lua/WikiParser/WikiText/FunctionEmmy.lua
Stanzilla/vscode-wow-api
8398c25b93731e762b4714e59877116a8c87d610
[ "MIT" ]
null
null
null
-- this place is a mess local wowpedia_arguments = require("Lua/WikiParser/WikiText/FunctionArgument") local nonBlizzDocumented = require("Lua/WikiParser/WikiText/NonBlizzardDocumented")[1] local manualDocFile = io.open("EmmyLua/API/GlobalAPI/GlobalAPI.lua") local parserData = require("Lua/WikiParser/XmlParser") local validated, nonvalidated if type(parserData) == "table" then validated, nonvalidated = unpack(parserData) else return end local converter = require("Lua/WikiParser/WikiText/WowpediaConverter") local convertedApi = converter:ConvertApi(validated) -- dont generate for manually documented API local manualDoc = {} for s in string.gmatch(manualDocFile:read("a"), "function (%w+)") do manualDoc[s] = true end local fileIndex = 0 local function GetOutputFile() fileIndex = fileIndex + 1 local file = io.open(format("EmmyLua/API/GlobalAPI/Dump%d.lua", fileIndex), "w") return file end local count = 0 local fs = "---[Documentation](https://wow.gamepedia.com/API_%s)\nfunction %s(%s) end\n\n" local outputFile = GetOutputFile() local countValid = 0 local countNonValid = 0 local countNonDoc = 0 local sorted = Util:SortTable(nonBlizzDocumented) for _, name in pairs(sorted) do if not manualDoc[name] then if convertedApi[name] then outputFile:write(Emmy:GetFunction(convertedApi[name]).."\n\n") countValid = countValid + 1 else outputFile:write(fs:format(name, name, wowpedia_arguments[name] or "")) if nonvalidated[name] then countNonValid = countNonValid + 1 else countNonDoc = countNonDoc + 1 end end count = count + 1 if count == 500 then count = 0 outputFile:close() outputFile = GetOutputFile() end end end local total = countValid+countNonValid+countNonDoc print("valid api", countValid, format("%.2f%%", 100*countValid/total)) print("non valid", countNonValid, format("%.2f%%", 100*countNonValid/total)) print("not documented", countNonDoc, format("%.2f%%", 100*countNonDoc/total)) -- valid api 744 25.38% -- non valid 601 20.50% -- not documented 1587 54.13%
29.971014
90
0.729691
8813d2df74e5d7566fa7bbe09de4fa9fdb10602f
22,125
cpp
C++
mDNSWindows/DLLX/DNSSD.cpp
codenotes/mDNAResponder
a9ce520dcc284d3aa49690f6e2412d482f117cb5
[ "Apache-2.0" ]
8
2016-09-20T15:34:01.000Z
2022-03-31T07:16:59.000Z
mDNSWindows/DLLX/DNSSD.cpp
codenotes/mDNAResponder
a9ce520dcc284d3aa49690f6e2412d482f117cb5
[ "Apache-2.0" ]
2
2016-01-27T04:44:37.000Z
2018-08-21T04:47:18.000Z
mDNSWindows/DLLX/DNSSD.cpp
andrewnimmo/mDNSResponder
d40ef4327846b7997be55aa34400c01e0c4e9b1b
[ "Apache-2.0" ]
8
2015-05-05T17:14:51.000Z
2022-02-27T06:59:51.000Z
// DNSSD.cpp : Implementation of CDNSSD #include "stdafx.h" #include "DNSSD.h" #include "DNSSDService.h" #include "TXTRecord.h" #include <dns_sd.h> #include <CommonServices.h> #include <DebugServices.h> #include "StringServices.h" // CDNSSD STDMETHODIMP CDNSSD::Browse(DNSSDFlags flags, ULONG ifIndex, BSTR regtype, BSTR domain, IBrowseListener* listener, IDNSSDService** browser ) { CComObject<CDNSSDService> * object = NULL; std::string regtypeUTF8; std::string domainUTF8; DNSServiceRef sref = NULL; DNSServiceErrorType err = 0; HRESULT hr = 0; BOOL ok; // Initialize *browser = NULL; // Convert BSTR params to utf8 ok = BSTRToUTF8( regtype, regtypeUTF8 ); require_action( ok, exit, err = kDNSServiceErr_BadParam ); ok = BSTRToUTF8( domain, domainUTF8 ); require_action( ok, exit, err = kDNSServiceErr_BadParam ); try { object = new CComObject<CDNSSDService>(); } catch ( ... ) { object = NULL; } require_action( object != NULL, exit, err = kDNSServiceErr_NoMemory ); hr = object->FinalConstruct(); require_action( hr == S_OK, exit, err = kDNSServiceErr_Unknown ); object->AddRef(); err = DNSServiceBrowse( &sref, flags, ifIndex, regtypeUTF8.c_str(), domainUTF8.c_str(), ( DNSServiceBrowseReply ) &BrowseReply, object ); require_noerr( err, exit ); object->SetServiceRef( sref ); object->SetListener( listener ); err = object->Run(); require_noerr( err, exit ); *browser = object; exit: if ( err && object ) { object->Release(); } return err; } STDMETHODIMP CDNSSD::Resolve(DNSSDFlags flags, ULONG ifIndex, BSTR serviceName, BSTR regType, BSTR domain, IResolveListener* listener, IDNSSDService** service) { CComObject<CDNSSDService> * object = NULL; std::string serviceNameUTF8; std::string regTypeUTF8; std::string domainUTF8; DNSServiceRef sref = NULL; DNSServiceErrorType err = 0; HRESULT hr = 0; BOOL ok; // Initialize *service = NULL; // Convert BSTR params to utf8 ok = BSTRToUTF8( serviceName, serviceNameUTF8 ); require_action( ok, exit, err = kDNSServiceErr_BadParam ); ok = BSTRToUTF8( regType, regTypeUTF8 ); require_action( ok, exit, err = kDNSServiceErr_BadParam ); ok = BSTRToUTF8( domain, domainUTF8 ); require_action( ok, exit, err = kDNSServiceErr_BadParam ); try { object = new CComObject<CDNSSDService>(); } catch ( ... ) { object = NULL; } require_action( object != NULL, exit, err = kDNSServiceErr_NoMemory ); hr = object->FinalConstruct(); require_action( hr == S_OK, exit, err = kDNSServiceErr_Unknown ); object->AddRef(); err = DNSServiceResolve( &sref, flags, ifIndex, serviceNameUTF8.c_str(), regTypeUTF8.c_str(), domainUTF8.c_str(), ( DNSServiceResolveReply ) &ResolveReply, object ); require_noerr( err, exit ); object->SetServiceRef( sref ); object->SetListener( listener ); err = object->Run(); require_noerr( err, exit ); *service = object; exit: if ( err && object ) { object->Release(); } return err; } STDMETHODIMP CDNSSD::EnumerateDomains(DNSSDFlags flags, ULONG ifIndex, IDomainListener *listener, IDNSSDService **service) { CComObject<CDNSSDService> * object = NULL; DNSServiceRef sref = NULL; DNSServiceErrorType err = 0; HRESULT hr = 0; // Initialize *service = NULL; try { object = new CComObject<CDNSSDService>(); } catch ( ... ) { object = NULL; } require_action( object != NULL, exit, err = kDNSServiceErr_NoMemory ); hr = object->FinalConstruct(); require_action( hr == S_OK, exit, err = kDNSServiceErr_Unknown ); object->AddRef(); err = DNSServiceEnumerateDomains( &sref, flags, ifIndex, ( DNSServiceDomainEnumReply ) &DomainEnumReply, object ); require_noerr( err, exit ); object->SetServiceRef( sref ); object->SetListener( listener ); err = object->Run(); require_noerr( err, exit ); *service = object; exit: if ( err && object ) { object->Release(); } return err; } STDMETHODIMP CDNSSD::Register(DNSSDFlags flags, ULONG ifIndex, BSTR serviceName, BSTR regType, BSTR domain, BSTR host, USHORT port, ITXTRecord *record, IRegisterListener *listener, IDNSSDService **service) { CComObject<CDNSSDService> * object = NULL; std::string serviceNameUTF8; std::string regTypeUTF8; std::string domainUTF8; std::string hostUTF8; const void * txtRecord = NULL; uint16_t txtLen = 0; DNSServiceRef sref = NULL; DNSServiceErrorType err = 0; HRESULT hr = 0; BOOL ok; // Initialize *service = NULL; // Convert BSTR params to utf8 ok = BSTRToUTF8( serviceName, serviceNameUTF8 ); require_action( ok, exit, err = kDNSServiceErr_BadParam ); ok = BSTRToUTF8( regType, regTypeUTF8 ); require_action( ok, exit, err = kDNSServiceErr_BadParam ); ok = BSTRToUTF8( domain, domainUTF8 ); require_action( ok, exit, err = kDNSServiceErr_BadParam ); ok = BSTRToUTF8( host, hostUTF8 ); require_action( ok, exit, err = kDNSServiceErr_BadParam ); try { object = new CComObject<CDNSSDService>(); } catch ( ... ) { object = NULL; } require_action( object != NULL, exit, err = kDNSServiceErr_NoMemory ); hr = object->FinalConstruct(); require_action( hr == S_OK, exit, err = kDNSServiceErr_Unknown ); object->AddRef(); if ( record ) { CComObject< CTXTRecord > * realTXTRecord; realTXTRecord = ( CComObject< CTXTRecord >* ) record; txtRecord = realTXTRecord->GetBytes(); txtLen = realTXTRecord->GetLen(); } err = DNSServiceRegister( &sref, flags, ifIndex, serviceNameUTF8.c_str(), regTypeUTF8.c_str(), domainUTF8.c_str(), hostUTF8.c_str(), port, txtLen, txtRecord, ( DNSServiceRegisterReply ) &RegisterReply, object ); require_noerr( err, exit ); object->SetServiceRef( sref ); object->SetListener( listener ); err = object->Run(); require_noerr( err, exit ); *service = object; exit: if ( err && object ) { object->Release(); } return err; } STDMETHODIMP CDNSSD::QueryRecord(DNSSDFlags flags, ULONG ifIndex, BSTR fullname, DNSSDRRType rrtype, DNSSDRRClass rrclass, IQueryRecordListener *listener, IDNSSDService **service) { CComObject<CDNSSDService> * object = NULL; DNSServiceRef sref = NULL; std::string fullNameUTF8; DNSServiceErrorType err = 0; HRESULT hr = 0; BOOL ok; // Initialize *service = NULL; // Convert BSTR params to utf8 ok = BSTRToUTF8( fullname, fullNameUTF8 ); require_action( ok, exit, err = kDNSServiceErr_BadParam ); try { object = new CComObject<CDNSSDService>(); } catch ( ... ) { object = NULL; } require_action( object != NULL, exit, err = kDNSServiceErr_NoMemory ); hr = object->FinalConstruct(); require_action( hr == S_OK, exit, err = kDNSServiceErr_Unknown ); object->AddRef(); err = DNSServiceQueryRecord( &sref, flags, ifIndex, fullNameUTF8.c_str(), ( uint16_t ) rrtype, ( uint16_t ) rrclass, ( DNSServiceQueryRecordReply ) &QueryRecordReply, object ); require_noerr( err, exit ); object->SetServiceRef( sref ); object->SetListener( listener ); err = object->Run(); require_noerr( err, exit ); *service = object; exit: if ( err && object ) { object->Release(); } return err; } STDMETHODIMP CDNSSD::GetAddrInfo(DNSSDFlags flags, ULONG ifIndex, DNSSDAddressFamily addressFamily, BSTR hostName, IGetAddrInfoListener *listener, IDNSSDService **service) { CComObject<CDNSSDService> * object = NULL; DNSServiceRef sref = NULL; std::string hostNameUTF8; DNSServiceErrorType err = 0; HRESULT hr = 0; BOOL ok; // Initialize *service = NULL; // Convert BSTR params to utf8 ok = BSTRToUTF8( hostName, hostNameUTF8 ); require_action( ok, exit, err = kDNSServiceErr_BadParam ); try { object = new CComObject<CDNSSDService>(); } catch ( ... ) { object = NULL; } require_action( object != NULL, exit, err = kDNSServiceErr_NoMemory ); hr = object->FinalConstruct(); require_action( hr == S_OK, exit, err = kDNSServiceErr_Unknown ); object->AddRef(); err = DNSServiceGetAddrInfo( &sref, flags, ifIndex, addressFamily, hostNameUTF8.c_str(), ( DNSServiceGetAddrInfoReply ) &GetAddrInfoReply, object ); require_noerr( err, exit ); object->SetServiceRef( sref ); object->SetListener( listener ); err = object->Run(); require_noerr( err, exit ); *service = object; exit: if ( err && object ) { object->Release(); } return err; } STDMETHODIMP CDNSSD::CreateConnection(IDNSSDService **service) { CComObject<CDNSSDService> * object = NULL; DNSServiceRef sref = NULL; DNSServiceErrorType err = 0; HRESULT hr = 0; // Initialize *service = NULL; try { object = new CComObject<CDNSSDService>(); } catch ( ... ) { object = NULL; } require_action( object != NULL, exit, err = kDNSServiceErr_NoMemory ); hr = object->FinalConstruct(); require_action( hr == S_OK, exit, err = kDNSServiceErr_Unknown ); object->AddRef(); err = DNSServiceCreateConnection( &sref ); require_noerr( err, exit ); object->SetServiceRef( sref ); *service = object; exit: if ( err && object ) { object->Release(); } return err; } STDMETHODIMP CDNSSD::NATPortMappingCreate(DNSSDFlags flags, ULONG ifIndex, DNSSDAddressFamily addressFamily, DNSSDProtocol protocol, USHORT internalPort, USHORT externalPort, ULONG ttl, INATPortMappingListener *listener, IDNSSDService **service) { CComObject<CDNSSDService> * object = NULL; DNSServiceRef sref = NULL; DNSServiceProtocol prot = 0; DNSServiceErrorType err = 0; HRESULT hr = 0; // Initialize *service = NULL; try { object = new CComObject<CDNSSDService>(); } catch ( ... ) { object = NULL; } require_action( object != NULL, exit, err = kDNSServiceErr_NoMemory ); hr = object->FinalConstruct(); require_action( hr == S_OK, exit, err = kDNSServiceErr_Unknown ); object->AddRef(); prot = ( addressFamily | protocol ); err = DNSServiceNATPortMappingCreate( &sref, flags, ifIndex, prot, internalPort, externalPort, ttl, ( DNSServiceNATPortMappingReply ) &NATPortMappingReply, object ); require_noerr( err, exit ); object->SetServiceRef( sref ); object->SetListener( listener ); err = object->Run(); require_noerr( err, exit ); *service = object; exit: if ( err && object ) { object->Release(); } return err; } STDMETHODIMP CDNSSD::GetProperty(BSTR prop, VARIANT * value ) { std::string propUTF8; std::vector< BYTE > byteArray; SAFEARRAY * psa = NULL; BYTE * pData = NULL; uint32_t elems = 0; DNSServiceErrorType err = 0; BOOL ok = TRUE; // Convert BSTR params to utf8 ok = BSTRToUTF8( prop, propUTF8 ); require_action( ok, exit, err = kDNSServiceErr_BadParam ); // Setup the byte array require_action( V_VT( value ) == ( VT_ARRAY|VT_UI1 ), exit, err = kDNSServiceErr_Unknown ); psa = V_ARRAY( value ); require_action( psa, exit, err = kDNSServiceErr_Unknown ); require_action( SafeArrayGetDim( psa ) == 1, exit, err = kDNSServiceErr_Unknown ); byteArray.reserve( psa->rgsabound[0].cElements ); byteArray.assign( byteArray.capacity(), 0 ); elems = ( uint32_t ) byteArray.capacity(); // Call the function and package the return value in the Variant err = DNSServiceGetProperty( propUTF8.c_str(), &byteArray[ 0 ], &elems ); require_noerr( err, exit ); ok = ByteArrayToVariant( &byteArray[ 0 ], elems, value ); require_action( ok, exit, err = kDNSSDError_Unknown ); exit: if ( psa ) { SafeArrayUnaccessData( psa ); psa = NULL; } return err; } void DNSSD_API CDNSSD::DomainEnumReply ( DNSServiceRef sdRef, DNSServiceFlags flags, uint32_t ifIndex, DNSServiceErrorType errorCode, const char *replyDomainUTF8, void *context ) { CComObject<CDNSSDService> * service; int err; service = ( CComObject< CDNSSDService>* ) context; require_action( service, exit, err = kDNSServiceErr_Unknown ); if ( !service->Stopped() ) { IDomainListener * listener; listener = ( IDomainListener* ) service->GetListener(); require_action( listener, exit, err = kDNSServiceErr_Unknown ); if ( !errorCode ) { CComBSTR replyDomain; UTF8ToBSTR( replyDomainUTF8, replyDomain ); if ( flags & kDNSServiceFlagsAdd ) { listener->DomainFound( service, ( DNSSDFlags ) flags, ifIndex, replyDomain ); } else { listener->DomainLost( service, ( DNSSDFlags ) flags, ifIndex, replyDomain ); } } else { listener->EnumDomainsFailed( service, ( DNSSDError ) errorCode ); } } exit: return; } void DNSSD_API CDNSSD::BrowseReply ( DNSServiceRef sdRef, DNSServiceFlags flags, uint32_t ifIndex, DNSServiceErrorType errorCode, const char *serviceNameUTF8, const char *regTypeUTF8, const char *replyDomainUTF8, void *context ) { CComObject<CDNSSDService> * service; int err; service = ( CComObject< CDNSSDService>* ) context; require_action( service, exit, err = kDNSServiceErr_Unknown ); if ( !service->Stopped() ) { IBrowseListener * listener; listener = ( IBrowseListener* ) service->GetListener(); require_action( listener, exit, err = kDNSServiceErr_Unknown ); if ( !errorCode ) { CComBSTR serviceName; CComBSTR regType; CComBSTR replyDomain; UTF8ToBSTR( serviceNameUTF8, serviceName ); UTF8ToBSTR( regTypeUTF8, regType ); UTF8ToBSTR( replyDomainUTF8, replyDomain ); if ( flags & kDNSServiceFlagsAdd ) { listener->ServiceFound( service, ( DNSSDFlags ) flags, ifIndex, serviceName, regType, replyDomain ); } else { listener->ServiceLost( service, ( DNSSDFlags ) flags, ifIndex, serviceName, regType, replyDomain ); } } else { listener->BrowseFailed( service, ( DNSSDError ) errorCode ); } } exit: return; } void DNSSD_API CDNSSD::ResolveReply ( DNSServiceRef sdRef, DNSServiceFlags flags, uint32_t ifIndex, DNSServiceErrorType errorCode, const char *fullNameUTF8, const char *hostNameUTF8, uint16_t port, uint16_t txtLen, const unsigned char *txtRecord, void *context ) { CComObject<CDNSSDService> * service; int err; service = ( CComObject< CDNSSDService>* ) context; require_action( service, exit, err = kDNSServiceErr_Unknown ); if ( !service->Stopped() ) { IResolveListener * listener; listener = ( IResolveListener* ) service->GetListener(); require_action( listener, exit, err = kDNSServiceErr_Unknown ); if ( !errorCode ) { CComBSTR fullName; CComBSTR hostName; CComBSTR regType; CComBSTR replyDomain; CComObject< CTXTRecord >* record; BOOL ok; ok = UTF8ToBSTR( fullNameUTF8, fullName ); require_action( ok, exit, err = kDNSServiceErr_Unknown ); ok = UTF8ToBSTR( hostNameUTF8, hostName ); require_action( ok, exit, err = kDNSServiceErr_Unknown ); try { record = new CComObject<CTXTRecord>(); } catch ( ... ) { record = NULL; } require_action( record, exit, err = kDNSServiceErr_NoMemory ); record->AddRef(); char buf[ 64 ]; sprintf( buf, "txtLen = %d", txtLen ); OutputDebugStringA( buf ); if ( txtLen > 0 ) { record->SetBytes( txtRecord, txtLen ); } listener->ServiceResolved( service, ( DNSSDFlags ) flags, ifIndex, fullName, hostName, port, record ); } else { listener->ResolveFailed( service, ( DNSSDError ) errorCode ); } } exit: return; } void DNSSD_API CDNSSD::RegisterReply ( DNSServiceRef sdRef, DNSServiceFlags flags, DNSServiceErrorType errorCode, const char *serviceNameUTF8, const char *regTypeUTF8, const char *domainUTF8, void *context ) { CComObject<CDNSSDService> * service; int err; service = ( CComObject< CDNSSDService>* ) context; require_action( service, exit, err = kDNSServiceErr_Unknown ); if ( !service->Stopped() ) { IRegisterListener * listener; listener = ( IRegisterListener* ) service->GetListener(); require_action( listener, exit, err = kDNSServiceErr_Unknown ); if ( !errorCode ) { CComBSTR serviceName; CComBSTR regType; CComBSTR domain; BOOL ok; ok = UTF8ToBSTR( serviceNameUTF8, serviceName ); require_action( ok, exit, err = kDNSServiceErr_Unknown ); ok = UTF8ToBSTR( regTypeUTF8, regType ); require_action( ok, exit, err = kDNSServiceErr_Unknown ); ok = UTF8ToBSTR( domainUTF8, domain ); require_action( ok, exit, err = kDNSServiceErr_Unknown ); listener->ServiceRegistered( service, ( DNSSDFlags ) flags, serviceName, regType, domain ); } else { listener->ServiceRegisterFailed( service, ( DNSSDError ) errorCode ); } } exit: return; } void DNSSD_API CDNSSD::QueryRecordReply ( DNSServiceRef sdRef, DNSServiceFlags flags, uint32_t ifIndex, DNSServiceErrorType errorCode, const char *fullNameUTF8, uint16_t rrtype, uint16_t rrclass, uint16_t rdlen, const void *rdata, uint32_t ttl, void *context ) { CComObject<CDNSSDService> * service; int err; service = ( CComObject< CDNSSDService>* ) context; require_action( service, exit, err = kDNSServiceErr_Unknown ); if ( !service->Stopped() ) { IQueryRecordListener * listener; listener = ( IQueryRecordListener* ) service->GetListener(); require_action( listener, exit, err = kDNSServiceErr_Unknown ); if ( !errorCode ) { CComBSTR fullName; VARIANT var; BOOL ok; ok = UTF8ToBSTR( fullNameUTF8, fullName ); require_action( ok, exit, err = kDNSServiceErr_Unknown ); ok = ByteArrayToVariant( rdata, rdlen, &var ); require_action( ok, exit, err = kDNSServiceErr_Unknown ); listener->QueryRecordAnswered( service, ( DNSSDFlags ) flags, ifIndex, fullName, ( DNSSDRRType ) rrtype, ( DNSSDRRClass ) rrclass, var, ttl ); } else { listener->QueryRecordFailed( service, ( DNSSDError ) errorCode ); } } exit: return; } void DNSSD_API CDNSSD::GetAddrInfoReply ( DNSServiceRef sdRef, DNSServiceFlags flags, uint32_t ifIndex, DNSServiceErrorType errorCode, const char *hostNameUTF8, const struct sockaddr *rawAddress, uint32_t ttl, void *context ) { CComObject<CDNSSDService> * service; int err; service = ( CComObject< CDNSSDService>* ) context; require_action( service, exit, err = kDNSServiceErr_Unknown ); if ( !service->Stopped() ) { IGetAddrInfoListener * listener; listener = ( IGetAddrInfoListener* ) service->GetListener(); require_action( listener, exit, err = kDNSServiceErr_Unknown ); if ( !errorCode ) { CComBSTR hostName; DWORD sockaddrLen; DNSSDAddressFamily addressFamily; char addressUTF8[INET6_ADDRSTRLEN]; DWORD addressLen = sizeof( addressUTF8 ); CComBSTR address; BOOL ok; ok = UTF8ToBSTR( hostNameUTF8, hostName ); require_action( ok, exit, err = kDNSServiceErr_Unknown ); switch ( rawAddress->sa_family ) { case AF_INET: { addressFamily = kDNSSDAddressFamily_IPv4; sockaddrLen = sizeof( sockaddr_in ); } break; case AF_INET6: { addressFamily = kDNSSDAddressFamily_IPv6; sockaddrLen = sizeof( sockaddr_in6 ); } break; } err = WSAAddressToStringA( ( LPSOCKADDR ) rawAddress, sockaddrLen, NULL, addressUTF8, &addressLen ); require_noerr( err, exit ); ok = UTF8ToBSTR( addressUTF8, address ); require_action( ok, exit, err = kDNSServiceErr_Unknown ); listener->GetAddrInfoReply( service, ( DNSSDFlags ) flags, ifIndex, hostName, addressFamily, address, ttl ); } else { listener->GetAddrInfoFailed( service, ( DNSSDError ) errorCode ); } } exit: return; } void DNSSD_API CDNSSD::NATPortMappingReply ( DNSServiceRef sdRef, DNSServiceFlags flags, uint32_t ifIndex, DNSServiceErrorType errorCode, uint32_t externalAddress, /* four byte IPv4 address in network byte order */ DNSServiceProtocol protocol, uint16_t internalPort, uint16_t externalPort, /* may be different than the requested port */ uint32_t ttl, /* may be different than the requested ttl */ void *context ) { CComObject<CDNSSDService> * service; int err; service = ( CComObject< CDNSSDService>* ) context; require_action( service, exit, err = kDNSServiceErr_Unknown ); if ( !service->Stopped() ) { INATPortMappingListener * listener; listener = ( INATPortMappingListener* ) service->GetListener(); require_action( listener, exit, err = kDNSServiceErr_Unknown ); if ( !errorCode ) { listener->MappingCreated( service, ( DNSSDFlags ) flags, ifIndex, externalAddress, ( DNSSDAddressFamily ) ( protocol & 0x8 ), ( DNSSDProtocol ) ( protocol & 0x80 ), internalPort, externalPort, ttl ); } else { listener->MappingFailed( service, ( DNSSDError ) errorCode ); } } exit: return; }
24.776036
245
0.644746
288044c369d1cb56d8446abf77d78c9b87de2ad7
12,459
cpp
C++
V_1_0_0_0/Isr_GSM.cpp
MatteoDestro/Arduino-GSM-Library
5f31b08eee387dc391ee409b36465b1d5d69d522
[ "BSD-2-Clause" ]
1
2021-11-08T09:36:23.000Z
2021-11-08T09:36:23.000Z
V_1_0_0_0/Isr_GSM.cpp
MatteoDestro/Arduino-GSM-Library
5f31b08eee387dc391ee409b36465b1d5d69d522
[ "BSD-2-Clause" ]
null
null
null
V_1_0_0_0/Isr_GSM.cpp
MatteoDestro/Arduino-GSM-Library
5f31b08eee387dc391ee409b36465b1d5d69d522
[ "BSD-2-Clause" ]
1
2020-09-01T02:07:03.000Z
2020-09-01T02:07:03.000Z
/********************************************************************* * * Internet service routine * ********************************************************************* * FileName: Isr_GSM.cpp * Revision: 1.0.0 * Date: 08/05/2016 * Dependencies: SoftwareSerial.h * GenericCmd_GSM.h * Io_GSM.h * Isr_GSM.h * Uart_GSM.h * Arduino Board: Arduino Uno, Arduino Mega 2560, Fishino Uno, Fishino Mega 2560 * * Company: Futura Group srl * www.Futurashop.it * www.open-electronics.org * * Developer: Destro Matteo * * Support: info@open-electronics.org * * Software License Agreement * * Copyright (c) 2016, Futura Group srl * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * 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 OWNER OR CONTRIBUTORS BE LIABLE FOR * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * **********************************************************************/ #include <SoftwareSerial.h> #include "GenericCmd_GSM.h" #include "Io_GSM.h" #include "Isr_GSM.h" #include "Uart_GSM.h" #ifdef __AVR__ #include <avr/pgmspace.h> #endif #if ARDUINO >= 100 #include "Arduino.h" #else #include "WProgram.h" #endif /**************************************************************************** * Function: EnableLibInterrupt * * Overview: This function enables Timer1 Interrupt and INT0 Interrupt (Or INT4 interrupt for Arduino Mega 2560) * * PreCondition: None * * GSM cmd syntax: None * * Input: None * * Command Note: None * * Output: None * * GSM answer det: None * * Side Effects: None * * Note: This is a public function *****************************************************************************/ void Isr_GSM::EnableLibInterrupt(void) { Isr.EnableTimerInterrupt(); Isr.EnableCringInterrupt(); } /****************************************************************************/ /**************************************************************************** * Function: EnableTimerInterrupt * * Overview: This function enable and sets the Timer1 interrupt * * PreCondition: None * * GSM cmd syntax: None * * Input: None * * Command Note: None * * Output: None * * GSM answer det: None * * Side Effects: None * * Note: This is a public function *****************************************************************************/ void Isr_GSM::EnableTimerInterrupt(void) { cli(); // disable all interrupts #ifdef ARDUINO_UNO_REV3 TCCR1A = 0x00; TCCR1B = 0x00; TCNT1 = SLOWBASETIME; TCCR1B |= 0x04; // Prescaler 256 TIMSK1 |= 0x01; // enable oveflow timer interrupt #endif #ifdef ARDUINO_MEGA2560_REV3 TCCR1A = 0x00; TCCR1B = 0x00; TCCR1C = 0x00; TCNT1 = SLOWBASETIME; TCCR1B = 0x04; TIMSK1 = 0x01; // enable oveflow timer interrupt #endif sei(); // enable all interrupts } /****************************************************************************/ /**************************************************************************** * Function: EnableCringInterrupt * * Overview: This function enable CRING interrupt on INT0 for Arduino Uno R3 and INT4 for ArduinoMega 2560 R3 * * PreCondition: None * * GSM cmd syntax: None * * Input: None * * Command Note: None * * Output: None * * GSM answer det: None * * Side Effects: None * * Note: This is a public function *****************************************************************************/ void Isr_GSM::EnableCringInterrupt(void) { cli(); // disable all interrupts #ifdef ARDUINO_UNO_REV3 EIMSK = 0x00; EIMSK |= (1 << INT0); // Enable external interrupt INT0 EICRA = 0x00; EICRA |= (1 << ISC01); // The falling edge of INT0 generates an interrupt request #endif #ifdef ARDUINO_MEGA2560_REV3 EIMSK = 0x00; EIMSK |= (1 << INT4); // Enable external interrupt INT4 EICRB = 0x00; EICRB |= (1 << ISC41); // The falling edge of INT4 generates an interrupt request #endif sei(); // enable all interrupts } /****************************************************************************/ /**************************************************************************** * Function: ISR(TIMER1_OVF_vect) * * Overview: TIMER1 interrupt vector. This timer is set to generate an interrupt every 2mSec * This feature is used to create a moltitude of new timers using only simples variables * with a resolution of 2 msec. * For example to create a new timer of 100mSec is enough define a new variable and load * a correct value into it. In this example the correct value to load into the variable is 50. * This value is decremented every time that the interrupt occur. When this variable reach the * zero value means that the timer is expired * * PreCondition: None * * GSM cmd syntax: None * * Input: None * * Command Note: None * * Output: None * * GSM answer det: None * * Side Effects: None * * Note: This is a public function *****************************************************************************/ ISR(TIMER1_OVF_vect) { TCNT1 = SLOWBASETIME; // preload timer if (Isr.TimeOutWait > 0) { Isr.TimeOutWait--; } if (Isr.SerialTimeOut > 0) { Isr.SerialTimeOut--; } // TimeOut for software serial COM if (Isr.TimeOutBlinkLed4 > 0) { Isr.TimeOutBlinkLed4--; } // TimeOut Blink Led 4 if (Isr.TimeOutBlinkLed5 > 0) { Isr.TimeOutBlinkLed5--; } // TimeOut Blink Led 5 if (Isr.TimeOutBlinkLed6 > 0) { Isr.TimeOutBlinkLed6--; } // TimeOut Blink Led 6 if (Isr.TimeOutBlinkLed7 > 0) { Isr.TimeOutBlinkLed7--; } // TimeOut Blink Led 7 if (Isr.TimeOutBlinkLed8 > 0) { Isr.TimeOutBlinkLed8--; } // TimeOut Blink Led 8 if (Isr.TimeOutBlinkLed9 > 0) { Isr.TimeOutBlinkLed9--; } // TimeOut Blink Led 9 if (Isr.TimeOutBlinkTrigger1 > 0) { Isr.TimeOutBlinkTrigger1--; } // TimeOut Blink Trigger 1 if (Isr.TimeOutBlinkTrigger2 > 0) { Isr.TimeOutBlinkTrigger2--; } // TimeOut Blink Trigger 2 if (Isr.TimeOutBlinkTrigger3 > 0) { Isr.TimeOutBlinkTrigger3--; } // TimeOut Blink Trigger 3 //-------------------------------------------------------- // Used during engine GSM initialization. The Trigger 3 // blink to indiacate init process if (Gsm.GsmFlag.Bit.GsmInitInProgress == 1) { Io.LedBlink(TRIGGER_3, 25, T_250MSEC); } //-------------------------------------------------------- } /****************************************************************************/ /**************************************************************************** * Function: ISR(INT0_vect) Or ISR(INT4_vect) * * Overview: INT0 interrupt vector. When an SMS is received or a phonic call incoming, the INT0 falling edge is generated * The INT0 rising edge is generated when a phonic call terminate or when an SMS is recieved completely * * ========================================================================================================= * SIMCOM SIM900 And QUECTEL M95 * * T = 120mSec -> Received SMS * _____ <-------------> ___________ * | | * | | * |_______________| * * T > 120mSec -> Incoming Call * _____ <---------------------------------------------------------> _________ * | | * | | * |___________________________________________________________| * * Stanby HIGH * ----------------------------------- * Voice Call The pin is cahnged to low. When any of the following events occur, the pin will be changed to high: * (1) Establish the call * (2) Hang Up the call * ----------------------------------- * Data Call The pin is cahnged to low. When any of the following events occur, the pin will be changed to high: * (1) Establish the call * (2) Hang Up the call * ----------------------------------- * SMS The pin changed to low, and kept low for 120mSec when a SMS is received. Then it is changed to high * * ========================================================================================================= * FIBOCOM G510 * * T = 150mSec -> Received SMS (G510) * _____ <-------------> ___________ * | | * | | * |_______________| * * T = 1Sec -> Incoming Call T = 1Sec * _____ <-------------> _______________ <-------------> _______________ _______ * | | | | | | * | | | | | | * |_______________| |_______________| |_______________| * <-------------> <-------------> * T = 1Sec T = 1Sec * * Stanby HIGH * ----------------------------------- * Voice Call The pin is cahnged to low, and kept low for 1Sec then the pin will be changed to high and kept high for 1Sec. * This sequence terminate when: * (1) Establish the call * (2) Hang Up the call * ----------------------------------- * Data Call The pin is cahnged to low, and kept low for 1Sec then the pin will be changed to high and kept high for 1Sec. * This sequence terminate when: * (1) Establish the call * (2) Hang Up the call * ----------------------------------- * SMS The pin changed to low, and kept low for 150mSec when a SMS is received. Then it is changed to high * * PreCondition: None * * GSM cmd syntax: None * * Input: None * * Command Note: None * * Output: None * * GSM answer det: None * * Side Effects: None * * Note: This is a public function *****************************************************************************/ #ifdef ARDUINO_UNO_REV3 ISR(INT0_vect) { #endif #ifdef ARDUINO_MEGA2560_REV3 ISR(INT4_vect) { #endif if (Gsm.GsmFlag.Bit.GsmInitInProgress == 1) { return; } Gsm.ResetFlags(); Gsm.ReadPointer = 0; Gsm.UartArrayPointer = &Gsm.GSM_Data_Array[0]; Gsm.StateSendCmd = CMD_IDLE; Gsm.StateWaitAnswerCmd = CMD_WAIT_IDLE; Gsm.UartState = UART_WAITDATA_STATE; Gsm.GsmFlag.Bit.CringOccurred = 1; } /****************************************************************************/
37.527108
129
0.488723
2a0ed02d92d334b53f126460e3e1b3e203287c75
21,795
java
Java
pig/src/main/java/org/jboss/pnc/bacon/pig/impl/pnc/PncEntitiesImporter.java
janinko/bacon
b4f2fac0900985d8aca43ca93185c609c86f1f32
[ "Apache-2.0" ]
null
null
null
pig/src/main/java/org/jboss/pnc/bacon/pig/impl/pnc/PncEntitiesImporter.java
janinko/bacon
b4f2fac0900985d8aca43ca93185c609c86f1f32
[ "Apache-2.0" ]
null
null
null
pig/src/main/java/org/jboss/pnc/bacon/pig/impl/pnc/PncEntitiesImporter.java
janinko/bacon
b4f2fac0900985d8aca43ca93185c609c86f1f32
[ "Apache-2.0" ]
null
null
null
/* * JBoss, Home of Professional Open Source. * Copyright 2017 Red Hat, Inc., and individual contributors * as indicated by the @author tags. * <p> * 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 * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * 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.jboss.pnc.bacon.pig.impl.pnc; import org.jboss.pnc.bacon.pig.impl.PigContext; import org.jboss.pnc.bacon.pig.impl.config.BuildConfig; import org.jboss.pnc.bacon.pig.impl.config.Config; import org.jboss.pnc.bacon.pig.impl.config.ProductConfig; import org.jboss.pnc.bacon.pig.impl.utils.CollectionUtils; import org.jboss.pnc.bacon.pig.impl.utils.PncClientUtils; import org.jboss.pnc.bacon.pig.impl.utils.SleepUtils; import org.jboss.pnc.bacon.pnc.client.PncClientHelper; import org.jboss.pnc.client.BuildConfigurationClient; import org.jboss.pnc.client.ClientException; import org.jboss.pnc.client.GroupConfigurationClient; import org.jboss.pnc.client.ProductClient; import org.jboss.pnc.client.ProductVersionClient; import org.jboss.pnc.client.ProjectClient; import org.jboss.pnc.client.RemoteCollection; import org.jboss.pnc.client.RemoteResourceException; import org.jboss.pnc.client.SCMRepositoryClient; import org.jboss.pnc.dto.BuildConfiguration; import org.jboss.pnc.dto.BuildConfigurationRef; import org.jboss.pnc.dto.Environment; import org.jboss.pnc.dto.GroupConfiguration; import org.jboss.pnc.dto.Product; import org.jboss.pnc.dto.ProductMilestone; import org.jboss.pnc.dto.ProductRef; import org.jboss.pnc.dto.ProductVersion; import org.jboss.pnc.dto.ProductVersionRef; import org.jboss.pnc.dto.Project; import org.jboss.pnc.dto.ProjectRef; import org.jboss.pnc.dto.SCMRepository; import org.jboss.pnc.dto.requests.CreateAndSyncSCMRequest; import org.jboss.pnc.dto.response.RepositoryCreationResponse; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Optional; import java.util.Set; import java.util.stream.Collectors; import static java.util.Optional.empty; import static org.jboss.pnc.bacon.pig.impl.utils.PncClientUtils.findByNameQuery; import static org.jboss.pnc.bacon.pig.impl.utils.PncClientUtils.maybeSingle; import static org.jboss.pnc.bacon.pig.impl.utils.PncClientUtils.query; import static org.jboss.pnc.bacon.pig.impl.utils.PncClientUtils.toStream; /** * @author Michal Szynkiewicz, michal.l.szynkiewicz@gmail.com <br> * Date: 11/28/17 */ public class PncEntitiesImporter { private static final Logger log = LoggerFactory.getLogger(PncEntitiesImporter.class); private final BuildConfigurationClient buildConfigClient; private final GroupConfigurationClient groupConfigClient; private final ProductClient productClient; private final ProjectClient projectClient; private final SCMRepositoryClient repoClient; private final ProductVersionClient versionClient; private ProductRef product; private ProductVersionRef version; private ProductMilestone milestone; private GroupConfiguration buildGroup; private List<BuildConfigData> configs; private Config config = PigContext.get().getConfig(); private PncConfigurator pncConfigurator = new PncConfigurator(); public PncEntitiesImporter() { buildConfigClient = new BuildConfigurationClient(PncClientHelper.getPncConfiguration()); groupConfigClient = new GroupConfigurationClient(PncClientHelper.getPncConfiguration()); productClient = new ProductClient(PncClientHelper.getPncConfiguration()); projectClient = new ProjectClient(PncClientHelper.getPncConfiguration()); repoClient = new SCMRepositoryClient(PncClientHelper.getPncConfiguration()); versionClient = new ProductVersionClient(PncClientHelper.getPncConfiguration()); } public ImportResult performImport() { product = getOrGenerateProduct(); version = getOrGenerateVersion(); milestone = pncConfigurator.getOrGenerateMilestone(version, pncMilestoneString(), config.getProduct().getIssueTrackerUrl()); pncConfigurator.markMilestoneCurrent(version, milestone); buildGroup = getOrGenerateBuildGroup(); configs = getAddOrUpdateBuildConfigs(); log.debug("Setting up build dependencies"); setUpBuildDependencies(); log.debug("Adding builds to group"); addBuildConfigIdsToGroup(); return new ImportResult(milestone, buildGroup, version, configs); } private void setUpBuildDependencies() { configs.parallelStream().forEach(this::setUpBuildDependencies); } private void setUpBuildDependencies(BuildConfigData config) { String id = config.getId(); // todo : store build configuration refs in BuildConfigData and use it instead of ids here Set<String> dependencies = config.getDependencies().stream().map(this::configByName).collect(Collectors.toSet()); Set<String> currentDependencies = getCurrentDependencies(id); Set<String> superfluous = CollectionUtils.subtractSet(currentDependencies, dependencies); if (!superfluous.isEmpty()) { superfluous.forEach(dependencyId -> removeDependency(id, dependencyId)); } Set<String> missing = CollectionUtils.subtractSet(dependencies, currentDependencies); if (!missing.isEmpty()) { missing.stream().map(this::getBuildConfigFromId).forEach(dependency -> addDependency(id, dependency)); } if (!superfluous.isEmpty() || !missing.isEmpty()) { config.setModified(true); } } private void addDependency(String configId, BuildConfiguration dependency) { try { buildConfigClient.addDependency(configId, dependency); } catch (RemoteResourceException e) { throw new RuntimeException("Failed to add dependency " + dependency.getId() + " to " + configId, e); } } private void removeDependency(String buildConfigId, String dependencyId) { try { buildConfigClient.removeDependency(buildConfigId, dependencyId); } catch (RemoteResourceException e) { throw new RuntimeException("Failed to remove dependency" + dependencyId + " from config" + buildConfigId, e); } } private Set<String> getCurrentDependencies(String buildConfigId) { try { return toStream(buildConfigClient.getDependencies(buildConfigId)).map(BuildConfigurationRef::getId) .collect(Collectors.toSet()); } catch (RemoteResourceException e) { throw new RuntimeException("Failed to get dependencies for build config " + buildConfigId, e); } } private String configByName(String name) { Optional<BuildConfigData> maybeConfig = configs.stream().filter(c -> c.getName().equals(name)).findAny(); return maybeConfig .orElseThrow(() -> new RuntimeException( "Build config name " + name + " used to reference a dependency but no such build config defined")) .getId(); } private void addBuildConfigIdsToGroup() { String configIdsAsString = configs.stream().map(BuildConfigData::getId).map(String::valueOf) .collect(Collectors.joining(" ")); Set<String> existing = getExistingGroupConstituents(); Set<String> target = configs.stream().map(BuildConfigData::getId).collect(Collectors.toSet()); CollectionUtils.subtractSet(existing, target).forEach(this::removeConfigurationFromGroup); CollectionUtils.subtractSet(target, existing).forEach(this::addConfigurationToGroup); } private Set<String> getExistingGroupConstituents() { try { return toStream(groupConfigClient.getConfigurations(buildGroup.getId())).map(BuildConfiguration::getId) .collect(Collectors.toSet()); } catch (RemoteResourceException e) { throw new RuntimeException("Failed to get configs from the group", e); } } private void removeConfigurationFromGroup(String superfluousId) { try { groupConfigClient.removeConfiguration(buildGroup.getId(), superfluousId); } catch (RemoteResourceException e) { throw new RuntimeException("Failed to remove config " + superfluousId + " from the group", e); } } private void addConfigurationToGroup(String newConfigId) { try { groupConfigClient.addConfiguration(buildGroup.getId(), getBuildConfigFromId(newConfigId)); } catch (RemoteResourceException e) { throw new RuntimeException("Failed to add config " + newConfigId + " to the group", e); } } private List<BuildConfigData> getAddOrUpdateBuildConfigs() { log.info("Adding/updating build configurations"); List<BuildConfiguration> currentConfigs = getCurrentBuildConfigs(); dropConfigsFromInvalidVersion(currentConfigs, config.getBuilds()); return updateOrCreate(currentConfigs, config.getBuilds()); } private Optional<BuildConfiguration> getBuildConfigFromName(String name) { try { return maybeSingle(buildConfigClient.getAll(empty(), findByNameQuery(name))); } catch (RemoteResourceException e) { throw new RuntimeException("Failed to get build configuration " + name, e); } } private BuildConfiguration getBuildConfigFromId(String id) { try { return buildConfigClient.getSpecific(id); } catch (ClientException e) { throw new RuntimeException("Failed to get build configuration " + id, e); } } private List<BuildConfigData> updateOrCreate(List<BuildConfiguration> currentConfigs, List<BuildConfig> builds) { List<BuildConfigData> buildList = new ArrayList<>(); for (BuildConfig bc : builds) { BuildConfigData data = new BuildConfigData(bc); for (BuildConfiguration config : currentConfigs) { if (config.getName().equals(bc.getName())) { data.setOldConfig(config); if (data.shouldBeUpdated()) { updateBuildConfig(data); } } } // Check if build exists already (globally) // True = Add to BCS and update BC (maybe ask?) Optional<BuildConfiguration> matchedBuildConfig = getBuildConfigFromName(bc.getName()); if (matchedBuildConfig.isPresent()) { log.debug("Found matching build config for {}", bc.getName()); data.setOldConfig(matchedBuildConfig.get()); if (data.shouldBeUpdated()) { updateBuildConfig(data); } data.setModified(true); } else { log.debug("No matching build config found in the BCS"); // False = Create new project/BC BuildConfiguration createdConfig = createBuildConfig(data.getNewConfig()); data.setId(createdConfig.getId()); data.setModified(true); log.debug("Didn't find matching build config for {}", bc.getName()); } buildList.add(data); } return buildList; } private BuildConfiguration createBuildConfig(BuildConfig buildConfig) { BuildConfiguration config = generatePncBuildConfig(buildConfig); try { return buildConfigClient.createNew(config); } catch (ClientException e) { throw new RuntimeException("Failed to create build configuration " + config, e); } } private BuildConfiguration generatePncBuildConfig(BuildConfig buildConfig) { ProjectRef project = getOrGenerateProject(buildConfig.getProject()); SCMRepository repository = getOrGenerateRepository(buildConfig); Environment environment = Environment.builder().id(buildConfig.getEnvironmentId()).build(); return BuildConfiguration.builder().productVersion(version).parameters(buildConfig.getGenericParameters(null, false)) .name(buildConfig.getName()).project(project).environment(environment).scmRepository(repository) .scmRevision(buildConfig.getScmRevision()).buildScript(buildConfig.getBuildScript()).build(); } private SCMRepository getOrGenerateRepository(BuildConfig buildConfig) { Optional<SCMRepository> existingRepository = getExistingRepository(buildConfig); return existingRepository.orElseGet(() -> createRepository(buildConfig)); } private Optional<SCMRepository> getExistingRepository(BuildConfig buildConfig) { String searchTerm = buildConfig.getShortScmURIPath(); try { return toStream(repoClient.getAll(null, searchTerm)).filter(buildConfig::matchesRepository).findAny(); } catch (RemoteResourceException e) { throw new RuntimeException("Failed to search for repository by " + searchTerm, e); } } private SCMRepository createRepository(BuildConfig buildConfig) { String scmUrl = buildConfig.getScmUrl() == null ? buildConfig.getExternalScmUrl() : buildConfig.getScmUrl(); CreateAndSyncSCMRequest createRepoRequest = CreateAndSyncSCMRequest.builder().preBuildSyncEnabled(true).scmUrl(scmUrl) .build(); try { // todo: does it work with the external urls? RepositoryCreationResponse response = repoClient.createNew(createRepoRequest); SCMRepository repository = response.getRepository(); if (repository != null) { return repository; } else { // a task to create repo has been triggered, let's wait for a while in a hope it will be created: return SleepUtils.waitFor(() -> getExistingRepository(buildConfig).orElse(null), 5, // s 5 * 60, // s false, "Timed out waiting for repository to be created"); } } catch (ClientException e) { throw new RuntimeException("Failed to trigger repository creation for " + scmUrl, e); } } private BuildConfiguration updateBuildConfig(BuildConfigData data) { String configId = data.getId(); BuildConfiguration buildConfiguration = generatePncBuildConfig(data.getNewConfig()); try { buildConfigClient.update(configId, buildConfiguration); return buildConfigClient.getSpecific(configId); } catch (ClientException e) { throw new RuntimeException("Failed to update build configuration " + configId, e); } } private Project getOrGenerateProject(String projectName) { RemoteCollection<Project> query = null; try { query = projectClient.getAll(empty(), findByNameQuery(projectName)); } catch (RemoteResourceException e) { throw new RuntimeException("Failed to search for project " + projectName, e); } return maybeSingle(query).orElseGet(() -> generateProject(projectName)); } private Project generateProject(String projectName) { Project project = Project.builder().name(projectName).build(); try { return projectClient.createNew(project); } catch (ClientException e) { throw new RuntimeException("Failed to create project " + projectName, e); } } private List<BuildConfiguration> dropConfigsFromInvalidVersion(List<BuildConfiguration> currentConfigs, List<BuildConfig> newConfigs) { Map<String, BuildConfig> newConfigsByName = BuildConfig.mapByName(newConfigs); List<BuildConfiguration> configsToDrop = currentConfigs.stream() .filter(config -> shouldBeDropped(config, newConfigsByName)).collect(Collectors.toList()); if (!configsToDrop.isEmpty()) { throw new RuntimeException("The following configurations should be dropped or updated " + "in an unsupported fashion, please drop or update them via PNC UI: " + configsToDrop + ". Look above for the cause"); } return configsToDrop; } private boolean shouldBeDropped(BuildConfiguration oldConfig, Map<String, BuildConfig> newConfigsByName) { String name = oldConfig.getName(); BuildConfig newConfig = newConfigsByName.get(name); ProductVersionRef productVersion = oldConfig.getProductVersion(); boolean configMismatch = productVersion == null || !productVersion.getId().equals(version.getId()); if (configMismatch) { log.warn("Product version in the old config is different than the one in the new config for config {}", name); } return configMismatch || newConfig == null || !newConfig.isUpgradableFrom(oldConfig); } private List<BuildConfiguration> getCurrentBuildConfigs() { try { return PncClientUtils.toList(groupConfigClient.getConfigurations(buildGroup.getId())); } catch (RemoteResourceException e) { throw new RuntimeException("Failed to get configurations for config group: " + buildGroup.getId()); } } private GroupConfiguration getOrGenerateBuildGroup() { Optional<GroupConfiguration> buildConfigSetId = getBuildGroup(); return buildConfigSetId.orElseGet(() -> generateBuildGroup(version)); } private Optional<GroupConfiguration> getBuildGroup() { try { return toStream(groupConfigClient.getAll(empty(), Optional.of("name==" + config.getGroup()))).findAny(); } catch (RemoteResourceException e) { throw new RuntimeException("Failed to check if build group exists"); } } private ProductVersion getOrGenerateVersion() { return getVersion().orElseGet(this::generateVersion); } private Product getOrGenerateProduct() { return getProduct().orElseGet(this::generateProduct); } private Optional<Product> getProduct() { String productName = config.getProduct().getName(); try { return maybeSingle(productClient.getAll(empty(), findByNameQuery(productName))); } catch (RemoteResourceException e) { throw new RuntimeException("Failed to get product data", e); } } private ProductVersion generateVersion() { ProductVersion productVersion = ProductVersion.builder().product(product).version(config.getMajorMinor()).build(); try { return versionClient.createNew(productVersion); } catch (ClientException e) { throw new RuntimeException("Failed to create the product version", e); } } private Product generateProduct() { ProductConfig productConfig = config.getProduct(); Product product = Product.builder().name(productConfig.getName()).abbreviation(productConfig.getAbbreviation()).build(); try { return productClient.createNew(product); } catch (ClientException e) { throw new RuntimeException("Failed to create the product", e); } } private GroupConfiguration generateBuildGroup(ProductVersionRef version) { GroupConfiguration group = GroupConfiguration.builder().productVersion(version).name(config.getGroup()).build(); try { return groupConfigClient.createNew(group); } catch (ClientException e) { throw new RuntimeException("Failed to create group config: " + config.getGroup()); } } public ImportResult readCurrentPncEntities() { product = getProduct().orElseThrow(() -> new RuntimeException("Unable to product " + config.getProduct().getName())); version = getVersion().orElseThrow( () -> new RuntimeException("Unable to find version " + config.getMajorMinor() + " for product " + product)); milestone = pncConfigurator.getExistingMilestone(version, pncMilestoneString()) .orElseThrow(() -> new RuntimeException("Unable to find milestone " + pncMilestoneString())); // TODO buildGroup = getBuildGroup().orElseThrow(() -> new RuntimeException("Unable to find build group " + config.getGroup())); configs = getBuildConfigs(); return new ImportResult(milestone, buildGroup, version, configs); } private List<BuildConfigData> getBuildConfigs() { List<BuildConfiguration> configs = getCurrentBuildConfigs(); return configs.stream().map(config -> { BuildConfigData result = new BuildConfigData(null); result.setOldConfig(config); return result; }).collect(Collectors.toList()); } private Optional<ProductVersion> getVersion() { try { Optional<String> byName = query("version==", config.getMajorMinor()); return maybeSingle(productClient.getProductVersions(product.getId(), empty(), byName)); } catch (RemoteResourceException e) { throw new RuntimeException("Failed to query for version", e); } } private String pncMilestoneString() { return config.getMicro() + "." + config.getMilestone(); } }
45.030992
128
0.681854
4af0817142e1b76828a0b35f4d22ad9fadf359c4
2,072
dart
Dart
lib/src/brotli/ffi/library.dart
instantiations/es_compression
5904c6e8a4428f14ae1de4d18d542c0df2b36559
[ "BSD-3-Clause" ]
16
2020-11-03T18:48:55.000Z
2022-03-29T08:42:41.000Z
lib/src/brotli/ffi/library.dart
instantiations/es_compression
5904c6e8a4428f14ae1de4d18d542c0df2b36559
[ "BSD-3-Clause" ]
13
2020-12-08T18:01:58.000Z
2022-03-29T11:21:51.000Z
lib/src/brotli/ffi/library.dart
instantiations/es_compression
5904c6e8a4428f14ae1de4d18d542c0df2b36559
[ "BSD-3-Clause" ]
2
2021-01-07T05:23:22.000Z
2021-07-06T22:45:11.000Z
// Copyright (c) 2021, Instantiations, Inc. Please see the AUTHORS // file for details. All rights reserved. Use of this source code is governed by // a BSD-style license that can be found in the LICENSE file. import 'dart:ffi'; import '../../framework/native/library/open_library.dart'; import 'constants.dart'; import 'functions.dart'; import 'types.dart'; /// An [BrotliLibrary] is the gateway to the native Brotli shared library. /// /// It has a series of mixins for making available constants, types and /// functions that are described in C header files. class BrotliLibrary with OpenLibrary, BrotliConstants, BrotliFunctions, BrotliTypes { /// Library path the user can define to override normal resolution. static String? _userDefinedLibraryPath; /// Return the library path defined by the user. static String? get userDefinedLibraryPath => _userDefinedLibraryPath; /// Set the library [path] defined by the user. /// /// Throw a [StateError] if this library has already been initialized. static set userDefinedLibraryPath(String? path) { if (_initialized == true) { throw StateError('BrotliLibrary already initialized.'); } _userDefinedLibraryPath = path; } /// Singleton instance. static final BrotliLibrary _instance = BrotliLibrary._(_userDefinedLibraryPath); /// Tracks library init state. /// /// Set to [:true:] if this library is opened and all functions are resolved. static bool _initialized = false; /// Dart native library object. late final DynamicLibrary? _libraryImpl; /// Unique id of this library module. @override String get moduleId => 'brotli'; /// Return the [BrotliLibrary] singleton library instance. factory BrotliLibrary() { return _instance; } /// Internal constructor that opens the native shared library and resolves /// all the functions. BrotliLibrary._(String? libraryPath) { _libraryImpl = openLibrary(path: libraryPath); if (_libraryImpl != null) { resolveFunctions(_libraryImpl!); _initialized = true; } } }
31.876923
80
0.720077
28c0f3be5e5b664d19cf0d1e4be3ae7e1c440ee4
744
cpp
C++
src/cpu-kernels/awkward_Index_nones_as_index.cpp
BioGeek/awkward-1.0
0cfb4e43c41d5c7d9830cc7b1d750485c0a93eb2
[ "BSD-3-Clause" ]
519
2019-10-17T12:36:22.000Z
2022-03-26T23:28:19.000Z
src/cpu-kernels/awkward_Index_nones_as_index.cpp
BioGeek/awkward-1.0
0cfb4e43c41d5c7d9830cc7b1d750485c0a93eb2
[ "BSD-3-Clause" ]
924
2019-11-03T21:05:01.000Z
2022-03-31T22:44:30.000Z
src/cpu-kernels/awkward_Index_nones_as_index.cpp
BioGeek/awkward-1.0
0cfb4e43c41d5c7d9830cc7b1d750485c0a93eb2
[ "BSD-3-Clause" ]
56
2019-12-17T15:49:22.000Z
2022-03-09T20:34:06.000Z
// BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE #define FILENAME(line) FILENAME_FOR_EXCEPTIONS_C("src/cpu-kernels/awkward_Index_nones_as_index.cpp", line) #include "awkward/kernels.h" template <typename T> ERROR awkward_Index_nones_as_index( T* toindex, int64_t length) { int64_t last_index = 0; for (int64_t i = 0; i < length; i++) { toindex[i] > last_index ? last_index = toindex[i] : last_index; } for (int64_t i = 0; i < length; i++) { toindex[i] == -1 ? toindex[i] = ++last_index : toindex[i]; } return success(); } ERROR awkward_Index_nones_as_index_64( int64_t* toindex, int64_t length) { return awkward_Index_nones_as_index<int64_t>( toindex, length); }
27.555556
106
0.698925
751e6bbd713143fe0038d7ba78eb5a7ce76b4290
173
h
C
camera.h
bannid/CardGame
c5df2adb7a96df506fa24544cd8499076bb3ebbc
[ "Zlib" ]
null
null
null
camera.h
bannid/CardGame
c5df2adb7a96df506fa24544cd8499076bb3ebbc
[ "Zlib" ]
null
null
null
camera.h
bannid/CardGame
c5df2adb7a96df506fa24544cd8499076bb3ebbc
[ "Zlib" ]
null
null
null
#ifndef CAMERA_H #define CAMERA_H #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> class Camera { }; #endif //CAMERA_H
13.307692
39
0.716763
753b784f25f4aaf672f69a91180727823719c234
561
cs
C#
tests/LightningPay.IntegrationTest/CLightningClientIntegrationTest.cs
khan202122/LightningPay
5851d1e98fb9da9353ad8020f1a7f7448bb46ffb
[ "MIT" ]
null
null
null
tests/LightningPay.IntegrationTest/CLightningClientIntegrationTest.cs
khan202122/LightningPay
5851d1e98fb9da9353ad8020f1a7f7448bb46ffb
[ "MIT" ]
null
null
null
tests/LightningPay.IntegrationTest/CLightningClientIntegrationTest.cs
khan202122/LightningPay
5851d1e98fb9da9353ad8020f1a7f7448bb46ffb
[ "MIT" ]
null
null
null
using System.Threading.Tasks; using LightningPay.Clients.CLightning; namespace LightningPay.IntegrationTest { public class CLightningClientIntegrationTest : LightningClientIntegrationTestBase { protected override bool NeedBitcoind => true; protected override Task<ILightningClient> GetClient() { ILightningClient client = CLightningClient.New("tcp://127.0.0.1:48532"); return Task.FromResult(client); } protected override string SelfPaymentErrorMesssage => "Error code 210"; } }
26.714286
85
0.702317
cab5d611739db3dcf0645e88d661acf8d6d3dcdc
2,411
kt
Kotlin
src/main/kotlin/nexos/intellij/ddd/jddd/jddd.kt
xmolecules/jmolecules-intellij-plugin
06afb47a29d17597577f6966770b6d4f0a80a596
[ "Apache-2.0" ]
3
2021-07-05T11:56:33.000Z
2022-01-15T02:38:08.000Z
src/main/kotlin/nexos/intellij/ddd/jddd/jddd.kt
xmolecules/jmolecules-intellij-plugin
06afb47a29d17597577f6966770b6d4f0a80a596
[ "Apache-2.0" ]
8
2021-07-07T07:43:11.000Z
2021-12-22T16:51:14.000Z
src/main/kotlin/nexos/intellij/ddd/jddd/jddd.kt
nexoscp/intellij-jddd
06afb47a29d17597577f6966770b6d4f0a80a596
[ "Apache-2.0" ]
1
2020-09-26T19:15:56.000Z
2020-09-26T19:15:56.000Z
package nexos.intellij.ddd.jddd import com.intellij.openapi.roots.ExternalLibraryDescriptor import nexos.intellij.ddd.Framework import nexos.intellij.ddd.Info import nexos.intellij.ddd.Library import nexos.intellij.ddd.Repository as ddd_Repository import nexos.intellij.ddd.AggregateRoot as ddd_AggregateRoot import nexos.intellij.ddd.Entity as ddd_Entity import nexos.intellij.ddd.Factory as ddd_Factory import nexos.intellij.ddd.Service as ddd_Service import nexos.intellij.ddd.ValueObject as ddd_ValueObject import nexos.intellij.ddd.ApplicationLayer as ddd_ApplicationLayer import nexos.intellij.ddd.DomainLayer as ddd_DomainLayer import nexos.intellij.ddd.InfrastructureLayer as ddd_InfrastructureLayer import nexos.intellij.ddd.InterfaceLayer as ddd_InterfaceLayer import nexos.intellij.ddd.DomainEvent as ddd_DomainEvent object jDDD: Framework("jDDD") { val all by lazy { listOf(Repository, AggregateRoot, Entity, Factory, Service, ValueObject, ApplicationLayer, DomainLayer, InfrastructureLayer, InterfaceLayer, DomainEvent) } } val CoreLib = Library(jDDD, ExternalLibraryDescriptor("org.jddd", "jddd-core")) val ArchitectureLayeredLib = Library(jDDD, ExternalLibraryDescriptor("org.jddd", "jddd-architecture-layered")) val DomainEventLib = Library(jDDD, ExternalLibraryDescriptor("org.jddd", "jddd-events")) val Repository = Info("org.jddd.core.annotation.Repository", ddd_Repository, CoreLib) val AggregateRoot = Info("org.jddd.core.annotation.AggregateRoot", ddd_AggregateRoot, CoreLib) val Entity = Info("org.jddd.core.annotation.Entity", ddd_Entity, CoreLib) val Factory = Info("org.jddd.core.annotation.Factory", ddd_Factory, CoreLib) val Service = Info("org.jddd.core.annotation.Service", ddd_Service, CoreLib) val ValueObject = Info("org.jddd.core.annotation.ValueObject",ddd_ValueObject, CoreLib) val ApplicationLayer = Info("org.jddd.architecture.layered.ApplicationLayer", ddd_ApplicationLayer, ArchitectureLayeredLib) val DomainLayer = Info("org.jddd.architecture.layered.DomainLayer", ddd_DomainLayer, ArchitectureLayeredLib) val InfrastructureLayer = Info("org.jddd.architecture.layered.InfrastructureLayer", ddd_InfrastructureLayer, ArchitectureLayeredLib) val InterfaceLayer = Info("org.jddd.architecture.layered.InterfaceLayer",ddd_InterfaceLayer, ArchitectureLayeredLib) val DomainEvent = Info("org.jddd.event.annotation.DomainEvent", ddd_DomainEvent, DomainEventLib)
61.820513
177
0.831605
1fec2346a3621dd968a833368a83c9c16c366ea2
92,235
css
CSS
assets/css/fonts/ibm-plex.css
jordanopensource/dsp-web
62680a2c05b8ab895eebfa09918d78c9905cc5f7
[ "Unlicense", "MIT" ]
4
2021-05-01T02:08:34.000Z
2022-03-28T07:32:31.000Z
assets/css/fonts/ibm-plex.css
jordanopensource/dsp-web
62680a2c05b8ab895eebfa09918d78c9905cc5f7
[ "Unlicense", "MIT" ]
14
2021-03-22T09:58:40.000Z
2022-02-26T02:21:55.000Z
assets/css/fonts/ibm-plex.css
jordanopensource/dsp-web
62680a2c05b8ab895eebfa09918d78c9905cc5f7
[ "Unlicense", "MIT" ]
4
2021-10-09T16:44:33.000Z
2022-03-30T11:26:18.000Z
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 700; src: local("IBM Plex Mono Bold"), local("IBMPlexMono-Bold"), url("/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-Bold.woff2") format("woff2"), url("/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-Bold.woff") format("woff"); } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 700; src: local("IBM Plex Mono Bold"), local("IBMPlexMono-Bold"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Bold-Cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0472-0473, U+0490-049D, U+04A0-04A5, U+04AA-04AB, U+04AE-04B3, U+04B6-04BB, U+04C0-04C2, U+04CF-04D9, U+04DC-04DF, U+04E2-04E9, U+04EE-04F5, U+04F8-04F9; } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 700; src: local("IBM Plex Mono Bold"), local("IBMPlexMono-Bold"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Bold-Pi.woff2") format("woff2"); unicode-range: U+0E3F, U+2032-2033, U+2070, U+2075-2079, U+2080-2081, U+2083, U+2085-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+21A9-21AA, U+21B0-21B3, U+21B6-21B7, U+21BA-21BB, U+21C4, U+21C6, U+2202, U+2206, U+220F, U+2211, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+274C, U+2B0E-2B11, U+EBE1-EBE7, U+ECE0, U+EFCC; } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 700; src: local("IBM Plex Mono Bold"), local("IBMPlexMono-Bold"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Bold-Latin3.woff2") format("woff2"); unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB; } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 700; src: local("IBM Plex Mono Bold"), local("IBMPlexMono-Bold"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Bold-Latin2.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 700; src: local("IBM Plex Mono Bold"), local("IBMPlexMono-Bold"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Bold-Latin1.woff2") format("woff2"); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 700; src: local("IBM Plex Mono Bold Italic"), local("IBMPlexMono-BoldItalic"), url("/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-BoldItalic.woff2") format("woff2"), url("/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-BoldItalic.woff") format("woff"); } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 700; src: local("IBM Plex Mono Bold Italic"), local("IBMPlexMono-BoldItalic"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-BoldItalic-Cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0472-0473, U+0490-049D, U+04A0-04A5, U+04AA-04AB, U+04AE-04B3, U+04B6-04BB, U+04C0-04C2, U+04CF-04D9, U+04DC-04DF, U+04E2-04E9, U+04EE-04F5, U+04F8-04F9; } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 700; src: local("IBM Plex Mono Bold Italic"), local("IBMPlexMono-BoldItalic"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-BoldItalic-Pi.woff2") format("woff2"); unicode-range: U+0E3F, U+2032-2033, U+2070, U+2075-2079, U+2080-2081, U+2083, U+2085-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+21A9-21AA, U+21B0-21B3, U+21B6-21B7, U+21BA-21BB, U+21C4, U+21C6, U+2202, U+2206, U+220F, U+2211, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+274C, U+2B0E-2B11, U+EBE1-EBE7, U+ECE0, U+EFCC; } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 700; src: local("IBM Plex Mono Bold Italic"), local("IBMPlexMono-BoldItalic"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-BoldItalic-Latin3.woff2") format("woff2"); unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB; } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 700; src: local("IBM Plex Mono Bold Italic"), local("IBMPlexMono-BoldItalic"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-BoldItalic-Latin2.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 700; src: local("IBM Plex Mono Bold Italic"), local("IBMPlexMono-BoldItalic"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-BoldItalic-Latin1.woff2") format("woff2"); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 200; src: local("IBM Plex Mono ExtraLight"), local("IBMPlexMono-ExtraLight"), url("/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-ExtraLight.woff2") format("woff2"), url("/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-ExtraLight.woff") format("woff"); } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 200; src: local("IBM Plex Mono ExtraLight"), local("IBMPlexMono-ExtraLight"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-ExtraLight-Cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0472-0473, U+0490-049D, U+04A0-04A5, U+04AA-04AB, U+04AE-04B3, U+04B6-04BB, U+04C0-04C2, U+04CF-04D9, U+04DC-04DF, U+04E2-04E9, U+04EE-04F5, U+04F8-04F9; } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 200; src: local("IBM Plex Mono ExtraLight"), local("IBMPlexMono-ExtraLight"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-ExtraLight-Pi.woff2") format("woff2"); unicode-range: U+0E3F, U+2032-2033, U+2070, U+2075-2079, U+2080-2081, U+2083, U+2085-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+21A9-21AA, U+21B0-21B3, U+21B6-21B7, U+21BA-21BB, U+21C4, U+21C6, U+2202, U+2206, U+220F, U+2211, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+274C, U+2B0E-2B11, U+EBE1-EBE7, U+ECE0, U+EFCC; } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 200; src: local("IBM Plex Mono ExtraLight"), local("IBMPlexMono-ExtraLight"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-ExtraLight-Latin3.woff2") format("woff2"); unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB; } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 200; src: local("IBM Plex Mono ExtraLight"), local("IBMPlexMono-ExtraLight"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-ExtraLight-Latin2.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 200; src: local("IBM Plex Mono ExtraLight"), local("IBMPlexMono-ExtraLight"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-ExtraLight-Latin1.woff2") format("woff2"); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 200; src: local("IBM Plex Mono ExtraLight Italic"), local("IBMPlexMono-ExtraLightItalic"), url("/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-ExtraLightItalic.woff2") format("woff2"), url("/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-ExtraLightItalic.woff") format("woff"); } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 200; src: local("IBM Plex Mono ExtraLight Italic"), local("IBMPlexMono-ExtraLightItalic"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-ExtraLightItalic-Cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0472-0473, U+0490-049D, U+04A0-04A5, U+04AA-04AB, U+04AE-04B3, U+04B6-04BB, U+04C0-04C2, U+04CF-04D9, U+04DC-04DF, U+04E2-04E9, U+04EE-04F5, U+04F8-04F9; } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 200; src: local("IBM Plex Mono ExtraLight Italic"), local("IBMPlexMono-ExtraLightItalic"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-ExtraLightItalic-Pi.woff2") format("woff2"); unicode-range: U+0E3F, U+2032-2033, U+2070, U+2075-2079, U+2080-2081, U+2083, U+2085-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+21A9-21AA, U+21B0-21B3, U+21B6-21B7, U+21BA-21BB, U+21C4, U+21C6, U+2202, U+2206, U+220F, U+2211, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+274C, U+2B0E-2B11, U+EBE1-EBE7, U+ECE0, U+EFCC; } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 200; src: local("IBM Plex Mono ExtraLight Italic"), local("IBMPlexMono-ExtraLightItalic"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-ExtraLightItalic-Latin3.woff2") format("woff2"); unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB; } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 200; src: local("IBM Plex Mono ExtraLight Italic"), local("IBMPlexMono-ExtraLightItalic"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-ExtraLightItalic-Latin2.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 200; src: local("IBM Plex Mono ExtraLight Italic"), local("IBMPlexMono-ExtraLightItalic"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-ExtraLightItalic-Latin1.woff2") format("woff2"); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 400; src: local("IBM Plex Mono Italic"), local("IBMPlexMono-Italic"), url("/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-Italic.woff2") format("woff2"), url("/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-Italic.woff") format("woff"); } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 400; src: local("IBM Plex Mono Italic"), local("IBMPlexMono-Italic"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Italic-Cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0472-0473, U+0490-049D, U+04A0-04A5, U+04AA-04AB, U+04AE-04B3, U+04B6-04BB, U+04C0-04C2, U+04CF-04D9, U+04DC-04DF, U+04E2-04E9, U+04EE-04F5, U+04F8-04F9; } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 400; src: local("IBM Plex Mono Italic"), local("IBMPlexMono-Italic"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Italic-Pi.woff2") format("woff2"); unicode-range: U+0E3F, U+2032-2033, U+2070, U+2075-2079, U+2080-2081, U+2083, U+2085-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+21A9-21AA, U+21B0-21B3, U+21B6-21B7, U+21BA-21BB, U+21C4, U+21C6, U+2202, U+2206, U+220F, U+2211, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+274C, U+2B0E-2B11, U+EBE1-EBE7, U+ECE0, U+EFCC; } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 400; src: local("IBM Plex Mono Italic"), local("IBMPlexMono-Italic"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Italic-Latin3.woff2") format("woff2"); unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB; } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 400; src: local("IBM Plex Mono Italic"), local("IBMPlexMono-Italic"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Italic-Latin2.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 400; src: local("IBM Plex Mono Italic"), local("IBMPlexMono-Italic"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Italic-Latin1.woff2") format("woff2"); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 300; src: local("IBM Plex Mono Light"), local("IBMPlexMono-Light"), url("/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-Light.woff2") format("woff2"), url("/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-Light.woff") format("woff"); } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 300; src: local("IBM Plex Mono Light"), local("IBMPlexMono-Light"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Light-Cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0472-0473, U+0490-049D, U+04A0-04A5, U+04AA-04AB, U+04AE-04B3, U+04B6-04BB, U+04C0-04C2, U+04CF-04D9, U+04DC-04DF, U+04E2-04E9, U+04EE-04F5, U+04F8-04F9; } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 300; src: local("IBM Plex Mono Light"), local("IBMPlexMono-Light"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Light-Pi.woff2") format("woff2"); unicode-range: U+0E3F, U+2032-2033, U+2070, U+2075-2079, U+2080-2081, U+2083, U+2085-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+21A9-21AA, U+21B0-21B3, U+21B6-21B7, U+21BA-21BB, U+21C4, U+21C6, U+2202, U+2206, U+220F, U+2211, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+274C, U+2B0E-2B11, U+EBE1-EBE7, U+ECE0, U+EFCC; } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 300; src: local("IBM Plex Mono Light"), local("IBMPlexMono-Light"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Light-Latin3.woff2") format("woff2"); unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB; } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 300; src: local("IBM Plex Mono Light"), local("IBMPlexMono-Light"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Light-Latin2.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 300; src: local("IBM Plex Mono Light"), local("IBMPlexMono-Light"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Light-Latin1.woff2") format("woff2"); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 300; src: local("IBM Plex Mono Light Italic"), local("IBMPlexMono-LightItalic"), url("/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-LightItalic.woff2") format("woff2"), url("/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-LightItalic.woff") format("woff"); } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 300; src: local("IBM Plex Mono Light Italic"), local("IBMPlexMono-LightItalic"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-LightItalic-Cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0472-0473, U+0490-049D, U+04A0-04A5, U+04AA-04AB, U+04AE-04B3, U+04B6-04BB, U+04C0-04C2, U+04CF-04D9, U+04DC-04DF, U+04E2-04E9, U+04EE-04F5, U+04F8-04F9; } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 300; src: local("IBM Plex Mono Light Italic"), local("IBMPlexMono-LightItalic"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-LightItalic-Pi.woff2") format("woff2"); unicode-range: U+0E3F, U+2032-2033, U+2070, U+2075-2079, U+2080-2081, U+2083, U+2085-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+21A9-21AA, U+21B0-21B3, U+21B6-21B7, U+21BA-21BB, U+21C4, U+21C6, U+2202, U+2206, U+220F, U+2211, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+274C, U+2B0E-2B11, U+EBE1-EBE7, U+ECE0, U+EFCC; } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 300; src: local("IBM Plex Mono Light Italic"), local("IBMPlexMono-LightItalic"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-LightItalic-Latin3.woff2") format("woff2"); unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB; } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 300; src: local("IBM Plex Mono Light Italic"), local("IBMPlexMono-LightItalic"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-LightItalic-Latin2.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 300; src: local("IBM Plex Mono Light Italic"), local("IBMPlexMono-LightItalic"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-LightItalic-Latin1.woff2") format("woff2"); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; src: local("IBM Plex Mono Medium"), local("IBMPlexMono-Medium"), url("/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-Medium.woff2") format("woff2"), url("/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-Medium.woff") format("woff"); } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; src: local("IBM Plex Mono Medium"), local("IBMPlexMono-Medium"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Medium-Cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0472-0473, U+0490-049D, U+04A0-04A5, U+04AA-04AB, U+04AE-04B3, U+04B6-04BB, U+04C0-04C2, U+04CF-04D9, U+04DC-04DF, U+04E2-04E9, U+04EE-04F5, U+04F8-04F9; } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; src: local("IBM Plex Mono Medium"), local("IBMPlexMono-Medium"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Medium-Pi.woff2") format("woff2"); unicode-range: U+0E3F, U+2032-2033, U+2070, U+2075-2079, U+2080-2081, U+2083, U+2085-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+21A9-21AA, U+21B0-21B3, U+21B6-21B7, U+21BA-21BB, U+21C4, U+21C6, U+2202, U+2206, U+220F, U+2211, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+274C, U+2B0E-2B11, U+EBE1-EBE7, U+ECE0, U+EFCC; } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; src: local("IBM Plex Mono Medium"), local("IBMPlexMono-Medium"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Medium-Latin3.woff2") format("woff2"); unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB; } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; src: local("IBM Plex Mono Medium"), local("IBMPlexMono-Medium"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Medium-Latin2.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; src: local("IBM Plex Mono Medium"), local("IBMPlexMono-Medium"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Medium-Latin1.woff2") format("woff2"); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 500; src: local("IBM Plex Mono Medium Italic"), local("IBMPlexMono-MediumItalic"), url("/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-MediumItalic.woff2") format("woff2"), url("/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-MediumItalic.woff") format("woff"); } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 500; src: local("IBM Plex Mono Medium Italic"), local("IBMPlexMono-MediumItalic"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-MediumItalic-Cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0472-0473, U+0490-049D, U+04A0-04A5, U+04AA-04AB, U+04AE-04B3, U+04B6-04BB, U+04C0-04C2, U+04CF-04D9, U+04DC-04DF, U+04E2-04E9, U+04EE-04F5, U+04F8-04F9; } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 500; src: local("IBM Plex Mono Medium Italic"), local("IBMPlexMono-MediumItalic"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-MediumItalic-Pi.woff2") format("woff2"); unicode-range: U+0E3F, U+2032-2033, U+2070, U+2075-2079, U+2080-2081, U+2083, U+2085-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+21A9-21AA, U+21B0-21B3, U+21B6-21B7, U+21BA-21BB, U+21C4, U+21C6, U+2202, U+2206, U+220F, U+2211, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+274C, U+2B0E-2B11, U+EBE1-EBE7, U+ECE0, U+EFCC; } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 500; src: local("IBM Plex Mono Medium Italic"), local("IBMPlexMono-MediumItalic"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-MediumItalic-Latin3.woff2") format("woff2"); unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB; } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 500; src: local("IBM Plex Mono Medium Italic"), local("IBMPlexMono-MediumItalic"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-MediumItalic-Latin2.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 500; src: local("IBM Plex Mono Medium Italic"), local("IBMPlexMono-MediumItalic"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-MediumItalic-Latin1.woff2") format("woff2"); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; src: local("IBM Plex Mono"), local("IBMPlexMono"), url("/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-Regular.woff2") format("woff2"), url("/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-Regular.woff") format("woff"); } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; src: local("IBM Plex Mono"), local("IBMPlexMono"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Regular-Cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0472-0473, U+0490-049D, U+04A0-04A5, U+04AA-04AB, U+04AE-04B3, U+04B6-04BB, U+04C0-04C2, U+04CF-04D9, U+04DC-04DF, U+04E2-04E9, U+04EE-04F5, U+04F8-04F9; } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; src: local("IBM Plex Mono"), local("IBMPlexMono"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Regular-Pi.woff2") format("woff2"); unicode-range: U+0E3F, U+2032-2033, U+2070, U+2075-2079, U+2080-2081, U+2083, U+2085-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+21A9-21AA, U+21B0-21B3, U+21B6-21B7, U+21BA-21BB, U+21C4, U+21C6, U+2202, U+2206, U+220F, U+2211, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+274C, U+2B0E-2B11, U+EBE1-EBE7, U+ECE0, U+EFCC; } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; src: local("IBM Plex Mono"), local("IBMPlexMono"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Regular-Latin3.woff2") format("woff2"); unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB; } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; src: local("IBM Plex Mono"), local("IBMPlexMono"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Regular-Latin2.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; src: local("IBM Plex Mono"), local("IBMPlexMono"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Regular-Latin1.woff2") format("woff2"); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; src: local("IBM Plex Mono SemiBold"), local("IBMPlexMono-SemiBold"), url("/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-SemiBold.woff2") format("woff2"), url("/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-SemiBold.woff") format("woff"); } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; src: local("IBM Plex Mono SemiBold"), local("IBMPlexMono-SemiBold"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-SemiBold-Cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0472-0473, U+0490-049D, U+04A0-04A5, U+04AA-04AB, U+04AE-04B3, U+04B6-04BB, U+04C0-04C2, U+04CF-04D9, U+04DC-04DF, U+04E2-04E9, U+04EE-04F5, U+04F8-04F9; } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; src: local("IBM Plex Mono SemiBold"), local("IBMPlexMono-SemiBold"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-SemiBold-Pi.woff2") format("woff2"); unicode-range: U+0E3F, U+2032-2033, U+2070, U+2075-2079, U+2080-2081, U+2083, U+2085-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+21A9-21AA, U+21B0-21B3, U+21B6-21B7, U+21BA-21BB, U+21C4, U+21C6, U+2202, U+2206, U+220F, U+2211, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+274C, U+2B0E-2B11, U+EBE1-EBE7, U+ECE0, U+EFCC; } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; src: local("IBM Plex Mono SemiBold"), local("IBMPlexMono-SemiBold"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-SemiBold-Latin3.woff2") format("woff2"); unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB; } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; src: local("IBM Plex Mono SemiBold"), local("IBMPlexMono-SemiBold"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-SemiBold-Latin2.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; src: local("IBM Plex Mono SemiBold"), local("IBMPlexMono-SemiBold"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-SemiBold-Latin1.woff2") format("woff2"); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 600; src: local("IBM Plex Mono SemiBold Italic"), local("IBMPlexMono-SemiBoldItalic"), url("/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-SemiBoldItalic.woff2") format("woff2"), url("/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-SemiBoldItalic.woff") format("woff"); } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 600; src: local("IBM Plex Mono SemiBold Italic"), local("IBMPlexMono-SemiBoldItalic"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-SemiBoldItalic-Cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0472-0473, U+0490-049D, U+04A0-04A5, U+04AA-04AB, U+04AE-04B3, U+04B6-04BB, U+04C0-04C2, U+04CF-04D9, U+04DC-04DF, U+04E2-04E9, U+04EE-04F5, U+04F8-04F9; } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 600; src: local("IBM Plex Mono SemiBold Italic"), local("IBMPlexMono-SemiBoldItalic"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-SemiBoldItalic-Pi.woff2") format("woff2"); unicode-range: U+0E3F, U+2032-2033, U+2070, U+2075-2079, U+2080-2081, U+2083, U+2085-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+21A9-21AA, U+21B0-21B3, U+21B6-21B7, U+21BA-21BB, U+21C4, U+21C6, U+2202, U+2206, U+220F, U+2211, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+274C, U+2B0E-2B11, U+EBE1-EBE7, U+ECE0, U+EFCC; } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 600; src: local("IBM Plex Mono SemiBold Italic"), local("IBMPlexMono-SemiBoldItalic"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-SemiBoldItalic-Latin3.woff2") format("woff2"); unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB; } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 600; src: local("IBM Plex Mono SemiBold Italic"), local("IBMPlexMono-SemiBoldItalic"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-SemiBoldItalic-Latin2.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 600; src: local("IBM Plex Mono SemiBold Italic"), local("IBMPlexMono-SemiBoldItalic"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-SemiBoldItalic-Latin1.woff2") format("woff2"); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 450; src: local("IBM Plex Mono Text"), local("IBMPlexMono-Text"), url("/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-Text.woff2") format("woff2"), url("/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-Text.woff") format("woff"); } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 450; src: local("IBM Plex Mono Text"), local("IBMPlexMono-Text"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Text-Cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0472-0473, U+0490-049D, U+04A0-04A5, U+04AA-04AB, U+04AE-04B3, U+04B6-04BB, U+04C0-04C2, U+04CF-04D9, U+04DC-04DF, U+04E2-04E9, U+04EE-04F5, U+04F8-04F9; } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 450; src: local("IBM Plex Mono Text"), local("IBMPlexMono-Text"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Text-Pi.woff2") format("woff2"); unicode-range: U+0E3F, U+2032-2033, U+2070, U+2075-2079, U+2080-2081, U+2083, U+2085-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+21A9-21AA, U+21B0-21B3, U+21B6-21B7, U+21BA-21BB, U+21C4, U+21C6, U+2202, U+2206, U+220F, U+2211, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+274C, U+2B0E-2B11, U+EBE1-EBE7, U+ECE0, U+EFCC; } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 450; src: local("IBM Plex Mono Text"), local("IBMPlexMono-Text"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Text-Latin3.woff2") format("woff2"); unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB; } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 450; src: local("IBM Plex Mono Text"), local("IBMPlexMono-Text"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Text-Latin2.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 450; src: local("IBM Plex Mono Text"), local("IBMPlexMono-Text"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Text-Latin1.woff2") format("woff2"); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 450; src: local("IBM Plex Mono Text Italic"), local("IBMPlexMono-TextItalic"), url("/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-TextItalic.woff2") format("woff2"), url("/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-TextItalic.woff") format("woff"); } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 450; src: local("IBM Plex Mono Text Italic"), local("IBMPlexMono-TextItalic"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-TextItalic-Cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0472-0473, U+0490-049D, U+04A0-04A5, U+04AA-04AB, U+04AE-04B3, U+04B6-04BB, U+04C0-04C2, U+04CF-04D9, U+04DC-04DF, U+04E2-04E9, U+04EE-04F5, U+04F8-04F9; } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 450; src: local("IBM Plex Mono Text Italic"), local("IBMPlexMono-TextItalic"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-TextItalic-Pi.woff2") format("woff2"); unicode-range: U+0E3F, U+2032-2033, U+2070, U+2075-2079, U+2080-2081, U+2083, U+2085-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+21A9-21AA, U+21B0-21B3, U+21B6-21B7, U+21BA-21BB, U+21C4, U+21C6, U+2202, U+2206, U+220F, U+2211, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+274C, U+2B0E-2B11, U+EBE1-EBE7, U+ECE0, U+EFCC; } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 450; src: local("IBM Plex Mono Text Italic"), local("IBMPlexMono-TextItalic"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-TextItalic-Latin3.woff2") format("woff2"); unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB; } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 450; src: local("IBM Plex Mono Text Italic"), local("IBMPlexMono-TextItalic"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-TextItalic-Latin2.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 450; src: local("IBM Plex Mono Text Italic"), local("IBMPlexMono-TextItalic"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-TextItalic-Latin1.woff2") format("woff2"); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 100; src: local("IBM Plex Mono Thin"), local("IBMPlexMono-Thin"), url("/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-Thin.woff2") format("woff2"), url("/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-Thin.woff") format("woff"); } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 100; src: local("IBM Plex Mono Thin"), local("IBMPlexMono-Thin"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Thin-Cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0472-0473, U+0490-049D, U+04A0-04A5, U+04AA-04AB, U+04AE-04B3, U+04B6-04BB, U+04C0-04C2, U+04CF-04D9, U+04DC-04DF, U+04E2-04E9, U+04EE-04F5, U+04F8-04F9; } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 100; src: local("IBM Plex Mono Thin"), local("IBMPlexMono-Thin"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Thin-Pi.woff2") format("woff2"); unicode-range: U+0E3F, U+2032-2033, U+2070, U+2075-2079, U+2080-2081, U+2083, U+2085-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+21A9-21AA, U+21B0-21B3, U+21B6-21B7, U+21BA-21BB, U+21C4, U+21C6, U+2202, U+2206, U+220F, U+2211, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+274C, U+2B0E-2B11, U+EBE1-EBE7, U+ECE0, U+EFCC; } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 100; src: local("IBM Plex Mono Thin"), local("IBMPlexMono-Thin"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Thin-Latin3.woff2") format("woff2"); unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB; } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 100; src: local("IBM Plex Mono Thin"), local("IBMPlexMono-Thin"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Thin-Latin2.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 100; src: local("IBM Plex Mono Thin"), local("IBMPlexMono-Thin"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-Thin-Latin1.woff2") format("woff2"); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 100; src: local("IBM Plex Mono Thin Italic"), local("IBMPlexMono-ThinItalic"), url("/fonts/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-ThinItalic.woff2") format("woff2"), url("/fonts/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-ThinItalic.woff") format("woff"); } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 100; src: local("IBM Plex Mono Thin Italic"), local("IBMPlexMono-ThinItalic"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-ThinItalic-Cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0472-0473, U+0490-049D, U+04A0-04A5, U+04AA-04AB, U+04AE-04B3, U+04B6-04BB, U+04C0-04C2, U+04CF-04D9, U+04DC-04DF, U+04E2-04E9, U+04EE-04F5, U+04F8-04F9; } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 100; src: local("IBM Plex Mono Thin Italic"), local("IBMPlexMono-ThinItalic"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-ThinItalic-Pi.woff2") format("woff2"); unicode-range: U+0E3F, U+2032-2033, U+2070, U+2075-2079, U+2080-2081, U+2083, U+2085-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+21A9-21AA, U+21B0-21B3, U+21B6-21B7, U+21BA-21BB, U+21C4, U+21C6, U+2202, U+2206, U+220F, U+2211, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+274C, U+2B0E-2B11, U+EBE1-EBE7, U+ECE0, U+EFCC; } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 100; src: local("IBM Plex Mono Thin Italic"), local("IBMPlexMono-ThinItalic"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-ThinItalic-Latin3.woff2") format("woff2"); unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB; } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 100; src: local("IBM Plex Mono Thin Italic"), local("IBMPlexMono-ThinItalic"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-ThinItalic-Latin2.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 100; src: local("IBM Plex Mono Thin Italic"), local("IBMPlexMono-ThinItalic"), url("/fonts/IBM-Plex-Mono/fonts/split/woff2/IBMPlexMono-ThinItalic-Latin1.woff2") format("woff2"); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 700; src: local("IBM Plex Sans Bold"), local("IBMPlexSans-Bold"), url("/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-Bold.woff2") format("woff2"), url("/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-Bold.woff") format("woff"); } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 700; src: local("IBM Plex Sans Bold"), local("IBMPlexSans-Bold"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Bold-Cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0472-0473, U+0490-049D, U+04A0-04A5, U+04AA-04AB, U+04AE-04B3, U+04B6-04BB, U+04C0-04C2, U+04CF-04D9, U+04DC-04DF, U+04E2-04E9, U+04EE-04F5, U+04F8-04F9; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 700; src: local("IBM Plex Sans Bold"), local("IBMPlexSans-Bold"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Bold-Pi.woff2") format("woff2"); unicode-range: U+0E3F, U+2032-2033, U+2070, U+2075-2079, U+2080-2081, U+2083, U+2085-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+21A9-21AA, U+21B0-21B3, U+21B6-21B7, U+21BA-21BB, U+21C4, U+21C6, U+2202, U+2206, U+220F, U+2211, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+274C, U+2B0E-2B11, U+EBE1-EBE7, U+ECE0, U+EFCC; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 700; src: local("IBM Plex Sans Bold"), local("IBMPlexSans-Bold"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Bold-Latin3.woff2") format("woff2"); unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 700; src: local("IBM Plex Sans Bold"), local("IBMPlexSans-Bold"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Bold-Latin2.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 700; src: local("IBM Plex Sans Bold"), local("IBMPlexSans-Bold"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Bold-Latin1.woff2") format("woff2"); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 700; src: local("IBM Plex Sans Bold"), local("IBMPlexSans-Bold"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Bold-Greek.woff2") format("woff2"); unicode-range: U+0384-038A, U+038C, U+038E-03A1, U+03A3-03CE; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 700; src: local("IBM Plex Sans Bold Italic"), local("IBMPlexSans-BoldItalic"), url("/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-BoldItalic.woff2") format("woff2"), url("/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-BoldItalic.woff") format("woff"); } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 700; src: local("IBM Plex Sans Bold Italic"), local("IBMPlexSans-BoldItalic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-BoldItalic-Cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0472-0473, U+0490-049D, U+04A0-04A5, U+04AA-04AB, U+04AE-04B3, U+04B6-04BB, U+04C0-04C2, U+04CF-04D9, U+04DC-04DF, U+04E2-04E9, U+04EE-04F5, U+04F8-04F9; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 700; src: local("IBM Plex Sans Bold Italic"), local("IBMPlexSans-BoldItalic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-BoldItalic-Pi.woff2") format("woff2"); unicode-range: U+0E3F, U+2032-2033, U+2070, U+2075-2079, U+2080-2081, U+2083, U+2085-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+21A9-21AA, U+21B0-21B3, U+21B6-21B7, U+21BA-21BB, U+21C4, U+21C6, U+2202, U+2206, U+220F, U+2211, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+274C, U+2B0E-2B11, U+EBE1-EBE7, U+ECE0, U+EFCC; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 700; src: local("IBM Plex Sans Bold Italic"), local("IBMPlexSans-BoldItalic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-BoldItalic-Latin3.woff2") format("woff2"); unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 700; src: local("IBM Plex Sans Bold Italic"), local("IBMPlexSans-BoldItalic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-BoldItalic-Latin2.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 700; src: local("IBM Plex Sans Bold Italic"), local("IBMPlexSans-BoldItalic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-BoldItalic-Latin1.woff2") format("woff2"); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 700; src: local("IBM Plex Sans Bold Italic"), local("IBMPlexSans-BoldItalic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-BoldItalic-Greek.woff2") format("woff2"); unicode-range: U+0384-038A, U+038C, U+038E-03A1, U+03A3-03CE; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 200; src: local("IBM Plex Sans ExtraLight"), local("IBMPlexSans-ExtraLight"), url("/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-ExtraLight.woff2") format("woff2"), url("/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-ExtraLight.woff") format("woff"); } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 200; src: local("IBM Plex Sans ExtraLight"), local("IBMPlexSans-ExtraLight"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ExtraLight-Cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0472-0473, U+0490-049D, U+04A0-04A5, U+04AA-04AB, U+04AE-04B3, U+04B6-04BB, U+04C0-04C2, U+04CF-04D9, U+04DC-04DF, U+04E2-04E9, U+04EE-04F5, U+04F8-04F9; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 200; src: local("IBM Plex Sans ExtraLight"), local("IBMPlexSans-ExtraLight"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ExtraLight-Pi.woff2") format("woff2"); unicode-range: U+0E3F, U+2032-2033, U+2070, U+2075-2079, U+2080-2081, U+2083, U+2085-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+21A9-21AA, U+21B0-21B3, U+21B6-21B7, U+21BA-21BB, U+21C4, U+21C6, U+2202, U+2206, U+220F, U+2211, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+274C, U+2B0E-2B11, U+EBE1-EBE7, U+ECE0, U+EFCC; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 200; src: local("IBM Plex Sans ExtraLight"), local("IBMPlexSans-ExtraLight"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ExtraLight-Latin3.woff2") format("woff2"); unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 200; src: local("IBM Plex Sans ExtraLight"), local("IBMPlexSans-ExtraLight"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ExtraLight-Latin2.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 200; src: local("IBM Plex Sans ExtraLight"), local("IBMPlexSans-ExtraLight"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ExtraLight-Latin1.woff2") format("woff2"); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 200; src: local("IBM Plex Sans ExtraLight"), local("IBMPlexSans-ExtraLight"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ExtraLight-Greek.woff2") format("woff2"); unicode-range: U+0384-038A, U+038C, U+038E-03A1, U+03A3-03CE; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 200; src: local("IBM Plex Sans ExtraLight Italic"), local("IBMPlexSans-ExtraLightItalic"), url("/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-ExtraLightItalic.woff2") format("woff2"), url("/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-ExtraLightItalic.woff") format("woff"); } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 200; src: local("IBM Plex Sans ExtraLight Italic"), local("IBMPlexSans-ExtraLightItalic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ExtraLightItalic-Cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0472-0473, U+0490-049D, U+04A0-04A5, U+04AA-04AB, U+04AE-04B3, U+04B6-04BB, U+04C0-04C2, U+04CF-04D9, U+04DC-04DF, U+04E2-04E9, U+04EE-04F5, U+04F8-04F9; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 200; src: local("IBM Plex Sans ExtraLight Italic"), local("IBMPlexSans-ExtraLightItalic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ExtraLightItalic-Pi.woff2") format("woff2"); unicode-range: U+0E3F, U+2032-2033, U+2070, U+2075-2079, U+2080-2081, U+2083, U+2085-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+21A9-21AA, U+21B0-21B3, U+21B6-21B7, U+21BA-21BB, U+21C4, U+21C6, U+2202, U+2206, U+220F, U+2211, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+274C, U+2B0E-2B11, U+EBE1-EBE7, U+ECE0, U+EFCC; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 200; src: local("IBM Plex Sans ExtraLight Italic"), local("IBMPlexSans-ExtraLightItalic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ExtraLightItalic-Latin3.woff2") format("woff2"); unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 200; src: local("IBM Plex Sans ExtraLight Italic"), local("IBMPlexSans-ExtraLightItalic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ExtraLightItalic-Latin2.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 200; src: local("IBM Plex Sans ExtraLight Italic"), local("IBMPlexSans-ExtraLightItalic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ExtraLightItalic-Latin1.woff2") format("woff2"); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 200; src: local("IBM Plex Sans ExtraLight Italic"), local("IBMPlexSans-ExtraLightItalic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ExtraLightItalic-Greek.woff2") format("woff2"); unicode-range: U+0384-038A, U+038C, U+038E-03A1, U+03A3-03CE; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 400; src: local("IBM Plex Sans Italic"), local("IBMPlexSans-Italic"), url("/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-Italic.woff2") format("woff2"), url("/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-Italic.woff") format("woff"); } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 400; src: local("IBM Plex Sans Italic"), local("IBMPlexSans-Italic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Italic-Cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0472-0473, U+0490-049D, U+04A0-04A5, U+04AA-04AB, U+04AE-04B3, U+04B6-04BB, U+04C0-04C2, U+04CF-04D9, U+04DC-04DF, U+04E2-04E9, U+04EE-04F5, U+04F8-04F9; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 400; src: local("IBM Plex Sans Italic"), local("IBMPlexSans-Italic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Italic-Pi.woff2") format("woff2"); unicode-range: U+0E3F, U+2032-2033, U+2070, U+2075-2079, U+2080-2081, U+2083, U+2085-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+21A9-21AA, U+21B0-21B3, U+21B6-21B7, U+21BA-21BB, U+21C4, U+21C6, U+2202, U+2206, U+220F, U+2211, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+274C, U+2B0E-2B11, U+EBE1-EBE7, U+ECE0, U+EFCC; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 400; src: local("IBM Plex Sans Italic"), local("IBMPlexSans-Italic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Italic-Latin3.woff2") format("woff2"); unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 400; src: local("IBM Plex Sans Italic"), local("IBMPlexSans-Italic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Italic-Latin2.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 400; src: local("IBM Plex Sans Italic"), local("IBMPlexSans-Italic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Italic-Latin1.woff2") format("woff2"); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 400; src: local("IBM Plex Sans Italic"), local("IBMPlexSans-Italic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Italic-Greek.woff2") format("woff2"); unicode-range: U+0384-038A, U+038C, U+038E-03A1, U+03A3-03CE; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 300; src: local("IBM Plex Sans Light"), local("IBMPlexSans-Light"), url("/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-Light.woff2") format("woff2"), url("/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-Light.woff") format("woff"); } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 300; src: local("IBM Plex Sans Light"), local("IBMPlexSans-Light"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Light-Cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0472-0473, U+0490-049D, U+04A0-04A5, U+04AA-04AB, U+04AE-04B3, U+04B6-04BB, U+04C0-04C2, U+04CF-04D9, U+04DC-04DF, U+04E2-04E9, U+04EE-04F5, U+04F8-04F9; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 300; src: local("IBM Plex Sans Light"), local("IBMPlexSans-Light"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Light-Pi.woff2") format("woff2"); unicode-range: U+0E3F, U+2032-2033, U+2070, U+2075-2079, U+2080-2081, U+2083, U+2085-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+21A9-21AA, U+21B0-21B3, U+21B6-21B7, U+21BA-21BB, U+21C4, U+21C6, U+2202, U+2206, U+220F, U+2211, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+274C, U+2B0E-2B11, U+EBE1-EBE7, U+ECE0, U+EFCC; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 300; src: local("IBM Plex Sans Light"), local("IBMPlexSans-Light"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Light-Latin3.woff2") format("woff2"); unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 300; src: local("IBM Plex Sans Light"), local("IBMPlexSans-Light"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Light-Latin2.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 300; src: local("IBM Plex Sans Light"), local("IBMPlexSans-Light"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Light-Latin1.woff2") format("woff2"); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 300; src: local("IBM Plex Sans Light"), local("IBMPlexSans-Light"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Light-Greek.woff2") format("woff2"); unicode-range: U+0384-038A, U+038C, U+038E-03A1, U+03A3-03CE; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 300; src: local("IBM Plex Sans Light Italic"), local("IBMPlexSans-LightItalic"), url("/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-LightItalic.woff2") format("woff2"), url("/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-LightItalic.woff") format("woff"); } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 300; src: local("IBM Plex Sans Light Italic"), local("IBMPlexSans-LightItalic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-LightItalic-Cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0472-0473, U+0490-049D, U+04A0-04A5, U+04AA-04AB, U+04AE-04B3, U+04B6-04BB, U+04C0-04C2, U+04CF-04D9, U+04DC-04DF, U+04E2-04E9, U+04EE-04F5, U+04F8-04F9; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 300; src: local("IBM Plex Sans Light Italic"), local("IBMPlexSans-LightItalic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-LightItalic-Pi.woff2") format("woff2"); unicode-range: U+0E3F, U+2032-2033, U+2070, U+2075-2079, U+2080-2081, U+2083, U+2085-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+21A9-21AA, U+21B0-21B3, U+21B6-21B7, U+21BA-21BB, U+21C4, U+21C6, U+2202, U+2206, U+220F, U+2211, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+274C, U+2B0E-2B11, U+EBE1-EBE7, U+ECE0, U+EFCC; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 300; src: local("IBM Plex Sans Light Italic"), local("IBMPlexSans-LightItalic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-LightItalic-Latin3.woff2") format("woff2"); unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 300; src: local("IBM Plex Sans Light Italic"), local("IBMPlexSans-LightItalic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-LightItalic-Latin2.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 300; src: local("IBM Plex Sans Light Italic"), local("IBMPlexSans-LightItalic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-LightItalic-Latin1.woff2") format("woff2"); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 300; src: local("IBM Plex Sans Light Italic"), local("IBMPlexSans-LightItalic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-LightItalic-Greek.woff2") format("woff2"); unicode-range: U+0384-038A, U+038C, U+038E-03A1, U+03A3-03CE; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; src: local("IBM Plex Sans Medium"), local("IBMPlexSans-Medium"), url("/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-Medium.woff2") format("woff2"), url("/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-Medium.woff") format("woff"); } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; src: local("IBM Plex Sans Medium"), local("IBMPlexSans-Medium"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Medium-Cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0472-0473, U+0490-049D, U+04A0-04A5, U+04AA-04AB, U+04AE-04B3, U+04B6-04BB, U+04C0-04C2, U+04CF-04D9, U+04DC-04DF, U+04E2-04E9, U+04EE-04F5, U+04F8-04F9; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; src: local("IBM Plex Sans Medium"), local("IBMPlexSans-Medium"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Medium-Pi.woff2") format("woff2"); unicode-range: U+0E3F, U+2032-2033, U+2070, U+2075-2079, U+2080-2081, U+2083, U+2085-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+21A9-21AA, U+21B0-21B3, U+21B6-21B7, U+21BA-21BB, U+21C4, U+21C6, U+2202, U+2206, U+220F, U+2211, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+274C, U+2B0E-2B11, U+EBE1-EBE7, U+ECE0, U+EFCC; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; src: local("IBM Plex Sans Medium"), local("IBMPlexSans-Medium"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Medium-Latin3.woff2") format("woff2"); unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; src: local("IBM Plex Sans Medium"), local("IBMPlexSans-Medium"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Medium-Latin2.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; src: local("IBM Plex Sans Medium"), local("IBMPlexSans-Medium"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Medium-Latin1.woff2") format("woff2"); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; src: local("IBM Plex Sans Medium"), local("IBMPlexSans-Medium"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Medium-Greek.woff2") format("woff2"); unicode-range: U+0384-038A, U+038C, U+038E-03A1, U+03A3-03CE; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 500; src: local("IBM Plex Sans Medium Italic"), local("IBMPlexSans-MediumItalic"), url("/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-MediumItalic.woff2") format("woff2"), url("/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-MediumItalic.woff") format("woff"); } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 500; src: local("IBM Plex Sans Medium Italic"), local("IBMPlexSans-MediumItalic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-MediumItalic-Cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0472-0473, U+0490-049D, U+04A0-04A5, U+04AA-04AB, U+04AE-04B3, U+04B6-04BB, U+04C0-04C2, U+04CF-04D9, U+04DC-04DF, U+04E2-04E9, U+04EE-04F5, U+04F8-04F9; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 500; src: local("IBM Plex Sans Medium Italic"), local("IBMPlexSans-MediumItalic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-MediumItalic-Pi.woff2") format("woff2"); unicode-range: U+0E3F, U+2032-2033, U+2070, U+2075-2079, U+2080-2081, U+2083, U+2085-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+21A9-21AA, U+21B0-21B3, U+21B6-21B7, U+21BA-21BB, U+21C4, U+21C6, U+2202, U+2206, U+220F, U+2211, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+274C, U+2B0E-2B11, U+EBE1-EBE7, U+ECE0, U+EFCC; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 500; src: local("IBM Plex Sans Medium Italic"), local("IBMPlexSans-MediumItalic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-MediumItalic-Latin3.woff2") format("woff2"); unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 500; src: local("IBM Plex Sans Medium Italic"), local("IBMPlexSans-MediumItalic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-MediumItalic-Latin2.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 500; src: local("IBM Plex Sans Medium Italic"), local("IBMPlexSans-MediumItalic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-MediumItalic-Latin1.woff2") format("woff2"); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 500; src: local("IBM Plex Sans Medium Italic"), local("IBMPlexSans-MediumItalic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-MediumItalic-Greek.woff2") format("woff2"); unicode-range: U+0384-038A, U+038C, U+038E-03A1, U+03A3-03CE; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; src: local("IBM Plex Sans"), local("IBMPlexSans"), url("/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-Regular.woff2") format("woff2"), url("/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-Regular.woff") format("woff"); } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; src: local("IBM Plex Sans"), local("IBMPlexSans"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Regular-Cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0472-0473, U+0490-049D, U+04A0-04A5, U+04AA-04AB, U+04AE-04B3, U+04B6-04BB, U+04C0-04C2, U+04CF-04D9, U+04DC-04DF, U+04E2-04E9, U+04EE-04F5, U+04F8-04F9; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; src: local("IBM Plex Sans"), local("IBMPlexSans"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Regular-Pi.woff2") format("woff2"); unicode-range: U+0E3F, U+2032-2033, U+2070, U+2075-2079, U+2080-2081, U+2083, U+2085-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+21A9-21AA, U+21B0-21B3, U+21B6-21B7, U+21BA-21BB, U+21C4, U+21C6, U+2202, U+2206, U+220F, U+2211, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+274C, U+2B0E-2B11, U+EBE1-EBE7, U+ECE0, U+EFCC; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; src: local("IBM Plex Sans"), local("IBMPlexSans"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Regular-Latin3.woff2") format("woff2"); unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; src: local("IBM Plex Sans"), local("IBMPlexSans"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Regular-Latin2.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; src: local("IBM Plex Sans"), local("IBMPlexSans"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Regular-Latin1.woff2") format("woff2"); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; src: local("IBM Plex Sans"), local("IBMPlexSans"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Regular-Greek.woff2") format("woff2"); unicode-range: U+0384-038A, U+038C, U+038E-03A1, U+03A3-03CE; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; src: local("IBM Plex Sans SemiBold"), local("IBMPlexSans-SemiBold"), url("/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-SemiBold.woff2") format("woff2"), url("/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-SemiBold.woff") format("woff"); } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; src: local("IBM Plex Sans SemiBold"), local("IBMPlexSans-SemiBold"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-SemiBold-Cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0472-0473, U+0490-049D, U+04A0-04A5, U+04AA-04AB, U+04AE-04B3, U+04B6-04BB, U+04C0-04C2, U+04CF-04D9, U+04DC-04DF, U+04E2-04E9, U+04EE-04F5, U+04F8-04F9; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; src: local("IBM Plex Sans SemiBold"), local("IBMPlexSans-SemiBold"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-SemiBold-Pi.woff2") format("woff2"); unicode-range: U+0E3F, U+2032-2033, U+2070, U+2075-2079, U+2080-2081, U+2083, U+2085-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+21A9-21AA, U+21B0-21B3, U+21B6-21B7, U+21BA-21BB, U+21C4, U+21C6, U+2202, U+2206, U+220F, U+2211, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+274C, U+2B0E-2B11, U+EBE1-EBE7, U+ECE0, U+EFCC; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; src: local("IBM Plex Sans SemiBold"), local("IBMPlexSans-SemiBold"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-SemiBold-Latin3.woff2") format("woff2"); unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; src: local("IBM Plex Sans SemiBold"), local("IBMPlexSans-SemiBold"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-SemiBold-Latin2.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; src: local("IBM Plex Sans SemiBold"), local("IBMPlexSans-SemiBold"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-SemiBold-Latin1.woff2") format("woff2"); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; src: local("IBM Plex Sans SemiBold"), local("IBMPlexSans-SemiBold"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-SemiBold-Greek.woff2") format("woff2"); unicode-range: U+0384-038A, U+038C, U+038E-03A1, U+03A3-03CE; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 600; src: local("IBM Plex Sans SemiBold Italic"), local("IBMPlexSans-SemiBoldItalic"), url("/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-SemiBoldItalic.woff2") format("woff2"), url("/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-SemiBoldItalic.woff") format("woff"); } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 600; src: local("IBM Plex Sans SemiBold Italic"), local("IBMPlexSans-SemiBoldItalic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-SemiBoldItalic-Cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0472-0473, U+0490-049D, U+04A0-04A5, U+04AA-04AB, U+04AE-04B3, U+04B6-04BB, U+04C0-04C2, U+04CF-04D9, U+04DC-04DF, U+04E2-04E9, U+04EE-04F5, U+04F8-04F9; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 600; src: local("IBM Plex Sans SemiBold Italic"), local("IBMPlexSans-SemiBoldItalic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-SemiBoldItalic-Pi.woff2") format("woff2"); unicode-range: U+0E3F, U+2032-2033, U+2070, U+2075-2079, U+2080-2081, U+2083, U+2085-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+21A9-21AA, U+21B0-21B3, U+21B6-21B7, U+21BA-21BB, U+21C4, U+21C6, U+2202, U+2206, U+220F, U+2211, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+274C, U+2B0E-2B11, U+EBE1-EBE7, U+ECE0, U+EFCC; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 600; src: local("IBM Plex Sans SemiBold Italic"), local("IBMPlexSans-SemiBoldItalic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-SemiBoldItalic-Latin3.woff2") format("woff2"); unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 600; src: local("IBM Plex Sans SemiBold Italic"), local("IBMPlexSans-SemiBoldItalic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-SemiBoldItalic-Latin2.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 600; src: local("IBM Plex Sans SemiBold Italic"), local("IBMPlexSans-SemiBoldItalic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-SemiBoldItalic-Latin1.woff2") format("woff2"); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 600; src: local("IBM Plex Sans SemiBold Italic"), local("IBMPlexSans-SemiBoldItalic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-SemiBoldItalic-Greek.woff2") format("woff2"); unicode-range: U+0384-038A, U+038C, U+038E-03A1, U+03A3-03CE; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 450; src: local("IBM Plex Sans Text"), local("IBMPlexSans-Text"), url("/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-Text.woff2") format("woff2"), url("/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-Text.woff") format("woff"); } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 450; src: local("IBM Plex Sans Text"), local("IBMPlexSans-Text"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Text-Cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0472-0473, U+0490-049D, U+04A0-04A5, U+04AA-04AB, U+04AE-04B3, U+04B6-04BB, U+04C0-04C2, U+04CF-04D9, U+04DC-04DF, U+04E2-04E9, U+04EE-04F5, U+04F8-04F9; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 450; src: local("IBM Plex Sans Text"), local("IBMPlexSans-Text"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Text-Pi.woff2") format("woff2"); unicode-range: U+0E3F, U+2032-2033, U+2070, U+2075-2079, U+2080-2081, U+2083, U+2085-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+21A9-21AA, U+21B0-21B3, U+21B6-21B7, U+21BA-21BB, U+21C4, U+21C6, U+2202, U+2206, U+220F, U+2211, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+274C, U+2B0E-2B11, U+EBE1-EBE7, U+ECE0, U+EFCC; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 450; src: local("IBM Plex Sans Text"), local("IBMPlexSans-Text"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Text-Latin3.woff2") format("woff2"); unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 450; src: local("IBM Plex Sans Text"), local("IBMPlexSans-Text"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Text-Latin2.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 450; src: local("IBM Plex Sans Text"), local("IBMPlexSans-Text"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Text-Latin1.woff2") format("woff2"); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 450; src: local("IBM Plex Sans Text"), local("IBMPlexSans-Text"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Text-Greek.woff2") format("woff2"); unicode-range: U+0384-038A, U+038C, U+038E-03A1, U+03A3-03CE; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 450; src: local("IBM Plex Sans Text Italic"), local("IBMPlexSans-TextItalic"), url("/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-TextItalic.woff2") format("woff2"), url("/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-TextItalic.woff") format("woff"); } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 450; src: local("IBM Plex Sans Text Italic"), local("IBMPlexSans-TextItalic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-TextItalic-Cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0472-0473, U+0490-049D, U+04A0-04A5, U+04AA-04AB, U+04AE-04B3, U+04B6-04BB, U+04C0-04C2, U+04CF-04D9, U+04DC-04DF, U+04E2-04E9, U+04EE-04F5, U+04F8-04F9; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 450; src: local("IBM Plex Sans Text Italic"), local("IBMPlexSans-TextItalic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-TextItalic-Pi.woff2") format("woff2"); unicode-range: U+0E3F, U+2032-2033, U+2070, U+2075-2079, U+2080-2081, U+2083, U+2085-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+21A9-21AA, U+21B0-21B3, U+21B6-21B7, U+21BA-21BB, U+21C4, U+21C6, U+2202, U+2206, U+220F, U+2211, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+274C, U+2B0E-2B11, U+EBE1-EBE7, U+ECE0, U+EFCC; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 450; src: local("IBM Plex Sans Text Italic"), local("IBMPlexSans-TextItalic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-TextItalic-Latin3.woff2") format("woff2"); unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 450; src: local("IBM Plex Sans Text Italic"), local("IBMPlexSans-TextItalic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-TextItalic-Latin2.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 450; src: local("IBM Plex Sans Text Italic"), local("IBMPlexSans-TextItalic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-TextItalic-Latin1.woff2") format("woff2"); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 450; src: local("IBM Plex Sans Text Italic"), local("IBMPlexSans-TextItalic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-TextItalic-Greek.woff2") format("woff2"); unicode-range: U+0384-038A, U+038C, U+038E-03A1, U+03A3-03CE; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 100; src: local("IBM Plex Sans Thin"), local("IBMPlexSans-Thin"), url("/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-Thin.woff2") format("woff2"), url("/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-Thin.woff") format("woff"); } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 100; src: local("IBM Plex Sans Thin"), local("IBMPlexSans-Thin"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Thin-Cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0472-0473, U+0490-049D, U+04A0-04A5, U+04AA-04AB, U+04AE-04B3, U+04B6-04BB, U+04C0-04C2, U+04CF-04D9, U+04DC-04DF, U+04E2-04E9, U+04EE-04F5, U+04F8-04F9; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 100; src: local("IBM Plex Sans Thin"), local("IBMPlexSans-Thin"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Thin-Pi.woff2") format("woff2"); unicode-range: U+0E3F, U+2032-2033, U+2070, U+2075-2079, U+2080-2081, U+2083, U+2085-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+21A9-21AA, U+21B0-21B3, U+21B6-21B7, U+21BA-21BB, U+21C4, U+21C6, U+2202, U+2206, U+220F, U+2211, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+274C, U+2B0E-2B11, U+EBE1-EBE7, U+ECE0, U+EFCC; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 100; src: local("IBM Plex Sans Thin"), local("IBMPlexSans-Thin"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Thin-Latin3.woff2") format("woff2"); unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 100; src: local("IBM Plex Sans Thin"), local("IBMPlexSans-Thin"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Thin-Latin2.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 100; src: local("IBM Plex Sans Thin"), local("IBMPlexSans-Thin"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Thin-Latin1.woff2") format("woff2"); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 100; src: local("IBM Plex Sans Thin"), local("IBMPlexSans-Thin"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-Thin-Greek.woff2") format("woff2"); unicode-range: U+0384-038A, U+038C, U+038E-03A1, U+03A3-03CE; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 100; src: local("IBM Plex Sans Thin Italic"), local("IBMPlexSans-ThinItalic"), url("/fonts/IBM-Plex-Sans/fonts/complete/woff2/IBMPlexSans-ThinItalic.woff2") format("woff2"), url("/fonts/IBM-Plex-Sans/fonts/complete/woff/IBMPlexSans-ThinItalic.woff") format("woff"); } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 100; src: local("IBM Plex Sans Thin Italic"), local("IBMPlexSans-ThinItalic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ThinItalic-Cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0472-0473, U+0490-049D, U+04A0-04A5, U+04AA-04AB, U+04AE-04B3, U+04B6-04BB, U+04C0-04C2, U+04CF-04D9, U+04DC-04DF, U+04E2-04E9, U+04EE-04F5, U+04F8-04F9; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 100; src: local("IBM Plex Sans Thin Italic"), local("IBMPlexSans-ThinItalic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ThinItalic-Pi.woff2") format("woff2"); unicode-range: U+0E3F, U+2032-2033, U+2070, U+2075-2079, U+2080-2081, U+2083, U+2085-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+21A9-21AA, U+21B0-21B3, U+21B6-21B7, U+21BA-21BB, U+21C4, U+21C6, U+2202, U+2206, U+220F, U+2211, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+274C, U+2B0E-2B11, U+EBE1-EBE7, U+ECE0, U+EFCC; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 100; src: local("IBM Plex Sans Thin Italic"), local("IBMPlexSans-ThinItalic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ThinItalic-Latin3.woff2") format("woff2"); unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 100; src: local("IBM Plex Sans Thin Italic"), local("IBMPlexSans-ThinItalic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ThinItalic-Latin2.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 100; src: local("IBM Plex Sans Thin Italic"), local("IBMPlexSans-ThinItalic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ThinItalic-Latin1.woff2") format("woff2"); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02; } @font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 100; src: local("IBM Plex Sans Thin Italic"), local("IBMPlexSans-ThinItalic"), url("/fonts/IBM-Plex-Sans/fonts/split/woff2/IBMPlexSans-ThinItalic-Greek.woff2") format("woff2"); unicode-range: U+0384-038A, U+038C, U+038E-03A1, U+03A3-03CE; } @font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 700; src: local("IBM Plex Sans Arabic Bold"), local("IBMPlexSansArabic-Bold"), url("/fonts/IBM-Plex-Sans-Arabic/fonts/complete/woff2/IBMPlexSansArabic-Bold.woff2") format("woff2"), url("/fonts/IBM-Plex-Sans-Arabic/fonts/complete/woff/IBMPlexSansArabic-Bold.woff") format("woff"); } @font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 200; src: local("IBM Plex Sans Arabic ExtraLight"), local("IBMPlexSansArabic-ExtraLight"), url("/fonts/IBM-Plex-Sans-Arabic/fonts/complete/woff2/IBMPlexSansArabic-ExtraLight.woff2") format("woff2"), url("/fonts/IBM-Plex-Sans-Arabic/fonts/complete/woff/IBMPlexSansArabic-ExtraLight.woff") format("woff"); } @font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 300; src: local("IBM Plex Sans Arabic Light"), local("IBMPlexSansArabic-Light"), url("/fonts/IBM-Plex-Sans-Arabic/fonts/complete/woff2/IBMPlexSansArabic-Light.woff2") format("woff2"), url("/fonts/IBM-Plex-Sans-Arabic/fonts/complete/woff/IBMPlexSansArabic-Light.woff") format("woff"); } @font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 500; src: local("IBM Plex Sans Arabic Medium"), local("IBMPlexSansArabic-Medium"), url("/fonts/IBM-Plex-Sans-Arabic/fonts/complete/woff2/IBMPlexSansArabic-Medium.woff2") format("woff2"), url("/fonts/IBM-Plex-Sans-Arabic/fonts/complete/woff/IBMPlexSansArabic-Medium.woff") format("woff"); } @font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 400; src: local("IBM Plex Sans Arabic"), local("IBMPlexSansArabic"), url("/fonts/IBM-Plex-Sans-Arabic/fonts/complete/woff2/IBMPlexSansArabic-Regular.woff2") format("woff2"), url("/fonts/IBM-Plex-Sans-Arabic/fonts/complete/woff/IBMPlexSansArabic-Regular.woff") format("woff"); } @font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 600; src: local("IBM Plex Sans Arabic SemiBold"), local("IBMPlexSansArabic-SemiBold"), url("/fonts/IBM-Plex-Sans-Arabic/fonts/complete/woff2/IBMPlexSansArabic-SemiBold.woff2") format("woff2"), url("/fonts/IBM-Plex-Sans-Arabic/fonts/complete/woff/IBMPlexSansArabic-SemiBold.woff") format("woff"); } @font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 450; src: local("IBM Plex Sans Arabic Text"), local("IBMPlexSansArabic-Text"), url("/fonts/IBM-Plex-Sans-Arabic/fonts/complete/woff2/IBMPlexSansArabic-Text.woff2") format("woff2"), url("/fonts/IBM-Plex-Sans-Arabic/fonts/complete/woff/IBMPlexSansArabic-Text.woff") format("woff"); } @font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 100; src: local("IBM Plex Sans Arabic Thin"), local("IBMPlexSansArabic-Thin"), url("/fonts/IBM-Plex-Sans-Arabic/fonts/complete/woff2/IBMPlexSansArabic-Thin.woff2") format("woff2"), url("/fonts/IBM-Plex-Sans-Arabic/fonts/complete/woff/IBMPlexSansArabic-Thin.woff") format("woff"); }
62.659647
384
0.699138
ecdb0629dfb6a409e109fe8c31ebfcbc703f9423
1,719
ps1
PowerShell
install-windows-deps.ps1
patrykwojtowiczswi/SWITableFootball
d5caa82d8f554936fa4e2294ce97b269ec6b4870
[ "Apache-2.0" ]
null
null
null
install-windows-deps.ps1
patrykwojtowiczswi/SWITableFootball
d5caa82d8f554936fa4e2294ce97b269ec6b4870
[ "Apache-2.0" ]
8
2020-07-17T06:51:32.000Z
2022-02-26T11:38:34.000Z
install-windows-deps.ps1
patrykwojtowiczswi/SWITableFootball
d5caa82d8f554936fa4e2294ce97b269ec6b4870
[ "Apache-2.0" ]
1
2019-06-10T10:40:23.000Z
2019-06-10T10:40:23.000Z
# Run this script in an elevated command shell, using 'Run as Administator' $title = "Execute Installation Script" $message = "Absolutely NO WARRANTIES or GUARANTEES are provided. Are you sure you want to continue?" $yes = New-Object System.Management.Automation.Host.ChoiceDescription "&Yes", ` "Execute script." $no = New-Object System.Management.Automation.Host.ChoiceDescription "&No", ` "Do not execute script." $options = [System.Management.Automation.Host.ChoiceDescription[]]($yes, $no) $result = $host.ui.PromptForChoice($title, $message, $options, 1) switch ($result) { 0 { Write-Output "Note: This script assumes a clean environment and therefore is not resilient." Write-Output "Installing chocolatey" Set-ExecutionPolicy AllSigned; Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) RefreshEnv.cmd Write-Output "Installing Git & GitHub Desktop" choco install git github-desktop -y Write-Output "Verify installation of GitHub Desktop manually." Write-Output "Installing JDK8" choco install jdk8 -y Write-Output "Installing NodeJS" choco install nodejs -y Write-Output "Installing VS Code" choco install VisualStudioCode -y Write-Output "Verify installation of VS Code manually." RefreshEnv.cmd Write-Output "Installing Angular CLI" npm install -g @angular/cli Write-Output "Installing Angular devkit" npm install -g --save-dev @angular-devkit/build-angular } 1 {"Aborted."} }
34.38
149
0.656195
865496fe013fd7650f337a5e196af13b1f386a89
1,168
go
Go
server/httpin/restapi/kv.go
shlasouski/mattermost-plugin-apps
6957ee6f1f91f1d0fe0c7e948fe2ab7ca559db79
[ "Apache-2.0" ]
null
null
null
server/httpin/restapi/kv.go
shlasouski/mattermost-plugin-apps
6957ee6f1f91f1d0fe0c7e948fe2ab7ca559db79
[ "Apache-2.0" ]
null
null
null
server/httpin/restapi/kv.go
shlasouski/mattermost-plugin-apps
6957ee6f1f91f1d0fe0c7e948fe2ab7ca559db79
[ "Apache-2.0" ]
null
null
null
package restapi import ( "io" "net/http" "github.com/gorilla/mux" "github.com/mattermost/mattermost-plugin-apps/utils/httputils" ) func (a *restapi) kvGet(w http.ResponseWriter, r *http.Request) { id := mux.Vars(r)["key"] prefix := mux.Vars(r)["prefix"] var out interface{} err := a.appServices.KVGet(actingID(r), prefix, id, &out) if err != nil { httputils.WriteError(w, err) return } httputils.WriteJSON(w, out) } func (a *restapi) kvPut(w http.ResponseWriter, r *http.Request) { id := mux.Vars(r)["key"] prefix := mux.Vars(r)["prefix"] data, err := io.ReadAll(r.Body) if err != nil { httputils.WriteError(w, err) return } // <>/<> TODO: atomic support // <>/<> TODO: TTL support changed, err := a.appServices.KVSet(actingID(r), prefix, id, data) if err != nil { httputils.WriteError(w, err) return } httputils.WriteJSON(w, map[string]interface{}{ "changed": changed, }) } func (a *restapi) kvDelete(w http.ResponseWriter, r *http.Request) { id := mux.Vars(r)["key"] prefix := mux.Vars(r)["prefix"] err := a.appServices.KVDelete(actingID(r), prefix, id) if err != nil { httputils.WriteError(w, err) return } }
20.491228
68
0.653253
c0405c5faad14993a770b5ee26229634bd0b7dc6
8,207
sql
SQL
db_sipkldssdi2.sql
Arumiafh/ProjectWork
79029106b2204fb2d6c063cee09b75ffbbb8751c
[ "MIT" ]
null
null
null
db_sipkldssdi2.sql
Arumiafh/ProjectWork
79029106b2204fb2d6c063cee09b75ffbbb8751c
[ "MIT" ]
null
null
null
db_sipkldssdi2.sql
Arumiafh/ProjectWork
79029106b2204fb2d6c063cee09b75ffbbb8751c
[ "MIT" ]
null
null
null
-- phpMyAdmin SQL Dump -- version 3.5.2.2 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jan 20, 2018 at 07:53 AM -- Server version: 5.5.27 -- PHP Version: 5.4.7 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; -- -- Database: `db_sipkldssdi` -- -- -------------------------------------------------------- -- -- Table structure for table `tb_absensi` -- CREATE TABLE IF NOT EXISTS `tb_absensi` ( `ID_ABSEN` int(11) NOT NULL AUTO_INCREMENT, `ACCOUNT_ID` int(11) NOT NULL, `WAKTU_ABSENSI` varchar(50) NOT NULL, `STATUS` varchar(10) NOT NULL, PRIMARY KEY (`ID_ABSEN`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ; -- -- Dumping data for table `tb_absensi` -- INSERT INTO `tb_absensi` (`ID_ABSEN`, `ACCOUNT_ID`, `WAKTU_ABSENSI`, `STATUS`) VALUES (5, 4862, '16/01/2018 23:48:49', 'sudah'), (6, 4862, '17/01/2018 01:22:20', 'sudah'), (7, 4862, '18/01/2018 07:51:12', 'sudah'); -- -------------------------------------------------------- -- -- Table structure for table `tb_akun` -- CREATE TABLE IF NOT EXISTS `tb_akun` ( `ACCOUNT_ID` int(11) NOT NULL AUTO_INCREMENT, `SISWA_ID` int(11) DEFAULT NULL, `USERNAME` varchar(20) DEFAULT NULL, `PASSWORD` varchar(32) DEFAULT NULL, `ACCOUNT_EMAIL` varchar(50) DEFAULT NULL, `ROLE` varchar(10) DEFAULT NULL, `STATUS` varchar(20) NOT NULL, PRIMARY KEY (`ACCOUNT_ID`), KEY `FK_RELATIONSHIP_2` (`SISWA_ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1111383 ; -- -- Dumping data for table `tb_akun` -- INSERT INTO `tb_akun` (`ACCOUNT_ID`, `SISWA_ID`, `USERNAME`, `PASSWORD`, `ACCOUNT_EMAIL`, `ROLE`, `STATUS`) VALUES (1111381, 4862, 'Siswa_Arumia', 'arumiafh23', 'arumiafh@gmail.com', 'Siswa', 'verified'), (1111382, 4863, 'Siswa', 'siswa123', 'siswa@example.com', 'Siswa', 'unverified'); -- -------------------------------------------------------- -- -- Table structure for table `tb_akun_admin` -- CREATE TABLE IF NOT EXISTS `tb_akun_admin` ( `ACCOUNT_ADMIN_ID` int(11) NOT NULL AUTO_INCREMENT, `PEMBIMBING_ID` int(11) NOT NULL, `USERNAME` varchar(50) NOT NULL, `PASSWORD` varchar(50) NOT NULL, `ACCOUNT_EMAIL` varchar(50) NOT NULL, `ROLE` varchar(50) NOT NULL, PRIMARY KEY (`ACCOUNT_ADMIN_ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ; -- -- Dumping data for table `tb_akun_admin` -- INSERT INTO `tb_akun_admin` (`ACCOUNT_ADMIN_ID`, `PEMBIMBING_ID`, `USERNAME`, `PASSWORD`, `ACCOUNT_EMAIL`, `ROLE`) VALUES (1, 1, 'admin', 'admin', 'admin@example.com', 'Admin'), (2, 2, 'operator', 'operator', 'operator@example.com', 'Operator'), (3, 3, 'VikoBasmalah', 'viko123', 'vikowicaksono@gmail.com', 'Admin'), (4, 4, 'DyahAlifda', 'Dyah123', 'alifdadyah65@gmail.com', 'Admin'); -- -------------------------------------------------------- -- -- Table structure for table `tb_detail` -- CREATE TABLE IF NOT EXISTS `tb_detail` ( `DETAIL_ID` int(11) NOT NULL AUTO_INCREMENT, `SISWA_ID` int(11) NOT NULL, `PEMBIMBING_ID` int(11) NOT NULL, PRIMARY KEY (`DETAIL_ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; -- -- Dumping data for table `tb_detail` -- INSERT INTO `tb_detail` (`DETAIL_ID`, `SISWA_ID`, `PEMBIMBING_ID`) VALUES (1, 1, 2), (2, 4862, 1); -- -------------------------------------------------------- -- -- Table structure for table `tb_kegiatansiswa` -- CREATE TABLE IF NOT EXISTS `tb_kegiatansiswa` ( `ID_KEGSIS` int(11) NOT NULL AUTO_INCREMENT, `SISWA_ID` int(11) DEFAULT NULL, `TGL_KEGSIS` date DEFAULT NULL, `ISI_KEGSIS` text, PRIMARY KEY (`ID_KEGSIS`), KEY `FK_RELATIONSHIP_7` (`SISWA_ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; -- -- Dumping data for table `tb_kegiatansiswa` -- INSERT INTO `tb_kegiatansiswa` (`ID_KEGSIS`, `SISWA_ID`, `TGL_KEGSIS`, `ISI_KEGSIS`) VALUES (1, 1, '2017-08-29', 'Aktivitas 1'), (2, 4862, '2018-01-16', 'Merancang design atau mock up web perpustakaan menggunakan balsamiq'); -- -------------------------------------------------------- -- -- Table structure for table `tb_nilai` -- CREATE TABLE IF NOT EXISTS `tb_nilai` ( `SISWA_ID` int(11) NOT NULL, `NILAI_ID` int(11) NOT NULL AUTO_INCREMENT, `NILAI_SIKAP` int(3) NOT NULL, `NILAI_KETERAMPILAN` int(3) NOT NULL, PRIMARY KEY (`NILAI_ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ; -- -- Dumping data for table `tb_nilai` -- INSERT INTO `tb_nilai` (`SISWA_ID`, `NILAI_ID`, `NILAI_SIKAP`, `NILAI_KETERAMPILAN`) VALUES (4862, 10, 90, 85); -- -------------------------------------------------------- -- -- Table structure for table `tb_pembimbing` -- CREATE TABLE IF NOT EXISTS `tb_pembimbing` ( `PEMBIMBING_ID` int(11) NOT NULL AUTO_INCREMENT, `ACCOUNT_ID` int(11) DEFAULT NULL, `NIP` bigint(20) DEFAULT NULL, `NAMA_PEMBIMBING` varchar(50) DEFAULT NULL, `JENKEL_PEMBIMBING` varchar(20) DEFAULT NULL, `NOHP_PEMBIMBING` bigint(20) DEFAULT NULL, `ALAMAT_PEMBIMBING` text, `FOTODIRI_PEMBIMBING` text, `FOTOIDENTITAS_PEMBIMBING` text, PRIMARY KEY (`PEMBIMBING_ID`), KEY `FK_RELATIONSHIP_3` (`ACCOUNT_ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ; -- -- Dumping data for table `tb_pembimbing` -- INSERT INTO `tb_pembimbing` (`PEMBIMBING_ID`, `ACCOUNT_ID`, `NIP`, `NAMA_PEMBIMBING`, `JENKEL_PEMBIMBING`, `NOHP_PEMBIMBING`, `ALAMAT_PEMBIMBING`, `FOTODIRI_PEMBIMBING`, `FOTOIDENTITAS_PEMBIMBING`) VALUES (1, 1, 123, 'Admin', 'Laki-Laki', 123, 'test', 'download1.png', 'download.png'), (2, 2, 123, 'Operator', 'Perempuan', 123, 'test', 'download.jpg', 'contoh.jpg'), (3, 3, 9347285100, 'Viko Basmalah Wicaksono, S.Kom.', 'Laki-Laki', 81216672656, 'Gondomanan, Yogyakarta', 'blank.png', 'viko_basmalah.jpg'), (4, 4, 6728164917, 'Dyah Alifda Prihaningrum, S.T.', 'Perempuan', 81335130888, 'Temon, Kulon Progo', 'blank.png', 'dyah.jpg'); -- -------------------------------------------------------- -- -- Table structure for table `tb_siswa` -- CREATE TABLE IF NOT EXISTS `tb_siswa` ( `SISWA_ID` int(11) NOT NULL AUTO_INCREMENT, `ACCOUNT_ID` int(11) DEFAULT NULL, `DETAIL_ID` int(11) DEFAULT '0', `NIS` bigint(20) DEFAULT NULL, `NAMA_SISWA` varchar(50) DEFAULT NULL, `JENKEL_SISWA` varchar(20) DEFAULT NULL, `TEMPATLAHIR_SISWA` varchar(20) DEFAULT NULL, `TANGGALLAHIR_SISWA` date DEFAULT NULL, `AGAMA_SISWA` varchar(20) DEFAULT NULL, `ALAMAT_SISWA` text, `NOHP_SISWA` bigint(20) DEFAULT NULL, `ASAL_SMK` varchar(32) DEFAULT NULL, `JURUSAN` varchar(50) DEFAULT NULL, `NOTELP_SMK` bigint(20) DEFAULT NULL, `ALAMAT_SMK` text, `TGL_MULAI` date DEFAULT NULL, `TGL_SELESAI` date DEFAULT NULL, `FOTODIRI_SISWA` text, `FOTOIDENTITAS_SISWA` text, PRIMARY KEY (`SISWA_ID`), KEY `FK_RELATIONSHIP_1` (`ACCOUNT_ID`), KEY `FK_RELATIONSHIP_5` (`DETAIL_ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4864 ; -- -- Dumping data for table `tb_siswa` -- INSERT INTO `tb_siswa` (`SISWA_ID`, `ACCOUNT_ID`, `DETAIL_ID`, `NIS`, `NAMA_SISWA`, `JENKEL_SISWA`, `TEMPATLAHIR_SISWA`, `TANGGALLAHIR_SISWA`, `AGAMA_SISWA`, `ALAMAT_SISWA`, `NOHP_SISWA`, `ASAL_SMK`, `JURUSAN`, `NOTELP_SMK`, `ALAMAT_SMK`, `TGL_MULAI`, `TGL_SELESAI`, `FOTODIRI_SISWA`, `FOTOIDENTITAS_SISWA`) VALUES (4862, 1111381, 2, 3386, 'Arumia Fairuz Husna', 'Laki-Laki', 'Malang', '2000-03-23', 'Islam', 'Perumahan Asrikaton Indah Jl. Kebun Jeruk Blok G6 No. 20 Pakis, Malang', 89697067917, 'SMK Telkom Malang', 'Rekayasa Perangkat Lunak', 3414474, 'Jl. Danau Ranau No. 20', '2018-07-17', '2018-10-18', 'blank.png', 'Fat-Face-Tigger.jpg'), (4863, 1111382, 0, 102, 'Siswa Moklet', 'Laki-Laki', 'Malang', '0001-03-23', 'Islam', 'Sawojajar, Malang', 89697067917, 'SMK Telkom Malang', 'Rekayasa Perangkat Lunak', 78787889898, 'HUYUHJKNJUU', '2018-06-06', '2018-07-05', 'blank.png', 'download_(2).png'); /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
34.923404
329
0.664798
2679e1e4f40c616815bf8e3199fc19bb66a76c83
1,364
java
Java
java/mdsobjects/src/main/java/MDSplus/Dependency.java
fluffynukeit/mdsplus
a204d2e9d26554bb035945595210f2a57d187250
[ "BSD-2-Clause" ]
53
2015-01-05T08:55:13.000Z
2022-03-30T07:43:41.000Z
java/mdsobjects/src/main/java/MDSplus/Dependency.java
fluffynukeit/mdsplus
a204d2e9d26554bb035945595210f2a57d187250
[ "BSD-2-Clause" ]
1,231
2015-02-02T18:54:02.000Z
2022-03-30T08:27:45.000Z
java/mdsobjects/src/main/java/MDSplus/Dependency.java
fluffynukeit/mdsplus
a204d2e9d26554bb035945595210f2a57d187250
[ "BSD-2-Clause" ]
44
2015-05-24T20:18:06.000Z
2022-02-07T13:51:04.000Z
package MDSplus; /** * Class for DTYPE_DEPENDENCY * * @author manduchi * @version 1.0 * @updated 30-mar-2009 13.44.35 */ public class Dependency extends Compound { public static final int TreeDEPENDENCY_AND = 10; public static final int TreeDEPENDENCY_OR = 11; public Dependency(int opcode, Data arg1, Data arg2, Data help, Data units, Data error, Data validation) { super(help, units, error, validation); this.opcode = opcode; clazz = CLASS_R; dtype = DTYPE_DEPENDENCY; descs = new Data[2]; descs[0] = arg1; descs[1] = arg2; } public Dependency(int opcode, Data arg1, Data arg2) { this(opcode, arg1, arg2, null, null, null, null); } public Dependency(Data help, Data units, Data error, Data validation) { super(help, units, error, validation); clazz = CLASS_R; dtype = DTYPE_DEPENDENCY; descs = new Data[2]; opcode = 0; } public static Dependency getData(Data help, Data units, Data error, Data validation) { return new Dependency(help, units, error, validation); } public Data getArg1() { resizeDescs(1); return descs[0]; } public Data getArg2() { resizeDescs(2); return descs[1]; } /** * @param data */ public void setArg1(Data data) { resizeDescs(1); descs[0] = data; } /** * * @param data */ public void setArg2(Data data) { resizeDescs(2); descs[1] = data; } }
17.947368
104
0.666422
75b62d6b837825fa3c5e47ddebeef00605454f72
4,595
cshtml
C#
FlightJournal.Web/Views/Flight/Delete.cshtml
VladimirVLF/startlist.club
95fdb7fec6ca9fb1152d2ec9af64fc8dccf55c16
[ "MIT" ]
12
2016-06-20T22:45:48.000Z
2022-03-07T19:07:55.000Z
FlightJournal.Web/Views/Flight/Delete.cshtml
VladimirVLF/startlist.club
95fdb7fec6ca9fb1152d2ec9af64fc8dccf55c16
[ "MIT" ]
161
2015-10-14T09:46:37.000Z
2022-03-30T19:01:26.000Z
FlightJournal.Web/Views/Flight/Delete.cshtml
VladimirVLF/startlist.club
95fdb7fec6ca9fb1152d2ec9af64fc8dccf55c16
[ "MIT" ]
10
2015-10-14T08:01:22.000Z
2022-03-06T21:39:47.000Z
@model FlightJournal.Web.Models.Flight @{ ViewBag.Title = "Permanently Delete"; } <h2>Delete</h2> <h3>Are you sure you want to permanently delete this?</h3> <fieldset> <legend>Flight</legend> <div class="row"> <div class="col-md-4 col-sm-6 col-xs-12"> <div class="display-label"> @Html.LabelFor(model => model.Date) </div> <div class="display-field"> @Html.DisplayFor(model => model.Date) </div> <div class="display-label"> @Html.LabelFor(model => model.Departure) </div> <div class="display-field"> @Html.DisplayFor(model => model.Departure) </div> <div class="display-label"> @Html.LabelFor(model => model.Landing) </div> <div class="display-field"> @Html.DisplayFor(model => model.Landing) </div> <div class="display-label"> @Html.LabelFor(model => model.PlaneId) </div> <div class="display-field"> @Html.DisplayFor(model => model.Plane) </div> <div class="display-label"> @Html.LabelFor(model => model.BetalerId) </div> <div class="display-field"> @Html.DisplayFor(model => model.Betaler.Name) </div> <div class="display-label"> @Html.LabelFor(model => model.PilotId) </div> <div class="display-field"> @Html.DisplayFor(model => model.Pilot.Name) </div> <div class="display-label"> @Html.LabelFor(model => model.PilotBackseatId) </div> <div class="display-field"> @Html.DisplayFor(model => model.PilotBackseat.Name) </div> <div class="display-label"> @Html.LabelFor(model => model.Description) </div> <div class="display-field"> @Html.DisplayFor(model => model.Description) </div> </div> <div class="col-md-4 col-sm-6 col-xs-12"> <div class="display-label"> @Html.LabelFor(model => model.StartTypeId) </div> <div class="display-field"> @Html.DisplayFor(model => model.StartType) </div> <div class="display-label"> @Html.LabelFor(model => model.StartedFromId) </div> <div class="display-field"> @Html.DisplayFor(model => model.StartedFrom.Name) </div> <div class="display-label"> @Html.LabelFor(model => model.LandedOnId) </div> <div class="display-field"> @Html.DisplayFor(model => model.LandedOn.Name) </div> </div> <div class="clearfix visible-sm visible-xs"></div> <div class="col-md-4 col-sm-12"> <div class="display-label"> @Html.LabelFor(model => model.TachoDeparture) </div> <div class="display-field"> @Html.DisplayFor(model => model.TachoDeparture) </div> <div class="display-label"> @Html.LabelFor(model => model.TachoLanding) </div> <div class="display-field"> @Html.DisplayFor(model => model.TachoLanding) </div> <div class="display-label"> @Html.LabelFor(model => model.LandingCount) </div> <div class="display-field"> @Html.DisplayFor(model => model.LandingCount) </div> <div class="display-label"> @Html.LabelFor(model => model.TaskDistance) </div> <div class="display-field"> @Html.DisplayFor(model => model.TaskDistance) </div> </div> </div> </fieldset> @using (Html.BeginForm()) { <div class="row"> <div class="alert alert-danger col-md-4"> <h4>Are you sure you want to permanently delete this?</h4> <div class="btn-group"> <input type="submit" value="Delete" class="btn btn-danger" /> <a href="javascript:window.history.back();" class="btn btn-default">Tilbage</a> </div> </div> </div> } @Html.Partial("_changeHistory", (IEnumerable<FlightJournal.Web.Models.FlightVersionHistory>)ViewBag.ChangeHistory)
36.468254
114
0.501415